/* MyStationHub Ver016; isolated customer/admin billing styles */
.msh-billing-customer{margin:20px 0;min-width:0}
.msh-billing-head{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}
.msh-billing-head h2{font-size:22px!important;margin:2px auto 0 0!important}
.msh-billing-eyebrow{font-size:11px;color:#0857f8;font-weight:850;letter-spacing:.14em}
.msh-billing-status{display:inline-block;background:#fef4e7;color:#8e5517;padding:7px 10px;border-radius:20px;font-size:12px;font-weight:700}
.msh-billing-status.valid{background:#eaf8f1;color:#17734b}
.msh-billing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:18px 0}
.msh-billing-data{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e7edf5;min-width:0;font-size:13px}
.msh-billing-data span{color:#65768c}
.msh-billing-data strong{text-align:right;color:#152a48;min-width:0;overflow-wrap:anywhere}
.msh-billing-note{background:#fff8ed;color:#82531d;border:1px solid #f0dcb8;border-radius:11px;padding:13px;line-height:1.6;font-size:13px}
.msh-billing-form{border-top:1px solid #e3eafa;margin-top:14px;padding-top:15px}
.msh-billing-form h3{margin:0 0 12px;font-size:17px}
.msh-billing-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.msh-billing-actions select{flex:1;min-width:190px;min-height:46px;border:1px solid #cbd9ed;border-radius:10px;background:white;padding:9px 12px;font-size:16px}
.msh-billing-actions button{min-height:46px}
.msh-billing-hint{color:#6c7c92;font-size:12px;line-height:1.65}
.msh-billing-feedback{font-size:13px;color:#275c94;margin:10px 0}
.msh-billing-feedback[data-kind=bad]{color:#a12a47}
.msh-billing-history{margin-top:18px;border-top:1px solid #e2eafa;padding-top:13px}
.msh-billing-history summary{cursor:pointer;font-weight:750}
.msh-billing-history-list{padding:6px 0}
@media(max-width:700px){.msh-billing-grid{grid-template-columns:minmax(0,1fr)}.msh-billing-customer{padding:19px 16px!important}}
/* Dedicated secure admin billing center */
.msh-admin-billing-page{background:#f6f8fc;min-height:100vh;color:#162642;font:14px/1.55 Inter,'Segoe UI',Arial,sans-serif}
.msh-admin-billing-page *{box-sizing:border-box}
.msh-admin-billing-page header{background:#fff;border-bottom:1px solid #dce6f5;padding:17px max(18px,calc((100vw - 1250px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:10}
.msh-admin-billing-page header a{color:#0857f8;text-decoration:none;font-weight:800}
.msh-admin-billing-page main{max-width:1260px;margin:0 auto;padding:26px 18px 80px}
.msh-admin-billing-page h1{font-size:clamp(26px,3vw,39px);margin:0 0 12px;letter-spacing:-.04em}
.msh-admin-billing-page h2{font-size:20px;margin:0 0 10px}
.msh-admin-billing-page .bill-box{background:#fff;border:1px solid #dde6f4;border-radius:17px;padding:21px;margin:15px 0}
.msh-admin-billing-page input,.msh-admin-billing-page select,.msh-admin-billing-page textarea{font:inherit;min-height:44px;border:1px solid #d1dfef;padding:9px 11px;border-radius:9px;max-width:100%;width:100%}
.msh-admin-billing-page label{display:block;font-weight:750;margin:10px 0 5px}
.msh-admin-billing-page button{min-height:43px;border:0;background:#0857f8;color:white;border-radius:9px;font:700 13px Inter,'Segoe UI',Arial,sans-serif;padding:11px 16px;cursor:pointer}
.msh-admin-billing-page button:disabled{opacity:.5;cursor:not-allowed}
.msh-admin-billing-page .bill-search{display:flex;gap:9px;align-items:end;flex-wrap:wrap}
.msh-admin-billing-page .bill-search>div{flex:1;min-width:240px}
.msh-admin-billing-page .bill-accounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;margin-top:18px}
.msh-admin-billing-page .bill-account{border:1px solid #dae5f4;border-radius:15px;padding:17px;background:#fff;min-width:0}
.msh-admin-billing-page .bill-account button{margin-top:10px}
.msh-admin-billing-page .bill-account p{margin:5px 0;color:#65768a;overflow-wrap:anywhere}
.msh-admin-billing-page .bill-details{border-top:1px solid #e4eaf3;padding:16px 0 0;margin-top:14px}
.msh-admin-billing-page .bill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.msh-admin-billing-page .bill-grid>div{padding:9px 0;border-bottom:1px solid #edf1f7}
.msh-admin-billing-page .bill-grid span{display:block;color:#75859b;font-size:11px}
.msh-admin-billing-page .bill-grid strong{overflow-wrap:anywhere}
.msh-admin-billing-page .bill-warning{background:#fff7e8;border:1px solid #f0d8ae;border-radius:11px;padding:13px;color:#805b1a}
.msh-admin-billing-page .bill-status{margin:10px 0;color:#1c597d}
.msh-admin-billing-page .bill-trail{overflow-wrap:anywhere;font-size:12px;color:#64748b}
@media(max-width:600px){.msh-admin-billing-page .bill-grid{grid-template-columns:1fr}.msh-admin-billing-page .bill-box{padding:15px}.msh-admin-billing-page input,.msh-admin-billing-page select{font-size:16px}}

/* MyStationHub Ver019 customer/admin enhancements — no checkout until verified. */
.msh-billing-customer{margin-top:24px;margin-bottom:22px}
.msh-billing-head>div:first-child{min-width:0;max-width:100%}
.msh-billing-identity{color:#586d89;overflow-wrap:anywhere;font-size:13px;margin:4px 0 0}
.msh-billing-quick-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.msh-billing-quiet-link{display:inline-flex;align-items:center;border:1px solid #b8cff9;background:#fff;border-radius:9px;padding:8px 11px;color:#0756ce!important;text-decoration:none;font-size:13px;font-weight:750}
.msh-billing-quiet-link:hover,.msh-billing-quiet-link:focus-visible{background:#f0f6ff}
.msh-billing-renewals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.msh-billing-renewal-card{display:flex;align-items:flex-start;gap:10px;border:1px solid #d3e0f1;border-radius:11px;padding:14px;cursor:pointer;background:#fff;min-width:0}
.msh-billing-renewal-card:has(input:checked){border-color:#0857f8;background:#f3f7ff}
.msh-billing-renewal-card>input{flex:0 0 auto;width:17px;height:17px;margin:3px 0 0;accent-color:#0857f8}
.msh-billing-renewal-card>span{display:block;min-width:0}
.msh-billing-renewal-card strong{display:block;color:#1b2e48;font-size:14px}
.msh-billing-renewal-card small{display:block;margin-top:4px;color:#64758d;font-size:12px;line-height:1.6}
.msh-billing-checkout{margin:18px 0 0;padding:16px;border:1px solid #d6e1f0;border-radius:12px;background:#f8faff;color:#34435e}
.msh-billing-checkout h3{margin:0 0 6px;font-size:16px}
.msh-billing-checkout p{margin:0 0 13px;font-size:13px;line-height:1.6}
.msh-billing-checkout button:disabled{opacity:.67;background:#dde6f7!important;color:#485c7d!important;border:0!important;border-radius:9px;padding:11px 15px;cursor:not-allowed}
.msh-billing-feedback[data-kind=good]{color:#126940}
.msh-admin-billing-page .bill-account-id{font-size:12px!important;letter-spacing:.01em}
.msh-admin-billing-page .bill-access{font-size:11px;font-weight:850;letter-spacing:.09em;display:inline-block;padding:5px 9px;border-radius:40px;background:#fff1da;color:#825010;margin:4px 0}
.msh-admin-billing-page .bill-access.is-active{color:#147348;background:#e5f7ed}
.msh-admin-billing-page .bill-pager{display:flex;justify-content:center;align-items:center;gap:18px;margin:20px 0 35px}
.msh-admin-billing-page .bill-pager[hidden]{display:none}
.msh-admin-billing-page .bill-account h2{overflow-wrap:anywhere}
.msh-admin-billing-page .bill-details h3{font-size:17px;margin:15px 0 7px}
.msh-admin-billing-page .bill-history summary{font-weight:800;cursor:pointer}
.msh-admin-billing-page .bill-account .bill-details p{line-height:1.7}
.msh-admin-billing-page .bill-details button:focus-visible,.msh-admin-billing-page .bill-search button:focus-visible{outline:3px solid #85b2ff;outline-offset:3px}
@media(max-width:700px){.msh-billing-renewals{grid-template-columns:1fr}.msh-billing-head{align-items:flex-start}.msh-billing-quick-actions{flex-direction:column}.msh-billing-quiet-link{justify-content:center}.msh-admin-billing-page .bill-pager{gap:8px}}
.msh-admin-billing-page .bill-accounts{align-items:start}

/* Ver020: separate, password-confirmed complimentary plan controls. */
.msh-admin-billing-page .bill-approval{background:#f8fbff;border:1px solid #d6e4fc;border-radius:12px;padding:15px;margin:18px 0}
.msh-admin-billing-page .bill-approval h3{margin:0 0 6px}
.msh-admin-billing-page .bill-checkbox{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #cbdcf7;border-radius:10px;cursor:pointer;background:white}
.msh-admin-billing-page .bill-checkbox input{height:18px;width:18px;min-height:0;flex:0 0 auto;accent-color:#075cfc}
.msh-admin-billing-page .bill-approval-controls[hidden]{display:none}
.msh-admin-billing-page .bill-approval-controls{padding:6px 0}
.msh-admin-billing-page .bill-revoke{background:#fff;color:#a7253a;border:1px solid #d79da7;display:block}
.msh-admin-billing-page .bill-revoke:hover{background:#fff0f2}
.msh-admin-billing-page .bill-approval .bill-warning{margin:12px 0 2px}
.msh-admin-billing-page .bill-approval textarea{min-height:80px;resize:vertical}


/* Standalone customer billing controls — visually consistent with MyStationHub. */
.msh-billing-customer .msh-billing-form button[type="submit"]{
 appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;
 min-height:45px;padding:10px 20px;border:1px solid #0857f8;border-radius:10px;
 background:#0857f8;color:#fff;font:750 14px/1.4 Inter,"Segoe UI",Arial,sans-serif;
 cursor:pointer;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.msh-billing-customer .msh-billing-form button[type="submit"]:hover:not(:disabled){
 background:#0643cb;border-color:#0643cb;box-shadow:0 6px 14px rgba(8,87,248,.14);
}
.msh-billing-customer .msh-billing-form button[type="submit"]:focus-visible{
 outline:3px solid #a8c8ff;outline-offset:2px;
}
.msh-billing-customer .msh-billing-form button[type="submit"]:disabled{
 opacity:.55;cursor:not-allowed;box-shadow:none;
}
.msh-billing-customer .msh-billing-history>summary{
 display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;
 font-weight:750;color:#14213b;min-height:34px;
}
.msh-billing-customer .msh-billing-history>summary::-webkit-details-marker{display:none}
.msh-billing-customer .msh-billing-history>summary::before{
 content:"";display:block;width:8px;height:8px;flex:none;
 border-right:2px solid currentColor;border-bottom:2px solid currentColor;
 transform:rotate(-45deg);transition:transform .18s ease;
}
.msh-billing-customer .msh-billing-history[open]>summary::before{transform:rotate(45deg)}
.msh-billing-customer .msh-billing-history>summary:focus-visible{
 outline:3px solid #a8c8ff;outline-offset:3px;border-radius:5px;
}
@media(prefers-reduced-motion:reduce){
 .msh-billing-customer .msh-billing-form button[type="submit"],
 .msh-billing-customer .msh-billing-history>summary::before{transition:none}
}
