/* Dalilak Staff · peach design for the whole staff app (same look as the customer app).
   Presentation only: no element, field, button or script behaviour changes. */
html.dl-peach-staff{--pe-peach:#e1eefa;--pe-disc:#c4dcf3;--pe-sheet:#f1f4f8;--pe-ink:#1e1e1c;--pe-muted:#6b6a66;--pe-faint:#9a9893;
  --pe-line:#e2e9f0;--pe-field:#f5f8fc;--pe-field-line:#d5e0eb;--pe-accent:#2a72b5;--pe-accent-2:#5b9fdc;--pe-danger:#d9644a}
html.dl-peach-staff,html.dl-peach-staff body{font-family:'Noto Sans Arabic',system-ui,Tahoma,sans-serif!important}
html.dl-peach-staff body *:not(svg):not(path):not(circle){font-family:inherit!important}
html.dl-peach-staff body{color:var(--pe-ink)}

/* ---------- Dashboard: peach header with disc, light sheet below ---------- */
html.dl-peach-staff body.admin-checking,html.dl-peach-staff body:has(.dash-page){background:var(--pe-sheet)!important}
html.dl-peach-staff .dash-topbar{background:var(--pe-peach)!important;overflow:hidden;border:0!important;box-shadow:none!important}
html.dl-peach-staff .dash-topbar::before{content:'';position:absolute;width:300px;height:300px;border-radius:50%;background:var(--pe-disc);top:-190px;left:-120px;z-index:0;pointer-events:none}
html.dl-peach-staff .dash-topbar>*{position:relative;z-index:1}
html.dl-peach-staff .dash-topbar>#adminMenu{position:fixed;z-index:90}
html.dl-peach-staff .dash-topbar .staff-welcome strong{color:var(--pe-ink)!important;font-weight:700!important}
html.dl-peach-staff .dash-topbar .staff-welcome span,html.dl-peach-staff .dash-topbar .staff-welcome button{color:var(--pe-muted)!important}
html.dl-peach-staff .dash-topbar>.staff-header-notification{background:rgba(255,255,255,.8)!important;border-radius:50%!important;color:var(--pe-ink)!important}
html.dl-peach-staff .staff-bell-count,html.dl-peach-staff .staff-unread-count{background:var(--pe-danger)!important;color:#fff!important}
html.dl-peach-staff .admin-menu-toggle{color:var(--pe-ink)!important;background:transparent!important}
html.dl-peach-staff .admin-menu-toggle span{background:var(--pe-ink)!important}
html.dl-peach-staff .dash-page{background:var(--pe-sheet)!important;border-radius:26px 26px 0 0!important}
html.dl-peach-staff .dash-hero h1,html.dl-peach-staff .panel-head h2{color:var(--pe-ink)!important;font-weight:700!important}
html.dl-peach-staff .dash-hero small,html.dl-peach-staff .panel-head small{color:var(--pe-accent)!important;font-weight:600!important}

/* Cards and panels: white on the light sheet */
html.dl-peach-staff .panel{background:#fff!important;border:1px solid var(--pe-line)!important;border-radius:18px!important;box-shadow:none!important}
html.dl-peach-staff .dash-page>.panel,html.dl-peach-staff .dash-page>section.panel{margin-bottom:12px}
html.dl-peach-staff .stats .stat-navigation,html.dl-peach-staff .overview-stats button,html.dl-peach-staff .stat-tile{background:#fff!important;border:1px solid var(--pe-line)!important;border-radius:16px!important;box-shadow:none!important}
html.dl-peach-staff .stats .stat-navigation strong,html.dl-peach-staff .overview-stats strong,html.dl-peach-staff .stat-tile strong{color:var(--pe-accent)!important}
html.dl-peach-staff .stats .stat-navigation small,html.dl-peach-staff .overview-stats small,html.dl-peach-staff .stat-tile small{color:var(--pe-muted)!important}
html.dl-peach-staff .overview-stats button[aria-pressed=true]{background:var(--pe-peach)!important;border-color:var(--pe-accent-2)!important}
html.dl-peach-staff .count{background:var(--pe-peach)!important;color:var(--pe-accent)!important;border:0!important}

/* Fields */
html.dl-peach-staff input:not([type=checkbox]):not([type=radio]):not([type=file]),html.dl-peach-staff select,html.dl-peach-staff textarea{
  background:var(--pe-field)!important;border:1px solid var(--pe-field-line)!important;border-radius:12px!important;color:var(--pe-ink)!important;box-shadow:none!important}
html.dl-peach-staff input::placeholder,html.dl-peach-staff textarea::placeholder{color:#a39b93!important}
html.dl-peach-staff input:focus,html.dl-peach-staff select:focus,html.dl-peach-staff textarea:focus{border-color:var(--pe-accent)!important;background:#fff!important;box-shadow:0 0 0 3px rgba(42,114,181,.12)!important;outline:none!important}
html.dl-peach-staff input[type=checkbox],html.dl-peach-staff input[type=radio]{accent-color:var(--pe-accent)}

/* Buttons */
html.dl-peach-staff .primary,html.dl-peach-staff .staff-primary,html.dl-peach-staff button.primary,html.dl-peach-staff a.primary{background:var(--pe-accent)!important;color:#fff!important;border:0!important;border-radius:24px!important;box-shadow:none!important}
html.dl-peach-staff .secondary,html.dl-peach-staff .ghost{background:#fff!important;color:var(--pe-accent)!important;border:1px solid var(--pe-field-line)!important;border-radius:22px!important;box-shadow:none!important}
html.dl-peach-staff .danger{color:var(--pe-danger)!important}
html.dl-peach-staff a:not(.primary):not(.secondary):not(.tab){color:var(--pe-accent)}

/* Side menu */
html.dl-peach-staff .admin-drawer{background:#fff!important;border:1px solid var(--pe-line)!important;border-radius:20px!important;box-shadow:0 12px 32px rgba(30,30,28,.12)!important}
html.dl-peach-staff .admin-drawer .tab,html.dl-peach-staff .admin-drawer>a,html.dl-peach-staff .admin-drawer .menu-sign-out{color:var(--pe-ink)!important;background:transparent!important;border-radius:14px!important}
html.dl-peach-staff .admin-drawer .tab.active,html.dl-peach-staff .admin-drawer>a.active{background:var(--pe-peach)!important;color:var(--pe-accent)!important;font-weight:700!important}
html.dl-peach-staff .admin-drawer .menu-icon{background:var(--pe-peach)!important;color:var(--pe-accent)!important;border-radius:50%!important}
html.dl-peach-staff .admin-drawer .menu-sign-out{color:var(--pe-danger)!important}
html.dl-peach-staff .admin-drawer .menu-close{color:var(--pe-ink)!important;background:var(--pe-field)!important;border-radius:50%!important}
html.dl-peach-staff .admin-menu-divider{background:var(--pe-line)!important}

/* Orders, notifications, services lists */
html.dl-peach-staff .cards>*,html.dl-peach-staff .order-card,html.dl-peach-staff .compact-transaction,html.dl-peach-staff .notification,html.dl-peach-staff .staff-service-card,html.dl-peach-staff .staff-services-list>*{border-color:var(--pe-line)!important}
html.dl-peach-staff .notification.notification-unread{background:#f9fbfe!important;border-color:#cfe1f2!important}
html.dl-peach-staff .status-badge,html.dl-peach-staff .order-status,html.dl-peach-staff [class*=status-pill]{background:var(--pe-peach)!important;color:var(--pe-accent)!important;border:0!important}
html.dl-peach-staff details>summary{color:var(--pe-ink)!important}
html.dl-peach-staff .message{color:var(--pe-accent)!important}

/* Login */
html.dl-peach-staff body.staff-auth{background:linear-gradient(var(--pe-peach),var(--pe-peach)) top/100% 260px no-repeat,var(--pe-sheet)!important}
html.dl-peach-staff body.staff-auth::before{content:'';position:fixed;width:320px;height:320px;border-radius:50%;background:var(--pe-disc);top:-200px;left:-130px;z-index:0;pointer-events:none}
html.dl-peach-staff body.staff-auth>*{position:relative;z-index:1}
html.dl-peach-staff .staff-login-card{background:#fff!important;border:1px solid var(--pe-line)!important;border-radius:22px!important;box-shadow:none!important}
html.dl-peach-staff #staffLoginHeading{color:var(--pe-ink)!important}
html.dl-peach-staff .staff-text-button{color:var(--pe-accent)!important}
html.dl-peach-staff .language-switch{background:var(--pe-peach)!important;color:var(--pe-accent)!important;border:0!important}

/* Other staff pages (services list, request form, terms, support, privacy) */
html.dl-peach-staff body:not(:has(.dash-page)):not(.staff-auth){background:linear-gradient(var(--pe-peach),var(--pe-peach)) top/100% 220px no-repeat,var(--pe-sheet)!important}
html.dl-peach-staff .topbar{background:transparent!important;border:0!important;box-shadow:none!important}
html.dl-peach-staff .brand-mark{background:var(--pe-accent)!important;color:#fff!important}
html.dl-peach-staff .topnav a{color:var(--pe-muted)!important}
html.dl-peach-staff .topnav a.active{background:#fff!important;color:var(--pe-accent)!important}

/* Titles black, labels grey (like the customer app); accents only on actions */
html.dl-peach-staff .service-link,html.dl-peach-staff .service-link strong,html.dl-peach-staff .staff-services-list strong,html.dl-peach-staff .staff-services-list h3,
html.dl-peach-staff .notification strong,html.dl-peach-staff .notification h3,html.dl-peach-staff .cards strong,html.dl-peach-staff .cards h3,html.dl-peach-staff .order-card strong,
html.dl-peach-staff .panel h3,html.dl-peach-staff .staff-settings h3,html.dl-peach-staff summary strong{color:var(--pe-ink)!important}
html.dl-peach-staff dt,html.dl-peach-staff .staff-settings dt,html.dl-peach-staff label>span,html.dl-peach-staff .field>span{color:var(--pe-muted)!important}
html.dl-peach-staff dd{color:var(--pe-ink)!important}
html.dl-peach-staff .staff-services-list small,html.dl-peach-staff .service-link small,html.dl-peach-staff .notification small,html.dl-peach-staff .cards small{color:var(--pe-accent)}
html.dl-peach-staff .admin-menu-toggle:focus,html.dl-peach-staff .admin-menu-toggle:focus-visible{outline:none!important;box-shadow:none!important}
/* Service skills: status pills and removal requests */
html.dl-peach-staff .capability-status{background:var(--pe-field)!important;color:var(--pe-muted)!important;border-radius:12px!important;padding:2px 9px!important;font-size:11.5px!important}
html.dl-peach-staff .capability-status.approved{background:#eef5ee!important;color:#4f8a5b!important}
html.dl-peach-staff .capability-status.pending,html.dl-peach-staff .capability-status.removal-pending{background:var(--pe-peach)!important;color:var(--pe-accent)!important}
html.dl-peach-staff .capability-controls{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important}
html.dl-peach-staff .capability-controls .danger{background:#fff!important;border:1px solid #d0e0ef!important;border-radius:20px!important;padding:4px 12px!important}
html.dl-peach-staff .capability-controls button{min-height:32px!important;height:32px!important;padding:2px 12px!important;font-size:12.5px!important;border-radius:16px!important}
html.dl-peach-staff .badge.capability-waiting{background:var(--pe-danger)!important;color:#fff!important}

/* ---------- 1.0.45: spacing and size pass (text away from card edges, smaller controls) ---------- */
html.dl-peach-staff .dash-page{padding-inline:12px!important}
html.dl-peach-staff .dash-page>.panel,html.dl-peach-staff .dash-page>section.panel{padding:16px 14px!important}
html.dl-peach-staff .panel .panel-head{padding:0!important;margin:0 0 12px!important;gap:10px!important}
html.dl-peach-staff .panel-head h2{font-size:19px!important;line-height:1.4!important;margin:2px 0 0!important}
html.dl-peach-staff .panel-head small,html.dl-peach-staff .dash-hero small{font-size:11.5px!important}
html.dl-peach-staff .dash-hero h1{font-size:22px!important}
html.dl-peach-staff .dash-hero{padding:4px 4px 0!important;margin-bottom:14px!important}
/* explanations in grey, not terracotta */
html.dl-peach-staff .panel p:not(.message),html.dl-peach-staff .panel-note,html.dl-peach-staff .panel>p,html.dl-peach-staff .hint,html.dl-peach-staff .muted{color:var(--pe-muted)!important;font-size:12.5px!important;line-height:1.7!important}
html.dl-peach-staff .message{font-size:12.5px!important;line-height:1.6!important}
html.dl-peach-staff .message:empty{display:none!important}
/* list rows inside panels keep a little inner space */
html.dl-peach-staff .cards>*,html.dl-peach-staff .orders>*,html.dl-peach-staff .staff-services-list>*,html.dl-peach-staff .notification{padding-inline:4px!important}
html.dl-peach-staff .compact-transaction-summary{padding:12px 4px!important;gap:8px!important}
html.dl-peach-staff .card{padding:14px 12px!important;border-radius:16px!important}
html.dl-peach-staff .card h3{font-size:15px!important;margin:0 0 4px!important}
/* smaller fields and buttons */
html.dl-peach-staff input:not([type=checkbox]):not([type=radio]):not([type=file]),html.dl-peach-staff select{min-height:44px!important;height:44px!important;padding:6px 12px!important;font-size:15px!important}
html.dl-peach-staff textarea{min-height:80px!important;padding:8px 12px!important;font-size:15px!important}
html.dl-peach-staff label>span,html.dl-peach-staff .field>span{font-size:12.5px!important}
html.dl-peach-staff .primary,html.dl-peach-staff .staff-primary,html.dl-peach-staff button.primary,html.dl-peach-staff a.primary{min-height:44px!important;font-size:14.5px!important;padding:8px 18px!important}
html.dl-peach-staff .secondary,html.dl-peach-staff .ghost{min-height:38px!important;font-size:13px!important;padding:6px 14px!important}
html.dl-peach-staff .stats .stat-navigation{min-height:104px!important;padding:12px 6px!important}
html.dl-peach-staff .stats .stat-navigation strong{font-size:22px!important}
html.dl-peach-staff .overview-stats button{min-height:84px!important;padding:10px 6px!important}
html.dl-peach-staff details>summary{padding-block:4px!important}
html.dl-peach-staff .staff-settings details,html.dl-peach-staff .staff-settings section{padding:14px 12px!important}
html.dl-peach-staff .info{padding:10px 12px!important;border-radius:12px!important}
html.dl-peach-staff .info span{font-size:11.5px!important}
html.dl-peach-staff .info strong{font-size:14px!important}
html.dl-peach-staff .capability-row{padding:12px 4px!important;gap:8px!important}
html.dl-peach-staff .capability-summary{padding:12px 10px!important}
html.dl-peach-staff .capability-copy strong{font-size:14px!important}
html.dl-peach-staff .capability-copy small{font-size:11.5px!important}
/* Chats menu item + unread badges */
html.dl-peach-staff .admin-drawer #staffSupportLink{display:flex;align-items:center;gap:11px;position:relative;text-decoration:none}
html.dl-peach-staff .staff-support-count{margin-inline-start:auto;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--pe-danger);color:#fff;font-size:11px;font-weight:700;display:inline-grid;place-items:center}
html.dl-peach-staff .staff-support-count[hidden]{display:none}
html.dl-peach-staff .admin-menu-toggle.has-chat-unread{position:relative}
html.dl-peach-staff .admin-menu-toggle.has-chat-unread::after{content:'';position:absolute;top:6px;left:4px;width:9px;height:9px;border-radius:50%;background:var(--pe-danger);border:2px solid var(--pe-peach)}

/* Staff list: email and status on their own lines; remove-employee button */
html.dl-peach-staff #staffList .card-head small{display:block;margin-top:2px;unicode-bidi:plaintext;text-align:right}
html.dl-peach-staff .staff-remove{background:#fff!important;color:#b23a2a!important;border:1px solid #f0c9c0!important}
html.dl-peach-staff .staff-remove.armed{background:#b23a2a!important;color:#fff!important;border-color:#b23a2a!important}

/* Four summary tiles (available · unpaid · mine · done) and the unpaid list */
html.dl-peach-staff .stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
html.dl-peach-staff .stats .stat-navigation{padding:12px 3px!important}
html.dl-peach-staff .stats .stat-navigation small{font-size:11.5px!important;white-space:nowrap}
html.dl-peach-staff .stats .stat-unpaid strong{color:#b8792b!important}
html.dl-peach-staff .unpaid-section{margin-top:22px;padding-top:6px;border-top:1px solid var(--pe-line);scroll-margin-top:16px}
html.dl-peach-staff #unpaidList .badge{background:#fdf1df!important;color:#a5641c!important}
html.dl-peach-staff #unpaidList{gap:0!important}
html.dl-peach-staff #unpaidList>.compact-transaction,html.dl-peach-staff #unpaidList>.compact-transaction:nth-child(even){border:0!important;border-bottom:1px solid #e8e8e8!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}

/* Admin overview: compact and tidy (2026-10-28) */
html.dl-peach-staff .staff-overview .panel-head{align-items:center!important;margin-bottom:6px!important}
html.dl-peach-staff .staff-overview .panel-head h2{font-size:20px!important;margin:0!important}
html.dl-peach-staff .staff-overview .panel-head small{font-size:11.5px!important}
html.dl-peach-staff #overviewMyOrders{min-height:34px!important;padding:5px 14px!important;font-size:12.5px!important;border-radius:17px!important}
html.dl-peach-staff .overview-stats{gap:8px!important;margin:10px 0 14px!important}
html.dl-peach-staff .overview-stats button{min-height:62px!important;padding:8px 4px!important;gap:2px!important;border-radius:14px!important}
html.dl-peach-staff .overview-stats small{font-size:11.5px!important;line-height:1.5!important}
html.dl-peach-staff .overview-stats strong{font-size:20px!important;line-height:1.2!important}
html.dl-peach-staff .overview-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;gap:8px!important;margin-bottom:14px!important}
html.dl-peach-staff .overview-filters label{gap:4px!important;font-size:11px!important;color:var(--pe-muted)!important}
html.dl-peach-staff .overview-filters select{min-height:40px!important;padding:6px 8px!important;font-size:13px!important;border-radius:10px!important}
html.dl-peach-staff #overviewReset{grid-column:auto!important;align-self:end!important;min-height:40px!important;padding:6px 12px!important;font-size:12px!important;border-radius:10px!important}
html.dl-peach-staff .overview-team{padding:4px 12px 2px!important;margin-bottom:16px!important;border-radius:14px!important}
html.dl-peach-staff .overview-team>summary{padding:8px 0!important;font-size:13.5px!important}
html.dl-peach-staff .overview-team-list{margin-top:0!important}
html.dl-peach-staff .overview-person{min-height:42px!important;padding:7px 0!important;font-size:13px!important;gap:8px!important}
html.dl-peach-staff .overview-person-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.dl-peach-staff .overview-person-counts{gap:5px!important;font-size:10.5px!important;flex-wrap:nowrap!important}
html.dl-peach-staff .overview-person-counts span{padding:2px 8px!important;border-radius:10px!important;background:var(--pe-peach)!important;color:var(--pe-accent)!important}
html.dl-peach-staff .overview-person.selected{background:#f9fbfe!important}
html.dl-peach-staff .overview-list-head{margin-top:4px!important}
html.dl-peach-staff .overview-list-head h2{font-size:17px!important}
html.dl-peach-staff #overviewList .compact-transaction-summary{grid-template-columns:22px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;column-gap:10px!important;row-gap:2px!important;min-height:0!important;padding:11px 2px!important;align-items:center}
html.dl-peach-staff #overviewList .staff-service-icon{grid-row:1/3!important;width:22px!important;height:24px!important;color:var(--pe-muted)!important}
html.dl-peach-staff #overviewList .staff-service-icon svg{width:20px!important;height:22px!important}
html.dl-peach-staff #overviewList .compact-name{grid-column:2!important;grid-row:1!important;font-size:14.5px!important;line-height:1.5!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
html.dl-peach-staff #overviewList .compact-state{grid-column:3!important;grid-row:1!important;justify-self:end!important;background:var(--pe-peach)!important;border-radius:10px!important;padding:2px 9px!important;font-size:11px!important;white-space:nowrap}
html.dl-peach-staff #overviewList .compact-ref{grid-column:3!important;grid-row:2!important;justify-self:end!important;font-size:11px!important}
html.dl-peach-staff #overviewList .overview-owner{grid-column:2!important;grid-row:2!important;font-size:12px!important;color:var(--pe-muted)!important;line-height:1.5!important}
/* Admin overview split into two boxes: summary/filters and all transactions */
html.dl-peach-staff #overviewPanel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html.dl-peach-staff .overview-box{background:#fff;border:1px solid var(--pe-line);border-radius:20px;padding:16px 14px}
html.dl-peach-staff .overview-list-box{margin-top:12px}
html.dl-peach-staff .overview-top>.panel-head small{display:none!important}
html.dl-peach-staff .overview-top>.panel-head{align-items:center!important;margin-bottom:2px!important}
html.dl-peach-staff .overview-filters label>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
html.dl-peach-staff .overview-filters{align-items:center!important}
html.dl-peach-staff #overviewReset{align-self:center!important}
html.dl-peach-staff .overview-team{margin-bottom:0!important}
html.dl-peach-staff .overview-list-head{margin:0 0 4px!important}
html.dl-peach-staff .overview-actions{display:flex;align-items:center;justify-content:space-between;margin:2px 4px 10px}
html.dl-peach-staff .overview-actions h2{margin:0;font-size:21px;color:var(--pe-ink)}
html.dl-peach-staff #overviewMyOrders.overview-link{background:none!important;border:0!important;box-shadow:none!important;padding:4px 2px!important;min-height:0!important;color:var(--pe-accent)!important;font:inherit;font-size:14px!important;font-weight:700!important;cursor:pointer}
html.dl-peach-staff .overview-actions.overview-list-head{margin:18px 4px 10px!important}
html.dl-peach-staff .overview-actions.overview-list-head h2{font-size:21px!important}
html.dl-peach-staff .overview-list-box{margin-top:0!important;padding-top:4px!important}

/* Staff list: smaller action buttons, active checkbox and services button */
html.dl-peach-staff #staffList .staff-row{gap:8px!important}
html.dl-peach-staff #staffList .staff-row button,html.dl-peach-staff #staffList .card>button{min-height:34px!important;height:34px!important;padding:0 14px!important;font-size:13px!important;font-weight:700!important;border-radius:17px!important;line-height:1!important;flex:0 0 auto!important;width:auto!important;margin-top:0!important}
html.dl-peach-staff #staffList .card>button{margin-top:8px!important}
html.dl-peach-staff #staffList .staff-row label{display:inline-flex!important;align-items:center!important;gap:5px!important;font-size:12.5px!important;margin:0!important}
html.dl-peach-staff #staffList .staff-row label input[type=checkbox]{width:16px!important;height:16px!important;min-height:0!important;margin:0!important}
/* Staff management cards: compact, tidy controls */
html.dl-peach-staff #staffList .staff-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;margin-top:10px}
html.dl-peach-staff #staffList .staff-row>input{grid-column:1/-1;min-height:40px!important;height:40px!important;padding:6px 12px!important;font-size:14px!important;border-radius:10px!important}
html.dl-peach-staff #staffList .staff-row>select{min-height:40px!important;height:40px!important;padding:6px 10px!important;font-size:13.5px!important;border-radius:10px!important}
html.dl-peach-staff #staffList .staff-row>label{display:flex!important;align-items:center;gap:6px;font-size:13px;color:var(--pe-muted);white-space:nowrap;margin:0!important}
html.dl-peach-staff #staffList .staff-row>label input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important}
html.dl-peach-staff #staffList .staff-row-buttons{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:7px}
html.dl-peach-staff #staffList .staff-row-buttons:has(> :nth-child(2):last-child){grid-template-columns:1fr 1fr}
html.dl-peach-staff #staffList .staff-row-buttons button{min-height:36px!important;height:36px!important;padding:0 6px!important;font-size:12.5px!important;border-radius:18px!important;white-space:nowrap;margin:0!important;width:100%}
html.dl-peach-staff #staffList .card{padding:14px!important}
html.dl-peach-staff #staffList .card h3{font-size:15.5px!important;margin:0!important}
html.dl-peach-staff #staffList .card-head small{font-size:12px!important}
html.dl-peach-staff #staffList .card-head .badge{font-size:11px!important;padding:3px 10px!important}
/* «نقل» on each transaction in the admin overview; the old distribution page is hidden */
html.dl-peach-staff #adminMenu [data-tab="assignments"]{display:none!important}
html.dl-peach-staff #overviewList .compact-transaction-summary{grid-template-columns:22px minmax(0,1fr) auto auto!important}
html.dl-peach-staff #overviewList .overview-move{grid-column:4;grid-row:1/3;align-self:center;border:1px solid var(--pe-line);background:#fff;color:var(--pe-accent);border-radius:14px;padding:4px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:30px}
html.dl-peach-staff .overview-move-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 2px 12px;border-bottom:1px solid #e8e8e8}
html.dl-peach-staff .overview-move-bar select{flex:1 1 150px;min-height:36px;border:1px solid var(--pe-line);border-radius:10px;background:#f1f4f8;font:inherit;font-size:13px;padding:4px 8px}
html.dl-peach-staff .overview-move-bar button{min-height:36px;border-radius:18px;padding:0 14px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
html.dl-peach-staff .overview-move-ok{background:var(--pe-accent);color:#fff;border:0}
html.dl-peach-staff .overview-move-cancel{background:#fff;color:var(--pe-muted);border:1px solid var(--pe-line)}
html.dl-peach-staff .overview-move-note{flex-basis:100%;font-size:12px;color:var(--pe-accent)}
html.dl-peach-staff .overview-move-note:empty{display:none}
html.dl-peach-staff #overviewList .overview-delete{color:#b42318;border-color:#f3c7c2}
html.dl-peach-staff #overviewList .overview-delete.armed{background:#b42318;color:#fff;border-color:#b42318}
html.dl-peach-staff .overview-delete-note{margin:0;padding:4px 2px 10px;color:#b42318;font-size:12px}
/* Support chat retired: customers talk to the employee inside each order. */
html.dl-peach-staff #staffSupportLink,#staffSupportLink{display:none!important}

/* Service catalog: heading outside, search above individual order-style cards. */
html.dl-peach-staff #staffServicesPanel{
 background:transparent!important;border:0!important;box-shadow:none!important;
 padding:0!important;overflow:visible!important;
}
html.dl-peach-staff #staffServicesPanel>.panel-head{
 background:transparent!important;border:0!important;padding:0 4px!important;
 margin:0 0 16px!important;align-items:center;
}
html.dl-peach-staff #staffServicesTitle{
 display:block;font-size:19px!important;font-weight:700!important;color:var(--pe-ink)!important;
}
html.dl-peach-staff #staffServicesPanel>.staff-services-search{
 margin:0 0 18px!important;padding:0!important;
}
html.dl-peach-staff #staffServicesPanel #staffServicesList{
 display:grid!important;gap:14px!important;background:transparent!important;border:0!important;padding:0!important;
}
html.dl-peach-staff #staffServicesPanel .staff-catalog-row{
 background:#fff!important;border:1px solid var(--pe-line)!important;border-radius:20px!important;
 padding:14px 18px 12px!important;margin:0!important;box-shadow:none!important;
}
html.dl-peach-staff #staffServicesPanel .staff-catalog-link{
 padding:8px 0 14px!important;min-height:74px!important;gap:12px!important;
}
html.dl-peach-staff #staffServicesPanel .staff-catalog-actions{
 border-top:1px solid var(--pe-line);padding:12px 0 0!important;
}
html.dl-peach-staff #staffServicesPanel .staff-catalog-delete{
 border-radius:15px!important;
}


/* Compact service catalog cards, retain layout and actions. */
html.dl-peach-staff #staffServicesPanel>.panel-head{margin-bottom:10px!important}
html.dl-peach-staff #staffServicesTitle{font-size:16px!important}
html.dl-peach-staff #staffServicesPanel>.staff-services-search{margin-bottom:12px!important}
html.dl-peach-staff #staffServicesSearch{min-height:40px!important;font-size:14px!important;padding:8px 13px!important}
html.dl-peach-staff #staffServicesPanel #staffServicesList{gap:9px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-row{padding:9px 12px!important;border-radius:16px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-link{min-height:54px!important;padding:5px 0 8px!important;gap:9px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-icon{flex-basis:23px!important;width:23px!important;height:27px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-icon svg{width:23px!important;height:27px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-copy{gap:1px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-copy strong{font-size:14px!important;line-height:1.45!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-copy small{font-size:11px!important;line-height:1.5!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-actions{padding-top:8px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-delete{min-height:31px!important;padding:4px 10px!important;font-size:11px!important;border-radius:13px!important}
html.dl-peach-staff #staffServicesCount{font-size:13px!important}

/* Catalog edit action beside delete */
html.dl-peach-staff #staffServicesPanel .staff-catalog-actions{display:flex!important;justify-content:flex-end!important;gap:9px!important;align-items:center!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-edit{min-height:31px;padding:4px 11px;border:1px solid var(--pe-line);border-radius:13px;background:#fff;color:var(--pe-accent);font:inherit;font-size:11px;font-weight:600;cursor:pointer}

/* Catalog heading: count next to title; plus action at opposite edge. */
html.dl-peach-staff #staffServicesPanel>.panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-heading{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
html.dl-peach-staff #staffServicesPanel #staffServicesCount{display:inline-grid!important;place-items:center!important;min-width:28px!important;height:28px!important;padding:0 7px!important;border-radius:50%!important;font-size:12px!important}
html.dl-peach-staff #staffServicesPanel .staff-catalog-add{width:39px!important;height:39px!important;flex:0 0 39px!important;border-radius:50%!important;background:#fff!important;border:1px solid var(--pe-line)!important;color:var(--pe-accent)!important;font:700 27px/1 system-ui!important;display:grid!important;place-items:center!important;cursor:pointer}
html.dl-peach-staff #staffServicesPanel .staff-catalog-add[hidden]{display:none!important}

/* Order management reuses the compact catalog layout. */
html.dl-peach-staff #staffEditorLink{display:none!important}
html.dl-peach-staff #staffOrdersManageLink:not([hidden]){display:flex!important;align-items:center;gap:11px}
html.dl-peach-staff #overviewPanel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html.dl-peach-staff #overviewPanel>.overview-actions:first-child{padding:0 5px 12px!important}
html.dl-peach-staff #overviewTitle{font-size:18px!important}
html.dl-peach-staff #overviewPanel .overview-search{display:block;margin:0 0 12px!important}
html.dl-peach-staff #overviewPanel .overview-search input{width:100%;min-height:40px;border:1px solid var(--pe-line);border-radius:15px;background:var(--pe-field);padding:8px 12px;font:inherit;font-size:13px}
html.dl-peach-staff #overviewPanel .overview-list-box{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html.dl-peach-staff #overviewPanel #overviewList{display:grid!important;gap:10px!important}
html.dl-peach-staff #overviewPanel #overviewList>.transaction-card{background:#fff!important;border:1px solid var(--pe-line)!important;border-radius:16px!important;padding:9px 12px!important;margin:0!important}
html.dl-peach-staff #overviewPanel .overview-list-head{padding:10px 3px!important}

/* Separate manager transactions page: no home dashboard widgets above it. */
html.dl-peach-staff body[data-view='overview'] .dash-hero,html.dl-peach-staff body[data-view='overview'] .stats{display:none!important}
html.dl-peach-staff body[data-view='overview'] #overviewPanel{margin-top:10px!important}

/* Dedicated orders management screen (not the home screen). */
html.dl-peach-staff body[data-view='overview'] .dash-hero, html.dl-peach-staff body[data-view='overview'] .stats{display:none!important}

/* Hide only the waiting and unpaid request sections on the home screen. */
/* 1.0.72: «متاحة الآن» shows on the home screen again (it was hidden). */

/* Only the overview summary box appears on the home dashboard. */
html.dl-peach-staff body:not(.orders-management-screen) #overviewPanel>.overview-actions,
html.dl-peach-staff body:not(.orders-management-screen) #overviewPanel>.overview-list-head,
html.dl-peach-staff body:not(.orders-management-screen) #overviewPanel>.overview-search,
html.dl-peach-staff body:not(.orders-management-screen) #overviewPanel>.overview-list-box{display:none!important}
html.dl-peach-staff body.orders-management-screen #overviewPanel>.overview-top{display:none!important}

/* Keep the order count immediately after the heading. */
html.dl-peach-staff #overviewPanel .overview-actions.overview-list-head{justify-content:flex-start!important;gap:9px!important}


/* Compact dedicated transactions screen; layout only. */
html.dl-peach-staff body.orders-management-screen .dash-page{
  padding-top:8px!important;
}
html.dl-peach-staff body.orders-management-screen .dash-page>.dash-hero,
html.dl-peach-staff body.orders-management-screen .dash-page>.stats{
  display:none!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel{
  margin-top:0!important;padding:0!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel>.overview-actions:first-child{
  margin:0 4px 3px!important;padding:0!important;min-height:0!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel .overview-actions.overview-list-head{
  margin:0 4px 8px!important;padding:0!important;min-height:0!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel .overview-search{
  margin:0 0 8px!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel #overviewList{
  gap:8px!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel #overviewList>.transaction-card{
  margin:0!important;padding:9px 10px!important;border-radius:13px!important;
}


/* Transactions page: adjacent headings, zero spacer panels. */
html.dl-peach-staff body.orders-management-screen #overviewPanel>.overview-heading-hidden{display:none!important}
html.dl-peach-staff body.orders-management-screen .dash-page{padding-top:0!important;margin-top:0!important}
html.dl-peach-staff body.orders-management-screen #overviewPanel{margin:0!important}
html.dl-peach-staff body.orders-management-screen #overviewPanel>.overview-actions.overview-list-head{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:8px!important;margin:0 2px 6px!important;padding:0!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel #overviewMyOrders{
 margin-inline-start:auto!important;white-space:nowrap!important;
}
html.dl-peach-staff body.orders-management-screen #overviewPanel>.overview-search{margin:0 0 6px!important}


/* Shared staff-page layout, November 2026. Presentation only. */
html.dl-peach-staff[data-staff-app] body:has(.dash-page){
  background:var(--pe-sheet)!important;
}
html.dl-peach-staff[data-staff-app] .dash-topbar{
  height:calc(126px + env(safe-area-inset-top,0px))!important;
  min-height:calc(126px + env(safe-area-inset-top,0px))!important;
  padding:calc(24px + env(safe-area-inset-top,0px)) 16px 22px!important;
  background:var(--pe-peach)!important;
  border:0!important;box-shadow:none!important;
}
html.dl-peach-staff[data-staff-app] .dash-page{
  background:var(--pe-sheet)!important;
  width:100%!important;max-width:980px!important;
  margin:0 auto!important;padding:12px 12px 44px!important;
  border-radius:0!important;
}
html.dl-peach-staff[data-staff-app] .dash-page>section.panel:not([hidden]),
html.dl-peach-staff[data-staff-app] .dash-page>.panel:not([hidden]){
  margin:0 0 12px!important;
}
html.dl-peach-staff[data-staff-app] .dash-page>.panel>.panel-head,
html.dl-peach-staff[data-staff-app] .dash-page>section.panel>.panel-head{
  margin-bottom:12px!important;
}
html.dl-peach-staff[data-staff-app] .dash-page>.panel>.panel-head h2,
html.dl-peach-staff[data-staff-app] .dash-page>section.panel>.panel-head h2{
  font-size:21px!important;line-height:1.45!important;
}
html.dl-peach-staff[data-staff-app] .dash-page .panel,
html.dl-peach-staff[data-staff-app] .dash-page .card{
  box-shadow:none!important;
}
html.dl-peach-staff[data-staff-app] body.orders-management-screen .dash-page{
  padding-top:4px!important;
}
@media(min-width:700px){
  html.dl-peach-staff[data-staff-app] .dash-page{padding-inline:20px!important}
}

/* Staff app, November 2026 (1.0.64): menu, greeting and bell sit right under the status bar. Presentation only. */
html.dl-peach-staff[data-staff-app] .dash-topbar{
  height:calc(72px + env(safe-area-inset-top,0px))!important;
  min-height:calc(72px + env(safe-area-inset-top,0px))!important;
  padding:calc(6px + env(safe-area-inset-top,0px)) 16px 10px!important;
  align-items:center!important;
}
html.dl-peach-staff[data-staff-app] body{padding-top:calc(72px + env(safe-area-inset-top,0px))!important}
html.dl-peach-staff[data-staff-app] .dash-topbar::before{width:240px!important;height:240px!important;top:-150px!important;left:-100px!important}
/* 1.0.65: no rubber-band bounce at the top, so the header and its circle stay put when the page is pulled
   (pull-to-refresh shows its own small spinner instead). */
/* 1.0.71: only on the page itself (not on body), so Android can still scroll the page down. */
html.dl-peach-staff[data-staff-app]{overscroll-behavior-y:none!important}
html.dl-peach-staff[data-staff-app] body{overscroll-behavior:auto!important}

/* 1.0.66: header a little taller (its bottom edge sits lower), and no empty white area under short pages. */
html.dl-peach-staff[data-staff-app] .dash-topbar{
  height:calc(92px + env(safe-area-inset-top,0px))!important;
  min-height:calc(92px + env(safe-area-inset-top,0px))!important;
  padding:calc(10px + env(safe-area-inset-top,0px)) 16px 12px!important;
}
html.dl-peach-staff[data-staff-app] body{padding-top:calc(92px + env(safe-area-inset-top,0px))!important}
html.dl-peach-staff[data-staff-app],html.dl-peach-staff[data-staff-app] body{background:var(--pe-sheet)!important;min-height:100%}
html.dl-peach-staff[data-staff-app] .dash-page{min-height:calc(100dvh - 92px - env(safe-area-inset-top,0px))!important}

/* 1.0.67: the big white box behind each page section is gone — the section sits on the page background;
   the cards, fields and lists inside it keep their own white/soft backgrounds. */
html.dl-peach-staff[data-staff-app] .dash-page>section.panel,
html.dl-peach-staff[data-staff-app] .dash-page>.panel{
  background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;
  padding-inline:4px!important;
}
html.dl-peach-staff[data-staff-app] #overviewPanel .overview-box{background:transparent!important;border:0!important;box-shadow:none!important;padding-inline:0!important}

/* 1.0.72: staff home — tasks first. */
html.dl-peach-staff body:not([data-view='queue']) #staffHome,html.dl-peach-staff body:not([data-view='queue']) #staffHomeBottom,
html.dl-peach-staff body.orders-management-screen #staffHome,html.dl-peach-staff body.orders-management-screen #staffHomeBottom{display:none!important}
html.dl-peach-staff .staff-home{display:grid;gap:12px;margin:0 0 14px}
html.dl-peach-staff .staff-home[hidden]{display:none!important}
html.dl-peach-staff .sh-updated{margin:2px 0 0!important;font-size:11.5px!important;color:var(--pe-faint)!important;font-weight:500!important}
html.dl-peach-staff .dash-hero #refreshAll{min-height:34px!important;padding:5px 12px!important;font-size:12.5px!important}
html.dl-peach-staff .sh-banner{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 14px;border-radius:16px;background:var(--pe-peach);border:1px solid var(--pe-line)}
html.dl-peach-staff .sh-banner[hidden]{display:none!important}
html.dl-peach-staff .sh-banner strong{display:block;font-size:14px;color:var(--pe-ink)}
html.dl-peach-staff .sh-banner small{display:block;font-size:12px;line-height:1.6;color:var(--pe-muted)}
html.dl-peach-staff .sh-banner button{flex:0 0 auto;min-height:38px!important;padding:6px 14px!important;font-size:13px!important;border-radius:999px!important}
html.dl-peach-staff .sh-availability{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--pe-line)}
html.dl-peach-staff .sh-availability[hidden]{display:none!important}
html.dl-peach-staff .sh-availability strong{display:block;font-size:14px;color:var(--pe-accent)}
html.dl-peach-staff .sh-availability.is-off strong{color:#b3261e}
html.dl-peach-staff .sh-availability small{display:block;font-size:12px;line-height:1.6;color:var(--pe-muted)}
html.dl-peach-staff .sh-switch{position:relative;flex:0 0 52px;width:52px!important;height:30px!important;min-height:30px!important;padding:0!important;border:0!important;border-radius:999px!important;background:var(--pe-accent)!important;box-shadow:none!important}
html.dl-peach-staff .sh-switch span{position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:inset-inline-start .18s ease}
html.dl-peach-staff .sh-switch.is-off{background:#c9ced6!important}
html.dl-peach-staff .sh-switch.is-off span{inset-inline-start:25px}
html[dir=rtl].dl-peach-staff .sh-switch span{inset-inline-start:25px}
html[dir=rtl].dl-peach-staff .sh-switch.is-off span{inset-inline-start:3px}
html.dl-peach-staff .sh-block{padding:4px 2px}
html.dl-peach-staff .sh-head{display:flex;align-items:center;gap:9px;margin:0 2px 8px}
html.dl-peach-staff .sh-head h2{margin:0!important;font-size:16px!important;font-weight:700!important;color:var(--pe-ink)!important}
html.dl-peach-staff .sh-list{display:grid;gap:8px}
html.dl-peach-staff .sh-list .empty{padding:14px!important;border-radius:14px!important;background:#fff!important;border:1px dashed var(--pe-field-line)!important;color:var(--pe-muted)!important;font-size:13px!important;text-align:center}
html.dl-peach-staff .sh-item{display:flex!important;align-items:center;gap:10px;width:100%;min-height:58px!important;padding:10px 12px!important;border-radius:14px!important;background:#fff!important;border:1px solid var(--pe-line)!important;border-inline-start:4px solid var(--pe-accent)!important;color:var(--pe-ink)!important;text-align:start;box-shadow:none!important;font:inherit}
html.dl-peach-staff .sh-item.is-hot{border-inline-start-color:#e0802e!important}
html.dl-peach-staff .sh-item.is-late{border-inline-start-color:#b3261e!important}
html.dl-peach-staff .sh-item.is-wait{border-inline-start-color:#9aa3ad!important}
html.dl-peach-staff .sh-item-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html.dl-peach-staff .sh-item-copy strong{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.dl-peach-staff .sh-item-copy small{font-size:12.5px;color:var(--pe-muted);line-height:1.5}
html.dl-peach-staff .sh-item.is-hot .sh-item-copy small{color:#b8601c}
html.dl-peach-staff .sh-item.is-late .sh-item-copy small{color:#b3261e}
html.dl-peach-staff .sh-tag{flex:0 0 auto;font-size:11px;color:var(--pe-faint);white-space:nowrap}
html.dl-peach-staff .sh-arrow{flex:0 0 auto;font-size:20px;color:var(--pe-faint);line-height:1}
html.dl-peach-staff .sh-perf-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html.dl-peach-staff .sh-perf-grid>div{padding:14px;border-radius:14px;background:#fff;border:1px solid var(--pe-line);text-align:center}
html.dl-peach-staff .sh-perf-grid strong{display:block;font-size:22px;color:var(--pe-accent);font-weight:700}
html.dl-peach-staff .sh-perf-grid small{display:block;font-size:12px;color:var(--pe-muted);line-height:1.5}
html.dl-peach-staff .sh-remind-note{display:block;font-size:12px;color:var(--pe-muted);margin-top:4px}
html.dl-peach-staff #unpaidList .actions{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
html.dl-peach-staff #unpaidList .actions button{width:auto!important;height:auto!important;min-height:40px!important;padding:8px 16px!important;border-radius:999px!important}

/* 1.0.73: the four boxes work as tabs — only the chosen box's section shows under them. */
html.dl-peach-staff body:not([data-view='queue']):not([data-view='mine']) #staffHome{display:none!important}
html.dl-peach-staff body[data-view='mine'] #staffHome{display:grid!important}
html.dl-peach-staff body[data-view='mine'] #staffHome[hidden]{display:none!important}
html.dl-peach-staff #staffHomeBottom{display:none!important}
html.dl-peach-staff body[data-view='mine'][data-mine-view='completed'] #staffHomeBottom:not([hidden]){display:grid!important}
html.dl-peach-staff body[data-view='queue'][data-home-tab='unpaid'] #queuePanel>.panel-head,
html.dl-peach-staff body[data-view='queue'][data-home-tab='unpaid'] #queueMessage,
html.dl-peach-staff body[data-view='queue'][data-home-tab='unpaid'] #queueList{display:none!important}
html.dl-peach-staff body[data-view='queue']:not([data-home-tab='unpaid']) #unpaidSection{display:none!important}
html.dl-peach-staff .stats .stat-navigation.is-current{border:2px solid #1d4f80!important;box-shadow:0 0 0 3px rgba(42,114,181,.14)!important}
html.dl-peach-staff .stats .stat-navigation.is-current strong,html.dl-peach-staff .stats .stat-navigation.is-current small{color:#1d4f80!important}
html.dl-peach-staff .stats:not(:has(.stat-navigation:not([hidden]))){display:none!important}
html.dl-peach-staff #overviewMyOrders{display:none!important}
html.dl-peach-staff #staffHome{margin-bottom:12px}

/* 2026-11-04: staff transaction chat — same layout as the customer app's chat card (blue theme). */
.dl-chat-wrap{margin:14px 0}
.order-conversation.dl-chat{background:#fff!important;border:1px solid #d6e3ef!important;border-radius:22px!important;overflow:hidden;padding:0!important;box-shadow:none!important}
.dl-chat .dl-chat-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#e6f0f9;border-bottom:1px solid #d6e3ef}
.dl-chat .dl-chat-avatar{width:44px;height:44px;border-radius:50%;background:#cfe0f1;color:#2a72b5;display:grid;place-items:center;flex:0 0 44px}
.dl-chat .dl-chat-avatar svg{width:24px;height:24px}
.dl-chat .dl-chat-titles{display:flex;flex-direction:column;gap:2px}
.dl-chat .dl-chat-titles strong{font-size:17px;color:#1e1e1c}
.dl-chat .dl-chat-titles small{font-size:13px;color:#6b7785}
.dl-chat .order-message-history{background:#edf2f7 radial-gradient(#d5dee8 1px,transparent 1px) 0 0/16px 16px;min-height:150px;max-height:380px;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:8px;margin:0!important;border:0!important;border-radius:0!important}
.dl-chat .dl-chat-empty{margin:0;background:#fff8d6;color:#5b5440;border-radius:12px;padding:12px 14px;text-align:center;font-size:14px;line-height:1.6}
.dl-chat .order-message{max-width:82%;align-self:flex-end;background:#fff;border:0!important;border-radius:16px 16px 16px 4px!important;padding:8px 12px!important;box-shadow:0 1px 1px rgba(20,40,70,.08);margin:0!important}
.dl-chat .order-message.mine{align-self:flex-start;background:#2a72b5!important;color:#fff;border-radius:16px 16px 4px 16px!important}
.dl-chat .order-message strong{font-size:11px;opacity:.75;display:block}
.dl-chat .order-message p{margin:2px 0;font-size:15px;line-height:1.5;white-space:pre-wrap;color:inherit}
.dl-chat .order-message small{display:block;font-size:10px;opacity:.7;margin-top:2px}
.dl-chat .order-message.mine .document-download{color:#fff;border-color:rgba(255,255,255,.6)}
.dl-chat .order-message-type{display:inline-block;font-size:11px;background:#fff1cc;color:#7a5a00;border-radius:8px;padding:1px 6px;margin:2px 0}
.dl-chat .dl-chat-composer{display:flex!important;align-items:flex-end;gap:10px;padding:10px 12px;margin:0!important;background:#f4f7fb;border-top:1px solid #e1e9f1}
.dl-chat .dl-chat-field{flex:1;margin:0!important}
.dl-chat .dl-chat-field textarea{width:100%;min-height:46px;max-height:120px;resize:none;border:0!important;border-radius:23px!important;background:#e9eff6!important;padding:12px 16px!important;font:inherit;font-size:16px;box-sizing:border-box}
.dl-chat .dl-chat-send{width:50px;height:50px;min-width:50px;border-radius:50%!important;background:#2a72b5!important;color:#fff!important;border:0!important;padding:0!important;display:grid;place-items:center}
.dl-chat .dl-chat-send svg{width:22px;height:22px}
.dl-chat .dl-chat-tools{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 12px;background:#f4f7fb}
.dl-chat .dl-chat-chip{display:inline-flex;align-items:center;gap:4px;font-size:13px!important;font-weight:600;color:#2a72b5!important;background:#fff!important;border:1px solid #c9dbec!important;border-radius:999px!important;padding:7px 12px!important;min-height:0!important;width:auto!important;cursor:pointer;list-style:none}
.dl-chat .dl-chat-attach{width:100%}
.dl-chat .dl-chat-attach>summary::-webkit-details-marker{display:none}
.dl-chat .dl-chat-attach[open]>summary{background:#e6f0f9!important}
.dl-chat .dl-chat-attach .result-upload{margin-top:10px;padding:12px;background:#fff;border:1px solid #d6e3ef;border-radius:14px}
.dl-chat>.message{margin:0;padding:0 14px 10px;background:#f4f7fb;font-size:13px}
.dl-chat>.message:empty{display:none}

/* 2026-11-04 b: composer fix — field fills the row, round send button like the customer app. */
.order-conversation.dl-chat form.dl-chat-composer{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;align-items:center!important;gap:10px!important;width:auto!important}
.order-conversation.dl-chat form.dl-chat-composer>label.dl-chat-field{display:block!important;width:100%!important;max-width:none!important;flex:none!important;grid-column:1!important;margin:0!important;padding:0!important;font-size:0}
.order-conversation.dl-chat form.dl-chat-composer textarea{display:block!important;width:100%!important;height:52px;min-height:52px!important;line-height:28px;font-size:16px!important;white-space:nowrap;overflow:hidden}
.order-conversation.dl-chat form.dl-chat-composer>button.dl-chat-send{grid-column:2!important;width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;flex:none!important;margin:0!important;border-radius:50%!important}
.order-conversation.dl-chat .dl-chat-head{padding:12px 14px!important;gap:12px}
.order-conversation.dl-chat .dl-chat-titles strong{font-size:18px!important;line-height:1.3}
.order-conversation.dl-chat .dl-chat-titles small{font-size:13px!important;color:#6b7785!important;margin:0!important}
.order-conversation.dl-chat .order-message-history{min-height:120px}
.order-conversation.dl-chat .dl-chat-tools{flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start;gap:8px!important;padding:2px 12px 12px!important}
.order-conversation.dl-chat .dl-chat-tools>.dl-chat-chip,.order-conversation.dl-chat .dl-chat-attach>summary{display:inline-flex!important;width:auto!important;font-size:12.5px!important;padding:6px 12px!important;min-height:0!important;height:auto!important}
.order-conversation.dl-chat .dl-chat-attach{width:auto}
.order-conversation.dl-chat .dl-chat-attach[open]{width:100%}
.order-conversation.dl-chat .order-message.mine,.order-conversation.dl-chat .order-message.mine p,.order-conversation.dl-chat .order-message.mine strong,.order-conversation.dl-chat .order-message.mine small{color:#fff!important}
.order-conversation.dl-chat .order-message:not(.mine) p{color:#1e1e1c!important}
.order-conversation.dl-chat .order-message{min-height:0!important;height:auto!important}

/* 2026-11-04 c: «+» inside the field; actions menu instead of the two chips. */
.order-conversation.dl-chat form.dl-chat-composer>label.dl-chat-field{position:relative!important}
.order-conversation.dl-chat form.dl-chat-composer textarea{padding-inline-start:52px!important}
.order-conversation.dl-chat .dl-chat-plus{position:absolute!important;inset-inline-start:8px;top:50%;transform:translateY(-50%);width:36px!important;height:36px!important;min-width:36px!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:50%!important;border:0!important;background:#fff!important;color:#2a72b5!important;font-size:26px!important;line-height:36px!important;font-weight:400!important;display:grid!important;place-items:center;box-shadow:0 1px 2px rgba(20,40,70,.12);transition:transform .2s}
.order-conversation.dl-chat .dl-chat-plus.is-open{transform:translateY(-50%) rotate(45deg)}
.order-conversation.dl-chat .dl-chat-menu{display:flex;flex-direction:column;gap:0;margin:0 12px 12px;background:#fff;border:1px solid #d6e3ef;border-radius:16px;overflow:hidden}
.order-conversation.dl-chat .dl-chat-menu[hidden],.order-conversation.dl-chat .dl-chat-upload[hidden]{display:none!important}
.order-conversation.dl-chat .dl-chat-menu-item{display:block!important;width:100%!important;text-align:start!important;background:#fff!important;color:#1e1e1c!important;border:0!important;border-bottom:1px solid #e6edf4!important;border-radius:0!important;padding:14px 16px!important;font-size:15px!important;font-weight:500!important;min-height:0!important;box-shadow:none!important}
.order-conversation.dl-chat .dl-chat-menu-item:last-child{border-bottom:0!important}
.order-conversation.dl-chat .dl-chat-upload{margin:0 12px 12px;padding:12px;background:#fff;border:1px solid #d6e3ef;border-radius:14px}
.order-conversation.dl-chat .dl-chat-tools{display:none!important}
.order-conversation.dl-chat .dl-chat-plus{inset-inline-start:auto!important;left:auto!important;right:8px!important}
.order-conversation.dl-chat form.dl-chat-composer textarea{padding-inline-start:16px!important;padding-right:52px!important;padding-left:16px!important;direction:rtl;text-align:right}
.order-conversation.dl-chat .dl-chat-ask label,.order-conversation.dl-chat .dl-chat-upload label{display:block;font-size:13px;color:#4a5866;margin-bottom:8px}
.order-conversation.dl-chat .dl-chat-ask input{width:100%;box-sizing:border-box;margin-top:6px}
.order-conversation.dl-chat .dl-chat-ask .primary{width:100%;margin-top:4px}
/* 2026-11-04 d: WhatsApp-style file preview sheet. */
.dl-file-sheet{position:fixed;inset:0;z-index:2000;background:rgba(10,20,35,.55);display:flex;align-items:flex-end;justify-content:center}
.dl-file-card{width:100%;max-width:560px;background:#fff;border-radius:22px 22px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;direction:rtl}
.dl-file-preview{display:flex;flex-direction:column;align-items:center;gap:8px}
.dl-file-preview img{max-width:100%;max-height:45vh;border-radius:14px;object-fit:contain;background:#f1f4f8}
.dl-file-icon{width:84px;height:100px;border-radius:12px;background:#e6f0f9;color:#2a72b5;display:grid;place-items:center;font-weight:700;font-size:20px}
.dl-file-name{font-size:14px;color:#4a5866;word-break:break-all;text-align:center}
.dl-file-caption{width:100%;box-sizing:border-box;border:0;border-radius:22px;background:#e9eff6;padding:12px 16px;font:inherit;font-size:16px;resize:none;direction:rtl}
.dl-file-actions{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.dl-file-cancel{background:#fff!important;color:#4a5866!important;border:1px solid #d6e3ef!important;border-radius:999px!important;padding:13px!important;font-weight:600}
.dl-file-send{background:#2a72b5!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:13px!important;font-weight:700}
/* 2026-11-04 e: file buttons inside bubbles stay visible and sized to the bubble. */
.order-conversation.dl-chat .order-message .document-download,.order-conversation.dl-chat .order-message.mine .document-download{display:inline-flex!important;align-items:center;gap:6px;width:auto!important;max-width:100%!important;min-height:0!important;margin:6px 0 2px!important;padding:8px 12px!important;background:#fff!important;color:#1f4f85!important;border:1px solid #c9dbec!important;border-radius:12px!important;font-size:13px!important;font-weight:600;white-space:normal;word-break:break-all;text-align:start}
.order-conversation.dl-chat .order-message{width:fit-content!important;max-width:82%!important}
/* 2026-11-04 f: bubbles never squash/overlap (flex children kept at full height), photo thumbnails, file viewer. */
.order-conversation.dl-chat .order-message-history>*{flex:0 0 auto!important;min-height:min-content!important;height:auto!important;max-height:none!important;overflow:visible!important;position:relative!important}
.order-conversation.dl-chat .order-message{display:block!important}
.order-conversation.dl-chat .order-message>*{position:static!important;float:none!important}
.order-conversation.dl-chat .order-message-type{display:inline-block!important;margin:4px 0!important}
.order-conversation.dl-chat .dl-thumb{display:block!important;padding:0!important;margin:6px 0 2px!important;border:0!important;background:#dfe7f0!important;border-radius:10px!important;overflow:hidden;width:220px;max-width:100%;min-height:110px;box-shadow:none!important}
.order-conversation.dl-chat .dl-thumb img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover}
.dl-viewer{position:fixed;inset:0;z-index:3000;background:#000;display:flex;flex-direction:column}
.dl-viewer-bar{display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 8px) 12px 8px;background:rgba(0,0,0,.85);color:#fff;direction:rtl}
.dl-viewer-close{width:40px!important;height:40px!important;min-height:0!important;border-radius:50%!important;border:0!important;background:rgba(255,255,255,.15)!important;color:#fff!important;font-size:26px!important;line-height:40px!important;padding:0!important}
.dl-viewer-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.dl-viewer-save{border:0!important;border-radius:999px!important;background:#2a72b5!important;color:#fff!important;padding:9px 16px!important;font-size:14px!important;font-weight:600;min-height:0!important;width:auto!important}
.dl-viewer-body{flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;padding-bottom:env(safe-area-inset-bottom)}
.dl-viewer-body img{max-width:100%;max-height:100%;object-fit:contain}
.dl-viewer-body iframe{width:100%;height:100%;border:0;background:#fff}
.dl-viewer-wait{color:#ddd;font-size:15px}
