/* ==========================================================================
   BILDFORCE Enterprise SaaS ERP — Minimal Architectural Design System
   Palette: Architectural Slate (#0F172A), Pure White (#FFFFFF), Subtle Canvas (#F8FAFC)
   Typography: Plus Jakarta Sans (Unified throughout entire platform)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Architectural Minimalist Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #0f172a;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Brand Accents (Minimalist & Subdued) */
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-light: #f1f5f9;
  
  --accent-blue: #2563eb;
  --accent-blue-light: #eff6ff;
  
  --success: #16a34a;
  --success-light: #f0fdf4;
  --success-text: #15803d;

  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-text: #b45309;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-text: #b91c1c;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-dropdown: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-modal: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  --sidebar-width: 250px;
  --topbar-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  background-color: var(--bg-page);
}

.app-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ----------------------------------------------------
   1. MINIMAL WHITE SIDEBAR
   ---------------------------------------------------- */
.lector-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: none;
}

.lector-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-brand {
  height: var(--topbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-img {
  height: 32px;
  max-width: 160px;
  object-fit: contain;
}

.brand-badge-minimal {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.sidebar-nav-container {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 700;
  border-left: 3px solid var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-link.active .nav-icon {
  color: var(--text-primary);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
}

/* Sidebar User Footer */
.sidebar-user-bottom {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.user-card-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.user-info-sm h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-info-sm span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ----------------------------------------------------
   2. TOPBAR, STICKY DOCK & CANVAS
   ---------------------------------------------------- */
.main-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Unified Sticky Top Dock (Glues Topbar & Sticky Header Together with 0px Gap) */
.app-sticky-dock {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: var(--bg-surface);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.lector-topbar {
  height: 56px;
  min-height: 56px;
  background: var(--bg-surface);
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  min-width: 44px;
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
}

.topbar-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.10rem;
  cursor: pointer;
  transition: all 0.15s;
}

.topbar-btn-icon:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.page-content-canvas {
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0 !important;
  min-height: fit-content !important;
  height: auto !important;
}

@media (max-width: 600px) {
  .page-content-canvas {
    padding: 0 14px 100px 14px !important;
    flex-shrink: 0 !important;
    min-height: fit-content !important;
    height: auto !important;
  }
}

/* ----------------------------------------------------
   PAGE STICKY HEADER (Light Grey-Black / Dark Slate)
   ---------------------------------------------------- */
.page-sticky-header {
  position: relative !important;
  top: auto !important;
  z-index: 1;
  background: #1e293b;
  background: linear-gradient(180deg, #1f293d 0%, #111827 100%);
  color: #f8fafc;
  padding: 6px 16px;
  margin: 0 !important;
  border-top: none !important;
  border-bottom: 1px solid #334155;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.20);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-sticky-header .card-header-row {
  margin-bottom: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.page-sticky-header .card-title-stack h3 {
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.page-sticky-header .card-title-stack p {
  display: none !important;
}

.page-sticky-header .btn-primary {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.page-sticky-header .btn-primary:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.page-sticky-header .btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.page-sticky-header .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

.page-sticky-header .form-control {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.page-sticky-header .filter-card {
  background: #242f40 !important;
  border: 1px solid #3b485d !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 8px 10px !important;
  margin-bottom: 2px !important;
}

.page-sticky-header .filter-label {
  color: #cbd5e1 !important;
  font-size: 0.65rem !important;
}

.page-sticky-header .filter-control {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.page-sticky-header button[title="Filters"],
.page-sticky-header button[title="Filter by Trade"] {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.page-sticky-header button[title="Filters"]:hover,
.page-sticky-header button[title="Filter by Trade"]:hover {
  background: #f1f5f9 !important;
}

.page-sticky-header .filter-card .btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}

.page-sticky-header .filter-card .btn-secondary {
  background: #334155 !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
}

/* ----------------------------------------------------
   3. MINIMAL ELEVATED CARDS
   ---------------------------------------------------- */
.surface-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.card-title-stack h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-title-stack p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ----------------------------------------------------
   4. DASHBOARD KPIS (Clean & Minimal)
   ---------------------------------------------------- */
.kpi-minimal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-minimal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-minimal-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-minimal-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.kpi-minimal-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* Chart & Analytics Grid */
.analytics-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.tab-pill-group {
  display: flex;
  gap: 14px;
}

.tab-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding-bottom: 2px;
}

.tab-pill.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
}

/* ----------------------------------------------------
   5. TABLES & STATUS PILLS (Subdued & Clean)
   ---------------------------------------------------- */
.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.minimal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.minimal-table thead tr {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.minimal-table th {
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.minimal-table td {
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.minimal-table tbody tr:hover {
  background: var(--bg-subtle);
}

/* Subdued Status Badges */
.pill-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
}

.pill-slate { background: var(--bg-subtle); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.pill-blue { background: var(--accent-blue-light); color: var(--accent-blue); border: 1px solid #dbeafe; }
.pill-green { background: var(--success-light); color: var(--success-text); border: 1px solid #dcfce7; }
.pill-amber { background: var(--warning-light); color: var(--warning-text); border: 1px solid #fef3c7; }
.pill-red { background: var(--danger-light); color: var(--danger-text); border: 1px solid #fee2e2; }

/* ----------------------------------------------------
   6. PROJECT CARDS (Clean Grid)
   ---------------------------------------------------- */
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-dropdown);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card-title h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.project-card-title span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-budget-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
}

.budget-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.budget-val-stack span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.budget-val-stack strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.budget-progress-track {
  width: 100%;
  height: 6px;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.budget-progress-bar {
  height: 100%;
  background: var(--text-primary);
  border-radius: 3px;
}

/* ----------------------------------------------------
   7. BUTTONS, FORMS & MODALS
   ---------------------------------------------------- */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--text-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-wrap: break-word !important;
  line-height: 1.3 !important;
}

.form-control, 
input.form-control, 
select.form-control,
textarea.form-control {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-family);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  display: block;
}

input[type="date"].form-control,
.modal-card input[type="date"] {
  min-height: 40px !important;
  height: 40px !important;
  padding: 6px 10px !important;
  font-family: inherit !important;
  font-size: 0.82rem !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

/* Custom Dropdown Styling (Removes native box and adds crisp, centered SVG chevron) */
select,
select.form-control,
.modal-card select,
.surface-card select,
.filter-control,
.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 10px) center !important;
  background-size: 18px 18px !important;
  padding-right: 36px !important;
  padding-left: 12px !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
  outline: none !important;
  pointer-events: auto !important;
}

select.unit-select,
.minimal-table select {
  padding-left: 6px !important;
  padding-right: 22px !important;
  background-position: calc(100% - 4px) center !important;
  background-size: 14px 14px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  height: 34px !important;
  min-width: 72px !important;
}

select::-ms-expand {
  display: none !important;
}

textarea.form-control {
  height: auto;
  min-height: 70px;
}

.form-control:focus,
select.form-control:focus,
input.form-control:focus {
  outline: none;
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-modal);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 10px !important;
    align-items: center !important;
  }
  .modal-card {
    padding: 16px 14px !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    border-radius: 16px !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.modal-footer {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--border-subtle) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-footer button,
.modal-footer .btn {
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 0.80rem !important;
  font-weight: 750 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
}

@media (max-width: 600px) {
  .modal-footer {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
  }
  .modal-footer button,
  .modal-footer .btn {
    flex: 1 1 auto !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* ----------------------------------------------------
   8. RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ---------------------------------------------------- */
/* ----------------------------------------------------
   8. MOBILE SERVICES GRID & APP-LIKE UI COMPONENTS
   ---------------------------------------------------- */
.services-hub-section {
  display: none; /* Hidden on desktop */
  margin-top: 10px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .services-hub-section {
    display: block; /* Visible ONLY on mobile */
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.service-card:active {
  transform: scale(0.98);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.service-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.service-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.service-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.service-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 10px;
}

.service-arrow {
  align-self: flex-end;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.service-card:hover .service-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

/* Mobile Bottom Fixed Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  outline: none;
  padding: 6px 10px;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  transition: all 0.15s ease;
}

.mobile-nav-item.active {
  color: #0f172a;
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: scale(1.15);
}

.mobile-nav-item.active .mobile-nav-label {
  font-weight: 800;
  color: #0f172a;
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  transition: transform 0.15s ease;
}

.mobile-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mobile-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 1.1rem;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-primary);
  margin-right: 8px;
  line-height: 1;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .no-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .no-desktop {
    display: none !important;
  }
}

/* Mobile Slide-out Drawer */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}

/* ----------------------------------------------------
   9. RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .analytics-two-col {
    grid-template-columns: 1fr;
  }
  .kpi-minimal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    height: 100% !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #app, .app-layout {
    height: 100% !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Public Portal Pages (Quotation Approval, Invoice Download, Tender Bidding) */
  .public-portal-page {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 120px !important;
    display: block !important;
    position: relative !important;
  }

  /* Desktop sidebar hidden on mobile, replaced by bottom nav and slide-over drawer */
  .lector-sidebar {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  .mobile-drawer-backdrop {
    display: block;
  }

  .main-wrapper {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    padding-bottom: 85px !important; /* Space for bottom nav */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
  }

  .app-sticky-dock {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .lector-topbar {
    padding: 0 14px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    position: relative !important;
    top: auto !important;
    z-index: 2;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-shrink: 0;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .page-content-canvas {
    padding: 0 14px 80px 14px !important;
    gap: 8px !important;
  }

  .page-sticky-header {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    margin: 0 !important;
    padding: 4px 8px !important;
    border-top: none !important;
    border-radius: 0 !important;
    gap: 4px !important;
  }

  .punch-selector {
    display: flex !important;
    width: 100% !important;
  }

  .punch-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 4px 2px !important;
    font-size: 0.65rem !important;
  }

  /* Clean KPIs on Mobile */
  .kpi-minimal-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
  }

  .kpi-minimal-card {
    padding: 12px 10px !important;
    overflow: hidden !important;
    border-radius: var(--radius-sm) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .kpi-minimal-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
  }

  .kpi-minimal-label span:first-child {
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
  }

  .kpi-minimal-val {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    margin-top: 4px !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
  }

  .kpi-minimal-sub {
    font-size: 0.65rem !important;
    color: var(--text-secondary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 2px !important;
  }

  .card-header-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .card-title-stack {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .card-title-stack h3 {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-title-stack p {
    display: none !important; /* Hide long secondary descriptions on mobile for ultra-compact screen */
  }

  .card-header-row button,
  .card-header-row .btn {
    width: auto !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filter-group {
    min-width: 0;
    width: 100%;
  }

  .filter-group.sm, .filter-group.xs {
    min-width: 0;
    width: 100%;
  }

  .table-responsive-wrapper {
    border-radius: var(--radius-sm);
    -webkit-overflow-scrolling: touch !important;
    overflow-x: auto !important;
    touch-action: pan-y pan-x !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .minimal-table th, .minimal-table td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

/* Minimalist Modules Launcher Grid */
.modules-launcher-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 18px;
}

@media (max-width: 992px) {
  .modules-launcher-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .modules-launcher-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 8px !important;
    margin-bottom: 20px !important;
  }
}

.module-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 98px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.module-tile:hover {
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.module-tile:active {
  transform: scale(0.96);
}

.module-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #0f172a;
}

.module-tile-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.module-tile-title {
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.module-tile-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Mobile Card Stacks for Lists */
.mobile-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mobile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.mobile-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  border: 1px solid #f1f5f9;
}

.mobile-card-metrics > div {
  min-width: 0;
  overflow: hidden;
}

.mobile-card-metrics .metric-val,
.mobile-card-metrics div > div {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

.mobile-card-metrics .metric-label,
.mobile-card-metrics div > span {
  font-size: 0.56rem !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 2px !important;
}

.mobile-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Compact Filter Controls */
.filter-card {
  padding: 10px 12px !important;
  margin-bottom: 12px !important;
}

.filter-label {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  margin-bottom: 2px !important;
  text-transform: uppercase !important;
}

.filter-control {
  height: 32px !important;
  padding: 4px 8px !important;
  font-size: 0.76rem !important;
  border-radius: 6px !important;
}

/* Responsive Form and Settings Grids */
.responsive-settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  width: 100%;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .responsive-settings-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 600px) {
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .surface-card {
    padding: 12px 10px !important;
  }
  .page-content-canvas {
    padding: 0 14px 80px 14px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .page-sticky-header {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    border-top: none !important;
    padding: 4px 8px !important;
  }
  .form-control {
    font-size: 0.85rem !important;
  }
}

/* ----------------------------------------------------
   8. FILTER TOOLBARS & ATTENDANCE MATRIX STYLES
   ---------------------------------------------------- */
.filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.filter-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1;
}

.filter-group.sm {
  min-width: 110px;
  flex: 0.7;
}

.filter-group.xs {
  min-width: 80px;
  flex: 0.5;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-control {
  height: 36px;
  padding: 6px 30px 6px 10px !important;
  font-size: 0.82rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.filter-control:focus {
  border-color: #0f172a;
}

.punch-selector {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--border-subtle);
}

.punch-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.punch-btn.active.unassigned {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.punch-btn.active.present {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.punch-btn.active.half {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.punch-btn.active.absent {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ----------------------------------------------------
   ATTENDANCE 2-COLUMN EMPLOYEE GRID
   ---------------------------------------------------- */
.attendance-employee-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 320px) {
  .attendance-employee-grid {
    grid-template-columns: 1fr !important;
  }
}

.attendance-worker-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.attendance-worker-card.unassigned {
  background: rgba(248, 250, 252, 0.85);
  border-color: #e2e8f0;
}

.attendance-worker-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.attendance-worker-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.attendance-worker-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.attendance-worker-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.attendance-worker-wage {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.attendance-site-select {
  padding: 2px 6px !important;
  font-size: 0.70rem !important;
  height: 26px !important;
  width: 100% !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  cursor: pointer;
}

.attendance-status-select {
  padding: 2px 6px !important;
  font-size: 0.70rem !important;
  height: 26px !important;
  width: 100% !important;
  font-weight: 750 !important;
  border-radius: 6px !important;
  cursor: pointer;
}

/* Streamlined Single-Row Attendance Meta Strip (Reduced Boxes & Clean Layout) */
.attendance-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 3px 5px;
  min-width: 0;
}

.att-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.att-meta-lbl {
  font-size: 0.58rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  flex-shrink: 0;
}

.att-meta-input {
  width: 100%;
  min-width: 20px;
  max-width: 32px;
  height: 20px !important;
  padding: 0 2px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  color: #0f172a;
  outline: none;
  box-shadow: none !important;
}

.att-meta-input:focus {
  border-color: #3b82f6 !important;
  background: #ffffff;
}

.att-meta-bata {
  color: #b45309 !important;
  text-align: right;
  max-width: 32px;
}

.att-meta-pay-item {
  flex: 1.1;
  justify-content: flex-end;
}

.att-meta-pay-input {
  max-width: 44px;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: right;
  padding: 0 3px !important;
}

.att-meta-pay-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.62rem;
}

/* ----------------------------------------------------
   10. BUSINESS SETTINGS, BRANDING & SAAS ADMIN STYLES
   ---------------------------------------------------- */
.settings-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.settings-tab-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.settings-tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.settings-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.logo-preview-box {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.logo-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preset-logo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.preset-logo-pill:hover {
  border-color: #0f172a;
  background: var(--bg-subtle);
}

.preset-logo-pill.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.letterhead-preview-sheet {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.letterhead-header-band {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.letterhead-bank-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 0.76rem;
}

.access-credential-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 12px;
  position: relative;
}

.access-credential-card code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.saas-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.saas-stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.saas-stat-number {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.saas-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ----------------------------------------------------
   9. PRINT STYLES FOR TAX INVOICE & PROPOSAL PDF
   ---------------------------------------------------- */
@media print {
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .no-print, .lector-sidebar, .lector-topbar, .btn, .modal-overlay {
    display: none !important;
  }
  .surface-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .invoice-print-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
}



/* ========================================================
   RESPONSIVE UTILITIES & VISIBILITY FIXES
   ======================================================== */
.lector-topbar {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
}

.topbar-brand-logo,
.lector-topbar img {
  height: 44px !important;
  max-height: 44px !important;
  max-width: 175px !important;
  object-fit: contain !important;
  display: block !important;
}

.brand-logo-img,
.sidebar-brand img {
  height: 48px !important;
  max-height: 48px !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}

.mobile-menu-btn {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  font-size: 1.40rem !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}
.mobile-menu-btn:hover {
  background: #f1f5f9 !important;
}
.mobile-menu-btn:active {
  transform: scale(0.96) !important;
}

@media (min-width: 901px) {
  .no-desktop,
  .mobile-menu-btn,
  .mobile-cards-stack,
  .attendance-employee-grid,
  .mobile-item-card {
    display: none !important;
  }
  .desktop-topbar-brand {
    display: inline-block !important;
  }
  .attendance-desktop-table {
    display: block !important;
  }
}

@media (max-width: 900px) {
  .no-mobile,
  .desktop-topbar-brand,
  .attendance-desktop-table {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .attendance-employee-grid {
    display: grid !important;
  }
}


/* ========================================================
   ULTRA-COMPACT HIGH-DENSITY HEADER & TAB STYLES
   ======================================================== */
.page-sticky-header {
  padding: 8px 12px !important;
  gap: 6px !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
}

@media (max-width: 768px) {
  .page-sticky-header {
    padding: 6px 8px !important;
    gap: 4px !important;
    border-radius: 8px !important;
  }
}

/* High-Density KPI Ribbon */
.kpi-ribbon-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (max-width: 768px) {
  .kpi-ribbon-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 5px;
    padding-bottom: 2px;
  }
  .kpi-ribbon-strip::-webkit-scrollbar {
    display: none;
  }
  .kpi-chip-item {
    flex-shrink: 0;
    min-width: 110px;
    padding: 4px 8px !important;
  }
}

.kpi-chip-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kpi-chip-item .chip-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kpi-chip-item .chip-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

/* Crystal-Clear Tab Pill Group */
.tab-pill-group {
  display: inline-flex !important;
  background: #090d16 !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  padding: 2px !important;
  gap: 2px !important;
}

.tab-pill {
  border: none !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

.tab-pill:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.tab-pill.active {
  background: #38bdf8 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Compact Mobile Action Buttons */
.action-btn-compact {
  height: 28px !important;
  padding: 0 8px !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

/* Topbar Tweaks */
.lector-topbar {
  padding: 0 16px !important;
  height: 56px !important;
  min-height: 56px !important;
}

@media (max-width: 768px) {
  .lector-topbar {
    padding: 0 12px !important;
    height: 56px !important;
    min-height: 56px !important;
  }
}


/* Minimalist Search Icon & Field Styling */
.search-icon-svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: #94a3b8;
  pointer-events: none;
}

.search-input-minimal {
  padding-left: 24px !important;
  height: 28px !important;
  font-size: 0.74rem !important;
  border-radius: 6px !important;
}

@media (max-width: 768px) {
  .page-sticky-header .card-header-row {
    flex-wrap: nowrap !important;
  }
  .page-sticky-header h3 {
    font-size: 0.86rem !important;
    white-space: nowrap !important;
  }
}


/* ========================================================
   GLOBAL HIGH-READABILITY COMPACT TYPOGRAPHY & BUTTON OVERHAUL
   ======================================================== */
:root {
  --topbar-height: 48px;
}

body, html {
  font-size: 13.5px;
  line-height: 1.35;
}

h1 { font-size: 1.15rem !important; }
h2 { font-size: 0.98rem !important; }
h3 { font-size: 0.84rem !important; }
h4 { font-size: 0.74rem !important; }
p { font-size: 0.72rem; }

/* Global Ultra-Compact Button Scale */
.btn {
  height: 26px !important;
  padding: 0 10px !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  gap: 4px !important;
}

.btn-sm, .action-btn-compact {
  height: 24px !important;
  padding: 0 8px !important;
  font-size: 0.67rem !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  gap: 3px !important;
}

/* Global Compact Form Inputs */
.form-control, .filter-control {
  height: 26px !important;
  padding: 2px 8px !important;
  font-size: 0.72rem !important;
  border-radius: 5px !important;
}

.form-label, .filter-label {
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  margin-bottom: 2px !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Global Ultra-Compact Tables (Massive Screen-Space Savings) */
.minimal-table th {
  padding: 5px 8px !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.minimal-table td {
  padding: 4px 8px !important;
  font-size: 0.70rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.minimal-table td strong {
  font-size: 0.72rem !important;
  font-weight: 750 !important;
}

/* Status Badges */
.pill-status {
  padding: 1px 6px !important;
  font-size: 0.60rem !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
}

/* Cards & Surface Containers */
.surface-card {
  padding: 8px 10px !important;
  border-radius: 8px !important;
}

.mobile-item-card {
  padding: 6px 8px !important;
  margin-bottom: 5px !important;
  border-radius: 6px !important;
  border: 1px solid var(--border-subtle);
}

.project-card {
  padding: 10px 12px !important;
  gap: 6px !important;
  border-radius: 8px !important;
}

.project-card-title h3 {
  font-size: 0.84rem !important;
}

.project-budget-box {
  padding: 6px 8px !important;
}

.budget-val-stack span {
  font-size: 0.60rem !important;
}

.budget-val-stack strong {
  font-size: 0.78rem !important;
}

/* Attendance Mobile Punch Card High-Density Rules */
.attendance-worker-card {
  box-sizing: border-box;
}


/* ========================================================
   ULTRA-COMPACT HEADER BUTTONS & REACTIVE REFINEMENTS
   ======================================================== */
.header-action-btn,
.page-sticky-header .btn,
.page-sticky-header .btn-primary,
.page-sticky-header .btn-secondary,
.page-sticky-header .action-btn-compact {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.page-sticky-header .btn-primary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.page-sticky-header .btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.page-sticky-header h3 {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
}


/* ========================================================
   BALANCED "MIDDLE" READABILITY TYPOGRAPHY (SWEET SPOT)
   ======================================================== */
body, html {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

h1 { font-size: 1.20rem !important; }
h2 { font-size: 1.02rem !important; }
h3 { font-size: 0.88rem !important; }
h4 { font-size: 0.78rem !important; }
p { font-size: 0.76rem !important; }

/* Readable Table Text (Middle scale) */
.minimal-table th {
  padding: 6px 10px !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
}

.minimal-table td {
  padding: 6px 10px !important;
  font-size: 0.74rem !important;
  line-height: 1.3 !important;
}

.minimal-table td strong {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

/* Worker Cards in Shift Logs (Middle scale) */
.mobile-item-card strong {
  font-size: 0.86rem !important;
}

.attendance-worker-name {
  font-size: 0.80rem !important;
}

/* Form Inputs (Middle scale) */
.form-control, .filter-control {
  height: 28px !important;
  font-size: 0.75rem !important;
  padding: 3px 8px !important;
}

.form-label, .filter-label {
  font-size: 0.68rem !important;
}

/* Buttons (Middle scale) */
.btn {
  height: 26px !important;
  padding: 0 10px !important;
  font-size: 0.70rem !important;
}

.btn-sm, .header-action-btn, .action-btn-compact {
  height: 24px !important;
  padding: 0 8px !important;
  font-size: 0.68rem !important;
}


/* ========================================================
   ATTENDANCE ROSTER ERROR VALIDATION STYLES
   ======================================================== */
.field-error-red {
  border: 2px solid #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
}

.card-error-red {
  border: 2px solid #dc2626 !important;
  background: #fff5f5 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15) !important;
}

.row-error-red {
  background: #fef2f2 !important;
  border-left: 4px solid #dc2626 !important;
}

.error-banner-roster {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}


/* ========================================================
   SEARCH ICON PADDING & DROPDOWN ARROW FIXES
   ======================================================== */

/* Dedicated Search Input Class that always preserves 28px left padding */
.search-input-field,
.search-control,
.search-box input,
.search-bar-wrap input {
  padding-left: 28px !important;
  padding-right: 22px !important;
  height: 28px !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.search-icon-svg {
  position: absolute !important;
  left: 9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 13px !important;
  height: 13px !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Polished Status Dropdowns with Crisp Custom Arrow */
select.pill-status,
.project-status-select,
.status-pill-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 10px 10px !important;
  padding: 2px 20px 2px 8px !important;
  height: 24px !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Site and Status select dropdowns */
.attendance-status-dropdown,
.site-select-dropdown {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 10px 10px !important;
  padding: 2px 20px 2px 6px !important;
  height: 25px !important;
}


/* ========================================================
   PROMINENT TYPOGRAPHY FOR MAIN NAMES & SECTION HEADERS
   ======================================================== */
.attendance-worker-name {
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.project-card-title h3,
.card-title-stack h3,
.page-sticky-header h3,
.project-card h3 {
  font-size: 0.98rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.material-item-name,
table.minimal-table td strong,
.customer-name-heading {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.desktop-topbar-brand {
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

.nav-section-title {
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}


/* ========================================================
   ENHANCED MODAL FORM DENSITY & PROMINENT TEXT
   ======================================================== */
.modal-card {
  max-width: 560px;
  width: 95%;
  padding: 24px 24px !important;
  border-radius: 18px !important;
}

.modal-header h2 {
  font-size: 1.18rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
}

.modal-card .form-label {
  font-size: 0.75rem !important;
  font-weight: 750 !important;
  color: #1e293b !important;
  margin-bottom: 5px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35 !important;
}

.modal-card .form-control,
.modal-card select.form-control,
.modal-card input.form-control {
  height: 40px !important;
  min-height: 40px !important;
  font-size: 0.85rem !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.modal-card .btn {
  height: 38px !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  border-radius: 8px !important;
}

/* Quick Info Eye Popout Modal */
.info-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.info-dossier-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-dossier-label {
  font-size: 0.68rem;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-dossier-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.info-action-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

/* Responsive Chart Styles */
.chart-legend-wrap {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 750;
  margin-bottom: 10px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}


/* ========================================================
   CLEAN COMPACT SELECTS & PERFECT MODAL GRID ALIGNMENT
   ======================================================== */
.attendance-site-select,
.attendance-status-select {
  width: 100% !important;
  max-width: 100% !important;
  height: 26px !important;
  font-size: 0.70rem !important;
  padding: 2px 22px 2px 6px !important;
  background-position: right 6px center !important;
  background-size: 10px 10px !important;
  border-radius: 5px !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  display: block !important;
}

.modal-card form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.modal-card .form-group {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.modal-card .form-control,
.modal-card select.form-control,
.modal-card input.form-control {
  width: 100% !important;
  box-sizing: border-box !important;
}

.sub-tab-strip {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.sub-tab-btn {
  flex: 1;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 750;
  color: #64748b;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sub-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}


/* ========================================================
   HIGH CONTRAST & ZERO-SCROLL ELEGANT ARCHITECTURAL UI
   ======================================================== */
.materials-header-card {
  background: #1e293b !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
}

.kpi-ribbon-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 6px;
}

.kpi-chip-item {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-chip-item .chip-label {
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  color: #cbd5e1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.kpi-chip-item .chip-val {
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

/* Elegant Icon Wrapper */
.dossier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #475569;
}

.dossier-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

/* Modal Responsive Grid Fix */
@media (max-width: 600px) {
  .modal-card {
    padding: 18px 16px !important;
  }
  .modal-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}


/* ========================================================
   GLOBAL TYPOGRAPHY SCALING & ULTRA-READABILITY
   ======================================================== */
html {
  font-size: 15.5px !important;
}

body {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: #0f172a !important;
}

/* Headings */
h1 { font-size: 1.60rem !important; font-weight: 850 !important; }
h2 { font-size: 1.35rem !important; font-weight: 850 !important; }
h3 { font-size: 1.12rem !important; font-weight: 800 !important; }
h4 { font-size: 0.98rem !important; font-weight: 750 !important; }

/* Navigation Links */
.nav-link {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
}

.nav-section-title {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

/* Minimal Table Typography */
.minimal-table th {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  padding: 10px 12px !important;
}

.minimal-table td {
  font-size: 0.88rem !important;
  padding: 11px 12px !important;
}

/* Form Controls & Inputs */
.form-label {
  font-size: 0.84rem !important;
  font-weight: 750 !important;
  margin-bottom: 5px !important;
}

.form-control, select.form-control, input.form-control {
  font-size: 0.88rem !important;
  height: 38px !important;
  padding: 6px 12px !important;
}

textarea.form-control {
  font-size: 0.88rem !important;
  height: auto !important;
}

/* Buttons */
.btn {
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  height: 36px !important;
  padding: 0 14px !important;
}

.btn-sm {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  height: 30px !important;
  padding: 0 10px !important;
}

/* Module Launcher Grid */
.module-tile-title {
  font-size: 0.94rem !important;
  font-weight: 850 !important;
}

.module-tile-badge {
  font-size: 0.74rem !important;
  font-weight: 750 !important;
}

/* Badges & Pills */
.pill-status {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
}

/* Modals */
.modal-card h2 {
  font-size: 1.22rem !important;
  font-weight: 850 !important;
}


/* ==========================================================================
   ROUNDED CORNERS & COMPACT REFINED SIZES SYSTEM
   ========================================================================== */

:root {
  --radius-sm: 8px !important;
  --radius-md: 12px !important;
  --radius-lg: 16px !important;
}

/* Rounded Search Boxes (Pill Style & Compact Size) */
.search-input-field,
.search-box input,
.search-container input {
  border-radius: 20px !important;
  height: 32px !important;
  padding-left: 32px !important;
  padding-right: 28px !important;
  font-size: 0.82rem !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.search-input-field:focus {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10) !important;
}

/* Compact & Rounded Inputs, Selects, and Textareas */
.form-control,
input.form-control,
select.form-control,
.filter-control {
  border-radius: 10px !important;
  height: 35px !important;
  padding: 6px 12px !important;
  font-size: 0.84rem !important;
  border: 1px solid #cbd5e1 !important;
}

textarea.form-control {
  height: auto !important;
  min-height: 65px !important;
  border-radius: 10px !important;
}

/* Rounded Surface Cards, Modals & Boxes */
.surface-card {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04) !important;
}

.modal-card {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.05) !important;
}

.module-tile {
  border-radius: 14px !important;
  padding: 14px 10px !important;
}

.kpi-minimal-card {
  border-radius: 12px !important;
  padding: 14px 16px !important;
}

.filter-card {
  border-radius: 12px !important;
}

.table-responsive-wrapper {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* Compact & Rounded Buttons */
.btn {
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  transition: all 0.15s ease !important;
}

.btn-sm,
.header-action-btn {
  border-radius: 8px !important;
  height: 28px !important;
  padding: 0 11px !important;
  font-size: 0.74rem !important;
}

.tab-pill-group {
  border-radius: 10px !important;
}

.tab-pill {
  border-radius: 7px !important;
}

.pill-status {
  border-radius: 14px !important;
}

.page-sticky-header {
  border-bottom: 1px solid #334155 !important;
}


/* ==========================================================================
   SLEEK SINGLE-ROW HERO HEADERS & ADAPTIVE COMPACT SEARCH SYSTEM
   ========================================================================== */
.page-sticky-header {
  padding: 8px 16px !important;
  background: #1e293b !important;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  border-bottom: 1px solid #334155 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}

.hero-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 34px !important;
}

.hero-header-row .card-title-stack h3 {
  color: #ffffff !important;
  font-size: 0.94rem !important;
  font-weight: 850 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}

.header-controls-cluster {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.header-search-wrap {
  position: relative !important;
  width: 175px !important;
  transition: width 0.2s ease !important;
}

.header-search-wrap:focus-within {
  width: 210px !important;
}

.header-compact-search {
  height: 30px !important;
  padding-left: 28px !important;
  padding-right: 22px !important;
  font-size: 0.78rem !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #94a3b8 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.page-sticky-header .btn-primary {
  height: 30px !important;
  padding: 0 11px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #ffffff !important;
  white-space: nowrap !important;
}

.page-sticky-header .btn-primary:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.page-sticky-header .btn-secondary {
  height: 30px !important;
  padding: 0 9px !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  white-space: nowrap !important;
}

.page-sticky-header .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

@media (max-width: 640px) {
  .page-sticky-header {
    padding: 6px 10px !important;
  }
  .hero-header-row {
    gap: 6px !important;
  }
  .hero-header-row .card-title-stack h3 {
    font-size: 0.86rem !important;
    max-width: 125px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .header-search-wrap {
    width: 120px !important;
  }
  .header-search-wrap:focus-within {
    width: 140px !important;
  }
  .header-compact-search {
    height: 28px !important;
    font-size: 0.72rem !important;
    padding-left: 24px !important;
  }
  .page-sticky-header .btn-primary,
  .page-sticky-header .btn-secondary {
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 0.70rem !important;
  }
}


/* ==========================================================================
   MASTER ARCHITECTURAL HERO BANNER DESIGN SYSTEM
   ========================================================================== */

.arch-hero-banner {
  background: linear-gradient(135deg, #091322 0%, #0d1e38 50%, #11294d 100%);
  border-radius: 18px !important;
  padding: 18px 20px 14px !important;
  color: #ffffff;
  position: relative !important;
  top: auto !important;
  z-index: 2 !important;
  overflow: hidden;
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: fit-content !important;
  box-shadow: 0 10px 25px -5px rgba(9, 19, 34, 0.40), 0 8px 10px -6px rgba(9, 19, 34, 0.25);
  margin: 0 16px 8px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.10);
  max-width: 1400px;
}

/* Architectural Blueprint Wireframe Watermark */
.arch-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background-image: radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 70%),
                    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  pointer-events: none;
  opacity: 0.8;
}

.arch-hero-top {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.arch-hero-title {
  font-size: 1.35rem !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin: 0 0 4px 0 !important;
}

.arch-hero-subtitle {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Middle Toolbar Row */
.arch-hero-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.arch-hero-search-wrap {
  position: relative;
  flex: 1;
}

.arch-hero-search-wrap svg.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #64748b;
  pointer-events: none;
}

.arch-hero-search-input {
  width: 100% !important;
  height: 44px !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 0 36px 0 42px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.arch-hero-search-input:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.arch-hero-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 0.82rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.arch-hero-filter-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0f172a !important;
  cursor: pointer !important;
  position: relative !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.arch-hero-filter-btn:hover {
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.arch-hero-filter-btn.active {
  background: #38bdf8 !important;
  color: #091322 !important;
}

.arch-hero-filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.60rem;
  font-weight: 850;
  border-radius: 10px;
  padding: 2px 5px;
  line-height: 1;
}

.arch-hero-action-btn {
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #1e3a5f 0%, #152945 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.15s ease !important;
}

.arch-hero-action-btn:hover {
  background: linear-gradient(180deg, #254673 0%, #1a3356 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

/* Bottom Embedded White Tab Container */
.arch-hero-tabs-wrap {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.arch-hero-tab-btn {
  padding: 8px 18px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  color: #475569 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.arch-hero-tab-btn:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.arch-hero-tab-btn.active {
  background: linear-gradient(180deg, #0f1e36 0%, #091322 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(9, 19, 34, 0.25) !important;
}

.arch-hero-tab-btn .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

@media (max-width: 768px) {
  .arch-hero-banner {
    position: relative !important;
    top: auto !important;
    z-index: 2 !important;
    padding: 14px 14px 12px !important;
    border-radius: 16px !important;
    margin: 0 14px 6px 14px !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: fit-content !important;
    box-shadow: 0 8px 20px rgba(9, 19, 34, 0.45) !important;
  }
  .arch-hero-title {
    font-size: 1.15rem !important;
  }
  .arch-hero-subtitle {
    font-size: 0.78rem !important;
  }
  .arch-hero-toolbar {
    gap: 6px !important;
  }
  .arch-hero-search-input {
    height: 40px !important;
    font-size: 0.82rem !important;
    padding-left: 36px !important;
  }
  .arch-hero-search-wrap svg.search-icon {
    width: 15px;
    height: 15px;
    left: 11px;
  }
  .arch-hero-filter-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 10px !important;
  }
  .arch-hero-action-btn {
    height: 40px !important;
    padding: 0 9px !important;
    font-size: 0.74rem !important;
    font-weight: 750 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .arch-hero-tab-btn {
    padding: 6px 12px !important;
    font-size: 0.76rem !important;
  }
}

/* =========================================================================
   HOME HUB / MAIN DASHBOARD (Architectural Master UI)
   ========================================================================= */
.hub-hero-banner {
  position: relative !important;
  background: linear-gradient(145deg, #071224 0%, #0d1e38 55%, #0f274a 100%) !important;
  border-radius: 22px !important;
  padding: 24px 22px 20px 22px !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 36px -8px rgba(7, 18, 36, 0.45) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.hub-hero-watermark {
  position: absolute !important;
  right: 6px !important;
  top: 10px !important;
  bottom: 0 !important;
  height: 180px !important;
  width: auto !important;
  pointer-events: none !important;
  opacity: 0.28 !important;
  z-index: 1 !important;
}

.hub-hero-header-stack {
  position: relative !important;
  z-index: 2 !important;
  margin-bottom: 18px !important;
}

.hub-hero-greeting {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  margin: 0 0 3px 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

.hub-hero-name {
  color: #38bdf8 !important;
  font-weight: 800 !important;
}

.hub-hero-title {
  font-size: 1.75rem !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
}

.hub-hero-subtitle {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  line-height: 1.38 !important;
  font-weight: 500 !important;
  max-width: 340px !important;
}

/* Continuous Translucent Stat Capsule Strip */
.hub-hero-stats-strip {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(15, 23, 42, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  padding: 10px 14px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.hub-stat-item {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.hub-stat-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.hub-stat-divider {
  width: 1px !important;
  height: 38px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  margin: 0 4px !important;
  flex-shrink: 0 !important;
}

.hub-stat-icon-wrap {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

.hub-stat-icon-wrap svg {
  width: 22px !important;
  height: 22px !important;
}

.stat-icon-blue { color: #2563eb !important; }
.stat-icon-green { color: #16a34a !important; }
.stat-icon-orange { color: #ea580c !important; }

.hub-stat-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.hub-stat-name {
  font-size: 0.70rem !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

.hub-stat-number {
  font-size: 1.22rem !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  margin: 1px 0 !important;
}

.hub-stat-unit {
  font-size: 0.64rem !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

/* 3-Column Launcher Cards Grid */
.hub-launcher-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.hub-launcher-card {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 18px !important;
  padding: 18px 8px 14px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 3px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.hub-launcher-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.hub-launcher-card:active {
  transform: scale(0.97) !important;
}

.hub-card-icon-box {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
}

.hub-launcher-card:hover .hub-card-icon-box {
  transform: scale(1.08) !important;
}

.hub-card-icon-box svg {
  width: 23px !important;
  height: 23px !important;
}

.hub-card-title {
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.hub-card-sub {
  font-size: 0.70rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

/* Specific pastel themes */
.theme-blue { background: #eff6ff !important; color: #2563eb !important; }
.theme-purple { background: #f5f3ff !important; color: #7c3aed !important; }
.theme-orange { background: #fff7ed !important; color: #ea580c !important; }
.theme-green { background: #f0fdf4 !important; color: #16a34a !important; }
.theme-indigo { background: #eef2ff !important; color: #4f46e5 !important; }
.theme-violet { background: #faf5ff !important; color: #9333ea !important; }
.theme-peach { background: #fff1f2 !important; color: #e11d48 !important; }
.theme-teal { background: #f0fdfa !important; color: #0d9488 !important; }
.theme-sky { background: #f0f9ff !important; color: #0284c7 !important; }
.theme-lime { background: #f7fee7 !important; color: #65a30d !important; }
.theme-amber { background: #fffbeb !important; color: #d97706 !important; }
.theme-gray { background: #f8fafc !important; color: #475569 !important; }



/* =========================================================================
   FLOATING PILL MOBILE BOTTOM NAVIGATION (Matches Hero Dark Styling)
   ========================================================================= */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 28px) !important;
  max-width: 390px !important;
  height: 56px !important;
  background: #090e1a !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  display: none;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 6px !important;
  z-index: 1000 !important;
  margin: 0 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.mobile-nav-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 10px !important;
  border-radius: 9999px !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.mobile-nav-item .mobile-nav-icon {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}

.mobile-nav-item .mobile-nav-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.mobile-nav-item.active {
  background: #1e293b !important;
  color: #ffffff !important;
  padding: 0 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mobile-nav-item.active .mobile-nav-icon {
  color: #ffffff !important;
}

.mobile-nav-item.active .mobile-nav-icon svg {
  stroke: #ffffff !important;
}

.mobile-nav-item .mobile-nav-label {
  font-size: 0.80rem !important;
  font-weight: 750 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  animation: fadeInNavLabel 0.2s ease-out;
}

@keyframes fadeInNavLabel {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
  }
  .main-wrapper {
    padding-bottom: 90px !important;
  }
}

@media (max-width: 480px) {
  .hub-hero-banner {
    padding: 16px 14px 14px 14px !important;
    border-radius: 18px !important;
    margin-bottom: 14px !important;
    min-height: 185px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .hub-hero-header-stack {
    margin-bottom: 8px !important;
  }
  .hub-hero-greeting {
    font-size: 0.78rem !important;
    margin-bottom: 2px !important;
  }
  .hub-hero-title {
    font-size: 1.35rem !important;
    margin-bottom: 2px !important;
  }
  .hub-hero-subtitle {
    font-size: 0.72rem !important;
    max-width: 250px !important;
    margin: 0 !important;
  }
  .hub-hero-watermark {
    height: 120px !important;
    right: -10px !important;
    top: 5px !important;
    opacity: 0.20 !important;
  }
  .hub-hero-stats-strip {
    padding: 6px 10px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hub-stat-item {
    gap: 6px !important;
    padding: 2px 4px !important;
    align-items: center !important;
  }
  .hub-stat-icon-wrap {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }
  .hub-stat-icon-wrap svg {
    width: 14px !important;
    height: 14px !important;
  }
  .hub-stat-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .hub-stat-name {
    font-size: 0.60rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1 !important;
  }
  .hub-stat-number {
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    margin-top: 1px !important;
  }
  .hub-stat-divider {
    height: 22px !important;
    margin: 0 2px !important;
  }
  .surface-card {
    padding: 10px 8px !important;
  }
  .minimal-table {
    width: 100% !important;
    table-layout: fixed !important;
  }
  .minimal-table th, .minimal-table td {
    padding: 8px 4px !important;
    font-size: 0.72rem !important;
    word-break: break-word !important;
  }
  .minimal-table th {
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hub-launcher-grid {
    gap: 8px !important;
    margin-bottom: 18px !important;
  }
  .hub-launcher-card {
    padding: 14px 4px 12px 4px !important;
    border-radius: 14px !important;
  }
  .hub-card-icon-box {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    margin-bottom: 2px !important;
  }
  .hub-card-icon-box svg {
    width: 20px !important;
    height: 20px !important;
  }
  .hub-card-title {
    font-size: 0.80rem !important;
  }
  .hub-card-sub {
    font-size: 0.65rem !important;
  }

}

/* =========================================================================
   EXECUTIVE FINANCIAL INTELLIGENCE DASHBOARD (Pixel-Perfect Reference Match)
   ========================================================================= */

/* Hero Banner */
.exec-hero-banner {
  position: relative !important;
  background: linear-gradient(145deg, #071224 0%, #0d1e38 55%, #0f274a 100%) !important;
  border-radius: 20px !important;
  padding: 22px 28px !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px -8px rgba(7, 18, 36, 0.40) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.exec-hero-watermark {
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 140px !important;
  width: auto !important;
  pointer-events: none !important;
  opacity: 0.28 !important;
  z-index: 1 !important;
}

.exec-hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 680px !important;
}

.exec-hero-tag {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}

.exec-hero-title {
  font-size: 1.55rem !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
}

.exec-hero-subtitle {
  font-size: 0.86rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  font-weight: 450 !important;
}

.exec-hero-badge-wrap {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.exec-live-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.30) !important;
  border-radius: 20px !important;
  padding: 5px 12px !important;
  font-size: 0.74rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  backdrop-filter: blur(8px) !important;
}

.live-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  box-shadow: 0 0 8px #22c55e !important;
}

.exec-hub-toggle-btn {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(8px) !important;
}

.exec-hub-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.20) !important;
  color: #ffffff !important;
}

.desktop-hero-title {
  display: block !important;
}
.mobile-hero-title {
  display: none !important;
}
.mobile-only-tag {
  display: none !important;
}

/* 4 KPI Cards Grid */
.exec-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

.exec-kpi-card {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 18px !important;
  padding: 18px 20px !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.exec-kpi-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
  border-color: #cbd5e1 !important;
}

.exec-kpi-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

.exec-kpi-icon-box {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.exec-kpi-icon-box svg {
  width: 20px !important;
  height: 20px !important;
}

.kpi-icon-green {
  background: #f0fdf4 !important;
  color: #16a34a !important;
}

.kpi-icon-blue {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.kpi-icon-purple {
  background: #faf5ff !important;
  color: #9333ea !important;
}

.kpi-icon-emerald {
  background: #ecfdf5 !important;
  color: #059669 !important;
}

.exec-kpi-pill {
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.pill-surplus {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.pill-margin {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.pill-spend {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.pill-live {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.exec-kpi-label {
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  color: #64748b !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}

.exec-kpi-val {
  font-size: 1.55rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

.val-green {
  color: #16a34a !important;
}

.exec-kpi-sub {
  font-size: 0.72rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Dual Section Grid */
.exec-main-grid {
  display: grid !important;
  grid-template-columns: 1.75fr 1.15fr !important;
  gap: 20px !important;
  width: 100% !important;
  margin-bottom: 24px !important;
}

.exec-surface-card {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 20px !important;
  padding: 22px 24px !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.03) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

.exec-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.exec-card-title {
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 3px 0 !important;
}

.exec-card-subtitle {
  font-size: 0.76rem !important;
  color: #64748b !important;
  margin: 0 !important;
}

.exec-timeframe-pills {
  display: flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 3px !important;
  gap: 2px !important;
}

.exec-tf-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 9px !important;
  padding: 5px 12px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.exec-tf-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;
}

.exec-chart-legend {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
}

.legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  color: #475569 !important;
}

.legend-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.dot-green {
  background: #10b981 !important;
}

.dot-red {
  background: #ef4444 !important;
}

.dot-navy {
  background: #0f172a !important;
}

.exec-chart-container {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  margin-bottom: 18px !important;
}

.exec-chart-svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

/* Chart Bottom Mini-Strip */
.exec-chart-mini-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  margin-top: auto !important;
}

.mini-strip-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.mini-icon-box {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.mini-icon-box svg {
  width: 17px !important;
  height: 17px !important;
}

.bg-green-light {
  background: #dcfce7 !important;
}

.bg-red-light {
  background: #fee2e2 !important;
}

.bg-blue-light {
  background: #dbeafe !important;
}

.mini-strip-label {
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 1px !important;
}

.mini-strip-val {
  font-size: 0.96rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
}

/* Allocation Disciplines */
.exec-discipline-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  margin-bottom: 22px !important;
}

.exec-discipline-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.discipline-icon-box {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.discipline-icon-box svg {
  width: 20px !important;
  height: 20px !important;
}

.discipline-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.discipline-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.discipline-name {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.discipline-meta {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.discipline-sub {
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

.discipline-progress-track {
  width: 100% !important;
  height: 7px !important;
  background: #f1f5f9 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.discipline-progress-bar {
  height: 100% !important;
  border-radius: 4px !important;
}

.bar-navy {
  background: #0f172a !important;
}

.bar-blue {
  background: #2563eb !important;
}

.bar-slate {
  background: #64748b !important;
}

/* Bottom Spend Summary Box */
.exec-spend-summary-box {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: auto !important;
}

.exec-spend-summary-box:hover {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.spend-summary-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.spend-summary-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.spend-summary-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.spend-summary-label {
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.spend-summary-value {
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.spend-summary-sub {
  font-size: 0.70rem !important;
  color: #64748b !important;
}

.spend-summary-arrow {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
}

/* Mobile Responsiveness for Executive Dashboard */
@media (max-width: 900px) {
  .exec-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .exec-main-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 600px) {
  .desktop-hero-title {
    display: none !important;
  }
  .mobile-hero-title {
    display: block !important;
    font-size: 1.55rem !important;
  }
  .mobile-only-tag {
    display: block !important;
  }
  .exec-hero-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 20px 18px 20px 18px !important;
    border-radius: 20px !important;
    margin-bottom: 16px !important;
    min-height: 180px !important;
  }
  .exec-hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .mobile-hero-title {
    display: block !important;
    font-size: 1.55rem !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
  }
  .exec-hero-subtitle {
    font-size: 0.78rem !important;
    max-width: 280px !important;
  }
  .exec-hero-badge-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  .exec-hero-watermark {
    height: 120px !important;
    right: -10px !important;
    opacity: 0.22 !important;
  }
  .exec-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .exec-kpi-card {
    padding: 12px 12px !important;
    border-radius: 14px !important;
  }
  .exec-kpi-icon-box {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }
  .exec-kpi-icon-box svg {
    width: 16px !important;
    height: 16px !important;
  }
  .exec-kpi-pill {
    font-size: 0.58rem !important;
    padding: 2px 6px !important;
  }
  .exec-kpi-label {
    font-size: 0.60rem !important;
  }
  .exec-kpi-val {
    font-size: 1.25rem !important;
  }
  .exec-kpi-sub {
    font-size: 0.64rem !important;
  }
  .exec-surface-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }
  .exec-card-title {
    font-size: 0.95rem !important;
  }
  .exec-card-subtitle {
    font-size: 0.72rem !important;
  }
  .exec-tf-btn {
    padding: 4px 8px !important;
    font-size: 0.68rem !important;
  }
  .exec-chart-container {
    height: 190px !important;
  }
  .exec-chart-mini-strip {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }
  .discipline-icon-box {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
  }
  .discipline-icon-box svg {
    width: 16px !important;
    height: 16px !important;
  }
  .discipline-name {
    font-size: 0.76rem !important;
  }
  .discipline-meta {
    font-size: 0.76rem !important;
  }
}

/* Supplier CRM KPI Summary Dock */
.supplier-kpi-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 8px;
  margin-top: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.supplier-kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 480px) {
  .supplier-kpi-dock {
    padding: 12px 6px !important;
    gap: 4px !important;
  }
  .supplier-kpi-item strong {
    font-size: 1.05rem !important;
  }
  .supplier-kpi-item span {
    font-size: 0.62rem !important;
  }
}

/* ==========================================================================
   BILDFORCE CINEMATIC SPLASH SCREEN
   ========================================================================== */
.bildforce-splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #111827 0%, #080c14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bildforce-splash-overlay.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 2;
  animation: splashFadeIn 0.8s ease-out forwards;
}

.splash-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.splash-glow-backdrop {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.1) 60%, transparent 80%);
  filter: blur(14px);
  animation: splashPulse 2.2s infinite alternate ease-in-out;
}

.splash-logo-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  animation: splashLogoPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo-fallback {
  font-size: 1.6rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.02em;
}

.splash-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.splash-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.splash-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.14em;
  margin: 0 0 24px 0;
  text-transform: uppercase;
  max-width: 320px;
}

.splash-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.splash-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #22c55e);
  border-radius: 4px;
  box-shadow: 0 0 10px #38bdf8;
  animation: splashProgress 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-status-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splashPulse {
  from { transform: scale(0.9); opacity: 0.6; }
  to { transform: scale(1.18); opacity: 0.95; }
}

@keyframes splashLogoPop {
  0% { transform: scale(0.6) rotate(-4deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes splashProgress {
  0% { width: 5%; }
  40% { width: 45%; }
  75% { width: 85%; }
  100% { width: 100%; }
}

/* ----------------------------------------------------
   17. PERMANENT STICKY GLOBAL HEADER & TOPBAR
   ---------------------------------------------------- */
.app-sticky-dock {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  flex-shrink: 0 !important;
}

.lector-topbar {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  position: relative !important;
  z-index: 1001 !important;
}

/* ----------------------------------------------------
   18. REDESIGNED EXPENSES MOBILE CARDS & PILLS
   ---------------------------------------------------- */
.expense-filter-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.expense-filter-pills-bar::-webkit-scrollbar {
  display: none;
}

.expense-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.expense-filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.expense-filter-pill.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.expense-mobile-cards-wrap {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  overflow: visible !important;
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: fit-content !important;
  margin-bottom: 24px;
}

.expense-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease;
  gap: 12px;
}

.expense-card-item:last-child {
  border-bottom: none;
}

.expense-card-item:hover {
  background: #f8fafc;
}

.expense-card-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.expense-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expense-icon-badge svg {
  width: 20px;
  height: 20px;
}

/* Category Badge Colors & Icon Themes */
.badge-theme-labor { background: #eff6ff; color: #2563eb; }
.badge-theme-materials { background: #f5f3ff; color: #7c3aed; }
.badge-theme-petty { background: #fff7ed; color: #ea580c; }
.badge-theme-water { background: #f0f9ff; color: #0284c7; }
.badge-theme-safety { background: #f0fdf4; color: #16a34a; }
.badge-theme-equipment { background: #fef2f2; color: #dc2626; }
.badge-theme-fuel { background: #fffbeb; color: #d97706; }
.badge-theme-subcontractor { background: #ecfdf5; color: #059669; }
.badge-theme-permits { background: #faf5ff; color: #9333ea; }
.badge-theme-default { background: #f1f5f9; color: #475569; }

.expense-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.expense-card-date {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.expense-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: normal;
  word-break: break-word;
}

.expense-card-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: #64748b;
  flex-wrap: wrap;
}

.expense-pill-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.expense-voucher-tag {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.expense-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
}

.expense-amount-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.expense-chevron {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  flex-shrink: 0;
}

.expense-load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 24px;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.expense-load-more-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* ----------------------------------------------------
   19. MASTER CATEGORIES & MEASUREMENTS SUITE
   ---------------------------------------------------- */
.custom-cat-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.custom-cat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.custom-cat-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.custom-cat-box-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-cat-box-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.4;
}

.custom-cat-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 80px;
  max-height: 190px;
  overflow-y: auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 14px;
}

.custom-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.custom-cat-chip-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  font-size: 0.70rem;
  font-weight: 900;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.custom-cat-chip-del:hover {
  background: #ef4444;
  color: #ffffff;
}

.custom-cat-add-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.custom-cat-add-row input {
  flex: 1;
  font-size: 0.82rem;
  height: 38px;
}

.custom-cat-add-row button {
  height: 38px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   MATERIAL PURCHASES & POs REVAMPED MOBILE CARDS & FILTER PILLS
   ========================================================================== */
.purchase-filter-pills-bar,
.material-filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.purchase-filter-pills-bar::-webkit-scrollbar,
.material-filter-pills-bar::-webkit-scrollbar {
  display: none;
}

.purchase-filter-pill,
.material-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.purchase-filter-pill:hover,
.material-filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.purchase-filter-pill.active,
.material-filter-pill.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.purchase-mobile-cards-wrap,
.material-mobile-cards-wrap {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  overflow: visible !important;
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: fit-content !important;
  margin-bottom: 24px;
}

.purchase-card-item,
.material-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease;
  gap: 12px;
}

.purchase-card-item:last-child,
.material-card-item:last-child {
  border-bottom: none;
}

.purchase-card-item:hover,
.material-card-item:hover {
  background: #f8fafc;
}

.purchase-card-left,
.material-card-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.purchase-icon-badge,
.material-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.purchase-icon-badge svg,
.material-icon-badge svg {
  width: 20px;
  height: 20px;
}

.purchase-card-body,
.material-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.purchase-card-date,
.material-card-sub {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.purchase-card-title,
.material-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: normal;
  word-break: break-word;
}

.purchase-card-meta-row,
.material-card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #64748b;
  flex-wrap: wrap;
}

.purchase-pill-tag,
.material-pill-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.purchase-card-right,
.material-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-align: right;
}

.purchase-card-amount {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}

.material-card-value {
  font-size: 0.95rem;
  font-weight: 900;
  color: #15803d;
  white-space: nowrap;
}

.material-card-stock-display {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
  margin-top: 1px;
}

.material-code-pill {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.70rem;
  background: #f1f5f9;
  color: #334155;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}



/* ----------------------------------------------------
   RESPONSIVE MODALS & AUDIT FIXES
   ---------------------------------------------------- */
.modal-grid-2col,
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .modal-grid-2col,
  .form-row-2col,
  .modal-card .modal-grid-2col,
  .modal-card .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

.settings-tabs-nav {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
}
.settings-tabs-nav::-webkit-scrollbar {
  display: none !important;
}

.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}

/* ----------------------------------------------------
   ORGANIZATION REGISTRATION & AUTH FORM ALIGNMENT
   ---------------------------------------------------- */
.reg-form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 580px) {
  .reg-form-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.form-group-reg {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  width: 100%;
}

.form-label-reg {
  font-size: 0.72rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  height: 16px;
  line-height: 16px;
}

.required-star {
  color: #ef4444;
  margin-left: 3px;
  font-weight: 900;
}

.form-control-reg {
  height: 42px;
  line-height: 42px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 13px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-reg::placeholder {
  color: #94a3b8;
  font-size: 0.84rem;
}

.form-control-reg:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-select-reg {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 36px !important;
  cursor: pointer;
}

.form-textarea-reg {
  height: auto !important;
  min-height: 68px;
  line-height: 1.45;
  padding: 10px 13px !important;
  resize: vertical;
}

.reg-field-error-msg {
  display: none;
  color: #dc2626;
  font-size: 0.70rem;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.25;
}

@keyframes bildforce_spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* =========================================================================
   TOUR GUIDE MODAL & ONBOARDING WORKFLOW ANIMATIONS
   ========================================================================= */
.tour-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
  padding: 16px !important;
  animation: tourBackdropFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes tourBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tour-modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 24px !important;
  width: 100% !important;
  max-width: 580px !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  animation: tourCardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  box-sizing: border-box !important;
}

@keyframes tourCardPopIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tour-header-strip {
  padding: 16px 22px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #fafbfc !important;
}

.tour-step-pill {
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.tour-progress-track {
  height: 4px !important;
  background: #e2e8f0 !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

.tour-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #ea580c 0%, #3b82f6 50%, #8b5cf6 100%) !important;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.5) !important;
}

.tour-body {
  padding: 22px 24px 18px !important;
  box-sizing: border-box !important;
}

.tour-step-content {
  animation: tourSlideStep 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes tourSlideStep {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tour-icon-box {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08) !important;
  animation: tourIconFloat 3s ease-in-out infinite alternate !important;
}

@keyframes tourIconFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.tour-title {
  font-size: 1.30rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin: 0 0 4px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

.tour-subtitle {
  font-size: 0.84rem !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

.tour-features-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  margin: 18px 0 !important;
}

.tour-feature-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 11px 13px !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  transition: all 0.2s ease !important;
}

.tour-feature-item:hover {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  transform: translateX(2px) !important;
}

.tour-feature-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

.tour-feature-title {
  font-size: 0.84rem !important;
  font-weight: 750 !important;
  color: #1e293b !important;
  margin: 0 0 2px !important;
}

.tour-feature-desc {
  font-size: 0.76rem !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

.tour-footer {
  padding: 14px 22px 18px !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #fafbfc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.tour-step-dots {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.tour-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 4px !important;
  background: #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tour-dot.active {
  width: 24px !important;
  background: #ea580c !important;
}

.tour-quick-btn {
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid #fed7aa !important;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.80rem !important;
  font-weight: 800 !important;
  color: #c2410c !important;
  cursor: pointer !important;
  margin-right: 8px !important;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.08) !important;
  transition: all 0.2s ease !important;
}

.tour-quick-btn:hover {
  background: #ffedd5 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.15) !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .tour-modal-card {
    border-radius: 20px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  .tour-header-strip {
    padding: 12px 16px 10px !important;
  }
  .tour-body {
    padding: 16px 16px 14px !important;
  }
  .tour-title {
    font-size: 1.15rem !important;
  }
  .tour-subtitle {
    font-size: 0.78rem !important;
  }
  .tour-icon-box {
    width: 44px !important;
    height: 44px !important;
  }
  .tour-icon-box svg {
    width: 22px !important;
    height: 22px !important;
  }
  .tour-features-grid {
    gap: 7px !important;
    margin: 14px 0 !important;
  }
  .tour-feature-item {
    padding: 9px 11px !important;
  }
  .tour-footer {
    padding: 12px 16px 16px !important;
  }
}

.hub-tour-banner {
  margin-bottom: 20px !important;
  background: linear-gradient(135deg, #071224 0%, #0f274a 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 18px !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35) !important;
  transition: all 0.2s ease !important;
  gap: 12px !important;
}

.hub-tour-banner:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.45) !important;
}


/* ----------------------------------------------------
   AUTHENTICATION & REGISTRATION VIEWPORT & CENTERING FIX
   ---------------------------------------------------- */
.auth-viewport-wrapper {
  position: relative;
  width: 100vw;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  padding: 24px 16px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.auth-card-surface {
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  margin: auto !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  html.auth-screen-active,
  body.auth-screen-active,
  body:has(.auth-viewport-wrapper),
  html:has(.auth-viewport-wrapper) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #app.auth-screen-active,
  #app:has(.auth-viewport-wrapper) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .auth-viewport-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 14px 32px 14px !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .auth-card-surface {
    padding: 22px 16px 26px 16px !important;
    margin: auto !important;
    border-radius: 16px !important;
  }

  .reg-form-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}
