/* Meridiam users styles — extracted from index.html (build 783) */

  html[data-theme="light"] .um-stat { background: var(--bg-surface); border-color: var(--border); }

  html[data-theme="light"] .um-search { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }

  html[data-theme="light"] .um-filter-select { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }

  html[data-theme="light"] .um-table { border-color: var(--border); }

  html[data-theme="light"] .um-table th { background: var(--bg-elevated); color: var(--text-primary); }

  html[data-theme="light"] .um-table td { border-color: var(--border); color: var(--text-primary); }

  html[data-theme="light"] .um-table tr:hover td { background: #f1f5f9; }

  html[data-theme="light"] .um-act-btn { color: var(--text-muted); }

  html[data-theme="light"] .um-empty { color: var(--text-muted); }

  html[data-theme="light"] .um-modal { background: var(--bg-surface); border-color: var(--border); }

  html[data-theme="light"] .um-cancel-btn { background: var(--bg-elevated); border-color: var(--border); color: var(--text-primary); }

  html[data-theme="light"] .um-header-title { color: var(--text-primary); }

  html[data-theme="light"] .um-stat-val { color: var(--text-primary); }

  html[data-theme="light"] .um-modal-title { color: var(--text-primary); }

  html[data-theme="light"] .um-role-badge.user { background:#dbeafe; color:#2563eb; border-color:#93c5fd; }

  html[data-theme="light"] .um-role-badge.admin { background:#ede9fe; color:#7c3aed; border-color:#c4b5fd; }

  html[data-theme="light"] .um-role-badge.hr { background:#d1fae5; color:#059669; border-color:#6ee7b7; }

  html[data-theme="light"] .um-role-badge.accounting { background:#fef3c7; color:#d97706; border-color:#fcd34d; }

  .um-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

  .um-header-title { font-size: 16px; font-weight: 700; color: #f1f5f9; }

  .um-header-sub { font-size: 12px; color: #64748b; margin-top: 4px; }

  .um-stats { display: flex; gap: 16px; margin-bottom: 20px; }

  .um-stat { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 14px 20px; flex: 1; }

  .um-stat-val { font-size: 22px; font-weight: 700; color: #f1f5f9; font-family: 'DM Mono', monospace; }

  .um-stat-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

  .um-filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

  .um-search-wrap { flex: 1; min-width: 200px; position: relative; display: flex; align-items: center; }

  .um-search-wrap svg { position: absolute; left: 12px; color: #475569; pointer-events: none; }

  .um-search { width: 100%; background: #0f172a; border: 1px solid #334155; color: #e2e8f0; padding: 8px 12px 8px 34px; border-radius: 6px; font-size: 13px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; }

  .um-search:hover { border-color: #475569; }

  .um-search:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

  .um-filter-select { background: #0f1117; border: 1px solid #334155; color: #94a3b8; padding: 8px 12px; border-radius: 7px; font-size: 12px; font-family: inherit; cursor: pointer; }

  .um-add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #6c7aed; color: #fff; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background 0.15s; }

  .um-add-btn:hover { background: #818cf8; }

  .um-table { width: 100%; border-collapse: collapse; }

  .um-table th { font-size: 10px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; padding: 8px 10px; border-bottom: 1px solid #334155; }

  .um-table td { font-size: 12px; color: #cbd5e1; padding: 10px 10px; border-bottom: 1px solid #1e293b; vertical-align: middle; }

  .um-table tr:hover td { background: #1e293b40; }

  .um-role-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing:0.5px; }

  .um-role-badge.admin { background: #6c7aed20; color: #818cf8; border: 1px solid #6c7aed40; }

  .um-role-badge.user  { background: #3b82f620; color: #60a5fa; border: 1px solid #3b82f640; }

  .um-role-badge.hr    { background: #10b98120; color: #34d399; border: 1px solid #10b98140; }

  .um-role-badge.accounting { background: #f59e0b20; color: #fbbf24; border: 1px solid #f59e0b40; }

  .um-status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }

  .um-status-dot.active   { background: #10b981; }

  .um-status-dot.inactive { background: #ef4444; }

  /* Build 988 — flex-wrap:nowrap + flex-shrink:0 keeps the 7 action
     icons at full size and on one row; without these the narrow
     Actions column compressed Edit/Delete out of view (Igor: "I
     still don't have option to delete"). The TH min-width was
     bumped to 240px so the column reserves enough horizontal
     space upfront. */
  .um-actions { display: flex; gap: 4px; flex-wrap: nowrap; }
  .um-actions .um-act-btn { flex-shrink: 0; }

  .um-act-btn { background: none; border: 1px solid #334155; color: #94a3b8; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; }

  .um-act-btn:hover { border-color: #3b82f6; color: #60a5fa; }

  .um-act-btn.danger:hover { border-color: #ef4444; color: #ef4444; }

  .um-empty { text-align: center; color: #334155; padding: 32px 0; font-size: 13px; }

  .um-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.15s; }

  .um-modal-backdrop.open { opacity: 1; pointer-events: auto; }

  .um-modal { background: #1e293b; border: 1px solid #334155; border-radius: 14px; width: 480px; max-width: 90vw; padding: 24px; }

  .um-modal-title { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 18px; }

  .um-modal .field-row { margin-bottom: 14px; }

  .um-modal-actions, .um-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

  .um-cancel-btn, .um-modal-cancel { background: none; border: 1px solid #334155; color: #94a3b8; padding: 8px 16px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }

  .um-cancel-btn:hover, .um-modal-cancel:hover { border-color: #64748b; color: #cbd5e1; }

  .um-save-btn, .um-modal-save { background: #6c7aed; color: #fff; border: none; padding: 8px 20px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s; }

  .um-save-btn:hover, .um-modal-save:hover { background: #818cf8; }

  .um-table th { padding: 10px 12px; }

  .um-table td { padding: 10px 12px; font-size: 12px; }

  /* Build 788: scope removed bare-select selector to user management; was leaking into every page */
  .um-filter-select, .role-user-sel, .rate-currency-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 28px !important;
    font-family: inherit;
  }

  .um-filter-select, .rate-currency-select { padding: 7px 28px 7px 10px; border-radius: var(--radius-sm); }

  .um-modal-backdrop, .ck-modal-backdrop, .inv-modal-backdrop {
    backdrop-filter: blur(4px);
  }

  .um-modal, .ck-modal, .inv-modal {
    animation: invModalIn 0.18s ease;
    max-height: 90vh;
    overflow-y: auto;
  }

  .scroll-wrap, .tk-col-body, .notif-panel, .um-modal, .ck-modal, .inv-modal {
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
  }

  @media (max-width: 768px) {
    .sidebar { display: none; }
    .app-content { margin-left: 0 !important; }
    .header { padding: 0 16px; min-height: 54px; }
    .page-body { padding: 16px; }
    .dash-grid { grid-template-columns: 1fr 1fr; }
    .tk-board { flex-direction: column; }
    .tk-column { width: 100%; min-width: 0; }
    .search-input { width: 100%; }
    .search-input:focus { width: 100%; }
    .um-stats { flex-direction: column; gap: 10px; }
    .um-filter-bar { flex-direction: column; }
    .ck-stats { grid-template-columns: 1fr 1fr; }
    .ck-timer-card { flex-direction: column; align-items: stretch; gap: 12px; }
    .audit-row { grid-template-columns: 1fr 1fr; gap: 6px; }
    .period-nav { padding: 10px 16px; flex-wrap: wrap; }
    .table-toolbar { padding: 10px 14px; }
    .drp-panel { flex-direction: column; }
    .drp-presets { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .drp-cals { flex-direction: column; gap: 12px; }
    .notif-panel { width: calc(100vw - 32px); right: -60px; }
  }

  @media (max-width: 480px) {
    .dash-grid { grid-template-columns: 1fr; }
    .header-title { font-size: 15px; }
    .header-sub { display: none; }
    .um-modal { width: 95vw; padding: 18px; }
    .ck-modal { max-width: 95vw; }
    .inv-modal { max-width: 95vw; }
    .ck-timer-display { font-size: 24px; }
    .period-btn { padding: 5px 10px; font-size: 12px; }
  }

