/* FOX FINANCE — Modallar, kabinet, xidmət detalı, sənəd önizləmə, toast
   (index.html-dən çıxarılıb; sıra vacibdir — layout.php-dəki yükləmə sırasını dəyişmə) */
/* ============ MODALS ============ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(10,10,10,.72); backdrop-filter:blur(6px); z-index:2000;
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; transition:all .4s var(--ease);
}
.modal-overlay.open{opacity:1; visibility:visible;}
.modal-box{
  background:var(--white); border-radius:var(--radius-l); width:100%; max-width:460px; padding:40px;
  transform:translateY(30px) scale(.97); transition:all .45s var(--ease); position:relative; max-height:90vh; overflow-y:auto;
}
.modal-overlay.open .modal-box{transform:translateY(0) scale(1);}
.modal-close{position:absolute; top:20px; right:20px; width:36px;height:36px;border-radius:50%; background:var(--grey-100); display:flex;align-items:center;justify-content:center; transition:all .3s ease;}
.modal-close:hover{background:var(--ink); color:#fff; transform:rotate(90deg);}
.modal-box h3{font-size:26px; margin-bottom:6px;}
.modal-box .m-sub{font-size:13.5px; color:var(--grey-600); margin-bottom:28px;}
.modal-box .f-group{margin-bottom:16px;}
.modal-box .f-group label{color:var(--grey-600);}
.modal-box .f-group input, .modal-box .f-group textarea, .modal-box .f-group select{background:var(--grey-100); border:1px solid var(--grey-200); color:var(--ink); border-radius:12px; padding:14px 16px; width:100%; font-size:14.5px;}
.modal-box .f-group input:focus, .modal-box .f-group textarea:focus, .modal-box .f-group select:focus{border-color:var(--orange); background:var(--white);}
.modal-box .btn-primary{width:100%; margin-top:8px;}
.modal-foot{text-align:center; margin-top:22px; font-size:13.5px; color:var(--grey-600);}
.modal-foot a{color:var(--orange); font-weight:600;}
.demo-note{background:rgba(255,107,0,.08); border:1px dashed rgba(255,107,0,.4); border-radius:10px; padding:12px 14px; font-size:12px; color:var(--orange-dark); margin-bottom:20px; line-height:1.5;}

/* Send-campaign notification modal */
.recipient-choice{display:flex; gap:12px; margin-bottom:18px; flex-wrap:wrap;}
.recipient-option{flex:1 1 200px; border:1.5px solid var(--grey-200); border-radius:14px; padding:14px 16px; cursor:pointer; transition:all .3s ease; display:flex; align-items:center; gap:10px;}
.recipient-option:hover{border-color:var(--orange);}
.recipient-option.active{border-color:var(--orange); background:rgba(255,107,0,.05);}
.recipient-option input[type="radio"]{accent-color:var(--orange); width:16px; height:16px; flex-shrink:0;}
.recipient-option .ro-lbl h5{font-size:13.5px;}
.recipient-option .ro-lbl p{font-size:11.5px; color:var(--grey-600); margin-top:2px;}
.sc-cust-search{position:relative; margin-bottom:10px;}
.sc-cust-search i{position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--grey-400); font-size:13px;}
.sc-cust-search input{width:100%; padding:11px 14px 11px 38px; border-radius:100px; border:1.5px solid var(--grey-200); font-size:13.5px; background:var(--grey-100);}
.sc-cust-search input:focus{border-color:var(--orange); background:var(--white);}
.sc-cust-list{max-height:260px; overflow-y:auto; border:1px solid var(--grey-200); border-radius:14px; padding:6px; margin-bottom:18px;}
.sc-cust-item{display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px; cursor:pointer; transition:background .2s ease;}
.sc-cust-item:hover{background:var(--grey-100);}
.sc-cust-item input[type="checkbox"]{width:18px; height:18px; accent-color:var(--orange); flex-shrink:0;}
.sc-cust-item .sc-cust-info h5{font-size:13.5px;}
.sc-cust-item .sc-cust-info .sc-cust-meta{font-size:11.5px; color:var(--grey-600); margin-top:2px; font-family:var(--font-mono);}

/* Vehicle detail modal */
.vmodal-box{max-width:920px; padding:0; overflow:hidden;}
.vmodal-grid{display:grid; grid-template-columns:1fr 1fr;}
@media (max-width:760px){
  .vmodal-grid{grid-template-columns:1fr;}
  .vmodal-box{
    max-height:92vh;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .vmodal-box::-webkit-scrollbar{display:none;}
}
.vmodal-gallery{position:relative; background:#111; min-height:320px;}
.vmodal-gallery img{width:100%;height:100%;object-fit:cover; min-height:320px;}
.vmodal-info{padding:38px; overflow-y:auto;}
.vmodal-info .v-tag{font-family:var(--font-mono); color:var(--grey-400); font-size:11px; text-transform:uppercase;}
.vmodal-info h3{font-size:26px; margin:6px 0 16px;}
.vspec-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0; padding:18px; background:var(--grey-100); border-radius:14px;}
.vspec-grid div{font-size:13px;}
.vspec-grid div span{display:block; color:var(--grey-400); font-size:11px; text-transform:uppercase; margin-bottom:3px;}
/* Installment-term selector (12/24/36 ay) on the vehicle detail modal — same pill style as
   the catalog's .filter-btn, just compact enough to sit inline above the payment figures. */
.vterm-select{display:flex; gap:8px; flex-wrap:wrap; margin-top:18px;}
.vterm-btn{
  padding:8px 18px; border-radius:100px; border:1.5px solid var(--grey-200); font-size:13px; font-weight:600; color:var(--grey-600);
  transition:all .3s var(--ease); background:transparent;
}
.vterm-btn.active, .vterm-btn:hover{background:var(--ink); border-color:var(--ink); color:#fff;}
.vpay-row{display:flex; gap:14px; margin:14px 0 22px;}
.vpay-block{flex:1; background:var(--ink); color:#fff; border-radius:14px; padding:16px; text-align:center;}
.vpay-block .pv{font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--gold);}
.vpay-block .pl{font-size:10.5px; color:rgba(255,255,255,.55); text-transform:uppercase; margin-top:4px;}
.vadv-list{display:flex; flex-direction:column; gap:9px; margin:18px 0 26px;}
.vadv-list div{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--ink-soft);}
.vadv-list i{color:var(--green);}
.vmodal-btns{display:flex; gap:12px;}

/* ============ DASHBOARD ============ */
#dashboardPage{display:none; background:var(--bg); min-height:100vh; padding:130px 0 100px;}
#dashboardPage.active{display:block;}
#adminPage{display:none; background:var(--bg); min-height:100vh; padding:130px 0 100px;}
#adminPage.active{display:block;}

/* ============ SERVICE DETAIL VIEW (opens from the "Xidmətlərimiz" cards) ============ */
.svc-card[data-service]{cursor:pointer;}
.svc-card[data-service]:focus-visible{outline:2px solid var(--orange); outline-offset:4px;}
#serviceDetailPage{display:none; background:var(--bg); min-height:100vh; padding:130px 0 100px;}
#serviceDetailPage.active{display:block;}
body:has(#serviceDetailPage.active) #mainSite{display:none !important;}
.sd-wrap{max-width:920px; margin:0 auto;}
.sd-back{display:inline-flex; align-items:center; gap:10px; padding:11px 20px; border-radius:100px; border:1.5px solid rgba(17,17,17,.18); background:transparent; color:var(--ink); font-size:14px; font-weight:600; cursor:pointer; transition:all .3s var(--ease); margin-bottom:28px;}
.sd-back:hover{background:var(--ink); color:#fff; border-color:var(--ink);}
.sd-head{background:var(--ink); color:#fff; border-radius:var(--radius-xl); padding:48px 48px 44px; position:relative; overflow:hidden;}
.sd-head::before{content:''; position:absolute; top:-180px; right:-160px; width:480px; height:480px; background:radial-gradient(circle, rgba(255,107,0,.28), transparent 65%); pointer-events:none;}
.sd-head > *{position:relative;}
.sd-eyebrow{display:flex; align-items:center; gap:12px; font-family:var(--font-mono); font-size:12.5px; letter-spacing:.08em; color:var(--gold); text-transform:uppercase;}
.sd-eyebrow .sd-num{color:rgba(255,255,255,.4);}
.sd-title-row{display:flex; align-items:center; gap:22px; margin-top:22px;}
.sd-ic{width:68px; height:68px; border-radius:20px; background:linear-gradient(145deg,var(--orange),var(--orange-dark)); display:flex; align-items:center; justify-content:center; font-size:27px; flex-shrink:0;}
.sd-head h1{font-size:clamp(30px,4.6vw,46px); outline:none;}
.sd-intro{margin-top:24px; font-size:17px; line-height:1.75; color:rgba(255,255,255,.72); max-width:720px;}
.sd-block{background:var(--white); border:1px solid var(--grey-200); border-radius:var(--radius-l); padding:34px 36px; margin-top:22px; box-shadow:var(--shadow-tight);}
.sd-block h2{font-size:22px; margin-bottom:20px;}
.sd-list{list-style:none; display:grid; gap:14px;}
.sd-list li{display:flex; gap:14px; align-items:flex-start; font-size:15px; line-height:1.65; color:var(--ink-soft);}
.sd-list li i{color:var(--orange); margin-top:5px; font-size:13px; flex-shrink:0;}
.sd-steps{list-style:none; display:grid; gap:22px; counter-reset:none;}
.sd-steps li{display:flex; gap:18px; align-items:flex-start;}
.sd-step-n{width:36px; height:36px; border-radius:50%; background:rgba(255,107,0,.12); color:var(--orange); font-family:var(--font-display); font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.sd-steps h5{font-size:16px; margin-bottom:4px;}
.sd-steps p{font-size:14.5px; color:var(--grey-600); line-height:1.65;}
.sd-contacts{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:22px;}
.sd-contact{display:flex; align-items:center; gap:14px; padding:16px 18px; border:1px solid var(--grey-200); border-radius:var(--radius-m); background:var(--bg); color:var(--ink); transition:all .3s var(--ease); min-width:0;}
.sd-contact:hover{border-color:var(--orange); transform:translateY(-3px);}
.sd-contact .ic{width:42px; height:42px; border-radius:12px; background:rgba(255,107,0,.12); color:var(--orange); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.sd-contact .lbl{font-size:11.5px; color:var(--grey-600); text-transform:uppercase; letter-spacing:.05em;}
.sd-contact .val{font-size:14px; font-weight:600; overflow-wrap:anywhere;}
.sd-cta{margin-top:22px; border-radius:var(--radius-l); padding:36px; background:linear-gradient(120deg,var(--orange),#ff8a3d); color:#fff; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;}
.sd-cta h3{font-size:24px; margin-bottom:8px;}
.sd-cta p{font-size:14.5px; opacity:.92; max-width:460px; line-height:1.6;}
.sd-cta-btns{display:flex; gap:12px; flex-wrap:wrap;}
.sd-cta .btn-light{background:#fff; color:var(--ink);}
.sd-cta .btn-ghost{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.6);}
.sd-others{margin-top:34px;}
.sd-others h4{font-size:15px; margin-bottom:14px; color:var(--grey-600); font-weight:600;}
.sd-chips{display:flex; flex-wrap:wrap; gap:10px;}
.sd-chip{display:inline-flex; align-items:center; gap:9px; padding:10px 16px; border-radius:100px; border:1px solid var(--grey-200); background:var(--white); font-size:13.5px; font-weight:600; color:var(--ink); cursor:pointer; transition:all .3s var(--ease);}
.sd-chip:hover{border-color:var(--orange); color:var(--orange);}
.sd-chip i{color:var(--orange);}
@media (max-width:820px){
  .sd-contacts{grid-template-columns:1fr;}
}
@media (max-width:640px){
  #serviceDetailPage{padding:100px 0 70px;}
  .sd-head{padding:30px 22px 28px; border-radius:28px;}
  .sd-title-row{gap:16px; align-items:flex-start;}
  .sd-ic{width:54px; height:54px; border-radius:16px; font-size:22px;}
  .sd-intro{font-size:15.5px;}
  .sd-block{padding:24px 20px;}
  .sd-block h2{font-size:19px;}
  .sd-cta{padding:26px 22px;}
  .sd-cta-btns, .sd-cta-btns .btn{width:100%;}
  .sd-cta-btns .btn{justify-content:center;}
}
.dash-top{display:flex; justify-content:space-between; align-items:center; margin-bottom:40px; flex-wrap:wrap; gap:16px;}
.dash-welcome h2{font-size:28px;}
.dash-welcome p{color:var(--grey-600); font-size:14px; margin-top:4px;}
.dash-tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:36px; border-bottom:1px solid var(--grey-200); padding-bottom:0;}
.dtab{padding:12px 20px; font-size:14px; font-weight:600; color:var(--grey-600); border-bottom:2px solid transparent; margin-bottom:-1px; transition:all .3s ease; display:flex; align-items:center; gap:8px;}
.dtab.active, .dtab:hover{color:var(--orange); border-color:var(--orange);}
.dpanel{display:none;}
.dpanel.active{display:block; animation:fadeUp .5s var(--ease);}
@keyframes fadeUp{from{opacity:0; transform:translateY(14px);}to{opacity:1;transform:translateY(0);}}

.dash-cards{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:30px;}
@media (max-width:980px){.dash-cards{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.dash-cards{grid-template-columns:1fr;}}
.d-card{background:var(--white); border:1px solid var(--grey-200); border-radius:var(--radius-m); padding:22px;}
.d-card .dc-lbl{font-size:12px; color:var(--grey-600); display:flex; align-items:center; gap:8px;}
.d-card .dc-val{font-family:var(--font-display); font-weight:700; font-size:24px; margin-top:8px;}
.d-card .dc-val small{font-size:13px; color:var(--grey-600); font-weight:500;}
.d-card.paid .dc-val{color:var(--green);}
.d-card.remaining .dc-val{color:var(--orange);}

.progress-panel{background:var(--white); border:1px solid var(--grey-200); border-radius:var(--radius-l); padding:34px; display:grid; grid-template-columns:220px 1fr; gap:40px; align-items:center; margin-bottom:30px;}
@media (max-width:760px){.progress-panel{grid-template-columns:1fr; text-align:center;}
  /* Customer cabinet mobile: hide the "0 AZN" min-value label so "Növbəti ödəniş" naturally
     shifts left to fill its place (row stays display:flex + justify-content:space-between). */
  #dashboardPage .progress-min-lbl{display:none;}
}
.circle-wrap{position:relative; width:200px; height:200px; margin:0 auto;}
.circle-wrap svg{transform:rotate(-90deg);}
.circle-wrap .cbg{fill:none; stroke:var(--grey-200); stroke-width:14;}
.circle-wrap .cfg{fill:none; stroke:var(--orange); stroke-width:14; stroke-linecap:round; stroke-dasharray:534; stroke-dashoffset:534; transition:stroke-dashoffset 1.8s var(--ease);}
.circle-label{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;}
.circle-label .cl-pct{font-family:var(--font-display); font-size:34px; font-weight:800;}
.circle-label .cl-txt{font-size:11.5px; color:var(--grey-600); margin-top:2px;}

.lin-bar{height:14px; background:var(--grey-200); border-radius:100px; overflow:hidden; margin:14px 0 8px;}
.lin-fill{height:100%; width:0%; background:linear-gradient(90deg,var(--green),#3fc978); border-radius:100px; transition:width 1.8s var(--ease);}
.pay-timeline{display:flex; gap:5px; margin-top:22px; flex-wrap:wrap;}
.pt-dot{width:26px;height:8px;border-radius:100px; background:var(--grey-200);}
.pt-dot.paid{background:var(--green);}
.pt-dot.next{background:var(--orange);}

.doc-list, .notif-list, .ref-list{display:flex; flex-direction:column; gap:12px;}
.doc-item, .notif-item, .ref-item{background:var(--white); border:1px solid var(--grey-200); border-radius:var(--radius-m); padding:18px 22px; display:flex; align-items:center; gap:16px; transition:all .3s ease;}
.doc-item:hover, .ref-item:hover{border-color:var(--orange); transform:translateX(4px);}
.doc-item .di-ic{width:44px;height:44px; border-radius:12px; background:var(--grey-100); display:flex;align-items:center;justify-content:center; color:var(--orange); font-size:17px; flex-shrink:0;}
.doc-item .di-info{flex:1;}
.doc-item h5{font-size:14.5px;}
.doc-item .di-meta{font-size:12px; color:var(--grey-600); margin-top:2px;}
.doc-actions{display:flex; gap:8px;}
.doc-actions button{width:36px;height:36px;border-radius:10px; background:var(--grey-100); display:flex;align-items:center;justify-content:center; color:var(--ink); transition:all .3s ease;}
.doc-actions button:hover{background:var(--orange); color:#fff;}

/* Document preview modal (Sənədlərim) */
.doc-actions button{cursor:pointer; border:0;}
#docPreviewModal .doc-preview-box{max-width:980px; width:100%; padding:0; display:flex; flex-direction:column; height:min(90vh,900px); max-height:none; overflow:hidden;}
#docPreviewModal .modal-close{top:12px; right:14px; z-index:3;}
.dp-head{padding:18px 64px 14px 24px; border-bottom:1px solid var(--grey-200); flex-shrink:0; min-width:0;}
.dp-head h3{font-size:17px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.dp-head .dp-meta{font-size:12px; color:var(--grey-600); margin-top:2px;}
.dp-body{flex:1; min-height:0; background:var(--grey-100); overflow:auto; -webkit-overflow-scrolling:touch; display:flex; align-items:center; justify-content:center; position:relative;}
.dp-body img{max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block; margin:auto;}
.dp-body iframe{width:100%; height:100%; border:0; background:#fff; display:block;}
.dp-msg{padding:32px 24px; text-align:center; color:var(--grey-600); font-size:14px; line-height:1.6;}
.dp-msg i{display:block; font-size:34px; color:var(--orange); margin-bottom:12px;}
.dp-foot{display:flex; gap:10px; justify-content:flex-end; padding:12px 20px; border-top:1px solid var(--grey-200); flex-shrink:0; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));}
#docPreviewModal .dp-foot .btn{width:auto; margin-top:0; padding:11px 22px; font-size:14px;}
@media (max-width:600px){
  #docPreviewModal{padding:0;}
  #docPreviewModal .doc-preview-box{height:100vh; height:100dvh; max-width:none; border-radius:0;}
  .dp-head{padding:14px 58px 12px 16px;}
  .dp-foot{padding-left:14px; padding-right:14px;}
  #docPreviewModal .dp-foot .btn{flex:1; justify-content:center;}
}

.notif-item{align-items:flex-start;}
.notif-item .ni-dot{width:9px;height:9px;border-radius:50%; background:var(--orange); margin-top:6px; flex-shrink:0;}
.notif-item h5{font-size:14px;}
.notif-item p{font-size:12.5px; color:var(--grey-600); margin-top:3px;}
.notif-item .ni-time{font-size:11px; color:var(--grey-400); margin-left:auto; white-space:nowrap;}

.notif-camp-item{align-items:center;}
.notif-camp-item .nci-img{width:64px; height:64px; border-radius:12px; background:var(--grey-100) center/cover no-repeat; flex-shrink:0;}
.notif-camp-item .nci-img-placeholder{display:flex; align-items:center; justify-content:center; color:var(--orange); font-size:20px;}
.notif-camp-item .nci-body{flex:1; min-width:0;}
.notif-camp-item .nci-body h5{font-size:14.5px;}
.notif-camp-item .nci-body p{font-size:12.5px; color:var(--grey-600); margin-top:3px; margin-bottom:8px;}
.notif-camp-item .nci-body .ni-time{margin-left:0; display:block; margin-bottom:10px;}
.notif-camp-item .nci-body .btn{padding:9px 16px; font-size:12.5px;}
@media (max-width:560px){.notif-camp-item{flex-wrap:wrap;} .notif-camp-item .nci-img{width:100%; height:120px;}}

.ref-summary{display:flex; gap:20px; background:linear-gradient(120deg,var(--ink),#2a2a2a); color:#fff; border-radius:var(--radius-l); padding:30px; margin-bottom:24px; flex-wrap:wrap;}
.ref-summary .rs-item{flex:1; min-width:140px;}
.ref-summary .rs-val{font-family:var(--font-display); font-size:28px; font-weight:800; color:var(--gold);}
.ref-summary .rs-lbl{font-size:12px; color:rgba(255,255,255,.55); margin-top:4px;}
.ref-item .ri-avatar{width:42px;height:42px;border-radius:50%; background:var(--orange); color:#fff; display:flex;align-items:center;justify-content:center; font-weight:700; font-size:14px;}
.ref-item .ri-bonus{margin-left:auto; font-family:var(--font-display); font-weight:700; color:var(--green);}
.ref-item .ri-bonus.used{color:var(--yellow);}
.ref-item .ri-used-lbl{margin-left:auto; font-size:12px; color:var(--yellow); font-weight:600; text-align:right;}
.ref-form-row{border:1px solid var(--grey-200); border-radius:var(--radius-m); padding:14px 16px; margin-bottom:12px; position:relative;}
.ref-form-row .cform-grid{margin-bottom:0;}
.ref-form-row .ref-row-lbl{font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--grey-600); margin-bottom:8px;}
.ref-add-btn{background:none; border:1px dashed var(--grey-300, #d0d0d0); border-radius:var(--radius-m); padding:10px 16px; color:var(--orange); font-weight:600; cursor:pointer; width:100%; margin-top:4px;}
.ref-add-btn:hover{background:var(--grey-100, #f7f7f7);}

/* Admin: per-vehicle feature list editor (Hazır Avtomobillər — "Avtomobil üstünlükləri") */
.sv-feat-row{display:flex; align-items:center; gap:10px; margin-bottom:10px;}
.sv-feat-row input{flex:1;}
.sv-feat-remove{flex:0 0 auto; width:38px; height:38px; border-radius:50%; border:1px solid var(--grey-200); background:var(--grey-100); color:var(--grey-600); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s ease;}
.sv-feat-remove:hover{background:var(--red); border-color:var(--red); color:#fff;}

.bonus-cta{background:var(--white); border:1px solid var(--grey-200); border-radius:var(--radius-l); padding:30px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin-top:24px;}
.bonus-cta h4{font-size:17px; margin-bottom:6px;}
.bonus-cta p{font-size:13px; color:var(--grey-600); max-width:400px;}

.profile-panel{background:var(--white); border:1px solid var(--grey-200); border-radius:var(--radius-l); padding:34px; display:grid; grid-template-columns:auto 1fr; gap:26px; align-items:center;}
@media (max-width:560px){.profile-panel{grid-template-columns:1fr; text-align:center;}}
.p-avatar{width:84px;height:84px;border-radius:22px; background:linear-gradient(145deg,var(--orange),var(--orange-dark)); display:flex;align-items:center;justify-content:center; color:#fff; font-size:32px; font-weight:800; font-family:var(--font-display); margin:0 auto;}
.p-info-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px;}
.p-info-grid div span{display:block; font-size:11px; color:var(--grey-400); text-transform:uppercase; margin-bottom:3px;}
.p-info-grid div p{font-size:14.5px; font-weight:600;}

.hist-table{width:100%; border-collapse:collapse; background:var(--white); border-radius:var(--radius-m); overflow:hidden; border:1px solid var(--grey-200);}
.hist-table th{background:var(--grey-100); text-align:left; padding:14px 18px; font-size:11.5px; text-transform:uppercase; color:var(--grey-600); letter-spacing:.04em;}
.hist-table td{padding:14px 18px; font-size:13.5px; border-top:1px solid var(--grey-200);}
.status-pill{padding:5px 12px; border-radius:100px; font-size:11.5px; font-weight:700;}
.status-pill.ok{background:rgba(31,170,89,.12); color:var(--green);}
.status-pill.late{background:rgba(225,74,59,.12); color:var(--red);}
.status-pill.pending{background:rgba(255,107,0,.12); color:var(--orange);}
.hist-scroll{overflow-x:auto;}

#logoutBtn{color:var(--red); font-size:14px; font-weight:600; display:flex; align-items:center; gap:8px;}

/* Success toast */
#toast{position:fixed; top:110px; right:28px; z-index:3000; background:var(--ink); color:#fff; padding:18px 24px; border-radius:14px; display:flex; align-items:center; gap:14px; box-shadow:var(--shadow-soft); transform:translateX(120%); transition:transform .5s var(--ease); max-width:320px;}
#toast.show{transform:translateX(0);}
#toast .ti{width:38px;height:38px;border-radius:50%; background:var(--green); display:flex;align-items:center;justify-content:center; flex-shrink:0;}
#toast .tt-title{font-size:14px; font-weight:700;}
#toast .tt-sub{font-size:12px; color:rgba(255,255,255,.6); margin-top:2px;}

/* Utility reveal classes for JS-independent fallback */
.mono{font-family:var(--font-mono);}
