:root {
  --ink:#172d24; --muted:#5c6d63; --green:#18583d; --deep:#10382a;
  --lime:#c8ef82; --line:#dce3da; --paper:#fff; --canvas:#f5f7f3; --radius:14px;
  --side-width:234px; --font:'Inter','Segoe UI',Arial,sans-serif;
  font-family:var(--font); font-size:16px; color:var(--ink); background:var(--canvas);
  font-synthesis:none; text-rendering:optimizeLegibility;
}
* { box-sizing:border-box; }
body { margin:0; min-width:300px; }
button, input, select, textarea { font:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; }
[hidden] { display:none !important; }
a { color:inherit; }
:where(a,button,input,select,textarea):focus-visible { outline:3px solid #79a84c; outline-offset:3px; }
.skip-link { position:fixed; z-index:150; top:.5rem; left:.5rem; padding:.65rem 1rem; border-radius:8px; background:#fff; transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
.icon-defs { position:absolute; width:0; height:0; overflow:hidden; }
.ico { width:20px; height:20px; display:inline-block; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.app-frame { min-height:100vh; }
.sidebar { background:var(--deep); color:#f8fbf5; position:fixed; inset:0 auto 0 0; width:var(--side-width); z-index:20; display:flex; flex-direction:column; padding:0 17px; overflow-y:auto; }
.brand { display:flex; align-items:center; gap:10px; margin:30px 13px 35px; }
.brand-mark { width:43px; height:44px; flex-shrink:0; }
.brand strong, .brand small { display:block; }
.brand strong { font-family:var(--font); font-size:1.28rem; font-weight:800; letter-spacing:.045em; line-height:1.15; }
.brand small { color:#c2d8c9; font-size:.82rem; margin-top:4px; letter-spacing:.035em; }
.primary-nav, .admin-nav { display:flex; flex-direction:column; gap:4px; }
.primary-nav { border-top:1px solid #ffffff20; padding-top:24px; }
.admin-nav { padding-top:23px; margin-top:23px; border-top:1px solid #ffffff20; }
.nav-caption { font-size:.75rem; font-weight:650; letter-spacing:.06em; color:#b0c7b9; margin:0 13px 8px; }
.nav-item { appearance:none; display:flex; width:100%; align-items:center; gap:13px; padding:12px 14px; min-height:45px; border:0; border-radius:8px; background:transparent; color:#dbe8de; font-size:.92rem; font-weight:500; text-decoration:none; text-align:left; }
.nav-item .ico { width:19px; height:19px; color:#becfc3; }
.nav-item:hover { background:#ffffff0e; color:#fff; }
.nav-item.active { color:#e7fcca; background:#29523d; }
.nav-item.active .ico { color:#c8ef82; }
.side-profile { margin-top:auto; display:flex; gap:11px; align-items:center; padding:21px 5px 23px; border-top:1px solid #ffffff22; }
.profile-avatar { flex-shrink:0; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#345840; color:#deefc9; font-size:.88rem; font-weight:650; }
.side-profile div { min-width:0; }
.side-profile strong,.side-profile small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.45; }
.side-profile strong { color:#f3f7ef; font-size:.87rem; font-weight:600; }
.side-profile small { color:#c3d4c6; font-size:.76rem; }
.mobile-menu,.nav-close,.nav-overlay { display:none; }
.stage { min-height:100vh; margin-left:var(--side-width); }
.topbar { height:65px; background:#fff; display:flex; gap:20px; align-items:center; justify-content:space-between; padding:0 clamp(22px,3.2vw,58px); border-bottom:1px solid var(--line); }
.crumbs,.top-date { display:flex; align-items:center; gap:12px; }
.crumbs { font-size:.86rem; }
.crumb-base,.crumb-sep { color:var(--muted); }
.crumb-sep { opacity:.65; }
.crumbs strong { font-weight:600; }
.top-date { color:var(--muted); gap:8px; font-size:.84rem; }
.top-date .ico { width:16px; height:16px; }
#main { max-width:1680px; margin:0 auto; padding:32px clamp(22px,3.2vw,58px) 48px; outline:0; }
.page-title-row { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:24px; }
.page-title-row h1 { margin:0; font-size:clamp(1.95rem,2.65vw,2.65rem); line-height:1.14; letter-spacing:-.055em; font-weight:670; }
.page-title-row p { margin:8px 0 0; font-size:.94rem; color:var(--muted); }
.primary-btn, .neutral-btn, .agenda-btn { appearance:none; display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:42px; padding:9px 15px; border:1px solid transparent; border-radius:8px; font-size:.9rem; font-weight:600; text-decoration:none; white-space:nowrap; }
.primary-btn { background:var(--green); color:#fff; }
.primary-btn:hover { background:#10492f; }
.primary-btn .ico { width:17px; height:17px; stroke-width:2; }
.neutral-btn { border-color:var(--line); background:#fff; color:var(--ink); }
.neutral-btn:hover { background:#f3f6ef; }
.kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:19px; }
.kpi { font-family:inherit; text-align:left; padding:17px 18px 15px; border-radius:12px; border:1px solid var(--line); background:var(--paper); min-width:0; color:var(--ink); transition:box-shadow .14s ease,border-color .14s ease; }
button.kpi:hover { border-color:#aabfac; box-shadow:0 3px 12px #18351e09; }
.kpi-top { display:flex; align-items:center; justify-content:space-between; gap:5px; }
.kpi-title { font-size:.89rem; font-weight:600; }
.kpi-icon, .empty-icon, .event-icon { display:inline-grid; place-items:center; border-radius:10px; flex-shrink:0; }
.kpi-icon { width:34px; height:34px; background:#edf4df; color:#527732; }
.kpi-icon .ico { width:18px; height:18px; }
.kpi.overdue .kpi-icon { color:#ac5a38; background:#fbede6; }
.kpi.review .kpi-icon { color:#99711f; background:#fcf2d9; }
.kpi.paid .kpi-icon { color:#227356; background:#e3f4e9; }
.kpi-amount { display:block; font-size:clamp(1.43rem,2.1vw,2.1rem); font-weight:640; letter-spacing:-.046em; line-height:1.15; margin-top:10px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.kpi-count { display:block; margin-top:6px; font-size:.79rem; color:var(--muted); }
.agenda-band { position:relative; overflow:hidden; display:flex; align-items:center; min-height:143px; padding:22px 25px; background:#dfeeca; border:1px solid #d2e3bd; border-radius:13px; margin-bottom:24px; }
.agenda-copy { z-index:1; position:relative; width:64%; }
.agenda-period { display:flex; align-items:center; gap:7px; color:#42683b; font-size:.76rem; font-weight:650; letter-spacing:.035em; }
.agenda-period .ico { width:15px; height:15px; }
.agenda-band h2 { margin:8px 0 5px; font-size:clamp(1.26rem,1.65vw,1.6rem); font-weight:650; letter-spacing:-.04em; line-height:1.18; color:#173f2b; }
.agenda-band p { margin:0; font-size:.9rem; line-height:1.5; color:#37573c; }
.agenda-btn { min-height:32px; color:#244c32; border-color:#9fb990; background:#edf5e3; font-size:.8rem; padding:4px 10px; margin-top:9px; }
.agenda-btn:hover { background:#f8fbea; }
.field-art { position:absolute; right:0; top:0; width:45%; height:100%; pointer-events:none; overflow:visible; }
.workspace-panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:20px; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px; }
.panel-heading h2 { font-size:1.14rem; letter-spacing:-.03em; font-weight:650; margin:0; }
.panel-heading h2 .count-tag { vertical-align:2px; }
.count-tag { display:inline-flex; align-items:center; justify-content:center; font-size:.73rem; font-weight:600; letter-spacing:0; min-width:21px; height:21px; padding:0 6px; border-radius:6px; background:#eef2eb; color:#526657; margin-left:7px; }
.text-btn { appearance:none; padding:5px 0 5px 6px; font-size:.85rem; font-weight:600; color:var(--green); background:none; border:0; }
.text-btn:hover { text-decoration:underline; text-underline-offset:3px; }
.table-tools { display:flex; align-items:center; gap:9px; padding:0 22px 16px; }
.search-field { display:flex; flex:1; align-items:center; gap:9px; border:1px solid var(--line); border-radius:8px; padding:0 11px; height:39px; max-width:395px; background:#fff; }
.search-field:focus-within,.select-field:focus-within { border-color:var(--green); box-shadow:0 0 0 2px #18583d18; }
.search-field .ico,.select-field .ico { width:16px; height:16px; color:#68786b; }
.search-field input { background:none; border:0; font-size:.87rem; min-width:0; width:100%; height:100%; padding:0; outline:none; color:var(--ink); }
.search-field input:focus-visible,.select-field select:focus-visible { outline:none; }
.search-field input::placeholder { color:#69766c; }
.select-field { position:relative; display:flex; align-items:center; border:1px solid var(--line); border-radius:8px; height:39px; background:#fff; }
.select-field select { appearance:none; cursor:pointer; border:0; background:transparent; font-size:.85rem; color:#394a3e; padding:8px 32px 8px 34px; line-height:1.2; width:100%; }
.select-field .filter-icon { position:absolute; pointer-events:none; left:10px; }
.select-field .chev-icon { width:13px; height:13px; position:absolute; pointer-events:none; right:10px; }
.table-scroll { overflow:auto; }
.data-table { width:100%; border-collapse:collapse; text-align:left; font-variant-numeric:tabular-nums; font-size:.89rem; }
.data-table thead { background:#f7f9f5; color:#58695c; border-block:1px solid #e4eae1; }
.data-table th,.data-table td { padding:12px 12px; }
.data-table th { font-size:.78rem; font-weight:600; white-space:nowrap; }
.data-table th:first-child,.data-table td:first-child { padding-left:22px; }
.data-table th:last-child,.data-table td:last-child { padding-right:22px; }
.data-table td { border-bottom:1px solid #e9ede6; }
.data-table tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:#fafcf8; }
.supplier-button { display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:3px 0; border:0; background:transparent; color:var(--ink); text-align:left; }
.supplier-button strong { font-size:.89rem; font-weight:600; overflow-wrap:anywhere; }
.supplier-button:hover strong { text-decoration:underline; color:var(--green); }
.supplier-button small { color:var(--muted); font-size:.78rem; max-width:23ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.money-cell { font-weight:600; white-space:nowrap; }
.method-label { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.method-label .ico { color:#637769; width:15px; height:15px; }
.status-pill { display:inline-flex; align-items:center; padding:4px 8px; border-radius:5px; font-size:.76rem; font-weight:600; white-space:nowrap; background:#edf1e8; color:#456143; }
.status-pill.overdue { color:#984728; background:#fae8df; }
.status-pill.review { color:#846316; background:#faf0d4; }
.status-pill.paid { color:#236945; background:#e4f2e7; }
.row-view { display:grid; place-items:center; margin-left:auto; padding:5px; background:transparent; border:0; border-radius:5px; color:#627667; }
.row-view:hover { background:#edf3e8; }
.row-view .ico { width:15px; height:15px; }
.empty-box { display:flex; flex-direction:column; align-items:center; text-align:center; padding:25px 18px 28px; }
.empty-icon { width:42px; height:42px; border:1px solid #dce7d6; background:#f1f6eb; color:#58754d; }
.empty-icon .ico { width:21px; height:21px; }
.empty-box h3 { margin:10px 0 5px; font-size:.98rem; letter-spacing:-.02em; font-weight:600; }
.empty-box p { margin:0; color:var(--muted); line-height:1.45; font-size:.86rem; }
.empty-box .text-btn { padding:0; margin-top:10px; }
.no-activity { display:flex; gap:13px; align-items:center; border-top:1px solid #e7ece4; padding:18px 22px; color:var(--muted); }
.no-activity .ico { width:19px; height:19px; color:#688367; }
.no-activity p { margin:0; font-size:.88rem; }
.events { margin:0; padding:0 22px; list-style:none; }
.events li { display:flex; gap:12px; align-items:center; border-top:1px solid #e7ece4; padding:13px 0; }
.event-icon { color:#557951; background:#eef4e8; width:33px; height:33px; }
.event-icon .ico { width:16px; height:16px; }
.event-text { min-width:0; flex:1; line-height:1.4; }
.event-text strong,.event-text small { display:block; }
.event-text strong { font-weight:600; font-size:.88rem; }
.event-text small,.events time { font-size:.78rem; color:var(--muted); }
.event-link { padding:0; border:0; background:none; text-align:left; color:inherit; }
.event-link:hover strong { text-decoration:underline; }
.pager { border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 22px; color:var(--muted); font-size:.84rem; }
.pager div { display:flex; gap:6px; }
.pager button { background:#fff; border:1px solid var(--line); border-radius:6px; padding:6px 9px; font-size:.8rem; color:var(--ink); }
.pager button:disabled { opacity:.45; }
.load-panel,.state-card { border:1px solid var(--line); background:#fff; padding:32px; border-radius:var(--radius); }
.load-panel { display:flex; align-items:center; gap:12px; color:var(--muted); }
.spinner { display:inline-block; width:17px; height:17px; border-radius:50%; border:2px solid var(--line); border-top-color:var(--green); animation:spin .9s linear infinite; }
@keyframes spin { to {transform:rotate(360deg)} }
.state-card { max-width:740px; }
.state-card h2 { font-size:1.25rem; letter-spacing:-.03em; margin:14px 0 7px; }
.state-card p { color:var(--muted); line-height:1.6; margin:0 0 12px; }
.state-card button { margin-top:4px; }
.app-toast { position:fixed; bottom:20px; right:20px; z-index:150; color:#fff; background:var(--deep); font-size:.9rem; border-radius:9px; padding:13px 18px; max-width:min(88vw,480px); box-shadow:0 6px 25px #10382a26; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(min-width:1540px) { .agenda-band { min-height:162px; } }
@media(max-width:1170px) { :root { --side-width:209px; } .kpi { padding:14px; } .kpi-grid { gap:10px; } .kpi-title { font-size:.83rem; } .kpi-icon { width:29px; height:29px; } }
@media(max-width:980px) { :root { --side-width:185px; } .sidebar { padding-inline:11px; } .brand { margin-inline:8px; } .brand strong { font-size:1.11rem; } .brand-mark { width:36px; } .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .kpi { padding:14px 17px; } .kpi-amount { margin-top:6px; } .kpi-title { font-size:.89rem; } .stage .data-table th,.stage .data-table td { padding-inline:8px; } .stage .data-table th:first-child,.stage .data-table td:first-child { padding-left:16px; } }
@media(max-width:740px) {
  :root { --side-width:238px; } .sidebar { transform:translateX(-101%); transition:transform .18s ease; padding-inline:17px; z-index:42; } .menu-open .sidebar { transform:translateX(0); } .menu-open .nav-overlay { display:block; position:fixed; inset:0; background:#10291e65; border:0; z-index:40; }
  .nav-close,.mobile-menu { display:grid; place-items:center; width:36px; height:36px; padding:4px; border:0; border-radius:6px; }
  .nav-close { position:absolute; right:8px; top:8px; background:transparent; color:#e3eddc; }
  .mobile-menu { background:#f2f5ef; color:var(--green); } .mobile-menu .ico { width:19px; }
  .stage { margin:0; } .topbar { height:55px; gap:8px; padding:0 18px; } .crumbs { gap:9px; } .top-date { font-size:.76rem; } .top-date .ico { width:14px; height:14px; } #main { padding:24px 18px 36px; }
  .page-title-row { margin-bottom:18px; align-items:center; } .page-title-row h1 { font-size:1.85rem; } .page-title-row p { font-size:.86rem; line-height:1.4; } .primary-btn { min-height:40px; font-size:.84rem; padding-inline:12px; }
  .agenda-band { margin-bottom:18px; padding:18px; min-height:135px; } .agenda-copy { width:70%; } .field-art { width:38%; }
  .panel-heading { padding:17px; } .table-tools { padding:0 17px 13px; } .kpi-grid { margin-bottom:14px; }
  .events { padding:0 17px; } .no-activity { padding:15px 17px; }
}
@media(max-width:520px) {
  .crumb-base,.crumb-sep { display:none; } .top-date { gap:5px; }
  #main { padding-inline:14px; } .topbar { padding-inline:14px; } .page-title-row { gap:8px; } .page-title-row p { max-width:23ch; }
  .kpi { padding:12px; } .kpi-top { gap:3px; } .kpi-title { font-size:.8rem; } .kpi-amount { font-size:1.5rem; } .kpi-count { font-size:.75rem; } .kpi-icon { width:27px; height:27px; border-radius:7px; } .kpi-icon .ico { width:15px; height:15px; }
  .agenda-copy { width:75%; } .agenda-band p { font-size:.83rem; } .field-art { opacity:.8; width:32%; } .agenda-band { padding:16px; min-height:130px; } .agenda-period { font-size:.73rem; }
  .table-tools { flex-wrap:wrap; gap:7px; } .search-field { flex:1 1 145px; } .select-field select { padding-left:10px; max-width:130px; } .select-field .filter-icon { display:none; } .table-tools .ico { width:14px; } .data-table { min-width:560px; } .panel-heading h2 { font-size:1.03rem; }
  .empty-box { padding:20px 14px 24px; } .events time { max-width:71px; text-align:right; } .pager { padding:10px 13px; font-size:.76rem; gap:6px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
.profile-menu-wrap { margin-top:auto; position:relative; }
.profile-menu-wrap .side-profile { width:100%; text-align:left; background:none; border:0; border-radius:0; border-top:1px solid #ffffff22; cursor:pointer; }
.profile-menu-wrap .side-profile .ico { margin-left:auto; width:15px; height:15px; }
.profile-menu { padding:5px; border:1px solid #446a54; border-radius:9px; background:#1a4433; position:absolute; bottom:calc(100% - 2px); width:100%; }
.profile-menu button { text-align:left; padding:9px 11px; border:0; background:none; width:100%; color:#f3f8ed; border-radius:5px; font-size:.87rem; }
.profile-menu button:hover { background:#31563e; }
body.auth-mode { background:#f7f8f4; }
body.auth-mode .app-frame { display:none; }
.login-screen { min-height:100vh; min-height:100dvh; display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); }
.login-landscape { color:#f1f6e9; background:#10382a; padding:clamp(32px,5vw,86px); position:relative; overflow:hidden; isolation:isolate; display:flex; flex-direction:column; }
.login-brand { margin:0; }
.login-brand .brand-mark { width:42px; }
.login-landscape-copy { position:relative; z-index:2; margin:clamp(48px,11vh,128px) 0 0; }
.login-landscape h1 { font-size:clamp(3.3rem,5.7vw,6.6rem); line-height:.99; letter-spacing:-.067em; font-weight:600; margin:0; }
.login-landscape-copy p { font-size:clamp(.94rem,1.15vw,1.16rem); line-height:1.55; font-weight:400; color:#cfdfcc; max-width:330px; margin:21px 0 0; }
.login-art { position:relative; margin:auto calc(-1 * clamp(32px,5vw,86px)) calc(-1 * clamp(32px,5vw,86px)); min-height:270px; height:40vh; overflow:hidden; }
.login-art svg { position:absolute; bottom:0; left:0; width:100%; height:100%; }
.login-main { display:flex; justify-content:center; align-items:center; background:#f8f9f5; padding:42px; }
.login-card { width:min(100%,398px); }
.login-card .login-symbol { display:grid; place-items:center; width:46px; height:46px; border-radius:13px; border:1px solid #d8e4d1; background:#eaf2e3; color:#35623d; margin-bottom:25px; }
.login-card .login-symbol .ico { width:21px; height:21px; }
.login-card h2 { margin:0; font-size:clamp(1.9rem,2.7vw,2.7rem); font-weight:650; letter-spacing:-.055em; line-height:1.14; }
.login-intro { margin:11px 0 0; color:var(--muted); font-size:.98rem; line-height:1.5; }
.login-form { margin-top:33px; }
.login-label { display:block; margin:0 0 8px; font-size:.89rem; font-weight:600; color:#263c2d; }
.login-input { border:1px solid #cbd7cb; background:#fff; color:var(--ink); width:100%; min-height:47px; border-radius:8px; padding:11px 13px; font-size:1rem; }
.login-input::placeholder { color:#7a877e; }
.login-control + .login-control { margin-top:19px; }
.password-wrap { position:relative; }
.password-wrap .login-input { padding-right:51px; }
.toggle-password { position:absolute; inset:4px 5px 4px auto; width:38px; border:0; border-radius:6px; color:#57705b; display:grid; place-items:center; background:none; }
.toggle-password:hover { background:#f1f5ed; }
.toggle-password .ico { width:19px; height:19px; }
.login-submit { width:100%; min-height:47px; margin-top:25px; }
.login-error { padding:10px 12px; margin:12px 0 0; color:#8a402b; font-size:.88rem; background:#f9e9e1; border-radius:7px; line-height:1.45; }
.login-error:empty { display:none; }
.login-submit:disabled { opacity:.7; }
@media(max-width:820px) and (min-width:651px) { .login-landscape,.login-main { padding:32px; } .login-art { margin-inline:-32px; margin-bottom:-32px; } }
@media(max-width:650px) {
  .login-screen { display:flex; flex-direction:column; }
  .login-landscape { min-height:175px; padding:21px 24px; }
  .login-brand { position:relative; z-index:2; }
  .login-brand .brand-mark { width:31px; height:32px; }
  .login-brand strong { font-size:1rem; } .login-brand small { margin-top:1px; font-size:.72rem; }
  .login-landscape-copy { margin:24px 0 0; max-width:62%; }
  .login-landscape h1 { font-size:2.1rem; letter-spacing:-.05em; } .login-landscape h1 br { display:none; }
  .login-landscape-copy p { font-size:.77rem; line-height:1.4; margin:7px 0 0; }
  .login-art { position:absolute; inset:25% -17% -26% 56%; margin:0; height:auto; min-height:0; }
  .login-main { flex:1; align-items:flex-start; padding:36px 24px; }
  .login-card .login-symbol { display:none; }
  .login-form { margin-top:26px; }
}
