/* =============================================================================
   File Tracking System - Forest Department, Jharkhand
   site.css - Complete stylesheet (no frameworks)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Reset & base
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1C2833;
  background-color: #F4F6F8;
  min-height: 100vh;
}

a {
  color: #2E86C1;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* -----------------------------------------------------------------------------
   2. Layout
   ----------------------------------------------------------------------------- */
.page-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  padding-top: 56px;
}

.content-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  margin-left: 220px;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 32px;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1C2833;
}

.page-subtitle {
  font-size: 13px;
  color: #5D6D7E;
  margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   3. Header
   ----------------------------------------------------------------------------- */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #1B4F72;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-emblem {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2E86C1, #154360);
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-user-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.header-username {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.header-last-login {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

/* -----------------------------------------------------------------------------
   4. Sidebar
   ----------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  width: 220px;
  bottom: 0;
  background-color: #154360;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  z-index: 900;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2E86C1;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-text {
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-designation {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #FFFFFF;
}

.nav-link.active {
  background-color: rgba(46, 134, 193, 0.22);
  border-left-color: #2E86C1;
  color: #FFFFFF;
  font-weight: 600;
}

.nav-icon {
  font-size: 15px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 10px 14px 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* -----------------------------------------------------------------------------
   5. Breadcrumb
   ----------------------------------------------------------------------------- */
.breadcrumb-bar {
  background-color: #EAECEE;
  border-bottom: 1px solid #D5D8DC;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.breadcrumb-item {
  color: #5D6D7E;
}

.breadcrumb-item a {
  color: #2E86C1;
}

.breadcrumb-separator {
  color: #AAB7B8;
  user-select: none;
}

.breadcrumb-item.active {
  font-weight: 600;
  color: #1C2833;
}

/* -----------------------------------------------------------------------------
   6. Cards
   ----------------------------------------------------------------------------- */
.card {
  background-color: #FFFFFF;
  border: 1px solid #D5D8DC;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid #D5D8DC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1C2833;
}

.card-body {
  padding: 18px;
}

.card-footer {
  padding: 12px 18px;
  border-top: 1px solid #D5D8DC;
  background-color: #FAFBFC;
  border-radius: 0 0 6px 6px;
}

/* -----------------------------------------------------------------------------
   7. Metric cards
   ----------------------------------------------------------------------------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background-color: #FFFFFF;
  border: 1px solid #D5D8DC;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
}

.metric-card.highlight-danger {
  border-color: #E6B0AA;
  background-color: #FDF2F2;
}

.metric-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: #1B4F72;
  line-height: 1.2;
}

.metric-label {
  font-size: 12px;
  color: #5D6D7E;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* -----------------------------------------------------------------------------
   8. Forms
   ----------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1C2833;
  margin-bottom: 6px;
}

.form-label .req {
  color: #922B21;
  margin-left: 2px;
}

.form-control,
.form-control textarea,
input.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #D5D8DC;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #1C2833;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-color: #2E86C1;
  box-shadow: 0 0 0 2px rgba(46, 134, 193, 0.2);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #F4F6F8;
  color: #5D6D7E;
}

/* Date picker (Flatpickr) */
input.date-picker {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235D6D7E' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v1h14V3a1 1 0 0 0-1-1H2zm13 3H1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.flatpickr-calendar {
  font-family: "Segoe UI", Arial, sans-serif;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(28, 40, 51, 0.15);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: #2E86C1;
  border-color: #2E86C1;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #2874A6;
  border-color: #2874A6;
}

.flatpickr-day.today {
  border-color: #1E8449;
}

.flatpickr-day.today:hover {
  background: #1E8449;
  border-color: #1E8449;
  color: #fff;
}

.flatpickr-months .flatpickr-month {
  background: #1E8449;
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #fff;
  font-weight: 600;
}

.flatpickr-weekdays {
  background: #F4F6F8;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-col {
  flex: 1;
  min-width: 260px;
}

.form-col-grow {
  flex: 1;
  min-width: 200px;
}

.form-hint {
  font-size: 11px;
  color: #5D6D7E;
  margin-top: 4px;
}

fieldset.form-fieldset {
  border: 1px solid #D5D8DC;
  border-radius: 6px;
  padding: 12px 16px 16px;
  margin-bottom: 16px;
}

fieldset.form-fieldset legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 6px;
  color: #1B4F72;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1C2833;
  cursor: pointer;
}

/* -----------------------------------------------------------------------------
   9. Buttons
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #1B4F72;
  border-color: #1B4F72;
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background-color: #154360;
  border-color: #154360;
  text-decoration: none;
  color: #FFFFFF;
}

.btn-secondary {
  background-color: #FFFFFF;
  border-color: #D5D8DC;
  color: #1C2833;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #F4F6F8;
  text-decoration: none;
  color: #1C2833;
}

.btn-accent {
  background-color: #2E86C1;
  border-color: #2E86C1;
  color: #FFFFFF;
}

.btn-accent:hover:not(:disabled) {
  background-color: #2874A6;
  border-color: #2874A6;
  text-decoration: none;
  color: #FFFFFF;
}

.btn-danger {
  background-color: #922B21;
  border-color: #922B21;
  color: #FFFFFF;
}

.btn-danger:hover:not(:disabled) {
  background-color: #7B241C;
  text-decoration: none;
  color: #FFFFFF;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 11px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: #2E86C1;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   10. Tables
   ----------------------------------------------------------------------------- */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #D5D8DC;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background-color: #FFFFFF;
}

.data-table thead th {
  text-align: left;
  padding: 10px 12px;
  background-color: #1B4F72;
  color: #FFFFFF;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid #154360;
}

.data-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #EAECEE;
  vertical-align: middle;
  color: #1C2833;
}

.data-table tbody tr:hover {
  background-color: #F8F9FA;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .actions a {
  margin-right: 10px;
  font-weight: 600;
}

.row-urgent {
  background-color: #FCF3CF !important;
}

.row-very-urgent {
  background-color: #FADBD8 !important;
}

.row-overdue {
  background-color: #FDEBD0 !important;
}

.table-summary-row td {
  font-weight: 600;
  background-color: #F4F6F8;
  border-top: 2px solid #D5D8DC;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid #D5D8DC;
  font-size: 12px;
  background-color: #FFFFFF;
  color: #1C2833;
}

.pagination a:hover {
  background-color: #EBF5FB;
  text-decoration: none;
  border-color: #2E86C1;
}

.pagination span.current {
  background-color: #1B4F72;
  border-color: #1B4F72;
  color: #FFFFFF;
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   11. Badges
   ----------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-transit {
  background-color: #D6EAF8;
  color: #1B4F72;
}

.badge-at-table {
  background-color: #D1F2EB;
  color: #0E6655;
}

.badge-pending {
  background-color: #FCF3CF;
  color: #7D6608;
}

.badge-closed {
  background-color: #E5E7E9;
  color: #424949;
}

.badge-urgent {
  background-color: #FADBD8;
  color: #922B21;
}

.badge-very-urgent {
  background-color: #922B21;
  color: #FFFFFF;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FFFFFF;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.role-super-admin {
  background-color: #6C3483;
}

.role-pccf {
  background-color: #1B4F72;
}

.role-pa-ps {
  background-color: #1A5276;
}

.role-section-officer {
  background-color: #0E6655;
}

.role-dfo {
  background-color: #784212;
}

.role-despatch {
  background-color: #5D4037;
}

.role-report-viewer {
  background-color: #424949;
}

/* -----------------------------------------------------------------------------
   12. Timeline
   ----------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background-color: #D5D8DC;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px #D5D8DC;
}

.timeline-dot.transit {
  background-color: #2E86C1;
  box-shadow: 0 0 0 2px #2E86C1;
}

.timeline-dot.at-table {
  background-color: #1E8449;
  box-shadow: 0 0 0 2px #1E8449;
}

.timeline-dot.pending {
  background-color: #B7950B;
  box-shadow: 0 0 0 2px #B7950B;
}

.timeline-dot.closed {
  background-color: #7F8C8D;
  box-shadow: 0 0 0 2px #7F8C8D;
}

.timeline-dot.urgent {
  background-color: #922B21;
  box-shadow: 0 0 0 2px #922B21;
}

.timeline-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.timeline-main {
  flex: 1;
  min-width: 200px;
}

.timeline-date {
  font-size: 13px;
  font-weight: 700;
  color: #1C2833;
  margin-bottom: 4px;
}

.timeline-route {
  font-size: 13px;
  color: #1C2833;
  margin-bottom: 4px;
}

.timeline-meta {
  font-size: 12px;
  color: #5D6D7E;
  margin-bottom: 2px;
}

.timeline-remarks {
  font-size: 12px;
  color: #5D6D7E;
  font-style: italic;
  margin-top: 6px;
}

/* -----------------------------------------------------------------------------
   13. Tabs
   ----------------------------------------------------------------------------- */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid #D5D8DC;
  margin-bottom: 16px;
}

.tab-link {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5D6D7E;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  background: none;
  margin-bottom: -1px;
}

.tab-link:hover {
  color: #2E86C1;
  background-color: #F4F6F8;
}

.tab-link.active {
  color: #1B4F72;
  background-color: #FFFFFF;
  border-color: #D5D8DC;
  border-bottom-color: #FFFFFF;
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* -----------------------------------------------------------------------------
   14. Login page
   ----------------------------------------------------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-bg {
  flex: 1;
  background-color: #1B4F72;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background-color: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 28px 28px 24px;
}

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

.login-emblem {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2E86C1, #154360);
  border: 3px solid #D5D8DC;
}

.login-govt {
  font-size: 12px;
  font-weight: 600;
  color: #5D6D7E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-dept {
  font-size: 13px;
  color: #1B4F72;
  font-weight: 600;
  margin-top: 4px;
}

.login-title {
  font-size: 18px;
  font-weight: 700;
  color: #1C2833;
  text-align: center;
  margin-bottom: 20px;
}

.login-footer {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  background-color: #154360;
}

/* -----------------------------------------------------------------------------
   15. Step panels
   ----------------------------------------------------------------------------- */
.step-panel {
  border: 1px solid #D5D8DC;
  border-radius: 6px;
  background-color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: #EBF5FB;
  border-bottom: 1px solid #D5D8DC;
  border-radius: 6px 6px 0 0;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: #1B4F72;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #1B4F72;
}

.step-body {
  padding: 18px;
}

.mark-immediate-panel {
  margin-top: 20px;
}

.mark-immediate-panel .form-fieldset {
  margin-bottom: 12px;
}

.mark-immediate-panel .form-col-grow {
  flex: 1 1 100%;
  min-width: 280px;
}

/* -----------------------------------------------------------------------------
   16. Modal
   ----------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

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

.modal-box {
  width: 100%;
  max-width: 480px;
  background-color: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid #D5D8DC;
  font-size: 16px;
  font-weight: 700;
  color: #1B4F72;
}

.modal-body {
  padding: 18px;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid #D5D8DC;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: #FAFBFC;
}

/* -----------------------------------------------------------------------------
   17. Alert / notification
   ----------------------------------------------------------------------------- */
.alert {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #D5F5E3;
  border-color: #A9DFBF;
  color: #145A32;
}

.alert-danger {
  background-color: #FADBD8;
  border-color: #F5B7B1;
  color: #7B241C;
}

.alert-warning {
  background-color: #FCF3CF;
  border-color: #F9E79F;
  color: #7D6608;
}

.alert-info {
  background-color: #D6EAF8;
  border-color: #AED6F1;
  color: #1B4F72;
}

/* -----------------------------------------------------------------------------
   18. Utility classes
   ----------------------------------------------------------------------------- */
.text-muted {
  color: #5D6D7E;
}

.text-primary {
  color: #1B4F72;
}

.text-success {
  color: #1E8449;
}

.text-danger {
  color: #922B21;
}

.text-warning {
  color: #B7950B;
}

.fw-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }

.w-100 {
  width: 100%;
}

.text-right {
  text-align: right;
}

.mr-2 {
  margin-right: 8px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.highlight-panel {
  background-color: #EBF5FB;
  border: 1px solid #AED6F1;
  border-radius: 6px;
  padding: 14px 16px;
}

.highlight-panel.danger-pending {
  background-color: #FADBD8;
  border-color: #F5B7B1;
}

.file-no-large {
  font-size: 22px;
  font-weight: 700;
  color: #1B4F72;
}

.file-no-readonly {
  display: block;
  font-weight: 700;
  color: #1B4F72;
  padding: 9px 12px;
  background-color: #F4F6F8;
  border: 1px solid #D5D8DC;
  border-radius: 6px;
}

.search-hero {
  max-width: 720px;
  margin: 0 auto 20px;
}

.search-hero .form-control {
  font-size: 16px;
  padding: 12px 14px;
}

.slip-box {
  border: 1px dashed #5D6D7E;
  border-radius: 6px;
  padding: 16px;
  background-color: #FAFBFC;
}

.slip-box h2.slip-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1B4F72;
}

.chart-placeholder {
  min-height: 220px;
  border: 1px dashed #D5D8DC;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5D6D7E;
  font-size: 13px;
  background-color: #FAFBFC;
  margin-bottom: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-bar-field {
  flex: 1;
  min-width: 120px;
}

.search-bar-filter {
  width: 200px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   19. Print styles
   ----------------------------------------------------------------------------- */
@media print {
  .sidebar,
  .header-bar,
  .breadcrumb-bar,
  .btn,
  .pagination-bar,
  .tab-nav,
  .modal-overlay {
    display: none !important;
  }

  .page-wrapper {
    padding-top: 0;
  }

  .content-area {
    margin-left: 0;
  }

  .main-content {
    padding: 0;
    overflow: visible;
  }

  .card,
  .step-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  body {
    background: #FFFFFF;
  }
}

/* -----------------------------------------------------------------------------
   20. Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content-area {
    margin-left: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .header-title {
    font-size: 14px;
  }

  .form-row {
    flex-direction: column;
  }
}
