/* App polish 2026-11: phone layout for the employee screens + small admin fixes.
   Loaded last; the older brand files use !important, so the phone rules below do too. */

/* Desktop / wide: the nav keeps its old look; the extra icons and the updates tab stay hidden. */
.employee-history-nav .tab .nav-icon,
.employee-history-nav .tab .nav-label-short,
.employee-history-nav .tab.nav-only{display:none!important}
.employee-history-nav .tab b{font-weight:inherit}

/* "Extra options" box (recovery buttons + logout) */
#employeeTools{margin-top:14px}
#employeeTools > summary{cursor:pointer;list-style:none;padding:12px 14px;border:1px solid #ece6e8;border-radius:12px;background:#fff;color:#6b6670;font:500 14px Tajawal,Arial,sans-serif;display:flex;align-items:center;justify-content:space-between}
#employeeTools > summary::-webkit-details-marker{display:none}
#employeeTools > summary::after{content:"⌄";font-size:16px;transition:transform .2s}
#employeeTools[open] > summary::after{transform:rotate(180deg)}
#employeeTools[open] > summary{margin-bottom:10px}
#employeeTools .employee-recovery-actions{display:flex!important;flex-direction:column!important;gap:8px!important}
#employeeTools .employee-recovery-actions button{width:100%!important;margin:0!important}
#employeeTools .employee-recovery-actions button{background:#fff!important;color:#262428!important;border:1px solid #e3dde0!important;box-shadow:none!important;font:500 14px Tajawal,Arial,sans-serif!important;min-height:44px!important}
#employeeTools .employee-recovery-actions button.tool-danger{background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important}
#employeeTools .employee-recovery-actions button.tool-logout{background:#262428!important;color:#fff!important}

/* "حسابي" page (opened from the name in the employee header) */
body:has(#employeeReportView:not(.hidden)) .brand-greeting{cursor:pointer;-webkit-tap-highlight-color:transparent}
body:has(#employeeReportView:not(.hidden)) .brand-greeting > div::after{content:" ›";color:#bf242c;font-weight:700}
.account-page{position:fixed;inset:0 0 calc(66px + env(safe-area-inset-bottom,0px)) 0;z-index:860;background:#fff;overflow-y:auto;
  padding:calc(14px + env(safe-area-inset-top,0px)) 18px 28px;box-sizing:border-box;font-family:Tajawal,Arial,sans-serif;color:#262428;animation:ucIn .18s ease-out}
.account-page.hidden{display:none}
@media (min-width:821px){.account-page{inset:0;max-width:520px;margin:0 auto;box-shadow:0 0 0 100vmax rgba(0,0,0,.35)}}
.account-back{background:none;border:0;color:#bf242c;font:500 15px Tajawal,Arial,sans-serif;padding:6px 0;cursor:pointer}
.account-page h2{font-size:24px;margin:6px 0 16px}
.account-card{border:1px solid #ece6e8;border-radius:16px;padding:16px;margin-bottom:14px;background:#fff}
.account-card strong{display:block;font-size:18px;margin-bottom:4px}
.account-card small{color:#6b6670;font-size:13px}
.account-row{display:flex;align-items:center;gap:12px;border:1px solid #ece6e8;border-radius:14px;padding:14px;margin-bottom:10px;cursor:pointer;background:#fff}
.account-row-static{cursor:default}
.account-row-icon{font-size:18px}
.account-row-text{flex:1;min-width:0}
.account-row-text b{display:block;font-size:15px}
.account-row-text small{display:block;color:#6b6670;font-size:12.5px;margin-top:2px}
.account-row-go{color:#b8b0b5;font-size:20px}
.account-push button{flex:0 0 auto;border-radius:10px;padding:8px 14px;font:700 14px Tajawal,Arial,sans-serif;cursor:pointer}
.account-push button[hidden]{display:none}
.account-push-on{background:#bf242c;color:#fff;border:0}
.account-push-off{background:#fff;color:#6b6670;border:1px solid #e3dde0}
.account-logout{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:22px;min-height:50px;border-radius:14px;
  background:#fff;color:#b52632;border:1.5px solid #e9b7bd;font:700 16px Tajawal,Arial,sans-serif;cursor:pointer}
.account-logout:active{background:#fbeff0}

/* Unread dot on the employee bell */
.employee-notification-button{position:relative}
.bell-dot{position:absolute;top:2px;inset-inline-end:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e52d4f;color:#fff;
  font:700 10px/17px Tajawal,Arial,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff;box-sizing:border-box;pointer-events:none}
.bell-dot.hidden{display:none}

/* Notifications list (all roles): day groups, icon per type, relative time, new items highlighted */
#notificationList .notification-day{margin:18px 2px 8px;font:700 13px Tajawal,Arial,sans-serif;color:#8a8590}
#notificationList .notification-day:first-child{margin-top:4px}
#notificationList .notification-item{display:flex!important;align-items:flex-start;gap:12px;position:relative;margin:0 0 10px!important;padding:14px!important;
  background:#fff!important;border:1px solid #ece6e8!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(38,36,40,.04)!important}
#notificationList .notification-item.unread{background:#fff7f8!important;border-color:#f3d3d8!important}
#notificationList .notification-icon{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#f4f1f3;color:#6b6670}
#notificationList .notification-item.unread .notification-icon{background:#fbe3e6;color:#bf242c}
#notificationList .notification-item[data-kind="incentive"] .notification-icon{background:#fff3dc;color:#b07800}
#notificationList .notification-item[data-kind="update"] .notification-icon{background:#e8f1ff;color:#2a5db0}
#notificationList .notification-body{flex:1;min-width:0}
#notificationList .notification-body h3{margin:0 0 4px!important;font:700 15px/1.4 Tajawal,Arial,sans-serif!important;color:#262428}
#notificationList .notification-body p{margin:0!important;font:500 14px/1.6 Tajawal,Arial,sans-serif!important;color:#4a464d}
#notificationList .notification-time{margin-top:6px!important;font:500 12px Tajawal,Arial,sans-serif!important;color:#8a8590!important}
#notificationList .notification-item small{display:block;margin-top:6px;color:#bf242c;font-size:12px}
#notificationList .notification-new-dot{position:absolute;top:16px;inset-inline-end:14px;width:9px;height:9px;border-radius:50%;background:#e52d4f}
#notificationList .notification-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:48px 16px;text-align:center;color:#8a8590}
#notificationList .notification-empty span{width:56px;height:56px;border-radius:18px;background:#f4f1f3;display:grid;place-items:center;margin-bottom:6px}
#notificationList .notification-empty strong{color:#262428;font:700 16px Tajawal,Arial,sans-serif}
#notificationList .notification-empty small{font:500 13px Tajawal,Arial,sans-serif;color:#8a8590}
.notification-compose.push-not-eligible button{display:none!important}
/* Employees manage phone notifications from «حسابي», not here */
body:has(#employeeReportView:not(.hidden)) #devicePushSection{display:none!important}

/* Admin: collapsible add forms, separated delete buttons, neutral dashboard note */
details.admin-add-form{margin:0 0 16px;border:1px solid #ece6e8;border-radius:14px;padding:0 14px;background:#fff}
details.admin-add-form > summary{cursor:pointer;list-style:none;padding:14px 0;font:700 15px Tajawal,Arial,sans-serif;color:#bf242c}
details.admin-add-form > summary::-webkit-details-marker{display:none}
details.admin-add-form[open]{padding-bottom:14px}
button.row-delete{background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important;margin-top:10px!important}
#admin-dashboard .hm-metric small.stat-note-neutral{color:#8a8590!important}

/* ---------- Management (admin + supervisor share these pages) ---------- */
#adminView .settings-hint{color:#6b6670;font-size:13px;margin:6px 0 12px}
#adminView .reminder-time-row{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:14px 0 4px}
#adminView .reminder-time-row > div{flex:1 1 220px}
#adminView .reminder-time-row input{margin:0}
#adminView .reminder-time-row .btn2{flex:0 0 auto;min-height:44px}
#adminView #devicePushSection{border:1px solid #ece6e8;border-radius:14px;padding:14px;margin:8px 0;background:#fff}
#adminView #devicePushSection h3{font-size:15px;margin:0 0 6px}
#adminView #devicePushAdmin label{display:flex;align-items:center;gap:8px;margin:8px 0}
#adminView #admin-messages #notificationCompose{border:0;padding:0;margin-top:10px}
#notificationComposeMessage:empty{display:none}
/* Reports: filters first, buttons grouped */
#admin-reports .reports-filter-sticky{position:static!important;background:#fff!important;border:1px solid #ece6e8!important;border-radius:14px!important;padding:14px!important;margin:0 0 16px!important}
#admin-reports .reports-filter-sticky .grid3{margin:0 0 10px!important}
#admin-reports .reports-filter-sticky .toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 0!important}
#admin-reports .toolbar-gap{flex:0 0 1px;align-self:stretch;background:#ece6e8;margin:0 4px}
#admin-reports .reports-block-title{font-size:16px;margin:18px 0 8px}
#admin-reports td.report-id{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#6b6670;white-space:nowrap;cursor:help}
#admin-reports td.report-date{white-space:nowrap}
/* Points: four filters on one row */
#admin-points .filters-row4{grid-template-columns:2fr 1fr 1fr 1fr!important}
@media (max-width:820px){#admin-points .filters-row4{grid-template-columns:1fr 1fr!important}}
/* Dues: keep names and the action on one line */
#admin-dues table td:first-child{min-width:110px}
#admin-dues table th,#admin-dues table td{padding-inline:8px!important}
/* Employees table */
#admin-employees .cell-sub{display:block;color:#8a8590;font-size:12px;margin-top:2px}
.status-pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700}
.status-pill.on{background:#e8f6ee;color:#1f7a45}
.status-pill.off{background:#f4f1f3;color:#8a8590}
/* Add forms: labels above fields */
details.admin-add-form .grid2 > div label{display:block;margin:0 0 6px;font-weight:500}
details.admin-add-form .grid2 > div input{margin:0}
/* Photo picker instead of the browser's file box; "remove" only when a photo is chosen */
label.photo-pick{display:inline-flex;align-items:center;gap:6px;cursor:pointer;border:1px dashed #d9cfd3;border-radius:12px;padding:10px 16px;color:#bf242c;font-weight:700;background:#fff;margin:4px 0 8px}
label.photo-pick input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#newPhotoPreview.hidden + button,#editPhotoPreview.hidden + button{display:none!important}
/* Suspend / force logout: outlined, not a wall of red */
#adminView button.access-suspend{background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important;box-shadow:none!important}
#adminView button.access-suspend:hover{background:#fbeff0!important}
/* Dashboard notes: grey by default; green/red only for real ups and downs */
body:has(#adminView:not(.hidden)) #admin-dashboard .hm-metric small{color:#8a8590!important}
body:has(#adminView:not(.hidden)) #admin-dashboard .hm-metric small.stat-note-up{color:#1f7a45!important}
body:has(#adminView:not(.hidden)) #admin-dashboard .hm-metric small.stat-note-down{color:#b52632!important}

/* Employee edit dialog */
#employeeEditor .employee-editor{max-width:640px}
#employeeEditor .employee-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
#employeeEditor .employee-editor-head h2{margin:0;font-size:20px}
#employeeEditor .grid2 > div label{display:block;margin:0 0 6px}
#employeeEditor .grid2 > div input{margin:0}
#employeeEditor .grid2{gap:12px!important}
#employeeEditor .employee-editor-actions{display:flex;gap:10px;margin-top:12px}
#employeeEditor .employee-editor-actions button{flex:1;min-height:46px}
@media (max-width:600px){#employeeEditor .grid2{grid-template-columns:1fr!important}}

/* Updates center (admin): delete buttons */
#updatesCenter button.uc-delete{background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important;box-shadow:none!important}
#updatesCenter button.uc-delete:hover{background:#fbeff0!important}

/* Management side menu on phones: scrolls when it is taller than the screen */
body:has(#adminView:not(.hidden)) #adminView > .management-rail.mobile-open{
  overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  height:100dvh!important;max-height:100dvh!important;min-height:0!important;box-sizing:border-box!important;
  padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important}

@media (min-width:821px){
  /* Desktop: the side menu stays in view while the page scrolls, and scrolls itself on short screens */
  body:has(#adminView:not(.hidden)) #adminView > .management-rail{position:sticky!important;top:0!important;align-self:flex-start!important;
    height:100vh!important;max-height:100vh!important;min-height:0!important;overflow-y:auto!important;box-sizing:border-box!important;overscroll-behavior:contain}
}

/* Visit plans: suggestion settings and day-by-day editor */
#admin-visits .visit-suggest-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:820px){#admin-visits .visit-suggest-grid{grid-template-columns:1fr}}
#admin-visits .visit-area-chips,#admin-visits #visitWorkDays{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
#admin-visits .area-chip,#admin-visits .day-chip{position:relative;cursor:pointer}
#admin-visits .area-chip input,#admin-visits .day-chip input{position:absolute;opacity:0;pointer-events:none}
#admin-visits .area-chip span,#admin-visits .day-chip span{display:inline-flex;align-items:center;gap:6px;border:1px solid #e3dde0;border-radius:999px;padding:7px 14px;background:#fff;font:500 14px Tajawal,Arial,sans-serif;color:#4a464d}
#admin-visits .area-chip small{color:#8a8590}
#admin-visits .area-chip input:checked + span,#admin-visits .day-chip input:checked + span{background:#fbeff0;border-color:#e9b7bd;color:#bf242c;font-weight:700}
#admin-visits .visit-suggest-row{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin:12px 0}
#admin-visits .visit-days{flex:1 1 380px;border:0;padding:0;margin:0}
#admin-visits .visit-days legend{font-weight:700;margin-bottom:4px}
#admin-visits .visit-perday{flex:0 0 200px}
#admin-visits .visit-perday input{margin:0}
#admin-visits .visit-days-list{display:flex;flex-direction:column;gap:12px;margin:10px 0}
#admin-visits .visit-day{border:1px solid #ece6e8;border-radius:16px;padding:14px;background:#fff}
#admin-visits .visit-day.is-friday{border-color:#ecd7a6;background:#fffaf0}
#admin-visits .visit-day-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;align-items:baseline}
#admin-visits .visit-day-head b{font-size:16px}
#admin-visits .visit-day-emp{margin-inline-start:10px;color:#bf242c;font-weight:700}
#admin-visits .visit-day-meta{color:#6b6670;font-size:13px}
#admin-visits .visit-day-note{margin:8px 0 4px;padding:8px 12px;border-radius:10px;background:#f7f4f6;color:#4a464d;font-size:13px;line-height:1.7}
#admin-visits .visit-day-list{margin:8px 0;padding-inline-start:22px;display:flex;flex-direction:column;gap:6px}
#admin-visits .visit-day-list li{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}
#admin-visits .visit-day-list li select{margin:0;min-width:0}
#admin-visits .visit-day-list li small{color:#8a8590;white-space:nowrap;font-size:12px}
@media (max-width:600px){#admin-visits .visit-day-list li{grid-template-columns:1fr auto}#admin-visits .visit-day-list li small{grid-column:1;grid-row:2}}
#admin-visits .visit-add-form{border:1px dashed #e3dde0;border-radius:14px;padding:12px;margin:8px 0}
#admin-visits .visit-add-fields{display:grid;grid-template-columns:150px 1fr 1.4fr auto;gap:8px;margin-top:8px}
#admin-visits .visit-add-fields > *{margin:0;min-width:0}
@media (max-width:820px){#admin-visits .visit-add-fields{grid-template-columns:1fr}}

/* Employee "زياراتي": one card per day */
#employeeVisitsList .emp-visit-day{border:1px solid #ece6e8;border-radius:14px;padding:12px 14px;margin:0 0 10px;background:#fff}
#employeeVisitsList .emp-visit-day.is-today{border-color:#e9b7bd;background:#fff7f8}
#employeeVisitsList .emp-visit-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px}
#employeeVisitsList .emp-visit-head b{font-size:16px}
#employeeVisitsList .emp-visit-head small{color:#8a8590}
#employeeVisitsList .emp-visit-day ol{margin:0;padding-inline-start:20px}
#employeeVisitsList .emp-visit-day li{padding:5px 0;border-bottom:1px solid #f4f1f3;display:flex;justify-content:space-between;gap:8px}
#employeeVisitsList .emp-visit-day li:last-child{border-bottom:0}
#employeeVisitsList .emp-visit-day li small{color:#8a8590}

/* Diagnostics in plain language */
#admin-diagnostics .diag-top{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:12px}
#admin-diagnostics .diag-day input{margin:0}
#admin-diagnostics .diag-quick{display:flex;gap:8px}
#admin-diagnostics .diag-health{border-radius:14px;padding:14px 16px;font:700 16px/1.6 Tajawal,Arial,sans-serif;margin-bottom:12px}
#admin-diagnostics .diag-health.is-green{background:#e8f6ee;color:#1f7a45}
#admin-diagnostics .diag-health.is-yellow{background:#fff6e5;color:#8a5a00}
#admin-diagnostics .diag-health.is-red{background:#fdecee;color:#b52632}
#admin-diagnostics .diag-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
@media (max-width:700px){#admin-diagnostics .diag-stats{grid-template-columns:repeat(2,1fr)}}
#admin-diagnostics .diag-stat{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;border:1px solid #ece6e8;border-radius:14px;background:#fff;cursor:pointer;text-align:start;font-family:Tajawal,Arial,sans-serif}
#admin-diagnostics .diag-stat b{font-size:24px;color:#262428}
#admin-diagnostics .diag-stat small{color:#6b6670;font-size:13px}
#admin-diagnostics .diag-stat.is-zero{opacity:.55}
#admin-diagnostics .diag-stat.is-error:not(.is-zero),#admin-diagnostics .diag-stat.is-session:not(.is-zero){border-color:#f0c9cd;background:#fff7f8}
#admin-diagnostics .diag-stat.is-slow:not(.is-zero),#admin-diagnostics .diag-stat.is-connection:not(.is-zero){border-color:#ecd7a6;background:#fffbf2}
#admin-diagnostics h3{font-size:16px;margin:8px 0}
#admin-diagnostics .diag-people{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
#admin-diagnostics .diag-person{display:grid;grid-template-columns:minmax(120px,1fr) 2fr auto;gap:10px;align-items:center;text-align:start;border:1px solid #ece6e8;border-radius:12px;background:#fff;padding:10px 14px;cursor:pointer;font-family:Tajawal,Arial,sans-serif}
@media (max-width:700px){#admin-diagnostics .diag-person{grid-template-columns:1fr}}
#admin-diagnostics .diag-person small{color:#8a8590}
#admin-diagnostics .diag-chips{display:flex;flex-wrap:wrap;gap:6px}
#admin-diagnostics .diag-chip{font-size:12px;padding:2px 8px;border-radius:999px;background:#f4f1f3;color:#4a464d}
#admin-diagnostics .diag-chip.is-error,#admin-diagnostics .diag-chip.is-session{background:#fdecee;color:#b52632}
#admin-diagnostics .diag-chip.is-slow,#admin-diagnostics .diag-chip.is-connection{background:#fff6e5;color:#8a5a00}
#admin-diagnostics .diag-events-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
#admin-diagnostics .diag-filter-tag{display:inline-flex;align-items:center;gap:8px;background:#fbeff0;color:#bf242c;border-radius:999px;padding:4px 6px 4px 12px;font-size:13px}
#admin-diagnostics .diag-events{display:flex;flex-direction:column;gap:6px}
#admin-diagnostics .diag-event{display:grid;grid-template-columns:52px 1fr;gap:10px;border:1px solid #ece6e8;border-radius:12px;padding:10px 12px;background:#fff}
#admin-diagnostics .diag-event.is-error,#admin-diagnostics .diag-event.is-session{border-inline-start:4px solid #bf242c}
#admin-diagnostics .diag-event.is-slow,#admin-diagnostics .diag-event.is-connection{border-inline-start:4px solid #d9a441}
#admin-diagnostics .diag-time{font:700 14px Tajawal,Arial,sans-serif;color:#6b6670;direction:ltr;text-align:end}
#admin-diagnostics .diag-body p{margin:0;font:500 15px/1.6 Tajawal,Arial,sans-serif}
#admin-diagnostics .diag-body > small{color:#8a8590}
#admin-diagnostics .diag-tech{margin-top:4px}
#admin-diagnostics .diag-tech summary{cursor:pointer;color:#8a8590;font-size:12px}
#admin-diagnostics .diag-tech p{margin:2px 0;font-size:12px;color:#6b6670}
#admin-diagnostics .diag-advanced{margin-top:16px;border-top:1px solid #ece6e8;padding-top:10px}
#admin-diagnostics .diag-advanced summary{cursor:pointer;color:#6b6670}

/* Dashboard «حركة المنتجات»: the three controls on one aligned row (month a bit wider), same height. */
html body .product-rank-controls{display:grid;grid-template-columns:minmax(150px,1.4fr) 1fr 1fr;gap:10px;align-items:end;margin:0 0 12px}
html body .product-rank-controls label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:12px;font-weight:600;color:#6b6570;min-width:0}
html body .product-rank-controls input{box-sizing:border-box;width:100%;height:42px;min-height:42px;margin:0;padding:0 10px;font-size:14px;line-height:42px;text-align:center;border-radius:10px}
@media (max-width:520px){html body .product-rank-controls{grid-template-columns:1fr 1fr}html body .product-rank-controls label:first-child{grid-column:1/-1}}

/* Admin «مركز التحديثات» as a page of the panel (not a pop-up over it). */
html body #updatesCenter.uc-inline{position:static!important;inset:auto!important;z-index:auto!important;background:none!important;padding:0!important;overflow:visible!important}
html body #updatesCenter.uc-inline .uc-dialog{max-width:none!important;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important;border-radius:0!important}
html body #updatesCenter.uc-inline #ucClose{display:none!important}
html body #updatesCenter.uc-inline .uc-header h2{margin:0 0 4px!important;font-size:22px!important}
html body #updatesCenter.uc-inline .uc-dialog > p{color:#6b6670!important;margin:0 0 14px!important}
html body #updatesCenter.uc-inline .uc-item{background:#fff!important;border:1px solid #ece6e8!important;border-radius:14px!important}
html body #updatesCenter.uc-inline .uc-item.uc-unread{border-inline-start:4px solid #bf242c!important}
html body #updatesCenter.uc-inline .uc-actions:has(#ucPrev:disabled):has(#ucNext:disabled){display:none!important}

/* Settings «المستخدمون»: one row per management user, and the add/edit form under the list. */
html body .managers-list{display:flex;flex-direction:column;gap:8px;margin:8px 0 14px}
html body .manager-row{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fff;border:1px solid #ece6e8;border-radius:14px}
html body .manager-row.is-off{opacity:.6}
html body .manager-avatar{flex:0 0 38px;height:38px;border-radius:50%;background:#fbeff0;color:#bf242c;display:grid;place-items:center;font-weight:700}
html body .manager-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body .manager-info small{color:#6b6570;font-size:12px}
html body .manager-actions{display:flex;gap:6px;flex-wrap:wrap}
html body .manager-form{background:#faf8f5;border:1px solid #ece6e8;border-radius:14px;padding:14px;margin-bottom:18px}
html body .manager-form h4{margin:0 0 8px;font-size:15px}
@media (max-width:600px){html body .manager-row{flex-wrap:wrap}html body .manager-actions{width:100%}html body .manager-actions button{flex:1}}

/* Login: «تذكّرني», Face ID / fingerprint button, and the app lock cover. */
html body .remember-login{display:flex!important;align-items:center;gap:8px;margin:2px 0 12px!important;font-size:14px;color:#4a4550;cursor:pointer}
/* Own checkbox drawing so it is the same small size everywhere (iOS draws its native one much larger). */
html body .remember-login input{-webkit-appearance:none!important;appearance:none!important;flex:0 0 18px;width:18px!important;height:18px!important;min-height:0!important;max-height:18px!important;margin:0!important;padding:0!important;border:1.5px solid #cfc7cb!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important;cursor:pointer;display:inline-block;vertical-align:middle}
html body .remember-login input:checked{border-color:rgb(229,45,79)!important;background:rgb(229,45,79) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px 12px no-repeat!important}
html body .remember-login input:focus-visible{outline:2px solid rgba(229,45,79,.35);outline-offset:2px}
html body .login-actions{display:flex;gap:8px;align-items:stretch}
html body .login-actions #employeeLoginButton{flex:1;margin:0!important;width:auto!important}
html body .bio-login{flex:0 0 58px;display:grid;place-items:center;margin:0!important;padding:0!important;border-radius:9px;background:rgb(229,45,79)!important;color:#fff!important;border:0!important;box-shadow:none!important;cursor:pointer}
html body .bio-login.hidden{display:none!important}

html body .bio-ask-pass{width:100%;box-sizing:border-box;height:48px;margin:0 0 12px!important;text-align:center;font-size:16px!important}

html body .bio-ask{position:fixed;inset:0;z-index:5100;background:rgba(20,16,22,.45);display:flex;align-items:flex-end;justify-content:center;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
html body .bio-ask-card{width:100%;max-width:420px;background:#fff;border-radius:22px;padding:22px 18px 14px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25)}
html body .bio-ask-icon{color:#bf242c;margin-bottom:4px}
html body .bio-ask-card h3{margin:0 0 6px;font-size:19px}
html body .bio-ask-card p{margin:0 0 16px;color:#6b6570;line-height:1.7}
html body .bio-ask-card .btn2{margin-top:8px}

/* Admin «الموظفين»: toolbar (counts, search, new), employee cards, stopped accounts folded. */
html body .emp-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 14px}
html body .emp-counts{display:flex;align-items:center;gap:6px;color:#6b6570;font-size:14px;white-space:nowrap}
html body .emp-counts b{color:#262428;font-size:16px}
html body .emp-counts span{color:#cfc7cb}
html body #employeeSearch{flex:1 1 220px;min-width:0;height:44px;margin:0!important}
html body .emp-new{margin:0!important;height:44px;white-space:nowrap;padding:0 18px!important}
html body .emp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
html body .emp-card{background:#fff;border:1px solid #ece6e8;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px}
html body .emp-card.is-off{background:#faf8f8}
html body .emp-card-head{display:flex;align-items:center;gap:10px}
html body .emp-avatar{flex:0 0 42px;height:42px;border-radius:50%;background:#fbeff0;color:#bf242c;display:grid;place-items:center;font-weight:700;font-size:18px}
html body .emp-card.is-off .emp-avatar{background:#f0eded;color:#8a8590}
html body .emp-card-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
html body .emp-card-name b{font-size:15px;line-height:1.4}
html body .emp-card-name small{color:#6b6570;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .emp-card-name a{color:inherit;text-decoration:none}
html body .emp-card-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;background:#faf8f5;border-radius:12px;padding:10px 8px}
html body .emp-card-stats div{display:flex;flex-direction:column;gap:3px;text-align:center;min-width:0}
html body .emp-card-stats small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8a8590;font-size:11px}
html body .emp-card-stats b{font-size:13px;white-space:nowrap}
html body .emp-card-actions{display:flex;gap:8px}
html body .emp-card-actions button{flex:1;margin:0!important;height:40px!important;min-height:40px!important;padding:0 10px!important;font-size:14px!important}
html body .emp-stopped{margin-top:18px}
html body .emp-stopped summary{cursor:pointer;font-weight:700;color:#6b6570;padding:10px 4px;list-style-position:inside}
html body .emp-stopped .emp-grid{margin-top:6px}
html body .emp-empty{color:#8a8590;padding:12px 4px}
html body .emp-danger{display:flex;align-items:center;gap:12px;margin-top:16px;padding:12px;border:1px solid #f0c9cd;border-radius:12px;background:#fdf6f7}
html body .emp-danger div{flex:1;display:flex;flex-direction:column;gap:3px}
html body .emp-danger b{color:#b52632}
html body .emp-danger small{color:#6b6570;font-size:12px}
html body .emp-danger.hidden,html body #employeeEditorHint.hidden{display:none!important}
@media (max-width:600px){html body .emp-grid{grid-template-columns:1fr}html body .emp-new{flex:1 1 100%}html body .emp-counts{order:-1}}

html body .emp-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 14px}
html body .emp-filter{margin:0!important;padding:6px 14px!important;min-height:0!important;height:auto!important;border-radius:999px!important;border:1px solid #e3dde0!important;background:#fff!important;color:#4a4550!important;font-size:13px!important;box-shadow:none!important;cursor:pointer}
html body .emp-filter b{color:#bf242c}
html body .emp-filter.is-on{background:#262428!important;color:#fff!important;border-color:#262428!important}
html body .emp-filter.is-on b{color:#fff}
html body .emp-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:-4px}
html body .emp-chip{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:3px 10px;border-radius:999px;background:#f3f0f1;color:#4a4550;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .emp-chip.warn{background:#fff4dc;color:#8a5a00}
html body .emp-chip.ok{background:#e9f6ee;color:#1f7a45}
html body .emp-chip.muted{background:#f3f0f1;color:#8a8590}
html body .emp-pin-row{display:flex;gap:8px;align-items:stretch}
html body .emp-pin-row input{flex:1;min-width:0;margin:0!important}
html body .emp-pin-row button{margin:0!important;white-space:nowrap}
html body .emp-pin-note{display:block;margin-top:6px;color:#8a5a00;font-size:12px}
html body .emp-pin-note.hidden{display:none}
@media (max-width:600px){html body .emp-card-stats{gap:3px;padding:10px 4px}html body .emp-card-stats b{font-size:11px}html body .emp-card-stats small{font-size:10px}}

/* Admin home: clickable tiles, target bar in the month tile, alerts right under the tiles,
   lighter team and product lists on phones. */
html body #admin-dashboard .hm-metric.is-link,html body #admin-dashboard .hm-alert.is-link{cursor:pointer;transition:background .15s}
html body #admin-dashboard .hm-metric.is-link:hover,html body #admin-dashboard .hm-alert.is-link:hover{background:#fdf8f9}
html body #admin-dashboard .hm-tile-bar{height:6px;border-radius:99px;background:#f1eaeb;overflow:hidden;margin:6px 0 4px}
html body #admin-dashboard .hm-tile-bar i{display:block;height:100%;background:#e52d4f;border-radius:99px}
html body #admin-dashboard .hm-tile-bar.hidden{display:none}
html body #admin-dashboard .hm-alerts{margin:0 0 16px}
html body #admin-dashboard .hm-alert-dot.muted{background:#cfc7cb}
html body #admin-dashboard .hm-show-all{display:none}
@media (max-width:700px){
  html body #admin-dashboard .hm-more{display:none}
  html body #admin-dashboard .show-all .hm-more{display:table-row}
  html body #admin-dashboard .hm-show-all{display:block;width:100%;margin-top:8px!important}
  html body #admin-dashboard .show-all .hm-show-all{display:none}
  html body #dashboardEmployeePerformance th:nth-child(4),html body #dashboardEmployeePerformance td:nth-child(4){display:none}
  html body #dashboardEmployeePerformance .hm-table{min-width:0!important;width:100%}
}

html body #admin-dashboard .hm-ops{margin-top:16px}
html body #admin-dashboard .hm-ops-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
html body #admin-dashboard .hm-ops-tile{background:#faf8f5;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px;min-width:0}
html body #admin-dashboard .hm-ops-tile span{color:#6b6570;font-size:12px}
html body #admin-dashboard .hm-ops-tile b{font-size:18px;color:#262428;white-space:nowrap}
html body #admin-dashboard .hm-ops-tile small{color:#8a8590;font-size:11px}
html body #admin-dashboard .hm-ops-tile.up b{color:#1f7a45}
html body #admin-dashboard .hm-ops-tile.down b{color:#b52632}
@media (max-width:1100px){html body #admin-dashboard .hm-ops-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:700px){
  html body #admin-dashboard .hm-ops-grid{grid-template-columns:repeat(2,1fr)}
}

/* Home «النقاط والزيارات» card. */
html body #admin-dashboard .hm-points-card{margin:0 0 16px}
html body #admin-dashboard .hm-points-grid{grid-template-columns:repeat(4,1fr)}
html body #admin-dashboard .hm-ops-tile.is-link{cursor:pointer;transition:background .15s}
html body #admin-dashboard .hm-ops-tile.is-link:hover{background:#f6f1ee}
html body #admin-dashboard .hm-ops-tile.warn b{color:#b56a00}
html body #admin-dashboard .hm-points-overdue{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
html body #admin-dashboard .hm-points-overdue:empty{display:none}
html body #admin-dashboard .hm-points-overdue-title{color:#6b6570;font-size:12px;font-weight:700}
html body #admin-dashboard .hm-point-chip{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;margin:0!important;padding:6px 12px!important;min-height:0!important;height:auto!important;border-radius:12px!important;border:1px solid #f0dfc4!important;background:#fffaf1!important;color:#262428!important;box-shadow:none!important;cursor:pointer;text-align:start}
html body #admin-dashboard .hm-point-chip b{font-size:13px}
html body #admin-dashboard .hm-point-chip small{font-size:11px;color:#8a5a00}
@media (max-width:700px){html body #admin-dashboard .hm-points-grid{grid-template-columns:repeat(2,1fr)}html body #admin-dashboard .hm-points-overdue{display:grid;grid-template-columns:1fr 1fr}html body #admin-dashboard .hm-points-overdue-title{grid-column:1/-1}html body #admin-dashboard .hm-point-chip{width:100%;min-width:0}html body #admin-dashboard .hm-point-chip b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}}

/* Home order: team + month summary, then points + products (side by side on wide screens). */
html body #admin-dashboard .hm-row-field .hm-ops-grid:not(.hm-points-grid){grid-template-columns:repeat(2,1fr)}
html body #admin-dashboard .hm-row-field .hm-points-grid{grid-template-columns:repeat(2,1fr)}
html body #admin-dashboard .hm-main-grid > .hm-section{margin:0}
@media (min-width:821px){html body #admin-dashboard .hm-row-team{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
html body #admin-dashboard .hm-alerts.hidden{display:none!important}

/* ---------- Phones (and the app) ---------- */
@media (max-width:820px){
  /* Header: no ribbon, one bell, one-line greeting */
  body:has(#employeeReportView:not(.hidden)) .music-header-ribbon{display:none!important}
  body:has(#employeeReportView:not(.hidden)) .uc-entry{display:none!important}
  body:has(#employeeReportView:not(.hidden)) .brand-greeting > div{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:42vw!important;line-height:1.3!important}
  body:has(#employeeReportView:not(.hidden)) .brand-greeting > div small{display:none!important}
  body:has(#employeeReportView:not(.hidden)) .brand-header-identity small{white-space:nowrap!important}
  body:has(#employeeReportView:not(.hidden)) .brand-header{column-gap:10px!important}
  body:has(#employeeReportView:not(.hidden)) .brand-header > .brand-greeting{flex:0 1 auto!important;min-width:0!important;margin:0!important}
  body:has(#employeeReportView:not(.hidden)) .brand-header > .employee-notification-button{margin-inline-start:auto!important;margin-inline-end:0!important}
  body:has(#employeeReportView:not(.hidden)) .brand-greeting > div{max-width:100%!important;min-width:0!important;font:700 13px/1.3 Tajawal,"Geeza Pro",Arial,sans-serif!important}
  body:has(#employeeReportView:not(.hidden)) .brand-header-identity,body:has(#employeeReportView:not(.hidden)) .employee-notification-button{flex:0 0 auto!important}

  /* "تفاصيل اليوم": tidy boxes — place full width, then date, then start/end side by side; same height
     everywhere (iOS draws date/time fields shorter and centred unless told otherwise). */
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px 10px!important;align-items:end!important}
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid > div{min-width:0!important;margin:0!important;order:0!important}
  html body:has(#employeeReportView:not(.hidden)) #employeeReportView #employeeEntryPanel > .employee-details-card:not(.employee-products-card) .report-details-grid{grid-template-columns:1fr 1fr!important;gap:12px 10px!important}
  html body:has(#employeeReportView:not(.hidden)) #employeeReportView #employeeEntryPanel > .employee-details-card:not(.employee-products-card) .report-details-grid > div:nth-child(2){grid-column:1 / -1!important;grid-row:1!important}
  html body:has(#employeeReportView:not(.hidden)) #employeeReportView #employeeEntryPanel > .employee-details-card:not(.employee-products-card) .report-details-grid > div:nth-child(1){grid-column:1 / -1!important;grid-row:2!important}
  html body:has(#employeeReportView:not(.hidden)) #employeeReportView #employeeEntryPanel > .employee-details-card:not(.employee-products-card) .report-details-grid > div:nth-child(3){grid-column:1!important;grid-row:3!important}
  html body:has(#employeeReportView:not(.hidden)) #employeeReportView #employeeEntryPanel > .employee-details-card:not(.employee-products-card) .report-details-grid > div:nth-child(4){grid-column:2!important;grid-row:3!important}
  html body:has(#employeeReportView:not(.hidden)) #employeeReportView #employeeEntryPanel > .employee-details-card:not(.employee-products-card) .report-details-grid > div:nth-child(5){grid-column:1 / -1!important;grid-row:4!important}
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid label{display:block!important;margin:0 0 6px!important}
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid input{
    -webkit-appearance:none!important;appearance:none!important;display:block!important;width:100%!important;box-sizing:border-box!important;
    height:48px!important;min-height:48px!important;margin:0!important;padding:0 12px!important;text-align:right!important;background:#fff!important;font-size:16px!important}
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid input[type="date"],
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid input[type="time"]{line-height:46px!important;padding-top:0!important;padding-bottom:0!important;color:#262428!important;-webkit-text-fill-color:#262428}
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid input::-webkit-date-and-time-value{text-align:right;margin:0;line-height:46px;min-height:46px}
  html body:has(#employeeReportView:not(.hidden)) .report-details-grid input::-webkit-datetime-edit{padding:0}
  html body:has(#employeeReportView:not(.hidden)) .employee-details-card textarea{margin-top:6px!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-details-card > label{display:block!important;margin-top:14px!important}

  /* Bottom navigation bar */
  html body:has(#employeeReportView:not(.hidden)) #employeeReportView > .employee-history-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;z-index:900!important;
    margin:0!important;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))!important;border-radius:0!important;
    background:rgba(255,255,255,.97)!important;border:0!important;border-top:1px solid #ece6e8!important;
    box-shadow:0 -6px 18px rgba(38,36,40,.07)!important;display:block!important;min-height:0!important}
  body:has(#employeeReportView:not(.hidden)) .employee-history-nav .employee-nav-heading{display:none!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .toolbar{
    display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:2px!important;width:100%!important;margin:0!important;padding:0!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .tab{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
    padding:6px 2px!important;min-height:54px!important;margin:0!important;width:auto!important;
    font:500 11px/1.2 Tajawal,Arial,sans-serif!important;background:transparent!important;color:#6b6670!important;
    border:0!important;box-shadow:none!important;border-radius:12px!important;position:relative!important;white-space:nowrap!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .tab.active{color:#bf242c!important;background:#fbeff0!important;font-weight:700!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .tab.active::after{display:none!important}
  .employee-history-nav .tab .nav-icon{display:block!important}
  .employee-history-nav .tab .nav-label-long{display:none!important}
  .employee-history-nav .tab .nav-label-short{display:inline!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .tab.nav-only{display:flex!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .tab > span:not(.notification-badge){display:none!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .tab .notification-badge{position:absolute!important;top:2px!important;inset-inline-start:calc(50% + 6px)!important;min-width:18px!important;height:18px!important;font-size:10px!important;padding:0 5px!important}
  html body:has(#employeeReportView:not(.hidden)) .employee-history-nav .tab .notification-badge.hidden{display:none!important}
  body:has(#employeeReportView:not(.hidden)) .container{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}

  /* Updates center opens as a full page above the bottom bar (not a floating box) */
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter{
    position:fixed!important;inset:0 0 calc(66px + env(safe-area-inset-bottom,0px)) 0!important;z-index:850!important;
    background:#fff!important;padding:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;
    animation:ucIn .18s ease-out}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-dialog{
    max-width:none!important;margin:0!important;min-height:100%!important;border-radius:0!important;box-shadow:none!important;
    background:#fff!important;padding:calc(16px + env(safe-area-inset-top,0px)) 16px 24px!important;box-sizing:border-box!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-header{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:4px!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-header h2{font-size:22px!important;margin:0!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter #ucClose{display:none!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-dialog > p{color:#6b6670!important;font-size:13px!important;margin:0 0 12px!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-filter > button[onclick*="refresh"]{display:none!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-actions:has(#ucPrev:disabled):has(#ucNext:disabled){display:none!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-item{background:#fff!important;border:1px solid #ece6e8!important;border-radius:14px!important}
  html body:has(#employeeReportView:not(.hidden)) #updatesCenter .uc-item.uc-unread{border-inline-start:4px solid #bf242c!important}
  @keyframes ucIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

  /* Notifications open as a full white page above the bottom bar, like the updates page */
  html body:has(#employeeReportView:not(.hidden)) #notificationCenter{
    position:fixed!important;inset:0 0 calc(66px + env(safe-area-inset-bottom,0px)) 0!important;z-index:870!important;
    background:#fff!important;padding:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;animation:ucIn .18s ease-out}
  html body:has(#employeeReportView:not(.hidden)) #notificationCenter .photo-dialog{
    max-width:none!important;width:auto!important;margin:0!important;min-height:100%!important;border-radius:0!important;box-shadow:none!important;
    background:#fff!important;padding:calc(14px + env(safe-area-inset-top,0px)) 16px 24px!important;box-sizing:border-box!important}
  html body:has(#employeeReportView:not(.hidden)) #notificationCenter .nc-close{background:none!important;border:0!important;box-shadow:none!important;
    color:#bf242c!important;font-size:0!important;padding:6px 0!important;min-height:0!important;width:auto!important}
  html body:has(#employeeReportView:not(.hidden)) #notificationCenter .nc-close::before{content:"→ رجوع";font:500 15px Tajawal,Arial,sans-serif}
  html body:has(#employeeReportView:not(.hidden)) #notificationCenter h2{font-size:24px!important;margin:6px 0 10px!important}

  /* The manual "refresh" buttons: panels load on open and when the app comes back */
  #employeeSalesPanel .dues-detail-head > .btn2,
  #employeeVisitsPanel > .toolbar,
  #employeeDuesPanel .dues-detail-head > .btn2,
  #employeeDuesPanel .ops-align-end > button[onclick*="loadEmployeeDues"]{display:none!important}

  /* Draft safety box: one short line instead of a paragraph */
  body:has(#employeeReportView:not(.hidden)) .employee-status-strip{padding:8px 12px!important;min-height:0!important;gap:8px!important}
  body:has(#employeeReportView:not(.hidden)) .employee-status-strip > div:not(#draftStatus) p{display:none!important}
  body:has(#employeeReportView:not(.hidden)) .employee-status-strip > div:not(#draftStatus) strong{font-size:13px!important}
  body:has(#employeeReportView:not(.hidden)) .employee-status-strip #draftStatus{font-size:12px!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
  body:has(#employeeReportView:not(.hidden)) .employee-intro .draft-badge{display:none!important}

  /* Compact product rows: name + stepper on one line, line total small under the stepper */
  body:has(#employeeReportView:not(.hidden)) .product-row{
    display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:"ident qty" "ident total"!important;
    align-items:center!important;gap:2px 10px!important;padding:10px 12px!important;min-height:0!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .product-ident{grid-area:ident!important;min-width:0!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .price{display:none!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .quantity-stepper{grid-area:qty!important;margin:0!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .line-total{grid-area:total!important;text-align:center!important;font-size:11px!important;color:#8a8590!important;margin:0!important;padding:0!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .product-name .notice{display:inline-block!important;margin:3px 0 0!important;padding:1px 7px!important;font-size:11px!important;border-radius:6px!important;white-space:nowrap!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .quantity-stepper{width:auto!important;display:inline-flex!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .quantity-stepper button{width:38px!important;min-width:38px!important;height:40px!important;padding:0!important}
  body:has(#employeeReportView:not(.hidden)) .product-row .quantity-stepper input{width:46px!important;min-width:46px!important;height:40px!important;padding:0!important;text-align:center!important}
}

/* ---------- Inside the official app: keep clear of the clock/notch ---------- */
/* The top colour runs under the clock (like before); only the content inside moves down. */
html.in-app #homeView .home-brand-panel{padding-top:calc(20px + env(safe-area-inset-top,0px))!important}
@media (max-width:700px){html.in-app #homeView .home-brand-panel{height:calc(255px + env(safe-area-inset-top,0px))!important;min-height:calc(255px + env(safe-area-inset-top,0px))!important}}
html.in-app .header{padding-top:env(safe-area-inset-top,0px)!important}
html.in-app body:has(#employeeReportView:not(.hidden)) .header{padding-top:env(safe-area-inset-top,0px)!important;height:calc(67px + env(safe-area-inset-top,0px))!important;box-sizing:border-box!important}
html.in-app .management-topbar{padding-top:env(safe-area-inset-top,0px)!important;height:auto!important;min-height:calc(64px + env(safe-area-inset-top,0px))!important}
html.in-app .management-rail.mobile-open{padding-top:calc(27px + env(safe-area-inset-top,0px))!important}
html.in-app .photo-overlay,html.in-app #reportDetail{padding-top:calc(16px + env(safe-area-inset-top,0px))!important;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))!important}
/* Products page: cards grouped by category (22/11) */
html body .prd-list{display:flex;flex-direction:column;gap:18px}
html body .prd-group h3{margin:0 0 8px;font-size:16px;color:#262428;display:flex;align-items:center;gap:8px}
html body .prd-group h3 small{font-size:12px;color:#8a8590;background:#f3f0f1;border-radius:999px;padding:1px 9px;font-weight:500}
html body .prd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
html body .prd-card .product-thumb{flex:0 0 58px;width:58px!important;height:58px!important;min-width:58px;border-radius:12px;margin:0!important;padding:2px!important;cursor:pointer;background:#fff!important}
html body .prd-card .product-thumb.prd-nophoto{border:1px dashed #d9cfd3!important;color:#bf242c!important;font-size:11px!important;font-weight:700;box-shadow:none!important}
html body .prd-card.is-off .product-thumb img{filter:grayscale(1);opacity:.7}
html body .prd-card .emp-card-name b{overflow-wrap:anywhere}
html body .prd-stats{grid-template-columns:repeat(3,1fr)!important}
html body .prd-stats b{font-size:14px!important}
html body .prd-order{margin-top:22px;border:1px solid #ece6e8;border-radius:14px;padding:4px 14px;background:#fff}
html body .prd-order summary{cursor:pointer;font-weight:700;color:#4a4550;padding:10px 0}
#productEditor .employee-editor{max-width:560px}
#productEditor .prd-editor-photo{display:flex;align-items:center;gap:14px;margin:4px 0 6px}
#productEditor .prd-editor-photo .photo-preview{width:92px;height:92px;object-fit:contain;border:1px solid #ece6e8;border-radius:14px;background:#fff;margin:0;padding:3px}
#productEditor .prd-photo-empty{width:92px;height:92px;flex:0 0 92px;display:grid;place-items:center;border:1px dashed #d9cfd3;border-radius:14px;color:#8a8590;font-size:12px}
#productEditor .photo-preview:not(.hidden) + .prd-photo-empty{display:none}
#productEditor .prd-editor-photo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#productEditor .prd-editor-photo-actions .photo-pick{margin:0}
#productEditor .prd-editor-photo:has(#editPhotoPreview.hidden) #editPhotoRemove{display:none!important}
#productEditor .prd-hint{display:block;color:#8a8590;font-size:12px;margin:6px 0 4px}
#productEditor .employee-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
#productEditor .employee-editor-head h2{margin:0;font-size:20px}
#productEditor .employee-editor-head button{margin:0!important}
#productEditorMessage:empty{display:none}
#productEditor .grid2{gap:12px!important}
#productEditor .grid2 > div label{display:block;margin:0 0 6px}
#productEditor .grid2 > div input{margin:0}
#productEditor .emp-danger.hidden{display:none!important}
@media (max-width:600px){html body .prd-grid{grid-template-columns:1fr}#productEditor .grid2{grid-template-columns:1fr 1fr!important}}
/* Updates center: chips, cards with one clear action, writing window (22/11) */
#updatesCenter .uc-filter{margin:6px 0 12px!important;gap:10px!important}
#updatesCenter .uc-filter .emp-counts{flex:1}
#updatesCenter .uc-bulk{background:none!important;border:0!important;box-shadow:none!important;color:#b52632!important;font-size:13px!important;padding:4px 6px!important;min-height:0!important;height:auto!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#updatesCenter .uc-bulk.hidden,#updatesCenter #ucNew.hidden{display:none!important}
#updatesCenter #ucMessage:empty{display:none}
#updatesCenter #ucMessage{margin:0 0 10px;padding:9px 12px;border-radius:10px;background:#f3f0f1;color:#4a4550;font-size:13px}
#updatesCenter .uc-card{padding:14px 16px!important;margin:0 0 10px!important;display:flex;flex-direction:column;gap:8px}
#updatesCenter .uc-card h3{margin:0!important;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
#updatesCenter .uc-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#updatesCenter .uc-when{margin-inline-start:auto;color:#8a8590;font-size:12px;white-space:nowrap}
#updatesCenter .uc-cat{font-size:12px;padding:2px 10px;border-radius:999px;background:#f3f0f1;color:#4a4550;font-weight:500}
#updatesCenter .uc-cat.sys{background:#eef2fb;color:#2f4f8f}
#updatesCenter .uc-cat.prd{background:#fbeff0;color:#a62229}
#updatesCenter .uc-cat.fin{background:#e9f6ee;color:#1f7a45}
#updatesCenter .uc-cat.ann{background:#fff4dc;color:#8a5a00}
#updatesCenter .uc-pill{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px}
#updatesCenter .uc-pill.new{background:#bf242c;color:#fff}
#updatesCenter .uc-pill.draft{background:#fff4dc;color:#8a5a00;border:1px dashed #e8c77a}
#updatesCenter .uc-card.uc-draft{background:#fffdf8!important;border-style:dashed!important}
#updatesCenter .uc-ack{font-size:12px;color:#8a5a00}
#updatesCenter .uc-ack.ok{color:#1f7a45}
#updatesCenter .uc-card .uc-actions{gap:8px!important;margin-top:2px}
#updatesCenter .uc-card .uc-actions button{margin:0!important;min-height:38px!important;height:38px!important;padding:0 14px!important;font-size:14px!important}
#updatesCenter .uc-open{border:1px solid #e3dde0!important;box-shadow:0 6px 18px rgba(38,36,40,.06);margin:0 0 14px!important}
#updatesCenter .uc-open .uc-x{margin:0 0 0 0!important;margin-inline-start:auto!important;min-height:32px!important;height:32px!important}
#updatesCenter .uc-open .uc-card-top h3{margin:0!important}
#updatesCenter .uc-open h2{margin:8px 0!important;font-size:19px}
#ucEditor .uc-editor{max-width:620px;margin:20px auto!important;padding:20px!important;border:0!important;background:#fff!important;border-radius:18px!important}
#ucEditor .employee-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
#ucEditor .employee-editor-head h2{margin:0;font-size:20px}
#ucEditor .employee-editor-head button{margin:0!important}
#ucEditor .uc-editor-hint{color:#6b6570;font-size:13px;margin:0 0 6px}
#ucEditor .uc-editor label{margin-top:12px}
#ucEditor .grid2{gap:12px!important}
#ucEditor .photo-pick{margin:4px 0!important}
#ucEditor #ucImagePreview{max-height:220px;display:block}
#ucEditor #ucImagePreview.hidden + button{display:none!important}
#ucEditor .uc-actions{display:flex;gap:10px;margin-top:14px}
#ucEditor .uc-actions button{flex:1;min-height:46px}
#ucEditor #ucEditorMessage:empty{display:none}
#ucEditor .emp-danger.hidden{display:none!important}
@media (max-width:600px){#ucEditor .grid2{grid-template-columns:1fr!important}#updatesCenter .uc-filter #ucNew{flex:1 1 100%}#updatesCenter .uc-card .uc-actions button{flex:1}}
#updatesCenter .uc-card .uc-review{color:#a62229!important;font-weight:700}
/* Send notification page: compose + sent history (22/11) */
html body .ntf-intro{color:#6b6570;margin:0 0 14px}
html body .ntf-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:start}
html body .ntf-compose,html body .ntf-history{background:#fff;border:1px solid #ece6e8;border-radius:16px;padding:16px}
html body .ntf-compose label{display:block;margin:12px 0 6px;font-weight:700}
html body .ntf-compose label:first-child{margin-top:0}
html body .ntf-compose label small{font-weight:400;color:#8a8590}
html body .ntf-compose .emp-filters{margin:0!important}
html body .ntf-reach{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
html body .ntf-reach:empty{display:none}
html body .ntf-count{float:left;color:#8a8590;font-weight:400}
html body .ntf-compose textarea{min-height:110px}
html body .ntf-preview-wrap{margin:14px 0 12px;background:#f3f0f1;border-radius:14px;padding:10px 12px 12px}
html body .ntf-preview-wrap > small{display:block;color:#8a8590;font-size:11px;margin-bottom:6px}
html body .ntf-preview{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,.92);border-radius:14px;padding:10px 12px;box-shadow:0 2px 10px rgba(38,36,40,.08)}
html body .ntf-preview-icon{width:36px;height:36px;border-radius:9px;flex:0 0 36px}
html body .ntf-preview > div{flex:1;min-width:0}
html body .ntf-preview-top{display:flex;justify-content:space-between;font-size:11px;color:#8a8590}
html body .ntf-preview-top b{font-weight:500;color:#6b6570}
html body .ntf-preview-title{display:block;font-size:14px;margin-top:2px;overflow-wrap:anywhere}
html body .ntf-preview p{margin:2px 0 0;font-size:13px;color:#4a4550;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
html body #notificationComposeMessage:empty{display:none}
html body .ntf-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
html body .ntf-history-head h3{margin:0;font-size:16px}
html body .ntf-history-head button{margin:0!important}
html body .ntf-sent{border-top:1px solid #f0ebed;padding:12px 0}
html body .ntf-sent:first-child{border-top:0;padding-top:4px}
html body .ntf-sent-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
html body .ntf-sent-top b{overflow-wrap:anywhere}
html body .ntf-sent-top small{color:#8a8590;white-space:nowrap;font-size:12px}
html body .ntf-sent p{margin:4px 0 8px;color:#4a4550;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .ntf-progress{height:6px;border-radius:999px;background:#f0ebed;overflow:hidden}
html body .ntf-progress span{display:block;height:100%;background:#1f7a45;border-radius:999px}
html body .ntf-sent details summary{cursor:pointer;font-size:13px;color:#4a4550;margin-top:6px}
html body .ntf-names{margin-top:8px}
html body .ntf-names small{color:#8a8590;font-size:12px}
html body .ntf-names div{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
@media (max-width:900px){html body .ntf-layout{grid-template-columns:1fr}}
html body .ntf-sent details{background:none!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important}html body .ntf-sent details summary{background:none!important;border:0!important;padding:6px 0 0!important;box-shadow:none!important;font-weight:400}
html body .ntf-by{display:block;color:#8a8590;font-size:12px;margin-top:2px}
/* Reports page: period chips, number tiles, employee cards, reports by day (22/11) */
html body .rp-bar{display:flex;flex-direction:column;gap:10px;margin:4px 0 14px}
html body .rp-bar .emp-filters{margin:0!important}
html body .rp-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
html body .rp-controls > select{flex:0 1 260px;margin:0!important;min-width:180px}
html body .rp-range{display:flex;gap:8px;align-items:center}
html body .rp-range.hidden{display:none!important}
html body .rp-range label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#6b6570}
html body .rp-range input{margin:0!important;width:auto}
html body .rp-tools{display:flex;gap:8px;margin-inline-start:auto}
html body .rp-tools button{margin:0!important}
html body .rp-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0 0 18px}
html body .rp-kpi{background:#faf8f5;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
html body .rp-kpi small{color:#8a8590;font-size:12px}
html body .rp-kpi b{font-size:20px;color:#262428;white-space:nowrap}
html body .rp-kpi.is-main{background:#fbeff0}
html body .rp-kpi.is-main b{color:#bf242c}
html body .rp-kpi.is-warn{background:#fff4dc}
html body .rp-kpi.is-warn b{color:#8a5a00}
html body .rp-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:6px 0 8px}
html body .rp-head h3{margin:0;font-size:17px}
html body .rp-head h3 small{color:#8a8590;font-weight:400;font-size:13px}
html body .rp-head > small{color:#8a8590;font-size:12px}
html body .rp-emps{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
html body .rp-clear-emp{grid-column:1/-1;justify-self:start}
html body button.rp-emp{all:unset;box-sizing:border-box;cursor:pointer;background:#fff;border:1px solid #ece6e8;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;text-align:start;font:inherit;color:#262428}
html body button.rp-emp:hover{border-color:#d9cfd3}
html body button.rp-emp:focus-visible{outline:2px solid #bf242c;outline-offset:2px}
html body button.rp-emp.is-on{border-color:#262428;box-shadow:0 0 0 1px #262428}
html body button.rp-emp.is-empty{opacity:.55}
html body .rp-emp-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html body .rp-emp-top b{font-size:14px;margin-inline-end:auto}
html body .rp-emp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#faf8f5;border-radius:10px;padding:8px 4px}
html body .rp-emp-stats div{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
html body .rp-emp-stats small{color:#8a8590;font-size:11px;white-space:nowrap}
html body .rp-emp-stats b{font-size:13px;white-space:nowrap}
html body .rp-emp-split{color:#8a8590;font-size:11px}
html body .rp-note{color:#8a8590;font-size:12px;margin:8px 0 18px}
html body .rp-list{display:flex;flex-direction:column;gap:16px}
html body .rp-day-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:0 2px 6px;border-bottom:1px solid #f0ebed;margin-bottom:8px}
html body .rp-day-head b{font-size:14px}
html body .rp-day-head small{color:#8a8590;font-size:12px;white-space:nowrap}
html body .rp-day-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
html body button.rp-card{all:unset;box-sizing:border-box;cursor:pointer;background:#fff;border:1px solid #ece6e8;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;text-align:start;font:inherit;color:#262428}
html body button.rp-card:hover{border-color:#d9cfd3;box-shadow:0 4px 14px rgba(38,36,40,.05)}
html body button.rp-card:focus-visible{outline:2px solid #bf242c;outline-offset:2px}
html body .rp-card-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html body .rp-card-top b{font-size:15px;margin-inline-end:auto}
html body .rp-place{color:#6b6570;font-size:12px}
html body .rp-card-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#faf8f5;border-radius:10px;padding:8px 4px;margin-top:2px}
html body .rp-card-stats div{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
html body .rp-card-stats small{color:#8a8590;font-size:11px;white-space:nowrap}
html body .rp-card-stats b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html body .rp-leave{background:#fffdf8!important;border-style:dashed!important}
html body .rp-leave small{color:#8a8590;font-size:12px}
html body .rp-card .uc-pill,html body .rp-emp .uc-pill{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px}
html body .rp-card .uc-pill.draft,html body .rp-emp .uc-pill.draft{background:#fff4dc;color:#8a5a00;border:1px dashed #e8c77a}
html body #reportsMore{margin-top:14px}
html body #reportsMore.hidden{display:none!important}
@media (max-width:600px){html body .rp-controls > select{flex:1 1 100%}html body .rp-tools{margin-inline-start:0;width:100%}html body .rp-tools button{flex:1}html body .rp-range{width:100%}html body .rp-range label{flex:1}html body .rp-range input{flex:1;min-width:0}html body .rp-kpis{grid-template-columns:repeat(3,1fr);gap:8px}html body .rp-kpi{padding:10px}html body .rp-kpi.is-main{grid-column:1/-1}html body .rp-kpi b{font-size:18px}html body .rp-day-list{grid-template-columns:1fr}html body .rp-emps{grid-template-columns:1fr}}
/* Report window: read view first (22/11) */
html body #reportDetail .rd-card{max-width:680px;margin:20px auto!important;border-radius:18px!important;padding:20px!important}
html body #reportDetail .rd-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
html body #reportDetail .rd-head h2{margin:0;font-size:20px}
html body #reportDetail .rd-head button{margin:0!important}
html body #reportDetail #detailMessage:empty{display:none}
html body .rd-who{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body .rd-who > div{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
html body .rd-who b{font-size:17px}
html body .rd-who small{color:#6b6570;font-size:13px}
html body .rd-place{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:12px 0;padding:10px 12px;background:#faf8f5;border-radius:12px}
html body .rd-place small{color:#6b6570}
html body .rd-time{margin-inline-start:auto;color:#4a4550;font-size:13px;white-space:nowrap}
html body .rd-kpis{display:grid;grid-template-columns:1.2fr 1fr 1.4fr;gap:8px;margin-bottom:12px}
html body .rd-kpi{border:1px solid #ece6e8;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:3px;min-width:0}
html body .rd-kpi small{color:#8a8590;font-size:11px}
html body .rd-kpi b{font-size:18px;white-space:nowrap}
html body .rd-kpi.is-main{background:#fbeff0;border-color:#fbeff0}
html body .rd-kpi.is-main b{color:#bf242c}
html body .rd-warn{background:#fff8e8;border:1px solid #f1dfb2;border-radius:12px;padding:10px 12px;margin-bottom:12px;font-size:13px;color:#6b4a00}
html body .rd-warn ul{margin:4px 0 0;padding-inline-start:18px}
html body .rd-sub{font-size:15px;margin:16px 0 8px}
html body .rd-items{border:1px solid #ece6e8;border-radius:12px;overflow:hidden}
html body .rd-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-top:1px solid #f3eef0}
html body .rd-item:first-child{border-top:0}
html body .rd-item > div{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .rd-item > div b{font-weight:500;font-size:14px;overflow-wrap:anywhere}
html body .rd-item small{color:#8a8590;font-size:12px}
html body .rd-item > b{white-space:nowrap;font-size:14px}
html body .rd-total{background:#faf8f5}
html body .rd-total b{font-weight:700!important}
html body .rd-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
html body .rd-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block}
html body .rd-notes{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#4a4550;line-height:1.7}
html body .rd-meta{color:#8a8590;font-size:12px;margin:16px 0 0}
html body .rd-actions{display:flex;gap:10px;margin-top:16px}
html body .rd-actions button{margin:0!important;min-height:46px}
html body .rd-actions button:first-child{flex:1}
html body .rd-delete{background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important;box-shadow:none!important}
html body .rd-back{background:none!important;border:0!important;box-shadow:none!important;color:#6b6570!important;padding:0!important;margin:0 0 10px!important;min-height:0!important;cursor:pointer;font-size:14px}
@media (max-width:600px){html body #reportDetail{padding:10px!important}html body #reportDetail .rd-card{margin:6px auto!important;padding:16px!important}html body .rd-kpis{grid-template-columns:1fr 1fr}html body .rd-kpis .rd-kpi:last-child{grid-column:1/-1}html body .rd-time{margin-inline-start:0;width:100%}}
html body .rd-who .uc-pill{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px}html body .rd-who .uc-pill.draft{background:#fff4dc;color:#8a5a00;border:1px dashed #e8c77a}
/* Points page: cards, windows, follow-ups (22/11) */
html body .pt-toolbar #pointAreaFilter{flex:0 1 200px;margin:0!important;min-width:150px}
html body .pt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
html body .pt-card .pt-card-top{display:flex;align-items:flex-start;gap:8px}
html body .pt-card .pt-card-top .emp-card-name{flex:1}
html body .pt-card .uc-pill,html body .pt-file .uc-pill{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;white-space:nowrap}
html body .pt-card .uc-pill.draft,html body .pt-file .uc-pill.draft{background:#fff4dc;color:#8a5a00;border:1px dashed #e8c77a}
html body .pt-card.is-overdue{border-color:#f1dfb2}
html body .pt-stats{grid-template-columns:repeat(4,1fr)!important}
html body .pt-late{color:#8a5a00}
html body .pt-follow{margin-top:26px;padding-top:6px;border-top:1px solid #f0ebed}
html body .pt-follow .rp-head button{margin:0!important}
html body .pt-follow-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
html body .pt-follow-card{background:#fff;border:1px solid #ece6e8;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px}
html body .pt-follow-card.is-late{border-color:#f0c9cd;background:#fffafa}
html body .pt-follow-card.is-muted,html body .pt-follow-card.is-ok{opacity:.7}
html body .pt-follow-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body .pt-follow-card small{color:#6b6570;font-size:12px}
html body .pt-follow-card p{margin:0;color:#4a4550;font-size:13px;overflow-wrap:anywhere}
html body .pt-state{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;background:#f3f0f1;color:#4a4550}
html body .pt-state.late{background:#fbeff0;color:#b52632}
html body .pt-state.today{background:#bf242c;color:#fff}
html body .pt-state.soon{background:#eef2fb;color:#2f4f8f}
html body .pt-state.ok{background:#e9f6ee;color:#1f7a45}
html body .pt-follow-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
html body .pt-follow-actions button{margin:0!important;min-height:34px!important;height:34px!important;padding:0 12px!important;font-size:13px!important}
html body .pt-file{max-width:720px!important}
html body .pt-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin:12px 0;padding:10px 12px;background:#faf8f5;border-radius:12px}
html body .pt-info div{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .pt-info small{color:#8a8590;font-size:11px}
html body .pt-info span{overflow-wrap:anywhere}
html body .pt-info a{color:inherit}
html body .pt-kpis{margin-top:12px}
html body .pt-file-actions{margin:0 0 4px!important}
html body .pt-file-actions button{flex:1}
html body button.pt-visit{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-top:1px solid #f3eef0;cursor:pointer;width:100%;font:inherit;color:#262428}
html body button.pt-visit:first-child{border-top:0}
html body button.pt-visit:hover{background:#faf8f5}
html body button.pt-visit:focus-visible{outline:2px solid #bf242c;outline-offset:-2px}
html body .pt-editor{max-width:600px}
html body .pt-editor .employee-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
html body .pt-editor .employee-editor-head h2{margin:0;font-size:20px}
html body .pt-editor .employee-editor-head button{margin:0!important}
html body .pt-editor .grid2{gap:12px!important}
html body .pt-editor .grid2 > div label{display:block;margin:0 0 6px}
html body .pt-editor .grid2 > div input,html body .pt-editor .grid2 > div select{margin:0}
html body .pt-editor label{display:block;margin-top:12px}
html body .pt-editor .full{margin-top:14px}
html body #pointEditMessage:empty,html body #followupMessage:empty{display:none}
html body #pointEditorDanger.hidden{display:none!important}
@media (max-width:600px){html body .pt-grid,html body .pt-follow-list{grid-template-columns:1fr}html body .pt-toolbar #pointAreaFilter{flex:1 1 100%}html body .pt-editor .grid2{grid-template-columns:1fr!important}html body .pt-stats b{font-size:11px!important}}
html body #pointDetailsDialog .rd-card{margin:20px auto!important;border-radius:18px!important;padding:20px!important}
html body #pointDetailsDialog .rd-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
html body #pointDetailsDialog .rd-head h2{margin:0;font-size:20px}
html body #pointDetailsDialog .rd-head button{margin:0!important}
@media (max-width:600px){html body #pointDetailsDialog{padding:10px!important}html body #pointDetailsDialog .rd-card{margin:6px auto!important;padding:16px!important}html body #pointDetailsDialog .rd-kpis{grid-template-columns:1fr 1fr}html body #pointDetailsDialog .rd-kpis .rd-kpi:last-child{grid-column:1/-1}}
html body .pt-toolbar #pointAdminSearch{flex:1 1 240px;width:auto;min-width:0;margin:0!important}
/* Visit schedules: plan cards + editor window (22/11) */
html body .vp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
html body .vp-card{gap:8px!important}
html body .vp-card.is-draft{background:#fffdf8;border-style:dashed}
html body .vp-card.is-now{border-color:#262428}
html body .vp-card-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html body .vp-card-top b{font-size:15px;margin-inline-end:auto;overflow-wrap:anywhere}
html body .vp-pill{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;white-space:nowrap}
html body .vp-pill.ok{background:#e9f6ee;color:#1f7a45}
html body .vp-pill.draft{background:#fff4dc;color:#8a5a00;border:1px dashed #e8c77a}
html body .vp-pill.now{background:#262428;color:#fff}
html body .vp-range{color:#4a4550;font-size:13px}
html body .vp-hidden-note{color:#8a5a00;font-size:12px}
html body .vp-stats{grid-template-columns:repeat(3,1fr)!important}
html body .vp-card-actions{flex-wrap:wrap}
html body .vp-card-actions .vp-del{flex:0 0 auto!important;background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important;box-shadow:none!important}
html body #visitPlansStatus:empty,html body #visitPlansStatus.hidden{display:none!important}
html body #visitPlanOverlay{z-index:950}
html body .vp-dialog{max-width:860px!important;width:100%;padding:0!important;overflow:visible}
html body .vp-dialog .visit-editor{margin:0!important;border:0!important;box-shadow:none!important;padding:20px!important;background:#fff!important;border-radius:18px}
html body .vp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
html body .vp-head h2{margin:0;font-size:20px}
html body .vp-head button{margin:0!important}
html body .vp-actions{position:sticky;bottom:0;background:#fff;padding:12px 0 2px;margin-top:12px!important;border-top:1px solid #f0ebed;display:flex;gap:10px;z-index:2}
html body .vp-actions button{flex:1;margin:0!important;min-height:46px}
html body #visitEditorMessage:empty,html body #visitEditorMessage.hidden{display:none!important}
@media (max-width:600px){html body .vp-grid{grid-template-columns:1fr}html body #visitPlanOverlay{padding:8px!important}html body .vp-dialog .visit-editor{padding:14px!important}}
html body .vp-section-head{display:flex;align-items:center;gap:8px;margin:20px 0 10px;padding-top:16px;border-top:1px solid #f0ebed}
html body .vp-section-head h3{margin:0;font-size:17px}
html body .vp-count{font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;background:#f3f0f1;color:#4a4550}
html body .vp-count:empty{display:none}
html body .vp-empty{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:22px 16px;border:1.5px dashed #e3dde0;border-radius:14px;background:#fcfbfa}
html body .vp-empty b{font-size:15px;color:#4a4550}
html body .vp-empty small{color:#8a8590;font-size:13px;max-width:360px;line-height:1.6}
html body #visitSuggestButton{margin-top:6px}
html body .vp-info{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;margin:0 0 12px;border-radius:12px;background:#f6f4f2;color:#4a4550;font-size:13px;line-height:1.6}
html body .vp-info.hidden{display:none!important}
html body .vp-info .vp-pill{flex:0 0 auto;margin-top:1px}
html body #visitEditorMessage:not(:empty),html body #visitPlansStatus:not(:empty){background:#f6f4f2!important;border:0!important;color:#4a4550!important;border-radius:12px!important;padding:10px 12px!important;font-size:13px!important;box-shadow:none!important}
/* All messages (.notice): calm grey instead of yellow; errors light red (22/11) */
html body .notice,html body.hm-modern .notice{background:#f6f4f2;color:#4a4550;border:0;border-radius:12px;box-shadow:none}
html body .notice.is-error,html body.hm-modern .notice.is-error{background:#fdf1f2;color:#9b2630}
html body .notice:empty{display:none}
html body.hm-modern #employeeWelcome .notice{background:transparent;padding:0}
/* Offer tag on a product (employee screen): green pill, not a message */
body:has(#employeeReportView:not(.hidden)) .product-row .product-name .notice{background:#e9f6ee!important;color:#1f7a45!important}
/* People «online now»: neutral chips */
html body #adminOnlinePeople .notice,html body #onlinePeople .notice{background:#fff;border:1px solid #ece6e8}
/* Diagnostics headline: softer warning */
#admin-diagnostics .diag-health.is-yellow{background:#f6f4f2;color:#4a4550;border-inline-start:4px solid #e0b252}
html body:has(#adminView:not(.hidden)) #adminView .notice{background:#f6f4f2;color:#4a4550;border:0}
html body:has(#adminView:not(.hidden)) #adminView .notice.is-error{background:#fdf1f2;color:#9b2630}
html body:has(#adminView:not(.hidden)) #admin-dashboard .hm-notice-strip{background:#f6f4f2;border:0;color:#4a4550}
html body:has(#employeeReportView:not(.hidden)) #draftStatus,html body:has(#employeeReportView:not(.hidden)) #draftConflict,html body:has(#employeeReportView:not(.hidden)) #leaveStatus{background:#f6f4f2;color:#4a4550;border-color:transparent}
html body:has(#employeeReportView:not(.hidden)) #draftConflict.is-error,html body:has(#employeeReportView:not(.hidden)) #leaveStatus.is-error{background:#fdf1f2;color:#9b2630}
html body:has(#employeeReportView:not(.hidden)) .draft-badge{background:#f6f4f2;border-color:transparent;color:#4a4550}
html body #adminOnlinePeople .notice,html body #onlinePeople .notice{background:#fff!important;border:1px solid #ece6e8!important}
html body:has(#employeeReportView:not(.hidden)) .draft-chip{background:#f6f4f2;border-color:transparent;color:#4a4550}
html body:has(#employeeReportView:not(.hidden)) .employee-status-strip{background:#f6f4f2!important;border-color:transparent!important;color:#4a4550!important}
/* Monthly dues: month chips, tiles, employee cards, statement window (22/11) */
html body #admin-dues .rp-controls > input[type=month]{flex:0 1 200px;margin:0!important;width:auto}
html body #admin-dues .rp-controls > select{flex:0 1 260px;margin:0!important}
html body .du-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
html body button.du-card{all:unset;box-sizing:border-box;cursor:pointer;background:#fff;border:1px solid #ece6e8;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px;font:inherit;color:#262428;text-align:start}
html body button.du-card:hover{border-color:#d9cfd3;box-shadow:0 4px 14px rgba(38,36,40,.05)}
html body button.du-card:focus-visible{outline:2px solid #bf242c;outline-offset:2px}
html body .du-card-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html body .du-card-top b{font-size:15px;margin-inline-end:auto}
html body .du-pill{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;background:#fff4dc;color:#8a5a00;border:1px dashed #e8c77a}
html body .du-total{display:flex;align-items:baseline;justify-content:space-between;background:#fbeff0;border-radius:12px;padding:10px 12px}
html body .du-total small{color:#8a8590;font-size:12px}
html body .du-total b{font-size:22px;color:#bf242c;white-space:nowrap}
html body .du-rows{display:flex;flex-direction:column;gap:4px}
html body .du-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#4a4550}
html body .du-row b{font-weight:500;white-space:nowrap}
html body .du-row.is-minus b{color:#b52632}
html body .du-row.is-plus b{color:#1f7a45}
html body .du-open{color:#8a8590;font-size:12px;text-align:end}
html body #duesStatus:empty,html body #duesStatus.hidden{display:none!important}
html body #duesOverlay{z-index:950}
html body .du-dialog{max-width:760px!important;width:100%;padding:0!important}
html body .du-dialog .dues-detail{margin:0!important;border:0!important;box-shadow:none!important;padding:20px!important;background:#fff!important;border-radius:18px}
html body .du-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
html body .du-head h2{margin:0;font-size:20px}
html body .du-head small{color:#6b6570;font-size:13px}
html body .du-head .toolbar{display:flex;gap:8px;margin:0!important}
html body .du-head .toolbar button{margin:0!important}
html body .du-dialog .dues-breakdown{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #ece6e8;border-radius:12px;overflow:hidden;margin:4px 0 16px}
html body .du-dialog .dues-breakdown th,html body .du-dialog .dues-breakdown td{padding:9px 12px;border:0;border-top:1px solid #f3eef0;background:#fff;font-size:14px;text-align:start}
html body .du-dialog .dues-breakdown tr:first-child th,html body .du-dialog .dues-breakdown tr:first-child td{border-top:0}
html body .du-dialog .dues-breakdown th{font-weight:400;color:#4a4550}
html body .du-dialog .dues-breakdown td{text-align:end;white-space:nowrap;font-weight:500}
html body .du-dialog .dues-breakdown .dues-sub th,html body .du-dialog .dues-breakdown .dues-sub td{background:#faf8f5;font-weight:700}
html body .du-dialog .dues-breakdown .dues-total th,html body .du-dialog .dues-breakdown .dues-total td{background:#fbeff0;color:#bf242c;font-weight:700;font-size:16px}
html body .du-dialog .dues-report{border:1px solid #ece6e8;border-radius:12px;margin:8px 0;padding:0 12px;background:#fff}
html body .du-dialog .dues-report summary{cursor:pointer;padding:10px 0;font-size:13px;line-height:1.6}
html body .du-dialog .dues-adjust{border:1px solid #ece6e8;border-radius:14px;padding:12px 14px;margin-top:16px}
html body .du-dialog .dues-adjust legend{font-weight:700;padding:0 6px}
html body .du-dialog .dues-adjust p{color:#6b6570;font-size:13px;margin:4px 0 8px}
html body .du-dialog > .dues-detail > p:first-of-type{display:none}
@media (max-width:600px){html body .du-grid{grid-template-columns:1fr}html body #duesOverlay{padding:8px!important}html body .du-dialog .dues-detail{padding:14px!important}html body #admin-dues .rp-controls > input[type=month],html body #admin-dues .rp-controls > select{flex:1 1 100%}html body .du-head{flex-direction:column}}
/* Online now / devices / account access / settings (22/11) */
html body .on-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
html body .on-head h2{margin:0}
html body .on-head button{margin:0!important}
html body .on-status{color:#6b6570;font-size:13px;margin:0 0 10px}
html body .on-status:empty{display:none}
html body .on-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:0 0 22px}
html body .on-person{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #ece6e8;border-radius:14px;padding:10px 12px}
html body .on-person > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body .on-person b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .on-person small{color:#8a8590;font-size:12px}
html body .on-dot{width:10px;height:10px;border-radius:50%;background:#2e9a5e;box-shadow:0 0 0 4px #e6f4ec;flex:0 0 10px}
html body .on-danger{background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important;box-shadow:none!important}
html body .on-sessions-head button{margin:0!important}
html body .ss-list{display:flex;flex-direction:column;gap:8px}
html body .ss-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #ece6e8;border-radius:14px;padding:10px 12px}
html body .ss-row.is-off{background:#fcfbfa}
html body .ss-row.is-off .emp-avatar{background:#f0eded;color:#8a8590}
html body .ss-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body .ss-info b{font-size:14px}
html body .ss-info small{color:#8a8590;font-size:12px}
html body .ss-self{font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px;background:#262428;color:#fff;margin-inline-start:4px}
html body .ss-state{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;white-space:nowrap;background:#f3f0f1;color:#6b6570}
html body .ss-state.ok{background:#e9f6ee;color:#1f7a45}
html body .ss-state.mid{background:#eef2fb;color:#2f4f8f}
html body .ss-state.bad{background:#fbeff0;color:#b52632}
html body .ss-row button{margin:0!important;flex:0 0 auto}
html body .ac-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
html body .ac-card{background:#fff;border:1px solid #ece6e8;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
html body .ac-card.is-suspended{border-color:#f0c9cd;background:#fffafa}
html body .ac-top{display:flex;align-items:center;gap:10px}
html body .ac-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body .ac-name small{color:#8a8590;font-size:12px}
html body .ac-reason{margin:0;color:#4a4550;font-size:13px;overflow-wrap:anywhere}
html body .ac-when{color:#8a8590;font-size:12px}
html body .ac-card button{margin:0!important;width:100%;min-height:38px}
html body .ac-dialog{max-width:520px}
html body .ac-dialog .employee-editor-head,html body .set-dialog .employee-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
html body .ac-dialog .employee-editor-head h2,html body .set-dialog .employee-editor-head h2{margin:0;font-size:20px}
html body .ac-dialog .employee-editor-head button,html body .set-dialog .employee-editor-head button{margin:0!important}
html body .ac-dialog textarea{min-height:90px}
html body .ac-actions{display:flex;gap:10px;margin-top:12px}
html body .ac-actions button{flex:1;margin:0!important;min-height:46px}
html body #accountAccessReasonWrap.hidden{display:none}
html body .set-card{background:#fff;border:1px solid #ece6e8;border-radius:16px;padding:16px;margin:0 0 14px}
html body .set-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
html body .set-head h3{margin:0 0 4px;font-size:17px}
html body .set-head p{margin:0;color:#6b6570;font-size:13px}
html body .set-head button{margin:0!important;white-space:nowrap}
html body .set-card .notification-compose{border:0!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important}
html body .set-card .notification-compose > h3{font-size:15px;margin:0 0 4px}
html body .set-card .toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}
html body .set-card .toolbar button{margin:0!important}
html body .set-card .reminder-time-row{margin-top:16px;padding-top:14px;border-top:1px solid #f0ebed}
html body .set-dialog{max-width:620px}
html body .set-dialog .manager-form{margin:0!important;border:0!important;padding:0!important;background:none!important;box-shadow:none!important}
html body .set-dialog .grid2{gap:12px!important}
html body .set-dialog .grid2 > div label{display:block;margin:0 0 6px}
html body .set-dialog .grid2 > div input,html body .set-dialog .grid2 > div select{margin:0}
html body .set-actions{margin-top:14px!important}
html body .set-actions button{flex:1;min-height:46px}
html body #managerCancelButton{display:none!important}
html body #managerMessage.hidden,html body #managerMessage:empty{display:none!important}
@media (max-width:600px){html body .on-people,html body .ac-grid{grid-template-columns:1fr}html body .ss-row{flex-wrap:wrap}html body .ss-row .ss-info{flex:1 1 60%}html body .ss-row button{flex:1 1 100%}html body .set-head{flex-direction:column}html body .set-head button{width:100%}html body .set-dialog .grid2{grid-template-columns:1fr!important}}
html body .set-card .manager-row{border-radius:14px;padding:10px 12px}
html body .set-card .manager-actions{display:flex;gap:6px;flex-wrap:wrap}
html body .set-card .manager-actions button{margin:0!important;min-height:34px!important;height:34px!important;padding:0 12px!important;font-size:13px!important;flex:0 0 auto!important}
html body .set-card .manager-actions .row-delete{background:#fff!important;color:#b52632!important;border:1px solid #f0c9cd!important;box-shadow:none!important}
@media (max-width:600px){html body .set-card .manager-actions button{flex:1 1 0!important}}
/* Employee screens: review list, my sales, my dues, my visits (22/11) */
html body .rv-items{border:1px solid #ece6e8;border-radius:12px;overflow:hidden;background:#fff}
html body .rv-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-top:1px solid #f3eef0}
html body .rv-item:first-child{border-top:0}
html body .rv-item > div{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .rv-item > div b{font-weight:500;font-size:14px;overflow-wrap:anywhere}
html body .rv-item small{color:#8a8590;font-size:12px}
html body .rv-sum{white-space:nowrap;font-size:14px}
html body #reportReviewBody .review-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body #reportReviewBody .review-facts > div{margin:0!important;padding:10px 12px!important;border-radius:12px!important}
html body #reportReviewBody .review-facts dd{font-size:15px!important}
html body .es-month{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 14px}
html body .es-month .emp-filters{margin:0!important}
html body .es-month input[type=month]{width:auto;flex:0 1 180px;margin:0!important}
html body .es-main{background:#fbeff0;border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
html body .es-main > small{color:#8a8590;font-size:12px}
html body .es-main > b{font-size:28px;color:#bf242c;line-height:1.2}
html body .es-notarget{color:#6b6570;font-size:13px}
html body .es-target{display:flex;flex-direction:column;gap:6px;margin-top:4px}
html body .es-bar{height:10px;border-radius:999px;background:#fff;overflow:hidden}
html body .es-bar span{display:block;height:100%;background:#bf242c;border-radius:999px}
html body .es-target-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#4a4550}
html body .es-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
html body .es-tiles > div{background:#faf8f5;border-radius:14px;padding:10px 14px;display:flex;flex-direction:column;gap:3px}
html body .es-tiles small{color:#8a8590;font-size:12px}
html body .es-tiles b{font-size:20px}
html body .es-head{display:flex;align-items:baseline;gap:6px;margin:18px 0 8px}
html body .es-head small{color:#8a8590;font-weight:400;font-size:13px}
html body .es-report{border:1px solid #ece6e8!important;border-radius:14px!important;margin:0 0 8px!important;padding:0!important;background:#fff!important;overflow:hidden}
html body .es-report > summary{list-style:none;cursor:pointer;padding:12px 14px!important;display:flex;flex-direction:column;gap:3px;background:#fff!important;border:0!important}
html body .es-report > summary::-webkit-details-marker{display:none}
html body .es-top{display:flex;justify-content:space-between;gap:10px}
html body .es-top span{font-weight:700;color:#262428;white-space:nowrap}
html body .es-report > summary small{color:#6b6570;font-size:12px}
html body .es-report[open] > summary{border-bottom:1px solid #f3eef0!important}
html body .es-report .rv-items{border:0;border-radius:0}
html body .es-notes{margin:0;padding:10px 14px;color:#4a4550;font-size:13px;white-space:pre-wrap;border-top:1px solid #f3eef0}
html body .es-report .dues-report-photos{padding:0 14px}
html body .es-report .dues-report-photos:not(:empty){padding:10px 14px}
html body #employeeSalesReportsStatus:empty,html body #employeeDuesStatus:empty,html body #employeeVisitsStatus:empty{display:none}
html body .ed-total{background:#fbeff0;border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;margin:0 0 12px}
html body .ed-total small{color:#8a8590;font-size:12px}
html body .ed-total b{font-size:28px;color:#bf242c}
html body .ed-total .du-pill{align-self:flex-start}
html body #employeeDuesBody > p:first-of-type{display:none}
html body #employeeDuesBody .dues-breakdown{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #ece6e8;border-radius:12px;overflow:hidden}
html body #employeeDuesBody .dues-breakdown th,html body #employeeDuesBody .dues-breakdown td{padding:10px 12px;border:0;border-top:1px solid #f3eef0;background:#fff;font-size:14px;text-align:start}
html body #employeeDuesBody .dues-breakdown tr:first-child th,html body #employeeDuesBody .dues-breakdown tr:first-child td{border-top:0}
html body #employeeDuesBody .dues-breakdown th{font-weight:400;color:#4a4550}
html body #employeeDuesBody .dues-breakdown td{text-align:end;white-space:nowrap;font-weight:500}
html body #employeeDuesBody .dues-breakdown .dues-sub th,html body #employeeDuesBody .dues-breakdown .dues-sub td{background:#faf8f5;font-weight:700}
html body #employeeDuesBody .dues-breakdown .dues-total th,html body #employeeDuesBody .dues-breakdown .dues-total td{background:#fbeff0;color:#bf242c;font-weight:700}
html body #employeeDuesPanel .grid2 label{display:none}
html body #employeeDuesPanel .grid2{grid-template-columns:auto 1fr!important;align-items:center;gap:10px!important;margin-bottom:12px}
html body #employeeDuesPanel .grid2 input[type=month]{margin:0!important;width:auto}
html body #employeeDuesPanel .es-month{margin-bottom:8px}
html body #employeeDuesBody .dues-breakdown .dues-sub > *{background:#faf8f5!important}
html body #employeeDuesBody .dues-breakdown .dues-total > *{background:#fbeff0!important;color:#bf242c!important}
html body .du-dialog .dues-breakdown .dues-sub > *{background:#faf8f5!important}
html body .du-dialog .dues-breakdown .dues-total > *{background:#fbeff0!important;color:#bf242c!important}
html body #employeeDuesPanel .grid2 .toolbar button{white-space:nowrap;min-height:44px;margin:0!important}
html body #employeeDuesPanel .grid2 .toolbar{margin:0!important;justify-content:flex-start}
/* «تقارير اليوم» window: who sent, who has not yet, who is on leave. */
html body .tr-window{max-width:520px}
html body .tr-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 4px}
html body .tr-summary > div{background:#faf8f5;border:1px solid #ece6e8;border-radius:12px;padding:10px;text-align:center;display:flex;flex-direction:column;gap:2px}
html body .tr-summary b{font-size:22px;font-weight:700;color:#262428}
html body .tr-summary small{color:#8a8590;font-size:12px}
html body .tr-count{display:inline-block;min-width:22px;padding:0 7px;border-radius:999px;background:#f3eef0;color:#6b6570;font-size:12px;font-weight:500;text-align:center;vertical-align:middle}
html body .tr-call{flex:none;text-decoration:none;font-size:13px;color:#b52632;border:1px solid #f0c9cd;border-radius:999px;padding:5px 12px;background:#fff}
html body .tr-call:hover{background:#fdf3f4}
html body .tr-all{margin-top:16px!important}
/* Employee window: «عليه متابعة يومية» switch. */
html body .emp-follow{display:flex;align-items:flex-start;gap:10px;margin:14px 0 4px;padding:10px 12px;border:1px solid #ece6e8;border-radius:12px;background:#faf8f5;cursor:pointer}
html body .emp-follow input{margin:3px 0 0;width:18px;height:18px;flex:none;accent-color:#d9304a}
html body .emp-follow span{display:flex;flex-direction:column;gap:3px}
html body .emp-follow b{font-weight:500;font-size:14px;color:#262428}
html body .emp-follow small{color:#8a8590;font-size:12px;line-height:1.6}
