
@import url('./_branding.css');

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--brand-black-2);
  min-height: 100vh;
}

/* Page background subtle pattern overlay */
.page-background { position: relative; overflow: hidden; }
.page-background::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--brand-repeating-gradient-stripes);
  opacity: .55;
  pointer-events: none;
}
/* --- Shop Page Modern Redesign --- */
.custom-page { 

  gap: 2rem; 
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  background: var(--brand-slate-light);
  padding: 4rem;
  /* make container expand to (almost) full viewport height; --app-top-offset can be set globally if needed */
  min-height: 100vh;
  height: 100vh; /* explicit height to allow inner scrolling */
  overflow-y: auto; /* only content scrolls, sidebar stays fixed */
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 16px var(--rgba-black-12);
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  /* prevent page scrolling */
}

/* Allow pages that need full document scrolling (e.g., OTP) to override hidden overflow */
/* Deprecated: body.allow-scroll no longer needed; keep for backward compatibility */
body.allow-scroll { overflow: hidden !important; }
body.allow-scroll.page-background { overflow: hidden !important; }

.nav-tabs {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
}

.nav-tabs .nav-item {
  flex: 1 1 0;
  display: flex;
}

.tab-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  /* Remove fixed height and overflow to allow page-level scrolling only */
}

  /* Simple section title styling (replaces removed modern headers) */
  .section-label {
    font-weight: 600;
    letter-spacing: .5px;
    font-size: .9rem;
    text-transform: uppercase;
    color: #495057;
  }
  .section-label i { font-size: 1rem; }
  .form-section + .form-section { margin-top: 1.25rem; }

.modal-body-dialog {
  max-height: 80vh;
  overflow-y: auto;
}

/* Optimize form spacing */
.form-section h5 {
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
}



/* Container that enables horizontal scrolling when table overflows */
.responsive-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  /* avoid vertical clipping bars inside */
  -webkit-overflow-scrolling: touch;
  /* smooth on iOS */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* critical for flex parents so children can shrink and not overflow page */
}

/* Prevent flex parents from forcing overflow of children */
.container.d-flex.flex-column {
  min-width: 0;
}

.w-100.p-5.bg-light {
  min-width: 0;
}

/* Ensure table is wider than small screens so scrollbar appears */
.responsive-scroll table {
  min-width: 99%;
  /* adjust as needed for your columns */
  width: max-content;
  /* grow to fit content, not container */
}

/* Avoid truncation with ellipsis in cells; keep content visible and on one line */
.responsive-scroll th,
.responsive-scroll td {
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Prevent page-level horizontal overflow; scroll only the table container */
body,
.w-100.p-5.bg-light {
  overflow-x: hidden;
}


.row.g-3 {
  margin-bottom: 0.8rem !important;
}

.row.g-3.mt-2 {
  margin-top: 0.8rem !important;
}

.success {
  color: var(--successful_color);
}

.error {
  color: var(--error_color);
}

.bg_blue_custom {
  padding: 0;
  /* Remove padding */
  --bs-bg-opacity: 1;
  background-color: var(--menu_color) !important;
}

.btn {
  border: none;
  /* Remove border */
}

.btn-custom:hover {
  color: white;
  background-color: var(--button-hover-background-color);
  border: none;
}

.btn-custom.active {
  color: white !important;
  background-color: var(--button-active-background-color) !important;
  border: none !important;
  border-radius: 0% !important;
}




/* Duplicate body selector removed (original defined at top with gradient background) */

.msal-login-root {
  min-height: 100vh;
  background: var(--gradient-header);
  padding: clamp(3rem, 5vw, 6rem) 1.5rem;
  position: relative;
  overflow: hidden;
}
.msal-login-root::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255,255,255,0.12), transparent 50%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.msal-login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.msal-hero-col {
  color: var(--brand-white);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
}
.msal-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(8px);
}
.msal-logo-img {
  width: 100px;
  height: auto;
}
.msal-brand-badge {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.msal-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.msal-form-col {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}
.msal-login-card {
  box-shadow: 0 20px 45px rgba(6, 12, 34, 0.22);
  border: 0;
  border-radius: 1rem;
  background: var(--brand-white);
}
.msal-signin-title {
  letter-spacing: 0.5px;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  color: var(--brand-black-2);
}
.msal-signin-desc {
  font-size: 1.05rem;
}
@media (max-width: 576px) {
  .msal-login-root {
    padding: 2.75rem 1rem;
  }
  .msal-login-card {
    border-radius: 1rem;
  }
  .msal-signin-desc {
    font-size: 1rem;
  }
  .msal-hero-col {
    gap: 1.25rem;
  }
  .msal-hero-brand {
    justify-content: center;
    border-radius: 1rem;
  }
}
@media (max-width: 992px) {
  .msal-form-col {
    max-width: 100%;
  }
}
.msal-signin-btn {
  background: var(--gradient-header);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--rgba-black-12);
}
.msal-signin-btn-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.msal-signin-btn-label {
  line-height: 1;
  display: inline-block;
}
.msft-icon {
  display: inline-block;
  width: 22px;
  height: 30px;
  vertical-align: -3px;
}
.msal-alert {
  margin-top: 1.25rem;
}
.msal-error {
  background: rgba(255,235,235,0.9); /* Much lighter background for higher contrast */
  border: 1px solid rgba(220,38,38,0.5);
  color: #3a0000; /* Dark text for WCAG contrast */
  padding: .85rem 1rem;
  border-radius: .85rem;
  font-size: .9rem;
  font-weight:600;
}
.msal-small-note {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
}

.btn-logout-disabled {
  background-color: #7391a3 !important;
  color: white !important;
  font-size: small;
  /* width: auto;   */
  width: 120px;
}

.btn-logout-disabled:hover {
  background-color: #5c7a8d !important;
  color: white !important;
  border-radius: 0.375rem;
}

.gray-label {
  color: var(--input-text-color);
  font-size: var(--font-size);
}

hr {
  margin: 0;
  opacity: 0.75;
}

.thead-light {
  background-color: var(--button-gray-color);
}


.btn-light-blue {
  background-color: var(--brand-cyan);
  color: white;
  font-size: small;
}

.push-btn{
  height: 32px;
  background-color: var(--brand-green-10);
  border: none;
}

.push-btn:hover {
  background-color: #2e3f16cf;
  color: white;
  border-radius: 0.375rem;
}
.btn-light-blue:hover {
  background-color: #3b779c;
  color: white;
  border-radius: 0.375rem;
}

.btn-add{
  gap:0.5rem; 
  min-width:110px;
  min-height: 30px;
  background:#1a2c3b;
  color:white;
  border:none; 
  border-radius:4px;
}
.btn-dark-blue {
  background-color: var(--brand-deep);
  color: white;
  font-size: small;
}

.btn-dark-blue:hover {
  background-color: #172630;
  color: white;
  border-radius: 0.375rem;
}

h1 {
  color: var(--text-color);
  font-weight: medium;
}
.shop-subtitle { margin: .25rem 0 0; font-size: var(--font-size-sm); color: var(--text-muted); }
.table-secondary {
  --bs-table-color: var(--input-text-color);
}
.primary-btn, .secondary-btn { 
  flex:1; 
  font-size:var(--font-size-xs); 
  font-weight:600; 
  letter-spacing:.5px; 
  padding:.65rem .75rem; 
  border-radius:12px; 
  cursor:pointer; 
  border:1px solid transparent; 
  transition: background .15s, transform .15s, color .15s; 
}
.primary-btn { background: var(--brand-deep); color: var(--brand-yellow-1);box-shadow:0 2px 4px var(--rgba-black-12); }
.primary-btn:hover { background: var(--brand-black); color: var(--brand-yellow-1);}
.primary-btn:active { transform:translateY(1px); }
.primary-btn:disabled { opacity:.6; pointer-events:none; }

 /* ---- Unified Action Buttons (Edit / Save / Cancel) ---- */
.action-bar {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.75rem;
  padding:1rem 0 .25rem;
  border-top:1px solid #e2e8f0;
  margin-top:1.25rem;
}
.action-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  border-radius:10px;
  padding:.6rem 1.05rem;
  font-size:.9rem;
  letter-spacing:.4px;
  line-height:1.1;
  border:none;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}
.action-btn i { font-size:0.95rem; }
.edit-btn { background: var(--brand-deep); color: var(--brand-yellow-1); box-shadow:0 3px 8px var(--rgba-black-18); padding:.75rem 1.25rem; font-size:1rem; }
.edit-btn:hover { background: var(--brand-black); color: var(--brand-yellow-1); }
.edit-btn:active { transform:translateY(1px); }
.save-btn { background:linear-gradient(90deg,#146a2e,#1d7f39); color:#fff; }
.save-btn:hover { background:#0f4d20; color:#fff; }
.cancel-btn { background:#ffffff; color:#334155; border:1px solid #cbd5e1; box-shadow:none; }
.cancel-btn:hover { background:#f1f5f9; }
.action-btn:focus { outline:3px solid #94a3b8; outline-offset:2px; }
.action-btn:active { transform:translateY(1px); }
.action-btn:disabled { opacity:.55; cursor:not-allowed; box-shadow:none; }
.action-hint { font-size:.7rem; color:#64748b; }
.action-bar.justify-content-center { justify-content:center !important; }
/* Larger centered edit button variant */
.edit-btn-large {
  padding: 1rem 2.75rem;
  font-size: 1.05rem;
  border-radius: 0.85rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  letter-spacing: .5px;
}
.edit-btn-large:active { transform: translateY(1px); }
.edit-btn-large i { font-size: 1.2rem; }
/* Large save & cancel variants */
.save-btn-large {
  padding: 1rem 2.5rem;
  font-size:1.05rem;
  border-radius:0.85rem;
  background: linear-gradient(135deg,#146a2e,#1d7f39);
  color:#fff;
  font-weight:600;
  letter-spacing:.5px;
  box-shadow:0 4px 16px rgba(0,0,0,.18);
  display:inline-flex; align-items:center; gap:.55rem;
}
.save-btn-large:hover, .save-btn-large:focus { background:linear-gradient(135deg,#0f4d20,#146a2e); box-shadow:0 6px 20px rgba(0,0,0,.22); }
.save-btn-large:active { transform:translateY(1px); }
.save-btn-large i { font-size:1.2rem; }
.cancel-btn-large {
  padding: 1rem 2.3rem;
  font-size:1.05rem;
  border-radius:0.85rem;
  background:#ffffff;
  color:#334155;
  border:1px solid #cbd5e1;
  font-weight:600;
  letter-spacing:.5px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  display:inline-flex; align-items:center; gap:.55rem;
}
.cancel-btn-large:hover, .cancel-btn-large:focus { background:#f1f5f9; box-shadow:0 4px 14px rgba(0,0,0,.15); }
.cancel-btn-large:active { transform:translateY(1px); }
.cancel-btn-large i { font-size:1.2rem; }
.secondary-btn { background: var(--rgba-white-85); color: var(--text-neutral); border-color: var(--rgba-black-12); }
.secondary-btn:hover { background: var(--rgba-white-95); color: var(--brand-black-2); }
.secondary-btn:active { transform:translateY(1px); }

.modal-body{
  max-height: 80vh;
  overflow-y: auto;
  /* background: var(--brand-repeating-gradient-stripes); */
}

.page-header { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-between; 
  gap: 1.25rem; 
  position: relative; 
  border-bottom: 2px solid var(--brand-yellow-1); 
    height: var(--app-header-height);
  min-height: var(--app-header-height);
  align-items: center; /* center vertically when fixed height */
  margin-bottom: 30px;
  padding-bottom: 10px;
}
.item-action-btn-side{
  background: var(--brand-slate-transparent-light);
  color: var(--brand-black-2);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px 0 0 8px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.item-action-btn-side:hover, .item-action-btn-side:focus {
  background: rgba(147,199,251,0.12); /* soft cyan backdrop */
  color: var(--brand-black-2);
  box-shadow: 0 2px 8px rgba(51,102,128,0.08);
  transform: translateY(-1px);
}
.items-table-wrapper { background:rgba(255,255,255,0.09); border:1px solid rgba(255,255,255,0.18); border-radius:20px; padding:1.35rem 1.35rem 1.1rem; box-shadow:0 3px 12px rgba(0,0,0,0.28); backdrop-filter: blur(4px); overflow:hidden; display:flex; flex-direction:column; height:auto; max-height:80vh; }
.items-table-wrapper .table-responsive { width:100%; overflow-x:auto; overflow-y:auto; padding:0 1.35rem; flex:1; min-height:0; }
.items-table-wrapper table { font-size: var(--font-size-xs); width:100%; border-collapse:separate; border-spacing:0; }
.items-table-wrapper thead th { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-black) 100%); color: var(--brand-white); font-weight:700; border-bottom:2px solid var(--brand-yellow-1); position:sticky; top:0; z-index:2; padding:.85rem 1rem; text-transform:uppercase; letter-spacing:.5px; font-size:.8rem; }
.items-table-wrapper thead th:first-child { border-top-left-radius:0; }
.items-table-wrapper thead th:last-child { border-top-right-radius:0; }
.items-table-wrapper tbody td { border-bottom:1px solid var(--rgba-black-12); padding:.75rem 1rem; color: var(--text-dark-2); }
.items-table-wrapper tbody tr:last-child td { border-bottom:none; }
.items-table-wrapper tbody tr:nth-child(even) { background:rgba(0,0,0,0.02); }
.items-table-wrapper tbody tr:hover { background:rgba(0,0,0,0.05); }
.items-table-wrapper tbody tr:focus-within { outline:2px solid var(--brand-deep); outline-offset:2px; }
/* Items table action buttons */

.item-action-btn-edit {
  background: var(--brand-slate-transparent-light);
  color: var(--brand-deep);
  border: 1px solid rgba(147,199,251,0.28);
  padding: 0.45rem 0.9rem;
  border-radius: 8px 0 0 8px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}
.item-action-btn-enable:hover, .item-action-btn-enable:focus {
  background: var(--brand-cyan);
  color: var(--brand-black-2);
  box-shadow: 0 4px 14px rgba(51,102,128,0.12);
  transform: translateY(-1px);
}
/* Items table action buttons */
.item-action-btn-enable {
  background: var(--brand-slate-transparent-light);
  color: var(--brand-deep);
  border: 1px solid rgba(147,199,251,0.28);
  padding: 0.45rem 0.9rem;
  border-radius: 0 8px 8px 0;
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}
.item-action-btn-edit:hover, .item-action-btn-edit:focus {
  background: var(--brand-cyan);
  color: var(--brand-black-2);
  box-shadow: 0 4px 14px rgba(51,102,128,0.12);
  transform: translateY(-1px);
}


.item-action-btn-edit:disabled{
  background: var(--brand-slate-transparent-light);
  color: var(--brand-deep);
  border: 1px solid rgba(147,199,251,0.28);
}

.item-action-btn-delete {
  background: rgba(220,38,38,0.06); /* softer red */
  color: var(--brand-black-2);
  border: 1px solid rgba(161,42,42,0.12);
  padding: 0.45rem 0.9rem;
  border-radius: 0 8px 8px 0;
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-left: -1px;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}
.item-action-btn-delete:hover, .item-action-btn-delete:focus {
  background: #a12a2a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(161,42,42,0.12);
  transform: translateY(-1px);
}
.custom-input {
  font-size: 0.9rem;
  background-color: var(--button-gray-color);
  color: var(--input-placeholder-color);
}


input::placeholder {
  color: var(--input-placeholder-color) !important;
}
.table-wrapper-style {
    background: var(--rgba-white-5);
    border: 1px solid var(--rgba-black-12);
    border-left: 3px solid var(--brand-deep);
    border-radius: 16px;
    padding: 1.35rem 1.35rem 1.1rem;
    box-shadow: 0 4px 12px var(--rgba-black-12);
    backdrop-filter: blur(4px);
}

/* Ensure dropdown menus inside a short (single-row) table are not visually clipped
  by allowing vertical overflow to show and creating a small safety space at the bottom. */
.table-responsive.table-wrapper-style { overflow: visible; padding-bottom: 2.5rem; }

/* Unified application-wide table styling */
.app-table { font-size: var(--font-size-xs); width:100%; border-collapse:separate; border-spacing:0; }
.app-table thead th { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-black) 100%); color: var(--brand-white); font-weight:700; border-bottom:2px solid var(--brand-yellow-1); position:sticky; top:0; z-index:2; padding:.75rem 1rem; text-transform:uppercase; letter-spacing:.5px; font-size:.75rem; }
.app-table tbody td { border-bottom:1px solid var(--rgba-black-12); padding:.65rem 1rem; color: var(--text-dark-2); }
.app-table tbody tr:last-child td { border-bottom:none; }
.app-table tbody tr:nth-child(even) { background:rgba(0,0,0,0.02); }
.app-table tbody tr:hover { background:rgba(0,0,0,0.05); }
.app-table tbody tr:focus-within { outline:2px solid var(--brand-deep); outline-offset:2px; }
/* Allow horizontally wide comparison tables to scroll while centered */
.comparison-panel .app-table { width:max-content; margin:0 auto; }

table {
  width: 100%;
  table-layout: fixed;
  /* Distributes columns evenly */
  word-wrap: break-word;
  /* Prevents long text from stretching */
}

td {
  white-space: nowrap;
  /* Prevents text wrapping in table headers */
  text-overflow: ellipsis;
  /* Cuts off long text with "..." */
  overflow: hidden;
  /* Ensures long content doesn’t overflow */
  font-weight: 400;
  font-size: 14px;
  --bs-table-color: var(--form-header-text-color);
}

th {
  white-space: nowrap;
  /* Prevents text wrapping in table headers */
  text-overflow: ellipsis;
  /* Cuts off long text with "..." */
  overflow: hidden;
  /* Ensures long content doesn’t overflow */
  font-weight: 600;
  font-size: 14px;
  --bs-table-color: var(--form-header-text-color);
}

.regular-font {
  font-weight: 500;
  font-size: 14px;
  --bs-table-color: black !important;
}

.btn-sort {
  border: none;
  background-color: transparent;
  color: var(--form-header-text-color);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.bg-dark-custom {
  --bs-bg-opacity: 1;
  background-color: rgb(42 87 115) !important;
}

.mb-8 {
  margin-bottom: 2%;
}

.custom-cancel-button {
  background-color: #ffffff !important;
  color: #5f5f5f !important;
  border: 1px solid #ccc !important;
  box-shadow: none !important;
}

.bg-light-gray {
  --bs-bg-opacity: 1;
  background-color: #ebebeb;
}

.font_light_gray {
  color: var(--form-header-text-color);
  font-size: small;
}

.font_black {
  color: black;
  font-size: 14px;
}

.font_red {
  color: rgb(230, 15, 15);
  font-size: 14px;
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.custom-modal-width {
  max-width: 700px;
}

.btn-danger-custom {
  background-color: rgb(245, 165, 165);
}

.btn-danger-custom:focus {
  background-color: rgb(172, 123, 123);

}

.btn-success-custom {
  background-color: rgb(181, 247, 195);

}

.btn-custom-custom:focus {
  background-color: #436752;
}

.btn-create-custom {
  background-color: rgb(143, 204, 244);

}

.btn-create-custom:focus {
  background-color: #517487;
}

.bg-darkblue {
  background-color: var(--menu_color);
}

.nav-tabs .nav-link {
  color:#e2e8f0;
  background-color:#1f3a4d; /* darker base */
  border:1px solid #2b4d63;
  font-weight:600;
  letter-spacing:.4px;
  display:flex;
  align-items:center;
  justify-content:center; /* center content within each tab */
  gap:.35rem;
  padding:.55rem 1rem; /* consistent hit area */
  width:100%; /* take full width of parent nav-item */
  flex:1 1 auto; /* allow to grow and fill space */
  white-space:nowrap; /* keep tab label on one line */
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  border-radius: 0px 0px 0px 0px;
}

.nav-tabs .nav-link:hover {
  background-color:#24475d;
  border-color:#325f79;
  color:#ffffff;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  transform:translateY(-1px);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--brand-yellow-1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
  position: relative;
  isolation: isolate;
}

.tab-content {
  border: 2px solid var(--brand-deep);
  border-top: none;
  border-radius: 0 0 5px 5px;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  overflow: hidden;
}

.tab-content > .tab-pane {
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.tab-content > .active {
  display: block;
}

/* Ensure forms inside tab-content don't overflow */
.tab-content form,
.tab-content .form-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.tab-content .row {
  margin-left: 0;
  margin-right: 0;
}

/* Optional focus-visible styling for accessibility */
.nav-tabs .nav-link:focus-visible {
  outline:3px solid #94a3b8;
  outline-offset:2px;
}


label.required::after {
  content: " *";
  color: red;
  font-weight: bold;
}

.btn-delete-custom {
  background-color: #fcc;
  color: black;
}

.btn-delete-custom:hover {
  background-color: rgb(193, 155, 155);
  color: black;

}

.btn-new-user {
  background-color: var(--button-active-background-color);
  color: white;
  font-size: small;
}

.btn-new-user:hover {
  background-color: #3b779c;
  color: white;
  border-radius: 0.375rem;
}

.btn-warning-custom {
  background-color: #efb626;
  color: black;
}

.btn-warning-custom:hover {
  background-color: #b09112;
  color: black;
  border-radius: 0.200rem;
}

.btn-success-custom {
  background-color: #c9e5c9;
  color: black;
}

.btn-success-custom:hover {
  background-color: #869e86;
  color: black;
  border-radius: 0.200rem;
}

/* FVLink Theme Color Picker Styling */
.theme-color-input:disabled {
  opacity: 0.5; /* Apply opacity when in read-only (disabled) mode */
  cursor: not-allowed;
}

.theme-color-input:not(:disabled) {
  opacity: 1; /* Ensure full opacity when in edit mode */
  cursor: pointer;
}

/* FVLink Theme Logo File Input Styling */
#logoDarkFile:disabled,
#logoLightFile:disabled {
  opacity: 0.5; /* Apply opacity when in read-only (disabled) mode */
  cursor: not-allowed;
}

#logoDarkFile:not(:disabled),
#logoLightFile:not(:disabled) {
  opacity: 1; /* Ensure full opacity when in edit mode */
}

/* Placeholder wrapper for empty color inputs */
.color-picker-wrapper { position: relative; display: inline-block; width: 100%; }
.color-picker-wrapper input[type="color"] { width: 100%; height: 38px; padding: 0; }
.color-empty-overlay { position:absolute; top:0; left:0; width:100%; height:38px; background: repeating-conic-gradient(#f8f9fa 0% 25%, #e9ecef 0% 50%) 50% / 20px 20px; display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:600; color:#6c757d; border:1px dashed #adb5bd; border-radius:0.375rem; pointer-events:none; }
.theme-color-input.placeholder-active { color: transparent; }

/* Progress Ring Styles */

.progress-ring-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.progress-ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-ring-circle {
  fill: none;
  stroke: #007bff;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: #343a40;
}

#otp {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
  color: #343a40;
}


.form-group.row {
  margin-bottom: 1rem;
}

label.col-form-label {
  font-weight: 500;
}

.btn-group-custom {
  margin-top: 2rem;
  text-align: center;
}

.btn-details-custom {
  background-color: #545454;
  border-color: #242424;
}

.thead-custom {
  background-color: #99c9e7 !important;
}

.th-custom {
  width: 27%;
  color: black !important;
  font-weight: bold !important;
}

/* Custom column backgrounds */
.pax-col {
  background: #f0f0f0 !important;
}

.fvauth-col {
  background: #e5e3e3 !important;
}

.tango-col {
  background: #dbdbdb !important;
}

/* === FV Shop Sidebar Adapted Styles === */
.fv-sidebar {
  background: var(--gradient-header);
  min-height: 100vh;
  --sidebar-width: 330px;
  width: var(--sidebar-width);
  box-shadow: 2px 0 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.fv-sidebar .navbar-brand {
  color: var(--brand-white) !important;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  gap: 0.5rem;
  display: flex;
  align-items: center!important; 
}
.fv-sidebar .nav-link {
  color: var(--brand-white) !important;
  border-bottom: 1px solid var(--rgba-white-1);
  margin: 0; /* remove top/bottom margin */
  padding: 0.75rem 0; /* remove left/right padding */
  display: flex;
  align-items: center;
  transition: background 0.15s;
  border-radius: 0;
  width: 100%; /* ensure full width */
  font-size: var(--font-size-sm);
}

.fv-sidebar .nav-link:hover, .fv-sidebar .nav-link.active { background: var(--text-dark-light); color: var(--brand-white)!important; }
.fv-sidebar .sidebar-footer { margin-top:auto; padding:0.75rem 0.85rem 1.1rem; color: var(--brand-white); font-size:0.7rem; display:flex; flex-direction:column; gap:.5rem; }
.sidebar-card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border:1px solid rgba(255,255,255,0.08); }
.sidebar-card .merchant-label { font-size: var(--font-size-xs);
    color: var(--rgba-white-85);
    letter-spacing: 0.5px;
    text-transform: uppercase;}
.sidebar-card .merchant-name { font-size:0.7rem; font-weight:600; color:var(--brand-white); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-avatar-circle.small { width:34px; height:34px; border-radius:50%; background: var(--brand-yellow-1); display:inline-flex; align-items:center; justify-content:center; color: var(--brand-deep); font-size:0.9rem; box-shadow:0 2px 6px rgba(0,0,0,0.25); }
.sidebar-action-btn { 
  /* Increase hit target to meet accessibility (>=40px) */
  background:transparent; 
  color:var(--brand-white);  
  width:2.5rem; 
  height:2.5rem; 
  min-width:2.5rem;
  min-height:2.5rem;
  padding:0; 
  border-radius:8px; 
  display:inline-flex; 
  align-items:center; 
  justify-content:center;  
  transition:background .15s, color .15s; 
  cursor:pointer;
  position:relative;
}
.sidebar-action-btn i { pointer-events:none; }
.sidebar-action-btn:hover, .sidebar-action-btn:focus { background:rgba(255,255,255,0.08); }
.sidebar-action-btn:focus-visible { outline:3px solid var(--brand-danger); outline-offset:3px; }
.sidebar-action-btn.danger { color: var(--brand-danger); font-size: 1.05rem; }
.sidebar-action-btn.danger:hover, .sidebar-action-btn.danger:focus { background:rgba(220,38,38,0.15); color: var(--brand-white); }


/* Responsive sidebar for tablets */
@media (max-width: 1500px) {
  .fv-sidebar {
    --sidebar-width: 280px;
    width: var(--sidebar-width);
  }
  
  .fv-sidebar .navbar-brand {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .fv-sidebar .nav-link {
    padding: 0.6rem 0;
    font-size: var(--font-size-xs);
  }
}

/* Responsive sidebar for small tablets and phones */
@media (max-width: 768px) {
  .fv-sidebar {
    --sidebar-width: 250px;
    width: var(--sidebar-width);
  }
  
  .fv-sidebar .navbar-brand {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 0.35rem;
  }
  
  .fv-sidebar .nav-link {
    padding: 0.5rem 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.85rem;
    padding-right: 0.75rem;
  }
  
  .fv-sidebar .sidebar-footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 1rem;
    font-size: 0.8rem;
  }
}

/* Extra small screens */
@media (max-width: 640px) {
  .fv-sidebar {
    --sidebar-width: 200px;
    width: var(--sidebar-width);
  }
  
  .fv-sidebar .navbar-brand {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.25rem;
    flex-direction: column;
    justify-content: center;
  }
  
  .fv-sidebar .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .fv-sidebar .sidebar-footer {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.75rem;
    font-size: 0.7rem;
  }
}


.custom-header th:first-child {
  border-top-left-radius: 6px;
}

.custom-header th:last-child {
  border-top-right-radius: 6px;
}

.active>.page-link,
.page-link.active {
  z-index: 3;
  color: var(--bs-pagination-active-color) !important;
  background-color: var(--brand-deep);
  border-color: #94b3e100;
}

#dropzone.bg-light {
  background-color: #f8f9fa !important;
  border-color: #17a2b8;
}

.modal-close-btn{
  font-size:1.5rem;
   color:var(--brand-yellow-1);
    background:none;
     border:none;
     box-shadow:none;
      outline:none;
}
.modal-close-btn:hover{
  color:var(--brand-yellow-1);
  cursor:pointer;
}
/* a {
    color: #4fa1d4 !important;
    text-decoration: underline;
} */

/* Styling for disabled input fields */
input:read-only,
input[readonly] {
  background-color: #f5f5f5 !important;
  color: #282a2c !important;
  border-color: #dee2e6 !important;
  opacity: 0.6;
}

/* Email validation styling */
.form-control.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.form-control.is-invalid:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-select:disabled {
  background-color: #f5f5f5 !important;
  color: #282a2c !important;
  border-color: #dee2e6 !important;
  opacity: 0.6;
}
.form-select, .form-control{
  border: #e2e8f0 2px solid !important;
}
  .progress-ring-wrapper {
    position: relative;
    display: inline-block;
  }

  .progress-ring-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  }

  .progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #495057;
    font-family: 'Courier New', monospace;
  }

  .otp-display-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
  }

  .otp-code {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: var(--menu_color);
    letter-spacing: 0.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 2px solid var(--menu_color);
    display: inline-block;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
  }

  .card {
    border-radius: 15px;
    overflow: hidden;
  }

  .card-header {
    background: linear-gradient(135deg, var(--menu_color) 0% );
  }



  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  .otp-code {
    animation: pulse 2s infinite;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .progress-ring-svg {
      width: 150px;
      height: 150px;
    }
    
    .progress-ring-text {
      font-size: 1.5rem;
    }
    
    .otp-code {
      font-size: 2rem;
      letter-spacing: 0.1em;
    }
  }


  /* Modal Background Blur */
  .modal.fade {
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.3s ease;
}
.modal.show {
  backdrop-filter: blur(5px);
}

/* Modern Modal Design - Compact */
.modern-modal {
  border: none;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: var(--brand-slate-light);
}

.gradient-header {
  background:  var(--gradient-header);
  border: none;
  padding: 1rem 1.5rem;
}

/* Create Button */
.btn-create-merchant {
  background:  #2A5773;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(3, 22, 107, 0.3);
}

.btn-create-merchant:hover {
  background:  #183242;
    color: white;
}

/* Form Sections - Compact */
.form-section {
  background: var(--rgba-white-5);

  border-radius: 10px;
  padding: 1rem;
  border-left: 3px solid  var(--brand-deep);
  transition: all 0.3s ease;
}

.form-section:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  padding-bottom: 0.3rem;
}
.panel {
    background: var(--rgba-white-5);
    border: 1px solid var(--rgba-black-12);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 4px 12px var(--rgba-black-12);
    position: sticky;
    border-left: 3px solid var(--brand-deep);
    transition: all 0.3s 
ease;
}
.section-title {
    margin: 1rem 0 2rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .5px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: var(--brand-yellow-1);
    border-radius: 2px;
}
/* Modern Form Inputs - Branded Redesign */
.modern-input {
  background: var(--rgba-white-95);
  border: 1px solid var(--rgba-black-12);
  color: var(--text-dark-2);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: var(--font-size-xs);
  line-height: 1.3;
  transition: background .18s, border-color .18s, box-shadow .18s, color .18s;
  width: 100%;
}

.modern-input::placeholder { color: var(--text-placeholder); opacity:.75; }

.modern-input:focus {
  outline: none;
  border-color: var(--brand-yellow-1);
  background: var(--brand-white);
  box-shadow: 0 0 0 3px var(--rgba-yellow-2), 0 2px 6px var(--rgba-black-12);
  color: var(--form-text);
}

.modern-input:disabled, .modern-input[readonly] {
  background: var(--rgba-white-85);
  cursor: not-allowed;
  opacity: .65;
}

/* Elevated search inputs (merchant / firmware pickers) */
.search-input.modern-input {
  padding-right: 2.5rem !important;
  background: var(--brand-white);
  border: 1px solid var(--rgba-black-12);
}

.search-input.modern-input:focus {
  background: var(--brand-white);
  border-color: var(--brand-yellow-1);
  box-shadow: 0 0 0 3px var(--rgba-yellow-2);
}

.modern-label {
  color: #495057;
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

/* Legacy search-input fallback (will be overridden when combined with .modern-input) */
.search-input { padding-right: 2.5rem !important; }

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  z-index: 5;
}

/* Modern Dropdown */
.modern-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}
.modal-title{
  color: var(--brand-yellow-1);
}

/* Alert Styling - Compact */
.alert {
  border-radius: 8px;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 768px) {
  .modal-xl {
    margin: 0.5rem;
  }
  
  .form-section {
    padding: 1rem;
  }
  
  .gradient-header {
    padding: 1rem 1.5rem;
  }
  
  .section-title {
    font-size: 1rem;
  }
}

/* Animation for modal */
.modal.fade .modal-dialog {
  transform: scale(0.8) translateY(-50px);
  transition: all 0.3s ease;
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Custom scrollbar for dropdowns */
.modern-dropdown::-webkit-scrollbar {
  width: 6px;
}

.modern-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modern-dropdown::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #66acea 0%, #153f7b 100%);
  border-radius: 10px;
}

.modern-dropdown::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #66acea 0%, #153f7b 100%);
}

  /* Fixed pagination footer styles */
  .pagination-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(3px);

  }
  .pagination-fixed .page-item .page-link, .pagination-fixed .page-item button.page-link {
    background: #fff;
    color: #1a2c3b;
    border: 1px solid #ced4da;
    min-width: 42px;
    text-align: center;
    font-weight: 500;
    transition: all .18s ease;
    border-radius: 24px;
  }
  .pagination-fixed .page-item.active .page-link,
  .pagination-fixed .page-item.active button.page-link {
    background: var(--brand-deep);
    color: #1a2c3b;
    border-color: var(--brand-yellow-1);
    font-weight: 600;
  }
  .pagination-fixed .page-item.disabled .page-link,
  .pagination-fixed .page-item.disabled button.page-link {
    opacity: .45;
    cursor: not-allowed;
  }
  /* Removed duplicate body selector with padding-bottom; consider applying padding via a wrapper class where needed */
  @media (max-width: 576px) {
    .pagination-fixed { padding: 8px 8px; }
    .pagination-fixed .page-item .page-link { min-width: 36px; font-size: .75rem; }
  }

/* =====================
   Terminals Page Extracted Styles (migrated from inline)
   ===================== */
html { font-size:16px; }
.btn-refresh { padding:10px 16px; font-size:20px; height:fit-content; color:#1a2c3b; }
.subtitle-terminal { padding-top:8px; }
.ms-auto { margin-left:auto !important; }
.stack-end-gap8 { display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.inline-center-gap8 { display:flex; align-items:center; gap:8px; }
.inline-flex-center { display:inline-flex; vertical-align:middle; line-height:1; }
.icon-plus-accent { font-size:20px; color:#FFFF21; }

/* Filter card */
.filter-card { background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%); }
.filter-header { border-bottom:1px solid #e9ecef; padding-bottom:6px; }
.filter-label { color:#2A5773; font-size:0.85rem; margin-bottom:4px; }
.filter-label-icon { color:#5a9fd4; margin-right:4px; font-size:0.85rem; }
.filter-control { border:1px solid #dee2e6; border-radius:4px; padding:6px 8px; font-size:0.85rem; }
.col-min-120 { min-width:120px; }
.reset-btn { background-color:#f0f0f0; color:#333; border:1px solid #dee2e6; border-radius:4px; font-weight:500; padding:6px 12px; font-size:0.85rem; height:fit-content; }

/* Icon action buttons */
.icon-btn { border:none; padding:6px 8px; border-radius:4px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 4px rgba(0,0,0,.15); transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.icon-btn i { font-size:1rem; }
.btn-otp { background-color:#388e3c; }
.btn-activate { background-color:#4caf50; }
.btn-suspend { background-color:#ff9800; }
.btn-details { background-color:#2196f3; }
.btn-more-actions { background: linear-gradient(135deg,#1a2c3b,#2c4357); color:#fff; border-radius:6px !important; width:40px; }
.btn-more-actions i { font-size:1rem; }
.btn-more-actions:hover { background: linear-gradient(135deg,#162433,#243544); color:#fff; }

/* Darker hover states for action buttons */
.btn-otp:hover, .btn-otp:focus { background-color:#2e7d32; }
.btn-activate:hover, .btn-activate:focus { background-color:#3f8e45; }
.btn-suspend:hover, .btn-suspend:focus { background-color:#d17f00; }
.btn-details:hover, .btn-details:focus { background-color:#1d80d6; }
.icon-btn:hover, .icon-btn:focus { box-shadow:0 4px 8px rgba(0,0,0,.25); transform:translateY(-2px); }

/* Dropdown menu */
.dropdown-menu-custom { min-width:160px; border:1px solid #e0e4e8; border-radius:8px; padding:4px 0; z-index:2005; }
.dropdown-menu-header { font-weight:600; letter-spacing:.5px; }
.dropdown-icon { width:18px; text-align:center; }
.dropdown-icon.info { color:#5a9fd4; }
.dropdown-icon.compare { color:#9c27b0; }

/* Modal extracted styles */
.modal-icon-circle { width:46px; height:46px; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; }
.modal-icon-large { font-size:1.45rem; }
.section-divider { border-bottom:1px solid #e9ecef; padding-bottom:4px; }
.section-heading { letter-spacing:.5px; color:#2A5773; }
.confirm-text { font-size:.95rem; }
.alert-small { font-size:.8rem; }
.confirm-btn-activate { background:#2e7d32; color:#fff; font-weight:600; border:none; box-shadow:0 2px 4px rgba(0,0,0,.2); }
.confirm-btn-suspend { background:#c9302c; color:#fff; font-weight:600; border:none; box-shadow:0 2px 4px rgba(0,0,0,.2); }
/* Darker hover states for confirm buttons */
.confirm-btn-activate:hover, .confirm-btn-activate:focus { background:#255a26; }
.confirm-btn-suspend:hover, .confirm-btn-suspend:focus { background:#a82320; }

/* Dropend (More Actions) adjustments */
.actions-row { position: relative; justify-content: flex-start; }
.more-actions-group { position: relative; overflow: visible; }
.more-actions-group .dropdown-menu { z-index: 2000; }
/* Force dropend menu to open to the right side of trigger */
.btn-group.dropend .dropdown-menu { top: 0%!important;  right: auto!important; }
/* Improve overlap rendering above table cells */
/* Extend existing .responsive-scroll (defined earlier) without redefining selector */
.responsive-scroll.actions-row-context { position: relative; }
.responsive-scroll .dropdown-menu { position: absolute; }

.item-count-pill
 {
    display: inline-block;
    background: #f1f3f5;
    color: #333;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
/* --- Audit Logs Page Styles (extracted from auditlogs.html) --- */
.auditlogs-header-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auditlogs-header-icon {
  font-size: 1.9rem;
  color: var(--brand-yellow-1);
}
.auditlogs-header-subtitle {
  padding-top: 8px;
}
.auditlogs-search-icon {
  font-size: 16px;
  color: #2A5773;
  margin-right: 8px;
}
.auditlogs-search-title {
  color: #2A5773;
  font-weight: 600;
  font-size: 0.9rem;
}
.auditlogs-btn-apply,
.auditlogs-btn-reset,
.auditlogs-btn-export {
  font-size: 0.8rem;
  min-width: 100px;
}
.min-width-0 {
  min-width: 0;
}
/* Timeline styles */
.timeline-log {
  border-left: 4px solid #ffc107;
  background: #fff;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-radius: 0 8px 8px 0;
  transition: box-shadow 0.2s;
}
.timeline-log:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.timeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8f9fa;
  border-radius: 0 8px 0 0;
  padding: 0.75rem 1.25rem;
}
.timeline-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffe082;
  color: #856404;
  font-size: 1.3rem;
}
.timeline-body {
  padding: 1.25rem 1.5rem 1.5rem 2.5rem;
}
.timeline-badge {
  font-size: 0.95rem;
  padding: 0.4em 1em;
  border-radius: 1em;
}
.timeline-section {
  margin-bottom: 0.5rem;
}
.timeline-section strong {
  min-width: 90px;
  display: inline-block;
}
.timeline-meta {
  color: #888;
  font-size: 0.95em;
}
.timeline-fields pre,
.timeline-body-bordered pre {
  background: #f6f8fa;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.5em 0.75em;
}
.timeline-body {
  padding: 0;
}
.timeline-body-bordered .row > [class^="col-"],
.timeline-body-bordered .row > [class*=" col-"] {
  border-color: #e9ecef !important;
}
.timeline-body-bordered {
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #fff;
}
.timeline-body-bordered strong {
  font-weight: 600;
  color: #2A5773;
}
.timeline-body-bordered .text-break {
  word-break: break-all;
}
            .table-responsive {
                width: 100%;
                overflow-x: auto;
            }
            .app-table {
                min-width: 900px;
            }
            @media (max-width: 991.98px) {
                .app-table {
                    min-width: 700px;
                }
            }
            @media (max-width: 767.98px) {
                .app-table {
                    min-width: 600px;
                }
            }
