:root {
  --navy: #0c2461;
  --blue: #0693e3;
  --sky: #edf6fd;
  --ink: #151b2d;
  --muted: #667085;
  --line: #dde5ef;
  --red: #dd3333;
  --amber: #fcb900;
  --shadow: 0 12px 32px rgba(12, 36, 97, .09);
}

body {
  background: #f6f8fb;
}

.auth-screen {
  color: #151b2d;
  background:
    linear-gradient(180deg, rgba(12, 36, 97, .08), rgba(12, 36, 97, 0) 34%),
    #eef3f9;
}

.auth-screen .container {
  display: grid;
  align-items: start;
  max-width: 560px;
  padding-top: 56px;
}

.auth-screen .auth-card {
  max-width: none;
  margin: 0;
  padding: 32px;
  border: 1px solid #dce5ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 54px rgba(12, 36, 97, .13);
  color: #151b2d;
}

.auth-screen .domain-auth-logo {
  display: block;
  width: 100%;
  margin: 0 auto 28px;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

.auth-screen .domain-auth-logo:after {
  content: none;
}

.auth-screen .domain-auth-logo strong {
  display: inline-block;
  padding: 11px 15px;
  border-radius: 10px;
  background: #0c2461;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .2px;
  box-shadow: inset 0 -5px 0 #dd3333;
}

.auth-screen .auth-card h1 {
  color: #0c2461;
  font-size: 38px;
}

.auth-screen .auth-card p,
.auth-screen .auth-card .muted {
  color: #667085;
}

.auth-screen .auth-card a {
  color: #0c2461;
}

.auth-screen .eyebrow {
  color: #0693e3;
}

.auth-screen .form-stack {
  margin-top: 24px;
  gap: 14px;
}

.auth-screen .form-stack label {
  color: #344054;
  font-size: 13px;
  text-align: left;
}

.auth-screen .form-stack input {
  min-height: 54px;
  border: 1px solid #cbd8e6;
  border-radius: 14px;
  background: #fff;
  color: #151b2d;
  font-size: 17px;
  box-shadow: none;
}

.auth-screen .form-stack input::placeholder {
  color: #7b8796;
}

.auth-screen .form-stack input:focus {
  border-color: #0693e3;
  box-shadow: 0 0 0 3px rgba(6, 147, 227, .15);
}

.demo-ribbon {
  padding: 4px 12px;
  background: #dd3333;
  color: #fff;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.topbar {
  height: 62px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, .97);
  border-bottom: 3px solid #dd3333;
  box-shadow: 0 8px 22px rgba(12, 36, 97, .08);
}

.brand {
  gap: 9px;
}

.brandmark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0c2461;
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 -4px 0 #dd3333;
}

.brand strong {
  color: #0c2461;
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  color: #667085;
  font-size: 10px;
  line-height: 1.2;
}

.nav-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border-color: #d7deea;
}

.nav-toggle span {
  background: #0c2461;
}

.topbar nav[data-nav-menu] {
  top: 61px;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(12, 36, 97, .14);
}

.topbar nav[data-nav-menu] > a,
.topbar nav[data-nav-menu] .linkbtn {
  padding: 10px 12px;
  color: #0c2461;
}

.topbar nav[data-nav-menu] > a:hover,
.topbar nav[data-nav-menu] .linkbtn:hover {
  background: #edf6fd;
}

.btn.primary {
  background: #dd3333;
  border-color: #dd3333;
}

.btn.primary:hover {
  background: #cc1400;
  border-color: #cc1400;
}

.btn.google {
  min-height: 54px;
  border: 1px solid #d7deea;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(12, 36, 97, .08);
}

.auth-domain {
  width: fit-content;
  margin: -52px auto 24px;
  padding: 9px 14px;
  border: 1px solid rgba(12, 36, 97, .12);
  border-radius: 999px;
  background: #0c2461;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .4px;
}

.auth-screen .divider {
  color: #667085;
}

.auth-screen .divider:before,
.auth-screen .divider:after {
  background: #dce5ef;
}

.auth-screen .btn.primary {
  min-height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, #dd3333, #cc1400);
  box-shadow: 0 14px 26px rgba(221, 51, 51, .22);
  font-size: 18px;
}

.eyebrow,
.text-link {
  color: #0693e3;
}

.phone-preview {
  background: linear-gradient(155deg, #0c2461, #0693e3);
}

.trust-row span,
.rule-tags span,
.channel-pills span {
  background: #edf6fd;
  border-color: #d7e8f6;
  color: #0c2461;
}

.bottom-nav .active {
  color: #0c2461;
}

.bottom-nav .active span {
  background: #0c2461;
  box-shadow: 0 4px 0 #dd3333;
}

.zone-editor textarea {
  width: 100%;
  min-height: 124px;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.zone-editor textarea:focus {
  border-color: #0693e3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 147, 227, .15);
}

.zone-editor .geometry-help {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}

.zone-create-form {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #cfe0f4;
  border-radius: 16px;
  background: #f8fbff;
}

.zone-create-details {
  margin: 8px 0 20px;
}

.zone-create-details > summary,
.user-create-details > summary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid #dd3333;
  border-radius: 12px;
  background: #dd3333;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 12px 26px rgba(221, 51, 51, .18);
}

.zone-create-details > summary::-webkit-details-marker,
.user-create-details > summary::-webkit-details-marker {
  display: none;
}

.zone-create-details[open] > summary,
.user-create-details[open] > summary {
  background: #0c2461;
  border-color: #0c2461;
  box-shadow: inset 0 -4px 0 #dd3333;
}

.zone-create-panel,
.user-create-panel {
  margin-top: 14px;
}

.user-create-details {
  margin: 8px 0 20px;
}

.zone-create-primary {
  grid-template-columns: .55fr .55fr 1.2fr .65fr;
}

.zone-create-tariff {
  grid-template-columns: .6fr .6fr .6fr .75fr;
}

.zone-create-text {
  grid-template-columns: 1fr 1fr;
}

.zone-create-flags {
  grid-template-columns: .65fr .55fr repeat(4, auto) auto;
  align-items: center;
}

.zone-create-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
}

.zone-create-form input,
.zone-create-form select,
.zone-editor input,
.zone-editor select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
}

.zone-map-editor {
  border: 1px solid #d7e3f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.zone-map-canvas {
  width: 100%;
  height: 230px;
  background: #edf6fd;
}

.zone-map-canvas .leaflet-control-attribution {
  font-size: 10px;
}

.zone-map-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 8px;
  border-top: 1px solid #d7e3f0;
  background: #fbfdff;
}

.zone-map-tools .btn {
  min-height: 36px;
  padding: 8px 10px;
}

.zone-point-marker {
  background: transparent;
  border: 0;
}

.zone-point-marker span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(12, 36, 97, .28);
}

.admin-user-head {
  align-items: center;
}

.admin-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.admin-search input,
.user-create input,
.user-create select,
.user-admin-table input,
.user-admin-table select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
}

.admin-search input {
  width: min(340px, 48vw);
}

.user-create {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .75fr 1fr 1fr .55fr 1fr .7fr auto;
  gap: 8px;
  align-items: center;
  margin: 14px 0 18px;
}

.user-create .checkline,
.user-admin-table .checkline {
  margin: 0;
}

.user-admin-table {
  min-width: 980px;
}

.user-admin-table td {
  vertical-align: top;
}

.user-admin-table td:first-child small {
  display: block;
  margin-top: 5px;
}

.status-toggle {
  gap: 8px !important;
  white-space: nowrap;
}

.table-actions,
.compact-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.table-actions .btn {
  padding: 9px 12px;
  white-space: nowrap;
}

.btn.danger-link {
  border-color: #f1c4c4;
  background: #fff7f7;
  color: #b42318;
}

.admin-client-head .actions {
  margin-top: 0;
}

.admin-client-summary {
  grid-template-columns: repeat(4, 1fr);
}

.admin-account-form {
  margin-top: 12px;
}

.admin-account-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
}

.admin-account-form input,
.admin-account-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
}

.admin-account-actions {
  grid-template-columns: 1fr auto auto;
}

.admin-detail-create {
  grid-template-columns: 1fr .55fr 1fr auto;
}

.admin-client-vehicles {
  margin-top: 14px;
}

.admin-detail-table {
  min-width: 760px;
}

.client-permit-create {
  align-items: stretch;
}

.admin-active-grid {
  margin: 14px 0;
}

.profile-summary.four {
  grid-template-columns: repeat(4, 1fr);
}

.permit-request-shell {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
}

.permit-request-shell h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.permit-request-form {
  padding: 14px;
  border: 1px solid #cfe0f4;
  border-radius: 16px;
  background: #f8fbff;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.request-card.approved {
  border-color: #cfe5d7;
  background: #f0faf4;
}

.request-card.rejected {
  border-color: #ead2d2;
  background: #fff7f7;
}

.request-card.in_review {
  border-color: #d7e8f6;
  background: #f2f8ff;
}

.request-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.request-card-head strong,
.request-card-head span,
.request-card small,
.admin-request-table small {
  display: block;
}

.admin-request-table {
  min-width: 1040px;
}

.admin-request-table td {
  vertical-align: top;
}

.admin-request-actions,
.request-action-form {
  display: grid;
  gap: 8px;
}

.request-action-form {
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) auto;
  align-items: center;
}

.request-action-form.reject {
  grid-template-columns: 1fr auto;
}

.request-action-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
}

.status.in_review {
  background: #eaf3ff;
  color: #0c2461;
}

.status.pending {
  background: #fff4df;
  color: #a76100;
}

.status.rejected {
  background: #fdeeee;
  color: #b42318;
}

.status.approved {
  background: #e9f7ef;
  color: #107c41;
}

.integration-head .actions {
  margin-top: 0;
}

.integration-stats {
  grid-template-columns: repeat(7, 1fr);
}

.integration-contract code,
.integration-contract pre,
.integration-table pre {
  display: block;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 10px;
  background: #0c2461;
  color: #eaf6ff;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contract-grid .wide {
  grid-column: 1 / -1;
}

.integration-provider-create,
.sms-test-form,
.outbox-create {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.integration-provider-create {
  grid-template-columns: 1fr 1.2fr .65fr .9fr .7fr 1fr 1fr 1.2fr 1fr .9fr .9fr repeat(5, auto) auto auto;
}

.sms-test-form {
  grid-template-columns: .7fr 1fr .5fr 1fr 1.1fr auto;
}

.outbox-create {
  grid-template-columns: .9fr .65fr .95fr 1fr .8fr .45fr .9fr 1.4fr auto;
  align-items: stretch;
}

.integration-provider-create input,
.integration-provider-create select,
.sms-test-form input,
.sms-test-form select,
.outbox-create input,
.outbox-create select,
.outbox-create textarea,
.integration-provider-card input,
.integration-provider-card select,
.outbox-status-form input,
.outbox-status-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
}

.outbox-create textarea {
  min-height: 42px;
  resize: vertical;
}

.integration-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 14px;
}

.integration-provider-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  background: #fbfdff;
}

.provider-card-head,
.capability-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.provider-card-head strong,
.provider-card-head small,
.integration-table small {
  display: block;
}

.capability-row {
  justify-content: flex-start;
}

.integration-table {
  min-width: 1180px;
}

.integration-table td {
  vertical-align: top;
}

.outbox-status-form {
  display: grid;
  grid-template-columns: .9fr 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 320px;
}

.integration-ledgers > .panel {
  min-width: 0;
}

@media (max-width: 1040px) {
  .user-create {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-detail-create {
    grid-template-columns: 1fr 1fr;
  }

  .integration-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .integration-provider-create,
  .sms-test-form,
  .outbox-create,
  .zone-create-primary,
  .zone-create-tariff,
  .zone-create-text,
  .zone-create-flags {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .admin-user-head,
  .admin-search {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-search input {
    width: 100%;
  }

  .user-create {
    grid-template-columns: 1fr;
  }

  .table-actions,
  .compact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .table-actions .btn,
  .compact-actions .btn {
    width: 100%;
  }

  .admin-client-summary {
    grid-template-columns: 1fr 1fr;
  }

  .profile-summary.four {
    grid-template-columns: 1fr 1fr;
  }

  .request-action-form,
  .request-action-form.reject {
    grid-template-columns: 1fr;
  }

  .contract-grid,
  .integration-provider-create,
  .sms-test-form,
  .outbox-create,
  .outbox-status-form,
  .zone-create-primary,
  .zone-create-tariff,
  .zone-create-text,
  .zone-create-flags {
    grid-template-columns: 1fr;
  }

  .integration-provider-grid {
    grid-template-columns: 1fr;
  }
}

body.citizen-shell {
  background: #f6f8fb;
}

.citizen-shell .demo-ribbon {
  position: sticky;
  top: 0;
  z-index: 60;
}

.citizen-shell .topbar {
  height: 82px;
  align-items: center;
  padding-top: 0;
  background: linear-gradient(90deg, #0c2461, #123a88 68%, #dd3333);
  border-bottom: 0;
  box-shadow: 0 10px 26px rgba(12, 36, 97, .18);
}

.citizen-shell .topbar:after {
  display: none;
}

.citizen-shell .brandmark {
  background: #fff;
  color: #0c2461;
  box-shadow: inset 0 -4px 0 #dd3333;
}

.citizen-shell .brand strong,
.citizen-shell .brand small,
.citizen-shell .brand,
.citizen-shell .topbar a {
  color: #fff;
}

.citizen-shell .brand small {
  opacity: .82;
}

.citizen-shell .nav-toggle {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .32);
}

.citizen-shell .nav-toggle span {
  background: #fff;
}

.citizen-shell .topbar nav[data-nav-menu] {
  top: 82px;
}

.citizen-shell .container {
  margin-top: 14px;
  padding-bottom: 104px;
}

.citizen-shell .page-head {
  margin-bottom: 12px;
}

.citizen-shell .app-title h1,
.citizen-shell .page-head h1 {
  font-size: 27px;
}

.citizen-shell .panel {
  margin-top: 12px;
  padding: 18px;
}

.citizen-shell .btn.primary {
  background: linear-gradient(90deg, #dd3333, #cc1400);
  box-shadow: 0 12px 26px rgba(221, 51, 51, .2);
}

.citizen-shell .zone-big {
  background: #0c2461;
}

@media (max-width: 780px) {
  .topbar {
    height: 58px;
    padding: 0 14px;
  }

  .topbar nav[data-nav-menu] {
    top: 58px;
  }

  .brand small {
    display: none;
  }

  .citizen-shell .topbar {
    height: 72px;
  }

  .citizen-shell .topbar nav[data-nav-menu] {
    top: 72px;
  }

  .citizen-shell .container {
    margin-top: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 520px) {
  .citizen-shell .topbar {
    height: 68px;
    padding-top: 0;
  }

  .citizen-shell .topbar nav[data-nav-menu] {
    top: 68px;
  }

  .brand strong,
  .citizen-shell .brand strong {
    font-size: 15px;
  }
}

.admin-subnav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: -10px 0 22px;
  padding: 8px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(12, 36, 97, .06);
}

.admin-subnav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #0c2461;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.admin-subnav a:hover,
.admin-subnav a.active {
  background: #edf6fd;
  box-shadow: inset 0 -3px 0 #dd3333;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.admin-module-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: #fff;
  color: #151b2d;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(12, 36, 97, .07);
}

.admin-module-card span,
.admin-module-card strong,
.admin-module-card small {
  display: block;
}

.admin-module-card span {
  color: #0c2461;
  font-weight: 900;
}

.admin-module-card strong {
  margin: 10px 0 4px;
  font-size: 34px;
  line-height: 1;
}

.admin-module-card small {
  color: #667085;
  line-height: 1.35;
}

.admin-module-card:hover {
  border-color: #b9d7f2;
  transform: translateY(-1px);
}

.admin-system-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.admin-filter-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.admin-filter-form input,
.admin-filter-form select,
.zone-create-form textarea,
.zone-detail-form textarea,
.zone-detail-form input,
.zone-detail-form select,
.admin-permit-filter input,
.admin-permit-filter select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
}

.admin-filter-form input {
  width: min(340px, 44vw);
}

.zone-create-form textarea,
.zone-detail-form textarea {
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination .disabled {
  pointer-events: none;
  opacity: .45;
}

.admin-zone-table {
  min-width: 1040px;
}

.admin-zone-table td {
  vertical-align: top;
}

.zone-list-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.zone-list-title strong,
.zone-list-title small,
.admin-zone-table small {
  display: block;
}

.zone-list-title small,
.admin-zone-table small {
  margin-top: 3px;
  color: #667085;
  line-height: 1.35;
}

.zone-detail-panel {
  max-width: 980px;
}

.zone-detail-head {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.zone-detail-head img {
  width: 104px;
  height: 104px;
}

.zone-detail-head h2 {
  margin: 5px 0;
}

.zone-detail-form .form-row {
  align-items: center;
}

.zone-detail-flags {
  grid-template-columns: .8fr repeat(4, auto) auto;
}

.danger-zone {
  max-width: 980px;
  border-color: #f1c4c4;
  background: #fffafa;
}

.delete-blockers {
  padding: 14px;
  border: 1px solid #f1c4c4;
  border-radius: 12px;
  background: #fff7f7;
  color: #7a271a;
}

.delete-blockers ul {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.delete-zone-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.delete-zone-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
}

.delete-zone-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid #f1c4c4;
  border-radius: 10px;
  padding: 11px;
  background: #fff;
  color: #151b2d;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-overview-grid .panel {
  min-width: 0;
}

@media (max-width: 1040px) {
  .zone-detail-flags {
    grid-template-columns: 1fr 1fr;
  }

  .admin-system-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .admin-subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-top: -2px;
    padding-bottom: 10px;
  }

  .admin-subnav a {
    white-space: nowrap;
  }

  .admin-list-head,
  .admin-filter-form,
  .pagination-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-form input,
  .admin-filter-form select,
  .admin-filter-form .btn,
  .pagination .btn,
  .zone-create-details > summary,
  .user-create-details > summary,
  .delete-zone-form .btn {
    width: 100%;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .zone-detail-head {
    grid-template-columns: 72px 1fr;
  }

  .zone-detail-head img {
    width: 72px;
    height: 72px;
  }

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

  .admin-account-actions {
    grid-template-columns: 1fr;
  }
}

.permit-type-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.permit-type-card {
  min-height: 110px;
  padding: 15px;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: #fff;
  color: #151b2d;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(12, 36, 97, .06);
}

.permit-type-card span,
.permit-type-card strong,
.permit-type-card small,
.permit-type-label {
  display: block;
}

.permit-type-card span {
  color: #0c2461;
  font-size: 13px;
  font-weight: 900;
}

.permit-type-card strong {
  margin: 8px 0 3px;
  font-size: 30px;
  line-height: 1;
}

.permit-type-card small {
  color: #667085;
}

.permit-type-card.active,
.permit-type-card:hover {
  border-color: #b9d7f2;
  background: #edf6fd;
  box-shadow: inset 0 -4px 0 #dd3333;
}

.permit-create-details {
  margin: 8px 0 20px;
}

.permit-create-details > summary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid #dd3333;
  border-radius: 12px;
  background: #dd3333;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 12px 26px rgba(221, 51, 51, .18);
}

.permit-create-details > summary::-webkit-details-marker {
  display: none;
}

.permit-create-details[open] > summary {
  background: #0c2461;
  border-color: #0c2461;
  box-shadow: inset 0 -4px 0 #dd3333;
}

.permit-create-panel {
  margin-top: 14px;
}

.permit-type-label {
  color: #0c2461;
  font-weight: 900;
}

.request-status-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.request-status-card {
  min-height: 104px;
  padding: 15px;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: #fff;
  color: #151b2d;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(12, 36, 97, .06);
}

.request-status-card span,
.request-status-card strong,
.request-status-card small {
  display: block;
}

.request-status-card span {
  color: #0c2461;
  font-size: 13px;
  font-weight: 900;
}

.request-status-card strong {
  min-height: 30px;
  margin: 8px 0 3px;
  font-size: 30px;
  line-height: 1;
}

.request-status-card small {
  color: #667085;
}

.request-status-card.active,
.request-status-card:hover {
  border-color: #b9d7f2;
  background: #edf6fd;
  box-shadow: inset 0 -4px 0 #dd3333;
}

.request-detail-grid {
  align-items: start;
}

.request-detail-card,
.request-document-card,
.request-decision-panel {
  min-width: 0;
}

.detail-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 9px 14px;
  margin: 12px 0 0;
}

.detail-list dt {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-preview {
  width: 100%;
  min-height: 520px;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  background: #f6f8fb;
}

.document-preview.image {
  height: auto;
  min-height: 0;
  max-height: 620px;
  object-fit: contain;
}

.request-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.request-decision-grid form {
  padding: 14px;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: #fbfdff;
}

.request-decision-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: #151b2d;
}

@media (max-width: 780px) {
  .permit-type-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .request-status-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .permit-create-details > summary {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .permit-type-tabs {
    grid-template-columns: 1fr;
  }

  .request-status-tabs,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .document-preview {
    min-height: 360px;
  }
}
