:root{--brand-50: #eef3f0;--brand-100: #d9e5de;--brand-200: #b6cdc0;--brand-300: #86ab97;--brand-500: #34664f;--brand-600: #2a5843;--brand-700: #234d3c;--brand-800: #1a3b2d;--brand-900: #122a20;--earth-100: #f1e8e0;--earth-400: #b08a6b;--earth-600: #8a6246;--sand-100: #f7f0e4;--sand-200: #eee1cb;--sand-400: #d9b98c;--bg: #f1ede3;--surface: #ffffff;--surface-alt: #f7f4ec;--surface-sunk: #e7e0d2;--ink: #1f2924;--ink-soft: #4a554e;--ink-muted: #66736c;--line: #e5e3dc;--line-soft: #efede7;--success: #2f7d57;--success-bg: #e9f3ed;--warning: #b98225;--warning-bg: #fbf2e1;--danger: #b94a48;--danger-bg: #f9ebea;--info: #477a83;--info-bg: #eaf2f3;--transit: #8a6246;--transit-bg: #f1e8e0;--radius-sm: 8px;--radius: 12px;--radius-lg: 16px;--radius-pill: 999px;--shadow-sm: 0 1px 2px rgba(31, 41, 36, .04);--shadow: 0 1px 3px rgba(31, 41, 36, .05), 0 6px 16px -8px rgba(31, 41, 36, .09);--shadow-lg: 0 2px 6px rgba(31, 41, 36, .06), 0 16px 36px -16px rgba(31, 41, 36, .16);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-6: 24px;--space-8: 32px;--space-12: 48px;--space-16: 64px;--sidebar-width: 244px;--topbar-height: 64px;--font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace}*,*:before,*:after{box-sizing:border-box}*{margin:0}html{-webkit-text-size-adjust:100%}body{font-family:var(--font-sans);font-size:15px;line-height:1.55;color:var(--ink);background:var(--surface-alt);-webkit-font-smoothing:antialiased}img,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:none;padding:0}a{color:var(--brand-700);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4{line-height:1.25;font-weight:700}h1{font-size:1.5rem}h2{font-size:1.15rem}h3{font-size:1rem}:focus-visible{outline:2px solid var(--brand-500);outline-offset:2px;border-radius:3px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset-block:0;left:0;width:var(--sidebar-width);background:var(--brand-900);color:var(--brand-200);display:flex;flex-direction:column;z-index:60;transform:translate(-100%);transition:transform .2s ease}.sidebar--open{transform:translate(0)}.sidebar__brand{display:flex;align-items:center;gap:.6rem;padding:1.1rem 1.15rem;border-bottom:1px solid rgba(255,255,255,.09);color:#fff;font-weight:700;font-size:.98rem}.sidebar__brand:hover{text-decoration:none}.sidebar__nav{flex:1;padding:.85rem .7rem;display:flex;flex-direction:column;gap:.15rem;overflow-y:auto}.sidebar__link{display:flex;align-items:center;gap:.7rem;padding:.68rem .8rem;border-radius:var(--radius-sm);color:var(--brand-200);font-size:.91rem;font-weight:500;min-height:44px;transition:background-color .15s ease,color .15s ease}.sidebar__link:hover{background:#ffffff12;color:#fff;text-decoration:none}.sidebar__link--active{position:relative;background:#ffffff17;color:#fff;font-weight:600}.sidebar__link--active:before{content:"";position:absolute;left:-.8rem;top:50%;transform:translateY(-50%);width:3px;height:22px;border-radius:0 3px 3px 0;background:var(--sand-400)}.sidebar__link svg{flex-shrink:0;opacity:.85}.sidebar__badge{margin-left:auto;min-width:21px;padding:0 6px;height:20px;border-radius:999px;background:var(--brand-500);color:#fff;font-size:.7rem;font-weight:700;line-height:20px;text-align:center}.sidebar__footer{padding:.9rem 1.15rem;border-top:1px solid rgba(255,255,255,.09);font-size:.8rem;color:var(--sand-400)}.sidebar__user{color:#fff;font-weight:600;font-size:.88rem}.sidebar__signout{margin-top:.55rem;color:var(--sand-400);font-size:.83rem;text-decoration:underline}.sidebar__signout:hover{color:#fff}.overlay{position:fixed;inset:0;background:#241c1480;z-index:55}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:40;min-height:var(--topbar-height);display:flex;align-items:center;gap:.85rem;padding:.6rem 1rem;background:var(--surface);border-bottom:1px solid var(--line)}.topbar__title{font-size:1.08rem;font-weight:700;letter-spacing:-.02em;margin-right:auto}.topbar__toggle{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:var(--radius-sm);color:var(--ink-soft)}.topbar__toggle:hover{background:var(--surface-sunk)}.content{padding:1.15rem 1rem 3rem;flex:1}@media(min-width:1024px){.sidebar{transform:translate(0)}.main{margin-left:var(--sidebar-width)}.topbar{padding-inline:1.5rem}.topbar__toggle{display:none}.content{padding:1.5rem 1.5rem 3rem}.overlay{display:none}}.page-head{display:flex;flex-wrap:wrap;gap:.85rem;align-items:flex-end;justify-content:space-between;margin-bottom:1.25rem}.page-head__sub{color:var(--ink-muted);font-size:.88rem;margin-top:.2rem}.page-actions{display:flex;flex-wrap:wrap;gap:.5rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}.card__head{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;padding:.95rem 1.15rem;border-bottom:1px solid var(--line)}.card__title{font-size:.98rem;font-weight:700}.card__body{padding:1.15rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.5rem .95rem;border-radius:var(--radius-sm);font-size:.88rem;font-weight:600;border:1.5px solid transparent;min-height:38px;transition:background-color .15s ease,border-color .15s ease;white-space:nowrap}.btn:hover{text-decoration:none}.btn:disabled{opacity:.55;cursor:not-allowed}.btn--primary{background:var(--brand-700);color:#fff}.btn--primary:hover:not(:disabled){background:var(--brand-800)}.btn--secondary{background:var(--brand-600);color:#fff}.btn--secondary:hover:not(:disabled){background:var(--brand-500)}.btn--outline{border-color:var(--line);background:var(--surface);color:var(--ink-soft)}.btn--outline:hover:not(:disabled){background:var(--surface-sunk);border-color:var(--sand-400);color:var(--ink)}.btn--danger{background:var(--danger);color:#fff}.btn--danger:hover:not(:disabled){background:#8f2020}.btn--ghost{color:var(--ink-muted);min-height:32px;padding:.3rem .55rem}.btn--ghost:hover:not(:disabled){background:var(--surface-sunk);color:var(--ink)}.btn--sm{padding:.3rem .65rem;font-size:.8rem;min-height:32px}.btn--block{width:100%}.field{display:flex;flex-direction:column;gap:.3rem}.field__label{font-size:.83rem;font-weight:600;color:var(--ink-soft)}.field__required{color:var(--danger)}.field__hint{font-size:.78rem;color:var(--ink-muted)}.field__error{font-size:.78rem;color:var(--danger);font-weight:500}.input,.select,.textarea{width:100%;padding:.5rem .7rem;border:1.5px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);font-size:.9rem;transition:border-color .15s ease}.input:focus,.select:focus,.textarea:focus{border-color:var(--brand-500);outline:none;box-shadow:0 0 0 3px #5b8f5724}.input[aria-invalid=true],.select[aria-invalid=true]{border-color:var(--danger)}.input:disabled,.select:disabled{background:var(--surface-sunk);color:var(--ink-muted)}.textarea{min-height:96px;resize:vertical;line-height:1.6}.checkbox{display:flex;align-items:center;gap:.5rem;font-size:.88rem;cursor:pointer}.checkbox input{width:17px;height:17px;accent-color:var(--brand-700);cursor:pointer}.form-grid{display:grid;gap:1rem}@media(min-width:700px){.form-grid--2{grid-template-columns:repeat(2,1fr)}.form-grid--3{grid-template-columns:repeat(3,1fr)}.form-grid__full{grid-column:1 / -1}}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.table{width:100%;border-collapse:collapse;min-width:640px}.table th,.table td{padding:.8rem 1rem;text-align:left;border-bottom:1px solid var(--line-soft);font-size:.87rem;vertical-align:middle}.table th{background:var(--surface-sunk);font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-muted);white-space:nowrap;position:sticky;top:0}.table tbody tr:last-child td{border-bottom:none}.table tbody tr{transition:background-color .12s ease}.table tbody tr:hover{background:var(--surface-alt)}.table .numeric{text-align:right;font-variant-numeric:tabular-nums}.table .actions{white-space:nowrap;text-align:right}.table__thumb{width:42px;height:42px;border-radius:var(--radius-sm);object-fit:cover;background:var(--sand-100)}.table__primary{font-weight:600;color:var(--ink)}.table__secondary{font-size:.79rem;color:var(--ink-muted)}.table__mono{font-family:var(--font-mono);font-size:.82rem}.badge{display:inline-flex;align-items:center;gap:.25rem;padding:.18rem .5rem;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap}.badge--success{background:var(--success-bg);color:var(--success)}.badge--warning{background:var(--warning-bg);color:var(--warning)}.badge--danger{background:var(--danger-bg);color:var(--danger)}.badge--info{background:var(--info-bg);color:var(--info)}.badge--transit{background:var(--transit-bg);color:var(--transit)}.badge--neutral{background:var(--surface-sunk);color:var(--ink-muted)}.alert{padding:.7rem .95rem;border-radius:var(--radius-sm);border-left:4px solid;font-size:.88rem;margin-bottom:1rem}.alert--error{background:var(--danger-bg);border-color:var(--danger);color:#7d1f1f}.alert--success{background:var(--success-bg);border-color:var(--success);color:#205430}.alert--warning{background:var(--warning-bg);border-color:var(--warning);color:#7a4c0a}.alert--info{background:var(--info-bg);border-color:var(--info);color:#234a6b}.toasts{position:fixed;bottom:1rem;right:1rem;z-index:200;display:flex;flex-direction:column;gap:.5rem;max-width:min(24rem,calc(100vw - 2rem))}.toast{padding:.75rem 1rem;border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);font-size:.88rem;font-weight:500;color:#fff;animation:toast-in .2s ease}.toast--success{background:var(--success)}.toast--error{background:var(--danger)}.toast--info{background:var(--info)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal-backdrop{position:fixed;inset:0;background:#241c148c;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem;overflow-y:auto}.modal{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:100%;max-width:30rem;max-height:calc(100vh - 2rem);display:flex;flex-direction:column}.modal--wide{max-width:46rem}.modal__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--line)}.modal__title{font-size:1.02rem;font-weight:700}.modal__close{width:32px;height:32px;border-radius:var(--radius-sm);display:grid;place-items:center;color:var(--ink-muted);font-size:1.2rem;line-height:1}.modal__close:hover{background:var(--surface-sunk);color:var(--ink)}.modal__body{padding:1.25rem;overflow-y:auto}.modal__foot{display:flex;gap:.6rem;justify-content:flex-end;padding:.95rem 1.25rem;border-top:1px solid var(--line);background:var(--surface-alt);border-radius:0 0 var(--radius-lg) var(--radius-lg)}.muted{color:var(--ink-muted)}.mono{font-family:var(--font-mono)}.nowrap{white-space:nowrap}.spinner{width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:linear-gradient(90deg,var(--surface-sunk) 25%,var(--line-soft) 37%,var(--surface-sunk) 63%);background-size:400% 100%;animation:shimmer 1.4s ease-in-out infinite;border-radius:var(--radius-sm)}@keyframes shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}@media(prefers-reduced-motion:reduce){.skeleton{animation:none;background:var(--surface-sunk)}}.empty{text-align:center;padding:2.75rem 1rem;color:var(--ink-muted)}.empty h3{color:var(--ink);margin-bottom:.4rem}.loading-page{display:grid;place-items:center;min-height:60vh;color:var(--ink-muted);gap:.6rem}.pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1rem;font-size:.85rem;color:var(--ink-muted)}.pagination__buttons{display:flex;gap:.4rem}.filters-bar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:1rem}.filters-bar .input,.filters-bar .select{width:auto;min-width:11rem}.filters-bar__search{flex:1;min-width:12rem}.kpi-grid{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fill,minmax(196px,1fr));margin-bottom:var(--space-6)}.kpi{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-4);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);color:inherit;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}a.kpi:hover{text-decoration:none;border-color:var(--brand-300);box-shadow:var(--shadow);transform:translateY(-1px)}.kpi__head{display:flex;align-items:center;gap:var(--space-2)}.kpi__icon{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:var(--brand-50);color:var(--brand-700);flex-shrink:0}.kpi__label{font-size:.73rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-muted)}.kpi__value{font-size:1.7rem;font-weight:700;line-height:1.05;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}.kpi__hint{font-size:.77rem;color:var(--ink-muted);line-height:1.45}.kpi--attention .kpi__icon{background:var(--warning-bg);color:var(--warning)}.kpi--attention .kpi__value{color:var(--warning)}.kpi--critical .kpi__icon{background:var(--danger-bg);color:var(--danger)}.kpi--critical .kpi__value{color:var(--danger)}.kpi--money .kpi__icon{background:var(--success-bg);color:var(--success)}.trend{display:flex;align-items:flex-end;gap:4px;height:156px}.trend__col{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;height:100%}.trend__track{flex:1;width:100%;display:flex;align-items:flex-end}.trend__bar{width:100%;border-radius:3px 3px 0 0;background:var(--brand-500);transition:background-color .16s ease}.trend__col:hover .trend__bar{background:var(--brand-700)}.trend__bar--empty{background:var(--line)}.trend__label{font-size:.62rem;color:var(--ink-muted);white-space:nowrap;font-variant-numeric:tabular-nums}html,body{max-width:100%;overflow-x:hidden}.content{min-width:0}@media(max-width:640px){.page-head{align-items:flex-start}.page-head__sub{font-size:.85rem}.btn{min-height:42px}.btn--ghost{min-height:38px;padding:.4rem .6rem}.filters-bar{gap:var(--space-2)}.filters-bar .input,.filters-bar .select{min-width:0;width:100%}.filters-bar__search{flex-basis:100%}.kpi-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--space-2)}.kpi__value{font-size:1.45rem}.modal__foot{flex-direction:column-reverse}.modal__foot .btn{width:100%}.table th,.table td{padding:.65rem .75rem}}.table .actions{display:flex;flex-wrap:wrap;gap:var(--space-1);justify-content:flex-end}.card{border-color:var(--line)}.card__head{background:var(--surface-alt);border-radius:var(--radius) var(--radius) 0 0}.table-wrap{box-shadow:var(--shadow-sm)}.topbar{box-shadow:0 1px #fff9,0 4px 16px -14px #1f292480}.empty{background:var(--surface-alt);border-radius:var(--radius);margin:var(--space-4)}.empty h3{font-size:1rem}.empty p{font-size:.88rem;max-width:40ch;margin-inline:auto;line-height:1.6}
