/* ============================================================
   WorkSafe360 — Feuille de styles principale
   Version 1.0.0
   ============================================================ */

/* ---------- Variables de design ---------- */
:root {
  --ws-primary:        #1B4F72;
  --ws-primary-light:  #2874A6;
  --ws-primary-dark:   #154360;
  --ws-sidebar-bg:     #0F2440;
  --ws-sidebar-hover:  #1B4F72;
  --ws-sidebar-active: #2874A6;
  --ws-sidebar-text:   #8eaec9;
  --ws-sidebar-width:  260px;
  --ws-body-bg:        #f0f3f8;
  --ws-card-bg:        #ffffff;
  --ws-border:         #dde3ec;
  --ws-success:        #1e8449;
  --ws-success-bg:     #d5f5e3;
  --ws-warning:        #b7770d;
  --ws-warning-bg:     #fef9e7;
  --ws-danger:         #c0392b;
  --ws-danger-bg:      #fadbd8;
  --ws-info:           #1a6fa8;
  --ws-info-bg:        #d6eaf8;
  --ws-text-muted:     #7f8c8d;
  --ws-topbar-h:       60px;
  --ws-shadow:         0 2px 10px rgba(0,0,0,0.08);
  --ws-radius:         8px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: var(--ws-body-bg);
  color: #2c3e50;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a { color: var(--ws-primary-light); text-decoration: none; }
a:hover { color: var(--ws-primary); }

/* ---------- Layout ---------- */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--ws-sidebar-width);
  background: var(--ws-sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  min-height: var(--ws-topbar-h);
}
.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #E74C3C, #F39C12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-brand .brand-name {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
}
.sidebar-brand .brand-sub {
  color: var(--ws-sidebar-text);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-section {
  padding: 20px 0 8px;
}
.sidebar-section-label {
  padding: 0 20px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(142,174,201,.5);
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  padding: 0; margin: 0;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--ws-sidebar-text);
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.sidebar-menu li a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-left-color: rgba(255,255,255,0.15);
}
.sidebar-menu li a.active {
  background: var(--ws-sidebar-hover);
  color: #fff;
  border-left-color: #3498db;
}
.sidebar-menu li a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-menu .badge-menu {
  margin-left: auto;
  background: var(--ws-danger);
  color: white;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-user {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user .avatar {
  width: 34px; height: 34px;
  background: var(--ws-primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user .user-info .name { color: #fff; font-size: 13px; font-weight: 600; }
.sidebar-user .user-info .role { color: var(--ws-sidebar-text); font-size: 11px; }

/* ---------- Main Content ---------- */
.main-content {
  margin-left: var(--ws-sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Topbar ---------- */
.topbar {
  height: var(--ws-topbar-h);
  background: var(--ws-card-bg);
  border-bottom: 1px solid var(--ws-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 900;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.topbar-breadcrumb {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ws-text-muted);
}
.topbar-breadcrumb .current { color: #2c3e50; font-weight: 600; }
.topbar-breadcrumb i { font-size: 12px; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--ws-border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #5d6d7e;
  font-size: 16px;
  transition: all .2s;
  position: relative;
}
.topbar-btn:hover { background: var(--ws-body-bg); color: var(--ws-primary); }
.topbar-btn .notif-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--ws-danger);
  border-radius: 50%;
  border: 2px solid white;
}

/* ---------- Page Content ---------- */
.page-content { padding: 24px; flex: 1; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2840;
  margin: 0 0 4px;
}
.page-header .subtitle {
  color: var(--ws-text-muted);
  font-size: 13px;
  margin: 0;
}
.page-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- Cartes KPI ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--ws-card-bg);
  border-radius: var(--ws-radius);
  padding: 18px 20px;
  box-shadow: var(--ws-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid transparent;
}
.kpi-card.kpi-primary   { border-left-color: var(--ws-primary-light); }
.kpi-card.kpi-success   { border-left-color: #27ae60; }
.kpi-card.kpi-warning   { border-left-color: #f39c12; }
.kpi-card.kpi-danger    { border-left-color: #e74c3c; }
.kpi-card.kpi-info      { border-left-color: #3498db; }

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.kpi-primary .kpi-icon { background: #d6eaf8; color: var(--ws-primary-light); }
.kpi-success .kpi-icon { background: var(--ws-success-bg); color: var(--ws-success); }
.kpi-warning .kpi-icon { background: var(--ws-warning-bg); color: var(--ws-warning); }
.kpi-danger  .kpi-icon { background: var(--ws-danger-bg);  color: var(--ws-danger); }
.kpi-info    .kpi-icon { background: #d6eaf8; color: var(--ws-info); }

.kpi-value { font-size: 28px; font-weight: 700; line-height: 1; color: #1a2840; }
.kpi-label { font-size: 12px; color: var(--ws-text-muted); margin-top: 3px; }
.kpi-delta { font-size: 11px; margin-top: 4px; }
.kpi-delta.up   { color: var(--ws-success); }
.kpi-delta.down { color: var(--ws-danger); }

/* ---------- Card ---------- */
.card {
  background: var(--ws-card-bg);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  border: 1px solid var(--ws-border);
  margin-bottom: 20px;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ws-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
}
.card-header h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a2840;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h5 i { color: var(--ws-primary-light); }
.card-body { padding: 20px; }

/* ---------- Filtres ---------- */
.filters-bar {
  background: var(--ws-card-bg);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  box-shadow: var(--ws-shadow);
}
.filters-bar .form-label-inline {
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.filters-bar .form-control,
.filters-bar .form-select {
  font-size: 13px;
  border-color: var(--ws-border);
  border-radius: 6px;
  height: 34px;
  padding: 4px 10px;
  min-width: 160px;
}
.filters-bar .form-control:focus,
.filters-bar .form-select:focus {
  border-color: var(--ws-primary-light);
  box-shadow: 0 0 0 3px rgba(40,116,166,.12);
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
}
.search-input-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 14px;
}
.search-input-wrap input { padding-left: 32px; }

/* ---------- Tableau ---------- */
.table-responsive { border-radius: var(--ws-radius); overflow: hidden; }
.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ws-table thead th {
  background: #f8fafc;
  padding: 11px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #5d6d7e;
  border-bottom: 2px solid var(--ws-border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.ws-table thead th:hover { background: #edf2f7; color: var(--ws-primary); }
.ws-table thead th .sort-icon { color: #bdc3c7; margin-left: 4px; font-size: 10px; }
.ws-table tbody tr {
  border-bottom: 1px solid #f0f4f8;
  transition: background .15s;
}
.ws-table tbody tr:hover { background: #f8fbff; }
.ws-table tbody td { padding: 11px 16px; vertical-align: middle; }
.ws-table tbody td.td-actions {
  white-space: nowrap;
  text-align: right;
}

/* ---------- Avatar intervenant ---------- */
.interv-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ws-primary), var(--ws-primary-light));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.interv-avatar.avatar-sm {
  width: 28px; height: 28px;
  font-size: 11px;
}
.interv-info { display: flex; align-items: center; gap: 10px; }
.interv-info .name { font-weight: 600; color: #1a2840; }
.interv-info .company { font-size: 12px; color: var(--ws-text-muted); }

/* ---------- Badges de statut ---------- */
.badge-ws {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-valide      { background: var(--ws-success-bg); color: var(--ws-success); }
.badge-expire      { background: var(--ws-danger-bg);  color: var(--ws-danger); }
.badge-critique    { background: #fdecea; color: #c0392b; }
.badge-proche      { background: var(--ws-warning-bg); color: var(--ws-warning); }
.badge-inapte      { background: #f4ecf7; color: #7d3c98; }
.badge-actif       { background: var(--ws-success-bg); color: var(--ws-success); }
.badge-inactif     { background: #f4f6f7; color: #7f8c8d; }
.badge-suspendu    { background: var(--ws-danger-bg);  color: var(--ws-danger); }
.badge-planifiee   { background: #d6eaf8; color: #1a6fa8; }
.badge-en-cours    { background: #fef9e7; color: #b7770d; }
.badge-terminee    { background: var(--ws-success-bg); color: var(--ws-success); }
.badge-annulee     { background: #f4f6f7; color: #7f8c8d; }
.badge-bloquant    { background: #fadbd8; color: #c0392b; }
.badge-non-bloquant{ background: #f0f3f4; color: #717d7e; }

/* ---------- Boutons ---------- */
.btn-ws-primary {
  background: var(--ws-primary-light);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .2s;
}
.btn-ws-primary:hover { background: var(--ws-primary); color: white; }
.btn-ws-primary:active { background: var(--ws-primary-dark); }

.btn-ws-outline {
  background: transparent;
  color: var(--ws-primary-light);
  border: 1.5px solid var(--ws-primary-light);
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s;
}
.btn-ws-outline:hover { background: var(--ws-primary-light); color: white; }

.btn-ws-danger {
  background: var(--ws-danger);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .2s;
}
.btn-ws-danger:hover { background: #a93226; color: white; }

.btn-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--ws-border);
  background: transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #5d6d7e;
  font-size: 14px;
  transition: all .2s;
}
.btn-icon:hover { background: var(--ws-primary-light); border-color: var(--ws-primary-light); color: white; }
.btn-icon.btn-icon-danger:hover  { background: var(--ws-danger); border-color: var(--ws-danger); color: white; }
.btn-icon.btn-icon-warning:hover { background: #f39c12; border-color: #f39c12; color: white; }

/* ---------- Progress bar habilitations ---------- */
.hab-progress {
  height: 6px;
  border-radius: 3px;
  background: #ecf0f1;
  overflow: hidden;
  margin-top: 3px;
  width: 80px;
}
.hab-progress .bar {
  height: 100%;
  border-radius: 3px;
  background: var(--ws-success);
  transition: width .4s;
}
.hab-progress.warn .bar { background: #f39c12; }
.hab-progress.danger .bar { background: #e74c3c; }

.hab-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.hab-count .hab-num { font-weight: 700; }
.hab-count .hab-num.ok  { color: var(--ws-success); }
.hab-count .hab-num.warn{ color: var(--ws-warning); }
.hab-count .hab-num.err { color: var(--ws-danger); }

/* ---------- Alerte habilitation ---------- */
.alerte-hab-banner {
  background: linear-gradient(135deg, #fadbd8, #fdecea);
  border: 1.5px solid #f1948a;
  border-radius: var(--ws-radius);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.alerte-hab-banner .alerte-icon {
  font-size: 24px;
  color: var(--ws-danger);
  flex-shrink: 0;
  margin-top: 2px;
}
.alerte-hab-banner .alerte-content h6 {
  margin: 0 0 4px;
  color: var(--ws-danger);
  font-weight: 700;
  font-size: 14px;
}
.alerte-hab-banner .alerte-content p {
  margin: 0;
  font-size: 13px;
  color: #922b21;
}

/* ---------- Fiche intervenant détail ---------- */
.fiche-header {
  background: linear-gradient(135deg, var(--ws-primary-dark), var(--ws-primary));
  color: white;
  padding: 28px 28px 20px;
  border-radius: var(--ws-radius) var(--ws-radius) 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fiche-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  flex-shrink: 0;
}
.fiche-header h2 { margin: 0 0 2px; font-size: 20px; font-weight: 700; }
.fiche-header .company-tag {
  background: rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  margin-top: 4px;
}

/* ---------- Timeline activité ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: #ecf0f1;
}
.timeline-item {
  position: relative;
  padding-bottom: 16px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ws-primary-light);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--ws-primary-light);
}
.timeline-item .time { font-size: 11px; color: var(--ws-text-muted); margin-bottom: 3px; }
.timeline-item .text { font-size: 13px; color: #2c3e50; }

/* ---------- QR Code modal ---------- */
.qr-scan-area {
  background: #0a0a0a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.qr-scan-area .scan-frame {
  width: 200px; height: 200px;
  border: 3px solid #3498db;
  border-radius: 8px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.qr-scan-area .scan-frame::before,
.qr-scan-area .scan-frame::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: #3498db;
  border-style: solid;
}
.qr-scan-area .scan-frame::before {
  top: -3px; left: -3px;
  border-width: 3px 0 0 3px;
  border-radius: 6px 0 0 0;
}
.qr-scan-frame-line {
  position: absolute;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #3498db, transparent);
  animation: scan 2s linear infinite;
}
@keyframes scan {
  0% { top: 0; }
  100% { top: 198px; }
}

/* ---------- Formulaires dans modals ---------- */
.form-section {
  background: #f8fafc;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--ws-primary-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #3d5166;
  margin-bottom: 5px;
}
.form-control, .form-select {
  font-size: 13.5px;
  border: 1.5px solid var(--ws-border);
  border-radius: 7px;
  padding: 7px 11px;
  transition: border-color .2s, box-shadow .2s;
  background: white;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ws-primary-light);
  box-shadow: 0 0 0 3px rgba(40,116,166,.12);
  outline: none;
}

/* ---------- Modal ---------- */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  background: var(--ws-primary);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 16px 20px;
  border-bottom: none;
}
.modal-header .modal-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-header .btn-close { filter: invert(1); opacity: .8; }
.modal-footer {
  border-top: 1px solid var(--ws-border);
  padding: 14px 20px;
}

/* ---------- Expiration indicator ---------- */
.expiry-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.expiry-bar {
  flex: 1;
  height: 6px;
  background: #ecf0f1;
  border-radius: 3px;
  overflow: hidden;
}
.expiry-bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s;
}
.fill-ok      { background: #27ae60; }
.fill-warn    { background: #f39c12; }
.fill-critical{ background: #e74c3c; }
.fill-expired { background: #c0392b; width: 100% !important; }

/* ---------- Stats mini-chart bars ---------- */
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.mini-bar { flex: 1; background: var(--ws-primary-light); border-radius: 3px 3px 0 0; opacity: .7; }

/* ---------- Tabs ---------- */
.ws-tabs {
  display: flex;
  border-bottom: 2px solid var(--ws-border);
  margin-bottom: 20px;
  gap: 0;
}
.ws-tab {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ws-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all .2s;
}
.ws-tab:hover { color: var(--ws-primary-light); }
.ws-tab.active { color: var(--ws-primary-light); border-bottom-color: var(--ws-primary-light); background: none; }
.ws-tab-count {
  background: #ecf0f1;
  color: #5d6d7e;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}
.ws-tab.active .ws-tab-count { background: #d6eaf8; color: var(--ws-primary-light); }

/* ---------- Page Login ---------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--ws-body-bg);
}
.login-left {
  flex: 0 0 420px;
  background: var(--ws-card-bg);
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-right {
  flex: 1;
  background: linear-gradient(135deg, var(--ws-primary-dark) 0%, var(--ws-primary) 50%, var(--ws-primary-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.login-right::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -100px; right: -100px;
}
.login-right::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: -80px; left: -80px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.login-logo .logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #E74C3C, #F39C12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px; font-weight: 800;
}
.login-logo .logo-text { font-size: 22px; font-weight: 800; color: #1a2840; }
.login-logo .logo-sub  { font-size: 11px; color: #7f8c8d; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ws-text-muted);
}
.empty-state i { font-size: 48px; opacity: .3; margin-bottom: 12px; display: block; }
.empty-state h6 { color: #7f8c8d; margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  .page-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f3f5; }
::-webkit-scrollbar-thumb { background: #bdc3c7; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #95a5a6; }
