:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: #fef2f2;
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --sidebar-w: 260px;
  --radius: 8px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
}

/* App Container Layout */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background-color: var(--secondary);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  z-index: 20;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.brand-info h1 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.brand-info p {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

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

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 12px 4px;
  letter-spacing: 0.05em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 2px;
  transition: all 0.2s;
  font-weight: 500;
  text-decoration: none;
}

.nav-item:hover {
  background-color: var(--secondary-light);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0b1120;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background-color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 13px;
}

.user-details h4 {
  font-size: 13px;
  color: #f8fafc;
  line-height: 1.2;
}

.user-details span {
  font-size: 11px;
  color: #10b981;
}

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

.topbar {
  height: 60px;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.badge-bd {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

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

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

.btn-secondary {
  background-color: #fff;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

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

/* Page Body */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
}

.metric-card.primary::after { background: var(--primary); }
.metric-card.success::after { background: var(--success); }
.metric-card.accent::after { background: var(--accent); }
.metric-card.warning::after { background: var(--warning); }

.metric-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Cards & Layout Panels */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

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

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.card-body {
  padding: 20px;
}

/* Tabs */
.tabs-header {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

table.data-table th {
  background-color: #f8fafc;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--primary-light); color: var(--primary); }
.badge-warning { background: var(--warning-light); color: #b45309; }
.badge-info { background: var(--accent-light); color: var(--accent); }
.badge-neutral { background: #f1f5f9; color: #475569; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 750px;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

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

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* Mushak 6.3 Printable Sheet */
.mushak-container {
  background: #fff;
  padding: 30px;
  border: 2px solid #334155;
  color: #000;
  font-family: 'SolaimanLipi', Arial, sans-serif;
  margin: 0 auto;
}

.mushak-header {
  text-align: center;
  border-bottom: 1.5px solid #000;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.mushak-header h2 {
  font-size: 17px;
  font-weight: bold;
}

.mushak-header h3 {
  font-size: 15px;
  font-weight: bold;
}

.mushak-header p {
  font-size: 12px;
}

.mushak-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12px;
  margin-bottom: 15px;
}

.mushak-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 20px;
}

.mushak-table th, .mushak-table td {
  border: 1px solid #000;
  padding: 6px 8px;
  text-align: center;
}

.mushak-table th {
  background-color: #f1f5f9;
}

.mushak-table td.text-left {
  text-align: left;
}

.mushak-table td.text-right {
  text-align: right;
}

/* Print Specific */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-area, .printable-area * {
    visibility: visible;
  }
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}


/* Notification Bell & Dropdown Drawer */
.notification-wrapper {
  position: relative;
}

.notification-bell-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.notification-bell-btn:hover {
  background: #e2e8f0;
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  min-width: 16px;
  text-align: center;
  border: 2px solid white;
}

.notification-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
  flex-direction: column;
  max-height: 450px;
}

.notification-dropdown.active {
  display: flex;
}

.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.notif-header h4 {
  font-size: 13px;
  font-weight: 700;
}

.notif-list {
  overflow-y: auto;
  max-height: 380px;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-item:hover {
  background-color: #f8fafc;
}

.notif-item.unread {
  background-color: #eff6ff;
  border-left: 3px solid var(--accent);
}

.notif-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 2px;
}

.notif-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Sidebar Badge */
.sidebar-badge {
  background-color: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
}

/* WhatsApp Message Bubble & Delivery Status */
.whatsapp-bubble {
  background: #dcf8c6;
  border: 1px solid #c7e8b0;
  border-radius: 8px;
  padding: 12px 14px;
  color: #075e54;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  position: relative;
  margin-bottom: 10px;
}

.badge-whatsapp {
  background: #25d366;
  color: white;
}

.status-sent { color: #3b82f6; }
.status-delivered { color: #10b981; }
.status-read { color: #059669; font-weight: bold; }
.status-failed { color: #ef4444; font-weight: bold; }

/* Approval Cards */
.approval-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
}

.approval-card:hover {
  box-shadow: var(--shadow);
}

/* ============================================================
   MOBILE RESPONSIVENESS & POCKETDEV OPTIMIZATIONS
   ============================================================ */
.mobile-menu-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background: #e2e8f0;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 40;
  transition: opacity 0.3s ease;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.3);
  }

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

  .sidebar-backdrop.active {
    display: block;
  }

  .main-wrapper {
    width: 100vw;
  }

  .topbar {
    padding: 0 14px;
    height: 64px;
  }

  .topbar-left {
    gap: 10px;
  }

  .page-title {
    font-size: 15px;
    line-height: 1.2;
  }

  .badge-bd {
    display: none;
  }

  .metrics-grid,
  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .content-body {
    padding: 14px !important;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 600px) {
  .metrics-grid,
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .topbar-actions > div:not(.notification-wrapper) {
    display: none;
  }

  .page-title {
    font-size: 14px;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .card-header .btn {
    width: 100%;
  }
}

/* ============================================================
 * EXECUTIVE DASHBOARD, HOLIDAYS & APPROVALS EXTENSIONS
 * ============================================================ */

/* Holiday Widget */
.holiday-widget-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #31104b 100%);
  color: white;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.holiday-widget-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.holiday-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.holiday-countdown-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: right;
}

.holiday-countdown-badge {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.holiday-pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.holiday-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.holiday-pill.govt {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.4);
}

.holiday-pill.company {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.4);
}

.holiday-pill.overlap {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.5);
  font-weight: bold;
}

/* Financial Overview Period Bar */
.filter-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.period-buttons-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.period-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.period-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.period-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 12 Approval Queues Grid */
.approval-queues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.approval-queue-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.approval-queue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.approval-queue-card.active {
  border-color: var(--primary);
  background: #fffafa;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.approval-queue-card .q-count {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
}

.approval-queue-card .q-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Conversion Funnel */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.funnel-step-label {
  width: 170px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.funnel-step-bar-wrap {
  flex: 1;
  background: #e2e8f0;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.funnel-step-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  transition: width 0.4s ease;
}

.funnel-step-value {
  width: 130px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

/* Sales Trend Bar Visualizer */
.trend-bars-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 180px;
  padding: 20px 0 10px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.trend-bar-column {
  flex: 1;
  min-width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.trend-bar-pill {
  width: 100%;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease, background 0.15s ease;
  min-height: 4px;
  cursor: pointer;
}

.trend-bar-pill:hover {
  background: #991b1b;
}

.trend-bar-date {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* Unified Calendar Matrix */
.calendar-month-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.calendar-cell {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 80px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

/* =====================================================================
   AJFSES ENTERPRISE ERP — INTERACTIVE ANIMATED TABLE LAMP & LOGIN STAGE
   ===================================================================== */

#lamp-login-stage {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #06080d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f8fafc;
}

#lamp-login-stage.hidden {
  display: none !important;
}

#lamp-login-stage.lamp-lit {
  background: radial-gradient(ellipse at 50% 22%, rgba(254, 240, 138, 0.22) 0%, rgba(245, 158, 11, 0.12) 32%, rgba(185, 28, 28, 0.08) 60%, #06080d 96%);
}

/* Ambient Room Overlay */
.lamp-ambient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, transparent 20%, rgba(0, 0, 0, 0.7) 90%);
  transition: opacity 0.6s ease;
}

#lamp-login-stage.lamp-lit .lamp-ambient-overlay {
  opacity: 0.35;
}

/* Top bar controls */
.lamp-topbar-controls {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
}

.accessible-login-btn {
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.accessible-login-btn:hover,
.accessible-login-btn:focus-visible {
  background: #b91c1c;
  border-color: #ef4444;
  outline: none;
}

/* -------------------------------------------------------------
   3D Table Lamp Assembly
   ------------------------------------------------------------- */
.table-lamp-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  height: 220px;
  user-select: none;
  margin-top: 10px;
  margin-bottom: 20px;
  z-index: 20;
}

/* Lamp Finial */
.lamp-finial {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #fef08a, #d97706 60%, #451a03);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: -4px;
  z-index: 5;
}

/* 3D Lampshade */
.lamp-shade {
  position: relative;
  width: 180px;
  height: 95px;
  clip-path: polygon(24% 0%, 76% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 40%, #1e1b4b 70%, #090d16 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 10px 25px rgba(0,0,0,0.8);
  border-bottom: 3px solid #78350f;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.shade-pattern-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.2) 0%, transparent 30%, transparent 70%, rgba(185, 28, 28, 0.2) 100%);
  opacity: 0.5;
}

.shade-brand-crest {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(254, 240, 138, 0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  margin-top: 20px;
  transition: color 0.4s ease;
}

#lamp-login-stage.lamp-lit .lamp-shade {
  background: linear-gradient(135deg, #78350f 0%, #b45309 30%, #f59e0b 60%, #d97706 100%);
  border-bottom: 3px solid #fef08a;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.4), 0 12px 35px rgba(245, 158, 11, 0.4);
}

#lamp-login-stage.lamp-lit .shade-brand-crest {
  color: #fffbeb;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.8);
}

/* Light Bulb Under Shade */
.lamp-bulb {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 20px;
  border-radius: 50% 50% 40% 40%;
  background: #334155;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

#lamp-login-stage.lamp-lit .lamp-bulb {
  background: #fef08a;
  box-shadow: 0 0 35px #fef08a, 0 0 70px #f59e0b, 0 15px 90px rgba(245, 158, 11, 0.8);
}

/* Conical Light Beam onto Panel */
.lamp-light-cone {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  clip-path: polygon(36% 0%, 64% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(254, 240, 138, 0.38) 0%, rgba(253, 230, 138, 0.18) 35%, rgba(254, 240, 138, 0.04) 75%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

#lamp-login-stage.lamp-lit .lamp-light-cone {
  opacity: 1;
}

/* Lamp Stem (Metallic Brass) */
.lamp-stem {
  position: relative;
  width: 14px;
  height: 80px;
  background: linear-gradient(90deg, #78350f, #d97706 25%, #fef08a 50%, #b45309 75%, #451a03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  border-radius: 2px;
  z-index: 2;
}

/* Lamp Base */
.lamp-base {
  position: relative;
  width: 110px;
  height: 22px;
  background: radial-gradient(ellipse at 50% 30%, #fef08a, #d97706 50%, #78350f 80%, #451a03);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0,0,0,0.85);
  margin-top: -6px;
  z-index: 3;
}

/* -------------------------------------------------------------
   Interactive Hanging Pull Cord Assembly
   ------------------------------------------------------------- */
.lamp-cord-assembly {
  position: absolute;
  top: 88px;
  left: calc(50% + 46px);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  z-index: 10;
  outline: none;
}

.lamp-cord-assembly:focus-visible .lamp-cord-toggle {
  box-shadow: 0 0 0 3px #f59e0b, 0 0 12px #fef08a;
}

.lamp-cord-string {
  width: 2px;
  height: 55px;
  background: linear-gradient(180deg, #94a3b8, #cbd5e1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: height 0.15s ease-out;
  transform-origin: top center;
}

.lamp-cord-toggle {
  width: 16px;
  height: 24px;
  border-radius: 4px 4px 10px 10px;
  background: radial-gradient(circle at 35% 35%, #fef08a, #d97706 70%, #451a03);
  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lamp-cord-toggle::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #fef08a;
  border-radius: 50%;
  opacity: 0.6;
}

/* Pull action state */
.lamp-cord-assembly.pulling .lamp-cord-string {
  height: 85px;
}

.lamp-cord-assembly.pulling .lamp-cord-toggle {
  transform: translateY(30px) scale(0.96);
}

.lamp-cord-assembly.spring-release .lamp-cord-toggle {
  animation: cordSpring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cordSpring {
  0% { transform: translateY(30px); }
  35% { transform: translateY(-12px); }
  65% { transform: translateY(6px); }
  85% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.pull-hint-tag {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  animation: floatHint 2s infinite ease-in-out;
  transition: opacity 0.3s ease;
}

#lamp-login-stage.lamp-lit .pull-hint-tag {
  opacity: 0;
}

@keyframes floatHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 4px); }
}

/* -------------------------------------------------------------
   Login Panel (Illuminated by Lamp)
   ------------------------------------------------------------- */
.login-panel-container {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(185, 28, 28, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 32px 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(35px) scale(0.96);
  filter: blur(4px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
}

#lamp-login-stage.lamp-lit .login-panel-container {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

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

.login-shield-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.4);
  font-size: 26px;
  margin-bottom: 12px;
}

.login-title-h1 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.login-subtitle-p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.welcome-highlight-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Alert Notification Bars inside Login */
.login-alert-banner {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
  animation: slideAlert 0.3s ease;
}

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

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

.login-alert-banner.locked {
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.login-alert-banner.expired {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
}

/* Input Elements */
.login-field-group {
  margin-bottom: 18px;
}

.login-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
}

.login-form-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #ffffff;
  padding: 12px 42px 12px 40px;
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.login-form-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  background: #090e17;
}

.password-toggle-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

.password-toggle-eye:hover {
  color: #f8fafc;
}

#lamp-login-stage.hidden {
  display: none !important;
}

.login-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 22px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.forgot-password-link {
  color: #f87171;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5);
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Two-Factor Step Container */
.two-factor-step-container {
  display: none;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.two-factor-step-container.active {
  display: block;
}

.two-factor-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.totp-input-code {
  font-family: monospace, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  color: #fef08a;
  background: #0f172a;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  margin: 16px 0;
  outline: none;
}

.totp-input-code:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  #lamp-login-stage,
  .lamp-shade,
  .lamp-bulb,
  .lamp-light-cone,
  .lamp-cord-toggle,
  .lamp-cord-string,
  .login-panel-container {
    transition: none !important;
    animation: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .table-lamp-wrapper {
    transform: scale(0.85);
    margin-bottom: 10px;
  }
  .login-panel-container {
    padding: 24px 18px;
  }
}


.calendar-cell.header {
  min-height: auto;
  font-weight: 700;
  background: #f8fafc;
  text-align: center;
  padding: 8px 4px;
  color: #475569;
}

.calendar-cell.today {
  border-color: var(--primary);
  background: #fef2f2;
}

.calendar-cell.is-holiday {
  background: #f0fdf4;
  border-color: #86efac;
}

.calendar-cell.is-weekly {
  background: #f8fafc;
}

.calendar-cell.is-overlap {
  background: #fffbeb;
  border-color: #fde68a;
}

.calendar-day-number {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 4px;
}

.calendar-event-tag {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-tag.govt {
  background: #dcfce7;
  color: #166534;
}

.calendar-event-tag.company {
  background: #dbeafe;
  color: #1e40af;
}

.calendar-event-tag.weekly {
  background: #f1f5f9;
  color: #475569;
}

/* =============================================================
   BACKUP & RESTORE DISASTER RECOVERY MODULE STYLES
   ============================================================= */
.badge-full {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-db {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-files {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-checkpoint {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-aes {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 700;
}

.hash-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 11px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hash-code:hover {
  background: #e2e8f0;
  cursor: pointer;
}

.restore-warning-banner {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: #881337;
}

.restore-warning-banner h4 {
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #be123c;
}

.restore-warning-banner p {
  margin: 0 0 8px 0;
  font-size: 12px;
  line-height: 1.5;
}

.restore-warning-banner ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.backup-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.inspection-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.inspection-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.inspection-stat-box .val {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.inspection-stat-box .lbl {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 2px;
}

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}

/* -------------------------------------------------------------
 * Tax, Discount & AIT Center Styles
 * ----------------------------------------------------------- */
.tax-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tax-tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tax-tab-btn:hover {
  color: var(--primary);
}

.tax-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.pos-thermal-receipt {
  font-family: 'Courier New', Courier, monospace;
  background: #fff;
  color: #111;
  padding: 24px;
  max-width: 420px;
  margin: 0 auto;
  border: 1px dashed #bbb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 4px;
}

.pos-thermal-receipt h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  text-align: center;
}

.pos-thermal-receipt .subtext {
  font-size: 11px;
  text-align: center;
  color: #555;
  margin-bottom: 12px;
}

.pos-thermal-receipt .dashed-line {
  border-top: 1px dashed #666;
  margin: 10px 0;
}

.pos-thermal-receipt .receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.badge-excess-disc {
  background: #fee2e2;
  color: #dc2626;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Super Admin & User Management Specific Styles */
.superadmin-profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

.superadmin-profile-header {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.superadmin-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  border: 4px solid #fecaca;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
  flex-shrink: 0;
  object-fit: cover;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.meta-field {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #edf2f7;
}

.meta-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.meta-field .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.jd-responsibility-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 4px solid #dc2626;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.jd-resp-num {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.settings-category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.settings-card-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.matrix-table th {
  background: #f1f5f9;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
}

.matrix-table td {
  padding: 8px;
  border: 1px solid var(--border);
  text-align: center;
}

.matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
  background: #f8fafc;
}

.matrix-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #dc2626;
}

.print-dossier-wrapper {
  background: #fff;
  padding: 30px;
  color: #111;
  font-family: Arial, sans-serif;
}

@media print {
  .sidebar, .topbar, .tabs-header, .btn, .modal-backdrop {
    display: none !important;
  }
  .app-container, .main-wrapper, .view-content {
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .print-dossier-wrapper {
    padding: 0 !important;
  }
  .ajfses-watermark-container, .ajfses-watermark-pattern {
    position: fixed !important;
    display: flex !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .ajfses-watermark-image {
    display: block !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* =====================================================================
   AJFSES GLOBAL LOGO WATERMARK MANAGEMENT SYSTEM STYLES
   ===================================================================== */
.watermark-management-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.watermark-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.watermark-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.watermark-status-pill.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.watermark-status-pill.inactive {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.watermark-workspace {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .watermark-workspace {
    grid-template-columns: 1fr;
  }
}

.watermark-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.watermark-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.watermark-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.watermark-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.watermark-preset-btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.watermark-preset-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.watermark-preset-btn.active {
  background: #b91c1c;
  color: #ffffff;
  border-color: #991b1b;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.3);
}

.watermark-slider-wrap {
  margin-top: 12px;
}

.watermark-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.watermark-slider-val {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
}

.watermark-range {
  width: 100%;
  accent-color: #b91c1c;
  cursor: pointer;
}

.watermark-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.watermark-pos-btn {
  padding: 10px 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.watermark-pos-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.watermark-pos-btn.active {
  background: #b91c1c;
  color: #ffffff;
  border-color: #991b1b;
}

.watermark-preview-panel {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.watermark-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.watermark-preview-stage {
  padding: 30px;
  background: #64748b;
  overflow-x: auto;
  min-height: 650px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.watermark-paper {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.watermark-paper.portrait {
  width: 680px;
  min-height: 960px;
  padding: 36px;
}

.watermark-paper.landscape {
  width: 960px;
  min-height: 680px;
  padding: 36px;
}

.watermark-module-row {
  transition: background 0.15s ease;
}
.watermark-module-row:hover {
  background: #f8fafc;
}

.watermark-custom-subform {
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  font-size: 11px;
}

/* =====================================================================
   AJFSES ENTERPRISE ERP — INTERACTIVE ANIMATED TABLE LAMP & LOGIN STAGE
   ===================================================================== */

#lamp-login-stage {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #06080d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f8fafc;
}

#lamp-login-stage.hidden {
  display: none !important;
}

#lamp-login-stage.lamp-lit {
  background: radial-gradient(ellipse at 50% 22%, rgba(254, 240, 138, 0.22) 0%, rgba(245, 158, 11, 0.12) 32%, rgba(185, 28, 28, 0.08) 60%, #06080d 96%);
}

/* Ambient Room Overlay */
.lamp-ambient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, transparent 20%, rgba(0, 0, 0, 0.7) 90%);
  transition: opacity 0.6s ease;
}

#lamp-login-stage.lamp-lit .lamp-ambient-overlay {
  opacity: 0.35;
}

/* Top bar controls */
.lamp-topbar-controls {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
}

.accessible-login-btn {
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.accessible-login-btn:hover,
.accessible-login-btn:focus-visible {
  background: #b91c1c;
  border-color: #ef4444;
  outline: none;
}

/* -------------------------------------------------------------
   3D Table Lamp Assembly
   ------------------------------------------------------------- */
.table-lamp-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  height: 220px;
  user-select: none;
  margin-top: 10px;
  margin-bottom: 20px;
  z-index: 20;
}

/* Lamp Finial */
.lamp-finial {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #fef08a, #d97706 60%, #451a03);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: -4px;
  z-index: 5;
}

/* 3D Lampshade */
.lamp-shade {
  position: relative;
  width: 180px;
  height: 95px;
  clip-path: polygon(24% 0%, 76% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 40%, #1e1b4b 70%, #090d16 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 10px 25px rgba(0,0,0,0.8);
  border-bottom: 3px solid #78350f;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.shade-pattern-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.2) 0%, transparent 30%, transparent 70%, rgba(185, 28, 28, 0.2) 100%);
  opacity: 0.5;
}

.shade-brand-crest {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(254, 240, 138, 0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  margin-top: 20px;
  transition: color 0.4s ease;
}

#lamp-login-stage.lamp-lit .lamp-shade {
  background: linear-gradient(135deg, #78350f 0%, #b45309 30%, #f59e0b 60%, #d97706 100%);
  border-bottom: 3px solid #fef08a;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.4), 0 12px 35px rgba(245, 158, 11, 0.4);
}

#lamp-login-stage.lamp-lit .shade-brand-crest {
  color: #fffbeb;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.8);
}

/* Light Bulb Under Shade */
.lamp-bulb {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 20px;
  border-radius: 50% 50% 40% 40%;
  background: #334155;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

#lamp-login-stage.lamp-lit .lamp-bulb {
  background: #fef08a;
  box-shadow: 0 0 35px #fef08a, 0 0 70px #f59e0b, 0 15px 90px rgba(245, 158, 11, 0.8);
}

/* Conical Light Beam onto Panel */
.lamp-light-cone {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  clip-path: polygon(36% 0%, 64% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(254, 240, 138, 0.38) 0%, rgba(253, 230, 138, 0.18) 35%, rgba(254, 240, 138, 0.04) 75%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

#lamp-login-stage.lamp-lit .lamp-light-cone {
  opacity: 1;
}

/* Lamp Stem (Metallic Brass) */
.lamp-stem {
  position: relative;
  width: 14px;
  height: 80px;
  background: linear-gradient(90deg, #78350f, #d97706 25%, #fef08a 50%, #b45309 75%, #451a03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  border-radius: 2px;
  z-index: 2;
}

/* Lamp Base */
.lamp-base {
  position: relative;
  width: 110px;
  height: 22px;
  background: radial-gradient(ellipse at 50% 30%, #fef08a, #d97706 50%, #78350f 80%, #451a03);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0,0,0,0.85);
  margin-top: -6px;
  z-index: 3;
}

/* -------------------------------------------------------------
   Interactive Hanging Pull Cord Assembly
   ------------------------------------------------------------- */
.lamp-cord-assembly {
  position: absolute;
  top: 88px;
  left: calc(50% + 46px);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  z-index: 10;
  outline: none;
}

.lamp-cord-assembly:focus-visible .lamp-cord-toggle {
  box-shadow: 0 0 0 3px #f59e0b, 0 0 12px #fef08a;
}

.lamp-cord-string {
  width: 2px;
  height: 55px;
  background: linear-gradient(180deg, #94a3b8, #cbd5e1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: height 0.15s ease-out;
  transform-origin: top center;
}

.lamp-cord-toggle {
  width: 16px;
  height: 24px;
  border-radius: 4px 4px 10px 10px;
  background: radial-gradient(circle at 35% 35%, #fef08a, #d97706 70%, #451a03);
  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lamp-cord-toggle::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #fef08a;
  border-radius: 50%;
  opacity: 0.6;
}

/* Pull action state */
.lamp-cord-assembly.pulling .lamp-cord-string {
  height: 85px;
}

.lamp-cord-assembly.pulling .lamp-cord-toggle {
  transform: translateY(30px) scale(0.96);
}

.lamp-cord-assembly.spring-release .lamp-cord-toggle {
  animation: cordSpring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cordSpring {
  0% { transform: translateY(30px); }
  35% { transform: translateY(-12px); }
  65% { transform: translateY(6px); }
  85% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.pull-hint-tag {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  animation: floatHint 2s infinite ease-in-out;
  transition: opacity 0.3s ease;
}

#lamp-login-stage.lamp-lit .pull-hint-tag {
  opacity: 0;
}

@keyframes floatHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 4px); }
}

/* -------------------------------------------------------------
   Login Panel (Illuminated by Lamp)
   ------------------------------------------------------------- */
.login-panel-container {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(185, 28, 28, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 32px 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(35px) scale(0.96);
  filter: blur(4px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
}

#lamp-login-stage.lamp-lit .login-panel-container {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

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

.login-shield-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.4);
  font-size: 26px;
  margin-bottom: 12px;
}

.login-title-h1 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.login-subtitle-p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.welcome-highlight-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Alert Notification Bars inside Login */
.login-alert-banner {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
  animation: slideAlert 0.3s ease;
}

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

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

.login-alert-banner.locked {
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.login-alert-banner.expired {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
}

/* Input Elements */
.login-field-group {
  margin-bottom: 18px;
}

.login-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
}

.login-form-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #ffffff;
  padding: 12px 42px 12px 40px;
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.login-form-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  background: #090e17;
}

.password-toggle-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

.password-toggle-eye:hover {
  color: #f8fafc;
}

#lamp-login-stage.hidden {
  display: none !important;
}

.login-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 22px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.forgot-password-link {
  color: #f87171;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5);
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Two-Factor Step Container */
.two-factor-step-container {
  display: none;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.two-factor-step-container.active {
  display: block;
}

.two-factor-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.totp-input-code {
  font-family: monospace, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  color: #fef08a;
  background: #0f172a;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  margin: 16px 0;
  outline: none;
}

.totp-input-code:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  #lamp-login-stage,
  .lamp-shade,
  .lamp-bulb,
  .lamp-light-cone,
  .lamp-cord-toggle,
  .lamp-cord-string,
  .login-panel-container {
    transition: none !important;
    animation: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .table-lamp-wrapper {
    transform: scale(0.85);
    margin-bottom: 10px;
  }
  .login-panel-container {
    padding: 24px 18px;
  }
}








/* ==========================================================================
   AJFSES ERP — DEMO / PREVIEW MODE STYLES
   ========================================================================== */

/* Accessible Demo Topbar Button */
.accessible-demo-btn {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
}

.accessible-demo-btn:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

/* Login Or Divider */
.login-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-or-divider::before,
.login-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.login-or-divider span {
  padding: 0 12px;
}

/* Demo Access Card on Login Stage */
.demo-access-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(6, 78, 59, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.demo-access-card:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(6, 78, 59, 0.32));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

.demo-access-header {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.demo-badge-pulse {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.demo-access-desc {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0 0 12px;
  line-height: 1.45;
}

.btn-demo-access {
  width: 100%;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
}

.btn-demo-access:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.demo-access-tag {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: #a7f3d0;
}

/* Persistent Demo Banner across Top */
.demo-mode-banner {
  background: linear-gradient(90deg, #92400e, #b45309, #d97706);
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  position: sticky;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  animation: slideDownBanner 0.3s ease-out;
}

@keyframes slideDownBanner {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.demo-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.demo-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.demo-banner-pill {
  background: #ffffff;
  color: #78350f;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.demo-banner-text {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fef3c7;
}

.demo-banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.demo-timer-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fef08a;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  font-family: monospace;
}

.btn-exit-demo {
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-exit-demo:hover {
  background: #000000;
  border-color: #ffffff;
  color: #f87171;
  transform: translateY(-1px);
}

/* Demo watermark indicator badge on widgets and forms */
.demo-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* Responsive adjustments for Mobile & Tablet */
@media (max-width: 768px) {
  .demo-mode-banner {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .demo-banner-text {
    font-size: 11px;
    white-space: normal;
  }
  .demo-banner-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .accessible-demo-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ==========================================================================
   ENTERPRISE THEME, MODULE DASHBOARD, MASTER SETTINGS & USER PROFILE STYLES
   ========================================================================== */

/* Theme variables for Dark Mode */
body.theme-dark {
  --bg-main: #0b1120;
  --bg-card: #1e293b;
  --border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-light: rgba(220, 38, 38, 0.2);
  --accent-light: rgba(37, 99, 235, 0.2);
  --success-light: rgba(16, 185, 129, 0.2);
  --warning-light: rgba(245, 158, 11, 0.2);
}

body.theme-dark .topbar {
  background-color: #111827;
  border-bottom-color: #1f2937;
}

body.theme-dark .card {
  background-color: var(--bg-card);
  border-color: var(--border);
  color: var(--text-main);
}

body.theme-dark .table {
  color: var(--text-main);
}

body.theme-dark .table th {
  background-color: #0f172a;
  color: #cbd5e1;
  border-bottom-color: var(--border);
}

body.theme-dark .table td {
  border-bottom-color: var(--border);
}

body.theme-dark .table tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

body.theme-dark .form-control,
body.theme-dark select.form-control,
body.theme-dark textarea.form-control {
  background-color: #0f172a;
  border-color: var(--border);
  color: #f8fafc;
}

body.theme-dark .modal-content {
  background-color: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

body.theme-dark .dropdown-menu {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Universal Module View Subtab Header */
.module-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 12px;
}

.module-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.module-subtab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.module-subtab-btn:hover {
  background: var(--border);
}

.module-subtab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25);
}

/* 18-Component Dashboard Widgets */
.kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card-rich {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.kpi-card-rich::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.chart-bar-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding: 10px 0;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-pillar {
  width: 100%;
  max-width: 36px;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
  position: relative;
}

.chart-bar-pillar:hover {
  opacity: 0.85;
}

.chart-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

/* Settings Tabs & Overrides */
.settings-nav-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.settings-nav-tab {
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.badge-override {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-inherited {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
