
:root{
  --bg:#f5f7f8;--surface:#ffffff;--surface-soft:#f9fbfb;--surface-tint:#f1f7f5;
  --text:#172b31;--text-2:#385057;--muted:#6b7f84;--muted-2:#8ca0a4;
  --line:#e3eaec;--line-strong:#d5e0e2;
  --brand:#0d6b63;--brand-strong:#09564f;--brand-soft:#e9f5f2;--brand-ink:#0b3537;
  --nav:#0b242b;--nav-2:#10323a;--nav-text:#d7e3e3;--nav-muted:#87a5a8;
  --gold:#c89437;--gold-soft:#fbf3e3;
  --danger:#b84250;--danger-soft:#fff0f2;--warning:#9d681b;--warning-soft:#fff6e6;--success:#16735d;--success-soft:#e9f7f1;
  --blue:#3767a6;--blue-soft:#edf3fb;
  --shadow-xs:0 1px 2px rgba(14,42,47,.035);--shadow-sm:0 6px 22px rgba(14,42,47,.055);--shadow-md:0 16px 45px rgba(14,42,47,.09);
  --radius-xs:8px;--radius-sm:10px;--radius:14px;--radius-lg:18px;--radius-xl:24px;
  --sidebar:248px;--topbar:72px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}
body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font-feature-settings:"tnum" 1,"cv02" 1,"cv03" 1}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{color:inherit}
svg{display:block;fill:currentColor}
::selection{background:#cfe9e3;color:#102f33}
:focus-visible{outline:3px solid rgba(13,107,99,.25);outline-offset:2px}

/* App shell */
.app-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}
.app-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,var(--nav),#0a2026 100%);color:var(--nav-text);padding:18px 14px 14px;display:flex;flex-direction:column;z-index:30;border-right:1px solid rgba(255,255,255,.04)}
.app-brand{display:flex;align-items:center;gap:11px;border-radius:12px}
.brandmark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#dfb458,#f0d595);color:#173038;font-weight:900;font-size:16px;box-shadow:0 8px 24px rgba(202,153,57,.15);flex:0 0 auto}
.brandmark.large{width:54px;height:54px;border-radius:16px;font-size:22px}
.brandcopy{min-width:0}.brandcopy strong,.auth-brand strong{display:block;font-size:14px;letter-spacing:.12em;color:#fff}.brandcopy small,.auth-brand small{display:block;margin-top:2px;font-size:10px;letter-spacing:.04em;color:var(--nav-muted);text-transform:none}
.workspace-card{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;margin:20px 4px 14px;padding:11px;border:1px solid rgba(178,210,209,.14);border-radius:13px;background:rgba(255,255,255,.035)}
.workspace-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);font-weight:800;color:#fff}
.workspace-copy{min-width:0}.workspace-copy small{display:block;font-size:9px;font-weight:800;letter-spacing:.09em;color:#79979a}.workspace-copy strong{display:block;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;font-size:12.5px}.workspace-copy span{display:block;margin-top:1px;font-size:10.5px;color:#91aaac}
.primary-nav{display:grid;gap:3px;margin-top:6px}
.nav-item{min-height:44px;display:flex;align-items:center;gap:11px;padding:0 12px;border-radius:10px;color:#a9bec0;font-size:12.5px;font-weight:650;transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-item svg{width:18px;height:18px;color:#7fa0a2;flex:0 0 auto}
.nav-item:hover{background:rgba(255,255,255,.055);color:#fff}.nav-item:hover svg{color:#bdd0d0}
.nav-item.is-active{background:#174149;color:#fff;box-shadow:inset 3px 0 0 #dfb458}.nav-item.is-active svg{color:#e4c172}
.sidebar-footer{margin-top:auto;padding:12px 4px 0;border-top:1px solid rgba(255,255,255,.07)}
.sidebar-network{margin-bottom:7px}.network-status{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;color:#8fa8aa}.network-status.online{color:#8fd2bd}.network-status.offline{color:#efb37b}
.sidebar-logout{width:100%;min-height:38px;border:0;border-radius:9px;background:transparent;color:#8ea8aa;text-align:left;padding:0 10px;cursor:pointer;font-size:11.5px;transition:background .16s,color .16s}.sidebar-logout:hover{background:rgba(255,255,255,.05);color:#fff}

.app-main{min-width:0}
.topbar{height:var(--topbar);position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.topbar-title{min-width:0}.topbar-title>small{display:block;font-size:9.5px;font-weight:800;letter-spacing:.11em;color:var(--muted-2)}.topbar-title h1{margin:1px 0 0;font-size:20px;line-height:1.25;letter-spacing:-.02em;color:#183138;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-actions{display:flex;align-items:center;gap:10px;min-width:0}.topbar-create svg{width:17px;height:17px}.plan-pill{display:inline-flex;align-items:center;height:30px;padding:0 9px;border-radius:999px;background:var(--gold-soft);color:#85611d;font-size:10.5px;font-weight:800}
.profile-chip{display:flex;align-items:center;gap:9px;padding:5px 7px 5px 5px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0;max-width:240px}.profile-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#edf5f3;color:var(--brand);font-weight:850}.profile-copy{min-width:0}.profile-copy strong{display:block;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy small{display:block;font-size:9.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.content-shell{width:min(1480px,100%);margin:0 auto;padding:24px 28px 52px}
.mobile-bottom-nav{display:none}

/* Typography & general surfaces */
.eyebrow,.kicker{display:inline-block;font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.10em;text-transform:uppercase;color:var(--brand)}
.eyebrow.light{color:#9fc6c3}
h2,h3,h4{color:#183138}.page-intro h2{margin:4px 0 3px;font-size:28px;line-height:1.18;letter-spacing:-.035em}.page-intro p{margin:0;color:var(--muted);font-size:13px;max-width:760px}.surface,.card,.form-surface,.formcard,.paper,.sidecard,.settingscard,.settings-section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-xs)}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:2px 0 20px}.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dashboard-intro{margin-bottom:14px}
.flash{display:flex;align-items:center;min-height:42px;margin:0 0 14px;padding:10px 13px;border-radius:11px;border:1px solid #cee7df;background:#eef8f4;color:#176c59;font-size:12px;font-weight:650;box-shadow:var(--shadow-xs)}.flash.error{border-color:#f0cdd2;background:#fff3f4;color:#9e3947}.flash.warning{border-color:#edd7b3;background:#fff8eb;color:#8b5c18}

/* Buttons */
.button,.primary,.secondary{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;border-radius:10px;border:1px solid transparent;font-size:12.5px;font-weight:750;line-height:1;cursor:pointer;white-space:nowrap;transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease,color .14s ease}
.button:hover,.primary:hover,.secondary:hover{transform:translateY(-1px)}
.button-primary,.primary{background:linear-gradient(180deg,#11756c,#0d655e);color:#fff;border-color:#0d655e;box-shadow:0 5px 14px rgba(13,107,99,.15)}
.button-primary:hover,.primary:hover{background:linear-gradient(180deg,#0f6b63,#095b55);box-shadow:0 8px 20px rgba(13,107,99,.18)}
.button-secondary,.secondary{background:#fff;color:#314d53;border-color:var(--line-strong);box-shadow:0 1px 2px rgba(15,42,47,.02)}
.button-secondary:hover,.secondary:hover{background:#f8fbfa;border-color:#c8d6d8}
.button-compact{min-height:36px;padding:0 12px;font-size:11.5px}.button-large{min-height:48px;font-size:13px}.full{width:100%}
button:disabled,.button[aria-disabled="true"]{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.text-link{font-size:11.5px;font-weight:750;color:var(--brand)}.text-link:hover{text-decoration:underline;text-underline-offset:3px}

/* Dashboard */
.context-banner{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:10px 13px;border:1px solid #d7e8e4;border-radius:12px;background:#f3f9f7}.context-banner>div{display:flex;align-items:center;gap:10px}.context-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e2f2ee;color:var(--brand);font-weight:900}.context-banner strong{display:block;font-size:11.5px}.context-banner span:not(.context-icon){display:block;margin-top:1px;color:var(--muted);font-size:10.5px}.context-banner>a{font-size:11px;font-weight:800;color:var(--brand)}.context-banner.warning{border-color:#ecd8b5;background:#fff9ee}.context-banner.warning .context-icon{background:#fff0d1;color:#996615}.context-banner.warning>a{color:#8d5d16}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:14px}.kpi-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-xs)}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:10.5px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.kpi-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eff6f4;color:var(--brand);font-size:12px}.kpi-icon.success{background:var(--success-soft);color:var(--success)}.kpi-icon.neutral{background:#f1f4f5;color:#587076}.kpi-icon.danger{background:var(--danger-soft);color:var(--danger)}.kpi-card>strong{display:block;margin-top:10px;font-size:22px;line-height:1.1;letter-spacing:-.035em;color:#19383d;font-variant-numeric:tabular-nums}.kpi-card>strong small{font-size:10px;letter-spacing:.02em;color:var(--muted);font-weight:800}.kpi-card>b{display:block;margin-top:5px;font-size:13px;color:#4c656a;font-variant-numeric:tabular-nums}.kpi-card>footer{margin-top:12px;padding-top:10px;border-top:1px solid #eef2f3;color:var(--muted-2);font-size:9.5px}.kpi-card.danger>strong{color:#a63e49}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.55fr);gap:12px}.surface-header,.cardhead{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;border-bottom:1px solid var(--line)}.surface-header h3,.cardhead h3{margin:3px 0 0;font-size:15px;letter-spacing:-.015em}.quick-list{padding:6px}.quick-list>a{min-height:62px;display:grid;grid-template-columns:34px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;transition:background .15s}.quick-list>a:hover{background:#f7faf9}.quick-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#edf6f3;color:var(--brand);font-weight:850}.quick-list strong{display:block;font-size:11.5px}.quick-list small{display:block;margin-top:1px;color:var(--muted);font-size:10px}.quick-list .arrow{color:#9aabad}.quick-stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;border-top:1px solid var(--line);background:var(--line)}.quick-stats>div{padding:12px 14px;background:#fff}.quick-stats strong{display:block;font-size:20px}.quick-stats span{display:block;color:var(--muted);font-size:9.5px}

/* Tables */
.data-table{overflow-x:auto}.data-row{min-width:790px;display:grid;grid-template-columns:1.05fr 1.5fr .8fr .9fr .9fr .85fr;gap:14px;align-items:center;min-height:52px;padding:8px 16px;border-bottom:1px solid #edf2f3;font-size:11.5px;transition:background .12s ease}.data-row:last-child{border-bottom:0}.data-row:not(.data-head):hover{background:#fafcfc}.data-head{min-height:38px;background:#fafcfc;color:#83969a;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.data-row strong{font-size:11.5px;color:#18363b}.data-row small{display:block;margin-top:1px;color:var(--muted-2);font-size:9.5px}.money{font-variant-numeric:tabular-nums;font-weight:650}.money-due{color:#99424d}.customer-table .data-row{grid-template-columns:1.4fr 1.1fr 1fr .8fr .7fr;min-width:760px}.invoice-table .data-row{grid-template-columns:1.05fr 1.45fr .8fr .9fr .9fr .85fr}.entity-cell{display:flex;align-items:center;gap:9px;min-width:0}.entity-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#edf5f3;color:var(--brand);font-weight:800;flex:0 0 auto}.entity-cell>div{min-width:0}.entity-cell strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status{display:inline-flex;align-items:center;justify-content:center;min-height:23px;width:max-content;padding:0 8px;border-radius:999px;background:#eff3f4;color:#64777b;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.03em}.status.paid,.status.active{background:var(--success-soft);color:var(--success)}.status.overdue,.status.blocked,.status.cancelled{background:var(--danger-soft);color:var(--danger)}.status.finalized,.status.sent,.status.partial{background:var(--blue-soft);color:var(--blue)}.status.draft,.status.inactive{background:#f0f3f4;color:#61767a}
.toolbar{display:flex;align-items:center;gap:8px;margin:0 0 12px}.search-field{position:relative;flex:1;max-width:560px}.search-field svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#8da0a4}.search-field input{width:100%;height:42px;padding:0 12px 0 38px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--text);outline:none;box-shadow:var(--shadow-xs)}

/* Catalogue */
.catalogue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.catalogue-card{min-height:192px;display:flex;flex-direction:column;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-xs);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.catalogue-card:hover{transform:translateY(-2px);border-color:#cfdcde;box-shadow:var(--shadow-sm)}.catalogue-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.catalogue-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#edf6f3;color:var(--brand);font-weight:850}.type-pill{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#f3f6f6;color:#687c80;font-size:9.5px;font-weight:750}.catalogue-copy{margin-top:14px}.catalogue-copy h3{margin:0;font-size:14px;letter-spacing:-.01em}.catalogue-copy p{margin:5px 0 0;color:var(--muted);font-size:10.5px;line-height:1.55}.catalogue-card footer{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-top:auto;padding-top:15px}.catalogue-card footer span{color:var(--muted-2);font-size:9.5px}.catalogue-card footer strong{font-size:14px;font-variant-numeric:tabular-nums}.span-full{grid-column:1/-1}

/* Forms */
.form-layout{width:min(1120px,100%);margin:0 auto}.form-surface,.formcard{overflow:hidden}.form-heading,.formhead{padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fcfdfd)}.form-heading h2,.formhead h2{margin:4px 0 3px;font-size:22px;line-height:1.2;letter-spacing:-.025em}.form-heading p,.formhead p{margin:0;color:var(--muted);font-size:11.5px}.form-surface>form,.formcard>form{padding:20px 22px}.form-grid,.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.span-2,.field.span2{grid-column:1/-1}.field{display:grid;gap:5px;align-content:start}.field label,.auth-form label{font-size:11px;font-weight:750;color:#3f595e}.field input,.field select,.field textarea,.auth-form input,.settingscard input,.settingscard select,.settingscard textarea{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:#203c42;outline:none;transition:border-color .14s,box-shadow .14s,background .14s}.field textarea,.settingscard textarea{min-height:88px;resize:vertical;line-height:1.5}.field input:hover,.field select:hover,.field textarea:hover,.auth-form input:hover{border-color:#bdcccf}.field input:focus,.field select:focus,.field textarea:focus,.auth-form input:focus{border-color:#6ba99f;box-shadow:0 0 0 3px rgba(13,107,99,.1)}.field input[type="checkbox"]{width:18px;min-height:18px;height:18px;accent-color:var(--brand)}.field small.help,.field>small{font-size:9.5px;line-height:1.45;color:var(--muted-2)}.error,.form-error{color:#a43c49!important;font-size:10px}.form-actions,.formcard footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}
.lineblock{margin-top:22px;padding-top:19px;border-top:1px solid var(--line)}.linehead{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px}.linehead h3{margin:0;font-size:14px}.linehead small{color:var(--muted);font-size:10px}.lineform{display:grid;grid-template-columns:1.15fr 2fr .5fr .6fr .8fr .65fr;gap:8px;align-items:end;padding:11px;border:1px solid var(--line);border-radius:11px;background:#fbfcfc;margin-bottom:8px}.lineform .delete{min-height:44px;display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}
.fx-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid #d9e8e4;border-radius:10px;background:#f3f8f7}.fx-preview small{font-size:9.5px;font-weight:800;letter-spacing:.06em;color:#607b77}.fx-preview strong{font-size:11.5px}.offline-save-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0;padding:10px 12px;border:1px dashed #cfddda;border-radius:10px;background:#f8faf9}.offline-save-note span{font-size:10.5px;font-weight:800}.offline-save-note small{color:var(--muted);font-size:9.5px;text-align:right}

/* Legacy hero compatibility */
.hero,.invoicehero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;margin-bottom:14px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-xs)}.hero.compact{padding:18px 20px}.hero h2,.invoicehero h2{margin:4px 0 3px;font-size:24px;letter-spacing:-.03em}.hero p,.invoicehero p{margin:0;color:var(--muted);font-size:11.5px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Invoice detail */
.invoicegrid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.45fr);gap:12px}.paper{padding:24px}.paperhead{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}.paperhead>div{display:grid;gap:3px}.paperhead .right{text-align:right}.paperhead small{font-size:9px;font-weight:850;letter-spacing:.06em;color:var(--muted-2)}.paperhead strong{font-size:12px}.paperhead span{font-size:10.5px;color:var(--muted)}.lineview{margin-top:16px}.ivrow{display:grid;grid-template-columns:2fr .4fr .8fr .8fr;gap:10px;align-items:center;padding:10px;border-bottom:1px solid #edf2f3;font-size:11.5px}.ivhead{min-height:34px;background:#fafcfc;color:#83969a;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.ivrow small{display:block;color:var(--muted-2);font-size:9.5px}.totals{display:grid;justify-content:end;margin-top:16px}.totals>div{display:grid;grid-template-columns:140px 160px;gap:14px;padding:5px 7px;font-size:11px}.totals strong{text-align:right;font-variant-numeric:tabular-nums}.totals .grand,.totals .balance{padding-top:8px;margin-top:2px;border-top:1px solid var(--line);font-size:13px;font-weight:850}.totals .balance{color:var(--brand)}.totals .equivalent{background:#f3f8f7;color:#256b61;border-radius:8px}.side{display:grid;align-content:start;gap:10px}.sidecard{padding:16px}.sidecard h3{margin:4px 0 8px;font-size:14px}.sidecard p{margin:6px 0;color:var(--muted);font-size:10.5px;line-height:1.55}.payurl{padding:9px 10px;margin:10px 0;border:1px dashed #c8d8d5;border-radius:8px;background:#f8fbfa;font:9.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:#4e666b;word-break:break-all}.metricline{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf2f3;font-size:10.5px}.payment-record-form{display:grid;gap:8px}.payment-history{display:grid}.payment-history>div{display:grid;gap:2px;padding:8px 0;border-bottom:1px solid #edf2f3}.payment-history strong{font-size:11px}.payment-history span,.payment-history small{font-size:9.5px;color:var(--muted)}

/* Settings */
.settingsgrid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:12px;margin-bottom:12px}.settingscard{padding:17px}.settingscard h3{margin:4px 0 6px;font-size:15px}.settingscard p{margin:6px 0;color:var(--muted);font-size:10.5px;line-height:1.55}.fx-current{display:grid;gap:3px;margin:12px 0 14px;padding:14px;border-radius:11px;background:#eef7f4;border:1px solid #d7e9e3}.fx-current span{font-size:9px;font-weight:850;letter-spacing:.08em;color:#6a837f}.fx-current strong{font-size:18px}.fx-current small{font-size:9.5px;color:var(--muted)}.fx-current.warning{background:var(--warning-soft);border-color:#edd9b5}.rate-history{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.rate-history h4{margin:0 0 7px;font-size:11px}.rate-history>div{display:grid;grid-template-columns:105px 80px 1fr;gap:8px;padding:6px 0;border-bottom:1px solid #eef3f3;font-size:10px}.currency-choice{display:flex;gap:8px;margin-top:12px}.currency-choice label{min-height:40px;display:flex;align-items:center;gap:7px;padding:0 12px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;font-size:11px;font-weight:800}.currency-choice input{accent-color:var(--brand)}.profile-sections{display:grid;gap:12px}.settings-section{overflow:hidden}.settings-section>header{padding:15px 17px;border-bottom:1px solid var(--line);background:#fcfdfd}.settings-section>header h3{margin:3px 0 0;font-size:14px}.settings-section>header p{margin:4px 0 0;color:var(--muted);font-size:10px}.settings-section>.formgrid,.settings-section>.payment-settings-grid{padding:17px}.payment-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.payment-config{padding:13px;border:1px solid var(--line);border-radius:11px;background:#fbfcfc}.payment-config .field{margin-top:8px}.switchline{display:flex;align-items:center;gap:8px;font-size:11px}.switchline input{width:17px;height:17px;accent-color:var(--brand)}.muted{color:var(--muted);font-size:10px!important}.sticky-save{position:sticky;bottom:10px;z-index:8;display:flex;justify-content:flex-end;margin-top:2px;padding:9px;border:1px solid rgba(220,229,230,.9);border-radius:12px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-sm);backdrop-filter:blur(12px)}

/* Empty states */
.empty-state{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px}.empty-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:10px;border-radius:12px;background:#eef6f4;color:var(--brand);font-size:18px}.empty-state strong{font-size:13px}.empty-state p{max-width:420px;margin:4px 0 14px;color:var(--muted);font-size:10.5px}

/* Public payment */
.paybody{min-height:100vh;margin:0;background:radial-gradient(circle at 50% -20%,#e3f0ed 0,transparent 38%),#f4f7f7}.paypage{width:min(570px,calc(100% - 28px));margin:0 auto;padding:34px 0}.paybrand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:16px;letter-spacing:.10em;font-size:12px}.paycard{padding:26px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-md)}.pay-company-logo{max-width:180px;max-height:64px;object-fit:contain;margin-bottom:14px}.paycard h1{margin:5px 0 2px;font-size:24px;letter-spacing:-.03em}.paycard>p{margin:0;color:var(--muted);font-size:11.5px}.payamount{margin:22px 0;padding:17px;border-radius:14px;background:linear-gradient(145deg,#0c3037,#10434a);color:#fff}.payamount span{font-size:9.5px;color:#a9c1c1}.payamount strong{display:block;margin-top:4px;font-size:29px;letter-spacing:-.03em;color:#efd28e}.payamount b{display:block;margin-top:6px;font-size:14px;color:#b8d8d2}.payamount small{display:block;margin-top:4px;color:#9bb8b7;font-size:9.5px}.paymeta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:20px}.paymeta>div{padding:10px 11px;border:1px solid #edf1f2;border-radius:9px;background:#fafcfc}.paymeta span{display:block;font-size:9px;color:var(--muted-2)}.paymeta strong{font-size:11px}.local-methods,.paymethods{display:grid;gap:8px}.paymethod,.paymethods button{display:grid;gap:2px;min-height:56px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:#fbfcfc;text-align:left;color:var(--text)}.paymethod>b,.paymethods b{font-size:11.5px;color:#23685f}.paymethod>strong{font-size:14px}.paymethod>span,.paymethod>small,.paymethods span{font-size:9.5px;color:var(--muted)}.secure{margin-top:14px!important;padding-top:12px;border-top:1px solid var(--line);font-size:9.5px!important;line-height:1.5}.paypage>footer{text-align:center;margin-top:16px;color:var(--muted-2);font-size:9.5px}

/* Authentication */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(430px,.92fr) minmax(500px,1.08fr);background:#fff}.auth-story{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:44px clamp(42px,6vw,88px);background:radial-gradient(circle at 78% 18%,rgba(56,132,126,.35),transparent 27%),linear-gradient(150deg,#081f26,#0d333a 58%,#0f3e42);color:#fff}.auth-story::after{content:"";position:absolute;width:480px;height:480px;right:-190px;bottom:-230px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 80px rgba(255,255,255,.02),0 0 0 160px rgba(255,255,255,.018)}.auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:12px}.auth-message{position:relative;z-index:1;max-width:620px;margin:54px 0}.auth-message h1{margin:12px 0 22px;font-size:clamp(42px,5vw,68px);line-height:.99;letter-spacing:-.055em}.auth-message p{max-width:560px;margin:0;color:#bed0cf;font-size:14px;line-height:1.7}.auth-feature-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:24px}.auth-feature-row span{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border:1px solid rgba(179,212,210,.22);border-radius:999px;background:rgba(255,255,255,.035);font-size:9.5px;color:#c5d8d7}.auth-foot{position:relative;z-index:1;color:#719599;font-size:9.5px}.auth-panel{display:grid;place-items:center;padding:44px;background:#fbfcfc}.auth-card{width:min(430px,100%)}.auth-card h2{margin:7px 0 5px;font-size:30px;line-height:1.12;letter-spacing:-.035em}.auth-card>p{margin:0 0 20px;color:var(--muted);font-size:12px}.auth-form p{display:grid;gap:5px;margin:0 0 13px}.auth-form input{min-height:46px}.auth-form ul{margin:4px 0 0;padding-left:18px;color:var(--muted);font-size:9.5px}.auth-form .helptext{display:block;color:var(--muted-2);font-size:9.5px;line-height:1.45}.auth-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:#9aabad;font-size:9.5px}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:var(--line)}.auth-note{display:block;margin-top:15px;text-align:center;color:var(--muted-2);font-size:9.5px;line-height:1.5}.auth-link{display:block;margin-top:18px;text-align:center;color:var(--brand);font-size:11px;font-weight:750}.auth-mobile-brand{display:none}

/* Offline toast */
.offline-toast{position:fixed;right:18px;bottom:18px;z-index:100;padding:11px 13px;border-radius:10px;background:#173d43;color:#fff;box-shadow:var(--shadow-md);font-size:11px;font-weight:700}.offline-toast.error{background:#963b48}

/* Responsive */
@media(max-width:1180px){
  :root{--sidebar:220px}.content-shell{padding:22px 22px 48px}.topbar{padding:0 22px}.profile-copy{display:none}.profile-chip{padding-right:5px}.catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.quick-card{display:none}
}
@media(max-width:900px){
  .app-shell{grid-template-columns:1fr}.app-sidebar{position:sticky;height:auto;min-height:64px;padding:8px 16px;display:flex;flex-direction:row;align-items:center;gap:14px}.brandcopy small{display:none}.workspace-card{display:none}.primary-nav{display:flex;flex:1;justify-content:center;gap:3px;margin:0}.nav-item{min-height:42px;padding:0 10px}.nav-item svg{width:16px;height:16px}.nav-item.is-active{box-shadow:inset 0 -2px 0 #dfb458}.sidebar-footer{display:none}.topbar{top:64px}.settingsgrid{grid-template-columns:1fr}.invoicegrid{grid-template-columns:1fr}.payment-settings-grid{grid-template-columns:1fr 1fr}.auth-shell{grid-template-columns:.85fr 1.15fr}.auth-story{padding:36px}.auth-message h1{font-size:46px}
}
@media(max-width:760px){
  body{padding-bottom:72px}.app-sidebar{display:none}.topbar{top:0;height:62px;padding:0 14px}.topbar-title>small{display:none}.topbar-title h1{font-size:18px}.topbar-create,.plan-pill,.profile-copy{display:none}.profile-chip{border:0;padding:0;background:transparent}.profile-avatar{width:34px;height:34px}.content-shell{padding:16px 14px 30px}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;height:70px;padding:5px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:grid;grid-template-columns:repeat(5,1fr);align-items:end;background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(14,42,47,.06);backdrop-filter:blur(14px)}.mobile-bottom-nav>a{height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#73878b;font-size:8.5px;font-weight:700}.mobile-bottom-nav svg{width:19px;height:19px}.mobile-bottom-nav>a.is-active{color:var(--brand)}.mobile-create{position:relative}.mobile-create-button{display:grid;place-items:center;width:42px;height:42px;margin-top:-18px;border-radius:14px;background:linear-gradient(180deg,#11756c,#0d655e);color:#fff;box-shadow:0 8px 20px rgba(13,107,99,.24);border:3px solid #fff}.mobile-create-button svg{width:20px!important;height:20px!important}.page-intro{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:15px}.page-intro h2{font-size:24px}.page-actions{width:100%}.page-actions .button{flex:1}.context-banner{align-items:flex-start}.context-banner>a{padding-top:5px}.kpi-grid{grid-template-columns:1fr 1fr;gap:8px}.kpi-card{padding:13px}.kpi-card>strong{font-size:18px}.catalogue-grid{grid-template-columns:1fr}.toolbar{align-items:stretch}.toolbar .button{padding:0 11px}.form-surface>form,.formcard>form{padding:16px}.form-heading,.formhead{padding:17px}.form-grid,.formgrid{grid-template-columns:1fr}.span-2,.field.span2{grid-column:auto}.form-actions,.formcard footer{position:sticky;bottom:77px;z-index:5;margin-left:-16px;margin-right:-16px;margin-bottom:-16px;padding:10px 16px;background:rgba(255,255,255,.95);box-shadow:0 -8px 24px rgba(14,42,47,.055);backdrop-filter:blur(10px)}.form-actions .button,.formcard footer .button,.formcard footer .primary,.formcard footer .secondary{flex:1}.linehead{align-items:flex-start;flex-direction:column}.lineform{grid-template-columns:1fr 1fr}.lineform .desc{grid-column:1/-1}.lineform .delete{grid-column:1/-1}.invoicehero{align-items:flex-start;flex-direction:column}.invoicehero .actions{width:100%}.paper{padding:15px}.paperhead{grid-template-columns:1fr}.paperhead .right{text-align:left}.ivrow{min-width:540px}.lineview{overflow-x:auto}.totals>div{grid-template-columns:110px 140px}.payment-settings-grid{grid-template-columns:1fr}.sticky-save{bottom:78px}.auth-shell{display:block;min-height:100vh}.auth-story{display:none}.auth-panel{min-height:calc(100vh - 0px);padding:30px 20px}.auth-card{width:min(440px,100%)}.auth-mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:32px;letter-spacing:.1em}.paypage{padding:22px 0}.paycard{padding:20px;border-radius:16px}.paymeta{grid-template-columns:1fr}.network-status{font-size:0}.network-status::first-letter{font-size:10px}
}
@media(max-width:480px){
  .kpi-grid{grid-template-columns:1fr}.kpi-card{display:grid;grid-template-columns:1fr auto;column-gap:12px}.kpi-top{grid-column:1/-1}.kpi-card>strong{grid-column:1}.kpi-card>b{grid-column:2;align-self:end;text-align:right}.kpi-card>footer{grid-column:1/-1}.toolbar{display:grid;grid-template-columns:1fr auto}.search-field{max-width:none}.data-row{padding-left:12px;padding-right:12px}.page-actions{display:grid;grid-template-columns:1fr 1fr}.page-actions:has(.button:only-child){grid-template-columns:1fr}.auth-panel{padding:24px 18px}.auth-card h2{font-size:27px}.currency-choice{display:grid;grid-template-columns:1fr 1fr}.currency-choice label{justify-content:center}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* Invoice editor premium pass */
.invoice-editor{overflow:hidden}.invoice-editor>form{padding:0}.editor-section{padding:20px 22px;border-bottom:1px solid var(--line)}.editor-section>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.editor-section>header>div{display:flex;align-items:center;gap:10px}.section-number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf6f3;color:var(--brand);font-size:10px;font-weight:850;flex:0 0 auto}.editor-section h3{margin:0;font-size:14px}.editor-section header p{margin:1px 0 0;color:var(--muted);font-size:10px}.editor-meta-grid{grid-template-columns:1.5fr .75fr .75fr}.compact-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.currency-section{background:linear-gradient(180deg,#fff,#fcfdfd)}.line-editor-section{padding-bottom:12px}.line-editor-section .lineblock{margin:0;padding:0;border:0}.line-error{grid-column:1/-1}.editor-footer{position:sticky;bottom:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 22px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -8px 30px rgba(14,42,47,.055);backdrop-filter:blur(12px)}.editor-save-note strong{display:block;font-size:10.5px}.editor-save-note span{display:block;color:var(--muted);font-size:9.5px}.form-error-banner{margin:16px 22px 0;padding:10px 12px;border:1px solid #efcdd2;border-radius:9px;background:#fff4f5;color:#9f3a47;font-size:10.5px}.invoice-title-row{display:flex;align-items:center;gap:8px;margin-bottom:5px}.invoice-rate{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:999px;background:#eef6f4;color:#467069;font-size:9.5px;font-weight:700}.invoice-paper{min-height:560px}.invoice-notes{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.invoice-notes small{font-size:9px;font-weight:850;letter-spacing:.06em;color:var(--muted-2)}.invoice-notes p{margin:4px 0 0;color:var(--muted);font-size:10.5px;line-height:1.55}.metricline.emphasis{margin-top:3px;padding-top:10px;font-size:12px;color:var(--brand)}.action-sidecard{border-color:#d8e7e3;background:linear-gradient(180deg,#fff,#fbfdfc)}
@media(max-width:980px){.editor-meta-grid{grid-template-columns:1fr 1fr}.editor-meta-grid .span-2{grid-column:1/-1}.compact-fields{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.editor-section{padding:16px}.editor-section>header{align-items:flex-start}.editor-meta-grid,.compact-fields{grid-template-columns:1fr}.editor-meta-grid .span-2{grid-column:auto}.editor-footer{bottom:70px;padding:10px 14px}.editor-save-note{display:none}.editor-footer .page-actions{margin-left:auto}.invoice-title-row{align-items:flex-start;flex-wrap:wrap}.invoice-notes{grid-template-columns:1fr}.invoice-detail-intro .page-actions{display:grid;grid-template-columns:1fr 1fr}.invoice-detail-intro .page-actions form{display:contents}.invoice-detail-intro .page-actions .button{width:100%}}


/* Public payment refinement */
.paybrand{justify-content:flex-start;padding:0 4px}.paybrand>div{display:grid}.paybrand>div strong{font-size:12px;letter-spacing:.11em}.paybrand>div small{font-size:9px;color:var(--muted-2);letter-spacing:0}.merchant-header{display:flex;align-items:center;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--line)}.merchant-header .pay-company-logo{margin:0;max-width:150px;max-height:58px}.merchant-avatar{display:grid;place-items:center;width:50px;height:50px;border-radius:13px;background:#edf6f3;color:var(--brand);font-size:18px;font-weight:850;flex:0 0 auto}.merchant-header h1{margin:3px 0 0;font-size:20px}.merchant-header p{margin:1px 0 0;color:var(--muted);font-size:10px}.payment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 10px}.payment-heading h3{margin:0;font-size:13px}.payment-heading p{margin:2px 0 0;color:var(--muted);font-size:9.5px}.secure-badge{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:0 8px;border-radius:999px;background:#edf7f3;color:var(--success);font-size:9px;font-weight:800;white-space:nowrap}.secure-badge svg{width:12px;height:12px}.premium-method{grid-template-columns:40px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;min-height:68px!important;padding:10px 12px!important}.method-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#edf4f3;color:#36565b;font-size:12px;font-weight:900;letter-spacing:-.02em}.method-mark.mpesa{background:#e9f6ed;color:#177443}.method-mark.airtel{background:#fff0f1;color:#aa3441}.method-mark.orange{background:#fff3e9;color:#ad6128}.method-mark.bank{background:#edf3f8;color:#365f88}.method-mark.card{background:#f0effa;color:#5c5691;font-size:9px;letter-spacing:.08em}.method-copy{display:grid;min-width:0}.method-copy>b{font-size:10.5px;color:#3e585d}.method-copy>strong{margin-top:1px;font-size:13px;color:#19383d}.method-copy>span,.method-copy>small{overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:9.5px}.premium-method>small{color:var(--muted-2);font-size:9px;text-align:right}.card-coming{opacity:.68}.payment-note{margin-top:13px;padding:12px;border-radius:10px;background:#faf7ef;border:1px solid #eee1c5}.payment-note strong{font-size:9.5px;color:#765a24}.payment-note p{margin:3px 0 0;color:#74674e;font-size:10px;line-height:1.5}.pay-trust{display:flex;gap:9px;margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}.pay-trust svg{width:18px;height:18px;color:var(--success);flex:0 0 auto}.pay-trust p{margin:0;color:var(--muted);font-size:9.5px;line-height:1.5}.page-actions form{margin:0;display:inline-flex}.actions form{margin:0;display:inline-flex}@media(max-width:520px){.paypage{width:min(100% - 20px,570px)}.paycard{padding:18px}.premium-method{grid-template-columns:36px minmax(0,1fr) auto!important}.method-mark{width:36px;height:36px}.payment-heading{align-items:flex-start}.secure-badge{margin-top:1px}}

/* ==========================================================
   ManuPay Premium UI — design-system pass 4
   Focus: readability, alignment, hierarchy, density, mobile ergonomics
   ========================================================== */
:root{
  --bg:#f6f8f9;
  --surface:#ffffff;
  --surface-soft:#fafcfc;
  --text:#142a30;
  --text-2:#314a50;
  --muted:#657a80;
  --muted-2:#87989c;
  --line:#e4eaec;
  --line-strong:#d4dfe2;
  --brand:#0b6f66;
  --brand-strong:#075b54;
  --brand-soft:#eaf6f3;
  --nav:#0a2229;
  --nav-2:#10343c;
  --shadow-xs:0 1px 2px rgba(11,34,41,.035),0 1px 1px rgba(11,34,41,.02);
  --shadow-sm:0 10px 30px rgba(11,34,41,.065);
  --shadow-md:0 22px 60px rgba(11,34,41,.11);
  --radius-sm:11px;
  --radius:15px;
  --radius-lg:20px;
  --sidebar:260px;
  --topbar:76px;
}
html{font-size:15px;line-height:1.5;text-rendering:optimizeLegibility}
body{letter-spacing:-.004em}
.content-shell{width:min(1420px,100%);padding:30px 34px 64px}
.app-sidebar{padding:20px 16px 16px}

.brandmark{width:42px;height:42px;border-radius:13px;font-size:17px}
.brandcopy strong,.auth-brand strong{font-size:14px;letter-spacing:.13em}
.brandcopy small,.auth-brand small{font-size:10.5px}
.workspace-card{margin:22px 4px 18px;padding:12px;border-radius:14px}
.workspace-copy small{font-size:9.5px}.workspace-copy strong{font-size:13px}.workspace-copy span{font-size:11px}
.primary-nav{gap:5px}.nav-item{min-height:46px;padding:0 13px;border-radius:11px;font-size:13px;font-weight:680}.nav-item svg{width:19px;height:19px}
.nav-item.is-active{background:#153f47;box-shadow:inset 3px 0 0 #e1b75a,0 5px 16px rgba(0,0,0,.07)}
.topbar{height:var(--topbar);padding:0 34px;background:rgba(255,255,255,.97)}
.topbar-title>small{font-size:10px;letter-spacing:.115em}.topbar-title h1{font-size:21px;font-weight:730}
.topbar-actions{gap:11px}.profile-chip{padding:6px 9px 6px 6px;border-radius:13px}.profile-avatar{width:34px;height:34px;border-radius:10px}.profile-copy strong{font-size:12px}.profile-copy small{font-size:10px}.plan-pill{height:32px;padding:0 11px;font-size:11px}

/* Spacious headings and consistent hierarchy */
.eyebrow,.kicker{font-size:10.5px;letter-spacing:.105em}
.page-intro{margin:4px 0 24px;gap:28px}
.page-intro h2{font-size:31px;line-height:1.12;font-weight:760;letter-spacing:-.04em}
.page-intro p{font-size:13.5px;line-height:1.55;max-width:760px}
.surface,.card,.form-surface,.formcard,.paper,.sidecard,.settingscard,.settings-section{border-color:var(--line);box-shadow:var(--shadow-xs)}

/* Buttons: 44px minimum target, no visual jumps */
.button,.primary,.secondary{min-height:44px;padding:0 16px;border-radius:11px;font-size:13px;font-weight:760;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,color .14s ease}
.button:hover,.primary:hover,.secondary:hover{transform:none}
.button-primary,.primary{background:#0b6f66;border-color:#0b6f66;box-shadow:0 5px 14px rgba(11,111,102,.15)}
.button-primary:hover,.primary:hover{background:#075f58;border-color:#075f58;box-shadow:0 7px 20px rgba(11,111,102,.18)}
.button-secondary,.secondary{background:#fff;border-color:#d6e0e2;color:#2f494f}
.button-secondary:hover,.secondary:hover{background:#f9fbfb;border-color:#bccbce}
.button-compact{min-height:38px;padding:0 13px;font-size:12px}.button-large{min-height:50px;font-size:13.5px}
.text-link{font-size:12px}

/* Dashboard hierarchy */
.context-banner{min-height:60px;margin-bottom:16px;padding:12px 15px;border-radius:13px}.context-icon{width:36px;height:36px;border-radius:10px}.context-banner strong{font-size:12.5px}.context-banner span:not(.context-icon){font-size:11px}.context-banner>a{font-size:11.5px}
.kpi-grid{gap:14px;margin-bottom:16px}.kpi-card{padding:18px;border-radius:15px}.kpi-top{font-size:11px}.kpi-icon{width:30px;height:30px;border-radius:9px}.kpi-card>strong{margin-top:12px;font-size:25px}.kpi-card>strong small{font-size:11px}.kpi-card>b{font-size:14px}.kpi-card>footer{margin-top:13px;padding-top:11px;font-size:10.5px}
.dashboard-grid{gap:14px}.surface-header,.cardhead{min-height:72px;padding:16px 19px}.surface-header h3,.cardhead h3{font-size:16px}.quick-list{padding:8px}.quick-list>a{min-height:68px;padding:10px 11px}.quick-icon{width:37px;height:37px;border-radius:10px}.quick-list strong{font-size:12.5px}.quick-list small{font-size:10.5px}.quick-stats>div{padding:14px 16px}.quick-stats strong{font-size:22px}.quick-stats span{font-size:10px}

/* Premium tables */
.data-row{min-height:58px;padding:10px 18px;font-size:12.5px;gap:16px}.data-head{min-height:42px;font-size:10px}.data-row strong{font-size:12.5px}.data-row small{font-size:10px}.data-row:not(.data-head):hover{background:#f8fbfa}.entity-avatar{width:35px;height:35px;border-radius:10px}.status{min-height:26px;padding:0 9px;font-size:9.5px;letter-spacing:.035em}
.toolbar{margin-bottom:14px}.search-field input{height:44px;border-radius:11px;font-size:13px}

/* Catalogue: less card-like clutter, more polished information density */
.catalogue-grid{gap:14px}.catalogue-card{min-height:205px;padding:18px;border-radius:15px}.catalogue-icon{width:40px;height:40px;border-radius:11px}.type-pill{min-height:26px;padding:0 9px;font-size:10px}.catalogue-copy{margin-top:16px}.catalogue-copy h3{font-size:15px}.catalogue-copy p{font-size:11.5px;line-height:1.6}.catalogue-card footer span{font-size:10.5px}.catalogue-card footer strong{font-size:15px}

/* Forms: clearer labels, larger inputs, cleaner sectioning */
.form-layout{width:min(1160px,100%)}
.form-heading,.formhead{padding:22px 24px}.form-heading h2,.formhead h2{font-size:24px}.form-heading p,.formhead p{font-size:12.5px}
.form-surface>form,.formcard>form{padding:22px 24px}.form-grid,.formgrid{gap:16px 18px}.field{gap:6px}.field label,.auth-form label{font-size:12px;font-weight:720;color:#354f55}.field input,.field select,.field textarea,.auth-form input,.settingscard input,.settingscard select,.settingscard textarea{min-height:46px;padding:10px 12px;border-radius:10px;font-size:13px}.field textarea,.settingscard textarea{min-height:96px}.field small.help,.field>small{font-size:10.5px}.error,.form-error{font-size:10.5px}.form-actions,.formcard footer{margin-top:22px;padding-top:18px}
.lineform{gap:10px;padding:13px;border-radius:12px}.lineform .delete{min-height:46px;font-size:10.5px}.linehead h3{font-size:15px}.linehead small{font-size:11px}.fx-preview{padding:13px 15px;border-radius:11px}.fx-preview small{font-size:10px}.fx-preview strong{font-size:12px}.offline-save-note{padding:11px 13px}.offline-save-note span{font-size:11px}.offline-save-note small{font-size:10px}
.editor-section{padding:24px 26px}.editor-section>header{margin-bottom:17px}.section-number{width:32px;height:32px;border-radius:10px;font-size:10.5px}.editor-section h3{font-size:15.5px}.editor-section header p{font-size:10.5px}.editor-footer{padding:14px 26px}.editor-save-note strong{font-size:11px}.editor-save-note span{font-size:10px}

/* Invoice detail */
.invoicegrid{gap:15px}.paper{padding:28px}.paperhead{gap:24px;padding-bottom:21px}.paperhead small{font-size:9.5px}.paperhead strong{font-size:13px}.paperhead span{font-size:11px}.ivrow{padding:12px 11px;font-size:12px}.ivhead{min-height:38px;font-size:9.5px}.ivrow small{font-size:10px}.totals{margin-top:20px}.totals>div{grid-template-columns:150px 170px;padding:6px 8px;font-size:11.5px}.totals .grand,.totals .balance{font-size:14px}.side{gap:12px}.sidecard{padding:18px}.sidecard h3{font-size:15px}.sidecard p{font-size:11px}.metricline{padding:8px 0;font-size:11px}.payurl{font-size:10px}.payment-history strong{font-size:11.5px}.payment-history span,.payment-history small{font-size:10px}

/* Settings */
.settingsgrid{gap:14px;margin-bottom:14px}.settingscard{padding:20px}.settingscard h3{font-size:16px}.settingscard p{font-size:11.5px}.fx-current{padding:16px}.fx-current strong{font-size:20px}.fx-current small{font-size:10px}.rate-history h4{font-size:11.5px}.rate-history>div{font-size:10.5px}.currency-choice label{min-height:44px;font-size:12px}.profile-sections{gap:14px}.settings-section>header{padding:17px 19px}.settings-section>header h3{font-size:15px}.settings-section>header p{font-size:10.5px}.settings-section>.formgrid,.settings-section>.payment-settings-grid{padding:19px}.payment-settings-grid{gap:12px}.payment-config{padding:15px;border-radius:12px}.switchline{font-size:12px}.muted{font-size:10.5px!important}.sticky-save{bottom:14px;padding:11px;border-radius:13px}

/* Authentication: calmer and more enterprise */
.auth-story{padding:52px clamp(48px,6vw,92px)}.auth-message h1{font-size:clamp(44px,5vw,70px)}.auth-message p{font-size:15px}.auth-feature-row span{min-height:32px;padding:0 11px;font-size:10px}.auth-foot{font-size:10px}.auth-panel{padding:52px}.auth-card{width:min(440px,100%)}.auth-card h2{font-size:32px}.auth-card>p{font-size:12.5px}.auth-form p{margin-bottom:15px}.auth-form input{min-height:48px}.auth-note{font-size:10px}.auth-link{font-size:11.5px}

/* Hosted payment page */
.paypage{width:min(600px,calc(100% - 32px));padding:40px 0}.paycard{padding:30px;border-radius:22px}.merchant-header{gap:16px;padding-bottom:19px}.merchant-header h1{font-size:22px}.merchant-header p{font-size:10.5px}.payamount{margin:24px 0;padding:19px;border-radius:15px}.payamount span{font-size:10px}.payamount strong{font-size:31px}.payamount b{font-size:15px}.payamount small{font-size:10px}.paymeta>div{padding:11px 12px}.paymeta span{font-size:9.5px}.paymeta strong{font-size:11.5px}.payment-heading h3{font-size:14px}.payment-heading p{font-size:10px}.premium-method{min-height:72px!important;padding:12px 14px!important;border-radius:12px!important}.method-copy>b{font-size:11px}.method-copy>strong{font-size:14px}.method-copy>span,.method-copy>small{font-size:10px}.premium-method>small{font-size:9.5px}.payment-note{padding:13px}.payment-note strong{font-size:10px}.payment-note p{font-size:10.5px}.pay-trust p{font-size:10px}

/* Responsive pass */
@media(max-width:1180px){.content-shell{padding:26px 26px 54px}.topbar{padding:0 26px}}
@media(max-width:900px){
  .app-sidebar{padding:9px 18px}.nav-item{font-size:12.5px}.topbar{top:66px}.content-shell{padding:24px 22px 50px}
}
@media(max-width:760px){
  body{padding-bottom:76px}.topbar{height:64px;padding:0 16px}.topbar-title h1{font-size:19px}.content-shell{padding:18px 14px 34px}.mobile-bottom-nav{height:74px;padding-top:6px}.mobile-bottom-nav>a{height:58px;font-size:9px}.mobile-bottom-nav svg{width:20px;height:20px}.mobile-create-button{width:44px;height:44px;border-radius:15px}
  .page-intro{gap:14px;margin-bottom:18px}.page-intro h2{font-size:27px}.page-intro p{font-size:12.5px}.page-actions{gap:8px}.button,.primary,.secondary{min-height:46px;font-size:13px}
  .context-banner{padding:12px}.kpi-grid{gap:10px}.kpi-card{padding:15px}.kpi-card>strong{font-size:20px}.kpi-card>b{font-size:13px}
  .surface-header,.cardhead{min-height:66px;padding:14px 15px}.surface-header h3,.cardhead h3{font-size:15px}
  .form-surface>form,.formcard>form{padding:17px}.form-heading,.formhead{padding:18px}.field input,.field select,.field textarea,.auth-form input{min-height:48px;font-size:16px} /* prevents iOS zoom */
  .editor-section{padding:18px 16px}.editor-footer{padding:11px 14px}.paper{padding:18px}.sidecard{padding:16px}

  /* Mobile tables become readable business cards instead of horizontal spreadsheets */
  .data-table{overflow:visible}.data-head{display:none}.data-row:not(.data-head){min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;min-height:0;margin:0 0 10px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-xs)}
  .data-row:not(.data-head)>:first-child{grid-column:1/-1;padding-bottom:9px;margin-bottom:2px;border-bottom:1px solid #eef2f3}
  .data-row:not(.data-head)>span[data-label]{display:grid;gap:2px;align-content:start;min-width:0}
  .data-row:not(.data-head)>span[data-label]::before{content:attr(data-label);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-2)}
  .data-row:not(.data-head)>span[data-label="Statut"]{justify-items:start}
  .customer-table .data-row,.invoice-table .data-row{min-width:0;grid-template-columns:1fr 1fr}
  .surface:has(.data-table){background:transparent;border:0;box-shadow:none}
  .surface:has(.data-table) .data-table{padding:0}

  .catalogue-card{min-height:176px}.settingscard{padding:17px}.settings-section>header{padding:15px 16px}.settings-section>.formgrid,.settings-section>.payment-settings-grid{padding:16px}.payment-config{padding:13px}
  .paypage{padding:24px 0}.paycard{padding:20px}.payamount strong{font-size:27px}.auth-panel{padding:32px 20px}
}
@media(max-width:480px){
  .page-intro h2{font-size:25px}.page-actions{grid-template-columns:1fr}.page-actions .button,.page-actions form,.page-actions form .button{width:100%}.kpi-grid{grid-template-columns:1fr}.kpi-card{display:block}.kpi-card>b{margin-top:6px;text-align:left}.catalogue-card{min-height:168px}.data-row:not(.data-head){grid-template-columns:1fr 1fr;padding:14px}.paycard{padding:18px}.merchant-header{align-items:flex-start}.premium-method{grid-template-columns:38px minmax(0,1fr)!important}.premium-method>small{grid-column:2;text-align:left}.method-mark{width:38px;height:38px}.auth-card h2{font-size:29px}
}

/* ManuPay brand identity — 2026-09-30 */
.secure-brand-label{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2)}
@media(max-width:720px){.auth-mobile-brand{margin-bottom:24px}}
/* ManuPay palette alignment */
:root{--brand:#008f8a;--brand-strong:#007770;--brand-soft:#e7f8f6;--brand-ink:#082d5c;--nav:#082d5c;--nav-2:#0b3f70;--nav-text:#eaf4ff;--nav-muted:#94abc4;--gold:#00b8b1;--gold-soft:#e8fbf8;--blue:#087fc0;--blue-soft:#eaf5fb}
.app-sidebar{background:linear-gradient(180deg,#082d5c,#061f41 100%)}
.nav-item.is-active{background:rgba(0,184,177,.14);box-shadow:inset 3px 0 0 #08d7ac}.nav-item.is-active svg{color:#4fe0c4}
.auth-story{background:radial-gradient(circle at 78% 18%,rgba(0,184,177,.30),transparent 27%),linear-gradient(150deg,#061f41,#082d5c 58%,#0b4772)}
.payamount{background:linear-gradient(145deg,#082d5c,#0b4772)}

\n\n/* ManuPay premium authentication gateway */\n.auth-premium-shell{grid-template-columns:minmax(520px,1.06fr) minmax(480px,.94fr);background:#f7faf9}\n.auth-story-premium{padding:48px clamp(44px,5vw,78px);background:radial-gradient(circle at 86% 12%,rgba(24,191,164,.18),transparent 26%),radial-gradient(circle at 12% 88%,rgba(20,93,139,.18),transparent 27%),linear-gradient(145deg,#061d2e 0%,#082b3e 50%,#0a3b3d 100%)}\n.auth-story-premium:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.5),transparent 78%)}\n.auth-story-premium:after{width:560px;height:560px;right:-245px;bottom:-265px;box-shadow:0 0 0 90px rgba(255,255,255,.018),0 0 0 180px rgba(255,255,255,.012)}\n.auth-story-top{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px}.auth-security-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 11px;border:1px solid rgba(178,222,213,.16);border-radius:999px;background:rgba(255,255,255,.04);color:#b9cecc;font-size:10px;font-weight:700;white-space:nowrap}.security-dot{width:7px;height:7px;border-radius:50%;background:#2bd2a7;box-shadow:0 0 0 4px rgba(43,210,167,.12)}\n.auth-message-premium{max-width:700px;margin:70px 0 46px}.auth-kicker{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#65d8c4}.auth-message-premium h1{max-width:720px;margin:16px 0 20px;font-size:clamp(46px,5vw,72px);line-height:.98;letter-spacing:-.058em;font-weight:780;color:#fff}.auth-message-premium p{max-width:600px;color:#b7cbca;font-size:15px;line-height:1.72}.auth-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:32px;border:1px solid rgba(183,214,211,.13);border-radius:15px;overflow:hidden;background:rgba(255,255,255,.07)}.auth-proof-grid>div{min-height:92px;padding:17px 18px;background:rgba(5,29,39,.58);backdrop-filter:blur(6px)}.auth-proof-grid strong{display:block;color:#fff;font-size:13px}.auth-proof-grid span{display:block;margin-top:5px;color:#8faeae;font-size:10.5px;line-height:1.4}.auth-story-footer{position:relative;z-index:2;display:flex;align-items:center;gap:8px;color:#708f92;font-size:10.5px}.auth-story-footer span:first-child{color:#b8cccc;font-weight:800}\n.auth-panel-premium{padding:48px clamp(34px,5vw,70px);background:linear-gradient(180deg,#fbfdfc,#f6f9f8)}.auth-card-premium{width:min(470px,100%);padding:34px 34px 30px;border:1px solid #e1e9e8;border-radius:22px;background:rgba(255,255,255,.97);box-shadow:0 28px 75px rgba(15,47,51,.10),0 2px 8px rgba(15,47,51,.035)}.auth-card-head{margin-bottom:24px}.auth-card-head h2{margin:8px 0 6px;font-size:34px;font-weight:760;letter-spacing:-.045em;color:#142f35}.auth-card-head p{margin:0;color:#73868a;font-size:12.5px}.auth-form-premium{display:grid;gap:16px}.auth-field{display:grid;gap:7px}.auth-field label{font-size:11.5px;font-weight:760;color:#304b50}.auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.auth-label-row a{color:#0b6f66;font-size:10.5px;font-weight:760}.auth-label-row a:hover{text-decoration:underline;text-underline-offset:3px}.auth-input-wrap{position:relative;display:flex;align-items:center}.auth-input-wrap input{width:100%;height:50px;padding:0 76px 0 43px;border:1px solid #d2dee0;border-radius:11px;background:#fff;color:#173238;font-size:13px;outline:none;box-shadow:0 1px 2px rgba(10,35,42,.025);transition:border-color .15s,box-shadow .15s,background .15s}.password-reset-native input{padding-right:14px}.auth-input-wrap input:hover{border-color:#bccdcf}.auth-input-wrap input:focus{border-color:#5aa89b;box-shadow:0 0 0 4px rgba(11,111,102,.09)}.auth-input-icon{position:absolute;left:14px;z-index:2;display:grid;place-items:center;width:18px;height:18px;color:#789096;font-size:12px;font-weight:800}.lock-icon{font-size:19px}.password-toggle{position:absolute;right:7px;z-index:2;min-height:34px;padding:0 9px;border:0;border-radius:8px;background:#f4f7f7;color:#587075;font-size:9.5px;font-weight:760;cursor:pointer}.password-toggle:hover{background:#eaf1f0;color:#2f5555}.auth-submit{margin-top:2px;min-height:52px;justify-content:space-between;padding-left:18px;padding-right:18px;font-size:13.5px}.auth-create{min-height:50px}.auth-divider{margin:20px 0 16px}.auth-divider span{padding:0 2px;color:#8b9b9e;font-size:10px}.auth-trust-row{display:flex;align-items:flex-start;gap:9px;margin-top:20px;padding-top:17px;border-top:1px solid #edf1f1;color:#809296;font-size:9.5px;line-height:1.55}.shield-mark{display:grid;place-items:center;flex:0 0 auto;width:19px;height:19px;border-radius:6px;background:#e9f7f2;color:#178066;font-size:10px;font-weight:900}.auth-alert{margin-bottom:17px;padding:11px 12px;border:1px solid #edcfd3;border-radius:10px;background:#fff5f6;color:#963b48;font-size:10.5px;line-height:1.45}.auth-back-link{display:block;margin-top:18px;text-align:center;color:#0b6f66;font-size:11px;font-weight:760}.auth-success-panel{display:grid;justify-items:center;text-align:center;margin:4px 0 20px;padding:24px 18px;border:1px solid #dceae6;border-radius:14px;background:#f5fbf8}.auth-success-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:10px;border-radius:13px;background:#ddf4eb;color:#148060;font-size:18px;font-weight:900}.auth-success-panel strong{font-size:13px}.auth-success-panel p{margin:5px 0 0;color:#718689;font-size:10.5px;line-height:1.5}.auth-mobile-brand-premium{margin-bottom:28px}\n@media(max-width:1040px){.auth-premium-shell{grid-template-columns:.92fr 1.08fr}.auth-story-premium{padding:42px 36px}.auth-security-chip{display:none}.auth-message-premium h1{font-size:48px}.auth-proof-grid{grid-template-columns:1fr}.auth-proof-grid>div{min-height:auto;padding:12px 14px}.auth-proof-grid>div:nth-child(n+3){display:none}.auth-panel-premium{padding:38px 28px}.auth-card-premium{padding:30px}}\n@media(max-width:760px){.auth-premium-shell{display:block;background:#f6f9f8}.auth-story-premium{display:none}.auth-panel-premium{min-height:100vh;padding:28px 18px;place-items:center;background:radial-gradient(circle at 50% -10%,#e8f5f1,transparent 34%),#f7faf9}.auth-card-premium{width:min(460px,100%);padding:28px 22px;border-radius:19px;box-shadow:0 18px 50px rgba(15,47,51,.08)}.auth-mobile-brand-premium{display:flex;justify-content:flex-start}.auth-card-head h2{font-size:30px}.auth-input-wrap input{font-size:16px;height:52px}.auth-submit{min-height:54px}}\n@media(max-width:420px){.auth-panel-premium{padding:18px 12px}.auth-card-premium{padding:24px 17px}.auth-label-row{align-items:flex-end}.auth-label-row a{font-size:10px}.auth-card-head h2{font-size:28px}}\n
/* ManuPay authentication polish — pass 2 */
@media (min-width:761px){
  .auth-premium-shell{grid-template-columns:minmax(560px,1fr) minmax(560px,1fr)}
  .auth-story-premium{padding:56px clamp(54px,5vw,88px)}
  .auth-story-top{align-items:flex-start}
  .auth-security-chip{margin-top:6px;min-height:30px;padding:0 12px;background:rgba(255,255,255,.055);border-color:rgba(178,222,213,.20);color:#c4d8d6}
  .auth-message-premium{max-width:660px;margin:64px 0 42px}
  .auth-message-premium h1{max-width:620px;font-size:clamp(48px,4.7vw,68px);line-height:1.01;letter-spacing:-.052em}
  .auth-message-premium p{max-width:560px;font-size:14.5px;line-height:1.68}
  .auth-proof-grid{max-width:600px;margin-top:30px;border-color:rgba(183,214,211,.17);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
  .auth-proof-grid>div{min-height:88px;padding:18px 18px;background:rgba(4,28,41,.48)}
  .auth-story-footer{font-size:10px;letter-spacing:.01em}
  .auth-panel-premium{position:relative;overflow:hidden;padding:52px clamp(42px,5vw,74px);background:linear-gradient(180deg,#fcfdfd 0%,#f5f9f8 100%)}
  .auth-panel-premium:before{content:"";position:absolute;width:440px;height:440px;right:-210px;top:-190px;border-radius:50%;background:radial-gradient(circle,rgba(17,132,119,.07),rgba(17,132,119,0) 68%);pointer-events:none}
  .auth-panel-premium:after{content:"";position:absolute;width:360px;height:360px;left:-210px;bottom:-200px;border-radius:50%;background:radial-gradient(circle,rgba(17,72,113,.045),rgba(17,72,113,0) 70%);pointer-events:none}
  .auth-card-premium{position:relative;z-index:1;width:min(472px,100%);padding:38px 38px 31px;border-color:#dce7e5;border-radius:24px;box-shadow:0 30px 80px rgba(14,48,52,.11),0 8px 24px rgba(14,48,52,.045)}
  .auth-card-head{margin-bottom:23px}
  .auth-card-head .eyebrow{font-size:10px;letter-spacing:.13em}
  .auth-card-head h2{font-size:36px;line-height:1.05}
  .auth-card-head p{font-size:12.5px}
  .auth-input-wrap input{height:52px;border-color:#cfdbdd;border-radius:12px;box-shadow:0 1px 2px rgba(9,39,47,.03)}
  .auth-input-wrap input:focus{border-color:#369b8b;box-shadow:0 0 0 4px rgba(20,145,127,.10),0 2px 6px rgba(9,39,47,.04)}
  .auth-input-icon{left:15px;color:#70898e}
  .password-toggle{right:8px;min-height:36px;padding:0 10px;border:1px solid #edf1f1;background:#f7f9f9}
  .auth-submit{min-height:54px;border-radius:11px;box-shadow:0 9px 20px rgba(13,107,99,.16)}
  .auth-submit:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(13,107,99,.20)}
  .auth-create{min-height:50px;border-radius:11px;background:#fff}
  .auth-divider{margin:20px 0 17px}
  .auth-trust-row{margin-top:20px;padding-top:18px}
  .auth-alert{margin-bottom:18px;padding:12px 13px;border-radius:11px;font-size:10.5px}
}
@media (min-width:1200px){
  .auth-panel-premium{padding-left:7vw;padding-right:7vw}
  .auth-card-premium{transform:translateY(-2px)}
}


/* Authentication layout refinement */
.auth-story-top{align-items:flex-start}
.auth-security-chip{margin-top:8px}
@media(min-width:1041px){.auth-story-premium{padding-top:58px}}


/* ManuPay public marketing website */
.marketing-page{min-height:100vh;background:#fff;color:#153138}.marketing-header{position:sticky;top:0;z-index:60;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:32px;min-height:78px;padding:0 clamp(24px,5vw,74px);border-bottom:1px solid rgba(210,225,224,.85);background:rgba(255,255,255,.93);backdrop-filter:blur(16px)}.marketing-brand{display:flex;align-items:center}.marketing-nav{display:flex;justify-content:center;gap:30px}.marketing-nav a,.marketing-login{color:#49656a;font-size:12px;font-weight:720}.marketing-nav a:hover,.marketing-login:hover{color:#0b746a}.marketing-actions{display:flex;align-items:center;gap:14px}.marketing-signup{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 17px;border-radius:10px;background:#0c786d;color:#fff;font-size:11.5px;font-weight:800;box-shadow:0 7px 18px rgba(12,120,109,.16)}.marketing-hero{display:grid;grid-template-columns:minmax(0,.95fr) minmax(480px,1.05fr);align-items:center;gap:64px;min-height:680px;padding:84px clamp(28px,7vw,108px) 92px;background:radial-gradient(circle at 84% 18%,rgba(20,177,151,.12),transparent 27%),linear-gradient(180deg,#fbfdfc,#f5faf8)}.marketing-hero-copy{max-width:700px}.marketing-eyebrow,.section-heading>span,.dark-copy>span,.security-copy>span,.marketing-final>span,.workflow-card>span{font-size:10.5px;font-weight:850;letter-spacing:.16em;color:#0d8b7c}.marketing-hero h1{margin:17px 0 24px;max-width:720px;font-size:clamp(48px,5.6vw,76px);line-height:.99;letter-spacing:-.058em;color:#102f36}.marketing-hero-copy>p{max-width:630px;margin:0;color:#607a7f;font-size:16px;line-height:1.75}.marketing-hero-actions{display:flex;align-items:center;gap:12px;margin-top:30px}.marketing-cta-primary,.marketing-cta-secondary{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:50px;padding:0 20px;border-radius:11px;font-size:12px;font-weight:820}.marketing-cta-primary{background:#0c786d;color:#fff;box-shadow:0 10px 24px rgba(12,120,109,.18)}.marketing-cta-secondary{border:1px solid #ccdadb;background:#fff;color:#25474c}.marketing-trust{display:flex;flex-wrap:wrap;gap:16px 24px;margin-top:24px;color:#789095;font-size:10.5px}.marketing-hero-visual{position:relative}.mock-window{max-width:650px;margin-left:auto;overflow:hidden;border:1px solid #d9e4e3;border-radius:22px;background:#fff;box-shadow:0 35px 90px rgba(25,68,71,.16)}.mock-top{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 18px;border-bottom:1px solid #edf2f1;background:#fbfcfc}.mock-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#cbd7d7}.mock-top small{color:#84979a;font-size:9px}.mock-content{padding:22px}.mock-kpis{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mock-kpis>div{padding:18px;border:1px solid #e5eceb;border-radius:13px;background:#fff}.mock-kpis small,.mock-kpis span{display:block;color:#8a9b9e;font-size:9px}.mock-kpis strong{display:block;margin:8px 0 4px;font-size:21px;color:#18383d}.mock-chart{margin:14px 0;padding:18px;border:1px solid #e5eceb;border-radius:13px}.mock-chart-head{display:flex;justify-content:space-between}.mock-chart-head strong{font-size:11px}.mock-chart-head small{color:#8ea0a2;font-size:9px}.bars{height:140px;display:flex;align-items:flex-end;gap:8px;padding-top:18px}.bars i{flex:1;min-width:8px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#20ad97,#0c756c)}.mock-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:15px;min-height:48px;padding:0 10px;border-top:1px solid #edf2f1;font-size:10px}.mock-row strong{font-size:10px}.mock-row em{padding:5px 7px;border-radius:999px;background:#eef8f4;color:#16806a;font-size:8.5px;font-style:normal}.marketing-strip{padding:0 clamp(28px,7vw,108px);background:#fff}.marketing-strip>div{display:flex;justify-content:space-between;gap:30px;padding:24px 0;border-bottom:1px solid #e8eeee}.marketing-strip strong{font-size:13px}.marketing-strip span{max-width:670px;color:#768d91;font-size:11.5px}.marketing-section{padding:96px clamp(28px,7vw,108px)}.section-heading{max-width:700px}.section-heading h2,.security-copy h2{margin:13px 0 14px;font-size:clamp(34px,4vw,52px);line-height:1.04;letter-spacing:-.045em;color:#13343a}.section-heading p,.security-copy p{margin:0;color:#6f8589;font-size:14px;line-height:1.7}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:44px}.product-grid article{min-height:270px;padding:24px;border:1px solid #dee8e7;border-radius:16px;background:#fff;transition:transform .16s,box-shadow .16s}.product-grid article:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(30,67,69,.08)}.product-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eaf7f3;color:#0c786d;font-size:10px;font-weight:900}.product-grid h3{margin:24px 0 10px;font-size:18px}.product-grid p{margin:0;color:#73888c;font-size:11.5px;line-height:1.7}.product-grid a{display:inline-block;margin-top:24px;color:#0c786d;font-size:10.5px;font-weight:820}.marketing-dark{display:grid;grid-template-columns:1fr .9fr;gap:70px;padding:96px clamp(28px,7vw,108px);background:radial-gradient(circle at 80% 20%,rgba(29,195,165,.12),transparent 27%),linear-gradient(145deg,#061f33,#0a3343 62%,#0a4141);color:#fff}.dark-copy{max-width:680px}.dark-copy>span,.workflow-card>span{color:#5bd5bf}.dark-copy h2{margin:14px 0 18px;font-size:clamp(36px,4.6vw,58px);line-height:1.03;letter-spacing:-.05em}.dark-copy>p{max-width:620px;margin:0;color:#b4cbcb;font-size:14px;line-height:1.75}.dark-points{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:36px;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.08)}.dark-points>div{padding:17px;background:rgba(4,27,37,.55)}.dark-points strong,.dark-points small{display:block}.dark-points strong{font-size:12px}.dark-points small{margin-top:4px;color:#89a9aa;font-size:9px}.workflow-card{align-self:center;padding:28px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.055);backdrop-filter:blur(10px)}.workflow-card ol{list-style:none;margin:18px 0 0;padding:0}.workflow-card li{display:flex;gap:14px;padding:17px 0;border-top:1px solid rgba(255,255,255,.09)}.workflow-card li b{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#19a68e;color:#fff;font-size:10px;flex:0 0 auto}.workflow-card strong,.workflow-card small{display:block}.workflow-card strong{font-size:11.5px}.workflow-card small{margin-top:4px;color:#93aeaf;font-size:9.5px}.security-section{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:start}.security-grid{display:grid;gap:10px}.security-grid>div{padding:22px;border:1px solid #e0e9e8;border-radius:14px;background:#fbfdfc}.security-grid strong,.security-grid span{display:block}.security-grid strong{font-size:12px}.security-grid span{margin-top:6px;color:#789093;font-size:10.5px;line-height:1.55}.marketing-final{text-align:center;padding:96px 24px;background:#eff8f5}.marketing-final h2{max-width:800px;margin:14px auto 16px;font-size:clamp(36px,5vw,58px);line-height:1.02;letter-spacing:-.05em;color:#12343a}.marketing-final p{max-width:620px;margin:0 auto 26px;color:#71888c;font-size:13.5px;line-height:1.7}.marketing-final>div{display:flex;justify-content:center;gap:12px}.marketing-footer{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:end;padding:42px clamp(28px,7vw,108px);background:#071f2f;color:#fff}.marketing-footer img{filter:none}.marketing-footer p{margin:10px 0 0;color:#78989b;font-size:10px}.marketing-footer>div:nth-child(2){display:flex;gap:20px;align-items:center}.marketing-footer a{color:#a9c0c1;font-size:10px}.marketing-footer>small{grid-column:1/-1;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);color:#6f8d90;font-size:9px}.marketing-cta-secondary.light{background:transparent;border-color:#bacdca}
@media(max-width:1100px){.marketing-header{grid-template-columns:auto 1fr}.marketing-nav{display:none}.marketing-actions{justify-self:end}.marketing-hero{grid-template-columns:1fr 1fr;gap:34px}.marketing-hero h1{font-size:52px}.product-grid{grid-template-columns:1fr 1fr}.marketing-dark{gap:38px}}
@media(max-width:820px){.marketing-header{padding:0 20px;min-height:70px}.marketing-login{display:none}.marketing-signup{min-height:40px}.marketing-hero{grid-template-columns:1fr;min-height:auto;padding:64px 22px}.marketing-hero-copy{max-width:none}.marketing-hero h1{font-size:46px}.marketing-hero-visual{margin-top:10px}.mock-window{margin:0}.marketing-strip{padding:0 22px}.marketing-strip>div{flex-direction:column;gap:7px}.marketing-section{padding:72px 22px}.marketing-dark{grid-template-columns:1fr;padding:72px 22px}.security-section{grid-template-columns:1fr;gap:34px}.marketing-footer{grid-template-columns:1fr;padding:36px 22px}.marketing-footer>div:nth-child(2){flex-wrap:wrap}}
@media(max-width:520px){.marketing-header{gap:12px}.marketing-signup{padding:0 12px;font-size:10px}.marketing-hero{padding-top:48px}.marketing-hero h1{font-size:39px}.marketing-hero-copy>p{font-size:14px}.marketing-hero-actions{align-items:stretch;flex-direction:column}.marketing-cta-primary,.marketing-cta-secondary{width:100%}.marketing-trust{display:grid;gap:8px}.mock-kpis{grid-template-columns:1fr}.mock-kpis>div:nth-child(2){display:none}.bars{height:110px}.mock-row{grid-template-columns:1fr auto}.mock-row em{display:none}.product-grid{grid-template-columns:1fr}.dark-points{grid-template-columns:1fr}.marketing-final>div{flex-direction:column;align-items:center}.marketing-footer>div:nth-child(2){display:grid;grid-template-columns:1fr 1fr;gap:12px}}

/* Password reset help link */
.auth-help-link{margin:14px 0 0;text-align:center;color:#87979a;font-size:10px;line-height:1.5}.auth-help-link a{color:#5f777b;font-weight:700;text-decoration:none}.auth-help-link a:hover{text-decoration:underline;text-underline-offset:3px;color:#0b6f66}

/* Login backlink to public ManuPay site */
.auth-home-link{display:block;margin-top:14px;text-align:center;color:#7b8f93;font-size:10.5px;font-weight:700;text-decoration:none}.auth-home-link:hover{color:#0b6f66;text-decoration:underline;text-underline-offset:3px}

/* ManuPay SMS history */
.sms-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.sms-stat{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid #dfe8e8;border-radius:14px;background:#fff;color:#17343a;text-decoration:none;box-shadow:0 8px 20px rgba(14,44,50,.04)}.sms-stat small{font-size:10px;letter-spacing:.12em;color:#819397;font-weight:800}.sms-stat strong{font-size:26px;line-height:1}.sms-stat.is-active{border-color:#80cfc2;box-shadow:0 0 0 2px rgba(11,111,102,.08)}.sms-stat.delivered strong{color:#0b7a62}.sms-stat.failed strong{color:#b94b4b}.sms-filter{display:flex;gap:10px;padding:16px;border-bottom:1px solid #edf2f2}.sms-filter input{flex:1;min-width:0;border:1px solid #d7e2e3;border-radius:10px;padding:11px 13px;font:inherit}.sms-table .data-row{grid-template-columns:120px 160px minmax(220px,1fr) 120px minmax(150px,.7fr)}.sms-body{color:#51686c}.sms-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.sms-status.sent{background:#edf3f5;color:#516a70}.sms-status.delivered{background:#e7f7f1;color:#08735d}.sms-status.failed{background:#fdecec;color:#a93e3e}@media(max-width:900px){.sms-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sms-table .data-head{display:none}.sms-table .data-row{grid-template-columns:1fr;gap:8px}.sms-table .data-row>span,.sms-table .data-row>div{display:flex;justify-content:space-between;gap:16px}.sms-table [data-label]::before{content:attr(data-label);font-size:10px;font-weight:800;letter-spacing:.08em;color:#8b9a9d;text-transform:uppercase}.sms-filter{flex-direction:column}}@media(max-width:520px){.sms-stats{grid-template-columns:1fr 1fr}.sms-stat{padding:13px}.sms-stat strong{font-size:22px}}

/* Improve contrast in the dark Solutions section */
.marketing-dark .dark-copy h2{color:#f5fbfa!important;opacity:1}
.marketing-dark .dark-copy>p{color:#d4e4e3}
.marketing-dark .dark-copy>span,.marketing-dark .workflow-card>span{color:#69e3cc}
.marketing-dark .dark-points strong,.marketing-dark .workflow-card strong{color:#f2f8f7}
.marketing-dark .dark-points small,.marketing-dark .workflow-card small{color:#b9cecd}
.marketing-dark .workflow-card{color:#f4fbfa}

/* Premium signup page */
.signup-premium-shell{grid-template-columns:minmax(500px,1fr) minmax(560px,1fr)}
.signup-story-copy{max-width:660px;margin:62px 0 42px}.signup-story-copy h1{font-size:clamp(45px,4.7vw,68px);max-width:650px}.signup-proof-grid{margin-top:28px}
.signup-panel-premium{padding-top:34px;padding-bottom:34px;align-items:center}.signup-card-premium{width:min(600px,100%);padding:30px 32px 26px}.signup-card-head{margin-bottom:20px}.signup-card-head h2{font-size:34px}.signup-form-premium{gap:14px}.signup-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.signup-span-2{grid-column:1/-1}.signup-form-premium .auth-field{gap:6px}.signup-form-premium .auth-field>input{width:100%;height:48px;padding:0 13px;border:1px solid #d2dee0;border-radius:11px;background:#fff;color:#173238;font-size:13px;outline:none;box-shadow:0 1px 2px rgba(10,35,42,.025);transition:border-color .15s,box-shadow .15s,background .15s}.signup-form-premium .auth-field>input:hover{border-color:#bccdcf}.signup-form-premium .auth-field>input:focus{border-color:#5aa89b;box-shadow:0 0 0 4px rgba(11,111,102,.09)}.field-optional{margin-left:5px;color:#91a2a5;font-size:9px;font-weight:650}.signup-password-note{display:flex;align-items:flex-start;gap:9px;margin-top:2px;padding:10px 11px;border:1px solid #e1ece9;border-radius:10px;background:#f7fbf9}.signup-password-note>span{display:grid;place-items:center;flex:0 0 auto;width:17px;height:17px;border-radius:5px;background:#e3f5ee;color:#128064;font-size:9px;font-weight:900}.signup-password-note p{margin:0;color:#71878a;font-size:9.5px;line-height:1.5}.signup-submit{margin-top:0}.signup-home-link{margin-top:13px}.signup-card-premium .auth-trust-row{margin-top:15px;padding-top:14px}
@media(max-width:1120px){.signup-premium-shell{grid-template-columns:.88fr 1.12fr}.signup-card-premium{padding:28px}.signup-story-copy h1{font-size:48px}}
@media(max-width:760px){.signup-panel-premium{padding:22px 14px}.signup-card-premium{padding:25px 20px}.signup-form-grid{grid-template-columns:1fr}.signup-span-2{grid-column:auto}.signup-card-head h2{font-size:29px}.signup-form-premium .auth-field>input{height:50px;font-size:16px}}

/* Signup spacing refinement */
.signup-password-note{margin-bottom:10px}
.signup-submit{margin-top:4px}

/* Signup action spacing refinement */
.signup-card-premium .signup-submit{margin-top:14px}
.signup-card-premium .auth-divider{margin:22px 0}
.signup-card-premium .auth-create{margin:0}
.signup-card-premium .signup-home-link{margin-top:20px;margin-bottom:20px}
.signup-card-premium .auth-trust-row{margin-top:0;padding-top:18px}
.signup-card-premium .signup-submit,
.signup-card-premium .auth-create{min-height:52px}
@media(max-width:760px){
  .signup-card-premium .signup-submit{margin-top:16px}
  .signup-card-premium .auth-divider{margin:20px 0}
  .signup-card-premium .signup-home-link{margin-top:18px;margin-bottom:18px}
}

/* Keep primary and secondary signup actions visually balanced */
.signup-card-premium .auth-create{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px}

/* ManuPay logo system — unified optical sizing and background variants */
.marketing-brand,.app-brand,.auth-premium-brand,.auth-mobile-brand a{line-height:0}
.paybrand{line-height:1.2}
.marketing-brand img,.marketing-footer img,.app-sidebar .brand-logo,.auth-premium-brand img,.auth-mobile-logo,.pay-brand-logo{display:block;height:auto;max-height:none;object-fit:contain;object-position:left center}
.marketing-brand{width:168px;min-width:168px}
.marketing-brand img{width:100%}
.marketing-footer img{width:174px;max-width:100%}
.app-sidebar .app-brand{height:auto;min-height:58px;padding:6px 8px}
.app-sidebar .brand-logo{width:186px;height:auto;max-height:50px}
.auth-premium-brand{width:228px;min-height:0}
.auth-premium-brand img{width:100%;height:auto;max-height:none}
.auth-mobile-brand-premium .auth-mobile-logo,.auth-mobile-logo{width:208px;max-width:72vw;height:auto}
.paybrand{align-items:center}
.pay-brand-logo{width:176px;max-width:58vw;height:auto}
@media(max-width:1180px) and (min-width:761px){.app-sidebar .brand-logo{width:170px}.marketing-brand{width:158px;min-width:158px}.auth-premium-brand{width:214px}}
@media(max-width:760px){.marketing-brand{width:148px;min-width:148px}.auth-mobile-brand-premium .auth-mobile-logo,.auth-mobile-logo{width:190px}.pay-brand-logo{width:160px}.marketing-footer img{width:158px}}
@media(max-width:420px){.marketing-brand{width:138px;min-width:138px}.auth-mobile-brand-premium .auth-mobile-logo,.auth-mobile-logo{width:178px}}

/* Public payment header alignment */
.paybrand{display:flex;align-items:center;gap:10px;line-height:1.2}
.paybrand-logo-wrap{display:flex;align-items:center;line-height:0;flex:0 0 auto}
.paybrand-logo-wrap .pay-brand-logo{display:block}
.secure-brand-label{display:inline-flex;align-items:center;min-height:20px;line-height:1.2;white-space:nowrap;color:#60777b}
@media(max-width:760px){.paybrand{gap:9px}.secure-brand-label{min-height:18px}}
@media(max-width:420px){.pay-brand-logo{width:152px}}


/* Invoice editor + detail refinement — 2026-10-01 */
.invoice-page-intro,.invoice-detail-intro{margin-bottom:22px}
.invoice-editor{border-radius:18px;box-shadow:0 14px 40px rgba(18,52,57,.045)}
.invoice-editor .editor-section{padding:26px 28px;background:#fff}
.invoice-editor .editor-section+ .editor-section{border-top:0}
.invoice-editor .editor-section>header{margin-bottom:20px}
.invoice-editor .editor-section>header>div{gap:12px}
.invoice-editor .section-number{width:34px;height:34px;border-radius:10px;font-size:11px}
.invoice-editor .editor-section h3{font-size:16px;letter-spacing:-.015em;color:#18383d}
.invoice-editor .editor-section header p{margin-top:3px;font-size:11px;line-height:1.45}
.invoice-editor .currency-section{background:#f8fbfa}
.invoice-editor .compact-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;max-width:860px}
.invoice-editor .fx-preview{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:14px 16px;border:1px solid #dceae6;background:#fff}
.invoice-editor .fx-preview small{font-size:10.5px;white-space:nowrap}
.invoice-editor .fx-preview strong{font-size:12.5px;text-align:right;color:#31555a}
.invoice-editor .line-editor-section{padding-bottom:22px}
.invoice-editor .lineform{grid-template-columns:minmax(150px,1.1fr) minmax(260px,2fr) 86px 96px 126px minmax(84px,.65fr);gap:12px;align-items:end;margin-bottom:12px;padding:16px;border-color:#dce6e6;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(18,52,57,.025)}
.invoice-editor .lineform .field{gap:7px}
.invoice-editor .lineform .delete{justify-content:center;min-height:46px;padding:0 8px;border:1px solid #e7eded;border-radius:10px;background:#fafcfc;color:#71878b}
.invoice-editor .lineform .delete:hover{border-color:#d7e2e2;background:#f5f8f8;color:#49666b}
.invoice-editor .offline-save-note{margin:16px 22px 0;border:1px solid #e0ebe8;background:#f8fbfa}
.invoice-editor .editor-footer{padding:16px 22px}
.invoice-editor .editor-save-note strong{font-size:11.5px}
.invoice-editor .editor-save-note span{margin-top:2px;font-size:10.5px}

.invoicegrid{grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.invoice-paper{padding:32px;border-radius:18px;box-shadow:0 12px 36px rgba(18,52,57,.045)}
.invoice-paper .paperhead{gap:30px;padding-bottom:24px}
.invoice-paper .paperhead small{font-size:10px}
.invoice-paper .paperhead strong{font-size:13.5px}
.invoice-paper .paperhead span{font-size:11.5px;line-height:1.5}
.invoice-paper .lineview{margin-top:22px}
.invoice-paper .ivhead{min-height:42px;background:#f5f8f8;color:#6f8589;font-size:10px}
.invoice-paper .ivrow{grid-template-columns:minmax(260px,2fr) 76px 132px 140px;gap:14px;padding:13px 12px;font-size:12.5px}
.invoice-paper .ivrow>:nth-child(n+2){text-align:right}
.invoice-paper .ivrow small{margin-top:3px;font-size:10.5px}
.invoice-paper .totals{width:min(100%,380px);margin:24px 0 0 auto;padding:14px 16px;border:1px solid #e0e8e8;border-radius:14px;background:#fafcfc}
.invoice-paper .totals>div{grid-template-columns:1fr auto;gap:24px;padding:7px 2px;font-size:12px}
.invoice-paper .totals .grand,.invoice-paper .totals .balance{margin-top:5px;padding-top:11px;font-size:14.5px}
.invoice-paper .totals .equivalent{margin:2px -6px;padding:7px 8px;background:#eef7f4}
.invoice-paper .invoice-notes{gap:24px;margin-top:28px;padding-top:22px}
.invoice-paper .invoice-notes small{font-size:10px}
.invoice-paper .invoice-notes p{font-size:11px;line-height:1.6}
.invoice-side{gap:16px}
.invoice-side .sidecard{padding:20px;border-radius:16px;box-shadow:0 6px 20px rgba(18,52,57,.035)}
.invoice-side .sidecard h3{margin:6px 0 10px;font-size:15.5px}
.invoice-side .sidecard p{font-size:11.5px;line-height:1.6}
.invoice-side .action-sidecard{border-color:#d5e7e1;background:linear-gradient(180deg,#fff,#f7fbf9)}
.invoice-side .payurl{margin:12px 0;padding:10px 11px;font-size:10.5px}
.invoice-side .metricline{padding:10px 0;font-size:11.5px}
.invoice-side .metricline.emphasis{margin-top:6px;padding:12px 10px;border:0;border-radius:10px;background:#edf7f4;font-size:13px}
.invoice-side .payment-record-form{gap:12px;margin-top:12px}
.invoice-side .payment-history>div{gap:4px;padding:11px 0}
.invoice-side .payment-history strong{font-size:12px}
.invoice-side .payment-history span,.invoice-side .payment-history small{font-size:10.5px;line-height:1.45}

@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .editor-section{padding:22px}
  .invoice-editor .lineform{grid-template-columns:minmax(170px,1.2fr) minmax(240px,1.8fr) 100px}
  .invoice-editor .lineform .delete{grid-column:3}
  .invoicegrid{grid-template-columns:minmax(0,1fr) 320px;gap:14px}
  .invoice-paper{padding:24px}
  .invoice-paper .ivrow{grid-template-columns:minmax(220px,2fr) 68px 112px 122px;gap:10px}
}
@media(max-width:1100px) and (min-width:761px){
  .invoicegrid{grid-template-columns:1fr}
  .invoice-side{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .invoice-side .sidecard{height:100%}
}
@media(max-width:760px){
  .invoice-page-intro,.invoice-detail-intro{margin-bottom:18px}
  .invoice-editor .editor-section{padding:18px 16px}
  .invoice-editor .editor-section>header{margin-bottom:16px}
  .invoice-editor .compact-fields{grid-template-columns:1fr}
  .invoice-editor .fx-preview{align-items:flex-start;flex-direction:column;gap:5px}
  .invoice-editor .fx-preview strong{text-align:left}
  .invoice-editor .lineform{grid-template-columns:1fr 1fr;padding:14px}
  .invoice-editor .lineform .desc{grid-column:1/-1}
  .invoice-editor .lineform .delete{grid-column:1/-1;justify-content:flex-start}
  .invoice-editor .offline-save-note{margin:12px 14px 0}
  .invoice-paper{padding:18px}
  .invoice-paper .lineview{overflow-x:auto}
  .invoice-paper .ivrow{min-width:560px}
  .invoice-paper .totals{width:100%;padding:12px}
  .invoice-side{grid-template-columns:1fr}
  .invoice-side .sidecard{height:auto}
}

/* Invoice detail payment scanability — 2026-10-01 */
.payment-overview-card{border-color:#cfe4de;background:linear-gradient(180deg,#ffffff,#f8fbfa)}
.payment-overview-head,.payment-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.payment-overview-head h3,.payment-card-heading h3{margin:5px 0 0}
.payment-overview-head .status{margin-top:1px;flex:0 0 auto}
.payment-balance-hero{margin:16px 0 8px;padding:16px;border-radius:13px;background:#edf7f4;border:1px solid #d7ebe5}
.payment-balance-hero span,.payment-balance-hero small{display:block;color:#60777b}
.payment-balance-hero span{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.payment-balance-hero strong{display:block;margin-top:5px;color:#0a5f56;font-size:24px;line-height:1.05;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.payment-balance-hero small{margin-top:5px;font-size:10.5px}
.payment-overview-card .metricline{padding:9px 2px}
.payment-overview-card .metricline.compact{color:#60777b}
.payment-overview-card .metricline strong{font-variant-numeric:tabular-nums}
.invoice-side .action-sidecard .button{margin-top:4px}
.payment-card-heading{margin-bottom:4px}
.payment-count{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#edf4f3;color:#315b5f;font-size:11px;font-weight:850}
.payment-history-card .payment-history{margin-top:10px}
.payment-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0!important;border-bottom:1px solid #edf2f2}
.payment-history-item:last-child{border-bottom:0}
.payment-history-main{display:grid;gap:3px;min-width:0}
.payment-history-main strong{font-size:12.5px!important;color:#17383d;font-variant-numeric:tabular-nums}
.payment-history-main span{font-size:10.5px!important;color:#60777b}
.payment-history-item time{display:grid;justify-items:end;align-content:start;color:#3e595e;font-size:10.5px;font-weight:750;font-style:normal}
.payment-history-item time small{margin-top:2px;color:#87999d;font-size:9.5px}
.payment-history-note{grid-column:1/-1;margin-top:2px;padding:6px 8px;border-radius:7px;background:#f6f9f8;color:#6f8387!important;font-size:10px!important;line-height:1.4}
@media(max-width:1100px) and (min-width:761px){.payment-overview-card{grid-column:1/-1}.invoice-side .action-sidecard,.invoice-side .payment-history-card{align-self:start}}
@media(max-width:760px){.payment-balance-hero strong{font-size:22px}.payment-overview-head{align-items:center}.payment-history-item{grid-template-columns:minmax(0,1fr) auto}}

/* Invoice editor tablet/intermediate refinement — 2026-10-01 */
@media(max-width:1180px) and (min-width:901px){
  .invoice-editor .compact-fields{grid-template-columns:repeat(12,minmax(0,1fr));max-width:none;gap:14px 16px}
  .invoice-editor .currency-field{grid-column:span 4}
  .invoice-editor .rate-field{grid-column:span 8}
  .invoice-editor .discount-field,.invoice-editor .tax-field{grid-column:span 6}
  .invoice-editor .lineform{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px;padding:16px}
  .invoice-editor .line-catalogue{grid-column:1/2}
  .invoice-editor .line-description{grid-column:2/5}
  .invoice-editor .line-qty{grid-column:1/2}
  .invoice-editor .line-unit{grid-column:2/3}
  .invoice-editor .line-price{grid-column:3/4}
  .invoice-editor .line-delete{grid-column:4/5}
  .invoice-editor .editor-footer{position:sticky;bottom:0;gap:18px;padding:14px 20px}
  .invoice-editor .editor-footer .page-actions{display:flex;flex-wrap:nowrap;gap:8px;margin-left:auto;width:auto}
  .invoice-editor .editor-footer .button{white-space:nowrap}
}
@media(max-width:900px) and (min-width:761px){
  .invoice-editor .editor-section{padding:20px}
  .invoice-editor .compact-fields{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:14px}
  .invoice-editor .currency-field{grid-column:1}
  .invoice-editor .rate-field{grid-column:2}
  .invoice-editor .discount-field{grid-column:1}
  .invoice-editor .tax-field{grid-column:2}
  .invoice-editor .fx-preview{margin-top:14px;padding:13px 14px}
  .invoice-editor .lineform{grid-template-columns:1fr 1fr;gap:12px 14px;padding:15px}
  .invoice-editor .line-catalogue,.invoice-editor .line-description{grid-column:1/-1}
  .invoice-editor .line-qty{grid-column:1}
  .invoice-editor .line-unit{grid-column:2}
  .invoice-editor .line-price{grid-column:1}
  .invoice-editor .line-delete{grid-column:2;justify-content:flex-start}
  .invoice-editor .editor-footer{position:sticky;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px 18px}
  .invoice-editor .editor-save-note{max-width:290px}
  .invoice-editor .editor-footer .page-actions{display:grid;grid-template-columns:auto auto;gap:8px;width:auto;margin-left:0}
  .invoice-editor .editor-footer .button{min-width:0;white-space:nowrap}
}
@media(max-width:820px) and (min-width:761px){
  .invoice-editor .editor-footer{grid-template-columns:1fr}
  .invoice-editor .editor-save-note{max-width:none}
  .invoice-editor .editor-footer .page-actions{grid-template-columns:1fr 1fr;width:100%}
  .invoice-editor .editor-footer .button{width:100%}
}

/* Invoice editor line-item scanability — tablet/intermediate */
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .lineform{position:relative;border-color:#d8e3e3;background:#fcfefe;box-shadow:0 4px 16px rgba(18,52,57,.03)}
  .invoice-editor .lineform .field label,.invoice-editor .lineform .delete label{font-size:11px;font-weight:780;color:#435f64}
  .invoice-editor .lineform .field input,.invoice-editor .lineform .field select{min-height:48px;background:#fff}
  .invoice-editor .line-description input{font-weight:650;color:#1f3e43}
  .invoice-editor .line-qty input,.invoice-editor .line-price input{font-variant-numeric:tabular-nums;text-align:right}
  .invoice-editor .line-delete{align-self:end}
  .invoice-editor .line-delete input{width:16px;height:16px;flex:0 0 auto}
  .invoice-editor .lineform:focus-within{border-color:#b8d7d1;box-shadow:0 0 0 3px rgba(11,111,102,.055),0 5px 18px rgba(18,52,57,.04)}
}
@media(max-width:1180px) and (min-width:901px){
  .invoice-editor .line-catalogue{grid-column:1/3}
  .invoice-editor .line-description{grid-column:3/5}
  .invoice-editor .line-qty{grid-column:1/2}
  .invoice-editor .line-unit{grid-column:2/3}
  .invoice-editor .line-price{grid-column:3/4}
  .invoice-editor .line-delete{grid-column:4/5}
  .invoice-editor .line-catalogue,.invoice-editor .line-description{padding-bottom:2px}
}
@media(max-width:900px) and (min-width:761px){
  .invoice-editor .lineform{gap:14px;padding:16px}
  .invoice-editor .line-catalogue{grid-column:1/-1}
  .invoice-editor .line-description{grid-column:1/-1}
  .invoice-editor .line-qty,.invoice-editor .line-unit,.invoice-editor .line-price,.invoice-editor .line-delete{grid-column:auto}
  .invoice-editor .lineform{grid-template-columns:repeat(2,minmax(0,1fr))}
  .invoice-editor .line-qty{grid-column:1}
  .invoice-editor .line-unit{grid-column:2}
  .invoice-editor .line-price{grid-column:1}
  .invoice-editor .line-delete{grid-column:2}
  .invoice-editor .line-delete{justify-content:center;border-style:dashed;background:#f9fbfb}
}

/* Invoice editor tablet ergonomics — 2026-10-01 */
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .lineform{row-gap:10px;column-gap:14px}
  .invoice-editor .lineform .field{gap:6px}
  .invoice-editor .lineform .field label,.invoice-editor .lineform .delete label{font-size:11px;line-height:1.25}
  .invoice-editor .lineform .field input,.invoice-editor .lineform .field select{min-height:46px;padding-top:9px;padding-bottom:9px;border-radius:10px;touch-action:manipulation}
  .invoice-editor .lineform .field input:focus,.invoice-editor .lineform .field select:focus{border-color:#3c9c8d;box-shadow:0 0 0 3px rgba(16,132,116,.11);background:#fff}
  .invoice-editor .lineform .field input:focus-visible,.invoice-editor .lineform .field select:focus-visible{outline:2px solid rgba(16,132,116,.28);outline-offset:1px}
  .invoice-editor .lineform .field:focus-within label{color:#0b6f66}
  .invoice-editor .line-description input{padding-left:12px;padding-right:12px}
  .invoice-editor .line-qty input,.invoice-editor .line-price input{padding-left:10px;padding-right:10px}
  .invoice-editor .line-delete{min-height:46px;padding:0 11px;gap:8px;cursor:pointer;touch-action:manipulation}
  .invoice-editor .line-delete input{width:18px;height:18px;accent-color:#0b6f66;cursor:pointer}
  .invoice-editor .line-delete label{cursor:pointer;user-select:none}
  .invoice-editor .line-delete:focus-within{border-color:#c9d9d7;background:#f6f9f8;box-shadow:0 0 0 3px rgba(16,132,116,.07)}
}
@media(max-width:900px) and (min-width:761px){
  .invoice-editor .lineform{row-gap:11px;column-gap:12px}
  .invoice-editor .line-catalogue,.invoice-editor .line-description{padding-bottom:1px}
  .invoice-editor .line-delete{justify-content:flex-start}
}

/* Invoice editor tablet grouping — 2026-10-01 */
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .lineform{overflow:hidden}
  .invoice-editor .line-catalogue,.invoice-editor .line-description{position:relative;padding:10px 11px;border:1px solid #e2e9e9;border-radius:11px;background:#fff}
  .invoice-editor .line-catalogue:focus-within,.invoice-editor .line-description:focus-within{border-color:#b9d7d1;background:#fff}
  .invoice-editor .line-qty,.invoice-editor .line-unit{padding:9px 10px;border:1px solid #e5ebeb;background:#f8fbfb}
  .invoice-editor .line-qty{border-radius:11px 0 0 11px;border-right:0}
  .invoice-editor .line-unit{border-radius:0 11px 11px 0}
  .invoice-editor .line-qty:focus-within,.invoice-editor .line-unit:focus-within{background:#fff;border-color:#bfdad5}
  .invoice-editor .line-price{padding:9px 10px;border:1px solid #dce8e5;border-radius:11px;background:#f5faf8}
  .invoice-editor .line-price label{color:#315e58}
  .invoice-editor .line-price:focus-within{border-color:#9ecdc4;background:#fff}
  .invoice-editor .line-delete{border-color:#e5dede!important;background:#fcfafa!important;color:#7b6262!important}
  .invoice-editor .line-delete:hover,.invoice-editor .line-delete:focus-within{border-color:#d9caca!important;background:#fff8f8!important;color:#694d4d!important}
}
@media(max-width:1180px) and (min-width:901px){
  .invoice-editor .lineform{grid-template-columns:repeat(8,minmax(0,1fr));column-gap:10px;row-gap:10px}
  .invoice-editor .line-catalogue{grid-column:1/4}
  .invoice-editor .line-description{grid-column:4/9}
  .invoice-editor .line-qty{grid-column:1/2}
  .invoice-editor .line-unit{grid-column:2/4}
  .invoice-editor .line-price{grid-column:4/7}
  .invoice-editor .line-delete{grid-column:7/9}
}
@media(max-width:900px) and (min-width:761px){
  .invoice-editor .lineform{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px;row-gap:10px}
  .invoice-editor .line-catalogue,.invoice-editor .line-description{grid-column:1/-1}
  .invoice-editor .line-qty{grid-column:1;padding-right:8px;border-right:0}
  .invoice-editor .line-unit{grid-column:2;padding-left:8px}
  .invoice-editor .line-price{grid-column:1}
  .invoice-editor .line-delete{grid-column:2}
}

/* Invoice editor tablet group headers — 2026-10-01 */
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .line-catalogue,.invoice-editor .line-qty,.invoice-editor .line-price,.invoice-editor .line-delete{position:relative}
  .invoice-editor .line-catalogue::before,.invoice-editor .line-qty::before,.invoice-editor .line-price::before,.invoice-editor .line-delete::before{position:absolute;top:-7px;left:10px;z-index:2;padding:0 5px;background:inherit;font-size:8.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;white-space:nowrap}
  .invoice-editor .line-catalogue::before{content:"Identité de l’article";color:#557176}
  .invoice-editor .line-qty::before{content:"Quantité · unité";color:#60777b}
  .invoice-editor .line-price::before{content:"Tarification";color:#315e58}
  .invoice-editor .line-delete::before{content:"Supprimer";color:#8a6666}
  .invoice-editor .line-catalogue,.invoice-editor .line-description,.invoice-editor .line-qty,.invoice-editor .line-unit,.invoice-editor .line-price,.invoice-editor .line-delete{margin-top:3px}
}

/* Invoice editor tablet active-group focus — 2026-10-01 */
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .lineform:has(.line-catalogue :focus),.invoice-editor .lineform:has(.line-description :focus){border-color:#b6d7d0;box-shadow:0 0 0 3px rgba(16,132,116,.06),0 5px 18px rgba(18,52,57,.04)}
  .invoice-editor .lineform:has(.line-catalogue :focus) .line-catalogue,.invoice-editor .lineform:has(.line-catalogue :focus) .line-description,.invoice-editor .lineform:has(.line-description :focus) .line-catalogue,.invoice-editor .lineform:has(.line-description :focus) .line-description{border-color:#8fc3b9;background:#f7fbfa;box-shadow:0 0 0 2px rgba(16,132,116,.055)}
  .invoice-editor .lineform:has(.line-catalogue :focus) .line-catalogue::before,.invoice-editor .lineform:has(.line-description :focus) .line-catalogue::before{color:#0b6f66}
  .invoice-editor .lineform:has(.line-qty :focus) .line-qty,.invoice-editor .lineform:has(.line-qty :focus) .line-unit,.invoice-editor .lineform:has(.line-unit :focus) .line-qty,.invoice-editor .lineform:has(.line-unit :focus) .line-unit{border-color:#9fcac3;background:#fff;box-shadow:0 0 0 2px rgba(16,132,116,.05)}
  .invoice-editor .lineform:has(.line-qty :focus) .line-qty::before,.invoice-editor .lineform:has(.line-unit :focus) .line-qty::before{color:#0b6f66}
  .invoice-editor .lineform:has(.line-price :focus) .line-price{border-color:#78b8ac;background:#fff;box-shadow:0 0 0 2px rgba(16,132,116,.07)}
  .invoice-editor .lineform:has(.line-price :focus) .line-price::before{color:#0b6f66}
  .invoice-editor .lineform:has(.line-delete :focus) .line-delete{border-color:#d4bcbc!important;background:#fff7f7!important;box-shadow:0 0 0 2px rgba(139,80,80,.06)!important}
  .invoice-editor .lineform:has(.line-delete :focus) .line-delete::before{color:#7a4f4f}
}

/* Invoice editor tablet active-row highlight — 2026-10-01 */
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .lineform:focus-within{background:linear-gradient(180deg,#ffffff,#f9fcfb);border-color:#c2ddd7;box-shadow:0 0 0 1px rgba(16,132,116,.035),0 6px 20px rgba(18,52,57,.045)}
  .invoice-editor .lineform:focus-within::after{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 4px 4px 0;background:#6fb5aa;opacity:.55;pointer-events:none}
}

/* Invoice editor tablet active-row motion refinement — 2026-10-01 */
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .lineform{transition:background-color .16s ease,border-color .16s ease,box-shadow .18s ease}
  .invoice-editor .lineform::after{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 4px 4px 0;background:#6fb5aa;opacity:0;transform:scaleY(.72);transform-origin:center;transition:opacity .14s ease,transform .18s ease;pointer-events:none}
  .invoice-editor .lineform:focus-within::after{opacity:.55;transform:scaleY(1)}
}
@media(prefers-reduced-motion:reduce){
  .invoice-editor .lineform,.invoice-editor .lineform::after{transition:none!important}
}
@media(max-width:1180px) and (min-width:761px){
  .invoice-editor .lineform{background-color:#fcfefe}
  .invoice-editor .lineform:focus-within{background:#f9fcfb}
}

/* ManuPay app-like page transition splash — 2026-10-01 */
.app-transition-screen{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:rgba(247,250,249,.985);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s cubic-bezier(.22,.61,.36,1),visibility 0s linear .14s}
.app-transition-screen.is-visible{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .085s cubic-bezier(.16,1,.3,1),visibility 0s}
.app-transition-mark{display:grid;justify-items:center;gap:16px;transform:translateY(-2vh)}
.app-transition-mark img{display:block;width:186px;max-width:58vw;height:auto;filter:drop-shadow(0 8px 18px rgba(11,63,133,.08))}
.app-transition-line{position:relative;display:block;width:86px;height:3px;overflow:hidden;border-radius:999px;background:#dce8e5}
.app-transition-line i{position:absolute;inset:0 auto 0 0;width:42%;border-radius:inherit;background:linear-gradient(90deg,#0f67b4,#20d6ad);animation:manupay-loader-sweep .9s cubic-bezier(.4,0,.2,1) infinite}
@keyframes manupay-loader-sweep{0%{transform:translateX(-120%)}100%{transform:translateX(260%)}}
@media(max-width:760px){.app-transition-mark{gap:14px}.app-transition-mark img{width:164px}.app-transition-line{width:74px}}
@media(prefers-reduced-motion:reduce){.app-transition-screen{transition:none}.app-transition-line i{animation:none;left:29%;width:42%}}

/* ManuPay compact slow-action indicator — 2026-10-01 */
.app-slow-indicator{position:fixed;top:18px;right:22px;z-index:10000;display:flex;align-items:center;gap:9px;min-height:38px;padding:9px 13px;border:1px solid #d9e6e3;border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(18,52,57,.10);color:#35575c;font-size:11px;font-weight:760;letter-spacing:.01em;opacity:0;visibility:hidden;transform:translateY(-6px) scale(.98);pointer-events:none;transition:opacity .16s ease,transform .18s ease,visibility 0s linear .18s}
.app-slow-indicator.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1);transition:opacity .14s ease,transform .18s ease,visibility 0s}
.app-slow-spinner{width:14px;height:14px;flex:0 0 14px;border:2px solid #cfe0dc;border-top-color:#0f7f72;border-radius:50%;animation:manupay-compact-spin .75s linear infinite}
@keyframes manupay-compact-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.app-slow-indicator{top:12px;right:12px;min-height:36px;padding:8px 11px;font-size:10.5px}.app-slow-spinner{width:13px;height:13px;flex-basis:13px}}
@media(prefers-reduced-motion:reduce){.app-slow-indicator{transition:none}.app-slow-spinner{animation:none;border-top-color:#0f7f72}}

/* Signup 15-inch laptop fit — 2026-10-01 */
@media(min-width:1100px) and (max-height:900px){
  .signup-premium-shell{height:100vh;min-height:0;overflow:hidden}
  .signup-premium-shell .auth-story-premium{padding-top:30px;padding-bottom:26px}
  .signup-premium-shell .auth-message-premium{margin:36px 0 24px}
  .signup-premium-shell .auth-message-premium h1{margin:12px 0 14px;font-size:clamp(44px,4.25vw,60px);line-height:.96}
  .signup-premium-shell .auth-message-premium p{font-size:13.5px;line-height:1.55}
  .signup-premium-shell .auth-proof-grid{margin-top:22px}
  .signup-premium-shell .auth-proof-grid>div{min-height:72px;padding:13px 15px}
  .signup-premium-shell .auth-story-footer{font-size:10px}

  .signup-panel-premium{padding-top:16px;padding-bottom:16px;overflow:hidden}
  .signup-card-premium{width:min(600px,100%);padding:22px 28px 18px;border-radius:20px}
  .signup-card-head{margin-bottom:12px}
  .signup-card-head h2{margin:5px 0 4px;font-size:30px}
  .signup-card-head p{font-size:11.5px}
  .signup-form-premium{gap:9px}
  .signup-form-grid{gap:9px 12px}
  .signup-form-premium .auth-field{gap:4px}
  .signup-form-premium .auth-field label{font-size:10.5px}
  .signup-form-premium .auth-field>input{height:42px;border-radius:10px}
  .signup-password-note{margin-top:0;margin-bottom:4px;padding:7px 9px}
  .signup-password-note p{font-size:9px;line-height:1.35}
  .signup-card-premium .signup-submit{min-height:46px;margin-top:4px}
  .signup-card-premium .auth-divider{margin:13px 0 11px}
  .signup-card-premium .auth-create{min-height:46px}
  .signup-card-premium .signup-home-link{margin-top:10px;margin-bottom:9px;font-size:10px}
  .signup-card-premium .auth-trust-row{margin-top:0;padding-top:10px;font-size:9px;line-height:1.35}
}
@media(min-width:1100px) and (max-height:780px){
  .signup-premium-shell .auth-story-premium{padding-top:22px;padding-bottom:20px}
  .signup-premium-shell .auth-message-premium{margin:24px 0 18px}
  .signup-premium-shell .auth-message-premium h1{font-size:clamp(40px,3.7vw,52px)}
  .signup-premium-shell .auth-proof-grid{margin-top:16px}
  .signup-panel-premium{padding-top:10px;padding-bottom:10px}
  .signup-card-premium{padding:16px 24px 14px}
  .signup-card-head{margin-bottom:8px}
  .signup-card-head h2{font-size:27px}
  .signup-form-grid{gap:7px 10px}
  .signup-form-premium .auth-field>input{height:38px}
  .signup-password-note{padding:6px 8px}
  .signup-card-premium .signup-submit,.signup-card-premium .auth-create{min-height:42px}
  .signup-card-premium .auth-divider{margin:9px 0 8px}
  .signup-card-premium .signup-home-link{margin-top:7px;margin-bottom:7px}
  .signup-card-premium .auth-trust-row{padding-top:8px}
}

/* Signup short-laptop readability refinement — 2026-10-01 */
@media(min-width:1100px) and (max-height:780px){
  .signup-premium-shell .auth-kicker{font-size:10.5px;letter-spacing:.14em}
  .signup-premium-shell .auth-message-premium h1{font-size:clamp(41px,3.8vw,54px);line-height:.98;letter-spacing:-.05em}
  .signup-premium-shell .auth-message-premium p{font-size:13px;line-height:1.5}
  .signup-premium-shell .auth-proof-grid strong{font-size:12.5px}
  .signup-premium-shell .auth-proof-grid span{font-size:10px;line-height:1.35}
  .signup-premium-shell .auth-proof-grid>div{padding:11px 14px}

  .signup-card-head h2{font-size:28px;line-height:1.05}
  .signup-card-head p{font-size:11.25px;line-height:1.4}
  .signup-form-premium .auth-field label{font-size:10.75px;line-height:1.25}
  .signup-form-premium .auth-field>input{height:40px;font-size:12.5px}
  .field-optional{font-size:9px}
  .signup-password-note{gap:8px;padding:6px 8px}
  .signup-password-note p{font-size:9.25px;line-height:1.35}
  .signup-card-premium .signup-submit,.signup-card-premium .auth-create{font-size:12px}
  .signup-card-premium .signup-home-link{font-size:10px;line-height:1.3}
  .signup-card-premium .auth-divider span{font-size:9.5px}
  .signup-card-premium .auth-trust-row{font-size:9.25px;line-height:1.4}
}

/* Signup short-laptop contrast refinement — 2026-10-01 */
@media(min-width:1100px) and (max-height:780px){
  .signup-card-head p{color:#5f7479}
  .signup-form-premium .auth-field label{color:#213f45}
  .signup-card-premium .field-optional{color:#687d82}
  .signup-password-note p{color:#526b70}
  .signup-card-premium .auth-divider span{color:#65797e}
  .signup-card-premium .signup-home-link{color:#49666b}
  .signup-card-premium .auth-trust-row{color:#5d7378}
  .signup-card-premium .shield-mark{color:#0e755e;background:#dff3eb}
}

/* Signup compact 15-inch balance refinement — 2026-10-01 */
@media(min-width:1100px) and (max-height:780px){
  .signup-panel-premium{padding-top:9px;padding-bottom:9px}
  .signup-card-premium{padding:17px 25px 14px}
  .signup-card-head{margin-bottom:9px}
  .signup-form-premium{gap:10px}
  .signup-form-grid{gap:8px 11px}
  .signup-form-premium .auth-field{gap:5px}
  .signup-form-premium .auth-field>input{height:41px}
  .signup-password-note{margin-bottom:5px;padding:7px 9px}
  .signup-card-premium .signup-submit{min-height:43px;margin-top:5px}
  .signup-card-premium .auth-divider{margin:10px 0 9px}
  .signup-card-premium .auth-create{min-height:43px}
  .signup-card-premium .signup-home-link{margin-top:8px;margin-bottom:8px}
  .signup-card-premium .auth-trust-row{padding-top:8px}
}

/* ManuPay slow-load transition cue — 2026-10-01 */
.app-transition-line{transition:width .22s ease,background-color .22s ease,opacity .22s ease}
.app-transition-line i{opacity:.72;transition:opacity .22s ease,filter .22s ease}
.app-transition-screen.is-slow .app-transition-line{width:94px;background:#d4e4e0;opacity:1}
.app-transition-screen.is-slow .app-transition-line i{opacity:1;filter:saturate(1.08)}
@media(max-width:760px){.app-transition-screen.is-slow .app-transition-line{width:80px}}
@media(prefers-reduced-motion:reduce){.app-transition-line,.app-transition-line i{transition:none}}


/* ==========================================================
   ManuPay Settings — premium fintech redesign 2026-10-01
   Presentation only: form bindings and backend behavior unchanged.
   ========================================================== */
.workspace-switcher{margin:0 4px 14px;position:relative}.workspace-switcher small{display:block;margin:0 0 6px;font-size:9px;font-weight:850;letter-spacing:.1em;color:#7898b5}.workspace-switcher select{width:100%;height:40px;padding:0 34px 0 11px;border:1px solid rgba(177,210,230,.16);border-radius:10px;background-color:rgba(255,255,255,.055);color:#eef7ff;font-size:11.5px;font-weight:700;outline:none;appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#8db1c6 50%),linear-gradient(135deg,#8db1c6 50%,transparent 50%);background-position:calc(100% - 15px) 17px,calc(100% - 10px) 17px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}.workspace-switcher select:hover,.workspace-switcher select:focus{border-color:rgba(70,225,210,.38);background-color:rgba(255,255,255,.08)}.workspace-switcher option{color:#153139;background:#fff}
.settings-premium-page{display:grid;gap:16px;max-width:1360px;margin:0 auto}.settings-hero-premium{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:26px 28px;border:1px solid #dde7e9;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#fbfdfd 62%,#eff9f7 100%);box-shadow:0 10px 32px rgba(18,55,62,.045)}.settings-hero-premium::after{content:"";position:absolute;width:190px;height:190px;right:-70px;top:-95px;border-radius:50%;background:radial-gradient(circle,rgba(0,143,138,.09),rgba(0,143,138,0) 68%);pointer-events:none}.settings-hero-copy{position:relative;z-index:1;max-width:760px}.settings-eyebrow,.settings-kicker{display:block;font-size:10px;font-weight:850;letter-spacing:.115em;text-transform:uppercase;color:#008f8a}.settings-hero-copy h2{margin:6px 0 5px;font-size:30px;line-height:1.08;letter-spacing:-.04em;color:#122d34}.settings-hero-copy p{margin:0;color:#687e83;font-size:12.5px;line-height:1.6}.settings-hero-badge{position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;border:1px solid #d9e9e5;border-radius:999px;background:rgba(255,255,255,.86);color:#47646a;font-size:10.5px;font-weight:800;white-space:nowrap}.settings-status-dot{width:7px;height:7px;border-radius:50%;background:#18a77d;box-shadow:0 0 0 4px rgba(24,167,125,.1)}
.settings-anchor-nav{display:flex;align-items:center;gap:5px;padding:5px;border:1px solid #e3eaec;border-radius:13px;background:#fff;box-shadow:0 2px 9px rgba(18,55,62,.025);overflow-x:auto}.settings-anchor-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border-radius:9px;color:#687d82;font-size:10.5px;font-weight:760;white-space:nowrap;transition:.15s}.settings-anchor-nav a:first-child,.settings-anchor-nav a:hover{background:#eff8f6;color:#057a73}
.settings-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid #e1e9eb;border-radius:16px;background:#fff;box-shadow:0 5px 20px rgba(18,55,62,.035)}.settings-summary-strip>div{min-width:0;padding:15px 18px;border-right:1px solid #edf1f2}.settings-summary-strip>div:last-child{border-right:0}.settings-summary-strip span{display:block;margin-bottom:4px;color:#899a9e;font-size:9px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.settings-summary-strip strong{display:block;overflow:hidden;text-overflow:ellipsis;color:#233f45;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.settings-grid-premium{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:16px;align-items:stretch}.settings-panel-premium{overflow:hidden;border:1px solid #e1e8ea;border-radius:19px;background:#fff;box-shadow:0 8px 26px rgba(18,55,62,.045)}.settings-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 23px 17px}.settings-panel-head h3{margin:4px 0 4px;color:#17343b;font-size:17px;line-height:1.25;letter-spacing:-.02em}.settings-panel-head p{max-width:700px;margin:0;color:#75898e;font-size:10.8px;line-height:1.55}.settings-panel-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border:1px solid #dcebe7;border-radius:11px;background:#f2f9f7;color:#087f77;font-size:12px;font-weight:850}
.fx-panel-premium{padding-bottom:21px}.fx-current-premium{display:grid;gap:3px;margin:0 23px 17px;padding:16px 17px;border:1px solid #d8ebe6;border-radius:13px;background:linear-gradient(135deg,#f0faf7,#f8fcfb)}.fx-current-premium>span{color:#6f8984;font-size:9px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.fx-current-premium>strong{color:#153c3d;font-size:20px;line-height:1.2;letter-spacing:-.025em}.fx-current-premium>small{color:#81938f;font-size:9.8px}.fx-empty-premium{display:flex;align-items:center;gap:12px;margin:0 23px 17px;padding:13px 14px;border:1px solid #eadfc8;border-radius:12px;background:#fffaf1}.fx-empty-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f6ead1;color:#96681f;font-size:12px;font-weight:900}.fx-empty-premium strong{display:block;color:#604c2d;font-size:11.5px}.fx-empty-premium small{display:block;margin-top:1px;color:#8a785e;font-size:9.8px}.fx-form-premium{display:grid;grid-template-columns:1fr 1fr;gap:13px 14px;padding:0 23px}.fx-form-premium>.field:nth-of-type(3){grid-column:1/-1}.fx-form-premium .settings-card-actions{grid-column:1/-1;display:flex;justify-content:flex-start;padding-top:2px}.fx-form-premium .primary{min-width:160px}.rate-history-premium{margin:17px 23px 0;padding-top:13px;border-top:1px solid #eef2f3}.rate-history-premium summary{cursor:pointer;color:#4a656a;font-size:10.5px;font-weight:800;list-style:none}.rate-history-premium summary::-webkit-details-marker{display:none}.rate-history-premium summary::after{content:"+";float:right;color:#8fa0a3}.rate-history-premium[open] summary::after{content:"−"}.rate-history-list{margin-top:9px}.rate-history-list>div{display:grid;grid-template-columns:118px 82px 1fr;gap:8px;padding:7px 0;border-bottom:1px solid #f0f3f4;font-size:9.8px}.rate-history-list small{color:#83969a}
.currency-panel-premium{display:flex;flex-direction:column;padding-bottom:22px}.currency-choice-premium{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:3px 23px 16px}.currency-tile{position:relative;display:grid;gap:3px;min-height:116px;padding:18px;border:1px solid #dce5e7;border-radius:15px;background:#fbfcfc;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}.currency-tile input{position:absolute;opacity:0;pointer-events:none}.currency-code{color:#193a40;font-size:19px;font-weight:850;letter-spacing:-.025em}.currency-name{color:#839599;font-size:10px}.currency-check{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:24px;height:24px;border:1px solid #dbe5e6;border-radius:50%;background:#fff;color:transparent;font-size:11px;font-weight:900}.currency-tile:hover{border-color:#b9d9d4}.currency-tile.is-selected{border-color:#67beb4;background:linear-gradient(145deg,#f4fbf9,#fff);box-shadow:inset 0 0 0 1px rgba(0,143,138,.08),0 8px 20px rgba(0,143,138,.06)}.currency-tile.is-selected .currency-check{border-color:#008f8a;background:#008f8a;color:#fff}.currency-note{display:flex;gap:9px;margin:auto 23px 0;padding:12px 13px;border-radius:11px;background:#f7f9fa}.currency-note>span{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#e9f3f2;color:#397670;font-size:9px;font-weight:900}.currency-note p{margin:0;color:#72868b;font-size:9.8px;line-height:1.55}
.settings-profile-premium{display:grid;gap:16px}.settings-wide-panel{scroll-margin-top:96px}.identity-layout-premium{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;padding:4px 23px 23px}.identity-brand-column{padding:16px;border:1px solid #e7edef;border-radius:14px;background:#fafcfc}.logo-field-premium{gap:8px}.logo-upload-shell{padding:12px;border:1px dashed #cbdadd;border-radius:11px;background:#fff}.logo-upload-shell input{max-width:100%;font-size:10.5px}.identity-help{display:grid;gap:2px;margin-top:13px;padding-top:12px;border-top:1px solid #edf1f2}.identity-help strong{font-size:10.5px}.identity-help span{color:#819297;font-size:9.5px;line-height:1.5}.identity-fields-column{display:grid;gap:18px}.identity-subgroup{display:grid;gap:11px}.identity-subgroup-title{display:flex;align-items:center;gap:9px;color:#6c8085;font-size:9.5px;font-weight:850;letter-spacing:.065em;text-transform:uppercase}.identity-subgroup-title::after{content:"";height:1px;flex:1;background:#edf1f2}.settings-panel-body{padding:4px 23px 23px}.document-panel-premium .field textarea{min-height:84px}
.payment-settings-premium{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;padding:4px 23px 23px}.payment-config-premium,.bank-config-premium{padding:15px;border:1px solid #e1e9ea;border-radius:14px;background:#fbfcfc}.payment-config-head{padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #edf1f2}.switchline{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.switchline input{flex:0 0 auto;width:17px;height:17px;margin-top:2px;accent-color:#008f8a}.switchline>span{display:grid;gap:1px}.switchline b{color:#29464c;font-size:11.5px}.switchline small{color:#89999d;font-size:9.3px;font-weight:500}.payment-config-premium .field{margin-top:9px}.channel-info-premium{padding:12px;border-radius:10px;background:#f3f6f7;color:#75878c;font-size:9.7px;line-height:1.55}.card-channel-premium{background:linear-gradient(145deg,#fbfcfc,#f5f9f9)}.bank-grid-premium{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:4px 23px 13px}.bank-config-premium .switchline{padding-bottom:12px;margin-bottom:11px;border-bottom:1px solid #edf1f2}.bank-config-premium .field{margin-top:9px}.bank-notes-premium{padding:0 23px 23px}.settings-savebar-premium{position:sticky;bottom:12px;z-index:9;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 12px 11px 16px;border:1px solid rgba(213,226,228,.96);border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 14px 38px rgba(17,49,56,.12);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.settings-savebar-premium>div{display:grid;gap:1px}.settings-savebar-premium strong{font-size:10.8px;color:#304d53}.settings-savebar-premium span{color:#829397;font-size:9.4px}.settings-savebar-premium .primary{min-width:190px}
.settings-premium-page .field label{font-size:10.7px;font-weight:760;color:#3b565b}.settings-premium-page .field input,.settings-premium-page .field select,.settings-premium-page .field textarea{min-height:46px;border-radius:11px;border-color:#d8e2e4;background:#fff;box-shadow:0 1px 1px rgba(18,55,62,.015)}.settings-premium-page .field input:focus,.settings-premium-page .field select:focus,.settings-premium-page .field textarea:focus{border-color:#6cbdb4;box-shadow:0 0 0 3px rgba(0,143,138,.09)}.settings-premium-page .field input[type="number"]{appearance:textfield;-moz-appearance:textfield}.settings-premium-page .field input[type="number"]::-webkit-inner-spin-button,.settings-premium-page .field input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.settings-premium-page .error{font-size:9.5px}
@media(max-width:1120px){.settings-summary-strip{grid-template-columns:1fr 1fr}.settings-summary-strip>div:nth-child(2){border-right:0}.settings-summary-strip>div:nth-child(-n+2){border-bottom:1px solid #edf1f2}.settings-grid-premium{grid-template-columns:1fr}.payment-settings-premium{grid-template-columns:1fr 1fr}.identity-layout-premium{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){.settings-premium-page{gap:12px}.settings-hero-premium{padding:20px;border-radius:16px}.settings-hero-copy h2{font-size:25px}.settings-hero-badge{display:none}.settings-anchor-nav{position:sticky;top:70px;z-index:8}.settings-summary-strip{grid-template-columns:1fr 1fr}.settings-summary-strip>div{padding:12px 13px}.settings-summary-strip strong{font-size:11px}.settings-panel-premium{border-radius:16px}.settings-panel-head{padding:18px 17px 14px}.settings-panel-head h3{font-size:16px}.settings-panel-icon{width:32px;height:32px}.fx-current-premium,.fx-empty-premium{margin-left:17px;margin-right:17px}.fx-form-premium{grid-template-columns:1fr;padding:0 17px}.fx-form-premium>.field:nth-of-type(3){grid-column:auto}.fx-form-premium .settings-card-actions{grid-column:auto}.fx-form-premium .primary{width:100%}.currency-choice-premium{padding:3px 17px 14px}.currency-tile{min-height:100px;padding:15px}.currency-note{margin-left:17px;margin-right:17px}.identity-layout-premium{grid-template-columns:1fr;padding:4px 17px 18px;gap:15px}.identity-brand-column{padding:13px}.settings-panel-body,.payment-settings-premium,.bank-grid-premium,.bank-notes-premium{padding-left:17px;padding-right:17px}.payment-settings-premium,.bank-grid-premium{grid-template-columns:1fr}.settings-savebar-premium{bottom:82px}.settings-savebar-premium>div{display:none}.settings-savebar-premium .primary{width:100%;min-width:0}}
@media(max-width:480px){.settings-summary-strip{grid-template-columns:1fr}.settings-summary-strip>div{border-right:0!important;border-bottom:1px solid #edf1f2!important}.settings-summary-strip>div:last-child{border-bottom:0!important}.settings-anchor-nav{margin:0 -2px}.currency-choice-premium{grid-template-columns:1fr 1fr;gap:8px}.currency-code{font-size:17px}.currency-name{font-size:9px}.payment-settings-premium{grid-template-columns:1fr}}

/* Settings save error state */
.settings-error-banner{display:grid;gap:4px;margin:0 0 16px;padding:14px 16px;border:1px solid #efcdd2;border-radius:14px;background:#fff4f5;color:#8f3441;box-shadow:var(--shadow-xs)}
.settings-error-banner strong{font-size:12.5px}.settings-error-banner span{font-size:11px;line-height:1.45}


/* ==========================================================
   ManuPay dashboard premium pass — 2026-10-01
   Visual-only: no backend/data behavior changes
   ========================================================== */
.dashboard-premium-page{display:grid;gap:18px}
.dashboard-hero-premium{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:26px 28px;border:1px solid #dde7e8;border-radius:22px;background:linear-gradient(135deg,#ffffff 0%,#fbfdfd 62%,#eef9f7 100%);box-shadow:0 10px 35px rgba(9,45,57,.055)}
.dashboard-hero-premium::after{content:"";position:absolute;right:-95px;top:-145px;width:310px;height:310px;border-radius:50%;background:radial-gradient(circle,rgba(0,184,177,.10),rgba(0,184,177,0) 68%);pointer-events:none}
.dashboard-hero-copy{position:relative;z-index:1;min-width:0}.dashboard-hero-copy h2{margin:5px 0 5px;font-size:34px;line-height:1.08;letter-spacing:-.045em;color:#102d35}.dashboard-hero-copy p{margin:0;max-width:720px;color:#657b80;font-size:13px;line-height:1.55}
.dashboard-hero-actions{position:relative;z-index:1;display:flex;gap:9px;flex-wrap:wrap}
.dashboard-rate-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #d5e9e5;border-radius:15px;background:linear-gradient(180deg,#f5fbf9,#eff8f5);box-shadow:0 4px 14px rgba(7,91,84,.035)}
.dashboard-rate-banner.is-warning{border-color:#eedbb8;background:linear-gradient(180deg,#fffaf0,#fff6e7)}
.dashboard-rate-main{display:flex;align-items:center;gap:12px;min-width:0}.dashboard-rate-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#dff3ee;color:#087c72;font-size:16px;font-weight:900;flex:0 0 auto}.dashboard-rate-banner.is-warning .dashboard-rate-icon{background:#fff0cf;color:#9a6819}
.dashboard-rate-main div{display:grid;gap:1px}.dashboard-rate-main small{font-size:9px;font-weight:850;letter-spacing:.09em;color:#7f9698}.dashboard-rate-main strong{font-size:13px;color:#15383e}.dashboard-rate-main span:not(.dashboard-rate-icon){font-size:10.5px;color:#72878b}.dashboard-rate-banner>a{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;font-weight:800;color:#007d75}.dashboard-rate-banner>a span{transition:transform .15s}.dashboard-rate-banner>a:hover span{transform:translateX(2px)}
.dashboard-kpi-premium-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dashboard-kpi-premium{position:relative;overflow:hidden;padding:19px 19px 16px;border:1px solid #e1e9eb;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(10,45,54,.045);transition:border-color .16s,box-shadow .16s,transform .16s}.dashboard-kpi-premium:hover{transform:translateY(-2px);border-color:#cfdddf;box-shadow:0 13px 30px rgba(10,45,54,.075)}
.dashboard-kpi-premium::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#09998f;opacity:.75}.dashboard-kpi-premium.is-success::before{background:#1c9c72}.dashboard-kpi-premium.is-neutral::before{background:#80979b}.dashboard-kpi-premium.is-danger::before{background:#d35c66}
.dashboard-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dashboard-kpi-head>span:first-child{font-size:10.5px;font-weight:850;letter-spacing:.055em;text-transform:uppercase;color:#667c81}.dashboard-kpi-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf7f5;color:#008d83;font-size:13px;font-weight:900}.is-success .dashboard-kpi-mark{background:#edf8f3;color:#188362}.is-neutral .dashboard-kpi-mark{background:#f1f4f5;color:#657b80}.is-danger .dashboard-kpi-mark{background:#fff0f2;color:#bd4654}
.dashboard-kpi-value{display:flex;align-items:baseline;gap:6px;margin-top:16px}.dashboard-kpi-value strong{font-size:29px;line-height:1;letter-spacing:-.045em;color:#14363d;font-variant-numeric:tabular-nums}.dashboard-kpi-value span{font-size:10px;font-weight:850;color:#71868b}.is-danger .dashboard-kpi-value strong{color:#ad3f4d}.dashboard-kpi-secondary{margin-top:6px;font-size:14px;font-weight:750;color:#425d63;font-variant-numeric:tabular-nums}.dashboard-kpi-secondary span{font-size:9.5px;color:#809398}
.dashboard-kpi-premium footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px;padding-top:12px;border-top:1px solid #edf1f2}.dashboard-kpi-premium footer span{font-size:9.5px;color:#87999d}.dashboard-kpi-premium footer strong{font-size:10.5px;color:#526b70;font-variant-numeric:tabular-nums}
.dashboard-premium-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.55fr);gap:14px;align-items:start}.dashboard-activity-premium,.dashboard-quick-premium{overflow:hidden;border-radius:17px;box-shadow:0 7px 24px rgba(10,45,54,.045)}
.dashboard-panel-header{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e6ecee;background:linear-gradient(180deg,#fff,#fcfdfd)}.dashboard-panel-header.compact{min-height:76px}.dashboard-panel-header h3{margin:4px 0 0;font-size:17px;letter-spacing:-.02em}.dashboard-panel-header p{margin:3px 0 0;color:#809397;font-size:10.5px}.dashboard-panel-header .text-link{white-space:nowrap}
.dashboard-table-premium .data-head{background:#f8fafb}.dashboard-table-premium .data-row{min-height:60px}.dashboard-table-premium .data-row:not(.data-head):hover{background:#f8fcfb}
.dashboard-empty-premium{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:38px 24px;background:radial-gradient(circle at 50% 35%,#f3fbf9,transparent 42%)}.dashboard-empty-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:13px;border-radius:16px;background:linear-gradient(145deg,#e7f7f4,#f3fbf9);border:1px solid #d7ebe6;color:#078b81;font-size:21px;box-shadow:0 8px 22px rgba(0,143,138,.08)}.dashboard-empty-premium>strong{margin-top:7px;font-size:15px;color:#17363d}.dashboard-empty-premium>p{max-width:420px;margin:5px 0 16px;color:#788d91;font-size:11px;line-height:1.55}
.dashboard-quick-list{padding:7px}.dashboard-quick-list>a{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:11px;min-height:70px;padding:10px 10px;border-radius:12px;transition:background .14s,transform .14s}.dashboard-quick-list>a:hover{background:#f5faf9;transform:translateX(2px)}.dashboard-quick-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eaf7f4;color:#008c82;font-size:16px;font-weight:850}.dashboard-quick-list strong{display:block;font-size:12px;color:#18353b}.dashboard-quick-list small{display:block;margin-top:2px;color:#809398;font-size:10px}.dashboard-quick-list>a>span:last-child{color:#98aaad;font-size:15px}.dashboard-mini-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e7edef;background:#fafcfc}.dashboard-mini-stats>div{padding:15px 16px}.dashboard-mini-stats>div+div{border-left:1px solid #e7edef}.dashboard-mini-stats span{display:block;font-size:9.5px;color:#819397}.dashboard-mini-stats strong{display:block;margin-top:3px;font-size:21px;color:#18353b}
@media(max-width:1180px){.dashboard-kpi-premium-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-premium-layout{grid-template-columns:1fr}.dashboard-quick-premium{display:block}.dashboard-quick-list{display:grid;grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.dashboard-premium-page{gap:12px}.dashboard-hero-premium{align-items:flex-start;flex-direction:column;padding:20px;border-radius:17px}.dashboard-hero-copy h2{font-size:28px}.dashboard-hero-actions{width:100%}.dashboard-hero-actions .button{flex:1}.dashboard-rate-banner{align-items:flex-start}.dashboard-rate-main span:not(.dashboard-rate-icon){display:none}.dashboard-kpi-premium-grid{grid-template-columns:1fr 1fr;gap:10px}.dashboard-kpi-premium{padding:15px}.dashboard-kpi-value strong{font-size:23px}.dashboard-kpi-premium footer{display:block}.dashboard-kpi-premium footer strong{display:block;margin-top:3px}.dashboard-panel-header{padding:15px;min-height:72px}.dashboard-panel-header p{display:none}.dashboard-quick-list{grid-template-columns:1fr}.dashboard-empty-premium{min-height:260px}}
@media(max-width:480px){.dashboard-kpi-premium-grid{grid-template-columns:1fr}.dashboard-rate-banner{display:grid}.dashboard-rate-banner>a{padding-left:50px}.dashboard-hero-actions{display:grid;grid-template-columns:1fr 1fr}.dashboard-quick-premium{display:none}}


/* ==========================================================
   ManuPay Premium invoices list — 2026-10-01
   Visual-only pass; preserves invoice data/actions/backend.
   ========================================================== */
.invoice-list-premium{display:grid;gap:18px}
.invoice-list-hero{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:32px;min-height:190px;padding:30px 32px;border:1px solid #dce8e7;border-radius:22px;background:radial-gradient(circle at 92% 12%,rgba(0,184,177,.15),transparent 28%),linear-gradient(135deg,#ffffff 0%,#fbfdfd 58%,#eff9f7 100%);box-shadow:0 16px 45px rgba(8,45,92,.065)}
.invoice-list-hero::after{content:"";position:absolute;right:-85px;bottom:-115px;width:260px;height:260px;border:1px solid rgba(0,143,138,.10);border-radius:50%;box-shadow:0 0 0 42px rgba(0,143,138,.028),0 0 0 84px rgba(0,143,138,.018);pointer-events:none}
.invoice-list-hero-copy{position:relative;z-index:1;max-width:720px}.invoice-list-hero h2{margin:7px 0 6px;font-size:36px;line-height:1.05;letter-spacing:-.045em;color:#112f39}.invoice-list-hero p{max-width:700px;margin:0;color:#60787e;font-size:13.5px;line-height:1.6}
.invoice-list-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.invoice-list-meta span{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid #dbe9e6;border-radius:999px;background:rgba(255,255,255,.78);color:#567176;font-size:10px;font-weight:750;box-shadow:0 1px 2px rgba(15,50,58,.025)}
.invoice-list-hero-action{position:relative;z-index:1;flex:0 0 auto}.invoice-list-hero-action .button{min-width:178px}.invoice-action-plus{font-size:18px;font-weight:400;line-height:1}
.invoice-list-surface{overflow:hidden;border-radius:18px;box-shadow:0 14px 38px rgba(11,34,41,.055)}
.invoice-list-header{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fcfefe)}.invoice-list-header h3{margin:3px 0 2px;font-size:17px;letter-spacing:-.02em}.invoice-list-header p{margin:0;color:var(--muted);font-size:10.5px}.invoice-header-create{flex:0 0 auto}
.invoice-table-premium .data-head{background:#f8fbfb;border-bottom:1px solid #e7eeee;color:#799095}.invoice-table-premium .data-row{grid-template-columns:1.1fr 1.55fr .82fr .9fr .9fr .8fr;padding-left:20px;padding-right:20px}.invoice-row-premium{position:relative;transition:background .14s ease,box-shadow .14s ease}.invoice-row-premium::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:transparent;transition:background .14s ease}.invoice-row-premium:hover{background:#f8fcfb!important;box-shadow:inset 0 1px 0 rgba(0,143,138,.025),inset 0 -1px 0 rgba(0,143,138,.025)}.invoice-row-premium:hover::before{background:var(--brand)}
.invoice-number-cell{display:flex;align-items:center;gap:10px;min-width:0}.invoice-doc-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf7f5;color:var(--brand);font-size:14px;flex:0 0 auto}.invoice-number-cell>div{min-width:0}.invoice-number-cell strong{display:block;font-size:12.5px;color:#17343b}.invoice-number-cell small{display:block;margin-top:2px;color:#829397;font-size:9.5px}
.invoice-empty-premium{min-height:390px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:42px 24px 46px;background:radial-gradient(circle at 50% 30%,rgba(0,143,138,.045),transparent 34%),#fff}.invoice-empty-visual{position:relative;width:92px;height:92px;display:grid;place-items:center;margin-bottom:18px}.invoice-empty-icon{position:relative;z-index:2;display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:linear-gradient(145deg,#e5f7f4,#f8fcfb);border:1px solid #cfe8e3;color:var(--brand);font-size:20px;box-shadow:0 10px 24px rgba(0,143,138,.10)}.invoice-empty-orbit{position:absolute;border:1px solid rgba(0,143,138,.10);border-radius:50%}.invoice-empty-orbit.one{width:74px;height:74px}.invoice-empty-orbit.two{width:92px;height:92px;border-style:dashed;opacity:.7}.invoice-empty-premium h3{margin:7px 0 7px;font-size:20px;letter-spacing:-.025em}.invoice-empty-premium p{max-width:520px;margin:0 0 20px;color:#6c8186;font-size:11.5px;line-height:1.65}.invoice-empty-premium .button{min-width:210px}.invoice-empty-features{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:18px;color:#7a9094;font-size:9.5px;font-weight:650}.invoice-empty-features span{white-space:nowrap}
@media(max-width:900px){.invoice-list-hero{min-height:170px;padding:26px}.invoice-list-hero h2{font-size:32px}.invoice-list-header{padding:16px 18px}.invoice-table-premium .data-row{padding-left:16px;padding-right:16px}}
@media(max-width:760px){.invoice-list-premium{gap:14px}.invoice-list-hero{min-height:0;align-items:flex-start;flex-direction:column;padding:22px 18px;border-radius:17px}.invoice-list-hero h2{font-size:29px}.invoice-list-hero p{font-size:12px}.invoice-list-meta{margin-top:15px}.invoice-list-hero-action{width:100%}.invoice-list-hero-action .button{width:100%}.invoice-list-header{min-height:0;align-items:flex-start;padding:16px}.invoice-header-create{display:none}.invoice-list-surface{background:transparent;border:0;box-shadow:none}.invoice-table-premium .data-row:not(.data-head){padding:15px}.invoice-number-cell{grid-column:1/-1}.invoice-number-cell>div{flex:1}.invoice-empty-premium{min-height:330px;border:1px solid var(--line);border-radius:16px;padding:34px 18px}.invoice-empty-features{gap:8px 12px}}
@media(max-width:480px){.invoice-list-hero{padding:20px 16px}.invoice-list-hero h2{font-size:27px}.invoice-list-meta{gap:6px}.invoice-list-meta span{font-size:9px}.invoice-empty-premium h3{font-size:18px}.invoice-empty-premium .button{width:100%;min-width:0}.invoice-empty-features{display:grid;gap:5px}}


/* ManuPay premium invoice builder — 2026-10-02 */
.invoice-builder-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin:2px 0 18px;padding:4px 0 2px}.invoice-builder-heading{min-width:0}.invoice-builder-titleline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:5px}.invoice-builder-titleline h2{margin:0;font-size:34px;line-height:1.08;letter-spacing:-.045em;color:#132f35}.invoice-ref-chip{display:inline-flex;align-items:center;min-height:29px;padding:0 10px;border:1px solid #cfe3df;border-radius:999px;background:#eef8f5;color:var(--brand);font-size:10.5px;font-weight:850;letter-spacing:.03em}.invoice-builder-heading p{max-width:720px;margin:6px 0 0;color:var(--muted);font-size:13px}.invoice-builder-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.invoice-editor-premium{background:transparent;border:0;box-shadow:none;overflow:visible}.invoice-editor-premium>form{padding:0}.invoice-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.invoice-editor-main{display:grid;gap:14px}.editor-card{padding:0!important;border:1px solid var(--line)!important;border-radius:18px;background:#fff;box-shadow:0 8px 30px rgba(9,45,53,.045);overflow:hidden}.editor-card>header{min-height:78px;margin:0!important;padding:18px 20px;border-bottom:1px solid #edf2f3;background:linear-gradient(180deg,#fff,#fcfdfd)}.editor-card>header>div{gap:12px}.editor-card .section-number{width:36px;height:36px;border-radius:11px;background:#eaf7f4;color:var(--brand);font-size:11px;box-shadow:inset 0 0 0 1px #d7ebe6}.editor-card h3{font-size:16px!important;letter-spacing:-.015em}.editor-card header p{margin-top:3px!important;font-size:11px!important;color:#7a8d92!important}.editor-card>.form-grid,.editor-card>.lineblock{padding:20px}.invoice-client-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.client-priority-field{margin-bottom:2px}.client-priority-field select{font-weight:680;background:#fff}.premium-currency-section{background:#fff}.premium-currency-grid{grid-template-columns:1fr 1.35fr .7fr .7fr;padding:20px}.rate-priority-field input{border-color:#9bcfc7!important;background:#fbfffe!important;box-shadow:0 0 0 3px rgba(0,143,138,.045)}.rate-priority-field label{color:#0b615d}.premium-fx-preview{margin:0 20px 20px!important;padding:13px 14px!important;justify-content:flex-start!important;gap:11px!important;background:#f4faf8!important;border-color:#d8ebe6!important}.fx-preview-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e5f5f1;color:var(--brand);font-size:15px;flex:0 0 auto}.premium-fx-preview>div{display:grid;gap:2px}.premium-fx-preview strong{text-align:left!important;font-size:11.5px!important}.premium-lines-section>header{align-items:center}.premium-lineform{grid-template-columns:1.1fr 1.7fr .45fr .55fr .72fr auto!important;padding:14px!important;border-radius:13px!important;background:#fafcfc!important;border-color:#e5ecee!important}.premium-lineform .line-delete{justify-content:center;align-self:end;min-width:78px}.notes-card textarea{min-height:112px}
.invoice-editor-aside{position:sticky;top:calc(var(--topbar) + 18px);display:grid;gap:12px}.invoice-workflow-card{padding:19px;border:1px solid #dce8e8;border-radius:18px;background:linear-gradient(180deg,#ffffff,#fbfdfd);box-shadow:0 12px 34px rgba(9,45,53,.065)}.invoice-workflow-card h3{margin:6px 0 16px;font-size:17px;letter-spacing:-.02em}.workflow-list{display:grid;margin-bottom:14px;border-top:1px solid #edf2f3}.workflow-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f3}.workflow-list span{font-size:10.5px;color:var(--muted)}.workflow-list strong{font-size:10.5px;text-align:right;max-width:160px;color:#1e3c42}.workflow-note{display:grid;gap:3px;margin:14px 0;padding:12px;border-radius:11px;background:#f2f7f6}.workflow-note strong{font-size:10.5px}.workflow-note span{font-size:10px;line-height:1.5;color:var(--muted)}.invoice-workflow-card .button+.button{margin-top:8px}.premium-offline-note{display:grid!important;gap:3px!important;margin:0!important;padding:13px!important;background:#f8faf9!important}.premium-offline-note span{font-size:10.5px!important}.premium-offline-note small{text-align:left!important;line-height:1.45!important}.premium-editor-footer{margin-top:14px;border:1px solid var(--line);border-radius:14px;bottom:12px}.premium-editor-footer .page-actions{width:auto}
@media(max-width:1180px){.invoice-editor-grid{grid-template-columns:1fr}.invoice-editor-aside{position:static;grid-template-columns:1fr 1fr}.invoice-workflow-card{grid-column:1}.premium-offline-note{grid-column:2;align-content:center}.premium-currency-grid{grid-template-columns:1fr 1.25fr 1fr 1fr}}
@media(max-width:900px){.invoice-builder-hero{align-items:flex-start;flex-direction:column;gap:14px}.invoice-builder-actions{width:100%}.invoice-builder-actions .button{flex:1}.invoice-editor-aside{grid-template-columns:1fr}.invoice-workflow-card,.premium-offline-note{grid-column:auto}.premium-currency-grid{grid-template-columns:1fr 1fr}.premium-currency-grid .rate-field{grid-column:auto}.premium-lineform{grid-template-columns:1fr 1.5fr .55fr .65fr .8fr!important}.premium-lineform .line-delete{grid-column:1/-1;justify-content:flex-start;min-width:0}}
@media(max-width:760px){.invoice-builder-titleline h2{font-size:29px}.invoice-builder-heading p{font-size:12px}.invoice-builder-actions{display:grid;grid-template-columns:1fr 1.35fr}.editor-card>header{padding:15px 16px;min-height:70px}.editor-card>.form-grid,.editor-card>.lineblock{padding:16px}.invoice-client-grid,.premium-currency-grid{grid-template-columns:1fr}.client-priority-field{grid-column:auto}.premium-fx-preview{margin:0 16px 16px!important}.premium-editor-footer{bottom:78px;margin-top:10px}.premium-editor-footer .editor-save-note{display:none}.premium-editor-footer .page-actions{width:100%;display:grid;grid-template-columns:1fr 1.4fr}.invoice-workflow-card{padding:16px}}
@media(max-width:480px){.invoice-builder-actions{grid-template-columns:1fr}.invoice-builder-titleline{align-items:flex-start}.invoice-ref-chip{margin-top:2px}.premium-editor-footer .page-actions{grid-template-columns:1fr}.editor-card .section-number{width:32px;height:32px}.premium-lines-section>header{align-items:flex-start;flex-direction:column}.premium-lines-section>header>a{width:100%}}
