::-webkit-scrollbar {
  display: none !important;
}

body {
  background-color: #f4f6fb !important;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* ── Page layout ── */
.blue-light-bg {
  background-color: #f0f4ff !important;
}
.my-header-bg {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

/* ── Utility ── */
.fs-7 {
  font-size: 0.65rem !important;
}
.pill-width {
  width: 9rem;
}
.sm-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
}

/* ── Card-list item (visitor-style) ── */
.record-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f6;
  padding: 20px 24px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
  position: relative;
}
.record-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border-color: #d8dcf0;
}

.record-card .record-number {
  font-size: 0.75rem;
  color: #aab0c6;
  font-weight: 600;
  min-width: 22px;
  padding-top: 2px;
}
.record-card .record-body {
  flex: 1;
  min-width: 0;
}
.record-card .record-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}

/* Field rows inside card */
.record-field {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.3;
}
.record-field .rf-label {
  color: #9ca3af;
  font-weight: 500;
}
.record-field .rf-value {
  color: #111827;
  font-weight: 500;
}
.record-field .rf-value.text-primary {
  color: #4f6ef7 !important;
}

.record-card .divider {
  width: 0;
  background: transparent;
  align-self: stretch;
  margin: 0 2px;
}

/* Action buttons matching image style */
.btn-card-download {
  background: #d1fae5;
  color: #059669;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-download:hover {
  background: #a7f3d0;
  color: #047857;
}
.btn-card-update {
  background: #fef3c7;
  color: #d97706;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-update:hover {
  background: #fde68a;
  color: #b45309;
}
.btn-card-delete {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-delete:hover {
  background: #fecaca;
  color: #b91c1c;
}
.btn-card-approve {
  background: #d1fae5;
  color: #059669;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-approve:hover {
  background: #a7f3d0;
  color: #059669;
}
.btn-card-reject {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-reject:hover {
  background: #fecaca;
  color: #dc2626;
}
.btn-card-process {
  background: #ede9fe;
  color: #7c3aed;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-process:hover {
  background: #ddd6fe;
  color: #7c3aed;
}
.btn-card-release {
  background: #d1fae5;
  color: #059669;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-release:hover {
  background: #a7f3d0;
  color: #059669;
}
.btn-card-view {
  background: #e0e7ff;
  color: #4338ca;
  border: none;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  width: 100%;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
}
.btn-card-view:hover {
  background: #c7d2fe;
  color: #4338ca;
}

.btn-divider {
  height: 4px;
  background: transparent;
  margin: 0;
  width: 100%;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-approved {
  background: #d1fae5;
  color: #059669;
}
.status-pending {
  background: #fef3c7;
  color: #d97706;
}
.status-rejected {
  background: #fee2e2;
  color: #dc2626;
}
.status-inreview {
  background: #dbeafe;
  color: #2563eb;
}
.status-hold {
  background: #f3e8ff;
  color: #7c3aed;
}
.status-success {
  background: #d1fae5;
  color: #059669;
}

/* Page header */
.page-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1a5276 60%, #1e8449 100%);
  border-radius: 16px;
  padding: 20px 24px;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero h4 {
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}
.page-hero .sub {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* KPI card */
.kpi-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef0f6;
  padding: 16px 20px;
  transition: box-shadow 0.15s;
}
.kpi-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Search bar */
.search-bar {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-bar input {
  border: none;
  outline: none;
  font-size: 0.85rem;
  background: transparent;
  color: #374151;
  flex: 1;
}

/* Filter chip */
.filter-chip {
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 24px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  gap: 8px;
  display: flex;
}
.filter-chip.active {
  background: #4f6ef7;
  color: #fff;
  border-color: #4f6ef7;
}
.filter-chip.inactive {
  background: #fff;
  color: #6b7280;
  border-color: #e5e7eb;
}
.filter-chip.inactive:hover {
  border-color: #4f6ef7;
  color: #4f6ef7;
}

/* Count badge on chip */
.chip-count {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 0.68rem;
}
.filter-chip.inactive .chip-count {
  background: #f3f4f6;
  color: #6b7280;
}

/* GRN bar */
.grn-bar-track {
  height: 8px;
  border-radius: 4px;
  background: #f3f4f6;
  overflow: hidden;
}
.grn-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}

/* Letterhead preview */
.letterhead-preview {
  border: 2px solid #1a5276;
  border-radius: 10px;
  padding: 22px;
  background: #fff;
}
.letterhead-header-bar {
  background: linear-gradient(135deg, #1a5276 60%, #27ae60 100%);
  border-radius: 7px 7px 0 0;
  padding: 13px 22px;
  color: #fff;
}
.letterhead-footer-bar {
  background: linear-gradient(135deg, #27ae60 0%, #1a5276 100%);
  border-radius: 0 0 7px 7px;
  padding: 8px 22px;
  color: #fff;
}

/* Step tracker */
.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Empty state */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}
.empty-state i {
  font-size: 2.5rem;
  color: #d1d5db;
  display: block;
  margin-bottom: 12px;
}
.empty-state p {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Modal */
.modal-content {
  border-radius: 16px !important;
  border: none !important;
}
.modal-header {
  padding: 20px 24px 12px;
}
.modal-body {
  padding: 8px 24px 12px;
}
.modal-footer {
  padding: 12px 24px 20px;
}

/* Approval timeline inline */
.appr-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* form control */
.form-control,
.form-select {
  color: #000 !important;
  border-radius: 8px !important;
  border: 1.5px solid #e5e7eb !important;
}
.form-control:focus,
.form-select:focus {
  border-color: #4f6ef7 !important;
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1) !important;
}

/* Table inside card (reports only) */
.report-table th {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  background: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  border-top: none;
}
.report-table td {
  font-size: 0.83rem;
  padding: 12px 16px;
  border-bottom: 1px solid #f9fafb;
  vertical-align: middle;
}
.report-table tr:last-child td {
  border-bottom: none;
}
.report-table tr:hover td {
  background: #fafbff;
}

/* Dashboard */

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.dash-fade {
  animation: fadeUp 0.4s ease both;
}
.dash-fade:nth-child(2) {
  animation-delay: 0.06s;
}
.dash-fade:nth-child(3) {
  animation-delay: 0.12s;
}
.dash-fade:nth-child(4) {
  animation-delay: 0.18s;
}
.metric-card {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 18px;
  padding: 22px 22px 18px;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.metric-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
}
.mc-amber::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.mc-blue::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.mc-purple::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.mc-green::before {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}
.mc-teal::before {
  background: linear-gradient(90deg, #0d9488, #34d399);
}
.mc-indigo::before {
  background: linear-gradient(90deg, #4f46e5, #818cf8);
}
.mc-rose::before {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}
.mc-cyan::before {
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}
.metric-card .mc-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}
.action-pill:hover {
  filter: brightness(0.93);
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 18px;
}
.section-divider .sd-bar {
  width: 4px;
  height: 22px;
  border-radius: 3px;
  flex-shrink: 0;
}
.section-divider .sd-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #111827;
}
.section-divider .sd-link {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-divider .sd-link:hover {
  opacity: 0.8;
}
.quick-link {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.18s;
  color: #111827;
}
.quick-link:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-color: #d1d5f0;
  transform: translateY(-1px);
  color: #111827;
}
.quick-link .ql-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.activity-item:last-child {
  border-bottom: none;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.hero-banner {
  background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 45%, #133d25 100%);
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.hero-banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.hero-banner::before {
  content: "";
  position: absolute;
  bottom: -80px;
  right: 80px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(30, 132, 73, 0.18);
}
.progress-bar-wrap {
  background: #f3f4f6;
  border-radius: 6px;
  height: 7px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 6px;
}
.stat-delta.up {
  background: #f0fdf4;
  color: #16a34a;
}
.stat-delta.warn {
  background: #fffbeb;
  color: #b45309;
}
.stat-delta.down {
  background: #fef2f2;
  color: #dc2626;
}
.module-card {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 18px;
  overflow: hidden;
}
.module-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module-body {
  padding: 16px 22px 20px;
}
.swal-popup-rounded {
  border-radius: 16px !important;
}
