@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root{
    --navy:#123a86;
    --primary:#1f5bd8;
    --primary-2:#2878ef;
    --sky:#4aa3ff;
    --cyan:#6bc1ff;
    --pale:#eef6ff;
    --pale-2:#f6faff;
    --bg:#f4f7fb;
    --surface:#ffffff;
    --text:#13254c;
    --muted:#75839a;
    --border:#e1e8f1;
    --danger:#ab3340;
    --danger-bg:#fff1f3;
    --success:#16704a;
    --success-bg:#ecf8f2;
    --shadow:0 10px 28px rgba(27,71,141,.09);
    --shadow-soft:0 5px 18px rgba(24,61,119,.07);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:'Prompt',sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}
a{text-decoration:none;color:inherit}
[hidden]{display:none!important}
.icon{display:inline-block;flex:0 0 auto}

.mobile-app{min-height:100vh;padding-bottom:78px}
.app-header{
    position:sticky;top:0;z-index:30;height:72px;background:rgba(255,255,255,.98);
    border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;
    padding:0 16px;backdrop-filter:blur(12px)
}
.header-left{display:flex;align-items:center;gap:11px;min-width:0}
.brand-logo{
    width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
    color:#fff;font-size:11px;font-weight:700;letter-spacing:.3px;
    background:linear-gradient(135deg,var(--navy),var(--sky));box-shadow:0 6px 14px rgba(31,91,216,.22)
}
.header-title{min-width:0}
.header-title strong{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-title span{display:block;font-size:8px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-action{
    width:39px;height:39px;border:1px solid var(--border);border-radius:11px;background:#fff;
    display:grid;place-items:center;color:#60718d;flex:0 0 auto;cursor:pointer;padding:0
}
.header-logout-form{margin:0;display:flex}
.header-back{color:var(--primary)}

.app-content{width:100%;max-width:760px;margin:0 auto;padding:17px 15px 24px}

/* Period tabs */
.period-tabs{
    display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid #d9e3f0;
    border-radius:15px;padding:4px;margin-bottom:20px;box-shadow:0 2px 8px rgba(22,55,109,.03)
}
.period-tabs a{
    min-height:41px;border-radius:11px;display:flex;align-items:center;justify-content:center;
    font-size:10px;color:#66758e;font-weight:500
}
.period-tabs a.active{
    color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-2));
    box-shadow:0 5px 12px rgba(31,91,216,.22)
}

.section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 1px 11px}
.section-heading h1,.section-heading h2{margin:0;font-size:18px;font-weight:600}
.section-heading span{font-size:8px;color:var(--muted)}

/* Overview */
.overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px}
.overview-card{
    color:#fff;border-radius:17px;padding:14px 13px 15px;min-height:152px;position:relative;overflow:hidden;
    box-shadow:var(--shadow)
}
.overview-card::after{
    content:"";position:absolute;right:-25px;bottom:-32px;width:90px;height:90px;border-radius:50%;
    background:rgba(255,255,255,.08)
}
.overview-card.card-1{background:linear-gradient(145deg,#154fc4,#2878ef)}
.overview-card.card-2{background:linear-gradient(145deg,#206bd9,#3f95f4)}
.overview-card.card-3{background:linear-gradient(145deg,#3187e8,#63b5fb)}
.overview-card-link{display:block;transition:transform .16s ease,box-shadow .16s ease}
.overview-card-link:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(26,54,101,.2)}
.overview-card-link:focus-visible{outline:3px solid rgba(31,91,216,.25);outline-offset:3px}
.overview-card-action{
    display:flex;align-items:center;gap:3px;margin-top:11px;font-size:8px;font-weight:600;
    opacity:.9
}
.overview-icon{
    width:39px;height:39px;border-radius:12px;background:rgba(255,255,255,.17);
    display:grid;place-items:center;margin-bottom:13px
}
.overview-value{font-size:29px;line-height:1;font-weight:600;letter-spacing:-.5px}
.overview-label{font-size:9px;margin-top:8px;line-height:1.45;opacity:.96}

/* Main service categories */
.service-grid{display:grid;grid-template-columns:1fr;gap:11px}
.service-card{
    background:#fff;border:1px solid var(--border);border-radius:16px;min-height:86px;padding:13px 14px;
    display:flex;align-items:center;gap:13px;box-shadow:var(--shadow-soft);transition:.16s ease
}
.service-card:active{transform:scale(.99)}
.service-icon{
    width:51px;height:51px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;
    background:linear-gradient(145deg,#e8f2ff,#f4f9ff);color:var(--primary)
}
.service-icon.medium{color:#2878ef;background:linear-gradient(145deg,#eaf5ff,#f5faff)}
.service-icon.light{color:#388fe9;background:linear-gradient(145deg,#edf7ff,#f8fbff)}
.service-copy{flex:1;min-width:0}
.service-copy strong{display:block;font-size:12px;font-weight:600}
.service-copy span{display:block;font-size:9px;color:var(--muted);margin-top:4px;line-height:1.45}
.service-chevron{color:#8390a5;display:grid;place-items:center}

/* Category landing */
.category-hero{
    background:linear-gradient(135deg,var(--navy),var(--primary-2));color:#fff;border-radius:18px;
    padding:20px;margin-bottom:14px;box-shadow:var(--shadow)
}
.category-hero .hero-icon{
    width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.16);
    display:grid;place-items:center;margin-bottom:13px
}
.category-hero h1{font-size:18px;margin:0 0 5px;font-weight:600}
.category-hero p{font-size:9px;line-height:1.65;margin:0;opacity:.78}
/* Deliberately not sticky: .app-header (72px) and .supply-tools-card (top:78px)
   are already pinned, and a third sticky layer would both overlap them and eat
   scarce phone height. Horizontal padding matches .app-header so the edges line
   up with the header above it. */
.company-bar{
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 16px;
    background:#fff;
    border-bottom:1px solid var(--border);
    box-shadow:0 2px 8px rgba(24,61,117,.04);
}
.company-bar-label{
    font-size:10px;
    font-weight:600;
    color:var(--muted);
    flex:0 0 auto;
}
.company-bar-tabs{
    display:flex;
    gap:7px;
    overflow:auto;
    scrollbar-width:none;
    flex:1;
    min-width:0;
}
.company-bar-tabs::-webkit-scrollbar{display:none}
.company-bar-tabs form{flex:0 0 auto}
.company-bar-tab{
    min-height:32px;
    padding:0 15px;
    border:1px solid #dce5f1;
    border-radius:999px;
    background:#fff;
    color:#617088;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    cursor:pointer;
    font-family:inherit;
    transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.company-bar-tab.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}
.company-switch-card{
    display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;
    background:linear-gradient(135deg,var(--navy),var(--primary-2));color:#fff;
    border-radius:18px;padding:16px 18px;margin-bottom:14px;box-shadow:var(--shadow);
}
.company-switch-card .company-switch-icon{
    width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.16);
    display:grid;place-items:center;flex:0 0 auto;color:#fff;
}
.company-switch-card .company-switch-copy{min-width:0;flex:1;}
.company-switch-card .company-switch-label{font-size:9px;opacity:.75;display:block;margin-bottom:3px;}
.company-switch-card .company-switch-name{font-size:16px;font-weight:700;display:block;color:#fff;}
.company-switch-card .company-switch-hint{font-size:9px;opacity:.8;display:block;margin-top:4px;}
.company-switch-card .company-switch-arrow{color:#fff;opacity:.85;flex:0 0 auto;}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.choice-card{
    min-height:150px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:16px;
    display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow-soft)
}
.choice-card .choice-icon{
    width:47px;height:47px;border-radius:14px;background:var(--pale);color:var(--primary);
    display:grid;place-items:center
}
.choice-card strong{font-size:12px;display:block;margin-top:14px}
.choice-card span{font-size:8px;color:var(--muted);display:block;margin-top:4px;line-height:1.55}
.choice-card .choice-arrow{color:#8390a5;align-self:flex-end;margin-top:10px}

/* History shared */
.list-card{background:#fff;border:1px solid var(--border);border-radius:15px;overflow:hidden}
.list-item{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid #edf0f4}
.list-item:last-child{border-bottom:0}
.list-icon{width:38px;height:38px;border-radius:11px;background:#eff6ff;color:var(--primary);display:grid;place-items:center;flex:0 0 auto}
.list-main{flex:1;min-width:0}
.list-main strong{display:block;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-main span{display:block;font-size:9px;color:var(--muted);margin-top:3px}
.list-side{text-align:right;flex:0 0 auto}
.list-side time{display:block;font-size:8px;color:#8d96a6;margin-top:5px}
.status{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:999px;font-size:8px;font-weight:500}
.status-neutral{background:#f1f3f6;color:#667085}
.status-progress{background:#eef4ff;color:var(--primary)}
.status-success{background:var(--success-bg);color:var(--success)}
.status-danger{background:var(--danger-bg);color:var(--danger)}
.empty-state{padding:34px 18px;text-align:center;color:var(--muted)}
.empty-icon{width:48px;height:48px;border-radius:14px;background:#eef6ff;display:grid;place-items:center;margin:0 auto 10px;color:var(--primary)}
.empty-state strong{display:block;font-size:11px;font-weight:500;color:#4d5767}
.empty-state span{display:block;font-size:9px;margin-top:4px}

.btn{
    min-height:42px;border:1px solid transparent;border-radius:10px;padding:0 14px;
    display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:11px;font-weight:500;cursor:pointer
}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
.btn-secondary{background:#fff;border-color:var(--border);color:#465164}
.btn-block{width:100%}
.btn:disabled,.btn[aria-disabled="true"]{cursor:not-allowed;opacity:.55;box-shadow:none}

.bottom-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:40;height:68px;background:rgba(255,255,255,.99);
    border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(3,1fr);
    padding-bottom:env(safe-area-inset-bottom)
}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#8a93a3;font-size:8px;position:relative}
.bottom-nav.bottom-nav-four{grid-template-columns:repeat(4,1fr)}
.bottom-nav.bottom-nav-two{grid-template-columns:repeat(2,1fr)}
html.keyboard-open .bottom-nav{display:none}
.bottom-nav a.active{color:var(--primary);font-weight:500}
.bottom-nav a.active::before{
    content:"";position:absolute;top:0;width:44px;height:3px;border-radius:0 0 5px 5px;background:var(--primary)
}

/* Login stays clean and secure */
.login-body{
    min-height:100vh;background:
        radial-gradient(circle at top left,rgba(42,120,239,.10),transparent 32%),
        linear-gradient(180deg,#f7faff,#edf4fb);
    display:grid;place-items:center;padding:18px
}
.login-card{width:100%;max-width:430px;background:#fff;border:1px solid var(--border);border-radius:20px;padding:25px 21px;box-shadow:var(--shadow)}
.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:24px}
.login-brand .brand-mark{
    width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--navy),var(--sky));color:#fff;
    display:grid;place-items:center;font-size:11px;font-weight:700
}
.login-brand strong{font-size:14px;display:block}
.login-brand span{font-size:9px;color:var(--muted);display:block;margin-top:2px}
.login-card h1{font-size:20px;margin:0 0 5px}
.login-card>p{font-size:10px;color:var(--muted);margin:0 0 18px;line-height:1.6}
.form-group{margin-bottom:14px}
.form-label{display:block;font-size:10px;font-weight:500;margin-bottom:7px}
.input-wrap{position:relative}
.form-control{width:100%;height:46px;border:1px solid #d4dbe7;border-radius:10px;padding:0 12px;outline:none;font-size:12px;background:#fff;color:var(--text)}
.form-control.with-action{padding-right:47px}
.form-control:focus{border-color:#8daee8;box-shadow:0 0 0 3px rgba(42,120,239,.08)}
.input-action{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;background:transparent;border-radius:9px;display:grid;place-items:center;color:#808a9b;cursor:pointer}
.remember-row{display:flex;align-items:center;gap:8px;margin-top:4px}
.remember-row input{width:16px;height:16px;accent-color:var(--primary)}
.remember-row label{font-size:9px;color:#5e6878}
.login-note{margin-top:15px;padding:11px 12px;border-radius:10px;background:#f6f9fd;color:#737d8d;display:flex;gap:8px;align-items:flex-start;font-size:8px;line-height:1.7}
.error{background:var(--danger-bg);color:var(--danger);border:1px solid #ffd1d6;padding:11px 12px;border-radius:10px;margin-bottom:14px;font-size:9px}

/* account */
.account-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:18px;box-shadow:var(--shadow-soft)}
.account-row{display:flex;align-items:center;gap:12px}
.account-avatar{width:48px;height:48px;border-radius:15px;background:var(--pale);color:var(--primary);display:grid;place-items:center}
.account-row strong{display:block;font-size:12px}
.account-row span{display:block;font-size:9px;color:var(--muted);margin-top:3px}
.account-actions{margin-top:16px}

@media(min-width:580px){
    .service-grid{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:700px){
    .bottom-nav{left:50%;transform:translateX(-50%);max-width:760px;border-left:1px solid var(--border);border-right:1px solid var(--border)}
}
@media(max-width:370px){
    .overview-grid{gap:7px}
    .overview-card{padding:12px 10px;min-height:145px}
    .overview-value{font-size:25px}
    .overview-label{font-size:8px}
}


/* =====================================================
   Work Order Wizard
   ===================================================== */
.wizard-stepper{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;
    margin-bottom:13px
}
.wizard-step{
    min-width:0;background:#fff;border:1px solid var(--border);border-radius:12px;
    padding:9px 6px;text-align:center;color:#8b96a8
}
.wizard-number{
    width:24px;height:24px;border-radius:50%;margin:0 auto 5px;
    background:#f0f3f7;color:#7b8799;display:grid;place-items:center;
    font-size:9px;font-weight:600
}
.wizard-step span{
    display:block;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.wizard-step.active{
    border-color:#b9d6fa;background:#f5faff;color:var(--primary)
}
.wizard-step.active .wizard-number{
    background:var(--primary);color:#fff
}
.wizard-step.done{
    border-color:#d9e9fb;background:#f8fbff;color:#4b79b9
}
.wizard-step.done .wizard-number{
    background:#ddecff;color:var(--primary)
}

.wizard-card{
    background:#fff;border:1px solid var(--border);border-radius:18px;
    padding:18px 16px;box-shadow:var(--shadow-soft)
}
.wizard-card-wide{padding-bottom:16px}
.wizard-card-head{margin-bottom:16px}
.wizard-card-head small{
    display:block;font-size:8px;font-weight:600;color:var(--primary);letter-spacing:.04em
}
.wizard-card-head h1{
    font-size:17px;margin:4px 0 0;font-weight:600
}
.wizard-card-head p{
    font-size:9px;color:var(--muted);line-height:1.6;margin:5px 0 0
}

.wizard-field{margin-bottom:14px}
.wizard-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wizard-field label{
    display:block;font-size:10px;font-weight:500;margin-bottom:7px
}
.wizard-field label b{color:#d13f4b;font-weight:600}
.wizard-field small{
    display:block;font-size:8px;color:var(--muted);margin-top:5px
}
.wizard-readonly{background:#f4f6f9;color:#6e798a}
.wizard-field textarea.form-control{
    height:auto;min-height:82px;padding:10px 12px;resize:vertical;line-height:1.6
}
.wizard-actions{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    margin-top:20px;padding-top:15px;border-top:1px solid #edf1f5
}
.wizard-actions .btn{min-width:108px}

.wizard-alert{
    border-radius:12px;padding:11px 12px;margin-bottom:14px;
    display:flex;align-items:flex-start;gap:9px;font-size:9px;line-height:1.6
}
.wizard-alert strong{display:block;font-size:10px;margin-bottom:2px}
.wizard-alert span{display:block}
.wizard-alert-error{
    background:#fff1f3;border:1px solid #ffd2d8;color:#a5303b
}
.wizard-alert-success{
    background:#edf8f4;border:1px solid #cfeadb;color:#146b48
}
.wizard-alert-info{
    background:#eef4ff;border:1px solid #cfdff8;color:#1f4a9b
}
.other-company-draft-links{
    display:flex;flex-wrap:wrap;gap:6px;margin-top:8px
}
.other-company-draft-link{
    display:inline-flex;align-items:center;gap:4px;
    border:1px solid #cfdff8;border-radius:999px;background:#fff;
    color:inherit;font:inherit;font-weight:600;padding:5px 10px;cursor:pointer
}
.other-company-draft-link:hover{background:#f4f8ff}
.other-company-draft-link:focus-visible{outline:2px solid rgba(31,91,216,.35);outline-offset:2px}

.wizard-section-title{
    font-size:11px;font-weight:600;margin:18px 2px 9px
}

/* Job selection */
.job-selection-list{display:grid;grid-template-columns:1fr;gap:9px}
.job-select-card{
    border:1px solid var(--border);border-radius:14px;background:#fff;
    overflow:hidden;transition:.15s ease
}
.job-select-card.selected{
    border-color:#9bc6f7;background:#f8fbff;box-shadow:0 0 0 2px rgba(31,91,216,.04)
}
.job-select-card.out-of-stock{
    background:#f5f7fa;border-color:#e1e6ed;box-shadow:none;opacity:.7
}
.job-select-card.out-of-stock .job-select-main{cursor:not-allowed}
.job-select-card.out-of-stock .job-checkbox-ui{background:#edf0f4;border-color:#d6dce5}
.job-select-main{
    min-height:68px;padding:12px;display:flex;align-items:center;gap:11px;cursor:pointer
}
.job-select-main input{position:absolute;opacity:0;pointer-events:none}
.job-checkbox-ui{
    width:24px;height:24px;border-radius:7px;border:1.5px solid #cbd5e2;
    background:#fff;position:relative;flex:0 0 auto
}
.job-select-main input:checked + .job-checkbox-ui{
    border-color:var(--primary);background:var(--primary)
}
.job-select-main input:checked + .job-checkbox-ui::after{
    content:"";position:absolute;left:7px;top:3px;width:6px;height:11px;
    border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)
}
.job-select-copy{min-width:0}
.job-select-copy strong{
    display:block;font-size:11px;font-weight:600;color:var(--navy)
}
.job-select-copy span{
    display:block;font-size:9px;color:var(--muted);margin-top:3px;line-height:1.45
}
.job-detail{
    display:none;padding:0 12px 12px 47px
}
.job-detail.show{display:block}
.job-detail label{
    display:block;font-size:8px;color:#62718a;margin-bottom:6px
}

/* Review */
.review-head{
    background:linear-gradient(135deg,var(--navy),var(--primary-2));color:#fff;
    border-radius:18px;padding:18px;margin-bottom:12px;display:flex;
    align-items:flex-start;justify-content:space-between;gap:12px;box-shadow:var(--shadow)
}
.review-head small{display:block;font-size:8px;opacity:.72}
.review-head h1{font-size:20px;margin:5px 0 2px}
.review-head span{font-size:8px;opacity:.78}
.review-head>.status{
    background:rgba(255,255,255,.15);color:#fff;white-space:nowrap
}

.review-section{
    background:#fff;border:1px solid var(--border);border-radius:16px;
    margin-bottom:11px;overflow:hidden;box-shadow:0 3px 12px rgba(25,61,118,.04)
}
.review-section-head{
    min-height:53px;padding:11px 13px;border-bottom:1px solid #edf1f5;
    display:flex;align-items:center;justify-content:space-between;gap:12px
}
.review-section-head small{
    display:block;font-size:7px;color:var(--primary);font-weight:600
}
.review-section-head strong{
    display:block;font-size:11px;margin-top:2px
}
.review-section-head a{
    min-height:30px;padding:0 10px;border-radius:8px;background:var(--pale);
    color:var(--primary);display:flex;align-items:center;font-size:8px;font-weight:500
}
.review-grid{
    display:grid;grid-template-columns:1fr 1fr
}
.review-grid>div{
    padding:11px 13px;border-right:1px solid #edf1f5;border-bottom:1px solid #edf1f5;
    min-width:0
}
.review-grid>div:nth-child(2n){border-right:0}
.review-grid>div.full{grid-column:1/-1;border-right:0}
.review-grid span{
    display:block;font-size:7px;color:var(--muted);margin-bottom:4px
}
.review-grid strong{
    display:block;font-size:10px;font-weight:500;word-break:break-word
}

.review-job-list{padding:5px 13px}
.review-job{
    display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f5
}
.review-job:last-child{border-bottom:0}
.review-job-number{
    width:25px;height:25px;border-radius:8px;background:var(--pale);
    color:var(--primary);display:grid;place-items:center;font-size:8px;font-weight:600;flex:0 0 auto
}
.review-job strong{display:block;font-size:10px;font-weight:500}
.review-job span{
    display:block;font-size:8px;color:#637089;line-height:1.65;margin-top:3px
}
.review-job span.muted{color:#9aa3b1}

.review-submit-card{
    background:#fff;border:1px solid var(--border);border-radius:16px;padding:15px;
    box-shadow:var(--shadow-soft);margin-top:14px
}
.review-submit-card>div{margin-bottom:12px}
.review-submit-card strong{display:block;font-size:11px}
.review-submit-card span{display:block;font-size:8px;color:var(--muted);line-height:1.6;margin-top:4px}
.review-submit-card button:disabled{
    opacity:.45;cursor:not-allowed
}
.empty-state.compact{padding:18px}

@media(min-width:650px){
    .job-selection-list{grid-template-columns:1fr 1fr}
}
@media(max-width:370px){
    .wizard-field-row{grid-template-columns:1fr}
    .wizard-step span{font-size:6px}
}

.list-item-link{color:inherit}
.list-item-link:active{background:#f7faff}
.list-chevron{color:#9aa6b8;display:grid;place-items:center;flex:0 0 auto}
button.list-item{background:none;border:0;width:100%;text-align:left;font:inherit;cursor:pointer;color:inherit}
button.list-item:active{background:#f7faff}
button.list-item.selected{background:#f4f8ff}


/* =====================================================
   Phase 11 - Mobile Readability
   ===================================================== */
body{font-size:14px}

/* Header */
.header-title strong{font-size:16px}
.header-title span{font-size:11px}
.brand-logo{font-size:12px}

/* Dashboard */
.period-tabs a{font-size:12px}
.section-heading h1,.section-heading h2{font-size:21px}
.section-heading span{font-size:11px}
.overview-value{font-size:32px}
.overview-label{font-size:11px;line-height:1.5}
.service-copy strong{font-size:14px}
.service-copy span{font-size:11px;line-height:1.55}

/* Category */
.category-hero h1{font-size:20px}
.category-hero p{font-size:11px;line-height:1.7}
.choice-card strong{font-size:14px}
.choice-card span{font-size:11px;line-height:1.55}

/* Bottom Navigation */
.bottom-nav a{font-size:10px}

/* Login */
.login-brand strong{font-size:16px}
.login-brand span{font-size:11px}
.login-card h1{font-size:23px}
.login-card>p{font-size:12px}
.form-label{font-size:12px}
.form-control{font-size:14px}
.remember-row label{font-size:11px}
.login-note{font-size:10px}

/* History / Lists */
.list-main strong{font-size:13px}
.list-main span{font-size:11px;line-height:1.5}
.list-side time{font-size:10px}
.status{font-size:10px}
.empty-state strong{font-size:13px}
.empty-state span{font-size:11px}

/* Wizard */
.wizard-step span{font-size:9px}
.wizard-number{font-size:11px}
.wizard-card-head small{font-size:10px}
.wizard-card-head h1{font-size:20px}
.wizard-card-head p{font-size:11px}
.wizard-field label{font-size:12px}
.wizard-field small{font-size:10px}
.wizard-alert{font-size:11px}
.wizard-alert strong{font-size:12px}
.wizard-section-title{font-size:13px}

/* Job selection */
.job-select-copy strong{font-size:13px}
.job-select-copy span{font-size:11px}
.job-detail label{font-size:10px}

/* Review / Detail */
.review-head small{font-size:10px}
.review-head h1{font-size:23px}
.review-head span{font-size:10px}
.review-section-head small{font-size:9px}
.review-section-head strong{font-size:13px}
.review-section-head a{font-size:10px}
.review-grid span{font-size:9px}
.review-grid strong{font-size:12px}
.review-job strong{font-size:12px}
.review-job span{font-size:10px}
.review-submit-card strong{font-size:13px}
.review-submit-card span{font-size:10px}

/* Account / Buttons */
.account-row strong{font-size:14px}
.account-row span{font-size:11px}
.btn{font-size:12px}

@media(max-width:370px){
    .overview-label{font-size:10px}
    .wizard-step span{font-size:8px}
}


/* =====================================================
   Phase 11 - Order Product List
   product_code stays internal and is not displayed.
   ===================================================== */
.order-product-card{
    background:#fff;border:1px solid var(--border);border-radius:17px;
    overflow:hidden;box-shadow:var(--shadow-soft)
}
.order-product-head{padding:16px 15px;border-bottom:1px solid #edf1f5}
.order-product-head strong{display:block;font-size:14px;font-weight:600}
.order-product-head span{
    display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.55
}
.order-product-list{display:flex;flex-direction:column}
.order-product-row{
    min-height:68px;display:flex;align-items:center;gap:12px;
    padding:12px 15px;border-bottom:1px solid #edf1f5
}
.order-product-row:last-child{border-bottom:0}
.order-product-icon{
    width:40px;height:40px;border-radius:12px;background:var(--pale);
    color:var(--primary);display:grid;place-items:center;flex:0 0 auto
}
.order-product-name{min-width:0}
.order-product-name strong{display:block;font-size:13px;font-weight:500}
.order-product-name span{display:block;margin-top:3px;font-size:10px;color:var(--muted)}
.order-coming-note{
    margin:12px;padding:11px 12px;border-radius:11px;background:#f4f9ff;
    color:#5c6f8d;display:flex;gap:9px;align-items:flex-start;
    font-size:10px;line-height:1.6
}


/* =====================================================
   Phase 12 - Job Search + New History
   ===================================================== */

/* Job search */
.job-search-wrap{
    margin-bottom:12px;
}
.job-search-box{
    height:46px;
    background:#fff;
    border:1px solid #cfe0f4;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 10px 0 12px;
    color:#71819a;
}
.job-search-box:focus-within{
    border-color:#8fbae9;
    box-shadow:0 0 0 3px rgba(31,91,216,.07);
}
.job-search-box input{
    min-width:0;
    flex:1;
    height:100%;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
    font-size:13px;
}
.job-search-box button{
    width:32px;
    height:32px;
    border:0;
    border-radius:9px;
    background:#f2f6fb;
    color:#708099;
    display:grid;
    place-items:center;
}
.job-search-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:7px 3px 0;
    font-size:10px;
    color:var(--muted);
}
.job-select-card.job-hidden{
    display:none;
}
.job-select-copy strong{
    font-size:13px;
    line-height:1.55;
}

/* New History */
.history-hero{
    border-radius:18px;
    padding:18px;
    margin-bottom:12px;
    background:linear-gradient(135deg,#123a86,#2878ef);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    box-shadow:var(--shadow);
}
.history-hero small{
    display:block;
    font-size:10px;
    opacity:.72;
}
.history-hero h1{
    margin:4px 0 4px;
    font-size:21px;
    font-weight:600;
}
.history-hero p{
    margin:0;
    max-width:270px;
    font-size:10px;
    line-height:1.65;
    opacity:.82;
}
.history-hero-icon{
    width:50px;
    height:50px;
    border-radius:15px;
    background:rgba(255,255,255,.14);
    display:grid;
    place-items:center;
    flex:0 0 auto;
}

.history-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-bottom:12px;
}
.history-summary-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:11px;
    box-shadow:0 3px 12px rgba(25,61,118,.04);
}
.history-summary-card.active{
    border-color:#9bc6f7;
    background:#f5faff;
}
.history-summary-icon{
    width:32px;
    height:32px;
    border-radius:10px;
    background:#eef6ff;
    color:var(--primary);
    display:grid;
    place-items:center;
    margin-bottom:9px;
}
.history-summary-card span{
    display:block;
    font-size:10px;
    color:var(--muted);
}
.history-summary-card strong{
    display:block;
    margin-top:3px;
    font-size:19px;
    font-weight:600;
    color:var(--navy);
}

.history-search-form{
    margin-bottom:10px;
}
.history-search-box{
    height:46px;
    border:1px solid var(--border);
    border-radius:13px;
    background:#fff;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 11px;
    color:#77869c;
}
.history-search-box:focus-within{
    border-color:#91bceb;
    box-shadow:0 0 0 3px rgba(31,91,216,.06);
}
.history-search-box input{
    min-width:0;
    flex:1;
    border:0;
    outline:0;
    height:100%;
    background:transparent;
    font-size:12px;
    color:var(--text);
}
.history-search-box a{
    width:30px;
    height:30px;
    border-radius:8px;
    background:#f3f6fa;
    display:grid;
    place-items:center;
}

.history-filter-tabs{
    display:flex;
    gap:7px;
    overflow:auto;
    padding-bottom:4px;
    margin-bottom:11px;
}
.history-filter-tabs a{
    flex:0 0 auto;
    min-height:34px;
    padding:0 13px;
    border-radius:999px;
    border:1px solid var(--border);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    color:#65748b;
}
.history-filter-tabs a.active{
    border-color:var(--primary);
    background:var(--primary);
    color:#fff;
}

.history-result-head{
    min-height:31px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 2px 7px;
}
.history-result-head strong{
    font-size:12px;
    font-weight:600;
}
.history-result-head span{
    font-size:10px;
    color:var(--muted);
}

.history-feed{
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 4px 16px rgba(25,61,118,.04);
}
.history-feed-item{
    min-height:92px;
    display:flex;
    align-items:center;
    gap:11px;
    padding:13px;
    border-bottom:1px solid #edf1f5;
}
.history-feed-item:last-child{
    border-bottom:0;
}
.history-feed-item:active{
    background:#f7faff;
}
.history-feed-icon{
    width:43px;
    height:43px;
    border-radius:13px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    color:var(--primary);
    background:#edf5ff;
}
.history-feed-icon.type-order{
    color:#2878ef;
    background:#eef7ff;
}
.history-feed-icon.type-internal{
    color:#3a8fe4;
    background:#f0f8ff;
}
.history-feed-main{
    min-width:0;
    flex:1;
}
.history-feed-top{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:4px;
}
.history-feed-top time{
    margin-left:auto;
    color:#94a0b1;
    font-size:8px;
}
.history-type-badge{
    min-height:21px;
    padding:0 7px;
    border-radius:999px;
    background:#eef4ff;
    color:var(--primary);
    display:inline-flex;
    align-items:center;
    font-size:8px;
    font-weight:500;
}
.history-feed-main>strong{
    display:block;
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.history-feed-main>span{
    display:block;
    margin-top:3px;
    font-size:10px;
    color:var(--muted);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.history-feed-main>small{
    display:block;
    margin-top:4px;
    font-size:9px;
    color:#8090a6;
}
.history-feed-side{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:9px;
    color:#9aa6b7;
    flex:0 0 auto;
}
.history-empty{
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:38px 18px;
    text-align:center;
}
.history-empty .empty-icon{
    margin-bottom:10px;
}
.history-empty strong{
    display:block;
    font-size:13px;
}
.history-empty span{
    display:block;
    margin-top:5px;
    font-size:10px;
    color:var(--muted);
}

@media(max-width:370px){
    .history-summary-card{
        padding:9px;
    }
    .history-summary-card strong{
        font-size:17px;
    }
    .history-feed-item{
        padding:11px 10px;
    }
}


/* Phase 13 - History list show number first */
.history-feed-main>strong{font-size:13px;font-weight:600;color:var(--navy)}
.history-feed-main>span{display:block;margin-top:3px;font-size:10px;color:#56657d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-feed-main>small{display:block;margin-top:4px;font-size:9px;color:#8a97a9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* =====================================================
   Phase 14 - Step 4 redesign
   ===================================================== */
.work-job-card{
    padding-bottom:18px;
}
.work-job-head{
    margin-bottom:14px;
}
.job-panel{
    margin-bottom:14px;
}
.job-search-box button{
    min-width:44px;
    height:30px;
    padding:0 9px;
    border:0;
    border-radius:8px;
    background:#eef4ff;
    color:var(--primary);
    font-size:10px;
    font-weight:600;
}
.job-note-box{
    display:flex;
    align-items:flex-start;
    gap:9px;
    padding:11px 12px;
    margin-top:10px;
    border-radius:12px;
    background:#f5f9ff;
    color:#5d6d85;
    font-size:10px;
    line-height:1.6;
}
.job-note-box strong{
    display:block;
    font-size:11px;
    color:var(--navy);
}
.job-note-box span{
    display:block;
    margin-top:2px;
}
.job-selection-list-redesign{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.job-select-card-redesign{
    border:1px solid #dbe6f4;
    border-radius:16px;
    background:#fff;
    padding:0;
    box-shadow:0 4px 14px rgba(22,53,102,.03);
    overflow:hidden;
}
.job-select-card-redesign.selected{
    border-color:#7fb0eb;
    box-shadow:0 8px 20px rgba(31,91,216,.09);
    background:#fbfdff;
}
.job-select-main-redesign{
    min-height:72px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 14px;
}
.job-select-copy-redesign{
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.job-select-copy-redesign strong{
    font-size:14px;
    line-height:1.55;
    color:var(--navy);
    font-weight:600;
}
.job-extra-chip{
    align-self:flex-start;
    min-height:24px;
    padding:0 9px;
    border-radius:999px;
    background:#eef5ff;
    color:var(--primary);
    display:inline-flex;
    align-items:center;
    font-size:9px;
    font-weight:500;
}
.job-detail-redesign{
    padding:0 14px 14px 58px;
    margin-top:0;
}
.job-detail-redesign label{
    display:block;
    margin-bottom:7px;
    font-size:10px;
    color:#60718a;
}
.job-detail-redesign textarea{
    min-height:88px;
    font-size:13px;
    resize:vertical;
}
.job-select-card.job-hidden{
    display:none;
}
@media(max-width:370px){
    .job-select-main-redesign{
        min-height:68px;
        padding:12px;
    }
    .job-select-copy-redesign strong{
        font-size:13px;
    }
    .job-detail-redesign{
        padding:0 12px 12px 52px;
    }
}


/* =====================================================
   Phase 15 - Step 4 UI refresh
   ===================================================== */
.job-toolbar{
    margin-bottom:14px;
}
.job-toolbar-stats{
    display:flex;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap;
}
.job-stat-pill{
    min-height:28px;
    padding:0 11px;
    border-radius:999px;
    background:#f4f7fb;
    border:1px solid #dbe5f1;
    color:#66758b;
    display:inline-flex;
    align-items:center;
    font-size:10px;
    font-weight:500;
}
.job-stat-pill.is-active{
    background:#edf4ff;
    border-color:#c8dbf6;
    color:var(--primary);
}
.job-list-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin:4px 2px 10px;
}
.job-list-head strong{
    display:block;
    font-size:13px;
    font-weight:600;
    color:var(--navy);
}
.job-list-head span{
    display:block;
    margin-top:3px;
    font-size:10px;
    color:var(--muted);
}
.job-selection-list-redesign{
    gap:12px;
}
.job-select-card-redesign{
    border:1px solid #d8e4f2;
    border-radius:18px;
    background:#fff;
    box-shadow:0 6px 18px rgba(21,54,106,.04);
}
.job-select-card-redesign.selected{
    border-color:#7caeea;
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
    box-shadow:0 10px 24px rgba(31,91,216,.08);
}
.job-select-main-redesign{
    min-height:78px;
    padding:16px 15px;
    gap:13px;
}
.job-select-copy-redesign strong{
    font-size:14px;
    line-height:1.55;
}
.job-select-note-cap{
    display:block;
    margin-top:4px;
    font-size:10px;
    color:#7b8aa0;
}
.job-extra-chip{display:none!important}
.job-detail-redesign{
    padding:0 15px 15px 60px;
    border-top:1px solid #edf2f7;
    background:#fbfdff;
}
.job-detail-redesign label{
    margin-top:12px;
    font-size:10px;
    font-weight:500;
}
.job-detail-redesign textarea{
    margin-top:0;
    border-radius:12px;
    border-color:#d7e3f2;
    background:#fff;
}
.job-search-box{
    height:48px;
    border-radius:14px;
    padding:0 10px 0 13px;
}
.job-search-box button{
    min-width:46px;
    height:32px;
    border-radius:10px;
    font-size:10px;
}
@media(max-width:370px){
    .job-select-main-redesign{min-height:72px;padding:14px 13px}
    .job-detail-redesign{padding:0 13px 13px 54px}
}


/* =====================================================
   Phase 23 - Larger mobile readability
   ===================================================== */
body{font-size:15px}

/* Global form readability */
.form-control{height:50px;font-size:15px}
.btn{min-height:46px;font-size:13px}
.form-label{font-size:13px}

/* Header / dashboard */
.header-title strong{font-size:17px}
.header-title span{font-size:12px}
.period-tabs a{font-size:13px}
.section-heading h1,.section-heading h2{font-size:23px}
.section-heading span{font-size:12px}
.overview-label{font-size:12px}
.service-copy strong{font-size:15px}
.service-copy span{font-size:12px}
.bottom-nav a{font-size:11px}

/* Login */
.login-card h1{font-size:24px}
.login-card>p{font-size:13px}
.login-brand strong{font-size:17px}
.login-brand span{font-size:12px}
.remember-row label{font-size:12px}
.login-note{font-size:11px}
.error{font-size:11px}

/* Lists / history */
.list-main strong{font-size:14px}
.list-main span{font-size:12px}
.list-side time{font-size:11px}
.status{font-size:11px;min-height:25px}
.empty-state strong{font-size:14px}
.empty-state span{font-size:12px}

/* Wizard stepper + headings */
.wizard-step{padding:10px 6px}
.wizard-number{width:26px;height:26px;font-size:12px}
.wizard-step span{font-size:10px}
.wizard-card-head small{font-size:11px}
.wizard-card-head h1{font-size:22px}
.wizard-card-head p{font-size:12px;line-height:1.7}

/* Wizard fields */
.wizard-field label{font-size:13px}
.wizard-field small{font-size:11px}
.wizard-field textarea.form-control{font-size:15px;min-height:90px}
.wizard-actions .btn{min-width:116px}
.wizard-alert{font-size:12px}
.wizard-alert strong{font-size:13px}
.wizard-section-title{font-size:14px}

/* Job selection */
.job-select-main{min-height:74px;padding:14px}
.job-checkbox-ui{width:26px;height:26px}
.job-select-main input:checked + .job-checkbox-ui::after{left:8px;top:4px}
.job-select-copy strong{font-size:14px}
.job-select-copy span{font-size:12px;line-height:1.5}
.job-detail{padding:0 14px 14px 51px}
.job-detail label{font-size:11px}

/* Review / detail */
.review-head small{font-size:11px}
.review-head h1{font-size:24px}
.review-head span{font-size:11px}
.review-section-head small{font-size:10px}
.review-section-head strong{font-size:14px}
.review-section-head a{font-size:11px}
.review-grid span{font-size:10px}
.review-grid strong{font-size:13px}
.review-job strong{font-size:13px}
.review-job span{font-size:11px}
.review-submit-card strong{font-size:14px}
.review-submit-card span{font-size:11px}

/* Account */
.account-row strong{font-size:15px}
.account-row span{font-size:12px}

@media(max-width:370px){
    .wizard-step span{font-size:9px}
    .period-tabs a{font-size:12px}
    .service-copy strong{font-size:14px}
}


/* =====================================================
   Phase 24 - Supply order flow
   ===================================================== */
.supply-success-alert{
    margin-bottom:12px;
}

.supply-order-head{
    border-radius:18px;
    padding:17px;
    margin-bottom:12px;
    background:linear-gradient(135deg,#123a86,#2878ef);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    box-shadow:var(--shadow);
}
.supply-order-head small{
    display:block;
    font-size:11px;
    opacity:.75;
}
.supply-order-head h1{
    margin:4px 0;
    font-size:22px;
    font-weight:600;
}
.supply-order-head p{
    max-width:280px;
    margin:0;
    font-size:12px;
    line-height:1.65;
    opacity:.84;
}
.supply-order-head-icon{
    width:50px;
    height:50px;
    border-radius:15px;
    background:rgba(255,255,255,.14);
    display:grid;
    place-items:center;
    flex:0 0 auto;
}

.supply-tools-card{
    position:sticky;
    top:78px;
    z-index:4;
    padding:12px;
    margin-bottom:12px;
    border:1px solid var(--border);
    border-radius:16px;
    background:rgba(255,255,255,.97);
    box-shadow:0 8px 24px rgba(24,61,117,.06);
    backdrop-filter:blur(8px);
}
.supply-search-box{
    height:48px;
    border:1px solid #cadcf1;
    border-radius:13px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 10px 0 13px;
    color:#76859b;
    background:#fff;
}
.supply-search-box:focus-within{
    border-color:#8eb9ea;
    box-shadow:0 0 0 3px rgba(31,91,216,.07);
}
.supply-search-box input{
    min-width:0;
    flex:1;
    height:100%;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
    font-size:14px;
}
.supply-search-box button{
    min-width:46px;
    height:32px;
    padding:0 9px;
    border:0;
    border-radius:9px;
    background:#eef4ff;
    color:var(--primary);
    font-size:11px;
    font-weight:600;
    cursor:pointer;
}
.supply-category-tabs{
    display:flex;
    gap:7px;
    margin-top:10px;
    padding-bottom:3px;
    overflow:auto;
    scrollbar-width:none;
}
.supply-category-tabs::-webkit-scrollbar{
    display:none;
}
.supply-category-tabs button,
.supply-category-tabs a{
    min-height:34px;
    padding:0 12px;
    border:1px solid #dce5f1;
    border-radius:999px;
    background:#fff;
    color:#617088;
    white-space:nowrap;
    font-size:11px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.supply-category-tabs button.active,
.supply-category-tabs a.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}
.supply-filter-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:8px 2px 0;
    color:var(--muted);
    font-size:11px;
}
.supply-selected-filter{
    min-height:32px;
    padding:0 10px;
    border:1px solid #dce5f1;
    border-radius:999px;
    background:#f7f9fc;
    color:#617088;
    font-size:11px;
    cursor:pointer;
}
.supply-selected-filter b{
    min-width:20px;
    height:20px;
    margin-left:4px;
    padding:0 6px;
    border-radius:999px;
    background:#e9eff8;
    color:var(--navy);
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.supply-selected-filter.active{
    border-color:var(--primary);
    background:#eef5ff;
    color:var(--primary);
}
.supply-selected-filter:disabled{
    cursor:not-allowed;
    opacity:.55;
}

.supply-product-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.supply-product-card{
    min-height:96px;
    padding:13px;
    border:1px solid #dce6f2;
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 16px rgba(23,56,105,.035);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    transition:.15s ease;
}
.supply-product-card.supply-hidden{
    display:none;
}
.supply-product-card.selected{
    border-color:#7fafea;
    background:#f9fcff;
    box-shadow:0 8px 22px rgba(31,91,216,.08);
}
.supply-product-main{
    min-width:0;
    display:flex;
    align-items:center;
    gap:11px;
    flex:1;
}
.supply-product-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    background:#eef6ff;
    color:var(--primary);
    display:grid;
    place-items:center;
    flex:0 0 auto;
}
.supply-product-copy{
    min-width:0;
    flex:1;
}
.supply-product-name-row{
    display:flex;
    align-items:flex-start;
    gap:7px;
}
.supply-product-copy strong{
    display:block;
    color:var(--navy);
    font-size:14px;
    font-weight:600;
    line-height:1.45;
    min-width:0;
}
.supply-product-copy .supply-selected-badge{
    display:none;
    min-height:21px;
    padding:2px 7px;
    border-radius:999px;
    background:#e9f4ff;
    color:var(--primary);
    font-size:9px;
    font-weight:600;
    white-space:nowrap;
}
.supply-product-card.selected .supply-selected-badge{
    display:inline-flex;
    align-items:center;
}
.supply-product-copy span{
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-size:11px;
    line-height:1.45;
}
.supply-product-copy span b{
    color:var(--navy);
    font-weight:700;
}
.supply-qty-control{
    min-width:132px;
    height:42px;
    border:1px solid #d8e3f0;
    border-radius:11px;
    display:grid;
    grid-template-columns:38px 54px 38px;
    overflow:hidden;
    background:#fff;
}
.supply-qty-button{
    border:0;
    background:#f5f8fc;
    color:var(--primary);
    font-size:20px;
    font-weight:500;
    cursor:pointer;
}
.supply-qty-control input{
    width:54px;
    border:0;
    border-left:1px solid #e5ebf2;
    border-right:1px solid #e5ebf2;
    outline:0;
    text-align:center;
    background:#fff;
    color:var(--navy);
    font-size:13px;
    font-weight:600;
    appearance:textfield;
}
.supply-qty-control input::-webkit-inner-spin-button,
.supply-qty-control input::-webkit-outer-spin-button{
    appearance:none;
    margin:0;
}

.supply-no-result,
.supply-empty{
    border:1px solid var(--border);
    border-radius:16px;
    background:#fff;
    padding:32px 18px;
    text-align:center;
}
.supply-no-result .icon{
    color:#8492a6;
}
.supply-no-result strong{
    display:block;
    margin-top:8px;
    font-size:14px;
}
.supply-no-result span{
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-size:11px;
}
.supply-no-result .btn{
    margin-top:14px;
}

.supply-note-card{
    margin-top:12px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:16px;
    background:#fff;
}
.supply-note-card label{
    display:block;
    margin-bottom:8px;
    color:var(--navy);
    font-size:13px;
    font-weight:600;
}
.supply-note-card textarea{
    height:auto;
    min-height:92px;
    resize:vertical;
}

.supply-order-actions{
    position:sticky;
    bottom:72px;
    z-index:5;
    min-height:72px;
    margin-top:12px;
    padding:10px 12px;
    border:1px solid #dce5f0;
    border-radius:16px;
    background:rgba(255,255,255,.97);
    box-shadow:0 -6px 24px rgba(20,53,105,.07);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.supply-selected-summary span{
    display:block;
    color:var(--muted);
    font-size:10px;
}
.supply-selected-summary strong{
    display:block;
    margin-top:2px;
    color:var(--navy);
    font-size:14px;
}
.supply-selected-summary small{
    display:block;
    margin-top:2px;
    color:var(--muted);
    font-size:10px;
}

.supply-search-box button:focus-visible,
.supply-category-tabs button:focus-visible,
.supply-selected-filter:focus-visible,
.supply-qty-button:focus-visible{
    outline:3px solid rgba(31,91,216,.18);
    outline-offset:2px;
}
.supply-review-button{
    min-width:160px;
}

/* Review */
.supply-review-hero{
    padding:18px;
    margin-bottom:10px;
    border-radius:18px;
    background:linear-gradient(135deg,#123a86,#2878ef);
    color:#fff;
    box-shadow:var(--shadow);
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.supply-review-hero small{
    display:block;
    font-size:11px;
    opacity:.72;
}
.supply-review-hero h1{
    margin:4px 0 3px;
    font-size:22px;
}
.supply-review-hero>div>span{
    font-size:11px;
    opacity:.8;
}
.supply-review-hero>.status{
    background:rgba(255,255,255,.15);
    color:#fff;
}

.supply-review-summary-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:10px;
}
.supply-review-summary-grid>div{
    padding:13px 14px;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fff;
}
.supply-review-summary-grid span{
    display:block;
    color:var(--muted);
    font-size:10px;
}
.supply-review-summary-grid strong{
    display:block;
    margin-top:3px;
    color:var(--navy);
    font-size:20px;
}

.supply-review-card{
    margin-bottom:10px;
    border:1px solid var(--border);
    border-radius:16px;
    background:#fff;
    overflow:hidden;
}
.supply-review-card-head{
    min-height:58px;
    padding:12px 14px;
    border-bottom:1px solid #edf1f5;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.supply-review-card-head small{
    display:block;
    color:var(--primary);
    font-size:10px;
}
.supply-review-card-head strong{
    display:block;
    margin-top:2px;
    font-size:14px;
}
.supply-review-card-head a{
    min-height:32px;
    padding:0 10px;
    border-radius:9px;
    background:#eef5ff;
    color:var(--primary);
    display:flex;
    align-items:center;
    font-size:11px;
    font-weight:500;
}
.supply-review-group{
    border-bottom:1px solid #edf1f5;
}
.supply-review-group:last-child{
    border-bottom:0;
}
.supply-review-category{
    min-height:40px;
    padding:8px 13px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.supply-review-category strong{
    font-size:12px;
}
.supply-review-category span{
    color:var(--muted);
    font-size:10px;
}
.supply-review-item{
    min-height:70px;
    padding:11px 13px;
    border-top:1px solid #f0f3f6;
    display:flex;
    align-items:center;
    gap:10px;
}
.supply-review-item-number{
    width:27px;
    height:27px;
    border-radius:8px;
    background:#eef5ff;
    color:var(--primary);
    display:grid;
    place-items:center;
    flex:0 0 auto;
    font-size:10px;
    font-weight:600;
}
.supply-review-item-copy{
    min-width:0;
    flex:1;
}
.supply-review-item-copy strong{
    display:block;
    color:var(--navy);
    font-size:13px;
    font-weight:600;
}
.supply-review-item-copy span{
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:10px;
}
.supply-review-item-qty{
    min-width:64px;
    text-align:right;
}
.supply-review-item-qty span{
    display:block;
    color:var(--muted);
    font-size:9px;
}
.supply-review-item-qty strong{
    display:block;
    margin-top:2px;
    color:var(--navy);
    font-size:14px;
}
.supply-review-note{
    padding:14px;
    font-size:12px;
    line-height:1.7;
}
.supply-review-note .muted{
    color:var(--muted);
}

.supply-submit-card{
    padding:14px;
    border:1px solid #cfe0f5;
    border-radius:16px;
    background:#f8fbff;
}
.supply-submit-info{
    display:flex;
    gap:9px;
    align-items:flex-start;
    color:#5a6d87;
}
.supply-submit-info strong{
    display:block;
    color:var(--navy);
    font-size:13px;
}
.supply-submit-info span{
    display:block;
    margin-top:3px;
    font-size:11px;
    line-height:1.65;
}
.supply-submit-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    margin-top:13px;
    padding-top:12px;
    border-top:1px solid #dae6f4;
}
.supply-submit-actions form{
    margin:0;
}

@media(max-width:430px){
    .supply-product-card{
        align-items:stretch;
        flex-direction:column;
    }
    .supply-qty-control{
        width:100%;
        grid-template-columns:44px 1fr 44px;
    }
    .supply-qty-control input{
        width:100%;
    }
    .supply-order-actions{
        align-items:stretch;
        flex-direction:column;
    }
    .supply-review-button{
        width:100%;
    }
    .supply-selected-summary{
        width:100%;
        display:flex;
        align-items:center;
        justify-content:space-between;
        flex-wrap:wrap;
        gap:2px 10px;
    }
    .supply-selected-summary small{width:100%}
}

/* Premium Care branding */
.header-brand-link{
    width:76px;
    height:34px;
    padding:3px 4px;
    border:1px solid #e6ebf2;
    border-radius:9px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
}
.header-brand-logo{
    display:block;
    width:100%;
    height:auto;
    max-height:26px;
    object-fit:contain;
}
.login-brand{
    flex-direction:column;
    justify-content:center;
    gap:10px;
    text-align:center;
}
.login-brand-logo{
    display:block;
    width:min(100%,260px);
    height:auto;
    margin:0 auto;
}
.login-brand-copy{
    width:100%;
}
.supply-review-item-note{
    color:#53657f!important;
    white-space:normal;
}

@media(max-width:370px){
    .app-header{padding-left:10px;padding-right:10px}
    .header-left{gap:7px}
    .header-brand-link{width:66px}
}

/* Temporarily disabled services */
.overview-grid.overview-grid-two{
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.history-summary.history-summary-two{
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.service-card-disabled{
    cursor:not-allowed;
    opacity:.62;
    box-shadow:none;
}
.service-card-disabled:active{
    transform:none;
}
.service-disabled-badge{
    padding:4px 8px;
    border-radius:999px;
    background:#eef1f5;
    color:#6f7b8e;
    font-size:10px;
    font-weight:500;
    white-space:nowrap;
}

/* LINE Login */
.btn-line{
    background:#06c755;
    border-color:#06c755;
    color:#fff;
    text-decoration:none;
    font-weight:600;
}
.btn-line:hover{filter:brightness(.97)}
.line-btn-mark{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:24px;
    padding:0 5px;
    border-radius:6px;
    background:#fff;
    color:#06b84d;
    font-size:9px;
    font-weight:700;
    letter-spacing:.2px;
}
.login-divider{
    display:flex;
    align-items:center;
    gap:10px;
    margin:15px 0;
    color:#9aa3b2;
    font-size:10px;
}
.login-divider::before,.login-divider::after{
    content:"";
    height:1px;
    flex:1;
    background:#e7ebf1;
}
.line-first-use-note{
    margin:9px 0 0!important;
    text-align:center;
    color:#7b8595!important;
    font-size:9px!important;
    line-height:1.6!important;
}
.success-message{
    background:#edfdf3;
    color:#147a3d;
    border:1px solid #bce8cc;
    padding:11px 12px;
    border-radius:10px;
    margin-bottom:14px;
    font-size:9px;
}
.account-card + .account-card{margin-top:12px}
.account-line-card{padding:17px 18px}
.account-line-heading{display:flex;align-items:center;gap:12px}
.account-line-heading>div:last-child{min-width:0;flex:1}
.account-line-heading strong{display:block;font-size:12px}
.account-line-heading span{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.55}
.account-line-icon{
    width:48px;
    height:48px;
    border-radius:15px;
    display:grid;
    place-items:center;
    background:#06c755;
    color:#fff;
    font-size:10px;
    font-weight:700;
    flex:0 0 auto;
}
.account-line-status{
    margin-top:14px;
    padding:10px 12px;
    border-radius:10px;
    background:#f5f7fa;
    color:#626d7d;
    font-size:10px;
}
.account-line-status.is-linked{background:#edfdf3;color:#147a3d;display:flex;align-items:center;gap:7px}
.account-line-status.is-warning{background:#fff8e7;color:#946b0a}
.status-dot{width:7px;height:7px;border-radius:50%;background:#20b15a;display:inline-block}
.account-line-action{margin-top:12px}
.account-logout-card .account-actions{margin-top:0}
.account-flash{padding:11px 12px;border-radius:10px;margin-bottom:12px;font-size:10px}
.account-flash-success{background:#edfdf3;color:#147a3d;border:1px solid #bce8cc}
.account-flash-error{background:var(--danger-bg);color:var(--danger);border:1px solid #ffd1d6}
.account-section-heading{display:flex;align-items:center;gap:12px}
.account-section-heading>div:last-child{min-width:0;flex:1}
.account-section-heading strong{display:block;font-size:12px}
.account-section-heading span{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.55}
.account-branch-icon{background:#eef8f4;color:#126044}
.account-branch-list{display:grid;gap:8px;margin-top:14px}
.account-branch-list form{margin:0}
.account-branch-option{
    width:100%;min-height:58px;padding:10px 12px;border:1px solid #dfe6ef;border-radius:13px;
    background:#fff;color:var(--text);display:flex;align-items:center;justify-content:space-between;
    gap:12px;text-align:left;font-family:inherit;cursor:pointer
}
.account-branch-option.active{background:#eef9f5;border-color:#91c7b4;cursor:default}
.account-branch-copy{min-width:0}
.account-branch-copy strong{display:block;font-size:13px;color:var(--navy)}
.account-branch-copy small{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
.account-branch-current{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#126044;color:#fff;font-size:9px;font-weight:600}
.account-branch-change{flex:0 0 auto;display:flex;align-items:center;gap:3px;color:var(--primary);font-size:10px;font-weight:600}

/* Searchable center picker */
.searchable-picker-trigger{
    padding:0 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    text-align:left;
    font-family:inherit;
    cursor:pointer;
}
.searchable-picker-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.searchable-picker-trigger .icon{flex:0 0 auto;color:var(--primary)}
.searchable-picker-trigger.is-placeholder{color:#8a94a4}
.searchable-center-picker{
    width:min(calc(100% - 28px),480px);
    max-width:480px;
    max-height:min(76vh,680px);
    margin:auto;
    padding:0;
    border:0;
    border-radius:22px;
    background:#fff;
    color:var(--text);
    box-shadow:0 24px 70px rgba(13,40,82,.28);
    overflow:hidden;
}
.searchable-center-picker::backdrop{background:rgba(12,29,54,.54);backdrop-filter:blur(3px)}
.center-picker-panel{max-height:min(76vh,680px);display:flex;flex-direction:column;background:#fff}
.center-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px 13px;border-bottom:1px solid #eaf0f6}
.center-picker-head small{display:block;color:var(--primary);font-size:9px;font-weight:600;letter-spacing:.04em}
.center-picker-head strong{display:block;margin-top:3px;color:var(--navy);font-size:18px}
.center-picker-head>button{width:38px;height:38px;border:0;border-radius:11px;background:#f1f5fa;color:#65738a;display:grid;place-items:center;cursor:pointer}
.center-picker-search{height:48px;margin:13px 15px 10px;padding:0 10px 0 13px;border:1px solid #cfdbea;border-radius:14px;background:#f9fbfe;display:flex;align-items:center;gap:9px;flex:0 0 auto}
.center-picker-search>.icon{color:#78879c;flex:0 0 auto}
.center-picker-search input{min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:14px;flex:1}
.center-picker-search button{height:32px;padding:0 10px;border:0;border-radius:9px;background:#eaf2ff;color:var(--primary);font-family:inherit;font-size:10px;font-weight:600;cursor:pointer}
.center-picker-list{padding:0 11px 13px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.center-picker-option{width:100%;min-height:52px;padding:10px 12px;border:0;border-bottom:1px solid #edf1f5;background:#fff;color:var(--text);font-family:inherit;font-size:13px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}
.center-picker-option:last-child{border-bottom:0}
.center-picker-option:hover{background:#f7faff}
.center-picker-option.selected{background:#eef5ff;color:var(--primary);font-weight:600}
.center-picker-option>span:first-child{min-width:0}
.center-picker-option-other strong,.center-picker-option-other small{display:block}
.center-picker-option-other small{margin-top:2px;color:var(--muted);font-size:10px;font-weight:400}
.center-picker-check{width:25px;height:25px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;flex:0 0 auto;font-size:13px;opacity:0;transform:scale(.8);transition:.15s ease}
.center-picker-option.selected .center-picker-check{opacity:1;transform:scale(1)}
.center-picker-empty{padding:28px 18px 34px;text-align:center;color:var(--muted);font-size:12px}

/* Work draft deletion */
.draft-list-row{display:flex;align-items:stretch;border-bottom:1px solid #edf0f4;background:#fff}
.draft-list-row:last-child{border-bottom:0}
.draft-list-row>.list-item{min-width:0;flex:1;border-bottom:0}
.draft-delete-form{display:flex;align-items:center;padding:8px 10px 8px 0}
.draft-delete-button{width:40px;height:40px;border:1px solid #f0cbd0;border-radius:11px;background:#fff6f7;color:var(--danger);display:grid;place-items:center;cursor:pointer}
.draft-delete-button:hover{background:var(--danger-bg)}
.btn-danger-outline{background:#fff;border-color:#e8bdc3;color:var(--danger)}
.review-delete-draft{margin-top:10px;padding-top:10px;border-top:1px solid #edf1f5}

@media(max-width:370px){
    .searchable-center-picker{width:calc(100% - 18px);border-radius:18px}
    .center-picker-head{padding:14px 15px 11px}
    .center-picker-search{margin-left:11px;margin-right:11px}
    .draft-list-row>.list-item{padding-left:11px;padding-right:7px}
    .draft-delete-form{padding-right:7px}
}

@media(min-width:580px){
    .account-line-heading strong{font-size:14px}
    .account-line-heading span,.account-section-heading span,.account-line-status,.account-flash{font-size:11px}
    .account-section-heading strong{font-size:14px}
    .line-first-use-note,.success-message{font-size:10px!important}
}

/* Branch and manager reports */
.report-hero{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px;margin-bottom:12px;border-radius:18px;background:linear-gradient(135deg,#173f73,#2878ef);color:#fff;box-shadow:var(--shadow-soft)}
.report-hero small{font-size:11px;opacity:.78}
.report-hero h1{font-size:21px;line-height:1.35;margin:4px 0}
.report-hero p{font-size:11px;opacity:.86;margin:0;line-height:1.6}
.report-hero-icon{width:48px;height:48px;border-radius:15px;background:rgba(255,255,255,.15);display:grid;place-items:center;flex:0 0 auto}
.report-quick-range{display:flex;gap:8px;margin:0 0 10px}
.report-quick-range a{padding:8px 13px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--primary);font-size:12px;font-weight:500}
.report-filter-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;margin-bottom:12px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-soft)}
.report-filter-card label{min-width:0}
.report-filter-card label span{display:block;font-size:11px;font-weight:500;margin:0 0 6px;color:#536071}
.report-filter-card .btn{align-self:end}
.report-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
.report-kpis div{padding:15px;background:#fff;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow-soft)}
.report-kpis span{display:block;font-size:11px;color:var(--muted)}
.report-kpis strong{display:block;font-size:25px;color:var(--navy);margin-top:5px}
.report-card{background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow-soft);margin-bottom:12px;overflow:hidden}
.report-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #edf0f4}
.report-card-head small{display:block;color:var(--primary);font-size:10px;font-weight:500;margin-bottom:3px}
.report-card-head h2{font-size:16px;margin:0}
.report-card-head>span{font-size:11px;color:var(--muted);white-space:nowrap}
.report-view-all{min-height:34px;padding:7px 12px;border:1px solid #cfe0f5;border-radius:10px;background:#f4f8ff;color:var(--primary);font-size:11px;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
.report-view-all:hover{background:#eaf2ff}
.report-hero.report-hero-compact{padding-top:17px;padding-bottom:17px}
.report-table-wrap{width:100%;overflow-x:auto}
.report-table{width:100%;border-collapse:collapse;min-width:460px}
.report-table th,.report-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #edf0f4;font-size:12px;vertical-align:top}
.report-table th{font-size:10px;color:var(--muted);font-weight:500;background:#fafbfd}
.report-table tbody tr:last-child td{border-bottom:0}
.report-table td strong,.report-table td span{display:block}
.report-table td span{font-size:10px;color:var(--muted);margin-top:2px}
.report-empty{padding:26px 16px;text-align:center;color:var(--muted);font-size:12px}
.report-list>a{display:flex;justify-content:space-between;gap:13px;padding:14px 16px;border-bottom:1px solid #edf0f4;color:inherit}
.report-list>a:last-child{border-bottom:0}
.report-list>a>div:first-child{min-width:0;flex:1}
.report-list>a>div:last-child{text-align:right;flex:0 0 auto}
.report-list strong,.report-list span,.report-list small,.report-list time{display:block}
.report-list strong{font-size:14px}
.report-list span{font-size:11px;color:#596576;margin-top:3px}
.report-list small,.report-list time{font-size:10px;color:var(--muted);margin-top:3px}
.report-list .status{display:inline-flex;margin-top:6px}
.report-pagination{display:flex;align-items:center;justify-content:center;gap:15px;padding:13px;border-top:1px solid #edf0f4}
.report-pagination a{min-width:78px;text-align:center;padding:8px 11px;border:1px solid var(--border);border-radius:9px;color:var(--primary);font-size:11px;background:#fff}
.report-pagination span{font-size:11px;color:var(--muted)}
@media(min-width:680px){
    .report-filter-card{grid-template-columns:repeat(4,minmax(0,1fr))}
    .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:420px){
    .report-filter-card{grid-template-columns:1fr}
    .report-hero h1{font-size:18px}
    .report-card-head{align-items:center}
}
