:root {
  --wfp-navy: #003a70;
  --wfp-blue: #0a6eb4;
  --wfp-sky: #3d9dd6;
  --wfp-ice: #eef6fb;
  --wfp-gold: #f2b705;
  --wfp-ink: #122033;
  --wfp-muted: #5b6b7c;
  --wfp-line: #dce7f0;
  --wfp-soft: #f4f7fb;
  --surface: rgba(255, 255, 255, .78);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 40, 80, .07);
  --shadow-lg: 0 22px 50px rgba(0, 40, 80, .14);
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Plus Jakarta Sans", "Source Sans 3", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}
body.app-body {
  font-family: "Plus Jakarta Sans", "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 480px at 92% -10%, rgba(61, 157, 214, .16), transparent 55%),
    radial-gradient(900px 420px at -10% 110%, rgba(242, 183, 5, .1), transparent 50%),
    linear-gradient(180deg, #f5f8fc 0%, #eaf1f7 100%);
  color: var(--wfp-ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
}

a { color: var(--wfp-blue); text-decoration: none; }
a:hover { color: var(--wfp-navy); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, .42);
  backdrop-filter: blur(4px);
  z-index: 1025;
}
.sidebar-backdrop.is-on { display: block; }

/* —— Sidebar —— */
.sidebar {
  width: var(--sidebar-w);
  background:
    radial-gradient(circle at 0% 0%, rgba(61, 157, 214, .22), transparent 42%),
    linear-gradient(180deg, #001526 0%, #00264d 42%, #003a70 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  height: 100dvh;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 8px 0 28px rgba(0, 16, 40, .16);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 12px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand > div:nth-child(2) { flex: 1; min-width: 0; }
.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffe27a, var(--wfp-gold));
  color: var(--wfp-navy);
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 22px rgba(242, 183, 5, .32);
}
.brand strong {
  display: block;
  font-size: .98rem;
  letter-spacing: -.03em;
  line-height: 1.2;
  word-break: break-word;
}
.brand small {
  display: block;
  opacity: .62;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}
.side-nav {
  padding: .4rem 0 .5rem;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.side-nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.side-nav a {
  color: rgba(255,255,255,.74);
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 1px 8px;
  padding: 7px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .88rem;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.side-nav a i { font-size: 1rem; }
.side-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.side-nav a.active {
  background: linear-gradient(135deg, rgba(10,110,180,.95), rgba(61,157,214,.78));
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 110, 180, .28);
}
.side-nav a.active .nav-ico { background: rgba(255,255,255,.16); }
.side-section {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .4;
  padding: 10px 18px 4px;
  font-weight: 800;
}
.sidebar-foot {
  margin: 6px 10px 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.sidebar-foot strong { display: block; font-size: .85rem; }
.sidebar-foot small { display: block; opacity: .65; font-size: 11px; }

.main-wrap {
  margin-left: var(--sidebar-w);
  height: 100%;
  height: 100dvh;
  overflow: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: var(--topbar-h);
  flex: 0 0 auto;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(220, 231, 240, .8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  position: sticky;
  top: 0;
  z-index: 1020;
  gap: 12px;
}
.sidebar-toggle {
  display: none;
  width: 42px;
  min-height: 42px !important;
  padding: 0 !important;
}
.content {
  padding: 16px 18px 20px;
  max-width: 1640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 auto;
}
.app-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(220, 231, 240, .9);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
}
.app-footer-inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  flex-wrap: wrap;
}
.app-footer-copy p {
  margin: 0;
  font-size: .78rem;
  font-weight: 650;
  color: var(--wfp-muted);
  line-height: 1.45;
}
.app-footer-copy p + p { font-weight: 500; }
.app-footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .78rem;
  font-weight: 700;
}
.app-footer-meta a { color: var(--wfp-navy); }
.app-footer-login {
  grid-column: 1 / -1;
  background: #001f3f;
  border-top: 1px solid rgba(255,255,255,.1);
}
.app-footer-login .app-footer-inner { max-width: none; }
.app-footer-login .app-footer-copy p,
.app-footer-login .app-footer-meta a { color: rgba(255,255,255,.8); }
.app-footer-guest {
  margin-top: 28px;
  background: transparent;
  border-top: 0;
}
.app-footer-guest .app-footer-inner {
  padding: 0;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 6px;
}
.app-footer-auth {
  border-top: 1px solid #d7e4ef;
  background: #f5f8fc;
}
.app-footer-preview p { font-size: .86rem; color: var(--wfp-navy); font-weight: 700; }

.page-title { font-weight: 800; color: var(--wfp-navy); margin: 0; letter-spacing: -.03em; }
.page-sub { color: var(--wfp-muted); margin: 4px 0 0; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}
.page-head h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--wfp-navy);
  letter-spacing: -.04em;
}
.page-head .page-sub { margin-top: .4rem; max-width: 62ch; }
.page-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.export-btns { display: inline-flex; }
.page-actions .export-btns { flex: 0 0 auto; }
.page-actions .export-btns .btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* —— Cards —— */
.card-wfp {
  border: 1px solid rgba(229, 238, 246, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.card-wfp > .card-body { padding: 1.3rem 1.4rem; }
.card-wfp .card-title,
.card-wfp h3.h5,
.card-wfp h3.h6 {
  color: var(--wfp-navy);
  font-weight: 800;
  letter-spacing: -.02em;
}
.card-wfp .card-body > h3.h5:first-child,
.card-wfp .card-body > h3.h6:first-child {
  padding-bottom: .85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #edf3f8;
}

.stat-card {
  border: 1px solid rgba(229, 238, 246, .95);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  background: #fff;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(10, 110, 180, .08);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card i {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--wfp-ice);
  color: var(--wfp-blue) !important;
  margin-bottom: 12px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}
.stat-card .n { font-size: 1.85rem; font-weight: 800; color: var(--wfp-navy); line-height: 1; position: relative; z-index: 1; }
.stat-card .l { color: var(--wfp-muted); font-size: 11px; font-weight: 800; margin-top: 7px; text-transform: uppercase; letter-spacing: .06em; position: relative; z-index: 1; }
.stat-accent { border-left: 0; }
.stat-card.is-submitted i { background: #e8f4fc; color: #0a6eb4 !important; }
.stat-card.is-verified i { background: #e8eefc; color: #3f51b5 !important; }
.stat-card.is-approved i { background: #e8f8ef; color: #0b6b38 !important; }
.stat-card.is-shipped i { background: #eceff3; color: #243447 !important; }
.stat-card.is-received i { background: #e7f6ee; color: #0b6b38 !important; }
.stat-card.is-rejected i { background: #fdeceb; color: #a61b1b !important; }

/* —— Badges —— */
.badge-soft-info { background: #d7effc; color: #0a6eb4; }
.badge-soft-primary { background: #d9e8f8; color: #003a70; }
.badge-soft-success { background: #d9f3e3; color: #0b6b38; }
.badge-soft-danger { background: #fde0e0; color: #a61b1b; }
.badge-soft-warning { background: #fff1cc; color: #8a6200; }
.badge-soft-dark { background: #dce3ea; color: #243447; }
.badge-soft-secondary { background: #eceff3; color: #5b6b7c; }
.badge { font-weight: 700; padding: .42em .78em; border-radius: 999px; font-size: .75rem; }

/* —— Buttons —— */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 34px; border-radius: 10px; }
.btn-wfp, .btn-navy {
  border: 0;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 58, 112, .16);
}
.btn-wfp { background: linear-gradient(135deg, #0a6eb4, #1490e0); }
.btn-wfp:hover { background: linear-gradient(135deg, #085c96, #0a6eb4); color: #fff; }
.btn-wfp:disabled,
.btn-wfp[disabled] {
  opacity: .42;
  filter: grayscale(.2);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.btn-navy { background: linear-gradient(135deg, #00264d, #003a70); }
.btn-navy:hover { background: linear-gradient(135deg, #001a33, #00264d); color: #fff; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger {
  border-width: 1.5px;
  background: #fff;
}
.btn-outline-primary { color: var(--wfp-blue); border-color: #9ec8e8; }
.btn-outline-primary:hover { background: var(--wfp-ice); color: var(--wfp-navy); border-color: var(--wfp-blue); }
.btn-success {
  background: linear-gradient(135deg, #0b6b38, #17a85a);
  border: 0;
  box-shadow: 0 8px 18px rgba(11, 107, 56, .18);
}
.btn-success:hover { filter: brightness(1.05); }
.btn-light {
  background: #fff;
  border: 1px solid var(--wfp-line);
  color: var(--wfp-navy);
  box-shadow: none;
}
.lang-switch {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  min-width: 40px;
  min-height: 32px !important;
  padding: .28rem .65rem !important;
  border-radius: 10px !important;
  font-weight: 800;
  box-shadow: none !important;
  transform: none !important;
}
.lang-btn.btn-navy { box-shadow: 0 6px 14px rgba(0, 58, 112, .18) !important; }

/* —— Forms —— */
.form-label {
  font-size: .78rem;
  font-weight: 800;
  color: var(--wfp-navy);
  margin-bottom: .4rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: #d5e3ef;
  min-height: 44px;
  padding: .65rem .95rem;
  box-shadow: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: #0a6eb4;
  box-shadow: 0 0 0 .22rem rgba(10, 110, 180, .14);
}
textarea.form-control { min-height: 96px; }
.form-control-lg { min-height: 52px; border-radius: 14px; }
.filter-bar {
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  z-index: 30;
  backdrop-filter: blur(16px);
}
.filter-bar .card-body,
.card-wfp form .card-body { gap: .75rem; }

.input-icon { position: relative; }
.input-icon i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--wfp-muted);
  pointer-events: none;
}
.input-icon .form-control { padding-left: 42px; }
.input-icon-end .form-control { padding-right: 46px; }
.pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--wfp-muted);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.pass-toggle i,
.input-icon .pass-toggle i {
  position: static;
  transform: none;
  pointer-events: auto;
  left: auto;
}
.pass-toggle:hover { color: var(--wfp-navy); background: #f1f6fb; }

/* —— Tables —— */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th {
  color: var(--wfp-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 800;
  border-bottom-width: 1px;
  background: linear-gradient(180deg, #f8fbfe, #f3f8fc);
  padding: .95rem 1.05rem;
  white-space: nowrap;
}
.table td {
  padding: 1rem 1.05rem;
  vertical-align: middle;
  border-color: #edf3f8;
}
.table tbody tr { transition: background .14s ease; }
.table tbody tr:hover { background: #f6fbff; }
.table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--wfp-blue); }
.table a { font-weight: 700; }

.qty-box { display: flex; align-items: center; gap: 8px; }
.qty-box input { width: 80px; text-align: center; font-weight: 700; }
.stock-live {
  background: var(--wfp-ice);
  border: 1px dashed #b9d6ea;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--wfp-navy);
}

.timeline { border-left: 2px solid #d5e4f0; margin-left: 10px; padding-left: 18px; }
.timeline .step { position: relative; padding-bottom: 16px; }
.timeline .step:before {
  content: "";
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--wfp-blue);
  position: absolute; left: -24px; top: 6px;
  box-shadow: 0 0 0 4px rgba(10, 110, 180, .14);
}

.alert {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.alert-success { background: #e8f8ef; color: #0b6b38; }
.alert-danger { background: #fdeceb; color: #a61b1b; }
.alert-warning { background: #fff7e0; color: #8a6200; }
.alert-info { background: #e8f4fc; color: #0a6eb4; }

/* —— Auth —— */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
}
.auth-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(242,183,5,.28), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(61,157,214,.28), transparent 36%),
    linear-gradient(160deg, #001522, #003a70 48%, #0a6eb4 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.auth-hero-visual {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
}
.pam-emblem {
  display: block;
  width: 72px;
  height: auto;
  margin-bottom: 14px;
}
.sidebar .pam-emblem {
  width: 40px;
  height: auto;
  margin: 0;
  flex: 0 0 auto;
}
.pam-emblem-dark {
  display: block;
  width: 64px;
  height: auto;
}
.pam-logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.auth-hero-icons {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.auth-hero-icons li {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(247, 181, 0, .16);
  border: 1px solid rgba(247, 181, 0, .45);
  color: #f7b500;
  font-size: 1.45rem;
}
.auth-hero::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  right: -80px; bottom: -90px;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .7;
  margin-bottom: 10px;
}
.auth-panel { display: grid; place-items: center; padding: 36px; background: #eef4f9; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.9);
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e5eef6;
  backdrop-filter: blur(16px);
}

/* —— Login page (mockup) —— */
.login-body {
  margin: 0;
  min-height: 100dvh;
  background: #e8eef4;
}
.login-stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(360px, .9fr);
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(105deg, rgba(255,255,255,.94) 0 42%, rgba(0, 58, 112, .18) 58%, rgba(0, 45, 90, .55) 100%),
    url("../img/login-warehouse.jpg") center / cover no-repeat;
}
.login-left {
  padding: 42px 48px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.login-brand {
  width: min(100%, 280px);
  margin-bottom: 28px;
}
.login-title {
  margin: 0 0 10px;
  color: #005596;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-transform: uppercase;
}
.login-lead {
  margin: 0 0 28px;
  color: #3d5570;
  font-size: 1.02rem;
  max-width: 42ch;
}
.login-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.login-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.login-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #005596;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.1rem;
}
.login-features strong {
  display: block;
  color: #003a70;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.login-features span:last-child {
  color: #5b6b7c;
  font-size: .92rem;
}
.login-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 32px;
}
.login-right::before {
  content: "";
  position: absolute;
  inset: 0 0 0 18%;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.08), transparent 36%),
    linear-gradient(160deg, #0a6eb4 0%, #003a70 70%);
  clip-path: ellipse(92% 80% at 100% 50%);
}
.login-lang {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 22px;
  padding: 32px 30px 24px;
  box-shadow: 0 24px 60px rgba(0, 30, 60, .28);
}
.login-card-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.login-card-head .pam-emblem-dark {
  margin: 0 auto 12px;
  width: 58px;
}
.login-card-head h2 {
  margin: 0;
  color: #005596;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.login-card-head p {
  margin: 6px 0 0;
  color: #6b7c93;
  font-size: .92rem;
}
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.login-row .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .9rem;
  color: #3d5570;
  font-weight: 600;
}
.login-card .btn-wfp {
  background: #005596;
  min-height: 48px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 800;
}
.login-card .btn-wfp:hover { background: #003a70; }
.login-alt-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 1rem 0 0;
  text-align: center;
}
.login-alt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  color: #0a6eb4;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.login-alt-link i {
  font-size: 1rem;
  opacity: .9;
  flex: 0 0 auto;
}
.login-alt-link span {
  text-wrap: balance;
}
.login-alt-link:hover {
  background: #eef6fb;
  color: #003a70;
  text-decoration: none;
}
.login-alt-sep {
  display: block;
  width: 28px;
  height: 1px;
  margin: 2px auto;
  background: #d5e3ef;
}
.login-secure {
  margin-top: 18px;
  background: #f3f6fa;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #5b6b7c;
  font-size: .82rem;
  line-height: 1.35;
}
.login-secure i { color: #005596; margin-top: 1px; }

.guest-body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(10,110,180,.12), transparent 50%),
    linear-gradient(180deg, #f5f8fc, #eaf1f7);
}
.guest-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.guest-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.guest-top strong { display: block; color: var(--wfp-navy); }
.guest-top small { display: block; color: var(--wfp-muted); font-size: 12px; }
.guest-top .pam-emblem-dark { width: 44px; height: auto; margin: 0; }
.guest-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e5eef6;
}
.guest-card h1 { font-size: 1.35rem; font-weight: 800; color: var(--wfp-navy); }
.guest-card .form-label {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #3d5570;
}
.guest-card .form-control {
  background: #f7fafc;
  border-color: #d7e4ef;
  border-radius: 12px;
  min-height: 44px;
}
.guest-card textarea.form-control { min-height: 96px; }
.guest-card .form-control:focus {
  background: #fff;
  border-color: #0a6eb4;
  box-shadow: 0 0 0 .2rem rgba(10,110,180,.15);
}
.guest-ask-head { margin-bottom: 8px; }
.guest-ask-head p {
  color: var(--wfp-muted);
  margin: 6px 0 0;
  line-height: 1.45;
}
.guest-ask-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e8f3fc, #d7effc);
  color: var(--wfp-navy);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  border: 1px solid #cfe3f4;
}
.guest-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--wfp-blue);
}
.guest-office-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--wfp-navy) !important;
  font-size: .86rem;
  font-weight: 700;
}
.guest-ask-search {
  position: relative;
  margin: 18px 0 16px;
}
.guest-ask-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wfp-muted);
  pointer-events: none;
}
.guest-ask-search .form-control { padding-left: 42px; }
.guest-office-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .guest-office-grid { grid-template-columns: 1fr 1fr; }
}
.guest-office {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5eef6;
  border-radius: 14px;
  background: #fafcfe;
  color: var(--wfp-ink);
  min-height: 74px;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.guest-office:hover,
.guest-office:focus-visible {
  border-color: #9ec8e8;
  background: #fff;
  color: var(--wfp-navy);
  box-shadow: 0 8px 20px rgba(0, 40, 80, .08);
  transform: translateY(-1px);
}
.guest-office-pin {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8f3fc;
  color: var(--wfp-blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.1rem;
}
.guest-office-txt { flex: 1; min-width: 0; }
.guest-office-txt strong { display: block; font-weight: 800; line-height: 1.2; }
.guest-office-txt small { display: block; color: var(--wfp-muted); font-weight: 600; margin-top: 2px; }
.guest-office .bi-chevron-right { color: #9db4c8; flex: 0 0 auto; }
.guest-office-empty {
  text-align: center;
  color: var(--wfp-muted);
  padding: 18px 8px 6px;
}
.guest-section {
  border-top: 1px solid #edf3f8;
  padding-top: 18px;
  margin-top: 16px;
}
.guest-section-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wfp-muted);
  margin-bottom: 12px;
}
.guest-qty {
  max-width: 90px;
  min-height: 40px !important;
  text-align: center;
}
.guest-card .btn-wfp {
  min-height: 48px;
  font-weight: 800;
}
.guest-status-hint { color: var(--wfp-muted); }
.guest-foot {
  text-align: center;
  margin-top: 22px;
  color: var(--wfp-muted);
  font-size: .88rem;
}
.login-foot {
  grid-column: 1 / -1;
  background: #003a70;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  font-size: .78rem;
  font-weight: 800;
}
.login-foot-values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 12px 20px 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.login-foot-values span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.login-foot-values span + span {
  padding-left: 28px;
  border-left: 1px solid rgba(255,255,255,.22);
}
.login-foot .app-footer-login {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.12);
}
.login-foot .app-footer-login .app-footer-inner {
  justify-content: center;
  padding: 8px 20px 12px;
}
.login-card .form-control {
  background: #f7fafc;
  border-color: #d7e4ef;
  border-radius: 12px;
}
.login-card .form-control:focus {
  background: #fff;
  border-color: #0a6eb4;
  box-shadow: 0 0 0 .2rem rgba(10,110,180,.15);
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(145deg, #e8f3fc, #d7effc);
  color: var(--wfp-navy);
  display: grid; place-items: center; font-weight: 800;
  border: 1px solid #cfe3f4;
  flex: 0 0 auto;
}
.notif-btn { width: 42px; min-height: 42px !important; padding: 0 !important; }
.notif-dot {
  position: absolute; top: 6px; right: 7px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #e03131; border-radius: 999px;
  color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.print-sheet { max-width: 900px; margin: 24px auto; background: #fff; padding: 32px; border-radius: 16px; }

.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 183, 5, .32), transparent 40%),
    linear-gradient(125deg, #001f3f 0%, #003a70 46%, #0a6eb4 100%);
  box-shadow: 0 18px 40px rgba(0, 58, 112, .2);
  margin-bottom: 1.35rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dash-hero::after {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.dash-hero h2, .dash-hero .page-sub { color: #fff; position: relative; z-index: 1; }
.dash-hero .page-sub { opacity: .78; }
.dash-hero .page-actions { position: relative; z-index: 1; }
.dash-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .65;
  font-weight: 800;
  margin-bottom: 6px;
}

.receive-banner {
  border: 1px solid #bfe8cf !important;
  background: linear-gradient(135deg, #f3fbf6, #ffffff);
}
.receive-banner.is-warn {
  border-color: #f2d48a !important;
  background: linear-gradient(135deg, #fff9ea, #ffffff);
}
.receive-banner .card-body { padding: 1.2rem 1.35rem; }
.stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: .75rem 0;
  border-bottom: 1px solid #edf3f8;
}
.stock-row:last-child { border-bottom: 0; }
.stock-more {
  margin-top: 2px;
}
.stock-more > summary {
  list-style: none;
  cursor: pointer;
  color: var(--wfp-blue);
  font-size: .82rem;
  font-weight: 700;
  padding: .7rem 0 .15rem;
  user-select: none;
}
.stock-more > summary::-webkit-details-marker,
.stock-more > summary::marker { display: none; }
.stock-more-close { display: none; }
.stock-more[open] > summary { padding-bottom: .35rem; }
.stock-more[open] .stock-more-open { display: none; }
.stock-more[open] .stock-more-close { display: inline; }
.stock-meter {
  flex: 1;
  height: 6px;
  background: #e8eef4;
  border-radius: 99px;
  overflow: hidden;
  max-width: 120px;
}
.stock-meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0a6eb4, #3d9dd6);
  border-radius: inherit;
}
.wo-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: .75rem 0;
  border-bottom: 1px solid #edf3f8;
}
.wo-mini-row:last-child { border-bottom: 0; }

.list-group-item {
  border-color: #edf3f8;
  padding: 1.05rem 1.25rem;
}
.list-group-item:hover { background: #f8fbfe; }

.empty-state {
  padding: 2.6rem 1.5rem;
  text-align: center;
  color: var(--wfp-muted);
}
.empty-state::before {
  content: "◇";
  display: block;
  font-size: 1.6rem;
  margin-bottom: .55rem;
  opacity: .35;
}

.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  padding: .7rem 0;
  border-bottom: 1px solid #edf3f8;
}
.item-list li:last-child { border-bottom: 0; }

.select-block {
  border: 1px solid #e5eef6;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  background: #fafcfe;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.select-block:has(.wo-req-check:checked),
.select-block:has(.loan-eq-check:checked) {
  border-color: #9ec8e8;
  background: #f3f9fd;
  box-shadow: 0 0 0 3px rgba(10, 110, 180, .08);
}

.detail-dl dt {
  color: var(--wfp-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}
.detail-dl dd { margin-bottom: 1rem; }

.action-panel .alert:last-child { margin-bottom: 0; }

.error-page { max-width: 480px; margin: 2rem auto; }
.error-code {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--wfp-navy);
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: .75rem;
}

code {
  background: var(--wfp-ice);
  color: var(--wfp-navy);
  padding: .15rem .45rem;
  border-radius: 6px;
  font-size: .85em;
}

.dropdown-menu {
  border-radius: 14px !important;
  padding: .45rem;
  box-shadow: var(--shadow-lg) !important;
}
.dropdown-item { border-radius: 10px; font-weight: 600; padding: .55rem .75rem; }

.settings-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
}
.settings-page > .settings-tabs,
.settings-page > .settings-hero,
.settings-page > .settings-panel,
.settings-page > .row {
  width: 100%;
  max-width: none;
  align-self: stretch;
}
.settings-page > .row {
  --bs-gutter-x: 1.25rem;
  margin-left: 0;
  margin-right: 0;
}
.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
  align-items: center;
  gap: 16px 24px;
  padding: 24px 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 183, 5, .28), transparent 42%),
    linear-gradient(125deg, #001f3f 0%, #003a70 42%, #0a6eb4 100%);
  box-shadow: 0 18px 40px rgba(0, 58, 112, .2);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.settings-hero::after { display: none; }
.settings-hero-copy { position: relative; z-index: 1; padding: 18px 0; }
.settings-hero-visual {
  margin: 0;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 22px;
  position: relative;
  z-index: 1;
}
.settings-hero-visual .pam-logo {
  width: min(100%, 380px);
}
.settings-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 700;
  margin-bottom: 6px;
}
.settings-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -.02em;
}
.settings-sub {
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
}
.settings-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; margin-top: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: 12px;
  font-weight: 700;
  border: 0;
}
.chip-ok { background: #d9f3e3; color: #0b6b38; }
.chip-warn { background: #fff1cc; color: #8a6200; }
.chip-soft { background: rgba(255,255,255,.92); color: var(--wfp-navy); }

.settings-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
}
.settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--wfp-muted);
  font-weight: 700;
  padding: .7rem 1.15rem;
  border-radius: 12px;
  transition: .18s ease;
}
.settings-tab:hover { background: var(--wfp-ice); color: var(--wfp-navy); }
.settings-tab.is-active {
  background: linear-gradient(135deg, #003a70, #0a6eb4);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 110, 180, .28);
}
.settings-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #e5eef6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.settings-panel > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  margin: 0;
}
.settings-panel-accent { background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%); }
.settings-panel-body { padding: 1.6rem 1.7rem 1.2rem; flex: 1; }
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 1rem 1.7rem 1.35rem;
  background: linear-gradient(180deg, #f8fbfe, #f1f6fb);
  border-top: 1px solid #e5eef6;
}
.settings-section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.settings-section-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wfp-navy);
}
.settings-section-head p {
  margin: .25rem 0 0;
  color: var(--wfp-muted);
  font-size: .92rem;
}
.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e8f3fc;
  color: var(--wfp-blue);
  font-size: 1.25rem;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(10, 110, 180, .08);
}
.icon-bubble.mail { background: #eef2ff; color: #3f51b5; }
.icon-bubble.test { background: #e8f8ef; color: #0b6b38; }
.icon-bubble.backup { background: #fff4d6; color: #8a6200; }
.icon-bubble.maint { background: #fde8d8; color: #b35a00; }
.settings-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wfp-navy);
  margin-bottom: .4rem;
}
.settings-input,
.settings-panel .form-control,
.settings-panel .form-select {
  border-radius: 12px;
  border-color: #d5e3ef;
  padding: .7rem .95rem;
  min-height: 46px;
  box-shadow: none;
}
.settings-panel textarea.settings-input,
.settings-panel textarea.form-control { min-height: auto; }
.settings-input:focus,
.settings-panel .form-control:focus,
.settings-panel .form-select:focus {
  border-color: #0a6eb4;
  box-shadow: 0 0 0 .22rem rgba(10, 110, 180, .15);
}
.settings-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7e5f1, transparent);
  margin: .35rem 0;
}
.settings-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #f4f8fc;
  border: 1px solid #dce7f0;
  font-size: .92rem;
}
.settings-note i { color: var(--wfp-blue); margin-top: 2px; }
.btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  padding: .8rem 1.35rem;
  min-height: 48px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn-settings:hover { transform: translateY(-1px); }
.btn-settings-primary {
  background: linear-gradient(135deg, #0a6eb4, #0d86d8);
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 110, 180, .28);
}
.btn-settings-primary:hover { background: linear-gradient(135deg, #085c96, #0a6eb4); color: #fff; }
.btn-settings-navy {
  background: linear-gradient(135deg, #00264d, #003a70);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 58, 112, .28);
}
.btn-settings-navy:hover { background: linear-gradient(135deg, #001a33, #00264d); color: #fff; }
.btn-settings.w-100 { width: 100%; }
.maintenance-toggle {
  border-radius: 14px;
  padding: 16px 18px;
  background: #f4f7fb;
  border: 1px solid #dce7f0;
  margin-bottom: 1.1rem;
}
.maintenance-toggle.is-on {
  background: linear-gradient(135deg, #fff9e8, #fff3cc);
  border-color: #f2b705;
}
.maintenance-toggle .form-check-label { font-weight: 700; color: var(--wfp-navy); }
.maintenance-toggle .form-check-input {
  width: 2.6em;
  height: 1.35em;
  cursor: pointer;
}
.maintenance-toggle .form-check-input:checked {
  background-color: #0a6eb4;
  border-color: #0a6eb4;
}
.maintenance-toggle > p {
  margin: .55rem 0 0;
  font-size: .86rem;
  color: var(--wfp-muted);
}
.preview-box { margin-top: .5rem; }
.preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--wfp-muted);
  font-weight: 800;
  margin-bottom: .55rem;
}
.preview-card {
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(160deg, #f7fbfe, #eef6fb);
  border: 1px dashed #b9d6ea;
}
.preview-card p {
  margin: .55rem 0 0;
  color: var(--wfp-muted);
  font-size: .92rem;
}
.settings-list-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--wfp-navy);
}
.backup-list { list-style: none; margin: 0; padding: 0; }
.backup-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: .85rem 0;
  border-bottom: 1px solid #e8f0f7;
}
.backup-list li:last-child { border-bottom: 0; }
.backup-name { font-weight: 700; font-size: .9rem; }
.backup-meta { font-size: .78rem; color: var(--wfp-muted); margin-top: 2px; }

.loan-flow { background: linear-gradient(180deg, #fff, #f7fbfe); }
.loan-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .55rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wfp-muted);
}
.loan-steps span {
  padding: .28rem .7rem;
  border-radius: 999px;
  background: #f1f5f9;
}
.loan-steps span.is-done { color: #0b6b38; background: #e8f8ef; }
.loan-steps span.is-current {
  color: #fff;
  background: linear-gradient(135deg, #003a70, #0a6eb4);
}
.loan-eq-list { max-height: 360px; overflow: auto; }
.loan-eq-item { cursor: pointer; }
.ac-wrap { position: relative; }
.ac-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #fff;
  border: 1px solid #d5e3ef;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(10, 40, 80, .14);
  max-height: 260px;
  overflow: auto;
}
.ac-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .55rem .85rem;
  border-bottom: 1px solid #f1f5f9;
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item:focus { background: #eef6fc; }
.ac-item strong { display: block; font-size: .9rem; color: var(--wfp-navy); }
.ac-item span { display: block; font-size: .75rem; color: var(--wfp-muted); }

@media (hover: none) {
  .btn:hover, .stat-card:hover, .btn-settings:hover { transform: none; }
}

@media (max-width: 991px) {
  :root { --topbar-h: 60px; }
  html, body { overflow-x: hidden; }
  body.nav-open { overflow: hidden; height: 100%; }
  .sidebar {
    transform: translateX(-105%);
    transition: transform .28s var(--ease);
    width: min(88vw, 300px);
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-close { display: inline-flex; }
  .main-wrap {
    margin-left: 0;
    height: 100dvh;
    overflow: auto;
  }
  .topbar {
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
    gap: 8px;
  }
  .topbar .page-title {
    font-size: .98rem;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-meta { display: none; }
  .content {
    padding: 14px 12px 16px;
  }
  .page-head { gap: 10px; margin-bottom: 1rem; }
  .page-head h2 { font-size: 1.32rem; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 calc(50% - .4rem); }
  .page-actions .export-btns { width: 100%; display: flex; }
  .page-actions .export-btns .btn { flex: 1 1 0; }
  .dash-hero { padding: 18px 16px; border-radius: 18px; }
  .dash-hero .page-actions .btn { color: var(--wfp-navy); }
  .dash-hero .btn-wfp { color: #fff; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { min-height: auto; padding: 28px 22px 22px; padding-top: max(28px, env(safe-area-inset-top)); }
  .auth-hero-visual img, .auth-hero-visual .pam-logo { max-height: none; width: min(100%, 340px); }
  .auth-hero-icons li { width: 44px; height: 44px; font-size: 1.2rem; }
  .auth-panel { padding: 16px 14px max(20px, env(safe-area-inset-bottom)); }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .login-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0 46%, rgba(0, 45, 90, .45) 100%),
      url("../img/login-warehouse.jpg") center / cover no-repeat;
  }
  .login-left { padding: 22px 20px 8px; max-width: none; }
  .login-title { font-size: 1.35rem; }
  .login-features { gap: 12px; }
  .login-right { padding: 12px 16px 20px; min-height: auto; }
  .login-right::before { inset: 40% 0 0; clip-path: none; border-radius: 28px 28px 0 0; }
  .login-lang { position: static; display: flex; justify-content: flex-end; margin-bottom: 10px; }
  .login-foot-values span + span { padding-left: 0; border-left: 0; }
  .settings-hero {
    grid-template-columns: 1fr;
    padding: 0 0 16px;
    min-height: 0;
  }
  .settings-hero-visual { order: -1; min-height: 0; justify-content: flex-start; padding: 18px 18px 0; }
  .settings-hero-visual .pam-logo { width: min(100%, 280px); }
  .settings-hero-copy { padding: 4px 18px 0; }
  .settings-actions { justify-content: stretch; }
  .settings-actions .btn-settings { width: 100%; }
  .filter-bar { position: static; }
  .filter-bar .btn { width: 100%; min-height: 44px; }
  .card-wfp > .card-body { padding: 1rem 1.05rem; }
  .stat-card { padding: 14px 12px 12px; }
  .stat-card .n { font-size: 1.4rem; }
  .stat-card .l { font-size: 10px; }
  .stat-card i { width: 32px; height: 32px; margin-bottom: 8px; }
  .stock-meter { display: none; }
  .action-panel .btn, .action-panel form .btn { width: 100%; }
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .table td, .table thead th { padding: .8rem .85rem; }
  .settings-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .settings-tab { white-space: nowrap; }
  .loan-steps .bi-chevron-right { display: none; }
  .lang-btn { min-width: 36px; min-height: 30px !important; }
  .notif-btn, .sidebar-toggle { width: 40px; min-height: 40px !important; }
  .user-chip { padding-left: .35rem; padding-right: .45rem; }
  .avatar { width: 34px; height: 34px; }
}

@media (max-width: 575px) {
  .page-actions .btn { flex: 1 1 100%; }
  .page-actions .export-btns .btn { flex: 1 1 0; }
  .auth-hero h1 { font-size: 1.7rem; }
  .auth-hero .lead { font-size: 1rem; }
  .dash-hero h2 { font-size: 1.35rem; }
  .receive-banner .d-flex { align-items: flex-start !important; }
  .receive-banner .btn { width: 100%; }
  .wo-mini-row { flex-wrap: wrap; }
  .detail-dl dt { margin-bottom: .15rem; }
  .btn-lg { min-height: 48px; }
}

/* —— Reports —— */
.report-search .form-label { font-weight: 700; color: var(--wfp-navy); }
.chart-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: .35rem 0 .15rem;
}
.chart-donut {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0, 40, 80, .06);
}
.chart-donut-hole {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 0 0 8px #fff;
}
.chart-donut-hole strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--wfp-navy);
  line-height: 1;
}
.chart-donut-hole span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wfp-muted);
  max-width: 7.5rem;
  margin-top: 4px;
}
.chart-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 160px;
}
.chart-legend li {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .45rem 0;
  font-size: .92rem;
  color: var(--wfp-ink);
}
.chart-legend li strong { margin-left: auto; color: var(--wfp-navy); }
.chart-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.chart-hbar {
  display: grid;
  grid-template-columns: minmax(88px, 150px) 1fr 2.4rem;
  gap: .55rem;
  align-items: center;
  margin: .62rem 0;
}
.chart-hbar-label {
  font-size: .86rem;
  color: var(--wfp-ink);
  font-weight: 600;
}
.chart-hbar-track {
  height: 14px;
  background: #e8eef4;
  border-radius: 99px;
  overflow: hidden;
}
.chart-hbar-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
}
.chart-hbar strong {
  text-align: right;
  font-size: .92rem;
  color: var(--wfp-navy);
}
.chart-cat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.1rem;
  margin: 0 0 1rem;
  font-size: .82rem;
  color: var(--wfp-muted);
  font-weight: 600;
}
.chart-cat-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: .35rem;
  vertical-align: 1px;
}
.chart-stack { margin: 0 0 1rem; }
.chart-stack-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--wfp-navy);
}
.chart-stack-track {
  display: flex;
  height: 16px;
  border-radius: 99px;
  overflow: hidden;
  background: #e8eef4;
}
.chart-stack-track > span { display: block; height: 100%; min-width: 3px; }
.report-kpi.is-total i { background: #e8f4fc; color: var(--wfp-blue) !important; }
.report-kpi.is-stock i { background: #e7f6ee; color: #1e7a4a !important; }
.report-kpi.is-loan i { background: #e8eefc; color: #3f51b5 !important; }
.report-kpi.is-ok i { background: #e7f6ee; color: #1e7a4a !important; }
.report-kpi.is-down i { background: #fdecea; color: #c0392b !important; }
.report-kpi.is-down .n { color: #c0392b; }
.report-kpi.is-ok .n { color: #1e7a4a; }
.report-kpi.is-stock .n { color: #1e7a4a; }

/* —— Mockup UI: tabs, wizard, catalog, detail —— */
.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #e5eef6;
}
.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--wfp-muted);
  text-decoration: none;
  transition: .15s ease;
}
.page-tab:hover { background: var(--wfp-ice); color: var(--wfp-navy); }
.page-tab.is-active {
  background: linear-gradient(135deg, #003a70, #0a6eb4);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 110, 180, .22);
}
.page-tab .tab-count {
  font-size: 11px;
  font-weight: 800;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
}
.page-tab.is-active .tab-count { background: rgba(255,255,255,.22); }

.view-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.view-toggle a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border-radius: 8px;
  color: var(--wfp-muted);
  text-decoration: none;
}
.view-toggle a.is-active {
  background: #fff;
  color: var(--wfp-navy);
  box-shadow: 0 2px 8px rgba(0,40,80,.08);
}

.eq-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.eq-card {
  background: #fff;
  border: 1px solid #e5eef6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.eq-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.eq-card-media {
  height: 120px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eef6fb, #dceaf4);
  color: var(--wfp-blue);
  font-size: 2.4rem;
}
.eq-card-body { padding: 1rem 1.1rem 1.15rem; flex: 1; }
.eq-card-body h4 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--wfp-navy);
  letter-spacing: -.02em;
}
.eq-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
  color: var(--wfp-muted);
  font-weight: 600;
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid #edf3f8;
}
.eq-card-meta strong { color: var(--wfp-navy); }

/* —— Equipment catalog (mockup) —— */
.eq-page-head { margin-bottom: 1rem; }
.eq-toolbar .form-control,
.eq-toolbar .form-select { min-height: 42px; }
.eq-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .85rem;
  padding-bottom: .25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.eq-cat-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 78px;
  padding: .55rem .65rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--wfp-muted);
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .15s ease;
}
.eq-cat-tab i { font-size: 1.15rem; }
.eq-cat-tab:hover {
  background: #fff;
  color: var(--wfp-navy);
  border-color: #e5eef6;
  box-shadow: var(--shadow);
}
.eq-cat-tab.is-active {
  background: #fff;
  color: var(--wfp-blue);
  border-color: #c5dff0;
  box-shadow: 0 6px 18px rgba(10, 110, 180, .12);
}
.eq-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.eq-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .38rem .75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5eef6;
  color: var(--wfp-muted);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: .15s ease;
}
.eq-cat-chip:hover {
  color: var(--wfp-navy);
  border-color: #c5dff0;
}
.eq-cat-chip.is-active {
  background: linear-gradient(135deg, #003a70, #0a6eb4);
  border-color: transparent;
  color: #fff;
}
.eq-catalog-mock {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}
.eq-card-mock {
  border-radius: 16px;
  position: relative;
}
.eq-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .75rem .85rem 0;
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  pointer-events: none;
}
.eq-card-top .dropdown { pointer-events: auto; }
.eq-card-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 999px;
}
.eq-card-badge.is-available { background: #d9f3e3; color: #0b6b38; }
.eq-card-badge.is-on_loan { background: #fff1cc; color: #8a6200; }
.eq-card-badge.is-in_repair,
.eq-card-badge.is-out_of_service { background: #fdeceb; color: #a61b1b; }
.eq-card-badge.is-assigned,
.eq-card-badge.is-reserved,
.eq-card-badge.is-in_transit { background: #e8f4fc; color: #0a6eb4; }
.eq-card-menu {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--wfp-muted);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,40,80,.08);
}
.eq-card-mock .eq-card-media {
  height: 148px;
  text-decoration: none;
  background: linear-gradient(180deg, #f8fbfe 0%, #eef4fa 100%);
  border-bottom: 1px solid #edf3f8;
}
.eq-card-mock .eq-card-media i { font-size: 3rem; opacity: .85; }
.eq-card-mock h4 {
  font-size: .95rem;
  line-height: 1.35;
  margin-bottom: .65rem;
}
.eq-card-mock h4 a {
  color: var(--wfp-navy);
  text-decoration: none;
}
.eq-card-mock h4 a:hover { color: var(--wfp-blue); }
.eq-card-kv {
  margin: 0;
  display: grid;
  gap: .35rem;
}
.eq-card-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .8rem;
}
.eq-card-kv dt {
  margin: 0;
  color: var(--wfp-muted);
  font-weight: 600;
}
.eq-card-kv dd { margin: 0; font-weight: 700; color: var(--wfp-navy); text-align: right; }
.eq-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid #edf3f8;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wfp-blue);
  text-decoration: none;
}
.eq-card-foot:hover { color: var(--wfp-navy); }
.eq-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.35rem;
  padding: .5rem 0;
}
.eq-pagination .pagination { margin: 0 auto; }
.eq-page-meta {
  font-size: .82rem;
  color: var(--wfp-muted);
  font-weight: 600;
  margin-left: auto;
}
.eq-pagination .page-link {
  border-radius: 8px;
  margin: 0 2px;
  font-weight: 700;
  color: var(--wfp-navy);
  border-color: #e5eef6;
}
.eq-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #003a70, #0a6eb4);
  border-color: transparent;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #edf3f8;
}
.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wfp-muted);
}
.wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3f8;
  color: var(--wfp-muted);
  font-size: .78rem;
  font-weight: 800;
}
.wizard-step.is-done .wizard-step-num {
  background: #e8f8ef;
  color: #0b6b38;
}
.wizard-step.is-current .wizard-step-num {
  background: linear-gradient(135deg, #003a70, #0a6eb4);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10,110,180,.25);
}
.wizard-step.is-current { color: var(--wfp-navy); }
.wizard-sep { color: #c5d4e3; font-size: .75rem; }
.wizard-pane { display: none; }
.wizard-pane.is-active { display: block; }
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf3f8;
}

.detail-show .detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: start;
}
.detail-status-box {
  text-align: center;
  min-width: 140px;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbfe, #eef6fb);
  border: 1px solid #dce7f0;
}
.detail-status-box .detail-status-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wfp-muted);
  margin-bottom: .5rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.25rem;
}
.info-cell label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wfp-muted);
  margin-bottom: .3rem;
}
.info-cell div { font-weight: 700; color: var(--wfp-navy); }

.report-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.report-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  padding: 1.35rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e5eef6;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.report-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.report-tile i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--wfp-ice);
  color: var(--wfp-blue);
}
.report-tile strong {
  font-size: .92rem;
  color: var(--wfp-navy);
  letter-spacing: -.01em;
}
.report-tile span { font-size: .78rem; color: var(--wfp-muted); }

.dash-kpi-main .stat-card { min-height: 118px; }
.dash-kpi-main .stat-card.is-total i { background: #e8f4fc; color: #0a6eb4 !important; }
.dash-kpi-main .stat-card.is-stock i { background: #e7f6ee; color: #1e7a4a !important; }
.dash-kpi-main .stat-card.is-loan i { background: #e8eefc; color: #3f51b5 !important; }
.dash-kpi-main .stat-card.is-maint i { background: #fff4e0; color: #b35a00 !important; }

.alert-feed { list-style: none; margin: 0; padding: 0; }
.alert-feed li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: .85rem 0;
  border-bottom: 1px solid #edf3f8;
}
.alert-feed li:last-child { border-bottom: 0; }
.alert-feed-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1rem;
}
.alert-feed-icon.is-warn { background: #fff4e0; color: #b35a00; }
.alert-feed-icon.is-info { background: #e8f4fc; color: #0a6eb4; }
.alert-feed-icon.is-ok { background: #e8f8ef; color: #0b6b38; }
.alert-feed-icon.is-danger { background: #fdecea; color: #c0392b; }
.alert-feed-body strong { display: block; color: var(--wfp-navy); font-size: .92rem; }
.alert-feed-body span { font-size: .82rem; color: var(--wfp-muted); }

.table-actions .btn { min-height: 34px; padding: .25rem .55rem; }

@media (max-width: 767px) {
  .detail-show .detail-top { grid-template-columns: 1fr; }
  .detail-status-box { text-align: left; display: flex; align-items: center; gap: 12px; }
  .wizard-step span:not(.wizard-step-num) { display: none; }
  .wizard-sep { display: none; }
}

/* —— Requests board (mockup) —— */
.req-board {
  overflow: hidden;
}
.req-toolbar {
  padding: 1.1rem 1.2rem .85rem;
  border-bottom: 1px solid #edf3f8;
}
.req-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.req-search {
  flex: 1 1 240px;
  min-width: 200px;
}
.req-search .form-control {
  min-height: 42px;
  border-radius: 12px;
  background: #f7fafc;
}
.req-filter {
  flex: 0 1 160px;
  min-width: 140px;
  min-height: 42px;
  border-radius: 12px;
  background: #fff;
}
.req-new {
  margin-left: auto;
  white-space: nowrap;
}
.req-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .75rem 1.2rem;
  border-bottom: 1px solid #edf3f8;
  background: #fbfcfe;
}
.req-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .86rem;
  color: var(--wfp-muted);
  background: transparent;
  transition: .15s ease;
}
.req-tab i { font-size: .95rem; }
.req-tab em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  min-width: 1.4rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  text-align: center;
  background: #e8eef5;
  color: var(--wfp-navy);
}
.req-tab:hover { background: #eef4fa; color: var(--wfp-navy); }
.req-tab.is-active {
  background: linear-gradient(135deg, #003a70, #0a6eb4);
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 110, 180, .22);
}
.req-tab.is-active em { background: rgba(255,255,255,.22); color: #fff; }
.req-tab.tone-pending:not(.is-active) em { background: #fff1cc; color: #8a6200; }
.req-tab.tone-approved:not(.is-active) em { background: #d9f3e3; color: #0b6b38; }
.req-tab.tone-rejected:not(.is-active) em { background: #fdecea; color: #b42318; }
.req-tab.tone-closed:not(.is-active) em { background: #e8eef5; color: #475569; }
.req-table-wrap { padding: 0; }
.req-table {
  --bs-table-bg: transparent;
  margin: 0;
}
.req-table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wfp-muted);
  font-weight: 800;
  border-bottom-width: 1px;
  padding: .85rem 1.1rem;
  background: #fff;
  white-space: nowrap;
}
.req-table tbody td {
  padding: .95rem 1.1rem;
  border-color: #edf3f8;
  vertical-align: middle;
}
.req-table tbody tr:hover { background: #f8fbfd; }
.req-ref {
  font-weight: 800;
  color: var(--wfp-navy);
  text-decoration: none;
}
.req-ref:hover { color: var(--wfp-blue); }
.req-person {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  color: var(--wfp-ink);
}
.req-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}
.req-avatar.tone-blue { background: #dbeafe; color: #1d4ed8; }
.req-avatar.tone-teal { background: #ccfbf1; color: #0f766e; }
.req-avatar.tone-green { background: #dcfce7; color: #15803d; }
.req-avatar.tone-amber { background: #fef3c7; color: #b45309; }
.req-avatar.tone-violet { background: #ede9fe; color: #6d28d9; }
.req-avatar.tone-rose { background: #ffe4e6; color: #be123c; }
.req-equip {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.req-more {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  color: var(--wfp-muted);
}
.req-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .9rem 1.15rem 1.05rem;
  border-top: 1px solid #edf3f8;
  background: #fbfcfe;
}
.req-footer-meta {
  font-size: .86rem;
  color: var(--wfp-muted);
  font-weight: 600;
  min-width: 180px;
}
.req-pagination .page-link {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  margin: 0 2px;
  border: 0;
  color: var(--wfp-navy);
  font-weight: 700;
  background: transparent;
}
.req-pagination .page-item.active .page-link {
  background: var(--wfp-blue);
  color: #fff;
}
.req-pagination .page-item.disabled .page-link { opacity: .45; }
.req-per-page .form-select {
  min-width: 110px;
  border-radius: 10px;
  font-weight: 600;
}
@media (max-width: 991px) {
  .req-new { margin-left: 0; width: 100%; }
  .req-filter { flex: 1 1 140px; }
  .req-footer { justify-content: center; text-align: center; }
  .req-footer-meta { width: 100%; }
}

.inbox-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.inbox-split.is-two {
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .inbox-split.is-two { grid-template-columns: 1fr 1fr; }
}
.inbox-board {
  background: #fff;
  border: 1px solid #e4eef6;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(10, 40, 80, .06);
  overflow: hidden;
  min-width: 0;
}
.inbox-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}
.inbox-board-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wfp-navy);
  font-size: .95rem;
  font-weight: 800;
}
.inbox-board-title i {
  color: var(--wfp-gold);
  font-size: 1.05rem;
}
.inbox-split.is-two .inbox-board:last-child .inbox-board-title i {
  color: var(--wfp-blue);
}
.inbox-board-count {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8f4fc;
  color: var(--wfp-blue);
  font-size: .78rem;
  font-weight: 800;
}
.inbox-alerts {
  list-style: none;
  margin: 0;
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inbox-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  border-left-width: 4px;
  transition: filter .15s ease, transform .15s ease;
}
.inbox-alert:hover {
  filter: brightness(.97);
  color: inherit;
  transform: translateY(-1px);
}
.inbox-alert-ref {
  font-weight: 800;
  font-size: .88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-alert-tag {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.inbox-alert.is-warn {
  background: #fff6e8;
  border-color: #f2d48a;
  border-left-color: #e39b00;
  color: #8a4b00;
}
.inbox-alert.is-warn .inbox-alert-ref { color: #7a3e00; }
.inbox-alert.is-ok {
  background: #eefaf3;
  border-color: #bfe8cf;
  border-left-color: #1aa35a;
  color: #0b6b38;
}
.inbox-alert.is-ok .inbox-alert-ref { color: #0a5a30; }
.inbox-alert.is-info {
  background: #eaf4fc;
  border-color: #b7d7ee;
  border-left-color: #0a6eb4;
  color: #0a5a96;
}
.inbox-alert.is-info .inbox-alert-ref { color: #003a70; }
.inbox-alert.is-danger {
  background: #fdecea;
  border-color: #f5c6c2;
  border-left-color: #c0392b;
  color: #922b21;
}

/* Inventory */
.inv-progress {
  height: 6px;
  background: #e8eef5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.inv-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0b6b38, #22c55e);
  border-radius: 999px;
}
.inv-scan-body {
  background: #0a2540;
  min-height: 100dvh;
}
.inv-scan-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: #fff;
  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
}
.inv-scan-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 14px;
}
.inv-scan-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.inv-scan-top strong { display: block; font-size: .95rem; }
.inv-scan-top small { color: rgba(255,255,255,.7); font-size: .75rem; }
.inv-scan-net { margin-left: auto; font-size: 1.1rem; }
.inv-scan-net.is-offline { color: #fbbf24; }
.inv-scan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.inv-scan-stats div {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.inv-scan-stats span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}
.inv-scan-stats em {
  display: block;
  font-style: normal;
  font-size: .68rem;
  opacity: .75;
  margin-top: 2px;
}
.inv-scan-camera-wrap {
  flex: 1;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}
#qr-reader { width: 100%; }
#qr-reader video { object-fit: cover !important; }
.inv-scan-manual { margin-bottom: 10px; }
.inv-scan-manual .form-label { color: rgba(255,255,255,.85); font-size: .8rem; }
.inv-scan-feedback {
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .2s ease;
  margin-bottom: 10px;
}
.inv-scan-feedback.is-visible { opacity: 1; }
.inv-scan-feedback.tone-success { background: rgba(34,197,94,.25); }
.inv-scan-feedback.tone-danger { background: rgba(239,68,68,.28); }
.inv-scan-feedback.tone-warning { background: rgba(251,191,36,.25); }
.inv-scan-feedback.tone-info { background: rgba(96,165,250,.22); }
.inv-scan-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-bottom: 8px;
}
.inv-qr-print {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}
@media print {
  .guest-wrap .btn, .page-head { display: none !important; }
  .guest-card { box-shadow: none !important; border: none !important; }
}

