[hidden]{display:none!important}.login{display:grid;gap:16px;padding:22px;background:#fff;border-radius:18px}.login label{font-size:15px;display:grid;gap:8px}.login input{width:100%;min-height:48px;font:inherit;padding:10px;border:1px solid #ccd4df;border-radius:8px}.primary{background:#ff590e;color:#fff;border:0;border-radius:10px;padding:14px;font:inherit;font-weight:600;min-height:48px}.error{color:#9b2519;font-size:14px;line-height:1.6}.status{padding:24px;text-align:center;background:white;border-radius:18px}.credit{color:#526583}.value{font-variant-numeric:tabular-nums}.metric-grid.three .metric-card strong{font-size:clamp(15px,4.1vw,21px);white-space:normal;overflow-wrap:anywhere}.partner-card strong,.invoice-card strong,.profit-value{overflow-wrap:anywhere}.reference-chart>div.negative i{background:#ffc0b7}.reference-chart{flex-wrap:wrap}.reference-chart>div{min-width:70px}.back-button{min-height:44px;border:0;background:none;color:#426494}button:disabled{opacity:.5;cursor:wait}.legal-note{font-size:12px;line-height:1.6;color:#6a7992}

.company-switch{position:relative;z-index:2;margin:8px 18px;padding:10px 16px;border:1px solid #ffcfaa;border-radius:12px;background:#fff;color:#b43c00;font:inherit;cursor:pointer}.company-options{display:grid;gap:14px}.company-options button{text-align:left;min-height:56px}

.partner-row{display:flex;align-items:stretch;gap:4px;border-radius:18px;background:#fff;box-shadow:0 5px 13px #62411909}.partner-row .partner-card{flex:1;min-width:0;box-shadow:none;background:none}.partner-name>span{overflow-wrap:anywhere}.reminder-launch{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-width:82px;padding:12px 8px;border:0;background:transparent;color:#a63808;font-size:11px;line-height:1.3;border-radius:14px}.reminder-launch:disabled{opacity:.45;cursor:default}.reminder-dialog{width:min(540px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #e7ddd0;border-radius:20px;padding:24px;color:#172e3d;background:#fffdfa;box-shadow:0 16px 60px #0003}.reminder-dialog::backdrop{background:#101b3888}.reminder-close{position:sticky;top:0;z-index:2;float:right;width:44px;height:44px;border:0;border-radius:50%;background:#f1eee9;font-size:26px}.reminder-dialog h2{padding-right:50px}.reminder-customer{font-weight:600;overflow-wrap:anywhere}.reminder-dialog label{display:grid;gap:7px;margin-top:16px;font-size:14px}.reminder-dialog input,.reminder-dialog textarea{width:100%;min-width:0;padding:10px;font:inherit;color:inherit;background:white;border:1px solid #d8d9db;border-radius:8px}.reminder-dialog textarea{font-size:14px;line-height:1.5;resize:vertical}.reminder-secondary{display:inline-block;border:1px solid #d8d9db;border-radius:9px;padding:12px;background:white;color:#294665;font:inherit;font-size:14px;text-align:center;min-height:44px;margin-top:8px}.reminder-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.reminder-actions .primary,.reminder-actions .reminder-secondary{width:100%;margin-top:6px}#reminder-status{font-size:14px;color:#294665}.reminder-dialog .legal-note{font-size:13px}

/* Compact financial totals on the overview and result screens. */
.profit-card>div,.wide-card>div{min-width:0}
.profit-value{font-size:30px}
.metric-card>strong{font-size:22px;white-space:normal;overflow-wrap:anywhere}
.wide-card strong{font-size:24px;overflow-wrap:anywhere}
.reference-chart{gap:14px}
.reference-chart>div{min-width:100px}
.reference-chart strong{font-size:14px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
@media(max-width:374px){.profit-value{font-size:27px}.metric-card>strong{font-size:19px}.wide-card strong{font-size:22px}}

.reminder-dialog select{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #d8d9db;border-radius:8px;background:white;color:inherit;font:inherit;font-size:16px}
.reminder-dialog input,.reminder-dialog textarea{font-size:16px}
.reminder-dialog label.reminder-toggle{display:flex;align-items:center;gap:10px;min-height:44px}
.reminder-dialog input[type=checkbox]{width:20px;height:20px;flex-shrink:0;margin:0;padding:0;accent-color:#ff6819}
.reminder-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.reminder-form-actions button{flex:1;min-width:140px;margin:0}.reminder-form-actions .primary{width:auto}

.reminder-notice{position:fixed;top:max(16px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:1000;width:min(520px,calc(100vw - 32px));padding:16px 20px;border:1px solid #7dbb91;border-radius:12px;background:#e8f7ed;color:#164c2a;box-shadow:0 6px 24px #0002;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.reminder-notice[hidden]{display:none}

.entrepreneur-launch{display:flex;justify-content:center;margin:0 0 24px}.entrepreneur-entry{display:flex;align-items:center;justify-content:center;width:100%;max-width:360px;min-height:60px;padding:16px 24px;border-radius:12px;background:#b74c00;color:white;text-decoration:none;font-size:22px;font-weight:700;text-align:center}.entrepreneur-entry:hover{background:#8d3a00}.entrepreneur-entry:focus-visible{outline:3px solid #4479b9;outline-offset:3px}

/* Standard Business layout: retain the mobile view below 800 CSS pixels. */
@media (min-width:800px) {
 .shell {
  display:flex;
  flex-direction:column;
  max-width:1120px;
  min-height:calc(100dvh - 48px);
  padding-bottom:0;
 }
 .shell>header {
  order:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  padding:18px 24px 38px;
 }
 .header-top {display:contents}
 .brand {grid-column:1;grid-row:1;width:max-content;font-size:25px;gap:6px}
 .brand small {font-size:22px;margin-top:3px}
 .fox {
  width:45px;
  height:54px;
  background-size:423.45px 752.40px;
  background-position:-94.03px -101.42px;
 }
 .icon-button {grid-column:2;grid-row:1 / span 3;margin-left:12px}
 .company {grid-column:1;grid-row:2;padding-top:8px}
 .company-switch {grid-column:1;grid-row:3;justify-self:start;margin:10px 0 0}
 .waves {height:35px}
 .shell>nav {
  order:1;
  position:static;
  transform:none;
  width:100%;
  max-width:none;
  margin:0;
  padding:8px 18px;
  gap:4px;
  border:0;
  border-bottom:1px solid #eee5d9;
  border-radius:0;
  background:#fffefa;
 }
 nav a {flex-direction:row;gap:8px;min-height:44px;font-size:13px;font-weight:500;border-radius:10px;color:#5b6984}
 nav a.active {background:#fff0df;color:#ba4209;font-weight:600}
 nav svg {width:23px;height:23px}
 .shell>main {order:2;min-width:0;width:100%;padding:24px}
 .login {max-width:480px}

 /* These sections exist only on the overview; other views keep their content flow. */
 #main:has(>section[aria-labelledby="result-period"]) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:start;
 }
 #main>.ticket-notice {grid-column:1;grid-row:1;margin:0;min-height:80px;justify-content:center;font-size:14px}
 #main>.ticket-notice span {font-size:13px}
 #main>.entrepreneur-launch {grid-column:2;grid-row:1;margin:0}
 #main>.entrepreneur-launch .entrepreneur-entry {max-width:none;min-height:80px;font-size:20px;padding:16px}
 #main:not(:has(>.entrepreneur-launch))>.ticket-notice,
 #main:not(:has(>.ticket-notice))>.entrepreneur-launch {grid-column:1 / -1}
 #main>section[aria-labelledby="result-period"] {grid-column:1;grid-row:2;min-width:0}
 #main>section[aria-labelledby="current-period"] {grid-column:2;grid-row:2;min-width:0;margin-top:0!important}
 #main:not(:has(>.ticket-notice,>.entrepreneur-launch))>section[aria-labelledby] {grid-row:1}
 #main>section[aria-labelledby]>h2 {min-height:49px}
 #main>section[aria-labelledby]>p.sub {min-height:20px;font-size:13px}
 #main>section[aria-labelledby]>.profit-card,
 #main>section[aria-labelledby]>.wide-card {min-height:150px;align-items:center;margin:0 0 14px;padding:19px 15px;gap:12px}
 #main>section[aria-labelledby]>.profit-card .bubble,
 #main>section[aria-labelledby]>.wide-card .bubble {width:47px;height:47px}
 #main>section[aria-labelledby]>.profit-card .bubble svg,
 #main>section[aria-labelledby]>.wide-card .bubble svg {width:28px;height:28px}
 #main>section[aria-labelledby]>.profit-card .metric-label,
 #main>section[aria-labelledby]>.wide-card>div>span {font-size:14px}
 #main>section[aria-labelledby] .profit-value {font-size:29px;letter-spacing:-1px;margin-top:8px}
 #main>section[aria-labelledby]>.wide-card strong {font-size:27px;letter-spacing:-.9px;margin-top:8px}
 #main>section[aria-labelledby] .provisional {font-size:13px}
 #main>section[aria-labelledby]>.metric-grid {margin:0;gap:12px}
 #main>section[aria-labelledby] .metric-card {min-height:174px;padding:14px 12px}
 #main>section[aria-labelledby] .metric-card>.bubble {width:40px;height:40px;margin-bottom:12px}
 #main>section[aria-labelledby] .metric-card .bubble svg {width:24px;height:24px}
 #main>section[aria-labelledby] .metric-card>.metric-label {min-height:40px;font-size:14px}
 #main>section[aria-labelledby] .metric-card>strong {font-size:20px;letter-spacing:-.7px}
 #main>section[aria-labelledby] .metric-card>small {font-size:12px;line-height:1.5;margin-top:8px}
 #main:has(>section[aria-labelledby="result-period"])>.note {grid-column:1 / -1;margin:0;font-size:12px}
}
@media (min-width:1000px) {
 .shell>main {padding:30px}
 #main:has(>section[aria-labelledby="result-period"]) {gap:28px}
 #main>section[aria-labelledby] .profit-value {font-size:34px}
 #main>section[aria-labelledby]>.wide-card strong {font-size:32px}
 #main>section[aria-labelledby] .metric-card>strong {font-size:25px}
}
@media (min-width:800px) and (pointer:coarse) {
 nav a {min-height:48px}
 .icon-button {min-width:48px;min-height:48px}
}
