/* قشرة الطريف للصفحات المنقولة: تعيد تلبيس مكوّنات Bootstrap والأصناف القديمة (.wrap و.cardx و.kpi)
   بلا مساس بالسلوك. تعمل فقط حين يحمل <html> الصنف hw-skin. */
html.hw-skin body{background:var(--hw-ground);color:var(--hw-ink);font:400 13.5px/1.6 var(--hw-text);-webkit-font-smoothing:antialiased}
html.hw-skin h1,html.hw-skin h2,html.hw-skin h3,html.hw-skin h4,html.hw-skin h5{font-family:var(--hw-disp);font-weight:700}
html.hw-skin .mono{font-family:var(--hw-disp);font-variant-numeric:tabular-nums}
html.hw-skin .muted,html.hw-skin .hint,html.hw-skin .text-muted{color:var(--hw-mute)!important;font-weight:400}

/* الحاويات */
html.hw-skin.hw-skin body>.wrap,html.hw-skin.hw-skin body>.page,html.hw-skin.hw-skin body>.p-page{padding:0 26px 28px;max-width:none;min-height:100vh}
html.hw-skin.hw-skin body>.p-page{padding-bottom:120px}
html.hw-skin.hw-skin body>.dashboard-content{padding:0}
html.hw-skin .dashboard-content>.container-fluid,html.hw-skin .dashboard-content>.container-main{padding:0 26px 28px;max-width:none}
@media (min-width:993px){
  html.hw-skin.hw-skin body>.wrap,html.hw-skin.hw-skin body>.page,html.hw-skin.hw-skin body>.p-page,html.hw-skin.hw-skin body>.dashboard-content{margin-right:260px!important}
}
@media (max-width:992px){
  html.hw-skin.hw-skin body>.wrap,html.hw-skin.hw-skin body>.page,html.hw-skin.hw-skin body>.p-page,html.hw-skin.hw-skin body>.dashboard-content{margin-right:0!important}
  html.hw-skin.hw-skin body>.wrap,html.hw-skin.hw-skin body>.page,html.hw-skin.hw-skin body>.p-page,html.hw-skin .dashboard-content>.container-fluid,html.hw-skin .dashboard-content>.container-main{padding:0 16px 24px}
}

/* البطاقات */
html.hw-skin .cardx,html.hw-skin .card{background:#fff;border:1px solid var(--hw-line);border-radius:16px;box-shadow:0 1px 0 rgba(23,23,58,.03)}
html.hw-skin .cardx-h,html.hw-skin .card-header{background:none;padding:13px 18px;border-bottom:1px solid var(--hw-line);font:700 15px/1.35 var(--hw-disp);color:var(--hw-ink)}
html.hw-skin .cardx-b,html.hw-skin .card-body{padding:16px 18px}

html.hw-skin .cardx>.head{background:var(--hw-night);color:var(--hw-on-night);padding:13px 18px}
html.hw-skin .cardx>.head h2,html.hw-skin .cardx>.head h3{color:#fff;font-size:15.5px;margin:0}
html.hw-skin .cardx-t{font:700 15px/1.35 var(--hw-disp);color:var(--hw-ink)}
html.hw-skin .page>.card h2{font-size:15.5px;color:var(--hw-ink)}

/* أصناف قديمة متكررة */
html.hw-skin .stat{border-radius:14px;box-shadow:none;background:#fff;border:1px solid var(--hw-line)}
html.hw-skin .stat .k{font-weight:500;font-size:12.5px;color:var(--hw-mute)}
html.hw-skin .stat .v{font:700 24px/1.3 var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-ink)}
html.hw-skin .alertx{border:0;border-radius:12px;font-weight:500}
html.hw-skin .alertx.ok{background:var(--hw-ok-b);color:var(--hw-ok)}
html.hw-skin .alertx.er{background:var(--hw-bad-b);color:var(--hw-bad)}
html.hw-skin .badgex{border-radius:7px;font-weight:600;font-size:12px;padding:2px 9px;background:var(--hw-tint);color:var(--hw-mute)}
html.hw-skin .badgex.draft{background:var(--hw-tint);color:var(--hw-mute)}
html.hw-skin .badgex.approved,html.hw-skin .badgex.reviewed{background:var(--hw-mid-b);color:var(--hw-mid)}
html.hw-skin .badgex.issued{background:var(--hw-ok-b);color:var(--hw-ok)}
html.hw-skin .btnx.danger{background:#fff;border:1px solid #efbcb8;color:var(--hw-bad)}
html.hw-skin .danger-box{background:var(--hw-bad-b);border:0;border-radius:14px}
html.hw-skin .danger-box h3{color:var(--hw-bad);font-size:15.5px}
html.hw-skin .danger-box p{color:var(--hw-ink)}
html.hw-skin .cardx table:not(.table) thead th{background:var(--hw-night);color:#e6e6f6;font:500 12.5px/1.4 var(--hw-text);border:0}
html.hw-skin .kpiIcon{background:var(--hw-tint)!important;color:var(--hw-indigo);border:0!important;box-shadow:none!important;display:grid;place-items:center}

/* بطاقات الأرقام */
html.hw-skin .kpi,html.hw-skin .kpiCard{background:#fff;border:1px solid var(--hw-line);border-radius:14px;box-shadow:none;padding:13px 16px;min-height:0;text-align:right}
html.hw-skin .kpi::before,html.hw-skin .kpi:before,html.hw-skin .kpiCard::before{display:none}
html.hw-skin .kpi-grid{gap:12px}
html.hw-skin .kpiTitle,html.hw-skin .k-title{font:500 12.5px/1.4 var(--hw-text);color:var(--hw-mute);gap:8px}
html.hw-skin .kpiValue,html.hw-skin .k-num{font:700 24px/1.3 var(--hw-disp);font-variant-numeric:tabular-nums;margin-top:3px;text-align:right;color:var(--hw-ink)}
html.hw-skin .kpi .k-sum{justify-content:flex-start;margin-top:4px}
html.hw-skin .kpi .k-icon{width:28px;height:28px;border-radius:9px;font-size:14px;background:var(--hw-tint)!important;color:var(--hw-indigo)!important}
html.hw-skin .pill{border:0;border-radius:7px;padding:2px 9px;background:var(--hw-tint);color:var(--hw-mute);font-weight:600;font-size:12px;box-shadow:none}
html.hw-skin .pill.green{background:var(--hw-ok-b);color:var(--hw-ok)}
html.hw-skin .pill.amber{background:var(--hw-mid-b);color:var(--hw-mid)}
html.hw-skin .pill.blue{background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin .pill.red{background:var(--hw-bad-b);color:var(--hw-bad)}

/* الأزرار */
html.hw-skin .btn,html.hw-skin .btnx{border-radius:10px!important;font-weight:600;font-size:13px;box-shadow:none;transition:background .12s,color .12s,border-color .12s}
html.hw-skin .btn:not(.btn-sm):not(.btn-lg):not(.btn-close){min-height:38px;padding:6px 14px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
html.hw-skin .btn-sm{font-size:12.5px;border-radius:8px!important;padding:4px 10px}
html.hw-skin .btn-primary,html.hw-skin .btnx-primary,html.hw-skin .btnx.primary,html.hw-skin .btn.primary{background:var(--hw-sun);border:1px solid var(--hw-sun);color:var(--hw-sun-ink)}
html.hw-skin .btn-primary:hover,html.hw-skin .btn-primary:focus,html.hw-skin .btnx-primary:hover,html.hw-skin .btnx.primary:hover,html.hw-skin .btn.primary:hover{background:var(--hw-sun2);border-color:var(--hw-sun2);color:var(--hw-sun-ink)}
html.hw-skin .btn-sm.btn-primary,html.hw-skin .btn-dark,html.hw-skin .btnx.dark,html.hw-skin .btn.dark{background:var(--hw-night);border:1px solid var(--hw-night);color:#fff}
html.hw-skin .btn-sm.btn-primary:hover,html.hw-skin .btn-dark:hover,html.hw-skin .btnx.dark:hover,html.hw-skin .btn.dark:hover{background:var(--hw-indigo);border-color:var(--hw-indigo);color:#fff}
html.hw-skin .btn-light,html.hw-skin .btnx-light,html.hw-skin .btn-secondary,html.hw-skin .btn-outline-secondary,html.hw-skin .btn-outline-dark,html.hw-skin .btn-outline-primary,html.hw-skin .btnx.secondary,html.hw-skin .btn.secondary{background:#fff;border:1px solid #c9c8db;color:var(--hw-ink)}
html.hw-skin .btn-light:hover,html.hw-skin .btnx-light:hover,html.hw-skin .btn-secondary:hover,html.hw-skin .btn-outline-secondary:hover,html.hw-skin .btn-outline-dark:hover,html.hw-skin .btn-outline-primary:hover,html.hw-skin .btnx.secondary:hover,html.hw-skin .btn.secondary:hover{background:var(--hw-tint);border-color:#c9c8db;color:var(--hw-ink)}
html.hw-skin .btn-success{background:var(--hw-ok);border-color:var(--hw-ok);color:#fff}
html.hw-skin .btn-outline-success{background:#fff;border:1px solid #a9d9c2;color:var(--hw-ok)}
html.hw-skin .btn-outline-success:hover{background:var(--hw-ok-b);color:var(--hw-ok);border-color:#a9d9c2}
html.hw-skin .btn-danger{background:var(--hw-bad);border-color:var(--hw-bad);color:#fff}
html.hw-skin .btn-outline-danger{background:#fff;border:1px solid #efbcb8;color:var(--hw-bad)}
html.hw-skin .btn-outline-danger:hover{background:var(--hw-bad-b);color:var(--hw-bad);border-color:#efbcb8}
html.hw-skin .btn-warning{background:var(--hw-mid-b);border-color:#eed29a;color:var(--hw-mid)}
html.hw-skin .btn-info,html.hw-skin .btn-outline-info{background:var(--hw-tint);border:1px solid var(--hw-line);color:var(--hw-indigo)}

/* الشارات والتنبيهات */
html.hw-skin .badge{border-radius:7px;font-weight:600;font-size:12px;padding:3px 9px}
html.hw-skin .badge.bg-success,html.hw-skin .badge.text-bg-success{background:var(--hw-ok-b)!important;color:var(--hw-ok)!important}
html.hw-skin .badge.bg-warning,html.hw-skin .badge.text-bg-warning{background:var(--hw-mid-b)!important;color:var(--hw-mid)!important}
html.hw-skin .badge.bg-danger,html.hw-skin .badge.text-bg-danger{background:var(--hw-bad-b)!important;color:var(--hw-bad)!important}
html.hw-skin .badge.bg-secondary,html.hw-skin .badge.text-bg-secondary,html.hw-skin .badge.bg-light,html.hw-skin .badge.text-bg-light,html.hw-skin .badge.bg-info,html.hw-skin .badge.text-bg-info,html.hw-skin .badge.bg-primary,html.hw-skin .badge.text-bg-primary{background:var(--hw-tint)!important;color:var(--hw-indigo)!important}
html.hw-skin .badge.bg-dark,html.hw-skin .badge.text-bg-dark{background:var(--hw-night)!important;color:#fff!important}
html.hw-skin .alert{border-radius:12px!important;border:0;font-size:13.5px;padding:10px 14px}
html.hw-skin .alert-success{background:var(--hw-ok-b);color:var(--hw-ok)}
html.hw-skin .alert-warning{background:var(--hw-mid-b);color:var(--hw-mid)}
html.hw-skin .alert-danger{background:var(--hw-bad-b);color:var(--hw-bad)}
html.hw-skin .alert-info,html.hw-skin .alert-primary,html.hw-skin .alert-secondary{background:var(--hw-tint);color:var(--hw-indigo)}

/* الجداول */
html.hw-skin .table{--bs-table-striped-bg:#faf9fd;--bs-table-hover-bg:#f6f5fb;--bs-table-border-color:var(--hw-line);font-size:13.5px;margin-bottom:0}
html.hw-skin .table>thead>tr>th{background:var(--hw-night)!important;color:#e6e6f6!important;font:500 12.5px/1.4 var(--hw-text);border:0;padding:10px 12px;white-space:nowrap;vertical-align:middle}
html.hw-skin .table>tbody>tr>td{padding:9px 12px;vertical-align:middle;border-color:var(--hw-line)}

/* الحقول */
html.hw-skin .form-label,html.hw-skin label.fw-bold{font-weight:500!important;font-size:12.5px;color:var(--hw-mute);margin-bottom:4px}
html.hw-skin .form-control,html.hw-skin .form-select,html.hw-skin .input-round,html.hw-skin .ts-wrapper .ts-control{border:1px solid #d8d7e5;border-radius:10px!important;font-size:13.5px;box-shadow:none;color:var(--hw-ink);background-color:#fff}
html.hw-skin .form-control:not(textarea),html.hw-skin .form-select,html.hw-skin .input-round:not(textarea){min-height:38px;padding-block:6px}
html.hw-skin .ts-wrapper .ts-control{min-height:38px;padding:7px 11px}
html.hw-skin .form-control:focus,html.hw-skin .form-select:focus,html.hw-skin .input-round:focus,html.hw-skin .ts-wrapper.focus .ts-control{border-color:var(--hw-sun);box-shadow:0 0 0 3px rgba(245,168,58,.2)!important;outline:0}
html.hw-skin .form-check-input:checked{background-color:var(--hw-indigo);border-color:var(--hw-indigo)}

/* النوافذ: فوق القائمة الجانبية */
html.hw-skin .modal{z-index:10050}
html.hw-skin .modal-backdrop{z-index:10040}
html.hw-skin .modal-content{border:0;border-radius:18px;overflow:hidden}
html.hw-skin .modal-header{background:var(--hw-night);color:#fff;border:0}
html.hw-skin .modal-header .modal-title,html.hw-skin .modal-header h5{color:#fff;font:700 16px/1.35 var(--hw-disp)}
html.hw-skin .modal-header .btn-close{filter:invert(1) grayscale(1) brightness(2);opacity:.8}

@media print{
  html.hw-skin .hw-bar{background:none;color:#000;padding:0 0 8px;min-height:0;margin:0}
  html.hw-skin .hw-bar::before,html.hw-skin .hw-bar .hw-cren,html.hw-skin .hw-bar-a,html.hw-skin .hw-menu-fab{display:none}
  html.hw-skin .hw-bar-t,html.hw-skin .hw-bar-s{color:#000}
  html.hw-skin.hw-skin body>*{margin-right:0!important}
}

/* عناصر صغيرة بلونها القديم */
html.hw-skin .att-info{background:var(--hw-tint);border-color:var(--hw-line);color:var(--hw-indigo)}
html.hw-skin .attendance-tab-btn.is-active{background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .mode-chip{background:var(--hw-tint);border-color:var(--hw-line);color:var(--hw-indigo)}
html.hw-skin .code-pill{background:var(--hw-tint);border-color:var(--hw-line);color:var(--hw-indigo)}
html.hw-skin #mudarPjaxBar{background:var(--hw-sun,#f5a83a)!important}
html.hw-skin .mode-switch .form-check input:checked + .mode-chip{background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .hw-menu-fab{z-index:1100}

/* ═══ دفعة الحضور ═══ */
/* حاويات الصفحات التي ترث القالب */
html.hw-skin.hw-skin .dashboard-content>.wrap,html.hw-skin.hw-skin .dashboard-content>.me,html.hw-skin.hw-skin .dashboard-content>.st,html.hw-skin.hw-skin .dashboard-content>.nsr-wrap{margin-right:0;margin-left:0;padding:0 26px 28px;max-width:none;width:auto}
html.hw-skin.hw-skin .dashboard-content>.shift-workspace{margin-top:0!important}
@media (max-width:992px){
  html.hw-skin.hw-skin .dashboard-content>.wrap,html.hw-skin.hw-skin .dashboard-content>.me,html.hw-skin.hw-skin .dashboard-content>.st,html.hw-skin.hw-skin .dashboard-content>.nsr-wrap{padding:0 16px 24px}
}

/* رموز صفحات «تصميم 4» */
html.hw-skin .me,html.hw-skin .st{--ink:#17173a;--muted:#5c5d7a;--line:#e5e4ee;--soft:#f0eff8;--blue:#2d2e74;--navy:#14143a;--navy2:#1e1f52;--green:#0f7f55;--yellow:#f5a83a;--violet:#2d2e74;--shadow:0 1px 0 rgba(23,23,58,.03);--radius:16px;font:400 13.5px/1.6 var(--hw-text)}
@media (min-width:993px){
  html.hw-skin.hw-skin body>div:not(.dashboard-content)>.wrap,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.me,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.st,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.nsr-wrap{margin-right:260px;margin-left:0;padding:0 26px 28px;max-width:none;width:auto}
}
@media (max-width:992px){
  html.hw-skin.hw-skin body>div:not(.dashboard-content)>.wrap,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.me,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.st,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.nsr-wrap{margin:0;padding:0 16px 24px;max-width:none}
}

/* رموز الصفحات القديمة */
html.hw-skin{--blue:#2d2e74;--navy:#14143a;--navy2:#1e1f52;--green:#0f7f55;--yellow:#f5a83a;--red:#c02a24;--bg:#f3f2f7;--line:#e5e4ee;--txt:#17173a;--muted:#5c5d7a}
html.hw-skin .me-modal{--ink:#17173a;--muted:#5c5d7a;--line:#e5e4ee;--blue:#2d2e74;--navy:#14143a;--navy2:#1e1f52}

/* الحضور والانصراف */
html.hw-skin .me-btn.primary,html.hw-skin .st-btn.primary{background:var(--hw-sun);border-color:var(--hw-sun);color:var(--hw-sun-ink)}
html.hw-skin .me-btn.primary:hover,html.hw-skin .st-btn.primary:hover{background:var(--hw-sun2);color:var(--hw-sun-ink)}
html.hw-skin .me-mhead{background:var(--hw-night)}
html.hw-skin .me-note,html.hw-skin .nsr-note{background:var(--hw-tint);border-color:var(--hw-line);color:var(--hw-indigo);font-weight:500}
html.hw-skin .lg-holiday{border-color:var(--hw-indigo)!important;background:var(--hw-tint)}
html.hw-skin .lg-weekend{border-color:#9b9cb5!important;background:#eceaf3}

/* تصحيح البصمة */
html.hw-skin .bulk-toolbar{background:var(--hw-tint);border-color:var(--hw-line)}
html.hw-skin .bulk-toolbar-title{color:var(--hw-indigo)}
html.hw-skin .employee-avatar{background:var(--hw-indigo);color:#fff}
html.hw-skin .employee-stat.rejected{background:var(--hw-bad-b);color:var(--hw-bad)}
html.hw-skin .img-lightbox{background:rgba(10,10,40,.85)}

/* الشفتات */
html.hw-skin .st-badge.blue{background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin .employee-request-row .btn-primary,html.hw-skin .employee-card-head .btn-primary{background:var(--hw-night);border-color:var(--hw-night);color:#fff;font-weight:600;min-height:34px;padding:4px 12px}
html.hw-skin .page-step span{background:var(--hw-night)}
html.hw-skin .page-step:hover{color:var(--hw-indigo);border-color:#c9c8db}
html.hw-skin .hw-bar-s code{color:var(--hw-sun);background:none;font-size:12px}
html.hw-skin .assignment-sync-card{background:var(--hw-tint);border-color:var(--hw-line)}
html.hw-skin .st-kpi.gray .ki{background:#9b9cb5}

/* ═══ دفعة السلف والتسويات ═══ */
/* حاويات */
html.hw-skin.hw-skin body>.page>.container-fluid{padding:0;max-width:none!important}
html.hw-skin.hw-skin body>.dashboard-content:has(>.hw-bar){padding:0 26px 28px}
html.hw-skin.hw-skin body>.page-shell{margin-right:0;padding:0;max-width:none}
html.hw-skin.hw-skin body>.page-shell>.page-wrap{padding:0 26px 28px;max-width:none}
html.hw-skin.hw-skin .dashboard-content>.lp,html.hw-skin.hw-skin .dashboard-content>.dd{margin-right:0;margin-left:0;padding:0 26px 28px;max-width:none;width:auto}
@media (min-width:993px){
  html.hw-skin.hw-skin body>.page-shell{margin-right:260px!important}
  html.hw-skin.hw-skin body>div:not(.dashboard-content)>.lp,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.dd{margin-right:260px;margin-left:0;padding:0 26px 28px;max-width:none;width:auto}
}
@media (max-width:992px){
  html.hw-skin.hw-skin body>.dashboard-content:has(>.hw-bar),html.hw-skin.hw-skin body>.page-shell>.page-wrap,html.hw-skin.hw-skin .dashboard-content>.lp,html.hw-skin.hw-skin .dashboard-content>.dd{padding:0 16px 24px}
  html.hw-skin.hw-skin body>.page-shell{margin-right:0!important}
  html.hw-skin.hw-skin body>div:not(.dashboard-content)>.lp,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.dd{margin:0;padding:0 16px 24px;max-width:none}
}

/* رموز */
html.hw-skin{--primary:#2d2e74;--primary-hover:#14143a;--primary-light:#f0eff8}
html.hw-skin .lp,html.hw-skin .dd{--ink:#17173a;--muted:#5c5d7a;--line:#e5e4ee;--soft:#f0eff8;--blue:#2d2e74;--navy:#14143a;--navy2:#1e1f52;--shadow:0 1px 0 rgba(23,23,58,.03);--radius:16px;font:400 13.5px/1.6 var(--hw-text)}

/* الشريط */
html.hw-skin .hw-btn-bad{border-color:#f3a6a1;color:#ffc9c5}
html.hw-skin .hw-bar .chip{background:rgba(255,255,255,.12);border:0;color:#fff;font-weight:500}
html.hw-skin .lp-hero.hw-bar{display:block;border-radius:0;box-shadow:none}
html.hw-skin .lp-hero.hw-bar::after{display:none}
html.hw-skin .lp-hero .lp-btn.primary{background:var(--hw-sun);border-color:var(--hw-sun);color:var(--hw-sun-ink)}

/* رؤوس الجداول والشارات */
html.hw-skin.hw-skin thead{background:transparent}
html.hw-skin.hw-skin .page-wrap th,html.hw-skin.hw-skin .container-main th{background:var(--hw-night);color:#e6e6f6}
html.hw-skin .status-pill.info,html.hw-skin .lp-badge.info,html.hw-skin .schedule-badge.scheduled{background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin .lp-bio .q,html.hw-skin .lp-tl .dot{background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin .lp-bar .col{background:var(--hw-indigo)}
html.hw-skin .lp-bar.now .col{background:var(--hw-sun)}
html.hw-skin .quick-stat-icon.navy{background:var(--hw-tint);color:var(--hw-indigo)}

/* صفحات العهد المختصرة وحركة الدخول */
html.hw-skin.hw-skin body>.page{margin-top:0;margin-bottom:0;max-width:none}
html.hw-skin.hw-skin body>.page>.hw-bar{margin-top:0}
html.hw-skin .fade-in{animation:none}

/* العهد */
html.hw-skin .stat-card{border-top-color:var(--hw-indigo);box-shadow:none;border:1px solid var(--hw-line);border-top:3px solid var(--hw-indigo)}
html.hw-skin .stat-card:hover{transform:none}
html.hw-skin .stat-card.purple,html.hw-skin .stat-card.blue{border-top-color:var(--hw-indigo)}
html.hw-skin .stat-card.green{border-top-color:var(--hw-ok)}
html.hw-skin .stat-card.orange,html.hw-skin .stat-card.yellow{border-top-color:var(--hw-sun)}
html.hw-skin .stat-card.red{border-top-color:var(--hw-bad)}
html.hw-skin.hw-skin .cardx[style*="linear-gradient"]{padding:16px 20px;border:0}
html.hw-skin .filter-bar{border:1px solid var(--hw-line);border-radius:14px!important;align-items:flex-end}
html.hw-skin .filter-bar .btn-sm{min-height:38px;padding:6px 16px}

/* نوافذ الخصم */
html.hw-skin .dd-modal{--ink:#17173a;--muted:#5c5d7a;--line:#e5e4ee;--soft:#f0eff8;--blue:#2d2e74;--navy:#14143a;--navy2:#1e1f52}
html.hw-skin .dd-modal .dd-btn.primary{background:var(--hw-sun);border-color:var(--hw-sun);color:var(--hw-sun-ink)}

/* قائمة السلف على الجوال */
@media (max-width:560px){
  html.hw-skin.hw-skin .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.hw-skin.hw-skin .stats .value{font-size:20px;overflow-wrap:anywhere}
  html.hw-skin.hw-skin .searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:end}
  html.hw-skin.hw-skin .searchbar .field{grid-column:1/-1;min-width:0;width:100%}
  html.hw-skin.hw-skin .searchbar .field input,html.hw-skin.hw-skin .searchbar .field select{width:100%}
}

/* ═══ دفعة الإجازات والموظفين ═══ */
/* رموز */
html.hw-skin{--sidebar-w:260px;--sbw:260px;--sidebar-width:260px;--header-h:0px}

/* ملف الموظف: الهوية داخل الشريط */
html.hw-skin .profile-header.hw-bar{display:block;border-radius:0;box-shadow:none}
html.hw-skin .profile-header.hw-bar::after,html.hw-skin .profile-header.hw-bar::before{display:none}

/* صفحات الإجازات */
html.hw-skin.hw-skin{--brand-primary:#2d2e74}
html.hw-skin .wrap>.cardx>.hero{background:none;border:0;padding:0}

/* أعمدة Bootstrap: responsive-enhancements.css يفرض .row>*{width:100%} بعد Bootstrap فتتراص الحقول */
html.hw-skin .row>.col-1{width:8.333333%}html.hw-skin .row>.col-2{width:16.666667%}html.hw-skin .row>.col-3{width:25%}html.hw-skin .row>.col-4{width:33.333333%}html.hw-skin .row>.col-5{width:41.666667%}html.hw-skin .row>.col-6{width:50%}html.hw-skin .row>.col-7{width:58.333333%}html.hw-skin .row>.col-8{width:66.666667%}html.hw-skin .row>.col-9{width:75%}html.hw-skin .row>.col-10{width:83.333333%}html.hw-skin .row>.col-11{width:91.666667%}html.hw-skin .row>.col-12{width:100%}
@media (min-width:576px){html.hw-skin .row>.col-sm-1{width:8.333333%}html.hw-skin .row>.col-sm-2{width:16.666667%}html.hw-skin .row>.col-sm-3{width:25%}html.hw-skin .row>.col-sm-4{width:33.333333%}html.hw-skin .row>.col-sm-5{width:41.666667%}html.hw-skin .row>.col-sm-6{width:50%}html.hw-skin .row>.col-sm-7{width:58.333333%}html.hw-skin .row>.col-sm-8{width:66.666667%}html.hw-skin .row>.col-sm-9{width:75%}html.hw-skin .row>.col-sm-10{width:83.333333%}html.hw-skin .row>.col-sm-11{width:91.666667%}html.hw-skin .row>.col-sm-12{width:100%}}
@media (min-width:768px){html.hw-skin .row>.col-md-1{width:8.333333%}html.hw-skin .row>.col-md-2{width:16.666667%}html.hw-skin .row>.col-md-3{width:25%}html.hw-skin .row>.col-md-4{width:33.333333%}html.hw-skin .row>.col-md-5{width:41.666667%}html.hw-skin .row>.col-md-6{width:50%}html.hw-skin .row>.col-md-7{width:58.333333%}html.hw-skin .row>.col-md-8{width:66.666667%}html.hw-skin .row>.col-md-9{width:75%}html.hw-skin .row>.col-md-10{width:83.333333%}html.hw-skin .row>.col-md-11{width:91.666667%}html.hw-skin .row>.col-md-12{width:100%}}
@media (min-width:992px){html.hw-skin .row>.col-lg-1{width:8.333333%}html.hw-skin .row>.col-lg-2{width:16.666667%}html.hw-skin .row>.col-lg-3{width:25%}html.hw-skin .row>.col-lg-4{width:33.333333%}html.hw-skin .row>.col-lg-5{width:41.666667%}html.hw-skin .row>.col-lg-6{width:50%}html.hw-skin .row>.col-lg-7{width:58.333333%}html.hw-skin .row>.col-lg-8{width:66.666667%}html.hw-skin .row>.col-lg-9{width:75%}html.hw-skin .row>.col-lg-10{width:83.333333%}html.hw-skin .row>.col-lg-11{width:91.666667%}html.hw-skin .row>.col-lg-12{width:100%}}
@media (min-width:1200px){html.hw-skin .row>.col-xl-1{width:8.333333%}html.hw-skin .row>.col-xl-2{width:16.666667%}html.hw-skin .row>.col-xl-3{width:25%}html.hw-skin .row>.col-xl-4{width:33.333333%}html.hw-skin .row>.col-xl-5{width:41.666667%}html.hw-skin .row>.col-xl-6{width:50%}html.hw-skin .row>.col-xl-7{width:58.333333%}html.hw-skin .row>.col-xl-8{width:66.666667%}html.hw-skin .row>.col-xl-9{width:75%}html.hw-skin .row>.col-xl-10{width:83.333333%}html.hw-skin .row>.col-xl-11{width:91.666667%}html.hw-skin .row>.col-xl-12{width:100%}}

/* زر الصف بالليل لا بالزعفران */
html.hw-skin.hw-skin td .btnx-primary{background:var(--hw-night);border-color:var(--hw-night);color:#fff}

/* قائمة الموظفين */
html.hw-skin .btn-action.btn-view{background:var(--hw-tint);border-color:var(--hw-line);color:var(--hw-indigo)}
html.hw-skin .btn-view:hover{background:var(--hw-indigo);color:#fff}
html.hw-skin .cell-hire{white-space:nowrap}

/* أزرق Bootstrap الافتراضي */
html.hw-skin{--bs-primary:#2d2e74;--bs-primary-rgb:45,46,116;--bs-link-color:#2d2e74;--bs-link-color-rgb:45,46,116;--bs-link-hover-color:#14143a;--bs-link-hover-color-rgb:20,20,58}

/* بطاقات الأرقام بخط علوي واحد */
html.hw-skin.hw-skin .stat-card::before{display:none}
html.hw-skin .stat-card.y{border-top-color:var(--hw-sun)}
html.hw-skin .stat-card.g{border-top-color:var(--hw-ok)}
html.hw-skin .stat-card.r{border-top-color:var(--hw-bad)}
html.hw-skin .stat-card.gr{border-top-color:#9b9cb5}
html.hw-skin .ic .hw-i,html.hw-skin .section-title .icon .hw-i{width:16px;height:16px}

/* نقطة الشهر في ملف الموظف */
html.hw-skin .att-month-trigger .dot{background:var(--hw-sun);box-shadow:0 0 0 3px rgba(245,168,58,.26)}

/* ═══ دفعة الإعدادات ═══ */
/* الحاويات: .ua و.bl مثل .wrap */
html.hw-skin.hw-skin .dashboard-content>.ua,html.hw-skin.hw-skin .dashboard-content>.bl{margin-right:0;margin-left:0;padding:0 26px 28px;max-width:none;width:auto}
@media (max-width:992px){
  html.hw-skin.hw-skin .dashboard-content>.ua,html.hw-skin.hw-skin .dashboard-content>.bl{padding:0 16px 24px}
}
@media (min-width:993px){
  html.hw-skin.hw-skin body>div:not(.dashboard-content)>.ua,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.bl{margin-right:260px;margin-left:0;padding:0 26px 28px;max-width:none;width:auto}
}
@media (max-width:992px){
  html.hw-skin.hw-skin body>div:not(.dashboard-content)>.ua,html.hw-skin.hw-skin body>div:not(.dashboard-content)>.bl{margin:0;padding:0 16px 24px;max-width:none}
}

/* أزرار التبديل في الشريط */
html.hw-skin .hw-bar .hw-btn.on{background:#fff;border-color:#fff;color:var(--hw-night)}

/* أزرار الاستيراد والتصدير */
html.hw-skin .action-btn.action-btn{background:var(--hw-sun);color:var(--hw-sun-ink);font:700 14px var(--hw-disp);border-radius:12px;box-shadow:none}
html.hw-skin .action-btn:hover{background:var(--hw-sun2);filter:none}
html.hw-skin #downloadUpdateBtn.action-btn{background:var(--hw-night);color:#fff}

/* بصمة الجوال */
html.hw-skin .tabbtn.active{background:var(--hw-night)}
html.hw-skin .hw-bar .hero-state{flex:none}

/* ═══ دفعة المهام والاقتراحات وما بقي ═══ */
/* الأغلفة التي يمرّرها المتحكم contentClass */
html.hw-skin.hw-skin body>.um-shell,html.hw-skin.hw-skin body>.tt-shell,html.hw-skin.hw-skin body>.task-admin,html.hw-skin.hw-skin body>.docs-shell,html.hw-skin.hw-skin body>.sug-shell,html.hw-skin.hw-skin body>.nc-shell,html.hw-skin.hw-skin body>.dp-shell,html.hw-skin.hw-skin body>.sites-shell,html.hw-skin.hw-skin body>.mi-shell,html.hw-skin.hw-skin body>.profile-wrapper,html.hw-skin.hw-skin body>main.page-wrap{margin-right:260px!important;margin-left:0;padding:0 26px 28px;max-width:none;width:auto;min-height:100vh}
@media (max-width:992px){
  html.hw-skin.hw-skin body>.um-shell,html.hw-skin.hw-skin body>.tt-shell,html.hw-skin.hw-skin body>.task-admin,html.hw-skin.hw-skin body>.docs-shell,html.hw-skin.hw-skin body>.sug-shell,html.hw-skin.hw-skin body>.nc-shell,html.hw-skin.hw-skin body>.dp-shell,html.hw-skin.hw-skin body>.sites-shell,html.hw-skin.hw-skin body>.mi-shell,html.hw-skin.hw-skin body>.profile-wrapper,html.hw-skin.hw-skin body>main.page-wrap{margin-right:0!important;padding:0 16px 24px}
}
/* الحاويات الداخلية بلا هامش: الغلاف يتكفل به والشريط يلتصق بالحواف */
html.hw-skin.hw-skin .um-shell>.mt,html.hw-skin.hw-skin .tt-shell>.tt-wrap,html.hw-skin.hw-skin .docs-shell>.dc,html.hw-skin.hw-skin .dp-shell>.dp,html.hw-skin.hw-skin .nc-shell>.page,html.hw-skin.hw-skin .sites-shell>.mham-wrap,html.hw-skin.hw-skin .mi-shell>.dashboard-content,html.hw-skin.hw-skin .mi-shell .container-fluid,html.hw-skin.hw-skin .sug-shell>.wrap,html.hw-skin.hw-skin .sug-shell>.wrap>.container-fluid,html.hw-skin.hw-skin .profile-wrapper>.profile-shell,html.hw-skin.hw-skin body>.wrap>.wrap,html.hw-skin.hw-skin .dashboard-content>.dashboard-content{margin:0!important;padding:0;max-width:none;width:auto}
html.hw-skin.hw-skin .dashboard-content>.mae-wrap{margin:0;padding:0 26px 28px;max-width:none}
html.hw-skin.hw-skin .dashboard-content>.dashboard-content>.container-fluid{margin:0;padding:0 26px 28px}
html.hw-skin.hw-skin .profile-wrapper>.profile-shell{margin-bottom:0;max-width:760px}
@media (max-width:992px){
  html.hw-skin.hw-skin .dashboard-content>.mae-wrap,html.hw-skin.hw-skin .dashboard-content>.dashboard-content>.container-fluid{padding:0 16px 24px}
}

/* رموز صفحات «تصميم 4» */
html.hw-skin .dc,html.hw-skin .dp,html.hw-skin .mt,html.hw-skin .dc-modal,html.hw-skin .dp-modal,html.hw-skin .mt-modal{--ink:#17173a;--muted:#5c5d7a;--line:#e5e4ee;--soft:#f0eff8;--blue:#2d2e74;--navy:#14143a;--navy2:#1e1f52;--shadow:0 1px 0 rgba(23,23,58,.03);--radius:16px;font:400 13.5px/1.6 var(--hw-text)}
html.hw-skin .dc-btn.primary,html.hw-skin .dp-btn.primary,html.hw-skin .mt-btn.primary{background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .dc-btn.primary:hover,html.hw-skin .dp-btn.primary:hover,html.hw-skin .mt-btn.primary:hover{background:var(--hw-indigo);border-color:var(--hw-indigo);color:#fff}

/* تبويبات الاقتراحات */
html.hw-skin .hw-tabs{margin-bottom:14px}
html.hw-skin .hw-tabs .nav-link{background:#fff;border:1px solid #c9c8db;color:var(--hw-ink);font-weight:600;font-size:13px;border-radius:10px;padding:8px 18px;margin-left:8px}
html.hw-skin .hw-tabs .nav-link:hover{background:var(--hw-tint);color:var(--hw-ink)}
html.hw-skin .hw-tabs .nav-link.active{background:var(--hw-night);border-color:var(--hw-night);color:#fff}

/* أيقونة الحالة الفارغة */
html.hw-skin .hw-empty-i{display:grid;place-items:center;margin-bottom:12px;color:var(--hw-mute)}
html.hw-skin .hw-empty-i .hw-i{width:40px;height:40px}

/* إدارة المهمة: الملخص تحت الشريط */
html.hw-skin .hero.hw-sum{background:none;color:var(--hw-ink);padding:0;border-radius:0;box-shadow:none;overflow:visible;margin:0 0 14px}
html.hw-skin .hero.hw-sum::before,html.hw-skin .hero.hw-sum::after{display:none}

/* القائمة لا تُطبع: التقريران صارا بها */
@media print{
  html.hw-skin #mhamSidebar{display:none!important}
}

/* الاقتراحات: حاوية .wrap داخل الغلاف */
html.hw-skin.hw-skin body>.sug-shell>.wrap{margin:0!important;padding:0!important}
html.hw-skin.hw-skin body>.wrap{margin-top:0;margin-bottom:0}
html.hw-skin .mham-topbar{display:none}

/* أزرار وملاحظات بلونها القديم */
html.hw-skin .btn-main{background:var(--hw-sun);border:1px solid var(--hw-sun);color:var(--hw-sun-ink)}
html.hw-skin .btn-main:hover{background:var(--hw-sun2);color:var(--hw-sun-ink)}
html.hw-skin .schedule-note{background:var(--hw-tint);border-color:var(--hw-line);color:var(--hw-indigo)}

/* أزرار القرار في الاقتراح: واحد بالزعفران والرفض أحمر */
html.hw-skin .action-btn.btn-approve-int{background:var(--hw-night);color:#fff}
html.hw-skin .action-btn.btn-approve-int:hover{background:var(--hw-indigo);color:#fff}
html.hw-skin .action-btn.btn-reject{background:#fff;border:1px solid #efbcb8;color:var(--hw-bad)}
html.hw-skin .action-btn.btn-reject:hover{background:var(--hw-bad-b);color:var(--hw-bad)}
html.hw-skin .submit-btn{background:var(--hw-sun);color:var(--hw-sun-ink);box-shadow:none;border-radius:12px;font:700 15px var(--hw-disp);height:48px}
html.hw-skin .submit-btn:hover{background:var(--hw-sun2);box-shadow:none;transform:none;color:var(--hw-sun-ink)}

/* أسهم التمرير الرأسي في تبويبات الأجهزة */
html.hw-skin .tabs{overflow-y:hidden}

/* ملخص المهمة تحت الشريط */
html.hw-skin .hw-sum .summary{margin-top:0}
html.hw-skin .hw-sum .summary>div{background:#fff;border:1px solid var(--hw-line)}
html.hw-skin .hw-sum .summary small{color:var(--hw-mute);font-weight:500}
html.hw-skin .hw-sum .summary b{color:var(--hw-ink)}
html.hw-skin .hw-sum .summary .stars{color:var(--hw-sun)}

/* عنوان جدول المهام فوق رأس الجدول */
html.hw-skin .tt-table-head{background:#fff;color:var(--hw-ink);font:700 15px/1.35 var(--hw-disp);border-bottom:1px solid var(--hw-line)}

/* لوحة إدارة المهمة: أزرار الصناديق بالليل */
html.hw-skin .manage-box .btn-primary{background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .manage-box .btn-primary:hover{background:var(--hw-indigo);border-color:var(--hw-indigo);color:#fff}

/* إضافة مهمة على الجوال: أنماط الصفحة تضيّق الحاوية بقوة */
@media (max-width:992px){
  html.hw-skin.hw-skin .dashboard-content>.dashboard-content>.container-fluid{padding:0 16px 24px!important}
}
html.hw-skin .mt-badge.violet{background:var(--hw-tint);color:var(--hw-indigo)}

/* ═══ دفعة الذكاء والتشخيص ═══ */
/* صفحات الذكاء الاصطناعي */
html.hw-skin .wrap.hw-ai{max-width:none;margin:0;padding:0}
html.hw-skin .hw-ai .card{border-radius:14px}
html.hw-skin .hw-ai .feat i{background:var(--hw-tint);color:var(--hw-indigo);font:700 13px var(--hw-disp)}
html.hw-skin .hw-ai .svgrp{margin:20px 0 10px}
html.hw-skin .hw-ai .svgrp i{background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin .hw-ai .svgrp b{font:700 15px var(--hw-disp)}
html.hw-skin .hw-ai .guard .g i{color:var(--hw-indigo)}
html.hw-skin .hw-ai .svc:hover{transform:none;border-color:var(--hw-indigo)}
html.hw-skin .hw-ai .svc .ex{border-radius:8px}
html.hw-skin .hw-ai .aisell h2{font-family:var(--hw-disp)}
html.hw-skin .hw-ai .aisell h2 .ln2{background:none;-webkit-text-fill-color:var(--hw-indigo);color:var(--hw-indigo)}
html.hw-skin .hw-ai .pricetag{background:var(--hw-night);border-radius:12px}
html.hw-skin .hw-ai .pricetag b{font-family:var(--hw-disp)}
html.hw-skin .hw-ai .plan .tag{background:var(--hw-sun);color:var(--hw-sun-ink)}
html.hw-skin .hw-ai .plan.hot{border-color:var(--hw-indigo)}
html.hw-skin .hw-ai .chip:hover{border-color:var(--hw-indigo);color:var(--hw-indigo)}
html.hw-skin .hw-ai .bub.me{background:var(--hw-night)}
html.hw-skin .hw-ai .bub.ai b{color:var(--hw-indigo)}
html.hw-skin .hw-ai .aipdf{background:var(--hw-night)}
html.hw-skin .hw-ai .qbar i{background:var(--hw-sun)}
html.hw-skin .hw-ai .waiting .i{color:var(--hw-indigo)}
html.hw-skin .hw-ai .waiting .i .hw-i{width:30px;height:30px}
html.hw-skin .hw-ai .why{border-color:var(--hw-line)}
html.hw-skin .hw-ai .planopt .save{background:var(--hw-sun);color:var(--hw-sun-ink)}
html.hw-skin .hw-ai .planopt input:checked + .bx{border-color:var(--hw-indigo)}
html.hw-skin .hw-ai .btnx-soft{background:var(--hw-tint);color:var(--hw-indigo);border-color:var(--hw-line)}
html.hw-skin .hw-ai .ai-badge{background:var(--hw-tint);color:var(--hw-indigo);border-color:var(--hw-line)}
html.hw-skin .hw-ai .bubble.user{background:var(--hw-tint);border-color:var(--hw-line)}
html.hw-skin .hw-ai input[type=file]::file-selector-button{margin-inline-end:10px;padding:6px 12px;background:var(--hw-tint);color:var(--hw-indigo);border:1px solid var(--hw-line);border-radius:8px;font:600 12.5px var(--hw-text);cursor:pointer}
/* هامش القائمة مكرر: الغلاف يأخذه ثم الصفحة بداخله */
html.hw-skin.hw-skin body>div:is(.um-shell,.tt-shell,.task-admin,.docs-shell,.sug-shell,.nc-shell,.dp-shell,.sites-shell,.mi-shell)>:is(.wrap,.me,.st,.nsr-wrap){margin-right:0;margin-left:0;padding:0;max-width:none}

/* ═══ النموذج 4 «السجل» ═══ */
/* هامش مكرر: الغلاف يأخذ هامش القائمة ثم الصفحة بداخله فيُقص الجدول */
html.hw-skin.hw-skin body>div:is(.um-shell,.tt-shell,.task-admin,.docs-shell,.sug-shell,.nc-shell,.dp-shell,.sites-shell,.mi-shell)>:is(.ua,.bl,.lp,.dd){margin-right:0;margin-left:0;padding:0;max-width:none}

/* بطاقات الأرقام */
html.hw-skin .rg-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 14px}
html.hw-skin .rg-kpis.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
html.hw-skin .rg-kpi{position:relative;display:block;overflow:hidden;background:#fff;border:1px solid var(--hw-line);border-radius:18px;box-shadow:0 12px 28px rgba(17,24,39,.08);padding:16px 12px 14px;text-align:center;text-decoration:none;color:var(--hw-night);transition:transform .16s,box-shadow .16s;--c:var(--hw-indigo);min-width:0}
html.hw-skin a.rg-kpi:hover{transform:translateY(-2px);box-shadow:0 18px 32px rgba(17,24,39,.14);color:var(--hw-night)}
html.hw-skin .rg-kpi::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--c)}
html.hw-skin .rg-kpi.c-ok{--c:var(--hw-ok,#0f7f55)}
html.hw-skin .rg-kpi.c-sun{--c:#f5a83a}
html.hw-skin .rg-kpi.c-gray{--c:#8b8ca6}
html.hw-skin .rg-kpi.c-bad{--c:#c02a24}
html.hw-skin .rg-kpi.on{box-shadow:0 0 0 2px var(--hw-night),0 12px 28px rgba(17,24,39,.12)}
html.hw-skin .rg-kpi .kt{display:flex;align-items:center;justify-content:center;gap:8px;font:700 14.5px/1.4 var(--hw-text)}
html.hw-skin .rg-kpi .ki{flex:none;width:22px;height:22px;border-radius:7px;display:inline-grid;place-items:center;color:#fff;background:var(--c)}
html.hw-skin .rg-kpi .ki .hw-i{width:13px;height:13px}
html.hw-skin .rg-kpi.c-sun .ki{color:#2a1700}
html.hw-skin .rg-kpi .kv{display:block;font:800 28px/1.3 var(--hw-disp);margin-top:6px;font-variant-numeric:tabular-nums}
html.hw-skin .rg-kpi small{display:block;margin-top:2px;color:var(--hw-mute);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}

/* أرقام مساندة تحت البطاقات */
html.hw-skin .rg-strip{display:flex;flex-wrap:wrap;gap:6px 22px;margin:-2px 2px 14px;color:var(--hw-mute);font-size:13px}
html.hw-skin .rg-strip b{color:var(--hw-night);font-weight:700;font-variant-numeric:tabular-nums;margin-inline-start:5px}

/* صندوق الخيارات */
html.hw-skin .rg-opt,html.hw-skin .rg-card{background:#fff;border:1px solid var(--hw-line);border-radius:18px;box-shadow:0 12px 28px rgba(17,24,39,.06);margin:0 0 14px}
html.hw-skin .rg-opt{padding:14px 18px 16px}
html.hw-skin .rg-opt>h2{font:800 18px/1.4 var(--hw-disp);color:var(--hw-night);margin:0 0 10px}
html.hw-skin .rg-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px;align-items:end;margin:0}
html.hw-skin .rg-f{min-width:0;width:auto;max-width:none;padding:0;flex:none}
html.hw-skin .rg-f.w2{grid-column:span 2}
html.hw-skin .rg-f.all{grid-column:1/-1}
html.hw-skin .rg-f>label,html.hw-skin .rg-f>.rg-l{display:block;font:600 12.5px/1.4 var(--hw-text);color:var(--hw-mute);margin:0 0 5px}
html.hw-skin .rg-f>input:not([type=checkbox]),html.hw-skin .rg-f>select{width:100%;max-width:none;min-width:0;height:40px;border:1px solid #d9d8e6;border-radius:10px;padding:0 10px;background-color:#fff;font:500 13.5px var(--hw-text);color:var(--hw-night)}
html.hw-skin .rg-f:has(.mudar-emp-select-wrap){grid-column:span 2}
html.hw-skin .rg-f .mudar-emp-select-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
html.hw-skin .rg-f .mudar-emp-select-wrap>:is(input,select){width:100%;max-width:none;min-width:0;height:40px;margin:0;border:1px solid #d9d8e6;border-radius:10px;padding:0 10px;background-color:#fff;font:500 13.5px var(--hw-text);color:var(--hw-night)}
html.hw-skin .rg-fa{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
html.hw-skin .rg-fa.all{grid-column:1/-1;justify-content:flex-end}
html.hw-skin .rg-go,html.hw-skin .rg-clr{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border-radius:10px;font:700 13.5px var(--hw-text);text-decoration:none;cursor:pointer;white-space:nowrap}
html.hw-skin .rg-go{background:var(--hw-indigo);border:1px solid var(--hw-indigo);color:#fff}
html.hw-skin .rg-go:hover{background:var(--hw-night2);color:#fff}
html.hw-skin .rg-clr{background:#fff;border:1px solid #d9d8e6;color:var(--hw-night);font-weight:500}
html.hw-skin .rg-clr:hover{background:var(--hw-tint);color:var(--hw-night)}
html.hw-skin .rg-check{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--hw-mute);margin:0}

/* الجدول */
html.hw-skin .rg-card{padding:14px 16px 10px;min-width:0}
html.hw-skin .rg-card>.rg-h{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;justify-content:space-between;margin:0 2px 10px}
html.hw-skin .rg-card>.rg-h b{font:800 15px var(--hw-disp);color:var(--hw-night)}
html.hw-skin .rg-card>.rg-h span{font-size:12.5px;color:var(--hw-mute)}
html.hw-skin .rg-tw{overflow-x:auto;-webkit-overflow-scrolling:touch;background:none;border:0;box-shadow:none;padding:0;margin:0;max-height:none}
html.hw-skin.hw-skin table.rg-tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px;margin:0;background:none;border:0;box-shadow:none}
html.hw-skin.hw-skin table.rg-tbl>thead>tr>th{background:linear-gradient(180deg,var(--hw-night),var(--hw-night2));color:#fff;font:700 13px var(--hw-text);padding:11px 8px;white-space:nowrap;text-align:center;border:0;position:static}
html.hw-skin.hw-skin table.rg-tbl>thead>tr>th:first-child{border-top-right-radius:14px}
html.hw-skin.hw-skin table.rg-tbl>thead>tr>th:last-child{border-top-left-radius:14px}
html.hw-skin.hw-skin table.rg-tbl>tbody>tr>td{padding:10px 8px;border:0;border-bottom:1px solid #eeedf4;text-align:center;vertical-align:middle;background:none;box-shadow:none;color:var(--hw-night)}
html.hw-skin.hw-skin table.rg-tbl>tbody>tr:hover>td{background:#fafafd}
html.hw-skin.hw-skin table.rg-tbl>tbody>tr>td.rg-who{text-align:right}
html.hw-skin.hw-skin table.rg-tbl .col-id{width:auto;min-width:0;max-width:none;white-space:nowrap}
html.hw-skin.hw-skin table.rg-tbl .td-one{display:block;max-width:none;overflow:visible;white-space:normal}
html.hw-skin.hw-skin table.rg-tbl .actions{display:inline-flex;flex-wrap:wrap;gap:5px;justify-content:center}
html.hw-skin.hw-skin table.rg-tbl .btn-mini{padding:4px 9px;white-space:nowrap}
html.hw-skin.hw-skin table.rg-tbl>tbody>tr>td:has(.mono),html.hw-skin.hw-skin table.rg-tbl>tbody>tr>td.mono{white-space:nowrap}
html.hw-skin .rg-ico{display:inline-flex;align-items:center;gap:5px}
html.hw-skin .rg-ico .hw-i{width:13px;height:13px}

/* التبويبات */
html.hw-skin .rg-tabs{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--hw-line);margin:0 0 14px}
html.hw-skin .rg-tabs button{background:none;border:0;border-bottom:2.5px solid transparent;padding:9px 14px;margin-bottom:-1px;cursor:pointer;color:var(--hw-mute);font:500 14px var(--hw-text)}
html.hw-skin .rg-tabs button:hover{color:var(--hw-night)}
html.hw-skin .rg-tabs button.on{color:var(--hw-night);font-weight:700;border-bottom-color:var(--hw-indigo)}

/* أجهزة البصمة: الصف بدل البطاقة */
html.hw-skin.hw-skin table.rg-tbl tr.dev{display:table-row;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
html.hw-skin.hw-skin table.rg-tbl tr.dev[hidden]{display:none}
html.hw-skin.hw-skin table.rg-tbl tr.dev.off>td{opacity:.72}
html.hw-skin .rg-dn{font-weight:700;color:var(--hw-night)}
html.hw-skin .rg-dm{font-size:12px;color:var(--hw-mute)}
html.hw-skin .rg-acts{display:inline-flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
html.hw-skin .rg-acts form{display:inline;margin:0}

/* النافذة */
html.hw-skin .modal.rg-md{z-index:10050}
html.hw-skin body:has(.modal.rg-md) .modal-backdrop{z-index:10040}
html.hw-skin .modal.rg-md .modal-dialog{max-width:min(860px,calc(100vw - 32px))}
html.hw-skin .modal.rg-md .modal-dialog.modal-sm-rg{max-width:min(520px,calc(100vw - 32px))}
html.hw-skin .modal.rg-md .modal-content{border:0;border-radius:16px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(20,20,58,.6)}
html.hw-skin.hw-skin .modal.rg-md .modal-header{background:var(--hw-night);color:#fff;border:0;padding:13px 18px;border-radius:0}
html.hw-skin.hw-skin .modal.rg-md .modal-header :is(h5,h4,.modal-title,.h){font:700 16px var(--hw-disp);color:#fff;margin:0}
html.hw-skin.hw-skin .modal.rg-md .modal-header .muted{color:var(--hw-on-night,#c9cae8)}
html.hw-skin.hw-skin .modal.rg-md .modal-header .btn-close{filter:invert(1) grayscale(1) brightness(2);opacity:.9;margin:0;margin-inline-start:auto}
html.hw-skin.hw-skin .modal.rg-md .modal-body{background:#fff}
html.hw-skin.hw-skin .modal.rg-md .modal-footer{background:#fff;border-top:1px solid var(--hw-line);padding:10px 18px}

/* نافذة التأكيد */
html.hw-skin dialog.hw-cd{border:0;padding:0;width:min(420px,calc(100vw - 32px));border-radius:16px;overflow:hidden;color:var(--hw-night);box-shadow:0 30px 80px -20px rgba(20,20,58,.6)}
html.hw-skin dialog.hw-cd::backdrop{background:rgba(20,20,58,.55)}
html.hw-skin .hw-cd-h{background:var(--hw-night);color:#fff;font:700 15px var(--hw-disp);padding:12px 18px}
html.hw-skin .hw-cd-b{padding:16px 18px;font-size:14px;line-height:1.7}
html.hw-skin .hw-cd-f{display:flex;gap:8px;justify-content:flex-end;padding:10px 18px;border-top:1px solid var(--hw-line)}
html.hw-skin .hw-cd-f button{height:38px;padding:0 16px;border-radius:10px;font:700 13.5px var(--hw-text);cursor:pointer}
html.hw-skin .hw-cd-no{background:#fff;border:1px solid #d9d8e6;color:var(--hw-night);font-weight:500}
html.hw-skin .hw-cd-yes{background:#c02a24;border:1px solid #c02a24;color:#fff}

@media (max-width:1100px){
  html.hw-skin .rg-kpis,html.hw-skin .rg-kpis.n3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  html.hw-skin .rg-kpi{padding:14px 8px 12px}
  html.hw-skin .rg-kpi .kt{font-size:13px;gap:6px}
  html.hw-skin .rg-kpi .kv{font-size:24px}
  html.hw-skin .rg-g{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .rg-f.w2,html.hw-skin .rg-f:has(.mudar-emp-select-wrap){grid-column:auto}
  html.hw-skin .rg-opt{padding:12px 14px 14px}
  html.hw-skin .rg-card{padding:10px 10px 6px}
}
html.hw-skin .rg-cellacts>*{margin:2px}

/* ═══ النموذج 5 «الضبط» — طبقة مشتركة (2026-11-05). المرجع: settings/messaging ═══ */
html.hw-skin [hidden]{display:none!important}
html.hw-skin .zb{display:grid;grid-template-columns:230px minmax(0,1fr);background:#fff;border:1px solid var(--hw-line);border-radius:14px;overflow:clip;font-size:13.5px;line-height:1.6;color:var(--hw-ink)}
html.hw-skin .zb-rail{background:#fafafd;border-inline-end:1px solid var(--hw-line);padding:12px 10px;display:grid;gap:2px;align-content:start}
html.hw-skin .zb-rail small{display:block;padding:8px 10px 3px;font-size:11.5px;font-weight:600;color:var(--hw-mute)}
html.hw-skin .zb-rail button{display:flex;align-items:center;gap:9px;width:100%;background:none;border:0;padding:8px 10px;border-radius:9px;cursor:pointer;text-align:right;color:var(--hw-mute);font:500 13.5px/1.5 var(--hw-text);box-shadow:none;margin:0}
html.hw-skin .zb-rail button:hover{background:var(--hw-tint);color:var(--hw-ink)}
html.hw-skin .zb-rail button .hw-i,html.hw-skin .zb-rail button .bi{width:16px;height:16px;font-size:15px;flex:none}
html.hw-skin .zb-rail button.on,html.hw-skin .zb-rail button.active,html.hw-skin .zb-rail button[aria-selected="true"]{background:var(--hw-night);color:#fff;font-weight:600}
html.hw-skin .zb-rail .io-tab{flex:none;border:0!important;transition:none!important;box-shadow:none!important;background:none;color:var(--hw-mute)}
html.hw-skin .zb-rail .io-tab.active{background:var(--hw-night)!important;color:#fff!important;font-weight:600}
html.hw-skin .zb-rail button b{margin-inline-start:auto;font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}
html.hw-skin .zb-pane{padding:6px 20px 14px;min-width:0}
html.hw-skin .zb-pane h4{font:700 16px/1.4 var(--hw-disp);color:var(--hw-ink);padding-block:10px 4px;margin:0}
html.hw-skin .zb-note{color:var(--hw-mute);font-size:12.5px;margin:0 0 8px}
html.hw-skin .zb-meta{color:var(--hw-mute);font-size:12px;margin:0 0 8px;font-variant-numeric:tabular-nums}
html.hw-skin .zb-sub{font:600 13px/1.5 var(--hw-text);color:var(--hw-mute);padding-block:14px 6px;margin:0}
html.hw-skin .zb-r{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--zb-w,260px));gap:8px 20px;align-items:center;padding-block:11px;border-top:1px solid var(--hw-line)}
html.hw-skin .zb-r>.zb-l b{font-weight:600}
html.hw-skin .zb-r>.zb-l em{display:block;font-style:normal;color:var(--hw-mute);font-size:12.5px}
html.hw-skin .zb-r>.zb-c{display:flex;justify-content:flex-end;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
html.hw-skin .zb-r>.zb-c>*{min-width:0}
html.hw-skin .zb-r.s{--zb-w:auto}
html.hw-skin .zb-r.n{--zb-w:170px}
html.hw-skin .zb-r.n>.zb-c{flex-wrap:nowrap}
html.hw-skin .zb-r.n .zb-in{flex:1 1 0;width:auto;min-width:0}
html.hw-skin .zb-r.wide{grid-template-columns:210px minmax(0,1fr)}
html.hw-skin .zb-r.wide>.zb-c{display:block}
html.hw-skin .zb-r.below{background:#fff8e6;margin-inline:-20px;padding-inline:20px}
html.hw-skin .zb-sel3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html.hw-skin .zb-sel3>*{min-width:0}
html.hw-skin .zb-in{width:100%;height:36px;min-height:36px;padding:5px 10px;border:1px solid #c9c8db;border-radius:9px;background-color:#fff;color:var(--hw-ink);font:400 13.5px/1.4 var(--hw-text);box-shadow:none}
html.hw-skin .zb-in:focus{border-color:var(--hw-indigo);outline:2px solid rgba(45,46,116,.18);outline-offset:0;box-shadow:none}
html.hw-skin input[type=number].zb-in{font-variant-numeric:tabular-nums}
html.hw-skin input[type=color].zb-in{padding:3px;width:96px;cursor:pointer}
html.hw-skin .zb-unit{color:var(--hw-mute);font-size:12.5px;white-space:nowrap}
html.hw-skin .zb-i{display:inline-grid;place-items:center;width:16px;height:16px;padding:0;border-radius:50%;border:1px solid #c9c8db;background:#fff;color:var(--hw-mute);font:600 10px/1 var(--hw-text);cursor:help;margin-inline-start:5px;vertical-align:1px;box-shadow:none}
html.hw-skin .zb-i[aria-expanded="true"]{background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .zb-tip{display:block;margin-top:5px;padding:7px 10px;border-radius:8px;background:var(--hw-tint);color:var(--hw-ink);font-size:12.5px;font-weight:400;line-height:1.7}
html.hw-skin .zb-sw{position:relative;display:inline-block;width:40px;height:22px;flex:none;cursor:pointer;margin:0}
html.hw-skin .zb-sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;width:100%;height:100%}
html.hw-skin .zb-sw span{position:absolute;inset:0;border-radius:22px;background:#c9c8db;transition:background .15s;pointer-events:none}
html.hw-skin .zb-sw span::after{content:"";position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
html.hw-skin .zb-sw input:checked+span{background:var(--hw-ok,#0f7f55)}
html.hw-skin .zb-sw input:checked+span::after{transform:translateX(-18px)}
html.hw-skin .zb-sw input:focus-visible+span{outline:2px solid #f5a83a;outline-offset:2px}
html.hw-skin .zb-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}
html.hw-skin .zb-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
html.hw-skin .zb-chip.ok{background:#dff4ea;color:#0f7f55}
html.hw-skin .zb-chip.mid{background:#fdf0d3;color:#7d5000}
html.hw-skin .zb-chip.bad{background:#fde6e4;color:#c02a24}
html.hw-skin .zb-chip.off{background:#ecebf3;color:#5c5d7a}
html.hw-skin .zb-val{font-weight:600;font-variant-numeric:tabular-nums}
html.hw-skin .zb-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 14px;border-radius:10px;border:1px solid transparent;font:600 13px/1.3 var(--hw-text);cursor:pointer;background:none;white-space:nowrap;text-decoration:none;box-shadow:none}
html.hw-skin .zb-btn.sun{background:#f5a83a;color:#2a1700;font-weight:700}
html.hw-skin .zb-btn.sun:hover{background:#ffb94f}
html.hw-skin .zb-btn.sun:disabled{background:#ecebf3;color:var(--hw-mute);cursor:not-allowed}
html.hw-skin .zb-btn.line{background:#fff;border-color:#c9c8db;color:var(--hw-ink);font-weight:500}
html.hw-skin .zb-btn.line:hover{background:var(--hw-tint)}
html.hw-skin .zb-btn.line:disabled{color:var(--hw-mute);cursor:not-allowed;background:#fff}
html.hw-skin .zb-btn.sm{min-height:30px;padding:0 10px;font-size:12.5px}
html.hw-skin .zb-bar{position:sticky;bottom:0;z-index:5;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--hw-line);border-radius:12px;padding:9px 12px;margin-top:14px;box-shadow:0 -8px 24px -18px rgba(20,20,58,.5)}
html.hw-skin .zb-bar .m{display:flex;align-items:center;gap:7px;min-width:0;font-weight:500}
html.hw-skin .zb-bar .a{display:flex;gap:8px;flex-wrap:wrap}
html.hw-skin .zb-empty{padding:28px 12px;text-align:center;color:var(--hw-mute);font-weight:500;border-top:1px solid var(--hw-line)}
html.hw-skin .zb-card{background:#fff;border:1px solid var(--hw-line);border-radius:14px;padding:4px 20px 8px}
html.hw-skin .zb-card>h2{font:700 15px/1.4 var(--hw-disp);color:var(--hw-ink);margin:0;padding-block:14px 8px}
html.hw-skin a.zb-link{grid-template-columns:34px minmax(0,1fr) 18px;color:var(--hw-ink);text-decoration:none;gap:8px 12px}
html.hw-skin a.zb-link:hover{background:var(--hw-tint);margin-inline:-20px;padding-inline:20px}
html.hw-skin a.zb-link .ic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin a.zb-link .go{color:var(--hw-mute)}
html.hw-skin .zb-pane .table-responsive,html.hw-skin .zb-tw{overflow-x:auto}
@media(max-width:1200px){html.hw-skin .zb-r.wide{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){
  html.hw-skin .zb{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .zb-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;border-inline-end:0;border-bottom:1px solid var(--hw-line)}
  html.hw-skin .zb-rail small{display:none}
  html.hw-skin .zb-pane{padding:6px 14px 12px}
  html.hw-skin .zb-sel3{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .zb-r.below{margin-inline:-14px;padding-inline:14px}
}
@media(max-width:560px){
  html.hw-skin .zb-r:not(.s):not(.zb-link){grid-template-columns:minmax(0,1fr)}
  html.hw-skin .zb-r:not(.s)>.zb-c{justify-content:flex-start}
  html.hw-skin .zb-card{padding:4px 14px 8px}
  html.hw-skin a.zb-link:hover{margin-inline:-14px;padding-inline:14px}
}

/* ═══ النموذج 3 «الاستمارة» — طبقة مشتركة (2026-11-05). السلوك: layouts/partials/fm_form ═══ */
html.hw-skin .fm-form{background:none;border:0;padding:0;margin:0;box-shadow:none;border-radius:0}
html.hw-skin .fm{display:grid;grid-template-columns:190px minmax(0,1fr) 250px;gap:14px;align-items:start;font-size:13.5px;line-height:1.6;color:var(--hw-ink)}
html.hw-skin .fm-rail{position:sticky;top:14px;display:grid;gap:2px;min-width:0}
html.hw-skin .fm-rail a{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:10px;color:var(--hw-mute);text-decoration:none;font-weight:500}
html.hw-skin .fm-rail a:hover{background:#fff;color:var(--hw-ink)}
html.hw-skin .fm-rail a.on{background:#fff;color:var(--hw-ink);font-weight:700;box-shadow:inset 0 0 0 1px var(--hw-line)}
html.hw-skin .fm-rail a>span{flex:1;min-width:0}
html.hw-skin .fm-st{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;font:700 11px/1 var(--hw-disp);font-style:normal;background:#fde6e4;color:#c02a24;flex:none}
html.hw-skin .fm-st.done{background:#dff4ea;color:#0f7f55}
html.hw-skin .fm-st .hw-i{width:12px;height:12px}
html.hw-skin .fm-st[hidden]{display:none!important}
html.hw-skin .fm-paper{background:#fff;border:1px solid var(--hw-line);border-radius:14px;padding:4px 20px 8px;min-width:0}
html.hw-skin .fm-sec{scroll-margin-top:14px;padding-block:16px;border-bottom:1px solid var(--hw-line);min-width:0}
html.hw-skin .fm-sec:last-child{border-bottom:0}
html.hw-skin .fm-sec>h4{font:700 15px/1.4 var(--hw-disp);color:var(--hw-ink);margin:0 0 12px}
html.hw-skin .fm-sec>p.fm-note{color:var(--hw-mute);font-size:12.5px;margin:-8px 0 12px}
html.hw-skin .fm .step-panel{display:block!important;animation:none!important}
html.hw-skin .fm .cardx-b{padding:0;background:none}
html.hw-skin .fm-paper .row{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px 14px;margin:0;--bs-gutter-x:0;--bs-gutter-y:0}
html.hw-skin .fm-paper .row>*{width:auto;max-width:none;flex:none;padding:0;margin:0;min-width:0}
html.hw-skin .fm-paper .row>.fm-full,
html.hw-skin .fm-paper .row>.col-12:not([class*="col-md"]):not([class*="col-lg"]){grid-column:1/-1}
html.hw-skin .fm-paper .row[hidden]{display:none!important}
html.hw-skin .fm-paper .grid-2,html.hw-skin .fm-paper .grid-3,html.hw-skin .fm-paper .grid-4{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px 14px;margin:0}
html.hw-skin .fm-paper .form-group,html.hw-skin .fm-paper .mb-3{margin:0 0 12px}
html.hw-skin .fm-paper .grid-2 .form-group,html.hw-skin .fm-paper .grid-3 .form-group,html.hw-skin .fm-paper .grid-4 .form-group{margin:0}
html.hw-skin .fm-paper .grid-2+.grid-2,html.hw-skin .fm-paper .grid-3+.grid-4{margin-top:12px}
html.hw-skin .fm-paper .form-label{display:block;font:600 12.5px/1.5 var(--hw-text);color:var(--hw-ink);margin:0 0 4px}
html.hw-skin .fm-paper .form-control,html.hw-skin .fm-paper .form-select{width:100%;min-height:38px;padding:6px 10px;border:1px solid #c9c8db;border-radius:9px;background-color:#fff;color:var(--hw-ink);font:400 13.5px/1.5 var(--hw-text);box-shadow:none}
html.hw-skin .fm-paper .form-select{padding-inline-start:28px;background-position:left 8px center}
html.hw-skin .fm-paper .form-control.flatpickr-input{background-color:#fff}
html.hw-skin .fm-paper .form-control:focus,html.hw-skin .fm-paper .form-select:focus{border-color:var(--hw-indigo);outline:2px solid rgba(45,46,116,.18);outline-offset:0;box-shadow:none}
html.hw-skin .fm-paper .form-control[readonly]:not(.flatpickr-input){background:#f6f5fa;color:var(--hw-mute)}
html.hw-skin .fm-paper .form-control[type=file]{padding:6px 8px;line-height:1.7}
html.hw-skin .fm-paper input[type=number],html.hw-skin .fm-paper .mono{font-variant-numeric:tabular-nums}
html.hw-skin .fm-paper .hint,html.hw-skin .fm-paper .form-text,html.hw-skin .fm-paper .field-hint{color:var(--hw-mute);font-size:12px;font-weight:400;margin-top:3px}
html.hw-skin .fm-paper .secTitle,html.hw-skin .fm-paper h5,html.hw-skin .fm-paper h6{display:block;font:600 13px/1.5 var(--hw-text)!important;color:var(--hw-mute)!important;margin:6px 0 0;padding:0;background:none}
html.hw-skin .fm-paper .secDot{display:none}
html.hw-skin .fm-paper hr{margin:2px 0;border-color:var(--hw-line);opacity:1}
html.hw-skin .fm-paper .select2-container .select2-selection{min-height:38px;border:1px solid #c9c8db;border-radius:9px}
html.hw-skin .fm-paper .alert{font-size:12.5px;border-radius:10px;padding:8px 12px;margin:0;box-shadow:none}
html.hw-skin .fm-paper .table{margin-bottom:0;font-size:13px}
html.hw-skin .fm-paper .table thead th{background:#f6f5fa;color:var(--hw-mute);font-weight:600;font-size:12px;border-bottom:1px solid var(--hw-line)}
html.hw-skin .fm-paper .table-responsive,html.hw-skin .fm-tw{overflow-x:auto}
html.hw-skin .fm-req{font-style:normal;color:#c02a24}
html.hw-skin .fm-miss{border-color:#c02a24!important;background-color:#fff6f5!important}
html.hw-skin .fm-any.fm-miss,html.hw-skin [data-fm-any].fm-miss{border-radius:10px;outline:1px solid #c02a24;outline-offset:4px;background:none!important}
html.hw-skin .fm-sum{position:sticky;top:14px;background:var(--hw-night);color:#fff;border-radius:14px;padding:16px;min-width:0}
html.hw-skin .fm-sum h4{font:700 13px/1.5 var(--hw-text);color:#c9c8e6;margin:0}
html.hw-skin .fm-big{font:800 28px/1.3 var(--hw-disp);font-variant-numeric:tabular-nums;margin-top:2px;color:#fff;overflow-wrap:anywhere}
html.hw-skin .fm-big em{font:500 12px var(--hw-text);color:#c9c8e6}
html.hw-skin .fm-sum ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px;font-size:12.5px;color:#c9c8e6}
html.hw-skin .fm-sum li{display:flex;justify-content:space-between;gap:8px;min-width:0}
html.hw-skin .fm-sum li>b{color:#fff;font:600 13px/1.5 var(--hw-disp);font-variant-numeric:tabular-nums;text-align:left;min-width:0;overflow-wrap:anywhere}
html.hw-skin .fm-sum li>a{color:#fff;font:600 13px/1.5 var(--hw-disp);text-decoration:underline;text-underline-offset:3px;font-variant-numeric:tabular-nums}
html.hw-skin .fm-sum li.tot{border-top:1px dashed rgba(255,255,255,.25);padding-top:7px;margin-top:2px}
html.hw-skin .fm-sum small{display:block;color:#c9c8e6;font-size:12px;line-height:1.6;margin-top:10px}
html.hw-skin .fm-sum .fm-sum-a{margin-top:12px}
html.hw-skin .fm-sum .zb-btn{width:100%}
html.hw-skin [data-fm]>.zb-bar .zb-chip{border:0;cursor:default}
html.hw-skin [data-fm]>.zb-bar button.zb-chip.bad:not(:disabled){cursor:pointer;text-decoration:underline;text-underline-offset:3px}
html.hw-skin form>.zb-bar,html.hw-skin [data-fm]>.zb-bar{z-index:6}
html.hw-skin .fm-list{background:#fff;border:1px solid var(--hw-line);border-radius:14px;padding:4px 20px 14px;margin-top:14px;scroll-margin-top:14px;min-width:0;box-shadow:none}
html.hw-skin .fm-list-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding-block:12px 10px}
html.hw-skin .fm-list-h h4{font:700 15px/1.4 var(--hw-disp);color:var(--hw-ink);margin:0}
html.hw-skin .fm-list-h span{color:var(--hw-mute);font-size:12.5px}
html.hw-skin .fm-list table thead th{background:var(--hw-night);color:#fff;font-weight:600;font-size:12.5px;white-space:nowrap;border:0}
html.hw-skin .fm-list details{margin-top:10px;color:var(--hw-mute);font-size:12.5px}
html.hw-skin .fm-list summary{cursor:pointer;font-weight:600;color:var(--hw-indigo)}
html.hw-skin .fm-lone{margin-top:14px}
html.hw-skin .fm-del{margin-top:10px}
html.hw-skin .fm-del .btn-danger{width:auto;min-height:34px;padding:0 12px;border-radius:9px;background:#fff;color:#c02a24;border:1px solid #f0c4c1;font:500 12.5px/1.3 var(--hw-text);box-shadow:none}
html.hw-skin .fm-del .btn-danger:hover{background:#fde6e4}
@media(max-width:1200px){
  html.hw-skin .fm{grid-template-columns:170px minmax(0,1fr)}
  html.hw-skin .fm-sum{grid-column:2;position:static}
}
@media(max-width:800px){
  html.hw-skin .fm{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .fm-rail{position:static;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  html.hw-skin .fm-rail a{background:#fff;box-shadow:inset 0 0 0 1px var(--hw-line)}
  html.hw-skin .fm-rail a.on{box-shadow:inset 0 0 0 1px var(--hw-indigo)}
  html.hw-skin .fm-sum{grid-column:auto}
  html.hw-skin .fm-paper{padding:4px 14px 6px}
  html.hw-skin .fm-list{padding:4px 14px 12px}
  html.hw-skin [data-fm]>.zb-bar .a{width:100%}
  html.hw-skin [data-fm]>.zb-bar .a>*{flex:1 1 0}
}
html.hw-skin .fm-paper .loan-ctx{overflow-x:auto;max-width:100%}
html.hw-skin .fm-paper .table-wrap{overflow-x:auto;max-width:100%}
@media(max-width:800px){
  html.hw-skin [data-fm]>.zb-bar .a{flex-wrap:nowrap}
  html.hw-skin [data-fm]>.zb-bar .zb-btn{white-space:normal;line-height:1.25;padding:4px 8px;font-size:12.5px;min-width:0}
}

/* ═══ النموذج 1 «الملف»: رأس بهوية الشيء، شريط حقائق ملتصق، تبويبات، عمود القرار والأحداث ═══ */
html.hw-skin .pf{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);margin-top:14px}
html.hw-skin .pf-who{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap}
html.hw-skin .pf-who>div{min-width:0}
html.hw-skin .pf-who .hw-bar-t{margin:0}
html.hw-skin .pf-who .hw-bar-s a{color:inherit;text-decoration:none;border-bottom:1px dashed currentColor}
html.hw-skin .pf-av{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;flex:none;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);color:#fff;font:700 19px/1 var(--hw-disp)}
html.hw-skin .pf-av .hw-i{width:26px;height:26px}
html.hw-skin .pf-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font:600 12.5px/1.5 var(--hw-text);white-space:nowrap;background:rgba(255,255,255,.14);color:#fff}
html.hw-skin .pf-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
html.hw-skin .pf-chip.ok{background:#dff4ea;color:#0f7f55}
html.hw-skin .pf-chip.mid{background:#fdf0d3;color:#7d5000}
html.hw-skin .pf-chip.bad{background:#fde6e4;color:#c02a24}
html.hw-skin .pf-chip.off{background:#ecebf3;color:#5c5d7a}
html.hw-skin .pf-chip.sm{padding:2px 9px;font-size:12px}

html.hw-skin .pf-rib{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));background:#fff;border:1px solid var(--hw-line);border-radius:14px;position:sticky;top:8px;z-index:6;box-shadow:0 6px 18px rgba(20,20,58,.06)}
html.hw-skin .pf-rib>div{padding:11px 16px;border-inline-start:1px solid var(--hw-line);min-width:0}
html.hw-skin .pf-rib>div:first-child{border-inline-start:0}
html.hw-skin .pf-rib small{display:block;font-size:12px;color:var(--hw-mute)}
html.hw-skin .pf-rib b{display:block;font:700 18px/1.4 var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-night);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hw-skin .pf-rib b em{font:500 12px var(--hw-text);font-style:normal;color:var(--hw-mute)}
html.hw-skin .pf-rib .warn b{color:#9a5b00}
html.hw-skin .pf-rib .bad b{color:#c02a24}

html.hw-skin .pf-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
html.hw-skin .pf-main{background:#fff;border:1px solid var(--hw-line);border-radius:16px;padding:0 18px 18px;min-width:0}
html.hw-skin .pf-tabs{display:flex;gap:2px;border-bottom:1px solid var(--hw-line);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--hw-line) transparent;margin:0 -18px;padding:0 12px}
html.hw-skin .pf-tabs button{background:none;border:0;border-bottom:2.5px solid transparent;border-radius:0;padding:13px 13px 10px;margin-bottom:-1px;cursor:pointer;color:var(--hw-mute);font:500 14px var(--hw-text);white-space:nowrap}
html.hw-skin .pf-tabs button:hover{color:var(--hw-night)}
html.hw-skin .pf-tabs button.on{color:var(--hw-night);font-weight:700;border-bottom-color:var(--hw-indigo)}
html.hw-skin .pf-tabs button i{font-style:normal;font-size:11.5px;font-weight:600;background:var(--hw-tint);color:var(--hw-mute);padding:1px 7px;border-radius:999px;margin-inline-start:6px;font-variant-numeric:tabular-nums}
html.hw-skin .pf-pane{padding-top:16px;display:grid;gap:16px;min-width:0}
html.hw-skin .pf-pane[hidden]{display:none}
html.hw-skin .pf-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px 18px;margin:0}
html.hw-skin .pf-dl>div{min-width:0}
html.hw-skin .pf-dl dt{font-size:12px;color:var(--hw-mute);font-weight:500}
html.hw-skin .pf-dl dd{margin:2px 0 0;font-weight:600;color:var(--hw-night);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html.hw-skin .pf-dl .w{grid-column:1/-1}
html.hw-skin .pf-dl .w dd{white-space:pre-wrap;font-weight:500;line-height:1.8}
html.hw-skin .pf-t{font:700 14.5px/1.4 var(--hw-disp);color:var(--hw-night);margin:0}
html.hw-skin .pf-empty{color:var(--hw-mute);text-align:center;padding:22px 8px;margin:0}
html.hw-skin .pf-tw{overflow-x:auto;min-width:0}
html.hw-skin .pf-tw table{width:100%;border-collapse:collapse;margin:0}
html.hw-skin .pf-tw th{background:var(--hw-night);color:#fff;font:600 12px/1.4 var(--hw-text);padding:10px 12px;text-align:right;white-space:nowrap;border:0}
html.hw-skin .pf-tw th:first-child{border-start-start-radius:10px}
html.hw-skin .pf-tw th:last-child{border-start-end-radius:10px}
html.hw-skin .pf-tw td{padding:10px 12px;border-bottom:1px solid var(--hw-line);font-size:13px;vertical-align:top;font-variant-numeric:tabular-nums;background:#fff}
html.hw-skin .pf-tw tr:last-child td{border-bottom:0}
html.hw-skin .pf-pane .data-table{table-layout:auto}
html.hw-skin .pf-pane .data-table td .badge{white-space:nowrap}

html.hw-skin .pf-side{display:grid;gap:14px;min-width:0;position:sticky;top:92px}
html.hw-skin .pf-card{background:#fff;border:1px solid var(--hw-line);border-radius:16px;padding:14px 16px;min-width:0}
html.hw-skin .pf-card>.pf-t+*{margin-top:10px}
html.hw-skin .pf-alrt{display:grid;gap:9px}
html.hw-skin .pf-alrt>a,html.hw-skin .pf-alrt>div{display:flex;justify-content:space-between;gap:8px;align-items:center;color:inherit;text-decoration:none;font-weight:500}
html.hw-skin .pf-alrt>a:hover{color:var(--hw-indigo)}
html.hw-skin .pf-calm{color:var(--hw-mute);font-size:13px;margin:0}
html.hw-skin .pf-tl{list-style:none;margin:0;padding:0;display:grid;gap:12px}
html.hw-skin .pf-tl li{position:relative;padding-inline-start:16px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
html.hw-skin .pf-tl li::before{content:"";position:absolute;inset-inline-start:0;top:7px;width:7px;height:7px;border-radius:50%;background:var(--hw-indigo)}
html.hw-skin .pf-tl small{display:block;color:var(--hw-mute);font-size:12px;font-weight:400}
html.hw-skin .pf-side .row>[class*="col-"]{flex:0 0 100%;max-width:100%;width:100%}
html.hw-skin .pf-side .form-grid{grid-template-columns:minmax(0,1fr)}
html.hw-skin .pf-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html.hw-skin .pf-acts form{display:contents}

@media print{
  html.hw-skin [data-pf-pane][hidden]{display:grid!important}
  html.hw-skin .pf-tabs{display:none!important}
  html.hw-skin .pf-rib,html.hw-skin .pf-side{position:static;box-shadow:none}
  html.hw-skin .pf-body{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:1100px){
  html.hw-skin .pf-body{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .pf-side{position:static;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
  html.hw-skin .pf-pane .data-table{min-width:max-content}
  html.hw-skin .pf-pane .data-table th,html.hw-skin .pf-pane .data-table td{white-space:nowrap}
  html.hw-skin .pf-rib b{white-space:normal;overflow-wrap:anywhere}
}
@media (max-width:800px){
  html.hw-skin .pf-rib{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  html.hw-skin .pf-rib>div{border-inline-start:0;border-top:1px solid var(--hw-line);padding:9px 12px}
  html.hw-skin .pf-rib>div:nth-child(-n+2){border-top:0}
  html.hw-skin .pf-rib>div:nth-child(even){border-inline-start:1px solid var(--hw-line)}
  html.hw-skin .pf-rib>div:last-child:nth-child(odd){grid-column:1/-1}
  html.hw-skin .pf-rib b{font-size:16px}
  html.hw-skin .pf-main{padding:0 12px 14px}
  html.hw-skin .pf-tabs{margin:0 -12px;padding:0 6px}
  html.hw-skin .pf-tabs button{padding:12px 10px 9px;font-size:13.5px}
  html.hw-skin .pf-av{width:44px;height:44px;border-radius:13px;font-size:16px}
  html.hw-skin .pf-dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.hw-skin .pf-tabs{scrollbar-width:none}
  html.hw-skin .pf-tabs::-webkit-scrollbar{display:none}
}
html.hw-skin .pf-body.pf-solo{grid-template-columns:minmax(0,1fr)}
html.hw-skin .pf-chip.in{background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin .pf-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
html.hw-skin .pf-docs{display:grid;gap:8px}
html.hw-skin .pf-docs a{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--hw-line);border-radius:12px;color:var(--hw-night);text-decoration:none;font-weight:600}
html.hw-skin .pf-docs a:hover{border-color:var(--hw-indigo)}
html.hw-skin .pf-docs .hw-i{color:var(--hw-mute)}

/* ═══ النموذج 6 «التقرير»: خيارات أعلى، رقم يجيب، مخطط، توزيع جانبي، جدول بصف مجموع ═══ */
html.hw-skin .rp-f{background:#fff;border:1px solid var(--hw-line);border-radius:16px;padding:12px 14px;margin:14px 0 0;box-shadow:none}
html.hw-skin .rp-f form{margin:0}
html.hw-skin .rp-f .row{--bs-gutter-x:12px;--bs-gutter-y:10px;align-items:flex-end}
html.hw-skin .rp-f .row>[class*="col-"]{flex:0 0 auto;width:178px;max-width:100%}
html.hw-skin .rp-f .row>.rp-w{width:250px}
html.hw-skin .rp-f .row>.col-12:not([class*="col-md"]){width:100%}
html.hw-skin .rp-f label,html.hw-skin .rp-f .form-label,html.hw-skin .rp-f .form-labelx{font:500 12px/1.5 var(--hw-text);color:var(--hw-mute);margin-bottom:3px}
html.hw-skin .rp-f .form-control,html.hw-skin .rp-f .form-select,html.hw-skin .rp-f select,html.hw-skin .rp-f input:not([type=hidden]):not([type=checkbox]){min-height:36px;font-size:13px;border-radius:10px}
html.hw-skin .rp-f .btn,html.hw-skin .rp-f .zb-btn{min-height:36px}
html.hw-skin .rp-f .btn-primary,html.hw-skin .rp-f .btn-dark,html.hw-skin .rp-f button[type=submit]:not(.btn-outline-secondary){background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .rp-f .btn-primary:hover,html.hw-skin .rp-f .btn-dark:hover{background:var(--hw-indigo);border-color:var(--hw-indigo)}

html.hw-skin .rp-lead{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;margin:14px 0}
html.hw-skin .rp-lead.rp-solo{grid-template-columns:minmax(0,1fr)}
html.hw-skin .rp-ch,html.hw-skin .rp-side{background:#fff;border:1px solid var(--hw-line);border-radius:16px;min-width:0}
html.hw-skin .rp-ch{padding:16px 18px 14px}
html.hw-skin .rp-side{padding:16px 18px}
html.hw-skin .rp-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:6px 18px}
html.hw-skin .rp-big{font:800 40px/1.1 var(--hw-disp);color:var(--hw-night);font-variant-numeric:tabular-nums;letter-spacing:-.5px}
html.hw-skin .rp-big em{font:600 16px var(--hw-text);font-style:normal;color:var(--hw-mute);margin-inline-start:6px;letter-spacing:0}
html.hw-skin .rp-cmp{font-size:12.5px;color:var(--hw-mute);margin-top:4px;font-variant-numeric:tabular-nums}
html.hw-skin .rp-cht{font:600 12.5px var(--hw-text);color:var(--hw-mute)}
html.hw-skin .rp-none{color:var(--hw-mute);text-align:center;padding:34px 8px 20px;margin:0}
html.hw-skin .rp-bars{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:9px}
html.hw-skin .rp-bars li{display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr) auto;gap:10px;align-items:center;font-size:12.5px}
html.hw-skin .rp-bars span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--hw-ink)}
html.hw-skin .rp-bars i{display:block;height:10px;border-radius:999px;background:var(--hw-tint);overflow:hidden}
html.hw-skin .rp-bars s{display:block;height:100%;border-radius:999px;background:var(--hw-indigo);text-decoration:none}
html.hw-skin .rp-bars li.low s{background:var(--hw-sun)}
html.hw-skin .rp-bars b{font:600 12.5px var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-night);white-space:nowrap}
html.hw-skin .rp-cols{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,64px);justify-content:start;gap:3px;height:170px;align-items:end;margin-top:16px;padding-bottom:2px;border-bottom:1px solid var(--hw-line)}
html.hw-skin .rp-col{display:flex;flex-direction:column;justify-content:flex-end;height:100%;min-width:0}
html.hw-skin .rp-col i{display:block;background:var(--hw-indigo);border-radius:4px 4px 0 0;min-height:2px}
html.hw-skin .rp-col:hover i{background:var(--hw-night)}
html.hw-skin .rp-col.low i{background:var(--hw-sun)}
html.hw-skin .rp-col small{display:block;text-align:center;font-size:10.5px;color:var(--hw-mute);margin-top:4px;white-space:nowrap;overflow:hidden;font-variant-numeric:tabular-nums;height:15px}
html.hw-skin .rp-hb{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:10px}
html.hw-skin .rp-hb li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;font-size:12.5px}
html.hw-skin .rp-hb span,html.hw-skin .rp-hb a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--hw-ink);text-decoration:none}
html.hw-skin .rp-hb a:hover{color:var(--hw-indigo)}
html.hw-skin .rp-hb b{font:600 13px var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-night)}
html.hw-skin .rp-hb i{grid-column:1/-1;display:block;height:7px;border-radius:999px;background:var(--c,var(--hw-indigo));margin-inline-end:auto}

html.hw-skin .rp-tw{background:#fff;border:1px solid var(--hw-line);border-radius:16px;overflow:hidden;min-width:0;margin-top:14px}
html.hw-skin .rp-tw>.rp-th{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--hw-line)}
html.hw-skin .rp-tw>.rp-th h2,html.hw-skin .rp-tw>.rp-th h3{font:700 14.5px/1.4 var(--hw-disp);color:var(--hw-night);margin:0}
html.hw-skin .rp-tw>.rp-th p{margin:0;font-size:12px;color:var(--hw-mute)}
html.hw-skin .rp-tw .table-responsive,html.hw-skin .rp-tw .table-wrap{margin:0;border:0;border-radius:0}
html.hw-skin .rp-tw table{margin:0}
html.hw-skin .rp-tot td,html.hw-skin .rp-tot th{font-weight:700!important;background:var(--hw-tint)!important;color:var(--hw-night)!important;border-top:2px solid var(--hw-night)!important;font-variant-numeric:tabular-nums;white-space:nowrap}
html.hw-skin .rp-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

@media (max-width:1100px){
  html.hw-skin .rp-lead{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:800px){
  html.hw-skin .rp-big{font-size:32px}
  html.hw-skin .rp-bars li{grid-template-columns:minmax(0,105px) minmax(0,1fr) auto;gap:8px}
  html.hw-skin .rp-cols{height:130px}
  html.hw-skin .rp-f .row>[class*="col-"],html.hw-skin .rp-f .row>.rp-w{width:calc(50% - 0px)}
}
@media print{
  html.hw-skin .rp-f{display:none!important}
  html.hw-skin .rp-lead{grid-template-columns:minmax(0,1fr) 260px}
}

/* بطاقات الأقسام تحت المخطط (التسويات): بيضاء بحافة علوية بلون الحالة */
html.hw-skin .rp-cards{gap:14px;margin:14px 0}
html.hw-skin .rp-cards .report-card{border:1px solid var(--hw-line);border-top:3px solid var(--hw-indigo);border-radius:16px;box-shadow:none;transform:none}
html.hw-skin .rp-cards .report-card:nth-child(2){border-top-color:var(--hw-sun)}
html.hw-skin .rp-cards .report-card:nth-child(3){border-top-color:var(--hw-bad)}
html.hw-skin .rp-cards .report-card:hover{border-color:var(--hw-indigo);transform:none;box-shadow:0 6px 18px rgba(20,24,60,.06)}
html.hw-skin .rp-cards .report-card-header{background:#fff;border-bottom:1px solid var(--hw-line);padding:12px 16px}
html.hw-skin .rp-cards .report-card-header h3{font:700 14.5px/1.4 var(--hw-disp);color:var(--hw-night)}
html.hw-skin .rp-cards .report-card-header .badge-count{background:var(--hw-tint);color:var(--hw-night);font:700 12.5px var(--hw-disp);font-variant-numeric:tabular-nums}
html.hw-skin .rp-cards .report-mini-stat{background:var(--hw-tint);border-radius:10px}
html.hw-skin .rp-cards .report-mini-stat .num{font:700 18px var(--hw-disp);color:var(--hw-night);font-variant-numeric:tabular-nums}
html.hw-skin .rp-cards .report-mini-stat .lbl{font:500 12px var(--hw-text);color:var(--hw-mute)}
html.hw-skin .rp-cards .report-card-footer{background:#fff}
html.hw-skin .rp-cards .report-card-footer span{font:600 12.5px var(--hw-text);color:var(--hw-indigo)}

/* ═══ النموذج 7 «التقويم»: شهر من الأحد بهجري صغير وأشرطة أحداث، ولوحة اليوم بجانبه ═══ */
html.hw-skin .cl-nav{display:inline-flex;align-items:center;gap:2px;border:1px solid rgba(255,255,255,.28);border-radius:12px;min-height:38px;overflow:hidden}
html.hw-skin .cl-nav a{display:grid;place-items:center;align-self:stretch;width:34px;color:#fff;text-decoration:none;font:700 18px/1 var(--hw-disp)}
html.hw-skin .cl-nav a:hover{background:rgba(255,255,255,.1)}
html.hw-skin .cl-nav strong{font:700 14px var(--hw-disp);color:#fff;min-width:108px;text-align:center}
html.hw-skin .rp-f .cl-chk{width:auto!important;align-self:center}
html.hw-skin .rp-f .cl-chk .form-check{margin:22px 0 0;font-size:13px}

html.hw-skin .cl{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px;align-items:start;margin-top:14px}
html.hw-skin .cl-b,html.hw-skin .cl-s{background:#fff;border:1px solid var(--hw-line);border-radius:16px;min-width:0}
html.hw-skin .cl-b{overflow:clip}
html.hw-skin .cl-w,html.hw-skin .cl-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
html.hw-skin .cl-w{background:var(--hw-tint);font:600 12px var(--hw-text);color:var(--hw-mute);text-align:center}
html.hw-skin .cl-w div{padding:8px 2px}
html.hw-skin .cl-d{position:relative;display:block;width:100%;min-width:0;min-height:96px;margin:0;padding:4px 0 6px;border:0;border-top:1px solid var(--hw-line);border-inline-start:1px solid var(--hw-line);background:#fff;text-align:right;cursor:pointer;font:inherit;color:inherit}
html.hw-skin .cl-g>.cl-d:nth-child(7n+1){border-inline-start:0}
html.hw-skin .cl-d:hover{background:#fafafd}
html.hw-skin .cl-d.we{background:#f8f8fb}
html.hw-skin .cl-d.out{visibility:hidden}
html.hw-skin .cl-d.sel{box-shadow:inset 0 0 0 2px var(--hw-indigo)}
html.hw-skin .cl-n{display:flex;justify-content:space-between;align-items:center;padding-inline:7px;margin-bottom:3px}
html.hw-skin .cl-n b{font:600 13px var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-ink)}
html.hw-skin .cl-n small{font-size:10.5px;color:var(--hw-mute);font-variant-numeric:tabular-nums}
html.hw-skin .cl-d.today .cl-n b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--hw-indigo);color:#fff}
html.hw-skin .cl-ev{display:block;height:18px;line-height:18px;font:600 11px var(--hw-text);padding-inline:6px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hw-skin .cl-ev.s{border-radius:0 5px 5px 0;margin-inline-start:3px}
html.hw-skin .cl-ev.e{border-radius:5px 0 0 5px;margin-inline-end:3px}
html.hw-skin .cl-ev.s.e{border-radius:5px}
html.hw-skin .cl-ev.gap{visibility:hidden}
html.hw-skin .cl-ev:not(.e){position:relative;z-index:1;margin-inline-end:-1px}
html.hw-skin .cl-ev.e-ok{background:#dff4ea;color:var(--hw-ok)}
html.hw-skin .cl-ev.e-mid{background:#fdf0d3;color:#7d5000}
html.hw-skin .cl-ev.e-bad{background:#fde6e4;color:var(--hw-bad)}
html.hw-skin .cl-ev.e-off{background:#ecebf3;color:var(--hw-mute);text-decoration:line-through}
html.hw-skin .cl-more{display:block;padding-inline:7px;font:600 10.5px var(--hw-text);color:var(--hw-mute)}

html.hw-skin .cl-s{position:sticky;top:84px;padding:16px 18px}
html.hw-skin .cl-s h2{font:700 15px/1.4 var(--hw-disp);color:var(--hw-night);margin:0}
html.hw-skin .cl-s>small{display:block;color:var(--hw-mute);font-size:12px}
html.hw-skin .cl-cap{display:flex;align-items:baseline;gap:6px;margin-top:10px;padding-bottom:10px;border-bottom:1px solid var(--hw-line)}
html.hw-skin .cl-cap b{font:800 26px var(--hw-disp);color:var(--hw-night);font-variant-numeric:tabular-nums}
html.hw-skin .cl-cap small{color:var(--hw-mute);font-size:12.5px}
html.hw-skin .cl-li{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:9px;max-height:420px;overflow:auto}
html.hw-skin .cl-li li{display:flex;align-items:center;gap:9px;font-size:12.5px}
html.hw-skin .cl-li div{flex:1;min-width:0}
html.hw-skin .cl-li b{display:block;font-weight:600;color:var(--hw-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hw-skin .cl-li small{display:block;color:var(--hw-mute);font-variant-numeric:tabular-nums}
html.hw-skin .cl-chip{flex:none;padding:2px 9px;border-radius:999px;font:600 11.5px var(--hw-text)}
html.hw-skin .cl-chip.c-ok{background:#dff4ea;color:var(--hw-ok)}
html.hw-skin .cl-chip.c-mid{background:#fdf0d3;color:#7d5000}
html.hw-skin .cl-chip.c-bad{background:#fde6e4;color:var(--hw-bad)}
html.hw-skin .cl-chip.c-off{background:#ecebf3;color:var(--hw-mute)}
html.hw-skin .cl-none{color:var(--hw-mute);margin:12px 0 0;font-size:12.5px}

html.hw-skin .cl-leg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:10px 2px 0;font-size:12.5px;color:var(--hw-mute)}
html.hw-skin .cl-leg span{display:inline-flex;align-items:center;gap:6px}
html.hw-skin .cl-leg i{display:inline-block;width:11px;height:11px;border-radius:3px;background:var(--hw-tint)}
html.hw-skin .cl-leg b{font:600 12.5px var(--hw-disp);color:var(--hw-night);font-variant-numeric:tabular-nums}
html.hw-skin .cl-leg .c-ok i{background:#bfe8d4}
html.hw-skin .cl-leg .c-mid i{background:#f8d999}
html.hw-skin .cl-leg .c-bad i{background:#f5c2be}
html.hw-skin .cl-leg .c-ind i{background:var(--hw-indigo)}
html.hw-skin .cl-leg .c-off i{background:#d6d5e3}
html.hw-skin .cl-leg .c-st i{background:repeating-linear-gradient(135deg,#d6d5e3 0 3px,#fff 3px 5px);border:1px solid #d6d5e3}
html.hw-skin .cl-leg-t{margin-inline-start:auto}

/* العطل الرسمية: السنة في اثني عشر شهرًا صغيرًا */
html.hw-skin .oh-y{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:visible}
html.hw-skin .oh-m{padding:12px 14px 14px;border-top:1px solid var(--hw-line);border-inline-start:1px solid var(--hw-line);min-width:0}
html.hw-skin .oh-m:nth-child(-n+4){border-top:0}
html.hw-skin .oh-m:nth-child(4n+1){border-inline-start:0}
html.hw-skin .oh-m h3{font:700 13.5px/1.3 var(--hw-disp);color:var(--hw-night);margin:0 0 8px;display:flex;justify-content:space-between;align-items:baseline;gap:6px}
html.hw-skin .oh-m h3 small{font:500 10.5px var(--hw-text);color:var(--hw-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html.hw-skin .oh-w,html.hw-skin .oh-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
html.hw-skin .oh-w span{font-size:10px;color:var(--hw-mute)}
html.hw-skin .oh-d{display:grid;place-items:center;height:24px;border-radius:6px;font:500 11.5px var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-ink);border:0;padding:0;background:none}
html.hw-skin .oh-d.out{visibility:hidden}
html.hw-skin .oh-d.we{color:#a3a3bd}
html.hw-skin .oh-d.today{box-shadow:inset 0 0 0 1.5px var(--hw-indigo);font-weight:700}
html.hw-skin button.oh-d{cursor:pointer;font-weight:700}
html.hw-skin .oh-d.h-up{background:var(--hw-indigo);color:#fff}
html.hw-skin .oh-d.h-now{background:var(--hw-ok);color:#fff}
html.hw-skin .oh-d.h-past{background:#d6d5e3;color:var(--hw-ink)}
html.hw-skin .oh-d.h-off{background:repeating-linear-gradient(135deg,#d6d5e3 0 3px,#fff 3px 5px);color:var(--hw-mute)}
html.hw-skin button.oh-d:hover{filter:brightness(1.12)}
html.hw-skin .oh-nx{border:0;background:none;padding:0;font:inherit;color:inherit;text-align:start;cursor:pointer}
html.hw-skin .oh-nx:hover{color:var(--hw-indigo)}
html.hw-skin .oh-s .mt-kpis{grid-template-columns:minmax(0,1fr);gap:0;margin:8px 0 0}
html.hw-skin .oh-s .mt-kpi{display:flex;justify-content:space-between;align-items:center;padding:10px 4px;border:0;border-bottom:1px solid var(--hw-line);border-radius:0;box-shadow:none;transform:none;text-align:start;background:none}
html.hw-skin .oh-s .mt-kpi:last-child{border-bottom:0}
html.hw-skin .oh-s .mt-kpi::before{top:50%;bottom:auto;left:auto;right:-18px;width:3px;height:22px;transform:translateY(-50%);border-radius:0 3px 3px 0;opacity:0}
html.hw-skin .oh-s .mt-kpi.on::before{opacity:1}
html.hw-skin .oh-s .mt-kpi.on{box-shadow:none}
html.hw-skin .oh-s .mt-kpi.on .kt{color:var(--hw-night);font-weight:700}
html.hw-skin .oh-s .mt-kpi .kt{font:500 13px var(--hw-text);color:var(--hw-ink);gap:8px}
html.hw-skin .oh-s .mt-kpi .ki{width:20px;height:20px;border-radius:6px}
html.hw-skin .oh-s .mt-kpi .kv{font:700 16px var(--hw-disp);margin:0}

@media (max-width:1200px){
  html.hw-skin .oh-y{grid-template-columns:repeat(3,minmax(0,1fr))}
  html.hw-skin .oh-m:nth-child(-n+4){border-top:1px solid var(--hw-line)}
  html.hw-skin .oh-m:nth-child(-n+3){border-top:0}
  html.hw-skin .oh-m:nth-child(4n+1){border-inline-start:1px solid var(--hw-line)}
  html.hw-skin .oh-m:nth-child(3n+1){border-inline-start:0}
}
@media (max-width:1100px){
  html.hw-skin .cl{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .cl-s{position:static}
}
@media (max-width:800px){
  html.hw-skin .cl-d{min-height:62px;padding:3px 0}
  html.hw-skin .cl-n{padding-inline:4px;flex-direction:column;align-items:flex-start;gap:0}
  html.hw-skin .cl-n small{display:none}
  html.hw-skin .cl-ev{height:7px;font-size:0;padding:0;margin-bottom:2px}
  html.hw-skin .cl-w div{font-size:0}
  html.hw-skin .cl-w div::after{content:attr(data-s);font-size:12px}
  html.hw-skin .oh-y{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.hw-skin .oh-m:nth-child(-n+3){border-top:1px solid var(--hw-line)}
  html.hw-skin .oh-m:nth-child(-n+2){border-top:0}
  html.hw-skin .oh-m:nth-child(3n+1){border-inline-start:1px solid var(--hw-line)}
  html.hw-skin .oh-m:nth-child(2n+1){border-inline-start:0}
  html.hw-skin .cl-nav strong{min-width:84px;font-size:13px}
  html.hw-skin .rp-f .cl-chk{width:100%!important}
  html.hw-skin .rp-f .cl-chk .form-check{margin-top:4px}
  html.hw-skin .cl-leg-t{margin-inline-start:0;width:100%}
}
@media (max-width:480px){
  html.hw-skin .oh-y{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .oh-m{border-inline-start:0!important;border-top:1px solid var(--hw-line)!important}
  html.hw-skin .oh-m:first-child{border-top:0!important}
}

/* ═══ دفعة الوارد (النموذج 9) ═══ */
/* ألسنةٌ بعدّادات */
html.hw-skin .ibx{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
html.hw-skin .ib-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 10px}
html.hw-skin .ib-tabs a{display:inline-flex;gap:7px;align-items:center;min-height:36px;padding:0 13px;border-radius:10px;background:#fff;border:1px solid var(--hw-line);color:var(--hw-mute);font:500 13.5px var(--hw-text);text-decoration:none;white-space:nowrap}
html.hw-skin .ib-tabs a:hover{border-color:#c9c8db;color:var(--hw-ink)}
html.hw-skin .ib-tabs a .hw-i{width:15px;height:15px;opacity:.75}
html.hw-skin .ib-tabs a b{font:700 12px var(--hw-disp);color:var(--hw-ink);font-variant-numeric:tabular-nums;min-width:18px;text-align:center}
html.hw-skin .ib-tabs a b.hot{background:var(--hw-bad);color:#fff;border-radius:999px;padding:1px 7px}
html.hw-skin .ib-tabs a.on{background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .ib-tabs a.on b{color:#fff}
html.hw-skin .ib-tabs a.on b.hot{background:#fff;color:var(--hw-bad)}
/* البحث */
html.hw-skin .ib-f{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:0 0 10px}
html.hw-skin .ib-f .form-control{flex:1 1 220px;max-width:360px;height:38px;border-radius:10px}
html.hw-skin .ib-f label{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:var(--hw-ink);margin:0;cursor:pointer}
html.hw-skin .ib-f .hw-btn{min-height:38px}
html.hw-skin .ib-clr{font-size:13px;color:var(--hw-mute);text-decoration:underline;text-underline-offset:3px}
html.hw-skin .ib-q{font-style:normal;font-size:12px;color:var(--hw-mute);cursor:help}
/* القائمة والتفصيل */
html.hw-skin .ib{display:grid;grid-template-columns:360px minmax(0,1fr);background:#fff;border:1px solid var(--hw-line);border-radius:14px;overflow:clip;min-height:420px;align-items:start}
html.hw-skin .ib.solo{grid-template-columns:minmax(0,1fr);min-height:0}
html.hw-skin .ib-l{display:grid;align-content:start;border-inline-end:1px solid var(--hw-line);max-height:calc(100vh - 170px);overflow:auto;overscroll-behavior:contain}
html.hw-skin .ib.solo .ib-l{border:0;max-height:none}
html.hw-skin .ib-i{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 10px;align-items:center;width:100%;text-align:right;background:none;border:0;border-bottom:1px solid var(--hw-line);padding:11px 14px;cursor:pointer;position:relative;color:var(--hw-ink);text-decoration:none;font:inherit}
html.hw-skin .ib-i:last-child{border-bottom:0}
html.hw-skin .ib-i:hover{background:#fafafd;color:var(--hw-ink)}
html.hw-skin .ib-i:focus-visible{outline:2px solid var(--hw-indigo);outline-offset:-2px}
html.hw-skin .ib-i.on{background:var(--hw-tint);box-shadow:inset -3px 0 0 var(--hw-indigo)}
html.hw-skin .ib-i:target{background:var(--hw-tint)}
html.hw-skin .ib-i .ty{grid-row:span 2;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--hw-tint);color:var(--hw-indigo)}
html.hw-skin .ib-i .ty .hw-i{width:17px;height:17px}
html.hw-skin .ib-i.on .ty{background:#fff}
html.hw-skin .ib-i b{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hw-skin .ib-i small{font-size:12px;color:var(--hw-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;grid-column:2/-1}
html.hw-skin .ib-i small em{font-style:normal;font-weight:600}
html.hw-skin .ib-i time{font-size:11.5px;color:var(--hw-mute);white-space:nowrap;font-variant-numeric:tabular-nums}
html.hw-skin .ib-i time.late{color:var(--hw-bad);font-weight:600}
html.hw-skin .ib-i.closed b,html.hw-skin .ib-i.closed small{opacity:.6}
html.hw-skin .ib-i.new b{font-weight:700}
html.hw-skin .ib-i.new::before{content:"";position:absolute;inset-inline-start:5px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--hw-bad)}
html.hw-skin .s-new,html.hw-skin .s-rejected{color:var(--hw-bad)}
html.hw-skin .s-approved{color:var(--hw-ok)}
html.hw-skin .s-cancelled{color:var(--hw-mute)}
/* البند في القائمة الوحيدة: رقمٌ وزرّ نصي */
html.hw-skin .ib.solo .ib-i{grid-template-columns:auto minmax(0,1fr) auto auto}
html.hw-skin .ib.solo .ib-i small{grid-column:2/3}
html.hw-skin .ib-n{font-style:normal;grid-row:1/3;grid-column:4;align-self:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--hw-ok);color:#fff;font:700 11.5px/22px var(--hw-disp);text-align:center}
html.hw-skin .ib-go{grid-row:2;grid-column:3/-1;justify-self:end;font-size:12px;color:var(--hw-indigo);font-weight:600}
html.hw-skin .ib-none{display:flex;gap:10px;align-items:center;padding:28px 18px;color:var(--hw-mute);font-size:14px}
html.hw-skin .ib-none .hw-i{width:22px;height:22px;opacity:.6}
html.hw-skin .ib-more{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:12px 14px;font-size:12px;color:var(--hw-mute);background:#fafafd}
html.hw-skin .ib-more .hw-btn{min-height:32px;font-size:12.5px}
/* التفصيل */
html.hw-skin .ib-d{display:flex;flex-direction:column;min-width:0;position:sticky;top:0}
html.hw-skin .ib-d>form,html.hw-skin .ib-pane{display:flex;flex-direction:column;min-width:0}
html.hw-skin .ib-pane[hidden]{display:none}
html.hw-skin .ib-dh{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--hw-line)}
html.hw-skin .ib-dh>div{flex:1;min-width:160px}
html.hw-skin .ib-dh h4{font:700 16px/1.35 var(--hw-disp);margin:0;color:var(--hw-ink)}
html.hw-skin .ib-dh small{color:var(--hw-mute);font-size:12.5px;font-variant-numeric:tabular-nums}
html.hw-skin .ib-dh .av{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--hw-night);color:#fff;font:700 15px var(--hw-disp);flex:none}
html.hw-skin .ib-dh .av .hw-i{width:18px;height:18px}
html.hw-skin .ib-db{padding:14px 18px;display:grid;gap:14px;align-content:start}
html.hw-skin .ib-ask{font:700 18px/1.5 var(--hw-disp);margin:0;color:var(--hw-ink)}
html.hw-skin .ib-ask small{display:block;font:400 13px/1.7 var(--hw-text);color:var(--hw-mute);margin-top:3px;white-space:pre-wrap}
html.hw-skin .ib-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:var(--hw-tint);border-radius:11px;padding:11px 14px}
html.hw-skin .ib-facts small{display:block;color:var(--hw-mute);font-size:12px}
html.hw-skin .ib-facts b{font:700 14.5px var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-ink);overflow-wrap:anywhere}
html.hw-skin .ib-facts b a{font:600 13px var(--hw-text)}
html.hw-skin .ib-facts b.ok,html.hw-skin .ib-bal b.ok{color:var(--hw-ok)}
html.hw-skin .ib-facts b.bad{color:var(--hw-bad)}
html.hw-skin .ib-bal{background:#fff;border:1px solid var(--hw-line);grid-template-columns:repeat(4,minmax(0,1fr))}
html.hw-skin .ib-warn{margin:0;padding:8px 12px;border-radius:10px;background:var(--hw-bad-b);color:var(--hw-bad);font-size:13px;font-weight:600}
html.hw-skin .ib-txt{white-space:pre-wrap;line-height:1.85;font-size:14px;color:var(--hw-ink);background:#fafafd;border:1px solid var(--hw-line);border-radius:11px;padding:12px 14px;max-height:340px;overflow:auto}
html.hw-skin .ib-att{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
html.hw-skin .ib-att img,html.hw-skin .ib-att iframe{max-width:min(100%,260px);max-height:200px;object-fit:contain;border:1px solid var(--hw-line);border-radius:10px;cursor:zoom-in;display:block}
html.hw-skin .ib-att iframe{width:260px;height:200px;cursor:auto}
html.hw-skin .ib-att>div{display:grid;gap:4px;font-size:13px;min-width:0}
html.hw-skin .ib-att>div b{font-weight:600;overflow-wrap:anywhere}
html.hw-skin .ib-att-no{margin:0;font-size:13px;color:var(--hw-mute)}
/* سلسلة الاعتماد */
html.hw-skin .ib-chain{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 0}
html.hw-skin .ib-chain li{display:flex;gap:8px;align-items:center;flex:1 1 160px;position:relative;padding-inline-end:18px}
html.hw-skin .ib-chain li:not(:last-child)::after{content:"";position:absolute;inset-inline-end:4px;top:50%;width:10px;border-top:2px dotted #c9c8db}
html.hw-skin .ib-chain b{display:block;font-size:13px;font-weight:600;color:var(--hw-ink)}
html.hw-skin .ib-chain small{display:block;font-size:12px;color:var(--hw-mute);font-variant-numeric:tabular-nums}
html.hw-skin .st-dot{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;flex:none}
html.hw-skin .st-dot .hw-i{width:13px;height:13px}
html.hw-skin .st-dot.ok{background:var(--hw-ok-b);color:var(--hw-ok)}
html.hw-skin .st-dot.now{background:#f5a83a;color:var(--hw-sun-ink)}
html.hw-skin .st-dot.bad{background:var(--hw-bad-b);color:var(--hw-bad)}
html.hw-skin .st-dot.wait{background:#ecebf3;color:var(--hw-mute)}
/* شريط القرار */
html.hw-skin .ib-af{display:grid;gap:10px;padding:12px 18px;border-top:1px solid var(--hw-line);background:#fafafd}
html.hw-skin .ib-af textarea{border-radius:10px;font-size:13.5px;min-height:62px}
html.hw-skin .ib-af textarea[hidden]{display:none}
html.hw-skin .ib-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html.hw-skin .ib-acts .sp{flex:1}
html.hw-skin .ib-acts .hw-btn{min-height:40px}
html.hw-skin .ib-acts .hw-btn[hidden]{display:none}
html.hw-skin .ib-acts .hw-btn-sun{background:#f5a83a;color:var(--hw-sun-ink)}
html.hw-skin .ib-acts .hw-btn-sun:hover{background:#ffb94f}
html.hw-skin .ib-no{color:var(--hw-bad);border-color:#f0c4c0}
html.hw-skin .ib-no:hover{background:var(--hw-bad-b);color:var(--hw-bad)}
html.hw-skin .ib-lnk{font-size:13px;color:var(--hw-indigo);font-weight:600}
html.hw-skin .ib-lnk[hidden]{display:none}
html.hw-skin .ib-sal{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
html.hw-skin .ib-sal[hidden]{display:none}
html.hw-skin .ib-sal label{font-size:13px;font-weight:600;margin:0}
html.hw-skin .ib-sal .form-select{width:auto;min-width:150px;height:36px;border-radius:10px}
/* شريط أرقام مركز الإشعارات */
html.hw-skin .ib-strip{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;background:#fff;border:1px solid var(--hw-line);border-radius:14px;padding:12px 16px;margin:14px 0 12px}
html.hw-skin .ib-strip>div small{display:block;font-size:12px;color:var(--hw-mute)}
html.hw-skin .ib-strip>div b{font:700 20px var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-ink)}
html.hw-skin .ib-push{flex:1 1 280px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin:0;justify-content:flex-end;font-size:13px;font-weight:600}
html.hw-skin .ib-push small{flex-basis:100%;text-align:left;font-weight:400;color:var(--hw-mute);font-size:12px;font-variant-numeric:tabular-nums}
html.hw-skin .ib-led{width:8px;height:8px;border-radius:50%;background:var(--hw-mute)}
html.hw-skin .ib-push.ok{color:var(--hw-ok)}
html.hw-skin .ib-push.ok .ib-led{background:var(--hw-ok);box-shadow:0 0 6px rgba(15,127,85,.6)}
html.hw-skin .ib-push.bad{color:var(--hw-bad)}
html.hw-skin .ib-push.bad .ib-led{background:var(--hw-bad)}
/* نافذة الإرسال */
html.hw-skin dialog.ib-dlg{width:min(620px,calc(100vw - 32px));max-height:calc(100vh - 40px)}
html.hw-skin dialog.ib-dlg form{display:flex;flex-direction:column;max-height:calc(100vh - 40px)}
html.hw-skin .ib-dlg-b{display:grid;gap:12px;overflow:auto}
html.hw-skin .ib-dlg-b .form-label{font-size:13px;font-weight:600;margin-bottom:4px}
html.hw-skin .ib-dlg-b .form-control,html.hw-skin .ib-dlg-b .form-select{border-radius:10px}
html.hw-skin .ib-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
html.hw-skin .hw-cd-ok{background:#f5a83a;border:1px solid #f5a83a;color:var(--hw-sun-ink)}
/* التجاوب */
@media (max-width:1000px){
  html.hw-skin .ib{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .ib-l{border-inline-end:0;border-bottom:1px solid var(--hw-line);max-height:46vh}
  html.hw-skin .ib.solo .ib-l{border-bottom:0}
  html.hw-skin .ib-d{position:static;scroll-margin-top:70px}
  html.hw-skin #ibSg .ib-d{display:none}
  html.hw-skin #ibSg .ib-l{max-height:none;border-bottom:0}
}
@media (max-width:560px){
  html.hw-skin .ib-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-2px;padding:2px}
  html.hw-skin .ib-tabs a{flex:none}
  html.hw-skin .ib-f .form-control{max-width:none;flex-basis:100%}
  html.hw-skin .ib-dh,html.hw-skin .ib-db,html.hw-skin .ib-af{padding-inline:14px}
  html.hw-skin .ib-ask{font-size:16px}
  html.hw-skin .ib-facts,html.hw-skin .ib-bal{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.hw-skin .ib-chain li{flex-basis:100%}
  html.hw-skin .ib-chain li::after{display:none}
  html.hw-skin .ib-push{justify-content:flex-start}
  html.hw-skin .ib-push small{text-align:right}
}

/* ═══ دفعة المسيرة (النموذج 8) ═══ */
/* الرأس وخط المراحل */
html.hw-skin .wz-bar{display:block;padding-bottom:34px}
html.hw-skin .wz-top{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between}
html.hw-skin .wz-t{min-width:0}
html.hw-skin .wz-bar .p-h1{color:#fff;font:700 20px/1.4 var(--hw-disp);margin:0}
html.hw-skin .wz-bar .p-sub{color:rgba(255,255,255,.78);font-size:13px;font-weight:400;margin:2px 0 0}
html.hw-skin .wz-bar .p-sub b{font-weight:600;color:#fff}
html.hw-skin .wz-bar .rv-back{color:rgba(255,255,255,.78);font-weight:500}
html.hw-skin .wz-bar .rv-back:hover{color:#fff}
html.hw-skin .wz-i{font-style:normal;font-size:12px;opacity:.75;cursor:help}
html.hw-skin .wz-bar .p-btn,html.hw-skin .wz-bar .btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.28);color:#fff;font-weight:500}
html.hw-skin .wz-bar .p-btn:hover,html.hw-skin .wz-bar .btn:hover{background:rgba(255,255,255,.2);color:#fff}
html.hw-skin .wz-bar .p-btn[disabled]{opacity:.45}
html.hw-skin .wz-bar .p-btn.primary{background:#f5a83a;border-color:#f5a83a;color:var(--hw-sun-ink);font-weight:600}
html.hw-skin .wz-bar .p-btn.primary:hover{background:#ffb94f;color:var(--hw-sun-ink)}
html.hw-skin .wz-bar .btn.danger,html.hw-skin .wz-bar .p-btn.ghost{background:none;border-color:rgba(255,255,255,.28);color:#ffc9c4!important}
html.hw-skin .wz-bar .p-btn.warn{background:none;border-color:rgba(255,255,255,.28);color:#fff}
html.hw-skin .wz-line{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px}
html.hw-skin .wz-line.five{grid-template-columns:repeat(5,minmax(0,1fr))}
html.hw-skin .wz-line[hidden]{display:none}
html.hw-skin .wz-line>*{position:relative;background:none;border:0;color:rgba(255,255,255,.82);display:grid;justify-items:center;align-content:start;gap:3px;font-size:12.5px;padding:0 2px;min-width:0;text-align:center;text-decoration:none}
html.hw-skin .wz-line>a,html.hw-skin .wz-line>button{cursor:pointer}
html.hw-skin .wz-line>a:hover,html.hw-skin .wz-line>button:not(:disabled):hover{color:#fff}
html.hw-skin .wz-line>.off,html.hw-skin .wz-line>button:disabled{cursor:not-allowed;opacity:.62}
html.hw-skin .wz-line>*::before{content:"";position:absolute;top:13px;left:50%;width:100%;height:2px;background:rgba(255,255,255,.22)}
html.hw-skin .wz-line>:first-child::before{display:none}
html.hw-skin .wz-line>.done::before,html.hw-skin .wz-line>.cur::before{background:#6fd3a8}
html.hw-skin .wz-line b{font-weight:500;line-height:1.35}
html.hw-skin .wz-line small{font-size:11.5px;opacity:.72}
html.hw-skin .wz-line .cur{color:#fff}
html.hw-skin .wz-line .cur b{font-weight:700}
html.hw-skin .wz-d{position:relative;z-index:1;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--hw-night2);border:2px solid rgba(255,255,255,.28);font:700 12px var(--hw-disp);color:#fff}
html.hw-skin .wz-d .hw-i{width:14px;height:14px}
html.hw-skin .wz-line .done .wz-d,html.hw-skin .wz-line>.done .wz-d{background:#0f7f55;border-color:#0f7f55}
html.hw-skin .wz-line>.cur .wz-d{background:#f5a83a;border-color:#f5a83a;color:var(--hw-sun-ink)}
/* العمل والملخص */
html.hw-skin .wz{display:flex;flex-direction:column;gap:14px;min-width:0}
html.hw-skin .wz-m{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;align-content:start}
html.hw-skin .wz-s{order:-1;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.5fr);gap:2px 30px;align-items:center;background:#fff;border:1px solid var(--hw-line);border-radius:14px;padding:12px 16px}
html.hw-skin .wz-s h4{font:600 12.5px var(--hw-text);color:var(--hw-mute);margin:0;grid-column:1}
html.hw-skin .wz-net{font:800 26px/1.3 var(--hw-disp);font-variant-numeric:tabular-nums;color:var(--hw-ink);grid-column:1;white-space:nowrap}
html.hw-skin .wz-net b{font-weight:800}
html.hw-skin .wz-net em{font:500 12px var(--hw-text);color:var(--hw-mute);font-style:normal}
html.hw-skin .wz-s>ul:nth-of-type(1){grid-column:2;grid-row:1/3}
html.hw-skin .wz-s>ul:nth-of-type(2){grid-column:3;grid-row:1/3;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
html.hw-skin .wz-m .btn.primary{background:var(--hw-night);border-color:var(--hw-night);color:#fff}
html.hw-skin .wz-m .btn.primary:hover{background:var(--hw-indigo);border-color:var(--hw-indigo);color:#fff}
html.hw-skin .wz-bar::before{opacity:.32}
html.hw-skin .wz-c{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:12.5px;min-width:0}
html.hw-skin .wz-c li{display:flex;justify-content:space-between;gap:10px;color:var(--hw-mute);min-width:0}
html.hw-skin .wz-c b{color:var(--hw-ink);font:600 13px var(--hw-disp);font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;white-space:nowrap}
html.hw-skin .wz-c li.bad b{color:var(--hw-bad)}
html.hw-skin .wz-meta b{direction:rtl;font-family:var(--hw-text);white-space:normal;text-align:left;overflow-wrap:anywhere}
html.hw-skin .wz-meta b.num{direction:ltr}
@media (min-width:1500px){
  html.hw-skin .wz:not(.solo){display:grid;grid-template-columns:minmax(0,1fr) 270px;align-items:start}
  html.hw-skin .wz-s{order:0;display:block;position:sticky;top:14px;padding:14px 16px}
  html.hw-skin .wz-s .wz-c{margin-top:10px;padding-top:10px;border-top:1px solid var(--hw-line);grid-template-columns:minmax(0,1fr)}
}
/* شريط السابق والتالي في المسيّر */
html.hw-skin .p-actionbar .wz-prev{margin-inline-end:auto}
/* خطوات التسوية */
html.hw-skin body.cw-on #cwList{display:none}
html.hw-skin .cw-on .wz{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:start}
html.hw-skin .cw-on .wz-s{order:0;display:block;position:sticky;top:14px;padding:14px 16px}
html.hw-skin .cw-on .wz-s .wz-c{margin-top:10px;padding-top:10px;border-top:1px solid var(--hw-line);grid-template-columns:minmax(0,1fr)}
html.hw-skin .cw-m{background:#fff;border:1px solid var(--hw-line);border-radius:14px;padding:16px 18px 0}
html.hw-skin .cw-p[hidden]{display:none}
html.hw-skin .wz-q{display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:space-between;align-items:baseline;margin-bottom:12px}
html.hw-skin .wz-q h4{font:700 16px/1.4 var(--hw-disp);margin:0;color:var(--hw-ink)}
html.hw-skin .wz-q span{color:var(--hw-mute);font-size:12.5px}
html.hw-skin .cw-rev{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
html.hw-skin .cw-rev li{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--hw-line);font-size:13.5px}
html.hw-skin .cw-rev span{color:var(--hw-mute)}
html.hw-skin .cw-rev b{font-weight:600;font-variant-numeric:tabular-nums;text-align:left;overflow-wrap:anywhere}
html.hw-skin .cw-bar{position:sticky;bottom:0;z-index:3;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid var(--hw-line);margin:0 -18px;padding:11px 18px;border-radius:0 0 14px 14px}
html.hw-skin .cw-nav{display:flex;flex-wrap:wrap;gap:8px}
html.hw-skin .cw-nav .hw-btn[hidden],html.hw-skin .hw-bar-a .hw-btn[hidden]{display:none}
html.hw-skin .cw-nav .hw-btn-sun{background:#f5a83a;color:var(--hw-sun-ink)}
html.hw-skin .cw-nav .hw-btn-sun:hover{background:#ffb94f}
html.hw-skin .cw-msg{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600}
html.hw-skin .cw-msg::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
html.hw-skin .cw-msg.ok{color:var(--hw-ok)}
html.hw-skin .cw-msg.mid{color:#a86a10}
html.hw-skin .lr-av{font:700 13px var(--hw-disp)}
@media (max-width:1100px){
  html.hw-skin .wz-s{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .wz-s>ul:nth-of-type(n){grid-column:1;grid-row:auto;margin-top:8px;padding-top:8px;border-top:1px solid var(--hw-line)}
  html.hw-skin .cw-on .wz{display:flex;flex-direction:column}
  html.hw-skin .cw-on .wz-s{order:-1;position:static}
}
@media (max-width:640px){
  html.hw-skin .wz-line small{display:none}
  html.hw-skin .wz-line b{font-size:11px}
  html.hw-skin .wz-line.five b{font-size:10.5px}
  html.hw-skin .cw-rev{grid-template-columns:minmax(0,1fr)}
  html.hw-skin .cw-nav{width:100%}
  html.hw-skin .cw-nav .hw-btn{flex:1 1 auto}
  html.hw-skin .wz-bar .p-row{flex-wrap:wrap}
}
html.hw-skin .p-skin:has(>.wz-bar),html.hw-skin .p-page:has(>.wz-bar){align-content:start}
html.hw-skin .rv-stack{grid-template-columns:minmax(0,1fr)}
@media (max-width:640px){
  html.hw-skin .p-actionbar:has(.wz-prev) .hint{display:none}
}
