:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f5f5f5;color:#202124;--red:#d71920;--red2:#a80f15;--yellow:#ffd500;--dark:#252525;--green:#16803a;--line:#ececec}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#fff9da 0,#f5f5f5 210px);min-height:100vh}.top{position:sticky;top:0;z-index:5;background:linear-gradient(105deg,var(--red2),var(--red));color:#fff;padding:14px 18px;border-bottom:5px solid var(--yellow)}.brandMark{max-width:1100px;margin:auto;display:flex;align-items:center;gap:12px}.brandDot{width:38px;height:38px;border-radius:50%;background:var(--yellow);border:5px solid white;box-shadow:inset 0 0 0 3px var(--red)}.top h1{font-size:21px;margin:0}.top small{opacity:.9}.nav{display:flex;justify-content:center;overflow:auto;background:#fff;position:sticky;top:71px;z-index:4;box-shadow:0 2px 10px #00000010}.nav button{border:0;background:transparent;padding:14px 22px;white-space:nowrap;font-weight:800;color:#444}.nav button.active{color:var(--red);border-bottom:4px solid var(--yellow)}.wrap{max-width:1100px;margin:auto;padding:18px}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(125deg,var(--dark),#4a4a4a);color:white;padding:22px;border-radius:18px;margin-bottom:14px;box-shadow:0 8px 25px #0002}.hero h2{font-size:27px;margin:3px 0}.hero p{margin:0;opacity:.75}.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:900;color:#888}.hero .eyebrow{color:var(--yellow)}.status{padding:9px 13px;border-radius:999px;font-weight:900;font-size:12px}.status.open{background:var(--yellow);color:#222}.status.closed{background:#fff2;color:white}.kpi3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.kpi{border-radius:16px;padding:18px;min-height:125px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 4px 14px #0001}.kpi span{font-weight:800;font-size:13px}.kpi b{font-size:25px;margin:5px 0}.kpi small{opacity:.8}.kpi.yellow{background:var(--yellow);color:#221f1f}.kpi.red{background:var(--red);color:white}.kpi.dark{background:var(--dark);color:white}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.card{background:white;border-radius:15px;padding:17px;box-shadow:0 2px 12px #0000000f;margin-bottom:12px;border:1px solid #f0f0f0}.adminCard{border-top:5px solid var(--yellow)}.card h3{margin:2px 0 12px;font-size:16px}.pageTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.pageTitle h2{margin:2px 0}.row{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.priceRow{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.priceRow>div{padding:14px;border-radius:12px;background:#fff8d8;border-left:5px solid var(--yellow);display:flex;justify-content:space-between}.priceRow b{font-size:18px}.priceRow small{font-size:11px}.line{padding:8px 0;border-bottom:1px solid var(--line)}.bigline{padding:14px 0;font-size:21px;border-top:2px solid var(--dark);margin-top:7px}.good{color:var(--green)}.bad{color:#c61717}.warn{color:#b36b00}.muted{color:#737373;font-size:13px}.notice{padding:11px 13px;border-radius:11px;background:#edf6ff;color:#24527a;font-size:13px;margin:10px 0}.yellowNotice{background:#fff5bd;color:#604900;border-left:5px solid var(--yellow)}label{font-size:12px;font-weight:800;color:#555;display:block;margin:8px 0 5px}input,select,textarea{width:100%;padding:11px;border:1px solid #d6d6d6;border-radius:9px;background:#fff;font-size:15px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px #d7192015}input:disabled{background:#f2f2f2}.primary,.secondary,.danger,.linkBtn{padding:11px 14px;border:0;border-radius:10px;font-weight:900;cursor:pointer}.primary{background:var(--red);color:white}.primary:hover{background:var(--red2)}.secondary{background:var(--yellow);color:#242424}.linkBtn{padding:5px 8px;background:#fff0f0;color:var(--red)}.full{width:100%;margin-top:12px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.split{display:flex;justify-content:space-between;gap:12px;align-items:center}.list{width:100%;border-collapse:collapse}.list th,.list td{padding:10px 7px;text-align:left;border-bottom:1px solid #eee;font-size:12px}.list th{font-size:11px;text-transform:uppercase;color:#777}.pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#fff2bd;color:#6b5500;font-size:11px;font-weight:900}.pumpGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.pumpCard{border:1px solid #e6e6e6;border-radius:13px;padding:12px;background:#fafafa}.pumpHead,.pumpTotal{display:flex;justify-content:space-between;align-items:center}.pumpHead span{font-size:11px;background:#fff2bd;padding:3px 6px;border-radius:99px}.reading{display:flex;justify-content:space-between;margin:10px 0}.reading small{color:#777}.pumpTotal{margin-top:10px;padding-top:9px;border-top:1px dashed #ddd}.pumpTotal b{color:var(--red)}.empty{text-align:center;padding:34px}.emptyMini{padding:16px;background:#fafafa;border-radius:10px;color:#777;text-align:center;margin-top:12px}.checkGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.checkCard{display:flex;align-items:center;gap:9px;border:1px solid #ddd;border-radius:11px;padding:10px;margin:0;cursor:pointer}.checkCard input{width:auto}.checkCard span{display:flex;flex-direction:column}.checkCard small{color:#777;margin-top:3px}.checkCard.disabled{opacity:.4;background:#eee;cursor:not-allowed}.salesBanner{margin-top:12px;background:var(--dark);color:white;border-left:7px solid var(--yellow);padding:13px;border-radius:10px;display:flex;justify-content:space-between}.salesBanner b{font-size:20px;color:var(--yellow)}.paymentRow{display:grid;grid-template-columns:1fr 180px;gap:10px;align-items:end;border-bottom:1px solid #f2f2f2;padding-bottom:8px}.reconcile{border-top:5px solid var(--red)}.shortWarning{background:#fff0f0;color:#8a1010;border-left:5px solid var(--red);padding:10px;border-radius:8px;font-size:12px}.denomGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.creditInfo{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#fff8d8;padding:10px;border-radius:10px;margin:10px 0}.creditInfo span{display:flex;flex-direction:column;font-size:11px}.creditInfo b{font-size:14px;margin-top:3px}.unitInput{display:flex;align-items:center}.unitInput input{border-radius:9px 0 0 9px}.unitInput span{padding:11px;background:#eee;border:1px solid #d6d6d6;border-left:0;border-radius:0 9px 9px 0}.dipResult{display:flex;flex-direction:column;margin-top:12px;padding:12px;background:#f7f7f7;border-radius:10px}.dipResult span{font-size:11px;color:#777}.dipResult b{font-size:21px;margin-top:3px}.formCard textarea{resize:vertical}@media(max-width:700px){.wrap{padding:11px}.nav{top:71px;justify-content:flex-start}.kpi3{grid-template-columns:1fr}.kpi{min-height:98px}.hero{align-items:flex-start;flex-direction:column}.row,.creditInfo{grid-template-columns:1fr}.paymentRow{grid-template-columns:1fr}.list{display:block;overflow:auto;white-space:nowrap}.priceRow{grid-template-columns:1fr}.top{padding:13px}.brandDot{width:34px;height:34px}}
.dipPanel{border-top:5px solid var(--yellow);background:linear-gradient(180deg,#fffdf2,#fff)}.dipMini{border:1px solid #eee;border-radius:12px;padding:12px;background:#fff}.dipMini>b{display:block;margin-bottom:7px}.dipMini small{display:block;margin-top:7px;font-weight:800;color:#555}.accountCard{border-top:5px solid var(--yellow)}.accountBalance{display:flex;flex-direction:column;align-items:flex-end;background:#252525;color:white;padding:12px 16px;border-radius:12px;min-width:190px}.accountBalance small{opacity:.7}.accountBalance b{font-size:24px;color:var(--yellow)}.accountBalance span{font-size:11px;opacity:.8}.danger{background:#8b1111;color:white}@media(max-width:700px){.accountBalance{align-items:flex-start;width:100%}.accountCard>.split{align-items:flex-start;flex-direction:column}}


/* Credit POS module */
.posHero{max-width:760px;margin:40px auto;text-align:center;background:linear-gradient(135deg,#fff7b2,#fff);border:2px solid #ffd500;border-radius:22px;padding:36px;box-shadow:0 12px 30px rgba(0,0,0,.08)}
.posHero h2{font-size:34px;margin:8px 0}.posGrid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:18px}.posCard{border-top:6px solid #d71920}.posInput{font-size:20px!important;min-height:58px!important;padding:12px 14px!important}.amountInput{font-size:30px!important;font-weight:800}.posBig{min-height:58px!important;font-size:18px!important;font-weight:800}.signatureWrap{background:#fff;border:2px dashed #c9c9c9;border-radius:14px;overflow:hidden;touch-action:none}.signatureWrap canvas{display:block;width:100%;height:180px;background:#fff;touch-action:none}.flowLine{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff7c8;border-radius:12px;padding:14px}.sourceTag{display:inline-block;padding:4px 9px;border-radius:999px;background:#f2f2f2;font-size:11px;font-weight:800}.sourceTag.posTag{background:#fff0a6;color:#7a5700;border:1px solid #ffd500}
@media(max-width:820px){.posGrid{grid-template-columns:1fr}.signatureWrap canvas{height:150px}.posInput{font-size:18px!important}}
.lockedField{min-height:46px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;display:flex;flex-direction:column;justify-content:center}.lockedField b{font-size:16px}.lockedField small{color:#6b7280;margin-top:2px}.nextShiftPreview{margin:18px auto;max-width:360px;padding:16px;border-radius:14px;background:#fff7c8;border:1px solid #f2d34b;display:flex;flex-direction:column;gap:4px}.nextShiftPreview span,.nextShiftPreview small{color:#6b5d00}.nextShiftPreview b{font-size:20px;color:#241f00}
.roleBox{padding:12px 0;border-bottom:1px solid #eee}.bad.linkBtn{color:#b00020}.top>div:last-child{margin-left:auto}.top .secondary{padding:7px 10px}.roleBox small{display:block;margin-top:6px;color:#666}

/* v0.14 Eau Coulee Filling Station identity */
.brandFlame{width:39px;height:48px;flex:0 0 auto}.brandMark h1{text-transform:uppercase;letter-spacing:.025em}.brandMark small{font-weight:600}.loginPage{min-height:100vh;display:grid;place-items:center;padding:28px;background:linear-gradient(145deg,#fff 0,#fff9df 70%,#fff 100%)}.loginCard{width:min(430px,94vw);background:#fff;border:1px solid #eee;border-radius:24px;padding:34px 32px 42px;box-shadow:0 18px 55px #0002;position:relative;overflow:hidden}.loginBrand{text-align:center}.loginFlame{width:82px;height:102px;margin:auto}.loginBrand h1{margin:6px 0 0;color:#e10600;text-transform:uppercase;letter-spacing:.035em;font-size:27px}.loginBrand p{margin:8px 0 26px;color:#666}.loginRule{height:3px;width:210px;max-width:80%;margin:7px auto;background:linear-gradient(90deg,#222 0 34%,transparent 34% 39%,#222 39% 100%)}.loginCard h2{text-align:center;color:#e10600;text-transform:uppercase;font-size:17px;letter-spacing:.03em}.loginPrompt{text-align:center}.loginButton{text-transform:uppercase;font-size:15px;letter-spacing:.04em}.loginHelp{text-align:center;margin-top:18px}.loginSwoosh{position:absolute;right:-30px;bottom:-38px;width:250px;height:85px;border-radius:50%;border-top:13px solid #e10600;transform:rotate(-7deg)}.loginSwoosh:after{content:'';position:absolute;inset:8px 0 auto 20px;height:11px;border-radius:50%;border-top:9px solid #ffd100}.top{background:linear-gradient(105deg,#bf0500,#e10600);border-bottom-color:#ffd100}.secondary{background:#ffd100}.kpi.yellow{background:#ffd100}.kpi.red,.primary{background:#e10600}.primary:hover{background:#bd0500}.adminCard{border-top-color:#ffd100}

/* v0.16 integrated application header */
.top{padding:0;background:linear-gradient(110deg,#d40000,#ee0900);border-bottom:5px solid #ffd100;position:sticky;top:0;z-index:10}
.topInner{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:minmax(330px,.95fr) minmax(520px,1.6fr) minmax(255px,.7fr);align-items:stretch;gap:20px;min-height:112px;padding:0 24px}
.brandMark{margin:0;align-self:center;gap:15px;min-width:0}.headerFlame{width:54px;height:68px;filter:drop-shadow(0 1px 1px #8a0000)}.brandMark h1{font-size:24px;line-height:1.08;color:#fff;white-space:normal}.brandMark small{display:block;margin-top:7px;color:#fff;font-size:13px;opacity:.95}.nav{position:static;box-shadow:none;background:transparent;display:flex;justify-content:center;align-items:flex-end;overflow:visible;min-width:0}.nav button{height:58px;color:#fff;padding:16px 13px 15px;border-radius:0;font-size:13px;display:flex;gap:7px;align-items:center;border-bottom:5px solid transparent}.nav button:hover{background:#ffffff10}.nav button.active{color:#ffd100;border-bottom:5px solid #ffd100;background:#8b000027}.navIcon{font-size:17px;line-height:1}.userPanel{align-self:stretch;border-left:1px solid #ffffff66;padding:15px 0 13px 20px;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;color:#fff}.userAvatar{width:42px;height:42px;border:2px solid #fff;border-radius:50%;display:grid;place-items:center;font-size:23px;font-weight:900}.userMeta{display:flex;flex-direction:column;min-width:0}.userMeta b{font-size:14px}.userMeta span{font-size:12px;margin-top:2px}.userMeta small{font-size:10px;opacity:.8;margin-top:2px}.logoutBtn{grid-column:2/4;justify-self:start;padding:8px 13px!important;background:#ffd100!important;color:#261e00!important}
@media(max-width:1100px){.topInner{grid-template-columns:1fr auto;gap:8px;min-height:auto;padding:10px 14px 0}.brandMark{padding-bottom:8px}.userPanel{grid-column:2;border-left:1px solid #ffffff55;padding-left:14px}.nav{grid-column:1/3;grid-row:2;justify-content:flex-start;overflow:auto}.nav button{height:48px;padding:11px 13px 10px}.brandMark h1{font-size:20px}.headerFlame{width:42px;height:54px}}
@media(max-width:700px){.topInner{display:flex;flex-wrap:wrap;padding:10px 10px 0}.brandMark{flex:1 1 70%;min-width:250px}.userPanel{order:2;flex:0 0 auto;border-left:0;padding:0;grid-template-columns:34px auto}.userAvatar{width:34px;height:34px;font-size:18px}.userMeta small{display:none}.logoutBtn{grid-column:1/3;margin-left:44px}.nav{order:3;flex:1 0 100%;margin:0 -10px}.nav button{font-size:12px;padding:10px}.headerFlame{width:37px;height:47px}.brandMark h1{font-size:17px}.brandMark small{font-size:11px}}
.pill.bad{background:#ffe3e3;color:#a40000}


/* v0.17 mobile safe-area and responsive layout correction */
html,body{min-height:100%;}
body{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.loginPage{min-height:100vh;min-height:100dvh;padding-top:max(18px,env(safe-area-inset-top,0px));padding-bottom:max(18px,env(safe-area-inset-bottom,0px));align-items:center;justify-items:center}
.loginCard{margin:auto}
@media(max-width:700px){
  .loginPage{display:flex;align-items:center;justify-content:center;padding:16px 10px}
  .loginCard{width:min(94vw,430px);padding:26px 22px 34px;max-height:calc(100dvh - 32px);overflow:auto}
  .loginFlame{width:68px;height:84px}.loginBrand h1{font-size:23px}.loginBrand p{margin-bottom:18px}
  .top{position:sticky;top:0}
  .topInner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand user' 'nav nav';gap:7px 10px;padding:10px 10px 0;min-height:0}
  .brandMark{grid-area:brand;min-width:0;padding:0 0 8px;align-self:center;gap:9px}
  .headerFlame{width:34px;height:43px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.16))}
  .brandMark h1{font-size:15px;line-height:1.08;white-space:normal;overflow-wrap:anywhere}
  .brandMark small{font-size:10px;line-height:1.2;margin-top:4px}
  .userPanel{grid-area:user;display:grid;grid-template-columns:30px minmax(82px,auto);grid-template-rows:auto auto;align-self:center;border:0;padding:0;gap:3px 7px;min-width:0}
  .userAvatar{width:30px;height:30px;font-size:16px;grid-row:1/3}
  .userMeta{min-width:0;line-height:1.1}.userMeta b{font-size:11px;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.userMeta span{font-size:9px}.userMeta small{display:none}
  .logoutBtn{grid-column:2;grid-row:2;margin:0!important;padding:5px 9px!important;font-size:10px;justify-self:start;border-radius:8px}
  .nav{grid-area:nav;display:flex;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -10px;padding:0 4px;max-width:100vw}
  .nav::-webkit-scrollbar{display:none}.nav button{flex:0 0 auto;height:44px;font-size:11px;padding:9px 11px 8px;gap:5px}.navIcon{font-size:14px}
  .wrap{padding:10px 10px max(22px,env(safe-area-inset-bottom,0px))}
  .hero{padding:18px;border-radius:15px}.hero h2{font-size:24px}
  .kpi{padding:16px}.kpi b{font-size:23px}
}
@media(max-width:420px){
  .brandMark h1{font-size:14px}.brandMark small{font-size:9px}.headerFlame{width:31px;height:40px}
  .userMeta b{max-width:82px}.nav button{padding-left:9px;padding-right:9px}
}

/* v0.18 final mobile header/safe-area correction */
@media(max-width:700px){
  body{background:linear-gradient(180deg,#fff9da 0,#f5f5f5 150px);overflow-x:hidden}
  .top{position:sticky;top:0;z-index:20;border-bottom:4px solid #ffd100}
  .topInner{
    width:100%;max-width:none;min-height:0;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 118px;
    grid-template-areas:'brand user' 'nav nav';
    column-gap:8px;row-gap:4px;
    padding:8px 8px 0!important;
  }
  .brandMark{
    grid-area:brand;min-width:0!important;width:auto!important;
    padding:0 0 7px!important;margin:0!important;gap:7px!important;
    overflow:hidden;align-self:center;
  }
  .headerFlame{width:29px!important;height:37px!important;flex:0 0 29px!important}
  .brandMark>div{min-width:0;overflow:hidden}
  .brandMark h1{
    margin:0!important;font-size:13px!important;line-height:1.12!important;
    letter-spacing:.01em!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  .brandMark small{
    margin-top:3px!important;font-size:8.5px!important;line-height:1.1!important;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .userPanel{
    grid-area:user!important;width:118px!important;min-width:118px!important;
    display:grid!important;grid-template-columns:28px 1fr!important;
    grid-template-rows:auto auto!important;gap:2px 5px!important;
    padding:0!important;margin:0!important;border-left:0!important;
    align-self:center!important;justify-self:end!important;overflow:hidden;
  }
  .userAvatar{width:28px!important;height:28px!important;font-size:14px!important;grid-row:1/3!important}
  .userMeta{min-width:0!important;line-height:1.05!important;align-self:end}
  .userMeta b{display:block;font-size:9.5px!important;max-width:82px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .userMeta span{display:block;font-size:8px!important;margin-top:1px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .userMeta small{display:none!important}
  .logoutBtn{
    grid-column:2!important;grid-row:2!important;margin:1px 0 0!important;
    padding:4px 7px!important;font-size:8.5px!important;border-radius:7px!important;
    min-height:24px!important;line-height:1!important;justify-self:start!important;
  }
  .nav{
    grid-area:nav!important;width:calc(100% + 16px)!important;max-width:none!important;
    margin:0 -8px!important;padding:0!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    display:flex!important;justify-content:flex-start!important;
    white-space:nowrap!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    background:#c90000!important;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav button{
    flex:0 0 auto!important;height:43px!important;min-width:max-content!important;
    padding:9px 10px 8px!important;font-size:10.5px!important;gap:4px!important;
    border-bottom-width:4px!important;
  }
  .navIcon{font-size:13px!important}
  .wrap{width:100%;padding:9px 9px 32px!important;overflow-x:hidden}
  .hero{margin-bottom:12px!important;padding:16px!important;border-radius:15px!important}
  .hero h2{font-size:22px!important;line-height:1.15!important}
  .hero .status{margin-top:9px}
  .kpi3{grid-template-columns:1fr!important;gap:10px!important}
  .kpi{min-height:112px!important;padding:15px!important;border-radius:15px!important}
  .kpi b{font-size:22px!important}
  .card{border-radius:14px!important;padding:15px!important;margin-bottom:10px!important}
  .list{max-width:100%;overflow-x:auto}
}
@media(max-width:380px){
  .topInner{grid-template-columns:minmax(0,1fr) 104px!important}
  .userPanel{width:104px!important;min-width:104px!important}
  .brandMark h1{font-size:12px!important}.brandMark small{font-size:8px!important}
  .userMeta b{max-width:68px!important;font-size:9px!important}.userMeta span{font-size:7.5px!important}
  .nav button{font-size:10px!important;padding-left:9px!important;padding-right:9px!important}
}

/* v0.19 Supabase cloud authentication */
.cloudLoginCard .loginButton{margin-top:16px}
.cloudSetupBtn{margin-top:8px}
.offlineToggle{display:block;margin:14px auto 0}
.cloudDivider{display:flex;align-items:center;gap:10px;margin:14px 0;color:#777;font-size:12px}
.cloudDivider:before,.cloudDivider:after{content:'';height:1px;background:#ddd;flex:1}
.cloudDivider span{white-space:nowrap}
@media(max-width:700px){
  .cloudLoginCard{width:min(94vw,460px)}
  .loginPage{padding-left:12px!important;padding-right:12px!important}
}

.status.allClosed{background:var(--green);color:#fff;box-shadow:0 2px 8px #0002}.closeNotice{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border-radius:10px;margin-top:12px;font-size:12px}.closeNotice b{font-size:14px}.balancedNotice{background:#edf8f0;border:1px solid #b7dfc1;color:#176b32}.closedNotice{background:#eef5ff;border:1px solid #bfd5f4;color:#24527a}

.cloudSyncBanner{position:sticky;top:8px;z-index:20;margin:0 0 10px;padding:8px 12px;border-radius:10px;background:#fff7c8;border:1px solid #ffd100;font-size:12px;font-weight:800;box-shadow:0 3px 12px #0001}
.statementMobile{display:none}
.statementTxn{border:1px solid #e8e8e8;border-radius:14px;padding:13px;background:#fff;margin-top:10px;box-shadow:0 3px 10px #0000000a}
.statementTxnHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #eee}
.statementTxnHead>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.statementTxnHead small{color:#777;font-size:11px}.statementTxnHead b{font-size:14px;overflow-wrap:anywhere}
.statementTxnHead strong{font-size:18px;color:#222;white-space:nowrap}
.statementTxnGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;padding-top:10px}
.statementTxnGrid span{display:flex;flex-direction:column;color:#777;font-size:10px;text-transform:uppercase;letter-spacing:.03em}
.statementTxnGrid b{margin-top:3px;color:#222;font-size:13px;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
.statementTxnActions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px solid #eee}
@media(max-width:700px){
 .statementDesktop{display:none}
 .statementMobile{display:block}
 .accountCard .actions{gap:8px}
 .accountCard .actions button{flex:1 1 calc(50% - 8px);min-width:130px}
 .cloudSyncBanner{top:4px}
}

.creditCustomersMobile{display:none}
.creditCustomerCard{border:1px solid #ececec;border-radius:14px;padding:13px;margin-top:10px;background:#fff}
.creditCustomerHead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:10px;border-bottom:1px solid #eee}
.creditCustomerHead>div{display:flex;flex-direction:column;min-width:0}
.creditCustomerHead b{font-size:15px;overflow-wrap:anywhere}.creditCustomerHead small{color:#777;margin-top:3px;overflow-wrap:anywhere}
.creditCustomerHead strong{font-size:18px;white-space:nowrap}
.creditCustomerStats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}
.creditCustomerStats span{background:#f7f7f7;border-radius:9px;padding:8px;display:flex;flex-direction:column;font-size:9px;text-transform:uppercase;color:#777}
.creditCustomerStats b{font-size:12px;color:#222;margin-top:3px;text-transform:none;white-space:nowrap}
.creditCustomerActions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
@media(max-width:700px){
 .creditCustomersDesktop{display:none!important}
 .creditCustomersMobile{display:block}
 .creditCustomerStats{grid-template-columns:1fr}
 .creditCustomerActions .linkBtn{flex:1 1 auto;min-height:38px}
 #creditCustomerTable{width:100%;max-width:100%;overflow:hidden}
}

.invoiceSummaryGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}
.invoiceSummaryGrid>div{background:#f7f7f7;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:5px}
.invoiceSummaryGrid span{font-size:11px;text-transform:uppercase;color:#777;font-weight:700}
.invoiceSummaryGrid b{font-size:18px}
.invoiceSummaryTotal{background:#252525!important;color:#fff}
.invoiceSummaryTotal span{color:#ddd!important}
.invoiceSummaryTotal b{color:#ffd100;font-size:25px}
@media(max-width:700px){.invoiceSummaryGrid{grid-template-columns:1fr 1fr}.invoiceSummaryTotal{grid-column:1/-1}}

.invoiceHistory{margin-top:28px;padding-top:18px;border-top:1px solid #eee}
.invoiceMobile{display:none}
.invoiceCard{border:1px solid #ececec;border-radius:14px;padding:13px;background:#fff;margin-top:10px}
.invoiceCardHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #eee}
.invoiceCardHead>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.invoiceCardHead small{color:#777;font-size:11px}.invoiceCardHead b{font-size:14px;overflow-wrap:anywhere}
.invoiceCardHead strong{font-size:18px;white-space:nowrap}
.invoiceCardGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;padding-top:10px}
.invoiceCardGrid span{display:flex;flex-direction:column;font-size:9px;text-transform:uppercase;color:#777}
.invoiceCardGrid b{font-size:12px;text-transform:none;color:#222;margin-top:3px;overflow-wrap:anywhere}
.invoiceCardActions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid #eee}
@media(max-width:700px){.invoiceDesktop{display:none}.invoiceMobile{display:block}}

.stockGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin:18px 0}
.stockTankCard{background:#fff;border:1px solid #e6e6e6;border-radius:18px;padding:18px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.tankGauge{height:230px;max-width:170px;margin:18px auto;position:relative;border:5px solid #353535;border-radius:28px 28px 38px 38px;overflow:hidden;background:#f2f2f2}
.tankLiquid{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#f5c542,#d79e00);transition:height .35s ease}
.tankGaugeText{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-shadow:0 1px 2px #fff;background:rgba(255,255,255,.12)}
.tankGaugeText b{font-size:1.35rem}.tankGaugeText small{margin-top:5px}
@media(max-width:700px){.tankGauge{height:190px}.stockGrid{grid-template-columns:1fr}}


/* v0.47.9.1 desktop header overlap fix */
@media(min-width:1101px){
  .topInner{
    max-width:none;
    width:100%;
    grid-template-columns:minmax(300px,360px) minmax(0,1fr) minmax(270px,310px);
    gap:12px;
    padding:0 28px;
  }
  .nav{
    min-width:0;
    width:100%;
    justify-content:flex-start;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav button{
    flex:0 0 auto;
    padding:16px 10px 15px;
    font-size:12px;
    gap:5px;
  }
  .navIcon{font-size:15px}
  .userPanel{
    position:relative;
    z-index:2;
    min-width:0;
    padding-left:18px;
    background:linear-gradient(110deg,#e30600,#ee0900);
    border-left:1px solid #ffffff55;
  }
}
@media(min-width:1450px){
  .topInner{
    grid-template-columns:minmax(330px,390px) minmax(0,1fr) minmax(285px,320px);
    padding:0 36px;
  }
  .nav button{
    padding-left:12px;
    padding-right:12px;
    font-size:13px;
    gap:6px;
  }
}


/* v0.47.9.2 desktop header: guarantee full menu text before account panel */
@media(min-width:1101px){
  .topInner{
    grid-template-columns:minmax(285px,330px) minmax(0,1fr) 270px;
    gap:8px;
    padding:0 18px;
  }
  .brandMark{gap:11px}
  .headerFlame{width:46px;height:59px}
  .brandMark h1{font-size:20px}
  .brandMark small{font-size:12px;margin-top:5px}
  .nav{
    justify-content:space-between;
    overflow:visible;
    gap:0;
  }
  .nav button{
    min-width:0;
    padding:16px 7px 15px;
    font-size:11.5px;
    gap:4px;
  }
  .navIcon{font-size:14px}
  .userPanel{
    padding-left:14px;
    grid-template-columns:38px 1fr auto;
    gap:8px;
  }
  .userAvatar{width:38px;height:38px;font-size:20px}
  .userMeta b{font-size:13px}
  .userMeta span{font-size:11px}
  .logoutBtn{padding:7px 11px!important}
}
@media(min-width:1600px){
  .topInner{
    grid-template-columns:minmax(300px,350px) minmax(0,1fr) 290px;
    padding:0 24px;
    gap:12px;
  }
  .nav button{padding-left:10px;padding-right:10px;font-size:12.5px;gap:5px}
  .brandMark h1{font-size:22px}
}


/* v0.47.10 - operational report redesign */
.reportDateList{display:grid;gap:14px}
.reportDateCard{padding:0;overflow:hidden}
.reportDateHead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;cursor:pointer}
.reportDateHead:hover{background:rgba(0,0,0,.025)}
.reportDateHead h3{margin:3px 0 0}
.reportDateTotals{display:flex;gap:18px;align-items:center;text-align:right}
.reportDateTotals span{font-size:.9rem;color:var(--muted)}
.reportDateTotals b{font-size:1.15rem}
.reportButtons{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:10px;padding:0 20px 18px}
.reportHero{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.reportHero>div,.reportSummaryItem{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px}
.reportHero span,.reportSummaryItem span{display:block;color:var(--muted);font-size:.82rem;margin-bottom:6px}
.reportHero b,.reportSummaryItem b{font-size:1.1rem}
.reportSummaryGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.reportGrand{border-width:2px}
.reportShiftLinks{display:flex;gap:10px;margin:0 0 16px}
.tableScroll{overflow:auto}
.reportTable{min-width:880px}
.reportTotalRow td{border-top:2px solid var(--line)}
.reportFilters{margin-bottom:14px}
@media(max-width:800px){
 .reportButtons{grid-template-columns:1fr}
 .reportHero{grid-template-columns:1fr 1fr}
 .reportDateHead{align-items:flex-start}
 .reportDateTotals{display:block}
 .reportDateTotals span,.reportDateTotals b{display:block}
}
@media print{
 header.top,.pageTitle .actions,.pageTitle>button,.reportShiftLinks,.reportFilters,.reportButtons{display:none!important}
 main.wrap{max-width:none!important;padding:0!important}
 .card,.reportHero>div{box-shadow:none!important;break-inside:avoid}
 .tableScroll{overflow:visible}
 .reportTable{min-width:0;font-size:10px}
}


/* v0.47.11 two-path login landing */
.loginChoiceCard{width:min(760px,94vw);padding:30px 34px 42px}
.loginChoiceCard .loginBrand p{margin-bottom:18px}
.loginChoiceCard #loginChoicePane h2{margin-top:5px}
.loginChoiceGrid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0 8px}
.loginRoleCard{appearance:none;border:2px solid #ececec;background:#fff;border-radius:22px;min-height:245px;padding:22px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;box-shadow:0 8px 24px #0000000c;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.loginRoleCard:hover{transform:translateY(-3px);box-shadow:0 14px 32px #00000018}
.loginRoleCard:focus-visible{outline:4px solid #ffd100;outline-offset:3px}
.attendantRoleCard:hover{border-color:#ffd100}.managementRoleCard:hover{border-color:#e10600}
.loginRoleCard strong{font-size:24px;color:#222}.loginRoleCard small{font-size:13px;color:#666}
.roleClip{width:150px;height:120px;display:grid;place-items:center}
.roleClip svg{width:100%;height:100%;fill:#222}
.attendantRoleCard .roleClip svg{fill:#e10600}.managementRoleCard .roleClip svg{fill:#222}
.roleClip svg .clipCut{fill:#fff}
.loginPaneHead{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:4px 0 22px;text-align:center}
.loginPaneHead>div{grid-column:2}.loginPaneHead h2{margin:0}.loginPaneHead p{margin:5px 0 0}
.loginBackBtn{grid-column:1;grid-row:1;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid #ddd;background:#fff;color:#222;font-size:24px;line-height:1;cursor:pointer}
.loginBackBtn:hover{background:#fff7c8;border-color:#ffd100}
#attendantLoginPane,#cloudLoginPane{width:min(420px,100%);margin:0 auto}
#attendantLoginPane .primary,#cloudLoginPane .primary{margin-top:16px}
@media(max-width:620px){
 .loginChoiceCard{padding:24px 18px 36px;width:min(94vw,460px)}
 .loginChoiceGrid{grid-template-columns:1fr;gap:14px}
 .loginRoleCard{min-height:175px;padding:14px}
 .roleClip{width:115px;height:90px}
 .loginRoleCard strong{font-size:21px}
}

.offlineToggle,#offlineLoginPane{display:none!important}

/* v0.47.12.1 attendant cash count */
.cashCountSummary{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;margin:14px 0 4px;padding:12px 14px;border:1px solid #eee;border-radius:12px;background:#fafafa}
.cashCountSummary span{font-weight:700}.cashCountSummary b{font-size:19px}.cashCountSummary small{grid-column:1/-1;color:#777}

/* v0.47.12.5 visible application version */
.versionBadge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;background:#ffffff22;border:1px solid #ffffff55;color:#fff;font-size:11px;font-weight:800;white-space:nowrap;letter-spacing:.02em}
.appFooter{max-width:1500px;margin:18px auto 8px;padding:0 24px 14px;display:flex;justify-content:space-between;gap:12px;color:#777;font-size:11px}
.loginVersion{text-align:center;margin-top:22px;color:#888;font-size:11px;font-weight:700;letter-spacing:.02em}
@media(max-width:700px){
 .versionBadge{font-size:9px;padding:4px 6px}
 .appFooter{padding-left:14px;padding-right:14px;flex-direction:column;align-items:center;gap:3px;text-align:center}
}

.reportCashSectionTitle{margin:18px 0 8px}.cashSplitSummary{margin-top:16px}

.envBadge{font-size:10px;font-weight:800;letter-spacing:.08em;padding:4px 7px;border-radius:999px;border:1px solid currentColor;margin-left:6px}.danger{background:#8b1e1e;color:#fff;border:0}

/* v0.48.0.2 desktop navigation balance */
@media(min-width:1101px){
 .topInner{grid-template-columns:minmax(300px,350px) minmax(0,900px) 290px;justify-content:space-between}
 .nav{justify-content:center!important;gap:clamp(12px,2vw,34px)!important}
 .nav button{flex:0 0 auto!important;padding-left:10px!important;padding-right:10px!important}
}
@media(min-width:1500px){
 .nav{gap:clamp(18px,2.2vw,38px)!important}
}


/* v0.48.0.14 desktop header realignment: navigation isolated from account panel */
@media(min-width:1101px){
  .topInner{
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    grid-template-columns:clamp(270px,18vw,350px) minmax(0,1fr) clamp(315px,19vw,365px)!important;
    justify-content:stretch!important;
    gap:10px!important;
    padding:0 20px!important;
  }
  .brandMark{min-width:0!important;overflow:hidden}
  .nav{
    min-width:0!important;
    width:100%!important;
    justify-content:space-evenly!important;
    gap:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none;
    padding:0 4px;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav button{
    flex:0 0 auto!important;
    min-width:0!important;
    padding-left:clamp(6px,.55vw,11px)!important;
    padding-right:clamp(6px,.55vw,11px)!important;
    font-size:clamp(10.5px,.68vw,12.5px)!important;
    gap:4px!important;
  }
  .navIcon{font-size:14px!important}
  .userPanel{
    justify-self:end!important;
    width:100%!important;
    min-width:315px!important;
    padding:14px 0 12px 16px!important;
    display:grid!important;
    grid-template-columns:auto 42px minmax(145px,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:10px!important;
    row-gap:6px!important;
    align-items:center!important;
    border-left:1px solid #ffffff66!important;
  }
  .versionBadge{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:center!important;
  }
  .userAvatar{
    grid-column:2!important;
    grid-row:1/3!important;
    justify-self:end!important;
  }
  .userMeta{
    grid-column:3!important;
    grid-row:1!important;
    align-items:flex-end!important;
    text-align:right!important;
    justify-self:stretch!important;
  }
  .userMeta b,.userMeta span,.userMeta small{width:100%;text-align:right}
  .logoutBtn{
    grid-column:3!important;
    grid-row:2!important;
    justify-self:end!important;
    margin:0!important;
    min-width:104px;
  }
}
@media(min-width:1500px){
  .topInner{padding-left:28px!important;padding-right:28px!important;gap:14px!important}
  .nav button{font-size:12.5px!important;padding-left:12px!important;padding-right:12px!important}
}


/* v0.48.0.15 approved header: no avatar/version badge; account pinned right */
.userAvatar,.versionBadge{display:none!important}
@media(min-width:1101px){
 .topInner{grid-template-columns:clamp(270px,18vw,350px) minmax(0,1fr) clamp(230px,15vw,285px)!important}
 .userPanel{min-width:230px!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;padding:12px 0 10px 16px!important;row-gap:7px!important}
 .userMeta{grid-column:1!important;grid-row:1!important;align-items:flex-end!important;text-align:right!important;justify-self:stretch!important}
 .logoutBtn{grid-column:1!important;grid-row:2!important;justify-self:end!important;margin:0!important}
}
@media(max-width:700px){
 .userPanel{grid-template-columns:auto!important}
 .logoutBtn{grid-column:1!important;margin-left:0!important;justify-self:end!important}
}

/* v0.48.0.16 audit + closed shift revision */
.auditJson{white-space:pre-wrap;word-break:break-word;background:#f7f7f7;border:1px solid #ddd;border-radius:8px;padding:14px;max-height:520px;overflow:auto;font-size:12px}.reportFilters .row{align-items:end}
/* v0.48.0.45 report clarity */
.reportGroupRow td{background:#fafafa;border-top:2px solid var(--line);font-size:12px}
.reportSubtotalRow td{background:#fffdf1;border-top:1px solid #e9e1b0}
.compactDenom td,.compactDenom th{text-align:center}.compactDenom td:first-child,.compactDenom th:first-child{text-align:left}

/* v0.48.0.47 cloud confirmation progress feedback */
.processOverlay{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.48);display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(2px)}
.processCard{width:min(430px,92vw);background:#fff;border-radius:18px;padding:28px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.processCard h3{margin:14px 0 8px}.processCard p{margin:0 0 8px;line-height:1.45}.processCard small{color:#667085}
.processSpinner{width:48px;height:48px;margin:0 auto;border:5px solid #e5e7eb;border-top-color:#f5c400;border-right-color:#d71920;border-radius:50%;animation:processSpin .8s linear infinite}
@keyframes processSpin{to{transform:rotate(360deg)}}


/* v0.48.0.50 Android-only navigation drawer + manual cloud refresh */
.androidMobileBar,.androidDrawer,.androidDrawerBackdrop{display:none}
@media(max-width:700px){
  /* Android phone: replace horizontally scrolling tabs with one compact toolbar. */
  .topInner .nav{display:none!important}
  .top{position:sticky;top:0;z-index:900;padding-bottom:0!important}
  .androidMobileBar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:'menu current refresh' 'status status status';align-items:center;gap:7px 10px;position:sticky;top:0;z-index:850;background:#b80000;color:#fff;border-bottom:5px solid var(--yellow);padding:7px 10px 6px;box-shadow:0 3px 10px #0002}
  .androidMenuBtn,.androidRefreshBtn{border:1px solid #ffffff66;background:#ffffff10;color:#fff;border-radius:9px;min-height:40px;padding:7px 10px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px}
  .androidMenuBtn{grid-area:menu}.androidMenuBtn>span{font-size:23px;line-height:1}.androidMenuBtn b{font-size:12px}
  .androidCurrentView{grid-area:current;min-width:0;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffd500}
  .androidRefreshBtn{grid-area:refresh;background:#ffd500;color:#251d00;border-color:#ffd500}
  .androidRefreshBtn:disabled{opacity:.82}.androidRefreshGlyph{font-size:21px;line-height:1}.androidRefreshBtn.loading .androidRefreshGlyph{animation:androidRefreshSpin .8s linear infinite}
  .androidRefreshStatus{grid-area:status;text-align:right;font-size:9.5px;opacity:.9;min-height:11px}
  @keyframes androidRefreshSpin{to{transform:rotate(360deg)}}
  .androidDrawerBackdrop{display:block;position:fixed;inset:0;background:#0008;z-index:1100;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
  .androidDrawerBackdrop.open{opacity:1;visibility:visible}
  .androidDrawer{display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;width:min(86vw,360px);z-index:1110;background:#fff;box-shadow:16px 0 45px #0005;transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto;padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .androidDrawer.open{transform:translateX(0)}
  body.androidMenuOpen{overflow:hidden}
  .androidDrawerHead{background:linear-gradient(115deg,var(--red2),var(--red));color:#fff;padding:22px 18px 18px;display:grid;grid-template-columns:46px 1fr 32px;gap:11px;align-items:center;border-bottom:5px solid var(--yellow)}
  .androidDrawerFlame{width:42px;height:54px}.androidDrawerHead>div{display:flex;flex-direction:column;min-width:0}.androidDrawerHead b{font-size:16px}.androidDrawerHead span{font-size:12px;margin-top:3px}.androidDrawerHead small{font-size:10px;margin-top:6px;color:#dff7e5}.androidDrawerHead>button{border:0;background:#ffffff1a;color:#fff;border-radius:50%;width:32px;height:32px;font-size:24px;line-height:1}
  .androidDrawerTitle{padding:17px 18px 9px;font-size:10px;letter-spacing:.16em;font-weight:900;color:#777}
  .androidDrawerItem{width:calc(100% - 20px);margin:0 10px 4px;border:0;border-bottom:1px solid #eee;background:#fff;border-radius:10px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:8px;text-align:left;padding:12px 11px;color:#222;font-weight:800;font-size:14px}
  .androidDrawerItem.active{background:#fff6c8;color:#b31318;border-bottom-color:#ffe064}
  .androidDrawerIcon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#fff0f0;color:#d71920;font-size:18px}.androidDrawerItem.active .androidDrawerIcon{background:#ffd500;color:#7d0000}.androidDrawerItem>b{font-size:22px;color:#888}
}

.processProgress{height:7px;margin:16px 0 12px;background:#eef1f5;border-radius:999px;overflow:hidden}.processProgress span{display:block;height:100%;width:6%;border-radius:999px;background:linear-gradient(90deg,#f5c400,#d71920);transition:width .28s ease}
/* v0.48.0.82 Credit Control overview */
.kpi4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.kpi.green{border-top-color:#16853b}.creditOverviewGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.compactCard{margin:0}.creditRankList,.creditRecentList{display:grid;gap:8px;margin-top:12px}.creditRankRow,.creditRecentRow{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e7e7e7;background:#fff;border-radius:10px;padding:10px 12px;text-align:left;color:inherit}.creditRankRow{cursor:pointer}.creditRankRow:hover{border-color:#d6b400;background:#fffdf3}.creditRankRow span,.creditRecentRow span{display:grid;gap:2px;min-width:0}.creditRankRow small,.creditRecentRow small{color:#777;font-size:11px}.creditRankRow strong,.creditRecentRow strong{white-space:nowrap;font-size:15px}.smallBtn{padding:8px 10px;font-size:12px}@media(max-width:900px){.kpi4{grid-template-columns:repeat(2,minmax(0,1fr))}.creditOverviewGrid{grid-template-columns:1fr}}@media(max-width:520px){.kpi4{grid-template-columns:1fr 1fr}.creditRankRow,.creditRecentRow{align-items:flex-start}.creditRankRow strong,.creditRecentRow strong{font-size:13px}}

/* v0.48.0.84 persistent header refresh */
.headerActions{grid-column:2/4;display:flex;align-items:center;gap:8px;justify-self:start}.headerActions .logoutBtn{grid-column:auto!important;margin:0!important}.headerRefreshBtn{border:1px solid #ffffff88;background:#fff;color:#a80000;border-radius:9px;width:42px;height:42px;padding:0;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:21px;flex:0 0 42px}.headerRefreshBtn:hover{background:#fff7c8}.headerRefreshBtn:disabled{opacity:.72;cursor:wait}.headerRefreshBtn.loading .headerRefreshGlyph{display:inline-block;animation:headerRefreshSpin .8s linear infinite}@keyframes headerRefreshSpin{to{transform:rotate(360deg)}}
@media(max-width:700px){.headerActions{grid-column:1/3;margin-left:0}.headerRefreshBtn{width:38px;height:38px;padding:0;font-size:19px;flex-basis:38px}}

/* v0.48.0.86 approved Credit Control colour treatment */
.creditKpis .kpi.green{background:linear-gradient(135deg,#e7f8d8,#d4f0bf);color:#202124;border-top:0}.creditKpis .kpi.green small{color:#4f5d49;opacity:1}.recentPaymentsCard{background:linear-gradient(135deg,#f4f8ff,#eaf2ff);border-color:#dce8f8}.recentPaymentsCard .eyebrow{color:#1769aa}.recentPaymentsCard .creditRecentRow{background:#fff}


/* v0.48.0.89 approved Proposal A desktop header */
@media(min-width:1101px){
  .topInner{
    max-width:none!important;
    width:100%!important;
    grid-template-columns:minmax(330px,1fr) auto!important;
    grid-template-rows:82px 60px!important;
    grid-template-areas:'brand user' 'nav nav'!important;
    column-gap:28px!important;
    row-gap:0!important;
    min-height:142px!important;
    padding:0 34px!important;
  }
  .brandMark{grid-area:brand!important;align-self:center!important;min-width:0!important}
  .brandMark h1{font-size:24px!important;white-space:normal!important}
  .headerFlame{width:54px!important;height:68px!important}
  .nav{
    grid-area:nav!important;
    width:100%!important;
    justify-content:center!important;
    align-items:flex-end!important;
    gap:clamp(22px,3.7vw,72px)!important;
    overflow:visible!important;
  }
  .nav button{
    flex:0 0 auto!important;
    height:60px!important;
    padding:16px 10px 14px!important;
    font-size:13px!important;
    gap:7px!important;
  }
  .navIcon{font-size:17px!important}
  .userPanel{
    grid-area:user!important;
    align-self:center!important;
    justify-self:end!important;
    min-width:0!important;
    width:auto!important;
    padding:0 0 0 22px!important;
    margin:0!important;
    border-left:1px solid #ffffff66!important;
    background:transparent!important;
    display:flex!important;
    align-items:center!important;
    gap:18px!important;
    overflow:visible!important;
  }
  .userMeta{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:0!important;
    min-width:0!important;
    white-space:nowrap!important;
    line-height:1.2!important;
  }
  .userMeta b,.userMeta .userRole,.userMeta .cloudStatus,.userMeta .userLogin{
    display:block!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0 16px!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    opacity:1!important;
  }
  .userMeta b{font-size:14px!important;padding-left:0!important}
  .userMeta .userRole{font-size:12px!important;border-left:1px solid #ffffff66!important}
  .userMeta .cloudStatus{font-size:11px!important;color:#79e28f!important;border-left:1px solid #ffffff66!important}
  .userMeta .userLogin{font-size:11px!important;border-left:1px solid #ffffff66!important;padding-right:0!important}
  .headerActions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    grid-column:auto!important;
    margin:0!important;
    flex:0 0 auto!important;
  }
  .headerRefreshBtn{width:42px!important;height:42px!important;flex:0 0 42px!important}
  .logoutBtn{min-width:110px!important;padding:11px 18px!important;font-size:14px!important}
}
@media(min-width:1101px) and (max-width:1350px){
  .topInner{padding-left:22px!important;padding-right:22px!important;column-gap:16px!important}
  .userPanel{gap:10px!important;padding-left:14px!important}
  .userMeta b,.userMeta .userRole,.userMeta .cloudStatus,.userMeta .userLogin{padding-left:9px!important;padding-right:9px!important}
  .userMeta b{padding-left:0!important}.userMeta .userLogin{padding-right:0!important}
  .nav{gap:clamp(12px,2.5vw,36px)!important}
}
