/* Talrix — Indian Flag Palette (Saffron, White, India Green) — No Ashok Chakra */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Indian Flag Inspired Palette */
  --saffron: #FF7700;
  --saffron-light: #FF9433;
  --saffron-dark: #E65C00;
  --saffron-glow: rgba(255, 119, 0, 0.35);

  --india-green: #138808;
  --india-green-light: #16A34A;
  --india-green-dark: #0E6606;
  --india-green-glow: rgba(19, 136, 8, 0.35);

  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --border-light: #E2E8F0;

  /* Theme Accents */
  --primary: var(--saffron);
  --primary-hover: var(--saffron-dark);
  --primary-glow: var(--saffron-glow);

  --accent-green: var(--india-green);
  --accent-rose: #EF4444;

  /* Canvas and Text */
  --bg-outer: #182026;          /* Charcoal frame matching mockup */
  --bg-app: #F4F6F8;            /* Inner dashboard canvas */
  --bg-card: #FFFFFF;           /* Crisp white card surface */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-outer);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Saffron & Green Brand Gradient (Zero Chakra / No Navy Wheel) */
.logo-gradient {
  background: linear-gradient(135deg, #FF7700 0%, #FFA834 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.flag-badge {
  background: linear-gradient(90deg, rgba(255,119,0,0.15) 0%, rgba(255,255,255,0.2) 50%, rgba(19,136,8,0.15) 100%);
  border: 1px solid rgba(255,119,0,0.3);
  color: #FF8800;
}

/* Brand Square Icon (As seen in mockup) */
.brand-icon-square {
  width: 34px;
  height: 34px;
  background: var(--saffron);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--saffron-glow);
}

/* ================= LIGHT-THEMED LANDING PAGE (NO BLACK) ================= */
body.landing-body {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  font-family: var(--font-main);
  min-height: 100vh;
}

/* ================= FULL SCREEN ADMIN & USER LAYOUT ================= */
html {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: var(--bg-app);
}

body.admin-outer-canvas,
.admin-outer-canvas {
  background-color: var(--bg-app) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  body.admin-outer-canvas,
  .admin-outer-canvas {
    padding: 0 !important;
  }
}

.admin-window-frame {
  background: var(--bg-app);
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header inside frame - Fixed top */
.admin-topbar {
  background: #ffffff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  z-index: 30;
}

#impersonationBanner {
  flex-shrink: 0;
  z-index: 40;
}

.admin-search-pill {
  background: #F1F5F9;
  border-radius: 9999px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.admin-search-pill:focus-within {
  background: #ffffff;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.15);
}

.admin-search-pill input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-main);
  width: 100%;
}

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

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
  font-size: 0.85rem;
}

/* Main Grid: Sidebar (Fixed Left) + Scrollable Main Container (Right) */
.admin-body-grid {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.admin-sidebar {
  width: 210px;
  background: transparent;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .admin-body-grid {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    max-height: 70px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px;
    flex-shrink: 0;
  }
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-nav-item:hover {
  color: #0F172A;
}

/* Saffron Pill Active Menu State (Exact as mockup) */
.admin-nav-item.active {
  background: var(--saffron);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--saffron-glow);
}

/* Main White Content Card - ONLY THIS SCROLLS */
.admin-main-container {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 28px 40px 8px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

/* Clean Custom Scrollbar for Main Container & Sidebar */
.admin-main-container::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.admin-main-container::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.admin-main-container::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
.admin-main-container::-webkit-scrollbar-thumb:hover,
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.admin-table-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #EDF2F7;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-pill-input {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mockup Table Styling */
.mockup-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mockup-table th {
  padding: 14px 12px;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #F1F5F9;
}

.mockup-table td {
  padding: 16px 12px;
  font-size: 0.85rem;
  color: #1E293B;
  border-bottom: 1px solid #F8FAFC;
  vertical-align: middle;
}

.mockup-table tr:hover td {
  background: #FAFCFF;
}

/* Action Icon Buttons Matching Mockup (Pills/Circles in Red, Dark, Saffron) */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8rem;
}

.action-circle-btn.btn-red {
  background: #E11D48;
  color: #ffffff;
}
.action-circle-btn.btn-red:hover {
  background: #BE123C;
}

.action-circle-btn.btn-dark {
  background: #1E293B;
  color: #ffffff;
}
.action-circle-btn.btn-dark:hover {
  background: #0F172A;
}

.action-circle-btn.btn-saffron {
  background: var(--saffron);
  color: #ffffff;
}
.action-circle-btn.btn-saffron:hover {
  background: var(--saffron-dark);
}

.action-circle-btn.btn-green {
  background: var(--india-green);
  color: #ffffff;
}
.action-circle-btn.btn-green:hover {
  background: var(--india-green-dark);
}

/* Custom Checkbox matching mockup */
.mockup-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #CBD5E1;
  border-radius: 4px;
  background: #FFFFFF;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s;
}

.mockup-checkbox:checked {
  background: var(--saffron);
  border-color: var(--saffron);
}

.mockup-checkbox:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  box-shadow: inset 1em 1em white;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Pagination Footer Matching Mockup */
.mockup-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  font-size: 0.8rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

.page-pill {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: #64748B;
  transition: all 0.15s ease;
  user-select: none;
}

.page-pill:hover:not(.active):not(:disabled) {
  background: #E2E8F0;
  color: #0F172A;
}

.page-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-pill.active {
  background: var(--saffron);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--saffron-glow);
}

.mockup-pagination-row.dark-theme {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

.mockup-pagination-row.dark-theme .page-pill {
  color: #94A3B8;
}

.mockup-pagination-row.dark-theme .page-pill:hover:not(.active):not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.mockup-pagination-row.dark-theme .page-pill.active {
  background: var(--saffron);
  color: #FFFFFF;
}

/* 3D Buttons */
.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-size: 0.85rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--saffron-glow);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px var(--saffron-glow);
}

.btn-green {
  background: linear-gradient(135deg, var(--india-green) 0%, var(--india-green-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--india-green-glow);
}

.btn-secondary {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-saffron {
  background: rgba(255, 119, 0, 0.12);
  color: var(--saffron-dark);
  border: 1px solid rgba(255, 119, 0, 0.3);
}

.badge-success {
  background: rgba(19, 136, 8, 0.12);
  color: var(--india-green);
  border: 1px solid rgba(19, 136, 8, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Inputs */
.form-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 14px;
  color: #0F172A;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.15);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  color: #0F172A;
}

/* Full Screen Interactive Excel Mapping & Statement Review Modals */
#mappingModal,
#statementDetailsModal {
  padding: 8px !important;
  z-index: 1000 !important;
}

#mappingModal.active,
#statementDetailsModal.active {
  display: flex !important;
}

#mappingModal .modal-container,
#statementDetailsModal .modal-container {
  max-width: 98vw !important;
  width: 98vw !important;
  height: 96vh !important;
  max-height: 96vh !important;
  border-radius: 14px;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(255, 119, 0, 0.4);
  background: rgba(255, 119, 0, 0.03);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.dropzone:hover {
  border-color: var(--saffron);
  background: rgba(255, 119, 0, 0.08);
}

/* ================= TALRIX PROFESSIONAL ALERTS & TOASTS ================= */
#talrix-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

.talrix-toast {
  pointer-events: auto;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.talrix-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.talrix-toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.talrix-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.talrix-toast.success .talrix-toast-icon {
  background: rgba(19, 136, 8, 0.12);
  color: #138808;
}
.talrix-toast.error .talrix-toast-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}
.talrix-toast.warning .talrix-toast-icon {
  background: rgba(255, 119, 0, 0.12);
  color: #FF7700;
}
.talrix-toast.info .talrix-toast-icon {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
}

.talrix-toast-content {
  flex: 1;
  min-width: 0;
}

.talrix-toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.talrix-toast-message {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-line;
}

.talrix-toast-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.15s;
}

.talrix-toast-close:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.talrix-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
}
.talrix-toast.success .talrix-toast-progress { background: #138808; }
.talrix-toast.error .talrix-toast-progress { background: #DC2626; }
.talrix-toast.warning .talrix-toast-progress { background: #FF7700; }
.talrix-toast.info .talrix-toast-progress { background: #0284C7; }

/* Custom Modal Dialog (Alert / Confirm / Prompt) */
.talrix-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.talrix-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.talrix-dialog-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  border: 1px solid #E2E8F0;
  transform: scale(0.92);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0F172A;
}

.talrix-dialog-overlay.active .talrix-dialog-card {
  transform: scale(1);
}

.talrix-dialog-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.talrix-dialog-icon-wrapper.success {
  background: rgba(19, 136, 8, 0.12);
  color: #138808;
}
.talrix-dialog-icon-wrapper.error {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}
.talrix-dialog-icon-wrapper.warning {
  background: rgba(255, 119, 0, 0.12);
  color: #FF7700;
}
.talrix-dialog-icon-wrapper.info,
.talrix-dialog-icon-wrapper.prompt {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
}

.talrix-dialog-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.talrix-dialog-body {
  font-size: 0.84rem;
  color: #64748B;
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 20px;
}

.talrix-dialog-input {
  width: 100%;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #0F172A;
  outline: none;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.talrix-dialog-input:focus {
  border-color: #FF7700;
  box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.15);
}

.talrix-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ================= TALRIX BEAUTIFUL LOADER SYSTEM ================= */
.talrix-spinner {
  display: inline-block;
  position: relative;
  border-radius: 50%;
  vertical-align: middle;
}

.talrix-spinner-sm {
  width: 20px;
  height: 20px;
}

.talrix-spinner-md {
  width: 38px;
  height: 38px;
}

.talrix-spinner-lg {
  width: 56px;
  height: 56px;
}

.talrix-spinner-xl {
  width: 74px;
  height: 74px;
}

/* Outer orbital ring (Saffron) */
.talrix-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #FF7700;
  border-right-color: rgba(255, 119, 0, 0.4);
  animation: talrix-spin-clockwise 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.3);
}

/* Inner orbital ring (India Green) */
.talrix-spinner::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-bottom-color: #138808;
  border-left-color: rgba(19, 136, 8, 0.4);
  animation: talrix-spin-counter 0.65s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  box-shadow: 0 0 8px rgba(19, 136, 8, 0.25);
}

.talrix-spinner-sm::after {
  inset: 3px;
  border-width: 2px;
}
.talrix-spinner-lg::after {
  inset: 7px;
  border-width: 3px;
}
.talrix-spinner-xl::after {
  inset: 9px;
  border-width: 3.5px;
}

/* Inline button spinner */
.talrix-btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-left-color: #FFD580;
  animation: talrix-spin-clockwise 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}

@keyframes talrix-spin-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes talrix-spin-counter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes talrix-pulse-glow {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 119, 0, 0.6)); }
}

/* Fullscreen Overlay Loader */
.talrix-overlay-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

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

.talrix-loader-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 119, 0, 0.2);
  border-radius: 24px;
  padding: 36px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(255, 119, 0, 0.15), 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.talrix-overlay-loader.active .talrix-loader-card {
  transform: translateY(0) scale(1);
}

/* Top accent gradient bar (Saffron & Green) */
.talrix-loader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF7700 0%, #FFFFFF 50%, #138808 100%);
}

.talrix-loader-spinner-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.talrix-loader-core-logo {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF7700 0%, #E65C00 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(255, 119, 0, 0.4);
  animation: talrix-pulse-glow 2s ease-in-out infinite;
}

.talrix-loader-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.talrix-loader-subtitle {
  font-size: 0.84rem;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Three pulsing dots (Saffron, Gray, Green) */
.talrix-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.talrix-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: talrix-dot-bounce 1.4s infinite ease-in-out both;
}

.talrix-dot:nth-child(1) {
  background-color: #FF7700;
  animation-delay: -0.32s;
}

.talrix-dot:nth-child(2) {
  background-color: #94A3B8;
  animation-delay: -0.16s;
}

.talrix-dot:nth-child(3) {
  background-color: #138808;
}

@keyframes talrix-dot-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.35; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Table / Card Container Loader */
.talrix-table-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  gap: 14px;
}

.talrix-table-loader-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= PRIORITY CASCADE DRAG & DROP ================= */
.priority-chain-item {
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.priority-chain-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}

.priority-chain-item.dragging {
  opacity: 0.4;
  transform: scale(0.98);
  border-style: dashed;
}

.priority-chain-item.drag-over {
  border-color: var(--saffron) !important;
  background-color: rgba(255, 119, 0, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(255, 119, 0, 0.25);
}

/* Custom Scrollbar for Model Dropdown */
#modelDropdownList::-webkit-scrollbar {
  width: 6px;
}
#modelDropdownList::-webkit-scrollbar-track {
  background: #F8FAFC;
}
#modelDropdownList::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
#modelDropdownList::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Executive Dashboard Pills & Visual Badges */
.timeframe-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.timeframe-pill:hover:not(.active) {
  color: #0F172A;
  background: #E2E8F0;
}
.timeframe-pill.active {
  background: #FFFFFF;
  color: var(--saffron);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cust-filter-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cust-filter-pill:hover:not(.active) {
  color: #0F172A;
  background: #E2E8F0;
}
.cust-filter-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.usage-progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #E2E8F0;
  overflow: hidden;
  position: relative;
}
.usage-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF7700 0%, #138808 100%);
  transition: width 0.4s ease;
}

/* ================= EXCEL SPREADSHEET GRID CELL INPUTS ================= */
.excel-cell-input {
  width: 100%;
  height: 32px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #0F172A;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.excel-cell-input:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

.excel-cell-input:focus {
  background: #FFFFFF;
  border-color: #FF7700;
  box-shadow: 0 0 0 2px rgba(255, 119, 0, 0.2);
}

/* Remove ugly number spinner arrows in Chrome, Safari, Edge, Opera */
.excel-cell-input::-webkit-outer-spin-button,
.excel-cell-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove number spinner in Firefox */
.excel-cell-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Custom Sleek Scrollbar for Spreadsheet Grids */
.overflow-x-auto::-webkit-scrollbar {
  height: 8px;
}
.overflow-x-auto::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
