/* ECI shared interface, screen only. Print/export styles remain owned by each report. */
@media screen {
  :root {
    --eci-font: 'Tajawal', Tahoma, Arial, sans-serif;
    --eci-radius: 14px;
    --eci-space: 20px;
    --app-bg: #eef3f8;
    --app-bg-2: #f7f9fc;
    --text-main: #263b51;
    --text-strong: #142e4b;
    --text-muted: #52677d;
    --border-soft: #dce5ef;
    --shadow-card: 0 4px 18px rgba(22,47,76,.055);
    --shadow-soft: 0 8px 26px rgba(22,47,76,.07);
  }
  html[data-theme="dark"] {
    --text-main: #e2eaf5;
    --text-strong: #f5f8fc;
    --text-muted: #b1c0d3;
    --border-soft: #2b3d55;
  }
  body {
    font-family: var(--eci-font) !important;
    font-size: 17px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
  }
  button, input, select, textarea, .btn, .form-control, .form-select {
    font-family: var(--eci-font);
  }
  .dgrid-topbar { box-shadow: 0 3px 14px rgba(6,35,69,.15); }
  .dgrid-topbar .brand-name { font-size: 22px; letter-spacing: 0; }
  .dgrid-topbar .brand-subtitle { font-size: 13px; line-height: 1.5; }
  .dgrid-topbar .topbar-chip, .dgrid-topbar .topbar-action { font-size: 15px; min-height: 42px; }
  .dgrid-topbar .level-chip { font-size: 13px; }
  .dgrid-sidebar, .dashboard-hero, .metric-card, .load-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .eci-admin-menu { padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .dgrid-sidebar { padding: 16px 12px 24px; }
  .dgrid-sidebar .sidebar-section { margin-bottom: 16px; }
  .dgrid-sidebar .sidebar-label { font-size: 13px; line-height: 1.7; min-height: 28px; letter-spacing: 0; }
  .dgrid-sidebar .sidebar-nav-link { font-size: 16px; min-height: 46px; padding: 10px 12px; border-radius: 10px; }
  .dgrid-sidebar .sidebar-mini-badge { font-size: 12px; }
  .dgrid-sidebar .sidebar-nav-link:hover { transform: none; }
  html[data-theme="dark"] .sidebar-nav-link:hover { color: #d6e7ff; }
  .main-content { padding: 24px 22px 32px; }
  .main-content .content-shell { min-width: 0; }
  .main-content h1, .main-content .page-header h1 { font-size: 28px !important; font-weight: 800; line-height: 1.45; }
  .main-content h2 { font-size: 24px !important; font-weight: 800; line-height: 1.5; }
  .main-content h3 { line-height: 1.5; }
  .main-content h4, .main-content h5 { font-size: 20px; line-height: 1.5; }
  .main-content .page-header { margin-bottom: 20px; padding-bottom: 16px; }
  .main-content .card, .main-content .white-container { border-radius: var(--eci-radius); }
  .main-content .card-header { padding: 16px 18px; border-radius: var(--eci-radius) var(--eci-radius) 0 0; }
  .main-content .card-body { padding: 18px; }
  .main-content .btn { font-size: 16px; min-height: 42px; padding: 8px 14px; border-radius: 9px; line-height: 1.5; }
  .main-content .btn-sm { font-size: 15px; min-height: 36px; padding: 6px 11px; }
  .main-content .form-control, .main-content .form-select { font-size: 16px; min-height: 44px; border-radius: 9px; }
  .main-content .form-label, .main-content label { line-height: 1.6; }
  .main-content .form-label { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
  .main-content .input-group > .form-control { min-width: 0; }
  .main-content table.table { font-size: 16px; margin-bottom: 0; }
  .main-content table.table > :not(caption) > * > * { padding: 12px 14px; vertical-align: middle; line-height: 1.55; }
  .main-content table.table thead th { font-weight: 800; }
  .main-content table.table td small, .main-content table.table .small { font-size: 14px; }
  .main-content .table-responsive { max-width: 100%; border-radius: 11px; overscroll-behavior-inline: contain; }
  .main-content .badge { font-size: 13px; line-height: 1.45; }
  .main-content .pagination .page-link { font-size: 16px; min-width: 39px; min-height: 39px; }
  .system-footer .footer-copy, .system-footer .brand-text { font-size: 14px !important; }
  .main-content .monthly-table { font-size: 16px !important; }
  .main-content .monthly-table th, .main-content .monthly-table td { padding: 11px 13px; line-height: 1.6; }
  .main-content .monthly-form label, .main-content .monthly-form input,
  .main-content .monthly-form select, .main-content .monthly-button,
  .main-content .monthly-tabs button { font-size: 16px !important; }
  .main-content .monthly-note, .main-content .monthly-breadcrumb,
  .main-content .monthly-selected-description, .main-content .monthly-toolbar p,
  .main-content .monthly-stats span { font-size: 14px !important; }
  .main-content .monthly-heading h2, .main-content .monthly-toolbar h2 { font-size: 20px !important; }
  .main-content .monthly-banner { border-radius: 14px; }
  .main-content .monthly-banner p { font-size: 16px; }
  :where(input,select,textarea,button,a):focus-visible { outline: 3px solid #3a89da; outline-offset: 3px; }
  .login-card input, .login-card button { min-height: 46px; font-size: 17px; }
  body > header .actions button { font-size: 16px; min-height: 44px; }
  body > header h1 { font-size: 28px; line-height: 1.45; }
  body > main .muted, body > main .pill, body > main .state-chip { font-size: 15px; }
  @media (max-width: 991.98px) {
    .main-content, body.sidebar-collapsed .main-content { padding: 18px 14px 28px; }
    .main-content h1 { font-size: 25px !important; }
    .main-content h2 { font-size: 22px !important; }
    .main-content .card-body { padding: 15px; }
  }
  @media (max-width: 575.98px) {
    .dgrid-topbar .topbar-action { min-height: 39px; }
    .main-content { padding-inline: 10px !important; }
    .main-content .table-responsive { overflow-x: auto; }
    .main-content table.table { font-size: 16px; }
    .main-content table.table > :not(caption) > * > * { padding: 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .dgrid-sidebar, .main-content, .sidebar-nav-link, .topbar-action { transition: none !important; }
  }
}
