/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Checkbox column in task tables. */
.task-check-col {
  width: 3rem;
}

/* Month calendar grid. */
.calendar-grid {
  table-layout: fixed;
}

.calendar-cell {
  height: 7.5rem;
  vertical-align: top;
  padding: 0.25rem;
  overflow: hidden;
}

.calendar-cell-muted {
  background-color: #fafafa;
  color: #adb5bd;
}

.calendar-cell-today {
  background-color: #fff8e1;
}

.calendar-add {
  text-decoration: none;
  opacity: 0;
  padding: 0 0.25rem;
}

.calendar-cell:hover .calendar-add {
  opacity: 1;
}

.calendar-chip {
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 0.1rem 0.3rem;
  margin-top: 0.15rem;
  border-radius: 0.2rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #e9ecef;
  color: #212529;
}

.calendar-chip-meeting {
  background-color: #cfe2ff;
}

.calendar-chip-focus {
  background-color: #d1e7dd;
}

.calendar-chip-deadline {
  background-color: #f8d7da;
}

.calendar-chip-personal {
  background-color: #e2d9f3;
}

.calendar-chip-task {
  background-color: #fff3cd;
  font-style: italic;
}

/* Agenda */
.agenda-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.agenda-title h1{margin:0;color:#173c38;font-size:2rem;font-weight:800;letter-spacing:-.045em}.agenda-title{position:relative}.agenda-month-nav{position:absolute;bottom:1px;left:calc(100% + 18px);display:flex}.agenda-month-nav .btn{min-width:38px;padding:6px 11px;border-color:#dce5e2;color:#42605c;background:#fff;font-size:.7rem}.agenda-month-nav .btn:first-child{border-radius:8px 0 0 8px}.agenda-month-nav .btn:last-child{border-radius:0 8px 8px 0}.agenda-month-nav .btn:not(:last-child){border-right:0;border-radius:0}.agenda-actions{display:flex;gap:8px}.agenda-calendar{overflow:hidden}.agenda-calendar-scroll{overflow-x:auto}.agenda-calendar .table{border-color:#e5ebe9}.agenda-calendar .calendar-grid th{padding:11px;border:0;color:#82918f!important;background:#f8faf9;font-size:.62rem!important;font-weight:800;text-transform:uppercase}.agenda-calendar .calendar-cell{height:8rem;padding:7px;border-color:#e8edeb;background:#fff}.agenda-calendar .calendar-cell-muted{color:#bdc6c4;background:#fafbfb}.agenda-calendar .calendar-cell-today{background:#f2f8f5;box-shadow:inset 0 3px #0e665d}.calendar-day-head{display:flex;justify-content:space-between;align-items:start}.calendar-day-head>span{display:grid;place-items:center;width:25px;height:25px;color:#536b67;font-size:.68rem}.calendar-today-number{border-radius:50%;color:#fff!important;background:#0e665d}.agenda-calendar .calendar-add{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;color:#6b817d!important;background:#f1f5f3;font-size:.8rem}.agenda-calendar .calendar-chip{margin-top:4px;padding:4px 6px;border-radius:5px;font-size:.61rem;font-style:normal}.calendar-mobile-dots,.agenda-mobile-list{display:none}
@media(max-width:620px){.agenda-heading{align-items:stretch;flex-direction:column;margin-bottom:14px}.agenda-title{display:grid;grid-template-columns:1fr auto;align-items:end}.agenda-title .page-eyebrow{grid-column:1/-1}.agenda-title h1{font-size:1.65rem}.agenda-month-nav{position:static}.agenda-month-nav .btn{min-width:34px;padding:5px 9px}.agenda-actions{display:grid;grid-template-columns:1fr 1fr}.agenda-actions .btn{min-height:43px;display:grid;place-items:center}.agenda-calendar{border-radius:14px}.agenda-calendar-scroll{overflow:visible}.agenda-calendar .calendar-grid{min-width:0}.agenda-calendar .calendar-grid th{padding:9px 1px;font-size:.52rem!important}.agenda-calendar .calendar-cell{position:relative;height:48px;padding:3px;border-right:0;border-left:0}.agenda-calendar .calendar-cell-muted{opacity:.35}.calendar-day-head{justify-content:center}.calendar-day-head>span{width:29px;height:29px;font-size:.64rem}.agenda-calendar .calendar-add,.agenda-calendar .calendar-chip{display:none!important}.calendar-mobile-dots{position:absolute;right:0;bottom:4px;left:0;display:flex;justify-content:center}.calendar-mobile-dots i{width:4px;height:4px;border-radius:50%;background:#d49a36}.agenda-calendar .calendar-cell-today{box-shadow:none}.agenda-mobile-list{display:block;margin-top:22px}.agenda-mobile-list>h2{margin:0 0 11px;color:#29433f;font-size:.78rem;font-weight:800}.agenda-day-card{overflow:hidden;margin-bottom:11px;border:1px solid #e1e8e6;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(23,56,52,.04)}.agenda-day-card>header{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;border-bottom:1px solid #edf1ef}.agenda-day-card>header time{display:flex;align-items:center;gap:8px}.agenda-day-card>header time>strong{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#0e665d;background:#eaf4f0;font-size:.9rem}.agenda-day-card>header time span,.agenda-day-card>header time small{display:block;color:#34504d;font-size:.63rem;font-weight:800;text-transform:capitalize}.agenda-day-card>header time small{color:#92a09d;font-size:.55rem}.agenda-day-card>header>a{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;color:#0e665d;background:#edf6f2;text-decoration:none}.agenda-day-card.is-today{border-color:#9bcbbb}.agenda-day-card.is-today>header:after{content:"HOY";order:-1;margin-right:auto;margin-left:10px;color:#0e665d;font-size:.51rem;font-weight:900;letter-spacing:.08em}.agenda-list-item{display:grid;grid-template-columns:5px 1fr auto;align-items:center;gap:11px;padding:13px;color:#29433f;text-decoration:none}.agenda-list-item+.agenda-list-item{border-top:1px solid #edf1ef}.agenda-list-item>i{width:5px;height:30px;border-radius:5px;background:#5b9f8c}.agenda-kind-meeting>i{background:#4d82c2}.agenda-kind-deadline>i,.agenda-kind-task>i{background:#d39a35}.agenda-kind-personal>i{background:#8c6eb6}.agenda-list-item strong,.agenda-list-item small{display:block}.agenda-list-item strong{font-size:.7rem}.agenda-list-item small{margin-top:3px;color:#84928f;font-size:.57rem}.agenda-list-item>b{color:#a4afad;font-size:1rem}.agenda-empty{padding:30px 20px;border:1px dashed #ccd9d5;border-radius:14px;text-align:center;background:#fff}.agenda-empty span,.agenda-empty strong{display:block}.agenda-empty span{font-size:1.5rem}.agenda-empty strong{margin-top:7px;color:#34504d;font-size:.8rem}.agenda-empty p{color:#81908d;font-size:.65rem}}

:root {
  --auth-ink: #102a2e;
  --auth-muted: #667779;
  --auth-green: #0e665d;
  --auth-green-dark: #094942;
  --auth-accent: #d9a441;
  --auth-line: #dbe3e1;
}

.auth-page { margin: 0; min-height: 100vh; color: var(--auth-ink); background: #f7f9f8; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 0.9fr) minmax(520px, 1.1fr); }
.auth-brand-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 48px clamp(42px, 5vw, 82px); color: #fff; background: #0a514b; }
.auth-brand-panel::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.auth-ambient { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.auth-ambient-one { width: 520px; height: 520px; right: -240px; top: -180px; background: radial-gradient(circle, rgba(52,150,136,.62), rgba(52,150,136,0) 70%); animation: auth-drift 10s ease-in-out infinite alternate; }
.auth-ambient-two { width: 420px; height: 420px; left: -250px; bottom: -230px; background: radial-gradient(circle, rgba(217,164,65,.2), rgba(217,164,65,0) 70%); animation: auth-drift 13s ease-in-out 1s infinite alternate-reverse; }
.auth-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.auth-brand:hover { color: #fff; }
.auth-brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #0b514a; background: #fff; font-size: .85rem; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.auth-brand-copy { position: relative; z-index: 1; margin: auto 0 34px; max-width: 560px; animation: auth-rise .7s ease-out both; }
.auth-status { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 24px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; color: rgba(255,255,255,.76); background: rgba(255,255,255,.06); font-size: .72rem; font-weight: 650; }
.auth-status span { width: 7px; height: 7px; border-radius: 50%; background: #75dcc1; box-shadow: 0 0 0 5px rgba(117,220,193,.1); animation: auth-pulse 2.2s ease-in-out infinite; }
.auth-eyebrow { margin: 0 0 16px; color: var(--auth-accent); font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-brand-copy h1 { margin: 0 0 24px; font-size: clamp(2.75rem, 5vw, 4.8rem); line-height: .99; letter-spacing: -.055em; font-weight: 650; }
.auth-brand-copy > p:last-child { max-width: 490px; margin: 0; color: rgba(255,255,255,.72); font-size: 1.06rem; line-height: 1.75; }
.auth-glance { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; max-width: 420px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: 0 18px 45px rgba(0,0,0,.09); backdrop-filter: blur(12px); animation: auth-rise .7s .12s ease-out both; }
.auth-glance-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #174e48; background: #dff4ed; font-weight: 800; }
.auth-glance strong, .auth-glance span { display: block; }
.auth-glance strong { margin-bottom: 3px; font-size: .84rem; }
.auth-glance span { color: rgba(255,255,255,.56); font-size: .72rem; }
.auth-glance-dots { display: flex; gap: 4px; }
.auth-glance-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.38); }
.auth-brand-footer { position: relative; z-index: 1; margin: 28px 0 0; color: rgba(255,255,255,.42); font-size: .76rem; }
.auth-form-panel { display: grid; place-items: center; padding: 48px clamp(28px, 7vw, 112px); background: #fff; }
.auth-form-wrap { width: min(100%, 420px); animation: auth-rise .65s .08s ease-out both; }
.auth-mobile-brand { display: none; }
.auth-form-header { margin-bottom: 34px; }
.auth-form-header .auth-eyebrow { color: var(--auth-green); margin-bottom: 12px; }
.auth-form-header h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.045em; }
.auth-form-header > p:last-child { margin: 0; color: var(--auth-muted); line-height: 1.65; }
.auth-form { display: grid; gap: 23px; }
.auth-field label, .auth-label-row label { color: #263e41; font-size: .84rem; font-weight: 700; }
.auth-field input:not([type="checkbox"]) { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--auth-line); border-radius: 10px; outline: none; color: var(--auth-ink); background: #fbfcfc; transition: border-color .18s, box-shadow .18s, background .18s; }
.auth-field input:not([type="checkbox"]):focus { border-color: var(--auth-green); background: #fff; box-shadow: 0 0 0 4px rgba(14,102,93,.09); }
.auth-field input::placeholder { color: #9ba8a7; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.auth-label-row a { color: var(--auth-green); font-size: .79rem; font-weight: 700; text-decoration: none; }
.auth-label-row a:hover { text-decoration: underline; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 62px !important; }
.auth-password-toggle { position: absolute; right: 8px; top: 8px; height: 38px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--auth-green); background: transparent; font-size: .75rem; font-weight: 800; }
.auth-password-toggle:hover { background: #eef5f4; }
.auth-check { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--auth-muted); font-size: .83rem; cursor: pointer; }
.auth-check input { accent-color: var(--auth-green); width: 16px; height: 16px; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 55px; border: 0; border-radius: 10px; color: #fff; background: var(--auth-green); font-size: .9rem; font-weight: 750; box-shadow: 0 12px 25px rgba(14,102,93,.18); transition: transform .18s, background .18s, box-shadow .18s; }
.auth-submit:hover { transform: translateY(-1px); background: var(--auth-green-dark); box-shadow: 0 15px 28px rgba(14,102,93,.22); }
.auth-submit-arrow { font-size: 1.1rem; transition: transform .18s; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(3px); }
.auth-submit-loader { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: auth-spin .65s linear infinite; }
.auth-submit.is-loading .auth-submit-arrow { display: none; }
.auth-submit.is-loading .auth-submit-loader { display: inline-block; }
.auth-submit:focus-visible, .auth-password-toggle:focus-visible, .auth-label-row a:focus-visible { outline: 3px solid rgba(217,164,65,.45); outline-offset: 3px; }
.auth-help { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #edf1f0; color: #82908f; text-align: center; font-size: .79rem; }
.auth-error { margin-bottom: 22px; padding: 12px 14px; border: 1px solid #f0c9c5; border-radius: 9px; color: #8c3129; background: #fff5f4; font-size: .82rem; line-height: 1.45; }
.auth-field-error { display: block; margin-top: 7px; color: #a13e35; }

@keyframes auth-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-22px, 18px, 0) scale(1.08); } }
@keyframes auth-pulse { 50% { opacity: .55; transform: scale(.86); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .auth-brand-copy, .auth-glance, .auth-form-wrap, .auth-ambient, .auth-status span, .auth-submit-loader { animation: none; }
  .auth-submit, .auth-submit-arrow { transition: none; }
}

@media (max-width: 860px) {
  .auth-shell { display: block; min-height: 100vh; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 38px 24px; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 72px; font-weight: 750; }
  .auth-mobile-brand .auth-brand-mark { color: #fff; background: var(--auth-green); }
}

@media (max-width: 480px) {
  .auth-form-panel { align-items: start; padding-top: 24px; }
  .auth-mobile-brand { margin-bottom: 54px; }
  .auth-form-header { margin-bottom: 28px; }
  .auth-label-row { align-items: center; }
}

/* Application shell */
body:has(.app-shell) { background: #f4f7f6; color: #173234; }
.app-shell { --sidebar-width: 248px; min-height: 100vh; }
.app-sidebar { position: fixed; z-index: 1040; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 26px 18px 18px; color: #d7e7e4; background: #0b4d47; box-shadow: inset -1px 0 rgba(255,255,255,.05); }
.app-logo { display: flex; align-items: center; gap: 11px; margin: 0 8px 38px; color: #fff; text-decoration: none; font-weight: 750; letter-spacing: -.01em; }
.app-logo:hover { color: #fff; }
.app-logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #0b4d47; background: #fff; font-size: .7rem; font-weight: 850; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.app-nav-label { margin: 0 12px 10px; color: rgba(255,255,255,.38); font-size: .64rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.app-nav-label-inner { margin-top: 28px; }
.app-nav { display: flex; flex-direction: column; }
.app-nav > a { display: flex; align-items: center; gap: 12px; min-height: 43px; margin: 2px 0; padding: 0 12px; border-radius: 9px; color: rgba(255,255,255,.67); text-decoration: none; font-size: .84rem; font-weight: 600; transition: color .16s, background .16s, transform .16s; }
.app-nav > a:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.app-nav > a.active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 3px 0 #e0af50; }
.app-nav > a i { display: grid; place-items: center; width: 22px; color: #add1ca; font-size: 1rem; font-style: normal; font-weight: 500; }
.app-sidebar-footer { display: grid; gap: 10px; margin-top: auto; padding: 14px 5px 0; border-top: 1px solid rgba(255,255,255,.1); }
.app-user-card { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; min-width: 0; color: #fff; text-decoration: none; }
.app-user-card:hover { color: #fff; }
.app-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #174f49; background: #dff2ed; font-size: .75rem; font-weight: 800; }
.app-user-card strong, .app-user-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user-card strong { max-width: 136px; font-size: .69rem; font-weight: 650; }
.app-user-card small { color: rgba(255,255,255,.42); font-size: .63rem; }
.app-signout { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 7px; color: rgba(255,255,255,.5); text-decoration: none; font-size: .68rem; font-weight: 650; }
.app-signout:hover { color: #fff; background: rgba(255,255,255,.06); }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.app-topbar { position: sticky; z-index: 1020; top: 0; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 clamp(24px, 4vw, 54px); border-bottom: 1px solid #e4eae8; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.app-topbar-title { display: flex; align-items: center; gap: 8px; color: #7c8e8d; font-size: .72rem; }
.app-global-search { display: flex; align-items: center; gap: 8px; width: min(38vw, 380px); padding: 0 12px; border: 1px solid #dfe7e4; border-radius: 9px; background: #f8faf9; }.app-global-search span { color: #7a8b88; }.app-global-search input { width: 100%; height: 36px; border: 0; outline: 0; background: transparent; font-size: .74rem; }
.app-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #43af8d; box-shadow: 0 0 0 4px rgba(67,175,141,.1); }
.app-context-form { display: flex; align-items: center; gap: 10px; }
.app-context-form label { color: #849291; font-size: .7rem; font-weight: 650; }
.app-context-form select { min-width: 130px; padding: 8px 30px 8px 11px; border: 1px solid #dbe4e1; border-radius: 8px; outline: none; color: #294342; background-color: #fff; font-size: .76rem; font-weight: 650; }
.app-context-form select:focus { border-color: #0e665d; box-shadow: 0 0 0 3px rgba(14,102,93,.08); }
.app-menu-button { display: none; border: 0; color: #23413e; background: none; font-size: 1.25rem; }
.app-content { max-width: 1480px; margin: 0 auto; padding: 42px clamp(24px, 4vw, 54px) 64px; }
.app-sidebar-backdrop { display: none; }

/* Shared application components */
.app-content h1, .app-content h2, .app-content h3 { color: #153432; letter-spacing: -.035em; }
.app-content > .d-flex:first-child h1, .app-content > h1 { font-size: clamp(1.8rem, 3vw, 2.35rem) !important; font-weight: 720; }
.app-content a { color: #0d675e; }
.app-content .btn { min-height: 39px; padding: 9px 15px; border-radius: 8px; font-size: .78rem; font-weight: 700; }
.app-content .btn-primary, .app-content .btn-success { border-color: #0e665d; background: #0e665d; box-shadow: 0 7px 16px rgba(14,102,93,.13); }
.app-content a.btn-primary, .app-content a.btn-success { color: #fff; }
.app-content .btn-primary:hover, .app-content .btn-success:hover { border-color: #094942; background: #094942; }
.app-content .btn-outline-secondary, .app-content .btn-light { border-color: #dce4e2; color: #34504d; background: #fff; }
.app-content .card, .app-card { border: 1px solid #e1e8e6; border-radius: 13px; background: #fff; box-shadow: 0 4px 18px rgba(23,56,52,.035); }
.app-content .card-header { padding: 16px 19px; border-bottom-color: #edf1f0; border-radius: 13px 13px 0 0; background: #fff; }
.app-content .card-body { padding: 19px; }
.app-content .form-control, .app-content .form-select { min-height: 44px; border-color: #dce4e2; border-radius: 8px; color: #203d3a; background-color: #fff; font-size: .82rem; }
.app-content .form-control:focus, .app-content .form-select:focus { border-color: #0e665d; box-shadow: 0 0 0 3px rgba(14,102,93,.08); }
.app-content .table { color: #2a4542; font-size: .8rem; }
.app-content .table > :not(caption) > * > * { padding: 13px 16px; border-bottom-color: #edf1ef; }
.app-content .table thead th { color: #83918f; background: #f9fbfa; font-size: .65rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.app-content .table tbody tr { transition: background .14s; }
.app-content .table tbody tr:hover { background: #f8fbfa; }
.app-content .badge { padding: 6px 8px; border-radius: 6px; font-size: .62rem; font-weight: 700; }
.app-content .bg-secondary { background: #e7f1ef !important; color: #32645d; }
.app-content .bg-light { background: #f1f4f3 !important; }
.app-content .nav-pills { gap: 5px; padding: 5px; width: fit-content; border: 1px solid #e2e8e6; border-radius: 10px; background: #fff; }
.app-content .nav-pills .nav-link { padding: 7px 12px; border-radius: 7px; color: #70817f; }
.app-content .nav-pills .nav-link.active { color: #fff; background: #0e665d; }
.app-content .alert { border: 0; border-radius: 10px; font-size: .8rem; }

/* Dashboard */
.dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-eyebrow { margin: 0 0 7px; color: #839491; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-hero h1 { margin: 0 0 7px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 720; }
.dashboard-hero > div > p:last-child { margin: 0; color: #71827f; font-size: .9rem; }
.page-actions { display: flex; gap: 8px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.dashboard-stat { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 13px; min-width: 0; padding: 17px; border: 1px solid #e1e8e6; border-radius: 12px; color: #173432 !important; background: #fff; text-decoration: none; box-shadow: 0 3px 14px rgba(23,56,52,.03); transition: transform .18s, box-shadow .18s, border-color .18s; }
.dashboard-stat:hover { transform: translateY(-2px); border-color: #ccdad6; box-shadow: 0 10px 24px rgba(23,56,52,.07); }
.stat-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; font-size: .95rem; font-weight: 800; }
.stat-icon-green { color: #21745e; background: #e3f3ed; }.stat-icon-coral { color: #a95748; background: #f9ebe8; }.stat-icon-gold { color: #8d6b25; background: #f7f0df; }.stat-icon-blue { color: #416c85; background: #e8f1f5; }
.dashboard-stat strong, .dashboard-stat small { display: block; }.dashboard-stat strong { font-size: 1.25rem; line-height: 1.1; }.dashboard-stat small { margin-top: 4px; color: #7d8d8a; font-size: .68rem; }.dashboard-stat > i { color: #b1bdba; font-style: normal; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 20px; margin-bottom: 20px; }
.app-card { overflow: hidden; }
.app-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 21px; border-bottom: 1px solid #edf1ef; }
.app-card-header h2 { margin: 0; font-size: 1.05rem; font-weight: 720; }
.app-card-header a { font-size: .69rem; font-weight: 700; text-decoration: none; }
.today-section { padding: 20px 21px; }.today-section + .today-section { border-top: 1px solid #edf1ef; }
.today-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; font-size: .78rem; font-weight: 720; letter-spacing: 0; }.today-section h3 small { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; color: #71817f; background: #edf2f0; font-size: .6rem; }
.section-dot { width: 7px; height: 7px; border-radius: 50%; }.section-dot-gold { background: #d9a441; }.section-dot-green { background: #3a9c82; }
.today-list { display: grid; gap: 7px; }.today-item { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #29433f !important; background: #f8faf9; text-decoration: none; }.today-item:hover { background: #f0f6f4; }.today-item time { color: #0d675e; font-size: .67rem; font-weight: 750; }.today-item strong, .today-item small { display: block; }.today-item strong { font-size: .75rem; }.today-item small { margin-top: 2px; color: #8a9896; font-size: .63rem; }.today-item i { color: #9aaba8; font-style: normal; font-size: 1.15rem; }
.dashboard-task-wrap .table { margin: 0; }.dashboard-task-wrap .table thead { display: none; }.dashboard-task-wrap .table > :not(caption) > * > * { padding: 10px 8px; }
.dashboard-side { display: grid; gap: 20px; align-content: start; }
.money-card, .receivable-card { min-width: 0; }.money-net { padding: 21px 21px 16px; }.money-net small, .money-net strong { display: block; }.money-net small { color: #879592; font-size: .66rem; }.money-net strong { margin-top: 5px; font-size: 1.85rem; letter-spacing: -.045em; }
.money-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #edf1ef; }.money-split > div { display: grid; grid-template-columns: 28px 1fr; padding: 14px 17px; }.money-split > div + div { border-left: 1px solid #edf1ef; }.money-split span { grid-row: 1 / 3; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; font-size: .7rem; }.money-up { color: #28785f; background: #e4f3ed; }.money-down { color: #a4584d; background: #f8ebe8; }.money-split small, .money-split strong { display: block; }.money-split small { color: #8b9997; font-size: .6rem; }.money-split strong { font-size: .7rem; }
.receivable-total { display: block; padding: 20px 21px 3px; font-size: 1.7rem; letter-spacing: -.04em; }.receivable-warning, .receivable-ok { margin: 0; padding: 0 21px 17px; font-size: .65rem; }.receivable-warning { color: #a85448; }.receivable-ok { color: #34836c; }.receivable-list { border-top: 1px solid #edf1ef; }.receivable-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 21px; color: #29433f !important; text-decoration: none; }.receivable-list a + a { border-top: 1px solid #f0f3f2; }.receivable-list strong, .receivable-list small { display: block; }.receivable-list strong, .receivable-list b { font-size: .68rem; }.receivable-list small { color: #96a19f; font-size: .58rem; }.receivable-list b { font-weight: 720; }
.dashboard-projects { margin-top: 20px; }.project-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #edf1ef; }.project-mini-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 16px 20px; color: #29433f !important; background: #fff; text-decoration: none; }.project-mini-card:hover { background: #f9fbfa; }.project-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #17685f; background: #e4f2ef; font-size: .75rem; font-weight: 800; }.project-mini-card strong, .project-mini-card span > small { display: block; }.project-mini-card strong { font-size: .72rem; }.project-mini-card span > small { margin-top: 2px; color: #8d9a98; font-size: .61rem; }.project-mini-card b { color: #36534f; font-size: .78rem; }.project-mini-card b small { display: block; color: #98a4a2; font-size: .55rem; font-weight: 500; }
.dashboard-empty { display: flex; align-items: center; gap: 9px; padding: 14px; border-radius: 9px; color: #81908e; background: #f8faf9; font-size: .7rem; }.dashboard-empty p { margin: 0; }.dashboard-empty.compact { margin: 12px 20px; }

@media (max-width: 1100px) { .dashboard-stats { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.dashboard-side { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .22s ease; }.sidebar-open .app-sidebar { transform: translateX(0); }.sidebar-open .app-sidebar-backdrop { position: fixed; z-index: 1030; inset: 0; display: block; background: rgba(8,35,32,.38); backdrop-filter: blur(2px); }.app-main { margin-left: 0; }.app-menu-button { display: block; }.app-topbar-title { display: none; }.app-topbar { padding: 0 20px; }.app-content { padding: 28px 20px 50px; }
}
@media (max-width: 620px) { .dashboard-hero { align-items: stretch; flex-direction: column; }.dashboard-hero h1 { font-size: 2rem; }.page-actions { display: grid; grid-template-columns: 1fr 1fr; }.dashboard-stats, .dashboard-side, .project-strip { grid-template-columns: 1fr; }.dashboard-stat { padding: 14px; }.app-context-form label { display: none; }.app-context-form select { min-width: 115px; }.app-card-header { padding: 16px; }.today-section { padding: 17px 16px; }.today-item { grid-template-columns: 58px 1fr auto; }.project-mini-card { padding: 14px 16px; }.app-content > .d-flex:first-child { align-items: flex-start !important; gap: 14px; flex-direction: column; } }

@media (prefers-reduced-motion: reduce) { .app-nav > a, .dashboard-stat, .app-sidebar { transition: none; } }

/* Sign out confirmation */
.logout-card { text-align: center; }
.logout-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 24px; border-radius: 18px; color: #0e665d; background: #e6f3ef; font-size: 1.5rem; }
.logout-card .auth-form-header { margin-bottom: 28px; }
.logout-card .auth-form-header p { max-width: 370px; margin-right: auto; margin-left: auto; }
.logout-actions { display: grid; gap: 10px; }
.logout-cancel { display: grid; place-items: center; min-height: 50px; border: 1px solid #dce4e2; border-radius: 10px; color: #45605d; text-decoration: none; font-size: .82rem; font-weight: 700; }
.logout-cancel:hover { color: #173c38; background: #f6f9f8; }

.quick-capture { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: -8px 0 22px; padding: 9px 10px 9px 15px; border: 1px solid #dfe7e5; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(23,56,52,.04); }.quick-capture > span { color: #0e665d; font-size: 1.2rem; }.quick-capture input { min-width: 0; height: 38px; border: 0; outline: 0; color: #29433f; font-size: .82rem; }.quick-capture input::placeholder { color: #9aa6a4; }.quick-capture button { height: 38px; padding: 0 14px; border: 0; border-radius: 8px; color: #fff; background: #0e665d; font-size: .7rem; font-weight: 750; }
.inbox-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #edf1ef; }.inbox-item:last-child { border-bottom: 0; }.inbox-dot { width: 9px; height: 9px; border: 2px solid #5aaa91; border-radius: 50%; }.inbox-item strong, .inbox-item small { display: block; }.inbox-item strong { font-size: .78rem; }.inbox-item small { margin-top: 3px; color: #8b9997; font-size: .61rem; }
.time-entry-list > div { padding: 10px 0; border-top: 1px solid #edf1ef; }.time-entry-list strong, .time-entry-list small { display: block; }.time-entry-list strong { font-size: .7rem; }.time-entry-list small { color: #879593; font-size: .63rem; }.attachment-list { display: grid; gap: 7px; }.attachment-list a { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; padding: 9px; border-radius: 8px; color: #29433f; background: #f7faf9; text-decoration: none; }.attachment-list strong, .attachment-list small { display: block; }.attachment-list strong { font-size: .68rem; }.attachment-list small { color: #8b9997; font-size: .59rem; }
@media (max-width:620px) { .quick-capture { grid-template-columns: auto 1fr; }.quick-capture button { grid-column: 1 / -1; }.inbox-item { grid-template-columns: auto 1fr; }.inbox-item form { grid-column: 2; } }
.search-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }.search-results a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid #edf1ef; color: #29433f; text-decoration: none; font-size: .72rem; }.search-results a:hover { background: #f8faf9; }.search-results p { margin: 0; padding: 18px; color: #879593; font-size: .7rem; }
@media (max-width:700px) { .app-global-search { width: min(52vw,300px); }.search-groups { grid-template-columns: 1fr; } }
.dashboard-alert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }.alert-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #edf1ef; color: #29433f; text-decoration: none; }.alert-list strong, .alert-list small { display: block; }.alert-list strong { font-size: .7rem; }.alert-list small { color: #879593; font-size: .6rem; }.alert-list i { color: #9aa8a5; font-style: normal; }
@media (max-width:800px) { .dashboard-alert-grid { grid-template-columns: 1fr; } }

/* Sales note studio */
.app-content:has(.note-studio) { max-width: none; padding: 0; }
.note-studio { display: grid; grid-template-columns: 330px minmax(650px, 1fr); min-height: calc(100vh - 68px); background: #edf1f0; }
.note-controls { position: sticky; top: 68px; overflow-y: auto; height: calc(100vh - 68px); padding: 24px 20px; border-right: 1px solid #dde5e2; background: #fff; }
.note-controls-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.note-controls-heading > a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #dce4e2; border-radius: 9px; color: #34524e; text-decoration: none; }
.note-controls-heading h1 { margin: 0; font-size: 1.2rem !important; font-weight: 750; }
.note-control-group { border-top: 1px solid #e9eeec; }
.note-control-group summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; color: #34504d; cursor: pointer; list-style: none; font-size: .73rem; font-weight: 750; }
.note-control-group summary::-webkit-details-marker { display: none; }
.note-control-group[open] summary span { transform: rotate(180deg); }
.note-control-body { padding: 0 2px 14px; }
.note-control-body .mb-3 { margin-bottom: 12px !important; }
.note-control-body label { margin-bottom: 5px; color: #758582; font-size: .65rem; font-weight: 700; }
.note-control-body .form-control, .note-control-body .form-select { min-height: 39px; font-size: .74rem; }
.note-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 9px; }
.note-control-grid > :nth-child(2), .note-control-grid > :nth-child(3) { grid-column: 1 / -1; }
.note-brand-row { margin-bottom: 13px; }
.note-brand-row > label { display: block; }
.note-brand-row input[type="color"] { float: left; width: 38px; min-height: 34px; height: 34px; margin-right: 8px; padding: 3px; }
.note-swatches { display: flex; gap: 6px; padding-top: 3px; }
.note-swatches button { width: 27px; height: 27px; border: 3px solid #fff; border-radius: 50%; outline: 1px solid #d8e0de; background: var(--swatch); }
.swatch-green { --swatch: #0e665d; }
.swatch-blue { --swatch: #2563eb; }
.swatch-red { --swatch: #dc5d4b; }
.swatch-gold { --swatch: #b7791f; }
.swatch-slate { --swatch: #1e293b; }
.note-brand-hint { margin: 0; color: #71817e; font-size: .78rem; line-height: 1.6; }
/* "COTIZACIÓN" is far wider than "NOTA"; at the shared size its meta box squeezes
   the company column until the name overflows underneath it. */
.note-paper-quote .note-paper-meta { min-width: 165px; }
.note-paper-quote .note-paper-meta h2 { font-size: 1.35rem; letter-spacing: .1em; }
.note-paper-quote .note-company h2 { font-size: 1.25rem; }
.note-control-actions { position: sticky; bottom: -24px; display: grid; gap: 8px; margin: 10px -20px -24px; padding: 16px 20px 20px; border-top: 1px solid #e2e9e7; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.note-canvas-wrap { overflow: auto; padding: 25px clamp(25px, 4vw, 60px) 60px; }
.note-canvas-toolbar { display: flex; align-items: center; justify-content: space-between; width: min(100%, 210mm); margin: 0 auto 12px; color: #7b8a88; font-size: .69rem; }
.note-canvas-toolbar button { padding: 7px 11px; border: 1px solid #d4ddda; border-radius: 7px; color: #365853; background: #fff; font-size: .68rem; font-weight: 700; }
.note-paper { --note-brand: #0e665d; position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; width: min(100%, 210mm); min-height: 297mm; margin: 0 auto; padding: 17mm; color: #253735; background: #fff; box-shadow: 0 18px 50px rgba(25,55,51,.12); font-family: Arial, sans-serif; }
.note-paper::before { content: ""; position: absolute; z-index: -1; width: 210px; height: 210px; top: -125px; right: -105px; border: 42px solid color-mix(in srgb, var(--note-brand) 7%, transparent); border-radius: 50%; }
.note-paper[data-font="serif"] { font-family: Georgia, serif; }.note-paper[data-font="mono"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.note-paper-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 27px; border-bottom: 3px solid var(--note-brand); }
.note-company { display: flex; align-items: flex-start; gap: 17px; min-width: 0; }
.note-logo-preview { display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; width: 98px; height: 98px; border: 1px solid #e2e8e6; border-radius: 16px; color: #9aa7a5; background: #fff; box-shadow: 0 7px 22px rgba(28,58,54,.07); font-size: .65rem; }
.note-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.note-company h2 { margin: 5px 0 9px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; }
.note-company p, .note-paper-meta p { margin: 3px 0; color: #687a77; font-size: .72rem; }
.note-paper-meta { flex: 0 0 auto; min-width: 185px; padding: 17px 18px; border: 1px solid #e2e9e7; border-radius: 14px; text-align: right; background: rgba(255,255,255,.76); }.note-paper-meta h2 { margin: 0 0 12px; color: var(--note-brand); font-size: 2.25rem; font-weight: 850; letter-spacing: .16em; }
.note-paper-client { display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; margin: 28px 0 16px; padding: 15px 17px; border-left: 4px solid var(--note-brand); border-radius: 0 10px 10px 0; color: #657572; background: #f6f9f8; font-size: .71rem; }.note-paper-client span { grid-column: 1 / -1; color: #8b9997; font-size: .57rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.note-paper-client strong { color: #213d39; font-size: .82rem; }.note-paper-client small { align-self: end; color: #80908d; font-size: .63rem; }
.note-items-table { width: 100%; border-collapse: collapse; }
.note-items-table thead { color: #fff; background: var(--note-brand); }
.note-items-table th { padding: 12px 11px; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }.note-items-table th:first-child { width: 70px; }.note-items-table th:nth-child(3), .note-items-table th:nth-child(4) { width: 125px; }.note-items-table th:last-child { width: 28px; }
.note-items-table td { padding: 12px 11px; border-bottom: 1px solid #e5ebe9; vertical-align: top; font-size: .76rem; }
.note-items-table input { width: 100%; min-height: 30px; padding: 4px 5px; border: 1px solid transparent; border-radius: 5px; outline: none; background: transparent; font-size: .7rem; }.note-items-table input:focus { border-color: color-mix(in srgb, var(--note-brand) 40%, white); background: #fafcfb; }.note-items-table input[type="number"] { text-align: right; }
.money-input { display: flex; align-items: center; color: #82908e; }.note-line-total { text-align: right; font-weight: 700; }
.note-remove-item { opacity: 0; width: 25px; height: 25px; border: 0; border-radius: 6px; color: #a65a50; background: #faece9; }.note-item-row:hover .note-remove-item, .note-remove-item:focus { opacity: 1; }
.note-item-errors td { padding: 7px 10px 12px; color: #a5483e; background: #fff6f4; font-size: .63rem; }.note-item-errors ul { margin: 0; padding-left: 18px; }
.note-totals { width: 305px; margin: 30px 0 0 auto; padding: 15px 18px; border: 1px solid #e2e9e7; border-radius: 12px; background: #fbfcfc; }.note-totals p { display: flex; justify-content: space-between; margin: 0; padding: 8px 0; border-bottom: 1px solid #e8edeb; color: #71817e; font-size: .74rem; }.note-totals strong { color: #293f3c; }.note-totals .note-grand-total { margin: 4px -18px -15px; padding: 14px 18px; border: 0; border-radius: 0 0 11px 11px; color: #fff; background: var(--note-brand); font-size: .96rem; font-weight: 800; }.note-grand-total strong { color: #fff; }
.note-paper-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-top: auto; padding: 24px 3px 10px; border-top: 1px solid #dfe7e4; text-align: left; }.note-paper-footer h3 { margin: 0 0 5px; color: #29433f; font-size: .9rem; }.note-paper-footer p { margin: 0; color: #7b8987; font-size: .67rem; }.note-footer-contact { display: grid; gap: 4px; color: #637572; text-align: right; font-size: .64rem; }.note-footer-contact span::before { content: "·"; margin-right: 7px; color: var(--note-brand); font-weight: 900; }
.note-paper-accent { position: absolute; right: 0; bottom: 0; left: 0; height: 7px; background: var(--note-brand); }

@media (max-width: 1050px) { .note-studio { grid-template-columns: 290px minmax(610px, 1fr); }.note-controls { padding-right: 16px; padding-left: 16px; }.note-control-actions { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; } }
@media (max-width: 820px) { .note-studio { display: block; }.note-controls { position: static; height: auto; }.note-canvas-wrap { overflow-x: auto; padding: 24px 16px 50px; }.note-paper, .note-canvas-toolbar { min-width: 680px; }.note-control-actions { position: static; margin-bottom: 0; } }

@media print {
  body:has(.note-studio) .app-sidebar, body:has(.note-studio) .app-topbar, body:has(.note-studio) .note-controls, body:has(.note-studio) .note-canvas-toolbar { display: none !important; }
  body:has(.note-studio) .app-main { margin: 0; }
  body:has(.note-studio) .note-studio, body:has(.note-studio) .note-canvas-wrap { display: block; min-height: 0; padding: 0; background: #fff; }
  .note-paper { width: 210mm; min-width: 210mm; min-height: 297mm; margin: 0; padding: 15mm; box-shadow: none; print-color-adjust: exact; }
  .note-no-print { display: none !important; }
  .note-items-table input { border: 0; }
  @page { size: A4; margin: 0; }
}

/* Project control */
.workspace-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.workspace-heading h1{margin:0;color:#173c38;font-size:2rem;font-weight:800;letter-spacing:-.04em}.workspace-heading>div>p:last-child{margin:7px 0 0;color:#758582;font-size:.8rem}.kanban-filter{display:flex;align-items:center;gap:10px;margin-bottom:14px}.kanban-filter label{color:#71817e;font-size:.7rem;font-weight:700}.kanban-filter select,.kanban-card select,.template-card input{min-height:36px;border:1px solid #dce5e2;border-radius:8px;color:#34504d;background:#fff;font-size:.7rem}.kanban-board{display:grid;grid-template-columns:repeat(5,minmax(230px,1fr));gap:12px;overflow-x:auto;padding-bottom:18px}.kanban-column{min-height:540px;border:1px solid #e0e8e5;border-radius:14px;background:#eef3f1}.kanban-column>header{display:flex;align-items:center;justify-content:space-between;padding:14px;color:#34504d;font-size:.72rem;font-weight:800}.kanban-column>header b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff}.kanban-cards{display:grid;align-content:start;gap:9px;padding:0 9px 10px}.kanban-card{padding:13px;border:1px solid #e1e8e6;border-radius:11px;background:#fff;box-shadow:0 4px 13px rgba(24,57,52,.04)}.kanban-card-top{display:flex;align-items:center;gap:6px;margin-bottom:8px;color:#899794}.kanban-card-top small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.58rem}.kanban-card>a{display:block;margin-bottom:9px;color:#29433f;text-decoration:none;font-size:.75rem;font-weight:750;line-height:1.4}.kanban-card time{color:#71817e;font-size:.6rem}.kanban-card time.overdue{color:#b34e42;font-weight:800}.kanban-card form{margin-top:10px}.kanban-card select{width:100%;height:32px}.priority-dot{width:7px;height:7px;border-radius:50%;background:#92a09e}.priority-high,.priority-urgent{background:#db6655}.priority-medium{background:#d7a13d}.dependency-warning{margin:8px 0 0;color:#a76a20;font-size:.59rem}.kanban-empty{padding:20px 8px;color:#99a5a3;text-align:center;font-size:.66rem}.kanban-blocked{background:#fbf1ed}.kanban-done{background:#edf5f1}.workload-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:11px;overflow-x:auto}.workload-day{min-height:360px;padding:13px;border:1px solid #e0e8e5;border-radius:13px;background:#fff}.workload-day>header{display:flex;justify-content:space-between}.workload-day header strong,.workload-day header small{display:block}.workload-day header strong{font-size:.75rem}.workload-day header small{color:#899794;font-size:.59rem}.workload-day header b{font-size:.7rem}.workload-meter{overflow:hidden;height:5px;margin:12px 0 7px;border-radius:5px;background:#edf2f0}.workload-meter i{display:block;max-width:100%;height:100%;background:#2b8a78}.workload-day.is-overloaded .workload-meter i{background:#d5604f}.workload-day>p{color:#81908d;font-size:.57rem}.workload-day>p em{float:right;color:#bd5142;font-style:normal;font-weight:800}.workload-day>a{display:flex;justify-content:space-between;gap:8px;margin-top:8px;padding:9px;border-radius:8px;color:#34504d;background:#f6f9f8;text-decoration:none;font-size:.63rem}.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.template-card{display:grid;grid-template-columns:auto 1fr;gap:13px;padding:20px}.template-card h2{font-size:1rem}.template-card p{color:#82908e;font-size:.68rem}.template-card form{grid-column:1/-1;display:flex;gap:8px}.template-card input{flex:1;padding:0 10px}.project-health{padding:20px}.project-health>div:first-child{display:flex;justify-content:space-between;color:#34504d;font-size:.75rem}.project-progress{overflow:hidden;height:9px;margin:10px 0 18px;border-radius:9px;background:#eaf0ee}.project-progress i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#0e665d,#54a78d)}.project-money{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.project-money span{padding:12px;border-radius:10px;background:#f7faf9}.project-money small,.project-money b{display:block}.project-money small{color:#81908d;font-size:.59rem}.project-money b{margin-top:4px;font-size:.8rem}.activity-timeline{padding:4px 20px 18px}.activity-timeline>div{display:grid;grid-template-columns:14px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid #edf1ef}.activity-timeline i{width:8px;height:8px;margin-top:5px;border:2px solid #3f9a82;border-radius:50%}.activity-timeline strong,.activity-timeline small{display:block;font-size:.68rem}.activity-timeline p{margin:3px 0;color:#697b78;font-size:.64rem}.activity-timeline small{margin-top:3px;color:#96a19f;font-size:.56rem}.mobile-nav{display:none}
@media(max-width:820px){.app-content{padding-bottom:92px!important}.mobile-nav{position:fixed;z-index:1020;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(5,1fr);height:68px;padding:7px 8px max(7px,env(safe-area-inset-bottom));border-top:1px solid #dce5e2;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}.mobile-nav a{display:grid;place-items:center;color:#6f817e;text-decoration:none;font-size:.55rem}.mobile-nav i{display:block;font-size:1.05rem;font-style:normal}.mobile-nav-add i{display:grid;place-items:center;width:36px;height:36px;margin-top:-20px;border-radius:50%;color:#fff;background:#0e665d;box-shadow:0 5px 14px rgba(14,102,93,.3)}.workspace-heading{align-items:stretch;flex-direction:column}.kanban-board{scroll-snap-type:x mandatory}.kanban-column{width:82vw;scroll-snap-align:start}.workload-day{width:72vw}.project-money{grid-template-columns:1fr}.template-card form{flex-direction:column}}

.note-view-grid { display: grid; grid-template-columns: minmax(650px, 210mm) minmax(270px, 340px); align-items: start; justify-content: center; gap: 22px; }
.note-view .note-paper { width: 100%; }
.note-view-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.note-balance { padding: 12px 20px 18px; }.note-balance p { display: flex; justify-content: space-between; margin: 0; padding: 9px 0; color: #71817e; font-size: .73rem; }.note-balance strong { color: #29433f; }.note-balance .balance-due { margin-top: 4px; padding-top: 13px; border-top: 1px solid #e5ebe9; font-size: .9rem; font-weight: 800; }.balance-due strong { color: #b57923; }
.note-payment-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #edf1ef; }.note-payment-row strong, .note-payment-row small { display: block; }.note-payment-row strong, .note-payment-row b { font-size: .68rem; }.note-payment-row small { color: #8b9997; font-size: .59rem; }
@media (max-width: 1150px) { .note-view-grid { grid-template-columns: minmax(620px, 1fr); }.note-view-side { position: static; grid-template-columns: repeat(2, 1fr); }.note-view-side > :last-child { grid-column: 1 / -1; } }
@media (max-width: 820px) { .note-view { overflow-x: auto; }.note-view-header { min-width: 680px; }.note-view-grid { min-width: 680px; }.note-view-side { grid-template-columns: 1fr; }.note-view-side > :last-child { grid-column: auto; } }
@media print { .note-view-header, .note-view-side { display: none !important; }.note-view-grid { display: block; }.note-view .note-paper { width: 210mm; min-width: 210mm; margin: 0; box-shadow: none; } }

/* Print only the sales note document, never the surrounding application UI. */
@media print {
  body:has(.note-paper) * { visibility: hidden !important; }
  body:has(.note-paper) .note-paper,
  body:has(.note-paper) .note-paper * { visibility: visible !important; }
  body:has(.note-paper) { margin: 0 !important; background: #fff !important; }
  body:has(.note-paper) .app-main,
  body:has(.note-paper) .app-content,
  body:has(.note-paper) .note-studio,
  body:has(.note-paper) .note-canvas-wrap,
  body:has(.note-paper) .note-view,
  body:has(.note-paper) .note-view-grid { display: block !important; overflow: visible !important; width: 0 !important; min-width: 0 !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  body:has(.note-paper) .note-paper { position: absolute !important; top: 0 !important; left: 0 !important; display: flex !important; flex-direction: column !important; width: 210mm !important; min-width: 210mm !important; min-height: 297mm !important; margin: 0 !important; padding: 15mm !important; box-shadow: none !important; print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important; }
  body:has(.note-paper) .note-no-print,
  body:has(.note-paper) .note-remove-item { display: none !important; }
  body:has(.note-paper) .note-items-table input { border: 0 !important; background: transparent !important; }
  @page { size: A4 portrait; margin: 0; }
}

/* Project and service catalogue */
.project-type-filters{display:flex;gap:8px;overflow-x:auto;margin-bottom:16px;padding-bottom:4px}.project-type-filters>a{display:flex;align-items:center;flex:0 0 auto;gap:7px;padding:7px 11px;border:1px solid #dfe7e5;border-radius:999px;color:#607572;background:#fff;text-decoration:none;font-size:.65rem;font-weight:700}.project-type-filters>a.active{border-color:#0e665d;color:#fff;background:#0e665d}.project-type-filters i{display:grid;place-items:center;width:21px;height:21px;border-radius:6px;color:#fff;background:var(--type-color);font-style:normal}.project-type-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:7px;color:color-mix(in srgb,var(--type-color) 75%,#223);background:color-mix(in srgb,var(--type-color) 11%,#fff);font-size:.6rem;font-weight:750}.project-type-badge i{font-style:normal}.service-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}.service-type-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:14px;padding:18px;border:1px solid #e0e8e5;border-radius:14px;color:#29433f;background:#fff;text-decoration:none;box-shadow:0 6px 20px rgba(23,56,52,.04);transition:transform .16s ease,box-shadow .16s ease}.service-type-card:hover{transform:translateY(-2px);color:#29433f;box-shadow:0 10px 28px rgba(23,56,52,.09)}.service-type-card>i{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;color:#fff;background:var(--type-color);font-size:1.15rem;font-style:normal}.service-type-card strong{display:block;font-size:.78rem}.service-type-card p{margin:4px 0;color:#758582;font-size:.64rem;line-height:1.45}.service-type-card small{color:var(--type-color);font-size:.56rem;font-weight:750}.service-type-card>b{color:#9ba8a5}.service-context{display:grid;grid-template-columns:1fr auto;gap:18px;padding:17px 20px}.service-context small,.service-context strong,.service-context span{display:block}.service-context small{color:#82918e;font-size:.58rem}.service-context strong,.service-context a{margin-top:4px;color:#29433f;font-size:.75rem;font-weight:750}.service-context span{margin-top:3px;color:#82918e;font-size:.59rem}
@media(max-width:620px){.project-type-filters{margin-right:-20px;padding-right:20px}.service-catalog{grid-template-columns:1fr}.service-type-card{grid-template-columns:42px 1fr auto;padding:14px}.service-type-card>i{width:42px;height:42px}.service-context{grid-template-columns:1fr}.table-responsive .project-type-badge{white-space:nowrap}}
