/* ==========================================================================
   CSPC Lost & Found System - Official Campus Community Portal
   Design System Matching Institutional Specifications
   ========================================================================== */

/* ── 1. Tokens & Color Palette ───────────────────────────────────────────── */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Backgrounds */
  --bg-app: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-header: #F8FAFC;
  --bg-input: #FFFFFF;

  /* Borders & Dividers */
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #0891B2;

  /* Typography */
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Primary Brand Colors (Institutional Teal / Cyan) */
  --primary-teal: #0891B2;
  --primary-teal-dark: #0E7490;
  --primary-teal-light: #E0F2FE;
  --primary-teal-text: #0284C7;
  
  /* Status & Semantic Colors */
  --badge-safe-bg: #F0FDFA;
  --badge-safe-border: #99F6E4;
  --badge-safe-text: #0F766E;

  --badge-pending-bg: #FEF3C7;
  --badge-pending-text: #B45309;

  --badge-rejected-bg: #FEE2E2;
  --badge-rejected-text: #B91C1C;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-card-active: 0 4px 14px -1px rgba(8, 145, 178, 0.16);
  --shadow-dropdown: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 2. Reset & Layout ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: none !important;
}

/* Master Layout Grid: Sidebar + Main Content */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── 3. Left Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  min-width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.brand-shield-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #2563EB;
  background: #FFFFFF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-shield-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0E7490;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-institution {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background-color: var(--bg-app);
  color: var(--text-main);
}

.nav-item.active {
  background-color: #E0F2FE;
  color: #0369A1;
  font-weight: 700;
}

.nav-item.active svg {
  color: #0284C7;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-item:hover svg {
  color: var(--text-secondary);
}

/* Sidebar Bottom Card */
.sidebar-footer-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-top: 1.5rem;
}

.sidebar-footer-card .shield-icon {
  width: 20px;
  height: 20px;
  color: #0891B2;
  margin-bottom: 0.4rem;
}

.sidebar-footer-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.sidebar-footer-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.sidebar-contact-info {
  border-top: 1px solid var(--border-light);
  padding-top: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.sidebar-contact-info svg {
  width: 14px;
  height: 14px;
  color: #0891B2;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── 4. Main Viewport & Header ───────────────────────────────────────────── */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-app);
  position: relative;
  overflow-y: auto;
}

/* Subtle background geometric lines matching mockup */
.geometric-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  height: 380px;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

/* Top Breadcrumb Header Bar */
.top-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-sidebar);
  position: relative;
  z-index: 10;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.breadcrumb-trail svg {
  color: #0891B2;
}

.breadcrumb-trail .current {
  color: var(--text-main);
  font-weight: 600;
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.badge-public-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  color: #0F766E;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.header-date-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.staff-login-trigger {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-teal);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.2rem 0.5rem;
}

.staff-login-trigger:hover {
  color: var(--primary-teal-dark);
}

/* ── 5. Main Hero / Header Banner ────────────────────────────────────────── */
.portal-hero {
  padding: 2.25rem 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-content-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.hero-left-col {
  max-width: 620px;
}

.hero-start-tagline {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0891B2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
}

.hero-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.hero-stat-card {
  text-align: right;
  flex-shrink: 0;
}

.stat-big-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #0891B2;
  line-height: 1;
  display: block;
}

.stat-desc-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  display: block;
  margin-top: 0.2rem;
}

/* ── 6. Search & Filters Bar ─────────────────────────────────────────────── */
.search-filter-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 220px 240px;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.public-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.public-search-input-box {
  flex: 1;
  position: relative;
  width: 100%;
}

.public-search-input-box input {
  padding-right: 2rem;
}

.public-search-input-box .btn-clear-search {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: #E2E8F0;
  color: #475569;
  border: none;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
}

.public-search-input-box .btn-clear-search:hover {
  background: #CBD5E1;
  color: #0F172A;
}

.public-mobile-filter-btn {
  display: none !important;
}

.filter-input-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0E7490;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-field-input-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.filter-field-input-box select,
.filter-field-input-box input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
  background: #F8FAFC;
  outline: none;
  transition: var(--transition);
}

.filter-field-input-box select:focus,
.filter-field-input-box input:focus {
  border-color: var(--border-focus);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.filter-field-input-box .field-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.filter-field-input-box input.with-icon {
  padding-left: 2.2rem;
}

/* ── 7. Split Content: Cards Grid + Details Sidebar ──────────────────────── */
.catalog-content-wrapper {
  padding: 0.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.75rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* Left Grid Section */
.grid-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.grid-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.grid-main-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.grid-items-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.grid-sort-select {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  outline: none;
}

/* 3x3 Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

/* Single Item Card */
.found-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
}

.found-item-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Active / Selected Card State matching screenshot */
.found-item-card.selected {
  border: 2px solid #0891B2;
  box-shadow: var(--shadow-card-active);
}

.card-selected-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0891B2;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.found-item-card.selected .card-selected-badge {
  display: flex;
}

.card-selected-badge svg {
  width: 14px;
  height: 14px;
}

/* Preview Image / Placeholder Area */
.card-media-box {
  height: 125px;
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-img-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-placeholder-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: #0891B2;
}

.item-placeholder-graphic svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.5;
}

.item-preview-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748B;
}

.item-pending-text {
  font-size: 0.62rem;
  color: #94A3B8;
}

/* Card Body */
.card-content {
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.card-item-category {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.card-meta-line svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.card-ref-code {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── 8. Right Sticky Details Panel ───────────────────────────────────────── */
.details-panel-container {
  position: sticky;
  top: 1.5rem;
}

.item-details-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.details-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.details-panel-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0891B2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.details-info-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.details-title-row {
  margin-bottom: 0.5rem;
}

.details-item-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.details-ref-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.details-ref-tag {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.details-status-badge {
  background: var(--badge-safe-bg);
  border: 1px solid var(--badge-safe-border);
  color: var(--badge-safe-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Attributes Key-Value List */
.details-specs-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-key {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
}

/* Officer / Safe-keeper Card */
.officer-badge-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.officer-shield-icon {
  width: 22px;
  height: 22px;
  color: #0891B2;
  flex-shrink: 0;
}

.officer-info {
  display: flex;
  flex-direction: column;
}

.officer-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.officer-role-id {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Primary Contact Guard Button */
.btn-contact-guard {
  width: 100%;
  background-color: #0E7490;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(14, 116, 144, 0.25);
  margin-bottom: 0.9rem;
}

.btn-contact-guard:hover {
  background-color: #0891B2;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 116, 144, 0.35);
}

.btn-contact-guard svg {
  width: 18px;
  height: 18px;
}

.claim-instruction-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

/* ── 9. Pagination & Footer Note ─────────────────────────────────────────── */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-num-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.page-num-btn:hover {
  background: #F1F5F9;
}

.page-num-btn.active {
  background: #E0F2FE;
  border-color: #7DD3FC;
  color: #0369A1;
}

.page-nav-arrow {
  padding: 0 0.5rem;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.page-nav-arrow:hover:not(:disabled) {
  color: var(--text-main);
}

.page-nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.public-portal-footer {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light, #E2E8F0);
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  gap: 1rem;
}

.footer-col-left,
.footer-col-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-bullet {
  color: #94A3B8;
  user-select: none;
}

.footer-subtext {
  color: var(--text-dim, #94A3B8);
}

.footer-staff-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted, #64748B);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  transition: all 0.15s ease;
}

.footer-staff-link:hover {
  color: var(--primary-teal, #0891B2);
  background: rgba(8, 145, 178, 0.08);
  text-decoration: none;
}

.footer-staff-link svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.footer-staff-link:hover svg {
  opacity: 1;
}

/* ── 10. Modals & Dialogs ────────────────────────────────────────────────── */
dialog.institutional-dialog {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  color: var(--text-main);
  width: 90%;
  max-width: 520px;
  margin: auto;
  padding: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  outline: none;
}

dialog.institutional-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Custom Institutional Modal Dialogs */
dialog.custom-dialog {
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  background: #FFFFFF;
  color: #0F172A;
  width: 92%;
  max-width: 600px;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  outline: none;
  overflow: hidden;
}

dialog.custom-dialog:not([open]) {
  display: none !important;
}

dialog.custom-dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog.custom-dialog.lg {
  max-width: 720px;
}

dialog.custom-dialog.md {
  max-width: 580px;
}

dialog.custom-dialog.sm {
  max-width: 420px;
}

dialog.custom-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.custom-dialog .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.custom-dialog .dialog-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.custom-dialog .dialog-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.custom-dialog .btn-close-dialog {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

.custom-dialog .btn-close-dialog:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.custom-dialog .dialog-form,
.custom-dialog .dialog-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
  flex: 1;
}

.custom-dialog .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .custom-dialog .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.custom-dialog .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.custom-dialog .form-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.custom-dialog .form-label.required::after {
  content: ' *';
  color: #E11D48;
}

.custom-dialog .form-input,
.custom-dialog .form-select,
.custom-dialog .form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-dialog .form-input:focus,
.custom-dialog .form-select:focus,
.custom-dialog .form-textarea:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.custom-dialog .confidential-group {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

.custom-dialog .badge-lock {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #FEF3C7;
  color: #B45309;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  border: 1px solid #FDE68A;
}

.custom-dialog .dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.15rem 1.75rem;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  margin-top: 0.5rem;
}

.dialog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.dialog-modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-close-x {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.btn-close-x:hover {
  color: var(--text-main);
  background: #F1F5F9;
}

.dialog-content-body {
  padding: 1.5rem;
}

.modal-item-summary-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.summary-code-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0891B2;
}

.summary-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-field-group {
  margin-bottom: 1rem;
}

.form-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-field-input, .form-field-textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: var(--transition);
}

.form-field-input:focus, .form-field-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.dialog-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: #F8FAFC;
}

.btn-cancel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-submit-action {
  background: #0E7490;
  border: none;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-submit-action:hover {
  background: #0891B2;
}

/* Toast Alerts (Modern Executive Dashboard Theme) */
.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 99999;
  pointer-events: none;
  max-width: 440px;
  width: calc(100vw - 3.5rem);
}

.toast {
  pointer-events: auto;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
  font-family: inherit;
}

.toast-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.toast-message {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.45;
  word-break: break-word;
}

.toast-close-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-left: 0.25rem;
  margin-top: 1px;
}

.toast-close-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}

/* Success Variant */
.toast.toast-success {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.toast.toast-success .toast-icon-wrap {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.toast.toast-success .toast-title {
  color: #15803D;
}

/* Error Variant */
.toast.toast-error {
  border-color: #FECACA;
  background: #FEF2F2;
}

.toast.toast-error .toast-icon-wrap {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.toast.toast-error .toast-title {
  color: #DC2626;
}

/* Info Variant */
.toast.toast-info {
  border-color: #BFDBFE;
  background: #EFF6FF;
}

.toast.toast-info .toast-icon-wrap {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.toast.toast-info .toast-title {
  color: #1D4ED8;
}

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

/* ── 11. Responsive Breakpoints ──────────────────────────────────────────── */

/* ── Burger / Sidebar Toggle Button ──────────────────────────────────────── */
.sidebar-burger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--text-secondary);
}
.sidebar-burger-btn:hover {
  background: #E0F2FE;
  border-color: #7DD3FC;
  color: #0284C7;
}
.sidebar-burger-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Admin Sidebar Burger Button ─────────────────────────────────────────── */
.admin-sidebar-burger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--text-secondary);
}
.admin-sidebar-burger-btn:hover {
  background: #E0F2FE;
  border-color: #7DD3FC;
  color: #0284C7;
}
.admin-sidebar-burger-btn.collapsed {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #2563EB;
}
.admin-sidebar-burger-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Sidebar Brand Fix: CSPC · Lost & Found on one line ─────────────────── */
.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-primary-line {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1.15;
}

/* Admin sidebar brand - force one line */
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title-line {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  white-space: nowrap;
}
.brand-abbr {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0E7490;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-sep {
  color: #94A3B8;
  font-weight: 400;
  font-size: 0.9rem;
}
.brand-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.brand-college-tag {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ── Sidebar Collapsible State ───────────────────────────────────────────── */
.sidebar,
.admin-sidebar {
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop sidebar collapse (icon-only mode) */
@media (min-width: 769px) {
  .sidebar.sidebar-collapsed {
    width: 68px;
    min-width: 68px;
    padding: 0;
    overflow: hidden;
  }
  .sidebar.sidebar-collapsed .sidebar-top {
    padding: 1.25rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .sidebar.sidebar-collapsed .sidebar-brand .brand-info,
  .sidebar.sidebar-collapsed .sidebar-section-title,
  .sidebar.sidebar-collapsed .nav-item span,
  .sidebar.sidebar-collapsed .sidebar-bottom {
    display: none !important;
  }
  .sidebar.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .sidebar.sidebar-collapsed .brand-shield-box {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .sidebar.sidebar-collapsed .sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .sidebar.sidebar-collapsed .nav-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .sidebar.sidebar-collapsed .nav-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    display: block !important;
    color: var(--text-secondary);
  }
  .sidebar.sidebar-collapsed .nav-item:hover svg,
  .sidebar.sidebar-collapsed .nav-item.active svg {
    color: #0891B2;
  }

  /* Admin & Guard sidebar desktop collapse */
  .admin-sidebar.sidebar-collapsed {
    width: 68px;
    min-width: 68px;
    padding: 0;
    overflow: hidden;
  }
  .admin-sidebar.sidebar-collapsed .brand-text,
  .admin-sidebar.sidebar-collapsed .brand-college-tag,
  .admin-sidebar.sidebar-collapsed .admin-section-label,
  .admin-sidebar.sidebar-collapsed .admin-nav-item span,
  .admin-sidebar.sidebar-collapsed .admin-sidebar-bottom {
    display: none !important;
  }
  .admin-sidebar.sidebar-collapsed .sidebar-top-branding {
    padding: 1.25rem 0.6rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #F1F5F9;
  }
  .admin-sidebar.sidebar-collapsed .brand-link {
    justify-content: center;
  }
  .admin-sidebar.sidebar-collapsed .brand-crest-box {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .admin-sidebar.sidebar-collapsed .admin-nav-section {
    padding: 1rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .admin-sidebar.sidebar-collapsed .admin-nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .admin-sidebar.sidebar-collapsed .admin-nav-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .admin-sidebar.sidebar-collapsed .admin-nav-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    display: block !important;
    color: inherit;
    stroke: currentColor;
  }
}

@media (max-width: 1100px) {
  .catalog-content-wrapper {
    grid-template-columns: 1fr;
  }
  .details-panel-container {
    position: static;
    order: -1;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .search-filter-panel {
    grid-template-columns: 1fr 1fr;
  }
  .public-search-block {
    grid-column: 1 / -1;
  }
  .hero-content-row {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-stat-card {
    text-align: left;
  }
  .top-header-bar {
    padding: 0.85rem 1.25rem;
  }
  .portal-hero {
    padding: 1.5rem 1.25rem 1rem;
  }
  .catalog-content-wrapper {
    padding: 0.5rem 1.25rem 2rem;
  }
}

/* ── Mobile View (≤ 768px) ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide desktop sidebar entirely */
  .sidebar,
  .admin-sidebar {
    display: none !important;
  }

  /* Adjust main content for mobile bottom tab bar */
  .main-viewport,
  .admin-main-content {
    padding-bottom: 70px;
  }

  /* Compact header on mobile */
  .top-header-bar,
  .admin-topbar {
    padding: 0.75rem 1rem;
  }
  .breadcrumb-trail span:not(.current),
  .breadcrumb-trail svg,
  .header-date-text {
    display: none;
  }

  .breadcrumb-trail .current {
    font-size: 0.9rem;
    font-weight: 700;
  }
  .top-header-right .badge-public-view {
    display: none;
  }

  /* Burger button hidden on mobile since sidebar is replaced by bottom tab */
  .sidebar-burger-btn,
  .admin-sidebar-burger-btn {
    display: none !important;
  }

  /* Hero section compact */
  .portal-hero {
    padding: 1.25rem 1rem 0.75rem;
  }
  .hero-headline {
    font-size: 1.65rem;
  }
  .hero-description {
    font-size: 0.85rem;
  }
  .hero-stat-card {
    text-align: left;
  }
  .stat-big-number {
    font-size: 2rem;
  }

  /* Search filter - mobile layout */
  .public-desktop-filter {
    display: none !important;
  }
  .public-mobile-filter-btn {
    display: inline-flex !important;
  }
  .search-filter-panel {
    display: block;
    padding: 0.65rem 0.85rem;
  }

  /* Catalog content area */
  .catalog-content-wrapper {
    padding: 0.5rem 1rem 2rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Cards grid - 2 columns on mobile */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Make cards touch-friendlier */
  .found-item-card {
    border-radius: var(--radius-md);
  }
  .card-media-box {
    height: 100px;
  }
  .card-content {
    padding: 0.75rem;
  }
  .card-item-title {
    font-size: 0.85rem;
  }

  /* Hide desktop details panel on mobile - replaced by bottom sheet */
  .details-panel-container {
    display: none !important;
  }

  /* Pagination compact */
  .pagination-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .public-portal-footer {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  /* Single column cards on very small screens */
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 1.45rem;
  }
}

/* ── Mobile Bottom Tab Navigation Bar ───────────────────────────────────── */
.mobile-bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 768px) {
  .mobile-bottom-tab-bar {
    display: flex;
    align-items: stretch;
  }
}

.mob-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem;
  min-height: 60px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}
.mob-tab-item:hover,
.mob-tab-item:active {
  color: #0891B2;
  background: #F0FDFA;
}
.mob-tab-item.active {
  color: #0891B2;
}
.mob-tab-item.active:not(.accent-tab) {
  background: #F0FDFA;
}
.mob-tab-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mob-tab-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}
/* Active tab indicator dot */
.mob-tab-item.active .mob-tab-label {
  color: #0891B2;
}
.mob-tab-item.accent-tab.active .mob-tab-label {
  color: #FFFFFF;
}
.mob-tab-item.active::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: #0891B2;
  border-radius: 0 0 3px 3px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.mob-tab-item {
  position: relative;
}

/* Special tab for add item (admin) - accent color */
.mob-tab-item.accent-tab {
  flex: 1.2;
  max-width: 120px;
  align-self: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0891B2, #0E7490);
  border-radius: var(--radius-md);
  margin: 0.35rem 0.25rem;
  min-height: auto;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.35);
}
.mob-tab-item.accent-tab:hover {
  background: linear-gradient(135deg, #0E7490, #0891B2);
  color: #FFFFFF;
}
.mob-tab-item.accent-tab.active::before {
  background: #FFFFFF;
}

/* ── Mobile Bottom Sheet (Item Details) ─────────────────────────────────── */
.mobile-bottom-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-bottom-sheet-overlay.open {
  opacity: 1;
}

.mobile-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 301;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bottom-sheet.open {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 0.75rem auto 0.5rem;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.sheet-header-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0891B2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sheet-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-main);
}
.sheet-close-btn svg {
  width: 16px;
  height: 16px;
}

.sheet-body {
  overflow-y: auto;
  padding: 1.25rem 1.25rem;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.sheet-item-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.sheet-ref-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.sheet-ref-tag {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sheet-status-badge {
  background: var(--badge-safe-bg);
  border: 1px solid var(--badge-safe-border);
  color: var(--badge-safe-text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.sheet-specs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.sheet-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sheet-spec-key {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sheet-spec-val {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
}
.sheet-officer-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.sheet-officer-icon {
  width: 22px;
  height: 22px;
  color: #0891B2;
  flex-shrink: 0;
}
.sheet-officer-info {
  display: flex;
  flex-direction: column;
}
.sheet-officer-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}
.sheet-officer-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sheet-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
  background: #FFFFFF;
}
.sheet-contact-btn {
  width: 100%;
  background-color: #0E7490;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(14, 116, 144, 0.3);
  font-family: var(--font-sans);
}
.sheet-contact-btn:hover,
.sheet-contact-btn:active {
  background-color: #0891B2;
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.4);
}
.sheet-contact-btn svg {
  width: 18px;
  height: 18px;
}
.sheet-claim-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
  margin-top: 0.6rem;
}

/* Only show bottom sheet on mobile */
.mobile-bottom-sheet,
.mobile-bottom-sheet-overlay {
  display: none;
}
@media (max-width: 768px) {
  .mobile-bottom-sheet {
    display: flex;
    flex-direction: column;
  }
  .mobile-bottom-sheet-overlay {
    display: none;
  }
  .mobile-bottom-sheet-overlay.open {
    display: block;
  }
}

/* ── 12. Dashboard & Staff Management View Styles ────────────────────────── */
.dashboard-wrapper {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.role-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  background: #0E7490;
}

.dashboard-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-box.indigo { background: #E0F2FE; color: #0284C7; }
.stat-icon-box.amber { background: #FEF3C7; color: #D97706; }
.stat-icon-box.emerald { background: #D1FAE5; color: #059669; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dashboard-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.tab-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.65);
}

.tab-btn.active {
  background: #FFFFFF;
  color: #0E7490;
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

.tab-btn svg {
  transition: transform 0.2s ease;
}

.tab-btn:hover svg {
  transform: translateY(-1px);
}

.tab-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  background: #E2E8F0;
  color: #475569;
  line-height: 1;
  transition: all 0.2s ease;
}

.tab-btn.active .tab-counter-badge.items-badge {
  background: #E0F2FE;
  color: #0284C7;
}

.tab-counter-badge.claims-badge-alert {
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid #FCD34D;
  animation: badge-pulse 2.2s infinite ease-in-out;
}

.tab-btn.active .tab-counter-badge.claims-badge-alert {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #D97706;
}

.tab-btn.active .tab-counter-badge.audit-badge {
  background: #EDE9FE;
  color: #7C3AED;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);
  }
}

.audit-action-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.audit-action-chip.action-insert {
  background: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
}

.audit-action-chip.action-update {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}

.audit-action-chip.action-archive {
  background: #FFF1F2;
  color: #E11D48;
  border-color: #FECDD3;
}

.audit-action-chip.action-login {
  background: #F0FDF4;
  color: #16A34A;
  border-color: #BBF7D0;
}

.audit-action-chip.action-logout {
  background: #F8FAFC;
  color: #64748B;
  border-color: #E2E8F0;
}

.audit-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
}

.table-container {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
  flex-wrap: wrap;
}

.table-results-counter {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.table-actions-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.table-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.table-search-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  pointer-events: none;
  color: #64748B;
}

.admin-search-field {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.48rem 0.85rem 0.48rem 2.2rem;
  font-size: 0.82rem;
  color: #0F172A;
  min-width: 220px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.admin-search-field:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.custom-filter-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-filter-select {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.48rem 2rem 0.48rem 0.85rem;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.admin-filter-select:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.select-chevron-sm {
  position: absolute;
  right: 0.65rem;
  pointer-events: none;
  color: #64748B;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.48rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reset-filters:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.btn-primary-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.btn-primary-add:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

/* Claims Status Filter Pills */
.filter-pill-selector {
  display: inline-flex;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.filter-pill-btn {
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.filter-pill-btn:hover {
  color: #0F172A;
}

.filter-pill-btn.active {
  background: #FFFFFF;
  color: #1D4ED8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Action Button: Inspect & View */
.btn-inspect-view {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inspect-view:hover {
  background: #DBEAFE;
  color: #1E40AF;
  border-color: #93C5FD;
  transform: translateY(-1px);
}

/* Status Badges */
.status-pill-subtle.pending-verification {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

.status-pill-subtle.accepted-claim {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-pill-subtle.rejected-claim {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Inspect & Review Claim Modal Styles */
.dialog-header-crest {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.claim-ref-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #BFDBFE;
}

.dialog-subtitle-text {
  font-size: 0.8rem;
  color: #64748B;
  margin: 0.2rem 0 0 0;
}

.inspect-item-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.inspect-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inspect-item-info {
  flex: 1;
}

.inspect-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.inspect-sec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748B;
}

.inspect-item-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563EB;
}

.inspect-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.2rem;
}

.inspect-item-meta {
  font-size: 0.78rem;
  color: #64748B;
}

.inspect-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.5rem;
}

.inspect-credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.inspect-info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.inspect-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inspect-card-label {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 600;
}

.inspect-card-value {
  font-size: 0.85rem;
  color: #0F172A;
  word-break: break-all;
}

.inspect-proof-card {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.inspect-proof-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.inspect-proof-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inspect-proof-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400E;
}

.inspect-proof-subtitle {
  font-size: 0.75rem;
  color: #B45309;
}

.inspect-proof-body {
  background: #FFFFFF;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: #78350F;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.btn-reject-claim {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reject-claim:hover {
  background: #FCA5A5;
  color: #B91C1C;
}

.btn-approve-claim {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #059669;
  color: #FFFFFF;
  border: 1px solid #047857;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
  transition: all 0.15s ease;
}

.btn-approve-claim:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* ── Unified Modern Button System ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
  outline: none;
  box-sizing: border-box;
}

.btn:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Primary Button (Institutional Blue) */
.btn-primary {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #1D4ED8;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: #1D4ED8;
  border-color: #1E40AF;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25), 0 2px 4px -2px rgba(37, 99, 235, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
  background: #1E40AF;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

/* Outline Button (Cancel, Secondary Actions) */
.btn-outline {
  background: #FFFFFF;
  color: #334155;
  border-color: #CBD5E1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #94A3B8;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-outline:active {
  transform: translateY(0);
  background: #F1F5F9;
}

/* Success Button (Approve & Release) */
.btn-success {
  background: #059669;
  color: #FFFFFF;
  border-color: #047857;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}

.btn-success:hover {
  background: #047857;
  border-color: #065F46;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.25);
}

.btn-success:active {
  transform: translateY(0);
  background: #065F46;
}

/* Ghost / Flat Button */
.btn-ghost {
  background: transparent;
  color: #475569;
  border-color: transparent;
}

.btn-ghost:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Size Modifiers */
.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 6px;
  gap: 0.35rem;
}

/* Table Ledger Action Buttons */
.table-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.btn-action-claim {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0284C7;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.06);
  white-space: nowrap;
}

.btn-action-claim:hover {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(2, 132, 199, 0.25);
}

.btn-action-claim:hover svg {
  stroke: #FFFFFF;
}

.btn-action-claim:active {
  transform: translateY(0);
}

.btn-action-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.btn-action-edit:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.btn-action-edit:hover svg {
  stroke: #0F172A;
}

.btn-action-edit:active {
  transform: translateY(0);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover {
  background: #F8FAFC;
}

/* Specific Inventory Ledger Column Sizing & Alignment */
#staff-items-table th:nth-child(1),
#staff-items-table td:nth-child(1) {
  width: 85px;
  white-space: nowrap;
}

#staff-items-table th:nth-child(2),
#staff-items-table td:nth-child(2) {
  min-width: 250px;
}

#staff-items-table th:nth-child(3),
#staff-items-table td:nth-child(3) {
  width: 150px;
  white-space: nowrap;
}

#staff-items-table th:nth-child(4),
#staff-items-table td:nth-child(4) {
  min-width: 140px;
}

#staff-items-table th:nth-child(5),
#staff-items-table td:nth-child(5) {
  width: 125px;
  white-space: nowrap;
}

#staff-items-table th:nth-child(6),
#staff-items-table td:nth-child(6) {
  width: 120px;
  white-space: nowrap;
}

#staff-items-table th:nth-child(7),
#staff-items-table td:nth-child(7) {
  min-width: 120px;
}

#staff-items-table th:nth-child(8),
#staff-items-table td:nth-child(8) {
  width: 90px;
  white-space: nowrap;
  text-align: right;
}

/* Claims Table Specific Sizing */
#staff-claims-table th:nth-child(1),
#staff-claims-table td:nth-child(1) {
  width: 100px;
  white-space: nowrap;
}

#staff-claims-table th:nth-child(2),
#staff-claims-table td:nth-child(2) {
  min-width: 220px;
}

#staff-claims-table th:nth-child(3),
#staff-claims-table td:nth-child(3) {
  min-width: 150px;
}

#staff-claims-table th:nth-child(4),
#staff-claims-table td:nth-child(4) {
  min-width: 160px;
}

#staff-claims-table th:nth-child(5),
#staff-claims-table td:nth-child(5) {
  width: 120px;
  white-space: nowrap;
}

#staff-claims-table th:nth-child(6),
#staff-claims-table td:nth-child(6) {
  width: 150px;
  white-space: nowrap;
}

#staff-claims-table th:nth-child(7),
#staff-claims-table td:nth-child(7) {
  width: 110px;
  white-space: nowrap;
  text-align: right;
}

/* Item Inventory Fixed Thumbnail & Cell Layout */
.table-item-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.table-thumb-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background-color: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.table-thumb-box.has-image {
  cursor: pointer;
}

.table-thumb-box.has-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  border-color: #60A5FA;
}

.table-thumb-box.has-image:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

/* Strictly constrained table thumbnail image */
.table-thumb {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: inherit;
}

/* Uncontained table-thumb fallback just in case */
img.table-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.table-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  background: #F1F5F9;
}

.table-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.table-item-title {
  font-weight: 600;
  color: #0F172A;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

.table-item-serial {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #64748B;
  letter-spacing: 0.02em;
}

/* Consistent Status Badges / Pills for Ledger & Inventory */
.status-pill-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.status-pill-subtle.stored {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.status-pill-subtle.active {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.status-pill-subtle.processing {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.status-pill-subtle.claimed,
.status-pill-subtle.returned,
.status-pill-subtle.inactive {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

/* Fallback for status-badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.status-badge.status-active {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.status-badge.status-inactive {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.tab-panel.hidden {
  display: none;
}

/* ── 13. Admin Console / Add Found Item (Exact Mockup Match) ─────────────── */
.admin-app-layout {
  display: flex;
  min-height: 100vh;
  background-color: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-body);
}

/* Left Sidebar */
.admin-sidebar {
  width: 250px;
  min-width: 250px;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-top-branding {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-crest-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #2563EB;
  background: #FFFFFF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-abbr {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1D4ED8;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1;
}

.brand-college-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  line-height: 1.2;
}

.admin-nav-section {
  padding: 1.25rem 1rem;
  flex: 1;
  overflow-y: auto;
}

.admin-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2563EB;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding-left: 0.5rem;
}

.admin-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-nav-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.admin-nav-item.active {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
  font-weight: 700;
}

button.admin-nav-item {
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

.admin-nav-logout-icon {
  display: none !important;
}

.admin-sidebar.sidebar-collapsed .admin-nav-logout-icon {
  display: flex !important;
  margin-top: 0.35rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  color: #64748B;
  border-radius: 10px;
}

.admin-sidebar.sidebar-collapsed .admin-nav-logout-icon:hover {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
}

.admin-sidebar-bottom {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.safety-advisory-card {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.safety-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E3A8A;
}

.safety-card-text {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.35;
  margin: 0;
}

.admin-user-profile-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.25rem;
}

.user-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DBEAFE;
  color: #1D4ED8;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-meta-info {
  flex: 1;
  min-width: 0;
}

.user-meta-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta-role {
  font-size: 0.72rem;
  color: #64748B;
}

.btn-sidebar-logout {
  color: #94A3B8;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-sidebar-logout:hover {
  color: #EF4444;
  background: #FEE2E2;
}

/* Main Viewport & Topbar */
.admin-main-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #F8FAFC;
  min-height: 100vh;
}

.admin-topbar {
  height: 54px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.25rem;
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  box-sizing: border-box;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #475569;
}

.breadcrumb-separator {
  color: #CBD5E1;
}

.breadcrumb-active {
  font-weight: 700;
  color: #0F172A;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.secure-session-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #059669;
}

.session-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.admin-date-text {
  font-size: 0.8rem;
  color: #64748B;
}

.btn-topbar-public {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #334155;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-topbar-public:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.08);
}

.btn-topbar-public svg {
  flex-shrink: 0;
}

.btn-topbar-public-arrow {
  color: #94A3B8;
  transition: transform 0.15s ease;
}

.btn-topbar-public:hover .btn-topbar-public-arrow {
  color: #1D4ED8;
  transform: translate(1px, -1px);
}

.btn-topbar-bell {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 6px;
}

.btn-topbar-bell:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.btn-topbar-logout {
  display: none !important;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  color: #DC2626;
  align-items: center;
  justify-content: center;
  padding: 0.32rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-topbar-logout:hover {
  color: #B91C1C;
  background: #FEF2F2;
  border-color: #FECACA;
  transform: translateY(-1px);
}

.btn-topbar-logout:active {
  transform: translateY(0);
}

.bell-badge-dot {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

@media (max-width: 768px) {
  .admin-topbar {
    height: auto;
    min-height: 54px;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .admin-topbar > div:first-child {
    flex: 1;
    min-width: 0;
  }

  .admin-breadcrumb {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .admin-breadcrumb > span:not(.breadcrumb-active) {
    display: none;
  }

  .admin-breadcrumb .breadcrumb-active {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-topbar-right {
    flex: 0 0 auto;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .btn-topbar-public {
    padding: 0.35rem;
    width: 32px;
    height: 32px;
    justify-content: center;
    border-radius: 6px;
    background: #F8FAFC;
    color: #475569;
  }

  .btn-topbar-public-text,
  .btn-topbar-public-arrow {
    display: none;
  }

  .secure-session-indicator {
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .btn-topbar-logout {
    display: flex !important;
  }

  .admin-main-action-bar {
    display: none;
  }
}

@media (max-width: 480px) {
  .admin-date-text {
    display: none;
  }
}

/* Admin Container - Full width aligned with topbar */
.admin-content-container {
  padding: 1.75rem 2.25rem 3rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero Section */
.admin-hero-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
  width: 100%;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.hero-subtext {
  font-size: 0.86rem;
  color: #64748B;
  margin: 0;
}

.badge-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

/* Admin Main Body Action Bar */
.admin-main-action-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

/* Main Body Top Right Add Item Button */
.btn-hero-add-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28), 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-hero-add-item:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.38);
  transform: translateY(-1px);
}

.btn-hero-add-item:active {
  transform: translateY(0);
}

.btn-hero-add-item svg {
  flex-shrink: 0;
}

/* Hide main action bar / desktop add button on mobile view */
@media (max-width: 768px) {
  .admin-main-action-bar,
  .btn-hero-add-item {
    display: none !important;
  }
}

/* ── Analytics & GA4 Telemetry Section ───────────────────────────────────── */
.analytics-dashboard-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.analytics-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-chip-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.analytics-timeframe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.analytics-ga4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.ga4-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 270px;
}

.ga4-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ga4-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ga4-metric-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ga4-metric-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  margin: 0.2rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ga4-metric-sub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
}

.ga4-pill-gain {
  color: #059669;
  font-weight: 700;
  background: #ECFDF5;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
}

.ga4-caption-muted {
  color: #94A3B8;
}

.ga4-card-legend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #64748B;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ga4-chart-container {
  width: 100%;
  height: 190px;
  position: relative;
}

.analytics-title-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .analytics-ga4-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .admin-content-container {
    padding: 0.85rem 0.75rem 6.5rem;
    gap: 0.85rem;
  }

  .analytics-dashboard-wrap {
    padding: 1rem 0.85rem;
    border-radius: 12px;
    gap: 0.85rem;
  }

  .analytics-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .analytics-header-bar h2.table-title {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .analytics-timeframe-badge {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .analytics-ga4-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .ga4-card {
    padding: 1rem;
    min-height: auto;
    border-radius: 12px;
  }

  .ga4-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .ga4-card-meta {
    width: 100%;
  }

  .ga4-metric-title {
    font-size: 0.7rem;
  }

  .ga4-metric-number {
    font-size: 1.35rem;
  }

  .ga4-card-legend {
    align-self: flex-start;
    flex-wrap: wrap;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    gap: 0.35rem;
  }

  .ga4-chart-container {
    height: 185px;
  }
}

@media (max-width: 480px) {
  .admin-content-container {
    padding: 0.65rem 0.5rem 6.5rem;
  }

  .analytics-dashboard-wrap {
    padding: 0.85rem 0.65rem;
  }

  .ga4-card {
    padding: 0.85rem 0.75rem;
  }

  .ga4-metric-number {
    font-size: 1.18rem;
  }

  .ga4-chart-container {
    height: 175px;
  }
}

/* Row 1: Summary Grid (2 Cards) */
.admin-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
  align-items: stretch;
  width: 100%;
}

.summary-stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-height: 125px;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap.blue {
  background: #EFF6FF;
}

.stat-icon-wrap.emerald {
  background: #ECFDF5;
}

.stat-body {
  flex: 1;
}

.stat-header-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.35rem;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.stat-giant-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #1D4ED8;
  line-height: 1;
}

.stat-unit-text {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 500;
}

.stat-subinfo {
  font-size: 0.75rem;
  color: #64748B;
  margin-bottom: 0.75rem;
}

.stat-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
}

.stat-action-link:hover {
  text-decoration: underline;
}

/* Optional field badge */
.field-badge-optional {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
}

/* Modern Inline Photo Upload Zone (Inside Add Item Form) */
.form-photo-upload-zone {
  width: 100%;
}

.photo-dropzone-box {
  width: 100%;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  background: #F8FAFC;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.photo-dropzone-box:hover,
.photo-dropzone-box.drag-over {
  border-color: #3B82F6;
  background: #EFF6FF;
}

.photo-dropzone-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.upload-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.upload-primary-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-browse-photo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-browse-photo:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.upload-or-text {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
}

.upload-specs-text {
  font-size: 0.75rem;
  color: #94A3B8;
}

.preview-card-inline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.preview-thumb-lg {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  flex-shrink: 0;
}

.preview-card-details {
  flex: 1;
  min-width: 0;
}

.preview-card-filename {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-card-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #16A34A;
  font-weight: 600;
}

.preview-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  flex-shrink: 0;
}

.btn-remove-preview-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-remove-preview-inline:hover {
  background: #FCA5A5;
  color: #B91C1C;
}

/* Upload Card (Legacy or compact summary) */
.summary-upload-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 125px;
}

.upload-dropzone-inner {
  width: 100%;
  height: 100%;
  border: 2px dashed #BFDBFE;
  border-radius: 10px;
  background: #F8FAFC;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-sizing: border-box;
}

.upload-icon-frame {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #BFDBFE;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-blue-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #1D4ED8;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.25);
  transition: all 0.15s ease;
}

.btn-blue-upload:hover {
  background: #1E40AF;
  transform: translateY(-1px);
}

.upload-hint-text {
  font-size: 0.72rem;
  color: #64748B;
}

.upload-preview-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.upload-preview-container.hidden {
  display: none;
}

.preview-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
}

.btn-remove-preview {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #EF4444;
  color: white;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Form Panel */
.admin-form-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 2rem 2.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.form-center-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.form-title-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0F172A;
  margin: 0 0 0.35rem;
}

.form-subtitle-text {
  font-size: 0.8rem;
  color: #64748B;
  margin: 0;
}

.form-section-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563EB;
  letter-spacing: 0.05em;
}

.strip-right {
  font-size: 0.72rem;
  color: #94A3B8;
}

/* Form Grid */
.form-grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.5rem;
  margin-bottom: 2rem;
}

.form-field-group {
  display: flex;
  flex-direction: column;
}

.form-field-group.span-2 {
  grid-column: 1 / -1;
}

.field-label-bold {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.char-counter-text {
  font-size: 0.72rem;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
}

.custom-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-select-input,
.admin-text-input {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
  color: #0F172A;
  transition: all 0.15s ease;
  outline: none;
}

.admin-select-input {
  appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 0.85rem;
  pointer-events: none;
  color: #64748B;
}

.admin-textarea-input {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  font-size: 0.85rem;
  color: #0F172A;
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
  outline: none;
}

.admin-select-input:focus,
.admin-text-input:focus,
.admin-textarea-input:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.radio-pill-group {
  display: flex;
  gap: 0.75rem;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s ease;
}

.radio-pill input[type="radio"] {
  display: none;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-pill.active {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
}

.radio-pill.active .radio-dot {
  border-color: #2563EB;
  background: #2563EB;
  box-shadow: inset 0 0 0 2.5px #FFFFFF;
}

.field-helper-note {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 0.35rem;
  line-height: 1.35;
}

.locked-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.locked-input-wrap svg:first-child {
  position: absolute;
  left: 0.85rem;
  pointer-events: none;
}

.admin-text-input.locked {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #334155;
  cursor: not-allowed;
  padding-left: 2.35rem;
  padding-right: 2.25rem;
  font-weight: 500;
}

.lock-end-icon {
  position: absolute;
  right: 0.85rem;
  pointer-events: none;
}

/* Form Action Footer */
.form-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid #F1F5F9;
}

.footer-audit-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: #64748B;
}

.footer-btn-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-clear-ghost {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-ghost:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-blue-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #1D4ED8;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(29, 78, 216, 0.25);
  transition: all 0.15s ease;
}

.btn-blue-submit:hover {
  background: #1E40AF;
  transform: translateY(-1px);
}

/* Recent Activity Panel */
.admin-recent-activity-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.35rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.activity-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.activity-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.badge-today-pill {
  background: #EFF6FF;
  color: #2563EB;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.activity-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
}

.activity-view-all-link:hover {
  text-decoration: underline;
}

.activity-table-wrap {
  overflow-x: auto;
}

.activity-stream-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-stream-table td {
  padding: 0.85rem 0.5rem;
  font-size: 0.82rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.activity-stream-table tr:last-child td {
  border-bottom: none;
}

.activity-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon-badge.blue { background: #EFF6FF; }
.activity-icon-badge.amber { background: #FEF3C7; }
.activity-icon-badge.green { background: #D1FAE5; }

.col-action-title {
  color: #0F172A;
  font-size: 0.82rem;
}

.col-item-name {
  color: #475569;
}

.item-code-tag {
  color: #94A3B8;
  font-size: 0.76rem;
}

.col-officer-name {
  color: #64748B;
  font-size: 0.8rem;
}

.status-pill-subtle {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill-subtle.stored { background: #DBEAFE; color: #1E40AF; }
.status-pill-subtle.processing { background: #FEF3C7; color: #92400E; }
.status-pill-subtle.returned { background: #D1FAE5; color: #065F46; }

.col-time-ago {
  text-align: right;
  color: #94A3B8;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

/* Institutional Footer */
.admin-institutional-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748B;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
}

.footer-meta {
  color: #94A3B8;
}

@media (max-width: 900px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-fields {
    grid-template-columns: 1fr;
  }
  .form-field-group.span-2 {
    grid-column: auto;
  }
}

/* ── 14. Unified Login Page (Centered Full Viewport) ─────────────────────── */
.login-viewport-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F8FAFC;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  margin: 0;
}

.login-card-container {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  margin: auto;
  position: relative;
  overflow: hidden;
}

/* ── Login Loading State ─────────────────────────────────────────────────── */
.login-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #EFF6FF;
  overflow: hidden;
  display: none;
  z-index: 20;
}

.login-loading-bar.active {
  display: block;
}

.login-loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #2563EB, #38BDF8, #2563EB);
  border-radius: 2px;
  animation: loginBarSlide 1.2s infinite ease-in-out;
}

@keyframes loginBarSlide {
  0% { left: -40%; width: 40%; }
  50% { width: 60%; }
  100% { left: 100%; width: 40%; }
}

.login-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  border-radius: 16px;
  text-align: center;
  padding: 1.5rem;
  animation: loginFadeIn 0.2s ease;
}

.login-loading-overlay.active {
  display: flex;
}

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

.login-spinner-ring {
  width: 40px;
  height: 40px;
  border: 3.5px solid #DBEAFE;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: loginSpin 0.75s linear infinite;
  margin-bottom: 0.85rem;
}

@keyframes loginSpin {
  to { transform: rotate(360deg); }
}

.login-loading-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.login-loading-subtext {
  font-size: 0.78rem;
  color: #64748B;
  max-width: 280px;
  line-height: 1.4;
}

/* ── Modern Table Pagination Footer ────────────────────────────────────────── */
.table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: #64748B;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.835rem;
  color: #475569;
}

.pagination-info span {
  color: #0F172A;
  font-weight: 600;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pagination-page-size-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-page-size-select {
  padding: 0.3rem 1.75rem 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0F172A;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.admin-page-size-select:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.pagination-nav-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  height: 32px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pagination-nav-btn:hover:not(:disabled) {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

.pagination-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #F8FAFC;
  color: #94A3B8;
  border-color: #E2E8F0;
}

.pagination-page-numbers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-page-numbers .page-num-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-page-numbers .page-num-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.pagination-page-numbers .page-num-btn.active {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.pagination-page-numbers .page-ellipsis {
  width: 22px;
  text-align: center;
  color: #94A3B8;
  font-size: 0.85rem;
  user-select: none;
}

@media (max-width: 640px) {
  .table-pagination-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  .pagination-actions {
    justify-content: space-between;
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE BOTTOM SHEET & ACTIVE FILTER CHIPS (PATCH 44)
───────────────────────────────────────────────────────────────────────────── */

/* Search and Filter Bar Row */
.search-and-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.table-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

.table-search-input-wrap .admin-search-field {
  width: 100%;
  padding-right: 2rem;
}

.btn-clear-search {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: #E2E8F0;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-clear-search:hover {
  background: #CBD5E1;
  color: #0F172A;
}

/* Mobile Filter Trigger Button */
.btn-filter-trigger {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.46rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-filter-trigger:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

.btn-filter-trigger:active {
  transform: scale(0.98);
}

.btn-filter-trigger.has-active-filters {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #1D4ED8;
}

.filter-count-badge {
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Desktop Filter Controls Container */
.desktop-filter-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Responsive visibility */
@media (max-width: 768px) {
  .btn-filter-trigger {
    display: inline-flex;
  }
  .desktop-filter-controls {
    display: none !important;
  }
  .table-actions-cluster {
    width: 100%;
  }
  .search-and-filter-bar {
    width: 100%;
  }
}

/* Active Filter Chips Row (Reference Image 1) */
.active-filter-chips-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 0.25rem;
  border-top: 1px dashed #E2E8F0;
  margin-top: 0.5rem;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.74rem;
  color: #1E293B;
  font-weight: 500;
  transition: all 0.15s ease;
  animation: chipFadeIn 0.18s ease-out;
}

@keyframes chipFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.active-filter-chip .chip-label {
  color: #64748B;
  font-weight: 600;
  text-transform: capitalize;
}

.active-filter-chip .chip-value {
  color: #0F172A;
  font-weight: 600;
}

.active-filter-chip .btn-remove-chip {
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: color 0.15s;
}

.active-filter-chip .btn-remove-chip:hover {
  color: #EF4444;
}

.btn-clear-all-chips {
  background: none;
  border: none;
  color: #2563EB;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-clear-all-chips:hover {
  color: #1D4ED8;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile Bottom Sheet Modal (Reference Image 2)
───────────────────────────────────────────────────────────────────────────── */
dialog.bottom-sheet-dialog {
  border: none;
  padding: 0;
  margin: auto;
  outline: none;
  background: transparent;
  width: 100%;
  max-width: 480px;
}

dialog.bottom-sheet-dialog:not([open]) {
  display: none !important;
}

dialog.bottom-sheet-dialog[open] {
  display: flex;
}

dialog.bottom-sheet-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bottom-sheet-container {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  animation: sheetPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
  dialog.bottom-sheet-dialog {
    position: fixed;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .bottom-sheet-container {
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: env(safe-area-inset-bottom, 0.75rem);
  }

  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

.bottom-sheet-handle-bar {
  width: 36px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 999px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}

.sheet-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-sheet-close {
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sheet-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.bottom-sheet-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

.btn-sheet-reset {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sheet-reset:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.bottom-sheet-body {
  padding: 1.15rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sheet-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sheet-group-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Filter Pills (Reference Image 2 style) */
.sheet-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  border-radius: 999px;
  padding: 0.46rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sheet-filter-pill:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.sheet-filter-pill.active {
  background: #1E293B;
  border-color: #1E293B;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.25);
}

.sheet-pill-badge {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
}

.sheet-filter-pill:not(.active) .sheet-pill-badge {
  background: #F1F5F9;
  color: #64748B;
}

.bottom-sheet-footer {
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid #F1F5F9;
  background: #FFFFFF;
  flex-shrink: 0;
}

.btn-sheet-apply {
  width: 100%;
  background: #1E293B;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 0.82rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.btn-sheet-apply:hover {
  background: #0F172A;
}

.btn-sheet-apply:active {
  transform: scale(0.99);
}

