.status.viewed{background:#e8efff;color:#2858a5}
.status.overdue,.status.rejected{background:#ffe6e9;color:#b42335}
.status.cancelled{background:#edf0f3;color:#566576}
.public-shell{min-height:calc(100vh - 132px);display:grid;place-items:center;padding:25px;background:radial-gradient(circle at top,#dcecff,#f3f7fb 55%)}
.public-card{width:min(560px,100%);background:white;border:1px solid var(--line);border-radius:24px;padding:32px;box-shadow:0 25px 70px #153a6124;text-align:center}
.brand.public{justify-content:center;color:var(--ink);padding-bottom:20px}
.invoice-data{display:grid;grid-template-columns:1fr 1fr;text-align:left;gap:12px;background:#f4f8fc;padding:16px;border-radius:14px;margin:20px 0}
.invoice-data span{font-size:10px;color:var(--muted)}
.invoice-data strong{display:block;color:var(--ink);font-size:12px;margin-top:4px}

.top-actions{display:flex!important;align-items:center;gap:14px}
.global-help{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;white-space:nowrap}
.global-help span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#e8f2ff;color:var(--blue);font-size:12px;font-weight:800}
.help-backdrop{position:fixed;inset:0;background:#071b35b8;z-index:1000;display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px)}
.help-dialog{background:white;width:min(860px,100%);max-height:92vh;overflow:auto;border-radius:24px;box-shadow:0 30px 90px #0006;padding:28px;color:var(--ink)}
.help-header{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px;gap:20px}
.help-header>div{display:grid;gap:6px}
.help-menu{justify-self:start;background:#e8f2ff;color:#1558a8;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800}
.help-dialog h2{font:800 27px Manrope;margin:0}
.help-close{flex:0 0 auto;border:0;background:#eef3f8;border-radius:50%;width:40px;height:40px;font-size:24px;line-height:1;color:var(--muted);cursor:pointer}
.help-close:hover{background:#dfeaf3;color:var(--ink)}
.help-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}
.help-summary>div{background:#f4f8fc;border:1px solid var(--line);border-radius:14px;padding:16px}
.help-summary strong,.help-section h3,.help-practices>strong{font:800 15px Manrope;color:#123a63}
.help-summary p{color:var(--muted);font-size:13px;line-height:1.55;margin:7px 0 0}
.help-sections{display:grid;gap:14px}
.help-section{border:1px solid var(--line);border-radius:15px;padding:17px 18px}
.help-section h3{font-size:16px;margin:0 0 9px}
.help-dialog ol{counter-reset:help-step;list-style:none;margin:0;padding:0}
.help-dialog ol li{counter-increment:help-step;position:relative;padding:7px 0 7px 38px;line-height:1.48;font-size:13px}
.help-dialog ol li::before{content:counter(help-step);position:absolute;left:0;top:5px;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:#e8f2ff;color:var(--blue);font-size:11px;font-weight:800}
.help-alert,.help-practices{border-radius:14px;padding:15px 17px;margin-top:15px}
.help-alert{background:#fff6d8;border:1px solid #f2d77a;color:#735400}
.help-alert>strong span{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e4b72c;color:white;margin-right:5px}
.help-practices{background:#eaf8f4;border:1px solid #b9e3d7;color:#155f50}
.help-alert ul,.help-practices ul{margin:8px 0 0;padding-left:20px}
.help-alert li,.help-practices li{padding:3px 0;font-size:13px;line-height:1.45}
.help-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.help-dialog footer small{color:var(--muted)}

@media(max-width:700px){
  .global-help{padding:7px 10px;font-size:12px}
  .help-backdrop{padding:10px}
  .help-dialog{padding:20px;border-radius:18px;max-height:95vh}
  .help-dialog h2{font-size:21px}
  .help-summary{grid-template-columns:1fr}
  .help-dialog footer small{display:none}
  .help-dialog footer{justify-content:flex-end}
}

@media(max-width:430px){
  .global-help{font-size:0;gap:0;padding:8px}
  .global-help span{font-size:12px}
  .help-dialog{padding:16px}
  .help-section{padding:14px}
}
