:root{--agra-primary:#238b45;--agra-primary-dark:#176b34;--agra-primary-soft:#edf7ed;--agra-accent:#6547ad;--agra-bg:#f6f8f7;--agra-surface:#fff;--agra-surface-soft:#fafcfb;--agra-border:#e4e9e6;--agra-text:#17201b;--agra-muted:#68736d;--agra-danger:#c64242;--agra-danger-soft:#fff0ef;--agra-warning:#d87818;--agra-warning-soft:#fff6e9;--agra-success:#238b45;--agra-info:#4d6ee8;--agra-radius-sm:8px;--agra-radius-md:12px;--agra-radius-lg:16px;--agra-shadow-card:0 2px 10px rgba(25,55,35,.045);--agra-shadow-pop:0 18px 45px rgba(22,43,29,.14);--agra-space-1:4px;--agra-space-2:8px;--agra-space-3:12px;--agra-space-4:16px;--agra-space-5:20px;--agra-space-6:24px;--agra-space-8:32px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--agra-text);font-synthesis:none}*{box-sizing:border-box}html{background:var(--agra-bg)}body{margin:0;background:var(--agra-bg);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}.icon{width:20px;height:20px;display:block;flex:none}a,button,input,select,textarea{font:inherit}button,a{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(35,139,69,.24);outline-offset:2px}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:#fff;border-right:1px solid var(--agra-border);padding:22px 14px 0;display:flex;flex-direction:column;z-index:30}.brand{height:52px;display:flex;align-items:center;gap:10px;color:var(--agra-primary);font-size:25px;font-weight:800;letter-spacing:.045em;text-decoration:none;padding:0 10px 16px}.brand-mark{width:37px;height:37px;border-radius:11px;background:var(--agra-primary-soft);display:grid;place-items:center}.brand-mark .icon{width:27px;height:27px}.brand small{display:block;font-size:11px;line-height:1;letter-spacing:.36em;text-align:center;color:#35443a}.sidebar nav{overflow:auto;padding:4px 0 16px}.sidebar nav a{min-height:42px;padding:9px 11px;margin:2px 0;border-radius:9px;color:#364139;text-decoration:none;display:flex;gap:11px;align-items:center;font-weight:520}.sidebar nav a .icon{width:18px;height:18px;color:#526058}.sidebar nav a:hover{background:#f5f8f6;color:var(--agra-primary-dark)}.sidebar nav a.active{background:var(--agra-primary-soft);color:var(--agra-primary-dark);font-weight:650}.sidebar nav a.active .icon{color:var(--agra-primary)}.nav-label{margin:19px 11px 6px;color:#98a19c;font-size:11px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.sidebar-user{margin-top:auto;margin-inline:-14px;padding:15px 18px;border-top:1px solid var(--agra-border);display:flex;align-items:center;gap:10px;min-height:68px}.sidebar-user>.icon{width:15px;color:var(--agra-muted);margin-inline-start:auto}.user-meta{min-width:0}.user-meta strong,.user-meta small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-meta strong{font-size:13px}.user-meta small{color:var(--agra-muted);font-size:11px;margin-top:2px}.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#dff1df,#f0eafa);display:grid;place-items:center;color:var(--agra-primary-dark);font-size:12px;font-weight:750;flex:none}.shell{margin-left:236px;min-height:100vh}.topbar{height:66px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--agra-border);display:flex;align-items:center;gap:18px;padding:0 2vw;position:sticky;top:0;z-index:20}.global-search{height:40px;width:min(440px,42vw);display:flex;align-items:center;gap:10px;border:1px solid var(--agra-border);border-radius:9px;padding:0 12px;color:#8a948e;background:#fff}.global-search .icon{width:17px}.global-search kbd{margin-inline-start:auto;border:1px solid var(--agra-border);border-radius:5px;padding:1px 5px;font-size:11px;background:#f8faf9}.topbar-actions{margin-inline-start:auto;display:flex;align-items:center;gap:9px}.logout{margin:0}.avatar-button{border:0;cursor:pointer}.icon-button{width:40px;height:40px;border:0;border-radius:9px;background:transparent;color:#465149;display:grid;place-items:center;cursor:pointer}.icon-button:hover{background:#f2f6f3}.menu{display:none}.new-menu{position:relative}.new-menu>summary{list-style:none}.new-menu>summary::-webkit-details-marker{display:none}.new-menu[open] .popover{display:grid}.popover{position:absolute;top:48px;right:0;width:210px;padding:7px;background:#fff;border:1px solid var(--agra-border);border-radius:12px;box-shadow:var(--agra-shadow-pop);display:none;z-index:50}.popover a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;color:var(--agra-text);text-decoration:none}.popover a:hover{background:var(--agra-primary-soft);color:var(--agra-primary-dark)}.popover .icon{width:17px}.button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:9px;padding:8px 14px;font-weight:650;text-decoration:none;cursor:pointer;white-space:nowrap}.button .icon{width:17px;height:17px}.button.primary{background:linear-gradient(135deg,var(--agra-primary),#2c984d);color:#fff;box-shadow:0 2px 5px rgba(35,139,69,.2)}.button.primary:hover{background:var(--agra-primary-dark)}.button.secondary{background:#fff;border-color:var(--agra-border);color:#29332d}.button.secondary:hover{border-color:#bac7bf;background:#fafcfb}.button.ghost{background:transparent;color:var(--agra-muted)}.button.danger{background:var(--agra-danger-soft);color:var(--agra-danger)}.wide{width:100%}main{width:calc(100% - clamp(32px,4vw,68px));max-width:1540px;margin:0 auto;padding:28px 0 54px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px;gap:18px}.page-head h1{font-size:26px;line-height:1.2;letter-spacing:-.025em;margin:0 0 5px}.page-head p{margin:0;color:var(--agra-muted);font-size:13px}.page-head-actions,.document-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.back{display:inline-flex;align-items:center;color:var(--agra-primary-dark);text-decoration:none;font-size:12px;font-weight:650;margin-bottom:7px}.card,.assistant{background:var(--agra-surface);border:1px solid var(--agra-border);border-radius:var(--agra-radius-md);box-shadow:var(--agra-shadow-card)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.card-head h2,.card h2{font-size:14px;margin:0}.section-help,.muted{color:var(--agra-muted)}.assistant{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:15px;padding:18px 20px;margin-bottom:16px;background:linear-gradient(105deg,#fff 42%,#eef8ed)}.assistant:after{content:"";position:absolute;width:180px;height:180px;border:34px solid rgba(35,139,69,.045);border-radius:50%;right:-80px;top:-90px}.assistant .bot{width:46px;height:46px;border-radius:13px;background:#dff2df;color:var(--agra-primary);display:grid;place-items:center}.assistant .bot .icon{width:28px;height:28px}.assistant strong{font-size:15px}.assistant p{margin:3px 0 0;color:var(--agra-muted)}.assistant-command{position:relative;z-index:1;display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.assistant-command a{padding:7px 11px;border:1px solid #d9e9d8;border-radius:20px;background:#fff;color:#356043;text-decoration:none;font-size:12px;font-weight:600}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.kpi{min-height:112px;padding:17px;display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:start;text-decoration:none;color:inherit}.kpi-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:var(--agra-primary-soft);color:var(--agra-primary)}.kpi-icon.orange{background:#fff1e3;color:#e3791b}.kpi-icon.purple{background:#f1edfb;color:var(--agra-accent)}.kpi-icon.blue{background:#edf2ff;color:var(--agra-info)}.kpi small,.kpi span{display:block;color:var(--agra-muted);font-size:11px}.kpi strong{display:block;font-size:23px;line-height:1.25;margin:5px 0}.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.75fr);gap:14px}.dashboard-main,.dashboard-side{display:grid;gap:14px;align-content:start}.dashboard-card{padding:18px}.chart-empty{height:178px;margin-top:14px;border-radius:9px;background:linear-gradient(#fff,#f7fbf7),repeating-linear-gradient(0deg,transparent,transparent 39px,#edf1ee 40px);display:grid;place-items:center;text-align:center;color:var(--agra-muted)}.chart-empty .icon{width:28px;height:28px;margin:0 auto 7px;color:#91ae99}.watch-list,.activity{margin-top:10px}.watch-item,.activity>div{display:flex;gap:11px;align-items:center;padding:10px 0;border-top:1px solid var(--agra-border)}.watch-item:first-child,.activity>div:first-child{border-top:0}.watch-item .icon,.activity-dot{width:30px;height:30px;padding:7px;border-radius:9px;background:var(--agra-primary-soft);color:var(--agra-primary)}.watch-item span,.watch-item strong,.watch-item small{display:block}.activity p{margin:0;font-size:12px}.activity small{display:block;color:var(--agra-muted);font-size:11px;margin-top:2px}.quick{display:grid;gap:7px}.quick a{display:flex;align-items:center;gap:9px;padding:10px;border-radius:8px;background:#f2f8f1;color:#275c38;text-decoration:none;font-size:12px;font-weight:620}.quick a .icon{width:16px}.list-card{overflow:hidden}.list-toolbar,.filters{display:flex;align-items:center;gap:9px;padding:13px 14px;border-bottom:1px solid var(--agra-border)}.search-field{position:relative;flex:1}.search-field .icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:17px;color:#8d9791}.search-field input{padding-left:37px}.filters>input{flex:1}.filters select{width:auto;min-width:145px}.filter-chips{display:flex;gap:6px}.filter-chip{padding:7px 10px;border-radius:20px;background:#f4f6f5;color:#56605a;text-decoration:none;font-size:12px}.filter-chip.active{background:var(--agra-primary-soft);color:var(--agra-primary-dark);font-weight:650}input,select,textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid #d8ded9;border-radius:8px;background:#fff;color:var(--agra-text);outline:none;transition:border .15s,box-shadow .15s}textarea{min-height:92px;resize:vertical}input::placeholder,textarea::placeholder{color:#a2aaa5}input:focus,select:focus,textarea:focus{border-color:var(--agra-primary);box-shadow:0 0 0 3px rgba(35,139,69,.1)}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--agra-border);vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.065em;color:#7e8882;background:#fafcfb;font-weight:720}tbody tr:hover{background:#fbfdfc}tbody tr:last-child td{border-bottom:0}.strong{font-weight:680;color:var(--agra-text);text-decoration:none}.strong:hover{color:var(--agra-primary)}.strong small,td small{display:block;color:var(--agra-muted);font-size:11px;margin-top:2px;font-weight:400}.row-action{display:inline-flex;color:var(--agra-primary-dark);text-decoration:none;font-weight:620;font-size:12px}.row-menu{width:34px;height:34px;border:0;background:transparent;border-radius:8px;cursor:pointer;color:var(--agra-muted);font-size:20px}.row-menu:hover{background:#f0f4f1}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:20px;font-size:11px;font-weight:680;line-height:1.2;background:#f0f2f1;color:#59635d}.badge.ok,.badge.status-accepted,.badge.status-confirmed,.badge.status-validated,.badge.status-issued,.badge.status-progress{background:var(--agra-primary-soft);color:var(--agra-primary-dark)}.badge.off,.badge.status-cancelled,.badge.status-rejected{background:var(--agra-danger-soft);color:#a23c3c}.badge.status-draft{background:#f1f3f2;color:#66706a}.badge.status-sent{background:#edf2ff;color:#465fc1}.badge.status-progress{background:#fff4e5;color:#b86615}.empty{text-align:center;padding:48px 20px;color:var(--agra-muted)}.empty-icon{width:50px;height:50px;margin:0 auto 12px;display:grid;place-items:center;border-radius:14px;background:var(--agra-primary-soft);color:var(--agra-primary)}.empty-icon .icon{width:25px;height:25px}.empty h2{font-size:16px;color:var(--agra-text);margin:0 0 6px}.empty p{max-width:420px;margin:0 auto 16px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:12px 14px;border-top:1px solid var(--agra-border);font-size:12px}.pagination span{margin-inline-end:auto;color:var(--agra-muted)}.pagination a{color:var(--agra-primary-dark);font-weight:650;text-decoration:none}.form-card{max-width:1120px;padding:0}.form-card section,.form-card>.form-grid{padding:22px 24px}.form-card section+section{border-top:1px solid var(--agra-border)}.form-card section>h2{margin-bottom:4px}.form-section-head{margin-bottom:17px}.form-section-head p{margin:3px 0 0;color:var(--agra-muted);font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}.form-grid label{grid-column:span 6;display:grid;align-content:start;gap:6px;font-size:11px;font-weight:670;color:#39433d}.form-grid .span-2{grid-column:1/-1}.form-grid .span-4{grid-column:span 4}.form-grid .span-8{grid-column:span 8}.form-grid label small{font-weight:400;color:var(--agra-muted)}.form-actions{position:sticky;bottom:0;z-index:4;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--agra-border);padding:13px 18px;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-radius:0 0 12px 12px}details.advanced{border-top:1px solid var(--agra-border)}details.advanced summary{padding:16px 24px;cursor:pointer;font-weight:650}details.advanced .details{padding:0 24px 22px}.alert,.toast{display:flex;align-items:center;gap:9px;border-radius:9px}.alert{padding:11px 13px;margin-bottom:14px}.alert.success,.toast.success{background:var(--agra-primary-soft);color:var(--agra-primary-dark)}.alert.error{background:var(--agra-danger-soft);color:#a12f2f}.toast{position:fixed;right:22px;top:78px;z-index:80;padding:11px 14px;box-shadow:var(--agra-shadow-pop);font-weight:620;animation:toast-out .3s ease 4s forwards}.toast .icon{width:17px}@keyframes toast-out{to{opacity:0;transform:translateY(-8px);pointer-events:none}}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.detail-card{padding:19px}.detail-card h2{margin-bottom:12px}.identity-head{display:flex;align-items:center;gap:13px}.identity-avatar{width:48px;height:48px;border-radius:13px;background:var(--agra-primary-soft);color:var(--agra-primary-dark);display:grid;place-items:center;font-weight:750;font-size:18px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--agra-border);margin-bottom:14px}.tabs a{padding:10px 12px;color:var(--agra-muted);text-decoration:none;font-size:12px}.tabs a.active{color:var(--agra-primary);border-bottom:2px solid var(--agra-primary);font-weight:650}dl.info-list,.detail-card dl{display:grid;grid-template-columns:130px 1fr;margin:0}dl.info-list dt,dl.info-list dd,.detail-card dt,.detail-card dd{padding:8px 0;border-bottom:1px solid var(--agra-border)}dl.info-list dt,.detail-card dt{color:var(--agra-muted);font-size:12px}dl.info-list dd,.detail-card dd{margin:0;font-weight:620}.document{padding:0;overflow:hidden}.document-summary{padding:18px 20px;display:grid;grid-template-columns:1fr 320px;gap:30px;border-bottom:1px solid var(--agra-border)}.document-client strong{font-size:16px}.document-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.meta-block span{display:block;color:var(--agra-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}.meta-block strong{font-size:12px}.document-table th,.document-table td{padding:11px 14px}.document-table td:first-child{width:48%}.document-totals{margin-left:auto;width:min(340px,100%);padding:16px 20px}.total-row{display:flex;justify-content:space-between;padding:6px 0;color:var(--agra-muted)}.total-row.grand{border-top:1px solid var(--agra-border);margin-top:5px;padding-top:11px;color:var(--agra-text);font-size:18px;font-weight:760}.sales-total{display:flex;justify-content:flex-end;align-items:center;gap:18px;padding:15px}.sales-total strong{font-size:20px;color:var(--agra-primary-dark)}.document-actions form{margin:0}.timeline{margin-top:14px}.timeline-card{padding:18px}.timeline-list{position:relative;margin-top:12px}.timeline-item{position:relative;padding:0 0 16px 28px}.timeline-item:before{content:"";position:absolute;left:5px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--agra-primary);box-shadow:0 0 0 4px var(--agra-primary-soft)}.timeline-item:after{content:"";position:absolute;left:8px;top:18px;bottom:0;border-left:1px solid #dce6de}.timeline-item:last-child:after{display:none}.timeline-item p{margin:0;font-size:12px;font-weight:620}.timeline-item small{display:block;color:var(--agra-muted);font-size:11px;margin-top:2px}.conversion-card{overflow:hidden}.conversion-card .form-actions{position:static}.mobile-nav{display:none}.mobile-backdrop{display:none}.perf{position:fixed;bottom:5px;right:5px;padding:5px 8px;background:#17201be8;color:#fff;font:10px monospace;border-radius:5px;z-index:100}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(420px,.85fr) 1.15fr;background:#fff}.login-page:after{content:"Gérez simplement. Avancez sereinement.";display:grid;place-items:end start;padding:54px;background:linear-gradient(145deg,rgba(23,107,52,.88),rgba(35,139,69,.68)),radial-gradient(circle at 70% 20%,#9bd29c,#236f3b);color:#fff;font-size:31px;font-weight:760;letter-spacing:-.03em}.login-card{width:min(430px,calc(100% - 48px));margin:auto;padding:34px}.login-brand{justify-content:flex-start;padding:0 0 34px}.login-card h1{font-size:27px;letter-spacing:-.03em;margin:0 0 7px}.login-card>.muted{margin:0 0 25px}.login-card form{display:grid;gap:15px}.login-card label{display:grid;gap:6px;font-size:12px;font-weight:650}.secure{text-align:center;font-size:11px;margin:19px 0 0;color:var(--agra-muted)}
html[dir=rtl] .sidebar{right:0;left:auto;border-left:1px solid var(--agra-border);border-right:0}html[dir=rtl] .shell{margin-right:236px;margin-left:0}html[dir=rtl] th,html[dir=rtl] td{text-align:right}html[dir=rtl] .search-field .icon{right:11px;left:auto}html[dir=rtl] .search-field input{padding-right:37px;padding-left:11px}html[dir=rtl] .popover{right:auto;left:0}html[dir=rtl] .toast{right:auto;left:22px}html[dir=rtl] .document-totals{margin-right:auto;margin-left:0}html[dir=rtl] .timeline-item{padding-right:28px;padding-left:0}html[dir=rtl] .timeline-item:before{right:5px;left:auto}html[dir=rtl] .timeline-item:after{right:8px;left:auto}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.global-search{width:min(360px,40vw)}.dashboard-layout{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr 1fr}}
@media(max-width:860px){body{padding-bottom:65px}.sidebar{transform:translateX(-102%);transition:transform .2s ease;box-shadow:var(--agra-shadow-pop)}.nav-open .sidebar{transform:none}.shell,html[dir=rtl] .shell{margin:0}.menu{display:grid}.global-search{flex:1;width:auto}.global-search kbd{display:none}.mobile-backdrop{position:fixed;inset:0;border:0;background:#10171266;z-index:25}.nav-open .mobile-backdrop{display:block}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:64px;padding:5px 18px calc(5px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--agra-border);z-index:24;display:grid;grid-template-columns:repeat(5,1fr);align-items:center}.mobile-nav a,.mobile-nav button{border:0;background:none;color:#69736d;text-decoration:none;display:grid;justify-items:center;gap:2px;font-size:11px}.mobile-nav .icon{width:20px}.mobile-nav .active{color:var(--agra-primary);font-weight:700}.mobile-create{width:48px;height:48px;border-radius:50%;background:var(--agra-primary);color:#fff;margin:-22px auto 0;box-shadow:0 5px 16px rgba(35,139,69,.28)}.mobile-create .icon{width:24px}.mobile-more{cursor:pointer}main{width:calc(100% - 32px);padding-top:22px}.detail-grid{grid-template-columns:1fr}html[dir=rtl] .sidebar{transform:translateX(102%)}html[dir=rtl] .nav-open .sidebar{transform:none}}
@media(max-width:640px){body{font-size:13px}.topbar{height:58px;padding:0 13px;gap:8px}.global-search{display:none}.topbar-actions{gap:4px}.new-menu summary span,.new-menu summary>.icon:last-child{display:none}.new-menu summary{width:40px;padding:0}.logout{display:none}main{width:calc(100% - 24px);padding:18px 0 36px}.page-head{align-items:flex-start;margin-bottom:15px}.page-head h1{font-size:22px}.page-head>div:last-child{justify-content:flex-end}.assistant{grid-template-columns:auto 1fr;padding:15px}.assistant-command{grid-column:1/-1;justify-content:flex-start}.assistant-command a:nth-child(n+3){display:none}.kpis{gap:9px}.kpi{min-height:104px;padding:13px;grid-template-columns:32px 1fr;gap:9px}.kpi-icon{width:32px;height:32px}.kpi-icon .icon{width:17px}.kpi strong{font-size:19px}.dashboard-side{grid-template-columns:1fr}.filters,.list-toolbar{display:grid;grid-template-columns:1fr 1fr}.filters>input,.filters .search-field{grid-column:1/-1}.filters select,.filters .button{width:100%}.table-wrap{overflow:visible}table:not(.sales-lines),table:not(.sales-lines) thead,table:not(.sales-lines) tbody,table:not(.sales-lines) tr,table:not(.sales-lines) td{display:block}table:not(.sales-lines) thead{display:none}table:not(.sales-lines) tr{padding:11px 13px;border-bottom:1px solid var(--agra-border)}table:not(.sales-lines) td{border:0;padding:4px 0;display:flex;justify-content:space-between;gap:14px;text-align:right}table:not(.sales-lines) td:before{content:attr(data-label);color:var(--agra-muted);font-size:11px;text-align:left}table:not(.sales-lines) td:first-child{display:block;text-align:left;font-size:14px}.form-card section{padding:18px 16px}.form-grid{grid-template-columns:1fr}.form-grid label,.form-grid .span-2,.form-grid .span-4,.form-grid .span-8{grid-column:auto}.form-actions{padding:11px 14px}.document-summary{grid-template-columns:1fr;padding:16px}.document-totals{padding:14px 16px}.document-actions{width:100%}.document-actions .button,.document-actions form,.document-actions form button{flex:1}.login-page{display:grid;grid-template-columns:1fr;background:linear-gradient(160deg,#f0f8f1,#fff 55%)}.login-page:after{display:none}.login-card{padding:26px 8px}.login-brand{padding-bottom:26px}.toast{top:66px;left:12px;right:12px}.sales-lines,.sales-lines tbody{display:block}.sales-lines thead{display:none}.sales-lines tr{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px;margin:10px;border:1px solid var(--agra-border);border-radius:10px}.sales-lines td{display:block;border:0;padding:0}.sales-lines td:first-child,.sales-lines td:nth-child(2){grid-column:1/-1}.sales-lines td:last-child{position:absolute}.sales-lines input{min-height:38px}.perf{display:none}}
/* Visual gate 1.5.1: hard limits remain safe even if component rules evolve. */
svg{display:block;max-width:100%}
.icon{display:block;inline-size:20px;block-size:20px;min-inline-size:20px;min-block-size:20px;max-inline-size:20px;max-block-size:20px;flex:0 0 20px;overflow:visible}
.sidebar{width:224px;padding:18px 12px 0}.shell{margin-left:224px}.brand{height:54px;padding:0 8px 16px;font-size:24px}.brand-mark{width:36px;height:36px;flex:0 0 36px}.brand-mark .icon{inline-size:24px;block-size:24px;min-inline-size:24px;max-inline-size:24px;min-block-size:24px;max-block-size:24px}.sidebar nav a{min-height:38px;padding:8px 10px;gap:10px;font-size:13px}.sidebar nav a .icon{inline-size:17px;block-size:17px;min-inline-size:17px;max-inline-size:17px;min-block-size:17px;max-block-size:17px}.nav-label{margin:15px 10px 5px;font-size:11px}.sidebar-user{min-height:64px;padding:13px 16px}
.topbar{height:64px;padding:0 24px;gap:16px}.global-search{width:min(500px,48vw);height:40px;flex:0 1 500px}.global-search .icon{inline-size:16px;block-size:16px;min-inline-size:16px;max-inline-size:16px;min-block-size:16px;max-block-size:16px}.topbar-actions{flex:0 0 auto}.notification-button{position:relative}.notification-button i{position:absolute;right:8px;top:7px;width:6px;height:6px;border-radius:50%;background:#d94949;border:1px solid #fff}.new-menu .button{height:40px;min-width:126px}.avatar-button{width:36px;height:36px}
.assistant{grid-template-columns:48px minmax(0,1fr);min-height:116px;padding:16px 19px;background:linear-gradient(105deg,#fff 0%,#fbfefb 55%,#edf8ec 100%)}.assistant .bot{width:44px;height:44px}.assistant .bot .icon{inline-size:25px;block-size:25px;min-inline-size:25px;max-inline-size:25px;min-block-size:25px;max-block-size:25px}.assistant-body{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:center;gap:8px 16px;position:relative;z-index:1}.assistant-body>strong{grid-column:1/-1;font-size:15px}.assistant-prompt{height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #dce7dd;border-radius:9px;background:#fff;color:#7a857e;box-shadow:0 1px 3px rgba(25,55,35,.03)}.assistant-prompt .icon{margin-inline-start:auto;inline-size:17px;block-size:17px;min-inline-size:17px;max-inline-size:17px;min-block-size:17px;max-block-size:17px;color:var(--agra-primary)}.assistant-command{justify-content:flex-end}.assistant-command a{display:inline-flex;align-items:center;min-height:32px;color:#2f5f3d;text-decoration:none;background:#fff;border:1px solid #d6e7d6;border-radius:999px;padding:6px 11px;box-shadow:0 1px 2px rgba(20,50,28,.02)}.assistant-command a:hover{border-color:#9fc7a4;background:#f5fbf5}
.kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.kpi{min-width:0;min-height:106px;padding:15px;grid-template-columns:38px minmax(0,1fr);gap:11px}.kpi-icon{width:38px;height:38px}.kpi-icon .icon{inline-size:20px;block-size:20px;min-inline-size:20px;max-inline-size:20px;min-block-size:20px;max-block-size:20px}.kpi strong{font-size:22px}.card,.assistant{border-radius:11px}.dashboard-card{padding:16px}main{width:calc(100% - clamp(28px,3.4vw,56px));padding-top:24px}html[dir=rtl] .shell{margin-right:224px;margin-left:0}
@media(max-width:1100px) and (min-width:861px){.kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi{grid-template-columns:32px minmax(0,1fr);padding:12px}.kpi-icon{width:32px;height:32px}.kpi small{font-size:11px}.kpi strong{font-size:19px}}
@media(max-width:860px){.shell,html[dir=rtl] .shell{margin:0}.sidebar{width:224px}.assistant-body{grid-template-columns:1fr}.assistant-body>strong{grid-column:auto}.assistant-command{justify-content:flex-start}}
@media(max-width:640px){.topbar{height:58px;padding:0 12px}.assistant{grid-template-columns:42px 1fr;min-height:0;padding:14px}.assistant .bot{width:40px;height:40px}.assistant-prompt{grid-column:1/-1}.assistant-command{grid-column:1/-1}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.new-menu .button{min-width:40px}.new-menu summary .icon:last-of-type{display:none}.notification-button{order:2}.new-menu{order:1}}

/* The partner overview is one coherent workspace, not a pile of floating cards. */
.detail-grid#apercu{gap:0;overflow:hidden;border:1px solid var(--agra-border);border-radius:11px;background:#fff;box-shadow:var(--agra-shadow-card)}.detail-grid#apercu>.card{min-height:128px;border:0;border-radius:0;box-shadow:none}.detail-grid#apercu>.card:nth-child(odd){border-right:1px solid var(--agra-border)}.detail-grid#apercu>.card:nth-child(n+3){border-top:1px solid var(--agra-border)}
@media(max-width:860px){.detail-grid#apercu>.card:nth-child(odd){border-right:0}.detail-grid#apercu>.card:nth-child(n+2){border-top:1px solid var(--agra-border)}}

/* UX parity 1.5.2 — consolidated product components */
:root{--agra-field-h:38px;--agra-button-h:36px;--agra-page-gap:14px;--agra-text-soft:#66736b}
.page-head{align-items:flex-end;margin-bottom:15px}.page-head h1{font-size:24px;letter-spacing:-.025em}.page-head p{font-size:12.5px}.back{font-size:11.5px;font-weight:650}.button{min-height:var(--agra-button-h);padding:7px 11px;font-size:12.5px}.button .icon{inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px;max-inline-size:16px;max-block-size:16px}
.profile-menu{position:relative}.profile-menu summary{list-style:none}.profile-menu summary::-webkit-details-marker{display:none}.profile-trigger{display:flex;align-items:center;gap:8px;min-height:42px;padding:3px 5px;border-radius:9px;cursor:pointer}.profile-trigger:hover,.profile-menu[open] .profile-trigger{background:#f2f7f2}.profile-trigger>.icon{inline-size:14px;block-size:14px;min-inline-size:14px;min-block-size:14px;max-inline-size:14px;max-block-size:14px;color:#849087}.profile-copy{display:flex;max-width:125px;flex-direction:column}.profile-copy strong,.profile-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-copy strong{font-size:11.5px}.profile-copy small{font-size:11px;color:var(--agra-muted)}.profile-popover{position:absolute;z-index:50;top:calc(100% + 8px);right:0;width:220px;padding:7px;border:1px solid var(--agra-border);border-radius:10px;background:#fff;box-shadow:0 16px 38px rgba(25,43,31,.15)}.profile-popover>div{display:flex;flex-direction:column;padding:8px 9px 10px;border-bottom:1px solid var(--agra-border);margin-bottom:5px}.profile-popover>div strong{font-size:12px}.profile-popover>div small{font-size:11px;color:var(--agra-muted)}.profile-popover a,.profile-popover button{display:flex;width:100%;align-items:center;gap:9px;min-height:34px;padding:7px 9px;border:0;border-radius:7px;background:none;color:var(--agra-text);font:inherit;font-size:12px;text-decoration:none;cursor:pointer}.profile-popover a:hover,.profile-popover button:hover{background:#f2f7f2}.profile-popover .icon{inline-size:15px;block-size:15px;min-inline-size:15px;min-block-size:15px;max-inline-size:15px;max-block-size:15px}
.list-card{overflow:hidden}.filters{padding:10px 12px}.search-field{height:var(--agra-field-h)}input,select,textarea{font-size:13px}.form-grid input,.form-grid select{min-height:var(--agra-field-h)}.form-grid label{gap:5px;font-size:11.5px}.form-section-head{margin-bottom:11px}.form-section-head h2{font-size:14px}.form-section-head p{font-size:11px}.form-card>section{padding-block:14px}.form-card{max-width:1180px}.form-actions{position:sticky;bottom:0;z-index:4;margin:12px -20px -20px;padding:11px 20px;border-top:1px solid var(--agra-border);border-radius:0 0 11px 11px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}
table{font-size:12.5px}th{font-size:11px;letter-spacing:.055em}th,td{padding:9px 11px}.strong small{margin-top:2px;font-size:11px}.row-action{font-size:11.5px}.badge{min-height:22px;padding:3px 8px;font-size:11px}.pagination{min-height:42px;padding:8px 12px}
.partner-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--agra-border);border-radius:11px;background:linear-gradient(105deg,#fff 0%,#fff 72%,#f3faf3 100%);box-shadow:var(--agra-shadow-card)}.partner-hero .identity-avatar{width:48px;height:48px}.partner-hero h1{margin:0;font-size:23px}.partner-hero-meta{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:5px;color:var(--agra-text-soft);font-size:11.5px}.partner-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr);border:1px solid var(--agra-border);border-radius:11px;background:#fff;box-shadow:var(--agra-shadow-card);overflow:hidden}.partner-workspace>section{padding:16px 18px}.partner-workspace>aside{padding:16px 18px;border-inline-start:1px solid var(--agra-border);background:#fbfdfb}.partner-section+.partner-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--agra-border)}.partner-section h2{font-size:13px;margin:0 0 10px}.partner-workspace .info-list{display:grid;grid-template-columns:120px 1fr;gap:7px 14px}.partner-workspace .info-list dt,.partner-workspace .info-list dd{margin:0;font-size:12px}.partner-workspace .info-list dt{color:var(--agra-muted)}
.document-amount{display:block;margin-top:5px;font-size:21px;color:var(--agra-primary)}.document{overflow:hidden}.document-summary{padding:15px 18px;background:#fbfdfb;border-bottom:1px solid var(--agra-border)}.document-table th,.document-table td{padding:10px 14px}.timeline-card{max-width:none}.timeline-list{padding-left:2px}.timeline-item{padding:0 0 13px 20px}.timeline-item:before{left:1px}.timeline-item:after{left:5px}.timeline-item p{font-size:12px}.timeline-item small{font-size:11px}
.confirm-dialog{width:min(420px,calc(100% - 30px));padding:0;border:0;border-radius:13px;box-shadow:0 24px 70px rgba(18,35,23,.25)}.confirm-dialog::backdrop{background:rgba(15,28,19,.45);backdrop-filter:blur(2px)}.confirm-dialog form{padding:22px}.confirm-dialog h2{margin:10px 0 5px;font-size:18px}.confirm-dialog p{margin:0 0 18px;color:var(--agra-muted);font-size:12.5px}.confirm-dialog form>div:last-child{display:flex;justify-content:flex-end;gap:8px}.confirm-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:#fff2dc;color:#a56500}.confirm-icon .icon{inline-size:20px;block-size:20px}.toast{min-height:42px;padding:8px 10px 8px 12px}.toast button{margin-inline-start:auto;border:0;background:transparent;color:inherit;font-size:18px;cursor:pointer}
.settings-tabs{display:flex;gap:4px;margin-bottom:12px;padding:4px;border:1px solid var(--agra-border);border-radius:9px;background:#f7faf7;width:max-content}.settings-tabs a{padding:7px 11px;border-radius:6px;color:var(--agra-muted);font-size:12px;font-weight:650;text-decoration:none}.settings-tabs a.active{background:#fff;color:var(--agra-primary);box-shadow:0 1px 4px rgba(20,45,28,.08)}.user-identity{display:flex;align-items:center;gap:9px}.user-identity .avatar{width:30px;height:30px;font-size:11px}.user-identity span{display:flex;flex-direction:column}.user-identity small{font-size:11px;color:var(--agra-muted)}
@media(max-width:1050px){.profile-copy{display:none}.partner-workspace{grid-template-columns:1fr}.partner-workspace>aside{border-inline-start:0;border-top:1px solid var(--agra-border)}}
@media(max-width:640px){.page-head h1{font-size:21px}.profile-menu{display:none}.partner-hero{grid-template-columns:auto 1fr;padding:13px}.partner-hero .page-head-actions{grid-column:1/-1;width:100%}.partner-workspace .info-list{grid-template-columns:100px 1fr}.form-actions{margin:10px -14px -14px;padding:10px 14px}.confirm-dialog form>div:last-child .button{flex:1}.settings-tabs{width:100%}.settings-tabs a{flex:1;text-align:center}table:not(.sales-lines) td:first-child:before{display:none}.sales-lines tr{position:relative;padding-top:38px}.sales-lines td:last-child{top:9px;right:11px}.sales-lines .remove-line{width:30px;height:28px;padding:0}}
@media(max-width:640px){.page-head{flex-direction:column}.page-head>.button{width:100%;white-space:normal;text-align:center}.purchase-results{max-width:calc(100vw - 64px)}}
.purchase-item-cell{position:relative}.purchase-results{position:absolute;z-index:15;top:calc(100% + 4px);left:0;min-width:300px;padding:5px;background:#fff;border:1px solid var(--agra-border);border-radius:9px;box-shadow:var(--agra-shadow-pop)}.purchase-results button{display:block;width:100%;border:0;background:#fff;padding:8px;text-align:left;border-radius:6px;cursor:pointer}.purchase-results button:hover,.purchase-results button:focus{background:var(--agra-primary-soft)}.purchase-results small{display:block;color:var(--agra-muted)}
html[dir=rtl] td[data-label="Montant"],html[dir=rtl] .document-amount,html[dir=rtl] .sales-total strong{direction:ltr;unicode-bidi:isolate}
.purchase-filter-chips{padding:11px 12px 0;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}.purchase-filter-chips .filter-chip{flex:none}.badge.status-to_receive,.badge.status-to_bill{background:#fff4e5;color:#a95d13}.badge.status-partially_received,.badge.status-partially_billed{background:#edf2ff;color:#465fc1}.badge.status-received,.badge.status-billed{background:var(--agra-primary-soft);color:var(--agra-primary-dark)}
@media(max-width:640px){.purchase-filter-chips{margin:0;padding:10px 12px 2px}.purchase-filter-chips+.filters{grid-template-columns:1fr}.purchase-filter-chips+.filters .button{width:100%}}

/* UX Premium 2.0 — canonical product layer */
:root{--agra-bg:#f4f7f5;--agra-surface:#fff;--agra-surface-soft:#f7faf8;--agra-primary:#218b49;--agra-primary-dark:#176d38;--agra-primary-soft:#eaf6ed;--agra-text:#17231d;--agra-text-secondary:#536159;--agra-muted:#829087;--agra-border:#dfe6e1;--agra-border-soft:#edf1ee;--agra-radius-xs:5px;--agra-radius-sm:7px;--agra-radius-md:10px;--agra-radius-lg:14px;--agra-shadow-sm:0 1px 2px rgba(18,38,26,.04);--agra-shadow-md:0 6px 18px rgba(18,38,26,.05);--agra-field-h:36px;--agra-button-h:36px}
body{font-size:13px;color:var(--agra-text);background:var(--agra-bg)}.sidebar{width:208px;padding:14px 10px 0;background:#fff;border-color:var(--agra-border-soft)}.shell{margin-left:208px}.brand{height:52px;padding:0 9px 13px;font-size:23px}.brand-mark{width:34px;height:34px;flex-basis:34px;border-radius:10px}.brand small{font-size:11px}.sidebar nav a{min-height:35px;margin:1px 0;padding:7px 10px;border-radius:7px;font-size:12.5px;gap:9px}.sidebar nav a.active{background:#e9f5eb;box-shadow:inset 3px 0 0 var(--agra-primary)}.nav-label{margin:15px 10px 4px;font-size:11px;letter-spacing:.12em}.sidebar-user{min-height:58px;padding:10px 14px}.topbar{height:60px;padding:0 20px;background:rgba(255,255,255,.96);border-color:var(--agra-border-soft)}.global-search{height:36px;width:min(470px,45vw);border-color:var(--agra-border-soft);background:#f8faf9;font-size:12px}.new-menu .button{height:36px;min-width:120px}.profile-trigger{min-height:38px}.avatar{width:32px;height:32px}main{width:calc(100% - 40px);max-width:1600px;padding:20px 0 48px}.button{min-height:36px;padding:7px 12px;border-radius:7px;font-size:12px}.button.primary{background:var(--agra-primary);box-shadow:0 2px 6px rgba(33,139,73,.16)}.button.secondary{border-color:var(--agra-border);box-shadow:var(--agra-shadow-sm)}input,select,textarea{min-height:36px;border-color:var(--agra-border);border-radius:7px;font-size:12.5px}.card,.assistant,.premium-panel{border-color:var(--agra-border);border-radius:var(--agra-radius-md);box-shadow:var(--agra-shadow-sm)}
.premium-page{display:grid;gap:14px}.premium-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.premium-page-head h1{margin:2px 0 3px;font-size:23px;line-height:1.15;letter-spacing:-.025em}.premium-page-head p{margin:0;color:var(--agra-muted);font-size:11.5px}.eyebrow{display:block;color:var(--agra-primary);font-size:11px;font-weight:750;letter-spacing:.095em;text-transform:uppercase}.premium-panel{background:#fff;border:1px solid var(--agra-border);overflow:hidden}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 14px 10px}.panel-head h2{margin:0;font-size:12.5px;line-height:1.25}.panel-head p{margin:2px 0 0;color:var(--agra-muted);font-size:11px}.panel-head>a{color:var(--agra-primary-dark);font-size:11px;font-weight:650;text-decoration:none}
.premium-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.premium-kpi,.partner-stats article,.detail-kpis article{min-width:0;background:#fff;border:1px solid var(--agra-border);border-radius:9px;box-shadow:var(--agra-shadow-sm)}.premium-kpi{display:flex;align-items:center;gap:10px;min-height:88px;padding:13px}.premium-kpi>div,.partner-stats article>div{min-width:0}.metric-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px}.metric-icon .icon{inline-size:17px;block-size:17px;min-inline-size:17px;min-block-size:17px;max-inline-size:17px;max-block-size:17px}.metric-icon.green{color:#238b45;background:#eaf6ed}.metric-icon.amber{color:#cb741e;background:#fff2e4}.metric-icon.blue{color:#4a6bd7;background:#edf2ff}.metric-icon.rose{color:#bf5c65;background:#fff0f1}.metric-icon.violet{color:#7355b9;background:#f1edfb}.premium-kpi small,.partner-stats small,.detail-kpis small{display:block;color:var(--agra-text-secondary);font-size:11px}.premium-kpi strong,.partner-stats strong,.detail-kpis strong{display:block;margin:3px 0 1px;overflow:hidden;color:#16221c;font-size:19px;line-height:1.18;letter-spacing:-.025em;text-overflow:ellipsis;white-space:nowrap}.premium-kpi span,.partner-stats article span,.detail-kpis span{display:block;color:var(--agra-muted);font-size:11px}
.premium-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr) minmax(250px,.68fr);gap:11px}.sales-chart-panel{grid-column:span 2}.line-chart{padding:0 14px 12px}.line-chart svg,.client-chart svg{display:block;width:100%;height:160px}.chart-grid path{fill:none;stroke:#edf1ee;stroke-width:1}.chart-line{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.chart-line.sales{stroke:var(--agra-primary)}.chart-line.receipts{stroke:#657ce5}.chart-legend{display:flex;gap:14px;color:var(--agra-muted);font-size:11px}.chart-legend span:before{content:"";display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%}.chart-legend .sales:before{background:var(--agra-primary)}.chart-legend .receipts:before{background:#657ce5}.chart-months{display:grid;grid-template-columns:repeat(12,1fr);color:#98a19c;font-size:11px;text-align:center}.expense-panel{grid-row:span 1}.expense-breakdown{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:12px;padding:3px 14px 15px}.donut{--p:68;display:grid;place-content:center;width:96px;height:96px;border-radius:50%;background:radial-gradient(circle,#fff 57%,transparent 58%),conic-gradient(var(--agra-primary) calc(var(--p)*1%),#e9eeeb 0);text-align:center}.donut strong{font-size:11px}.donut span{color:var(--agra-muted);font-size:11px}.mini-ranking{display:grid;gap:7px}.mini-ranking>div{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;gap:6px;font-size:11px}.mini-ranking i{width:6px;height:6px;border-radius:50%;background:var(--agra-primary)}.mini-ranking .tone-1{background:#697fe2}.mini-ranking .tone-2{background:#e2a046}.mini-ranking .tone-3{background:#a77bd4}.mini-ranking .tone-4{background:#d56d76}.mini-ranking strong{font-size:11px}.rank-list,.dense-list{padding:0 14px 8px}.rank-list a,.dense-list a{display:flex;align-items:center;gap:8px;min-height:40px;border-top:1px solid var(--agra-border-soft);color:inherit;text-decoration:none}.rank-list a:first-child,.dense-list a:first-child{border-top:0}.rank-list b{width:18px;color:#a0aaa4;font-size:11px}.mini-avatar{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:8px;background:#e9f5eb;color:var(--agra-primary-dark);font-size:11px;font-weight:750}.rank-list a>span:nth-child(3),.dense-list a>span:nth-child(2){min-width:0;flex:1}.rank-list strong,.rank-list small,.dense-list strong,.dense-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-list strong,.dense-list strong{font-size:11px}.rank-list small,.dense-list small{margin-top:1px;color:var(--agra-muted);font-size:11px}.rank-list em,.dense-list em{font-size:11px;font-style:normal;font-weight:700;white-space:nowrap}.count-badge{min-width:21px;height:21px;padding:4px;border-radius:20px;background:#fff0ef;color:var(--agra-danger);font-size:11px;text-align:center}.status-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#929e97}.status-dot.danger{background:#d35e5e}.status-dot.warning{background:#df9b3d}.status-dot.success{background:var(--agra-primary)}.premium-activity{padding:0 14px 8px}.premium-activity>div{display:flex;gap:8px;min-height:39px;padding:7px 0;border-top:1px solid var(--agra-border-soft)}.premium-activity>div:first-child{border-top:0}.premium-activity>div>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--agra-primary-soft);color:var(--agra-primary)}.premium-activity .icon{inline-size:12px;block-size:12px;min-inline-size:12px;min-block-size:12px;max-inline-size:12px;max-block-size:12px}.premium-activity p{margin:0}.premium-activity strong,.premium-activity small{display:block;font-size:11px}.premium-activity small{color:var(--agra-muted);font-size:11px}.compact-empty{padding:22px 14px;color:var(--agra-muted);font-size:11px;text-align:center}
.partner-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.partner-stats article{display:flex;align-items:center;gap:10px;min-height:78px;padding:12px}.partner-stats strong{font-size:18px}.partner-index-grid{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:11px}.partner-table-panel{min-width:0}.list-tabs{height:42px;padding:0 13px;border-bottom:1px solid var(--agra-border-soft)}.list-tabs>div{display:flex;height:100%;gap:17px}.list-tabs a{display:flex;align-items:center;gap:5px;border-bottom:2px solid transparent;color:var(--agra-muted);font-size:11px;font-weight:600;text-decoration:none}.list-tabs a.active{border-color:var(--agra-primary);color:var(--agra-primary-dark)}.list-tabs a span{padding:1px 5px;border-radius:10px;background:var(--agra-primary-soft);font-size:11px}.premium-toolbar{display:flex;align-items:center;gap:7px;padding:9px 12px;border-bottom:1px solid var(--agra-border-soft);background:#fbfcfb}.premium-toolbar .search-field{max-width:330px}.premium-toolbar select{width:145px}.premium-table{table-layout:auto}.premium-table th{padding:8px 10px;background:#f8faf9;border-color:var(--agra-border-soft);font-size:11px}.premium-table td{height:49px;padding:7px 10px;border-color:var(--agra-border-soft);font-size:11px}.identity-cell{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none}.identity-cell>span:last-child{min-width:0}.identity-cell strong,.identity-cell small,.cell-main{display:block}.identity-cell strong{font-size:11px}.identity-cell small,.premium-table td small{margin-top:1px;color:var(--agra-muted);font-size:11px}.soft-label{padding:4px 7px;border-radius:6px;background:#f4f7fb;color:#58655d;font-size:11px}.row-menu{position:relative}.row-menu summary{list-style:none;font-size:15px}.row-menu[open] .popover{display:grid;top:32px}.premium-pagination{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:7px 12px;border-top:1px solid var(--agra-border-soft);color:var(--agra-muted);font-size:11px}.premium-pagination>div{display:flex;align-items:center;gap:5px}.premium-pagination b{display:grid;width:27px;height:27px;place-items:center;border-radius:6px;background:var(--agra-primary);color:#fff;font-size:11px}.premium-pagination .icon-button{width:27px;height:27px;text-decoration:none}.partner-insights{display:grid;align-content:start;gap:10px}.city-list{display:grid;gap:9px;padding:4px 13px 14px}.city-list>div{display:grid;grid-template-columns:62px 1fr 18px;align-items:center;gap:7px;font-size:11px}.city-list i{height:4px;border-radius:4px;background:#edf1ee}.city-list i b{display:block;height:100%;border-radius:4px;background:var(--agra-primary)}.city-list strong{text-align:right}.recent-partners{padding:0 12px 9px}.recent-partners a{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--agra-border-soft);color:inherit;text-decoration:none}.recent-partners a:first-child{border-top:0}.recent-partners strong,.recent-partners small{display:block;font-size:11px}.recent-partners small{color:var(--agra-muted);font-size:11px}.insight-cta{display:grid;grid-template-columns:34px 1fr;gap:1px 9px;padding:13px;border-radius:10px;background:linear-gradient(135deg,#0b78f6,#075fc7);color:#fff;text-decoration:none;box-shadow:0 7px 16px rgba(33,139,73,.15)}.insight-cta>span{grid-row:span 2;display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:#ffffff20}.insight-cta strong{font-size:11px}.insight-cta small{font-size:11px;opacity:.8}
.breadcrumb-back{display:inline-flex;width:max-content;align-items:center;gap:5px;color:var(--agra-muted);font-size:11px;text-decoration:none}.breadcrumb-back .icon{transform:rotate(180deg);inline-size:13px;block-size:13px;min-inline-size:13px;min-block-size:13px;max-inline-size:13px;max-block-size:13px}.premium-identity{display:flex;align-items:center;gap:12px}.premium-identity .identity-avatar{width:46px;height:46px;border-radius:12px;font-size:15px}.identity-copy{min-width:0;flex:1}.identity-copy>div{display:flex;align-items:center;gap:8px}.identity-copy h1{margin:0;font-size:21px;letter-spacing:-.025em}.identity-copy p{margin:3px 0 0;color:var(--agra-muted);font-size:11px}.identity-actions{display:flex;gap:6px}.detail-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.detail-kpis article{padding:11px 13px}.detail-kpis strong{font-size:17px}.premium-tabs{display:flex;gap:20px;height:39px;border-bottom:1px solid var(--agra-border)}.premium-tabs a{display:flex;align-items:center;gap:5px;border-bottom:2px solid transparent;color:var(--agra-muted);font-size:11px;font-weight:600;text-decoration:none}.premium-tabs a.active{border-color:var(--agra-primary);color:var(--agra-primary-dark)}.premium-tabs a span{padding:1px 5px;border-radius:10px;background:#edf2ef;font-size:11px}.client-overview-grid{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(240px,.72fr);gap:11px}.client-main-column,.client-side-column{display:grid;align-content:start;gap:11px}.client-chart svg{height:145px;padding:0 12px}.premium-table.compact td{height:42px}.money-cell{font-weight:700;text-align:right}.payments-list{padding-bottom:7px}.aging-visual{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:7px;padding:2px 12px 14px}.donut.aging{--p:76;width:88px;height:88px;background:radial-gradient(circle,#fff 57%,transparent 58%),conic-gradient(#d76767 0 37%,#e4a040 37% 64%,#4b9c66 64% 100%)}.aging-visual p{display:grid;grid-template-columns:7px 1fr auto;align-items:center;gap:6px;margin:7px 0;font-size:11px}.aging-visual p i{width:6px;height:6px;border-radius:50%}.aging-visual i.overdue{background:#d76767}.aging-visual i.soon{background:#e4a040}.aging-visual i.future{background:#4b9c66}.aging-visual p strong{font-size:11px}.partner-info dl{display:grid;grid-template-columns:72px 1fr;margin:0;padding:0 13px 12px}.partner-info dt,.partner-info dd{padding:6px 0;border-bottom:1px solid var(--agra-border-soft);font-size:11px}.partner-info dt{color:var(--agra-muted)}.partner-info dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere}.contact-list{padding:0 12px 9px}.contact-list>div{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--agra-border-soft)}.contact-list>div:first-child{border-top:0}.contact-list p{margin:0}.contact-list strong,.contact-list small{display:block;font-size:11px}.contact-list small{color:var(--agra-muted);font-size:11px}.horizontal-activity>div:last-child{display:flex;overflow:auto;padding:0 13px 12px}.horizontal-activity article{position:relative;display:flex;min-width:190px;gap:7px;padding:7px 14px 7px 0}.horizontal-activity article:after{content:"";position:absolute;top:18px;right:4px;width:8px;border-top:1px solid var(--agra-border)}.horizontal-activity article>span{display:grid;width:23px;height:23px;place-items:center;border-radius:7px;background:var(--agra-primary-soft);color:var(--agra-primary)}.horizontal-activity .icon{inline-size:11px;block-size:11px;min-inline-size:11px;min-block-size:11px;max-inline-size:11px;max-block-size:11px}.horizontal-activity p{margin:0}.horizontal-activity strong,.horizontal-activity small{display:block;font-size:11px}.horizontal-activity small{color:var(--agra-muted);font-size:11px}
html[dir=rtl] .shell{margin-right:208px;margin-left:0}html[dir=rtl] .sidebar nav a.active{box-shadow:inset -3px 0 0 var(--agra-primary)}html[dir=rtl] .breadcrumb-back .icon{transform:none}html[dir=rtl] .money-cell,html[dir=rtl] .premium-kpi strong,html[dir=rtl] .detail-kpis strong{direction:ltr;unicode-bidi:isolate}
@media(max-width:1200px){.premium-kpi-grid{grid-template-columns:repeat(3,1fr)}.premium-dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(250px,.75fr)}.sales-chart-panel{grid-column:span 2}.expense-panel{grid-column:span 1}.activity-panel{grid-column:span 2}.partner-index-grid{grid-template-columns:1fr}.partner-insights{grid-template-columns:repeat(3,1fr)}.client-overview-grid{grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr)}}
@media(max-width:860px){.shell,html[dir=rtl] .shell{margin:0}.premium-dashboard-grid{grid-template-columns:1fr 1fr}.sales-chart-panel{grid-column:span 2}.partner-insights{grid-template-columns:repeat(2,1fr)}.client-overview-grid{grid-template-columns:1fr}.client-side-column{grid-template-columns:repeat(2,1fr)}.partner-info{grid-row:span 2}.detail-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){main{width:calc(100% - 24px);padding-top:14px}.premium-page{gap:10px}.premium-page-head{align-items:flex-start;flex-direction:column}.premium-page-head h1{font-size:21px}.premium-page-head>.button{width:100%}.premium-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.premium-kpi{min-height:82px;padding:10px}.premium-kpi:last-child{grid-column:1/-1}.premium-kpi strong{font-size:16px}.premium-dashboard-grid{grid-template-columns:1fr}.premium-dashboard-grid>*{grid-column:auto}.line-chart svg{height:130px}.partner-stats{grid-template-columns:repeat(2,1fr);gap:8px}.partner-index-grid{display:block}.partner-insights{display:none}.premium-toolbar{display:grid;grid-template-columns:1fr 1fr}.premium-toolbar .search-field{grid-column:1/-1;max-width:none}.premium-toolbar select{width:100%}.premium-table,.premium-table tbody,.premium-table tr,.premium-table td{display:block}.premium-table thead{display:none}.premium-table tr{position:relative;padding:11px 12px;border-bottom:1px solid var(--agra-border)}.premium-table td{display:flex;justify-content:space-between;height:auto;padding:3px 0;border:0;text-align:right}.premium-table td:before{content:attr(data-label);color:var(--agra-muted);font-size:11px}.premium-table td:first-child{display:block;text-align:left}.premium-table td:first-child:before,.premium-table td:last-child:before{display:none}.premium-table td:last-child{position:absolute;right:9px;top:9px}.identity-cell{padding-right:35px}.list-tabs{overflow-x:auto}.premium-identity{align-items:flex-start;flex-wrap:wrap}.identity-copy{width:calc(100% - 60px)}.identity-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.identity-actions .button{min-width:0}.identity-actions .icon-button{position:absolute;right:12px}.detail-kpis{gap:8px}.detail-kpis article{padding:10px}.detail-kpis strong{font-size:14px}.premium-tabs{gap:16px;overflow-x:auto;white-space:nowrap}.client-side-column{grid-template-columns:1fr}.partner-info{grid-row:auto}.client-chart svg{height:120px}.horizontal-activity>div:last-child{display:grid}.horizontal-activity article{min-width:0}.horizontal-activity article:after{display:none}.chart-months{font-size:11px}}

/* UX 2.0.1 — fidelity geometry and reusable server-rendered tabs */
@media(max-width:1200px){.reference-list-shell{grid-template-columns:1fr}.reference-list-rail{grid-template-columns:repeat(3,1fr)}.reference-new-client{align-content:center}}
@media(max-width:860px){.reference-list-kpis{grid-template-columns:repeat(2,1fr)}.reference-list-rail{display:none}.reference-list-toolbar{display:grid;grid-template-columns:1fr auto}.reference-list-toolbar .search-field{max-width:none}.reference-client-table th:nth-child(3),.reference-client-table td:nth-child(3),.reference-client-table th:nth-child(4),.reference-client-table td:nth-child(4){display:none}}
@media(max-width:640px){.reference-list-head{align-items:flex-start}.reference-list-head .page-head-actions,.reference-list-head .button{width:100%}.reference-list-kpis{gap:7px}.reference-list-kpis article{grid-template-columns:1fr;min-height:78px;padding:10px}.reference-list-kpis .metric-icon{display:none}.reference-list-kpis strong{font-size:15px}.reference-list-toolbar{grid-template-columns:1fr}.reference-list-toolbar select,.reference-list-toolbar .button{width:100%}.reference-client-table,.reference-client-table tbody,.reference-client-table tr,.reference-client-table td{display:block}.reference-client-table thead{display:none}.reference-client-table tr{position:relative;padding:10px;border-bottom:1px solid var(--agra-border)}.reference-client-table td{display:flex;justify-content:space-between;height:auto;padding:3px 0;border:0;text-align:right}.reference-client-table td:before{content:attr(data-label);color:var(--agra-muted);font-size:11px}.reference-client-table td:first-child,.reference-client-table td:nth-last-child(2){display:none}.reference-client-table td:nth-child(2){display:block;text-align:left}.reference-client-table td:nth-child(2):before,.reference-client-table td:last-child:before{display:none}.reference-client-table td:last-child{position:absolute;right:8px;top:8px}.reference-client-identity{padding-right:55px}.reference-pagination{align-items:flex-start;flex-direction:column;gap:7px}}
.reference-list-page{gap:11px}.list-breadcrumb{display:flex;align-items:center;gap:6px;color:var(--agra-muted);font-size:11px}.list-breadcrumb a{color:var(--agra-primary-dark);font-weight:650;text-decoration:none}.reference-list-head{align-items:center;min-height:50px}.reference-list-head h1{font-size:23px}.reference-list-shell{display:grid;grid-template-columns:minmax(0,1fr) 214px;align-items:start;gap:11px}.reference-list-main{display:grid;gap:11px;min-width:0}.reference-list-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.reference-list-kpis article{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;min-height:95px;padding:13px;border:1px solid var(--agra-border);border-radius:9px;background:#fff;box-shadow:var(--agra-shadow-sm)}.reference-list-kpis .metric-icon{width:38px;height:38px}.reference-list-kpis small,.reference-list-kpis span{display:block;color:var(--agra-muted);font-size:11px}.reference-list-kpis strong{display:block;margin:3px 0;font-size:18px;line-height:1.1}.reference-list-kpis article>svg{position:absolute;right:10px;bottom:11px;width:54px;height:25px}.reference-list-kpis article>svg polyline,.reference-list-kpis article>svg path{fill:none;stroke:var(--agra-primary);stroke-width:2;stroke-linecap:round}.reference-list-kpis article>i{position:absolute;right:11px;bottom:15px;width:56px;height:4px;border-radius:4px;background:#e8eeea}.reference-list-kpis article>i b{display:block;height:100%;border-radius:inherit;background:var(--agra-primary)}.reference-list-table{min-width:0;overflow:visible}.reference-list-tabs{display:flex;align-items:center;gap:19px;height:42px;padding:0 13px;border-bottom:1px solid var(--agra-border-soft);overflow-x:auto}.reference-list-tabs a{display:flex;align-items:center;height:100%;border-bottom:2px solid transparent;color:var(--agra-muted);font-size:11px;font-weight:650;text-decoration:none;white-space:nowrap}.reference-list-tabs a.active{border-color:var(--agra-primary);color:var(--agra-primary-dark)}.reference-list-toolbar{display:flex;align-items:center;gap:7px;padding:9px 11px;border-bottom:1px solid var(--agra-border-soft);background:#fafcfb}.reference-list-toolbar .search-field{max-width:390px;flex:1}.reference-list-toolbar select{width:118px}.reference-client-table{width:100%;border-collapse:collapse;table-layout:auto}.reference-client-table th{height:31px;padding:6px 8px;border-bottom:1px solid var(--agra-border);background:#f8faf9;color:var(--agra-muted);font-size:11px;font-weight:750;text-align:left;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}.reference-client-table td{height:48px;padding:6px 8px;border-bottom:1px solid var(--agra-border-soft);color:var(--agra-text-secondary);font-size:11px;vertical-align:middle}.reference-client-table tbody tr:hover{background:#fbfdfb}.reference-client-table th:first-child,.reference-client-table td:first-child{width:25px;text-align:center}.reference-client-table input[type=checkbox]{width:13px;height:13px}.reference-client-identity,.contact-cell{display:flex;align-items:center;gap:7px;color:inherit;text-decoration:none}.reference-client-identity .mini-avatar{width:29px;height:29px;font-size:11px}.reference-client-identity strong,.reference-client-identity small,.contact-cell strong,.contact-cell small,.activity-cell strong,.activity-cell small{display:block;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-client-identity strong,.contact-cell strong,.activity-cell strong{color:var(--agra-text);font-size:11px}.reference-client-identity small,.contact-cell small,.activity-cell small{margin-top:2px;color:var(--agra-muted);font-size:11px}.contact-cell>.icon{inline-size:12px;block-size:12px;min-inline-size:12px;min-block-size:12px;max-inline-size:12px;max-block-size:12px;color:var(--agra-muted)}.type-badge{display:inline-flex;padding:3px 6px;border-radius:5px;background:#e8f2ff;color:#386b9c;font-size:11px;font-weight:700}.type-badge.person{background:#f0eafd;color:#76599c}.money-cell.due{color:#c55454}.reference-client-table .row-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}.reference-client-table .icon-button{width:25px;height:25px}.reference-pagination{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:7px 11px;color:var(--agra-muted);font-size:11px}.reference-pagination>div{display:flex;align-items:center;gap:4px}.reference-pagination select{width:auto;min-height:27px;padding:3px 24px 3px 7px;font-size:11px}.reference-pagination a,.reference-pagination b{display:grid;width:25px;height:25px;place-items:center;border-radius:5px;color:var(--agra-text-secondary);font-size:11px;text-decoration:none}.reference-pagination b{background:var(--agra-primary);color:#fff}.reference-list-rail{display:grid;align-content:start;gap:10px}.reference-list-rail .premium-panel{margin:0}.reference-list-rail .city-list{padding-bottom:8px}.reference-list-rail .city-list>div{grid-template-columns:56px 1fr 16px}.status-distribution{padding-bottom:10px}.status-donut{display:grid;width:86px;height:86px;margin:8px auto 10px;place-items:center;border-radius:50%;background:radial-gradient(circle,#fff 57%,transparent 58%),conic-gradient(var(--agra-primary) 0 86%,#dfe5e1 86%)}.status-donut strong{text-align:center;font-size:17px}.status-donut small{display:block;color:var(--agra-muted);font-size:11px;font-weight:500}.status-distribution>p{display:grid;grid-template-columns:7px 1fr auto;align-items:center;gap:6px;margin:5px 13px;font-size:11px}.status-distribution>p i{width:6px;height:6px;border-radius:50%;background:var(--agra-primary)}.status-distribution>p i.inactive{background:#dfe5e1}.reference-new-client{display:grid;gap:4px;padding:13px;border-radius:9px;background:linear-gradient(135deg,#247f49,#31a05c);color:#fff;text-decoration:none;box-shadow:0 7px 16px rgba(33,139,73,.15)}.reference-new-client strong{font-size:11px}.reference-new-client span{font-size:11px;opacity:.8}.reference-new-client b{width:max-content;margin-top:5px;padding:6px 8px;border-radius:6px;background:#fff;color:var(--agra-primary-dark);font-size:11px}
.reference-dashboard-head{align-items:center;min-height:61px}.reference-dashboard-head h1{margin:0 0 4px;font-size:22px}.reference-dashboard-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.reference-dashboard-kpi{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px;min-height:136px;padding:18px 14px;border:1px solid var(--agra-border);border-radius:10px;background:#fff;box-shadow:var(--agra-shadow-sm)}.reference-dashboard-kpi .metric-icon{width:42px;height:42px}.reference-dashboard-kpi small,.reference-dashboard-kpi span{display:block}.reference-dashboard-kpi small{font-size:11px}.reference-dashboard-kpi strong{display:block;margin:7px 0 5px;font-size:19px;line-height:1.12;white-space:nowrap}.reference-dashboard-kpi span{color:var(--agra-muted);font-size:11px}.reference-dashboard-kpi>svg{position:absolute;right:12px;bottom:15px;width:72px;height:34px}.reference-dashboard-kpi>svg polyline{fill:none;stroke:var(--agra-primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.reference-dashboard-kpi>a{grid-column:2;color:var(--agra-primary);font-size:11px;text-decoration:none}.reference-dashboard-primary{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.78fr) minmax(290px,.85fr);gap:12px}.reference-dashboard-primary>.premium-panel{min-height:270px}.reference-dashboard-primary select,.dashboard-expenses select{width:auto;min-height:28px;padding:4px 26px 4px 8px;font-size:11px}.dashboard-sales-chart{padding-bottom:10px}.dashboard-sales-chart .chart-legend{padding:0 14px 4px}.dashboard-sales-chart>svg{width:100%;height:176px;padding:0 13px}.dashboard-sales-chart .chart-months{padding:0 14px}.revenue-donut-wrap{display:grid;grid-template-columns:155px 1fr;align-items:center;gap:9px;padding:16px 14px}.revenue-donut{display:grid;width:148px;height:148px;place-content:center;border-radius:50%;text-align:center}.revenue-donut strong{display:block;max-width:96px;font-size:13px}.revenue-donut-wrap p{display:grid;grid-template-columns:8px 1fr auto;align-items:start;gap:7px;margin:12px 0;font-size:11px}.revenue-donut-wrap p i{width:7px;height:7px;margin-top:3px;border-radius:50%}.revenue-donut-wrap p span small{display:block;margin-top:3px;color:var(--agra-muted)}.dashboard-top-clients ol{list-style:none;margin:0;padding:3px 14px}.dashboard-top-clients li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:36px;border-bottom:1px solid var(--agra-border-soft);font-size:11px}.dashboard-top-clients li b{display:grid;width:20px;height:20px;place-items:center;border-radius:6px;background:#f1f4f2;color:var(--agra-muted)}.dashboard-top-clients li a{overflow:hidden;color:var(--agra-text);font-weight:650;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dashboard-top-clients li strong{font-size:11px}.panel-footer-link{display:block;padding:11px 14px;color:var(--agra-primary);font-size:11px;font-weight:650;text-decoration:none}.reference-dashboard-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(300px,.88fr);gap:12px}.overdue-card{min-height:302px}.overdue-card .panel-head h2 span{display:inline-grid;min-width:19px;height:19px;margin-left:5px;place-items:center;border-radius:50%;background:#e95a5a;color:#fff;font-size:11px}.overdue-card table{font-size:11px}.overdue-card th,.overdue-card td{height:34px;padding:7px 10px}.overdue-card td:last-child{text-align:right}.overdue-card footer{display:flex;justify-content:space-between;padding:10px 12px;border-top:1px solid var(--agra-border-soft);font-size:11px}.overdue-card footer strong{color:var(--agra-danger)}.dashboard-empty-row{display:grid;min-height:166px;place-items:center;color:var(--agra-muted);font-size:11px}.dashboard-right-stack{display:grid;gap:12px}.dashboard-activity{min-height:158px}.dashboard-activity>div:not(.panel-head){display:flex;align-items:center;gap:8px;min-height:31px;padding:5px 12px;border-top:1px solid var(--agra-border-soft)}.dashboard-activity>div>span{display:grid;width:22px;height:22px;place-items:center;border-radius:7px;background:var(--agra-primary-soft);color:var(--agra-primary)}.dashboard-activity .icon{inline-size:11px;block-size:11px;min-inline-size:11px;min-block-size:11px;max-inline-size:11px;max-block-size:11px}.dashboard-activity p{margin:0}.dashboard-activity strong,.dashboard-activity small{display:block;font-size:11px}.dashboard-activity small{color:var(--agra-muted);font-size:11px}.dashboard-expenses{padding-bottom:8px}.dashboard-expenses>div:not(.panel-head){display:grid;grid-template-columns:90px 1fr 70px 25px;align-items:center;gap:7px;padding:3px 12px;font-size:11px}.dashboard-expenses i{height:4px;border-radius:4px;background:#e8edea}.dashboard-expenses i b{display:block;height:100%;border-radius:4px;background:var(--agra-primary)}.dashboard-expenses strong,.dashboard-expenses em{text-align:right;font-size:11px;font-style:normal}.dashboard-bottom-stats{display:grid;grid-template-columns:repeat(6,1fr);min-height:72px;border:1px solid var(--agra-border);border-radius:10px;background:#fff;box-shadow:var(--agra-shadow-sm)}.dashboard-bottom-stats article{display:flex;align-items:center;gap:10px;padding:10px 14px;border-left:1px solid var(--agra-border-soft)}.dashboard-bottom-stats article:first-child{border-left:0}.dashboard-bottom-stats .metric-icon{width:34px;height:34px}.dashboard-bottom-stats small{display:block;color:var(--agra-muted);font-size:11px}.dashboard-bottom-stats strong{display:block;margin-top:2px;font-size:16px}
.agra-tabs{overflow-y:hidden;scrollbar-width:none}.agra-tabs::-webkit-scrollbar{height:0}
.detail-tabs{display:flex;align-items:center;gap:5px;min-height:40px;padding:0 4px;border-bottom:1px solid var(--agra-border);overflow-x:auto;scrollbar-width:none}.detail-tabs a{position:relative;display:flex;align-items:center;min-height:40px;padding:9px 12px;color:#6d7d9b;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}.detail-tabs a:hover,.detail-tabs a:focus-visible{color:#0b78f6;background:#f7faff}.detail-tabs a.active{color:#0b78f6}.detail-tabs a.active:after{content:"";position:absolute;inset-inline:8px;bottom:-1px;height:2px;border-radius:3px;background:#0b78f6}
@media(max-width:1200px){.reference-dashboard-kpis{grid-template-columns:repeat(3,1fr)}.reference-dashboard-primary{grid-template-columns:1fr 1fr}.dashboard-sales-chart{grid-column:1/-1}.reference-dashboard-secondary{grid-template-columns:1fr 1fr}.dashboard-right-stack{grid-column:1/-1;grid-template-columns:1fr 1fr}.dashboard-bottom-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:860px){.reference-dashboard-primary,.reference-dashboard-secondary{grid-template-columns:1fr}.dashboard-sales-chart,.dashboard-right-stack{grid-column:auto}.dashboard-right-stack{grid-template-columns:1fr}.reference-dashboard-kpis{grid-template-columns:repeat(2,1fr)}.dashboard-bottom-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.reference-dashboard-head .page-head-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.reference-dashboard-kpis{gap:8px}.reference-dashboard-kpi{grid-template-columns:34px 1fr;min-height:102px;padding:11px 9px;gap:8px}.reference-dashboard-kpi .metric-icon{width:34px;height:34px}.reference-dashboard-kpi strong{font-size:14px}.reference-dashboard-kpi>svg{display:none}.reference-dashboard-primary>.premium-panel{min-height:0}.revenue-donut-wrap{grid-template-columns:120px 1fr}.revenue-donut{width:112px;height:112px}.dashboard-bottom-stats{grid-template-columns:1fr 1fr}.dashboard-bottom-stats article{padding:9px}.reference-dashboard-secondary{display:grid}.overdue-card{min-height:0}}
.sidebar{width:190px;padding-inline:9px}.shell{margin-left:190px}.sidebar nav a{padding-inline:9px;font-size:11.5px}.nav-label{margin-inline:9px}.brand{padding-inline:8px}.topbar{padding-inline:18px}.global-search{width:min(450px,44vw)}main{width:calc(100% - 36px)}html[dir=rtl] .shell{margin-right:190px;margin-left:0}
.detail-breadcrumb{display:flex;align-items:center;gap:6px;color:var(--agra-muted);font-size:11px}.detail-breadcrumb a{color:var(--agra-primary-dark);font-weight:650;text-decoration:none}.detail-breadcrumb strong{font-weight:500}.reference-client-hero{display:grid;grid-template-columns:50px minmax(280px,1fr) auto;align-items:center;gap:13px;min-height:74px;padding:11px 13px;border:1px solid var(--agra-border);border-radius:10px;background:linear-gradient(105deg,#f6fbf7,#fff 62%,#f7faf8);box-shadow:var(--agra-shadow-sm)}.reference-client-hero .identity-avatar{width:46px;height:46px}.reference-client-hero .identity-copy>div{display:flex;align-items:center;gap:8px}.reference-client-hero h1{margin:0;font-size:21px;line-height:1.16;letter-spacing:-.025em}.reference-client-hero .identity-copy>p{margin:3px 0;color:var(--agra-muted);font-size:11px}.reference-client-hero .identity-copy>p strong{color:var(--agra-text-secondary)}.reference-client-hero .identity-copy i{padding-inline:4px;font-style:normal}.hero-contact{display:flex;gap:13px;color:var(--agra-text-secondary);font-size:11px}.hero-contact span{display:flex;align-items:center;gap:4px}.hero-contact .icon{inline-size:11px;block-size:11px;min-inline-size:11px;min-block-size:11px;max-inline-size:11px;max-block-size:11px}.reference-client-hero .identity-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.reference-client-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.reference-client-kpis article{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;min-height:70px;padding:9px 11px;border:1px solid var(--agra-border);border-radius:9px;background:#fff;box-shadow:var(--agra-shadow-sm)}.reference-client-kpis small,.reference-client-kpis span{display:block;color:var(--agra-muted);font-size:11px}.reference-client-kpis strong{display:block;margin:2px 0;color:var(--agra-text);font-size:16px;line-height:1.15;letter-spacing:-.02em;white-space:nowrap}.agra-tabs{display:flex;align-items:center;gap:2px;min-height:40px;padding:0 4px;border-bottom:1px solid var(--agra-border);overflow-x:auto;scrollbar-width:thin}.agra-tab{position:relative;display:flex;align-items:center;gap:5px;min-height:40px;padding:9px 11px;color:var(--agra-muted);font-size:11px;font-weight:650;text-decoration:none;white-space:nowrap}.agra-tab:hover,.agra-tab:focus-visible{color:var(--agra-primary-dark)}.agra-tab.is-active{color:var(--agra-primary-dark);font-weight:750}.agra-tab.is-active:after{content:"";position:absolute;inset-inline:8px;bottom:-1px;height:3px;border-radius:3px;background:var(--agra-primary)}.agra-tab-count{display:grid;min-width:17px;height:17px;padding:0 4px;place-items:center;border-radius:9px;background:#edf2ef;color:#6d7d9b;font-size:11px}.agra-tab.is-active .agra-tab-count{background:var(--agra-primary-soft);color:var(--agra-primary-dark)}.agra-tab-panel{min-width:0}.reference-client-layout{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(285px,1fr);align-items:start;gap:11px}.reference-client-layout>main,.patient-summary-aside{display:grid;align-content:start;gap:10px}.client-chart .panel-head{padding-bottom:3px}.client-chart svg{height:144px}.overview-table .premium-table td{height:40px}.patient-summary-aside .premium-panel{margin:0}.partner-key-card dl{margin:0;padding:3px 12px 9px}.partner-key-card dl>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:31px;border-bottom:1px solid var(--agra-border-soft)}.partner-key-card dl>div:last-child{border-bottom:0}.partner-key-card dt{color:var(--agra-muted);font-size:11px}.partner-key-card dd{margin:0;max-width:65%;overflow:hidden;font-size:11px;font-weight:700;text-align:right;text-overflow:ellipsis;white-space:nowrap}.overview-activity .premium-activity>div{min-height:34px;padding-block:5px}.tab-view-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:11px 13px;border:1px solid var(--agra-border);border-radius:10px;background:#fff}.tab-view-heading h2{margin:0;font-size:15px}.tab-view-heading p{margin:2px 0 0;color:var(--agra-muted);font-size:11px}.tab-table td{height:44px}.contact-tab-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.contact-card{position:relative;display:grid;grid-template-columns:42px 1fr;gap:10px;padding:14px}.contact-card .identity-avatar{width:40px;height:40px;font-size:12px}.contact-card h3{margin:0;font-size:12px}.contact-card p{margin:2px 0 8px;color:var(--agra-muted);font-size:11px}.contact-card dl{display:grid;grid-template-columns:62px 1fr;margin:0}.contact-card dt,.contact-card dd{padding:4px 0;border-top:1px solid var(--agra-border-soft);font-size:11px}.contact-card dt{color:var(--agra-muted)}.contact-card dd{margin:0;font-weight:600}.contact-card>.badge{position:absolute;top:12px;right:12px}.full-activity{padding:14px}.full-activity .timeline-list{max-width:780px}.information-tab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.information-card{padding:0}.information-card>header{display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid var(--agra-border-soft);background:linear-gradient(135deg,#f8fbf9,#fff)}.information-card>header h3{margin:2px 0 0;font-size:12px}.information-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:4px 14px 12px}.information-card dl>div{padding:9px 3px;border-bottom:1px solid var(--agra-border-soft)}.information-card dt{margin-bottom:2px;color:var(--agra-muted);font-size:11px}.information-card dd{margin:0;overflow-wrap:anywhere;font-size:11px;font-weight:700}.information-card dl .wide,.information-card.wide{grid-column:1/-1}.information-card>p{margin:0;padding:14px;color:var(--agra-text-secondary);font-size:11px;line-height:1.55}
@media(max-width:1100px){.reference-client-layout{grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr)}.reference-client-hero{grid-template-columns:46px 1fr}.reference-client-hero .identity-actions{grid-column:1/-1}.contact-tab-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:860px){.shell,html[dir=rtl] .shell{margin:0}.reference-client-layout{grid-template-columns:1fr}.patient-summary-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-client-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.reference-client-hero{grid-template-columns:44px 1fr;padding:10px}.reference-client-hero h1{font-size:19px}.reference-client-hero .identity-actions{display:flex;overflow-x:auto;width:100%}.reference-client-hero .identity-actions .button{flex:0 0 auto}.reference-client-kpis{gap:7px}.reference-client-kpis article{grid-template-columns:1fr;min-height:72px;padding:9px}.reference-client-kpis .metric-icon{display:none}.reference-client-kpis strong{font-size:14px}.agra-tabs{margin-inline:-12px;padding-inline:10px}.agra-tab{padding-inline:9px}.reference-client-layout{display:block}.reference-client-layout>main,.patient-summary-aside{display:grid;grid-template-columns:1fr}.patient-summary-aside{margin-top:10px}.tab-view-heading{align-items:flex-start;flex-direction:column}.tab-view-heading .button{width:100%}.contact-tab-grid,.information-tab-grid,.information-card dl{grid-template-columns:1fr}.information-card dl .wide,.information-card.wide{grid-column:auto}.tab-table td:last-child{position:static}.contact-card>.badge{position:static;width:max-content}.hero-contact{display:none}}
/* MonCabinet-aligned AGRA design system baseline. */
:root{--agra-sidebar-width:236px;--agra-header-height:62px;--agra-page-gutter:clamp(14px,1.45vw,22px);--agra-right-rail:236px;--agra-font-micro:10px;--agra-font-secondary:11.5px;--agra-font-body:13.5px;--agra-font-label:12px;--agra-font-table:12.5px;--agra-font-button:12.5px;--agra-font-card-title:15px;--agra-font-page-title:22px;--agra-control-height:36px;--agra-button-height:34px;--agra-table-row-height:42px;--agra-tab-height:38px;--agra-radius-sm:7px;--agra-radius-md:10px;--agra-radius-lg:14px;--agra-shadow-card:0 2px 8px rgba(30,61,45,.055)}
html body{font-family:Inter,"Segoe UI",Roboto,system-ui,-apple-system,sans-serif;font-size:var(--agra-font-body);line-height:1.42;color:var(--agra-text)}
html body .sidebar{width:var(--agra-sidebar-width);padding:16px 12px 0;overflow-x:hidden}html body .shell{margin-left:var(--agra-sidebar-width)}html[dir=rtl] body .shell{margin-right:var(--agra-sidebar-width);margin-left:0}
html body .brand{height:50px;gap:10px;padding:1px 8px 13px;font-size:17px;letter-spacing:.045em}html body .brand-mark{width:34px;height:34px;flex:0 0 34px;border-radius:9px}html body .brand-mark .icon{inline-size:20px;block-size:20px;min-inline-size:20px;min-block-size:20px;max-inline-size:20px;max-block-size:20px}html body .brand small{font-size:11px}
html body .sidebar nav{padding:8px 0 14px}html body .sidebar nav a{min-height:37px;margin:1px 0;padding:8px 10px;gap:10px;border-radius:8px;font-size:13px;line-height:1.25}html body .sidebar nav a .icon{inline-size:18px;block-size:18px;min-inline-size:18px;min-block-size:18px;max-inline-size:18px;max-block-size:18px}html body .nav-label{margin:15px 10px 5px;font-size:11px;line-height:1.2}html body .sidebar-user{min-height:62px;margin-inline:-12px;padding:12px 16px;gap:9px}html body .sidebar-user strong{font-size:12px}html body .sidebar-user small{font-size:11px}
html body .topbar{height:var(--agra-header-height);padding:0 22px;gap:14px}html body .global-search{width:min(540px,48vw);height:36px;padding:0 12px;border-radius:8px;font-size:12.5px}html body .button{min-height:var(--agra-button-height);padding:7px 11px;border-radius:var(--agra-radius-sm);gap:5px;font-size:var(--agra-font-button);line-height:1.2}html body .icon-button{width:34px;height:34px;border-radius:7px}html body .new-menu .button{height:34px;min-width:118px}
html body main{width:100%;max-width:none;margin:0;padding:var(--agra-page-gutter)}html body .premium-page{gap:12px}html body .page-head h1,html body .premium-page-head h1,html body .reference-dashboard-head h1,html body .reference-list-head h1{font-size:var(--agra-font-page-title);line-height:1.2}html body .page-head p,html body .premium-page-head p,html body .reference-dashboard-head p,html body .reference-list-head p{font-size:12.5px;line-height:1.42;color:var(--agra-muted)}html body .detail-breadcrumb,html body .list-breadcrumb,html body .breadcrumb-back{font-size:11.5px}
html body input,html body select,html body textarea{min-height:var(--agra-control-height);padding:7px 9px;border-radius:var(--agra-radius-sm);font-size:13.5px}html body textarea{min-height:72px}html body .form-grid{gap:12px 14px}html body .form-grid label{gap:4px;font-size:var(--agra-font-label)}html body .form-grid label small,html body .field-help,html body .section-help{font-size:var(--agra-font-secondary);line-height:1.4;color:var(--agra-muted)}
html body .card,html body .premium-panel,html body .reference-client-hero,html body .tab-view-heading{border-radius:var(--agra-radius-md);box-shadow:var(--agra-shadow-card)}html body .dashboard-card,html body .detail-card,html body .timeline-card{padding:15px}html body .card h2,html body .card-head h2,html body .panel-head h2,html body .premium-panel h2{font-size:var(--agra-font-card-title)}
html body table,html body .premium-table,html body .reference-client-table{font-size:var(--agra-font-table)}html body th,html body .premium-table th,html body .reference-client-table th{height:34px;padding:8px 9px;font-size:11px;letter-spacing:.035em;color:var(--agra-muted)}html body td,html body .premium-table td,html body .reference-client-table td{min-height:var(--agra-table-row-height);height:auto;padding:8px 9px;font-size:var(--agra-font-table);line-height:1.35}html body td small,html body .premium-table td small,html body .reference-client-table td small,html body .reference-client-identity small,html body .contact-cell small,html body .activity-cell small{font-size:var(--agra-font-secondary);line-height:1.35;color:var(--agra-muted)}html body .reference-client-identity strong,html body .contact-cell strong,html body .activity-cell strong{font-size:var(--agra-font-table)}html body .reference-client-identity .mini-avatar{width:34px;height:34px;font-size:11px}
html body .badge,html body .type-badge{min-height:22px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.1}html body .agra-tabs{min-height:var(--agra-tab-height);gap:5px}html body .agra-tab{min-height:var(--agra-tab-height);padding:5px 9px;font-size:11.5px;font-weight:650}html body .agra-tab-count{min-width:20px;height:20px;font-size:11px}
html body .timeline-item p,html body .dashboard-activity strong,html body .premium-activity strong{font-size:12.5px}html body .timeline-item small,html body .dashboard-activity small,html body .premium-activity small{font-size:11px;line-height:1.35;color:var(--agra-muted)}html body .empty,html body .dashboard-empty-row{font-size:12.5px}
html body .reference-list-shell{grid-template-columns:minmax(0,1fr) var(--agra-right-rail)}html body .reference-client-layout{grid-template-columns:minmax(0,2.45fr) minmax(var(--agra-right-rail),1fr)}html body .reference-list-kpis small,html body .reference-list-kpis span,html body .reference-client-kpis small,html body .reference-client-kpis span,html body .reference-dashboard-kpi span{font-size:11px}html body .reference-dashboard-kpi small{font-size:12px}html body .reference-list-tabs a{font-size:11.5px}html body .reference-pagination{font-size:11.5px}
@media(max-width:860px){html body .shell,html[dir=rtl] body .shell{margin:0}html body .sidebar{width:var(--agra-sidebar-width)}html body main{padding:12px}html body .topbar{height:56px;padding:0 12px}}
@media(max-width:520px){html body{font-size:13.5px}html body .page-head h1,html body .premium-page-head h1{font-size:19px}html body .agra-tab{font-size:11.5px}html body .card,html body .premium-panel{border-radius:10px}}

/* Contextual forms — aligned with the MonCabinet workflow baseline. */
.form-page-head{max-width:1180px;align-items:flex-start}.form-page-head .eyebrow{margin:8px 0 3px}.form-card{box-shadow:0 1px 2px rgba(19,39,26,.03)}.form-card>section{padding:18px 22px}.form-card .form-section-head{margin:0 0 14px}.form-card .form-section-head h2{margin:0;font-size:15px;line-height:1.3}.form-card .form-section-head p{margin:3px 0 0;font-size:12px;line-height:1.4;color:var(--agra-muted)}.form-context-section{background:linear-gradient(90deg,#f7fbf7,#fff)}.context-entity{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:66px;padding:10px 12px;border:1px solid #dce8de;border-radius:10px;background:#fff}.context-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:var(--agra-primary-soft);color:var(--agra-primary-dark);font-size:14px;font-weight:760}.context-entity>span:nth-child(2){display:grid;gap:2px}.context-entity strong{font-size:14px;line-height:1.3}.context-entity small{color:var(--agra-muted);font-size:12px;line-height:1.35}.context-entity>a{color:var(--agra-primary-dark);font-size:12.5px;font-weight:670;text-decoration:none}.context-entity>a:hover{text-decoration:underline}.sales-lines input{font-size:12.5px}.sales-lines th{font-size:11px}.sales-lines td{padding:9px 7px}.form-actions .button{min-width:104px}
@media(max-width:640px){.form-card>section{padding:15px 14px}.context-entity{grid-template-columns:38px minmax(0,1fr) auto;padding:9px}.context-avatar{width:38px;height:38px}.context-entity strong{font-size:13.5px}.context-entity small{font-size:11.5px}.form-actions{display:grid;grid-template-columns:1fr 1fr}.form-actions .button{width:100%;min-width:0}}

/* Full application archetypes: list, detail, form and business document. */
.module-page{display:grid;gap:12px;min-width:0}.module-page-head{min-height:66px;margin:0;align-items:center}.module-page-head .eyebrow{margin-bottom:4px}.module-page-head h1{margin-bottom:3px}.module-list-panel{overflow:visible}.module-list-panel>.table-wrap{overflow:visible}.module-filter-tabs{margin:0;padding-inline:4px;border-bottom:1px solid var(--agra-border);background:transparent}.module-filter-tabs a{min-height:38px;padding:10px 12px;font-size:12px}.premium-toolbar{display:flex;align-items:center;gap:9px;min-height:58px;padding:10px 12px;border-bottom:1px solid var(--agra-border);background:#fff}.premium-toolbar .search-field{flex:1;max-width:520px}.module-table{table-layout:auto}.module-table th{height:36px;padding:8px 12px}.module-table td{height:54px;padding:9px 12px}.module-table .money-cell{font-variant-numeric:tabular-nums;white-space:nowrap}.entity-cell,.document-number-cell,.partner-table-cell{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;min-width:0}.entity-cell>span:last-child,.document-number-cell>span:last-child{display:grid;min-width:0;gap:2px}.entity-cell strong,.document-number-cell strong,.partner-table-cell strong{overflow:hidden;color:var(--agra-text);font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.entity-cell small,.document-number-cell small{overflow:hidden;max-width:360px;color:var(--agra-muted);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}.entity-monogram,.document-kind-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:9px;background:var(--agra-primary-soft);color:var(--agra-primary-dark);font-size:11px;font-weight:760}.entity-monogram.violet{background:#f1edfb;color:#6547ad}.entity-monogram.user{border-radius:50%;background:#edf5ef}.entity-monogram .icon,.document-kind-icon .icon{width:17px;height:17px}.document-kind-icon.amber,.document-hero-icon.amber{background:#fff4e5;color:#b86615}.partner-table-cell .mini-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#edf5ef;color:var(--agra-primary-dark);font-size:11px;font-weight:750}.module-table .row-actions{width:44px;text-align:right}.module-table .row-menu{position:relative;display:inline-block;width:auto;height:auto}.module-table .row-menu .popover{top:32px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.detail-archetype,.document-detail-page{gap:12px}.document-hero{display:grid;grid-template-columns:46px minmax(250px,1fr) auto auto;align-items:center;gap:14px;min-height:94px;padding:15px 17px;border:1px solid var(--agra-border);border-radius:var(--agra-radius-md);background:linear-gradient(105deg,#f7fbf8,#fff 60%,#fafcfb);box-shadow:var(--agra-shadow-card)}.document-hero-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:11px;background:var(--agra-primary-soft);color:var(--agra-primary-dark)}.document-hero-icon .icon{width:22px;height:22px}.document-hero-copy{display:grid;gap:3px;min-width:0}.document-hero-copy>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.document-hero-copy h1{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.025em}.document-hero-copy p{margin:0;color:var(--agra-muted);font-size:12.5px}.document-hero-total{display:grid;justify-items:end;min-width:165px}.document-hero-total small{color:var(--agra-muted);font-size:11.5px}.document-hero-total strong{font-size:20px;line-height:1.25;color:var(--agra-text);font-variant-numeric:tabular-nums}.document-hero .document-actions{justify-content:flex-end;max-width:390px}.document-surface{overflow:hidden}.document-detail-page .document{border-radius:var(--agra-radius-md)}.document-detail-page .document-summary{background:linear-gradient(180deg,#fff,#fbfdfc)}.document-detail-page .finance-summary,.document-detail-page .timeline{margin:0}.document-section-title{display:flex;align-items:center;justify-content:space-between;padding:14px 17px;border-bottom:1px solid var(--agra-border)}.document-section-title h2{margin:2px 0 0;font-size:15px}.context-link{color:var(--agra-primary-dark);font-weight:650;text-decoration:none}.money-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.money-summary article{display:grid;gap:3px;min-height:82px;padding:13px 14px;border:1px solid var(--agra-border);border-radius:var(--agra-radius-md);background:#fff;box-shadow:var(--agra-shadow-card)}.money-summary small,.money-summary span{color:var(--agra-muted);font-size:11.5px}.money-summary strong{font-size:18px;line-height:1.2;font-variant-numeric:tabular-nums}.payment-summary,.expense-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.8fr);gap:12px;align-items:start}.detail-section{overflow:hidden}.detail-section>header{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid var(--agra-border);background:#fafcfb}.detail-section>header h2{margin:2px 0 0;font-size:15px}.detail-definition{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:5px 15px 14px}.detail-definition>div{padding:10px 4px;border-bottom:1px solid var(--agra-border-soft)}.detail-definition .wide{grid-column:1/-1}.detail-definition dt{margin-bottom:3px;color:var(--agra-muted);font-size:11.5px}.detail-definition dd{margin:0;font-size:13px;font-weight:650;overflow-wrap:anywhere}.detail-definition.compact{grid-template-columns:1fr}.related-document{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;min-height:58px;padding:9px 14px;border-bottom:1px solid var(--agra-border);color:inherit;text-decoration:none}.related-document>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--agra-primary-soft);color:var(--agra-primary)}.related-document .icon{width:15px}.related-document div{display:grid}.related-document small{color:var(--agra-muted);font-size:11.5px}.related-document b{font-variant-numeric:tabular-nums}.compact-empty{padding:24px 15px;color:var(--agra-muted);font-size:12.5px}
.form-archetype{max-width:1200px}.simple-form-page{max-width:860px}.entity-form-page{max-width:1080px}.entity-form .form-section-head,.settings-form .form-section-head{display:flex;align-items:flex-start;gap:11px}.section-step{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:var(--agra-primary-soft);color:var(--agra-primary-dark);font-size:11px;font-weight:750}.form-guidance{margin:0;padding:10px 12px;border-radius:8px;background:#f7faf8;color:var(--agra-muted);font-size:12px}.task-form-page{max-width:1100px}.task-form{overflow:hidden}.task-form>section{padding:16px 18px}.source-document{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;background:linear-gradient(90deg,#f5faf6,#fff)}.source-document-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--agra-primary-soft);color:var(--agra-primary)}.source-document-icon .icon{width:19px}.source-document>div:nth-child(2){display:grid;gap:1px}.source-document small,.source-document span{color:var(--agra-muted);font-size:11.5px}.source-document strong{font-size:14px}.source-document>a{color:var(--agra-primary-dark);font-size:12px;font-weight:650;text-decoration:none}.conversion-table input{min-width:100px}.task-lines .form-section-head{margin-bottom:10px}
.settings-layout{display:grid;grid-template-columns:260px minmax(0,850px);gap:16px;align-items:start}.settings-intro{position:sticky;top:84px;padding:18px}.settings-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:13px;border-radius:11px;background:var(--agra-primary-soft);color:var(--agra-primary)}.settings-intro h2{margin:0 0 5px;font-size:17px}.settings-intro>p{margin:0;color:var(--agra-muted);font-size:12.5px;line-height:1.55}.settings-note{display:grid;gap:3px;margin-top:18px;padding:12px;border:1px solid var(--agra-border);border-radius:9px;background:#fff}.settings-note strong{font-size:12.5px}.settings-note span{color:var(--agra-muted);font-size:11.5px}.settings-form{max-width:none}.settings-page-tabs{margin:0}.users-panel-head{padding:14px 16px}.users-panel-head h2{font-size:15px}.users-table .entity-cell{min-width:210px}
@media(max-width:1100px){.document-hero{grid-template-columns:44px minmax(220px,1fr) auto}.document-hero .document-actions{grid-column:2/-1}.settings-layout{grid-template-columns:220px minmax(0,1fr)}.money-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.module-page-head{align-items:flex-start}.module-page-head,.premium-toolbar{flex-direction:column}.premium-toolbar{align-items:stretch}.premium-toolbar .search-field{max-width:none}.module-filter-tabs{overflow-x:auto;white-space:nowrap}.module-list-panel>.table-wrap{overflow:visible}.document-hero{grid-template-columns:42px minmax(0,1fr);padding:13px}.document-hero-total{grid-column:1/-1;justify-items:start;padding-top:10px;border-top:1px solid var(--agra-border);width:100%}.document-hero .document-actions{grid-column:1/-1;width:100%;justify-content:flex-start}.document-hero .document-actions .button,.document-hero .document-actions form,.document-hero .document-actions form .button{flex:1}.money-summary,.payment-summary,.expense-summary{grid-template-columns:1fr 1fr}.detail-content-grid,.settings-layout{grid-template-columns:1fr}.settings-intro{position:static;padding:4px 0}.source-document{grid-template-columns:38px minmax(0,1fr) auto}.module-table tr{padding:12px}.module-table td{height:auto}.module-table td:first-child{padding-right:42px}.module-table .row-actions{position:absolute;top:8px;right:8px;width:auto}.entity-cell small,.document-number-cell small{max-width:240px}.task-form>section{padding:14px}.conversion-table tr{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px;padding:11px;border:1px solid var(--agra-border);border-radius:9px}.conversion-table td{display:grid;gap:3px;text-align:left;padding:3px 0}.conversion-table td:first-child{grid-column:1/-1}.conversion-table td:before{font-size:11px}}
html body .money-cell,html body .reference-list-kpis strong,html body .reference-client-kpis strong,html body .reference-dashboard-kpi strong{white-space:nowrap}html body .reference-list-kpis article>div{min-width:0}html body .reference-list-kpis article>div strong{overflow:hidden;text-overflow:ellipsis}
.module-filter-tabs{display:flex;align-items:stretch;gap:4px;height:42px}.module-filter-tabs a{flex:0 0 auto}

/* Contractual list composition aligned with clients-gestion1.png. */
:root{--agra-sidebar-width:260px;--agra-page-gutter:23px;--agra-table-row-height:51px}
html body .module-page,html body .reference-list-page{gap:14px}
html body .module-page-head,html body .reference-list-head{min-height:82px;align-items:center}
html body .module-page-head h1,html body .reference-list-head h1{font-size:27px}
.module-list-kpis,.reference-list-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.module-list-kpis article,.reference-list-kpis article{min-height:96px;padding:16px 18px;border-radius:11px;box-shadow:0 4px 18px rgba(31,54,43,.065)}
.module-list-kpis .metric-icon,.reference-list-kpis .metric-icon{width:51px;height:51px;border-radius:11px}.module-list-kpis strong,.reference-list-kpis strong{font-size:24px}.module-list-kpis small,.reference-list-kpis small{font-size:12px}.module-list-kpis span,.reference-list-kpis span{font-size:11px}
.module-filter-tabs{position:relative;z-index:2;height:48px;margin-bottom:-15px;padding-inline:18px;border:1px solid var(--agra-border);border-bottom:0;border-radius:11px 11px 0 0;background:#fff}.module-filter-tabs a{font-size:12px;padding-inline:14px}
.module-list-panel{border-radius:0 0 11px 11px;box-shadow:0 5px 20px rgba(31,54,43,.06)}
.premium-toolbar,.module-list-panel>.filters{min-height:62px;padding:12px 18px;background:#fff}.premium-toolbar .search-field,.module-list-panel .search-field{max-width:353px}.premium-toolbar input,.premium-toolbar select,.module-list-panel>.filters input,.module-list-panel>.filters select{min-height:37px}
.module-table th,.reference-client-table th{height:42px;padding:10px 16px;font-size:11px}.module-table td,.reference-client-table td{height:51px;padding:8px 16px;font-size:12px}.module-table td small,.reference-client-table td small,.entity-cell small,.document-number-cell small{font-size:11px}.entity-cell strong,.document-number-cell strong,.partner-table-cell strong,.reference-client-identity strong{font-size:12px}.entity-monogram,.document-kind-icon,.reference-client-identity .mini-avatar{width:36px;height:36px;flex-basis:36px}.module-table .icon-button,.reference-client-table .icon-button{width:36px;height:36px}
.reference-list-shell{display:block}.reference-list-main{gap:14px}.reference-list-rail{display:none}.reference-list-tabs{height:48px;padding-inline:18px}.reference-list-toolbar{min-height:62px;padding:12px 18px}.reference-client-table{table-layout:auto}.reference-pagination{min-height:68px;padding:12px 18px;font-size:11px}
.related-entities{margin-top:0}.related-entities-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.related-entities-list .related-document:nth-child(odd){border-right:1px solid var(--agra-border)}.related-entities .relation-count{color:var(--agra-muted);font-size:11.5px}.related-document em{color:var(--agra-muted);font-size:11px;font-style:normal}
@media(max-width:900px){:root{--agra-page-gutter:14px}.module-list-kpis,.reference-list-kpis{grid-template-columns:repeat(2,1fr)}.related-entities-list{grid-template-columns:1fr}.related-entities-list .related-document:nth-child(odd){border-right:0}}
@media(max-width:560px){.module-list-kpis,.reference-list-kpis{grid-template-columns:1fr 1fr;gap:8px}.module-list-kpis article,.reference-list-kpis article{min-height:86px;padding:11px}.module-list-kpis .metric-icon,.reference-list-kpis .metric-icon{width:38px;height:38px}.module-list-kpis strong,.reference-list-kpis strong{font-size:18px}}

/* Shared foundation: MonCabinet navigation density, centered icon boxes and list selection. */
html body .sidebar{padding:16px 12px 0}
html body .sidebar nav{display:flex;flex-direction:column;gap:1px;margin-top:8px;padding:0 0 14px}
html body .sidebar nav a{height:37px;min-height:37px;margin:0;padding:8px 10px;gap:10px;font-size:13px;font-weight:520;line-height:21px;white-space:nowrap}
html body .sidebar nav a.active{line-height:21px}
html body .sidebar nav a>span{min-width:0;white-space:nowrap}
html body .nav-label{margin:0;padding:15px 10px 5px;font-size:11px;line-height:11px}
html body .sidebar nav a .icon{display:block;flex:0 0 18px;width:18px;height:18px}
html body .agra-icon-box,html body .metric-icon,html body .kpi-icon,html body .entity-monogram,html body .document-kind-icon,html body .document-hero-icon,html body .source-document-icon,html body .settings-icon,html body .empty-icon,html body .confirm-icon{display:inline-flex;align-items:center;justify-content:center}
.agra-icon-box>.icon,.metric-icon>.icon,.kpi-icon>.icon,.entity-monogram>.icon,.document-kind-icon>.icon,.document-hero-icon>.icon,.source-document-icon>.icon,.settings-icon>.icon,.empty-icon>.icon,.confirm-icon>.icon{display:block;flex-shrink:0;margin:0}
.agra-selectable-table .table-selection-cell{width:48px;min-width:48px;padding-inline:14px;text-align:center}
.table-checkbox-target{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:-5px;cursor:pointer}
.table-checkbox-target input[type=checkbox]{appearance:none;width:16px;height:16px;min-height:16px;margin:0;padding:0;border:1px solid #aeb9b2;border-radius:4px;background:#fff;box-shadow:none;cursor:pointer}
.table-checkbox-target input[type=checkbox]:checked,.table-checkbox-target input[type=checkbox]:indeterminate{border-color:var(--agra-primary);background-color:var(--agra-primary);background-position:center;background-repeat:no-repeat}
.table-checkbox-target input[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.table-checkbox-target input[type=checkbox]:indeterminate{background-image:linear-gradient(#fff,#fff);background-size:8px 2px}
.table-checkbox-target input[type=checkbox]:focus-visible{outline:2px solid rgba(35,139,69,.3);outline-offset:2px}
@media(max-width:760px){.agra-selectable-table .table-selection-cell{position:absolute;top:8px;left:8px;width:36px;min-width:36px;padding:4px}.agra-selectable-table tbody tr{padding-left:48px}.agra-selectable-table td:first-child{padding-right:4px}.agra-selectable-table td:nth-child(2){display:block;text-align:left;padding-right:60px}.agra-selectable-table td:nth-child(2):before{display:none}}
html[dir=rtl] .agra-selectable-table .table-selection-cell{left:auto;right:8px}
html[dir=rtl] .agra-selectable-table tr{padding-left:12px;padding-right:48px}

/* AGRA UI 3.1 — MonCabinet exact visual charter.
   Values below are transposed from MonCabinet's final computed cascade. */
:root{
 --agra-primary:#0b78f6;--agra-primary-dark:#075fc7;--agra-primary-hover:#075fc7;--agra-primary-soft:#e8f2ff;
 --agra-bg:#f4f7fb;--agra-surface:#fff;--agra-surface-soft:#f8faff;--agra-surface-hover:#f7faff;
 --agra-text:#0b2451;--agra-text-secondary:#405675;--agra-muted:#6d7d9b;
 --agra-border:#dce5f1;--agra-border-soft:#edf1f6;
 --agra-success:#08b878;--agra-success-soft:#dff5eb;--agra-warning:#ff8a0b;--agra-warning-soft:#fff0d9;
 --agra-danger:#d74444;--agra-danger-soft:#fde7e9;--agra-info:#0b78f6;--agra-info-soft:#e3efff;
 --agra-font-family:Inter,"Segoe UI",Roboto,system-ui,-apple-system,sans-serif;
 --agra-font-body:14.5px;--agra-font-secondary:12px;--agra-font-label:13.5px;--agra-font-table:13.5px;
 --agra-font-button:13.5px;--agra-font-card-title:16px;--agra-font-page-title:clamp(22px,1.7vw,25px);
 --agra-space-1:4px;--agra-space-2:8px;--agra-space-3:12px;--agra-space-4:16px;--agra-space-5:20px;--agra-space-6:24px;
 --agra-radius-sm:7px;--agra-radius-md:10px;--agra-radius-lg:12px;--agra-radius-pill:999px;
 --agra-shadow-sm:0 2px 8px rgba(30,61,105,.055);--agra-shadow-card:0 2px 8px rgba(30,61,105,.055);--agra-shadow-float:0 8px 24px rgba(30,61,105,.09);
 --agra-sidebar-width:236px;--agra-header-height:64px;--agra-page-gutter:16px;--agra-control-height:38px;
 --agra-button-height:36px;--agra-table-row-height:52px;--agra-tab-height:40px;--agra-transition:150ms ease;
 --primary:var(--agra-primary);--primary-dark:var(--agra-primary-dark);--surface:var(--agra-surface);--bg:var(--agra-bg);--ink:var(--agra-text);--muted:var(--agra-muted);--border:var(--agra-border)
}
html body{font-family:var(--agra-font-family);font-size:var(--agra-font-body);font-weight:400;line-height:1.45;color:var(--agra-text);background:var(--agra-bg)}
html body a:focus-visible,html body button:focus-visible,html body input:focus-visible,html body select:focus-visible,html body textarea:focus-visible,html body summary:focus-visible{outline:2px solid var(--agra-primary);outline-offset:2px}
html body .sidebar{width:236px;padding:14px 12px 12px;background:linear-gradient(#061a3b 0%,#03142f 100%);color:#dbe7fb;border:0;box-shadow:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:auto}
html body .shell{margin-left:236px;margin-inline-start:236px;width:calc(100% - 236px)}html[dir=rtl] body .shell{margin-left:0;margin-right:236px}
html body .brand{min-height:46px;height:auto;padding:0 3px;gap:9px;color:#fff;font-size:17px}
html body .brand-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border:2px solid #58afff;border-radius:9px;background:transparent;color:#fff;box-shadow:none}
html body .brand-mark .icon{display:block;width:21px;height:21px;color:#fff}html body .brand-copy{display:flex;min-width:0;flex-direction:column}html body .brand-copy strong{color:#fff;font-size:15px;line-height:1.15}html body .brand-copy small{margin-top:2px;color:#aabbd4;font-size:8px;font-weight:500;line-height:1.15;letter-spacing:normal;text-align:left}
html body .sidebar .brand{min-height:46px;height:46px;padding:0 3px;gap:9px;font-size:17px;letter-spacing:normal}html body .sidebar .brand-mark{flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;max-width:34px;max-height:34px;border:2px solid #58afff;border-radius:9px;background:transparent}html body .sidebar .brand-mark .icon{width:21px;height:21px;min-width:21px;min-height:21px;max-width:21px;max-height:21px}
html body .sidebar nav{margin-top:8px;padding:0 0 12px;gap:1px}
html body .sidebar nav a{height:35px;min-height:35px;margin:0;padding:7px 9px;gap:10px;border-radius:7px;color:#dbe7fb;font-size:13px;font-weight:400;line-height:18.85px;box-shadow:none;transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease}
html body .sidebar nav a .icon{width:15px;height:15px;min-width:15px;min-height:15px;max-width:15px;max-height:15px;color:currentColor}
html body .sidebar nav a:hover{background:#102e5c;color:#fff}
html body .sidebar nav a.active{background:var(--agra-primary);color:#fff;font-weight:400;box-shadow:0 6px 15px rgba(11,120,246,.25)}
html body .nav-label{margin:0;padding:13px 9px 5px;color:#7186aa;font-size:9px;font-weight:700;line-height:13.05px;letter-spacing:1.08px}
html body .sidebar-user{min-height:62px;margin-inline:-12px;padding:10px 16px;gap:10px;background:#061936;border-color:#18345e;color:#dbe7fb}
html body .sidebar-user strong{color:#fff;font-size:12.5px}html body .sidebar-user small{color:#9fb1cf;font-size:10.5px}html body .sidebar-user .avatar{background:#e7f1ff;color:var(--agra-primary)}
html body .topbar{height:64px;padding:0 20px;gap:16px;background:#fff;border-color:#dce5f1 #dce5f1 #e7edf5;box-shadow:0 1px 8px rgba(30,61,105,.035)}
html body .global-search{width:min(540px,48vw);height:44px;padding:0 13px;gap:8px;border:1px solid #e0e7f1;border-radius:20px;background:#f6f8fc;color:#8192aa;font-size:13px}
html body .global-search .icon{width:15px;height:15px}html body .global-search kbd{font-size:10.5px;color:#6d7d9b}
html body .icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:7px;color:#44617f}
html body .icon-button:hover{background:#eaf3ff;color:var(--agra-primary)}html body .profile-trigger .avatar{background:#e7f1ff;color:var(--agra-primary)}
html body .button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 13px;border:1px solid #cdd9e8;border-radius:7px;background:#fff;color:#183a63;font-size:13.5px;font-weight:700;line-height:1.15;box-shadow:0 1px 2px rgba(30,61,105,.03)}
html body .button:hover{border-color:#9fb6d1;background:#f5f8fc;color:#0b4f94}
html body .button.primary{border-color:#0b78f6;background:#0b78f6;color:#fff;box-shadow:0 4px 11px rgba(11,120,246,.18)}html body .button.primary:hover{border-color:#075fc7;background:#075fc7;color:#fff}
html body .button.secondary{border-color:#afc2d9;background:#fff;color:#245c99}html body .button.secondary:hover{border-color:#9fb6d1;background:#f5f8fc;color:#0b4f94}
html body .button.ghost{border-color:transparent;background:transparent;color:#44617f;box-shadow:none}html body .button.ghost:hover{background:#edf3fa;color:#0b4f94}
html body .button.danger{border-color:#f2c6cb;background:#fff1f2;color:#c43d4b}html body .button.danger:hover{background:#fde7e9;color:#a62f3c}
html body .button .icon{width:15px;height:15px}
html body main{width:calc(100% - 32px);max-width:none;margin:0 auto;padding:16px 0 48px}
html body .premium-page,html body .module-page,html body .detail-archetype,html body .document-detail-page{gap:16px}
html body .premium-page-head,html body .module-page-head,html body .page-head{min-height:78px;margin:0 0 16px;padding:16px 20px;align-items:center;gap:16px;border:1px solid rgba(28,69,112,.08);border-left:4px solid #0b78f6;border-radius:12px;background:linear-gradient(100deg,#edf5ff 0%,#f8fbff 62%,#fff 100%);box-shadow:0 2px 8px rgba(30,61,105,.055)}
html body .premium-page-head h1,html body .module-page-head h1,html body .page-head h1{margin:1px 0 2px;font-size:clamp(22px,1.7vw,25px);font-weight:700;line-height:1.18;letter-spacing:-.02em;color:#0b2451}
html body .premium-page-head p,html body .module-page-head p,html body .page-head p{margin:2px 0;color:#6d7d9b;font-size:13px;line-height:1.45}
html body .eyebrow{color:#0b78f6;font-size:10.5px;font-weight:700;letter-spacing:.1em}html body .list-breadcrumb,html body .detail-breadcrumb{color:#6d7d9b;font-size:12px}
html body .card,html body .premium-panel,html body .reference-side-card,html body .document-surface{border:1px solid rgba(28,69,112,.09);border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(30,61,105,.055)}
html body .card{padding:16px}html body .card h2,html body .card-head h2,html body .panel-head h2{color:#0b2451;font-size:16px;line-height:1.25}
html body .card-head,html body .panel-head{gap:12px;border-color:#edf1f6}html body .section-help,html body .muted{color:#6d7d9b;font-size:12px}
html body input,html body select,html body textarea{min-height:38px;padding:8px 10px;border:1px solid #cbd8e7;border-radius:7px;background:#fff;color:#0b2451;font-family:var(--agra-font-family);font-size:14px;line-height:1.35;box-shadow:none}
html body textarea{min-height:88px}html body input::placeholder,html body textarea::placeholder{color:#91a0b4}
html body input:focus,html body select:focus,html body textarea:focus{border-color:#64a5ed;outline:0;box-shadow:0 0 0 3px rgba(11,120,246,.11)}
html body input:disabled,html body select:disabled,html body textarea:disabled{background:#edf1f6;color:#6f7e91}
html body input[type=checkbox],html body input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;accent-color:#0b78f6;flex:0 0 16px}
html body label,html body .form-grid label,html body .document-meta-grid label,html body .form-section label{gap:6px;color:#304c6c;font-size:13.5px;font-weight:650}
html body .form-grid{gap:14px 16px}html body .form-section,html body .form-surface>section,html body .task-form>section{padding:16px 20px;border-color:#edf1f6}
html body .form-section-head,html body .section-heading{margin-bottom:12px}html body .form-section-head h2,html body .section-heading h2{color:#0b2451;font-size:16px}
html body .form-section-head p,html body .field-help,html body .form-guidance{color:#6d7d9b;font-size:12px;line-height:1.45}
html body .form-actions,html body .premium-form-actions{gap:8px;margin-top:12px;padding:14px 20px;border-color:#e8eef5;background:#fff}
html body table,html body .premium-table,html body .reference-client-table,html body .module-table{font-size:13.5px;color:#0b2451}
html body th,html body .premium-table th,html body .reference-client-table th,html body .module-table th{height:42px;padding:10px 11px;background:#f5f8fc;color:#536985;font-size:12px;font-weight:750;line-height:1.45;letter-spacing:.025em;border-color:#edf1f6}
html body td,html body .premium-table td,html body .reference-client-table td,html body .module-table td{height:52px;padding:10px 11px;color:#405675;font-size:13.5px;line-height:1.35;border-color:#e9eef5}
html body tbody tr:hover td{background:#f7faff}
html body td small,html body .premium-table td small,html body .reference-client-table td small,html body .module-table td small,html body .entity-cell small,html body .document-number-cell small,html body .reference-client-identity small{color:#6d7d9b;font-size:12px;line-height:1.35}
html body .entity-cell strong,html body .document-number-cell strong,html body .partner-table-cell strong,html body .reference-client-identity strong{color:#0b2451;font-size:13.5px;font-weight:700}
html body .badge,html body .type-badge{display:inline-flex;align-items:center;min-height:23px;padding:4px 8px;border-radius:999px;font-size:11.5px;font-weight:750;line-height:1.1}
html body .badge.ok,html body .badge.status-accepted,html body .badge.status-confirmed,html body .badge.status-validated,html body .badge.status-issued,html body .badge.status-paid,html body .badge.status-progress{background:#dff5eb;color:#116b49}
html body .badge.status-draft,html body .badge.status-partial,html body .badge.status-pending{background:#fff0d9;color:#8c5706}html body .badge.status-cancelled,html body .badge.status-rejected,html body .badge.off{background:#fde7e9;color:#a72f3c}
html body .agra-tabs,html body .reference-list-tabs,html body .module-filter-tabs{min-height:40px;border-color:#dce5f1}
html body .agra-tab,html body .reference-list-tabs a,html body .module-filter-tabs a{min-height:40px;padding:9px 12px;color:#6d7d9b;font-size:13px;font-weight:650}
html body .agra-tab:hover,html body .reference-list-tabs a:hover,html body .module-filter-tabs a:hover{color:#0b78f6;background:#f7faff}
html body .agra-tab.is-active,html body .reference-list-tabs a.is-active,html body .module-filter-tabs a.is-active{color:#0b78f6}html body .agra-tab.is-active:after{height:2px;background:#0b78f6}
html body .module-list-kpis article,html body .reference-list-kpis article{min-height:82px;padding:13px 14px;border:1px solid rgba(28,69,112,.08);border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(30,61,105,.055)}
html body .module-list-kpis .metric-icon,html body .reference-list-kpis .metric-icon,html body .metric-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:9px;background:#e8f2ff;color:#0b78f6}
html body .module-list-kpis .metric-icon .icon,html body .reference-list-kpis .metric-icon .icon,html body .metric-icon .icon{display:block;width:20px;height:20px}
html body .module-list-kpis strong,html body .reference-list-kpis strong{color:#0b2451;font-size:25px;line-height:1.05;letter-spacing:-.025em}html body .module-list-kpis small,html body .reference-list-kpis small{color:#6d7d9b;font-size:12px;font-weight:650}html body .module-list-kpis span,html body .reference-list-kpis span{color:#6d7d9b;font-size:11.5px}
html body .reference-dashboard-kpi{min-height:82px;padding:13px 14px;border-color:rgba(28,69,112,.08);border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(30,61,105,.055)}html body .reference-dashboard-kpi strong{color:#0b2451;font-size:20px}html body .reference-dashboard-kpi small{color:#6d7d9b;font-size:12px}html body .reference-dashboard-kpi span{color:#6d7d9b;font-size:11.5px}
html body .document-hero,html body .reference-client-hero{border:1px solid rgba(28,69,112,.08);border-left:4px solid #0b78f6;border-radius:12px;background:linear-gradient(110deg,#eaf3ff,#fbfdff);box-shadow:0 2px 8px rgba(30,61,105,.055)}
html body .document-hero-copy h1,html body .reference-client-hero h1{color:#0b2451;font-size:23px}html body .document-hero-copy p,html body .reference-client-hero .identity-copy>p{color:#6d7d9b;font-size:12px}
html body .money-summary article,html body .reference-client-kpis article{min-height:82px;padding:13px 14px;border-color:#e8eef6;border-radius:10px;background:#f8fafd}html body .money-summary small,html body .money-summary span,html body .reference-client-kpis small,html body .reference-client-kpis span{color:#6d7d9b;font-size:12px}html body .money-summary strong,html body .reference-client-kpis strong{color:#0b2451;font-size:20px}
.finance-summary>.money-summary{padding:14px}.finance-summary>.table-wrap{border-top:1px solid #edf1f6}.section-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.supplier-financial-block .related-document{grid-template-columns:32px minmax(0,1fr) auto auto}
.list-filters{flex-wrap:wrap}.list-filters .search-field{min-width:240px}.list-filters .filter-control{display:block;flex:0 0 auto}.list-filters .filter-control select{width:auto;min-width:150px}.module-filter-tabs a.active{color:#0b78f6;background:#f7faff}.filter-empty-actions{display:flex;justify-content:center;gap:8px;margin-top:12px}
.column-filter-form{display:block}.column-filter-actions{display:flex;justify-content:flex-end;min-height:28px;padding:8px 16px 0}.column-filter-actions:empty{display:none}.column-filter-reset{font-size:12px;color:#536987;text-decoration:none}.table-sort{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none;white-space:nowrap}.table-sort .sort-mark{color:#9aa9bd;font-size:12px}.table-sort.is-active{color:#0b78f6}.table-sort.is-active .sort-mark{color:#0b78f6}.table-columns th{vertical-align:middle}.column-filters th{height:48px;padding:5px 8px;background:#f8fafd;vertical-align:middle}.column-filters input,.column-filters select{width:100%;min-width:0;height:38px;padding:0 10px;border:1px solid #cbd8e7;border-radius:7px;background:#fff;font:400 14px/1.2 Inter,system-ui,sans-serif;color:#17243a}.column-filters input:focus,.column-filters select:focus{outline:0;border-color:#0b78f6;box-shadow:0 0 0 2px rgba(11,120,246,.12)}.column-filters .entity-autocomplete{min-width:0}.column-filters .entity-autocomplete-input{height:38px;padding-right:25px}/* Document filters retain usable widths; wide tables scroll inside their wrapper. */
@media(min-width:761px){.column-filter-form:has(.document-list-table) .table-wrap{max-width:100%;overflow-x:auto}.document-list-table .column-filters input[type=search]{min-width:180px}.document-list-table .column-filters .entity-autocomplete,.document-list-table .column-filters .entity-autocomplete-input{min-width:260px}.document-list-table .column-filters input[type=date]{min-width:160px}.document-list-table .column-filters select{min-width:180px}.document-list-table .empty{width:calc(100vw - 320px);max-width:100%;white-space:normal}}
.column-filter-empty{display:block;height:38px}.mobile-column-filter-toggle,.mobile-column-filter-panel{display:none}.invoice-type-cell{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.badge.credit-note{color:#8a4b12;background:#fff4df;border-color:#f0d09c}.badge.invoice-kind{color:#28517f;background:#edf5ff;border-color:#cfdef1}
.page-head.module-page-head,.premium-page-head,.document-hero{box-sizing:border-box}.module-page-head,.premium-page-head{display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:24px}.module-page-head>div:first-child,.premium-page-head>div:first-child{min-width:0}.page-head-actions,.document-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.document-hero{display:grid;grid-template-columns:48px minmax(240px,1fr) minmax(150px,auto) minmax(220px,auto);align-items:center;gap:16px}.document-hero-total{align-self:center;text-align:right}.dashboard-period-form{flex-wrap:nowrap}.dashboard-period-form select,.dashboard-period-form input{width:auto;height:36px}.dashboard-period-form select{min-width:140px}.dashboard-period-form input{width:138px}
html body .related-document{min-height:62px;padding:10px 14px;border-color:#e9eef5;background:#fff}html body .related-document small,html body .timeline-list small,html body .premium-activity small{color:#6d7d9b;font-size:12px}
html body .timeline-list strong,html body .premium-activity strong{color:#0b2451;font-size:13.5px}html body .timeline-list li:before,html body .premium-activity li:before{background:#0b78f6}
html body .empty,html body .empty-state{min-height:130px;padding:24px;color:#6d7d9b;font-size:13px}html body .empty h2,html body .empty-state h2{color:#29496d;font-size:16px}
html body .popover,html body .profile-popover{border:1px solid #dce5f1;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(30,61,105,.09)}html body .popover a:hover,html body .profile-popover a:hover{background:#f7faff;color:#0b78f6}
html body .confirm-dialog::backdrop{background:rgba(7,29,66,.42)}html body .confirm-dialog form{border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(30,61,105,.09)}
html body .toast{border-color:#dce5f1;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(30,61,105,.09)}
html body .reference-pagination{min-height:64px;color:#6d7d9b;font-size:12.5px}html body .reference-pagination a,html body .reference-pagination b{min-width:34px;height:34px;border-color:#d6e0ed;border-radius:7px;background:#fff}html body .reference-pagination b{border-color:#0b78f6;background:#0b78f6;color:#fff}
.table-checkbox-target input[type=checkbox]{width:16px;height:16px;border-color:#afbdd0;border-radius:4px;accent-color:#0b78f6}.table-checkbox-target{width:32px;height:32px}
html body .entity-monogram,html body .avatar{background:#e7f1ff;color:#0b78f6}
@media(max-width:1050px) and (min-width:761px){:root{--agra-sidebar-width:210px}html body .sidebar{width:210px}html body .shell{margin-left:210px;margin-inline-start:210px;width:calc(100% - 210px)}html[dir=rtl] body .shell{margin-left:0;margin-right:210px}}
@media(max-width:1050px) and (min-width:761px){html body .document-hero{grid-template-columns:42px minmax(0,1fr)}html body .document-hero-total{grid-column:1/-1;justify-items:start;text-align:left;padding-top:8px;border-top:1px solid var(--agra-border);width:100%}html body .document-hero .document-actions{grid-column:1/-1;justify-content:flex-start}.module-page>.table-wrap{max-width:100%;overflow-x:auto}}
@media(max-width:760px){html body{font-size:14px}html body .sidebar{width:236px;transform:translateX(-100%)}html body.nav-open .sidebar{transform:none}html body .shell,html[dir=rtl] body .shell{margin:0;width:100%}html body .topbar{height:56px;padding:0 12px}html body main{width:100%;padding:12px 12px 84px}html body .premium-page-head,html body .module-page-head,html body .page-head{align-items:flex-start;flex-direction:column;min-height:0;padding:14px 16px}html body .premium-page-head h1,html body .module-page-head h1,html body .page-head h1{font-size:22px}html body .card{padding:12px}html body .form-section,html body .form-surface>section,html body .task-form>section{padding:14px}html body .module-list-kpis,html body .reference-list-kpis{grid-template-columns:repeat(2,1fr)}html body .module-list-kpis article,html body .reference-list-kpis article{min-height:70px;padding:10px}html body .module-list-kpis .metric-icon,html body .reference-list-kpis .metric-icon{width:34px;height:34px}html body .module-list-kpis strong,html body .reference-list-kpis strong{font-size:21px}html body .module-list-kpis small,html body .reference-list-kpis small{font-size:10.5px}.mobile-nav{height:64px;background:#fff;border-color:#dce5f1}.mobile-nav a,.mobile-nav button{color:#6d7d9b;font-size:11px}.mobile-nav a.active{color:#0b78f6}.mobile-nav .icon{width:20px;height:20px}}
@media(max-width:520px){html body .module-list-kpis,html body .reference-list-kpis{grid-template-columns:1fr}html body .premium-page-head .button,html body .module-page-head .button,html body .page-head .button{width:100%}}
@media(max-width:760px){.column-filters{display:none}.mobile-column-filter-toggle{display:inline-flex;margin:10px 12px}.mobile-column-filter-panel{display:grid;grid-template-columns:1fr;gap:10px;margin:0 12px 10px;padding:12px;border:1px solid #dce5f1;border-radius:8px;background:#f8fafd}.mobile-column-filter-panel[hidden]{display:none}.mobile-column-filter-field{display:grid;gap:4px}.mobile-column-filter-field>span{color:#536985;font-size:12px;font-weight:700}.mobile-column-filter-field input,.mobile-column-filter-field select{width:100%}.column-filter-actions{padding:8px 12px}.list-filters{display:grid;grid-template-columns:1fr auto}.list-filters .search-field{grid-column:1/-1;min-width:0}.list-filters .filter-control{display:block;grid-column:1/-1}.list-filters .filter-control select{width:100%}.list-filters>.button.ghost{grid-column:1/-1}.finance-summary>.money-summary{grid-template-columns:1fr 1fr;padding:12px}.finance-summary>.table-wrap table,.finance-summary>.table-wrap tbody,.finance-summary>.table-wrap tr,.finance-summary>.table-wrap td{display:block;width:100%}.finance-summary>.table-wrap thead{display:none}.finance-summary>.table-wrap tr{margin:10px;padding:10px;border:1px solid #dce5f1;border-radius:10px}.finance-summary>.table-wrap td{display:flex;justify-content:space-between;gap:12px;height:auto;padding:5px;border:0}.finance-summary>.table-wrap td:before{content:attr(data-label);color:#6d7d9b;font-size:12px}.supplier-financial-block .related-document{grid-template-columns:32px minmax(0,1fr) auto}.supplier-financial-block .related-document>.badge{grid-column:2/-1;width:max-content}}
html body .mobile-column-filter-toggle,html body .mobile-column-filter-panel{display:none}@media(max-width:760px){html body .mobile-column-filter-toggle{display:inline-flex}html body .mobile-column-filter-panel{display:grid}html body .mobile-column-filter-panel[hidden]{display:none}}
.column-filters select{padding-inline:7px}
html body .sidebar>a.brand{flex:0 0 46px;min-height:46px;height:46px;max-height:46px;padding-block:0}

/* UI 3.1.2: MonCabinet uses the complete sidebar as its scroll container. */
html body .sidebar{inset:0 auto 0 0;height:100vh;max-height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:auto;scrollbar-gutter:auto}
html body .sidebar nav{flex:0 0 auto;overflow:visible}

/* UI 3.1.2: exact MonCabinet global-filters component. */
html body .global-filters{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin:0 0 14px;padding:12px;border:1px solid rgba(28,69,112,.09);border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(30,61,105,.055)}
html body .global-filters>input[name=q]{flex:2 1 270px}
html body .global-filters>select,html body .global-filters>.filter-control{flex:1 1 145px;min-width:0}
html body .global-filters>.filter-control select{width:100%}
html body .global-filters>.filter-date{flex:0 1 148px}
html body .global-filters>.filter-date input{width:100%}
html body .global-filters input,html body .global-filters select{width:100%;min-width:0;height:38px;min-height:38px;padding:8px 10px;border:1px solid #cbd8e7;border-radius:7px;background:#fff;color:#102a56;font-size:14px;line-height:1.45}
html body .global-filters input[name=q]{padding-left:12px}
html body .global-filters input::placeholder{color:#91a0b4}
html body .global-filters input:focus,html body .global-filters select:focus{border-color:#64a5ed;outline:0;box-shadow:0 0 0 3px rgba(11,120,246,.11)}
html body .global-filters>.button{flex:0 0 auto;height:36px;min-height:36px}
html body .global-filters[aria-busy=true]{opacity:.78}
html body .module-list-panel>.global-filters,html body .reference-list-table>.global-filters{margin:12px}
@media(max-width:760px){html body .global-filters{display:grid;grid-template-columns:1fr 1fr}html body .global-filters>input[name=q]{grid-column:1/-1;width:100%}html body .global-filters>.filter-control{grid-column:auto}}
@media(max-width:480px){html body .global-filters{grid-template-columns:1fr}html body .global-filters>input[name=q]{grid-column:auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto;transition-duration:.01ms;animation-duration:.01ms;animation-iteration-count:1}}

/* Recherche dynamique multi-entités — géométrie MonCabinet. */
.entity-autocomplete{position:relative;width:100%;min-width:0}.entity-autocomplete-input{padding-right:34px!important}.entity-autocomplete-clear{position:absolute;z-index:2;right:7px;top:50%;width:26px;height:26px;padding:0;transform:translateY(-50%);border:0;border-radius:6px;background:transparent;color:#6d7d9b;font-size:18px}.entity-autocomplete-clear:hover{background:#edf3fa;color:#0b4f94}.entity-autocomplete-results{position:absolute;z-index:80;top:calc(100% + 5px);left:0;width:max(100%,300px);max-height:320px;overflow:auto;padding:5px;border:1px solid #dce5f1;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(30,61,105,.09)}.entity-autocomplete-results button{display:flex;align-items:center;width:100%;min-height:50px;padding:7px 9px;gap:9px;border:0;border-radius:7px;background:#fff;color:#0b2451;text-align:left}.entity-autocomplete-results button:hover,.entity-autocomplete-results button.is-active{background:#f1f6fc}.entity-autocomplete-results button>span:last-child{display:flex;min-width:0;flex-direction:column}.entity-autocomplete-results strong{overflow:hidden;font-size:13.5px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.entity-autocomplete-results small{overflow:hidden;color:#6d7d9b;font-size:12px;font-weight:400;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.autocomplete-icon{display:inline-flex;flex:0 0 32px;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#e7f1ff;color:#0b78f6;font-size:10px;font-weight:750}.autocomplete-empty{padding:14px;color:#6d7d9b;font-size:13px;text-align:center}.entity-autocomplete.is-loading:after,.global-search.is-loading:after{position:absolute;right:36px;width:12px;height:12px;border:2px solid #d6e4f3;border-top-color:#0b78f6;border-radius:50%;content:"";animation:autocomplete-spin .7s linear infinite}@keyframes autocomplete-spin{to{transform:rotate(360deg)}}
.global-search{position:relative}.global-search>input{flex:1;width:100%;height:42px;min-height:0;padding:0;border:0;background:transparent;color:#0b2451;font-size:13px;outline:0;box-shadow:none}.global-search>input:focus{border:0;outline:0;box-shadow:none}.global-search-results{position:absolute;z-index:100;top:calc(100% + 8px);left:0;width:min(520px,calc(100vw - 32px));max-height:min(70vh,560px);overflow:auto;padding:7px;border:1px solid #dce5f1;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(30,61,105,.09)}.global-search-results section+section{margin-top:5px;padding-top:5px;border-top:1px solid #edf1f6}.global-search-results h3{margin:4px 8px;color:#7186aa;font-size:9px;font-weight:700;letter-spacing:1.08px}.global-search-results a{display:flex;min-height:46px;padding:7px 9px;flex-direction:column;justify-content:center;border-radius:7px;color:#0b2451;text-decoration:none}.global-search-results a:hover,.global-search-results a.is-active{background:#f1f6fc}.global-search-results a strong{font-size:13.5px}.global-search-results a small{color:#6d7d9b;font-size:12px;font-weight:400}.filter-entity{min-width:170px}.filter-entity .entity-autocomplete-results{width:max(100%,320px)}
@media(max-width:480px){.entity-autocomplete-results{position:fixed;top:auto;right:12px;bottom:76px;left:12px;width:auto;max-height:48vh}.global-search-results{position:fixed;top:60px;right:12px;left:12px;width:auto}}

/* Domain workspaces and stable global navigation. */
html body .app-sidebar{padding:0 12px;overflow-x:hidden;overflow-y:auto;scrollbar-width:auto;scrollbar-color:auto;overscroll-behavior:contain}
html body .sidebar-header{flex:0 0 auto;padding-top:14px}
html body .sidebar-header .brand{margin:0;padding-inline:8px}
html body .sidebar-scroll-area{flex:0 0 auto;min-height:0;overflow:visible}
html body .sidebar-scroll-area nav{margin-top:4px;padding:0 0 12px;overflow:visible}
html body .sidebar-footer{flex:0 0 auto;margin-top:auto}
.app-sidebar{--sidebar-item-height:35px;--sidebar-item-padding-x:9px;--sidebar-icon-slot:15px;--sidebar-icon-size:15px;--sidebar-item-gap:10px}
html body .app-sidebar .sidebar-nav-item.sidebar-nav-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:var(--sidebar-item-height);min-height:var(--sidebar-item-height);margin:0;padding:7px var(--sidebar-item-padding-x);gap:var(--sidebar-item-gap);border-radius:7px;color:#dbe7fb;font-size:13px;font-weight:400;line-height:18.85px;white-space:nowrap}
html body .app-sidebar .sidebar-nav-icon{display:grid;flex:0 0 var(--sidebar-icon-slot);width:var(--sidebar-icon-slot);height:var(--sidebar-icon-slot);place-items:center;color:currentColor}
html body .app-sidebar .sidebar-nav-icon .icon{display:block;flex:none;width:var(--sidebar-icon-size);height:var(--sidebar-icon-size);min-width:var(--sidebar-icon-size);min-height:var(--sidebar-icon-size);max-width:var(--sidebar-icon-size);max-height:var(--sidebar-icon-size);color:currentColor}
html body .app-sidebar .sidebar-nav-label{min-width:0;overflow:hidden;color:currentColor;font:inherit;line-height:inherit;text-overflow:ellipsis;white-space:nowrap}
html body .app-sidebar .sidebar-nav-item.sidebar-nav-item:hover{background:#102e5c;color:#fff}
html body .app-sidebar .sidebar-nav-item.sidebar-nav-item.active{background:var(--agra-primary);color:#fff;font-weight:400;box-shadow:0 6px 15px rgba(11,120,246,.25)}
.record-edit-notice{margin:-2px 0 14px;padding:10px 14px;border:1px solid #cfe0f8;border-radius:8px;background:#f3f8ff;color:#31547d;font-size:12px}.record-edit-notice strong{color:#123b6c}.record-edit-notice.locked{border-color:#e2e7ee;background:#f7f8fa;color:#647184}
.confirm-reason{display:grid;text-align:left;gap:6px;margin:14px 0}.confirm-reason[hidden]{display:none}.confirm-reason textarea{width:100%;resize:vertical}.confirm-reason small{color:var(--muted);font-size:11px}
.agra-breadcrumb{min-width:0;margin:0 0 8px;color:var(--agra-muted);font-size:12px}.agra-breadcrumb ol{display:flex;align-items:center;min-width:0;margin:0;padding:0;list-style:none;white-space:nowrap;overflow:hidden}.agra-breadcrumb li{display:flex;align-items:center;min-width:0}.agra-breadcrumb li+li::before{content:"›";margin-inline:7px;color:#9aa9bf}.agra-breadcrumb a{color:var(--agra-primary-dark);font-weight:650;text-decoration:none}.agra-breadcrumb span[aria-current=page]{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--agra-muted)}@media(max-width:520px){.agra-breadcrumb ol{overflow-x:auto;scrollbar-width:none}.agra-breadcrumb ol::-webkit-scrollbar{display:none}.agra-breadcrumb li:not(:first-child):not(:nth-last-child(-n+2)){display:none}.agra-breadcrumb li:nth-last-child(2)::before{content:"…"}}
.column-filter-form{width:100%;max-width:100%;min-width:0;contain:inline-size}.column-filter-form>.table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;contain:inline-size paint}
.workspace-tabs{display:flex;align-items:center;gap:4px;min-height:42px;margin-bottom:16px;padding:0 4px;border-bottom:1px solid var(--agra-border);overflow-x:auto;scrollbar-width:thin}
.workspace-tabs{width:100%;max-width:100%;min-width:0;contain:inline-size paint}
.module-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.module-card{display:grid;grid-template-rows:auto auto 1fr auto;gap:12px;padding:18px}.module-card>header{display:flex;align-items:center;gap:12px}.module-card>header>div{display:flex;flex:1;align-items:center;justify-content:space-between;gap:10px}.module-card h2{margin:0;font-size:17px}.module-card>p{margin:0;color:var(--agra-muted);line-height:1.5}.module-card ul{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}.module-card li{padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#52647d;font-size:11px}.module-card>small{color:var(--agra-muted)}.module-card form{display:flex;justify-content:flex-end;padding-top:4px}@media(max-width:760px){.module-card-grid{grid-template-columns:1fr}.module-card{padding:14px}.module-card>header>div{align-items:flex-start;flex-direction:column}}
.catalog-detail .table-wrap,.warehouse-detail .table-wrap,.module-list-panel>.table-wrap{max-width:100%;min-width:0;overflow-x:auto}
.reference-dashboard,.reference-dashboard>*{min-width:0}.reference-dashboard svg{max-width:100%}
@media(max-width:1500px) and (min-width:861px){.reference-dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px) and (min-width:761px){.workspace-tabs,.detail-breadcrumb{width:100%;max-width:100%;min-width:0;overflow-x:auto}}
.workspace-tab{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:9px 11px;color:var(--agra-muted);font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap}
.workspace-tab:visited{color:var(--agra-muted)}
.workspace-tab:hover,.workspace-tab:focus-visible,.workspace-tab.is-active,.workspace-tab.is-active:visited{color:var(--agra-primary-dark)}
.workspace-tab.is-active:after{position:absolute;right:8px;bottom:-1px;left:8px;height:3px;border-radius:3px;background:var(--agra-primary);content:""}
.workspace-count{display:grid;min-width:19px;height:19px;padding:0 5px;place-items:center;border-radius:999px;background:#edf2ef;color:#59685f;font-size:10px;font-weight:750}
.workspace-tab.is-active .workspace-count{background:var(--agra-primary-soft);color:var(--agra-primary-dark)}
.entity-link,.action-link,.subtle-link,.table-wrap td>a{color:var(--agra-primary-dark);font-weight:650;text-decoration:none}
.entity-link:visited,.action-link:visited,.subtle-link:visited,.table-wrap td>a:visited{color:var(--agra-primary-dark)}
.entity-link:hover,.action-link:hover,.subtle-link:hover,.table-wrap td>a:hover{color:var(--agra-primary);text-decoration:underline;text-underline-offset:3px}
.entity-link strong,.entity-link small{display:block}.entity-link small{color:var(--agra-muted);font-weight:400}
.list-count{margin:0 0 9px;color:var(--agra-muted);font-size:12px;font-weight:650}
.header-counter{align-self:center;padding:6px 10px;border-radius:999px;background:var(--agra-primary-soft);color:var(--agra-primary-dark);font-size:12px;font-weight:700}
.num{text-align:right;font-variant-numeric:tabular-nums}.movement-in,.movement-quantity.is-in{color:var(--agra-success);font-weight:750}.movement-out,.movement-quantity.is-out{color:var(--agra-danger);font-weight:750}
.money-summary .kpi-link{display:flex;min-width:0;min-height:112px;padding:17px;flex-direction:column;color:inherit;text-decoration:none}.money-summary .kpi-link:visited{color:inherit}.money-summary .kpi-link:hover{background:var(--agra-surface-soft)}
.compact-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.compact-kpis article{padding:13px 15px;border:1px solid var(--agra-border);border-radius:var(--agra-radius-md);background:#fff}.compact-kpis small{display:block;color:var(--agra-muted)}.compact-kpis strong{display:block;margin-top:3px;font-size:21px}
@media(max-width:760px){.workspace-tabs{width:100%;max-width:100%;margin-inline:0;padding-inline:10px}.page-head{align-items:flex-start}.header-counter{align-self:flex-start}.compact-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-dashboard-head .dashboard-period-form{display:grid;grid-template-columns:1fr;width:100%}.reference-dashboard-head .dashboard-period-form select,.reference-dashboard-head .dashboard-period-form input{width:100%;min-width:0}.reference-dashboard-primary,.reference-dashboard-secondary,.dashboard-right-stack,.reference-dashboard-kpis,.dashboard-bottom-stats{min-width:0}.reference-dashboard-kpi,.reference-dashboard-primary>*,.reference-dashboard-secondary>*,.dashboard-bottom-stats>*{min-width:0}}
@media(max-width:760px){.detail-breadcrumb{width:100%;max-width:100%;min-width:0;overflow-x:auto;white-space:nowrap}}
@media(max-width:760px){.document-hero,.entity-detail-hero{width:100%;max-width:100%;min-width:0;grid-template-columns:42px minmax(0,1fr)}.document-hero-total,.document-hero-actions,.document-hero .document-actions{grid-column:1/-1;width:100%;min-width:0}.document-hero-actions .button,.document-hero .document-actions .button{min-width:0}.catalog-detail,.warehouse-detail{width:100%;max-width:100%;min-width:0}}

/* Record operations: one route-independent action geometry. */
.record-action-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.record-action-bar>form{display:flex;margin:0}.record-action-bar .button{height:36px;min-height:36px}.record-more{position:relative}.record-more>summary{list-style:none}.record-more>summary::-webkit-details-marker{display:none}.record-more[open]>summary{background:#edf3fa}.record-more-menu{position:absolute;z-index:70;top:calc(100% + 7px);right:0;display:grid;gap:3px;width:max-content;min-width:210px;padding:6px;border:1px solid var(--agra-border);border-radius:9px;background:#fff;box-shadow:var(--agra-shadow-pop)}.record-more-menu form{display:block;margin:0}.record-more-menu .button{justify-content:flex-start;width:100%;border-color:transparent;background:transparent;box-shadow:none}.record-more-menu .button:hover{background:#edf3fa}.record-more-menu .button.danger{color:var(--agra-danger)}
.document-hero>.record-action-bar{justify-self:end;max-width:430px}
.finance-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.finance-alert{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 14px;border:1px solid #f0c8cb;border-radius:10px;background:#fff7f7;color:inherit;text-decoration:none}.finance-alert>span{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--agra-danger-soft);color:var(--agra-danger)}.finance-alert small{display:block;margin-top:2px;color:var(--agra-muted)}.finance-alert b{color:var(--agra-danger);font-variant-numeric:tabular-nums}
@media(max-width:760px){.document-hero>.record-action-bar{grid-column:1/-1;justify-self:stretch;width:100%}.record-action-bar>.button,.record-action-bar>form:first-child,.record-action-bar>form:first-child .button{flex:1}.record-action-bar>.record-more{margin-left:auto}.record-more-menu{right:0}}
@media(max-width:760px){.finance-alerts{grid-template-columns:1fr}.finance-alert{grid-template-columns:34px minmax(0,1fr)}.finance-alert>b{grid-column:2}}
@media(max-width:520px){.reference-dashboard-kpis{grid-template-columns:1fr}.reference-dashboard-kpi{grid-template-columns:34px minmax(0,1fr)}.reference-dashboard-kpi strong{white-space:normal}}
@media(max-width:1050px){html,body,.shell,main{max-width:100%}.catalog-detail .table-wrap,.warehouse-detail .table-wrap,.module-list-panel>.table-wrap{contain:inline-size paint}}
.settings-workspace{display:grid;gap:16px}.settings-subnav{display:flex;gap:4px;overflow-x:auto;padding:5px;border:1px solid var(--agra-border);border-radius:12px;background:#fff;scrollbar-width:thin}.settings-subnav a{flex:0 0 auto;padding:8px 11px;border-radius:8px;color:var(--agra-muted);font-size:12px;text-decoration:none}.settings-subnav a:hover,.settings-subnav a.is-active{background:var(--agra-primary-soft);color:var(--agra-primary)}.settings-search{display:flex;align-items:center;gap:7px;width:min(340px,100%);padding:8px 11px;border:1px solid var(--agra-border);border-radius:9px;background:#fff}.settings-search input{width:100%;border:0;outline:0}.settings-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-tile{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:17px;text-decoration:none}.settings-tile h2{margin:0 0 4px;color:var(--agra-text);font-size:15px}.settings-tile p{margin:0;color:var(--agra-muted);font-size:12px;line-height:1.45}.settings-section-form,.company-settings-form{max-width:900px}.company-settings-form details{padding:4px 0 14px;border-bottom:1px solid var(--agra-border)}.company-settings-form summary{padding:12px 0;font-weight:700;cursor:pointer}.reference-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px}.reference-nav{display:grid;align-content:start;padding:8px}.reference-nav a{padding:10px;border-radius:8px;color:var(--agra-muted);text-decoration:none}.reference-nav a.is-active{background:var(--agra-primary-soft);color:var(--agra-primary);font-weight:700}.reference-panel{padding:16px}.reference-create{display:grid;grid-template-columns:140px minmax(180px,1fr) 140px auto;align-items:end;gap:10px;margin:14px 0}.reference-create label{display:grid;gap:5px}.numbering-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.numbering-card{display:grid;gap:12px;padding:16px}.numbering-card header{display:flex;justify-content:space-between;gap:10px}.numbering-card h2{margin:0;font-size:15px}.numbering-card label{display:grid;gap:5px}.number-preview{display:flex;justify-content:space-between;padding:10px;border-radius:8px;background:#f8fafc}.number-preview span{color:var(--agra-muted);font-size:12px}@media(max-width:760px){.settings-overview-grid,.numbering-grid{grid-template-columns:1fr}.reference-layout{grid-template-columns:1fr}.reference-nav{display:flex;overflow-x:auto}.reference-create{grid-template-columns:1fr}.settings-workspace .page-head{align-items:stretch;flex-direction:column}.settings-subnav{margin-inline:-4px}}
.branding-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.branding-upload-grid form{display:grid;gap:.75rem;align-content:start}.branding-preview{display:block;max-width:220px;max-height:120px;object-fit:contain;border:1px solid var(--border,#dce3df);border-radius:10px;padding:.5rem;background:#fff}@media(max-width:700px){.branding-upload-grid{grid-template-columns:1fr}}

/* Lot 2.0.0.1: shared workspace, typography and snapshot components */
html body main{font-size:14px;line-height:1.5}html body main p,html body main small,html body main dt,html body main dd,html body main td,html body main th,html body main em{font-size:12.5px;line-height:1.45}html body main .badge,html body main .type-badge{font-size:12px}html body main .panel-head h2,html body main .premium-panel h2{font-size:16px;line-height:1.3}html body .agra-breadcrumb{font-size:12.5px;line-height:1.4}
html body .workspace-tabs,html body .agra-tabs{box-sizing:border-box;display:flex;align-items:stretch;height:44px;min-height:44px;max-height:44px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:none}html body .workspace-tabs::-webkit-scrollbar,html body .agra-tabs::-webkit-scrollbar{width:0;height:0}html body .workspace-tab,html body .agra-tab{display:flex;align-items:center;min-height:43px;padding:7px 12px;font-size:13.5px;line-height:1.2}html body .workspace-count,html body .agra-tab-count{min-width:20px;height:20px;font-size:12px;line-height:20px}
html body .premium-page,html body .module-page{width:100%;min-width:0;margin-inline:0}html body .reference-client-hero,html body .reference-client-kpis,html body .agra-tabs,html body .agra-tab-panel{width:100%;margin-inline:0}html body .reference-client-layout{grid-template-columns:minmax(0,2.5fr) minmax(270px,1fr);gap:16px}html body .reference-client-layout>main,html body .patient-summary-aside{gap:14px;min-width:0}html body .reference-client-kpis small,html body .reference-client-kpis span,html body .partner-key-card dt,html body .partner-key-card dd,html body .dense-list strong,html body .dense-list small,html body .dense-list em,html body .premium-activity strong,html body .premium-activity small,html body .tab-view-heading p{font-size:12.5px}html body .chart-legend,html body .chart-months{font-size:12px}html body .compact-empty{min-height:0;padding:20px;font-size:13px;line-height:1.5}
html body .settings-workspace{display:grid;grid-template-columns:228px minmax(0,1fr);align-items:start;column-gap:20px;row-gap:16px}html body .settings-workspace>.page-head,html body .settings-workspace>.premium-page-head,html body .settings-workspace>.module-page-head{grid-column:1/-1;width:100%}html body .settings-workspace>.settings-subnav{grid-column:1;grid-row:2/span 30;position:sticky;top:82px;display:grid;align-content:start;gap:3px;width:228px;padding:8px;overflow:visible;border:1px solid var(--agra-border);border-radius:12px;background:#fff;box-shadow:var(--agra-shadow-card)}html body .settings-subnav a{display:flex;align-items:center;min-height:38px;padding:8px 10px;border-radius:8px;font-size:13.5px;line-height:1.3}html body .settings-workspace>:not(.page-head):not(.premium-page-head):not(.module-page-head):not(.settings-subnav){grid-column:2;min-width:0;width:100%}html body .settings-section-form,html body .company-settings-form{width:min(100%,1180px);max-width:1180px}html body .settings-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}html body .settings-tile{min-height:98px;padding:18px}html body .settings-tile p{font-size:13px}html body .settings-tile:focus-visible{outline:3px solid rgba(35,139,69,.24)}html body .module-card li{display:inline-flex;align-items:center;height:26px;padding:3px 9px;font-size:12px;line-height:1}html body .module-card{align-content:start;padding:18px;gap:10px}
html body .document-party-snapshot{width:100%}html body .document-party-snapshot>header{min-height:54px;padding:11px 16px}html body .snapshot-status{display:inline-flex;align-items:center;height:24px;padding:3px 9px;border-radius:999px;background:#edf5ff;color:#315f91;font-size:12px;font-weight:650}html body .snapshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0}html body .snapshot-grid article{min-width:0;padding:15px 17px;border-inline-end:1px solid var(--agra-border)}html body .snapshot-grid article:last-child{border-inline-end:0}html body .snapshot-grid h3{margin:0 0 8px;color:var(--agra-muted);font-size:12px;line-height:1.2;text-transform:uppercase;letter-spacing:.055em}html body .snapshot-grid strong,html body .snapshot-grid span,html body .snapshot-grid small,html body .snapshot-grid address{display:block;margin:0;font-size:13px;line-height:1.5;font-style:normal}html body .snapshot-grid strong{font-size:14px}html body .snapshot-grid small,html body .snapshot-grid article>span{margin-top:2px;color:var(--agra-muted)}html body .snapshot-empty{color:var(--agra-muted);font-style:italic}
html body .money-summary>a.kpi-link{display:grid;gap:4px;min-height:92px;padding:14px;border:1px solid var(--agra-border);border-radius:var(--agra-radius-md);background:#fff;box-shadow:var(--agra-shadow-card);color:inherit;text-decoration:none}html body .money-summary>a.kpi-link strong{font-size:20px;color:#0b2451}html body .money-summary>a.kpi-link span,html body .money-summary>a.kpi-link small{font-size:12.5px;color:var(--agra-muted)}
@media(max-width:900px){html body .settings-workspace{grid-template-columns:200px minmax(0,1fr);column-gap:14px}html body .settings-workspace>.settings-subnav{width:200px}.reference-client-layout{grid-template-columns:1fr}.patient-summary-aside{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html body .settings-workspace{display:grid;grid-template-columns:1fr;gap:12px}html body .settings-workspace>.page-head,html body .settings-workspace>.premium-page-head,html body .settings-workspace>.module-page-head,html body .settings-workspace>.settings-subnav,html body .settings-workspace>:not(.page-head):not(.premium-page-head):not(.module-page-head):not(.settings-subnav){grid-column:1;grid-row:auto;width:100%}html body .settings-workspace>.settings-subnav{position:static;display:flex;overflow-x:auto;overflow-y:hidden;padding:5px;scrollbar-width:none}html body .settings-workspace>.settings-subnav::-webkit-scrollbar{width:0;height:0}html body .settings-subnav a{flex:0 0 auto;min-height:38px}html body .snapshot-grid{grid-template-columns:1fr}html body .snapshot-grid article{border-inline-end:0;border-bottom:1px solid var(--agra-border)}html body .snapshot-grid article:last-child{border-bottom:0}html body .patient-summary-aside{grid-template-columns:1fr}html body .agra-tabs{margin-inline:0;padding-inline:0}}

/* Readable business copy; eyebrows and avatar initials remain intentional micro text. */
html body .panel-head p,html body .panel-head>a,html body .aging-visual p,
html body .aging-visual p strong,html body .donut strong,html body .donut span,
html body .partner-info dt,html body .partner-info dd,html body .contact-list strong,
html body .contact-list small,html body .horizontal-activity strong,
html body .horizontal-activity small,html body .partner-key-card dt,
html body .partner-key-card dd,html body .overview-activity strong,
html body .overview-activity small{font-size:12.5px;line-height:1.4}
html body .reference-client-hero .identity-copy>p,html body .hero-contact,
html body .document-hero-total small,html body .money-summary small,
html body .money-summary span,html body .related-entities .relation-count,
html body .related-document small,html body .related-document em{font-size:12px;line-height:1.4}
html body .overview-table .table-wrap:has(tbody:empty){display:grid;min-height:58px;place-items:center;padding:14px;color:var(--agra-muted);font-size:13px}
html body .overview-table .table-wrap:has(tbody:empty) table{display:none}
html body .overview-table .table-wrap:has(tbody:empty)::after{content:"Aucun document récent."}
html body .company-settings-form details{padding:0 18px 18px;border-bottom:1px solid var(--agra-border)}
html body .company-settings-form details:not([open])>.form-grid{display:grid}
html body .company-settings-form summary{padding:16px 0 12px;list-style:none;pointer-events:none;font-size:16px;cursor:default}
html body .company-settings-form summary::-webkit-details-marker{display:none}
.geo-address-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.geo-address-fields>label{min-width:0;font-size:13px}.geo-combobox{position:relative;margin-top:6px}.geo-combobox .geo-search{width:100%;min-height:42px;padding-inline:38px 58px;font-size:14px}.geo-search-icon,.geo-chevron{position:absolute;z-index:1;top:50%;translate:0 -50%;pointer-events:none;color:var(--agra-muted)}.geo-search-icon{left:13px;display:grid;width:16px;height:16px;place-items:center}.geo-search-icon .icon{width:15px;height:15px}.geo-chevron{right:13px;font-size:16px}.geo-clear{position:absolute;z-index:2;top:50%;right:31px;translate:0 -50%;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--agra-muted);font-size:18px;line-height:24px}.geo-clear:hover,.geo-clear:focus-visible{background:var(--agra-primary-soft);color:var(--agra-primary-dark)}.geo-options{position:absolute;z-index:30;inset:calc(100% + 4px) 0 auto;padding:5px;border:1px solid var(--agra-border);border-radius:9px;background:#fff;box-shadow:var(--agra-shadow-card);max-height:250px;overflow-y:auto}.geo-options button{display:grid;width:100%;padding:9px;border:0;border-radius:7px;background:transparent;text-align:left}.geo-options button:hover,.geo-options button.is-active{background:var(--agra-primary-soft)}.geo-options strong,.geo-options small{font-size:13px}.geo-options small{color:var(--agra-muted)}@media(max-width:760px){.geo-address-fields{grid-template-columns:1fr}}
.activity-link{color:var(--agra-text);font-size:12.5px;font-weight:700;text-decoration:none}.activity-link:hover,.activity-link:focus-visible{color:var(--agra-primary);text-decoration:underline;text-underline-offset:3px}
.reference-combobox{margin-top:6px}.reference-combobox .reference-search{min-height:42px;padding-inline:38px 12px;font-size:14px}.reference-combobox>small{display:block;margin-top:6px;color:var(--agra-muted);font-size:12px}.geo-fallback-help{margin:0;color:var(--agra-muted);font-size:12px}.geo-free-value strong{font-weight:700}.geo-free-value small{color:var(--agra-muted)}
.settings-form-sections{overflow:visible}.settings-form-section{padding:20px 22px}.settings-form-section+.settings-form-section{border-top:1px solid var(--agra-border)}.settings-form-section>header{margin-bottom:16px}.settings-form-section>header h2,.company-branding-card>header h2{margin:0;font-size:16px}.settings-form-section>header p,.company-branding-card>header p{margin:3px 0 0;color:var(--agra-muted);font-size:12.5px}.regional-settings-grid{align-items:start}.company-branding-card{overflow:hidden}.company-branding-card>header{padding:19px 22px 15px;border-bottom:1px solid var(--agra-border)}.company-branding-card .branding-upload-grid{gap:0}.upload-field{display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:16px;min-width:0;padding:20px 22px;margin:0}.upload-field+.upload-field{border-left:1px solid var(--agra-border)}.upload-preview{display:grid;width:96px;height:78px;place-items:center;overflow:hidden;border:1px dashed #c7d4e3;border-radius:10px;background:#f8fafc;color:var(--agra-muted)}.upload-preview>span{display:grid;gap:4px;justify-items:center}.upload-preview .icon{width:22px;height:22px}.upload-preview small{font-size:12px}.upload-preview .branding-preview{width:100%;height:100%;max-width:none;max-height:none;padding:7px;border:0;border-radius:0}.upload-field-copy{min-width:0}.upload-field-copy h3{margin:0 0 4px;font-size:14px}.upload-field-copy p,.upload-field-copy span{display:block;margin:0;color:var(--agra-muted);font-size:12px;line-height:1.4}.upload-field-copy span{margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-field-actions{display:grid;justify-items:start;gap:7px}.upload-field-actions .button{min-height:36px;padding:7px 11px;font-size:12.5px}.visually-hidden-file{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.upload-submit{width:auto}.company-settings-form .form-actions{margin:0;border-radius:0 0 12px 12px}@media(max-width:1100px){.upload-field{grid-template-columns:78px minmax(0,1fr)}.upload-preview{grid-row:1/3;width:78px;height:72px}.upload-field-actions{grid-column:2;display:flex;flex-wrap:wrap}}@media(max-width:760px){.settings-form-section{padding:17px 15px}.branding-upload-grid{grid-template-columns:1fr}.upload-field+.upload-field{border-left:0;border-top:1px solid var(--agra-border)}.upload-field{padding:16px}.company-branding-card>header{padding:17px 16px}.company-settings-form .form-actions{display:grid;grid-template-columns:1fr}.company-settings-form .form-actions .button{width:100%;white-space:normal}}

/* Stock, Product 360 and authentication: shared visual primitives. */
html body .ui-kpi-grid>a.kpi-link{position:relative;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;align-content:center;min-height:104px;padding:15px 16px;border-color:#dce6f3;border-radius:12px;box-shadow:0 5px 16px rgba(20,54,96,.065);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
html body .ui-kpi-grid>a.kpi-link:hover{transform:translateY(-1px);border-color:#bfd4ee;box-shadow:0 9px 22px rgba(20,54,96,.1)}
html body .ui-kpi-grid .ui-kpi-icon{grid-row:1/4;display:grid;width:42px;height:42px;place-items:center;border-radius:11px;background:var(--agra-primary-soft);color:var(--agra-primary)}
html body .ui-kpi-grid .ui-kpi-icon.is-warning{background:#fff4df;color:#c77805}html body .ui-kpi-grid .ui-kpi-icon.is-danger{background:#fff0f0;color:#d24343}
html body .ui-kpi-grid .ui-kpi-icon .icon{width:20px;height:20px}html body .ui-kpi-grid>a.kpi-link small,html body .ui-kpi-grid>a.kpi-link strong,html body .ui-kpi-grid>a.kpi-link>span:last-child{grid-column:2}
html body .ui-insight-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(310px,1fr);gap:16px;align-items:start;margin-top:16px}html body .catalog-insight-grid{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}html body .catalog-insight-grid.is-service{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}
html body .ui-list-card{min-width:0;overflow:hidden;border:1px solid #dce6f3;border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(20,54,96,.07)}html body .ui-list-card::before{display:none}
html body .ui-card-header{display:flex;min-height:82px;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;border-bottom:1px solid #e7edf5;background:linear-gradient(180deg,#fff,#fbfdff)}
html body .ui-card-heading{min-width:0}html body .ui-card-heading .eyebrow{display:block;margin-bottom:4px;color:var(--agra-primary);font-size:11px;font-weight:800;letter-spacing:.09em}html body .ui-card-heading h2{margin:0;color:#102b58;font-size:16px;line-height:1.25}html body .ui-card-heading p{margin:3px 0 0;color:#7182a0;font-size:12.5px;line-height:1.35}
html body .ui-card-action{display:inline-flex;flex:none;align-items:center;gap:6px;padding:7px 9px;border-radius:8px;color:var(--agra-primary-dark);font-size:12.5px;font-weight:700;text-decoration:none}html body .ui-card-action:hover,html body .ui-card-action:focus-visible{background:var(--agra-primary-soft);color:var(--agra-primary);text-decoration:none}html body .ui-card-action span{font-size:16px;line-height:1}
html body .ui-list{display:grid}html body .ui-list-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:66px;padding:10px 18px;border-bottom:1px solid #e8eef6;color:inherit;text-decoration:none}html body .ui-list-row:last-child{border-bottom:0}html body a.ui-list-row:hover{background:#f8fbff;text-decoration:none}
html body .ui-list-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#eaf3ff;color:var(--agra-primary)}html body .ui-list-icon .icon{width:17px;height:17px}html body .ui-list-copy{display:block;min-width:0}html body .ui-list-copy strong{display:block;overflow:hidden;color:#102b58;font-size:13.5px;line-height:1.35;text-overflow:ellipsis}html body .ui-list-copy small{display:block;margin-top:2px;color:#7182a0;font-size:12px;line-height:1.35}html body .ui-list-value{justify-self:end;color:#153969;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}html body .ui-list-value.is-in{color:#07965a}html body .ui-list-value.is-out{color:#d53c45}
html body .ui-list .compact-empty{display:grid;justify-items:center;min-height:150px;padding:24px 18px;text-align:center}html body .ui-list .compact-empty .empty-icon{display:grid;width:40px;height:40px;margin:0 0 10px;place-items:center;border-radius:11px;background:var(--agra-primary-soft);color:var(--agra-primary)}html body .ui-list .compact-empty .empty-icon .icon{width:19px;height:19px}html body .ui-list .compact-empty h2{margin:0;font-size:14px}html body .ui-list .compact-empty p{margin:4px 0 0;color:var(--agra-muted);font-size:12.5px}

html body.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(440px,43%) minmax(0,57%);background:#fff;color:#102b58}html body.login-page::after{display:none;content:none}
html body .login-auth-panel{display:grid;min-width:0;place-items:center;padding:48px 36px;background:linear-gradient(145deg,#fff 0%,#fbfdff 62%,#f3f8ff 100%)}html body .login-card{width:min(440px,100%);margin:0;padding:0;background:transparent;box-shadow:none}
html body .login-brand{width:max-content;height:auto;justify-content:flex-start;gap:11px;margin:0 0 64px;padding:0;color:#0a64cf}html body .login-brand .brand-mark{width:43px;height:43px;border:1px solid #bcd7f9;border-radius:12px;background:#edf5ff;color:var(--agra-primary)}html body .login-brand .brand-mark .icon{width:29px;height:29px}html body .login-brand .brand-copy strong{display:block;color:#102b58;font-size:25px;line-height:1;letter-spacing:.045em}html body .login-brand .brand-copy small{margin-top:3px;color:#354f73;font-size:10px;letter-spacing:.34em;text-align:center}
html body .login-heading{margin-bottom:28px}html body .login-heading .eyebrow{color:var(--agra-primary);font-size:11px;font-weight:800;letter-spacing:.13em}html body .login-heading h1{margin:8px 0 7px;color:#102b58;font-size:30px;line-height:1.15;letter-spacing:-.035em}html body .login-heading p{margin:0;color:#6d7e9c;font-size:14.5px}
html body .login-card form{display:grid;gap:8px}html body .login-card form label{margin-top:8px;color:#29466e;font-size:13.5px;font-weight:700}html body .login-card input{min-height:44px;border-color:#ccd9eb;border-radius:9px;background:#fff;font-size:14px}html body .login-card input:focus{border-color:var(--agra-primary);box-shadow:0 0 0 3px rgba(11,120,246,.13)}html body .login-card .button{min-height:44px;margin-top:12px;background:linear-gradient(135deg,#0b78f6,#0967d8);box-shadow:0 7px 16px rgba(11,120,246,.22);font-size:14px}html body .login-card .button:hover{background:#075fc7}html body .login-card .button .icon{width:16px;height:16px}
html body .login-error{margin:0 0 18px;font-size:13px}html body .login-error .icon{width:17px;height:17px}html body .secure{display:flex;align-items:center;justify-content:center;gap:7px;margin:20px 0 0;color:#7182a0;font-size:12px}html body .secure .icon{width:15px;height:15px;color:#4d719e}
html body .login-brand-panel{position:relative;isolation:isolate;display:flex;min-width:0;overflow:hidden;align-items:flex-end;padding:clamp(42px,6vw,88px);background:radial-gradient(circle at 78% 15%,rgba(64,164,255,.36),transparent 28%),radial-gradient(circle at 12% 82%,rgba(25,117,245,.28),transparent 34%),linear-gradient(145deg,#061832 0%,#092958 48%,#075fc7 100%);color:#fff}
html body .login-brand-pattern{position:absolute;z-index:-1;inset:0;opacity:.52;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px),radial-gradient(circle at center,rgba(255,255,255,.12) 1.5px,transparent 2px);background-position:center;background-size:48px 48px,48px 48px,96px 96px;mask-image:linear-gradient(130deg,transparent 5%,#000 48%,#000 90%)}
html body .login-brand-content{width:min(650px,100%);position:relative;z-index:2}html body .login-brand-kicker{display:block;margin-bottom:14px;color:#8fc6ff;font-size:11px;font-weight:800;letter-spacing:.13em}html body .login-brand-content h2{margin:0;color:#fff;font-size:clamp(34px,3.6vw,56px);line-height:1.04;letter-spacing:-.045em}html body .login-brand-content>p{max-width:520px;margin:20px 0 32px;color:#c7daf4;font-size:16px;line-height:1.6}
html body .login-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(570px,100%)}html body .login-preview article{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:11px;min-height:76px;padding:14px;border:1px solid rgba(255,255,255,.15);border-radius:13px;background:rgba(255,255,255,.09);box-shadow:0 16px 35px rgba(0,11,36,.12);backdrop-filter:blur(9px)}html body .login-preview article>span{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:rgba(123,193,255,.16);color:#beddff}html body .login-preview .icon{width:18px;height:18px}html body .login-preview small{display:block;color:#edf6ff;font-size:12px;font-weight:700}html body .login-preview i{display:block;height:5px;margin-top:9px;overflow:hidden;border-radius:5px;background:rgba(255,255,255,.12)}html body .login-preview i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4da7ff,#a6d6ff)}
html body .login-orbit{position:absolute;z-index:0;border:1px solid rgba(148,205,255,.22);border-radius:50%}html body .login-orbit-one{width:430px;height:430px;right:-120px;top:-130px}html body .login-orbit-two{width:260px;height:260px;left:7%;top:12%;border-width:36px;border-color:rgba(47,145,244,.08)}
@media(max-width:1100px){html body .ui-insight-grid,html body .catalog-insight-grid{grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr)}html body.login-page{grid-template-columns:minmax(400px,48%) minmax(0,52%)}html body .login-brand-panel{padding:44px}html body .login-preview{grid-template-columns:1fr}html body .login-preview article:nth-child(3){display:none}}
@media(max-width:760px){html body .ui-kpi-grid>a.kpi-link{grid-template-columns:36px minmax(0,1fr);column-gap:10px;padding:13px}html body .ui-kpi-grid .ui-kpi-icon{width:36px;height:36px}html body .ui-insight-grid,html body .catalog-insight-grid,html body .catalog-insight-grid.is-service{grid-template-columns:1fr}html body .ui-card-header{min-height:76px;padding:13px 14px}html body .ui-list-row{grid-template-columns:34px minmax(0,1fr) auto;padding-inline:14px}html body .ui-list-icon{width:34px;height:34px}html body.login-page{display:block;min-height:100vh;padding:0;background:linear-gradient(155deg,#fff 30%,#eef6ff 100%)}html body .login-auth-panel{min-height:100vh;padding:32px 22px}html body .login-brand{margin-bottom:48px}html body .login-heading h1{font-size:28px}html body .login-brand-panel{display:none}}
@media(min-width:761px) and (max-width:900px){html body.login-page{grid-template-columns:minmax(380px,54%) minmax(0,46%)}html body .login-auth-panel{padding:38px 30px}html body .login-brand{margin-bottom:48px}html body .login-brand-panel{padding:34px}html body .login-brand-content h2{font-size:34px}html body .login-brand-content>p{font-size:14px}html body .login-preview article:nth-child(n+2){display:none}}
.auth-error-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--agra-bg)}.auth-error-page .login-card{width:min(430px,100%);padding:32px;border:1px solid var(--agra-border);border-radius:14px;background:#fff;box-shadow:var(--agra-shadow-card)}
.auth-error-page .login-card .button.secondary{border:1px solid #bfd1e8;background:#fff;box-shadow:none;color:var(--agra-primary-dark)}.auth-error-page .login-card .button.secondary:hover{background:var(--agra-primary-soft);color:var(--agra-primary)}
html{overflow-y:scroll}
.form-grid .geo-address-fields>label{grid-column:auto}
.partner-overview-main{width:100%;max-width:none;margin:0;padding:0}
.document-tabs{margin-bottom:0}.document-attachments{overflow:visible}.attachment-upload{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:8px 14px;padding:16px}.attachment-upload label{display:grid;gap:6px;font-size:13px;font-weight:650}.attachment-upload small{grid-column:1;color:var(--agra-muted);font-size:12px}.attachment-upload>.button{grid-column:2;grid-row:1/3}.attachment-picker{cursor:pointer}.attachment-picker-control{display:flex;align-items:center;gap:12px;min-height:42px}.attachment-picker-control .button{grid-column:auto;grid-row:auto}.attachment-picker-control em{color:var(--agra-muted);font-size:12.5px;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-list{border-top:1px solid var(--agra-border)}.attachment-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 15px;border-bottom:1px solid var(--agra-border)}.attachment-row:last-child{border-bottom:0}.attachment-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:var(--agra-primary-soft);color:var(--agra-primary)}.attachment-icon .icon{width:18px}.attachment-row>div{display:grid;min-width:0}.attachment-row .strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-row small{color:var(--agra-muted);font-size:12px}.activity-link{color:inherit;text-decoration:none}.activity-link:hover{color:var(--agra-primary)}
@media(max-width:760px){.attachment-upload{grid-template-columns:1fr}.attachment-upload>.button,.attachment-upload small{grid-column:1;grid-row:auto}.attachment-row{grid-template-columns:34px minmax(0,1fr)}.attachment-row form{grid-column:2}.document-tabs{margin-inline:0}}
.crm-kpis{margin-block:20px}.crm-overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:16px;margin-top:16px}.crm-list{display:grid}.crm-list>a,.crm-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 2px;border-bottom:1px solid var(--agra-border);color:inherit;text-decoration:none}.crm-list>a:last-child,.crm-list>div:last-child{border-bottom:0}.crm-list div>div,.crm-list a>div{display:grid;gap:3px}.crm-list small{color:var(--agra-muted);font-size:12.5px}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--agra-primary);flex:none}.crm-pipeline{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,1fr);gap:14px;overflow-x:auto;padding-block:18px;scrollbar-width:thin}.pipeline-column{background:#f6f8fb;border:1px solid var(--agra-border);border-radius:12px;padding:12px;min-height:180px}.pipeline-column>header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}.pipeline-column>header>div{display:flex;align-items:center;gap:7px}.pipeline-column h2{font-size:14px;margin:0}.pipeline-column>header>strong{font-size:12.5px;color:var(--agra-muted)}.pipeline-card{display:grid;gap:6px;background:#fff;border:1px solid var(--agra-border);border-radius:10px;padding:13px;margin-bottom:9px;color:inherit;text-decoration:none;box-shadow:0 2px 8px rgba(15,23,42,.04)}.pipeline-card:hover{border-color:var(--agra-primary);box-shadow:0 6px 18px rgba(15,23,42,.08)}.pipeline-card h3{font-size:14px;margin:0}.pipeline-card p,.pipeline-card small{font-size:12.5px;color:var(--agra-muted);margin:0}.pipeline-empty{font-size:13px;color:var(--agra-muted);padding:16px;text-align:center;border:1px dashed var(--agra-border);border-radius:9px}.is-overdue td{background:rgba(220,38,38,.035)}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-block:16px}.kpi-card{display:grid;gap:4px;min-width:0;min-height:88px;padding:14px 16px;border:1px solid var(--agra-border);border-radius:var(--agra-radius-md);background:#fff;box-shadow:var(--agra-shadow-card)}.kpi-card span{color:var(--agra-muted);font-size:12px}.kpi-card strong{overflow:hidden;font-size:19px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:800px){.crm-overview-grid{grid-template-columns:1fr}.crm-pipeline{grid-auto-columns:minmax(260px,82vw)}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.partner-tab-content[data-active-tab="crm"]>.tab-view-heading,.partner-tab-content[data-active-tab="crm"]>.information-tab-grid{display:none}.partner-crm-view>.tab-view-heading{display:flex}.partner-crm-view{display:grid;gap:14px}

/* CRM uses the same structural primitives as the other AGRA workspaces. */
.crm-workspace,.workspace:has(>.workspace-tabs){display:grid;gap:0}.crm-page-header,.workspace:has(>.workspace-tabs)>.page-header{display:flex;min-height:108px;align-items:center;justify-content:space-between;gap:24px;margin-bottom:0;padding:20px 22px;border:1px solid #dce6f3;border-left:4px solid var(--agra-primary);border-radius:12px;background:linear-gradient(135deg,#fff 0%,#f7fbff 100%);box-shadow:0 5px 16px rgba(20,54,96,.055)}.crm-page-header h1,.workspace:has(>.workspace-tabs)>.page-header h1{margin:5px 0 4px;color:#102b58;font-size:25px;line-height:1.15}.crm-page-header p,.workspace:has(>.workspace-tabs)>.page-header p{margin:0;color:#667895;font-size:13.5px}.crm-page-header+.workspace-tabs,.workspace:has(>.workspace-tabs)>.page-header+.workspace-tabs{margin-top:12px}.crm-kpis.ui-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-block:16px 0}.crm-kpis .premium-kpi{min-height:96px;border-radius:12px;box-shadow:0 5px 16px rgba(20,54,96,.055)}.crm-overview-grid.ui-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;margin-top:16px}.crm-overview-grid .ui-list-card{min-height:0}.crm-overview-grid .ui-list{min-height:150px}.entity-link{border-radius:4px}.opportunity-header .page-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}.opportunity-header .button{height:38px;white-space:nowrap}.crm-pipeline{align-items:start}.pipeline-column{min-height:0}.pipeline-card{color:#102b58}.pipeline-card:visited{color:#102b58}
@media(max-width:800px){.crm-page-header,.workspace:has(>.workspace-tabs)>.page-header{align-items:flex-start;flex-direction:column;padding:17px 16px}.crm-page-header .page-actions,.workspace:has(>.workspace-tabs)>.page-header .page-actions{display:grid;width:100%;grid-template-columns:1fr}.crm-page-header .button,.workspace:has(>.workspace-tabs)>.page-header .button{width:100%}.crm-kpis.ui-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-overview-grid.ui-insight-grid{grid-template-columns:1fr}.opportunity-header .page-actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.opportunity-header .button{width:100%}}

.record-more-mobile{display:none}.record-more-menu hr{width:100%;height:1px;margin:4px 0;border:0;background:var(--agra-border)}.record-action-bar .button{white-space:nowrap}.opportunity-header>.record-action-bar{flex-wrap:wrap}.opportunity-documents .card-header>.button{flex:none}.opportunity-documents>.empty-state{display:grid;justify-items:center;min-height:180px;padding:28px;text-align:center}.opportunity-documents>.empty-state .empty-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:11px;background:var(--agra-primary-soft);color:var(--agra-primary)}.opportunity-documents>.empty-state p{margin:0 0 8px;color:var(--agra-muted)}
@media(max-width:760px){.record-action-bar>.record-direct:not(.record-primary),.record-action-bar>form:has(.record-direct:not(.record-primary)),.record-action-bar>.record-more:not(.record-more-mobile){display:none}.record-action-bar>.record-primary,.record-action-bar>form:has(.record-primary){display:flex;flex:1}.record-action-bar>.record-primary,.record-action-bar>form:has(.record-primary) .record-primary{width:100%;flex:1}.record-action-bar>.record-more-mobile{display:block;margin-left:auto}.record-more-menu{max-width:calc(100vw - 32px)}.opportunity-header>.record-action-bar{display:flex;width:100%;flex-wrap:nowrap}}
