:root {
    --color-bg: #f4f7fb;
    --color-surface: #ffffff;
    --color-border: #d8e2eb;
    --color-text: #172331;
    --color-muted: #617084;
    --color-primary: #15735f;
    --color-primary-dark: #0b4d40;
    --color-accent: #f07828;
    --color-info: #2563a8;
    --shadow-soft: 0 22px 70px rgba(14, 39, 55, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #17212b;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: #155e75;
    text-decoration: none;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c9d2dc;
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #83c5be;
    outline-offset: 2px;
}

label {
    font-weight: 700;
    font-size: 14px;
}

.field-label {
    font-size: 14px;
    font-weight: 700;
}

.public-page {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(245, 248, 252, 0.96), rgba(245, 248, 252, 0.9)),
        repeating-linear-gradient(0deg, rgba(21, 115, 95, 0.06) 0, rgba(21, 115, 95, 0.06) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, rgba(37, 99, 168, 0.06) 0, rgba(37, 99, 168, 0.06) 1px, transparent 1px, transparent 32px);
}

.public-shell {
    min-height: 100vh;
}

.login-shell {
    width: min(420px, calc(100% - 32px));
}

.login-card,
.panel-empty,
.section-block,
.dashboard-grid > div,
.detail-grid,
.form-grid,
.form-stack,
.filters,
.table-wrap {
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
}

.login-card {
    padding: 28px;
    box-shadow: 0 18px 40px rgba(16, 42, 67, 0.14);
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-heading img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.login-heading strong {
    display: block;
    font-size: 32px;
}

.login-heading span {
    display: block;
    margin-top: 4px;
    color: #52606d;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0.82), rgba(244, 247, 251, 1)),
        linear-gradient(90deg, rgba(21, 115, 95, 0.08), transparent 38%);
    transition: grid-template-columns 0.2s ease;
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    min-height: 100vh;
    width: 268px;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(9, 54, 48, 0.98), rgba(12, 69, 81, 0.98)),
        linear-gradient(135deg, rgba(240, 120, 40, 0.18), transparent 34%);
    color: #fff;
    padding: 18px 14px;
    box-shadow: 16px 0 44px rgba(15, 35, 49, 0.13);
    transition: width 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.18;
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.brand img {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.brand div,
.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 24px;
    line-height: 1;
}

.brand span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.nav {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 44px;
    color: rgba(240, 244, 248, 0.92);
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    overflow: hidden;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav a::before {
    content: attr(data-initial);
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #f7b267;
    font-size: 12px;
}

.nav a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    transform: translateX(2px);
}

.nav a.is-active::after {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 3px;
    border-radius: 999px;
    background: #f07828;
}

.content-shell {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(216, 226, 235, 0.82);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 26px rgba(15, 35, 49, 0.06);
}

.topbar-left,
.topbar-session,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-session {
    justify-content: flex-end;
    flex: 0 1 auto;
}

.topbar-title,
.topbar-user > div:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.topbar-title span,
.topbar-user span {
    margin: 0;
    color: #617084;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.topbar-title strong,
.topbar-user strong {
    color: #172331;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.topbar-title strong {
    font-size: 18px;
}

.topbar-user strong {
    font-size: 14px;
}

.user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid #cfe2dc;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0b4d40;
    font-weight: 900;
}

.topbar form {
    flex: 0 0 auto;
    margin: 0;
}

.menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #c9d2dc;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #17212b;
}

.sidebar-collapse {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    cursor: pointer;
}

.sidebar-collapse span {
    width: 18px;
    height: 18px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 24;
    background: rgba(15, 23, 42, 0.42);
}

.sidebar-backdrop[hidden] {
    display: none;
}

.back-to-top {
    position: fixed;
    right: clamp(14px, 2vw, 24px);
    bottom: clamp(14px, 2vw, 24px);
    z-index: 35;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: linear-gradient(135deg, #0b4d40, #15735f);
    box-shadow: 0 14px 34px rgba(15, 35, 49, 0.22);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.back-to-top img {
    width: 24px;
    height: 24px;
    display: block;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    box-shadow: 0 18px 42px rgba(15, 35, 49, 0.28);
    transform: translateY(-2px);
}

.back-to-top[hidden] {
    display: none;
}

.content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 24px;
    overflow-x: clip;
}

.sidebar-collapsed .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar {
    width: 82px;
    padding-inline: 12px;
}

.sidebar-collapsed .brand {
    justify-content: center;
    padding-inline: 8px;
}

.sidebar-collapsed .brand img {
    width: 44px;
    height: 44px;
}

.sidebar-collapsed .brand div,
.sidebar-collapsed .nav a span {
    display: none;
}

.sidebar-collapsed .nav a {
    justify-content: center;
    padding-inline: 8px;
}

.sidebar-collapsed .nav a::before {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}

.sidebar-collapsed .nav a:hover,
.sidebar-collapsed .nav a.is-active {
    transform: none;
}

.sidebar-collapsed .sidebar-collapse span {
    transform: rotate(135deg);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.page-header h1 {
    margin: 4px 0 0;
    font-size: 28px;
}

.breadcrumb {
    color: #627d98;
    font-size: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
}

.button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.button-primary {
    background: #007c70;
    color: #fff;
}

.button-secondary {
    background: #245f73;
    color: #fff;
}

.button-light {
    background: #fff;
    color: #1f2933;
    border-color: #c9d2dc;
}

.button-danger {
    background: #b42318;
    color: #fff;
}

.button-warning {
    background: #b45309;
    color: #fff;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid;
}

.alert-success {
    color: #05603a;
    background: #ecfdf3;
    border-color: #a6f4c5;
}

.alert-error {
    color: #912018;
    background: #fef3f2;
    border-color: #fecdca;
}

.alert-warning {
    color: #93370d;
    background: #fffaeb;
    border-color: #fedf89;
}

.form-stack {
    display: grid;
    gap: 10px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 44px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent url("../icons/icon-password-eye.svg") center / 18px no-repeat;
    transform: translateY(-50%);
    cursor: pointer;
}

.eyebrow {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    min-height: 100vh;
    overflow: hidden;
}

.auth-recovery-shell {
    align-items: center;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.7fr);
    min-height: 100vh;
    padding: 38px;
}

.auth-recovery-intro {
    background:
        linear-gradient(135deg, rgba(7, 51, 43, 0.96) 0%, rgba(10, 71, 81, 0.94) 54%, rgba(36, 68, 105, 0.96) 100%),
        url("../img/logo-cedec.png") center 58% / 330px auto no-repeat;
    border-radius: 8px;
    color: #fff;
    display: grid;
    gap: 44px;
    min-height: 640px;
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.auth-recovery-intro::before,
.auth-hero::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    opacity: 0.2;
    position: absolute;
}

.auth-recovery-intro > *,
.auth-hero > * {
    position: relative;
    z-index: 1;
}

.auth-recovery-intro .eyebrow,
.auth-hero-copy .eyebrow {
    color: #f7b267;
}

.auth-recovery-intro h1 {
    font-size: 2.7rem;
    line-height: 1.08;
    margin: 0 0 16px;
}

.auth-recovery-intro p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    margin: 0;
    max-width: 640px;
}

.auth-recovery-steps {
    align-self: end;
    display: grid;
    gap: 10px;
}

.auth-recovery-steps span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 14px;
}

.auth-panel {
    align-self: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 226, 235, 0.9);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 22px;
    justify-self: center;
    margin: 32px;
    max-width: 470px;
    min-width: 0;
    padding: 34px;
    position: relative;
    width: calc(100% - 64px);
}

.auth-panel.auth-recovery-card {
    margin: 0;
    width: 100%;
}

.auth-hero {
    background:
        linear-gradient(135deg, rgba(7, 51, 43, 0.96) 0%, rgba(10, 71, 81, 0.94) 52%, rgba(36, 68, 105, 0.96) 100%),
        url("../img/logo-cedec.png") center 42% / 360px auto no-repeat;
    color: #fff;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    padding: 38px;
    position: relative;
}

.auth-hero::after {
    background: linear-gradient(90deg, var(--color-accent), #f7b267, rgba(255, 255, 255, 0.72));
    bottom: 0;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
}

.auth-hero-brand {
    align-items: center;
    display: inline-flex;
    gap: 14px;
    font-weight: 800;
}

.auth-logo-mark {
    background: transparent;
    border-radius: 0;
    height: 56px;
    object-fit: contain;
    padding: 0;
    width: 124px;
}

.auth-hero-brand span {
    line-height: 1.18;
    max-width: 620px;
    overflow-wrap: break-word;
}

.auth-hero-copy {
    align-self: center;
    max-width: 660px;
}

.auth-hero-copy .eyebrow {
    margin-bottom: 12px;
}

.auth-hero-copy h1 {
    font-size: 3.2rem;
    line-height: 1.05;
    margin: 0 0 20px;
    max-width: 680px;
    overflow-wrap: break-word;
}

.auth-hero-copy p:last-child {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    margin: 0;
    max-width: 560px;
}

.auth-hero-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-hero-metrics div {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    min-height: 104px;
    padding: 16px;
}

.auth-hero-metrics strong,
.auth-hero-metrics span {
    display: block;
}

.auth-hero-metrics strong {
    color: #ffffff;
    font-size: 1.35rem;
}

.auth-hero-metrics span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    margin-top: 4px;
}

.auth-card-header {
    align-items: center;
    display: flex;
    gap: 16px;
}

.auth-card-header > div {
    min-width: 0;
}

.auth-logo-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    flex: 0 0 132px;
    height: 66px;
    padding: 0;
    width: 132px;
}

.auth-panel h1 {
    font-size: 1.58rem;
    line-height: 1.14;
    margin: 0;
    overflow-wrap: break-word;
}

.form-panel.auth-form {
    border: 0;
    display: grid;
    gap: 18px;
    max-width: none;
    min-width: 0;
    padding: 0;
}

.form-panel.auth-form label {
    color: var(--color-text);
    display: grid;
    gap: 8px;
    min-width: 0;
}

.form-panel.auth-form label span {
    color: #334155;
    font-size: 0.92rem;
}

.form-panel.auth-form input {
    background: #f8fbfd;
    border-color: #c9d7e3;
    border-radius: 8px;
    min-height: 52px;
    min-width: 0;
    padding: 13px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-panel.auth-form input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(21, 115, 95, 0.14);
    outline: 0;
}

.auth-form-links {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
}

.auth-form-links a,
.auth-card-footer a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-form-links a:hover,
.auth-form-links a:focus,
.auth-card-footer a:hover,
.auth-card-footer a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.password-input-shell {
    align-items: center;
    display: flex;
    min-width: 0;
    position: relative;
    width: 100%;
}

.form-panel .password-input-shell input,
.form-panel.auth-form .password-input-shell input {
    padding-right: 52px;
}

.password-toggle-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    min-height: 34px;
    padding: 0;
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
}

.password-eye-icon {
    display: block;
    height: 30px;
    object-fit: contain;
    width: 30px;
}

.password-toggle-button::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 3px;
    opacity: 0;
    position: absolute;
    transform: rotate(-42deg) scaleX(0.76);
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 31px;
}

.password-input-shell.is-password-visible .password-toggle-button::after {
    opacity: 1;
    transform: rotate(-42deg) scaleX(1);
}

.form-panel.auth-form button {
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), #0f5f86);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(21, 115, 95, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    min-height: 52px;
    min-width: 0;
    padding: 12px 18px;
}

.form-panel.auth-form .password-toggle-button {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #334155;
    height: 34px;
    min-height: 34px;
    padding: 0;
    width: 34px;
}

.form-panel.auth-form .password-toggle-button:hover,
.form-panel.auth-form .password-toggle-button:focus {
    background: transparent;
    box-shadow: none;
    filter: none;
    outline: 0;
}

.auth-card-footer {
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.84rem;
    gap: 8px 14px;
    justify-content: space-between;
    padding-top: 16px;
}

.auth-login-footer {
    align-items: flex-start;
    display: grid;
    gap: 7px;
    justify-content: stretch;
}

.auth-login-footer strong {
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.auth-login-footer span {
    color: #4d5f73;
    line-height: 1.45;
}

.auth-login-footer small {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.two-factor-shell {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 0.72fr);
}

.two-factor-verify-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.58fr);
}

.two-factor-intro {
    min-height: 720px;
}

.two-factor-card {
    max-width: 560px;
}

.two-factor-verify-card {
    max-width: 460px;
}

.two-factor-account,
.two-factor-downloads a,
.two-factor-qr-panel,
.two-factor-qr,
.two-factor-manual-key,
.two-factor-modal-card {
    border-radius: 8px;
}

.two-factor-account {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    margin: 0;
    padding: 12px 14px;
}

.two-factor-account strong {
    color: var(--color-primary-dark);
    overflow-wrap: anywhere;
}

.two-factor-downloads {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-factor-downloads a {
    background: #f8fafc;
    border: 1px solid rgba(15, 95, 134, 0.16);
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 13px;
    text-decoration: none;
}

.two-factor-downloads span {
    color: #0f5f86;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.two-factor-downloads strong,
.two-factor-qr-panel strong,
.two-factor-manual-key span {
    color: var(--color-primary-dark);
    font-weight: 900;
}

.two-factor-qr-panel {
    align-items: center;
    background: linear-gradient(135deg, rgba(239, 248, 246, 0.98), rgba(248, 251, 253, 0.98));
    border: 1px solid rgba(15, 95, 134, 0.16);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    min-width: 0;
    padding: 16px;
}

.two-factor-qr-panel p {
    color: var(--color-muted);
    margin: 4px 0 0;
}

.two-factor-qr {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 95, 134, 0.18);
    color: var(--color-muted);
    display: flex;
    justify-content: center;
    min-height: 210px;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    text-align: center;
}

.two-factor-qr svg {
    display: block;
    height: auto;
    max-width: 100%;
}

.two-factor-manual-key {
    background: #fff7ed;
    border: 1px solid rgba(240, 120, 40, 0.24);
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
}

.two-factor-manual-key code {
    background: #ffffff;
    border: 1px solid rgba(240, 120, 40, 0.22);
    border-radius: 8px;
    color: #713f12;
    display: block;
    font-size: 0.92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    padding: 10px;
}

.two-factor-manual-key button,
.two-factor-inline-button {
    background: #ffffff;
    border: 1px solid rgba(15, 95, 134, 0.18);
    border-radius: 8px;
    color: var(--color-primary-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    min-height: 42px;
    padding: 9px 12px;
}

.two-factor-inline-button {
    border-radius: 999px;
    font-size: 0.82rem;
    margin-top: 12px;
    min-height: 38px;
    padding: 8px 12px;
}

.two-factor-code-form input {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-align: center;
}

.two-factor-modal {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    overflow-y: auto;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 80;
}

.two-factor-modal[hidden] {
    display: none;
}

.two-factor-modal-backdrop {
    background: rgba(15, 23, 42, 0.66);
    inset: 0;
    position: fixed;
}

.two-factor-modal-card {
    background: #ffffff;
    border: 1px solid rgba(216, 226, 235, 0.95);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
    display: grid;
    gap: 18px;
    max-width: 520px;
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    position: relative;
    width: min(100%, 520px);
    z-index: 1;
}

.two-factor-modal-card-wide {
    max-width: 620px;
    width: min(100%, 620px);
}

.two-factor-modal-close {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-primary-dark);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
}

.two-factor-modal-heading span {
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.two-factor-modal-heading h2 {
    color: var(--color-text);
    font-size: 1.45rem;
    margin: 4px 44px 8px 0;
}

.two-factor-modal-heading p {
    color: var(--color-muted);
    margin: 0;
}

.two-factor-modal-qr {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 320px;
    padding: 16px;
}

.two-factor-modal-qr.is-large {
    min-height: 460px;
}

.two-factor-modal-qr svg {
    height: auto;
    max-width: 100%;
}

.two-factor-modal-link {
    color: var(--color-primary);
    font-weight: 900;
}

body.two-factor-modal-open {
    overflow: hidden;
}

.form-stack.narrow {
    max-width: 520px;
    padding: 20px;
}

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

.page-header-modern {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-left: 4px solid #007c70;
    border-radius: 8px;
    padding: 18px 20px;
}

.page-header-modern p {
    color: #52606d;
    margin: 6px 0 0;
    max-width: 760px;
}

.page-header-badge {
    background: #eef8f6;
    border: 1px solid rgba(0, 124, 112, 0.22);
    border-radius: 999px;
    color: #00695f;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 12px;
    text-transform: uppercase;
}

.decree-form-modern {
    gap: 18px;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    padding: 0;
}

.form-intro {
    align-items: center;
    background: #172331;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.form-intro div {
    display: grid;
    gap: 5px;
}

.form-intro span {
    color: #9ee8dc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.form-intro strong {
    font-size: 18px;
}

.form-intro p {
    align-items: center;
    color: #d8e6ef;
    display: flex;
    gap: 8px;
    margin: 0;
    max-width: 410px;
}

.required-dot {
    background: #f97316;
    border-radius: 999px;
    display: inline-flex;
    height: 9px;
    min-width: 9px;
    width: 9px;
}

.form-section {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    min-width: 0;
    padding: 18px;
}

.form-section > legend {
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.form-section-heading {
    align-items: flex-start;
    border-bottom: 1px solid #e4e7ec;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.form-section-heading div {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.form-section-heading span {
    align-items: center;
    background: #007c70;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    min-width: 34px;
}

.form-section-heading h2 {
    color: #172331;
    font-size: 18px;
    margin: 0;
    overflow-wrap: anywhere;
}

.form-section-heading p {
    color: #52606d;
    line-height: 1.45;
    margin: 0;
    max-width: 520px;
}

.decree-form-modern .field label,
.decree-form-modern .field-label {
    align-items: center;
    color: #172331;
    display: flex;
    font-weight: 800;
    gap: 8px;
    justify-content: space-between;
}

.decree-form-modern .field small {
    color: #627d98;
    line-height: 1.4;
}

.required-label,
.modern-field > span strong {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #c2410c;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 7px;
}

.field-highlight {
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 14px;
}

.decree-form-modern input[readonly],
.decree-form-modern input:disabled {
    background: #f8fafc;
    color: #52606d;
}

.location-section {
    border-color: #cbd8e3;
    position: relative;
}

.location-section::before {
    background: #007c70;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.location-grid {
    gap: 14px;
    grid-template-columns: minmax(260px, 1.1fr) minmax(240px, 0.9fr);
}

.location-primary-field {
    background: #f7fbfa;
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    padding: 14px;
}

.location-section .field {
    align-content: start;
}

.location-section .field label {
    color: #172331;
}

.location-section input,
.location-section select {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 46px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.location-section select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #007c70 50%),
        linear-gradient(135deg, #007c70 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    color: #172331;
    cursor: pointer;
    font-weight: 800;
    padding-right: 42px;
}

.location-section input:focus,
.location-section select:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.location-section [data-compdec-field] {
    background: #f8fafc;
    border-left: 4px solid #7aa7a0;
    color: #243447;
    cursor: default;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-section [data-compdec-field]:focus {
    border-left-color: #007c70;
}

.location-section .field small {
    color: #52606d;
}

.location-section .field.span-2 [data-compdec-field] {
    text-overflow: initial;
}

.standalone-field {
    display: grid;
    gap: 12px;
}

.form-actions-sticky {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    justify-content: flex-end;
    padding: 14px;
}

fieldset {
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 16px;
}

legend {
    padding: 0 8px;
    font-weight: 700;
}

textarea {
    width: 100%;
    border: 1px solid #c9d2dc;
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
}

.form-grid.inner {
    border: 0;
    padding: 0;
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.span-2 {
    grid-column: span 2;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-field input {
    width: auto;
    min-height: auto;
}

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

.decree-type-field {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
    padding: 14px 16px;
}

.decree-type-heading {
    display: grid;
    gap: 5px;
}

.decree-type-heading small {
    color: #627d98;
    line-height: 1.35;
    max-width: 520px;
    text-align: left;
}

.decree-type-options {
    background: #eef2f6;
    border: 1px solid #d8dee6;
    border-radius: 999px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 0;
    padding: 4px;
}

.segmented-option {
    min-width: 0;
}

.segmented-option input {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.segmented-option span {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #1f2933;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 40px;
    overflow-wrap: anywhere;
    padding: 9px 14px;
    text-align: center;
    transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.decree-type-options .segmented-option span {
    min-height: 42px;
}

.segmented-option input:checked + span {
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    color: #007c70;
}

.segmented-option input:focus-visible + span {
    outline: 3px solid #83c5be;
    outline-offset: 2px;
}

.segmented-option span:hover {
    color: #007c70;
    transform: translateY(-1px);
}

.modern-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.modern-field > span {
    align-items: center;
    color: #172331;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    justify-content: space-between;
}

.modern-field small {
    color: #627d98;
    line-height: 1.4;
}

.cobrade-step-grid {
    counter-reset: cobrade-step;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cobrade-step-grid .modern-field {
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 14px;
    position: relative;
}

.cobrade-step-grid .modern-field::before {
    align-items: center;
    background: #007c70;
    border-radius: 999px;
    color: #fff;
    content: counter(cobrade-step);
    counter-increment: cobrade-step;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: -13px;
    width: 26px;
}

.modern-cobrade-preview {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-left: 4px solid #007c70;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: 104px minmax(0, 1fr);
    margin-top: 16px;
    padding: 16px;
}

.modern-cobrade-preview[hidden] {
    display: none;
}

.cobrade-symbol-frame {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: flex;
    height: 104px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 104px;
}

.cobrade-symbol-frame img {
    display: block;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.cobrade-symbol-frame span {
    color: #627d98;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.cobrade-symbol-frame img:not([hidden]) + span {
    display: none;
}

.modern-cobrade-preview div:last-child {
    display: grid;
    gap: 5px;
}

.modern-cobrade-preview div:last-child > span {
    color: #007c70;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.modern-cobrade-preview strong {
    color: #172331;
    font-size: 17px;
}

.modern-cobrade-preview small,
.modern-cobrade-preview p {
    color: #52606d;
    margin: 0;
}

.modern-cobrade-preview p {
    line-height: 1.5;
}

.cobrade-section {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.cobrade-section::before {
    background: #0f766e;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.cobrade-section .cobrade-step-grid {
    gap: 16px;
}

.cobrade-section .modern-field {
    background: #fbfdff;
    border-color: #d6e2ec;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.cobrade-section .modern-field:focus-within {
    border-color: #8fc5bb;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.1);
}

.cobrade-section .modern-field::before {
    background: #0f766e;
    box-shadow: 0 0 0 4px #edf7f5;
}

.cobrade-section .modern-field > span {
    color: #0f3f3a;
}

.cobrade-section .modern-field small {
    color: #52606d;
}

.cobrade-section select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #0f766e 50%),
        linear-gradient(135deg, #0f766e 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    border-color: #cbd8e3;
    border-radius: 8px;
    cursor: pointer;
    min-height: 46px;
    padding-right: 42px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.cobrade-section select:disabled {
    background-color: #f3f7fb;
    color: #64748b;
    cursor: not-allowed;
}

.cobrade-section select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
    outline: 0;
}

.cobrade-section .modern-cobrade-preview {
    background: #fbfdff;
    border-color: #cfe0dc;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.cobrade-section .cobrade-symbol-frame {
    background: #ffffff;
    border-color: #cfe0dc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.cobrade-section .modern-cobrade-preview div:last-child > span {
    color: #0f766e;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto auto;
    gap: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.decrees-filters {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
}

.compdec-filters {
    grid-template-columns: minmax(260px, 1fr) 220px 180px auto auto;
}

.decrees-page-header {
    margin-bottom: 16px;
}

.decree-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.decree-overview-grid > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dde5ee;
    border-radius: 8px;
    background: #fff;
}

.decree-overview-grid span,
.decree-main-info span,
.decree-status-block > span {
    color: #52606d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.decree-overview-grid strong {
    color: #172331;
    font-size: 26px;
    line-height: 1;
}

.decree-filter-panel {
    align-items: end;
    grid-template-columns: 110px minmax(170px, 0.8fr) minmax(230px, 1.2fr) repeat(3, minmax(170px, 1fr)) auto;
    padding: 16px;
    border: 1px solid #dde5ee;
    border-radius: 8px;
    background: #fff;
}

.decree-filter-panel .field {
    gap: 6px;
    min-width: 0;
}

.decree-filter-panel label {
    color: #364152;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.decree-filter-panel input,
.decree-filter-panel select {
    min-width: 0;
    width: 100%;
}

.decree-filter-actions {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.decree-list {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.decree-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
}

.decree-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.decree-card-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.decree-card-title > span {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 800;
}

.decree-card-title h2 {
    margin: 0;
    color: #172331;
    font-size: 21px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.decree-card-title p {
    margin: 0;
    color: #52606d;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.decree-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.decree-card-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.decree-main-info {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(6, minmax(112px, 1fr));
    gap: 10px;
    min-width: 0;
}

.decree-main-info > div,
.decree-status-block {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.decree-main-info strong {
    color: #172331;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.decree-disaster-info {
    min-width: 0;
}

.decree-disaster-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.decree-disaster-symbol {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border: 1px solid #d8e1eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.decree-disaster-symbol img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.decree-disaster-symbol span {
    color: #52606d;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.decree-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.decree-status-block {
    background: #fff;
}

.pge-status-meta {
    display: grid;
    gap: 3px;
    color: #52606d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pge-status-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.decrees-page-header {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.decrees-page-header::before {
    background: #007c70;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.decree-overview-grid {
    gap: 14px;
}

.decree-overview-grid > div {
    border-color: #d6e2ec;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.decree-overview-grid > div:nth-child(2) {
    border-left-color: #1d4ed8;
}

.decree-overview-grid > div:nth-child(3) {
    border-left-color: #b45309;
}

.decree-overview-grid > div:nth-child(4) {
    border-left-color: #0f766e;
}

.decree-overview-grid strong {
    font-size: clamp(24px, 2.4vw, 32px);
}

.decree-filter-panel {
    border-color: #cbd8e3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
}

.decree-filter-panel::before {
    background: #155e75;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.decree-filter-panel input,
.decree-filter-panel select {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 44px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.decree-filter-panel select,
.inline-status-form select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #007c70 50%),
        linear-gradient(135deg, #007c70 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
    padding-right: 42px;
}

.decree-filter-panel input:focus,
.decree-filter-panel select:focus,
.inline-status-form select:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.decree-list {
    gap: 16px;
}

.decree-card {
    border-color: #cbd8e3;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.decree-card:focus-within,
.decree-card:hover {
    border-color: #8fc5bb;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.decree-card-title > span {
    background: #ecfdf5;
    color: #0f766e;
}

.decree-card-title h2 {
    font-size: clamp(19px, 1.8vw, 24px);
}

.decree-card-title p {
    color: #64748b;
    font-weight: 700;
}

.decree-main-info,
.decree-status-grid {
    gap: 12px;
}

.decree-main-info > div,
.decree-status-block {
    background: #fbfdff;
    border-color: #dbe7f1;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.decree-main-info > div:nth-child(4) {
    border-left-color: #1d4ed8;
}

.decree-main-info > div:nth-child(6),
.decree-status-block:nth-child(3) {
    border-left-color: #b45309;
}

.decree-disaster-info {
    background: #f7fbfa !important;
    border-left-color: #0f766e !important;
}

.decree-disaster-symbol {
    background: #ffffff;
    border-color: #cfe0dc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.decree-disaster-row strong {
    font-size: 14px;
}

.decree-status-block > span,
.decree-main-info span,
.decree-overview-grid span {
    color: #52606d;
}

.inline-status-form {
    align-items: center;
}

.inline-status-form select {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 42px;
}

.inline-status-form button {
    border-color: #bfe5dc;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f766e;
}

.pge-status-meta {
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    padding: 8px 10px;
}

.decree-empty-state {
    border-color: #cbd8e3;
    border-left: 4px solid #0f766e;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.pge-date-form-field[hidden] {
    display: none !important;
}

.pge-protocol-form-field[hidden] {
    display: none !important;
}

.homologacao-date-form-field[hidden] {
    display: none !important;
}

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

.institutional-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
    background: #fbfdff;
}

.institutional-card.span-2,
.institutional-flow > .span-2 {
    grid-column: 1 / -1;
}

.institutional-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6edf5;
}

.institutional-card-head span {
    color: #172331;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.institutional-card-head small {
    max-width: 320px;
    color: #627d98;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
}

.institutional-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.institutional-grid.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.readonly-status-field .readonly-status-value {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f7fafc;
}

.history-pge-date-field[hidden] {
    display: none !important;
}

.pge-consistency-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbe7f1;
    border-radius: 8px;
    background: #f8fafc;
}

.pge-consistency-panel > div {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e5edf5;
    border-radius: 8px;
    background: #fff;
}

.pge-consistency-panel span {
    color: #52606d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pge-consistency-panel strong {
    color: #172331;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pge-consistency-panel > div:nth-child(2),
.pge-consistency-panel > div:nth-child(3) {
    display: none;
}

.decree-empty-state {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid #d8e2eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 35, 49, 0.07);
}

.decree-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid #d5e7e3;
    border-radius: 8px;
    background: #ecfdf5;
}

.decree-empty-icon span {
    position: relative;
    width: 24px;
    height: 30px;
    border: 2px solid #15735f;
    border-radius: 5px;
    background: #fff;
}

.decree-empty-icon span::before,
.decree-empty-icon span::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    border-radius: 999px;
    background: #f07828;
}

.decree-empty-icon span::before {
    top: 9px;
}

.decree-empty-icon span::after {
    top: 17px;
}

.decree-empty-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.decree-empty-copy strong {
    color: #172331;
    font-size: 17px;
    line-height: 1.25;
}

.decree-empty-copy p {
    max-width: 620px;
    margin: 0;
    color: #52606d;
    font-size: 14px;
    line-height: 1.45;
}

.decree-empty-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
}

.upload-form {
    grid-template-columns: 180px minmax(220px, 1fr) minmax(180px, 1fr) auto;
}

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

.attachment-dropzone {
    display: grid;
    gap: 10px;
    min-height: 210px;
    padding: 14px;
    border: 1px dashed #b6c3d1;
    border-radius: 8px;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.attachment-dropzone:focus,
.attachment-dropzone.is-dragover {
    border-color: #0f766e;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.attachment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.attachment-head strong {
    color: #172331;
    min-width: 0;
    overflow-wrap: anywhere;
}

.attachment-head span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
}

.attachment-dropzone p {
    margin: 0;
    color: #52606d;
    font-size: 13px;
}

.attachment-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.attachment-list {
    display: grid;
    gap: 6px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.attachment-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    background: #fff;
    color: #52606d;
    font-size: 13px;
    min-width: 0;
}

.attachment-list li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.attachment-list button {
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-weight: 700;
}

.inline-status-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
}

.inline-status-form select {
    min-width: 0;
    width: 100%;
}

.inline-status-form button {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #b7d4d1;
    border-radius: 6px;
    background: #ecfdf5;
    color: #0f766e;
    cursor: pointer;
    font-weight: 800;
}

.link-button {
    border: 0;
    background: transparent;
    color: #155e75;
    cursor: pointer;
    padding: 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e4e7ec;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f8fafc;
}

tbody tr:hover {
    background: #fbfcfd;
}

.actions {
    display: flex;
    gap: 10px;
}

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

.detail-grid div {
    display: grid;
    gap: 4px;
}

.detail-grid span {
    color: #52606d;
}

.compdec-photo-thumb,
.compdec-photo-placeholder {
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: inline-flex;
    height: 48px;
    width: 48px;
}

.compdec-photo-thumb {
    background: #f8fafc;
    object-fit: cover;
}

.compdec-photo-placeholder {
    align-items: center;
    background: #eef2f6;
    color: #52606d;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
}

.compdec-photo-large {
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: block;
    height: 180px;
    object-fit: cover;
    width: 180px;
}

.compdec-photo-large.compdec-photo-placeholder {
    align-items: center;
    display: flex;
    justify-content: center;
}

.compdec-profile {
    align-items: center;
    display: flex;
    gap: 20px;
}

.compdec-profile h2,
.compdec-profile p {
    margin: 0;
}

.compdec-profile p {
    color: #52606d;
    margin-top: 6px;
}

.compdec-photo-edit {
    align-items: end;
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr);
}

.compdecs-page-header {
    margin-bottom: 16px;
}

.compdec-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    min-width: 0;
}

.compdec-overview-grid > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 35, 49, 0.05);
}

.compdec-overview-grid span,
.compdec-card-grid span,
.compdec-card-person > div > span {
    color: #52606d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.compdec-overview-grid strong {
    color: #172331;
    font-size: 25px;
    line-height: 1;
}

.compdec-filter-panel {
    display: grid;
    grid-template-columns: minmax(170px, 0.95fr) minmax(145px, 0.78fr) minmax(116px, 0.58fr) minmax(170px, 0.95fr) auto;
    gap: 12px;
    align-items: end;
    min-width: 0;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 35, 49, 0.06);
}

.compdec-filter-panel .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.compdec-filter-panel label {
    color: #364152;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.compdec-filter-panel input,
.compdec-filter-panel select {
    min-width: 0;
    width: 100%;
}

.compdec-filter-search {
    grid-column: auto;
}

.compdec-filter-actions {
    display: flex;
    gap: 8px;
    grid-column: auto;
    justify-content: flex-end;
    min-width: 0;
}

.compdec-card-list {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.compdec-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 35, 49, 0.06);
    overflow-x: clip;
}

.compdec-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.compdec-card-person {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.compdec-card-person .compdec-photo-thumb,
.compdec-card-person .compdec-photo-placeholder {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
}

.compdec-card-person > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.compdec-card-person h2 {
    margin: 0;
    color: #172331;
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.compdec-card-person p {
    margin: 0;
    color: #617084;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.compdec-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.compdec-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.compdec-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.compdec-card-grid > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.compdec-card-grid strong {
    color: #172331;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.compdec-empty-state {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid #d8e2eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 35, 49, 0.07);
}

.compdec-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid #d5e7e3;
    border-radius: 8px;
    background: #ecfdf5;
    color: #15735f;
    font-weight: 900;
}

.compdec-empty-state strong {
    display: block;
    color: #172331;
    font-size: 17px;
    line-height: 1.25;
}

.compdec-empty-state p {
    margin: 5px 0 0;
    color: #52606d;
    font-size: 14px;
    line-height: 1.45;
}

.compdecs-page-header {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.compdecs-page-header::before {
    background: #007c70;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.compdec-overview-grid {
    gap: 14px;
}

.compdec-overview-grid > div {
    border-color: #d6e2ec;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.compdec-overview-grid > div:nth-child(2) {
    border-left-color: #0f766e;
}

.compdec-overview-grid > div:nth-child(3) {
    border-left-color: #b45309;
}

.compdec-overview-grid strong {
    font-size: clamp(24px, 2.4vw, 32px);
}

.compdec-filter-panel {
    border-color: #cbd8e3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
}

.compdec-filter-panel::before {
    background: #155e75;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.compdec-filter-panel input,
.compdec-filter-panel select {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 44px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.compdec-filter-panel select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #007c70 50%),
        linear-gradient(135deg, #007c70 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
    padding-right: 42px;
}

.compdec-filter-panel input:focus,
.compdec-filter-panel select:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.compdec-card-list {
    gap: 16px;
}

.compdec-card {
    border-color: #cbd8e3;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.compdec-card:focus-within,
.compdec-card:hover {
    border-color: #8fc5bb;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.compdec-card-person .compdec-photo-thumb,
.compdec-card-person .compdec-photo-placeholder {
    border: 1px solid #cfe0dc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.compdec-card-person > div > span {
    color: #0f766e;
}

.compdec-card-person h2 {
    font-size: clamp(18px, 1.7vw, 23px);
}

.compdec-card-person p {
    color: #64748b;
    font-weight: 700;
}

.compdec-status-row {
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    padding: 10px;
}

.compdec-card-grid {
    gap: 12px;
}

.compdec-card-grid > div {
    background: #fbfdff;
    border-color: #dbe7f1;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.compdec-card-grid > div:first-child {
    background: #f7fbfa;
    border-left-color: #0f766e;
}

.compdec-card-grid strong {
    font-weight: 800;
}

.compdec-empty-state {
    border-color: #cbd8e3;
    border-left: 4px solid #0f766e;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.compdec-edit-header,
.compdec-edit-profile-section,
.compdec-edit-location-section,
.compdec-edit-ubm-section,
.compdec-edit-summary-section,
.compdec-edit-contact-section {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.compdec-edit-header::before,
.compdec-edit-profile-section::before,
.compdec-edit-location-section::before,
.compdec-edit-ubm-section::before,
.compdec-edit-summary-section::before,
.compdec-edit-contact-section::before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.compdec-edit-header::before,
.compdec-edit-profile-section::before,
.compdec-edit-summary-section::before {
    background: #007c70;
}

.compdec-edit-location-section::before,
.compdec-edit-ubm-section::before {
    background: #155e75;
}

.compdec-edit-contact-section::before {
    background: #b45309;
}

.compdec-edit-form {
    gap: 18px;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    padding: 0;
}

.compdec-edit-profile {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
}

.compdec-edit-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compdec-edit-summary-grid article {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
}

.compdec-edit-summary-grid span,
.compdec-status-label {
    color: #52606d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.compdec-edit-summary-grid strong {
    color: #172331;
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.compdec-edit-summary-grid small {
    color: #52606d;
    line-height: 1.45;
}

.compdec-photo-uploader {
    align-content: start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 250, 247, 0.9)),
        radial-gradient(circle at top left, rgba(0, 124, 112, 0.16), transparent 34%);
    border: 1px dashed #7aa7a0;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 14px;
    height: 100%;
    justify-items: start;
    min-width: 0;
    padding: 16px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.compdec-photo-uploader.is-dragover {
    background: #eefaf7;
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.12);
}

.compdec-photo-uploader:focus-visible {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.compdec-photo-preview {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    color: #52606d;
    display: flex;
    font-weight: 900;
    height: 220px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.compdec-photo-preview::after {
    background: rgba(0, 124, 112, 0.86);
    border-radius: 999px;
    bottom: 12px;
    color: #ffffff;
    content: "Selecionar foto";
    font-size: 12px;
    font-weight: 900;
    left: 50%;
    padding: 7px 12px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.compdec-photo-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.compdec-photo-controls {
    display: grid;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.compdec-photo-title {
    color: #172331;
    font-size: 16px;
    font-weight: 900;
}

.compdec-photo-text {
    color: #52606d;
    line-height: 1.45;
}

.compdec-photo-uploader input[type="file"] {
    background: #ffffff;
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    color: #52606d;
    cursor: pointer;
    font-size: 13px;
    padding: 8px;
    width: 100%;
}

.compdec-photo-uploader input[type="file"]::file-selector-button {
    background: #007c70;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    margin-right: 10px;
    padding: 9px 12px;
}

.compdec-edit-photo .compdec-photo-large,
.compdec-photo-preview.compdec-photo-large {
    border-color: #cfe0dc;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    height: 180px;
    width: 180px;
}

.compdec-edit-photo input[type="file"] {
    border: 1px dashed #9fbab5;
    border-radius: 8px;
    background: #ffffff;
    color: #52606d;
    cursor: pointer;
    min-height: 44px;
    padding: 9px;
}

.compdec-edit-photo small {
    color: #52606d;
    line-height: 1.45;
}

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

.compdec-edit-profile > .compdec-edit-grid {
    align-self: start;
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 14px;
}

.compdec-edit-form .field {
    align-content: start;
}

.compdec-edit-form .field label {
    color: #172331;
    font-weight: 800;
}

.compdec-edit-form input,
.compdec-edit-form select,
.compdec-edit-form textarea {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 46px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.compdec-edit-form select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #007c70 50%),
        linear-gradient(135deg, #007c70 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
    padding-right: 42px;
}

.compdec-edit-form input:focus,
.compdec-edit-form select:focus,
.compdec-edit-form textarea:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.compdec-edit-form input:disabled,
.compdec-edit-form input[readonly] {
    background: #f8fafc;
    border-left: 4px solid #7aa7a0;
    color: #52606d;
    font-weight: 800;
}

.compdec-edit-location-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    min-width: 0;
}

.compdec-field-full {
    grid-column: 1 / -1;
}

.compdec-map-card,
.compdec-status-card {
    align-self: start;
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 12px;
}

.compdec-map-toolbar {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.compdec-map-toolbar .button {
    align-self: flex-start;
    flex: 0 0 auto;
    height: auto;
    min-height: 38px;
    white-space: normal;
}

.compdec-map {
    background: #e8eef3;
    border: 1px solid #cbd8e3;
    border-radius: 8px;
    height: 320px;
    min-height: 260px;
    overflow: hidden;
    width: 100%;
}

.compdec-map .leaflet-container,
.compdec-map.leaflet-container {
    background: #e8eef3;
    font: inherit;
}

.compdec-map .leaflet-tile,
.compdec-map .leaflet-marker-icon,
.compdec-map .leaflet-marker-shadow,
.compdec-map .leaflet-pane img {
    max-width: none !important;
}

.compdec-map-large {
    height: 420px;
}

.compdec-ubm-smart-panel {
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 12px;
}

.compdec-ubm-smart-panel[data-state="success"] {
    background: #eefaf7;
    border-color: #83c5b8;
}

.compdec-ubm-smart-panel[data-state="warning"] {
    background: #fff7ed;
    border-color: #f1b76b;
}

.compdec-ubm-smart-panel strong {
    color: #172331;
}

.compdec-ubm-smart-panel span,
.field-helper {
    color: #52606d;
    font-size: 12px;
    line-height: 1.45;
}

.field-helper[data-state="success"] {
    color: #007c70;
    font-weight: 800;
}

.field-helper[data-state="error"] {
    color: #b42318;
    font-weight: 800;
}

.compdec-ubm-smart-list {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.compdec-ubm-smart-option {
    background: #ffffff;
    border: 1px solid #cbd8e3;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 10px;
    text-align: left;
}

.compdec-ubm-smart-option:hover,
.compdec-ubm-smart-option:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 3px rgba(0, 124, 112, 0.12);
    outline: 0;
}

.compdec-status-options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compdec-status-option {
    align-items: start;
    background: #ffffff;
    border: 1px solid #cbd8e3;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
}

.compdec-status-option input {
    margin-top: 4px;
}

.compdec-status-option span {
    display: grid;
    gap: 3px;
}

.compdec-status-option small {
    color: #52606d;
    line-height: 1.35;
}

.operational-unit-map-icon {
    align-items: center;
    background: #007c70;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.24);
    display: flex;
    justify-content: center;
}

.operational-unit-map-icon-house {
    background: #ffffff;
    clip-path: polygon(50% 8%, 92% 44%, 82% 44%, 82% 86%, 18% 86%, 18% 44%, 8% 44%);
    height: 18px;
    width: 20px;
}

.compdec-point-map-icon {
    background: transparent;
    border: 0;
    position: relative;
}

.compdec-point-map-icon::before {
    background: #ffffff;
    border: 3px solid #007c70;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.26);
    content: "";
    height: 26px;
    left: 3px;
    position: absolute;
    top: 2px;
    transform: rotate(-45deg);
    width: 26px;
}

.compdec-point-map-icon-dot {
    background: #007c70;
    border-radius: 50%;
    display: block;
    height: 12px;
    left: 11px;
    position: absolute;
    top: 11px;
    width: 12px;
    z-index: 1;
}

.compdec-show-header,
.compdec-show-summary-section,
.compdec-show-profile-section,
.compdec-show-location-section,
.compdec-show-ubm-section {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.compdec-show-header::before,
.compdec-show-summary-section::before,
.compdec-show-profile-section::before,
.compdec-show-location-section::before,
.compdec-show-ubm-section::before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.compdec-show-header::before,
.compdec-show-summary-section::before,
.compdec-show-profile-section::before {
    background: #007c70;
}

.compdec-show-location-section::before,
.compdec-show-ubm-section::before {
    background: #155e75;
}

.compdec-show-profile {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    min-width: 0;
}

.compdec-show-photo {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 250, 247, 0.9)),
        radial-gradient(circle at top left, rgba(0, 124, 112, 0.16), transparent 36%);
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    color: #52606d;
    display: flex;
    font-weight: 900;
    height: 280px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.compdec-show-photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.compdec-show-detail-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

.compdec-show-detail-grid article {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
}

.compdec-show-detail-grid span {
    color: #52606d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.compdec-show-detail-grid strong {
    color: #172331;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.compdec-show-detail-wide {
    grid-column: 1 / -1;
}

.compdec-show-location-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    min-width: 0;
}

.users-page-header,
.users-filter-panel,
.users-empty-state,
.user-card {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.users-page-header::before,
.users-filter-panel::before,
.users-empty-state::before,
.user-card::before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.users-page-header::before,
.users-filter-panel::before,
.user-card.is-active::before {
    background: #007c70;
}

.user-card.is-inactive::before,
.users-empty-state::before {
    background: #b45309;
}

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

.users-overview-grid article,
.users-filter-panel,
.users-empty-state,
.user-card {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
}

.users-overview-grid article {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.users-overview-grid span,
.user-card-meta span,
.user-card-main span {
    color: #52606d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.users-overview-grid strong {
    color: #172331;
    font-size: 28px;
    line-height: 1;
}

.users-overview-grid small,
.users-empty-state p,
.user-card-main p {
    color: #52606d;
    line-height: 1.45;
    margin: 0;
}

.users-filter-panel {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.7fr) minmax(170px, 0.6fr) auto;
    padding: 18px;
}

.users-filter-search {
    min-width: 0;
}

.users-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.users-card-list {
    display: grid;
    gap: 14px;
}

.user-card {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.2fr) auto;
    padding: 18px;
}

.user-card-main {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.user-card-avatar {
    align-items: center;
    background: #eefaf7;
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    color: #007c70;
    display: flex;
    font-size: 22px;
    font-weight: 900;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.user-card.is-inactive .user-card-avatar {
    background: #fff7ed;
    border-color: #f1b76b;
    color: #b45309;
}

.user-card-main h2 {
    color: #172331;
    font-size: 18px;
    line-height: 1.2;
    margin: 2px 0;
    overflow-wrap: anywhere;
}

.user-card-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}

.user-card-meta > div {
    background: #f8fafc;
    border: 1px solid #e4e9ee;
    border-radius: 8px;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px;
}

.user-card-meta strong {
    color: #172331;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.user-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.user-card-actions form {
    margin: 0;
}

.user-card-actions .button {
    min-height: 38px;
}

.users-empty-state {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.users-empty-state strong {
    color: #172331;
    font-size: 18px;
}

.user-detail-hero,
.user-detail-section,
.user-danger-zone {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.user-detail-hero::before,
.user-detail-section::before,
.user-danger-zone::before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.user-detail-hero.is-active::before,
.user-detail-section::before {
    background: #007c70;
}

.user-detail-hero.is-inactive::before,
.user-danger-zone::before {
    background: #b45309;
}

.user-detail-hero {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px;
}

.user-detail-status {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.user-detail-status form {
    margin: 0;
}

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

.user-detail-grid article {
    background: #f8fafc;
    border: 1px solid #e4e9ee;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
}

.user-detail-grid span,
.user-danger-zone span {
    color: #52606d;
    font-size: 12px;
    line-height: 1.45;
}

.user-detail-grid article > span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.user-detail-grid strong {
    color: #172331;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.user-danger-zone {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 18px;
}

.user-danger-zone > div {
    display: grid;
    gap: 4px;
}

.user-form {
    gap: 18px;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    padding: 0;
}

.user-form-section {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.user-form-section::before {
    background: #007c70;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

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

.user-form input,
.user-form select {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 46px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.user-form select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #007c70 50%),
        linear-gradient(135deg, #007c70 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px;
    padding-right: 38px;
}

.user-form input:focus,
.user-form select:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.user-password-switch {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.user-password-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.user-password-switch-toggle {
    background: #cbd8e3;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    height: 30px;
    position: relative;
    transition: background-color 0.16s ease;
    width: 54px;
}

.user-password-switch-toggle::before {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
    content: "";
    height: 24px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.16s ease;
    width: 24px;
}

.user-password-switch input:checked + .user-password-switch-toggle {
    background: #007c70;
}

.user-password-switch input:checked + .user-password-switch-toggle::before {
    transform: translateX(24px);
}

.user-password-switch:has(input:checked) {
    background: #eefaf7;
    border-color: #83c5b8;
}

.user-password-switch:focus-within {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
}

.user-password-switch strong {
    color: #172331;
    display: block;
    font-weight: 900;
}

.user-password-switch small {
    color: #52606d;
    display: block;
    line-height: 1.45;
    margin-top: 3px;
}

.password-page-header,
.password-guidance-card,
.password-form-section {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.password-page-header::before,
.password-guidance-card::before,
.password-form-section::before {
    background: #007c70;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.password-change-shell {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
    min-width: 0;
}

.password-guidance-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 250, 247, 0.9)),
        radial-gradient(circle at top left, rgba(0, 124, 112, 0.16), transparent 36%);
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 20px;
}

.password-guidance-card > span,
.password-guidance-list span {
    color: #52606d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.password-guidance-card h2 {
    color: #172331;
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}

.password-guidance-card p {
    color: #52606d;
    line-height: 1.5;
    margin: 0;
}

.password-guidance-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.password-guidance-list span {
    background: #ffffff;
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    color: #007c70;
    padding: 10px 12px;
}

.password-change-form {
    gap: 18px;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    padding: 0;
}

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

.password-change-form input {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 48px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.password-change-form input:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.password-change-form .password-input-shell {
    width: 100%;
}

.password-change-form .password-toggle-button {
    color: #334155;
}

.decree-detail-header h1 {
    overflow-wrap: anywhere;
}

.detail-hero {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.1fr 1.6fr 0.8fr 0.8fr;
    margin-bottom: 18px;
}

.detail-hero > div,
.detail-section,
.attachment-card {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.detail-hero > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
}

.detail-hero span,
.detail-card-grid strong,
.human-damage-grid span,
.attachment-card span {
    color: #52606d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-hero strong {
    color: #172331;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.detail-section {
    margin-top: 18px;
    padding: 18px;
}

.detail-section-heading {
    align-items: flex-start;
    border-bottom: 1px solid #e4e7ec;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.detail-section-heading div {
    align-items: center;
    display: flex;
    gap: 12px;
}

.detail-section-heading span {
    align-items: center;
    background: #007c70;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    min-width: 34px;
}

.detail-section-heading h2 {
    color: #172331;
    font-size: 18px;
    margin: 0;
}

.detail-section-heading p {
    color: #52606d;
    line-height: 1.45;
    margin: 0;
    max-width: 560px;
}

.detail-card-grid,
.human-damage-grid {
    display: grid;
    gap: 12px;
}

.detail-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card-grid > div,
.human-damage-grid > div {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
}

.detail-card-grid span {
    color: #172331;
    overflow-wrap: anywhere;
}

.human-damage-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.human-damage-grid strong {
    color: #172331;
    font-size: 24px;
}

.detail-observation {
    color: #364152;
    line-height: 1.6;
    margin: 0;
}

.detail-hero-modern {
    align-items: stretch;
}

.detail-hero-modern > div {
    border-color: #d6e2ec;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.detail-hero-modern > div:nth-child(2) {
    border-left-color: #0f766e;
}

.detail-hero-modern > div:nth-child(3) {
    border-left-color: #1d4ed8;
}

.detail-hero-modern > div:nth-child(4) {
    border-left-color: #b45309;
}

.detail-hero-modern span {
    color: #52606d;
}

.detail-hero-modern strong {
    line-height: 1.25;
}

.detail-overview-section,
.detail-institutional-section,
.detail-damage-section {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.detail-overview-section::before,
.detail-institutional-section::before,
.detail-damage-section::before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.detail-overview-section::before {
    background: #007c70;
}

.detail-institutional-section::before {
    background: #155e75;
}

.detail-damage-section::before {
    background: #1d4ed8;
}

.detail-overview-section .detail-card-grid,
.detail-institutional-section .detail-card-grid {
    gap: 14px;
}

.detail-overview-section .detail-card-grid > div,
.detail-institutional-section .detail-card-grid > div {
    background: #fbfdff;
    border-color: #dbe7f1;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.detail-institutional-section .detail-card-grid > div {
    border-left-color: #cfe7ef;
}

.detail-overview-section .detail-card-grid > div:nth-child(10),
.detail-institutional-section .detail-card-grid > div:nth-child(8),
.detail-institutional-section .detail-card-grid > div:nth-child(12) {
    background: #f7fbfa;
    border-left-color: #0f766e;
}

.detail-card-grid > div strong {
    color: #52606d;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.detail-card-grid > div span {
    color: #172331;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.detail-card-grid > div .status-badge,
.detail-hero-modern .status-badge {
    justify-self: start;
}

.detail-damage-section .human-damage-grid {
    gap: 14px;
}

.detail-damage-section .human-damage-grid > div {
    background: #fbfdff;
    border-color: #dbe7f1;
    border-left: 4px solid #bfdbfe;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.detail-damage-section .human-damage-grid > div:first-child {
    border-left-color: #b42318;
}

.detail-damage-section .human-damage-grid strong {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1;
}

.detail-damage-section .human-damage-grid span {
    color: #52606d;
}

.detail-upload-form {
    align-items: end;
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.2fr) minmax(180px, 0.8fr) auto;
    margin-bottom: 16px;
    padding: 14px;
}

.detail-attachment-dropzone {
    min-height: 170px;
}

.attachment-card-list {
    display: grid;
    gap: 12px;
}

.attachment-card {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.attachment-card > div:first-child {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.attachment-card strong {
    color: #172331;
    overflow-wrap: anywhere;
}

.attachment-card small {
    color: #627d98;
}

.attachment-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.attachment-actions form {
    margin: 0;
}

.history-timeline {
    display: grid;
    gap: 14px;
}

.history-item {
    display: grid;
    gap: 12px;
    grid-template-columns: 18px minmax(0, 1fr);
}

.history-marker {
    background: #007c70;
    border: 4px solid #e7f5f1;
    border-radius: 999px;
    height: 18px;
    margin-top: 16px;
    width: 18px;
}

.history-content {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.history-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.history-head div {
    display: grid;
    gap: 4px;
}

.history-head strong {
    color: #172331;
}

.history-head span,
.history-head time,
.history-values span {
    color: #627d98;
    font-size: 12px;
    font-weight: 800;
}

.history-head time {
    white-space: nowrap;
}

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

.history-values div {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
}

.history-values strong {
    color: #172331;
    overflow-wrap: anywhere;
}

.history-content p {
    color: #364152;
    line-height: 1.5;
    margin: 0;
}

.institutional-section,
.damage-section,
.observation-section,
.evidence-section,
.observation-detail-section,
.evidence-detail-section,
.history-section {
    border-color: #cbd8e3;
    overflow: hidden;
    position: relative;
}

.institutional-section::before,
.damage-section::before,
.observation-section::before,
.evidence-section::before,
.observation-detail-section::before,
.evidence-detail-section::before,
.history-section::before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.institutional-section::before {
    background: #007c70;
}

.damage-section::before {
    background: #1d4ed8;
}

.observation-section::before,
.observation-detail-section::before {
    background: #b45309;
}

.evidence-section::before,
.evidence-detail-section::before {
    background: #155e75;
}

.history-section::before {
    background: #364152;
}

.institutional-section input,
.institutional-section select,
.damage-section input,
.damage-section select,
.evidence-section input,
.evidence-section select,
.evidence-detail-section input,
.evidence-detail-section select,
.observation-section textarea {
    border-color: #cbd8e3;
    border-radius: 8px;
    min-height: 46px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.institutional-section select,
.damage-section select,
.evidence-section select,
.evidence-detail-section select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #007c70 50%),
        linear-gradient(135deg, #007c70 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
    padding-right: 42px;
}

.institutional-section input:focus,
.institutional-section select:focus,
.damage-section input:focus,
.damage-section select:focus,
.evidence-section input:focus,
.evidence-section select:focus,
.evidence-detail-section input:focus,
.evidence-detail-section select:focus,
.observation-section textarea:focus {
    border-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.14);
    outline: 0;
}

.institutional-section .institutional-card {
    background: #fbfdff;
    border-color: #d6e2ec;
    border-left: 4px solid #d5e7e3;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.institutional-section .institutional-card:focus-within {
    border-color: #8fc5bb;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.1);
}

.institutional-section .institutional-card-head span {
    color: #0f3f3a;
}

.institutional-section .readonly-status-value {
    background: #ffffff;
    border-color: #d6e2ec;
}

.institutional-section .pge-consistency-panel {
    background: #f7fbfa;
    border-color: #cfe0dc;
}

.institutional-section .pge-consistency-panel > div {
    border-color: #dbe7f1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

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

.damage-resource-field,
.damage-number-field,
.damage-total-field {
    border: 1px solid #dbe7f1;
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
}

.damage-resource-field {
    background: #f7fbff;
    grid-column: span 2;
}

.damage-number-field {
    background: #ffffff;
}

.damage-section .affected-input {
    color: #172331;
    font-size: 18px;
    font-weight: 900;
    text-align: right;
}

.damage-total-field {
    background: #172331;
    border-color: #172331;
}

.damage-total-field label {
    color: #ffffff !important;
}

.damage-total-field input,
.damage-total-field input:disabled {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

.observation-section {
    gap: 12px;
}

.observation-section > label {
    color: #172331;
    font-weight: 900;
}

.observation-section textarea,
.observation-detail-section .detail-observation {
    background: #fffdf8;
    border: 1px solid #f1d6ae;
    border-left: 4px solid #b45309;
    border-radius: 8px;
    color: #243447;
    line-height: 1.6;
    padding: 14px;
}

.observation-section textarea {
    min-height: 150px;
    resize: vertical;
}

.evidence-section .attachment-grid {
    gap: 16px;
}

.evidence-section .attachment-dropzone,
.evidence-detail-section .detail-upload-form,
.evidence-detail-section .attachment-card {
    background: #fbfdff;
    border-color: #cfe0dc;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.evidence-section .attachment-dropzone {
    border-left: 4px solid #155e75;
    min-height: 230px;
}

.evidence-section .attachment-dropzone:focus,
.evidence-section .attachment-dropzone.is-dragover,
.evidence-detail-section .attachment-dropzone:focus,
.evidence-detail-section .attachment-dropzone.is-dragover {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.evidence-section .attachment-head span,
.evidence-detail-section .attachment-head span {
    background: #ecfeff;
    color: #155e75;
}

.evidence-section .attachment-list li,
.evidence-detail-section .attachment-list li,
.evidence-detail-section .attachment-card {
    border-radius: 8px;
}

.history-section .history-timeline {
    gap: 16px;
}

.history-section .history-item {
    grid-template-columns: 28px minmax(0, 1fr);
    position: relative;
}

.history-section .history-item:not(:last-child)::before {
    background: #dbe7f1;
    bottom: -16px;
    content: "";
    left: 8px;
    position: absolute;
    top: 34px;
    width: 2px;
}

.history-section .history-marker {
    box-shadow: 0 0 0 4px #f0f7f6;
    margin-left: 1px;
    position: relative;
    z-index: 1;
}

.history-section .history-content {
    background: #ffffff;
    border-color: #dbe7f1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.history-section .history-head strong {
    color: #172331;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.history-section .history-head time {
    background: #f3f7fb;
    border: 1px solid #dbe7f1;
    border-radius: 999px;
    color: #364152;
    padding: 5px 9px;
}

.history-section .history-values div {
    background: #fbfdff;
    border-color: #dbe7f1;
}

.history-section .history-content p {
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    padding: 10px 12px;
}

.history-modal-summary {
    background: #fbfdff;
    border-color: #dbe7f1;
}

.history-change-item {
    border-left: 4px solid #007c70;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.history-change-value.is-new {
    border-color: #bfe5dc;
}

.danger-form {
    margin-top: 16px;
}

.section-block {
    margin-top: 20px;
    padding: 20px;
}

.section-block h2 {
    margin-top: 0;
}

.detail-grid.compact {
    border: 0;
    padding: 0;
}

.readonly-box {
    min-height: 42px;
    border: 1px solid #c9d2dc;
    border-radius: 6px;
    padding: 10px;
    background: #f8fafc;
    color: #52606d;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-grid > div {
    padding: 18px;
    border-left: 4px solid #007c70;
}

.dashboard-grid strong {
    display: block;
    font-size: 28px;
}

.dashboard-grid span {
    color: #52606d;
}

.pagination {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}

.pagination a {
    min-width: 36px;
    padding: 8px;
    border: 1px solid #c9d2dc;
    border-radius: 6px;
    text-align: center;
}

.pagination a.active {
    background: #007c70;
    color: #fff;
    border-color: #007c70;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-muted {
    background: #eef2f6;
    color: #364152;
}

.badge-success {
    background: #ecfdf3;
    color: #05603a;
}

.badge-warning {
    background: #fffaeb;
    color: #93370d;
}

.badge-danger {
    background: #fef3f2;
    color: #912018;
}

.badge-info {
    background: #eff8ff;
    color: #175cd3;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.42);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    width: min(420px, 100%);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.modal h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.modal p {
    margin: 0 0 18px;
    color: #52606d;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.history-modal {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.history-modal h2 {
    margin-bottom: 0;
}

.history-modal label {
    color: #172331;
}

.history-modal textarea {
    min-height: 120px;
    resize: vertical;
}

.history-modal-summary {
    background: #f8fafc;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    max-height: min(46vh, 420px);
    overflow-y: auto;
    padding: 12px;
}

.history-modal-summary p {
    color: #364152;
    margin: 0;
}

.decree-print-backdrop {
    align-items: stretch;
    padding: clamp(10px, 2vw, 24px);
    z-index: 1300;
}

.decree-print-modal {
    background: #edf3f6;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 28px);
    overflow: hidden;
    padding: 0;
    width: min(1120px, 100%);
}

.decree-print-modal-toolbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #d8dee6;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 16px;
}

.decree-print-modal-toolbar > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.decree-print-modal-toolbar span {
    color: #007c70;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.decree-print-modal-toolbar h2 {
    color: #172331;
    margin: 0;
    overflow-wrap: anywhere;
}

.decree-print-modal-body {
    min-height: 0;
    overflow: auto;
    padding: clamp(14px, 2vw, 24px);
}

.decree-print-report {
    background: #ffffff;
    border: 1px solid #cbd8e3;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    color: #172331;
    display: grid;
    gap: 16px;
    margin: 0 auto;
    max-width: 900px;
    min-height: 1120px;
    overflow: hidden;
    padding: 26px;
}

.decree-print-header {
    align-items: center;
    border-bottom: 2px solid #007c70;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
    padding-bottom: 16px;
}

.decree-print-brand {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.decree-print-brand img {
    height: 58px;
    object-fit: contain;
    width: 72px;
}

.decree-print-brand div,
.decree-print-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.decree-print-brand strong,
.decree-print-meta strong {
    color: #172331;
    font-size: 16px;
    line-height: 1.2;
}

.decree-print-brand span,
.decree-print-meta span,
.decree-print-meta small {
    color: #52606d;
    font-size: 12px;
    font-weight: 800;
}

.decree-print-meta {
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    padding: 12px;
}

.decree-print-meta span {
    color: #007c70;
    text-transform: uppercase;
}

.decree-print-cover {
    align-items: center;
    background: linear-gradient(135deg, #172331, #155e75);
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
    padding: 18px;
}

.decree-print-cover span,
.decree-print-summary span,
.decree-print-grid span,
.decree-print-table span,
.decree-print-history p {
    color: #52606d;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.decree-print-cover span {
    color: #9ee8dc;
}

.decree-print-cover h2 {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
    margin: 4px 0;
}

.decree-print-cover p {
    color: #d8e6ef;
    margin: 0;
}

.decree-print-cover img {
    background: #ffffff;
    border-radius: 8px;
    flex: 0 0 92px;
    height: 92px;
    object-fit: contain;
    padding: 8px;
    width: 92px;
}

.decree-print-disaster-info {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 12px;
}

.decree-print-disaster-info > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.decree-print-disaster-info p {
    color: #f4fbff;
    font-size: 12px;
    line-height: 1.35;
}

.panel-print-report .decree-print-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-print-cover {
    grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
}

.panel-print-filter-brief {
    align-items: flex-start;
}

.panel-print-filter-brief p {
    font-size: 12px;
}

.panel-print-ranking-row {
    grid-template-columns: minmax(0, 1fr) 0.35fr 0.45fr;
}

.panel-print-recent-row {
    grid-template-columns: 0.75fr 0.7fr minmax(0, 1fr) minmax(0, 0.85fr);
}

.panel-print-register-row {
    grid-template-columns: 0.72fr 0.75fr minmax(0, 1.25fr) minmax(0, 0.8fr) 0.55fr 0.42fr;
}

.panel-print-register-row small,
.panel-print-recent-row small {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    text-transform: none;
}

.decree-print-summary,
.decree-print-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decree-print-summary > div,
.decree-print-grid > div {
    background: #fbfdff;
    border: 1px solid #dbe7f1;
    border-left: 4px solid #d5e7e3;
    border-radius: 8px;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px;
}

.decree-print-summary strong,
.decree-print-grid strong {
    color: #172331;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.decree-print-section {
    break-inside: avoid;
    display: grid;
    gap: 12px;
    page-break-inside: avoid;
}

.decree-print-section h3 {
    align-items: center;
    border-bottom: 1px solid #e4e7ec;
    color: #172331;
    display: flex;
    font-size: 16px;
    gap: 10px;
    margin: 0;
    padding-bottom: 8px;
}

.decree-print-section h3 span {
    align-items: center;
    background: #007c70;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    min-width: 30px;
}

.decree-print-text,
.decree-print-empty {
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    color: #364152;
    line-height: 1.5;
    margin: 0;
    padding: 12px;
}

.decree-print-table,
.decree-print-history {
    border: 1px solid #dbe7f1;
    border-radius: 8px;
    display: grid;
    overflow: hidden;
}

.decree-print-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 0.8fr minmax(0, 1.4fr) 0.7fr 0.45fr;
    padding: 10px;
}

.decree-print-row + .decree-print-row,
.decree-print-history > div + div {
    border-top: 1px solid #e4eaf1;
}

.decree-print-row-head {
    background: #f8fafc;
    font-weight: 900;
}

.decree-print-history > div {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.decree-print-history header {
    align-items: start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.decree-print-history strong {
    color: #172331;
}

.decree-print-history time {
    color: #52606d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.decree-print-history p {
    color: #364152;
    line-height: 1.45;
    margin: 0;
    text-transform: none;
}

.decree-print-footer {
    align-items: center;
    border-top: 1px solid #d8dee6;
    color: #52606d;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    gap: 10px;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 10px;
}

.decree-print-paged-report {
    display: none;
}

.decree-print-paged-report.is-measuring {
    display: block;
    left: -10000px;
    pointer-events: none;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 210mm;
}

.decree-print-paged-report .decree-print-page {
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    box-shadow: none;
    height: 297mm;
    margin: 0;
    max-width: none;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 210mm;
}

.decree-print-page-body {
    align-content: start;
    box-sizing: border-box;
    display: grid;
    gap: 10px;
    left: 12mm;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    right: 12mm;
    top: 12mm;
    bottom: 28mm;
}

.decree-print-paged-report .decree-print-page .decree-print-footer {
    background: #ffffff;
    bottom: 12mm;
    box-sizing: border-box;
    left: 12mm;
    margin: 0;
    min-height: 10mm;
    padding: 6px 0 0;
    position: absolute;
    right: 12mm;
}

.decree-print-paged-report .decree-print-page-first .decree-print-page-body {
    bottom: 34mm;
}

.decree-print-paged-report.is-measuring .decree-print-grid,
.decree-print-paged-report.is-measuring .decree-print-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decree-print-paged-report.is-measuring .decree-print-row {
    grid-template-columns: 0.8fr 1.3fr 0.7fr 0.45fr;
}

.decree-print-paged-report.is-measuring .panel-print-ranking-row {
    grid-template-columns: minmax(0, 1fr) 0.35fr 0.45fr;
}

.decree-print-paged-report.is-measuring .panel-print-recent-row {
    grid-template-columns: 0.75fr 0.7fr minmax(0, 1fr) minmax(0, 0.85fr);
}

.decree-print-paged-report.is-measuring .panel-print-register-row {
    grid-template-columns: 0.72fr 0.75fr minmax(0, 1.25fr) minmax(0, 0.8fr) 0.55fr 0.42fr;
}

@media (max-width: 920px) {
    .decree-print-modal-toolbar,
    .decree-print-header,
    .decree-print-cover {
        grid-template-columns: 1fr;
    }

    .decree-print-modal-toolbar {
        align-items: stretch;
        display: grid;
    }

    .decree-print-modal-toolbar .modal-actions {
        justify-content: stretch;
    }

    .decree-print-modal-toolbar .button {
        flex: 1 1 140px;
    }

    .decree-print-summary,
    .decree-print-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decree-print-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .decree-print-backdrop {
        padding: 0;
    }

    .decree-print-modal {
        border-radius: 0;
        max-height: 100vh;
    }

    .decree-print-report {
        border-radius: 0;
        padding: 16px;
    }

    .decree-print-disaster-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .decree-print-summary,
    .decree-print-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        margin: 0;
        size: A4;
    }

    body.is-printing-decree-report {
        background: #ffffff !important;
        margin: 0 !important;
    }

    body.is-printing-decree-report .app-shell,
    body.is-printing-decree-report .sidebar-backdrop,
    body.is-printing-decree-report .back-to-top,
    body.is-printing-decree-report .modal-backdrop {
        display: none !important;
    }

    body.is-printing-decree-report .decree-print-paged-report {
        background: #ffffff !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.is-printing-decree-report .decree-print-report {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        width: 210mm !important;
    }

    body.is-printing-decree-report .decree-print-page {
        break-after: page;
        height: 297mm !important;
        min-height: 0 !important;
        page-break-after: always;
        position: relative !important;
        width: 210mm !important;
    }

    body.is-printing-decree-report .decree-print-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    body.is-printing-decree-report .decree-print-page-body {
        box-sizing: border-box !important;
        display: grid !important;
        gap: 10px !important;
        left: 12mm !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        position: absolute !important;
        right: 12mm !important;
        top: 12mm !important;
        bottom: 28mm !important;
    }

    body.is-printing-decree-report .decree-print-page-first .decree-print-page-body {
        bottom: 34mm !important;
    }

    body.is-printing-decree-report .decree-print-header,
    body.is-printing-decree-report .decree-print-section,
    body.is-printing-decree-report .decree-print-summary,
    body.is-printing-decree-report .decree-print-cover {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.is-printing-decree-report .decree-print-grid,
    body.is-printing-decree-report .decree-print-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.is-printing-decree-report .decree-print-row {
        grid-template-columns: 0.8fr 1.3fr 0.7fr 0.45fr;
    }

    body.is-printing-decree-report .panel-print-ranking-row {
        grid-template-columns: minmax(0, 1fr) 0.35fr 0.45fr;
    }

    body.is-printing-decree-report .panel-print-recent-row {
        grid-template-columns: 0.75fr 0.7fr minmax(0, 1fr) minmax(0, 0.85fr);
    }

    body.is-printing-decree-report .panel-print-register-row {
        grid-template-columns: 0.72fr 0.75fr minmax(0, 1.25fr) minmax(0, 0.8fr) 0.55fr 0.42fr;
    }

    body.is-printing-decree-report .decree-print-footer {
        background: #ffffff;
        box-sizing: border-box;
        bottom: 12mm;
        left: 12mm;
        margin: 0;
        min-height: 10mm;
        padding: 6px 0 0;
        position: absolute;
        right: 12mm;
    }
}

.history-summary-head {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-bottom: 2px;
}

.history-summary-head span,
.history-change-field span,
.history-change-value span,
.history-file-list span {
    color: #52606d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.history-summary-head strong {
    color: #172331;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.history-change-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.history-change-item {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
}

.history-change-field {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.history-change-field strong {
    color: #172331;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.history-change-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.history-change-value {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    background: #f8fafc;
}

.history-change-value.is-new {
    border-color: #bfe5dc;
    background: #ecfdf5;
}

.history-change-value strong,
.history-file-list strong {
    color: #172331;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.history-file-list,
.history-summary-note {
    padding: 10px 12px;
    border: 1px solid #dbe7f1;
    border-radius: 8px;
    background: #fff;
}

.history-file-list {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.history-summary-note {
    color: #364152;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1500px) {
    .decree-filter-panel {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .decree-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .decree-main-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .decree-disaster-info {
        grid-column: span 2;
    }

    .decree-status-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 1280px) {
    .user-card {
        grid-template-columns: 1fr;
    }

    .user-card-actions {
        justify-content: flex-start;
    }

    .user-detail-hero,
    .user-danger-zone {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-detail-status {
        justify-content: flex-start;
    }

    .compdec-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compdec-filter-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compdec-filter-search {
        grid-column: span 2;
    }

    .compdec-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .compdec-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compdec-edit-profile {
        grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    }

    .compdec-edit-location-layout {
        grid-template-columns: 1fr;
    }

    .compdec-show-location-layout {
        grid-template-columns: 1fr;
    }

    .compdec-edit-photo .compdec-photo-large {
        height: 160px;
        width: 160px;
    }

    .decree-filter-panel {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .decree-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .decree-main-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .decree-disaster-info {
        grid-column: span 2;
    }

    .pge-consistency-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .human-damage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .damage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .damage-resource-field {
        grid-column: span 3;
    }

    .cobrade-step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
    }

    .decree-type-field {
        grid-template-columns: minmax(0, 1fr);
    }

    .decree-type-options {
        max-width: 720px;
    }
}

@media (max-width: 1100px) {
    .compdec-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compdec-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compdec-filter-search {
        grid-column: 1 / -1;
    }

    .decree-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decree-main-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decree-disaster-info {
        grid-column: 1 / -1;
    }

    .decree-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .inline-status-form button {
        justify-content: center;
        width: 100%;
    }

    .detail-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .detail-section-heading p {
        max-width: none;
    }

    .detail-upload-form {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .form-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .form-section-heading p {
        max-width: none;
    }

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

    .form-intro p {
        max-width: none;
    }

    .decrees-filters {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .compdec-filters {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 960px) {
    .users-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .users-filter-search,
    .users-filter-actions {
        grid-column: 1 / -1;
    }

    .users-filter-actions {
        justify-content: flex-start;
    }

    .user-card-meta,
    .user-detail-grid,
    .user-form-grid,
    .password-change-shell,
    .password-form-grid,
    .users-overview-grid {
        grid-template-columns: 1fr;
    }

    .compdec-card-header {
        grid-template-columns: 1fr;
    }

    .compdec-card-actions {
        justify-content: flex-start;
    }

    .compdec-edit-profile,
    .compdec-show-profile,
    .compdec-edit-grid,
    .compdec-show-detail-grid,
    .compdec-edit-summary-grid {
        grid-template-columns: 1fr;
    }

    .compdec-photo-uploader {
        align-items: start;
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
        justify-items: stretch;
    }

    .compdec-photo-preview {
        min-height: 180px;
    }

    .decree-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decree-card-header {
        grid-template-columns: 1fr;
    }

    .decree-card-actions {
        justify-content: flex-start;
    }

    .decree-main-info,
    .decree-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .decree-disaster-info {
        grid-column: 1 / -1;
    }

    .pge-consistency-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .institutional-flow {
        grid-template-columns: 1fr;
    }

    .institutional-grid,
    .institutional-grid.three-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero,
    .detail-card-grid,
    .attachment-card {
        grid-template-columns: 1fr;
    }

    .attachment-actions {
        justify-content: flex-start;
    }

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

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

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

    .damage-resource-field {
        grid-column: 1 / -1;
    }

    .institutional-grid,
    .institutional-grid.three-cols {
        grid-template-columns: 1fr;
    }

    .institutional-card-head {
        flex-direction: column;
        gap: 6px;
    }

    .institutional-card-head small {
        max-width: none;
        text-align: left;
    }

    .form-grid.inner > .span-2 {
        grid-column: 1 / -1;
    }

    .location-primary-field {
        grid-column: 1 / -1;
    }

    .decree-type-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .modern-cobrade-preview {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .upload-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 800px) {
    .auth-shell,
    .auth-recovery-shell,
    .two-factor-shell,
    .two-factor-verify-shell {
        grid-template-columns: 1fr;
    }

    .auth-recovery-shell {
        gap: 0;
        padding: 0;
    }

    .auth-hero {
        min-height: auto;
        padding: 22px 18px 72px;
        width: 100vw;
    }

    .auth-hero-copy {
        margin-top: 46px;
    }

    .auth-hero-copy h1 {
        font-size: 1.82rem;
        max-width: 320px;
    }

    .auth-hero-copy p:last-child {
        font-size: 0.98rem;
        max-width: 330px;
    }

    .auth-hero-metrics {
        display: none;
    }

    .auth-recovery-intro {
        border-radius: 0;
        min-height: 390px;
        padding: 22px 18px 72px;
    }

    .auth-recovery-intro h1 {
        font-size: 2rem;
    }

    .auth-recovery-steps {
        display: none;
    }

    .auth-panel,
    .auth-recovery-card {
        gap: 18px;
        justify-self: start;
        margin: -52px 16px 24px;
        max-width: calc(100vw - 32px);
        padding: 24px 20px;
        width: calc(100vw - 32px);
    }

    .auth-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .auth-logo-card {
        flex-basis: 112px;
        height: 56px;
        width: 112px;
    }

    .auth-panel h1 {
        font-size: 1.38rem;
    }

    .auth-card-footer {
        display: grid;
    }

    .two-factor-qr-panel,
    .two-factor-downloads {
        grid-template-columns: 1fr;
    }

    .two-factor-modal {
        align-items: flex-start;
        padding: 14px;
    }

    .two-factor-modal-card {
        padding: 18px;
    }

    .two-factor-modal-qr,
    .two-factor-modal-qr.is-large {
        min-height: 300px;
    }

    .app-shell,
    .form-grid,
    .detail-grid,
    .detail-upload-form,
    .attachment-grid,
    .filters,
    .dashboard-grid,
    .decrees-filters,
    .compdec-filters,
    .upload-form {
        grid-template-columns: 1fr;
    }

    .decree-filter-panel,
    .decree-main-info,
    .decree-status-grid,
    .decree-overview-grid,
    .compdec-filter-panel,
    .compdec-card-grid,
    .compdec-overview-grid {
        grid-template-columns: 1fr;
    }

    .compdec-filter-search,
    .compdec-filter-actions {
        grid-column: 1 / -1;
    }

    .compdec-filter-actions {
        justify-content: stretch;
    }

    .compdec-filter-actions .button,
    .compdec-card-actions .button {
        flex: 1;
    }

    .compdec-empty-state {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .pge-consistency-panel {
        grid-template-columns: 1fr;
    }

    .decree-disaster-info {
        grid-column: auto;
    }

    .decree-disaster-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .decree-disaster-symbol {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .decree-filter-actions {
        justify-content: stretch;
    }

    .decree-filter-actions .button {
        flex: 1;
    }

    .decree-card {
        padding: 14px;
    }

    .decree-filter-panel input,
    .decree-filter-panel select {
        min-height: 44px;
    }

    .decree-empty-state {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .decree-empty-actions {
        width: 100%;
        justify-content: stretch;
    }

    .decree-empty-actions .button {
        flex: 1;
        text-align: center;
    }

    .history-change-values {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(280px, 84vw);
        transform: translateX(-100%);
        transition: transform 0.18s ease;
        box-shadow: 12px 0 32px rgba(15, 23, 42, 0.18);
    }

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

    .menu-toggle {
        display: inline-block;
    }

    .page-header,
    .topbar,
    .detail-section-heading,
    .form-intro,
    .form-section-heading,
    .form-actions-sticky,
    .compdec-profile {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-intro p,
    .form-section-heading p {
        max-width: none;
    }

    .page-header-badge {
        align-self: flex-start;
    }

    .compdec-photo-edit {
        grid-template-columns: 1fr;
    }

    .segmented-options {
        grid-template-columns: 1fr;
    }

    .decree-type-field {
        grid-template-columns: 1fr;
    }

    .decree-type-options {
        border-radius: 8px;
    }

    .decree-type-heading {
        gap: 6px;
    }

    .decree-type-heading small {
        max-width: none;
        text-align: left;
    }

    .cobrade-step-grid,
    .modern-cobrade-preview {
        grid-template-columns: 1fr;
    }

    .cobrade-symbol-frame {
        height: 96px;
        width: 96px;
    }
}

@media (max-width: 640px) {
    .users-filter-panel,
    .user-card {
        padding: 14px;
    }

    .users-filter-panel,
    .user-card-main,
    .user-card-meta {
        grid-template-columns: 1fr;
    }

    .user-card-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .user-card-actions form,
    .user-card-actions .button,
    .user-detail-status form,
    .user-detail-status .button,
    .user-danger-zone .button,
    .user-form .button,
    .password-change-form .button {
        width: 100%;
    }

    .compdec-card-person {
        align-items: flex-start;
    }

    .compdec-card-actions,
    .compdec-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .compdec-photo-uploader {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .compdec-photo-preview {
        height: 180px;
    }

    .compdec-show-photo {
        height: 220px;
    }

    .compdec-edit-form input,
    .compdec-edit-form select,
    .compdec-edit-form textarea {
        min-height: 44px;
    }

    .compdec-map {
        height: 280px;
    }

    .compdec-status-options {
        grid-template-columns: 1fr;
    }

    .compdec-card,
    .compdec-filter-panel,
    .compdec-empty-state,
    .compdec-overview-grid > div {
        padding: 14px;
    }

    .compdec-filter-panel select {
        padding-right: 36px;
    }

    .compdec-empty-state .button {
        width: 100%;
    }

    .page-header-modern,
    .detail-section,
    .form-intro,
    .form-section,
    .standalone-field,
    .form-actions-sticky {
        padding: 14px;
    }

    .form-section-heading {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .detail-section-heading {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .form-section-heading div {
        align-items: flex-start;
    }

    .detail-section-heading div {
        align-items: flex-start;
    }

    .form-section-heading h2 {
        font-size: 16px;
    }

    .location-grid {
        gap: 12px;
    }

    .location-primary-field {
        padding: 12px;
    }

    .location-section input,
    .location-section select {
        min-height: 44px;
    }

    .cobrade-section select {
        min-height: 44px;
    }

    .institutional-section input,
    .institutional-section select,
    .damage-section input,
    .damage-section select,
    .evidence-section input,
    .evidence-section select,
    .evidence-detail-section input,
    .evidence-detail-section select {
        min-height: 44px;
    }

    .damage-resource-field,
    .damage-number-field,
    .damage-total-field,
    .evidence-section .attachment-dropzone {
        padding: 12px;
    }

    .observation-section textarea {
        min-height: 130px;
    }

    .detail-section-heading h2 {
        font-size: 16px;
    }

    .detail-overview-section .detail-card-grid,
    .detail-institutional-section .detail-card-grid,
    .detail-damage-section .human-damage-grid {
        gap: 12px;
    }

    .detail-card-grid > div span {
        font-size: 14px;
    }

    .human-damage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-intro strong {
        font-size: 16px;
    }

    .decree-form-modern .field label,
    .decree-form-modern .field-label,
    .modern-field > span {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .decree-type-options,
    .cobrade-step-grid,
    .modern-cobrade-preview {
        grid-template-columns: 1fr;
    }

    .segmented-option span {
        justify-content: center;
        min-height: 44px;
    }

    .attachment-dropzone {
        min-height: 180px;
    }

    .evidence-section .attachment-dropzone {
        min-height: 190px;
    }

    .cobrade-section .modern-cobrade-preview {
        gap: 12px;
    }

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

    .history-section .history-head {
        display: grid;
    }

    .history-section .history-head time {
        justify-self: start;
        white-space: normal;
    }

    .form-actions,
    .attachment-actions,
    .history-values,
    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .form-actions .button,
    .attachment-actions .button,
    .attachment-actions button,
    .actions .button,
    .form-actions button {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .page-header-modern,
    .detail-section,
    .form-intro,
    .form-section,
    .standalone-field,
    .form-actions-sticky {
        padding: 12px;
    }

    .decree-card,
    .decree-filter-panel,
    .decree-empty-state,
    .decree-overview-grid > div {
        padding: 12px;
    }

    .decree-filter-panel select,
    .inline-status-form select {
        padding-right: 36px;
    }

    .decree-form-modern {
        gap: 12px;
    }

    .location-section input,
    .location-section select {
        padding-left: 9px;
    }

    .location-section select {
        padding-right: 36px;
    }

    .cobrade-section select {
        padding-right: 36px;
    }

    .location-primary-field {
        padding: 10px;
    }

    .form-section-heading div {
        gap: 8px;
    }

    .detail-section-heading div {
        gap: 8px;
    }

    .form-section-heading span {
        height: 30px;
        min-width: 30px;
    }

    .detail-section-heading span {
        height: 30px;
        min-width: 30px;
    }

    .history-item {
        grid-template-columns: 1fr;
    }

    .history-marker {
        display: none;
    }

    .history-section .history-item:not(:last-child)::before {
        display: none;
    }

    .history-head {
        display: grid;
    }

    .detail-hero-modern > div,
    .detail-overview-section .detail-card-grid > div,
    .detail-institutional-section .detail-card-grid > div,
    .detail-damage-section .human-damage-grid > div {
        padding: 12px;
    }

    .human-damage-grid {
        grid-template-columns: 1fr;
    }

    .modern-cobrade-preview,
    .cobrade-step-grid .modern-field,
    .decree-type-field,
    .detail-card-grid > div,
    .human-damage-grid > div,
    .attachment-dropzone {
        padding: 12px;
    }

    input,
    select,
    textarea {
        font-size: 14px;
    }
}

.page-header,
.page-header-modern,
.decree-overview-grid,
.decree-filter-panel,
.decree-list,
.decree-card,
.decree-card-header,
.decree-card-body,
.decree-main-info,
.decree-status-grid,
.detail-section,
.detail-hero,
.detail-card-grid,
.detail-upload-form,
.form-section,
.decree-form-modern,
.form-grid,
.filters,
.compdec-overview-grid,
.compdec-filter-panel,
.compdec-card-list,
.compdec-card,
.compdec-card-header,
.compdec-card-grid {
    max-width: 100%;
    min-width: 0;
}

.decree-card,
.detail-section,
.form-section,
.decree-filter-panel,
.decree-overview-grid > div,
.decree-main-info > div,
.decree-status-block,
.compdec-filter-panel,
.compdec-card,
.compdec-card-grid > div {
    overflow-x: clip;
}

.decree-card-actions,
.attachment-actions,
.decree-filter-actions,
.compdec-filter-actions,
.compdec-card-actions,
.form-actions,
.form-actions-sticky,
.page-header .actions {
    flex-wrap: wrap;
}

.button,
.decree-card-actions a,
.attachment-actions a {
    min-width: 0;
}

@media (max-width: 800px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell,
    .sidebar-collapsed .app-shell {
        display: block;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .content-shell,
    .content {
        width: 100%;
        max-width: 100%;
    }

    .content {
        padding: 16px;
    }

    .sidebar,
    .sidebar-collapsed .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        display: grid;
        width: min(296px, 86vw);
        min-height: 100dvh;
        padding: 18px 14px;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 20px 0 52px rgba(15, 23, 42, 0.24);
    }

    .sidebar-open .sidebar,
    .sidebar-open.sidebar-collapsed .sidebar {
        transform: translateX(0);
    }

    .sidebar-collapsed .brand {
        justify-content: flex-start;
        padding: 10px;
    }

    .sidebar-collapsed .brand img {
        width: 50px;
        height: 50px;
    }

    .sidebar-collapsed .brand div,
    .sidebar-collapsed .nav a span {
        display: block;
    }

    .sidebar-collapsed .nav a {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .sidebar-collapse {
        display: none;
    }

    .topbar {
        position: sticky;
        top: 0;
        flex-direction: row;
        align-items: center;
        min-height: 68px;
        padding: 10px 14px;
    }

    .topbar-left {
        flex: 1 1 auto;
    }

    .topbar-title strong {
        font-size: 15px;
    }

    .topbar-session {
        gap: 8px;
    }

    .topbar-user {
        max-width: 150px;
    }

    .topbar-user > div:last-child {
        display: none;
    }

    .topbar form .button {
        min-height: 38px;
        padding-inline: 12px;
    }

    .page-header,
    .page-header-modern {
        gap: 12px;
    }

    .page-header .actions,
    .decree-card-actions,
    .attachment-actions {
        width: 100%;
        justify-content: stretch;
    }

    .page-header .actions .button,
    .decree-card-actions .button,
    .attachment-actions .button {
        flex: 1 1 120px;
    }
}

@media (max-width: 560px) {
    .content {
        padding: 12px;
    }

    .topbar {
        gap: 8px;
    }

    .topbar-title span {
        display: none;
    }

    .topbar form .button {
        min-width: 64px;
        padding-inline: 10px;
    }

    .decree-filter-actions,
    .form-actions-sticky {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .human-damage-grid,
    .decree-type-options {
        grid-template-columns: 1fr;
    }
}

.panel-page {
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: none;
    min-width: 0;
    transform: none;
    width: 100%;
}

.panel-page > * {
    max-width: 100%;
    min-width: 0;
}

@supports selector(:has(*)) {
    .content:has(.panel-page) {
        padding-inline: 12px;
    }
}

.panel-hero {
    align-items: end;
    border-color: #cbd8e3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    position: relative;
}

.panel-hero::before {
    background: #007c70;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.panel-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: 0;
}

.panel-filter-card,
.panel-map-section,
.panel-ranking-card,
.panel-recent-card,
.panel-indicator-grid article {
    background: #ffffff;
    border: 1px solid #cbd8e3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.panel-filter-card,
.panel-map-section,
.panel-ranking-card,
.panel-recent-card {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 2vw, 24px);
}

.panel-filter-card::before,
.panel-map-section::before,
.panel-ranking-card::before,
.panel-recent-card::before {
    background: #155e75;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.panel-filter-card {
    border-color: #cbd8e3;
    gap: 16px;
}

.section-heading {
    align-items: flex-start;
    border-bottom: 1px solid #e4e7ec;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 2px;
    min-width: 0;
    padding-bottom: 14px;
}

.section-heading > div {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.section-heading span {
    align-items: center;
    background: #007c70;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 10px;
    text-transform: none;
}

.panel-indicator-grid span {
    color: #52606d;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.section-heading h2 {
    color: #172331;
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
}

.section-heading small {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #52606d;
    font-weight: 700;
    line-height: 1.45;
    max-width: 520px;
    padding: 0;
    text-align: right;
}

.panel-filter-form {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.16fr);
    min-width: 0;
}

.panel-filter-primary {
    align-items: end;
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-column: 1;
    grid-template-columns: minmax(112px, 0.16fr) minmax(260px, 1.08fr) minmax(220px, 0.86fr);
    min-width: 0;
    padding: 10px;
}

.panel-filter-secondary {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-column: 1;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    min-width: 0;
}

.panel-filter-form .modern-field {
    background: #fbfdff;
    border: 1px solid #dbe7f1;
    border-left: 4px solid #d5e7e3;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
    gap: 7px;
    justify-content: stretch;
    min-height: 94px;
    min-width: 0;
    padding: 10px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.panel-filter-secondary .modern-field {
    min-height: 88px;
}

.panel-filter-form .modern-field > span {
    background: transparent;
    border-radius: 0;
    color: #52606d;
    display: block;
    font-size: 0.76rem;
    height: auto;
    justify-content: flex-start;
    line-height: 1.2;
    min-width: 0;
    padding: 0;
    text-transform: uppercase;
}

.panel-filter-year select {
    color: var(--color-primary-dark);
    font-size: 1.04rem;
    font-weight: 950;
    text-align: center;
}

.panel-filter-city select,
.panel-filter-region select {
    color: var(--color-primary-dark);
    font-weight: 900;
}

.panel-filter-form .modern-field:focus-within {
    border-color: #8fc5bb;
    border-left-color: #007c70;
    box-shadow: 0 0 0 4px rgba(0, 124, 112, 0.12);
    transform: none;
}

.panel-filter-form .modern-field select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #007c70 50%),
        linear-gradient(135deg, #007c70 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    border-color: #cbd8e3;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    min-width: 0;
    padding-right: 42px;
    width: 100%;
}

.panel-filter-form .modern-field small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.25;
    min-height: 18px;
    overflow-wrap: anywhere;
}

.panel-filter-actions {
    align-items: stretch;
    align-self: stretch;
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-content: stretch;
    min-width: 0;
    padding: 10px;
}

.panel-filter-actions .button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
    width: 100%;
}

.panel-indicator-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    min-width: 0;
}

.panel-indicator-grid article {
    border-left: 4px solid #d5e7e3;
    display: grid;
    gap: 8px;
    min-height: 128px;
    overflow: hidden;
    padding: 18px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.panel-indicator-grid article:hover {
    border-color: #8fc5bb;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.panel-indicator-grid article:nth-child(2),
.panel-indicator-grid article:nth-child(5) {
    border-left-color: #1d4ed8;
}

.panel-indicator-grid article:nth-child(6) {
    border-left-color: #0f766e;
}

.panel-indicator-grid article:nth-child(7) {
    border-left-color: #b45309;
}

.panel-indicator-compdec-ok {
    border-left-color: #0f766e !important;
}

.panel-indicator-compdec-ok strong {
    color: var(--color-primary);
}

.panel-indicator-compdec-missing {
    border-left-color: #b45309 !important;
}

.panel-indicator-compdec-missing strong {
    color: #b45309;
}

.panel-indicator-grid strong {
    color: #172331;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1;
}

.panel-indicator-grid small {
    color: var(--color-muted);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.panel-map-heading {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}

.panel-layer-toggles {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(15, 95, 134, 0.14);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
    min-width: 0;
    padding: 8px;
    width: 100%;
}

.panel-layer-option {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    min-width: 0;
    position: relative;
}

.panel-layer-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.panel-layer-option > span {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 95, 134, 0.12);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: var(--color-muted);
    display: grid;
    gap: 2px 9px;
    grid-template-columns: 18px minmax(0, 1fr);
    min-height: 56px;
    padding: 9px 11px;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.panel-layer-option i {
    align-self: center;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(15, 95, 134, 0.08);
    display: block;
    grid-row: 1 / span 2;
    height: 14px;
    width: 14px;
}

.panel-layer-option strong {
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.panel-layer-option small {
    color: var(--color-muted);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    min-width: 0;
    overflow-wrap: anywhere;
}

.panel-layer-option:hover > span {
    border-color: rgba(15, 95, 134, 0.26);
    box-shadow: 0 12px 26px rgba(14, 39, 55, 0.1);
    transform: translateY(-1px);
}

.panel-layer-option input:focus-visible + span {
    outline: 3px solid #83c5be;
    outline-offset: 2px;
}

.panel-layer-option input:not(:checked) + span {
    background: rgba(255, 255, 255, 0.5);
    filter: grayscale(0.35);
    opacity: 0.62;
}

.panel-layer-option input:checked + span {
    background: #ffffff;
    border-color: rgba(15, 95, 134, 0.28);
    box-shadow: 0 14px 30px rgba(14, 39, 55, 0.12);
}

.panel-layer-disasters i {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.panel-layer-compdecs i {
    background: conic-gradient(from 220deg, var(--color-primary) 0 50%, #f59e0b 50% 100%);
}

.panel-layer-ubms i {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.panel-map-shell {
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    padding: 10px;
}

.panel-map-canvas {
    background: #dceaf1;
    border-radius: 8px;
    min-height: clamp(540px, 70vh, 820px);
    overflow: hidden;
    width: 100%;
}

.panel-map-canvas .leaflet-control-attribution {
    font-size: 0.62rem;
}

.panel-map-tooltip {
    background: #172331;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 7px 10px;
}

.panel-map-tooltip::before {
    border-top-color: #172331;
}

.panel-map-footer {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}

.panel-map-footer p {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0;
}

.panel-map-footer p.is-warning {
    color: #92400e;
}

.panel-map-legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: 0;
}

.panel-map-legend span {
    align-items: center;
    color: #0f5f86;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 0.74rem;
    font-weight: 950;
    gap: 7px;
    min-width: 0;
    text-transform: uppercase;
    white-space: normal;
}

.panel-map-legend i {
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.panel-map-legend b {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 95, 134, 0.16);
    border-radius: 999px;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 950;
    justify-content: center;
    min-width: 24px;
    padding: 2px 7px;
}

.panel-map-legend i[data-layer="desastres"],
.panel-map-marker.is-desastres span {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.panel-map-legend i[data-layer="compdecs-com"],
.panel-map-marker.is-compdecs-com span {
    background: linear-gradient(135deg, var(--color-primary), #0f5f86);
}

.panel-map-legend i[data-layer="compdecs-sem"],
.panel-map-marker.is-compdecs-sem span {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.panel-map-legend i[data-layer="ubms"],
.panel-map-marker.is-ubms span {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.panel-map-legend i[data-layer="cluster"] {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.panel-map-marker,
.panel-map-cluster {
    align-items: center;
    background: transparent;
    display: grid;
    justify-content: center;
    place-items: center;
}

.panel-map-marker span {
    align-items: center;
    border: 3px solid #ffffff;
    border-radius: 999px 999px 999px 8px;
    box-shadow: 0 14px 28px rgba(14, 39, 55, 0.28);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    transform: rotate(-45deg);
    width: 42px;
}

.panel-map-marker b {
    color: #ffffff;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    line-height: 1;
    transform: rotate(45deg);
}

.panel-map-cluster span {
    align-items: center;
    background:
        radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.34), transparent 28%),
        conic-gradient(from 230deg, #dc2626 0 25%, var(--color-primary) 25% 50%, #f59e0b 50% 75%, #7c3aed 75% 100%);
    border: 4px solid #ffffff;
    border-radius: 999px;
    box-shadow:
        0 14px 28px rgba(14, 39, 55, 0.3),
        0 0 0 6px rgba(15, 95, 134, 0.14);
    color: #ffffff;
    display: grid;
    height: 58px;
    justify-items: center;
    line-height: 1;
    place-content: center;
    width: 58px;
}

.panel-map-cluster strong {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: -5px;
    min-width: 74px;
}

.panel-map-cluster em {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 95, 134, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(14, 39, 55, 0.18);
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 950;
    gap: 3px;
    line-height: 1;
    min-height: 19px;
    padding: 3px 5px 3px 3px;
}

.panel-map-cluster em i {
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.56rem;
    font-style: normal;
    height: 14px;
    justify-content: center;
    width: 14px;
}

.panel-map-cluster em[data-layer="desastres"] i {
    background: #dc2626;
}

.panel-map-cluster em[data-layer="compdecs-com"] i {
    background: var(--color-primary);
}

.panel-map-cluster em[data-layer="compdecs-sem"] i {
    background: #f59e0b;
}

.panel-map-cluster em[data-layer="ubms"] i {
    background: #7c3aed;
}

.panel-map-cluster b {
    color: #ffffff;
    font-size: 1.08rem;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
}

.panel-map-cluster small {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.52rem;
    font-weight: 950;
    text-transform: uppercase;
}

.panel-map-popup {
    display: grid;
    gap: 8px;
    max-width: min(320px, 78vw);
    min-width: min(240px, 72vw);
}

.panel-map-popup header {
    border-bottom: 1px solid rgba(15, 95, 134, 0.14);
    display: grid;
    gap: 2px;
    padding-bottom: 8px;
}

.panel-map-popup header strong {
    color: var(--color-primary-dark);
    font-size: 0.98rem;
}

.panel-map-popup header span,
.panel-map-popup div b,
.panel-map-popup.is-cluster section > b {
    color: #0f5f86;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.panel-map-popup div {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.panel-map-popup div span {
    color: var(--color-text);
    font-weight: 900;
    overflow-wrap: anywhere;
    text-align: right;
}

.panel-map-popup a {
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), #0f5f86);
    border-radius: 999px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 950;
    justify-content: center;
    margin-top: 4px;
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none;
}

.panel-map-popup.is-cluster {
    max-width: min(360px, 78vw);
    min-width: min(290px, 72vw);
}

.panel-map-popup.is-cluster section {
    border-top: 1px solid rgba(15, 95, 134, 0.14);
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.panel-map-popup.is-cluster ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel-map-popup.is-cluster li {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(15, 95, 134, 0.1);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 7px 8px;
}

.panel-map-popup.is-cluster li strong {
    color: var(--color-primary-dark);
    font-size: 0.82rem;
}

.panel-map-popup.is-cluster li span {
    color: var(--color-text);
    font-size: 0.76rem;
    font-weight: 950;
    text-align: right;
    white-space: normal;
}

.panel-bottom-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    min-width: 0;
}

.panel-ranking-list,
.panel-recent-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.panel-ranking-list article,
.panel-recent-list article {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #dbe7f1;
    border-left: 4px solid #d5e7e3;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-width: 0;
    padding: 12px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.panel-ranking-list article:hover,
.panel-recent-list article:hover {
    border-color: #8fc5bb;
    border-left-color: #007c70;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.panel-ranking-list article > div,
.panel-recent-list article > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.panel-ranking-list strong,
.panel-recent-list strong,
.panel-recent-list a {
    color: var(--color-primary-dark);
    font-weight: 950;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.panel-ranking-list span,
.panel-recent-list span {
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.3;
}

.panel-ranking-list b {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #bfe5dc;
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 950;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 6px 10px;
}

.panel-recent-status {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
}

.panel-empty-state {
    background: #f8fafc;
    border: 1px dashed #cbd8e3;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
    color: var(--color-muted);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    font-weight: 850;
    padding: 16px;
    text-align: center;
}

@media (max-width: 1380px) {
    .panel-filter-primary {
        grid-template-columns: minmax(118px, 0.22fr) minmax(240px, 1fr) minmax(210px, 0.9fr);
    }

    .panel-filter-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-map-heading,
    .panel-bottom-grid {
        grid-template-columns: 1fr;
    }

    .panel-layer-toggles {
        max-width: none;
    }
}

@media (max-width: 1180px) {
    .panel-filter-form {
        grid-template-columns: 1fr;
    }

    .panel-filter-actions {
        display: flex;
        flex-wrap: wrap;
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-end;
    }

    .panel-filter-actions .button {
        flex: 0 1 180px;
        width: auto;
    }
}

@media (max-width: 980px) {
    .panel-hero {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        display: grid;
    }

    .section-heading small {
        text-align: left;
    }

    .panel-hero-actions,
    .panel-layer-toggles {
        justify-content: flex-start;
    }

    .panel-layer-toggles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }

    .panel-map-footer {
        grid-template-columns: 1fr;
    }

    .panel-map-legend {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .panel-filter-primary,
    .panel-filter-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-filter-year {
        grid-column: 1 / -1;
    }

    .panel-filter-city {
        grid-column: auto;
    }

    .panel-filter-region {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .panel-page {
        width: 100%;
    }

    .panel-filter-primary,
    .panel-filter-secondary,
    .panel-indicator-grid {
        grid-template-columns: 1fr;
    }

    .panel-filter-actions,
    .panel-layer-toggles,
    .panel-map-legend {
        display: grid;
        justify-content: stretch;
    }

    .panel-layer-toggles {
        grid-template-columns: 1fr;
    }

    .panel-filter-actions .button,
    .panel-hero-actions .button {
        width: 100%;
    }

    .panel-map-shell {
        padding: 8px;
    }

    .panel-map-canvas {
        min-height: 460px;
    }

    .panel-ranking-list article,
    .panel-recent-list article {
        align-items: stretch;
        display: grid;
    }

    .panel-recent-status {
        align-items: flex-start;
    }
}
