:root {
  --ink: #20312f;
  --muted: #687773;
  --line: #dfe7e2;
  --canvas: #f4f7f5;
  --surface: #fff;
  --green: #176b5b;
  --green-dark: #005e4f;
  --navy: #182b29;
  --mint: #e8f4ef;
  --blue: #33628d;
  --amber: #84550e;
  --danger: #a83836;
  --focus: #176b5b66;
}

[hidden] { display: none !important; }
body { color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:where(button, input, select, textarea):disabled { cursor: not-allowed; opacity: .62; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 12000;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 12px 16px;
  box-shadow: 0 4px 18px #10221d24;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* Municipal workspace shell */
.sidebar {
  border-right: 1px solid #ffffff12;
  box-shadow: 8px 0 28px #17292312;
}
.sidebar-main { min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar .nav-label { margin: 17px 0 4px; color: #a8bbb3; font-size: 10px; letter-spacing: .09em; }
.sidebar .nav-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 8px 11px;
  border-radius: 8px;
  color: #c5d1cc;
  font-size: 12px;
  line-height: 1.35;
  transition: background-color .16s ease, color .16s ease;
}
.sidebar .nav-link:hover { color: #fff; background: #ffffff0d; }
.sidebar .nav-link.active {
  padding-left: 8px;
  border-left: 3px solid #a5f1dd;
  background: #a5f1dd1a;
  color: #e3fff5;
  font-weight: 700;
}
.sidebar .nav-link[aria-current="page"]::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #a5f1dd;
  content: "";
}
.nav-icon { display: inline-grid; width: 20px; flex: 0 0 20px; place-items: center; color: #a9c0b6; font-size: 16px; }
.sidebar .nav-link.active .nav-icon { color: #a5f1dd; }
.sidebar-bottom { padding-top: 14px; border-top: 1px solid #ffffff20; }
.sidebar .help-card { margin-bottom: 10px; border-color: #ffffff20; border-radius: 10px; background: #ffffff0a; }
.sidebar .help-card b { color: #f4f8f6; font-size: 12px; }
.sidebar .help-card p { color: #c1d0c9; font-size: 11px; line-height: 1.55; }
.sidebar .help-card a { color: #a5f1dd; font-size: 11px; font-weight: 700; }
.tenant { min-height: 48px; border-radius: 9px; }
.tenant-icon { font-family: 'Manrope', sans-serif; font-weight: 800; }
.user-row { min-width: 0; gap: 9px; padding: 12px 3px 9px; }
.user-row .user-identity { min-width: 0; flex: 1; }
.user-row .user-identity b { overflow: hidden; max-width: 100%; color: #f4f8f6; text-overflow: ellipsis; white-space: nowrap; }
.user-row .user-identity small { color: #aabbb4; }
.sidebar .sidebar-session-link { min-height: 38px; color: #c5d1cc; }
.sidebar-overlay { display: none; }
.main-area { background: var(--canvas); }
.topbar {
  min-height: 64px;
  border-bottom-color: #e5ebe8;
  background: #ffffffed;
  box-shadow: 0 2px 10px #19362d06;
  backdrop-filter: blur(12px);
}
.breadcrumb { color: #5b6b65; font-size: 12px; font-weight: 600; }
.environment { border-color: #dfe9e3; background: #f2f7f4; color: #426455; font-weight: 600; }
.environment i { background: #4eaa86; }
.content { max-width: 1380px; padding-top: 30px; padding-bottom: 34px; }
.welcome-row { align-items: center; margin-bottom: 24px; }
.welcome-row h1, .geo-heading h1 { color: #20312f; font: 800 clamp(26px, 3vw, 34px)/1.16 'Manrope', sans-serif; letter-spacing: -.045em; }
.welcome-row p { max-width: 70ch; line-height: 1.6; }
.eyebrow { font-size: 10px; letter-spacing: .08em; }

/* Panels, metrics and data tables */
.panel, .metric-card, .module-card {
  border-color: #e1e9e4;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 2px 8px #19362d05;
}
.panel { padding: clamp(16px, 2vw, 22px); }
.panel-heading { gap: 14px; }
.panel-heading h2, .section-heading h2 { color: #253833; font-size: 15px; }
.panel-heading p, .section-heading p { line-height: 1.55; }
.metric-card { min-height: 122px; padding: 17px; }
.metric-value { color: #243b34; }
.module-card { padding: 16px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.module-card:hover { transform: translateY(-1px); border-color: #bbd8cb; box-shadow: 0 8px 22px #19362d0c; }
.module-card p { height: auto; min-height: 30px; }
.coverage-table th { color: #53655e; background: #f3f7f5; }
.coverage-table th, .coverage-table td { padding: 12px 11px; }
.coverage-table tbody tr:hover { background: #f6faf8; }
.table-wrap { border: 1px solid #e3ebe6; border-radius: 9px; }
.pagination { border-top: 1px solid #e7ede9; }
.record-list { gap: 11px; }
.record-card { border-color: #e3ebe6; border-radius: 10px; box-shadow: 0 1px 4px #19362d04; }
.empty-state { border-radius: 9px; background: #f5f8f6; line-height: 1.55; }
.demo-notice { border-radius: 9px; border-color: #dcebe2; background: #eef5f1; font-size: 12px; }
.status-pill { line-height: 1.35; }
.privacy-card { max-width: 840px; }
.privacy-card > p { color: #52645d; font-size: 13px; line-height: 1.7; margin: 18px 0; }
.privacy-next-step { display: grid; gap: 5px; margin: 18px 0; padding: 15px 16px; border: 1px solid #e1e9e4; border-radius: 9px; background: #f5f8f6; color: #43564d; font-size: 12px; line-height: 1.55; }
.privacy-next-step strong { color: #243b34; font-size: 12px; }

/* Form controls and validation */
:is(.platform-form, .workspace-form-panel, .attendance-form, .citizen-change-form) label,
.geo-filter, .geo-search, .citizen-channel-preference {
  color: #34463f;
  font-size: 12px;
  font-weight: 700;
}
:is(.platform-form, .workspace-form-panel, .attendance-form, .citizen-change-form) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.geo-filter select, .geo-search input {
  min-height: 44px;
  border: 1px solid #cbd8d1;
  border-radius: 9px;
  background: #fff;
  color: #20312f;
  padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
:is(.platform-form, .workspace-form-panel, .attendance-form, .citizen-change-form) :is(input, select, textarea):hover,
.geo-search input:hover { border-color: #9eb5a9; }
:is(.platform-form, .workspace-form-panel, .attendance-form, .citizen-change-form) :is(input, select, textarea):focus,
.geo-filter select:focus, .geo-search input:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 3px #176b5b1c;
}
:is(.platform-form, .workspace-form-panel, .attendance-form, .citizen-change-form) :is(input, select, textarea)[aria-invalid="true"],
:is(.platform-form, .workspace-form-panel, .attendance-form, .citizen-change-form) :is(.input-validation-error) {
  border-color: var(--danger);
  background: #fff9f8;
}
.form-error, .login-validation-summary:not(:empty), .validation-summary-errors {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #f0c9c4;
  border-radius: 10px;
  background: #fff4f2;
  color: #842f29;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.form-error::before, .login-validation-summary:not(:empty)::before, .validation-summary-errors::before {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: #f9ded9;
  color: #842f29;
  content: "!";
  font-weight: 800;
}
.login-validation-summary.validation-summary-valid { display: none; }
.field-validation-error, .login-field-error { color: #a0342d; font-size: 12px; }
.small-note { line-height: 1.6; }

/* Native assessment dialog and SweetAlert confirmations */
.modal-backdrop {
  z-index: 1050;
  padding: clamp(12px, 3vw, 28px);
  background: #10221dcc;
  backdrop-filter: blur(5px);
}
.modal-backdrop[hidden] { display: none !important; }
.modal {
  display: flex;
  width: min(100%, 600px);
  max-height: min(90vh, 820px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce6e0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 80px #10221d40;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e7ede9;
  background: #f5f8f6;
}
.modal-title { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }
.modal-symbol { flex: 0 0 38px; }
.modal-header h2 { margin: 0; color: #20312f; font: 800 18px/1.3 'Manrope', sans-serif; }
.modal-header p { margin: 5px 0 0; color: #687773; font-size: 12px; line-height: 1.5; }
.modal-close { flex: 0 0 auto; border-radius: 8px; }
.modal-body { overflow-y: auto; padding: 20px 24px; }
.modal-body form { display: grid; gap: 11px; }
.modal label { display: grid; gap: 7px; margin: 0; color: #354940; font-size: 12px; font-weight: 700; }
.modal :is(input:not([type="hidden"]), select, textarea) {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd8d1;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}
.modal textarea { min-height: 90px; resize: vertical; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin: 4px -24px -20px;
  padding: 16px 24px;
  border-top: 1px solid #e7ede9;
  background: #f8faf9;
}
.modal-actions .button { min-width: 116px; }
.assessment-modal { padding: 0; }
.assessment-modal .small-note { margin: 0; }
.assessment-modal .form-error { margin-top: 2px; }
.swal2-container { z-index: 11000 !important; padding: 16px !important; backdrop-filter: blur(4px); }
.swal2-popup {
  width: min(100%, 460px) !important;
  border: 1px solid #e0e9e4 !important;
  border-radius: 18px !important;
  padding: 28px !important;
  background: #fff !important;
  box-shadow: 0 24px 80px #10221d30 !important;
  font-family: 'DM Sans', sans-serif !important;
}
.swal2-title { color: #20312f !important; font: 800 21px/1.25 'Manrope', sans-serif !important; letter-spacing: -.035em !important; }
.swal2-html-container { color: #687773 !important; font-size: 14px !important; line-height: 1.6 !important; }
.swal2-actions { gap: 9px !important; margin-top: 22px !important; }
.swal2-styled { min-height: 42px !important; border-radius: 9px !important; padding: 10px 18px !important; font: 700 13px 'DM Sans', sans-serif !important; box-shadow: none !important; }
.swal2-styled.swal2-confirm { background: var(--green) !important; }
.swal2-styled.swal2-confirm:hover { background: var(--green-dark) !important; }
.swal2-styled.swal2-cancel { border: 1px solid #d7e1db !important; background: #f4f7f5 !important; color: #34463f !important; }
.swal2-icon { margin-top: 0 !important; }
.swal2-validation-message { border-radius: 8px !important; background: #fff4f2 !important; color: #842f29 !important; }
.swal2-toast { border-radius: 12px !important; }

/* Standalone employee and citizen pages keep the same municipal design language */
.attendance-page, .citizen-portal { background: var(--canvas); }
.attendance-header, .citizen-portal-header { min-height: 64px; }
.attendance-intro h1, .citizen-portal-intro h1 { color: #20312f; }
.attendance-profile, .attendance-history, .attendance-leave,
.citizen-contact-panel, .citizen-preferences-panel { border-radius: 12px; box-shadow: 0 2px 8px #19362d05; }
.attendance-consent { border-radius: 10px; }
.attendance-form :focus-visible, .citizen-portal :focus-visible { outline-offset: 2px; }
.login-card, .session-card { border-color: #dfe8e3; border-radius: 18px; box-shadow: 0 24px 64px #19362d10; }
.session-table-wrap { border-radius: 10px; }
.session-table tbody tr:hover { background: #f6faf8; }
.error-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--canvas); }
.error-card { width: min(100%, 560px); padding: clamp(24px, 5vw, 40px); }
.error-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #fbe9e6; color: var(--danger); font: 800 24px 'Manrope', sans-serif; }
.error-card .eyebrow { margin: 22px 0 8px; }
.error-card h1 { margin: 0; color: var(--ink); font: 800 clamp(24px, 5vw, 30px)/1.2 'Manrope', sans-serif; letter-spacing: -.04em; }
.error-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.error-request { margin-top: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8f6; font-size: 12px; }
.error-request code { display: block; margin-top: 5px; color: #425d52; overflow-wrap: anywhere; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
body.modal-open { overflow: hidden; }

/* Mobile navigation and single-column workflows */
@media (max-width: 760px) {
  body.nav-open { overflow: hidden; }
  .sidebar-overlay:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: block;
    border: 0;
    background: #10221d75;
    backdrop-filter: blur(2px);
  }
  .sidebar { z-index: 5; width: min(86vw, 300px); padding: 18px 14px 14px; }
  .sidebar.sidebar-open { box-shadow: 18px 0 45px #10221d40; }
  .topbar { min-height: 58px; }
  .content { padding: 22px 14px 30px; }
  .welcome-row h1 { font-size: clamp(24px, 7vw, 30px); }
  .panel { padding: 15px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading > :last-child { max-width: 100%; }
  .form-error { overflow-wrap: anywhere; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .button { flex: 1; }
  .swal2-popup { padding: 23px 19px !important; }
  .attendance-content, .citizen-portal-content { gap: 12px; }
}
@media (max-width: 480px) {
  .top-actions { gap: 8px; }
  .top-actions .button { min-height: 40px; padding-inline: 10px; }
  .metric-value { font-size: 22px; }
  .coverage-table { min-width: 760px; }
  .geo-stat-grid > div { min-width: 0; padding-inline: 8px; }
  .session-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .session-actions .login-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Identity security pages */
.two-factor-page { padding-bottom: 42px; }
.two-factor-page .welcome-row { align-items: center; }
.two-factor-page .welcome-row > div:first-child { max-width: 680px; }
.security-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  padding: 12px 14px;
  border: 1px solid #cfe3d5;
  border-radius: 12px;
  background: #f3faf5;
  color: #246744;
}
.security-status.is-disabled { border-color: #f1d8bd; background: #fff8f0; color: #9a5b1b; }
.security-status-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #d9f0df;
  font-weight: 800;
}
.security-status.is-disabled .security-status-icon { background: #ffe7c8; }
.security-status b, .security-status small { display: block; }
.security-status b { font-size: 12px; }
.security-status small { margin-top: 2px; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #648072; font-size: 11px; }
.two-factor-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.two-factor-main-panel, .security-summary-panel, .mfa-help-panel { padding: 22px; }
.panel-kicker { color: #6b8177; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.security-badge { padding: 7px 10px; border: 1px solid #cfe3d5; border-radius: 999px; background: #f2faf4; color: #277049; font-size: 11px; font-weight: 800; white-space: nowrap; }
.mfa-demo-key { display: flex; gap: 13px; margin: 22px 0; padding: 17px; border: 1px solid #b9dec3; border-radius: 12px; background: linear-gradient(135deg, #f2fbf4, #fbfefb); }
.mfa-demo-key-icon { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 10px; background: #d8f0df; color: #207144; font-size: 22px; font-weight: 800; }
.mfa-demo-key strong { color: #244438; font-size: 13px; }
.mfa-demo-key p { margin: 5px 0 11px; color: #587067; font-size: 12px; line-height: 1.55; }
.mfa-demo-key code { display: inline-block; padding: 8px 10px; border: 1px solid #cae3d1; border-radius: 7px; background: #fff; color: #1e6340; font: 800 14px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.mfa-info-box { display: flex; gap: 10px; margin: 22px 0; padding: 14px; border: 1px solid #dfe8e3; border-radius: 10px; background: #f7faf8; color: #5b7067; font-size: 12px; line-height: 1.5; }
.mfa-info-box span { display: grid; flex: 0 0 21px; height: 21px; place-items: center; border-radius: 50%; background: #dfeee4; color: #387051; font-weight: 800; }
.mfa-info-box p { margin: 0; }
.mfa-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mfa-steps li { display: flex; gap: 12px; padding: 15px 0; border-top: 1px solid #edf1ee; }
.mfa-steps li > span { display: grid; flex: 0 0 26px; height: 26px; place-items: center; border-radius: 50%; background: #edf6ef; color: #277049; font-size: 11px; font-weight: 800; }
.mfa-steps b, .mfa-steps small { display: block; }
.mfa-steps b { color: #2d4038; font-size: 13px; }
.mfa-steps small { margin-top: 3px; color: #71837b; font-size: 12px; }
.two-factor-side-column { display: grid; gap: 18px; }
.security-check-list { display: grid; gap: 16px; margin-top: 15px; }
.security-check-list > div { display: flex; gap: 10px; align-items: flex-start; }
.check-dot { display: grid; flex: 0 0 22px; height: 22px; place-items: center; border-radius: 50%; background: #e5f4e9; color: #237044; font-size: 12px; font-weight: 800; }
.security-check-list b, .security-check-list small { display: block; }
.security-check-list b { color: #344940; font-size: 12px; }
.security-check-list small { margin-top: 3px; color: #71837b; font-size: 11px; line-height: 1.4; }
.mfa-help-panel { background: #f3f8f5; }
.help-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #dceee3; color: #28724a; font-weight: 800; }
.mfa-help-panel h2 { margin: 15px 0 6px; color: #2b4037; font: 800 16px 'Manrope', sans-serif; }
.mfa-help-panel p { margin: 0 0 17px; color: #657970; font-size: 12px; line-height: 1.55; }
@media (max-width: 840px) {
  .two-factor-grid { grid-template-columns: 1fr; }
  .security-status { min-width: 0; }
}
@media (max-width: 560px) {
  .two-factor-page .welcome-row { align-items: stretch; }
  .security-status { width: 100%; }
  .two-factor-main-panel, .security-summary-panel, .mfa-help-panel { padding: 16px; }
  .mfa-demo-key { align-items: flex-start; flex-direction: column; }
  .mfa-demo-key code { font-size: 12px; letter-spacing: .08em; }
}
.mfa-login-page .login-aside-copy h1 { max-width: 470px; }
.mfa-login-card { max-width: 540px; }
.mfa-login-form { gap: 15px; }
.mfa-code-field { display: grid; gap: 8px; }
.mfa-code-field label { color: #30453b; font-size: 12px; font-weight: 800; }
.mfa-code-field input {
  min-height: 58px;
  border: 1px solid #c6d8cc;
  border-radius: 11px;
  padding: 10px 14px;
  background: #fbfefc;
  color: #1f4b35;
  font: 800 25px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .28em;
  text-align: center;
}
.mfa-code-field input:focus { border-color: #3d9b60; box-shadow: 0 0 0 4px #5ebd7824; outline: none; }
.mfa-code-field input[aria-invalid="true"] { border-color: #c86255; background: #fff9f8; }
.mfa-login-demo-help { margin-top: 22px; padding: 15px; border: 1px solid #cde4d3; border-radius: 11px; background: #f3faf5; }
.mfa-login-demo-help strong, .mfa-login-demo-help p, .mfa-login-demo-help small { display: block; }
.mfa-login-demo-help strong { color: #286b45; font-size: 12px; }
.mfa-login-demo-help p { margin: 5px 0 9px; color: #60766b; font-size: 12px; line-height: 1.45; }
.mfa-login-demo-help code { display: block; overflow-wrap: anywhere; padding: 9px 10px; border: 1px solid #cde4d3; border-radius: 7px; background: #fff; color: #1f6b40; font: 800 13px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; }
.mfa-login-demo-help small { margin-top: 9px; color: #6b7d73; font-size: 11px; line-height: 1.45; }
.module-data-table { width: 100%; min-width: 680px; border-collapse: collapse; color: #354940; font-size: 12px; }
.module-data-table th { padding: 11px 12px; border-bottom: 1px solid #dfe9e3; background: #f4f8f5; color: #5b7067; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.module-data-table td { padding: 12px; border-bottom: 1px solid #edf2ee; vertical-align: top; }
.module-data-table tbody tr:hover { background: #f7fbf8; }
.module-data-table td:first-child { color: #235d3d; font-weight: 800; }
/* Full responsive workspace safeguards */
html, body { max-width: 100%; overflow-x: hidden; }
.shell, .main-area, .content, .topbar, .welcome-row, .panel, .module-work-grid, .geo-layout { min-width: 0; }
.content { width: 100%; }
.topbar { gap: 14px; }
.breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.top-actions .button, .top-actions .environment { white-space: nowrap; }
.panel-heading > * { min-width: 0; }
.panel-heading p, .welcome-row p { overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.module-work-grid > *, .admin-grid > *, .geo-layout > *, .attendance-grid > *, .lower-grid > * { min-width: 0; }
@media (max-width: 1050px) {
  .sidebar { width: 224px; }
  .main-area { margin-left: 224px; }
  .topbar { padding-inline: 24px; }
  .content { padding-inline: 24px; }
  .module-work-grid { grid-template-columns: 1fr; }
  .geo-layout { grid-template-columns: minmax(0, 1fr); }
  .geo-record-panel { max-height: none; }
}
@media (max-width: 760px) {
  .sidebar { width: min(86vw, 300px); }
  .main-area { margin-left: 0; }
  .topbar { min-height: 60px; height: auto; padding: 12px 16px; align-items: flex-start; }
  .top-actions { gap: 7px; }
  .top-actions .button { min-height: 40px; padding-inline: 11px; }
  .content { padding: 22px 14px 30px; }
  .welcome-row { align-items: stretch; flex-direction: column; gap: 14px; }
  .welcome-row h1 { font-size: clamp(24px, 8vw, 32px); }
  .panel-heading { align-items: flex-start; flex-wrap: wrap; }
  .panel-heading > :last-child { max-width: 100%; }
  .form-row, .admin-grid, .module-work-grid, .geo-layout { grid-template-columns: 1fr; }
  .table-wrap { margin-inline: -2px; }
  .module-data-table { min-width: 650px; }
  .record-list { max-height: none; }
}
@media (max-width: 480px) {
  .breadcrumb { max-width: 52vw; }
  .top-actions .button { min-height: 38px; padding-inline: 9px; font-size: 11px; }
  .content { padding-inline: 12px; }
  .panel { padding: 15px; }
  .panel-heading h2 { font-size: 14px; }
  .module-data-table { min-width: 620px; }
  .geo-map { min-height: 320px; }
}
.workspace-list-panel { overflow: hidden; }
.workspace-list-panel .panel-heading { padding-bottom: 15px; border-bottom: 1px solid #edf2ef; }
.workspace-list-panel .search { margin-top: 14px; }
.workspace-list-panel .search input { min-height: 42px; border-radius: 10px; }
.workspace-list-panel .table-wrap { margin-top: 14px; border: 1px solid #e3ebe6; border-radius: 10px; background: #fff; }
.workspace-list-panel .module-data-table { min-width: 760px; }
.workspace-list-panel .module-data-table thead th { position: sticky; top: 0; z-index: 1; box-shadow: 0 1px 0 #dfe9e3; }
.workspace-list-panel .module-data-table tbody tr:nth-child(even) { background: #fbfdfc; }
.workspace-list-panel .module-data-table tbody tr:hover { background: #eef8f2; }
.workspace-form-panel { position: relative; }
.workspace-form-panel::before { position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 11px 0 0 11px; background: #5fc1a4; content: ""; }
.workspace-form-panel .panel-heading { padding-bottom: 13px; border-bottom: 1px solid #edf2ef; }
.workspace-form-panel form { padding-top: 2px; }
@media (max-width: 760px) {
  .workspace-list-panel .module-data-table { min-width: 760px; }
  .workspace-list-panel .table-wrap { margin-inline: -1px; }
}
.table-actions-cell { width: 1%; white-space: nowrap; text-align: right; }
.table-action-button { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: 12px; }
.table-status-cell { color: #176b5b; font-weight: 700; }
.swal-record-details { display: grid; gap: 8px; max-height: 55vh; overflow: auto; text-align: left; }
.swal-record-detail { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2ef; }
.swal-record-detail span { color: #74827f; font-size: 12px; }
.swal-record-detail strong { color: #20312f; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .table-actions-cell { text-align: left; }
  .swal-record-detail { grid-template-columns: 1fr; gap: 3px; }
}
.button.tertiary { border: 1px solid #c9ddd3; background: #f2f8f5; color: #176b5b; }
.button.tertiary:hover { border-color: #8ec8b2; background: #e6f4ed; }
