:root {
  --bg-base: #0a0c14;
  --bg-gradient: radial-gradient(circle at top left, #1a1d2e, #0a0c14);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-primary: #1d4ed8;
  --accent-emerald: #10b981;
  --accent-rose: #ef4444;
  --text-main: #ffffff;
  --text-muted: #8e91a1;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-base);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100dvh;
  overflow-x: hidden;
  font-weight: 400;
}

h1, h2, h3, h4, th, b, strong { font-weight: 500; }

/* Layout */
.app-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100dvh; }
.app-layout.no-sidebar { grid-template-columns: 1fr; }
.no-sidebar .sidebar { display: none !important; }

/* Mobile Navigation Bar (Only for Foremen) */
.mobile-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 65px;
    background: rgba(13, 20, 34, 0.95); backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    display: none; justify-content: space-around; align-items: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .no-sidebar .mobile-nav { display: flex; }
    .main-content { padding: 20px 20px 80px 20px !important; } /* Padding for bottom nav */
}

.mobile-nav-item {
    background: none; border: none; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.mobile-nav-item.active { color: var(--accent-primary); }

/* Sidebar */
.sidebar { padding: 40px 24px; background: rgba(0, 0, 0, 0.2); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; }
.brand h1 { font-size: 1.4rem; letter-spacing: 0.5px; font-weight: 800; color: #fff; }
.nav-menu { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.nav-item {
  background: none !important; border: none !important; color: var(--text-muted) !important;
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: var(--radius-md); cursor: pointer; text-align: left; transition: 0.2s;
}
.nav-item:hover, .nav-item.active { background: var(--glass-bg) !important; color: #fff !important; }

/* Components */
.glass-container { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 30px; width: 100%; }
.main-content { padding: 40px; width: 100%; max-width: 1600px; margin: 0 auto; display: flex; flex-direction: column; }
.view-header { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; }

/* Timer View Optimization */
.timer-view-wrapper { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.timer-view-container { width: 100%; max-width: 500px; text-align: center; }
#faceClock { font-size: 4.5rem; font-weight: 800; font-family: monospace; line-height: 1; margin-bottom: 10px; }

/* Mobile Optimizations */
@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { padding: 20px; }
  #faceClock { font-size: 3.5rem; }
  .dashboard-time { font-size: 3.5rem; }
}

/* Progress & Status */
.progress-container { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent-primary); transition: width 0.4s ease; }
.pulse-emerald { width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; box-shadow: 0 0 10px var(--accent-emerald); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Controls */
.form-control { width: 100%; padding: 14px; background: rgba(0,0,0,0.3) !important; border: 1px solid var(--glass-border); border-radius: 8px; color: #fff !important; outline: none; }
.btn { padding: 14px 28px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.2s; border: none; }
.btn.primary { background: var(--accent-primary); color: #fff; }
.btn.outline { background: transparent; border: 1px solid var(--glass-border); color: #fff; }

.hidden { display: none !important; }

/* Tables */
.table-container { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--glass-border); }
.project-card-v2 { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* ── New View Components ─────────────────────────────────────── */

/* Shared */
.view-toolbar { display:flex; justify-content:flex-end; margin-bottom:1rem; }
.empty-state { text-align:center; color:var(--text-muted, #94a3b8); padding:2rem; }
.optional { font-size:.75rem; color:var(--text-muted, #94a3b8); }
.muted { color:var(--text-muted, #94a3b8); font-size:.85rem; }
.error-text { color:#f43f5e; font-size:.85rem; }
.glass-panel { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:1.25rem; backdrop-filter:blur(12px); }
.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-size:.8rem; font-weight:600; margin-bottom:.4rem; color:var(--text-muted,#94a3b8); text-transform:uppercase; letter-spacing:.05em; }
.form-control { width:100%; padding:.6rem .85rem; border-radius:8px; border:1px solid rgba(255,255,255,0.15); background:rgba(255,255,255,0.07); color:#fff; font-size:.9rem; outline:none; }
.form-control:focus { border-color:#1d4ed8; }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; z-index:1000; }
.modal { background:#0f172a; border:1px solid rgba(255,255,255,0.12); border-radius:16px; padding:1.75rem; width:min(480px,90vw); max-height:90vh; overflow-y:auto; }
.modal h3 { margin:0 0 1.25rem; font-size:1.1rem; }
.modal-actions { display:flex; gap:.75rem; justify-content:flex-end; margin-top:1.25rem; }
.btn { padding:.55rem 1.1rem; border-radius:8px; font-size:.875rem; font-weight:600; cursor:pointer; border:none; transition:.2s; }
.btn.primary { background:#1d4ed8; color:#fff; }
.btn.primary:hover { background:#1e40af; }
.btn.outline { background:transparent; color:#94a3b8; border:1px solid rgba(255,255,255,0.2); }
.btn.outline:hover { border-color:#fff; color:#fff; }
.btn.danger { background:#e11d48; color:#fff; }
.btn.secondary { background:rgba(255,255,255,0.1); color:#fff; }
.btn-icon { background:none; border:none; cursor:pointer; font-size:1rem; padding:.25rem .4rem; border-radius:6px; opacity:.7; transition:.15s; }
.btn-icon:hover { opacity:1; background:rgba(255,255,255,0.1); }
.btn-icon.danger:hover { background:rgba(225,29,72,0.2); }
.color-picker { display:flex; gap:.5rem; flex-wrap:wrap; }
.color-swatch { width:28px; height:28px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; border:2px solid transparent; transition:.15s; }
.color-swatch:has(input:checked) { border-color:#fff; transform:scale(1.15); }
.color-swatch input { display:none; }

/* Timer View */
.timer-container { display:flex; flex-direction:column; align-items:center; gap:1.5rem; padding:1rem 0; }
.timer-ring-card { position:relative; width:220px; height:220px; }
.timer-ring-svg { width:100%; height:100%; transform:rotate(-90deg); }
.ring-bg { fill:none; stroke:rgba(255,255,255,0.08); stroke-width:12; }
.ring-progress { fill:none; stroke:#1d4ed8; stroke-width:12; stroke-linecap:round; transition:stroke-dashoffset .5s ease; }
.timer-face { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.timer-elapsed { font-size:2rem; font-weight:700; letter-spacing:.05em; font-variant-numeric:tabular-nums; }
.timer-label { font-size:.7rem; letter-spacing:.15em; color:#94a3b8; margin-top:.25rem; }
.timer-form, .timer-active-info { width:min(400px,90vw); }
.btn-start { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; letter-spacing:.05em; }
.btn-stop { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; background:#e11d48; color:#fff; border:none; border-radius:8px; cursor:pointer; font-weight:700; }
.active-project-badge { display:inline-block; padding:.4rem .9rem; border-radius:20px; border:1px solid; font-size:.85rem; font-weight:600; margin-bottom:.75rem; }
.active-task { font-size:1.1rem; font-weight:600; margin-bottom:.25rem; }
.active-description { font-size:.85rem; color:#94a3b8; margin-bottom:1rem; }

/* Projects View */
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:1rem; }
.project-card { display:flex; flex-direction:column; gap:.75rem; }
.project-card-header { display:flex; align-items:center; gap:.75rem; }
.project-color-dot { width:14px; height:14px; border-radius:50%; flex-shrink:0; }
.project-info { flex:1; min-width:0; }
.project-name { font-weight:600; font-size:.95rem; }
.project-meta { font-size:.78rem; color:#94a3b8; margin-top:.1rem; }
.project-actions { display:flex; gap:.25rem; }
.budget-row { display:flex; justify-content:space-between; align-items:center; font-size:.85rem; }
.budget-label { color:#94a3b8; }
.budget-value.ok { color:#10b981; }
.budget-value.warning { color:#f59e0b; }
.budget-value.danger { color:#f43f5e; }
.progress-bar-bg { height:6px; background:rgba(255,255,255,0.08); border-radius:3px; overflow:hidden; }
.progress-bar-fill { height:100%; border-radius:3px; transition:width .4s; }
.progress-bar-fill.ok { background:#10b981; }
.progress-bar-fill.warning { background:#f59e0b; }
.progress-bar-fill.danger { background:#f43f5e; }

/* Team View */
.table-wrapper { overflow-x:auto; border-radius:12px; }
.timesheet-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.timesheet-table th { padding:.65rem 1rem; text-align:left; font-size:.75rem; font-weight:600; color:#94a3b8; text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid rgba(255,255,255,0.08); white-space:nowrap; }
.timesheet-table td { padding:.65rem 1rem; border-bottom:1px solid rgba(255,255,255,0.05); vertical-align:middle; }
.timesheet-table tfoot td { border-top:1px solid rgba(255,255,255,0.1); border-bottom:none; font-weight:600; }
.timesheet-table tr:hover td { background:rgba(255,255,255,0.03); }
.emp-cell { display:flex; align-items:center; gap:.65rem; }
.emp-avatar { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700; color:#fff; flex-shrink:0; }
.emp-name { font-weight:600; font-size:.875rem; }
.emp-no { font-size:.75rem; color:#94a3b8; }
.hours-cell { font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.total-label { color:#94a3b8; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.proj-tag { display:inline-block; padding:.2rem .6rem; border-radius:12px; border:1px solid; font-size:.78rem; font-weight:500; }

/* Timesheets */
.filter-bar { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; margin-bottom:1rem; padding:.85rem 1rem; }
.load-more-row { display:flex; justify-content:center; margin-top:1rem; }

/* Settings */
.settings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1rem; }
.settings-section h3 { margin:0 0 1rem; font-size:1rem; }
.setting-row { display:flex; justify-content:space-between; align-items:center; padding:.5rem 0; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:.5rem; }
.setting-label { font-size:.85rem; color:#94a3b8; }
.setting-value { font-size:.85rem; font-weight:600; }
.setting-description { font-size:.82rem; color:#94a3b8; margin-bottom:1rem; }
.dispatch-result { padding:.75rem; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); border-radius:8px; font-size:.85rem; line-height:1.7; }
.scoro-add-row { display:flex; gap:.5rem; margin-top:1rem; }

/* ── New View Components ─────────────────────────────────────── */

/* Shared */
.view-toolbar { display:flex; justify-content:flex-end; margin-bottom:1rem; }
.empty-state { text-align:center; color:var(--text-muted, #94a3b8); padding:2rem; }
.optional { font-size:.75rem; color:var(--text-muted, #94a3b8); }
.muted { color:var(--text-muted, #94a3b8); font-size:.85rem; }
.error-text { color:#f43f5e; font-size:.85rem; }
.glass-panel { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:1.25rem; backdrop-filter:blur(12px); }
.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-size:.8rem; font-weight:600; margin-bottom:.4rem; color:var(--text-muted,#94a3b8); text-transform:uppercase; letter-spacing:.05em; }
.form-control { width:100%; padding:.6rem .85rem; border-radius:8px; border:1px solid rgba(255,255,255,0.15); background:rgba(255,255,255,0.07); color:#fff; font-size:.9rem; outline:none; }
.form-control:focus { border-color:#1d4ed8; }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; z-index:1000; }
.modal { background:#0f172a; border:1px solid rgba(255,255,255,0.12); border-radius:16px; padding:1.75rem; width:min(480px,90vw); max-height:90vh; overflow-y:auto; }
.modal h3 { margin:0 0 1.25rem; font-size:1.1rem; }
.modal-actions { display:flex; gap:.75rem; justify-content:flex-end; margin-top:1.25rem; }
.btn { padding:.55rem 1.1rem; border-radius:8px; font-size:.875rem; font-weight:600; cursor:pointer; border:none; transition:.2s; }
.btn.primary { background:#1d4ed8; color:#fff; }
.btn.primary:hover { background:#1e40af; }
.btn.outline { background:transparent; color:#94a3b8; border:1px solid rgba(255,255,255,0.2); }
.btn.outline:hover { border-color:#fff; color:#fff; }
.btn.danger { background:#e11d48; color:#fff; }
.btn.secondary { background:rgba(255,255,255,0.1); color:#fff; }
.btn-icon { background:none; border:none; cursor:pointer; font-size:1rem; padding:.25rem .4rem; border-radius:6px; opacity:.7; transition:.15s; }
.btn-icon:hover { opacity:1; background:rgba(255,255,255,0.1); }
.btn-icon.danger:hover { background:rgba(225,29,72,0.2); }
.color-picker { display:flex; gap:.5rem; flex-wrap:wrap; }
.color-swatch { width:28px; height:28px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; border:2px solid transparent; transition:.15s; }
.color-swatch:has(input:checked) { border-color:#fff; transform:scale(1.15); }
.color-swatch input { display:none; }

/* Timer View */
.timer-container { display:flex; flex-direction:column; align-items:center; gap:1.5rem; padding:1rem 0; }
.timer-ring-card { position:relative; width:220px; height:220px; }
.timer-ring-svg { width:100%; height:100%; transform:rotate(-90deg); }
.ring-bg { fill:none; stroke:rgba(255,255,255,0.08); stroke-width:12; }
.ring-progress { fill:none; stroke:#1d4ed8; stroke-width:12; stroke-linecap:round; transition:stroke-dashoffset .5s ease; }
.timer-face { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.timer-elapsed { font-size:2rem; font-weight:700; letter-spacing:.05em; font-variant-numeric:tabular-nums; }
.timer-label { font-size:.7rem; letter-spacing:.15em; color:#94a3b8; margin-top:.25rem; }
.timer-form, .timer-active-info { width:min(400px,90vw); }
.btn-start { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; letter-spacing:.05em; }
.btn-stop { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; background:#e11d48; color:#fff; border:none; border-radius:8px; cursor:pointer; font-weight:700; }
.active-project-badge { display:inline-block; padding:.4rem .9rem; border-radius:20px; border:1px solid; font-size:.85rem; font-weight:600; margin-bottom:.75rem; }
.active-task { font-size:1.1rem; font-weight:600; margin-bottom:.25rem; }
.active-description { font-size:.85rem; color:#94a3b8; margin-bottom:1rem; }

/* Projects View */
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:1rem; }
.project-card { display:flex; flex-direction:column; gap:.75rem; }
.project-card-header { display:flex; align-items:center; gap:.75rem; }
.project-color-dot { width:14px; height:14px; border-radius:50%; flex-shrink:0; }
.project-info { flex:1; min-width:0; }
.project-name { font-weight:600; font-size:.95rem; }
.project-meta { font-size:.78rem; color:#94a3b8; margin-top:.1rem; }
.project-actions { display:flex; gap:.25rem; }
.budget-row { display:flex; justify-content:space-between; align-items:center; font-size:.85rem; }
.budget-label { color:#94a3b8; }
.budget-value.ok { color:#10b981; }
.budget-value.warning { color:#f59e0b; }
.budget-value.danger { color:#f43f5e; }
.progress-bar-bg { height:6px; background:rgba(255,255,255,0.08); border-radius:3px; overflow:hidden; }
.progress-bar-fill { height:100%; border-radius:3px; transition:width .4s; }
.progress-bar-fill.ok { background:#10b981; }
.progress-bar-fill.warning { background:#f59e0b; }
.progress-bar-fill.danger { background:#f43f5e; }

/* Team View */
.table-wrapper { overflow-x:auto; border-radius:12px; }
.timesheet-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.timesheet-table th { padding:.65rem 1rem; text-align:left; font-size:.75rem; font-weight:600; color:#94a3b8; text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid rgba(255,255,255,0.08); white-space:nowrap; }
.timesheet-table td { padding:.65rem 1rem; border-bottom:1px solid rgba(255,255,255,0.05); vertical-align:middle; }
.timesheet-table tfoot td { border-top:1px solid rgba(255,255,255,0.1); border-bottom:none; font-weight:600; }
.timesheet-table tr:hover td { background:rgba(255,255,255,0.03); }
.emp-cell { display:flex; align-items:center; gap:.65rem; }
.emp-avatar { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700; color:#fff; flex-shrink:0; }
.emp-name { font-weight:600; font-size:.875rem; }
.emp-no { font-size:.75rem; color:#94a3b8; }
.hours-cell { font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.total-label { color:#94a3b8; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.proj-tag { display:inline-block; padding:.2rem .6rem; border-radius:12px; border:1px solid; font-size:.78rem; font-weight:500; }

/* Timesheets */
.filter-bar { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; margin-bottom:1rem; padding:.85rem 1rem; }
.load-more-row { display:flex; justify-content:center; margin-top:1rem; }

/* Settings */
.settings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1rem; }
.settings-section h3 { margin:0 0 1rem; font-size:1rem; }
.setting-row { display:flex; justify-content:space-between; align-items:center; padding:.5rem 0; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:.5rem; }
.setting-label { font-size:.85rem; color:#94a3b8; }
.setting-value { font-size:.85rem; font-weight:600; }
.setting-description { font-size:.82rem; color:#94a3b8; margin-bottom:1rem; }
.dispatch-result { padding:.75rem; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); border-radius:8px; font-size:.85rem; line-height:1.7; }
.scoro-add-row { display:flex; gap:.5rem; margin-top:1rem; }

/* ── New View Components ─────────────────────────────────────── */

/* Shared */
.view-toolbar { display:flex; justify-content:flex-end; margin-bottom:1rem; }
.empty-state { text-align:center; color:var(--text-muted, #94a3b8); padding:2rem; }
.optional { font-size:.75rem; color:var(--text-muted, #94a3b8); }
.muted { color:var(--text-muted, #94a3b8); font-size:.85rem; }
.error-text { color:#f43f5e; font-size:.85rem; }
.glass-panel { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:1.25rem; backdrop-filter:blur(12px); }
.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-size:.8rem; font-weight:600; margin-bottom:.4rem; color:var(--text-muted,#94a3b8); text-transform:uppercase; letter-spacing:.05em; }
.form-control { width:100%; padding:.6rem .85rem; border-radius:8px; border:1px solid rgba(255,255,255,0.15); background:rgba(255,255,255,0.07); color:#fff; font-size:.9rem; outline:none; }
.form-control:focus { border-color:#1d4ed8; }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; z-index:1000; }
.modal { background:#0f172a; border:1px solid rgba(255,255,255,0.12); border-radius:16px; padding:1.75rem; width:min(480px,90vw); max-height:90vh; overflow-y:auto; }
.modal h3 { margin:0 0 1.25rem; font-size:1.1rem; }
.modal-actions { display:flex; gap:.75rem; justify-content:flex-end; margin-top:1.25rem; }
.btn { padding:.55rem 1.1rem; border-radius:8px; font-size:.875rem; font-weight:600; cursor:pointer; border:none; transition:.2s; }
.btn.primary { background:#1d4ed8; color:#fff; }
.btn.primary:hover { background:#1e40af; }
.btn.outline { background:transparent; color:#94a3b8; border:1px solid rgba(255,255,255,0.2); }
.btn.outline:hover { border-color:#fff; color:#fff; }
.btn.danger { background:#e11d48; color:#fff; }
.btn.secondary { background:rgba(255,255,255,0.1); color:#fff; }
.btn-icon { background:none; border:none; cursor:pointer; font-size:1rem; padding:.25rem .4rem; border-radius:6px; opacity:.7; transition:.15s; }
.btn-icon:hover { opacity:1; background:rgba(255,255,255,0.1); }
.btn-icon.danger:hover { background:rgba(225,29,72,0.2); }
.color-picker { display:flex; gap:.5rem; flex-wrap:wrap; }
.color-swatch { width:28px; height:28px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; border:2px solid transparent; transition:.15s; }
.color-swatch:has(input:checked) { border-color:#fff; transform:scale(1.15); }
.color-swatch input { display:none; }

/* Timer View */
.timer-container { display:flex; flex-direction:column; align-items:center; gap:1.5rem; padding:1rem 0; }
.timer-ring-card { position:relative; width:220px; height:220px; }
.timer-ring-svg { width:100%; height:100%; transform:rotate(-90deg); }
.ring-bg { fill:none; stroke:rgba(255,255,255,0.08); stroke-width:12; }
.ring-progress { fill:none; stroke:#1d4ed8; stroke-width:12; stroke-linecap:round; transition:stroke-dashoffset .5s ease; }
.timer-face { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.timer-elapsed { font-size:2rem; font-weight:700; letter-spacing:.05em; font-variant-numeric:tabular-nums; }
.timer-label { font-size:.7rem; letter-spacing:.15em; color:#94a3b8; margin-top:.25rem; }
.timer-form, .timer-active-info { width:min(400px,90vw); }
.btn-start { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; letter-spacing:.05em; }
.btn-stop { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; background:#e11d48; color:#fff; border:none; border-radius:8px; cursor:pointer; font-weight:700; }
.active-project-badge { display:inline-block; padding:.4rem .9rem; border-radius:20px; border:1px solid; font-size:.85rem; font-weight:600; margin-bottom:.75rem; }
.active-task { font-size:1.1rem; font-weight:600; margin-bottom:.25rem; }
.active-description { font-size:.85rem; color:#94a3b8; margin-bottom:1rem; }

/* Projects View */
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:1rem; }
.project-card { display:flex; flex-direction:column; gap:.75rem; }
.project-card-header { display:flex; align-items:center; gap:.75rem; }
.project-color-dot { width:14px; height:14px; border-radius:50%; flex-shrink:0; }
.project-info { flex:1; min-width:0; }
.project-name { font-weight:600; font-size:.95rem; }
.project-meta { font-size:.78rem; color:#94a3b8; margin-top:.1rem; }
.project-actions { display:flex; gap:.25rem; }
.budget-row { display:flex; justify-content:space-between; align-items:center; font-size:.85rem; }
.budget-label { color:#94a3b8; }
.budget-value.ok { color:#10b981; }
.budget-value.warning { color:#f59e0b; }
.budget-value.danger { color:#f43f5e; }
.progress-bar-bg { height:6px; background:rgba(255,255,255,0.08); border-radius:3px; overflow:hidden; }
.progress-bar-fill { height:100%; border-radius:3px; transition:width .4s; }
.progress-bar-fill.ok { background:#10b981; }
.progress-bar-fill.warning { background:#f59e0b; }
.progress-bar-fill.danger { background:#f43f5e; }

/* Team View */
.table-wrapper { overflow-x:auto; border-radius:12px; }
.timesheet-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.timesheet-table th { padding:.65rem 1rem; text-align:left; font-size:.75rem; font-weight:600; color:#94a3b8; text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid rgba(255,255,255,0.08); white-space:nowrap; }
.timesheet-table td { padding:.65rem 1rem; border-bottom:1px solid rgba(255,255,255,0.05); vertical-align:middle; }
.timesheet-table tfoot td { border-top:1px solid rgba(255,255,255,0.1); border-bottom:none; font-weight:600; }
.timesheet-table tr:hover td { background:rgba(255,255,255,0.03); }
.emp-cell { display:flex; align-items:center; gap:.65rem; }
.emp-avatar { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700; color:#fff; flex-shrink:0; }
.emp-name { font-weight:600; font-size:.875rem; }
.emp-no { font-size:.75rem; color:#94a3b8; }
.hours-cell { font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.total-label { color:#94a3b8; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.proj-tag { display:inline-block; padding:.2rem .6rem; border-radius:12px; border:1px solid; font-size:.78rem; font-weight:500; }

/* Timesheets */
.filter-bar { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; margin-bottom:1rem; padding:.85rem 1rem; }
.load-more-row { display:flex; justify-content:center; margin-top:1rem; }

/* Settings */
.settings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1rem; }
.settings-section h3 { margin:0 0 1rem; font-size:1rem; }
.setting-row { display:flex; justify-content:space-between; align-items:center; padding:.5rem 0; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:.5rem; }
.setting-label { font-size:.85rem; color:#94a3b8; }
.setting-value { font-size:.85rem; font-weight:600; }
.setting-description { font-size:.82rem; color:#94a3b8; margin-bottom:1rem; }
.dispatch-result { padding:.75rem; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); border-radius:8px; font-size:.85rem; line-height:1.7; }
.scoro-add-row { display:flex; gap:.5rem; margin-top:1rem; }

/* ── New View Components ─────────────────────────────────────── */

/* Shared */
.view-toolbar { display:flex; justify-content:flex-end; margin-bottom:1rem; }
.empty-state { text-align:center; color:var(--text-muted, #94a3b8); padding:2rem; }
.optional { font-size:.75rem; color:var(--text-muted, #94a3b8); }
.muted { color:var(--text-muted, #94a3b8); font-size:.85rem; }
.error-text { color:#f43f5e; font-size:.85rem; }
.glass-panel { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:1.25rem; backdrop-filter:blur(12px); }
.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-size:.8rem; font-weight:600; margin-bottom:.4rem; color:var(--text-muted,#94a3b8); text-transform:uppercase; letter-spacing:.05em; }
.form-control { width:100%; padding:.6rem .85rem; border-radius:8px; border:1px solid rgba(255,255,255,0.15); background:rgba(255,255,255,0.07); color:#fff; font-size:.9rem; outline:none; }
.form-control:focus { border-color:#1d4ed8; }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; z-index:1000; }
.modal { background:#0f172a; border:1px solid rgba(255,255,255,0.12); border-radius:16px; padding:1.75rem; width:min(480px,90vw); max-height:90vh; overflow-y:auto; }
.modal h3 { margin:0 0 1.25rem; font-size:1.1rem; }
.modal-actions { display:flex; gap:.75rem; justify-content:flex-end; margin-top:1.25rem; }
.btn { padding:.55rem 1.1rem; border-radius:8px; font-size:.875rem; font-weight:600; cursor:pointer; border:none; transition:.2s; }
.btn.primary { background:#1d4ed8; color:#fff; }
.btn.primary:hover { background:#1e40af; }
.btn.outline { background:transparent; color:#94a3b8; border:1px solid rgba(255,255,255,0.2); }
.btn.outline:hover { border-color:#fff; color:#fff; }
.btn.danger { background:#e11d48; color:#fff; }
.btn.secondary { background:rgba(255,255,255,0.1); color:#fff; }
.btn-icon { background:none; border:none; cursor:pointer; font-size:1rem; padding:.25rem .4rem; border-radius:6px; opacity:.7; transition:.15s; }
.btn-icon:hover { opacity:1; background:rgba(255,255,255,0.1); }
.btn-icon.danger:hover { background:rgba(225,29,72,0.2); }
.color-picker { display:flex; gap:.5rem; flex-wrap:wrap; }
.color-swatch { width:28px; height:28px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; border:2px solid transparent; transition:.15s; }
.color-swatch:has(input:checked) { border-color:#fff; transform:scale(1.15); }
.color-swatch input { display:none; }
/* Timer View */
.timer-container { display:flex; flex-direction:column; align-items:center; gap:1.5rem; padding:1rem 0; }
.timer-ring-card { position:relative; width:220px; height:220px; }
.timer-ring-svg { width:100%; height:100%; transform:rotate(-90deg); }
.ring-bg { fill:none; stroke:rgba(255,255,255,0.08); stroke-width:12; }
.ring-progress { fill:none; stroke:#1d4ed8; stroke-width:12; stroke-linecap:round; transition:stroke-dashoffset .5s ease; }
.timer-face { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.timer-elapsed { font-size:2rem; font-weight:700; letter-spacing:.05em; font-variant-numeric:tabular-nums; }
.timer-label { font-size:.7rem; letter-spacing:.15em; color:#94a3b8; margin-top:.25rem; }
.timer-form, .timer-active-info { width:min(400px,90vw); }
.btn-start { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; letter-spacing:.05em; }
.btn-stop { width:100%; padding:.75rem; margin-top:.5rem; font-size:1rem; background:#e11d48; color:#fff; border:none; border-radius:8px; cursor:pointer; font-weight:700; }
.active-project-badge { display:inline-block; padding:.4rem .9rem; border-radius:20px; border:1px solid; font-size:.85rem; font-weight:600; margin-bottom:.75rem; }
.active-task { font-size:1.1rem; font-weight:600; margin-bottom:.25rem; }
.active-description { font-size:.85rem; color:#94a3b8; margin-bottom:1rem; }
/* Projects View */
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:1rem; }
.project-card { display:flex; flex-direction:column; gap:.75rem; }
.project-card-header { display:flex; align-items:center; gap:.75rem; }
.project-color-dot { width:14px; height:14px; border-radius:50%; flex-shrink:0; }
.project-info { flex:1; min-width:0; }
.project-name { font-weight:600; font-size:.95rem; }
.project-meta { font-size:.78rem; color:#94a3b8; margin-top:.1rem; }
.project-actions { display:flex; gap:.25rem; }
.budget-row { display:flex; justify-content:space-between; align-items:center; font-size:.85rem; }
.budget-label { color:#94a3b8; }
.budget-value.ok { color:#10b981; }
.budget-value.warning { color:#f59e0b; }
.budget-value.danger { color:#f43f5e; }
.progress-bar-bg { height:6px; background:rgba(255,255,255,0.08); border-radius:3px; overflow:hidden; }
.progress-bar-fill { height:100%; border-radius:3px; transition:width .4s; }
.progress-bar-fill.ok { background:#10b981; }
.progress-bar-fill.warning { background:#f59e0b; }
.progress-bar-fill.danger { background:#f43f5e; }
/* Team View */
.table-wrapper { overflow-x:auto; border-radius:12px; }
.timesheet-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.timesheet-table th { padding:.65rem 1rem; text-align:left; font-size:.75rem; font-weight:600; color:#94a3b8; text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid rgba(255,255,255,0.08); white-space:nowrap; }
.timesheet-table td { padding:.65rem 1rem; border-bottom:1px solid rgba(255,255,255,0.05); vertical-align:middle; }
.timesheet-table tfoot td { border-top:1px solid rgba(255,255,255,0.1); border-bottom:none; font-weight:600; }
.timesheet-table tr:hover td { background:rgba(255,255,255,0.03); }
.emp-cell { display:flex; align-items:center; gap:.65rem; }
.emp-avatar { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700; color:#fff; flex-shrink:0; }
.emp-name { font-weight:600; font-size:.875rem; }
.emp-no { font-size:.75rem; color:#94a3b8; }
.hours-cell { font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.total-label { color:#94a3b8; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.proj-tag { display:inline-block; padding:.2rem .6rem; border-radius:12px; border:1px solid; font-size:.78rem; font-weight:500; }

/* Timesheets */
.filter-bar { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; margin-bottom:1rem; padding:.85rem 1rem; }
.load-more-row { display:flex; justify-content:center; margin-top:1rem; }

/* Settings */
.settings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1rem; }
.settings-section h3 { margin:0 0 1rem; font-size:1rem; }
.setting-row { display:flex; justify-content:space-between; align-items:center; padding:.5rem 0; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:.5rem; }
.setting-label { font-size:.85rem; color:#94a3b8; }
.setting-value { font-size:.85rem; font-weight:600; }
.setting-description { font-size:.82rem; color:#94a3b8; margin-bottom:1rem; }
.dispatch-result { padding:.75rem; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); border-radius:8px; font-size:.85rem; line-height:1.7; }
.scoro-add-row { display:flex; gap:.5rem; margin-top:1rem; }

/* ── Dashboard ───────────────────────────────────────────────── */
.clock-card { text-align:center; padding:1.5rem; margin-bottom:1rem; }
.dashboard-time { font-size:2.5rem; font-weight:700; letter-spacing:.05em; font-variant-numeric:tabular-nums; }
.dashboard-date { font-size:.85rem; color:#94a3b8; margin-top:.35rem; text-transform:uppercase; letter-spacing:.1em; }
.active-timers-section { display:flex; flex-direction:column; gap:1rem; }
.project-group h3 { font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color:#94a3b8; margin:0 0 .65rem; }
.timer-card { display:flex; align-items:center; gap:.85rem; padding:.85rem 1rem; }
.timer-avatar { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700; color:#fff; flex-shrink:0; }
.timer-user-info { flex:1; min-width:0; font-weight:600; font-size:.9rem; }
.timer-counter { font-family:monospace; font-size:1rem; font-weight:700; color:#10b981; }
.btn-text { background:none; border:none; cursor:pointer; font-size:.85rem; padding:.3rem .6rem; border-radius:6px; }
.btn-text:hover { background:rgba(239,68,68,0.15); }

/* ── Settings / Webhook Logs ─────────────────────────────────── */
.field-pill { display:inline-block; padding:.2rem .55rem; background:rgba(29,78,216,0.2); border:1px solid rgba(29,78,216,0.4); border-radius:12px; font-size:.75rem; font-family:monospace; }
.badge-pill { padding:.2rem .65rem; background:rgba(16,185,129,0.15); border:1px solid rgba(16,185,129,0.3); border-radius:12px; font-size:.75rem; color:#10b981; }
.payload-pre { background:rgba(0,0,0,0.3); border-radius:8px; padding:.75rem; font-size:.75rem; overflow-x:auto; margin-top:.5rem; white-space:pre-wrap; word-break:break-all; }
.webhook-log-entry { padding:1rem; }
.webhook-empty { text-align:center; padding:2rem; }
code { background:rgba(255,255,255,0.08); padding:.15rem .4rem; border-radius:4px; font-family:monospace; font-size:.85rem; }
details summary::-webkit-details-marker { color:#94a3b8; }

/* ── Field Mapper ────────────────────────────────────────────── */
.arrow-cell { font-size:1.3rem; text-align:center; color:#94a3b8; width:40px; }
.sample-cell { font-size:.8rem; max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Project card improvements ───────────────────────────────── */
.project-name { font-weight:600; font-size:.95rem; line-height:1.4; word-break:break-word; }
.project-card { min-height:120px; }

/* ── Project card custom fields ──────────────────────────────── */
.project-custom-fields { margin-top:.5rem; padding-top:.5rem; border-top:1px solid rgba(255,255,255,0.07); display:flex; flex-direction:column; gap:.3rem; }
.custom-field-row { display:flex; justify-content:space-between; align-items:center; font-size:.8rem; }
.custom-field-label { color:#94a3b8; }
.custom-field-value { font-weight:600; text-align:right; max-width:60%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Reference Data Panels ───────────────────────────────────── */
.ref-data-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.ref-panel { padding:1rem; }
.ref-list { display:flex; flex-direction:column; gap:.4rem; margin-bottom:.75rem; min-height:40px; max-height:220px; overflow-y:auto; }
.ref-item { display:flex; align-items:center; justify-content:space-between; padding:.35rem .5rem; border-radius:6px; background:rgba(255,255,255,0.04); }
.ref-item-name { font-size:.875rem; }
.ref-item-actions { display:flex; gap:.15rem; flex-shrink:0; }
.ref-add-row { display:flex; gap:.5rem; }

/* ── Mobile nav 5 items ──────────────────────────────────────── */
@media (max-width: 768px) {
    .mobile-nav { grid-template-columns: repeat(5, 1fr); }
    .mobile-nav-item span { font-size:.6rem; }
    .mobile-nav-item svg { width:18px; height:18px; }
}

/* ── Settings Tabs ───────────────────────────────────────────── */
.settings-tabs { display:flex; gap:.25rem; border-bottom:1px solid rgba(255,255,255,0.1); margin-bottom:1.5rem; flex-wrap:wrap; }
.settings-tab { background:none; border:none; color:#94a3b8; font-size:.875rem; font-weight:500; padding:.6rem 1.1rem; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; transition:.15s; }
.settings-tab:hover { color:#fff; }
.settings-tab.active { color:#fff; border-bottom-color:#1d4ed8; }
.settings-card { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.09); border-radius:12px; padding:1.5rem; margin-bottom:1rem; }
.settings-card h3 { margin:0 0 .35rem; font-size:1rem; }
.settings-tab-content { max-width:900px; }

/* ── Ref Data Chips ──────────────────────────────────────────── */
.ref-chips { display:flex; flex-wrap:wrap; gap:.5rem; }
.ref-chip { display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .7rem; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); border-radius:20px; font-size:.85rem; }
.ref-chip-label { font-weight:500; }
.ref-chip-edit, .ref-chip-del { background:none; border:none; cursor:pointer; font-size:.75rem; padding:0 .1rem; opacity:.6; line-height:1; }
.ref-chip-edit:hover, .ref-chip-del:hover { opacity:1; }

/* ── Mobile 3-tab nav + More drawer ─────────────────────────── */
@media (max-width: 768px) {
    .mobile-nav { grid-template-columns: repeat(4, 1fr); }
    .mobile-nav-item span { font-size:.65rem; }

    /* More drawer */
    .mobile-more-drawer { position:fixed; inset:0; z-index:500; pointer-events:none; }
    .mobile-more-drawer.open { pointer-events:all; }
    .mobile-more-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.5); opacity:0; transition:opacity .25s; }
    .mobile-more-drawer.open .mobile-more-overlay { opacity:1; }
    .mobile-more-panel { position:absolute; bottom:0; left:0; right:0; border-radius:20px 20px 0 0; padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom)); transform:translateY(100%); transition:transform .3s cubic-bezier(.32,.72,0,1); }
    .mobile-more-drawer.open .mobile-more-panel { transform:translateY(0); }
    .mobile-more-handle { width:40px; height:4px; background:rgba(255,255,255,0.2); border-radius:2px; margin:0 auto 1.25rem; }
    .mobile-more-item { display:flex; align-items:center; gap:.85rem; width:100%; background:none; border:none; color:#fff; font-size:.95rem; font-weight:500; padding:.85rem .5rem; cursor:pointer; border-radius:8px; transition:.15s; }
    .mobile-more-item:hover, .mobile-more-item:active { background:rgba(255,255,255,0.07); }
    .mobile-more-item.danger { color:#f43f5e; }
    .mobile-more-divider { height:1px; background:rgba(255,255,255,0.08); margin:.5rem 0; }
}

/* ── Hide mobile nav + drawer on desktop ─────────────────────── */
@media (min-width: 769px) {
    .mobile-nav { display: none !important; }
    .mobile-more-drawer { display: none !important; }
}

/* ── Show mobile nav only on mobile ──────────────────────────── */
@media (max-width: 768px) {
    .mobile-nav { display: grid; }
}

/* ── Sortable table headers ──────────────────────────────────── */
.sortable-th:hover { color:#fff; }
.sort-active { color:#1d4ed8 !important; }

/* ── Foreman Timer View ──────────────────────────────────────── */
.foreman-view { display:flex; flex-direction:column; gap:1.25rem; }
.foreman-group { }
.foreman-group-label { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:#94a3b8; margin-bottom:.5rem; padding-left:.25rem; }
.foreman-emp-card { display:flex; align-items:center; justify-content:space-between; padding:.85rem 1rem; margin-bottom:.5rem; cursor:pointer; transition:.15s; }
.foreman-emp-card:hover { border-color:rgba(255,255,255,0.2); }
.foreman-emp-card.timer-running { border-color:#10b981; background:rgba(16,185,129,0.06); }
.foreman-emp-left { display:flex; align-items:center; gap:.75rem; flex:1; min-width:0; }
.foreman-emp-info { min-width:0; }
.foreman-active-proj { font-size:.75rem; color:#10b981; margin-top:.15rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.foreman-emp-right { display:flex; align-items:center; flex-shrink:0; }
.foreman-timer-badge { display:flex; align-items:center; gap:.5rem; }
.foreman-timer-badge.running .foreman-elapsed { font-family:monospace; font-size:.9rem; font-weight:700; color:#10b981; min-width:70px; text-align:right; }
.foreman-selected-emp { display:flex; align-items:center; gap:.85rem; padding:.85rem 1rem; margin-bottom:1rem; }
.btn-sm { padding:.3rem .7rem; font-size:.78rem; border-radius:6px; }

.status-onhold { background:rgba(245,158,11,0.15); color:#fbbf24; border:1px solid rgba(245,158,11,0.3); }

/* ── Projects filter bar ─────────────────────────────────────── */
.projects-filter-bar { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; margin-bottom:1rem; padding:.85rem 1rem; }
.proj-sort-dir { min-width:70px; font-variant-numeric:tabular-nums; }

/* ── Open Project ────────────────────────────────────────────── */
.open-project-badge { display:inline-block; padding:.15rem .55rem; background:rgba(99,102,241,0.15); color:#818cf8; border:1px solid rgba(99,102,241,0.3); border-radius:10px; font-size:.72rem; font-weight:600; }
.checkbox-label { display:flex; align-items:center; gap:.6rem; cursor:pointer; font-size:.875rem; }
.checkbox-label input[type="checkbox"] { width:16px; height:16px; accent-color:#1d4ed8; cursor:pointer; }

/* ── Projects list view ──────────────────────────────────────── */
.proj-view-toggle { min-width:70px; }

/* ── Projects list view ──────────────────────────────────────── */
.proj-view-toggle { min-width:70px; }

/* ── Timer project quick-find ────────────────────────────────── */
.proj-find-hint { font-size:.78rem; margin-top:.35rem; min-height:1em; }

/* ── Time Rule rate badges ───────────────────────────────────── */
.rate-badge { display:inline-block; padding:.2rem .65rem; border-radius:12px; font-size:.75rem; font-weight:600; }
.rate-badge.normal   { background:rgba(16,185,129,0.15); color:#34d399; border:1px solid rgba(16,185,129,0.3); }
.rate-badge.tea      { background:rgba(148,163,184,0.15); color:#cbd5e1; border:1px solid rgba(148,163,184,0.3); }
.rate-badge.overtime { background:rgba(245,158,11,0.15); color:#fbbf24; border:1px solid rgba(245,158,11,0.3); }
.rate-badge.double   { background:rgba(244,63,94,0.15); color:#fb7185; border:1px solid rgba(244,63,94,0.3); }


/* ── OMWANDI brand font (Montserrat) ─────────────────────────── */
.brand h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.brand h1 span {
    font-family: 'Montserrat', sans-serif;
}
