﻿/* Shared stylesheet generated from inline page styles. */

/* Identical CSS rules are kept once; page-specific rules are scoped with body.page-* classes. */



/* Shared rules */

:root {
      --primary: #008060;
      --primary-dark: #006E60;
      --primary-darker: #005050;
      --primary-light: #5FAE9C;
      --primary-soft: rgba(0, 128, 96, 0.05);
      --gold: #C09030;
      --gold-dark: #B08020;
      --gold-light: #D0A040;
      --gold-soft: rgba(192, 144, 48, 0.1);
      --white: #FFFFFF;
      --bg: #F4F6F8;
      --sidebar-bg: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
      --navbar-bg: #FFFFFF;
      --card-bg: #FFFFFF;
      --border: #E5E7EB;
      --text-dark: #1F2937;
      --text-muted: #6B7280;
      --success: #008060;
      --danger: #DC3545;
      --warning: #F59E0B;
      --info: #3B82F6;
      --radius-lg: 14px;
      --radius-md: 10px;
      --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
      --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
      --sidebar-width: 270px;
    }

body {
      font-family: 'Tajawal', sans-serif;
      background-color: var(--bg);
      color: var(--text-dark);
      min-height: 100vh;
      overflow-x: hidden;
      margin: 0;
      padding: 0;
    }

.page-loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(--white);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.4s ease-out;
    }
.text-primary {
      color: var(--primary) !important;
}
.bg-warning {
  color: white !important;
}
.main-sidebar {
      width: var(--sidebar-width);
      background: var(--sidebar-bg);
      height: 100vh;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 1010;
      transition: var(--transition-smooth);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
      overflow-x: hidden;
      overflow-y: hidden;
    }

.sidebar-menu-wrapper {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
    }

.sidebar-menu {
      list-style: none;
      padding: 0;
      margin: 0;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(208, 160, 64, 0.55) rgba(255, 255, 255, 0.08);
    }

.sidebar-menu::-webkit-scrollbar {
      width: 7px;
    }

.sidebar-menu::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.06);
      border-radius: 999px;
    }

.sidebar-menu::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
      border-radius: 999px;
      border: 2px solid rgba(0, 80, 80, 0.72);
    }

.sidebar-menu::-webkit-scrollbar-thumb:hover {
      background: var(--gold-light);
    }

.sidebar-brand-logo {
      height: 134px;
      padding-bottom: 9px;
      object-fit: contain;
      filter: drop-shadow(2px 4px 6px black);
      transition: var(--transition-smooth);
      border-bottom: 1px solid #a19a9a;
      margin-top: 10px;
      margin-bottom: 10px;
}

.sidebar-item-link {
      display: flex;
      align-items: center;
      padding: 0.9rem 1.5rem;
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      font-weight: 500;
      gap: 1rem;
      border-right: 4px solid transparent;
      transition: var(--transition-smooth);
      white-space: nowrap;
    }

.sidebar-item-link i {
      font-size: 1.25rem;
      width: 24px;
      text-align: center;
      color: rgba(255, 255, 255, 0.6);
    }

.sidebar-item-link:hover {
      color: var(--white);
      background-color: rgba(255, 255, 255, 0.05);
      border-right-color: var(--primary-light);
    }

.sidebar-item-link.active {
      color: var(--white);
      background-color: rgba(255, 255, 255, 0.08);
      border-right-color: var(--gold);
      font-weight: 700;
    }

.sidebar-item-link.active i {
      color: var(--gold);
    }

.sidebar-item {
      list-style: none;
    }

.sidebar-group-toggle {
      width: 100%;
      background: transparent;
      border: 0;
      text-align: start;
      cursor: pointer;
    }

.sidebar-group-toggle .sidebar-group-chevron {
      margin-inline-start: auto;
      font-size: 0.85rem;
      transition: transform .2s ease;
      color: rgba(255, 255, 255, 0.55);
    }

.sidebar-group-toggle[aria-expanded="true"] .sidebar-group-chevron {
      transform: rotate(180deg);
      color: var(--gold);
    }

.sidebar-submenu {
      margin-inline-start: 0.65rem;
      padding-inline-start: 0.5rem;
      border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
    }

.sidebar-submenu-link {
      padding-inline-start: 2.65rem;
      font-size: 0.95rem;
      opacity: 0.94;
    }

.sidebar-submenu-link i {
      font-size: 1rem;
      width: 20px;
      color: rgba(255, 255, 255, 0.48);
    }

.sidebar-footer {
      padding: 1.25rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      background-color: rgba(0, 0, 0, 0.1);
    }

.btn-sidebar-logout {
      width: 100%;
      min-height: 48px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, rgba(220, 53, 69, 0.18), rgba(192, 144, 48, 0.12));
      color: var(--white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      font-weight: 700;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.14);
      cursor: pointer;
      transition: var(--transition-smooth);
    }

.btn-sidebar-logout i {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(220, 53, 69, 0.22);
      color: #FFD8DD;
      transition: var(--transition-smooth);
    }

.btn-sidebar-logout:hover {
      border-color: rgba(255, 216, 221, 0.45);
      background: linear-gradient(135deg, rgba(220, 53, 69, 0.28), rgba(192, 144, 48, 0.2));
      color: var(--white);
      transform: translateY(-1px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.2);
    }

.btn-sidebar-logout:hover i {
      background-color: var(--danger);
      color: var(--white);
      transform: rotate(-8deg);
    }

.btn-sidebar-logout:focus-visible {
      outline: 3px solid rgba(208, 160, 64, 0.45);
      outline-offset: 3px;
    }

.main-navbar {
      background-color: var(--white);
      height: 70px;
      position: fixed;
      top: 0;
      right: var(--sidebar-width);
      left: 0;
      z-index: 1000;
      box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      padding: 0 2rem;
      justify-content: space-between;
      transition: var(--transition-smooth);
      border-bottom: 1px solid var(--border);
      gap: 1rem;
    }

.navbar-actions {
      flex-wrap: wrap;
      justify-content: flex-end;
    }

.nav-action-btn {
      background: var(--bg);
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-dark);
      position: relative;
      cursor: pointer;
      transition: var(--transition-smooth);
    }

.nav-action-btn:hover {
      background-color: var(--border);
      color: var(--primary-dark);
      transform: translateY(-1px);
    }

.badge-pulse {
      position: absolute;
      top: 2px;
      right: 2px;
      background-color: var(--danger);
      color: white;
      border-radius: 50%;
      font-size: 0.65rem;
      width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--white);
    }

.user-profile-widget {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding-right: 1rem;
      border-right: 1.5px solid var(--border);
    }

.user-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background-color: var(--primary);
      border: 2.5px solid rgba(0, 128, 96, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--white);
      box-shadow: var(--shadow);
    }

.user-meta {
      line-height: 1.3;
    }

.user-name {
      font-weight: 700;
      font-size: 0.85rem;
      color: var(--text-dark);
    }

.user-role {
      font-size: 0.72rem;
      color: var(--white);
      background-color: var(--gold);
      padding: 2px 8px;
      border-radius: 50px;
      font-weight: 700;
    }

.content-area {
      margin-right: var(--sidebar-width);
      margin-top: 70px;
      padding: 2rem 2.5rem;
      transition: var(--transition-smooth);
      animation: fadeIn 0.5s ease-out;
    }

body.sidebar-collapsed {
      --sidebar-width: 76px;
    }

body.sidebar-collapsed .sidebar-brand-logo {
      height: 70px;
      padding: 0.5rem;
    }

body.sidebar-collapsed .sidebar-item-link {
      padding: 1rem 0;
      justify-content: center;
      border-right-width: 0;
      border-left: 4px solid transparent;
    }

body.sidebar-collapsed .sidebar-item-link:hover,
    body.sidebar-collapsed .sidebar-item-link.active {
      border-left-color: var(--gold);
      border-right-color: transparent;
    }

body.sidebar-collapsed .sidebar-item-link span {
      display: none;
    }

body.sidebar-collapsed .btn-sidebar-logout span {
      display: none;
    }

body.sidebar-collapsed .btn-sidebar-logout {
      padding: 0.8rem 0;
      justify-content: center;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      margin: 0 auto;
    }

@keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

@media (max-width: 991.98px) {
      :root {
        --sidebar-width: 0px;
      }

      .content-area {
        padding: 1.5rem 1rem;
      }

      .main-sidebar {
        display: none;
      }
    }

.card-custom {
      background-color: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      box-shadow: var(--shadow);
      margin-bottom: 1.5rem;
    }

.table-responsive-custom {
      overflow-x: auto;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
    }

.table-custom {
      width: 100%;
      margin-bottom: 0;
      vertical-align: middle;
      border-collapse: separate;
      border-spacing: 0;
    }

.table-custom tbody tr:hover td {
      background-color: rgba(0, 128, 96, 0.02);
    }

.custom-dialog-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 2050;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(4px);
    }

.custom-dialog-box {
      background-color: var(--white);
      border-radius: var(--radius-lg);
      width: 90%;
      max-width: 450px;
      padding: 1.75rem;
      box-shadow: var(--shadow-md);
      animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

@keyframes popIn {
      from {
        transform: scale(0.95);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

.dialog-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

.offcanvas-sidebar {
      width: 270px !important;
      background: var(--sidebar-bg);
      color: var(--white);
    }

.offcanvas-body {
      overflow-y: auto;
      min-height: 0;
      scrollbar-width: thin;
      scrollbar-color: rgba(208, 160, 64, 0.55) rgba(255, 255, 255, 0.08);
    }

.offcanvas-body::-webkit-scrollbar {
      width: 7px;
    }

.offcanvas-body::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.06);
      border-radius: 999px;
    }

.offcanvas-body::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
      border-radius: 999px;
      border: 2px solid rgba(0, 80, 80, 0.72);
    }

.offcanvas-body::-webkit-scrollbar-thumb:hover {
      background: var(--gold-light);
    }

.offcanvas-header {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      background-color: var(--primary-darker);
      justify-content: center;
      position: relative;
    }

.offcanvas-header .sidebar-brand-logo {
      width: 100%;
      height: 70px;
      border-bottom: 0;
    }

.offcanvas-header .btn-close {
      position: absolute;
      left: 1rem;
    }

.sidebar-item-link i {
      font-size: 1.25rem;
      width: 24px;
      text-align: center;
      color: rgba(255, 255, 255, 0.6);
      transition: var(--transition-smooth);
    }

.sidebar-item-link:hover i {
      color: var(--gold-light);
      transform: scale(1.1);
    }

.page-header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

.page-title-main {
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--primary-darker);
      margin-bottom: 0.25rem;
    }

.breadcrumb-custom {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      list-style: none;
      padding: 0;
      margin: 0;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

.breadcrumb-custom a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
    }

.breadcrumb-custom i {
      font-size: 0.75rem;
    }

.badge-status-danger {
      background-color: rgba(220, 53, 69, 0.12);
      color: var(--danger);
    }

.badge-status-warning {
      background-color: rgba(245, 158, 11, 0.12);
      color: var(--warning);
    }

.badge-status-success {
      background-color: rgba(0, 128, 96, 0.12);
      color: var(--success);
    }

.custom-dialog-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1050;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(4px);
    }

:root {
      --primary: #008060;
      --primary-dark: #006E60;
      --primary-darker: #005050;
      --primary-light: #5FAE9C;
      --primary-soft: rgba(0, 128, 96, 0.05);
      --gold: #C09030;
      --gold-dark: #B08020;
      --gold-light: #D0A040;
      --white: #FFFFFF;
      --bg: #F3F4F6;
      --sidebar-bg: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
      --navbar-bg: #FFFFFF;
      --card-bg: #FFFFFF;
      --border: #E5E7EB;
      --text-dark: #1F2937;
      --text-muted: #6B7280;
      --success: #008060;
      --danger: #DC3545;
      --warning: #F59E0B;
      --info: #3B82F6;
      --radius-lg: 14px;
      --radius-md: 10px;
      --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
      --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
      --sidebar-width: 270px;
    }

.nav-action-btn:hover {
      background-color: var(--border);
      color: var(--primary-dark);
    }

.form-control-custom,
    .form-select-custom {
      height: 44px;
      border-radius: var(--radius-md);
      border: 1.5px solid var(--border);
      font-size: 0.88rem;
      font-weight: 500;
      outline: none;
      transition: var(--transition-smooth);
    }

.form-control-custom:focus,
    .form-select-custom:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
    }

.table-custom th {
      background-color: var(--primary-soft);
      color: var(--primary-darker);
      font-weight: 700;
      font-size: 0.85rem;
      padding: 1rem;
      border-bottom: 2px solid var(--border);
      white-space: nowrap;
    }

.table-custom td {
      padding: 1rem;
      font-size: 0.88rem;
      border-bottom: 1px solid var(--border);
      color: var(--text-dark);
    }

.btn-premium {
      height: 44px;
      padding: 0 1.25rem;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      transition: var(--transition-smooth);
      cursor: pointer;
      border: none;
    }

.btn-print {
      background-color: var(--gold-soft);
      color: var(--gold-dark);
      border: 1px solid rgba(192, 144, 48, 0.2);
    }

.btn-print:hover {
      background-color: var(--gold);
      color: var(--white);
    }

@media print {
      body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
      }

      .main-sidebar,
      .main-navbar,
      .no-print,
      #desktopSidebar {
        display: none !important;
      }

      .content-area {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
      }

      .card-custom {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
      }
    }

.badge-status {
      font-weight: 700;
      font-size: 0.72rem;
      padding: 0.35rem 0.75rem;
      border-radius: 50px;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }


/* Page-specific rules: attendance.html */

body.page-attendance .upload-drag-card,
body.page-permissions .upload-drag-card {
      background-color: var(--white);
      border: 2px dashed rgba(0, 128, 96, 0.3);
      border-radius: var(--radius-lg);
      padding: 2.5rem 1.5rem;
      text-align: center;
      transition: var(--transition-smooth);
      cursor: pointer;
      position: relative;
    }

body.page-attendance .upload-drag-card:hover,
body.page-permissions .upload-drag-card:hover,
body.page-attendance .upload-drag-card.drag-over,
body.page-permissions .upload-drag-card.drag-over {
      border-color: var(--primary);
      background-color: var(--primary-soft);
    }

body.page-attendance .upload-drag-card:hover .upload-icon,
body.page-permissions .upload-drag-card:hover .upload-icon {
      transform: translateY(-5px);
      color: var(--primary);
    }

body.page-attendance .upload-icon,
body.page-permissions .upload-icon {
      font-size: 3rem;
      color: var(--primary-light);
      margin-bottom: 1rem;
      transition: var(--transition-smooth);
    }

body.page-attendance .table-custom th {
      background-color: var(--primary-soft);
      color: var(--primary-darker);
      font-weight: 700;
      font-size: 0.85rem;
      padding: 1.1rem 1rem;
      border-bottom: 2px solid var(--border);
      white-space: nowrap;
    }

body.page-attendance .table-custom td {
      padding: 1.1rem 1rem;
      font-size: 0.88rem;
      border-bottom: 1px solid var(--border);
      transition: var(--transition-smooth);
    }

body.page-attendance .badge-status {
      font-weight: 700;
      font-size: 0.72rem;
      padding: 0.4rem 0.8rem;
      border-radius: 50px;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

body.page-attendance .badge-status-present {
      background-color: rgba(0, 128, 96, 0.12);
      color: var(--primary);
    }

body.page-attendance .badge-status-absent {
      background-color: rgba(220, 53, 69, 0.12);
      color: var(--danger);
    }

body.page-attendance .badge-status-late {
      background-color: rgba(245, 158, 11, 0.15);
      color: var(--warning);
    }

body.page-attendance .badge-status-permit {
      background-color: rgba(59, 130, 246, 0.12);
      color: var(--info);
    }

body.page-attendance .clickable-reason-cell {
      cursor: pointer;
      padding: 4px 8px !important;
      border-radius: var(--radius-md);
      transition: var(--transition-smooth);
      background-color: #FFF5F5;
      border: 1px dashed rgba(220, 53, 69, 0.3);
      font-weight: 700;
      font-size: 0.8rem;
      color: var(--danger);
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

body.page-attendance .clickable-reason-cell:hover {
      background-color: #FFE3E3;
      border-color: var(--danger);
    }

body.page-attendance .reason-assigned {
      background-color: #F0FFF4;
      border: 1px solid rgba(0, 128, 96, 0.2);
      color: var(--primary);
      font-weight: 500;
    }

body.page-permissions .leave-policy-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(0, 128, 96, 0.08);
      color: var(--primary-darker);
      font-weight: 700;
      font-size: 0.92rem;
    }

body.page-permissions .leave-notes-cell {
      max-width: 280px;
      white-space: normal;
    }

body.page-attendance .attendance-collapse,
body.page-permissions .attendance-collapse {
      display: none;
    }

body.page-attendance .attendance-collapse.show,
body.page-permissions .attendance-collapse.show {
      display: block;
    }

body.page-attendance .hp-collapse-toggle {
      min-width: 38px;
      height: 38px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--primary-darker);
    }


/* Page-specific rules: dashboard.html */

body.page-dashboard {
      --primary: #008060;
      --primary-dark: #006E60;
      --primary-darker: #005050;
      --primary-light: #5FAE9C;
      --primary-soft: rgba(0, 128, 96, 0.05);
      --gold: #C09030;
      --gold-dark: #B08020;
      --gold-light: #D0A040;
      --gold-soft: rgba(192, 144, 48, 0.1);
      --white: #FFFFFF;
      --bg: #F4F6F8;
      --sidebar-bg: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
      --navbar-bg: #FFFFFF;
      --card-bg: #FFFFFF;
      --border: #E5E7EB;
      --text-dark: #1F2937;
      --text-muted: #6B7280;
      --success: #008060;
      --danger: #DC3545;
      --warning: #F59E0B;
      --info: #3B82F6;
      --radius-lg: 14px;
      --radius-md: 10px;
      --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
      --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

      /* Responsive variable for sidebar width control */
      --sidebar-width: 270px;
    }

body.page-dashboard .filter-period-dropdown {
      background-color: var(--white);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      padding: 0.6rem 1.25rem;
      font-weight: 700;
      font-size: 0.88rem;
      color: var(--text-dark);
      cursor: pointer;
      transition: var(--transition-smooth);
      outline: none;
      box-shadow: var(--shadow);
    }

body.page-dashboard .filter-period-dropdown:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
    }

body.page-dashboard .stat-card-wrapper {
      background-color: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      padding: 1.5rem;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: var(--transition-smooth);
    }

body.page-dashboard .stat-card-wrapper:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
    }

body.page-dashboard .stat-card-data {
      display: flex;
      flex-direction: column;
    }

body.page-dashboard .stat-card-label {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
    }

body.page-dashboard .stat-card-value {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--text-dark);
      line-height: 1;
      margin-bottom: 0.5rem;
    }

body.page-dashboard .stat-card-change {
      font-size: 0.78rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

body.page-dashboard .stat-change-up {
      color: var(--success);
    }

body.page-dashboard .stat-change-down {
      color: var(--danger);
    }

body.page-dashboard .stat-card-icon-box {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      flex-shrink: 0;
    }

body.page-dashboard .accent-teal {
      border-right: 4px solid var(--primary-light);
    }

body.page-dashboard .accent-teal .stat-card-icon-box {
      background-color: rgba(95, 174, 156, 0.1);
      color: var(--primary-dark);
    }

body.page-dashboard .accent-green {
      border-right: 4px solid var(--success);
    }

body.page-dashboard .accent-green .stat-card-icon-box {
      background-color: rgba(0, 128, 96, 0.1);
      color: var(--success);
    }

body.page-dashboard .accent-red {
      border-right: 4px solid var(--danger);
    }

body.page-dashboard .accent-red .stat-card-icon-box {
      background-color: rgba(220, 53, 69, 0.1);
      color: var(--danger);
    }

body.page-dashboard .accent-yellow {
      border-right: 4px solid var(--warning);
    }

body.page-dashboard .accent-yellow .stat-card-icon-box {
      background-color: rgba(245, 158, 11, 0.15);
      color: var(--warning);
    }

body.page-dashboard .chart-panel-card {
      background-color: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      padding: 1.5rem;
      box-shadow: var(--shadow);
      margin-bottom: 1.5rem;
      height: 100%;
    }

body.page-dashboard .chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border);
    }

body.page-dashboard .chart-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--primary-darker);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

body.page-dashboard .dashboard-table-card {
      background-color: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      padding: 1.5rem;
      box-shadow: var(--shadow);
      margin-bottom: 1.5rem;
    }

body.page-dashboard .table-custom th {
      background-color: var(--primary-soft);
      color: var(--primary-darker);
      font-weight: 700;
      font-size: 0.85rem;
      padding: 1rem;
      border-bottom: 1.5px solid var(--border);
      white-space: nowrap;
    }

body.page-dashboard .table-custom td {
      padding: 1rem;
      font-size: 0.88rem;
      border-bottom: 1px solid var(--border);
      transition: var(--transition-smooth);
    }

body.page-dashboard .row-severity-high {
      background-color: rgba(220, 53, 69, 0.04) !important;
    }

body.page-dashboard .row-severity-warning {
      background-color: rgba(245, 158, 11, 0.03) !important;
    }

body.page-dashboard .badge-status-custom {
      font-weight: 700;
      font-size: 0.72rem;
      padding: 0.35rem 0.75rem;
      border-radius: 50px;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

body.page-dashboard .btn-table-action {
      border: none;
      background-color: var(--gold-soft);
      color: var(--gold-dark);
      font-weight: 700;
      font-size: 0.78rem;
      padding: 0.45rem 0.9rem;
      border-radius: var(--radius-md);
      transition: var(--transition-smooth);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

body.page-dashboard .btn-table-action:hover {
      background-color: var(--gold);
      color: var(--white);
      transform: translateY(-1px);
    }

body.page-dashboard .dialog-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--danger);
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

body.page-dashboard .offcanvas-body {
      scrollbar-width: thin;
      scrollbar-color: rgba(208, 160, 64, 0.55) rgba(255, 255, 255, 0.08);
    }


/* Page-specific rules: forms.html */

body.page-forms .form-label-custom {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 0.4rem;
    }
.btnCVS {
      font-weight: bold;
      border: none;
      border-radius: 8px;
      padding: 10px 20px;
}
body.page-forms .btn-save,.btnCVS {
      background-color: var(--primary);
      color: var(--white);
    }

body.page-forms .btn-save:hover,.btnCVS:hover {
      background-color: var(--primary-dark);
      color: white !important;
    }

body.page-forms .btn-pdf {
      background-color: rgba(220, 53, 69, 0.1);
      color: var(--danger);
      border: 1px solid rgba(220, 53, 69, 0.2);
    }

body.page-forms .btn-pdf:hover {
      background-color: var(--danger);
      color: var(--white);
    }


/* Page-specific rules: inquiries.html */

body.page-inquiries .type-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.25rem;
      cursor: pointer;
      transition: var(--transition-smooth);
      background-color: var(--white);
      height: 100%;
      position: relative;
      overflow: hidden;
    }

body.page-inquiries .type-card:hover {
      border-color: var(--primary);
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
    }

body.page-inquiries .type-card::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 4px;
      height: 100%;
      background-color: var(--gold);
    }

body.page-inquiries .type-card.active {
      border-color: var(--primary);
      background-color: var(--primary-soft);
    }

body.page-inquiries .signature-pad-container {
      border: 2px dashed var(--border);
      border-radius: var(--radius-md);
      padding: 1rem;
      background-color: #FAFAFA;
      text-align: center;
      cursor: pointer;
      transition: var(--transition-smooth);
    }

body.page-inquiries .signature-pad-container:hover {
      border-color: var(--primary);
    }

body.page-inquiries .signature-line {
      font-family: 'Dancing Script', cursive, sans-serif;
      font-size: 1.5rem;
      color: var(--primary-darker);
      border-bottom: 1.5px solid var(--primary-light);
      display: inline-block;
      padding: 0 2rem;
      min-width: 150px;
    }

body.page-inquiries .modal-header {
      background-color: var(--primary-soft);
      color: var(--primary-darker);
      border-bottom: 1.5px solid var(--border);
    }

body.page-inquiries .modal-footer {
      border-top: 1px solid var(--border);
    }


/* Page-specific rules: login.html */

body.page-login {
            --primary: #008060;
            --primary-dark: #006E60;
            --primary-darker: #005050;
            --primary-light: #5FAE9C;
            --primary-soft: rgba(0, 128, 96, 0.06);
            --gold: #C09030;
            --gold-dark: #B08020;
            --gold-light: #D0A040;
            --gold-soft: rgba(192, 144, 48, 0.1);
            --white: #FFFFFF;
            --bg: #F9FAFB;
            --gray-100: #F3F4F6;
            --gray-200: #E5E7EB;
            --gray-400: #9CA3AF;
            --gray-500: #6B7280;
            --text-dark: #111827;
            --border: #E5E7EB;
            --success: #008060;
            --danger: #EF4444;
            --warning: #F59E0B;
            --info: #3B82F6;
            --radius-lg: 16px;
            --radius-md: 10px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
            --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
            --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

body.page-login * {
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
        }

body.page-login .fa,
body.page-login .fa-classic,
body.page-login .fa-regular,
body.page-login .fa-solid,
body.page-login .far,
body.page-login .fas {
            font-family: "Font Awesome 6 Free";
        }

body.page-login .fa-solid,
body.page-login .fas {
            font-weight: 900;
        }

body.page-login .fa-regular,
body.page-login .far {
            font-weight: 400;
        }

body.page-login {
            background-color: var(--bg);
            color: var(--text-dark);
            min-height: 100vh;
            margin: 0;
            padding: 0;
            display: flex;
            overflow-x: hidden;
        }

body.page-login .page-wrapper {
            display: flex;
            width: 100vw;
            min-height: 100vh;
        }

body.page-login .brand-panel {
  flex: 1.2;
  padding: 40px !important;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem;
  color: var(--white);
  overflow: hidden;
}

body.page-login .login-hero-image {
              position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                object-fit: contain;
                object-position: center;
                padding: 87px;
                z-index: 0;
        }

@media (max-width: 991.98px) {
body.page-login .brand-panel {
                display: none; /* Hide on mobile/tablet */
            }
}

body.page-login .brand-panel::before {
            content: "";
            position: absolute;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(192, 144, 48, 0.15) 0%, rgba(0,0,0,0) 70%);
            top: -150px;
            left: -150px;
            z-index: 1;
        }

body.page-login .brand-panel::after {
            content: "";
            position: absolute;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0,0,0,0) 80%);
            bottom: -200px;
            right: -100px;
            z-index: 1;
        }

body.page-login .brand-panel-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.04;
            background-image: radial-gradient(#ffffff 2px, transparent 2px);
            background-size: 32px 32px;
            z-index: 1;
        }

body.page-login .live-clock-panel {
            background: var(--primary);
            border-radius: var(--radius-md);
            padding: 1rem 1.5rem;
            display: inline-flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.9rem;
            border: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(8px);
        }

body.page-login .login-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background-color: var(--white);
            padding: 3rem;
            position: relative;
        }

@media (max-width: 575.98px) {
body.page-login .login-panel {
                padding: 1.5rem;
            }
}

body.page-login .login-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

body.page-login .support-pill-btn {
            background-color: var(--primary-soft);
            color: var(--primary);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition-smooth);
            text-decoration: none;
        }

body.page-login .support-pill-btn:hover {
            background-color: var(--primary);
            color: var(--white);
        }

body.page-login .login-panel-body {
            max-width: 420px;
            width: 100%;
            margin: auto;
        }

body.page-login .brand-logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 2.5rem;
        }

body.page-login .brand-logo-img {
            max-height: 80px;
            max-width: 180px;
            object-fit: contain;
            transition: var(--transition-smooth);
        }

body.page-login .logo-fallback-wrapper {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            width: 64px;
            height: 64px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.75rem;
            box-shadow: 0 8px 16px rgba(0, 128, 96, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.1);
        }

body.page-login .logo-subtext {
            color: var(--gray-500);
            font-size: 0.9rem;
            font-weight: 500;
            margin-top: 0.75rem;
            text-align: center;
        }

body.page-login .form-heading {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        }

body.page-login .form-subheading {
            color: var(--gray-500);
            font-size: 0.9rem;
            margin-bottom: 2rem;
        }

body.page-login .form-group-custom {
            position: relative;
            margin-bottom: 1.5rem;
        }

body.page-login .form-label-custom {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
            display: block;
        }

body.page-login .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

body.page-login .form-control-custom {
            width: 100%;
            height: 52px;
            padding: 0.75rem 2.8rem 0.75rem 1rem; /* Standard RTL padding: right icon */
            border-radius: var(--radius-md);
            border: 1.5px solid var(--border);
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-dark);
            background-color: var(--bg);
            transition: var(--transition-smooth);
        }

body.page-login .form-control-custom:focus {
            outline: none;
            border-color: var(--primary);
            background-color: var(--white);
            box-shadow: 0 0 0 4px rgba(0, 128, 96, 0.08);
        }

body.page-login .password-field {
            padding-left: 3rem; /* extra space on left for toggle */
        }

body.page-login .input-icon-right {
            position: absolute;
            right: 1.1rem;
            color: var(--gray-400);
            font-size: 1.1rem;
            pointer-events: none;
            transition: var(--transition-smooth);
        }

body.page-login .form-control-custom:focus ~ .input-icon-right {
            color: var(--primary);
        }

body.page-login .password-toggle-btn {
            position: absolute;
            left: 1rem;
            background: none;
            border: none;
            padding: 0;
            color: var(--gray-400);
            cursor: pointer;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-smooth);
        }

body.page-login .password-toggle-btn:hover {
            color: var(--primary);
        }

body.page-login .remember-forgot-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            font-size: 0.875rem;
        }

body.page-login .custom-checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--gray-500);
            font-weight: 500;
            cursor: pointer;
            user-select: none;
        }

body.page-login .custom-checkbox-input {
            appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid var(--border);
            border-radius: 4px;
            outline: none;
            cursor: pointer;
            transition: var(--transition-smooth);
            position: relative;
            background-color: var(--white);
        }

body.page-login .custom-checkbox-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }

body.page-login .custom-checkbox-input:checked::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            font-size: 0.7rem;
            color: var(--white);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

body.page-login .custom-checkbox-input:focus {
            box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.15);
        }

body.page-login .forgot-password-link {
            color: var(--primary);
            font-weight: 700;
            text-decoration: none;
            transition: var(--transition-smooth);
        }

body.page-login .forgot-password-link:hover {
            color: var(--primary-darker);
            text-decoration: underline;
        }

body.page-login .btn-gold-primary {
            background-color: var(--gold);
            color: var(--white);
            font-weight: 700;
            border: none;
            border-radius: var(--radius-md);
            height: 52px;
            width: 100%;
            font-size: 1rem;
            transition: var(--transition-smooth);
            box-shadow: 0 4px 12px rgba(192, 144, 48, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }

body.page-login .btn-gold-primary:hover {
            background-color: var(--gold-dark);
            box-shadow: 0 6px 20px rgba(192, 144, 48, 0.35);
            transform: translateY(-1px);
        }

body.page-login .btn-gold-primary:active {
            transform: translateY(1px);
        }

body.page-login .login-panel-footer {
            text-align: center;
            font-size: 0.8rem;
            color: var(--gray-500);
            border-top: 1px solid var(--gray-100);
            padding-top: 1.5rem;
        }

body.page-login .toast-container-custom {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 1100;
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-width: 380px;
            width: calc(100% - 48px);
        }

body.page-login .toast-custom {
            background-color: var(--white);
            border-radius: var(--radius-md);
            padding: 1rem 1.25rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            border-right: 4px solid var(--primary);
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            transform: translateX(120%);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

body.page-login .toast-custom.show {
            transform: translateX(0);
        }

body.page-login .toast-custom-icon {
            font-size: 1.25rem;
            flex-shrink: 0;
        }

body.page-login .toast-custom.toast-danger {
            border-right-color: var(--danger);
        }

body.page-login .toast-custom.toast-danger .toast-custom-icon {
            color: var(--danger);
        }

body.page-login .toast-custom.toast-success {
            border-right-color: var(--success);
        }

body.page-login .toast-custom.toast-success .toast-custom-icon {
            color: var(--success);
        }

body.page-login .toast-custom-content {
            flex-grow: 1;
        }

body.page-login .toast-custom-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-dark);
            margin-bottom: 0.25rem;
        }

body.page-login .toast-custom-msg {
            font-size: 0.85rem;
            color: var(--gray-500);
            line-height: 1.4;
        }

body.page-login .toast-custom-close {
            background: none;
            border: none;
            color: var(--gray-400);
            cursor: pointer;
            padding: 0;
            font-size: 0.9rem;
            transition: var(--transition-smooth);
        }

body.page-login .toast-custom-close:hover {
            color: var(--text-dark);
        }

body.page-login .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(17, 24, 39, 0.6);
            backdrop-filter: blur(8px);
            z-index: 1050;
            align-items: center;
            justify-content: center;
        }

body.page-login .modal-container-custom {
            background-color: var(--white);
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 460px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            overflow: hidden;
            border: 1px solid var(--border);
        }

@keyframes modalPop {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

body.page-login .modal-header-custom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            background-color: var(--primary-soft);
            border-bottom: 1px solid var(--border);
        }

body.page-login .modal-title-custom {
            font-weight: 800;
            color: var(--primary-dark);
            margin: 0;
            font-size: 1.15rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

body.page-login .modal-body-custom {
            padding: 1.5rem;
        }

body.page-login .contact-item-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border-radius: var(--radius-md);
            background-color: var(--bg);
            border: 1.5px solid var(--border);
            margin-bottom: 0.85rem;
            transition: var(--transition-smooth);
        }

body.page-login .contact-item-card:hover {
            border-color: var(--primary-light);
            background-color: var(--white);
            box-shadow: var(--shadow-sm);
        }

body.page-login .contact-icon-wrapper {
            background-color: rgba(0, 128, 96, 0.1);
            color: var(--primary);
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

body.page-login .contact-details {
            display: flex;
            flex-direction: column;
        }

body.page-login .contact-label {
            font-size: 0.75rem;
            color: var(--gray-500);
            font-weight: 500;
        }

body.page-login .contact-value {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-dark);
        }

body.page-login .btn-modal-close {
            background-color: var(--gold);
            color: var(--white);
            border: none;
            border-radius: var(--radius-md);
            padding: 0.8rem;
            width: 100%;
            font-weight: 700;
            font-size: 0.95rem;
            margin-top: 1rem;
            transition: var(--transition-smooth);
        }

body.page-login .btn-modal-close:hover {
            background-color: var(--gold-dark);
        }


/* Page-specific rules: reports.html */

body.page-reports .form-label-custom {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 0.4rem;
    }

body.page-reports .btn-show {
      background-color: var(--primary);
      color: var(--white);
    }

body.page-reports .btn-show:hover {
      background-color: var(--primary-dark);
    }

body.page-reports .btn-excel {
      background-color: rgba(59, 130, 246, 0.1);
      color: var(--info);
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

body.page-reports .btn-excel:hover {
      background-color: var(--info);
      color: var(--white);
    }

body.page-reports .report-placeholder {
      text-align: center;
      padding: 4rem 1.5rem;
      color: var(--text-muted);
    }

body.page-reports .print-only-header {
      display: none;
    }

@media print {
body.page-reports {
        background-color: #FFFFFF !important;
        color: #000000 !important;
      }

body.page-reports .main-sidebar, body.page-reports .main-navbar, body.page-reports .card-custom.no-print, body.page-reports .btn-print-hide, body.page-reports .page-header-container, body.page-reports #desktopSidebar {
        display: none !important;
      }

body.page-reports .content-area {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
      }

body.page-reports .card-custom {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
      }

body.page-reports .print-only-header {
        display: block !important;
        border-bottom: 2px double #000000;
        padding-bottom: 15px;
        margin-bottom: 30px;
      }

body.page-reports .table-custom th {
        background-color: #F3F4F6 !important;
        color: #000000 !important;
        border-bottom: 2px solid #000000 !important;
      }

body.page-reports .table-custom td {
        border-bottom: 1px solid #E5E7EB !important;
      }
}


/* Page-specific rules: teachers.html */

body.page-teachers .main-sidebar>div:first-child {
      min-height: 0;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

body.page-teachers .sidebar-menu-wrapper {
      flex-grow: 1;
      min-height: 0;
      /*padding-top: 1rem;*/
    }

body.page-teachers .actions-top-bar {
      background-color: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.25rem;
      box-shadow: var(--shadow);
      margin-bottom: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }

body.page-teachers .search-wrapper {
      position: relative;
      flex: 1;
      max-width: 380px;
      min-width: 260px;
    }

body.page-teachers .search-input-custom {
      width: 100%;
      height: 46px;
      padding: 0.5rem 2.8rem 0.5rem 1rem;
      border-radius: var(--radius-md);
      border: 1.5px solid var(--border);
      font-size: 0.9rem;
      font-weight: 500;
      outline: none;
      background-color: var(--bg);
      transition: var(--transition-smooth);
    }

body.page-teachers .search-input-custom:focus {
      border-color: var(--primary);
      background-color: var(--white);
      box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
    }

body.page-teachers .search-icon-right {
      position: absolute;
      right: 1.1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 1rem;
      pointer-events: none;
    }

body.page-teachers .action-buttons-group {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

body.page-teachers .btn-premium {
      height: 46px;
      padding: 0 1.5rem;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 0.88rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: var(--transition-smooth);
      cursor: pointer;
      border: none;
    }

body.page-teachers .btn-add-teacher {
      background-color: var(--primary);
      color: var(--white);
      box-shadow: 0 4px 6px rgba(0, 128, 96, 0.15);
    }

body.page-teachers .btn-add-teacher:hover {
      background-color: var(--primary-dark);
      color: var(--white);
      transform: translateY(-1px);
    }

body.page-teachers .btn-export-excel {
      background-color: var(--gold-soft);
      color: var(--gold-dark);
      border: 1px solid rgba(192, 144, 48, 0.2);
    }

body.page-teachers .btn-export-excel:hover {
      background-color: var(--gold);
      color: var(--white);
      transform: translateY(-1px);
    }

body.page-teachers .teachers-table-card {
      background-color: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      box-shadow: var(--shadow);
      margin-bottom: 2rem;
    }

body.page-teachers .teacher-profile-hero {
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      border-radius: var(--radius-lg);
    }

body.page-teachers .teacher-profile-avatar,
body.page-teachers .teacher-history-avatar {
      width: 76px;
      height: 76px;
      border-radius: 22px;
      background: linear-gradient(135deg, var(--primary), var(--gold));
      color: var(--white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.75rem;
      font-weight: 800;
      box-shadow: 0 10px 24px rgba(0, 128, 96, 0.16);
      flex-shrink: 0;
    }

body.page-teachers .teacher-history-avatar {
      width: 64px;
      height: 64px;
      border-radius: 18px;
      font-size: 1.35rem;
    }

body.page-teachers .teacher-mini-card {
      min-width: 130px;
      padding: 0.8rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--primary-soft);
    }

body.page-teachers .teacher-mini-label {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
    }

body.page-teachers .teacher-mini-value {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-dark);
    }

body.page-teachers .detail-item {
      height: 100%;
      padding: 1rem 1.1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--white);
    }

body.page-teachers .detail-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 0.35rem;
    }

body.page-teachers .detail-value {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-dark);
    }

body.page-teachers .teachers-index-col {
      width: 64px;
      min-width: 64px;
    }

/* Shared CRUD modal component */
.hp-modal .modal-content {
      border: none;
    }

.hp-modal__content {
      border-radius: 16px;
      overflow: hidden;
      border: none;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
      font-family: 'Tajawal', sans-serif;
      direction: rtl;
    }

.hp-modal.show .modal-dialog {
      animation: hpModalIn 0.22s ease;
    }

@keyframes hpModalIn {
      from {
        transform: translateY(12px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

.hp-modal__header {
      background: #008060;
      color: #fff;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

.hp-modal--edit .hp-modal__header {
      background: #006e60;
    }

.hp-modal__title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 17px;
      font-weight: 700;
    }

.hp-modal__title i {
      font-size: 18px;
      opacity: 0.95;
    }

.hp-modal__close {
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.18);
      color: #fff;
      cursor: pointer;
      transition: background 0.15s;
    }

.hp-modal__close:hover {
      background: rgba(255, 255, 255, 0.3);
    }

.hp-modal__body {
      padding: 22px 20px;
      background: #fff;
      max-height: 70vh;
      overflow-y: auto;
    }

.hp-modal__section-title {
      font-size: 13px;
      font-weight: 700;
      color: #008060;
      margin: 4px 0 12px;
      padding-bottom: 6px;
      border-bottom: 1px solid #E5E7EB;
    }

.hp-field {
      margin-bottom: 16px;
    }

.hp-field label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: #1F2937;
      margin-bottom: 6px;
    }

.hp-field label .req {
      color: #DC3545;
      margin-inline-start: 2px;
    }

.hp-field .form-control,
.hp-field .form-select {
      height: 44px;
      border: 1px solid #E5E7EB;
      border-radius: 10px;
      font-family: 'Tajawal', sans-serif;
      font-size: 14px;
      color: #1F2937;
      padding: 0 12px;
      transition: border-color 0.15s, box-shadow 0.15s;
    }

.hp-field textarea.form-control {
      height: auto;
      padding: 10px 12px;
    }

.hp-field .form-control:focus,
.hp-field .form-select:focus {
      border-color: #008060;
      box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.15);
      outline: none;
    }

.hp-field .form-control.is-invalid,
.hp-field .form-select.is-invalid {
      border-color: #DC3545;
    }

.hp-field .invalid-feedback {
      display: block;
      color: #DC3545;
      font-size: 12.5px;
      margin-top: 5px;
    }

.hp-modal .form-row-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

.hp-modal .form-row-3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 14px;
    }

.hp-modal__footer {
      padding: 14px 20px;
      background: #F5F5F5;
      border-top: 1px solid #E5E7EB;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }

.hp-btn {
      height: 44px;
      min-width: 120px;
      border-radius: 10px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: filter 0.15s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

.hp-btn--cancel {
      background: #fff;
      color: #444441;
      border: 1px solid #E5E7EB;
    }

.hp-btn--cancel:hover {
      background: #ECECEC;
    }

.hp-btn--save {
      background: #008060;
      color: #fff;
      border: none;
    }

.hp-modal--edit .hp-btn--save {
      background: #C09030;
    }

.hp-btn--save:hover {
      filter: brightness(0.94);
    }

body.page-teachers .table-custom th {
      background-color: var(--primary-soft);
      color: var(--primary-darker);
      font-weight: 700;
      font-size: 0.88rem;
      padding: 1.1rem 1rem;
      border-bottom: 2px solid var(--border);
      white-space: nowrap;
    }

body.page-teachers .table-custom td {
      padding: 1.1rem 1rem;
      font-size: 0.9rem;
      border-bottom: 1px solid var(--border);
      transition: var(--transition-smooth);
      color: var(--text-dark);
    }

body.page-teachers .badge-status {
      font-weight: 700;
      font-size: 0.75rem;
      padding: 0.4rem 0.85rem;
      border-radius: 50px;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

body.page-teachers .badge-status-active {
      background-color: rgba(0, 128, 96, 0.12);
      color: var(--primary);
    }

body.page-teachers .badge-status-transferred {
      background-color: rgba(59, 130, 246, 0.12);
      color: var(--info);
    }

body.page-teachers .badge-status-retired {
      background-color: rgba(107, 114, 128, 0.12);
      color: var(--text-muted);
    }

body.page-teachers .badge-status-deputed {
      background-color: rgba(245, 158, 11, 0.15);
      color: var(--warning);
    }

body.page-teachers .actions-cell {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

body.page-teachers .btn-table-circle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: none;
      cursor: pointer;
      transition: var(--transition-smooth);
      font-size: 0.9rem;
    }

body.page-teachers .btn-view-log {
      background-color: rgba(0, 128, 96, 0.08);
      color: var(--primary);
    }

body.page-teachers .btn-view-log:hover {
      background-color: var(--primary);
      color: var(--white);
    }

body.page-teachers .btn-edit-teacher {
      background-color: rgba(192, 144, 48, 0.08);
      color: var(--gold-dark);
    }

body.page-teachers .btn-edit-teacher:hover {
      background-color: var(--gold-dark);
      color: var(--white);
    }

body.page-teachers .btn-delete-teacher {
      background-color: rgba(220, 53, 69, 0.08);
      color: var(--danger);
    }

body.page-teachers .btn-delete-teacher:hover {
      background-color: var(--danger);
      color: var(--white);
    }

body.page-teachers .timeline-log {
      position: relative;
      padding-right: 25px;
      margin-top: 1.5rem;
    }

body.page-teachers .timeline-log::before {
      content: '';
      position: absolute;
      right: 8px;
      top: 5px;
      bottom: 5px;
      width: 2px;
      background-color: var(--border);
    }

body.page-teachers .timeline-item {
      position: relative;
      margin-bottom: 1.5rem;
    }

body.page-teachers .timeline-item::before {
      content: '';
      position: absolute;
      right: -21px;
      top: 4px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: var(--primary-light);
      border: 2px solid var(--white);
      box-shadow: 0 0 0 3px rgba(95, 174, 156, 0.2);
      z-index: 2;
    }

body.page-teachers .timeline-date {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
    }

body.page-teachers .timeline-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text-dark);
    }

body.page-teachers .timeline-desc {
      font-size: 0.8rem;
      color: var(--text-muted);
    }


/* Page-specific rules: tt.html */

body.page-tt {
      --primary: #008060;
      --primary-dark: #006E60;
      --primary-darker: #005050;
      --primary-light: #5FAE9C;
      --gold: #C09030;
      --gold-dark: #B08020;
      --gold-light: #D0A040;
      --white: #FFFFFF;
      --bg: #F5F5F5;
      --gray-200: #E5E7EB;
      --text-dark: #1F2937;
      --sidebar-bg: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
      --navbar-bg: #008060;
      --card-bg: #FFFFFF;
      --border: #E5E7EB;
      --success: #008060;
      --danger: #DC3545;
      --warning: #F59E0B;
      --info: #3B82F6;
    }

body.page-tt {
      font-family: 'Tajawal', sans-serif;
      background-color: var(--bg);
      color: var(--text-dark);
      min-height: 100vh;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
    }

body.page-tt .login-body {
      background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

body.page-tt .login-card {
      background: var(--card-bg);
      border-radius: 16px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      width: 100%;
      max-width: 450px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

body.page-tt .login-header {
      background-color: var(--primary-dark);
      color: var(--white);
      padding: 30px;
      text-align: center;
      position: relative;
    }

body.page-tt .login-header::after {
      content: '';
      position: absolute;
      bottom: -15px;
      left: 50%;
      transform: translateX(-50%);
      border-width: 15px 15px 0;
      border-style: solid;
      border-color: var(--primary-dark) transparent;
      display: block;
      width: 0;
    }

body.page-tt .login-logo-circle {
      width: 75px;
      height: 75px;
      background: var(--white);
      color: var(--primary);
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      margin-bottom: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

body.page-tt .form-control:focus {
      border-color: var(--primary-light);
      box-shadow: 0 0 0 0.25rem rgba(95, 174, 156, 0.25);
    }

body.page-tt #app-layout {
      display: none;
      /* Controlled via JS */
      flex: 1;
      flex-direction: column;
      min-height: 100vh;
    }

body.page-tt .main-navbar {
      background-color: var(--navbar-bg);
      color: var(--white);
      height: 65px;
      position: sticky;
      top: 0;
      z-index: 1030;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

body.page-tt .app-container {
      display: flex;
      flex: 1;
    }

body.page-tt .sidebar {
      width: 260px;
      background-color: var(--sidebar-bg);
      color: var(--white);
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      z-index: 1020;
      position: relative;
    }

body.page-tt .sidebar.collapsed {
      width: 75px;
    }

body.page-tt .sidebar-menu {
      list-style: none;
      padding: 0;
      margin: 0;
    }

body.page-tt .sidebar-item a {
      display: flex;
      align-items: center;
      padding: 14px 20px;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      font-weight: 500;
      font-size: 15px;
      transition: all 0.2s ease;
      border-right: 4px solid transparent;
      white-space: nowrap;
    }

body.page-tt .sidebar-item a i {
      font-size: 18px;
      width: 28px;
      transition: margin 0.3s ease;
    }

body.page-tt .sidebar-item a:hover, body.page-tt .sidebar-item.active a {
      background-color: var(--primary-darker);
      color: var(--white);
      border-right-color: var(--gold);
    }

body.page-tt .sidebar.collapsed .sidebar-item a span {
      display: none;
    }

body.page-tt .sidebar.collapsed .sidebar-item a {
      justify-content: center;
      padding: 15px 0;
      border-right-width: 4px;
    }

body.page-tt .sidebar.collapsed .sidebar-item a i {
      margin-left: 0;
      text-align: center;
    }

body.page-tt .content-area {
      flex: 1;
      padding: 24px;
      transition: all 0.3s ease;
      background-color: var(--bg);
    }

body.page-tt .stats-icon-wrapper {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

body.page-tt .badge-status-compliant {
      background-color: rgba(0, 128, 96, 0.1);
      color: var(--success);
      font-weight: 600;
    }

body.page-tt .badge-status-violation {
      background-color: rgba(220, 53, 69, 0.1);
      color: var(--danger);
      font-weight: 600;
    }

body.page-tt .badge-status-warning {
      background-color: rgba(245, 158, 11, 0.1);
      color: var(--warning);
      font-weight: 600;
    }

body.page-tt .role-badge {
      font-size: 12px;
      padding: 4px 10px;
      border-radius: 20px;
      font-weight: 600;
    }

@media (max-width: 768px) {
body.page-tt .sidebar {
        position: fixed;
        left: 0;
        top: 65px;
        bottom: 0;
        width: 260px;
        transform: translateX(100%);
      }

body.page-tt .sidebar.mobile-show {
        transform: translateX(0);
      }

body.page-tt .sidebar.collapsed {
        width: 260px;
        transform: translateX(100%);
      }
}


/* Shared app shell and page controls */
body[class*="page-"]:not(.page-login) {
      font-family: 'Tajawal', sans-serif;
      background-color: var(--bg);
      color: var(--text-dark);
      min-height: 100vh;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
    }

body[class*="page-"]:not(.page-login) .fade-in-element {
      animation: fadeIn 0.4s ease-in-out forwards;
    }

body[class*="page-"]:not(.page-login) .main-navbar {
      background-color: var(--white);
      height: 70px;
      position: fixed;
      top: 0;
      right: var(--sidebar-width);
      left: 0;
      width: auto;
      max-width: none;
      box-sizing: border-box;
      z-index: 1000;
      box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      padding: 0 2rem;
      justify-content: space-between;
      transition: var(--transition-smooth);
      border-bottom: 1px solid var(--border);
    }

body[class*="page-"]:not(.page-login) .content-area {
      margin-right: var(--sidebar-width);
      margin-top: 70px;
      padding: 2rem 2.5rem;
      transition: var(--transition-smooth);
    }

body[class*="page-"]:not(.page-login) .custom-card,
body[class*="page-"]:not(.page-login) .card-custom {
      background-color: var(--white);
      border-radius: 12px;
      border: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      margin-bottom: 24px;
      overflow: hidden;
    }

body[class*="page-"]:not(.page-login) .card-header-teal {
      background-color: var(--primary-darker);
      color: var(--white);
      padding: 16px 20px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 3px solid var(--gold);
      justify-content: space-between;
    }

body[class*="page-"]:not(.page-login) .card-body-pad {
      padding: 24px;
    }

body[class*="page-"]:not(.page-login) .table-responsive {
      border-radius: 12px;
      overflow: hidden;
    }

body[class*="page-"]:not(.page-login) .custom-table th {
      background-color: #fbf0d0;
      /* color: var(--white); */
      font-weight: 600;
      padding: 14px 16px;
      /* border: none; */
      text-align: center !important;
    }

body[class*="page-"]:not(.page-login) .custom-table td {
      padding: 14px 16px;
      vertical-align: middle;
      border-bottom: 1px solid var(--border);
    }

body[class*="page-"]:not(.page-login) .btn-gold {
      background-color: var(--gold);
      color: var(--white);
      font-weight: bold;
      border: none;
      border-radius: 8px;
      padding: 10px 20px;
      transition: var(--transition-smooth);
    }

body[class*="page-"]:not(.page-login) .btn-gold:hover {
      background-color: var(--gold-dark);
      color: var(--white);
      transform: translateY(-1px);
    }

body[class*="page-"]:not(.page-login) .btn-teal {
      background-color: var(--primary);
      color: var(--white);
      font-weight: bold;
      border: none;
      border-radius: 8px;
      padding: 10px 20px;
      transition: var(--transition-smooth);
    }

body[class*="page-"]:not(.page-login) .btn-teal:hover {
      background-color: var(--primary-dark);
      color: var(--white);
    }

body[class*="page-"]:not(.page-login) .custom-radio-group {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

body[class*="page-"]:not(.page-login) .custom-radio-group .form-check {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 36px 10px 16px;
      background-color: var(--gray-100);
    }

body[class*="page-"]:not(.page-login) .info-strip {
      background-color: rgba(59, 130, 246, 0.1);
      border-right: 4px solid var(--info);
      padding: 12px 16px;
      border-radius: 4px 8px 8px 4px;
      color: var(--text-dark);
      margin-bottom: 20px;
      font-size: 0.93rem;
    }

body.page-leaves .leave-policy-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(0, 128, 96, 0.08);
      color: var(--primary-darker);
      font-weight: 700;
      font-size: 0.92rem;
    }

body.page-leaves .leave-type-card {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--white);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      transition: var(--transition-smooth);
      height: 100%;
    }

body.page-leaves .leave-type-card:hover {
      transform: translateY(-2px);
      border-color: rgba(0, 128, 96, 0.22);
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    }

body.page-leaves .leaves-modal-content {
      border: none;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
      font-family: 'Tajawal', sans-serif;
    }

body.page-leaves .leaves-modal-content .modal-header {
      background: var(--primary-darker);
      color: var(--white);
      padding: 16px 20px;
      border-bottom: 3px solid var(--gold);
    }

body.page-leaves .leaves-modal-content .modal-body {
      padding: 24px;
      background: var(--white);
    }

body.page-leaves .leaves-modal-content .btn-close {
      filter: brightness(0) invert(1);
      opacity: 0.9;
    }

body.page-leaves .leave-icon-box {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 52px;
      font-size: 20px;
    }

body.page-leaves .leave-type-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 0.8rem;
      line-height: 1.2;
    }

body.page-leaves .leave-tone-danger {
      background: rgba(220, 53, 69, 0.12);
      color: #b42318;
    }

body.page-leaves .leave-tone-warning {
      background: rgba(192, 144, 48, 0.14);
      color: #8c5c00;
    }

body.page-leaves .leave-tone-success {
      background: rgba(25, 135, 84, 0.12);
      color: #166534;
    }

body.page-leaves .leave-tone-info {
      background: rgba(13, 202, 240, 0.12);
      color: #0e7490;
    }

body.page-leaves .leave-tone-primary {
      background: rgba(0, 128, 96, 0.12);
      color: var(--primary-darker);
    }

body.page-leaves .leave-tone-secondary {
      background: rgba(108, 117, 125, 0.14);
      color: #4b5563;
    }

body.page-leaves .leave-tone-dark {
      background: rgba(33, 37, 41, 0.12);
      color: #1f2937;
    }

body.page-leaves .leave-tone-pink {
      background: rgba(236, 72, 153, 0.12);
      color: #be185d;
    }

body.page-leaves .leave-tone-amber {
      background: rgba(245, 158, 11, 0.14);
      color: #b45309;
    }

body.page-leaves .leave-tone-indigo {
      background: rgba(99, 102, 241, 0.14);
      color: #4338ca;
    }

body.page-leaves .leave-notes-cell {
      max-width: 280px;
      white-space: normal;
    }

/* Shared app layout helpers */
.toast-container-custom {
      position: fixed;
      bottom: 24px;
      left: 24px;
      z-index: 1080;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

.toast-custom {
      background-color: var(--white);
      border-radius: 14px;
      padding: 1rem 1.25rem;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      border-right: 4px solid var(--primary);
      display: flex;
      align-items: flex-start;
      gap: 12px;
      min-width: 280px;
      max-width: 360px;
      transform: translateX(-8px);
      opacity: 0;
      transition: opacity .25s ease, transform .25s ease;
      direction: rtl;
    }

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

.toast-custom-icon {
      font-size: 1.25rem;
      flex-shrink: 0;
      color: var(--primary);
      margin-top: 2px;
    }

.toast-custom.toast-danger {
      border-right-color: var(--danger);
    }

.toast-custom.toast-danger .toast-custom-icon {
      color: var(--danger);
    }

.toast-custom.toast-success {
      border-right-color: var(--success);
    }

.toast-custom.toast-success .toast-custom-icon {
      color: var(--success);
    }

.toast-custom-content {
      flex-grow: 1;
    }

.toast-custom-title {
      font-weight: 700;
      font-size: .95rem;
      color: var(--text-dark);
      margin-bottom: .25rem;
    }

.toast-custom-msg {
      font-size: .85rem;
      color: var(--gray-500);
      line-height: 1.4;
    }

.toast-custom-close {
      background: none;
      border: none;
      color: var(--gray-400);
      cursor: pointer;
      padding: 0;
      font-size: .9rem;
      flex-shrink: 0;
    }

.toast-custom-close:hover {
      color: var(--text-dark);
    }

.inquiry-admin-toolbar {
      position: sticky;
      top: 16px;
      z-index: 1025;
      box-shadow: 0 18px 30px rgba(15, 110, 86, 0.08);
    }

body.page-inquiries .inquiry-stepper {
      direction: rtl;
      display: flex;
      align-items: flex-start;
      gap: 0;
      position: relative;
      overflow: hidden;
    }

body.page-inquiries .inquiry-stepper__item {
      flex: 1 1 0;
      min-width: 0;
      text-align: center;
      position: relative;
      padding: 0 10px 4px;
      direction: rtl;
    }

body.page-inquiries .inquiry-stepper__item:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 26px;
      right: 50%;
      width: 100%;
      height: 2px;
      background: rgba(229, 231, 235, 1);
      z-index: 0;
    }

body.page-inquiries .inquiry-stepper__bubble {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      margin: 0 auto 12px;
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1rem;
      border: 2px solid var(--border);
      background: #fff;
      color: var(--text-muted);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    }

body.page-inquiries .inquiry-stepper__title {
      font-weight: 800;
      font-size: 0.98rem;
      color: var(--text-dark);
      margin-bottom: 0.35rem;
    }

body.page-inquiries .inquiry-stepper__meta {
      font-size: 0.83rem;
      color: var(--text-muted);
      margin-bottom: 0.2rem;
      line-height: 1.5;
    }

body.page-inquiries .inquiry-stepper__detail {
      font-size: 0.84rem;
      color: var(--text-muted);
      line-height: 1.55;
    }

body.page-inquiries .inquiry-stepper__item--done .inquiry-stepper__bubble {
      background: linear-gradient(135deg, #008060 0%, #0FA37F 100%);
      border-color: rgba(0, 128, 96, 0.2);
      color: #fff;
      box-shadow: 0 12px 24px rgba(0, 128, 96, 0.2);
    }

body.page-inquiries .inquiry-stepper__item--done:not(:last-child)::after {
      background: linear-gradient(90deg, rgba(0, 128, 96, 0.35), rgba(0, 128, 96, 0.12));
    }

body.page-inquiries .inquiry-stepper__item--current .inquiry-stepper__bubble {
      background: linear-gradient(135deg, #C09030 0%, #D3A348 100%);
      border-color: rgba(192, 144, 48, 0.28);
      color: #fff;
      box-shadow: 0 0 0 6px rgba(192, 144, 48, 0.12), 0 14px 28px rgba(192, 144, 48, 0.22);
      transform: scale(1.04);
    }

body.page-inquiries .inquiry-stepper__item--current .inquiry-stepper__title {
      color: var(--primary-darker);
    }

body.page-inquiries .inquiry-stepper__item--current .inquiry-stepper__meta {
      color: var(--gold-dark);
      font-weight: 700;
    }

body.page-inquiries .inquiry-stepper__item--current:not(:last-child)::after {
      background: linear-gradient(90deg, rgba(192, 144, 48, 0.45), rgba(0, 128, 96, 0.18));
    }

body.page-inquiries .inquiry-stepper__item--upcoming .inquiry-stepper__bubble {
      background: #F8FAFC;
      border-color: #E5E7EB;
      color: #9CA3AF;
    }

body.page-inquiries .inquiry-stepper__item--upcoming .inquiry-stepper__title,
body.page-inquiries .inquiry-stepper__item--upcoming .inquiry-stepper__detail {
      color: #6B7280;
    }

body.page-inquiries .inquiry-stepper__item--upcoming:not(:last-child)::after {
      background: #E5E7EB;
    }

body.page-login .toast-container-custom {
      top: 24px;
      right: 24px;
      bottom: auto;
      left: auto;
      z-index: 1100;
    }

.footer {
      background-color: var(--white);
      border-top: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 13px;
      padding: 14px 0;
      margin-right: var(--sidebar-width);
      transition: var(--transition-smooth);
    }

.page-login .footer {
      margin-right: 0;
    }

.app-alert {
      border-radius: 14px;
      border: 1px solid var(--border);
      background-color: var(--white);
      box-shadow: var(--shadow);
      padding: 1rem 1.25rem;
    }

.app-alert-success {
      border-right: 4px solid var(--primary);
    }

.app-alert-danger {
      border-right: 4px solid var(--danger);
    }

.app-alert-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      flex-shrink: 0;
      font-size: 1rem;
    }

.app-alert-success .app-alert-icon {
      background-color: var(--primary);
    }

.app-alert-danger .app-alert-icon {
      background-color: var(--danger);
    }

.hp-confirm .modal-dialog {
      max-width: 400px;
    }

.hp-confirm__content {
      position: relative;
      border: none;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
      font-family: 'Tajawal', sans-serif;
      text-align: center;
      background-color: var(--white);
      animation: hpFadeScale .22s ease;
    }

.hp-confirm.show .modal-dialog {
      animation: hpPop .22s ease;
    }

@keyframes hpPop {
      from {
        transform: scale(.94);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

@keyframes hpFadeScale {
      from {
        transform: scale(.96);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

.hp-confirm__accent {
      height: 5px;
      background: #DC3545;
      transition: background .2s;
    }

.hp-confirm__close {
      position: absolute;
      top: 14px;
      inset-inline-start: 14px;
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 50%;
      background: #F1F0E8;
      color: #5F5E5A;
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .15s, transform .15s;
      z-index: 2;
    }

.hp-confirm__close:hover {
      background: #E5E4DB;
      transform: scale(1.03);
    }

.hp-confirm__body {
      padding: 26px 24px 22px;
    }

.hp-confirm__icon {
      width: 66px;
      height: 66px;
      border-radius: 50%;
      background: #FCEBEB;
      color: #A32D2D;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 6px auto 16px;
      font-size: 30px;
      transition: all .2s;
    }

.hp-confirm__title {
      margin: 0 0 6px;
      font-size: 18px;
      font-weight: 700;
      color: var(--text-dark);
    }

.hp-confirm__message {
      margin: 0;
      font-size: 14px;
      line-height: 1.7;
      color: #5F5E5A;
    }

.hp-confirm__actions {
      display: flex;
      gap: 10px;
      margin-top: 22px;
    }

.hp-confirm__btn {
      flex: 1;
      height: 44px;
      border-radius: 10px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: filter .15s, transform .15s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      border: 0;
    }

.hp-confirm__btn:hover {
      transform: translateY(-1px);
    }

.hp-confirm__btn--cancel {
      background: #fff;
      color: #444441;
      border: 1px solid #E5E7EB;
    }

.hp-confirm__btn--cancel:hover {
      background: #F5F5F5;
    }

.hp-confirm__btn--ok {
      background: #DC3545;
      color: #fff;
    }

.hp-confirm__btn--ok:hover {
      filter: brightness(.94);
    }

.hp-confirm[data-theme="delete"] .hp-confirm__accent,
.hp-confirm[data-theme="default"] .hp-confirm__accent {
      background: #DC3545;
    }

.hp-confirm[data-theme="delete"] .hp-confirm__icon,
.hp-confirm[data-theme="default"] .hp-confirm__icon {
      background: #FCEBEB;
      color: #A32D2D;
    }

.hp-confirm[data-theme="delete"] .hp-confirm__btn--ok,
.hp-confirm[data-theme="default"] .hp-confirm__btn--ok {
      background: #DC3545;
    }

.hp-confirm[data-theme="upload"] .hp-confirm__accent {
      background: #008060;
    }

.hp-confirm[data-theme="upload"] .hp-confirm__icon {
      background: #E1F5EE;
      color: #0F6E56;
    }

.hp-confirm[data-theme="upload"] .hp-confirm__btn--ok {
      background: #008060;
    }

.hp-confirm[data-theme="logout"] .hp-confirm__accent {
      background: #C09030;
    }

.hp-confirm[data-theme="logout"] .hp-confirm__icon {
      background: #FAEEDA;
      color: #854F0B;
    }

.hp-confirm[data-theme="logout"] .hp-confirm__btn--ok {
      background: #C09030;
    }

.text-teal {
      color: var(--primary) !important;
    }

.text-gold {
      color: var(--gold) !important;
    }

.bg-teal {
      background-color: var(--primary) !important;
    }

.bg-gold {
      background-color: var(--gold) !important;
    }

.btn-teal {
      background-color: var(--primary);
      border-color: var(--primary);
      color: var(--white);
    }

.btn-teal:hover {
      background-color: var(--primary-dark);
      border-color: var(--primary-dark);
      color: var(--white);
    }

.btn-gold {
      background-color: var(--gold);
      border-color: var(--gold);
      color: var(--white);
    }

.btn-gold:hover {
      background-color: var(--gold-dark);
      border-color: var(--gold-dark);
      color: var(--white);
    }

.hp-search {
      float: right;
      clear: both;
      text-align: right;
      width: 100%;
      position: relative;
    }

.dataTables_wrapper .dataTables_filter {
      float: right !important;
      width: 100%;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      margin-bottom: 1rem;
    }

.hp-search label {
      margin: 0;
      display: inline-flex;
      align-items: center;
      width: 100%;
      justify-content: flex-start;
    }

.hp-search__icon {
      position: absolute;
      inset-inline-start: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #9C9A92;
      font-size: 14px;
      pointer-events: none;
      transition: color .15s;
    }

.hp-search input[type="search"] {
      font-family: 'Tajawal', sans-serif;
      height: 42px;
      width: 260px !important;
      max-width: 100%;
      padding-inline-start: 38px;
      padding-inline-end: 16px;
      border: 1px solid #E5E7EB;
      border-radius: 24px;
      background: #FFFFFF;
      color: #1F2937;
      font-size: 14px;
      outline: none;
      transition: border-color .15s, box-shadow .15s;
    }

.hp-search input[type="search"]::placeholder {
      color: #9C9A92;
    }

.hp-search input[type="search"]:focus {
      border-color: #008060;
      box-shadow: 0 0 0 3px rgba(0, 128, 96, .15);
    }

.hp-search:focus-within .hp-search__icon,
.hp-search input[type="search"]:focus + .hp-search__icon {
      color: #008060;
    }

.dataTables_wrapper .dataTables_length select {
      border: 1px solid #E5E7EB;
      border-radius: 8px;
      height: 36px;
      padding: 0 30px;
      font-family: 'Tajawal', sans-serif;
      color: #1F2937;
    }

.dataTables_wrapper .dataTables_length select:focus {
      border-color: #008060;
      box-shadow: 0 0 0 3px rgba(0, 128, 96, .12);
      outline: none;
    }

.dataTables_wrapper .dataTables_info {
      color: #5F5E5A;
      font-size: 13px;
    }

.dataTables_wrapper .dataTables_paginate .paginate_button {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      padding: 0 12px !important;
      margin: 0 3px !important;
      /*border: 1px solid #E6E3D8 !important;*/
      border-radius: 999px !important;
      background: #FFFFFF !important;
      color: #4B5563 !important;
      font-family: 'Tajawal', sans-serif;
      font-size: 13px;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
      transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    }

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
      background: linear-gradient(135deg, #C09030 0%, #D3A348 100%) !important;
      border-color: #C09030 !important;
      color: #FFFFFF !important;
      box-shadow: 0 8px 18px rgba(192, 144, 48, 0.24);
    }

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
      background: #F3FBF8 !important;
      border-color: #008060 !important;
      color: #008060 !important;
      transform: translateY(-1px);
    }

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
      opacity: .5;
    }

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
      min-width: 88px;
      padding-inline: 16px !important;
      color: #008060 !important;
      background: #F8FCFB !important;
    }

.dataTables_wrapper .dataTables_paginate {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 4px;
      width: 100%;
      margin-top: 6px;
    }

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
      margin: 0;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 4px;
      width: 100%;
    }

.pagination .page-link {
      border-radius: 999px;
      margin-inline: 2px;
      min-width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #E6E3D8;
      color: #4B5563;
      background: #FFFFFF;
      font-family: 'Tajawal', sans-serif;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
      transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    }

.pagination .page-link:hover {
      background: #F3FBF8;
      border-color: #008060;
      color: #008060;
      z-index: 2;
      transform: translateY(-1px);
    }

.pagination .page-item.active .page-link,
.pagination .page-link.active,
.active > .page-link {
      z-index: 3;
      color: #FFFFFF;
      background: linear-gradient(135deg, #C09030 0%, #D3A348 100%);
      border-color: #C09030;
      border-radius: 999px;
      box-shadow: 0 8px 18px rgba(192, 144, 48, 0.24);
    }

.pagination .page-item.disabled .page-link,
.pagination .page-link.disabled {
      opacity: .5;
      background: #FFFFFF;
      color: #9CA3AF;
      box-shadow: none;
    }

/* Shared filter button */
.hp-filter-btn {
      display: inline-flex !important;
      align-items: center !important;
      gap: 10px !important;
      border-radius: 8px !important;
      padding: 6px 1.15rem;

      border: 1px solid rgba(0, 128, 96, 0.18);
      background: #265952;
      color: #FFFFFF;
      font-family: 'Tajawal', sans-serif;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 12px 30px rgba(0, 128, 96, 0.18);
      transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;

         }

.hp-filter-btn:hover,
.hp-filter-btn:focus {
      color: #FFFFFF;
      transform: translateY(-1px);
      box-shadow: 0 16px 34px rgba(0, 128, 96, 0.22);
      filter: brightness(.98);
    }

.hp-filter-btn:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(0, 128, 96, .18), 0 16px 34px rgba(0, 128, 96, 0.22);
    }

.hp-filter-btn__icon {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, .16);
      color: #FFFFFF;
      flex-shrink: 0;
    }

.hp-filter-btn .badge {
      background: rgb(255 90 90) !important;
      color: #FFFFFF !important;
      border: 1px solid rgba(255, 255, 255, .22);
    }

.toolbar-actions-reverse {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem;
      flex-direction: row-reverse;
    }

body[class*="page-"] .hp-filter-btn.btn-outline-secondary,
body[class*="page-"] .hp-filter-btn.btn-gold {
      background: linear-gradient(135deg, #008060 0%, #0FA37F 100%);
      border-color: rgba(0, 128, 96, 0.18);
      color: #FFFFFF;
    }

div.table-responsive>div.dataTables_wrapper>div.row {
      display: flex;
      flex-direction: row-reverse;
}
div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child {
      padding-left: 0;
      display: flex;
      flex-direction: row-reverse;
}

div.dt-buttons>.dt-button, div.dt-buttons>div.dt-button-split .dt-button{
      background: var(--primary-darker);
      color:#fff;
      border:none;
      border-radius:10px;
      height:42px;
      padding:0 18px;
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-family:'Tajawal',sans-serif;
      font-size:14px;
      font-weight:700;
      cursor:pointer;
      box-shadow:0 2px 6px rgba(0,0,0,.12);
      transition:transform .12s ease, box-shadow .15s ease, filter .15s ease;
}

div.dt-buttons>.dt-button, div.dt-buttons>div.dt-button-split .dt-button span i,.fa-file-pdf,.fa-file-excel{
      font-size:17px;
      margin-left: 10px;
}

div.dt-buttons>.dt-button, div.dt-buttons>div.dt-button-split .dt-button:hover{
      transform:translateY(-1px);
      filter:brightness(1.05);
      box-shadow:0 4px 12px rgba(0,0,0,.18);
      background: var(--primary) !important;
}

div.dt-buttons>.dt-button, div.dt-buttons>div.dt-button-split .dt-button:active{
      transform:translateY(0);
}

/* Dashboard year/period card */
.year-period-card {
      background: #FFFFFF;
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(16, 110, 86, 0.08);
    }

.year-period-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 18px;
      background: linear-gradient(135deg, #0a7d62 0%, var(--primary-dark) 100%);
      color: #FFFFFF;
    }

.year-period-title {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

.year-period-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 18px;
    }

.year-period-title h1 {
      margin: 0;
      font-size: 16px;
      font-weight: 800;
      line-height: 1.3;
    }

.year-period-title p {
      margin: 2px 0 0;
      font-size: 11.5px;
      opacity: 0.85;
    }

.year-period-live {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 30px;
      padding: 6px 12px;
      font-weight: 700;
      font-size: 12px;
      white-space: nowrap;
    }

.year-period-live-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #7CFFC4;
      box-shadow: 0 0 0 4px rgba(124, 255, 196, 0.25);
      animation: hpPulse 1.8s infinite;
    }

.year-period-live--warning {
      background: rgba(192, 144, 48, 0.16);
      border-color: rgba(255, 255, 255, 0.28);
    }

.year-period-body {
      padding: 16px 18px;
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 16px;
      direction: rtl;
    }

.year-period-tiles {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

.yp-tile {
      position: relative;
      background: #FFFFFF;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px 12px 12px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      overflow: hidden;
      min-width: 0;
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

.yp-tile:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    }

.yp-tile::before {
      content: "";
      position: absolute;
      inset-inline-start: 0;
      top: 0;
      bottom: 0;
      width: 5px;
    }

.yp-tile--teal::before {
      background: var(--primary);
    }

.yp-tile--gold::before {
      background: var(--gold);
    }

.yp-tile-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

.yp-tile--teal .yp-tile-icon {
      background: var(--primary-soft);
      color: var(--primary-dark);
    }

.yp-tile--gold .yp-tile-icon {
      background: var(--gold-soft);
      color: var(--gold);
    }

.yp-tile-content {
      min-width: 0;
    }

.yp-tile-label {
      font-size: 11.5px;
      color: var(--text-muted);
      margin: 0 0 3px;
    }

.yp-tile-value {
      font-size: 18px;
      font-weight: 800;
      margin: 0;
      letter-spacing: .3px;
      line-height: 1.2;
    }

.yp-tile-value small {
      font-size: 10.5px;
      color: var(--text-muted);
      font-weight: 500;
      margin-inline-start: 6px;
    }

.yp-tile-value--sm {
      font-size: 15px;
    }

.year-period-info {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px;
    }

.year-period-info h3 {
      margin: 0 0 10px;
      font-size: 13px;
      font-weight: 800;
      color: var(--primary-dark);
      display: flex;
      align-items: center;
      gap: 8px;
    }

.year-period-info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px 14px;
    }

.year-period-info-item {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 8px 10px;
      border: 1px solid #E2E6E4;
      border-radius: 12px;
      background: #FFFFFF;
    }

.year-period-info-item:last-child {
      border-bottom: 1px solid #E2E6E4;
    }

.year-period-info-icon {
      width: 30px;
      height: 30px;
      border-radius: 9px;
      background: #FFFFFF;
      border: 1px solid var(--border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 12px;
      flex-shrink: 0;
    }

.year-period-info-label {
      font-size: 11px;
      color: var(--text-muted);
      margin: 0;
    }

.year-period-info-value {
      font-size: 13px;
      font-weight: 700;
      margin: 2px 0 0;
      color: var(--text-dark);
    }

.year-period-pills {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

.year-period-pill {
      display: inline-flex;
      align-items: center;
      background: #FFFFFF;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 2px 9px;
      font-size: 10.5px;
      font-weight: 700;
      color: var(--primary-dark);
    }

.year-period-banner {
      margin: 0 18px 14px;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

.year-period-banner--gold {
      background: var(--gold-soft);
      border: 1px solid #EAD8AE;
      color: #7A5410;
    }

.year-period-banner--gold i {
      color: var(--gold);
    }

.year-period-banner--danger {
      background: rgba(220, 53, 69, 0.08);
      border: 1px solid rgba(220, 53, 69, 0.22);
      color: #A32D2D;
    }

.year-period-banner--danger i {
      color: var(--danger);
    }

.year-period-empty {
      margin: 0 18px 14px;
      border-radius: 14px;
      padding: 12px 14px;
      background: rgba(192, 144, 48, 0.08);
      border: 1px solid rgba(192, 144, 48, 0.22);
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      color: #7A5410;
      font-weight: 600;
    }

@keyframes hpPulse {
      0% { box-shadow: 0 0 0 0 rgba(124, 255, 196, 0.28); }
      70% { box-shadow: 0 0 0 8px rgba(124, 255, 196, 0); }
      100% { box-shadow: 0 0 0 0 rgba(124, 255, 196, 0); }
    }

@media (max-width: 991.98px) {
      .year-period-body {
            grid-template-columns: 1fr;
      }

      .year-period-tiles {
            grid-template-columns: 1fr;
      }

      .year-period-info-grid {
            grid-template-columns: 1fr;
      }
    }

@media (max-width: 767.98px) {
      .year-period-head {
            align-items: flex-start;
            flex-direction: column;
            padding: 12px 14px;
      }

      .year-period-banner,
      .year-period-empty {
            margin-left: 0;
            margin-right: 0;
      }

      .year-period-title h1 {
            font-size: 15px;
      }

      .yp-tile-value {
            font-size: 17px;
      }
    }
