/* =============================================
   FIVE STAR FUEL MANAGEMENT SYSTEM
   Monochrome Elegance — Black & White
   ============================================= */

:root {
  --primary: #111111;
  --primary-hover: #333333;
  --danger: #dc2626;
  --navy: #111111;
  --sidebar-bg: #111111;
  --sidebar-text: #999999;
  --sidebar-active: #ffffff;
  --topbar-bg: #ffffff;
  --body-bg: #f5f5f5;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --text-dark: #111111;
  --text-mid: #555555;
  --text-light: #999999;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
  --sidebar-w: 225px;
  --topbar-h: 52px;
  --radius: 8px;
  --transition: 0.2s ease;
}

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

/* ====== GLOBAL CUSTOM SLIM SCROLLBARS ====== */
/* WebKit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar,
*::-webkit-scrollbar,
div::-webkit-scrollbar,
ul::-webkit-scrollbar,
ol::-webkit-scrollbar,
section::-webkit-scrollbar,
form::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar,
.report-suggestion-list::-webkit-scrollbar,
[id*="suggestions"]::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.45) !important;
}

/* Dropdown suggestion boxes scrollbars */
.report-suggestion-list::-webkit-scrollbar,
[id*="suggestions"]::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
}

.report-suggestion-list::-webkit-scrollbar-thumb,
[id*="suggestions"]::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}

.report-suggestion-list::-webkit-scrollbar-thumb:hover,
[id*="suggestions"]::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* Sidebar specific scrollbar */
.sidebar::-webkit-scrollbar {
  width: 4px !important;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 4px !important;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45) !important;
}

/* Dark mode scrollbars */
body.dark-mode ::-webkit-scrollbar-thumb,
body.dark-mode *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) !important;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover,
body.dark-mode *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45) !important;
}

/* Firefox standard scrollbar properties */
*,
*::before,
*::after {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent !important;
}

.sidebar {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent !important;
}

/* ====== ENHANCED PROMINENT NATIVE DATE PICKERS ====== */
input[type="date"] {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px 6px;
  zoom: 1.15;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
  transform: scale(1.1);
  margin-left: 2px;
  margin-right: 0px;
  padding: 1px;
  border-radius: 4px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(37, 99, 235, 0.15);
  transform: scale(1.25);
}

/* ====== GLOBAL FILTER BAR & EXCEL MULTI-CHECKLIST STYLES ====== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

body.dark-mode .filter-bar {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.report-filter-card,
.excel-filter-card {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .report-filter-card,
body.dark-mode .excel-filter-card {
  background: #0f172a;
  border-color: #334155;
}

.report-filter-card:hover,
.excel-filter-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.report-filter-card label,
.excel-filter-card label.card-title-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  cursor: pointer;
  line-height: 1;
}

body.dark-mode .report-filter-card label,
body.dark-mode .excel-filter-card label.card-title-label {
  color: #94a3b8;
}

.report-filter-input,
.report-filter-card input[type="date"] {
  width: 100%;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 26px !important;
  margin: 0 !important;
  cursor: pointer;
}

body.dark-mode .report-filter-input,
body.dark-mode .report-filter-card input[type="date"] {
  color: #f8fafc !important;
}

.excel-filter-trigger-text {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 26px;
  margin: 0;
}

body.dark-mode .excel-filter-trigger-text {
  color: #f8fafc;
}

.excel-filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 250px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  z-index: 999 !important;
  display: none;
  padding: 10px;
  text-align: left;
}

body.dark-mode .excel-filter-dropdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.excel-filter-search {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 8px;
  outline: none;
  background: #fff;
  color: #0f172a;
}

body.dark-mode .excel-filter-search {
  background: #0f172a;
  color: #f8fafc;
  border-color: #475569;
}

.excel-filter-search:focus {
  border-color: #2563eb;
}

.excel-filter-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

body.dark-mode .excel-filter-actions {
  border-bottom-color: #334155;
}

.excel-filter-action-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.excel-filter-action-btn:hover {
  text-decoration: underline;
}

.excel-filter-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin !important;
}

.excel-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.dark-mode .excel-filter-option {
  color: #f8fafc;
}

.excel-filter-option:hover {
  background: #f1f5f9;
}

body.dark-mode .excel-filter-option:hover {
  background: #334155;
}

.excel-filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--body-bg);
  color: var(--text-dark);
  font-size: 14px;
  min-height: 100vh;
}

/* ====== APP SHELL ====== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: width 0.25s ease, left 0.25s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: var(--topbar-h);
  background: #000000;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo-star {
  font-size: 20px;
  color: #fff;
}

.logo-text strong {
  font-weight: 800;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.nav-group-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #555;
  padding: 16px 18px 6px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

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

.nav-item.active {
  color: #fff;
  border-left-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.nav-label {
  font-size: 14px;
}

/* ====== MAIN WRAP ====== */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  transition: margin-left 0.25s ease, width 0.25s ease;
}

/* ====== TOPBAR ====== */
.topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none;
  min-width: 0;
  overflow: visible;
}

.topbar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-mid);
  flex-shrink: 0;
}

.topbar-time {
  color: var(--text-light);
  margin-left: 4px;
}

.topbar-user {
  background: var(--body-bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

/* ====== NOTIFICATIONS ====== */
.notification-bell-container {
  position: relative;
  display: inline-block;
}

.notification-bell-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--text-dark);
}

.notification-bell-btn:hover {
  background: var(--body-bg);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  animation: notification-pulse 1.8s infinite;
}

@keyframes notification-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7), 0 0 0 2px #fff;
  }

  70% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0), 0 0 0 2px #fff;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 0 0 2px #fff;
  }
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

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

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

.notification-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0;
}

.notification-header button {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-mid);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

.notification-header button:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  text-align: left;
}

.notification-item:hover {
  background: var(--body-bg);
}

.notification-item.unread {
  background: #f0fdf4;
  /* light green for unread fuel transaction notifications */
  border-left: 3px solid #16a34a;
}

.notification-item.unread:hover {
  background: #dcfce7;
}

body.dark-mode .notification-item.unread {
  background: rgba(22, 163, 74, 0.15);
  border-left: 3px solid #4ade80;
}

body.dark-mode .notification-item.unread:hover {
  background: rgba(22, 163, 74, 0.25);
}

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

.notification-item-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.notification-item-desc {
  font-size: 11px;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.notification-item-time {
  font-size: 10px;
  color: var(--text-light);
}

.notification-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

/* ====== MAIN CONTENT ====== */
.main-content {
  padding: 24px;
  flex: 1;
  min-width: 0;
}

.dashboard-chart-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-chart-row--split {
  grid-template-columns: 2fr 1fr;
}

.dashboard-chart-row .card {
  min-width: 0;
}

.main-content {
  padding-bottom: 48px;
  scroll-padding-bottom: 48px;
}

/* ====== PAGE HEADERS ====== */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
}

.page-title span {
  color: var(--text-light);
}

/* ====== CARDS ====== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mid);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ====== STATS ROW ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.stat-unit {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 4px;
}

/* ====== GAS STATION GRID ====== */
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.station-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.station-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.station-icon {
  font-size: 64px;
  margin-bottom: 12px;
  display: block;
  filter: grayscale(1);
}

.station-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.station-meta {
  font-size: 11px;
  color: var(--text-light);
}

.station-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ====== TANK GRID ====== */
.tank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.tank-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.tank-icon {
  font-size: 80px;
  display: block;
  margin-bottom: 12px;
}

.tank-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tank-bar-wrap {
  background: #e8eaf0;
  border-radius: 3px;
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
}

.tank-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.tank-level {
  font-size: 12px;
  color: var(--text-light);
}

/* ====== FORM STYLES ====== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mid);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="month"],
textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 32px 8px 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23555555' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: none;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

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

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

.btn-secondary {
  background: var(--body-bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

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

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

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* ====== TABLES ====== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead tr {
  background: var(--primary);
  color: #fff;
}

thead th {
  padding: 10px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

tbody tr:hover {
  background: #fafafa;
}

tbody td {
  padding: 9px 14px;
  color: var(--text-mid);
}

tbody tr:last-child {
  border-bottom: none;
}

/* ====== FUEL TYPE BADGES ====== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-diesel {
  background: #f5f5f5;
  color: #555;
}

.badge-gasoline {
  background: #eee;
  color: #333;
}

.badge-premium {
  background: #ddd;
  color: #111;
}

/* ====== FILTER BAR ====== */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-bar .form-group {
  min-width: 140px;
}

.filter-bar .form-group input,
.filter-bar .form-group select {
  height: 38px !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  line-height: 1.5 !important;
  border-radius: 6px !important;
  border: 1px solid var(--border) !important;
  background-color: var(--card-bg);
  color: var(--text-dark);
  vertical-align: middle;
}

.filter-bar .form-group input[type="date"],
.filter-bar .form-group input[type="month"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Chrome/Blink layout */
.filter-bar .form-group input[type="date"]::-webkit-datetime-edit,
.filter-bar .form-group input[type="month"]::-webkit-datetime-edit {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.filter-bar .form-group input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.filter-bar .form-group input[type="month"]::-webkit-datetime-edit-fields-wrapper {
  display: inline-flex !important;
  align-items: center !important;
}

/* iOS/Safari layout */
.filter-bar .form-group input[type="date"]::-webkit-date-and-time-value,
.filter-bar .form-group input[type="month"]::-webkit-date-and-time-value {
  min-height: 36px !important;
  line-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.filter-bar .btn,
.filter-bar a.btn {
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ====== FUEL INFO PANEL ====== */
.fuel-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.fuel-info-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.fuel-pump-icon {
  font-size: 100px;
  line-height: 1;
}

.fuel-info-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

/* ====== DASHBOARD LAYOUT ====== */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.dash-full {
  grid-column: 1 / -1;
}

/* ====== ACTIVITY LOG ====== */
.activity-list {
  list-style: none;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 5px;
  flex-shrink: 0;
}

.activity-text {
  font-size: 13px;
  color: var(--text-mid);
}

.activity-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ====== ALERT ====== */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #28a745;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
}

.alert-info {
  background: #e8e8e8;
  color: #333;
  border-color: #888;
}

/* ====== SECTION TITLE ====== */
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading span {
  color: var(--text-light);
}


/* =============================================
   AUTH PAGES — Login & Register
   Matches monochrome aesthetic
   ============================================= */

.auth-body {
  min-height: 100dvh;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: var(--primary);
  padding: 24px 32px;
  text-align: center;
  flex-shrink: 0;
}

.auth-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.auth-logo span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
}

.auth-body-inner {
  padding: 32px;
  position: relative;
  flex: 1;
}

.auth-body-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--border);
}

.auth-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .form-group {
  gap: 5px;
}

.auth-form label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-mid);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--body-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.auth-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 11px;
  font-size: 15px;
  margin-top: 4px;
}

.auth-divider {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.auth-divider a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.auth-divider a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border-left: 3px solid;
  margin-bottom: 4px;
}

.auth-alert-error {
  background: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
}

.auth-alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #28a745;
}


/* =============================================
   RESPONSIVE — Mobile, iPad, iPad Pro
   ============================================= */

@media (max-width: 1024px) {
  .app-shell {
    min-height: 100dvh;
  }

  .auth-body {
    min-height: 1vh;
  }

  .main-wrap {
    min-height: auto;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
  }

  .main-content {
    padding: 16px 16px 88px;
  }

  .kiosk-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .kiosk-card {
    padding: 28px 14px !important;
  }

  .kiosk-icon {
    font-size: 68px !important;
  }

  .kiosk-name {
    font-size: 18px !important;
  }

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

  input,
  select {
    height: 46px !important;
    font-size: 15px !important;
    padding: 0 12px !important;
  }

  label {
    font-size: 12px !important;
  }

  #save-btn {
    height: 54px !important;
    font-size: 16px !important;
    position: sticky;
    bottom: 12px;
    z-index: 20;
    margin-top: 16px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }

  table th {
    font-size: 11px !important;
    padding: 8px !important;
  }

  table td {
    font-size: 12px !important;
    padding: 8px !important;
  }

  .auth-card {
    max-width: min(620px, 94vw);
  }

  .auth-header {
    padding: 24px 32px;
  }

  .auth-logo {
    font-size: 30px;
  }

  .auth-logo span {
    font-size: 11px;
  }

  .auth-body-inner {
    padding: 28px 28px 30px;
  }

  .auth-body-inner::before {
    left: 28px;
    right: 28px;
  }

  .auth-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .auth-form {
    gap: 14px;
  }

  .auth-form label {
    font-size: 11px !important;
  }

  .auth-form input[type="text"],
  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    padding: 12px 14px;
    font-size: 14px;
  }

  .auth-form .btn-primary {
    height: 52px;
    font-size: 16px;
  }

  .auth-divider {
    font-size: 11px;
    margin-top: 18px;
    padding-top: 14px;
  }
}

@media (max-width: 900px) {

  .form-grid,
  .form-grid-3,
  .dash-grid,
  .fuel-info-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .station-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .form-group {
    min-width: unset;
    width: 100%;
  }

  .kiosk-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .kiosk-card {
    padding: 30px 14px !important;
  }

  .kiosk-icon {
    font-size: 64px !important;
  }

  .kiosk-name {
    font-size: 18px !important;
  }
}

@media (max-width: 767px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    width: 240px;
    left: -240px;
    transition: left 0.25s ease;
    z-index: 200;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 199;
  }

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

  .main-wrap {
    margin-left: 0;
    width: 100%;
  }

  .main-content {
    padding: 14px;
  }

  .topbar {
    gap: 8px;
    padding: 0 10px;
  }

  .topbar-date {
    display: none;
  }

  .topbar-title {
    font-size: 14px;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: visible;
  }

  .topbar-user {
    display: none;
  }

  .profile-name-text {
    display: none;
  }

  .dark-toggle {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    justify-content: center;
    border-radius: 50% !important;
  }

  .desktop-title {
    display: none !important;
  }

  .mobile-title {
    display: inline !important;
  }

  .topbar-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    flex-shrink: 0;
    position: relative;
    z-index: 210;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-value {
    font-size: 26px;
  }

  .station-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

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

  .card {
    padding: 14px;
  }

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

  table {
    min-width: 500px;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

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

  .kiosk-card {
    padding: 24px 10px !important;
    border-radius: 14px !important;
  }

  .kiosk-icon {
    font-size: 52px !important;
    margin-bottom: 10px !important;
  }

  .kiosk-name {
    font-size: 15px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  input,
  select {
    height: 48px !important;
    font-size: 15px !important;
  }

  label {
    font-size: 12px !important;
  }

  #save-btn {
    height: 64px !important;
    font-size: 20px !important;
  }

  .auth-body {
    align-items: flex-start;
    justify-content: center;
    padding: 12px 12px 24px;
  }

  .auth-card {
    max-width: 100%;
  }

  .auth-body-inner {
    padding: 20px 16px;
  }

  .auth-header {
    padding: 18px 20px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .filter-bar .form-group {
    min-width: unset;
    width: 100%;
  }

  .fuel-info-visual {
    flex-direction: column;
    gap: 16px;
  }

  .fuel-pump-icon {
    font-size: 64px;
  }

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

  .dashboard-chart-row--split {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-row {
    gap: 14px;
  }

  .dashboard-chart-row .card {
    padding: 14px;
  }

  .reports-filter-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .reports-filter-row .form-group {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .reports-filter-row .form-group:nth-child(1),
  .reports-filter-row .form-group:nth-child(2) {
    grid-column: span 2 !important;
  }

  .reports-filter-row input[type="date"] {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    padding: 8px 6px !important;
  }

  .reports-btn-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .reports-btn-row .btn {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .reports-btn-row .btn:nth-child(5) {
    grid-column: span 2 !important;
  }
}

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

  .stat-value {
    font-size: 22px;
  }

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

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

  .section-heading {
    font-size: 17px;
  }

  .card {
    padding: 12px;
    margin-bottom: 12px;
  }

  .auth-logo {
    font-size: 20px;
  }

  .kiosk-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .kiosk-card {
    padding: 20px 10px !important;
  }

  .kiosk-icon {
    font-size: 48px !important;
  }

  .kiosk-name {
    font-size: 16px !important;
  }
}

/* =============================================
   REPORTS & LARGE TABLES
   ============================================= */

.report-table {
  min-width: 2200px;
  border-collapse: collapse;
  font-size: 11px;
}

.report-wrap {
  overflow-x: auto;
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-top: 10px;
}

/* Scrollbar — monochrome */
::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 6px;
  border: 2px solid #eee;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

* {
  scrollbar-width: auto;
  scrollbar-color: #aaa #eee;
}

.report-table thead tr {
  background: var(--primary) !important;
}

.report-table th {
  color: #ffffff !important;
  padding: 12px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  text-align: center;
}

.report-table td {
  padding: 8px 10px;
  border: 1px solid #eef0f7;
  color: var(--text-dark);
  white-space: nowrap;
  text-align: center;
}

.report-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.report-table tbody tr:hover {
  background-color: #f0f0f0;
}

.col-highlight {
  font-weight: 800;
  color: var(--primary) !important;
}

@media print {

  .sidebar,
  .topbar,
  .filter-bar,
  .btn {
    display: none !important;
  }

  .main-wrap {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .report-wrap {
    overflow: visible !important;
    border: none;
  }

  .report-table {
    font-size: 9px;
  }

  .card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* --- PICKER CARD STYLES --- */
.picker-section {
  margin-bottom: 20px;
}

.picker-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px !important;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--card-bg);
  flex: 1 1 140px;
  min-width: 120px;
  transition: all 0.2s;
  user-select: none;
  position: relative;
}

.pick-card:hover {
  border-color: var(--primary);
  background: #f5f5f5;
  transform: translateY(-2px);
}

.pick-card.selected {
  border-color: var(--primary);
  background: #f0f0f0;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.pick-card.dimmed {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(1);
}

.pick-card .pick-icon {
  font-size: 30px;
  line-height: 1;
}

.pick-card .pick-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  text-align: center;
}

.pick-card .pick-sub {
  font-size: 10px;
  color: var(--text-light);
  text-align: center;
}

.pick-card .pick-level {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

.pick-check {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  color: var(--primary);
  display: none;
}

.pick-card.selected .pick-check {
  display: block;
}

.mini-bar-wrap {
  width: 70px;
  height: 5px;
  background: #e8eaf0;
  border-radius: 3px;
  overflow: hidden;
}

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


/* ====== AUTOCOMPLETE ====== */
.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.autocomplete-items div {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #d4d4d4;
  font-size: 14px;
}

.autocomplete-items div:hover {
  background: #f5f5f5;
}

/* ====== JOLLIBEE STYLE KIOSK MODE ====== */
.step-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.kiosk-card {
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.kiosk-card:hover {
  border-color: var(--primary);
  background: #fafafa;
  transform: scale(1.02);
}

.kiosk-card.selected {
  border-color: var(--primary);
  background: #f0f0f0;
  box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.08);
}

.kiosk-icon {
  font-size: 100px;
  margin-bottom: 20px;
  display: block;
}

.kiosk-name {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
}

.kiosk-sub {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 5px;
}

.back-nav {
  margin-bottom: 20px;
}

.btn-back {
  background: #eee;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-back:hover {
  background: #ddd;
}

.kiosk-progress {
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 25%;
  transition: width 0.4s ease;
}

/* =============================================
   DARK MODE
   ============================================= */

body.dark-mode {
  --body-bg: #0a0a0a;
  --card-bg: #161616;
  --topbar-bg: #161616;
  --border: #252525;
  --text-dark: #e0e0e0;
  --text-mid: #bbbbbb;
  --text-light: #777777;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode input[type="text"],
body.dark-mode input[type="number"],
body.dark-mode input[type="date"],
body.dark-mode input[type="time"],
body.dark-mode input[type="month"],
body.dark-mode input[type="password"],
body.dark-mode select,
body.dark-mode textarea {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23aaaaaa' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  background-color: #252525;
  border-color: #fff;
  color: #e0e0e0;
}

body.dark-mode label {
  color: #bbb;
}

body.dark-mode .form-control {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .btn-secondary {
  background: #1e1e1e;
  color: #bbb;
  border-color: #333;
}

body.dark-mode .btn-secondary:hover {
  background: #252525;
  color: #e0e0e0;
}

body.dark-mode tbody tr {
  background: var(--card-bg) !important;
}

body.dark-mode tbody tr:hover {
  background: #1e1e1e !important;
}

body.dark-mode tbody tr:nth-child(even) {
  background: #131313 !important;
}

body.dark-mode tbody td {
  color: #bbb;
}

/* Custom dark mode highlights for inline styled columns/rows in reports */
body.dark-mode td[style*="color:#1d4ed8"],
body.dark-mode td[style*="color: #1d4ed8"] {
  color: #60a5fa !important;
}

body.dark-mode td[style*="color:#15803d"],
body.dark-mode td[style*="color: #15803d"] {
  color: #4ade80 !important;
}

body.dark-mode td[style*="color:#b91c1c"],
body.dark-mode td[style*="color: #b91c1c"] {
  color: #f87171 !important;
}

body.dark-mode td[style*="color:#555"],
body.dark-mode td[style*="color: #555"] {
  color: var(--text-mid) !important;
}

body.dark-mode td[style*="color:#888"],
body.dark-mode td[style*="color: #888"] {
  color: var(--text-light) !important;
}

/* Blacklist table dark mode thematic coloring */
body.dark-mode #blacklist-table tbody tr {
  background: rgba(220, 38, 38, 0.04) !important;
  border-bottom: 1px solid rgba(220, 38, 38, 0.15) !important;
}

body.dark-mode #blacklist-table tbody tr:nth-child(even) {
  background: rgba(220, 38, 38, 0.08) !important;
}

body.dark-mode #blacklist-table tbody tr:hover {
  background: rgba(220, 38, 38, 0.15) !important;
}

body.dark-mode .topbar-user {
  background: #1e1e1e;
  border-color: #333;
  color: #bbb;
}

body.dark-mode .kiosk-card {
  background: #161616;
  border-color: #333;
}

body.dark-mode .kiosk-card:hover {
  background: #1e1e1e;
  border-color: #fff;
}

body.dark-mode .kiosk-name {
  color: #e0e0e0;
}

body.dark-mode .report-wrap {
  background: #161616;
  border-color: #333;
}

body.dark-mode .report-table td {
  border-color: #252525;
  color: #bbb;
}

body.dark-mode .report-table tbody tr:nth-child(even) {
  background: #131313;
}

body.dark-mode .report-table tbody tr:hover {
  background: #1e1e1e;
}

body.dark-mode .card-title {
  color: #bbb;
}

body.dark-mode .page-title {
  color: #e0e0e0;
}

body.dark-mode small {
  color: #777;
}

body.dark-mode option {
  background: #1e1e1e;
  color: #e0e0e0;
}

/* Dark mode toggle button */
.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
}

.dark-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =============================================
   SIDEBAR COLLAPSE (desktop only)
   ============================================= */

.sidebar-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.sidebar-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 767px) {
  .sidebar-toggle-btn {
    display: flex !important;
  }
}

/* =============================================
   SEMANTIC BADGES & UI REFINEMENTS
   ============================================= */

/* Base badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Success Badge (Active / Completed) */
.badge-success {
  background: rgba(21, 128, 61, 0.1);
  color: #16a34a;
}

body.dark-mode .badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

/* Danger Badge (Inactive / Delete / Destructive status) */
.badge-danger {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

body.dark-mode .badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Warning Badge (Pending) */
.badge-warning {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

body.dark-mode .badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Info Badge (Roles, sites, info tags) */
.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

body.dark-mode .badge-info {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

/* Neutral/Secondary Badge (Muted info tags) */
.badge-secondary {
  background: #f3f4f6;
  color: #374151;
}

body.dark-mode .badge-secondary {
  background: #1e1e1e;
  color: #bbb;
  border: 1px solid #333;
}

/* Premium table typography & spacing */
.card table th {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.card table td {
  padding: 12px 10px;
  vertical-align: middle;
}

/* Row Hover States */
.card table tbody tr {
  transition: background var(--transition);
}

.card table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

body.dark-mode .card table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015) !important;
}

/* Responsive Notifications Dropdown on Mobile */
@media (max-width: 480px) {
  .notification-dropdown {
    position: fixed;
    top: var(--topbar-h);
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
}

/* =============================================
   GASMAN ACCESSIBILITY OVERRIDES (BLURRY VISION)
   ============================================= */

/* Form Groups, Labels & Headings */
body.role-gasman .page-title {
  font-size: 34px !important;
}

body.role-gasman .page-title span {
  font-size: 28px !important;
}

body.role-gasman label,
body.role-gasman .form-group label {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 10px !important;
  display: inline-block !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Inputs, Selects, and Textareas */
body.role-gasman input,
body.role-gasman select,
body.role-gasman textarea,
body.role-gasman .form-control {
  font-size: 22px !important;
  height: 64px !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  border: 2px solid #94a3b8 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
}

body.role-gasman input:focus,
body.role-gasman select:focus,
body.role-gasman textarea:focus,
body.role-gasman .form-control:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

body.role-gasman input::placeholder {
  color: #94a3b8 !important;
  font-size: 20px !important;
}

/* Kiosk Cards */
body.role-gasman .kiosk-card {
  padding: 36px 24px !important;
}

body.role-gasman .kiosk-name {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

body.role-gasman .kiosk-icon {
  font-size: 72px !important;
}

body.role-gasman .kiosk-sub {
  font-size: 18px !important;
  padding: 6px 16px !important;
}

body.role-gasman .kiosk-card div:not(.kiosk-name):not(.kiosk-sub) {
  font-size: 16px !important;
}

/* Gasman Step-by-Step Hover Big & Android/Tablet Long Press Zoom */
body.role-gasman .step-container,
body.role-gasman .wizard-substep,
body.role-gasman .kiosk-grid,
body.role-gasman .kiosk-body,
body.role-gasman .ways-btn-group,
body.role-gasman .kiosk-confirm-grid {
  overflow: visible !important;
}

body.role-gasman .custom-kmr-dropdown,
body.role-gasman .custom-kmr-dropdown.kiosk-cards,
body.role-gasman .kiosk-card-grid {
  max-height: 360px !important;
  overflow-y: auto !important;
  padding: 10px !important;
}

body.role-gasman .kiosk-item-card,
body.role-gasman .kiosk-card,
body.role-gasman .ways-btn,
body.role-gasman .step-summary-bar,
body.role-gasman .kiosk-confirm-item,
body.role-gasman .custom-kmr-dropdown.kiosk-cards > div,
body.role-gasman .kiosk-card-grid > div,
body.role-gasman .kiosk-btn,
body.role-gasman #btn-add-kmr2,
body.role-gasman #btn-add-d2 {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.2s ease !important;
  position: relative !important;
  z-index: 1 !important;
  -webkit-tap-highlight-color: transparent !important;
}

@media (hover: hover) and (pointer: fine) {
  body.role-gasman .kiosk-item-card:hover,
  body.role-gasman .kiosk-card:hover {
    transform: scale(1.16) translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(204, 20, 20, 0.35) !important;
    border-color: #CC1414 !important;
    z-index: 50 !important;
  }

  body.role-gasman .custom-kmr-dropdown.kiosk-cards > div:hover,
  body.role-gasman .kiosk-card-grid > div:hover {
    transform: scale(1.06) translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(204, 20, 20, 0.35) !important;
    border-color: #CC1414 !important;
    z-index: 10 !important;
  }
  
  body.role-gasman .ways-btn:hover,
  body.role-gasman #btn-add-kmr2:hover,
  body.role-gasman #btn-add-d2:hover {
    transform: scale(1.22) translateY(-6px) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), 0 0 0 4px rgba(204, 20, 20, 0.35) !important;
    border-color: #CC1414 !important;
    z-index: 50 !important;
  }

  body.role-gasman .step-summary-bar:hover {
    transform: scale(1.03) translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 40 !important;
  }

  body.role-gasman .kiosk-confirm-item:hover {
    transform: scale(1.08) translateY(-4px) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid #CC1414 !important;
    z-index: 40 !important;
  }

  body.role-gasman .kiosk-btn:hover {
    transform: scale(1.06) translateY(-4px) !important;
    z-index: 40 !important;
  }
}

body.role-gasman .kiosk-item-card.is-long-pressed,
body.role-gasman .kiosk-card.is-long-pressed {
  transform: scale(1.26) translateY(-10px) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 4px #CC1414 !important;
  border-color: #CC1414 !important;
  z-index: 100 !important;
}

body.role-gasman .custom-kmr-dropdown.kiosk-cards > div.is-long-pressed,
body.role-gasman .kiosk-card-grid > div.is-long-pressed {
  transform: scale(1.10) translateY(-6px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 0 4px #CC1414 !important;
  border-color: #CC1414 !important;
  z-index: 20 !important;
}

body.role-gasman .ways-btn.is-long-pressed,
body.role-gasman #btn-add-kmr2.is-long-pressed,
body.role-gasman #btn-add-d2.is-long-pressed {
  transform: scale(1.30) translateY(-8px) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35), 0 0 0 4px #CC1414 !important;
  border-color: #CC1414 !important;
  z-index: 100 !important;
}

body.role-gasman .step-summary-bar.is-long-pressed {
  transform: scale(1.06) translateY(-4px) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25) !important;
  border-left: 6px solid #CC1414 !important;
  z-index: 100 !important;
}

body.role-gasman .kiosk-confirm-item.is-long-pressed {
  transform: scale(1.15) translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  border: 3px solid #CC1414 !important;
  z-index: 100 !important;
}

body.role-gasman .kiosk-btn.is-long-pressed {
  transform: scale(1.12) translateY(-6px) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35) !important;
  z-index: 100 !important;
}

body.role-gasman .kiosk-summary-banner {
  font-size: 24px !important;
  padding: 24px 28px !important;
}

body.role-gasman .kiosk-summary-banner strong {
  font-size: 26px !important;
}

/* Back navigation & Action Buttons */
body.role-gasman .back-nav .btn {
  font-size: 20px !important;
  padding: 14px 28px !important;
  height: auto !important;
}

body.role-gasman .btn-primary {
  font-size: 20px !important;
  height: 64px !important;
}

/* Table cells and headers */
body.role-gasman table th,
body.role-gasman .table th {
  font-size: 18px !important;
  padding: 14px 16px !important;
}

body.role-gasman table td,
body.role-gasman .table td {
  font-size: 18px !important;
  padding: 14px 16px !important;
}

body.role-gasman .card-title {
  font-size: 22px !important;
}

/* Modals */
body.role-gasman #midnight-close-modal label,
body.role-gasman #modal-timeout label,
body.role-gasman #modal-midnight label,
body.role-gasman #midnight-close-form label {
  font-size: 18px !important;
}

body.role-gasman #midnight-close-modal input,
body.role-gasman #modal-timeout input,
body.role-gasman #modal-midnight input,
body.role-gasman #midnight-close-form input {
  font-size: 22px !important;
  height: 60px !important;
  padding: 12px 18px !important;
}

/* =============================================
   ELEGANT CUSTOM SELECT OVERLAYS
   ============================================= */

/* Custom Select Container */
.custom-select-container {
  position: relative;
  width: 100%;
}

/* Custom Select Trigger Button */
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-dark);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.custom-select-trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.custom-select-trigger .arrow {
  border: solid var(--text-mid);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  margin-bottom: 2px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-select-container.open .custom-select-trigger .arrow {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

/* Custom Select Dropdown Panel */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: csSlideDown 0.15s ease;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-select-container.open .custom-select-dropdown {
  display: flex;
}

/* Search input inside dropdown */
.custom-select-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.custom-select-search {
  width: 100% !important;
  height: 30px !important;
  padding: 4px 8px !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  background: #ffffff !important;
}

/* Options Container */
.custom-select-options {
  max-height: 200px;
  overflow-y: auto;
}

/* Custom Select Option Item */
.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.1s;
}

.custom-select-option:hover {
  background: #f3f4f6;
}

.custom-select-option.selected {
  font-weight: 700;
  background: #fafafa;
}

.custom-select-option.selected::after {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

/* Dark Mode Overrides */
body.dark-mode .custom-select-trigger {
  background: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

body.dark-mode .custom-select-trigger:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

body.dark-mode .custom-select-trigger .arrow {
  border-color: #aaa;
}

body.dark-mode .custom-select-dropdown {
  background: #1e1e1e;
  border-color: #333;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

body.dark-mode .custom-select-search-wrap {
  background: #161616;
  border-bottom-color: #333;
}

body.dark-mode .custom-select-search {
  background: #121212 !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .custom-select-option {
  color: #e0e0e0;
}

body.dark-mode .custom-select-option:hover {
  background: #2d2d2d;
}

body.dark-mode .custom-select-option.selected {
  background: #252525;
}

body.dark-mode .custom-select-option.selected::after {
  color: #ffffff;
}

/* ====== REGISTRATIONS TABLE WRAP ====== */
.registrations-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--card-bg);
}

.registrations-table-wrap table thead tr th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #111 !important;
  color: #fff !important;
  box-shadow: inset 0 -1px 0 var(--border);
}

/* ====== PREMIUM SLIM SCROLLBARS FOR TABLE CONTAINERS ====== */
.table-wrap,
.card,
.users-table-wrap,
.registrations-table-wrap,
div[style*="overflow-x"] {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

/* Chrome, Edge, Safari */
.table-wrap::-webkit-scrollbar,
.card::-webkit-scrollbar,
.users-table-wrap::-webkit-scrollbar,
.registrations-table-wrap::-webkit-scrollbar,
div[style*="overflow-x"]::-webkit-scrollbar {
  height: 5px;
  /* Slim horizontal scrollbar */
  width: 5px;
  /* Slim vertical scrollbar */
}

.table-wrap::-webkit-scrollbar-track,
.card::-webkit-scrollbar-track,
.users-table-wrap::-webkit-scrollbar-track,
.registrations-table-wrap::-webkit-scrollbar-track,
div[style*="overflow-x"]::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 99px;
}

.table-wrap::-webkit-scrollbar-thumb,
.card::-webkit-scrollbar-thumb,
.users-table-wrap::-webkit-scrollbar-thumb,
.registrations-table-wrap::-webkit-scrollbar-thumb,
div[style*="overflow-x"]::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.table-wrap::-webkit-scrollbar-thumb:hover,
.card::-webkit-scrollbar-thumb:hover,
.users-table-wrap::-webkit-scrollbar-thumb:hover,
.registrations-table-wrap::-webkit-scrollbar-thumb:hover,
div[style*="overflow-x"]::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Scroll Fix for Gasman on Tablet/Mobile viewports */
body.role-gasman {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
}
body.role-gasman .app-shell {
  display: block !important;
  height: auto !important;
  min-height: 100vh !important;
}
body.role-gasman .main-wrap {
  display: block !important;
  height: auto !important;
  min-height: auto !important;
}
body.role-gasman .main-content {
  padding-bottom: 120px !important; /* Ensure enough scrollable padding at the bottom of the form */
}