:root {
  --bg-deep: #0b1f33;
  --bg-mid: #153a5f;
  --bg-soft: #eef4fb;
  --card: #ffffff;
  --text-main: #0a233b;
  --text-subtle: #355a7f;
  --accent: #e0631d;
  --accent-2: #f3b33f;
  --line: #c5d7ea;
  --success: #0d7a4b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(56, 189, 248, 0.14), transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(249, 115, 22, 0.12), transparent 45%),
    radial-gradient(ellipse at 50% 85%, rgba(14, 165, 233, 0.10), transparent 50%),
    linear-gradient(160deg, #f0f6fc 0%, #e2edf8 50%, #f4f9ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  background-attachment: fixed;
}

body.login-landing {
  background: url("main load page.jpg") center center / cover no-repeat fixed;
}

body.login-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(243, 179, 63, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(61, 141, 203, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(7, 24, 43, 0.28), rgba(7, 24, 43, 0.52));
  z-index: 0;
  pointer-events: none;
}

body.login-landing .site-header,
body.login-landing .nav-bar,
body.login-landing .home-form-page {
  display: none !important;
}

body.login-landing .bg-shape {
  display: none;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.bg-shape-one {
  width: 460px;
  height: 460px;
  right: -100px;
  top: -100px;
  background: radial-gradient(circle at 35% 35%, rgba(249, 115, 22, 0.28), rgba(245, 158, 11, 0.14));
  opacity: 0.45;
  filter: blur(45px);
}

.bg-shape-two {
  width: 520px;
  height: 520px;
  left: -150px;
  bottom: -150px;
  background: radial-gradient(circle at 65% 35%, rgba(2, 132, 199, 0.24), rgba(14, 165, 233, 0.14));
  opacity: 0.45;
  filter: blur(55px);
}

.site-header {
  padding: 0 0 6px;
  text-align: center;
  animation: rise-in 500ms ease-out;
}

.login-toggle-btn {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 40;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg-deep);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(8, 33, 58, 0.16);
}

body.login-landing .login-toggle-btn {
  background: rgba(10, 27, 45, 0.58);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.logout-corner-btn {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 9999;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
  border-radius: 9999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  user-select: none;
}

.logout-corner-btn:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}

.logout-corner-btn:active {
  transform: scale(0.97);
}

body.login-landing .logout-corner-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .logout-corner-btn {
    top: 6px;
    right: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

@media print {
  .logout-corner-btn,
  #logoutBtn,
  [class*="logout"] {
    display: none !important;
    visibility: hidden !important;
  }
}

.login-dialog {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  padding: 18px 18px 16px;
  width: min(390px, 92vw);
  color: #f8fbff;
  background: linear-gradient(180deg, rgba(14, 35, 58, 0.82), rgba(9, 23, 40, 0.72));
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 28px 60px rgba(2, 11, 20, 0.45);
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
}

.login-dialog::backdrop {
  background: radial-gradient(circle at center, rgba(7, 20, 34, 0.55), rgba(4, 14, 24, 0.82));
}

.login-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.login-dialog-head strong {
  font-size: 1.05rem;
  letter-spacing: 0.4px;
}

.login-dialog .helper-text {
  margin: 12px 0 0;
  color: rgba(240, 248, 255, 0.82);
  text-align: center;
}

.login-dialog .btn-outline,
.login-dialog .btn-primary {
  border-radius: 12px;
}

.login-dialog-head .btn-outline {
  padding: 4px 8px;
  font-size: 0.78rem;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  gap: 5px;
  font-size: 0.84rem;
  color: rgba(248, 251, 255, 0.9);
}

.login-form input {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

.login-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.login-actions button {
  flex: 1;
  padding: 8px 10px;
}

.site-banner {
  display: block;
  width: 100vw;
  max-width: none;
  height: 140px;
  max-height: 140px;
  margin: 0 calc(50% - 50vw) 8px;
  object-fit: fill;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  box-shadow: 0 10px 24px rgba(13, 45, 79, 0.12);
}

.site-header h1 {
  display: none;
}

.site-header p {
  display: none;
}

.nav-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 16px;
  margin: 0 auto 16px auto;
  width: fit-content;
  max-width: 96vw;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(15, 35, 60, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
  text-decoration: none;
  color: #1e3e62;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 246, 253, 0.6) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 15px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(13, 45, 79, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

/* Guarantee that hidden nav-links and hidden elements never show */
[hidden],
.nav-link[hidden],
[hidden="true"],
.nav-link[hidden="true"] {
  display: none !important;
}

.nav-link:hover {
  transform: translateY(-2px);
  color: #0284c7;
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 242, 254, 0.8) 100%);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 55%, #075985 100%) !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-1px);
}

.layout-grid {
  width: min(1200px, 94vw);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(13, 45, 79, 0.08);
  animation: rise-in 420ms ease-out;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.data-entry-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.entry-mode-tabs {
  display: flex;
  gap: 6px;
}

.btn-tab {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-tab:hover {
  background: #e2e8f0;
}

.btn-tab.is-active {
  background: #1e3e62;
  color: #ffffff;
  border-color: #1e3e62;
  box-shadow: 0 2px 6px rgba(30, 62, 98, 0.25);
}

.btn-tab.btn-voice-tab.is-active {
  background: #0284c7;
  border-color: #0284c7;
}

.voice-assistant-panel {
  background: linear-gradient(135deg, #0b1f33, #153a5f);
  border: 1px solid #38bdf8;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #f8fafc;
  animation: rise-in 300ms ease-out;
}

.voice-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.voice-controls-left,
.voice-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-voice-mic {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-voice-mic:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-voice-mic.is-listening {
  background: #dc2626 !important;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.8) !important;
  animation: pulse-mic 1.2s infinite ease-in-out;
}

@keyframes pulse-mic {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.88; }
}

.voice-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 600;
}

.voice-status-badge.listening {
  background: #dc2626;
  color: #ffffff;
}

.voice-lang-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-lang-label select {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.voice-transcript-box {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 42px;
  font-size: 0.92rem;
  color: #38bdf8;
  word-break: break-word;
}

.voice-panel-footer {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.voice-parsed-tag {
  color: #4ade80;
  font-weight: 600;
}

.field-highlight-voice {
  animation: flash-field 1.4s ease-out;
  border-color: #0284c7 !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.45) !important;
}

@keyframes flash-field {
  0% { background-color: #e0f2fe; }
  100% { background-color: #f9fcff; }
}

.entry-form {
  display: grid;
  gap: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
}

.journey-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.journey-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

.journey-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px;
}

.journey-remarks {
  grid-column: 1 / -1;
}

.journey-outward {
  background: #f4faff;
  border-left: 5px solid #3b82c4;
}

.journey-inward {
  background: #f4fff7;
  border-left: 5px solid #2f9b62;
}

label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.87rem;
}

.required-star {
  color: #cf222e;
  font-weight: 700;
  margin-left: 2px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 7px;
  font: inherit;
  background: #f9fcff;
}

.entry-form input:not([type="number"]):not([type="hidden"]):not([type="password"]),
.entry-form textarea,
.entry-form select {
  text-transform: uppercase;
}

.compact-journey input,
.compact-journey select {
  min-height: 30px;
}

.remarks-block textarea {
  min-height: 44px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2d77ba;
  box-shadow: 0 0 0 3px rgba(45, 119, 186, 0.15);
}

.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.employee-dropdown-list {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  max-height: 230px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  z-index: 1050;
  color: #1e293b;
}

.employee-dropdown-item {
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.35;
  transition: background-color 0.1s ease, color 0.1s ease;
  user-select: none;
}

.employee-dropdown-item:hover,
.employee-dropdown-item.is-selected {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
}

.employee-dropdown-empty {
  padding: 8px 12px;
  font-size: 0.84rem;
  color: #64748b;
  font-style: italic;
  user-select: none;
}

.submit-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475467;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.declarations {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.declaration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.declaration-header h3 {
  margin: 0;
}

.declaration-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   UNIVERSAL LIQUID BUTTON SYSTEM (All buttons across the entire website)
   ═══════════════════════════════════════════════════════════════════════════════ */
button,
input[type="button"],
input[type="submit"],
.btn,
.btn-primary,
.btn-outline,
.btn-danger,
.btn-tab,
.toolbar-btn,
.chat-tab-btn,
.emp-tab-btn,
.chat-send-btn,
.chat-composer-btn-send {
  font: inherit;
  cursor: pointer;
  border-radius: 9999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  user-select: none;
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #1e3e62;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 3px 10px rgba(15, 35, 60, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  line-height: 1.25;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  color: #0284c7;
  background: rgba(240, 249, 255, 0.98);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.2), inset 0 1px 1px rgba(255, 255, 255, 1);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
.btn:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 6px rgba(15, 35, 60, 0.12);
}

/* Primary Liquid Button (Radiant Warm Amber/Orange Gloss) */
.btn-primary,
button[type="submit"]:not(.btn-outline):not(.btn-danger):not(.chat-composer-btn-send) {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 60%, #9a3412 100%);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.55);
}

.btn-primary:hover,
button[type="submit"]:not(.btn-outline):not(.btn-danger):not(.chat-composer-btn-send):hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 60%, #c2410c 100%);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.45), inset 0 1px 1.5px rgba(255, 255, 255, 0.7);
}

.btn-primary:active,
button[type="submit"]:not(.btn-outline):not(.btn-danger):not(.chat-composer-btn-send):active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}

/* Outline / Secondary Liquid Button (Fluid Glass) */
.btn-outline {
  border: 1px solid rgba(30, 62, 98, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: #1e3e62;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 3px 10px rgba(15, 35, 60, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  color: #0284c7;
  background: rgba(240, 249, 255, 0.98);
  box-shadow: 0 7px 22px rgba(2, 132, 199, 0.22), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-outline:active {
  transform: scale(0.97) translateY(0);
}

/* Danger Liquid Button (Ruby Crimson Gloss) */
.btn-danger {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 60%, #991b1b 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
}

.btn-danger:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45), inset 0 1px 1.5px rgba(255, 255, 255, 0.65);
}

.btn-danger:active {
  transform: scale(0.97) translateY(0);
}

/* Dark Modal & Dialog Buttons Override */
dialog button.btn-outline,
.op72-quick-entry-dialog button.btn-outline,
.op72-empty-dates-dialog button.btn-outline,
.op72-multi-dialog button.btn-outline {
  background: rgba(30, 41, 59, 0.85);
  color: #f1f5f9;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

dialog button.btn-outline:hover,
.op72-quick-entry-dialog button.btn-outline:hover,
.op72-empty-dates-dialog button.btn-outline:hover,
.op72-multi-dialog button.btn-outline:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

/* Exceptions: Pure icon & inline trigger buttons */
button.op72-quick-close,
button.op72-empty-close-btn,
button.dropdown-trigger-btn,
button.btn-pwd-toggle-inline {
  border-radius: 4px;
  padding: 2px 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
button.op72-quick-close:hover,
button.op72-empty-close-btn:hover,
button.dropdown-trigger-btn:hover,
button.btn-pwd-toggle-inline:hover {
  transform: none;
  box-shadow: none;
}

.btn-link-loco {
  position: relative;
  transition: all 0.18s ease-in-out;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.btn-link-loco:hover {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

.btn-link-loco.is-active,
.btn-link-loco[aria-pressed="true"] {
  background: #15803d !important;
  color: #ffffff !important;
  border-color: #14532d !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(34, 197, 94, 0.35) !important;
  transform: translateY(1px) !important;
}

.btn-link-loco.is-active:hover {
  background: #166534 !important;
  color: #ffffff !important;
}

.btn-link-loco .badge-linked {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  font-weight: 800;
}

.helper-text {
  color: var(--text-subtle);
  font-size: 0.95rem;
}

.preview {
  background: #061c31;
  color: #f0f7ff;
  border-radius: 12px;
  padding: 12px;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
}

.sheet-wrap {
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 2200px;
  table-layout: fixed;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: #e9f2fb;
  white-space: pre-wrap;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 3;
}

thead th.header-row-1 {
  background: #d6e7f8;
  font-weight: 700;
}

thead th.header-row-2,
thead th.header-row-3 {
  background: #edf4fb;
  font-weight: 600;
}

thead th.header-row-2 {
}

thead th.header-row-3 {
}

.sticky-first-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background: inherit;
}

thead .sticky-first-col {
  z-index: 6;
}

tbody .sticky-first-col {
  background: #fff;
}

.formula-cell {
  background: #f8fbff;
}

.editable-cell {
  background: #fffef6;
}

.change-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5fb;
  color: #274b6d;
  border: 1px solid var(--line);
  font-weight: 600;
}

.change-tag.is-dirty {
  background: #fff7e8;
  color: #7a4a00;
  border-color: #e8c37a;
}

thead tr:nth-child(1) th,
thead tr:nth-child(2) th,
thead tr:nth-child(3) th {
  height: auto;
}

td[contenteditable="true"] {
  background: #fff;
}

tbody tr:focus-within td {
  background: #dff7df;
}

tbody tr:focus-within .sticky-first-col {
  background: #dff7df;
}

#rawDataTable th,
#rawDataTable td {
  text-align: center;
  vertical-align: middle;
}

#rawDataTable td:focus {
  outline: 2px solid #3a80c4;
  outline-offset: -2px;
}

#op72Table {
  min-width: 3400px;
  table-layout: fixed;
}

#op72Table thead th {
  position: static;
}

#op72Table th,
#op72Table td {
  border: 1px solid #222;
  padding: 3px 4px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.1;
}

#op72Table .sticky-first-col {
  position: sticky;
  left: 0;
  z-index: 5;
}

#op72Table .op72-main-head {
  background: #e8edd9;
  font-weight: 700;
}

#op72Table .op72-sub-head {
  background: #d9d9ea;
  font-weight: 600;
}

#op72Table .op72-date-head {
  min-width: 110px;
}

#op72Table .op72-date-cell {
  background: #ffffff;
  text-align: center;
  font-weight: 700;
}

.op72-heading-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.op72-heading-row h2 {
  margin: 0;
  flex: 0 0 auto;
}

#op72Toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow: visible;
  margin: 0;
  flex: 1 0 auto;
}

#op72Toolbar .op72-month-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

#op72Toolbar .op72-group-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

#op72GroupSelect {
  border: 1px solid #8ea7bf;
  border-radius: 7px;
  padding: 4px 6px;
  min-height: 30px;
  min-width: 160px;
  background: #f8fcff;
  color: var(--text-main);
}

#op72MonthPicker {
  border: 1px solid #8ea7bf;
  border-radius: 7px;
  padding: 4px 6px;
  min-height: 30px;
  background: #f8fcff;
  color: var(--text-main);
}

#op72Toolbar .op72-page-size-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

#op72PageSize {
  border: 1px solid #8ea7bf;
  border-radius: 7px;
  padding: 4px 6px;
  min-height: 30px;
  background: #f8fcff;
  color: var(--text-main);
}

.op72-print-header {
  display: none;
  border: 1px solid #7ea6cd;
  background: #eef5fb;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 10px;
}

.op72-print-header-top {
  text-align: center;
  margin-bottom: 4px;
}

.op72-print-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0a233b;
  text-transform: uppercase;
}

.op72-print-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #183a5c;
}

#op72SaveState {
  margin: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

#op72Table .op72-date-blue {
  background: #acdced;
}

#op72Table .op72-date-orange {
  background: #ffca8a;
}

#op72Table .op72-edit-cell {
  background: #ffffff;
}

#op72Table .op72-summary-gap {
  background: #ffffff;
  height: 10px;
}

#op72Table .op72-summary-title {
  background: #fff100;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 700;
  letter-spacing: 0.8px;
  min-width: 34px;
}

#op72Table .op72-summary-head {
  background: #e8edd9;
  font-weight: 700;
}

#op72Table .op72-summary-label {
  background: #d9d9ea;
  font-weight: 600;
}

#op72Table .op72-summary-value {
  background: #ffffff;
}

#op72Table .op72-summary-tail {
  background: #d9d9ea;
  height: 20px;
}

#op72Table .op72-summary-tail-value {
  background: #ffffff;
}

#op72Table td[contenteditable="true"]:focus {
  outline: 2px solid #2f7abf;
  outline-offset: -2px;
  background: #e8f4ff;
}

.genl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.genl-toolbar h2 {
  margin: 0;
}

.genl-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.genl-inline-field select,
.genl-inline-field input {
  min-height: 32px;
  min-width: 150px;
}

.genl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.genl-print-header {
  grid-column: 1 / 2;
  width: 100%;
  border: 1px solid var(--line, #dfeaf2);
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border-radius: 8px;
  padding: 5px 10px 6px;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(19, 58, 92, 0.04);
}

.genl-print-header-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.genl-print-title-center {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #183a5c;
  text-transform: uppercase;
}

.genl-print-title-right {
  font-size: 0.84rem;
  font-weight: 700;
  color: #183a5c;
  white-space: nowrap;
}

.genl-print-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: start;
}

.genl-print-left,
.genl-print-right {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  color: #1a3148;
}

.genl-print-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 0;
  line-height: 1.35;
}

.genl-print-row-right {
  justify-content: flex-end;
  text-align: right;
}

.genl-print-label,
.genl-print-label-right {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.9rem;
}

.genl-print-value,
.genl-print-value-right {
  font-weight: 700;
  color: #0f2638;
  font-size: 0.9rem;
}

#genlHeaderEmployee,
#genlHeaderDesignation,
#genlHeaderStation,
#genlPrintMonth {
  font-weight: 700;
  font-size: 0.94rem;
}

#genlHeaderEmployee {
  font-size: 1rem;
  font-weight: 800;
}

#genlPrintMonth {
  font-weight: 800;
  font-size: 0.96rem;
}

.genl-print-label-right {
  display: inline-block;
}

.genl-sheet-wrap {
  grid-column: 1 / 2;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#genlTable {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  margin-left: 0;
  border-collapse: collapse;
}

#genlTable th,
#genlTable td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  padding: 4px 6px;
  font-size: 0.76rem;
  height: 24px;
}

#genlTable td.genl-text {
  text-align: left;
  white-space: normal;
}

#genlTable .genl-summary-row td {
  background: #f9fbff;
  font-weight: 700;
}

#genlTable .genl-warning-rest {
  background: #fff4d6;
  color: #7a4b00;
  font-weight: 700;
}

.genl-missing-panel {
  grid-column: 2 / 3;
  min-height: 140px;
  padding: 8px;
  align-self: start;
  margin-top: 0;
}

.genl-missing-panel h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.genl-missing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
  max-height: 36vh;
  overflow: auto;
  font-weight: 600;
  color: #183a5c;
  font-size: 0.78rem;
}

.genl-missing-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px;
  background: #f6fbff;
}

.genl-summary-row td {
  border-top: 1px solid var(--line, #dfeaf2);
  border-bottom: 1px solid var(--line, #dfeaf2);
}

.genl-summary-formula-cell {
  background: #f8fbff;
  padding: 8px 10px;
  vertical-align: middle;
}

.genl-summary-formula-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  text-align: center;
  color: #183a5c;
  font-weight: 700;
}

.genl-summary-formula-num,
.genl-summary-formula-den {
  line-height: 1.25;
  white-space: normal;
}

.genl-summary-formula-bar {
  width: 100%;
  max-width: 420px;
  height: 1px;
  background: #314b63;
  margin: 4px 0;
}

.genl-summary-right-cell {
  background: #f8fbff;
  padding: 6px 10px;
}

.genl-summary-stack {
  display: grid;
  gap: 6px;
}

.genl-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}

.genl-summary-label {
  white-space: normal;
  text-align: left;
  font-weight: 700;
  color: #183a5c;
}

.genl-summary-value {
  min-width: 56px;
  font-weight: 700;
  text-align: center;
  color: #183a5c;
}

body.genl-print-a4 {
  --genl-page-size: A4;
  --sheet-page-size: A4;
  --sheet-page-orientation: portrait;
}

body.genl-print-a3 {
  --genl-page-size: A3;
  --sheet-page-size: A3;
  --sheet-page-orientation: portrait;
}

body.genl-print-legal {
  --genl-page-size: Legal;
  --sheet-page-size: Legal;
  --sheet-page-orientation: portrait;
}

body.op72-print-a4 {
  --sheet-page-size: A4;
  --sheet-page-orientation: landscape;
}

body.op72-print-a3 {
  --sheet-page-size: A3;
  --sheet-page-orientation: landscape;
}

body.op72-print-legal {
  --sheet-page-size: Legal;
  --sheet-page-orientation: landscape;
}

body.genl-print-legal .simple-page {
  width: min(98vw, 1600px);
}

body.genl-print-legal #genlTable {
  min-width: 0;
}

td[contenteditable="true"]:focus {
  outline: 2px solid #3a80c4;
  outline-offset: -2px;
}

.simple-page {
  width: calc(100vw - 10px);
  max-width: none;
  margin: 0 auto 24px;
  padding: 0 0 0 0;
}

.simple-page .panel {
  padding: 8px 10px;
}

.home-form-page {
  width: min(100vw - 20px, 100%);
  max-width: none;
  height: calc(100vh - 170px);
  overflow: auto;
  padding-right: 4px;
}

.home-form-page .panel {
  padding: 10px;
}

.home-form-page .panel h2 {
  margin-bottom: 6px;
}

.simple-page .panel {
  min-height: 320px;
}

.simple-page .sheet-wrap {
  max-height: calc(100vh - 240px);
  overflow: auto;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .site-banner {
    height: 100px;
    max-height: 100px;
    margin-bottom: 6px;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-pair {
    grid-template-columns: 1fr;
  }

  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .declaration-row {
    grid-template-columns: 1fr;
  }

  .simple-page {
    width: min(100vw - 24px, 100%);
  }

  .home-form-page {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .login-toggle-btn {
    top: 6px;
    left: 6px;
    padding: 5px 9px;
  }

  .genl-layout {
    grid-template-columns: 1fr;
  }

  .genl-print-body {
    grid-template-columns: 1fr;
  }

  .genl-print-row-right {
    justify-content: flex-start;
    text-align: left;
  }

  .genl-inline-field {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .field-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   OP-72 MULTI-ENTRY RESOLUTION MODAL (VBA Parity)
   ═══════════════════════════════════════════════════════════════════════════════ */
.op72-multi-dialog {
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 22px;
  padding: 0;
  width: min(900px, 96vw);
  max-height: 90vh;
  color: #f8fbff;
  background: #0f172a;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 1000;
  overflow: hidden;
}

.op72-multi-dialog::backdrop {
  background: rgba(11, 31, 51, 0.85);
}

.op72-multi-dialog-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  padding: 22px 26px;
  box-sizing: border-box;
}

.op72-multi-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.op72-multi-dialog-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #f8fafc;
}

.op72-multi-count-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1e1e;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.op72-multi-meta-banner {
  display: flex;
  gap: 20px;
  background: rgba(30, 41, 59, 0.7);
  padding: 9px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.op72-multi-meta-item {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 0.92rem;
}

.op72-multi-meta-item .meta-label {
  color: #94a3b8;
}

.op72-multi-meta-item .meta-val {
  color: #38bdf8;
  font-weight: 700;
}

.op72-multi-instruction {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 0 10px 0;
  line-height: 1.45;
}

/* ── Responsive Liquid Multi-Entry Cards (No Horizontal Scrolling) ── */
.op72-multi-cards-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 250px;
  margin-bottom: 14px;
  padding-right: 4px;
}

.op72-multi-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.op72-multi-record-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1.5px solid rgba(71, 85, 105, 0.45);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  user-select: none;
}

.op72-multi-record-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.6);
}

.op72-multi-record-card.is-selected {
  background: rgba(2, 132, 199, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}

.multi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-card-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.multi-card-radio-label input[type="radio"] {
  accent-color: #38bdf8;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.multi-card-badge {
  font-weight: 800;
  font-size: 0.84rem;
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.multi-card-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.multi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.multi-pill .p-lbl {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.multi-pill.pill-duty {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.multi-pill.pill-ot {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.multi-pill.pill-mileage {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.multi-card-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.journey-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.journey-chip .chip-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.journey-chip.chip-outward .chip-tag {
  background: #0284c7;
  color: #ffffff;
}

.journey-chip.chip-inward .chip-tag {
  background: #7c3aed;
  color: #ffffff;
}

.journey-chip.chip-remarks .chip-tag {
  background: #d97706;
  color: #ffffff;
}

.journey-chip .chip-info {
  color: #e2e8f0;
  font-weight: 500;
  word-break: break-word;
}

.no-journey-info {
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
}

/* Choices Area */
.op72-multi-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.op72-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.op72-choice-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
}

.op72-choice-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #38bdf8;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.op72-choice-card .choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.op72-choice-card .choice-text strong {
  font-size: 0.88rem;
  color: #f8fafc;
}

.op72-choice-card .choice-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.op72-manual-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.op72-manual-inputs-grid .manual-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.op72-manual-inputs-grid label {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.op72-manual-inputs-grid input {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(71, 85, 105, 0.6);
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  font-size: 0.85rem;
}

.op72-manual-inputs-grid input:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.op72-multi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: auto;
  gap: 12px;
}

.op72-multi-footer button {
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
}

.op72-multi-dialog button.btn-outline {
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.op72-multi-dialog button.btn-outline:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

@media print {
  @page {
    size: var(--sheet-page-size, var(--genl-page-size, A3)) var(--sheet-page-orientation, portrait);
    margin: 6mm 6mm 6mm 6mm;
  }

  .bg-shape,
  .site-header,
  .nav-bar,
  .genl-toolbar,
  #genlStatus,
  .genl-missing-panel,
  .op72-heading-row,
  #op72Toolbar,
  #op72SaveState,
  #op72Msg,
  .op72-multi-dialog {
    display: none !important;
  }

  #genlPrintArea {
    display: block;
    width: calc(100% - 14mm);
    max-width: calc(100% - 14mm);
    margin: 0 0 0 14mm;
  }

  #op72PrintArea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .genl-print-header,
  .op72-print-header {
    display: block;
    margin-bottom: 10px;
    width: 100%;
  }

  .simple-page,
  .panel,
  .sheet-wrap,
  .genl-sheet-wrap,
  .op72-sheet-wrap {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }

  #genlTable {
    min-width: 0;
    width: 100%;
    font-size: 8pt;
    margin-left: 0;
    table-layout: fixed;
  }

  #genlTable th,
  #genlTable td {
    padding: 2px 3px;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    height: auto;
  }

  #genlTable td.genl-text {
    text-align: center !important;
  }

  /* Column widths for print — prevent header text from cutting */
  #genlTable th:nth-child(1),  #genlTable td:nth-child(1)  { width: 7%;  }  /* Date */
  #genlTable th:nth-child(2),  #genlTable td:nth-child(2)  { width: 9%;  }  /* Outward Duty */
  #genlTable th:nth-child(3),  #genlTable td:nth-child(3)  { width: 10%; }  /* Out Commenced */
  #genlTable th:nth-child(4),  #genlTable td:nth-child(4)  { width: 6%;  }  /* Out Terminated */
  #genlTable th:nth-child(5),  #genlTable td:nth-child(5)  { width: 6%;  }  /* Worked Hours */
  #genlTable th:nth-child(6),  #genlTable td:nth-child(6)  { width: 7%;  }  /* Outstation Rest */
  #genlTable th:nth-child(7),  #genlTable td:nth-child(7)  { width: 9%;  }  /* Inward Duty */
  #genlTable th:nth-child(8),  #genlTable td:nth-child(8)  { width: 6%;  }  /* In Commenced */
  #genlTable th:nth-child(9),  #genlTable td:nth-child(9)  { width: 6%;  }  /* In Terminated */
  #genlTable th:nth-child(10), #genlTable td:nth-child(10) { width: 6%;  }  /* Worked Hours */
  #genlTable th:nth-child(11), #genlTable td:nth-child(11) { width: 6%;  }  /* Home Rest */
  #genlTable th:nth-child(12), #genlTable td:nth-child(12) { width: 12%; }  /* Progressive Total */
  #genlTable th:nth-child(13), #genlTable td:nth-child(13) { width: 10%; }  /* Remarks */

  /* ── Print header font & layout fixes ── */
  .genl-print-header {
    border: 1px solid #aaa;
    border-radius: 0;
    padding: 3px 8px 4px;
    margin-bottom: 5px;
    background: #eef4fb;
    box-shadow: none;
  }

  /* ── Top row: title + Genl.164 ── */
  .genl-print-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid #bbb;
  }

  .genl-print-title-center {
    font-size: 12pt;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
    flex: 1;
    text-align: center;
  }

  .genl-print-title-right {
    font-size: 11pt;
    font-weight: 800;
    color: #000;
    white-space: nowrap;
    margin-left: 12px;
  }

  /* ── Body: left info + right month ── */
  .genl-print-body {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 10px;
    align-items: start;
  }

  .genl-print-left,
  .genl-print-right {
    font-size: 9.5pt;
    color: #000;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  .genl-print-row {
    min-height: 0;
    gap: 4px;
    line-height: 1.1;
    padding: 0;
    margin: 0;
  }

  .genl-print-label,
  .genl-print-label-right {
    font-size: 9.5pt;
    font-weight: 600;
    color: #000;
  }

  .genl-print-value,
  .genl-print-value-right {
    font-size: 10pt;
    font-weight: 800;
    color: #000;
  }

  #genlHeaderEmployee {
    font-size: 10.5pt;
    font-weight: 800;
  }

  #genlHeaderDesignation,
  #genlHeaderStation {
    font-size: 10pt;
    font-weight: 700;
  }

  #genlPrintMonth {
    font-size: 10.5pt;
    font-weight: 800;
  }

  /* ── Table: better readability ── */
  #genlTable {
    font-size: 9.5pt;
    table-layout: fixed;
    width: 100%;
  }

  /* Column widths — text columns wider, numeric columns compact */
  #genlTable th:nth-child(1),  #genlTable td:nth-child(1)  { width: 7%;   }  /* Date */
  #genlTable th:nth-child(2),  #genlTable td:nth-child(2)  { width: 13%;  }  /* Outward Duty */
  #genlTable th:nth-child(3),  #genlTable td:nth-child(3)  { width: 15%;  }  /* Out Commenced */
  #genlTable th:nth-child(4),  #genlTable td:nth-child(4)  { width: 6%;   }  /* Out Terminated */
  #genlTable th:nth-child(5),  #genlTable td:nth-child(5)  { width: 6%;   }  /* Worked Hours (out) */
  #genlTable th:nth-child(6),  #genlTable td:nth-child(6)  { width: 6%;   }  /* Outstation Rest */
  #genlTable th:nth-child(7),  #genlTable td:nth-child(7)  { width: 11%;  }  /* Inward Duty */
  #genlTable th:nth-child(8),  #genlTable td:nth-child(8)  { width: 6%;   }  /* In Commenced */
  #genlTable th:nth-child(9),  #genlTable td:nth-child(9)  { width: 6%;   }  /* In Terminated */
  #genlTable th:nth-child(10), #genlTable td:nth-child(10) { width: 6%;   }  /* Worked Hours (in) */
  #genlTable th:nth-child(11), #genlTable td:nth-child(11) { width: 6%;   }  /* Home Rest */
  #genlTable th:nth-child(12), #genlTable td:nth-child(12) { width: 18%;  }  /* Progressive Total */
  #genlTable th:nth-child(13), #genlTable td:nth-child(13) { width: 8%;   }  /* Remarks */

  #genlTable th {
    font-size: 8pt;
    font-weight: 700;
    padding: 4px 5px;
    height: 64px;
    min-height: 64px;
    background: #d6e7f8;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    vertical-align: middle;
    line-height: 1.25;
  }

  #genlTable td {
    font-size: 9.5pt;
    text-align: center;
    vertical-align: middle;
    padding: 3px 5px;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
  }

  /* Duty / Remarks text columns — center aligned */
  #genlTable td.genl-text {
    text-align: center;
  }

  /* Summary rows larger */
  .genl-summary-label {
    font-size: 8.5pt;
    font-weight: 700;
  }

  .genl-summary-value {
    font-size: 9pt;
    font-weight: 800;
  }

  .genl-summary-formula-num,
  .genl-summary-formula-den {
    font-size: 8pt;
    font-weight: 700;
  }

  /* ── OP-72 Print Styles ── */
  #op72Table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    zoom: 1 !important;
    font-size: 7pt !important;
  }

  #op72Table th,
  #op72Table td {
    padding: 1.5px 2px !important;
    font-size: 7pt !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* ── PWA Animations ── */
@keyframes pwaSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN CHAT INBOX & NOTIFICATION BADGE STYLES
   ══════════════════════════════════════════════════════════════════ */
.chat-nav-badge {
  display: inline-block;
  background: #cf222e;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(207, 34, 46, 0.4);
}

.chat-inbox-page {
  width: min(1320px, 98vw) !important;
  max-width: 1320px !important;
  margin: 0 auto 30px !important;
  padding: 0 !important;
}

.chat-inbox-card {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 14px;
}

.chat-inbox-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(88vh - 80px);
  min-height: 600px;
  max-height: 880px;
  background: #ffffff;
  overflow: hidden;
}

/* Left Sidebar: Threads */
.chat-threads-sidebar {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.chat-sidebar-header {
  padding: 14px 16px 10px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-sidebar-title-row h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-unread-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.chat-search-input-wrap {
  position: relative;
}

.chat-search-input-wrap input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  font-size: 0.88rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.chat-search-input-wrap input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.chat-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #94a3b8;
  pointer-events: none;
}

.chat-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.chat-tab-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.chat-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.chat-threads-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chat-thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.15s ease;
  position: relative;
}

.chat-thread-item:hover {
  background: #f8fafc;
}

.chat-thread-item.active {
  background: #f0f9ff !important;
  border-left: 4px solid #0284c7;
}

.chat-thread-item.has-unread {
  background: #fffbeb;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.chat-avatar.avatar-driver {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.chat-avatar.avatar-asst {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.chat-thread-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-thread-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-time {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
}

.chat-thread-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #64748b;
}

.chat-sap-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  font-family: monospace;
}

.chat-thread-snippet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.chat-thread-snippet {
  font-size: 0.8rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chat-thread-unread-badge {
  background: #cf222e;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Right Panel: Chat Thread */
.chat-main-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

.chat-empty-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

.chat-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  opacity: 0.75;
}

.chat-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.chat-empty-subtitle {
  font-size: 0.88rem;
  max-width: 360px;
  line-height: 1.5;
  margin: 0;
}

/* Active Conversation View */
.chat-active-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-thread-topbar {
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.chat-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-topbar-back-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-topbar-details h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.chat-topbar-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.chat-topbar-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.chat-topbar-pill.pill-station {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.chat-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Message Stream */
.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-date-chip {
  align-self: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 14px;
  letter-spacing: 0.02em;
  margin: 6px 0;
}

.chat-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 76%;
}

.chat-bubble-row.emp-row {
  align-self: flex-start;
}

.chat-bubble-row.admin-row {
  align-self: flex-end;
}

.chat-bubble-box {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-bubble-box.emp-box {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
}

.chat-bubble-box.admin-box {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble-sender {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.chat-bubble-sender.emp-sender {
  color: #0284c7;
}

.chat-bubble-sender.admin-sender {
  color: #e0f2fe;
}

.chat-bubble-text {
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.chat-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.69rem;
  opacity: 0.8;
}

/* Quick Replies */
.chat-quick-bar {
  padding: 8px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.chat-quick-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}

.chat-quick-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chat-quick-chip:hover {
  background: #e2e8f0;
  border-color: #0284c7;
  color: #0284c7;
}

/* Message Input Area */
.chat-composer-bar {
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-composer-input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  resize: none;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.chat-composer-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.chat-composer-btn-send {
  height: 42px;
  padding: 0 18px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.chat-composer-btn-send:hover {
  background: #0369a1;
}

/* Mobile Responsiveness */
@media (max-width: 860px) {
  .chat-inbox-layout {
    grid-template-columns: 1fr;
    height: 82vh;
  }

  .chat-threads-sidebar.mobile-hidden {
    display: none !important;
  }

  .chat-main-panel.mobile-hidden {
    display: none !important;
  }

  .chat-topbar-back-btn {
    display: inline-flex !important;
  }
}

/* ── Month Accordion & Quick Control Bar (RawData & OP72 Raw Data) ── */
.raw-month-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.month-control-left,
.month-control-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.month-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  margin: 0;
}

.month-jump-select {
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  min-width: 170px;
}

.month-btn-action {
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 7px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.month-btn-action:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.month-total-badge {
  background: #0f2b48;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Month Accordion Container & Cards */
.month-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.month-accordion-block {
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.month-accordion-block:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.month-accordion-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s ease;
}

.month-accordion-header:hover {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.month-accordion-header.is-open {
  background: linear-gradient(180deg, #eaf2fd 0%, #dbeafe 100%);
  border-bottom: 1.5px solid #93c5fd;
}

.month-header-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-chevron {
  font-size: 0.8rem;
  color: #2563eb;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 14px;
  text-align: center;
}

.month-accordion-header.is-open .month-chevron {
  transform: rotate(90deg);
}

.month-title-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2b48;
  letter-spacing: 0.2px;
}

.month-row-badge {
  background: #0f2b48;
  color: #ffffff;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.month-accordion-header.is-open .month-row-badge {
  background: #1d4ed8;
}

.month-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-month-copy {
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-month-copy:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn-month-copy:active {
  transform: scale(0.96);
}

.month-select-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  background: #ffffff;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.month-select-label:hover {
  border-color: #94a3b8;
}

.month-select-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
}

.month-accordion-body {
  display: block;
}

.month-accordion-body.is-collapsed {
  display: none;
}

.month-accordion-body .sheet-wrap {
  margin: 0;
  border: none;
  border-radius: 0;
  max-height: 520px;
  overflow-y: auto;
}

.paste-month-summary-box {
  margin: 10px 0;
  padding: 10px 14px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #1e3a8a;
  line-height: 1.5;
}

.paste-month-summary-box strong {
  display: block;
  margin-bottom: 4px;
}

.paste-month-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.paste-month-chip {
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .raw-month-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .month-control-left,
  .month-control-right {
    justify-content: space-between;
  }
  .month-accordion-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .month-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GUEST MODE (VIEW-ONLY) STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
.guest-mode-banner {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1e3a8a 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-bottom: 3px solid #f59e0b;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  z-index: 999;
  position: relative;
}

.guest-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

.guest-banner-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.guest-banner-msg strong {
  color: #fef08a;
  letter-spacing: 0.5px;
}

.guest-mode-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: center;
  max-width: 90vw;
}

.guest-mode-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

[data-guest-disabled="1"] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

[data-guest-readonly="1"] {
  background-color: #f8fafc !important;
  cursor: default !important;
}

/* ── OP-72 Empty Dates Checker Dialog & Button ── */
.op72-empty-dates-btn {
  background: linear-gradient(135deg, #e0631d, #f3b33f) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 3px 8px rgba(224, 99, 29, 0.3) !important;
  transition: all 0.18s ease !important;
}

.op72-empty-dates-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(224, 99, 29, 0.4) !important;
}

.op72-empty-dates-dialog {
  position: fixed;
  top: 72px;
  right: 18px;
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  width: 420px;
  max-width: calc(100vw - 36px);
  height: calc(100vh - 90px);
  max-height: 820px;
  border: 2px solid #1e3e62;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: -8px 12px 32px rgba(11, 31, 51, 0.28);
  z-index: 10050;
  overflow: hidden;
  box-sizing: border-box;
}

.op72-empty-dates-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: op72SlideInRight 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes op72SlideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.op72-empty-dates-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #f8fafc;
}

.op72-empty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0b1f33, #153a5f);
  color: #ffffff;
  border-bottom: 2px solid #e0631d;
  flex-shrink: 0;
}

.op72-empty-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.op72-empty-meta {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.op72-empty-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.op72-empty-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
}

.op72-empty-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.op72-empty-refresh-btn {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e3e62;
  cursor: pointer;
  transition: all 0.15s ease;
}

.op72-empty-refresh-btn:hover {
  background: #1e3e62;
  color: #ffffff;
  border-color: #1e3e62;
}

.op72-empty-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emp-empty-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 12px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.emp-empty-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.09);
}

.emp-empty-card.is-complete {
  border-left: 4px solid #10b981;
}

.emp-empty-card.is-partial {
  border-left: 4px solid #f59e0b;
}

.emp-empty-card.is-all-empty {
  border-left: 4px solid #ef4444;
}

.emp-empty-card.is-vacant {
  border-left: 4px solid #94a3b8;
  opacity: 0.7;
}

.emp-empty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.emp-empty-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-empty-slot {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.emp-empty-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.badge-complete {
  background: #dcfce7;
  color: #166534;
}

.badge-partial {
  background: #fef3c7;
  color: #92400e;
}

.badge-all-empty {
  background: #fee2e2;
  color: #991b1b;
}

.badge-vacant {
  background: #f1f5f9;
  color: #475569;
}

.emp-empty-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  max-height: 120px;
  overflow-y: auto;
  padding: 4px 2px;
}

.date-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.date-chip:hover {
  background: #e0631d;
  color: #ffffff;
  border-color: #e0631d;
  transform: scale(1.08);
}

.op72-empty-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  flex-shrink: 0;
}

/* Flash highlight on clicked cell */
@keyframes op72FlashHighlight {
  0% { background-color: #fef08a; transform: scale(1.05); }
  50% { background-color: #fde047; }
  100% { background-color: inherit; transform: scale(1); }
}

.op72-cell-highlight {
  animation: op72FlashHighlight 1.6s ease-out !important;
}

/* ── Biometric Authentication (WebAuthn) Styles ── */
.biometric-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.biometric-login-divider::before,
.biometric-login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #cbd5e1;
}

.biometric-login-divider span {
  padding: 0 10px;
}

.btn-biometric {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0b1f33, #153a5f);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}

.btn-biometric:hover {
  background: linear-gradient(135deg, #153a5f, #1d4ed8);
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.26);
}

.btn-biometric .biometric-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* ── OP-72 Quick Data Entry Liquid Dialog ────────────────────────── */
.op72-quick-entry-dialog {
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 0;
  width: min(840px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  animation: rise-in 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.op72-quick-entry-dialog::backdrop {
  background: rgba(11, 31, 51, 0.85);
}

.op72-quick-entry-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.op72-quick-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(30, 62, 98, 0.6), rgba(15, 23, 42, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.op72-quick-title {
  font-size: 1.1rem;
  color: #f8fafc;
}

.op72-quick-meta {
  display: block;
  font-size: 0.82rem;
  color: #38bdf8;
  margin-top: 2px;
}

.op72-quick-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.op72-quick-close:hover {
  color: #f8fafc;
}

.op72-quick-form {
  padding: 16px 20px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.op72-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.op72-quick-form label {
  font-size: 0.82rem;
  color: #cbd5e1;
  display: grid;
  gap: 4px;
}

.op72-quick-form input,
.op72-quick-form select,
.op72-quick-form textarea {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.88rem;
}

.op72-quick-form input:focus,
.op72-quick-form select:focus,
.op72-quick-form textarea:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.op72-quick-journeys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.op72-quick-journey-card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
}

.op72-quick-journey-card.outward-card {
  border-left: 4px solid #38bdf8;
}

.op72-quick-journey-card.inward-card {
  border-left: 4px solid #4ade80;
}

.journey-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #94a3b8;
}

.journey-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quick-remarks-label {
  grid-column: 1 / -1;
}

.op72-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.op72-quick-notice {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.op72-quick-notice.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.op72-quick-notice.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.op72-cell-success-highlight {
  animation: flash-green 2.5s ease-out;
  background-color: #dcfce7 !important;
  color: #166534 !important;
  outline: 2px solid #22c55e !important;
}

@keyframes flash-green {
  0% { background-color: #86efac; }
  100% { background-color: #dcfce7; }
}

/* ── OP-72 Quick Entry Autocomplete & Dropdowns ───────────────────── */
.op72-quick-form .autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.op72-quick-form .autocomplete-wrapper input {
  width: 100%;
  padding-right: 28px;
  box-sizing: border-box;
}

.op72-quick-form .dropdown-trigger-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: 1;
}

.op72-quick-form .dropdown-trigger-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.employee-dropdown-list.op72-employee-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.6);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.25);
  color: #f8fafc;
  z-index: 10500;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
  list-style: none;
  margin: 0;
}

.employee-dropdown-list.op72-employee-dropdown .employee-dropdown-item {
  padding: 8px 12px;
  font-size: 0.86rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.employee-dropdown-list.op72-employee-dropdown .employee-dropdown-item:last-child {
  border-bottom: none;
}

.employee-dropdown-list.op72-employee-dropdown .employee-dropdown-item:hover,
.employee-dropdown-list.op72-employee-dropdown .employee-dropdown-item.is-selected {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.45), rgba(56, 189, 248, 0.3));
  color: #38bdf8;
  font-weight: 600;
}

.employee-dropdown-list.op72-employee-dropdown .employee-dropdown-empty {
  padding: 10px 12px;
  font-size: 0.84rem;
  color: #94a3b8;
  font-style: italic;
}

/* ============================================================
   ADMIN THEMES, ROW COLOR NOMINATIONS & MONTH FILTER
   ============================================================ */

/* Data Entry Title + Admin Badge Container */
.data-entry-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Floating Liquid Admin Identity Pill */
.admin-identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  user-select: none;
}

.admin-identity-pill .admin-pill-badge {
  font-size: 1.05rem;
  line-height: 1;
}

.admin-identity-pill .admin-pill-name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.admin-identity-pill .admin-pill-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 800;
}

.admin-identity-pill .admin-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

/* Theme 1: Main Admin - Vicky Ch (Royal Sapphire Blue) */
.admin-pill-vicky-ch {
  background: rgba(239, 246, 255, 0.94);
  border-color: rgba(37, 99, 235, 0.45);
  color: #1e3a8a;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}
.admin-pill-vicky-ch .admin-pill-name { color: #1e40af; }
.admin-pill-vicky-ch .admin-pill-role {
  background: #dbeafe;
  color: #1d4ed8;
}
.admin-pill-vicky-ch .admin-pill-dot {
  background: #2563eb;
  color: #2563eb;
}

html[data-admin-theme="vicky-ch"] body,
body[data-admin-theme="vicky-ch"] {
  --admin-accent-gradient: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #3b82f6);
  --admin-accent-glow: rgba(37, 99, 235, 0.28);
}
body[data-admin-theme="vicky-ch"] .hero {
  border-bottom: 3px solid #2563eb;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.18);
}
body[data-admin-theme="vicky-ch"] .btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #3b82f6) !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35) !important;
  border-color: rgba(147, 197, 253, 0.5) !important;
}
body[data-admin-theme="vicky-ch"] .bg-shape-one {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
}

/* Theme 2: Restricted Admin - Vicky Raja (Emerald Green) */
.admin-pill-vicky-raja {
  background: rgba(236, 253, 245, 0.94);
  border-color: rgba(16, 185, 129, 0.45);
  color: #064e3b;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16);
}
.admin-pill-vicky-raja .admin-pill-name { color: #047857; }
.admin-pill-vicky-raja .admin-pill-role {
  background: #d1fae5;
  color: #065f46;
}
.admin-pill-vicky-raja .admin-pill-dot {
  background: #10b981;
  color: #10b981;
}

html[data-admin-theme="vicky-raja"] body,
body[data-admin-theme="vicky-raja"] {
  --admin-accent-gradient: linear-gradient(135deg, #047857, #059669 50%, #10b981);
  --admin-accent-glow: rgba(16, 185, 129, 0.28);
}
body[data-admin-theme="vicky-raja"] .hero {
  border-bottom: 3px solid #10b981;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.18);
}
body[data-admin-theme="vicky-raja"] .btn-primary {
  background: linear-gradient(135deg, #047857, #059669 50%, #10b981) !important;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35) !important;
  border-color: rgba(110, 231, 183, 0.5) !important;
}
body[data-admin-theme="vicky-raja"] .bg-shape-one {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
}

/* Theme 3: Sub Admin / Clerk 1 - EHTISHAM (Warm Amber / Gold) */
.admin-pill-ehtisham {
  background: rgba(254, 243, 199, 0.94);
  border-color: rgba(245, 158, 11, 0.5);
  color: #78350f;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}
.admin-pill-ehtisham .admin-pill-name { color: #b45309; }
.admin-pill-ehtisham .admin-pill-role {
  background: #fde68a;
  color: #92400e;
}
.admin-pill-ehtisham .admin-pill-dot {
  background: #f59e0b;
  color: #f59e0b;
}

html[data-admin-theme="ehtisham"] body,
body[data-admin-theme="ehtisham"] {
  --admin-accent-gradient: linear-gradient(135deg, #b45309, #d97706 50%, #f59e0b);
  --admin-accent-glow: rgba(245, 158, 11, 0.28);
}
body[data-admin-theme="ehtisham"] .hero {
  border-bottom: 3px solid #f59e0b;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.18);
}
body[data-admin-theme="ehtisham"] .btn-primary {
  background: linear-gradient(135deg, #b45309, #d97706 50%, #f59e0b) !important;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35) !important;
  border-color: rgba(252, 211, 77, 0.5) !important;
}
body[data-admin-theme="ehtisham"] .bg-shape-one {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
}

/* Theme 4: Sub Admin / Clerk 2 - ARSALAN SHAH (Purple Violet) */
.admin-pill-arsalan-shah {
  background: rgba(250, 245, 255, 0.94);
  border-color: rgba(168, 85, 247, 0.5);
  color: #581c87;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.18);
}
.admin-pill-arsalan-shah .admin-pill-name { color: #7e22ce; }
.admin-pill-arsalan-shah .admin-pill-role {
  background: #f3e8ff;
  color: #6b21a8;
}
.admin-pill-arsalan-shah .admin-pill-dot {
  background: #a855f7;
  color: #a855f7;
}

html[data-admin-theme="arsalan-shah"] body,
body[data-admin-theme="arsalan-shah"] {
  --admin-accent-gradient: linear-gradient(135deg, #6b21a8, #7c3aed 50%, #9333ea);
  --admin-accent-glow: rgba(168, 85, 247, 0.28);
}
body[data-admin-theme="arsalan-shah"] .hero {
  border-bottom: 3px solid #a855f7;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.18);
}
body[data-admin-theme="arsalan-shah"] .btn-primary {
  background: linear-gradient(135deg, #6b21a8, #7c3aed 50%, #9333ea) !important;
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.35) !important;
  border-color: rgba(216, 180, 254, 0.5) !important;
}
body[data-admin-theme="arsalan-shah"] .bg-shape-one {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
}

/* ============================================================
   ROW BACKGROUND NOMINATION IN RAWDATA & OP72 RAWDATA
   ============================================================ */

/* Base transition for nominated rows */
tbody tr.admin-row {
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

/* Admin 1: Vicky Ch (Royal Blue) */
tbody tr.admin-row-vicky-ch {
  background-color: #eff6ff !important;
  box-shadow: inset 4px 0 0 #2563eb !important;
}
tbody tr.admin-row-vicky-ch:hover {
  background-color: #dbeafe !important;
  box-shadow: inset 5px 0 0 #1d4ed8 !important;
}

/* Admin 2: Vicky Raja (Emerald Green) */
tbody tr.admin-row-vicky-raja {
  background-color: #ecfdf5 !important;
  box-shadow: inset 4px 0 0 #10b981 !important;
}
tbody tr.admin-row-vicky-raja:hover {
  background-color: #d1fae5 !important;
  box-shadow: inset 5px 0 0 #059669 !important;
}

/* Admin 3: EHTISHAM (Warm Amber / Gold) */
tbody tr.admin-row-ehtisham {
  background-color: #fffbeb !important;
  box-shadow: inset 4px 0 0 #f59e0b !important;
}
tbody tr.admin-row-ehtisham:hover {
  background-color: #fef3c7 !important;
  box-shadow: inset 5px 0 0 #d97706 !important;
}

/* Admin 4: ARSALAN SHAH (Purple Violet) */
tbody tr.admin-row-arsalan-shah {
  background-color: #faf5ff !important;
  box-shadow: inset 4px 0 0 #a855f7 !important;
}
tbody tr.admin-row-arsalan-shah:hover {
  background-color: #f3e8ff !important;
  box-shadow: inset 5px 0 0 #7e22ce !important;
}

/* ============================================================
   MONTH ADMIN / COLOR SELECT FILTER DROPDOWN
   ============================================================ */
.month-admin-filter {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 220px;
}

.month-admin-filter:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.month-admin-filter:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.month-admin-filter option {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  padding: 6px 10px;
}

/* ============================================================
   MULTI-PAGE PDF BUNDLE & CLOUD ARCHIVE MODALS
   ============================================================ */
.pdf-modal-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: 720px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 60px);
  border: 1px solid #334155;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
  z-index: 10060;
  overflow: hidden;
  box-sizing: border-box;
}

.pdf-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.pdf-modal-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: pdfModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pdfModalFadeIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pdf-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 60px);
  overflow: hidden;
  background: #f8fafc;
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border-bottom: 2px solid #e0631d;
  flex-shrink: 0;
}

.pdf-modal-title-block h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-modal-title-block p {
  margin: 3px 0 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.pdf-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pdf-modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.05);
}

.pdf-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.pdf-bundle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pdf-bundle-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.pdf-bundle-item:hover {
  border-color: #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.1);
}

.pdf-bundle-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  flex-shrink: 0;
}

.pdf-bundle-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pdf-bundle-info {
  flex: 1;
  min-width: 0;
}

.pdf-bundle-info-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-bundle-info-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.pdf-bundle-remove-btn {
  background: transparent;
  border: 1px solid #fca5a5;
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pdf-bundle-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.pdf-name-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.pdf-name-section label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.pdf-name-input-group {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 0.88rem;
  color: #0f172a;
  overflow: hidden;
}

.pdf-name-input-group:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.pdf-name-prefix, .pdf-name-suffix {
  font-weight: 700;
  color: #0284c7;
  white-space: nowrap;
  user-select: none;
}

.pdf-name-tag-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
  min-width: 80px;
  padding: 3px 6px;
}

.pdf-name-preview {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #64748b;
}

.pdf-name-preview strong {
  color: #0369a1;
}

.pdf-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pdf-archive-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pdf-archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.pdf-archive-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.pdf-archive-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: middle;
}

.pdf-archive-table tr:hover td {
  background: #f8fafc;
}

.pdf-archive-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-btn-sm {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.pdf-btn-sm-view {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}
.pdf-btn-sm-view:hover {
  background: #0284c7;
  color: #ffffff;
}

.pdf-btn-sm-download {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.pdf-btn-sm-download:hover {
  background: #059669;
  color: #ffffff;
}

.pdf-btn-sm-del {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.pdf-btn-sm-del:hover {
  background: #dc2626;
  color: #ffffff;
}

.pdf-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.pdf-empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.pdf-bundle-badge-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0631d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Oracle Distinct Brand Logo ── */
.oracle-header-logo {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: -45px auto 10px auto;
  box-shadow: 0 8px 24px rgba(11, 25, 44, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.95);
  background: #ffffff;
  object-fit: cover;
  position: relative;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oracle-header-logo:hover {
  transform: scale(1.08) rotate(2deg);
}

.oracle-login-logo {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(243, 179, 63, 0.7);
  background: #ffffff;
  object-fit: cover;
}

@media (max-width: 768px) {
  .oracle-header-logo {
    width: 74px;
    height: 74px;
    margin: -37px auto 8px auto;
  }
  .oracle-login-logo {
    width: 68px;
    height: 68px;
  }
}
