/* ========================================================
   ENTERPRISE HRMS & ERP CLOUD DASHBOARD STYLES
   Design System: Tailored modern corporate aesthetic
   ======================================================== */

:root {
  --bg-app: #0f172a;
  --bg-sidebar: #090d16;
  --bg-main: #0b1120;
  --bg-card: #131d31;
  --bg-card-hover: #192640;
  --bg-panel: rgba(19, 29, 49, 0.7);
  
  --border-subtle: #1e293b;
  --border-medium: #334155;
  --border-focus: #6366f1;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.25);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #0ea5e9;
  --info-bg: rgba(14, 165, 233, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ========================================================
   LOGIN VIEW & MODAL
   ======================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #090d16 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(19, 29, 49, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px var(--primary-glow);
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: #fff;
}

.login-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.login-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.quick-demo-roles {
  margin: 20px 0;
  padding: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.demo-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 10px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-chips .chip {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-chips .chip:hover,
.demo-chips .chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========================================================
   APP LAYOUT & SIDEBAR
   ======================================================== */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-version {
  font-size: 0.7rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

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

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  position: relative;
}

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

.nav-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-item i {
  width: 18px;
  height: 18px;
}

.counter-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: #334155;
  color: #f1f5f9;
}

.counter-badge.warn {
  background: #f59e0b;
  color: #000;
  font-weight: 700;
}

.live-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.user-role-badge {
  font-size: 0.65rem;
  color: #a5b4fc;
  font-weight: 600;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-logout:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ========================================================
   MAIN CONTENT & HEADER
   ======================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-main);
}

.top-header {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-left h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.header-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #131d31;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

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

.role-switch-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(79, 70, 229, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.role-switch-pill i {
  width: 14px;
  height: 14px;
}

/* ========================================================
   PANES & TAB SECTIONS
   ======================================================== */
.tab-pane {
  display: none;
  padding: 28px 32px;
}

.tab-pane.active {
  display: block;
}

/* ========================================================
   KPI CARDS GRID
   ======================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-card);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.kpi-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 6px 0;
  color: #fff;
}

.kpi-trend {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
}

.kpi-trend.positive { color: #10b981; }
.kpi-trend.warning { color: #f59e0b; }

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-blue .kpi-icon-wrap { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.card-green .kpi-icon-wrap { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.card-amber .kpi-icon-wrap { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.card-purple .kpi-icon-wrap { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.card-indigo .kpi-icon-wrap { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

/* ========================================================
   DASHBOARD DUAL PANEL
   ======================================================== */
.dashboard-dual-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.panel-title i {
  color: #6366f1;
  width: 18px;
  height: 18px;
}

.panel-body {
  padding: 16px 20px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feed-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.feed-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.feed-info p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ========================================================
   TOOLBAR & CONTROLS
   ======================================================== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.toolbar-search i {
  color: var(--text-dim);
  width: 18px;
  height: 18px;
}

.toolbar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-select, .form-input-date {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.form-select:focus, .form-input-date:focus {
  border-color: var(--primary);
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn i {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

.btn-secondary {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #334155;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn-success { background: #10b981; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }

.btn-block {
  width: 100%;
}

/* ========================================================
   DATA TABLES
   ======================================================== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

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

.data-table thead {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  padding: 14px 18px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table td {
  padding: 14px 18px;
  color: var(--text-muted);
  vertical-align: middle;
}

.photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: transform 0.2s;
}

.photo-thumb:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

/* BADGES */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-active, .status-inside, .status-approved, .status-paid {
  background: var(--success-bg);
  color: var(--success);
}

.status-outside, .status-pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-inactive, .status-rejected {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ========================================================
   PROJECTS GRID
   ======================================================== */
.projects-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.project-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

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

.project-code {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.project-client {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.project-team-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.team-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-chip {
  background: #1e293b;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  color: #cbd5e1;
}

/* ========================================================
   REPORTS HUB
   ======================================================== */
.reports-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
}

.reports-hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.reports-hero p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reports-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.report-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.report-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.bg-amber { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.bg-green { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.report-box-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.report-box-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.report-box-actions {
  display: flex;
  gap: 10px;
}

/* ========================================================
   MODALS
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-card {
  background: #131d31;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

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

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover { color: #fff; }

.modal-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #0f172a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.modal-preview-img {
  max-width: 100%;
  max-height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  margin-bottom: 14px;
}

.photo-meta-box {
  background: #0f172a;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: left;
}

.input-icon-wrap {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0 12px;
}

.input-icon-wrap i {
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.input-icon-wrap input {
  border: none;
  background: transparent;
  padding: 12px 0;
  flex: 1;
  outline: none;
  color: #fff;
  font-size: 0.875rem;
}

/* ========================================================
   ENHANCED MODALS & MULTI-ITEM EXPENSE CLAIM STYLES
   ======================================================== */
.modal-large {
  max-width: 960px !important;
}

.modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.table-dbl-hint {
  font-size: 0.78rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(99, 102, 241, 0.3);
}

.btn-icon-badge {
  background: #131d31;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.btn-icon-badge:hover {
  background: #1e293b;
  border-color: var(--border-medium);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
}

.claim-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.total-claim-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.total-claim-pill strong {
  color: #10b981;
  font-size: 1.15rem;
  font-family: 'JetBrains Mono', monospace;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.audit-stat-box {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.audit-stat-box .stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.audit-stat-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.audit-review-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-option-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
}

.half-day-sessions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-warning {
  background: #d97706;
  color: #fff;
}

.btn-warning:hover {
  background: #b45309;
}

.modal-info-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.project-exp-summary {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 12px;
}

.exp-progress-bar-wrap {
  height: 6px;
  background: #1e293b;
  border-radius: 4px;
  margin: 8px 0;
  overflow: hidden;
}

.exp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 4px;
}

.emp-exp-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 4px 0;
  color: var(--text-muted);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
}

.cursor-pointer {
  cursor: pointer;
}
