/* css/app.css - Medical Stock Monitor additions using theme variables only */

/* Brand header styling: ensure app name is never clipped or truncated on desktop */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: max-content;
  cursor: pointer;
  user-select: none;
}
.brand b {
  font-size: 15px;
  font-weight: 700;
  display: block;
  line-height: 1.35;
  white-space: nowrap;
  overflow: visible;
  padding-block: 1px;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
  display: block;
  line-height: 1.3;
  white-space: nowrap;
}

/* Side rail navigation & divider styles */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
  border: 0;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .side-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .side-divider {
    width: 1px;
    height: 22px;
    margin: 0 4px;
    align-self: center;
  }
}

/* Progress bar fill within .prog */
.prog {
  position: relative;
  width: 100%;
  min-width: 60px;
}
.prog > .fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.prog > .fill.p-ok { background: var(--ok); }
.prog > .fill.p-warn { background: var(--warn); }
.prog > .fill.p-bad { background: var(--bad); }
.prog > .fill.p-blue { background: var(--blue); }

/* Expandable batch rows in tables */
tr.parent-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
tr.parent-row:hover {
  background: var(--surface2);
}
tr.batch-row {
  background: var(--surface2);
  font-size: 12.5px;
}
tr.batch-row td {
  padding-block: 6px;
  border-top: 1px dashed var(--line);
  color: var(--fg2);
}
.row-caret {
  display: inline-block;
  transition: transform 0.2s ease;
  width: 14px;
  text-align: center;
  color: var(--muted);
}
tr.expanded .row-caret {
  transform: rotate(90deg);
}

/* Side modal / drawer for item details */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 21, 37, 0.45);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  width: 540px;
  max-width: 92vw;
  height: 100%;
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] .drawer {
  transform: translateX(-100%);
}
.drawer-backdrop.open .drawer {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* Print banner container (hidden on screen) */
.print-only {
  display: none;
}

/* Chart container helpers */
.chart-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   PORTAL HOME PAGE STYLING (THEME VARIABLES ONLY)
   ========================================================================== */
.home-wrapper,
.portal-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}

/* Dual Soft Radial Gradient Background Layer */
.portal-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.portal-bg-effects::before {
  content: '';
  position: absolute;
  width: 550px;
  height: 380px;
  top: -40px;
  right: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 72%);
  opacity: 0.35;
  filter: blur(50px);
}
.portal-bg-effects::after {
  content: '';
  position: absolute;
  width: 550px;
  height: 380px;
  top: 60px;
  left: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft) 0%, transparent 72%);
  opacity: 0.35;
  filter: blur(50px);
}

/* Centered Hero Section */
.portal-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-logo-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 64px;
}
.portal-logo-img {
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
}
.portal-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(232, 89, 12, 0.25);
}

.portal-company-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.portal-company-subtitle {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 680px;
  line-height: 1.5;
}

.portal-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg2, var(--text));
  box-shadow: var(--shadow);
}
.portal-status-chip .dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  flex-shrink: 0;
}
.portal-chip-sep {
  color: var(--line2);
  margin: 0 2px;
}

/* Department Cards Grid */
.cards-grid,
.portal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 32px;
}

.portal-dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
  min-height: 290px;
}

@media (prefers-reduced-motion: reduce) {
  .portal-dept-card {
    transition: none !important;
  }
}

.portal-dept-card.interactive {
  cursor: pointer;
}
.portal-dept-card.interactive:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.portal-dept-card.interactive:hover .portal-icon-tile {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.portal-dept-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.portal-icon-tile {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 14px;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}

.portal-dept-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.portal-dept-tagline {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 10px;
}

.portal-dept-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

/* Mini stats row (Lab only) */
.portal-mini-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  width: 100%;
}
.portal-mini-pills .pill {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

/* Card bottom area */
.portal-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.portal-update-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.portal-update-chip .dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.portal-open-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.portal-open-link .portal-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
[dir="rtl"] .portal-open-link .portal-arrow {
  transform: scaleX(1);
}
.portal-dept-card.interactive:hover .portal-open-link .portal-arrow {
  transform: translateX(-3px);
}
[dir="ltr"] .portal-dept-card.interactive:hover .portal-open-link .portal-arrow {
  transform: translateX(3px);
}

/* Location filter fields */
.fld select.clinics-loc-select { min-width: 220px; max-width: 100%; }
.card .body > .fbar { background: var(--surface2); }
@media (max-width: 860px) {
  .fld-location { width: 100%; }
  .fld select.clinics-loc-select { width: 100% !important; max-width: 100% !important; }
}

/* ==========================================================================
   AUTHENTICATION & LOGIN PAGE
   ========================================================================== */
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  position: relative;
}

.login-top-bar {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.login-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.login-logo-holder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.login-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  background: var(--surface2);
}

.login-app-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.login-app-company {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.login-card {
  width: 100%;
  padding: 28px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.login-card-header {
  margin-bottom: 20px;
}

.login-card-header h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.login-card-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.login-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: var(--bad);
  font-size: 13px;
  line-height: 1.4;
}

.login-form {
  display: grid;
  gap: 16px;
}

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

.login-pw-wrapper input {
  width: 100%;
  padding-inline-end: 40px;
}

.login-pw-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.login-pw-toggle:hover {
  color: var(--text);
}

.login-submit-btn {
  width: 100%;
  margin-top: 8px;
  padding-block: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   TOP BAR USER MENU & DROPDOWN
   ========================================================================== */
.user-menu-wrap {
  position: relative;
  margin-inline-start: 4px;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: all 0.15s ease;
}

.user-menu-btn:hover {
  background: var(--surface2);
  border-color: var(--line2);
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.user-menu-name {
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-pill {
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 10px;
}

.user-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.user-menu-btn[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  padding: 6px;
  animation: dropdownFade 0.15s ease;
}

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

.user-dropdown-header {
  padding: 8px 10px;
}

.user-dropdown-user {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.user-dropdown-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.user-dropdown-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  text-align: start;
  transition: background 0.12s ease;
}

.user-dropdown-item:hover {
  background: var(--surface2);
}

.user-dropdown-item.danger {
  color: var(--bad);
}

.user-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  animation: modalFade 0.18s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

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

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

.modal-close-btn {
  color: var(--muted);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line2);
}

/* ==========================================================================
   USERS TABLE & BADGES
   ========================================================================== */
.user-action-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 11.5px;
}

.btn.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--bad);
  border-color: rgba(239, 68, 68, 0.25);
}

.btn.danger:hover {
  background: var(--bad);
  color: #fff;
}

.user-dept-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dept-chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   REPORTS SECTION STYLES
   ========================================================================== */

/* Catalog Cards */
.report-catalog-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.report-catalog-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Parameters Toolbar (.report-params-bar) */
.report-params-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
}

.report-param-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.report-param-group label {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.report-presets-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.report-preset-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.report-preset-btn:hover {
  background: var(--surface2);
  border-color: var(--line2);
}

.report-preset-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.report-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

/* A4 Document Sheet on Screen (Always Pure White even in dark mode) */
.report-doc-wrapper {
  padding: 0 10px;
}

.report-doc-sheet {
  background: #ffffff !important;
  color: #0e1525 !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 36px 42px;
  margin: 10px auto 40px auto;
  max-width: 1100px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
  transition: max-width 0.2s ease;
}

.report-doc-sheet.landscape {
  max-width: 1280px;
  padding: 28px 32px;
}

/* Ensure text inside sheet stays dark in dark mode */
.report-doc-sheet h1,
.report-doc-sheet h2,
.report-doc-sheet h3,
.report-doc-sheet h4,
.report-doc-sheet p,
.report-doc-sheet span:not(.pill),
.report-doc-sheet b,
.report-doc-sheet strong,
.report-doc-sheet td,
.report-doc-sheet th {
  color: #0e1525;
}

.report-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid #0e1525;
  margin-bottom: 18px;
}

.report-doc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-doc-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.report-doc-company-title {
  font-size: 18px;
  font-weight: 700;
  color: #0e1525 !important;
  margin: 0 0 2px 0;
}

.report-doc-report-title {
  font-size: 20px;
  font-weight: 800;
  color: #0e1525 !important;
  margin: 0;
}

.report-doc-meta-badge {
  text-align: end;
}

.report-doc-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 12px;
}

.report-doc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-doc-meta-label {
  color: #64748b !important;
  font-size: 11px;
}

.report-doc-meta-val {
  color: #0e1525 !important;
  font-weight: 700;
}

/* KPI Tiles Grid inside Report Document */
.report-doc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.report-kpi-box {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.report-kpi-box .report-kpi-label {
  font-size: 11px;
  color: #64748b !important;
  margin-bottom: 4px;
}

.report-kpi-box .report-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #0e1525 !important;
  line-height: 1.2;
}

/* Charts Inside Report Document */
.report-doc-chart-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
  height: 260px;
}

/* Tables inside Report Document: no inner scrollbars, header repeats, clean print */
.report-doc-table-wrap {
  margin-bottom: 24px;
  width: 100% !important;
  overflow: visible !important;
}

.report-doc-tbl {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.report-doc-tbl th,
.report-doc-tbl td {
  padding: 5px 6px !important;
  border: 1px solid #cbd5e1 !important;
  text-align: start;
  vertical-align: middle;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.report-doc-tbl th {
  background: #f1f5f9 !important;
  color: #0e1525 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

.report-doc-tbl th {
  background: #f1f5f9 !important;
  color: #0e1525 !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.report-doc-tbl thead {
  display: table-header-group !important;
}

.report-doc-tbl tr {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.report-doc-tbl tr:nth-child(even) td {
  background: #fcfcfd;
}

/* Footer of Report Document */
.report-doc-footer {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b !important;
}

/* Print Enhancements for Report Document */
@media print {
  body {
    background: #ffffff !important;
  }
  
  .report-params-bar,
  .report-top-nav,
  .rail-home-btn,
  #dept-side-rail,
  header.top {
    display: none !important;
  }

  .report-doc-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
}



