:root {
  --bg: #f3f5ef;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-muted: #eef2e7;
  --sidebar-start: #132a13;
  --sidebar-end: #1f4f38;
  --text: #13261c;
  --text-soft: #5f6f63;
  --line: rgba(19, 38, 28, 0.1);
  --accent: #b68d40;
  --accent-deep: #936d24;
  --accent-soft: rgba(182, 141, 64, 0.12);
  --success-soft: rgba(42, 101, 71, 0.14);
  --shadow: 0 22px 55px rgba(17, 37, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(182, 141, 64, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31, 79, 56, 0.14), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.login-brand-panel,
.login-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(160deg, rgba(19, 42, 19, 0.94), rgba(31, 79, 56, 0.88)),
    var(--sidebar-start);
  color: #f4f8f2;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 141, 64, 0.3), transparent 68%);
}

.login-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.login-title,
.login-form-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

.login-title {
  max-width: 420px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.login-copy,
.login-form-copy,
.login-card-copy {
  line-height: 1.8;
}

.login-copy {
  max-width: 520px;
  margin: 18px 0 28px;
  color: rgba(244, 248, 242, 0.76);
  font-size: 1rem;
}

.login-brand-card {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 520px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-logo-wrap {
  margin-bottom: 0;
  flex-shrink: 0;
}

.login-logo {
  width: 48px;
  height: 48px;
}

.login-card-label {
  margin: 0 0 6px;
  font-weight: 700;
  color: #ffffff;
}

.login-card-copy {
  margin: 0;
  color: rgba(244, 248, 242, 0.76);
}

.login-card-panel {
  display: flex;
  align-items: center;
}

.login-card {
  width: 100%;
  padding: 34px;
}

.login-card-header {
  margin-bottom: 24px;
}

.login-form-title {
  font-size: 1.8rem;
}

.login-form-copy {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.login-form .form-control {
  background: rgba(255, 255, 255, 0.9);
}

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: var(--text-soft);
}

.dashboard-page {
  display: flex;
  width: 100%;
  overflow-x: hidden;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 19, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 990;
}

.sidebar-fab {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid rgba(19, 38, 28, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 35px rgba(17, 37, 27, 0.14);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.sidebar-fab span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.sidebar-fab:hover {
  transform: translateY(-1px);
}

.sidebar {
  width: 288px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 24px 18px;
  background: linear-gradient(180deg, var(--sidebar-start), var(--sidebar-end));
  color: #f4f8f2;
  box-shadow: 18px 0 45px rgba(12, 25, 18, 0.16);
  overflow-y: auto;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  z-index: 1000;
}

.brand-block {
  padding: 8px 6px 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-toggle:hover {
  transform: translateY(-1px);
  opacity: 0.98;
}

.brand-logo-wrap {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(182, 141, 64, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.brand-eyebrow,
.topbar-kicker,
.hero-kicker,
.modal-kicker,
.stat-label {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand-eyebrow {
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 8px;
}

.brand-title {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.28rem;
  line-height: 1.25;
}

.brand-subtitle {
  margin: 0;
  color: rgba(244, 248, 242, 0.72);
  font-size: 0.88rem;
  line-height: 1.6;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(244, 248, 242, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.logout-link {
  margin-top: 10px;
  color: #ffdba1;
}

.main {
  flex: 1;
  min-width: 0;
  margin-left: 288px;
  padding: 22px;
  overflow-x: hidden;
  transition: margin-left 0.24s ease;
}

.dashboard-page.sidebar-collapsed .sidebar {
  width: 92px;
  transform: none;
  overflow-x: hidden;
}

.dashboard-page.sidebar-collapsed .main {
  margin-left: 92px;
}

.dashboard-page.sidebar-collapsed .brand-block {
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.dashboard-page.sidebar-collapsed .brand-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dashboard-page.sidebar-collapsed .brand-logo-wrap {
  margin-bottom: 0;
}

.dashboard-page.sidebar-collapsed .brand-eyebrow,
.dashboard-page.sidebar-collapsed .brand-title,
.dashboard-page.sidebar-collapsed .brand-subtitle,
.dashboard-page.sidebar-collapsed .sidebar-nav a:not(.active) span,
.dashboard-page.sidebar-collapsed .sidebar-nav .badge,
.dashboard-page.sidebar-collapsed .logout-link {
  display: none;
}

.dashboard-page.sidebar-collapsed .sidebar-nav a {
  justify-content: center;
  padding: 12px 10px;
  font-size: 0;
}

.dashboard-page.sidebar-collapsed .sidebar-nav a::before {
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit;
  letter-spacing: 0.02em;
}

.dashboard-page.sidebar-collapsed #menuMy::before {
  content: "My";
}

.dashboard-page.sidebar-collapsed #menuPending::before {
  content: "PD";
}

.dashboard-page.sidebar-collapsed #menuApproved::before {
  content: "AP";
}

.dashboard-page.sidebar-collapsed #menuCreate::before {
  content: "CR";
}

.dashboard-page.sidebar-collapsed #menuEmergency::before {
  content: "EM";
}

.dashboard-page.sidebar-collapsed #menuUsers::before {
  content: "US";
}

.dashboard-page.sidebar-collapsed #menuScan::before {
  content: "SC";
}

.dashboard-page.sidebar-collapsed .logout-link::before {
  content: "OUT";
  font-size: 0.78rem;
  font-weight: 700;
  color: inherit;
}

.dashboard-page.sidebar-collapsed .sidebar-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.sidebar-toggle:hover {
  border-color: rgba(182, 141, 64, 0.55);
  transform: translateY(-1px);
}

.sidebar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.topbar-kicker {
  color: var(--accent-deep);
  margin-bottom: 7px;
}

.topbar-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.user-name {
  font-weight: 700;
}

.user-role {
  background: var(--surface-muted);
  color: var(--text);
  text-transform: capitalize;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 242, 230, 0.95)),
    var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -54px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 141, 64, 0.2), transparent 65%);
}

.hero-kicker {
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.hero-title {
  max-width: 640px;
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.35;
}

.hero-copy {
  max-width: 660px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.stat-card,
.content-card,
.form-card,
.dashboard-modal {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stat-card .card-body {
  padding: 20px;
}

.stat-label {
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stat-value {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #24523b;
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-note {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.content-panel:empty,
#form-area:empty {
  display: none;
}

.form-card,
.content-card {
  padding: 20px;
  max-width: 100%;
}

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

.form-grid .full-span {
  grid-column: 1 / -1;
}

.section-title {
  margin: 0 0 6px;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.section-subtitle {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.security-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.security-clock-card {
  min-width: 240px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f6f8f0 0%, #edf3e7 100%);
  box-shadow: 0 16px 30px rgba(17, 38, 28, 0.08);
}

.security-clock-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.security-clock-value {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--accent-deep);
}

.form-control,
.form-select {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(182, 141, 64, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(182, 141, 64, 0.12);
}

.btn {
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #c9a458);
  color: #1d180d;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--accent-deep);
  background: linear-gradient(135deg, #c39a4d, #d7b46d);
  color: #1d180d;
}

.btn-success {
  border-color: #2c6a4d;
  background: #2c6a4d;
}

.btn-danger {
  border-color: #b54242;
  background: #b54242;
}

.table-shell {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.table {
  margin-bottom: 0;
  vertical-align: middle;
  min-width: 100%;
}

.table thead th {
  border-bottom: 1px solid var(--line);
  background: #f2f5ee;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.table tbody td {
  border-color: rgba(19, 38, 28, 0.08);
  font-size: 0.9rem;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}

.table tbody tr:hover {
  background: rgba(182, 141, 64, 0.06);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: capitalize;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-picker {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
}

.search-row {
  display: flex;
  gap: 10px;
}

.map-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.autocomplete-shell {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(17, 37, 27, 0.12);
  z-index: 30;
}

.autocomplete-option {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.autocomplete-option:hover {
  background: rgba(182, 141, 64, 0.1);
  transform: translateY(-1px);
}

.autocomplete-option strong {
  display: block;
  margin-bottom: 4px;
}

.autocomplete-option span,
.autocomplete-empty {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.autocomplete-empty {
  padding: 10px 12px;
}

.map-result {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.map-result:hover {
  border-color: rgba(182, 141, 64, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 37, 27, 0.08);
}

.map-result strong {
  display: block;
  margin-bottom: 4px;
}

.map-result span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.map-canvas {
  height: 320px;
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.selected-location {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--text);
}

.selected-location strong {
  display: block;
  margin-bottom: 4px;
}

.approval-stack-line + .approval-stack-line {
  margin-top: 6px;
}

.map-hint {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.location-link {
  color: #24523b;
  font-weight: 700;
  text-decoration: none;
}

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

.table-location {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  max-width: 220px;
}

.table-location-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.qr-code-box {
  display: grid;
  place-items: center;
  min-height: 300px;
  width: 300px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.qr-info,
.qr-token {
  margin: 0;
  text-align: center;
}

.qr-info {
  color: var(--text-soft);
}

.qr-token {
  font-family: "Sora", sans-serif;
  font-size: 0.84rem;
  word-break: break-all;
}

.scanner-box {
  min-height: 460px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.scanner-box video {
  width: 100% !important;
  height: 460px !important;
  object-fit: contain;
  background: #101712;
}

.empty-state {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-soft);
}

.dashboard-modal {
  padding: 8px;
}

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1085;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
}

.notice-toast {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(17, 37, 27, 0.18);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.notice-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.notice-toast.is-success {
  border-left: 5px solid #2c6a4d;
}

.notice-toast.is-error {
  border-left: 5px solid #b54242;
}

.notice-toast.is-info {
  border-left: 5px solid var(--accent);
}

.notice-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  color: #ffffff;
}

.notice-toast.is-success .notice-icon {
  background: #2c6a4d;
}

.notice-toast.is-error .notice-icon {
  background: #b54242;
}

.notice-toast.is-info .notice-icon {
  background: var(--accent-deep);
}

.notice-body {
  min-width: 0;
}

.notice-title {
  margin: 0 0 4px;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.notice-message {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel,
  .login-card {
    border-radius: 26px;
  }

  .dashboard-page {
    display: block;
  }

  .sidebar {
    width: min(82vw, 320px);
    transform: translateX(-100%);
  }

  .main {
    margin-left: 0;
    padding: 20px;
  }

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

  .dashboard-page.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .dashboard-page.sidebar-open .sidebar-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-user,
  .user-meta {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .login-page {
    padding: 16px;
  }

  .login-brand-panel,
  .login-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .login-brand-card,
  .login-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .scanner-box {
    min-height: 340px;
  }

  .scanner-box video {
    height: 340px !important;
  }

  .security-header {
    flex-direction: column;
  }

  .security-clock-card {
    width: 100%;
    min-width: 0;
  }

  .sidebar,
  .main {
    padding: 16px;
  }

  .sidebar {
    width: min(86vw, 300px);
  }

  .sidebar-fab {
    top: 14px;
    left: 14px;
  }

  .hero-card,
  .topbar,
  .form-card,
  .content-card {
    padding: 20px;
    border-radius: 22px;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .topbar-title {
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .action-group .btn {
    width: 100%;
  }

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

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

  .toast-stack {
    top: 16px;
    right: 16px;
  }
}
