/* CorpSec Web Application Design System — Pastel Floating Card Theme */
:root {
  --color-primary: #7C3AED;
  --color-primary-hover: #6D28D9;
  --color-primary-light: #F3E8FF;
  --color-bg-canvas: #EBF1F7;
  --color-sidebar: #0F172A;
  --color-card-bg: #FFFFFF;
  --color-border: rgba(226, 232, 240, 0.9);
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Pastel Accent Card Tokens (Matching Reference Image) */
  --pastel-cyan-bg: #E0F7FA;
  --pastel-cyan-icon: #06B6D4;
  --pastel-cyan-badge-bg: #CFF4FC;
  --pastel-cyan-badge-text: #055160;

  --pastel-purple-bg: #F3E8FF;
  --pastel-purple-icon: #8B5CF6;
  --pastel-purple-badge-bg: #E9D5FF;
  --pastel-purple-badge-text: #581C87;

  --pastel-mint-bg: #E6F4EA;
  --pastel-mint-icon: #10B981;
  --pastel-mint-badge-bg: #D1FAE5;
  --pastel-mint-badge-text: #065F46;

  --pastel-pink-bg: #FDF2F8;
  --pastel-pink-icon: #EC4899;
  --pastel-pink-badge-bg: #FCE7F3;
  --pastel-pink-badge-text: #831843;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-canvas);
  color: var(--color-text-dark);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Navigation */
#sidebar {
  width: 260px;
  background-color: var(--color-sidebar);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.brand-header h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.8px;
}

.nav-links {
  list-style: none;
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.nav-item.active {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.user-profile-badge {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Main Content Area */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  height: 68px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 500;
  overflow: visible;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.5px;
}

.content-container {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

/* Metric Cards Grid — Pastel Floating Theme (Matching Reference Image) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -5px rgba(124, 58, 237, 0.1);
}

.metric-card.metric-cyan {
  background-color: var(--pastel-cyan-bg);
}
.metric-card.metric-purple {
  background-color: var(--pastel-purple-bg);
}
.metric-card.metric-mint {
  background-color: var(--pastel-mint-bg);
}
.metric-card.metric-pink {
  background-color: var(--pastel-pink-bg);
}
.metric-card.metric-amber {
  background-color: #FFFBEB;
  border-color: #FDE68A;
}
.metric-card.metric-indigo {
  background-color: #EEF2FF;
  border-color: #C7D2FE;
}
.metric-card.metric-emerald {
  background-color: #ECFDF5;
  border-color: #A7F3D0;
}
.metric-card.metric-peach {
  background-color: #FFF7ED;
  border-color: #FED7AA;
}
.metric-card.metric-sky {
  background-color: #F0F9FF;
  border-color: #BAE6FD;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.metric-cyan .metric-icon-bubble { background-color: var(--pastel-cyan-icon); }
.metric-purple .metric-icon-bubble { background-color: var(--pastel-purple-icon); }
.metric-mint .metric-icon-bubble { background-color: var(--pastel-mint-icon); }
.metric-pink .metric-icon-bubble { background-color: var(--pastel-pink-icon); }
.metric-amber .metric-icon-bubble { background-color: #F59E0B; }
.metric-indigo .metric-icon-bubble { background-color: #6366F1; }
.metric-emerald .metric-icon-bubble { background-color: #059669; }
.metric-peach .metric-icon-bubble { background-color: #EA580C; }
.metric-sky .metric-icon-bubble { background-color: #0284C7; }

.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}

.metric-trend.trend-up {
  background-color: #D1FAE5;
  color: #065F46;
}
.metric-trend.trend-neutral {
  background-color: #E2E8F0;
  color: #334155;
}

/* Dashboard Specific Styles */
.dashboard-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}
.dashboard-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-hero-subtitle {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.4;
}
.dashboard-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.dash-badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.dash-badge-shift {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.dash-btn-refresh {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.dash-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.dash-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}
.dash-action-btn:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.dash-action-btn .dash-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.dash-alert-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  background: #FFF;
}
.dash-alert-card:last-child {
  margin-bottom: 0;
}

/* Data Tables */
.table-container {
  background-color: var(--color-card-bg);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  max-width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background-color: #F8FAFC;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #F8FAFC;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-dark);
  white-space: nowrap;
}

.data-table td.cell-wrap,
.data-table td.desc-wrap {
  white-space: normal !important;
  word-break: break-word !important;
}

.incidents-table-wrapper {
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-height: none !important;
  position: relative;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.incidents-table-wrapper::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.incidents-table-wrapper::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.incidents-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.data-table tr:hover {
  background-color: #F8FAFC;
}

/* Status Badges */
.badge {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.badge-active, .badge-confirmed, .badge-present {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-inactive, .badge-declined, .badge-critical {
  background-color: #FEE2E2;
  color: #991B1B;
}

.badge-pending, .badge-draft, .badge-warning {
  background-color: #FEF3C7;
  color: #92400E;
}

/* Buttons & Inputs — Pill Controls */
.btn {
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background-color: #E2E8F0;
  color: var(--color-text-dark);
}
.btn-secondary:hover {
  background-color: #CBD5E1;
}

.btn-danger {
  background-color: var(--color-danger);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.form-control {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

textarea.form-control {
  border-radius: 16px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
}

.modal-content {
  background-color: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--color-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* ===== MOBILE RESPONSIVE SIDEBAR ===== */
.menu-toggle {
  display: none;
  background: #F1F5F9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #0F172A;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  z-index: 900;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .top-bar {
    padding: 0 16px;
  }

  .page-title {
    font-size: 18px;
  }

  .content-container {
    padding: 16px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .header-right-group .avatar-info {
    display: none;
  }

  .table-container {
    overflow-x: auto;
  }

  .data-table {
    min-width: 600px;
  }
}

/* ===== STRONGER MOBILE POLISH ===== */
@media (max-width: 768px) {
  /* Reduce overall density */
  .content-container {
    padding: 12px !important;
  }

  .top-bar {
    height: 56px;
    padding: 0 12px;
  }

  .page-title {
    font-size: 16px !important;
  }

  /* Metric cards – stack cleanly and reduce size */
  .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-bottom: 16px;
  }

  .metric-card {
    padding: 16px !important;
    border-radius: 16px;
  }

  .metric-value {
    font-size: 22px !important;
  }

  .metric-label {
    font-size: 12px;
  }

  /* Tables – better mobile handling */
  .table-container {
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Buttons and forms */
  .btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  /* Cards and report sections */
  .report-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .report-card-title {
    font-size: 16px;
  }

  /* Hide less important top-bar elements on very small screens */
  .header-right-group .user-avatar-badge {
    padding: 2px;
  }

  .avatar-info {
    display: none !important;
  }
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Sidebar Categorized Section Headers & Promo Card */
.sidebar-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 1px;
  padding: 16px 16px 6px 16px;
  text-transform: uppercase;
}

.sidebar-promo-card {
  margin: 16px 12px;
  padding: 18px;
  background: #090D16;
  border-radius: 20px;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-promo-card .promo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}
.sidebar-promo-card h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}
.sidebar-promo-card p {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 12px;
}

/* Top Bar User & Notification Block */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.icon-btn-pill:hover {
  background: #E2E8F0;
  color: var(--color-primary);
}
.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #EF4444;
  border: 2px solid #FFFFFF;
}

.user-avatar-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  background: #F8FAFC;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
}
.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}
.avatar-info {
  display: flex;
  flex-direction: column;
}
.avatar-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}
.avatar-role {
  font-size: 11px;
  color: #64748B;
}

/* Performance Overview Featured Metric Card (Solid Violet) */
.metric-card-featured {
  background: linear-gradient(135deg, #635BFF 0%, #7C3AED 100%);
  color: #FFFFFF !important;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 30px -5px rgba(124, 58, 237, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-card-featured .metric-label {
  color: rgba(255, 255, 255, 0.8) !important;
}
.metric-card-featured .metric-value {
  color: #FFFFFF !important;
}
.metric-card-featured .metric-subtext {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* Performance Overview Dashboard Grid */
.report-grid-2col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .report-grid-2col {
    grid-template-columns: 1fr;
  }
}

.report-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.report-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}
.report-card-subtitle {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}

.dropdown-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  outline: none;
}

/* Custom Interactive Bar Chart */
.bar-chart-container {
  padding-top: 10px;
}
.bar-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bar-chart-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 220px;
  padding-top: 30px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #E2E8F0;
  position: relative;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.bar-pair-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  position: relative;
}

.bar-pillar {
  width: 14px;
  border-radius: 8px 8px 0 0;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.bar-pillar:hover {
  opacity: 0.85;
}

.bar-gross { background-color: #E2E8F0; }
.bar-net { background-color: #7C3AED; }

.bar-month-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
}

/* Floating Tooltip Callout Pill */
.chart-tooltip-pill {
  position: absolute;
  top: -10px;
  left: 48%;
  transform: translateX(-50%);
  background: #090D16;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 10;
}
.chart-tooltip-pill::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #090D16 transparent;
}

/* Statutory Ring Chart */
.ring-chart-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.donut-center-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  padding: 14px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  text-align: center;
}
.donut-center-value {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
}
.donut-center-label {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.stat-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.stat-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}
.stat-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-item-val {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

/* Regional Site Placement Bubble Chart & Progress Bars */
.bubble-nodes-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -10px;
  margin: 20px 0;
  position: relative;
  height: 140px;
}

.bubble-node {
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #635BFF);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
  margin-left: -12px;
  border: 3px solid #FFFFFF;
  transition: transform 0.2s ease;
}
.bubble-node:hover {
  transform: scale(1.08);
  z-index: 5;
}
.bubble-lg { width: 70px; height: 70px; font-size: 15px; }
.bubble-md { width: 56px; height: 56px; font-size: 13px; }
.bubble-sm { width: 44px; height: 44px; font-size: 11px; }

.site-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-progress-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.progress-bar-track {
  height: 8px;
  border-radius: 9999px;
  background: #E2E8F0;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #7C3AED, #635BFF);
}

/* Floating Header Dropdown Menus */
.header-dropdown-menu {
  position: absolute;
  top: 60px;
  right: 0;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 35px -5px rgba(15, 23, 42, 0.15);
  width: 320px;
  padding: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.dropdown-item:hover {
  background-color: #F8FAFC;
  color: var(--color-primary);
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  transition: background 0.2s ease;
  cursor: pointer;
}
.notification-item:hover {
  background: #F3E8FF;
}
.notification-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}
.notification-item-time {
  font-size: 10px;
  color: #94A3B8;
}

.notification-dot.dimmed {
  background-color: #94A3B8 !important;
  opacity: 0.5;
}

/* Toast Notification System */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-banner {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.18);
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-success {
  background-color: #065F46;
  color: #FFFFFF;
  border: 1px solid #059669;
}
.toast-danger {
  background-color: #991B1B;
  color: #FFFFFF;
  border: 1px solid #DC2626;
}
.toast-info {
  background-color: #7C3AED;
  color: #FFFFFF;
  border: 1px solid #6D28D9;
}

.toast-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
}
.toast-close-btn:hover { opacity: 1; }

/* Drag & Drop File Upload Dropzone */
.file-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
}
.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--color-primary);
  background: #F3E8FF;
}

/* Accessible Focus Outlines */
button:focus-visible, input:focus-visible, select:focus-visible, div[role="button"]:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* =============================================================================
   CORPSEC UNIFIED LOGIN SCREEN DESIGN SYSTEM
   Automatic Role-Based Dispatch for Administrators and Security Guards
   ============================================================================= */

.unified-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0B0F19;
  overflow-y: auto;
  padding: 24px;
}

.login-mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.85) 0%, #0B0F19 100%);
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: auto;
}

.login-card-glass {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.65), 
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.login-brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px auto;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.25));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.login-brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-title {
  color: #F8FAFC;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.login-tagline {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.login-access-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #C4B5FD;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.login-alert-banner {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.4;
  animation: slideDown 0.25s ease;
}

.login-alert-banner.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.login-alert-banner.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.login-alert-banner.alert-info {
  background: rgba(99, 179, 237, 0.12);
  border: 1px solid rgba(99, 179, 237, 0.35);
  color: #90CDF4;
}

.login-field-group {
  margin-bottom: 20px;
}

.login-field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 8px;
}

.label-helper-hint {
  font-size: 11px;
  font-weight: 400;
  color: #94A3B8;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.75;
}

.login-text-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 13px 44px 13px 42px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.login-text-input:focus {
  border-color: #7C3AED;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
  outline: none;
}

.login-text-input::placeholder {
  color: #64748B;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.btn-toggle-password:hover {
  opacity: 1;
}

.btn-login-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.5);
  filter: brightness(1.08);
}

.btn-login-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.login-routing-note {
  margin-top: 20px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  font-size: 12px;
  color: #94A3B8;
}

.routing-badge {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}

.routing-icon {
  color: #F59E0B;
  font-size: 14px;
}

.login-quickfill-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  text-align: left;
}

.quickfill-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.quickfill-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quickfill-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.quickfill-chip:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: #7C3AED;
}

.quickfill-chip .chip-role {
  font-size: 11px;
  font-weight: 700;
  color: #C4B5FD;
}

.quickfill-chip .chip-id {
  font-size: 12px;
  font-family: monospace;
  color: #E2E8F0;
}

.login-footer-legal {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: #64748B;
  line-height: 1.4;
}

/* ============================================================
   Guard Personnel File Styles (Matching School File Profile Reference)
   ============================================================ */
.guard-file-wrapper {
  background: transparent;
  min-height: 100%;
}

.guard-file-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-to-guards-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1D4ED8;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s ease;
}

.back-to-guards-btn:hover {
  text-decoration: underline;
  color: #1E40AF;
}

.guard-status-badge {
  padding: 4px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guard-status-badge.status-active {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.guard-status-badge.status-inactive {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Reusable Profile Card */
.profile-card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 24px;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
}

.profile-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.btn-amend-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #1D4ED8;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-amend-file:hover {
  background-color: #1E40AF;
}

.btn-amend-file:active {
  transform: scale(0.98);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .profile-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-field {
  display: flex;
  flex-direction: column;
}

.detail-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 3px;
}

.detail-field .value {
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  word-break: break-word;
}

.detail-field .value-lg {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.detail-field .value-blue {
  font-size: 14px;
  font-weight: 700;
  color: #1D4ED8;
}

.detail-field .value-bold {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.profile-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .profile-cards-row {
    grid-template-columns: 1fr;
  }
}

.profile-sub-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.profile-sub-table thead {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.profile-sub-table th {
  padding: 10px 14px;
  font-weight: 600;
  color: #64748B;
  font-size: 13px;
}

.profile-sub-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: #0F172A;
}

.profile-sub-table tr:last-child td {
  border-bottom: none;
}

.profile-empty-text {
  color: #64748B;
  font-size: 14px;
  margin: 8px 0;
}

/* Compliance scale progress bar */
.cbc-scale-bar {
  width: 100%;
  height: 16px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  margin-bottom: 12px;
}

.scale-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.scale-segment.blue { background-color: #3B82F6; }
.scale-segment.green { background-color: #10B981; }
.scale-segment.yellow { background-color: #F59E0B; }
.scale-segment.red { background-color: #EF4444; }

.scale-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #64748B;
}

.scale-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scale-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}



/* ======================================================== */
/* Responsive & Scroll Enhancements for Modules 1, 2 & 3     */
/* ======================================================== */
.content-container {
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Ensure panel sections expand properly and allow content to scroll vertically */
#panel-clients,
#panel-assets,
#panel-company-history,
#panel-invoices,
#panel-guards,
#guard-file-view,
.guard-file-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 40px;
}

/* Horizontal scrollable wrapper for wide data tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.table-responsive .data-table {
  width: 100%;
  min-width: 820px;
  margin-bottom: 0;
}

/* Custom sleek scrollbars */
.content-container::-webkit-scrollbar {
  width: 8px;
}
.content-container::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
.content-container::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.content-container::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #F8FAFC;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}


/* ============================================================
   Guard Personnel File Complete Scroll Enhancements
   ============================================================ */
.guard-file-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 60px;
}

#guard-file-view {
  width: 100%;
  max-width: 100%;
  overflow-y: visible;
  overflow-x: hidden;
  padding-bottom: 60px;
}

#modal-guard-file {
  display: none !important;
}

#modal-guard-file .modal-content {
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#guard-file-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  max-height: calc(92vh - 130px) !important;
  padding: 24px !important;
  scroll-behavior: smooth;
  flex: 1 1 auto;
}

#guard-file-body::-webkit-scrollbar,
#guard-file-view::-webkit-scrollbar,
.guard-file-wrapper::-webkit-scrollbar {
  width: 8px;
}

#guard-file-body::-webkit-scrollbar-track,
#guard-file-view::-webkit-scrollbar-track,
.guard-file-wrapper::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

#guard-file-body::-webkit-scrollbar-thumb,
#guard-file-view::-webkit-scrollbar-thumb,
.guard-file-wrapper::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}

#guard-file-body::-webkit-scrollbar-thumb:hover,
#guard-file-view::-webkit-scrollbar-thumb:hover,
.guard-file-wrapper::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}


/* ==========================================================================
   OFFICIAL CORPSEC LETTERHEAD INVOICE PRINT STYLES
   ========================================================================== */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  body > * {
    display: none !important;
  }
  #modal-view-invoice {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
  }
  #modal-view-invoice * {
    visibility: visible !important;
  }
  #modal-view-invoice .modal-content {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  #modal-view-invoice-scroll-body {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
  .no-print {
    display: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
}

/* Compact Responsive Styling for Expense Table */
.expense-table th {
  padding: 9px 8px !important;
  font-size: 11.5px !important;
}
.expense-table td {
  padding: 8px 8px !important;
  font-size: 11.5px !important;
}
.expense-table th:last-child,
.expense-table td:last-child {
  position: sticky;
  right: 0;
  background-color: #FFFFFF;
  box-shadow: -3px 0 6px rgba(0,0,0,0.04);
  z-index: 2;
}
.expense-table th:last-child {
  background-color: #F8FAFC;
}


/* ==========================================================================
   OFFICIAL INVOICE PREVIEW MODAL - FULL VERTICAL SCROLL STYLES
   ========================================================================== */
#modal-view-invoice {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#modal-view-invoice .modal-content {
  max-height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#modal-view-invoice-scroll-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  max-height: calc(94vh - 68px) !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #94A3B8 #F1F5F9 !important;
}

#modal-view-invoice-scroll-body::-webkit-scrollbar {
  width: 9px;
}

#modal-view-invoice-scroll-body::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

#modal-view-invoice-scroll-body::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}

#modal-view-invoice-scroll-body::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}
