:root{--primary:#4f46e5;--primary2:#7c3aed;--dark:#0f172a;--muted:#64748b;--bg:#f5f7fb;--success:#16a34a;--danger:#dc2626;--warning:#f59e0b}
*{box-sizing:border-box}
body{background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#172033;font-weight:500;letter-spacing:-.01em}
h1,h2,h3,h4,h5,h6,.brand,.page-title,.auth-title{font-family:Poppins,Inter,system-ui,sans-serif;letter-spacing:-.035em}

.auth-title{font-weight:900;font-size:30px;color:#111827}
.auth-card label{font-weight:700;color:#334155;font-size:13px}
.auth-card .form-control{font-size:13px!important;height:40px!important;padding:8px 12px!important}
.auth-card .btn{padding:9px 14px;font-size:14px}
.auth-bg{background:linear-gradient(135deg,#0f172a,#312e81)}
.auth-card{width:420px;background:#fff;border-radius:28px;padding:32px;box-shadow:0 25px 80px rgba(0,0,0,.25)}

.app-shell{display:flex;min-height:100vh}
.sidebar{width:270px;background:linear-gradient(180deg,#0f172a,#111827);color:#fff;position:fixed;inset:0 auto 0 0;padding:24px;box-shadow:18px 0 45px rgba(15,23,42,.12)}
.brand{font-size:20px;font-weight:900;margin-bottom:30px;letter-spacing:-.3px}
.sidebar a{display:flex;align-items:center;gap:10px;color:#cbd5e1;text-decoration:none;padding:11px 14px;border-radius:14px;margin-bottom:7px;font-weight:650;font-size:14px}
.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.1);color:#fff}

.content{margin-left:270px;width:calc(100% - 270px);padding:24px}
.topbar{background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border:1px solid rgba(226,232,240,.8);border-radius:22px;padding:16px 22px;margin-bottom:22px;box-shadow:0 14px 35px rgba(15,23,42,.06)}

.card,.pro-card{border:0;border-radius:22px;box-shadow:0 18px 45px rgba(15,23,42,.07);background:#fff}
.filter-card{border:1px solid #e8edf7;box-shadow:0 14px 35px rgba(15,23,42,.045)}
.pro-card{padding:16px}

.btn{border-radius:12px;font-weight:700;font-size:13px;padding:6px 12px}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary2));border:0}
.btn-success,.btn-danger{border:0}

.form-control,.form-select{
  border-radius:12px;
  border-color:#dbe3ef;
  font-size:13px!important;
  height:36px!important;
  padding:6px 10px!important;
}

.form-control:focus,.form-select:focus{
  font-size:13px!important;
  height:36px!important;
  padding:6px 10px!important;
  box-shadow:0 0 0 .15rem rgba(79,70,229,.12)!important;
  border-color:#818cf8;
}

.hero-panel,.user-hero,.profile-hero{background:linear-gradient(135deg,#fff,#eef2ff);border:1px solid #e5e7ff;border-radius:26px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 18px 45px rgba(79,70,229,.08)}
.hero-panel h2,.user-hero h2,.profile-hero h2{font-weight:900;letter-spacing:-.5px}
.hero-actions{display:flex;gap:10px}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:900;color:var(--primary)}

.metric-card{background:#fff;border-radius:22px;padding:18px;border:1px solid #edf1f7;box-shadow:0 18px 45px rgba(15,23,42,.06);position:relative;overflow:hidden}
.metric-card:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-55px;top:-60px;background:linear-gradient(135deg,rgba(79,70,229,.16),rgba(124,58,237,.06))}
.metric-card.live:after{background:linear-gradient(135deg,rgba(220,38,38,.16),rgba(245,158,11,.06))}
.metric-card span{display:block;color:var(--muted);font-weight:700;font-size:13px}
.metric-card strong{display:block;font-size:24px;font-weight:950;letter-spacing:-.7px}
.metric-card small{color:#94a3b8;font-size:12px}

.card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.card-head h5{margin:0;font-weight:900;font-size:17px}
.card-head p{margin:2px 0 0;color:var(--muted);font-size:13px}

.active-list{display:flex;flex-direction:column;gap:10px}
.active-row,.history-row{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #edf1f7;border-radius:16px;background:#fbfdff}

.avatar,.profile-avatar{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900}
.avatar.small{width:32px;height:32px;border-radius:11px;font-size:13px}
.profile-avatar{width:78px;height:78px;border-radius:24px;font-size:30px}

.live-timer{font-variant-numeric:tabular-nums;font-weight:900;color:var(--danger);background:#fff1f2;border:1px solid #fecdd3;padding:6px 10px;border-radius:12px;font-size:13px}

.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:900}
.status-pill.success{background:#dcfce7;color:#166534}
.status-pill.danger{background:#fee2e2;color:#991b1b}
.status-pill.muted{background:#f1f5f9;color:#475569}

.empty-state{padding:24px;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;color:var(--muted);background:#f8fafc}
.timer-console{background:radial-gradient(circle at top,#eef2ff,#fff 55%)}
.timer{font-size:38px;font-weight:900;letter-spacing:2px;color:var(--primary);font-variant-numeric:tabular-nums}
.action-btn{padding:9px 12px}

.status-orb{display:flex;align-items:center;gap:9px;background:#dcfce7;color:#166534;border-radius:999px;padding:9px 13px;font-weight:900;font-size:13px}
.status-orb span{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.15)}
.status-orb.on-break{background:#fee2e2;color:#991b1b}
.status-orb.on-break span{background:#ef4444;box-shadow:0 0 0 6px rgba(239,68,68,.15)}

.profile-hero{justify-content:flex-start}
.profile-form-card{max-width:920px}
.security-card{background:linear-gradient(180deg,#fff,#f8fafc)}
.security-item{display:flex;justify-content:space-between;border-top:1px solid #edf1f7;padding:12px 0}

.table{vertical-align:middle;font-size:13px}
.dataTables_wrapper{font-size:13px}
.table thead th{color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid #e2e8f0}
.table td,.table th{padding:10px 12px}
canvas{max-height:320px}

.photo-avatar img,.small-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.small-avatar{width:56px;height:56px;font-size:1.1rem}

.welcome-panel{background:linear-gradient(135deg,#fff,#f5f7ff);border:1px solid rgba(99,102,241,.14);border-radius:22px;padding:20px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 18px 45px rgba(15,23,42,.08)}

.text-white-75{color:rgba(255,255,255,.78)}
.auth-wrap{background:radial-gradient(circle at 15% 15%,rgba(99,102,241,.34),transparent 34%),linear-gradient(135deg,#0b1020,#17153b 52%,#111827)}
.auth-visual{align-items:center;justify-content:center;padding:48px}
.auth-visual-card{max-width:720px;color:#fff}
.visual-badge{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:9px 14px;font-weight:800;margin-bottom:18px;font-size:13px}
.auth-visual h1{font-size:48px;font-weight:950;letter-spacing:-.06em;margin-bottom:12px}
.auth-visual p{max-width:560px;color:rgba(255,255,255,.76);font-size:15px;line-height:1.6}

.visual-dashboard{margin-top:28px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:30px;padding:22px;box-shadow:0 35px 100px rgba(0,0,0,.28);backdrop-filter:blur(16px)}
.visual-top{height:52px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(238,242,255,.82));margin-bottom:16px}
.visual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.visual-metric{background:rgba(255,255,255,.92);border-radius:20px;padding:15px;color:#0f172a}
.visual-metric span{display:block;color:#64748b;font-weight:800;font-size:12px}
.visual-metric strong{font-size:28px;font-weight:950}
.visual-chart{height:150px;margin-top:14px;display:flex;align-items:end;gap:12px;background:rgba(255,255,255,.08);border-radius:22px;padding:16px}
.visual-chart i{display:block;flex:1;border-radius:18px 18px 8px 8px;background:linear-gradient(180deg,#a5b4fc,#4f46e5)}
.visual-chart i:nth-child(1){height:46%}
.visual-chart i:nth-child(2){height:70%}
.visual-chart i:nth-child(3){height:55%}
.visual-chart i:nth-child(4){height:88%}
.visual-chart i:nth-child(5){height:62%}

.auth-form-side{padding:32px}
.pro-login-card{width:min(440px,92vw);padding:34px;border:1px solid rgba(255,255,255,.4)}
.auth-logo{width:56px;height:56px;border-radius:20px;background:linear-gradient(135deg,var(--primary),var(--primary2));display:grid;place-items:center;margin:0 auto 14px;color:#fff;font-size:24px;box-shadow:0 18px 40px rgba(79,70,229,.35)}

.profile-premium-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#312e81,#4f46e5 55%,#7c3aed);border-radius:28px;padding:26px;display:flex;align-items:center;gap:20px;box-shadow:0 26px 70px rgba(79,70,229,.22)}
.profile-cover-glow{position:absolute;right:-90px;top:-90px;width:250px;height:250px;background:rgba(255,255,255,.16);border-radius:50%;filter:blur(8px)}
.profile-avatar-xl,.profile-avatar-lg{position:relative;z-index:1;display:grid;place-items:center;background:linear-gradient(135deg,#fff,#eef2ff);color:#4f46e5;font-weight:950;box-shadow:0 22px 50px rgba(15,23,42,.18);overflow:hidden}
.profile-avatar-xl{width:88px;height:88px;border-radius:28px;font-size:34px}
.profile-avatar-lg{width:96px;height:96px;border-radius:30px;font-size:36px}
.profile-avatar-xl img,.profile-avatar-lg img{width:100%;height:100%;object-fit:cover}

.profile-summary-card{padding:24px}
.profile-info-list{border-top:1px solid #edf1f7}
.profile-info-list div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f7}
.profile-info-list span{color:#64748b;font-weight:800;font-size:13px}
.profile-info-list strong{font-weight:900;font-size:13px}

.upload-box{cursor:pointer;border:1.5px dashed #a5b4fc;border-radius:20px;background:linear-gradient(135deg,#f8fafc,#eef2ff);padding:16px;display:flex;align-items:center;gap:14px;transition:.2s}
.upload-box:hover{transform:translateY(-1px);box-shadow:0 16px 40px rgba(79,70,229,.12)}
.upload-box input{display:none}
.upload-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:#fff;font-size:21px;box-shadow:0 10px 25px rgba(15,23,42,.08)}
.upload-box strong{display:block;font-weight:900;font-size:14px}
.upload-box small{display:block;color:#64748b;font-size:12px}

.profile-form-card{max-width:none}
.auth-title{font-size:30px}

/* Compact dashboard filters */
.filter-card .form-control,
.filter-card .form-select{
  height:34px!important;
  font-size:13px!important;
  padding:5px 10px!important;
}

/* Compact form labels */
.form-label{
  font-size:13px;
  font-weight:600;
}

/* Prevent oversized lg controls */
.form-control-lg,
.form-select-lg{
  font-size:13px!important;
  height:38px!important;
  padding:7px 11px!important;
}

/* Compact large buttons */
.btn-lg{
  font-size:14px!important;
  padding:8px 16px!important;
}

/* Remove unwanted input zoom/resize while typing */
input,
select,
textarea{
  font-size:13px!important;
}

input:focus,
select:focus,
textarea:focus{
  transform:none!important;
  font-size:13px!important;
}

/* Mobile */
@media(max-width:900px){
  .sidebar{position:relative;width:100%;height:auto}
  .app-shell{display:block}
  .content{margin-left:0;width:100%;padding:14px}
  .hero-panel,.user-hero,.profile-hero{display:block}
  .hero-actions{margin-top:16px}
  .timer{font-size:34px}
  .auth-card{width:92vw}
  .profile-avatar{margin-bottom:12px}
}

@media(max-width:768px){
  .welcome-panel{align-items:flex-start;gap:16px;flex-direction:column}
  .auth-visual h1{font-size:34px}
  .auth-visual{padding:26px}
  .visual-dashboard{display:none}
}
.dashboard-filter-card{padding:14px 16px}
.dashboard-scroll-area{max-height:360px;overflow-y:auto;padding-right:4px}
.dashboard-table-scroll{max-height:420px;overflow-y:auto}
.dashboard-table-scroll thead th{position:sticky;top:0;background:#fff;z-index:2}
.dashboard-scroll-area::-webkit-scrollbar,.dashboard-table-scroll::-webkit-scrollbar{width:7px;height:7px}
.dashboard-scroll-area::-webkit-scrollbar-thumb,.dashboard-table-scroll::-webkit-scrollbar-thumb{background:#d7dbe7;border-radius:999px}
.performance-table-scroll{max-height:520px;overflow:auto}
.performance-table-scroll thead th{position:sticky;top:0;background:#fff;z-index:2}
.performance-table-scroll::-webkit-scrollbar{width:7px;height:7px}
.performance-table-scroll::-webkit-scrollbar-thumb{background:#d7dbe7;border-radius:999px}

/* DataTables global polish */
.dataTables_length label{display:flex;align-items:center;gap:8px;font-weight:500;color:#334155}
.dataTables_length select.form-select,.dataTables_length select{min-width:72px!important;width:auto!important;height:38px!important;padding:6px 32px 6px 12px!important;background-position:right .65rem center!important;line-height:1.35!important}
.dataTables_filter label{display:flex;align-items:center;gap:8px;font-weight:500;color:#334155}
.dataTables_filter input{height:38px!important;border-radius:12px!important}
.performance-chart-wrap{height:320px;min-height:320px}

/* Equal dashboard chart cards */
.dashboard-chart-grid > [class*="col-"]{display:flex}
.dashboard-chart-card{width:100%;height:390px;display:flex;flex-direction:column;overflow:hidden}
.dashboard-chart-card h6{margin-bottom:12px;font-weight:900;flex:0 0 auto}
.dashboard-chart-box{height:320px;min-height:320px;position:relative;flex:1 1 auto;width:100%}
.dashboard-chart-box canvas{width:100%!important;height:100%!important;max-height:none!important}
@media(max-width:991.98px){.dashboard-chart-card{height:360px}.dashboard-chart-box{height:290px;min-height:290px}}


/* Message Center */
.nav-badge{margin-left:auto;min-width:20px;height:20px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:900;display:inline-grid;place-items:center;padding:0 6px}
.message-shell{display:grid;grid-template-columns:320px 1fr;min-height:650px;overflow:hidden;border:1px solid #e8edf7}
.message-contacts{border-right:1px solid #edf1f7;background:#fbfdff;overflow-y:auto}
.message-contact-head{height:64px;padding:18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f7}
.message-contact{display:flex;gap:12px;align-items:center;text-decoration:none;color:#172033;padding:14px 16px;border-bottom:1px solid #edf1f7}
.message-contact:hover,.message-contact.active{background:#eef2ff;color:#172033}
.message-contact strong{font-size:14px}
.message-count{min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;display:inline-grid;place-items:center;font-size:11px;font-weight:900}
.message-chat{display:flex;flex-direction:column;min-width:0;background:#fff}
.message-chat-head{height:64px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f7}
.message-list{flex:1;overflow-y:auto;padding:18px;background:linear-gradient(180deg,#f8fafc,#fff)}
.message-bubble-row{display:flex;margin-bottom:14px}
.message-bubble-row.mine{justify-content:flex-end}
.message-bubble{max-width:68%;border-radius:20px;padding:10px 12px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.message-bubble-row.mine .message-bubble{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border-color:transparent}
.message-meta{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:6px;font-size:11px;opacity:.72}
.message-actions{display:flex;gap:6px;margin-top:8px}
.message-actions button{border:0;background:rgba(15,23,42,.08);font-size:11px;border-radius:999px;padding:4px 8px}
.message-bubble-row.mine .message-actions button{background:rgba(255,255,255,.18);color:#fff}
.message-attachment{display:block;margin-top:8px;border-radius:14px;overflow:hidden;border:1px solid rgba(148,163,184,.3)}
.message-attachment img{max-width:260px;max-height:220px;display:block;object-fit:cover}
.message-send-form{display:flex;gap:10px;padding:14px 18px;border-top:1px solid #edf1f7;background:#fff;align-items:center}
.message-attach-btn{width:42px;height:42px;border-radius:14px;background:#eef2ff;color:#4f46e5;display:grid;place-items:center;font-size:18px;cursor:pointer;margin:0}
.message-attach-btn input{display:none}
.message-send-form .form-control{height:42px!important;border-radius:14px!important}
@media(max-width:900px){
  .message-shell{grid-template-columns:1fr}
  .message-contacts{max-height:260px;border-right:0;border-bottom:1px solid #edf1f7}
  .message-bubble{max-width:88%}
}

.nav-badge.d-none{display:none!important}


.message-reply-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 18px 0;padding:10px 12px;border:1px solid #dbeafe;background:#eff6ff;color:#1e3a8a;border-radius:14px;font-size:13px}
.message-reply-preview button{border:0;background:transparent;font-size:20px;line-height:1;color:#1e3a8a}
.message-reply-box{border-left:3px solid #a5b4fc;background:rgba(99,102,241,.08);padding:8px 10px;border-radius:12px;margin-bottom:8px;font-size:12px}
.message-reply-box strong{display:block;margin-bottom:2px}
.message-reply-box span{display:block;opacity:.8}
.message-forwarded{font-size:12px;font-weight:800;opacity:.72;margin-bottom:6px}
.message-bubble-row.mine .message-reply-box{background:rgba(255,255,255,.16);border-left-color:rgba(255,255,255,.55)}



.pwa-install-btn{position:fixed;left:22px;bottom:22px;z-index:1050;border:0;border-radius:18px;padding:12px 18px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-weight:900;box-shadow:0 18px 45px rgba(79,70,229,.35)}
.pwa-install-btn:before{content:"⬇";display:inline-grid;place-items:center;width:26px;height:26px;border-radius:10px;background:rgba(255,255,255,.18);margin-right:8px}
.pwa-install-btn.d-none{display:none!important}
.pwa-sidebar-install{width:100%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:16px;padding:11px 14px;margin:10px 0 8px;display:flex;align-items:center;gap:10px;font-weight:900;text-align:left}
.pwa-sidebar-install span{width:28px;height:28px;border-radius:10px;background:rgba(255,255,255,.12);display:grid;place-items:center}
.pwa-sidebar-install strong{font-size:13px}
.pwa-sidebar-install:hover{background:rgba(255,255,255,.13)}
.pwa-sidebar-install.d-none{display:none!important}


/* B18 sidebar icon polish */
.sidebar{display:flex;flex-direction:column;padding:22px 18px}
.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:950;margin-bottom:26px;padding:8px 8px 14px;border-bottom:1px solid rgba(255,255,255,.10)}
.brand-icon{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#6366f1,#8b5cf6);box-shadow:0 14px 34px rgba(99,102,241,.35);font-size:20px}
.brand-text{line-height:1.05}
.sidebar-nav{display:flex;flex-direction:column;gap:7px;min-height:calc(100vh - 110px)}
.sidebar a{position:relative;display:flex;align-items:center;gap:12px;color:#cbd5e1;text-decoration:none;padding:10px 12px;border-radius:16px;margin-bottom:0;font-weight:750;font-size:14px;border:1px solid transparent;transition:.18s ease}
.sidebar a:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(2px)}
.sidebar a.active{background:linear-gradient(135deg,rgba(99,102,241,.30),rgba(124,58,237,.18));border-color:rgba(165,180,252,.22);color:#fff;box-shadow:0 16px 35px rgba(0,0,0,.14)}
.sidebar a.active:before{content:"";position:absolute;left:-8px;width:4px;height:26px;border-radius:999px;background:#a5b4fc}
.nav-icon{width:34px;height:34px;min-width:34px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.08);font-size:16px}
.sidebar a.active .nav-icon{background:rgba(255,255,255,.16)}
.nav-label{flex:1}
.sidebar-divider{height:1px;background:rgba(255,255,255,.10);margin:12px 6px 4px}
.logout-link{margin-top:auto!important;color:#fecaca!important}
.logout-link .nav-icon{background:rgba(239,68,68,.14)}
.logout-link:hover{background:rgba(239,68,68,.12)!important}
.pwa-sidebar-install{width:100%;border:1px solid rgba(165,180,252,.25);background:linear-gradient(135deg,rgba(79,70,229,.28),rgba(124,58,237,.16));color:#fff;border-radius:16px;padding:10px 12px;margin:8px 0;display:flex;align-items:center;gap:12px;font-weight:900;text-align:left;box-shadow:0 14px 34px rgba(0,0,0,.10)}
.pwa-sidebar-install:hover{background:linear-gradient(135deg,rgba(79,70,229,.38),rgba(124,58,237,.22));transform:translateX(2px)}
.pwa-sidebar-install strong{font-size:13px}
.pwa-sidebar-install.d-none{display:none!important}
.nav-badge{margin-left:auto;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:950;display:inline-grid;place-items:center;padding:0 7px;box-shadow:0 0 0 4px rgba(239,68,68,.16)}
.nav-badge.d-none{display:none!important}


/* B20 profile upload and message avatar fixes */
.upload-copy{min-width:0}
#profilePhotoFileName{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-contact .avatar,
.message-contact .avatar.small{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;max-height:38px!important;border-radius:14px!important;overflow:hidden;flex:0 0 38px}
.message-contact .avatar img,
.message-contact .avatar.small img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;border-radius:14px!important;display:block}
.message-bubble .avatar img,
.message-chat .avatar img{max-width:100%;height:100%;object-fit:cover}

.warehouse-console{background:radial-gradient(circle at top,#f0fdf4,#fff 58%);border:1px solid #dcfce7}
#workTimer{font-variant-numeric:tabular-nums}


/* B27 polish */
.logout-link{margin-top:auto!important;margin-bottom:30px!important}
.violation-template-area{min-height:300px!important;line-height:1.65!important;font-size:14px!important;padding:14px!important}

.notification-popup{position:fixed;right:22px;bottom:22px;width:360px;max-width:calc(100vw - 44px);z-index:2000;background:#fff;border:1px solid #fee2e2;border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.22);overflow:hidden}
.notification-popup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff1f2;color:#991b1b;padding:12px 14px}
.notification-popup-close{border:0;background:transparent;font-size:22px;line-height:1;color:#991b1b}
.notification-popup-body{padding:14px;color:#172033;font-size:13px;line-height:1.6}
.notification-popup-actions{padding:0 14px 14px;display:flex;justify-content:flex-end}


/* B29 notification read/unread colors */
.notification-row-unread td{background:#fff7ed!important;border-bottom-color:#fed7aa!important}
.notification-row-unread td:first-child{border-left:4px solid #f97316}
.notification-row-read td{background:#f8fafc!important;color:#64748b}
.notification-row-read td:first-child{border-left:4px solid #22c55e}


.message-send-form{position:relative}
.message-emoji-btn{width:42px;height:42px;border:0;border-radius:14px;background:#fff7ed;font-size:19px;display:grid;place-items:center}
.message-emoji-panel{position:absolute;left:72px;bottom:62px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 18px 45px rgba(15,23,42,.18);padding:10px;display:grid;grid-template-columns:repeat(8,32px);gap:6px;z-index:40}
.message-emoji-panel.d-none{display:none!important}
.message-emoji-choice{width:32px;height:32px;border:0;border-radius:10px;background:#f8fafc;font-size:18px}
.message-emoji-choice:hover{background:#eef2ff}


/* B31 sidebar logout/install spacing */
.sidebar-nav .logout-link{margin-top:auto!important;margin-bottom:8px!important}
.sidebar-nav .pwa-sidebar-install{margin-top:0!important;margin-bottom:14px!important}


/* B32 sidebar bottom action order */
.sidebar-bottom-actions{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:8px}
.sidebar-bottom-actions .pwa-sidebar-install{order:1;margin:0!important}
.sidebar-bottom-actions .logout-link{order:2;margin:0!important}
.sidebar-nav .logout-link{margin-top:0!important;margin-bottom:0!important}


/* B33 sidebar visibility and compact bottom actions */
.sidebar{height:100vh;display:flex!important;flex-direction:column;padding:14px 14px!important;overflow:hidden}
.sidebar .brand{margin-bottom:12px!important;padding-bottom:10px!important}
.sidebar-nav{flex:1;min-height:0;overflow-y:auto;padding-right:3px;padding-bottom:8px;scrollbar-width:thin}
.sidebar a{padding:8px 10px!important;margin-bottom:4px!important;font-size:13px!important;border-radius:13px!important}
.sidebar .nav-icon{width:30px!important;height:30px!important;min-width:30px!important;border-radius:11px!important;font-size:14px!important}
.sidebar-bottom-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(17,24,39,.88),#111827 35%);padding-top:8px;margin-top:10px;display:flex;flex-direction:column;gap:7px;z-index:10}
.sidebar-bottom-actions .pwa-sidebar-install{order:1;margin:0!important;padding:8px 10px!important;min-height:38px}
.sidebar-bottom-actions .logout-link{order:2;margin:0!important;padding:8px 10px!important;min-height:38px}
.sidebar-bottom-actions .pwa-sidebar-install strong{font-size:12px!important}


/* B41 user dashboard heading polish */
.user-dashboard-greeting{font-family:'Poppins','Inter',sans-serif;font-weight:800;letter-spacing:-.03em;font-size:clamp(26px,3vw,34px);line-height:1.12;color:#111827}
.user-panel-heading{font-family:'Poppins','Inter',sans-serif;font-weight:800!important;letter-spacing:-.02em;color:#111827}
