html, body {
    min-height: 100%;
    background: #eef2f5;
    color: #17212b;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.login-shell,
.dashboard-shell {
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 2.5rem);
}

.login-shell {
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(10, 24, 38, 0.72), rgba(10, 24, 38, 0.72)),
        url("data:image/svg+xml,%3Csvg width='1200' height='800' viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='800' fill='%23293844'/%3E%3Cpath d='M0 560C170 510 260 600 410 540C560 480 630 340 800 370C970 400 1010 540 1200 480V800H0Z' fill='%233b4b55'/%3E%3Cpath d='M0 620C230 590 330 690 520 620C710 550 780 470 960 510C1060 532 1120 590 1200 570V800H0Z' fill='%231b2a35'/%3E%3Crect x='78' y='152' width='215' height='18' rx='4' fill='%23d8b64c' opacity='.55'/%3E%3Crect x='78' y='188' width='330' height='10' rx='3' fill='%23eef2f5' opacity='.28'/%3E%3Crect x='78' y='214' width='270' height='10' rx='3' fill='%23eef2f5' opacity='.22'/%3E%3Ccircle cx='982' cy='202' r='76' fill='%23d8b64c' opacity='.22'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.login-panel {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    color: #fff;
}

.login-brand {
    display: grid;
    justify-items: start;
    gap: clamp(1rem, 3vw, 1.6rem);
}

.login-logo {
    width: clamp(9rem, 22vw, 13.5rem);
    height: auto;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .34));
}

.eyebrow {
    margin: 0 0 .4rem;
    color: #d8b64c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08rem;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.3rem, 7vw, 5.4rem);
    font-weight: 800;
    line-height: .95;
}

.login-copy {
    max-width: 34rem;
    margin: 1rem 0 0;
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
}

.login-form {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 3vw, 1.45rem);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    color: #17212b;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.login-access-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.login-mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3.2rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.login-mode-button:disabled {
    opacity: .65;
    cursor: wait;
}

.login-patrol {
    border-color: #2083b5;
    background: #7dd3fc;
    color: #082f49;
}

.login-patrol:hover:not(:disabled) {
    background: #38bdf8;
}

.login-ccop {
    border-color: #a87900;
    background: #ffd400;
    color: #241b00;
}

.login-ccop:hover:not(:disabled) {
    background: #f2c200;
}

.login-spinner,
.login-wait-spinner {
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    border: 3px solid rgba(255,255,255,.55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin .75s linear infinite;
}

.login-wait-panel {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #1d4f8f;
    border-radius: 6px;
    background: #eff6ff;
    color: #123f73;
    font-size: .92rem;
    font-weight: 700;
}

.login-wait-spinner {
    flex: 0 0 auto;
    border-color: rgba(29,79,143,.22);
    border-top-color: #1d4f8f;
}

.login-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 25, 38, .68);
    backdrop-filter: blur(2px);
}

.login-progress-dialog {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: min(31rem, 100%);
    padding: 1.15rem 1.25rem;
    border: 1px solid #76bde5;
    border-radius: 6px;
    background: #fff;
    color: #123f73;
    box-shadow: 0 14px 42px rgba(0, 0, 0, .28);
}

.login-progress-dialog .login-wait-spinner {
    width: 2rem;
    height: 2rem;
    border-width: 4px;
}

.login-progress-content {
    display: grid;
    gap: .55rem;
    min-width: 0;
}

.login-progress-content strong {
    line-height: 1.3;
}

.login-progress-content small {
    color: #526b7d;
    font-weight: 700;
}

.login-progress-track {
    width: 100%;
    height: .72rem;
    overflow: hidden;
    border-radius: 4px;
    background: #dbe7ef;
}

.login-progress-track span {
    display: block;
    height: 100%;
    background: #159447;
    transition: width .22s ease;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.field-group {
    display: grid;
    gap: .4rem;
}

.field-group label {
    font-size: .86rem;
    font-weight: 700;
}

.patrol-message-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
}

.patrol-message-button,
.patrol-message-send {
    min-height: 3rem;
    padding: .55rem 1rem;
    border: 1px solid #9f7800;
    border-radius: 6px;
    background: #ffd400;
    color: #171300;
    font-weight: 900;
}

.patrol-message-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.patrol-message-composer {
    grid-column: 1 / -1;
    display: grid;
    gap: .65rem;
    margin-top: .35rem;
    padding: .9rem;
    border: 2px solid #d7aa00;
    background: #fff9d8;
}

.urgent-message-check {
    color: #9b1c13;
}

.patrol-message-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(6, 18, 27, .82);
}

.patrol-message-dialog {
    width: min(92vw, 680px);
    padding: 1.6rem;
    border: 4px solid #ffd400;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
    text-align: center;
}

.patrol-message-dialog h2 {
    margin: .2rem 0 1rem;
    color: #15324a;
    font-size: 1.7rem;
}

.patrol-message-text {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    white-space: pre-wrap;
}

.patrol-message-overlay.is-urgent {
    animation: urgent-overlay-pulse .8s infinite alternate;
}

.patrol-message-overlay.is-urgent .patrol-message-dialog {
    border-color: #d51d16;
    background: #fff2f0;
}

.patrol-message-overlay.is-urgent .patrol-message-dialog h2 {
    color: #b42318;
}

@keyframes urgent-overlay-pulse {
    from { background: rgba(74, 0, 0, .78); }
    to { background: rgba(170, 12, 5, .9); }
}

.patrol-read-confirmation {
    position: fixed;
    top: 1rem;
    left: 50%;
    z-index: 21000;
    display: grid;
    grid-template-columns: 2.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    width: min(92vw, 650px);
    padding: .9rem 1rem;
    border: 2px solid #14804a;
    border-radius: 7px;
    background: #effcf4;
    color: #123524;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .3);
    transform: translateX(-50%);
}

.patrol-read-confirmation-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #14804a;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
}

.patrol-read-confirmation strong,
.patrol-read-confirmation p {
    margin: 0;
}

.patrol-read-confirmation p { margin-top: .2rem; }

.patrol-read-confirmation button {
    min-height: 2.5rem;
    padding: .45rem .9rem;
    border: 0;
    border-radius: 5px;
    background: #14804a;
    color: #fff;
    font-weight: 800;
}

.form-control {
    min-height: 3rem;
    border-radius: 6px;
}

.agent-picker {
    position: relative;
}

.agent-picker-panel {
    position: absolute;
    top: calc(100% + .15rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .2);
}

.agent-picker-panel.is-open {
    display: grid;
}

.agent-picker-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    padding: .65rem .8rem;
    background: #fff;
    color: #12202f;
    font: inherit;
    text-align: left;
}

.agent-picker-option:hover,
.agent-picker-option:focus {
    background: #e8f4fb;
    outline: none;
}

.agent-picker-option.empty-option {
    color: #6b7280;
    cursor: default;
}

.agent-picker-option.empty-option:hover,
.agent-picker-option.empty-option:focus {
    background: #fff;
}

.inline-button-field {
    position: relative;
}

.inline-button-field .form-control {
    padding-right: 6.4rem;
}

.inline-button-field.password-field .form-control {
    padding-right: 3.7rem;
}

.inline-button-field.three-actions .form-control {
    padding-right: 12.4rem;
}

.inline-button-field.doi-three-actions .form-control {
    padding-right: 13.3rem;
}

.inline-button-field.doi-action-three-buttons .form-control {
    padding-right: 11.4rem;
}

.inline-button-field.vehicle-lookup-actions .form-control {
    padding-right: 12.4rem;
}

.inline-button-field.doi-check-inline-actions .form-control {
    padding-right: 12.3rem;
}

.inline-button-field.doi-check-read-actions .form-control {
    padding-right: 7.95rem;
}

.inline-button-field.doi-action-four-buttons .form-control {
    padding-right: 15.9rem;
}

.inline-button-field.doi-check-dgt-pip-actions .form-control {
    padding-right: 12.15rem;
}

.inline-button-field.doi-check-single-action .form-control {
    padding-right: 3.8rem;
}

.inline-button-field.vehicle-related-actions .form-control {
    padding-right: 11.2rem;
}

.inline-field-button {
    position: absolute;
    top: 50%;
    right: .35rem;
    display: inline-grid;
    place-items: center;
    width: auto;
    min-height: 2.15rem;
    padding: 0 .65rem;
    border: 0;
    border-radius: 6px;
    background: #123f73;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.password-toggle-button {
    width: 2.75rem;
    min-width: 2.75rem;
    background: #174a80;
}

.password-toggle-button::before {
    content: "";
    width: 1.18rem;
    height: .78rem;
    border: 2px solid #fff;
    border-radius: 999px / 760px;
}

.password-toggle-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.password-toggle-button.is-visible::after {
    width: 1.45rem;
    height: 2px;
    border-radius: 0;
    background: #fff;
    transform: translate(-50%, -50%) rotate(-35deg);
}

.inline-button-field.three-actions .inline-field-button:first-of-type {
    right: 8.35rem;
}

.inline-button-field.three-actions .inline-field-button:last-of-type {
    right: .35rem;
    min-width: 7.55rem;
}

.inline-button-field.doi-action-three-buttons .dni-inline-button {
    right: 7.75rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-action-three-buttons .dgt-inline-button {
    right: 4.1rem;
    min-width: 3.3rem;
}

.inline-button-field.doi-action-three-buttons .ip-inline-button {
    right: .35rem;
    min-width: 3.4rem;
}

.inline-button-field.doi-three-actions .folder-inline-button {
    right: 9.55rem;
    min-width: 2.75rem;
}

.inline-button-field.doi-three-actions .dgt-inline-button {
    right: 5.85rem;
    min-width: 3.3rem;
}

.inline-button-field.doi-three-actions .ip-inline-button {
    right: .35rem;
    min-width: 5rem;
}

.inline-button-field.doi-three-actions .dni-folder-action::before {
    border-color: #fff;
}

.inline-button-field.doi-three-actions .dni-folder-action::after {
    background: #fff;
}

.inline-button-field.vehicle-lookup-actions .inline-field-button:first-of-type {
    right: 8.35rem;
}

.inline-button-field.vehicle-lookup-actions .inline-field-button:last-of-type {
    right: .35rem;
    min-width: 7.55rem;
}

.inline-button-field.doi-check-inline-actions .doi-check-action {
    right: 7.9rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-check-read-actions .doi-check-action {
    right: 4.2rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-check-inline-actions .dni-inline-button,
.inline-button-field.doi-check-inline-actions .doi-read-action {
    right: 4.2rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-check-read-actions .dni-inline-button,
.inline-button-field.doi-check-read-actions .doi-read-action {
    right: .35rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-check-inline-actions .ip-inline-button {
    right: .35rem;
    min-width: 3.5rem;
}

.inline-button-field.doi-action-four-buttons .doi-check-action {
    right: 12.15rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-check-dgt-pip-actions .doi-check-action {
    right: 8.45rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-action-four-buttons .dni-inline-button {
    right: 8.45rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-action-four-buttons .dgt-inline-button,
.inline-button-field.doi-check-dgt-pip-actions .dgt-inline-button {
    right: 4.75rem;
    min-width: 3.35rem;
}

.inline-button-field.doi-action-four-buttons .ip-inline-button,
.inline-button-field.doi-check-dgt-pip-actions .ip-inline-button {
    right: .35rem;
    min-width: 4rem;
}

.inline-button-field.doi-check-single-action .doi-check-action {
    right: .35rem;
    min-width: 3.1rem;
}

.inline-button-field.vehicle-related-actions .inline-field-button {
    width: 2.35rem !important;
    min-width: 2.35rem;
    max-width: 2.35rem;
    padding: 0 .55rem;
}

.inline-button-field.vehicle-related-actions .action-camera {
    right: 8.45rem;
}

.inline-button-field.vehicle-related-actions .action-folder {
    right: 5.75rem;
}

.inline-button-field.vehicle-related-actions .action-vip {
    right: .35rem;
    width: 5rem !important;
    min-width: 5rem;
    max-width: 5rem;
}

.inline-button-field.vehicle-related-actions .embedded-icon-button {
    position: absolute !important;
    top: 50% !important;
    display: inline-grid !important;
    place-items: center;
    width: 2.35rem !important;
    min-width: 2.35rem !important;
    max-width: 2.35rem !important;
    height: 2.15rem !important;
    min-height: 2.15rem !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
}

.inline-button-field.vehicle-related-actions .dni-folder-action::before {
    border-color: #fff;
}

.inline-button-field.vehicle-related-actions .dni-folder-action::after {
    background: #fff;
}

.inline-button-field.location-actions .form-control {
    padding-right: 11.8rem;
}

.inline-button-field.coordinate-actions .form-control {
    padding-right: 13rem;
}

.inline-button-field.location-actions .inline-field-button:first-of-type {
    right: 7.35rem;
}

.inline-button-field.location-actions .inline-field-button:last-of-type {
    right: .35rem;
}

.inline-button-field.coordinate-actions .inline-field-button:first-of-type {
    right: 5.05rem;
    min-width: 7.15rem;
}

.inline-button-field.coordinate-actions .inline-field-button:last-of-type {
    right: .55rem;
    min-width: 4rem;
}

.ip-inline-button {
    background: #7a271a;
}

.vehicle-interest-field label {
    color: #b42318;
}

.vehicle-interest-inline {
    display: inline-flex;
    margin-left: .55rem;
    padding: .16rem .45rem;
    border-radius: 999px;
    background: #fee4e2;
    color: #b42318;
    font-size: .78rem;
    font-weight: 900;
    vertical-align: middle;
}

.vehicle-interest-input {
    background: #fff1f0 !important;
    border-color: #d92d20 !important;
    color: #7a170f;
}

.compact-summary {
    margin-top: .35rem;
    padding: .45rem .6rem;
    border-left: 3px solid #1f4f7a;
    border-radius: 4px;
    background: #edf6fb;
    color: #43576a;
    font-size: .78rem;
    line-height: 1.35;
}

.vehicle-interest-field .compact-summary {
    border-left-color: #b42318;
    background: #fff1f0;
    color: #7a170f;
}

.phone-highlight-field {
    grid-column: span 1;
}

.phone-highlight-field label {
    color: #123f73;
    font-weight: 900;
}

.phone-inline-actions {
    display: block;
    width: min(100%, 18rem);
    min-height: 3rem;
    padding: .2rem .5rem;
    border: 1px solid #2b6cb0;
    border-radius: 6px;
    background: #fff;
}

.phone-inline-actions:has(.phone-special-input) {
    border-color: #d92d20;
    background: #fff1f0;
}

.phone-highlight-input {
    min-width: 0;
    width: 100%;
    min-height: 2.5rem;
    padding: .2rem 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #123f73 !important;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.phone-highlight-input:disabled {
    opacity: 1;
    -webkit-text-fill-color: #123f73;
}

.phone-special-input {
    min-width: 0;
    width: 100%;
    min-height: 2.5rem;
    padding: .2rem 0;
    border: 0 !important;
    outline: 0;
    background: #fff1f0 !important;
    color: #d00000 !important;
    -webkit-text-fill-color: #d00000;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.phone-special-input:disabled {
    opacity: 1;
}

.phone-special-summary {
    display: block;
    width: 100%;
    max-width: 100%;
    border-left-color: #d92d20;
    background: #fff1f0;
    color: #7a170f;
    font-weight: 800;
    overflow-wrap: anywhere;
    white-space: normal;
}

.dgt-summary-text {
    color: #123f73;
    border-color: #2b6cb0;
    background: #eff6ff;
    font-weight: 700;
}

.article-search-box {
    position: relative;
}

.article-suggestions {
    position: absolute;
    z-index: 80;
    top: calc(100% + .25rem);
    left: 0;
    right: 0;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(10, 31, 48, .18);
}

.article-suggestion {
    display: block;
    width: 100%;
    padding: .65rem .8rem;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    color: #142231;
    text-align: left;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}

.article-suggestion:hover,
.article-suggestion:focus {
    background: #eef6ff;
    outline: none;
}

.infraction-text {
    font-size: .92rem;
    line-height: 1.35;
}

.primary-action,
.secondary-action,
.police-action,
.danger-action,
.success-action,
.whatsapp-action,
.module-button {
    border: 0;
    border-radius: 6px;
    font-weight: 700;
}

.primary-action {
    min-height: 3.1rem;
    color: #fff;
    background: #14532d;
}

.primary-action:hover {
    background: #0f3f22;
}

.primary-action:disabled {
    opacity: .72;
}

.secondary-action {
    min-height: 2.75rem;
    padding: 0 1rem;
    color: #17212b;
    background: #dfe7ec;
}

.toolbar-list-action,
.toolbar-agent-action,
.toolbar-print-action,
.toolbar-back-action {
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
}

.toolbar-list-action {
    background: #1f6f8b;
}

.toolbar-agent-action {
    background: #277a4f;
}

.toolbar-print-action {
    background: #5b3ba6;
}

.toolbar-back-action {
    background: #536271;
}

.police-action,
.danger-action,
.success-action,
.whatsapp-action {
    min-height: 2.75rem;
    padding: 0 1rem;
    color: #fff;
}

.police-action {
    background: #123f73;
}

.police-action:hover {
    background: #0d315a;
}

.danger-action {
    background: #b42318;
}

.danger-action:hover {
    background: #8f1c13;
}

.success-action {
    background: #1f7a4d;
}

.success-action:hover {
    background: #17603c;
}

.whatsapp-action {
    background: #25d366;
}

.whatsapp-action:hover {
    background: #1ebe5d;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.action-icon::before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: var(--action-icon) center / contain no-repeat;
    mask: var(--action-icon) center / contain no-repeat;
}

.action-new {
    --action-icon: url("/iconos/nuevo-registro.png");
    background: #1f7a4d !important;
    color: #fff !important;
}

.action-new:hover {
    background: #17603c;
}

.action-refresh {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12a9 9 0 0 1-15.3 6.4L3 16m0 0v5h5M3 12A9 9 0 0 1 18.3 5.6L21 8m0 0V3h-5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: #8ed4f8 !important;
    color: #07324c !important;
}

.action-search {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='m16 16 5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.action-refresh:hover {
    background: #6fc2ee;
}

.action-home {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5M5.5 10v10h13V10M9.5 20v-6h5v6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: #f4a3a3 !important;
    color: #5f1414 !important;
}

.action-home:hover {
    background: #e98585;
}

.action-close {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.action-logout {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 5H5v14h5M14 8l4 4-4 4M18 12H9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-delete {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 14h10l1-14M9 7V4h6v3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: #b42318 !important;
    color: #fff !important;
}

.action-edit {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-delete:hover {
    background: #8f1c13;
}

.action-lock-closed {
    --action-icon: url("/iconos/parte-lock-closed.png");
    color: #fff !important;
}

.action-lock-open {
    --action-icon: url("/iconos/parte-lock-open.png");
    color: #fff !important;
}

.action-lock-closed::before,
.action-lock-open::before {
    background: #fff !important;
}

.action-save {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h12l2 2v14H5V4ZM8 4v6h8V4M8 20v-6h8v6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: #14532d !important;
    color: #fff !important;
}

.action-save:hover {
    background: #0f3f22;
}

.action-document {
    --action-icon: url("/iconos/acta-policial.png");
    background: #1769aa !important;
    color: #fff !important;
}

.action-document:hover {
    background: #125487;
}

.action-video {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h11a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2ZM17 10l5-3v10l-5-3' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-camera {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h3l1.4-2h7.2L17 8h3v11H4V8ZM12 17a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.reportaje-disponible {
    background: #f4c542 !important;
    color: #102536 !important;
    box-shadow: 0 0 0 3px rgba(244, 197, 66, .35), 0 0 18px rgba(244, 197, 66, .78);
}

.reportaje-disponible:hover {
    background: #ffd85c !important;
}

.action-folder {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h7l2 2h9v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-dni {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='black' stroke-width='2.1'/%3E%3Ccircle cx='9' cy='11' r='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M6.5 17c.7-2 4.3-2 5 0M14 10h4M14 14h4' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
    background: #174a80 !important;
    color: #fff !important;
}

.action-collapse {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m18 15-6-6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-signature {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19c3-1 4-5 6-10 1-2 3-2 3 0 0 4-4 8-2 9 2 1 4-4 6-4 1 0 1 2 2 2h2M14 5l3 3' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-certificate {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14v10H5V4ZM8 8h8M8 11h5M12 15l2 5 2-3 3 1-2-5' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-pdf-cajon {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h8l4 4v14H6V3ZM14 3v5h4M8 17c2-4 3-8 4-8 1 0 1 4 2 5 1 1 3 0 4 1M8 17c3-1 6-1 10-1' fill='none' stroke='black' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 6px;
    background: #e31b23 !important;
    color: #fff !important;
    font-weight: 800;
}

.action-pdf-cajon:hover {
    background: #b8121a;
}

.action-email {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v12H4V6ZM4 7l8 6 8-6' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.action-print {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 8V4h10v4M7 17H5a2 2 0 0 1-2-2v-4h18v4a2 2 0 0 1-2 2h-2M7 14h10v6H7v-6Z' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: #e31b23 !important;
    color: #fff !important;
}

.police-action:disabled,
.danger-action:disabled,
.success-action:disabled,
.whatsapp-action:disabled {
    opacity: .72;
}

.login-error {
    padding: .75rem;
    border-left: 4px solid #b42318;
    background: #fff1f0;
    color: #8a1f17;
    font-size: .9rem;
}

.confirm-box {
    display: grid;
    gap: .8rem;
    margin: .9rem 0 1rem;
    padding: 1rem;
    border: 2px solid #8bb7df;
    border-left-width: 6px;
    border-radius: 8px;
    background: #eaf5ff;
    color: #17212b;
    font-size: .95rem;
    box-shadow: 0 10px 24px rgba(10, 24, 38, .16);
}

.confirm-box p {
    margin: 0;
}

.danger-confirm {
    border-color: #b42318;
    background: #fff1f0;
    color: #7a1b14;
}

.confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        linear-gradient(rgba(10, 24, 38, 0.72), rgba(10, 24, 38, 0.72)),
        url("data:image/svg+xml,%3Csvg width='1200' height='800' viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='800' fill='%23293844'/%3E%3Cpath d='M0 560C170 510 260 600 410 540C560 480 630 340 800 370C970 400 1010 540 1200 480V800H0Z' fill='%233b4b55'/%3E%3Cpath d='M0 620C230 590 330 690 520 620C710 550 780 470 960 510C1060 532 1120 590 1200 570V800H0Z' fill='%231b2a35'/%3E%3Crect x='78' y='152' width='215' height='18' rx='4' fill='%23d8b64c' opacity='.55'/%3E%3Crect x='78' y='188' width='330' height='10' rx='3' fill='%23eef2f5' opacity='.28'/%3E%3Crect x='78' y='214' width='270' height='10' rx='3' fill='%23eef2f5' opacity='.22'/%3E%3Ccircle cx='982' cy='202' r='76' fill='%23d8b64c' opacity='.22'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.dashboard-header {
    width: min(100%, 560px);
    margin: 0 auto clamp(1.25rem, 4vw, 2rem);
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.header-copy {
    min-width: 0;
    flex: 1;
}

.dashboard-header h1 {
    color: #fff;
    text-shadow: 0 12px 28px rgba(0,0,0,.2);
}

.dashboard-header .header-copy p:last-child {
    margin: .2rem 0 0;
    color: rgba(255,255,255,.74);
}

.dashboard-header .header-copy p:nth-last-child(2) {
    margin: .8rem 0 0;
    color: rgba(255,255,255,.82);
}

.dashboard-header-side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: .65rem;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: .45rem;
}

.header-icon-action {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 6px;
    border: 1px solid rgba(216, 182, 76, .55);
    background: #20313f;
    color: #d8b64c;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.header-icon-action:hover {
    background: #172633;
    border-color: #d8b64c;
}

.header-icon-action svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jefatura-logo {
    width: clamp(74px, 14vw, 118px);
    height: clamp(74px, 14vw, 118px);
    object-fit: contain;
    flex: 0 0 auto;
    margin-top: .15rem;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}

.action-grid {
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem .75rem;
}

.menu-category-grid {
    width: min(66.666%, 347px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.main-menu-shell {
    min-height: 100dvh;
    box-sizing: border-box;
    position: relative;
}

.dashboard-shell.main-menu-shell:has(> .menu-category-grid) > .dashboard-header {
    flex: 0 0 auto;
    margin-bottom: 0;
    position: relative;
}

.main-menu-shell > .menu-category-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-content: center;
    padding-block: .75rem;
    box-sizing: border-box;
}

.menu-quick-checks {
    position: absolute;
    left: calc((100vw - 100%) / -2 + max(.35rem, env(safe-area-inset-left)));
    top: calc(100% + 1rem);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: .65rem;
}

.menu-quick-check-button {
    width: auto;
    height: clamp(3.3rem, 13vw, 4.35rem);
    aspect-ratio: var(--quick-icon-ratio, 1);
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease;
}

.quick-check-dni {
    --quick-icon-ratio: 147 / 100;
}

.menu-quick-check-button.quick-ccop {
    height: clamp(4rem, 16vw, 5.35rem);
}

.ccop-shell {
    min-height: 100dvh;
    padding: clamp(1rem, 2vw, 2rem);
    color: #12283b;
    background: #eef3f6;
}

.ccop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #1f6b91;
}

.ccop-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 30rem;
    padding: .35rem 0;
    border: 0;
    background: transparent;
}

.ccop-intro img {
    width: 135px;
    height: 105px;
    object-fit: contain;
}

.ccop-intro h2,
.ccop-intro p {
    margin: 0;
    letter-spacing: 0;
}

.ccop-intro h2 { font-size: 1.65rem; }
.ccop-intro p { margin-top: .45rem; }

.ccop-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ccop-brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.ccop-brand h1,
.ccop-brand h2,
.ccop-brand p {
    margin: 0;
    letter-spacing: 0;
}

.ccop-brand h1 {
    margin-top: .2rem;
    font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.ccop-brand h2 {
    margin-top: .5rem;
    color: #0b5278;
    font-size: clamp(1.05rem, 1.8vw, 1.55rem);
}

.ccop-logout {
    min-height: 2.8rem;
    padding: .6rem 1rem;
    border: 0;
    border-radius: 6px;
    background: #a9251b;
    color: #fff;
    font-weight: 700;
}

.ccop-session-data {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 2rem;
    padding: 1rem 0 .35rem;
    font-size: .95rem;
    align-items: center;
}

.ccop-operator {display:flex;align-items:center;gap:.65rem;min-width:0;}
.ccop-operator-photo {display:block;width:64px;height:72px;flex:0 0 64px;object-fit:cover;border:1px solid #b8c9d3;border-radius:4px;background:#fff;}
.ccop-operator > div {display:grid;gap:.2rem;line-height:1.35;}
.ccop-row-tools {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;}
.ccop-row-tools > button {min-height:42px;padding:.5rem .75rem;font-size:.85rem;}
.ccop-direct-filters {display:flex;align-items:end;gap:.5rem;min-width:0;}
.ccop-direct-filters label {display:grid;gap:.25rem;width:135px;min-width:0;font-size:.85rem;}
.ccop-direct-filters .form-control {width:100%;box-sizing:border-box;min-height:40px;padding:.5rem .6rem;border:1px solid #b6c9da;border-radius:4px;background:#fff;color:#102737;font:inherit;}
.ccop-grid-panel .rejilla-listado-tools {gap:.5rem;padding:.25rem 0 .6rem;}

@media(max-width:600px) {
    .ccop-grid-panel .rejilla-listado-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;}
    .ccop-grid-panel .rejilla-listado-tools > .rejilla-listado-acciones,
    .ccop-grid-panel .rejilla-listado-tools > .ccop-direct-filters,
    .ccop-grid-panel .rejilla-listado-tools > label:first-of-type {grid-column:1/-1;}
    .ccop-direct-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
    .ccop-direct-filters label {width:auto;}
    .ccop-grid-panel .rejilla-listado-tools > label {margin:0;}
    .ccop-row-tools > button {flex:1 1 auto;}
    .ccop-grid-panel .rejilla-listado-acciones, .ccop-row-tools {width:100%;}
}

.ccop-turn-selector {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
}

.ccop-turn-selector select {
    min-height: 2.55rem;
    padding: .4rem 2rem .4rem .65rem;
    border: 1px solid #287096;
    border-radius: 5px;
    background: #fff;
    color: #12283b;
    font-weight: 800;
}

.ccop-operational-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .42rem;
    min-width: 0;
}

.ccop-part-button {display:inline-flex;align-items:center;gap:.5rem;flex:0 0 10.25rem;width:10.25rem;min-height:52px;padding:.45rem .7rem;border:1px solid #91acc0;border-radius:6px;background:#fff;color:#123f73;white-space:nowrap;}
.ccop-part-button.action-document {background:#fff !important;color:#123f73 !important;}
.ccop-part-button.action-document:hover:not(:disabled) {background:#e8f2f8 !important;}
.ccop-part-button:disabled {cursor:default;}
.ccop-part-labels {display:grid;gap:.15rem;min-width:0;text-align:left;font-weight:700;font-size:.85rem;}
.ccop-part-labels > * {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ccop-part-status.parte-abierto {color:#b42318;}
.ccop-part-status.parte-cerrado {color:#166534;}
.ccop-part-status.sin-parte {color:#526475;}

.ccop-organization-button {
    min-height: 3.25rem;
    padding: .65rem 1rem;
    border: 1px solid #087b34;
    border-radius: 6px;
    background: #22c55e;
    color: #000;
    font-weight: 900;
    white-space: nowrap;
}

.ccop-organization-button:hover,
.ccop-organization-button:focus-visible {
    background: #16a34a;
    color: #000;
}

.ccop-quick-button {
    flex: 0 0 auto;
    width: auto;
    height: 3.9rem;
    aspect-ratio: var(--quick-icon-ratio, 1);
    padding: 0;
    border: 0;
    background: transparent;
}

.ccop-quick-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ccop-session-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
}

@media (min-width: 1400px) {
    .ccop-session-data {
        flex-wrap: wrap;
        gap: .65rem;
    }

    .ccop-session-data > span,
    .ccop-turn-selector,
    .ccop-session-actions {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ccop-operational-shortcuts {
        flex: 0 1 auto;
        gap: .22rem;
    }

    .ccop-quick-button {
        height: 3.25rem;
    }

    .ccop-session-actions {
        gap: .4rem;
    }

    .ccop-session-actions > button {
        padding-right: .75rem;
        padding-left: .75rem;
    }
}

.ccop-patrol-message {
    min-height: 2.8rem;
    padding: .6rem 1rem;
    border: 1px solid #9f7800;
    border-radius: 6px;
    background: #ffd400;
    color: #171300;
    font-weight: 900;
    white-space: nowrap;
}

.ccop-patrol-message:hover:not(:disabled),
.ccop-patrol-message:focus-visible:not(:disabled) {
    background: #efc300;
}

.ccop-patrol-message:disabled { opacity: .5; cursor: not-allowed; }

.ccop-patrol-message-composer {
    display: grid;
    gap: .8rem;
    margin-top: .8rem;
    padding: 1rem;
    border: 2px solid #d7aa00;
    background: #fff9d8;
}

.ccop-patrol-message-heading,
.ccop-patrol-message-footer {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ccop-patrol-message-heading {
    justify-content: space-between;
    color: #17384a;
    font-size: 1.05rem;
}

.ccop-patrol-message-heading button {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17384a;
    font-size: 1.65rem;
}

.ccop-patrol-message-fields {
    display: grid;
    grid-template-columns: minmax(14rem, .65fr) minmax(20rem, 2fr);
    gap: .85rem;
}

.ccop-patrol-message-text-field textarea {
    min-height: 5rem;
}

.ccop-patrol-message-footer {
    justify-content: flex-end;
}

.ccop-patrol-message-footer .urgent-message-check {
    margin-right: auto;
}

.ccop-patrol-message-counter {
    color: #5f6870;
    font-size: .82rem;
    white-space: nowrap;
}

.ccop-calendar-open {
    min-height: 2.8rem;
    padding: .6rem 1rem;
    border: 1px solid #a87900;
    border-radius: 6px;
    background: #ffd400;
    color: #211900;
    font-weight: 900;
}

.ccop-calendar-open:hover,
.ccop-calendar-open:focus-visible {
    background: #efc300;
}

.ccop-patrol-map {
    min-height: 2.8rem;
    padding: .6rem 1rem .6rem 2.65rem;
    border: 1px solid #0c577c;
    border-radius: 6px;
    background-color: #17688b;
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
}

.ccop-patrol-map:hover,
.ccop-patrol-map:focus-visible {
    background-color: #0f5776;
    color: #fff;
}

.ccop-module-tabs {
    display: grid;
    grid-template-columns: minmax(16.5rem, 1.4fr) repeat(7, minmax(0, 1fr));
    gap: .55rem;
    padding: .25rem 0 .65rem;
}

@media (min-width: 901px) {
    .ccop-module-tabs button:first-child { white-space: nowrap; }
}

@media (min-width: 901px) and (max-width: 1399px) {
    .ccop-module-tabs { grid-template-columns: minmax(16.5rem, 1.4fr) repeat(3, minmax(0, 1fr)); }
}

.ccop-module-tabs button {
    min-height: var(--ccop-button-height, 3.4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .6rem .7rem;
    border: 1px solid #23688d;
    border-radius: 6px;
    background: #145b80;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
}

.ccop-module-tabs button:hover,
.ccop-module-tabs button:focus-visible {
    background: #0d4665;
}

.ccop-module-tabs button span {
    display: inline-grid;
    place-items: center;
    min-width: 1.55rem;
    height: 1.55rem;
    margin-left: 0;
    flex-shrink: 0;
    padding: 0 .25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.ccop-module-tabs button.has-records {
    border-color: #b78a00;
    background: #f2c500;
    color: #111;
}

.ccop-module-tabs button.has-records span {
    background: #111;
    color: #fff;
}

.ccop-module-tabs button.is-active,
.ccop-module-tabs button.is-active:hover,
.ccop-module-tabs button.is-active:focus-visible {
    background: #bce8c4;
    color: #123b20;
    border-color: #4c9b62;
    box-shadow: inset 0 -3px 0 #4c9b62;
}

.ccop-module-tabs button.is-active span {
    background: #296d3b;
    color: #fff;
}

.ccop-shell { --ccop-button-height: 3.4rem; }
.ccop-session-data .ccop-operational-shortcuts > button,
.ccop-session-data .ccop-session-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--ccop-button-height);
    height: var(--ccop-button-height);
    padding-top: .4rem;
    padding-bottom: .4rem;
}
.ccop-session-data .ccop-quick-button { padding: 0; }

@media (min-width: 901px) {
    .ccop-module-tabs button { height: var(--ccop-button-height); box-sizing: border-box; }
}

.ccop-grid-panel {
    min-height: calc(100dvh - 19rem);
    padding: 1rem;
    border: 1px solid #b8c9d3;
    background: #fff;
}

.ccop-calendar-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15000;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    width: 100%;
    height: min(82dvh, 920px);
    padding: 1rem clamp(1rem, 2.5vw, 2.5rem) .75rem;
    border-top: 4px solid #d5a900;
    background: #f8fafc;
    box-shadow: 0 -22px 65px rgba(8, 30, 45, .38);
}

.ccop-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.ccop-calendar-header p,
.ccop-calendar-header h2 {
    margin: 0;
    letter-spacing: 0;
}

.ccop-calendar-header p {
    color: #6b7280;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ccop-calendar-header h2 {
    margin-top: .15rem;
    color: #0d405f;
    font-size: 1.55rem;
}

.ccop-calendar-navigation {
    display: flex;
    gap: .45rem;
}

.ccop-calendar-navigation button {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid #2b6c91;
    border-radius: 5px;
    background: #fff;
    color: #123f5b;
    font-size: 1.55rem;
    font-weight: 900;
}

.ccop-calendar-navigation .ccop-calendar-close {
    border-color: #a9251b;
    background: #a9251b;
    color: #fff;
}

.ccop-calendar-message {
    margin: 0 0 .55rem;
}

.ccop-calendar-message-placeholder {
    min-height: 0;
}

.ccop-calendar-weekdays,
.ccop-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .38rem;
}

.ccop-calendar-weekdays {
    margin-bottom: .35rem;
    color: #375269;
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.ccop-calendar-grid {
    min-height: 0;
    grid-auto-rows: minmax(4.4rem, 1fr);
}

.ccop-calendar-empty,
.ccop-calendar-day {
    min-width: 0;
    min-height: 0;
    border-radius: 5px;
}

.ccop-calendar-empty {
    border: 1px dashed #d7e0e7;
    background: #edf2f5;
}

.ccop-calendar-day {
    display: grid;
    align-content: start;
    gap: .25rem;
    padding: .38rem .45rem;
    border: 1px solid #b8c9d3;
    background: #fff;
    color: #142b3d;
    text-align: left;
}

.ccop-calendar-day > strong {
    font-size: 1rem;
}

.ccop-calendar-shifts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
}

.ccop-calendar-shift {
    min-width: 0;
    min-height: 1.8rem;
    padding: .2rem .25rem;
    border: 1px solid transparent;
    border-radius: 3px;
    font: inherit;
    font-size: .73rem;
    font-weight: 700;
}

.ccop-calendar-shift.is-morning {
    border-color: #2b8db9;
    background: #7dd3fc;
    color: #082f49;
}

.ccop-calendar-shift.is-afternoon {
    border-color: #b66d00;
    background: #fbbf24;
    color: #3b2500;
}

.ccop-calendar-shift.is-night {
    border-color: #153f70;
    background: #28598d;
    color: #fff;
}

.ccop-calendar-shift:hover,
.ccop-calendar-shift:focus-visible {
    filter: brightness(.9);
    transform: translateY(-1px);
}

.ccop-calendar-shift.is-active {
    outline: 3px solid #111827;
    outline-offset: 1px;
}

.ccop-calendar-day:hover,
.ccop-calendar-day:focus-visible {
    border-color: #1778a5;
    background: #edf8fd;
}

.ccop-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px #1c7cad;
}

.ccop-calendar-day.is-selected {
    border-color: #aa8000;
    background: #fff6c3;
}

.ccop-calendar-footer {
    padding-top: .55rem;
    color: #496174;
    font-size: .8rem;
    text-align: center;
}

.ccop-detail-active > .dashboard-shell {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(.75rem, 1.5vw, 1.5rem);
}

.ccop-detail-active > .dashboard-shell > .work-panel,
.ccop-detail-active > .dashboard-shell > .wide-panel {
    width: 100%;
    max-width: none;
}

.ccop-grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.ccop-grid-toolbar h2 {
    margin: 0;
    font-size: 1.2rem;
}

.ccop-grid-loading {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 2.75rem;
    margin: 0 0 .8rem;
    padding: .65rem .85rem;
    border-left: 4px solid #1f6b8f;
    background: #eaf4f8;
    color: #123d54;
    font-weight: 700;
}

.ccop-grid-loading .login-spinner {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    border-color: rgba(31, 107, 143, .25);
    border-top-color: #1f6b8f;
}

.ccop-load-message {
    margin: 0 0 .8rem;
}

.ccop-row-actions {
    width: 9rem;
    white-space: nowrap;
}

.ccop-row-actions button {
    width: 2.25rem;
    height: 2.25rem;
    margin-right: .3rem;
    padding: .4rem;
    border: 0;
    border-radius: 4px;
    color: #fff;
}

.ccop-interventions-table {
    min-width: 1180px;
}

.ccop-interventions-table th:nth-child(8),
.ccop-interventions-table th:nth-child(9),
.ccop-interventions-table th:nth-child(10),
.ccop-interventions-table td:nth-child(8),
.ccop-interventions-table td:nth-child(9),
.ccop-interventions-table td:nth-child(10) {
    text-align: center;
}

.ccop-check-cell {
    width: 6rem;
}

.ccop-readonly-check {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: #126b95;
    opacity: 1;
}

.ccop-interventions-table tbody tr.ccop-row-relevant {
    background: #ffd8d5;
    color: #641c18;
    box-shadow: inset 5px 0 0 #d84b42;
}

.ccop-interventions-table tbody tr.ccop-row-relevant:hover {
    background: #ffc9c5;
}

.ccop-interventions-table tbody tr.ccop-row-relevant-open {
    background: #c61f1f;
    color: #fff;
    box-shadow: inset 5px 0 0 #7f1010;
}

.ccop-interventions-table tbody tr.ccop-row-relevant-open:hover {
    background: #a91414;
}

.ccop-interventions-table tbody tr.ccop-row-relevant-open .ccop-readonly-check {
    accent-color: #fff;
}

.ccop-interventions-table tbody tr.ccop-row-closed {
    background: #e5e7eb;
    color: #374151;
    box-shadow: inset 5px 0 0 #8b949e;
}

.ccop-interventions-table tbody tr.ccop-row-closed:hover {
    background: #d6dae0;
}

.ccop-edit-row {
    background-color: #1c668d;
}

.ccop-row-actions .ccop-edit-row {
    width: auto;
    min-width: 5.5rem;
}

.ccop-delete-row {
    background-color: #b42318;
}

@media (max-width: 900px) {
    .ccop-header { flex-direction: column; }
    .ccop-intro { width: 100%; min-width: 0; }
    .ccop-module-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccop-session-actions {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccop-session-actions > button {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .ccop-operational-shortcuts {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .ccop-organization-button {
        flex-basis: 100%;
        white-space: normal;
    }

    .ccop-patrol-message-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .ccop-patrol-message-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ccop-patrol-message-footer .urgent-message-check {
        margin-right: 0;
    }

    .ccop-operational-shortcuts {
        width: 100%;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    .ccop-calendar-panel {
        height: 82dvh;
        padding-inline: .65rem;
    }

    .ccop-calendar-grid {
        grid-auto-rows: minmax(4rem, 1fr);
    }

    .ccop-calendar-day {
        gap: .12rem;
        padding: .28rem;
    }

    .ccop-calendar-shifts {
        grid-template-columns: 1fr;
        gap: .12rem;
    }

    .ccop-calendar-shift {
        min-height: 1.35rem;
        padding: .08rem .18rem;
        font-size: .66rem;
    }
}

.quick-check-vehicle {
    --quick-icon-ratio: 128 / 100;
}

.menu-quick-check-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.menu-quick-check-button:hover {
    transform: translateX(2px);
    filter: brightness(1.06);
}

.menu-quick-check-button:focus-visible {
    outline: 3px solid #d8b64c;
    outline-offset: 2px;
}

.menu-category-button {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform .16s ease, filter .16s ease;
}

.menu-category-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.menu-category-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.menu-category-button:focus-visible {
    outline: 3px solid #d8b64c;
    outline-offset: 3px;
}

@media (min-width: 721px) {
    .main-menu-shell .menu-quick-checks {
        left: 50%;
        right: auto;
        top: calc(100% + 1.15rem);
        width: min(100%, 530px);
        justify-content: space-between;
        transform: translateX(-50%);
    }

    .main-menu-shell > .menu-category-grid {
        width: min(100%, 530px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .85rem;
        transform: translateY(1.35rem);
    }
}

.menu-group-screen {
    width: min(100%, 720px);
    margin: 0 auto;
    display: grid;
    gap: .8rem;
}

.menu-group-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid rgba(216, 182, 76, .72);
}

.menu-group-heading > button {
    flex: 0 0 3.15rem;
}

.menu-group-heading h2 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

.menu-main-back {
    width: 3.15rem;
    min-width: 3.15rem;
    height: 3.15rem;
    min-height: 3.15rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #73b4de;
    background: #2f78ad !important;
    color: #fff !important;
}

.menu-main-back:hover {
    background: #246690 !important;
    border-color: #3d86ba;
}

.menu-main-back::before {
    width: 1.55rem;
    height: 1.55rem;
    margin: 0;
    background: #fff !important;
}

.menu-group-options {
    width: 100%;
    max-width: none;
    margin: 0;
}

.button-menu-groups {
    width: min(100%, 820px);
    margin: 0 auto;
    display: grid;
    gap: .9rem;
}

.button-menu-section {
    display: grid;
    gap: .55rem;
    padding: .72rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .58);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.button-menu-section h2 {
    margin: 0;
    color: #17324a;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
}

.button-menu-section.menu-group-service h2 {
    color: #9a5516;
}

.button-menu-section.menu-group-operativo h2 {
    color: #145f96;
}

.button-menu-section.menu-group-actas h2 {
    color: #247447;
}

.button-menu-section.menu-group-trafico h2 {
    color: #a93630;
}

.button-menu-section.menu-group-judicial h2 {
    color: #6440a1;
}

.button-menu-section.menu-group-varios h2 {
    color: #8a7412;
}

.button-menu-section .action-grid {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.logout-row {
    width: min(100%, 560px);
    margin: .8rem auto 0;
    display: grid;
    grid-template-columns: 3.1rem minmax(0, 1fr);
    gap: .65rem;
    align-items: stretch;
}

.help-action {
    min-height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 6px;
    border: 1px solid rgba(216, 182, 76, .55);
    background: #20313f;
    color: #d8b64c;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.help-action:hover {
    background: #172633;
    border-color: #d8b64c;
}

.work-panel {
    width: min(100%, 760px);
}

.wide-panel {
    width: min(100%, 980px);
}

@media (min-width: 1200px) {
    .wide-panel {
        width: min(100%, 1220px);
    }
}

.compact-header {
    width: 100%;
    margin-bottom: 1rem;
}

.team-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    color: #17212b;
}

.patrol-config-list {
    display: grid;
    gap: .8rem;
    margin: .75rem;
    padding: 1rem;
    border: 1px solid #c7d5df;
    background: #fff;
    color: #17212b;
}

.patrol-config-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.patrol-config-list-heading p,
.patrol-config-list-heading h2 {
    margin: 0;
}

.patrol-config-list-heading h2 {
    margin-top: .2rem;
    font-size: 1.15rem;
}

.patrol-config-list-heading > strong {
    display: grid;
    min-width: 2.35rem;
    min-height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: #145b80;
    color: #fff;
}

.patrol-config-table {
    min-width: 760px;
}

.patrol-config-table tr.is-selected td {
    background: #fff8cc;
}

.dashboard-shell.patrol-config-shell:has(.patrol-config-form) > .work-panel.patrol-config-panel {
    --fixed-header-height: 4.75rem;
}

.dashboard-shell.patrol-config-shell:has(.patrol-config-form) .dashboard-header.compact-header h1 {
    max-width: calc(100% - 5rem);
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    line-height: 1.05;
    white-space: nowrap;
}

.patrol-config-list,
.patrol-config-form {
    width: auto;
    margin: .75rem;
}

.patrol-config-form :is(.patrol-meta-grid, .patrol-agents-grid, .patrol-vehicle-main-grid, .patrol-vehicle-notes-grid) {
    align-items: start;
}

.patrol-config-form .field-group > label {
    display: flex;
    align-items: flex-end;
    min-height: 1.25rem;
    line-height: 1.2;
}

.patrol-config-form :is(input.form-control, select.form-control) {
    box-sizing: border-box;
    min-height: 3rem;
    height: 3rem;
}

.patrol-vehicle-block {
    display: grid;
    gap: .85rem;
    padding: .9rem;
}

.patrol-vehicle-block > h2 {
    margin: 0;
    line-height: 1.2;
}

.patrol-vehicle-main-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.patrol-vehicle-notes-grid {
    grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
    align-items: start;
}

.patrol-vehicle-notes-grid .mic-field textarea {
    min-height: 6rem;
}

.patrol-config-table {
    min-width: 680px;
    table-layout: fixed;
}

.patrol-config-table th,
.patrol-config-table td {
    vertical-align: middle;
}

.patrol-config-table th:nth-child(1) { width: 16%; }
.patrol-config-table th:nth-child(2) { width: 32%; }
.patrol-config-table th:nth-child(3) { width: 18%; }
.patrol-config-table th:nth-child(4) { width: 22%; }
.patrol-config-table th:nth-child(5) { width: 5.5rem; }

@media (max-width: 700px) {
    .dashboard-shell.patrol-config-shell:has(.patrol-config-form) > .work-panel.patrol-config-panel {
        --fixed-header-height: 5.8rem;
    }

    .dashboard-shell.patrol-config-shell:has(.patrol-config-form) .dashboard-header.compact-header h1 {
        max-width: calc(100% - 3.5rem);
        font-size: 1.45rem;
        white-space: normal;
    }

    .patrol-config-list,
    .patrol-config-form {
        margin: .4rem;
    }

    .patrol-meta-grid,
    .patrol-agents-grid,
    .patrol-vehicle-main-grid,
    .patrol-vehicle-notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .patrol-meta-grid,
    .patrol-agents-grid,
    .patrol-vehicle-main-grid,
    .patrol-vehicle-notes-grid {
        grid-template-columns: 1fr;
    }
}

.tow-fixed-test-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    align-items: center;
}

.tow-fixed-test-panel {
    position: relative;
    --tow-fixed-header-height: 4.25rem;
    --tow-fixed-actions-gap: .45rem;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 1rem;
    background: #0d1f2d;
}

.tow-fixed-test-header {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-bottom: 0;
    padding: .25rem .45rem .3rem;
    min-height: var(--tow-fixed-header-height);
    background: #0d1f2d;
    border-top: 0;
    box-shadow: 0 8px 18px rgba(13, 31, 45, .2);
    isolation: isolate;
}

.tow-fixed-test-header .header-copy p:not(.eyebrow) {
    display: none;
}

.tow-fixed-test-header h1 {
    margin: .05rem 0 0;
    font-size: clamp(1.55rem, 5.2vw, 2.55rem);
    line-height: .95;
}

.tow-fixed-test-header .jefatura-logo {
    width: clamp(42px, 8vw, 58px);
    height: clamp(42px, 8vw, 58px);
}

.tow-fixed-test-form {
    gap: .75rem;
    padding: .85rem;
}

.tow-fixed-test-actions {
    position: sticky;
    top: calc(var(--tow-fixed-header-height) + var(--tow-fixed-actions-gap));
    z-index: 29;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .35rem;
    padding: .35rem .25rem;
    margin: var(--tow-fixed-actions-gap) 0 .45rem;
    background: #fff;
    border-bottom: 1px solid rgba(193, 209, 222, .72);
    box-shadow: 0 8px 18px rgba(13, 31, 45, .12);
}

.tow-fixed-test-actions > button {
    min-width: 0;
    min-height: 2.75rem;
    height: 2.75rem;
    padding: 0;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    color: transparent !important;
    font-size: 0;
}

.tow-fixed-test-actions > button::before {
    width: 1.7rem;
    height: 1.7rem;
    margin: 0;
}

.tow-fixed-test-actions > button.action-new,
.tow-fixed-test-actions > button.action-save,
.tow-fixed-test-actions > button.action-document,
.tow-fixed-test-actions > button.action-delete {
    color: transparent !important;
}

.tow-fixed-test-actions > button:not(.action-new):not(.action-save):not(.action-document):not(.action-delete)::before {
    background: #17212b;
}

.tow-fixed-test-actions > button.action-new::before,
.tow-fixed-test-actions > button.action-save::before,
.tow-fixed-test-actions > button.action-document::before,
.tow-fixed-test-actions > button.action-delete::before {
    background: #fff;
}

.tow-fixed-test-form .vehicle-block > .button-row:last-child {
    display: none;
}

@media (max-width: 640px) {
    .tow-fixed-test-panel {
        --tow-fixed-header-height: 3.9rem;
        --tow-fixed-actions-gap: .35rem;
        width: 100%;
        padding: 0 .35rem .75rem;
    }

    .tow-fixed-test-header {
        padding: .2rem .45rem .25rem;
    }

    .tow-fixed-test-header h1 {
        font-size: 1.35rem;
    }

    .tow-fixed-test-header .eyebrow {
        font-size: .7rem;
        margin-bottom: .05rem;
    }

    .tow-fixed-test-header .jefatura-logo {
        width: 38px;
        height: 38px;
    }

    .tow-fixed-test-actions {
        top: var(--tow-fixed-header-height);
    }
}

.form-grid {
    display: grid;
    gap: .8rem;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid.identification-detail-grid {
    grid-template-columns: minmax(280px, 2fr) minmax(190px, 1fr) minmax(190px, 1fr);
}

.form-grid.four > .field-group:has(.inline-button-field.vehicle-lookup-actions),
.form-grid.four > .field-group:has(.inline-button-field.vehicle-related-actions),
.form-grid.four > .field-group:has(.inline-button-field.location-actions),
.form-grid.four > .field-group:has(.inline-button-field.coordinate-actions),
.form-grid.four > .field-group:has(.inline-button-field.doi-check-inline-actions),
.form-grid.four > .field-group:has(.inline-button-field.doi-check-read-actions),
.form-grid.four > .field-group:has(.inline-button-field.doi-action-four-buttons),
.form-grid.four > .field-group:has(.inline-button-field.doi-check-dgt-pip-actions),
.form-grid.four > .field-group:has(.vehicle-inline-actions) {
    grid-column: span 2;
}

.form-grid.three > .field-group:has(.inline-button-field.location-actions),
.form-grid.three > .field-group:has(.inline-button-field.coordinate-actions),
.coordinate-grid > .coordinate-location-field,
.coordinate-grid > .field-group:has(.inline-button-field.coordinate-actions) {
    grid-column: span 2;
}

.form-grid.four > .field-group:has(.inline-button-field.doi-action-four-buttons),
.form-grid.four > .field-group:has(.inline-button-field.doi-check-dgt-pip-actions) {
    min-width: min(100%, 24rem);
}

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

.ordinance-people-grid {
    align-items: start;
}

.ordinance-people-grid > .field-group {
    align-self: start;
    align-content: start;
    grid-auto-rows: max-content;
}

.ordinance-people-grid .vehicle-inline-actions.doi-inline-actions {
    min-height: 3rem;
    height: 3rem;
}

.ordinance-people-grid .compact-summary {
    max-height: 5.35rem;
    overflow-y: auto;
}

.intervention-card {
    gap: 1rem;
}

.button-row.related-intervention-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.related-action {
    min-height: 3rem;
}

.related-person-action {
    --action-icon: url("/iconos/personas-relacionadas.png");
}

.related-vehicle-action {
    --action-icon: url("/iconos/vehiculos-relacionados.png");
}

.related-actions-button {
    --action-icon: url("/iconos/acta-policial.png");
}

.related-action::before {
    width: 1.65rem;
    height: 1.65rem;
}

.related-action.has-related {
    background: #e1bf45 !important;
    color: #17212b !important;
    box-shadow: inset 0 0 0 1px rgba(113, 85, 9, .18);
}

.related-action.has-related:hover {
    background: #d7ad24 !important;
}

.intervention-top-grid {
    grid-template-columns: minmax(10rem, .95fr) minmax(8rem, .85fr) minmax(17rem, 1.35fr) minmax(12rem, 1fr);
    align-items: start;
}

.intervention-top-grid .intervention-date-field {
    grid-column: 1;
    grid-row: 1;
}

.intervention-top-grid .intervention-time-field {
    grid-column: 2;
    grid-row: 1;
}

.intervention-top-grid .phone-highlight-field {
    grid-column: 3;
    grid-row: 1;
}

.intervention-top-grid .intervention-agent-field {
    grid-column: 1;
    grid-row: 2;
}

.intervention-top-grid .intervention-motivo-field {
    grid-column: 1 / span 2;
    grid-row: 3;
}

.intervention-request-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.intervention-request-grid .intervention-case-field {
    grid-column: 1 / span 3;
    grid-row: 1;
}

.intervention-request-grid .intervention-requester-type-field {
    grid-column: 4 / span 3;
    grid-row: 1;
}

.form-grid.intervention-request-grid .doi-reader-host.intervention-doi-field {
    grid-column: 1 / span 4;
    grid-row: 2;
}

.intervention-request-grid .intervention-requester-name-field {
    grid-column: 5 / span 4;
    grid-row: 2;
}

.intervention-request-grid .intervention-requester-address-field {
    grid-column: 9 / span 4;
    grid-row: 2;
}

.related-actions-panel {
    margin: .75rem 0 1rem;
    padding: .9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fbfd;
}

.related-actions-header {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-bottom: .75rem;
}

.related-actions-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.related-actions-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: wrap;
}

.related-actions-toolbar .compact-button {
    min-width: 11.5rem;
}

.related-actions-table th:nth-child(2),
.related-actions-table td:nth-child(2),
.related-actions-table th:nth-child(3),
.related-actions-table td:nth-child(3),
.related-actions-table th:nth-child(4),
.related-actions-table td:nth-child(4) {
    text-align: center;
}

.related-actions-table tbody tr.has-related-row {
    background: #ffd84a;
    color: #17212b;
    font-weight: 800;
}

.related-actions-table tbody tr.has-related-row:hover {
    background: #f2c51f;
}

@media (max-width: 720px) {
    .button-row.related-intervention-actions {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .related-action {
        min-height: 2.75rem;
    }

    .related-actions-panel {
        padding: .65rem;
        margin-inline: -.15rem;
        border-radius: 6px;
    }

    .related-actions-header {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .related-actions-header h3 {
        font-size: 1rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .related-actions-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .related-actions-header .compact-button,
    .related-actions-toolbar .compact-button {
        width: 100%;
        min-width: 0;
        min-height: 2.55rem;
    }

    .related-actions-scroll {
        overflow: visible;
    }

    .related-actions-table,
    .related-actions-table thead,
    .related-actions-table tbody,
    .related-actions-table tr,
    .related-actions-table th,
    .related-actions-table td {
        display: block;
        width: 100%;
    }

    .related-actions-table thead {
        display: none;
    }

    .related-actions-table tbody tr {
        cursor: default;
        margin-bottom: .7rem;
        padding: .65rem;
        border: 1px solid #d6dee5;
        border-radius: 6px;
        background: #ffffff;
    }

    .related-actions-table tbody tr.has-related-row {
        background: #ffd84a;
        border-color: #d7ad24;
    }

    .related-actions-table td {
        display: grid;
        grid-template-columns: minmax(5.75rem, .55fr) minmax(0, 1fr);
        align-items: center;
        gap: .55rem;
        padding: .35rem 0;
        border: 0;
        text-align: left !important;
        white-space: normal;
    }

    .related-actions-table td::before {
        content: attr(data-label);
        color: #556575;
        font-size: .72rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .related-actions-table td:first-child {
        display: block;
        font-size: 1rem;
        font-weight: 800;
        padding-bottom: .55rem;
    }

    .related-actions-table td:first-child::before {
        display: none;
    }

    .related-actions-table td .compact-button {
        width: 100%;
        min-height: 2.45rem;
    }
}

.intervention-top-grid .phone-highlight-field { min-width: 0; }

.field-group.two-columns {
    grid-column: span 2;
}

.toolbar-row {
    display: flex;
    gap: .7rem;
    justify-content: flex-end;
}

.top-toolbar {
    align-items: center;
}

.top-toolbar .arrow-button {
    display: none;
}

.service-toolbar {
    display: grid;
    grid-template-columns: minmax(2.65rem, .55fr) minmax(2.65rem, .55fr) minmax(4.2rem, 1fr) minmax(5.4rem, 1.2fr) minmax(3.6rem, .8fr);
    gap: .35rem;
    align-items: stretch;
    grid-auto-rows: 3rem;
    padding: .35rem;
    background: #fff;
    box-shadow: 0 8px 18px rgba(13, 31, 45, .1);
}

.service-toolbar > button {
    width: 100%;
    min-width: 0;
    max-height: 3rem;
    min-height: 3rem;
    height: 3rem;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 .35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-size: clamp(.68rem, 2.25vw, .84rem);
    font-weight: 500;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
}

.service-toolbar > .service-icon-only {
    padding-inline: .2rem;
}

.service-toolbar > button::before {
    content: "";
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    background: #fff;
    -webkit-mask: var(--action-icon) center / contain no-repeat;
    mask: var(--action-icon) center / contain no-repeat;
}

.service-toolbar > .service-icon-only::before {
    width: 1.55rem;
    height: 1.55rem;
}

.service-toolbar > .action-list {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5h14M5 12h14M5 19h14M3 5h.01M3 12h.01M3 19h.01' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.service-toolbar > .action-agents {
    --action-icon: url("/iconos/agentes-parte-servicio.png");
}

.floating-scroll-buttons {
    position: fixed;
    right: clamp(.7rem, 2vw, 1.1rem);
    bottom: 5.5rem;
    z-index: 1000;
    display: grid;
    gap: .45rem;
}

.arrow-button {
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(216,182,76,.42);
    border-radius: 999px;
    background: rgba(23,33,43,.48);
    color: rgba(216,182,76,.95);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    opacity: .72;
}

.arrow-button:hover {
    background: rgba(216, 182, 76, .72);
    color: #17212b;
    opacity: 1;
}

.action-field {
    align-content: end;
}

.action-message {
    margin-top: .9rem;
}

.map-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .65rem;
    padding: .85rem;
    border: 1px solid #d5dee7;
    border-radius: 8px;
    background: #f8fbfd;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.compact-button {
    min-height: 2.4rem;
    padding: .45rem .8rem;
}

.intervention-map {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 340px;
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    overflow: hidden;
}

.map-box {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 340px;
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    overflow: hidden;
}

.map-help {
    margin: 0;
    color: #506174;
    font-size: .92rem;
}

.check-row {
    min-height: 3rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
}

.check-row input {
    width: 1.05rem;
    height: 1.05rem;
}

.textarea-with-tool {
    position: relative;
}

.mic-field {
    position: relative;
}

.field-group:has(.mic-button) {
    position: relative;
}

.textarea-with-tool textarea {
    padding-right: 6.4rem;
}

.field-group:has(.mic-button) textarea,
.mic-field textarea {
    padding-right: 6.4rem;
}

.mic-button {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 5.15rem;
    height: 2rem;
    border: 1px solid #b58e00;
    border-radius: 6px;
    background: #ffd400;
    color: #171300;
    font-size: .72rem;
    font-weight: 800;
}

.mic-button:hover,
.mic-button:focus-visible {
    background: #ffe34d;
    outline: 2px solid #1d6fb8;
    outline-offset: 2px;
}

.mic-field .mic-button {
    top: calc(50% + .75rem);
    bottom: auto;
    transform: translateY(-50%);
}

.field-group:has(.mic-button):not(.mic-field) .mic-button {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.info-box {
    padding: .75rem;
    border-left: 4px solid #20313f;
    background: #eef5f8;
    color: #20313f;
    font-size: .9rem;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    background: #fff;
    color: #102737;
}

.data-table th,
.data-table td {
    padding: .65rem;
    border-bottom: 1px solid #d6dee5;
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    background: #e8eff4;
    color: #556575;
    font-size: .75rem;
    text-transform: uppercase;
}

.data-table tbody tr {
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: #eef5f8;
}

.data-table tbody tr.selected-row {
    background: #d9f1f7;
    box-shadow: inset 4px 0 0 #247c94;
}

.agents-service-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.agents-independent-form > :not(.agents-independent-panel) {
    display: none !important;
}

.agents-independent-screen .agents-independent-panel {
    margin-top: 0;
}

.agents-panel-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: .9rem;
}

.agents-panel-actions > button {
    border: 0;
    border-radius: 6px;
    min-width: 0;
    min-height: 2.75rem;
    padding: .55rem .7rem;
    color: #fff;
    font-weight: 800;
}

.agent-action-add {
    background: #1f7a4d;
}

.agent-action-add:hover {
    background: #17603c;
}

.agent-action-save {
    background: #123f73;
}

.agent-action-load {
    grid-column: span 2;
    background: #315f7d;
}

.agent-action-load:hover {
    background: #264b63;
}

.agent-action-save:hover {
    background: #0d315a;
}

.agent-action-clear {
    background: #1f6f8b;
}

.agent-action-clear:hover {
    background: #18586f;
}

.agent-action-hide {
    background: #b42318;
}

.agent-action-hide:hover {
    background: #8f1c13;
}

.agents-panel-actions > button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.agents-service-grid-head,
.agents-service-row {
    display: grid;
    grid-template-columns: 4.4rem 3.8rem 4.8rem minmax(0, 1.35fr) minmax(0, .9fr);
    align-items: start;
    gap: .65rem;
    width: 100%;
    min-width: 0;
    padding: .65rem;
    border-bottom: 1px solid #d6dee5;
    box-sizing: border-box;
}

.agents-service-grid-head {
    color: #556575;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.agents-service-row {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    color: #142332;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.agents-service-row:hover {
    background: #eef5f8;
}

.agents-service-row.selected {
    background: #d9f1f7;
    box-shadow: inset 4px 0 0 #247c94;
}

.agents-service-row.absent,
.agents-service-row.absent:hover,
.agents-service-row.absent.selected {
    background: #fff1f0;
    box-shadow: inset 4px 0 0 #d64b42;
}

.agents-load-confirm {
    margin: 0 0 .9rem;
}

.agents-service-grid-head span,
.agents-service-row span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
}

.agents-service-grid-head span:nth-child(2),
.agents-service-row span:nth-child(2),
.agents-service-grid-head span:nth-child(3),
.agents-service-row span:nth-child(3) {
    white-space: nowrap;
    overflow-wrap: normal;
}

.agents-service-inline-editor {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: .35rem .65rem .85rem;
    background: #f6fbfd;
}

.inline-agent-editor {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: .9rem;
    border: 1px solid #cfe0ec;
    border-radius: 8px;
    background: #f8fbfd;
    box-shadow: inset 4px 0 0 #247c94;
}

.inline-agent-editor * {
    max-width: 100%;
    box-sizing: border-box;
}

.inline-agent-editor-title {
    margin-bottom: .7rem;
    font-weight: 800;
    color: #142332;
}

.inline-agent-editor .form-grid {
    min-width: 0;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: .75rem;
}

.inline-agent-cometido-field {
    grid-column: 1 / -1;
}

.inline-agent-notes-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 6rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inline-editor-actions {
    margin-top: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.multiline-select-display {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    min-height: 3.15rem;
    padding: .65rem .85rem;
    border: 1px solid #d5dde5;
    border-radius: 8px;
    background: #fff;
    color: #142332;
    font: inherit;
    text-align: left;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.multiline-select-display::after {
    content: "⌄";
    float: right;
    margin-left: .75rem;
    color: #556575;
    font-weight: 800;
}

.multiline-select-display:hover,
.multiline-select-display:focus {
    border-color: #247c94;
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 124, 148, .14);
}

.multiline-option-list {
    display: grid;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: .35rem;
    max-height: 11rem;
    overflow-y: auto;
    margin-top: .35rem;
    padding: .35rem;
    border: 1px solid #d5dde5;
    border-radius: 8px;
    background: #fff;
}

.multiline-option {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: .65rem .75rem;
    border: 1px solid #dbe4ec;
    border-radius: 6px;
    background: #f8fbfd;
    color: #142332;
    font: inherit;
    text-align: left;
    line-height: 1.35;
    white-space: normal;
}

.multiline-option:hover,
.multiline-option:focus {
    border-color: #247c94;
    background: #eef8fb;
    outline: none;
}

.multiline-option.selected {
    border-color: #174a7e;
    background: #d9f1f7;
    box-shadow: inset 4px 0 0 #174a7e;
    font-weight: 700;
}

@media (max-width: 640px) {
    .agents-panel-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .35rem;
    }

    .agents-panel-actions > button {
        min-height: 2.45rem;
        padding: .45rem .45rem;
        font-size: .92rem;
    }

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

    .agents-service-grid-head,
    .agents-service-row {
        grid-template-columns: 3.7rem 3.8rem 4.4rem minmax(0, 1fr);
        gap: .45rem;
    }

    .agents-service-grid-head span:nth-child(5),
    .agents-service-row span:nth-child(5) {
        display: none;
    }
}

.data-table tbody tr.alert-row {
    background: #fff1f0;
    box-shadow: inset 4px 0 0 #b42318;
}

.continuous-control-panel {
    gap: .85rem;
}

.continuous-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.continuous-control-header h2 {
    margin: 0;
}

.continuous-control-video {
    width: 100%;
    min-height: 260px;
    max-height: 56vh;
    display: block;
    border: 1px solid #c8d7e3;
    border-radius: 8px;
    background: #07131d;
    object-fit: cover;
}

.continuous-control-table th,
.continuous-control-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.orders-table {
    table-layout: fixed;
    min-width: 36rem;
}

.orders-table-scroll {
    overflow-x: visible;
}

.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 5rem;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 7.2rem;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 5.8rem;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    white-space: normal;
    overflow-wrap: anywhere;
}

.orders-table thead th {
    position: static;
    background: #f5f9fc;
    box-shadow: 0 1px 0 #d6dee5;
}

.orders-description-clamp {
    display: -webkit-box;
    max-height: 2.55em;
    overflow: hidden;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.four-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.five-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vehicle-block {
    display: grid;
    gap: .8rem;
    padding: .9rem;
    background: #f5f8fa;
    border: 1px solid #d6dee5;
    border-radius: 8px;
}

.vehicle-block h2 {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
}

.vehicle-inline-actions {
    position: relative;
}

.vehicle-inline-actions .form-control {
    width: 100%;
    padding-right: 8.7rem;
}

.vehicle-inline-actions.four-inline-actions .form-control {
    padding-right: 15.8rem;
}

.vehicle-inline-actions .inline-action {
    position: absolute;
    top: 50%;
    min-width: 3.2rem;
    min-height: 2.35rem;
    margin: 0;
    padding: .45rem .65rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    font-weight: 900;
    cursor: pointer;
}

.vehicle-inline-actions.two-inline-actions .inline-action:first-of-type {
    right: 4.25rem;
}

.vehicle-inline-actions.two-inline-actions .inline-action:last-of-type {
    right: .45rem;
}

.vehicle-inline-actions.four-inline-actions .vehicle-photo-camera {
    right: 12.35rem;
}

.vehicle-inline-actions.four-inline-actions .vehicle-photo-folder {
    right: 9rem;
}

.vehicle-inline-actions.four-inline-actions .vehicle-dgt-action {
    right: 4.35rem;
}

.vehicle-inline-actions.four-inline-actions .vehicle-vip-action {
    right: .45rem;
}

.vehicle-inline-actions.doi-inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.15rem 3.35rem;
    align-items: center;
    gap: .35rem;
    min-height: 3rem;
    padding: .25rem .35rem .25rem .75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
}

.vehicle-inline-actions.doi-inline-actions.doi-check-actions {
    grid-template-columns: minmax(0, 1fr) 3.15rem 3.15rem 3.35rem;
}

.vehicle-inline-actions.doi-inline-actions.doi-interest-wrapper {
    border-color: #d92d20;
    background: #fff1f0;
}

.vehicle-inline-actions.doi-inline-actions .doi-inline-input {
    min-width: 0;
    width: 100%;
    min-height: 2.35rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.vehicle-inline-actions.doi-inline-actions .inline-action,
.vehicle-inline-actions.doi-inline-actions .dni-icon-action,
.vehicle-inline-actions.doi-inline-actions .inline-field-button {
    position: static;
    top: auto;
    right: auto;
    display: inline-grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    height: 2.35rem;
    min-height: 2.35rem;
    margin: 0;
    padding: 0 .45rem;
    transform: none;
}

.vehicle-inline-actions.doi-inline-actions .doi-pip-action {
    background: #7a271a;
}

.vehicle-inline-actions.doi-inline-actions .doi-check-action {
    position: relative;
    background: #174a7e;
    font-size: .86rem;
    font-weight: 800;
}

.vehicle-inline-actions.doi-inline-actions .doi-read-action {
    position: relative;
}

.doi-read-action,
.dni-inline-button.doi-read-action,
.doi-check-action {
    position: relative;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
    min-width: 3.35rem;
    padding: 0 !important;
}

.inline-button-field .inline-field-button.doi-read-action,
.inline-button-field .inline-field-button.dni-inline-button.doi-read-action,
.inline-button-field .inline-field-button.doi-check-action {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.doi-read-action::before,
.dni-inline-button.doi-read-action::before,
.doi-check-action::before {
    content: "";
    position: absolute;
    left: calc(50% - .42rem);
    top: 50%;
    width: 1rem;
    height: .82rem;
    border: 2px solid #fff;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.doi-read-action::after,
.dni-inline-button.doi-read-action::after {
    content: "";
    position: absolute;
    left: calc(50% - .5rem);
    top: 50%;
    width: .2rem;
    height: .2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: .38rem 0 0 #fff, .12rem .3rem 0 -.02rem #fff, .42rem .3rem 0 -.02rem #fff;
    transform: translate(-50%, -50%);
}

.doi-check-action::after {
    content: "DNI" !important;
    position: absolute !important;
    left: calc(50% - .24rem) !important;
    top: 50% !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: .48rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transform: translate(-50%, -46%) !important;
}

.doi-check-action::marker {
    content: "";
}

.doi-check-action > span {
    display: none;
}

.doi-check-action {
    --doi-check-lens-left: calc(50% + .58rem);
}

.doi-check-action::selection {
    background: transparent;
}

.doi-check-action:focus-visible {
    outline-offset: 2px;
}

.doi-check-action::before {
    left: calc(50% - .22rem) !important;
}

.doi-check-action:not(:disabled) {
    cursor: pointer;
}

.doi-check-action {
    isolation: isolate;
}

.doi-check-action::after {
    z-index: 2;
}

.doi-check-action::before {
    z-index: 1;
}

.doi-check-action::part(lens) {
    display: none;
}

.doi-check-action {
    background-clip: padding-box;
}

.doi-check-action::before {
    width: 1.66rem !important;
}

.doi-check-action::after {
    pointer-events: none;
}

.doi-check-action::placeholder {
    color: transparent;
}

.doi-check-action::file-selector-button {
    display: none;
}

.doi-check-action {
    text-indent: 0;
}

.doi-check-action .visually-hidden {
    display: none;
}

.doi-check-action::before {
    content: "" !important;
}

.doi-check-action::after {
    content: "DNI" !important;
}

.doi-check-action {
    --unused: 0;
}

.doi-check-action::cue {
    color: transparent;
}

.doi-check-action::grammar-error {
    text-decoration: none;
}

.doi-check-action::spelling-error {
    text-decoration: none;
}

.doi-check-action::view-transition-old(root),
.doi-check-action::view-transition-new(root) {
    animation: none;
}

.doi-check-action::after {
    text-shadow: none;
}

.doi-check-action::before {
    box-shadow: none !important;
}

.doi-check-action {
    --doi-check-lens-size: .72rem;
}

.doi-check-action::before {
    border: 2px solid #fff !important;
}

.doi-check-action::after {
    color: #fff !important;
}

.doi-check-action {
    background-image: none;
}

.doi-check-action::before {
    background-image: none !important;
}

.doi-check-action::after {
    background-image: none !important;
}

.doi-check-action {
    background-repeat: initial;
}

.doi-check-action::before {
    background-repeat: initial !important;
}

.doi-check-action::after {
    background-repeat: initial !important;
}

.doi-check-action {
    background-size: initial;
}

.doi-check-action::before {
    background-size: initial !important;
}

.doi-check-action::after {
    background-size: initial !important;
}

.doi-check-action {
    background-position: initial;
}

.doi-check-action::before {
    background-position: initial !important;
}

.doi-check-action::after {
    background-position: initial !important;
}

.doi-check-action {
    -webkit-mask: none;
    mask: none;
}

.doi-check-action::before,
.doi-check-action::after {
    -webkit-mask: none !important;
    mask: none !important;
}

.doi-check-action::before {
    transform: translate(-50%, -50%) !important;
}

.doi-check-action::after {
    transform: translate(-50%, -46%) !important;
}

.doi-check-action::backdrop {
    display: none;
}

.doi-check-action {
    contain: paint;
}

.doi-check-action::before {
    contain: paint;
}

.doi-check-action::after {
    contain: paint;
}

.doi-check-action + .doi-read-action {
    margin-left: 0;
}

.doi-check-action::after {
    font-family: Arial, sans-serif;
}

.doi-check-action::before {
    font-family: Arial, sans-serif;
}

.doi-check-action::after {
    opacity: 1;
}

.doi-check-action::before {
    opacity: 1;
}

.doi-check-action {
    opacity: 1;
}

.doi-check-action[disabled] {
    opacity: .72;
}

.doi-check-action[disabled]::before,
.doi-check-action[disabled]::after {
    opacity: .9;
}

.doi-check-action::after {
    white-space: nowrap;
}

.doi-check-action::before {
    white-space: nowrap;
}

.doi-check-action {
    white-space: nowrap;
}

.doi-check-action::after {
    overflow: visible;
}

.doi-check-action::before {
    overflow: visible;
}

.doi-check-action {
    overflow: hidden;
}

.doi-check-action::after {
    text-transform: uppercase;
}

.doi-check-action::before {
    text-transform: none;
}

.doi-check-action {
    text-transform: none;
}

.doi-check-action::after {
    vertical-align: baseline;
}

.doi-check-action::before {
    vertical-align: baseline;
}

.doi-check-action {
    vertical-align: middle;
}

.doi-check-action::after {
    user-select: none;
}

.doi-check-action::before {
    user-select: none;
}

.doi-check-action {
    user-select: none;
}

.doi-check-action::after {
    -webkit-user-select: none;
}

.doi-check-action::before {
    -webkit-user-select: none;
}

.doi-check-action {
    -webkit-user-select: none;
}

.doi-check-action::after {
    speak: never;
}

.doi-check-action::before {
    speak: never;
}

.doi-check-action {
    speak: normal;
}

.doi-check-action::after {
    unicode-bidi: normal;
}

.doi-check-action::before {
    unicode-bidi: normal;
}

.doi-check-action {
    unicode-bidi: normal;
}

.doi-check-action::after {
    direction: ltr;
}

.doi-check-action::before {
    direction: ltr;
}

.doi-check-action {
    direction: ltr;
}

.doi-check-action::after {
    writing-mode: horizontal-tb;
}

.doi-check-action::before {
    writing-mode: horizontal-tb;
}

.doi-check-action {
    writing-mode: horizontal-tb;
}

.doi-check-action::after {
    rotate: none;
}

.doi-check-action::before {
    rotate: none;
}

.doi-check-action {
    rotate: none;
}

.doi-check-action::after {
    scale: none;
}

.doi-check-action::before {
    scale: none;
}

.doi-check-action {
    scale: none;
}

.doi-check-action::after {
    translate: none;
}

.doi-check-action::before {
    translate: none;
}

.doi-check-action {
    translate: none;
}

.doi-check-action::after {
    filter: none;
}

.doi-check-action::before {
    filter: none;
}

.doi-check-action {
    filter: none;
}

.doi-check-action::after {
    backdrop-filter: none;
}

.doi-check-action::before {
    backdrop-filter: none;
}

.doi-check-action {
    backdrop-filter: none;
}

.doi-check-action .doi-check-lens {
    display: none;
}

.doi-check-action::before {
    text-rendering: auto;
}

.doi-check-action::after {
    text-rendering: geometricPrecision;
}

.doi-check-action {
    text-rendering: auto;
}

.doi-check-action::before {
    image-rendering: auto;
}

.doi-check-action::after {
    image-rendering: auto;
}

.doi-check-action {
    image-rendering: auto;
}

.doi-check-action::after {
    font-variant-ligatures: none;
}

.doi-check-action::before {
    font-variant-ligatures: none;
}

.doi-check-action {
    font-variant-ligatures: none;
}

.doi-check-action::after {
    font-feature-settings: normal;
}

.doi-check-action::before {
    font-feature-settings: normal;
}

.doi-check-action {
    font-feature-settings: normal;
}

.doi-check-action::after {
    font-synthesis: none;
}

.doi-check-action::before {
    font-synthesis: none;
}

.doi-check-action {
    font-synthesis: none;
}

.doi-check-action::after {
    font-style: normal;
}

.doi-check-action::before {
    font-style: normal;
}

.doi-check-action {
    font-style: normal;
}

.doi-check-action::after {
    font-stretch: normal;
}

.doi-check-action::before {
    font-stretch: normal;
}

.doi-check-action {
    font-stretch: normal;
}

.doi-check-action::after {
    font-kerning: normal;
}

.doi-check-action::before {
    font-kerning: normal;
}

.doi-check-action {
    font-kerning: normal;
}

.doi-check-action::after {
    font-optical-sizing: auto;
}

.doi-check-action::before {
    font-optical-sizing: auto;
}

.doi-check-action {
    font-optical-sizing: auto;
}

.doi-check-action::after {
    font-size-adjust: none;
}

.doi-check-action::before {
    font-size-adjust: none;
}

.doi-check-action {
    font-size-adjust: none;
}

.doi-check-action::after {
    font-variant: normal;
}

.doi-check-action::before {
    font-variant: normal;
}

.doi-check-action {
    font-variant: normal;
}

.doi-check-action::after {
    font-variation-settings: normal;
}

.doi-check-action::before {
    font-variation-settings: normal;
}

.doi-check-action {
    font-variation-settings: normal;
}

.doi-check-action::after {
    text-decoration: none;
}

.doi-check-action::before {
    text-decoration: none;
}

.doi-check-action {
    text-decoration: none;
}

.doi-check-action::after {
    text-align: center;
}

.doi-check-action::before {
    text-align: center;
}

.doi-check-action {
    text-align: center;
}

.doi-check-action::after {
    text-indent: 0;
}

.doi-check-action::before {
    text-indent: 0;
}

.doi-check-action {
    text-indent: 0;
}

.doi-check-action::after {
    text-overflow: clip;
}

.doi-check-action::before {
    text-overflow: clip;
}

.doi-check-action {
    text-overflow: clip;
}

.doi-check-action::after {
    word-spacing: normal;
}

.doi-check-action::before {
    word-spacing: normal;
}

.doi-check-action {
    word-spacing: normal;
}

.doi-check-action::after {
    line-break: auto;
}

.doi-check-action::before {
    line-break: auto;
}

.doi-check-action {
    line-break: auto;
}

.doi-check-action::after {
    hyphens: manual;
}

.doi-check-action::before {
    hyphens: manual;
}

.doi-check-action {
    hyphens: manual;
}

.doi-check-action::after {
    overflow-wrap: normal;
}

.doi-check-action::before {
    overflow-wrap: normal;
}

.doi-check-action {
    overflow-wrap: normal;
}

.doi-check-action::after {
    word-break: normal;
}

.doi-check-action::before {
    word-break: normal;
}

.doi-check-action {
    word-break: normal;
}

.doi-check-action::after {
    tab-size: 8;
}

.doi-check-action::before {
    tab-size: 8;
}

.doi-check-action {
    tab-size: 8;
}

.doi-check-action::after {
    text-size-adjust: 100%;
}

.doi-check-action::before {
    text-size-adjust: 100%;
}

.doi-check-action {
    text-size-adjust: 100%;
}

.doi-check-action .dni-check-text {
    display: none;
}

.doi-check-action::before {
    pointer-events: none;
}

.doi-check-action::after {
    pointer-events: none;
}

.doi-check-action {
    pointer-events: auto;
}

.doi-check-action::before {
    forced-color-adjust: auto;
}

.doi-check-action::after {
    forced-color-adjust: auto;
}

.doi-check-action {
    forced-color-adjust: auto;
}

.doi-check-action::before {
    inset-inline-start: auto;
}

.doi-check-action::after {
    inset-inline-start: auto;
}

.doi-check-action {
    inset-inline-start: auto;
}

.doi-check-action::before {
    inset-block-start: auto;
}

.doi-check-action::after {
    inset-block-start: auto;
}

.doi-check-action {
    inset-block-start: auto;
}

.doi-check-action::before {
    inset: auto;
    left: calc(50% - .22rem) !important;
    top: 50% !important;
}

.doi-check-action::after {
    inset: auto;
    left: calc(50% - .24rem) !important;
    top: 50% !important;
}

.doi-check-action .lens {
    display: none;
}

.doi-check-action::before {
    clip-path: none;
}

.doi-check-action::after {
    clip-path: none;
}

.doi-check-action {
    clip-path: none;
}

.doi-check-action::before {
    margin: 0;
}

.doi-check-action::after {
    margin: 0;
}

.doi-check-action {
    margin-block: 0;
}

.doi-check-action::before {
    padding: 0;
}

.doi-check-action::after {
    padding: 0;
}

.doi-check-action {
    padding-block: 0 !important;
}

.doi-check-action::before {
    box-sizing: border-box;
}

.doi-check-action::after {
    box-sizing: border-box;
}

.doi-check-action {
    box-sizing: border-box;
}

.doi-check-action::before {
    outline: 0;
}

.doi-check-action::after {
    outline: 0;
}

.doi-check-action {
    outline-color: currentColor;
}

.doi-check-action::before {
    color: #fff;
}

.doi-check-action::after {
    color: #fff;
}

.doi-check-action {
    color: transparent !important;
}

.doi-check-action::before {
    display: block !important;
}

.doi-check-action::after {
    display: block !important;
}

.doi-check-action {
    display: inline-grid;
}

.doi-check-action::before {
    visibility: visible;
}

.doi-check-action::after {
    visibility: visible;
}

.doi-check-action {
    visibility: visible;
}

.doi-check-action::before {
    clear: none;
}

.doi-check-action::after {
    clear: none;
}

.doi-check-action {
    clear: none;
}

.doi-check-action::before {
    float: none;
}

.doi-check-action::after {
    float: none;
}

.doi-check-action {
    float: none;
}

.doi-check-action::before {
    position: absolute !important;
}

.doi-check-action::after {
    position: absolute !important;
}

.doi-check-action {
    position: relative;
}

.doi-check-action::before {
    right: auto;
    bottom: auto;
}

.doi-check-action::after {
    right: auto;
    bottom: auto;
}

.doi-check-action {
    right: auto;
    bottom: auto;
}

.doi-check-action::before {
    min-width: 0;
    min-height: 0;
}

.doi-check-action::after {
    min-width: 0;
    min-height: 0;
}

.doi-check-action {
    min-width: 3.15rem;
}

.doi-check-action::before {
    max-width: none;
    max-height: none;
}

.doi-check-action::after {
    max-width: none;
    max-height: none;
}

.doi-check-action {
    max-width: none;
}

.doi-check-action::before {
    aspect-ratio: auto;
}

.doi-check-action::after {
    aspect-ratio: auto;
}

.doi-check-action {
    aspect-ratio: auto;
}

.doi-check-action::before {
    object-fit: fill;
}

.doi-check-action::after {
    object-fit: fill;
}

.doi-check-action {
    object-fit: fill;
}

.doi-check-action::before {
    object-position: 50% 50%;
}

.doi-check-action::after {
    object-position: 50% 50%;
}

.doi-check-action {
    object-position: 50% 50%;
}

.doi-check-action::before {
    resize: none;
}

.doi-check-action::after {
    resize: none;
}

.doi-check-action {
    resize: none;
}

.doi-check-action::before {
    touch-action: auto;
}

.doi-check-action::after {
    touch-action: auto;
}

.doi-check-action {
    touch-action: manipulation;
}

.doi-check-action::before {
    will-change: auto;
}

.doi-check-action::after {
    will-change: auto;
}

.doi-check-action {
    will-change: auto;
}

.doi-check-action::before {
    transform-origin: center;
}

.doi-check-action::after {
    transform-origin: center;
}

.doi-check-action {
    transform-origin: center;
}

.doi-check-action .svg-inline--fa {
    display: none;
}

.doi-check-action::before {
    content: "" !important;
}

.doi-check-action::after {
    content: "DNI" !important;
}

.doi-check-action::before {
    width: 1.66rem !important;
    height: 1.12rem !important;
}

.doi-check-action::after {
    font-size: .48rem !important;
}

.doi-check-action::before {
    border-color: #fff !important;
}

.doi-check-action::after {
    color: #fff !important;
}

.doi-check-action::before {
    border-width: 2px !important;
}

.doi-check-action::after {
    border-width: 0 !important;
}

.doi-check-action::before {
    border-style: solid !important;
}

.doi-check-action::after {
    border-style: none !important;
}

.doi-check-action::before {
    border-radius: 4px !important;
}

.doi-check-action::after {
    border-radius: 0 !important;
}

.doi-check-action::before {
    box-shadow: none !important;
}

.doi-check-action::after {
    box-shadow: none !important;
}

.doi-check-action::before {
    background-color: transparent !important;
}

.doi-check-action::after {
    background-color: transparent !important;
}

.doi-check-action::before {
    background-clip: border-box;
}

.doi-check-action::after {
    background-clip: border-box;
}

.doi-check-action {
    background-clip: border-box;
}

.doi-check-action::before {
    background-origin: padding-box;
}

.doi-check-action::after {
    background-origin: padding-box;
}

.doi-check-action {
    background-origin: padding-box;
}

.doi-check-action::before {
    background-attachment: scroll;
}

.doi-check-action::after {
    background-attachment: scroll;
}

.doi-check-action {
    background-attachment: scroll;
}

.doi-check-action::before {
    background-blend-mode: normal;
}

.doi-check-action::after {
    background-blend-mode: normal;
}

.doi-check-action {
    background-blend-mode: normal;
}

.doi-check-action::before {
    background-color: transparent !important;
}

.doi-check-action::after {
    background-color: transparent !important;
}

.doi-check-action::before {
    border-image: none;
}

.doi-check-action::after {
    border-image: none;
}

.doi-check-action {
    border-image: none;
}

.doi-check-action::before {
    border-collapse: separate;
}

.doi-check-action::after {
    border-collapse: separate;
}

.doi-check-action {
    border-collapse: separate;
}

.doi-check-action::before {
    border-spacing: 0;
}

.doi-check-action::after {
    border-spacing: 0;
}

.doi-check-action {
    border-spacing: 0;
}

.doi-check-action::before {
    empty-cells: show;
}

.doi-check-action::after {
    empty-cells: show;
}

.doi-check-action {
    empty-cells: show;
}

.doi-check-action::before {
    caption-side: top;
}

.doi-check-action::after {
    caption-side: top;
}

.doi-check-action {
    caption-side: top;
}

.doi-check-action .mdi,
.doi-check-action .lucide {
    display: none;
}

.doi-check-action::before {
    forced-color-adjust: none;
}

.doi-check-action::after {
    forced-color-adjust: none;
}

.doi-check-action {
    forced-color-adjust: auto;
}

.doi-check-action::before {
    appearance: none;
}

.doi-check-action::after {
    appearance: none;
}

.doi-check-action {
    appearance: auto;
}

.doi-check-action::-moz-focus-inner {
    border: 0;
}

.doi-check-action::-webkit-search-cancel-button {
    display: none;
}

.doi-check-action::-webkit-search-decoration {
    display: none;
}

.doi-check-action::-webkit-calendar-picker-indicator {
    display: none;
}

.doi-check-action::-ms-clear {
    display: none;
}

.doi-check-action::-ms-reveal {
    display: none;
}

.doi-check-action::-webkit-details-marker {
    display: none;
}

.doi-check-action::-webkit-inner-spin-button,
.doi-check-action::-webkit-outer-spin-button {
    display: none;
}

.doi-check-action::before {
    content: "" !important;
}

.doi-check-action::after {
    content: "DNI" !important;
}

.doi-check-action::before {
    width: 1.66rem !important;
    height: 1.12rem !important;
    left: calc(50% - .22rem) !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.doi-check-action::after {
    left: calc(50% - .24rem) !important;
    top: 50% !important;
    transform: translate(-50%, -46%) !important;
}

.doi-check-action::before {
    border: 2px solid #fff !important;
    border-radius: 4px !important;
}

.doi-check-action::after {
    font-family: Arial, sans-serif !important;
    font-size: .48rem !important;
    font-weight: 950 !important;
    color: #fff !important;
}

.doi-check-action {
    --last-rule: 1;
}

.doi-check-action::before {
    --last-rule: 1;
}

.doi-check-action::after {
    --last-rule: 1;
}

.doi-check-action::after {
    display: block !important;
}

.doi-check-action::before {
    display: block !important;
}

.doi-check-action {
    display: inline-grid !important;
}

.doi-check-action::after {
    visibility: visible !important;
}

.doi-check-action::before {
    visibility: visible !important;
}

.doi-check-action {
    visibility: visible !important;
}

.doi-check-action::after {
    opacity: 1 !important;
}

.doi-check-action::before {
    opacity: 1 !important;
}

.doi-check-action {
    opacity: 1;
}

.doi-check-action[disabled] {
    opacity: .72;
}

.doi-check-action::before {
    background: transparent !important;
}

.doi-check-action::after {
    background: transparent !important;
}

.doi-check-action::after {
    text-align: center !important;
}

.doi-check-action::after {
    line-height: 1 !important;
}

.doi-check-action::after {
    letter-spacing: 0 !important;
}

.doi-check-action::after {
    white-space: nowrap !important;
}

.doi-check-action::after {
    content: "DNI" !important;
}

.doi-check-action::before {
    content: "" !important;
}

.doi-check-action::after {
    width: auto !important;
    height: auto !important;
}

.doi-check-action::before {
    width: 1.66rem !important;
    height: 1.12rem !important;
}

.doi-check-action::after {
    border: 0 !important;
}

.doi-check-action::before {
    border: 2px solid #fff !important;
}

.doi-check-action::after {
    box-shadow: none !important;
}

.doi-check-action::before {
    box-shadow: none !important;
}

.doi-check-action::after {
    border-radius: 0 !important;
}

.doi-check-action::before {
    border-radius: 4px !important;
}

.doi-check-action::after {
    background-image: none !important;
}

.doi-check-action::before {
    background-image: none !important;
}

.doi-check-action::after {
    -webkit-mask: none !important;
    mask: none !important;
}

.doi-check-action::before {
    -webkit-mask: none !important;
    mask: none !important;
}

.doi-check-action::after {
    position: absolute !important;
}

.doi-check-action::before {
    position: absolute !important;
}

.doi-check-action {
    position: relative !important;
}

.doi-check-action::after {
    pointer-events: none !important;
}

.doi-check-action::before {
    pointer-events: none !important;
}

.doi-check-action::after {
    z-index: 2 !important;
}

.doi-check-action::before {
    z-index: 1 !important;
}

.doi-check-action {
    z-index: auto;
}

.doi-check-action::after {
    box-sizing: border-box !important;
}

.doi-check-action::before {
    box-sizing: border-box !important;
}

.doi-check-action {
    box-sizing: border-box !important;
}

.doi-check-action::after {
    margin: 0 !important;
}

.doi-check-action::before {
    margin: 0 !important;
}

.doi-check-action::after {
    padding: 0 !important;
}

.doi-check-action::before {
    padding: 0 !important;
}

.doi-check-action {
    padding: 0 !important;
}

.doi-check-action::after {
    overflow: visible !important;
}

.doi-check-action::before {
    overflow: visible !important;
}

.doi-check-action {
    overflow: hidden !important;
}

.doi-check-action::after {
    text-transform: uppercase !important;
}

.doi-check-action::before {
    text-transform: none !important;
}

.doi-check-action::after {
    font-style: normal !important;
}

.doi-check-action::after {
    font-variant: normal !important;
}

.doi-check-action::after {
    font-stretch: normal !important;
}

.doi-check-action::after {
    font-size-adjust: none !important;
}

.doi-check-action::after {
    font-kerning: normal !important;
}

.doi-check-action::after {
    font-optical-sizing: auto !important;
}

.doi-check-action::after {
    font-feature-settings: normal !important;
}

.doi-check-action::after {
    font-variation-settings: normal !important;
}

.doi-check-action::after {
    text-decoration: none !important;
}

.doi-check-action::after {
    text-shadow: none !important;
}

.doi-check-action::after {
    text-indent: 0 !important;
}

.doi-check-action::after {
    text-overflow: clip !important;
}

.doi-check-action::after {
    text-rendering: geometricPrecision !important;
}

.doi-check-action::after {
    direction: ltr !important;
}

.doi-check-action::after {
    writing-mode: horizontal-tb !important;
}

.doi-check-action::after {
    rotate: none !important;
}

.doi-check-action::after {
    scale: none !important;
}

.doi-check-action::after {
    translate: none !important;
}

.doi-check-action::after {
    filter: none !important;
}

.doi-check-action::after {
    content: "DNI" !important;
}
    content: "";
    position: absolute;
    left: calc(50% + .42rem);
    top: calc(50% + .12rem);
    width: .5rem;
    height: .5rem;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: .34rem .34rem 0 -.15rem #fff;
    transform: translate(-50%, -50%);
}

.doi-read-action::before,
.dni-inline-button.doi-read-action::before,
.doi-check-action::before {
    left: 50%;
    top: 50%;
    width: 2rem;
    height: 1.55rem;
    border: 0;
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
}

.doi-read-action::before,
.dni-inline-button.doi-read-action::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 34 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='4' width='30' height='16' rx='2.8' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3Ctext x='17' y='15.8' text-anchor='middle' font-family='Arial, sans-serif' font-size='9.2' font-weight='900' fill='%23fff'%3EDNI%3C/text%3E%3C/svg%3E");
}

.doi-check-action::before {
    width: 2.05rem;
    height: 1.65rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 34 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2.8' stroke-width='2.2'/%3E%3Ccircle cx='9' cy='11' r='2' stroke-width='1.9'/%3E%3Cpath d='M6.4 16c1.7-2 3.8-2 5.2 0' stroke-width='1.9'/%3E%3Cpath d='M14 9h4.2M14 13h3.4' stroke-width='1.9'/%3E%3Ccircle cx='24.5' cy='15.5' r='4.3' stroke-width='2.3'/%3E%3Cpath d='m27.7 18.7 3.4 3.4' stroke-width='2.5'/%3E%3C/svg%3E");
}

.doi-read-action::after,
.dni-inline-button.doi-read-action::after,
.doi-check-action::after {
    display: none;
}

.doi-read-action::before,
.dni-inline-button.doi-read-action::before,
.doi-check-action::before {
    left: 50%;
    top: 50%;
    width: 1.95rem;
    height: 1.28rem;
    border: 2px solid #fff;
    border-radius: 4px;
    background-image: none;
    background: transparent;
    transform: translate(-50%, -50%);
}

.doi-read-action::after,
.dni-inline-button.doi-read-action::after {
    content: "DNI";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: .54rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    transform: translate(-50%, -46%);
}

.doi-check-action::before {
    left: calc(50% - .22rem);
    width: 1.72rem;
    height: 1.18rem;
}

.doi-check-action::after {
    content: "";
    display: block;
    position: absolute;
    left: calc(50% + .66rem);
    top: calc(50% + .18rem);
    width: .78rem;
    height: .78rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    box-shadow: .38rem .38rem 0 -.21rem #fff;
    transform: translate(-50%, -50%);
}

.vehicle-inline-actions.plate-check-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.35rem 3.35rem;
    align-items: center;
    gap: .35rem;
    min-height: 3rem;
    padding: .25rem .35rem .25rem .75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.vehicle-inline-actions.plate-check-actions.doi-interest-wrapper {
    border-color: #d92d20;
    background: #fff1f0;
}

.vehicle-inline-actions.plate-check-actions .form-control {
    min-width: 0;
    width: 100%;
    min-height: 2.35rem;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.vehicle-inline-actions.plate-check-actions .inline-action {
    position: static;
    top: auto;
    right: auto;
    display: inline-grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    height: 2.35rem;
    min-height: 2.35rem;
    margin: 0;
    padding: 0 .45rem;
    transform: none;
}

.vehicle-inline-actions.plate-check-actions .vehicle-vip-action {
    background: #7a271a;
}

.plate-check-command-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .45rem;
}

.plate-check-command-row > button {
    min-width: 0;
    min-height: 3rem;
}

.plate-check-command-row > button:only-child {
    grid-column: 1 / -1;
}

.form-grid .doi-reader-host {
    grid-column: 1 / -1;
}

.form-grid .doi-reader-host.intervention-doi-field {
    grid-column: span 2;
}

.intervention-doi-field .vehicle-inline-actions.doi-inline-actions {
    min-height: 3rem;
}

.doi-row-detail {
    display: grid;
    gap: .35rem;
    margin: -.35rem 0 .75rem;
}

.doi-row-detail:empty {
    display: none;
}

.form-grid .inline-reader-expanded {
    grid-column: 1 / -1;
}

.inline-dni-reader {
    margin-top: .75rem;
}

.identification-dni-reader-row {
    width: 100%;
}

.identification-dni-reader-row .inline-dni-reader {
    width: 100%;
    margin: .75rem 0;
}

.vehicle-inline-actions .police-inline {
    background: #174a7e;
    color: #fff;
}

.vehicle-inline-actions .dni-folder-action::before,
.vehicle-inline-actions .dni-folder-action::after {
    border-color: #fff;
}

.dni-reader {
    border-color: #7aa7bd;
    background: #f2f8fb;
}

.dni-capture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.control-capture-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
    align-items: stretch;
}

.control-vehicle-overview {
    display: grid;
    grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr);
    align-items: start;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.control-vehicle-overview-fields {
    display: grid;
    gap: .9rem;
    min-width: 0;
}

.control-vehicle-main-grid,
.control-vehicle-location-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-vehicle-plate-field {
    grid-column: span 2;
}

.control-vehicle-description-field {
    grid-column: span 2;
}

.control-vehicle-coordinates-field {
    grid-column: span 3;
}

.control-photo-grid {
    grid-template-columns: minmax(0, 1fr);
}

.control-capture-actions {
    display: grid;
    align-content: center;
    gap: .8rem;
}

.control-capture-actions .police-action {
    width: 100%;
    min-height: 3.15rem;
}

@media (max-width: 1100px) {
    .control-vehicle-main-grid,
    .control-vehicle-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .control-vehicle-coordinates-field {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .control-vehicle-overview,
    .control-vehicle-main-grid,
    .control-vehicle-location-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .control-vehicle-main-grid > .field-group,
    .control-vehicle-location-grid > .field-group {
        grid-column: auto;
    }
}

.dni-capture-box {
    position: relative;
    min-height: 11rem;
    display: grid;
    place-items: center;
    gap: .5rem;
    padding: .9rem;
    border: 2px dashed #7aa7bd;
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.dni-capture-box span {
    align-self: start;
    justify-self: start;
    color: #556575;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dni-capture-box strong {
    font-size: 1rem;
}

.dni-capture-box img {
    width: 100%;
    max-height: 13rem;
    object-fit: contain;
    border-radius: 6px;
}

.dni-capture-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .65rem;
}

.compact-action {
    min-height: 2.75rem;
    display: grid;
    place-items: center;
    margin: 0;
    padding: .65rem .8rem;
    border: 0;
    border-radius: 7px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.dni-icon-action {
    position: relative;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    overflow: hidden;
}

.dni-icon-action::before,
.dni-icon-action::after {
    content: "";
    position: absolute;
    display: block;
}

.dni-camera-action::before {
    width: 1.55rem;
    height: 1.1rem;
    left: 50%;
    top: 50%;
    border: 2px solid #fff;
    border-radius: 4px;
    transform: translate(-50%, -43%);
}

.dni-camera-action::after {
    width: .52rem;
    height: .52rem;
    left: 50%;
    top: 52%;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: -.55rem -.55rem 0 -.26rem #fff;
    transform: translate(-50%, -50%);
}

.dni-folder-action::before {
    width: 1.65rem;
    height: 1.1rem;
    left: 50%;
    top: 55%;
    border: 2px solid #17212b;
    border-radius: 3px;
    transform: translate(-50%, -50%);
}

.dni-folder-action::after {
    width: .82rem;
    height: .36rem;
    left: calc(50% - .56rem);
    top: calc(50% - .68rem);
    border: 2px solid #17212b;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
}

.inline-button-field.doi-three-actions .inline-field-button,
.inline-button-field.doi-three-actions .dni-icon-action {
    position: absolute;
    top: 50%;
    display: inline-grid;
    place-items: center;
    height: 2.35rem;
    min-height: 2.35rem;
    margin: 0;
    transform: translateY(-50%);
}

.inline-button-field.doi-three-actions .folder-inline-button {
    right: 9.55rem;
}

.inline-button-field.doi-three-actions .dgt-inline-button {
    right: 5.85rem;
}

.inline-button-field.doi-three-actions .ip-inline-button {
    right: .35rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.dni-camera-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 18, 28, .86);
}

.dni-camera-panel {
    width: min(58rem, 100%);
    display: grid;
    gap: .8rem;
    padding: .9rem;
    border-radius: 10px;
    background: #f5f8fa;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

.dni-camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #17212b;
}

.dni-camera-close {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: #dfe8ef;
    color: #17212b;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.dni-camera-video {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 8px;
    background: #050b12;
}

.dni-camera-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.dni-camera-actions button {
    min-height: 3.2rem;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
}

.dni-camera-cancel {
    background: #dfe8ef;
    color: #17212b;
}

.dni-camera-shot {
    background: #174a7e;
    color: #fff;
}

.textarea-small {
    min-height: 4rem;
    field-sizing: content;
    resize: vertical;
    overflow-y: hidden;
}

.textarea-large {
    min-height: 7rem;
    field-sizing: content;
    resize: vertical;
    overflow-y: auto;
    font-size: 1.125rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Los textos amplios permanecen multilínea en todas las fichas. */
:is(.field-group, .mic-field, .textarea-with-tool):has(.mic-button) textarea:not(.expanded-text-area) {
    min-height: 7rem !important;
    max-height: 18rem;
    field-sizing: content !important;
    resize: vertical !important;
    overflow-y: auto !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    text-overflow: clip;
    font-size: 1.125rem;
    line-height: 1.5;
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.ccop-detail-active :is(#texto-requerimiento, #texto-parte-intervencion) {
    height: 9rem !important;
    min-height: 9rem !important;
    max-height: none !important;
    field-sizing: fixed !important;
    overflow-y: auto;
}

.expanded-text-editor {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #eef3f6;
    color: #152433;
}

.expanded-text-toolbar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(11rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: .75rem 1rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid #aebdca;
    background: #102332;
    color: #fff;
}

.expanded-text-title {
    display: grid;
    gap: .08rem;
    min-width: 0;
}

.expanded-text-title span {
    color: #a9bdca;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.expanded-text-title strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expanded-text-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .5rem;
}

.expanded-action {
    min-height: 2.5rem;
    padding: .5rem .85rem;
    border: 0;
    border-radius: 5px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.expanded-action:disabled {
    cursor: wait;
    opacity: .5;
}

.expanded-action.correct { background: #f1b900; color: #171300; }
.expanded-action.translate { background: #1769aa; }
.expanded-action.speak { background: #16804a; }
.expanded-action.dictate { background: #c94d13; }
.expanded-action.dictate.is-listening {
    background: #b12532;
    outline: 3px solid #ffdf6b;
    outline-offset: 2px;
}
.expanded-action.clear { background: #56616c; }
.expanded-action.clear-confirm { background: #9f1f2d; }
.expanded-action.close { background: #b12532; }
.expanded-action.cancel { background: #667581; }

.expanded-clear-confirmation {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .6rem;
    padding: .7rem;
    border-left: 4px solid #f1b900;
    background: #fff6cf;
    color: #3d3300;
}

.expanded-clear-confirmation strong {
    margin-right: auto;
}

.expanded-language-picker {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(12rem, 1fr) auto auto;
    align-items: center;
    gap: .55rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.expanded-language-picker label {
    margin: 0;
    font-weight: 800;
}

.expanded-language-picker .form-control {
    min-height: 2.5rem;
}

.expanded-text-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: .6rem;
    padding: 1rem;
}

.expanded-text-area {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 1rem;
    border: 2px solid #72899a;
    border-radius: 6px;
    background: #fff;
    color: #17212b;
    font: inherit;
    font-size: 1.3rem;
    line-height: 1.55;
    resize: none;
}

.expanded-text-area:focus {
    border-color: #1778c8;
    outline: 3px solid rgba(23, 120, 200, .2);
}

.expanded-text-message {
    flex: 0 0 auto;
    padding: .65rem .8rem;
    border-left: 4px solid #1f7a4d;
    background: #dff4e8;
    color: #135334;
    font-weight: 700;
}

.expanded-text-message.is-error {
    border-left-color: #b12532;
    background: #fde7e9;
    color: #8d1722;
}

body:has(.expanded-text-editor) {
    overflow: hidden;
}

@media (max-width: 720px) {
    .expanded-text-toolbar {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        padding: .65rem;
    }

    .expanded-text-actions {
        justify-content: stretch;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .expanded-action {
        width: 100%;
        padding-inline: .35rem;
    }

    .expanded-language-picker {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .expanded-language-picker label,
    .expanded-language-picker select {
        grid-column: 1 / -1;
    }

    .expanded-text-body {
        padding: .65rem;
    }

    .expanded-text-area {
        padding: .75rem;
        font-size: 1.15rem;
    }
}

.button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .8rem;
}

.button-row.single-action-row {
    grid-template-columns: minmax(0, 1fr);
}

.denuncia-save-print {
    display: grid;
    gap: .65rem;
}

.full-width-action {
    width: 100%;
    margin-top: .8rem;
}

.module-button {
    min-width: 0;
    min-height: 3.85rem;
    padding: .48rem .56rem;
    display: flex;
    flex-direction: row;
    gap: .48rem;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
    color: #17212b;
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    text-align: left;
    font-size: .92rem;
    line-height: 1.15;
}

.module-button.module-team {
    background: #d9f0f7;
    border-color: #75b9cc;
}

.module-button.module-service {
    background: #fff0bf;
    border-color: #d8b64c;
}

.module-button.module-orders {
    background: #eadfff;
    border-color: #9b7ae1;
}

.module-button.module-interventions {
    background: #ffe4cf;
    border-color: #d18a52;
}

.module-button.module-people {
    background: #dff3e7;
    border-color: #70b58b;
}

.module-button.module-vehicles {
    background: #ffe0dc;
    border-color: #d66a62;
}

.module-button.module-traffic {
    background: #e6eefc;
    border-color: #7c9fdd;
}

.module-button.module-seizures {
    background: #f6e8ff;
    border-color: #bd8ce1;
}

.module-button.module-ordinances {
    background: #e7f4ff;
    border-color: #82b7dd;
}

.module-button.module-abandoned {
    background: #ffe8d6;
    border-color: #d89b70;
}

.module-button.module-seals {
    background: #eef2f7;
    border-color: #aab7c2;
}

.module-button.module-tests {
    background: #ddf4e6;
    border-color: #82bf9b;
}

.module-button.module-office {
    background: #f2f5fb;
    border-color: #a5b2c5;
}

.module-button.module-sentences {
    background: #ffe4df;
    border-color: #d9867c;
}

.module-button.module-tow {
    background: #eef7ff;
    border-color: #9dc2e2;
}

.module-button.module-roads {
    background: #e9f1ff;
    border-color: #9bb9e8;
}

.module-button.menu-group-service {
    background: #ffe6c6;
    border-color: #e0a35b;
}

.module-button.menu-group-operativo {
    background: #dceffd;
    border-color: #79b6e5;
}

.module-button.menu-group-actas {
    background: #def4e7;
    border-color: #7fc394;
}

.module-button.menu-group-trafico {
    background: #ffe1df;
    border-color: #dc7d75;
}

.module-button.menu-group-judicial {
    background: #efe4ff;
    border-color: #a889df;
}

.module-button.menu-group-varios {
    background: #fff4bd;
    border-color: #d8bd4e;
}

.module-button.module-team .module-icon {
    background: #f2fbff;
    border-color: #87c5d5;
}

.module-button.module-service .module-icon {
    background: #fff9df;
    border-color: #dfc15d;
}

.module-button.module-orders .module-icon {
    background: #f6f0ff;
    border-color: #b9a0ed;
}

.module-button.module-interventions .module-icon {
    background: #fff3e9;
    border-color: #dba06e;
}

.module-button.module-people .module-icon {
    background: #f0fbf4;
    border-color: #88c69d;
}

.module-button.module-vehicles .module-icon {
    background: #fff2ef;
    border-color: #e18a83;
}

.module-button.module-traffic .module-icon {
    background: #f5f8ff;
    border-color: #9fb8ea;
}

.module-button.module-seizures .module-icon {
    background: #fbf2ff;
    border-color: #cda6e8;
}

.module-button.module-ordinances .module-icon {
    background: #f3faff;
    border-color: #9cc8e8;
}

.module-button.module-abandoned .module-icon,
.module-button.module-seals .module-icon,
.module-button.module-tests .module-icon,
.module-button.module-office .module-icon,
.module-button.module-sentences .module-icon,
.module-button.module-tow .module-icon,
.module-button.module-roads .module-icon {
    background: rgba(255, 255, 255, .82);
}

.dgt-inline-button {
    background: #003f8f;
}

.icon-trash-button {
    width: 2.15rem;
    min-height: 2.15rem;
    border: 0;
    border-radius: 6px;
    background: #c62828;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.module-button:hover {
    border-color: #aab7c2;
    transform: translateY(-1px);
}

.menu-group-options .module-button {
    color: #102f4a;
    background: #dceeff;
    border-color: #6da6cf;
    box-shadow: 0 12px 26px rgba(7, 46, 78, .18);
}

.menu-group-options .module-button:nth-child(3n + 2) {
    background: #e7f4fc;
    border-color: #82b5d7;
}

.menu-group-options .module-button:nth-child(3n) {
    background: #d3e8f7;
    border-color: #5895c0;
}

.menu-group-options .module-button .module-icon {
    background: #f4faff;
    border-color: #82b4d5;
}

.menu-group-options .module-button:hover {
    background: #c7e3f7;
    border-color: #397eaf;
}

.module-button.menu-option-disabled,
.side-menu-item.menu-option-disabled {
    opacity: .52;
    filter: grayscale(.35);
    cursor: not-allowed;
}

.module-button.menu-option-disabled:hover {
    border-color: rgba(255,255,255,.55);
    transform: none;
}

.side-menu-item.menu-option-disabled:hover {
    background: #eaf6ff;
}

.native-menu-alert {
    position: fixed !important;
    left: 50%;
    top: 1.25rem;
    z-index: 2000;
    width: min(32rem, calc(100vw - 2rem));
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
    transform: translateX(-50%);
}

.module-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 6px;
    border: 1px solid rgba(32, 49, 63, .12);
    background: rgba(255, 255, 255, .72);
    color: #d8b64c;
    font-size: .72rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.module-svg {
    width: 2.65rem;
    height: 2.65rem;
    display: block;
}

.module-img-icon {
    width: 2.65rem;
    height: 2.65rem;
    display: block;
    object-fit: contain;
}

.module-text {
    min-width: 0;
    display: grid;
    gap: 0;
}

.module-title-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 7rem);
    align-items: center;
    gap: .35rem;
}

.module-text strong {
    min-width: 0;
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.12;
    font-weight: 500;
}

.module-detail {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #516477;
    font-size: .74rem;
    font-weight: 600;
}

.module-text small {
    color: #5d6c7b;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
}

.side-menu-layout {
    display: grid;
    grid-template-columns: max-content;
    align-items: start;
    gap: 1rem;
    justify-content: start;
    width: fit-content;
    max-width: 100%;
}

.side-tree-menu {
    display: grid;
    gap: .45rem;
    width: fit-content;
    min-width: 18rem;
    max-width: min(24rem, 100%);
    padding: .55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.dashboard-shell-side-menu {
    --side-menu-fixed-header-height: clamp(10.75rem, 24vw, 14.25rem);
    align-items: flex-start;
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding-top: calc(var(--side-menu-fixed-header-height) + .75rem);
}

.dashboard-shell-side-menu::after {
    content: "";
    position: fixed;
    right: clamp(3rem, 8vw, 8.75rem);
    bottom: clamp(8.75rem, 16vh, 13rem);
    z-index: 1;
    width: min(30vw, 23rem);
    height: min(58vh, 34rem);
    pointer-events: none;
    background: url("/siluetas-policias-cuerpo-entero.png") right bottom / contain no-repeat;
    opacity: .72;
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .42));
}

.dashboard-shell-side-menu::before {
    content: "POLIC\00cd A\A LOCAL";
    position: fixed;
    right: clamp(2rem, 6.7vw, 6.5rem);
    bottom: clamp(.7rem, 1.8vh, 1.35rem);
    z-index: 0;
    pointer-events: none;
    white-space: pre;
    color: rgba(142, 192, 235, .9);
    font-family: "Arial Black", "Segoe UI Black", system-ui, sans-serif;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    font-weight: 900;
    line-height: .82;
    letter-spacing: .02em;
    text-align: right;
    text-shadow: 0 18px 34px rgba(0, 0, 0, .42), 0 0 18px rgba(12, 44, 72, .35);
}

.dashboard-shell-side-menu .dashboard-header {
    margin-left: 0;
}

.dashboard-shell-side-menu > .dashboard-header {
    position: fixed !important;
    inset: 0 0 auto;
    z-index: 3000;
    width: 100%;
    max-width: none;
    min-height: var(--side-menu-fixed-header-height);
    box-sizing: border-box;
    padding: clamp(.55rem, 1.5vw, 1rem) clamp(1rem, 4vw, 2.5rem) .75rem;
    margin: 0;
    background: #0d1f2d;
    box-shadow: 0 12px 22px rgba(13, 31, 45, .42);
}

.dashboard-shell-side-menu .side-menu-layout,
.dashboard-shell-side-menu .side-tree-menu {
    justify-self: start;
    width: fit-content;
}

.dashboard-shell-side-menu .side-menu-layout,
.dashboard-shell-side-menu .menu-error {
    position: relative;
    z-index: 2;
}

.side-menu-group {
    border-bottom: 1px solid #d8e0e8;
    padding-bottom: .25rem;
}

.side-menu-group:last-child {
    border-bottom: 0;
}

.side-menu-group-button {
    cursor: pointer;
    border: 0;
    width: 100%;
    background: #dceffd;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .45rem .55rem;
    border-radius: 6px;
    color: #164f86;
    font-weight: 800;
    font: inherit;
    text-align: left;
}

.side-menu-group-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: .6rem;
}

.side-menu-group-icon {
    width: 1.85rem;
    height: 1.85rem;
    object-fit: contain;
    flex: 0 0 auto;
    filter: brightness(0) saturate(100%) invert(25%) sepia(82%) saturate(960%) hue-rotate(178deg) brightness(90%) contrast(92%);
}

.side-menu-group-button::after {
    content: "+";
    color: #164f86;
    font-weight: 900;
}

.side-menu-group.is-open .side-menu-group-button::after {
    content: "-";
}

.side-menu-group-button:hover {
    background: #c9e6fa;
}

.side-menu-items {
    display: grid;
    gap: .15rem;
    padding: .15rem 0 .35rem .55rem;
}

.side-menu-item {
    display: grid;
    grid-template-columns: 2.05rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    min-height: 2.65rem;
    padding: .35rem .5rem;
    border: 0;
    border-radius: 6px;
    background: #eaf6ff;
    color: #17212b;
    text-align: left;
    font: inherit;
    width: 100%;
}

.side-menu-item:hover {
    background: #d7ecfc;
}

.side-menu-icon {
    display: grid;
    place-items: center;
    width: 2.05rem;
    height: 2.05rem;
}

.side-menu-icon .module-img-icon,
.side-menu-icon .module-svg {
    width: 1.7rem;
    height: 1.7rem;
}

.side-menu-label {
    min-width: 0;
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.side-menu-detail {
    color: #516477;
    font-size: .78rem;
    font-weight: 800;
}

.order-card {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #d6dee5;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    font-weight: 800;
}

.service-order-editor { gap:.65rem; border:0; border-radius:0; box-shadow:none; }
.service-order-editor .order-card-header { align-items:center; min-width:0; }
.service-order-editor .order-card-header > div { min-width:0; overflow-wrap:anywhere; }
.order-context-grid, .order-schedule-grid, .order-title-grid { display:grid; gap:.65rem; min-width:0; }
.order-context-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.order-context-with-type { grid-template-columns:minmax(6rem,.65fr) minmax(8rem,.85fr) minmax(9rem,.9fr) minmax(7rem,.8fr) minmax(14rem,2fr); }
.order-schedule-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.order-title-grid { grid-template-columns:minmax(0,1fr) 10rem; }
.service-order-editor .readonly-field { min-width:0; gap:.2rem; padding:.35rem .45rem; border:0; border-bottom:1px solid #d6dee5; border-radius:0; background:transparent; }
.service-order-editor .readonly-field strong { overflow-wrap:anywhere; min-height:1.25rem; }
.service-order-editor > .check-row { margin:0; }
.order-text-fields { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:1rem; min-width:0; }
.order-text-fields > .field-group { min-width:0; align-content:start; }
.service-order-editor .order-text-fields textarea { box-sizing:border-box; width:100%; height:clamp(14rem,calc(100dvh - 27rem),32rem); min-height:14rem; resize:vertical; }
@media(max-width:1100px) {
    .order-context-with-type { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .order-service-type { grid-column:1/-1; }
    .order-text-fields { grid-template-columns:1fr; }
    .service-order-editor .order-text-fields textarea { height:16rem; }
}
@media(max-width:600px) {
    .order-context-grid, .order-schedule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .order-title-grid { grid-template-columns:1fr; }
    .service-order-editor { padding:.5rem; }
}

.order-number {
    display: inline-grid;
    place-items: center;
    min-width: 2.3rem;
    height: 2rem;
    margin-right: .5rem;
    border-radius: 6px;
    background: #20313f;
    color: #d8b64c;
    font-size: .8rem;
}

.priority-badge {
    padding: .25rem .5rem;
    border-radius: 6px;
    background: #fff4d1;
    color: #6f4e00;
    font-size: .78rem;
    white-space: nowrap;
}

.readonly-field {
    display: grid;
    gap: .25rem;
    padding: .65rem;
    background: #f5f8fa;
    border: 1px solid #d6dee5;
    border-radius: 6px;
}

.readonly-field span {
    color: #5d6c7b;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.readonly-field p {
    margin: 0;
    white-space: pre-wrap;
}

.print-preview {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 0 1.4rem 1.4rem;
    overflow-y: auto;
    background: #f3f6f9;
}

.print-actions {
    position: sticky;
    top: 0;
    z-index: 3010;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
    padding: .8rem 0;
    background: rgba(243, 246, 249, .98);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, .12);
}

.print-actions .toolbar-back-action {
    background: #be251c !important;
    color: #ffffff !important;
}

.print-actions .toolbar-back-action:hover {
    background: #a61f18 !important;
}

.print-sheet {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid #d6dee5;
    border-radius: 8px;
    color: #17212b;
}

.print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #20313f;
    padding-bottom: .7rem;
}

.print-header p {
    margin: 0 0 .2rem;
    color: #d8b64c;
    font-weight: 900;
    letter-spacing: .08rem;
}

.print-header h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 900;
}

.print-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
}

.print-grid div {
    display: grid;
    gap: .25rem;
    padding: .55rem;
    border: 1px solid #d6dee5;
    border-radius: 6px;
}

.print-grid span {
    color: #5d6c7b;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

.print-table th,
.print-table td {
    padding: .5rem;
    border: 1px solid #cbd5df;
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
}

.pdf-preview-sheet {
    gap: .9rem;
}

.pdf-preview-frame {
    width: 100%;
    height: 72vh;
    min-height: 680px;
    border: 1px solid #c7d4df;
    background: #fff;
}

.pdf-preview-fallback {
    min-height: 420px;
    display: grid;
    place-items: center;
    gap: .8rem;
    padding: 2rem;
    text-align: center;
}

.signature-preview-section {
    display: grid;
    gap: .55rem;
}

.model-print-sheet {
    gap: .85rem;
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 0;
    color: #061426;
    font-size: .9rem;
}

.model-print-titlebar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #243444;
}

.model-print-titlebar p {
    margin: 0 0 .35rem;
    color: #d8b33e;
    font-weight: 900;
    letter-spacing: .06em;
}

.model-print-titlebar h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.model-print-header {
    display: grid;
    grid-template-columns: 11rem 1fr;
    min-height: 6rem;
    border: 1px solid #c7d4df;
}

.model-logo-cell,
.model-title-cell {
    display: flex;
    align-items: center;
    border-right: 1px solid #c7d4df;
}

.model-logo-cell {
    justify-content: center;
}

.model-title-cell {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: .45rem;
    padding: .8rem 1.1rem;
    border-right: 0;
}

.model-title-cell strong {
    font-size: .95rem;
}

.model-title-cell h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 900;
}

.model-print-logo {
    width: 4.2rem;
    height: 4.2rem;
    object-fit: contain;
}

.model-print-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.model-print-table th,
.model-print-table td {
    border: 1px solid #c5d4e1;
    padding: .45rem .55rem;
    text-align: left;
    vertical-align: top;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.model-print-table th {
    background: #e8f1f9;
    font-weight: 800;
}

.model-print-section {
    display: grid;
    gap: .45rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

.model-print-section h3 {
    margin: .65rem 0 .2rem;
    font-size: 1.1rem;
    font-weight: 900;
    break-after: avoid;
    page-break-after: avoid;
}

.model-incident-table {
    margin-bottom: .85rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

.signature-chief-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #c5d4e1;
    background: #e8f1f9;
}

.signature-chief-row strong {
    padding: .65rem .75rem;
    border-right: 1px solid #c5d4e1;
}

.signature-chief-row strong:last-child {
    border-right: 0;
}

.model-turno-table th:nth-child(1),
.model-turno-table th:nth-child(3) {
    width: 15%;
}

.model-turno-table td {
    min-height: 2rem;
}

.model-agents-table th:nth-child(1),
.model-agents-table td:nth-child(1) {
    width: 5.4rem;
}

.model-agents-table th:nth-child(2),
.model-agents-table td:nth-child(2) {
    width: 5rem;
}

.model-agents-table th:nth-child(3),
.model-agents-table td:nth-child(3) {
    width: 5rem;
}

.print-text {
    min-height: 3rem;
    white-space: pre-wrap;
}

.traffic-ticket-preview {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
}

.traffic-ticket-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.traffic-ticket-print {
    width: 80mm;
    max-width: 100%;
    padding: 4mm;
    background: #fff;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.25;
}

.partepol-ticket-print-host {
    display: none;
}

.traffic-ticket-header {
    display: grid;
    gap: 1mm;
    padding-bottom: 2mm;
    margin-bottom: 2mm;
    border-bottom: 1px solid #111;
    text-align: center;
}

.traffic-ticket-header strong {
    font-size: 11px;
    text-transform: uppercase;
}

.traffic-ticket-header span {
    font-size: 13px;
    font-weight: 900;
}

.traffic-ticket-fields {
    display: grid;
    gap: 1.2mm;
    margin: 0;
}

.traffic-ticket-fields div {
    display: grid;
    gap: .35mm;
    padding-bottom: 1mm;
    border-bottom: 1px dotted #aaa;
}

.traffic-ticket-fields dt {
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 8.5px;
}

.traffic-ticket-fields dd {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.traffic-ticket-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4mm;
    margin-top: 8mm;
}

.traffic-ticket-footer p {
    margin: 0;
    padding-top: 10mm;
    border-top: 1px solid #111;
    text-align: center;
    font-size: 8.5px;
}

.signature-pad {
    width: 100%;
    max-width: 720px;
    height: 180px;
    display: block;
    border: 2px dashed #7b8794;
    border-radius: 6px;
    background: #fff;
    touch-action: none;
}

.acta-policial-panel {
    display: grid;
    gap: 1rem;
    margin: 1rem auto;
    padding: 1rem;
    border: 1px solid #c8d7e3;
    border-radius: 8px;
    background: #f5f9fc;
    width: min(100%, 1320px);
    justify-self: center;
}

#acta-policial-host:has(.acta-policial-panel) {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: auto;
    padding: 1rem;
    background: rgba(8, 24, 36, .94);
}

.acta-policial-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.acta-policial-header h2 {
    margin: .1rem 0 .2rem;
}

.acta-policial-header p {
    margin: 0;
    color: #506070;
}

.acta-policial-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .7rem;
}

.acta-policial-actions .action-icon,
.signature-block .button-row .action-icon,
.email-send-panel .action-icon {
    min-height: 2.4rem;
    padding: .45rem .8rem;
}

.acta-policial-actions .action-icon::before,
.signature-block .button-row .action-icon::before,
.email-send-panel .action-icon::before {
    width: 1.25rem;
    height: 1.25rem;
}

.acta-preview-shell {
    position: relative;
    width: 100%;
    overflow: auto;
    padding: 1.25rem;
    border: 1px solid #b7c3cc;
    background: #dfe4e8;
}

.acta-html-document {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 18mm 17mm;
    box-sizing: border-box;
    overflow: hidden;
    color: #101820;
    background: #fff;
    box-shadow: 0 3px 18px rgba(9, 30, 46, .2);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
    line-height: 1.32;
}

.acta-html-document.is-editing {
    outline: 3px solid #e0ad00;
    outline-offset: -3px;
}

.acta-html-document.industrial-inspection-acta { padding: 12mm; color: #111; font-size: 8.5pt; line-height: 1.25; }
.industrial-acta-identity { display: flex; align-items: center; gap: 5mm; min-height: 16mm; margin-bottom: 3mm; }
.industrial-acta-identity img { width: 16mm; height: 16mm; object-fit: contain; }
.industrial-acta-identity strong { font-size: 12pt; overflow-wrap: anywhere; }
.industrial-acta-header h1 { margin: 0 0 4mm; text-align: center; font-size: 14pt; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.industrial-acta-group { margin-bottom: 1.8mm; }
.industrial-acta-group h2 { margin: 0; padding: 1mm 1.5mm; border: 1px solid #777; background: #e5e5e5; color: #111; font-size: 8pt; line-height: 1.2; font-weight: 700; break-after: avoid; }
.industrial-acta-row { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
.industrial-acta-row td { padding: .6mm 1.2mm; border: 1px solid #777; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; }
.industrial-acta-row td, .industrial-acta-row td span { font-size: 8pt; line-height: 1.2; }
.industrial-acta-row td .industrial-acta-label { font-weight: 700; font-size: 7.5pt; }
.industrial-acta-notes { min-height: 12mm; padding: 1.5mm; border: 1px solid #777; border-top: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.industrial-acta-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; min-height: 24mm; margin-top: 4mm; text-align: center; font-size: 8pt; break-inside: avoid; }
.industrial-acta-signatures p { margin: 2mm 0; }
.industrial-acta-signatures img { max-width: 65mm; max-height: 18mm; object-fit: contain; }
@page industrial-inspection { size: A4 portrait; margin: 12mm; }
@media print {
    html:has(body > .industrial-inspection-acta), body:has(> .industrial-inspection-acta) { width: auto !important; min-height: 0 !important; height: auto !important; background: #fff !important; }
    .acta-html-document.industrial-inspection-acta { page: industrial-inspection; width: 186mm !important; min-height: 0 !important; padding: 0 !important; overflow: visible; }
    .industrial-acta-row tr { break-inside: avoid; }
}

.acta-html-document.denuncia-ordenanza-acta { padding: 12mm; color: #111; font-size: 9pt; line-height: 1.25; }
.denuncia-acta-identity { display: flex; align-items: center; gap: 5mm; min-height: 18mm; margin-bottom: 4mm; }
.denuncia-acta-identity img { width: 18mm; height: 18mm; object-fit: contain; }
.denuncia-acta-identity strong { font-size: 12pt; overflow-wrap: anywhere; }
.denuncia-acta-header h1 { margin: 0 0 6mm; text-align: center; font-size: 14pt; font-weight: 700; letter-spacing: 0; }
.denuncia-acta-group { margin-bottom: 3mm; }
.denuncia-acta-group h2 { margin: 0; padding: 1mm 1.5mm; border: 1px solid #555; background: #ddd; color: #111; font-size: 9pt; font-weight: 700; line-height: 1.2; break-after: avoid; }
.denuncia-acta-row { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
.denuncia-acta-row td { padding: .8mm 1.2mm; border: 1px solid #555; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 9pt; line-height: 1.25; }
.denuncia-acta-notes { min-height: 18mm; padding: 1.5mm; border: 1px solid #555; border-top: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.denuncia-acta-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; min-height: 28mm; margin-top: 6mm; text-align: center; font-size: 9pt; break-inside: avoid; }
.denuncia-acta-signatures p { margin: 2mm 0; }
.denuncia-acta-signatures img { max-width: 65mm; max-height: 18mm; object-fit: contain; }
@page denuncia-ordenanza { size: A4 portrait; margin: 12mm; }
@media print {
    html:has(body > .denuncia-ordenanza-acta), body:has(> .denuncia-ordenanza-acta) { width: auto !important; min-height: 0 !important; height: auto !important; background: #fff !important; }
    .acta-html-document.denuncia-ordenanza-acta { page: denuncia-ordenanza; width: 186mm !important; min-height: 0 !important; padding: 0 !important; overflow: visible; }
    .denuncia-acta-row tr { break-inside: avoid; }
    .denuncia-acta-group:not(:has(.denuncia-acta-notes)) { break-inside: avoid; }
}

.acta-html-document.inmovilizacion-acta { padding: 12mm; color: #111; font-size: 8.5pt; line-height: 1.25; }
.inmov-acta-identity { display: flex; align-items: center; gap: 5mm; min-height: 18mm; margin-bottom: 4mm; }
.inmov-acta-identity img { width: 18mm; height: 18mm; object-fit: contain; }
.inmov-acta-identity strong { font-size: 12pt; overflow-wrap: anywhere; }
.inmov-acta-header h1 { margin: 0 0 4mm; text-align: center; font-size: 13pt; font-weight: 700; letter-spacing: 0; }
.inmov-acta-group { margin-bottom: 2mm; }
.inmov-acta-group h2 { margin: 0; padding: 1mm 1.5mm; border: 1px solid #555; background: #ddd; color: #111; font-size: 8.5pt; font-weight: 700; line-height: 1.2; break-after: avoid; }
.inmov-acta-row { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
.inmov-acta-row td { padding: .8mm 1.2mm; border: 1px solid #555; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 8.5pt; line-height: 1.25; }
.inmov-acta-notes { min-height: 9mm; padding: 1.5mm; border: 1px solid #555; border-top: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.inmov-acta-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; min-height: 28mm; margin-top: 6mm; text-align: center; font-size: 8.5pt; break-inside: avoid; }
.inmov-acta-signatures p { margin: 2mm 0; }
.inmov-acta-signatures img { max-width: 65mm; max-height: 18mm; object-fit: contain; }
@page inmovilizacion { size: A4 portrait; margin: 12mm; }
@media print {
    html:has(body > .inmovilizacion-acta), body:has(> .inmovilizacion-acta) { width: auto !important; min-height: 0 !important; height: auto !important; background: #fff !important; }
    .acta-html-document.inmovilizacion-acta { page: inmovilizacion; width: 186mm !important; min-height: 0 !important; padding: 0 !important; overflow: visible; }
    .inmov-acta-row tr { break-inside: avoid; }
    .inmov-acta-group:not(:has(.inmov-acta-notes)) { break-inside: avoid; }
    .inmov-acta-group:has(+ .inmov-acta-signatures) { break-after: avoid; }
}

.acta-html-document.volante-identificacion-acta { padding: 12mm; color: #111; font-size: 8pt; line-height: 1.2; }
.volante-acta-identity { display: flex; align-items: center; gap: 5mm; min-height: 16mm; margin-bottom: 3mm; }
.volante-acta-identity img { width: 16mm; height: 16mm; object-fit: contain; }
.volante-acta-identity strong { font-size: 12pt; overflow-wrap: anywhere; }
.volante-acta-header h1 { margin: 0 0 4mm; text-align: center; font-size: 14pt; font-weight: 700; letter-spacing: 0; }
.volante-acta-group { margin-bottom: 1.8mm; }
.volante-acta-group h2 { margin: 0; padding: .7mm 1.2mm; border: 1px solid #555; background: #ddd; color: #111; font-size: 8pt; font-weight: 700; line-height: 1.2; break-after: avoid; }
.volante-acta-row { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
.volante-acta-row td { padding: .5mm 1mm; border: 1px solid #555; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 8pt; line-height: 1.2; }
.volante-acta-notes { min-height: 8mm; padding: 1mm; border: 1px solid #555; border-top: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.volante-acta-normativa .volante-acta-notes { font-size: 8pt; text-align: justify; }
.volante-acta-checkbox { display: inline-block; width: 2.5mm; height: 2.5mm; margin-right: 1mm; border: 1px solid #222; vertical-align: middle; }
.volante-acta-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; min-height: 20mm; margin-top: 4mm; text-align: center; font-size: 8pt; break-inside: avoid; }
.volante-acta-signatures p { margin: 2mm 0; }
.volante-acta-signatures img { max-width: 65mm; max-height: 16mm; object-fit: contain; }
@page volante-identificacion { size: A4 portrait; margin: 12mm; }
@media print {
    html:has(body > .volante-identificacion-acta), body:has(> .volante-identificacion-acta) { width: auto !important; min-height: 0 !important; height: auto !important; background: #fff !important; }
    .acta-html-document.volante-identificacion-acta { page: volante-identificacion; width: 186mm !important; min-height: 0 !important; padding: 0 !important; overflow: visible; }
    .volante-acta-row tr, .volante-acta-group:not(:has(.volante-acta-notes)) { break-inside: avoid; }
}

.acta-html-header {
    display: grid;
    grid-template-columns: 28mm 1fr;
    align-items: center;
    gap: 5mm;
    padding-bottom: 5mm;
    border-bottom: 1px solid #8f999f;
}

.acta-html-logo img {
    display: block;
    max-width: 25mm;
    max-height: 25mm;
    object-fit: contain;
}

.acta-html-header p,
.acta-html-header h1 {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
}

.acta-html-header p {
    font-size: 8pt;
}

.acta-html-header h1 {
    margin-top: 2mm;
    font-size: 15pt;
    line-height: 1.15;
}

.acta-html-summary {
    width: 100%;
    margin: 6mm 0 5mm;
    border-collapse: collapse;
    table-layout: fixed;
}

.acta-html-summary th,
.acta-html-summary td {
    padding: 2mm 2.5mm;
    border: 1px solid #aeb6bb;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.acta-html-summary th {
    width: 19%;
    background: #f0f2f3;
    font-size: 7.5pt;
}

.acta-html-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #aeb6bb;
    border-left: 1px solid #aeb6bb;
}

.acta-html-field {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    min-height: 9mm;
    border-right: 1px solid #aeb6bb;
    border-bottom: 1px solid #aeb6bb;
}

.acta-html-field.is-wide {
    grid-column: 1 / -1;
    grid-template-columns: 17.5% minmax(0, 1fr);
}

.acta-html-label,
.acta-html-value {
    padding: 2mm 2.5mm;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.acta-html-label {
    border-right: 1px solid #aeb6bb;
    background: #f0f2f3;
    font-size: 7.5pt;
    font-weight: 400;
}

.acta-html-value {
    font-size: 8.5pt;
    font-weight: 400;
}

.acta-html-signature {
    margin-top: 9mm;
    padding-top: 4mm;
    border-top: 1px solid #8f999f;
    text-align: center;
}

.acta-html-signature h2,
.acta-html-signature p {
    margin: 0 0 2mm;
    font-size: 8pt;
    font-weight: 400;
}

.acta-html-signature img {
    display: block;
    max-width: 58mm;
    max-height: 24mm;
    margin: 2mm auto 0;
    object-fit: contain;
}

.acta-html-signature-space {
    height: 24mm;
}

.acta-html-edit-notice {
    padding: .7rem .9rem;
    border-left: 4px solid #e0ad00;
    background: #fff5cc;
    color: #2f2a18;
}

.acta-edit-action::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
    #acta-policial-host:has(.acta-policial-panel) {
        padding: .35rem;
    }

    .acta-policial-panel {
        padding: .65rem;
    }

    .acta-preview-shell {
        padding: .5rem;
    }
}

.acta-policial-preview {
    width: 100%;
    min-height: 92vh;
    border: 1px solid #c8d7e3;
    border-radius: 6px;
    background: #fff;
}

.acta-policial-preview-placeholder {
    display: grid;
    place-items: center;
    min-height: 56vh;
    color: #50647a;
    font-weight: 800;
    text-align: center;
    padding: 2rem;
}

.document-drawer-panel {
    margin: .8rem 0 1rem;
    background: #fff1f0;
    border-color: #f2b8b5;
}

.document-drawer-panel .section-note {
    margin: -.2rem 0 .6rem;
    color: #7f1d1d;
}

.document-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.document-drawer-header h3 {
    margin: 0;
}

.document-drawer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.document-file-button {
    position: relative;
    min-height: 2.35rem;
    padding: .45rem .8rem;
    overflow: hidden;
    cursor: pointer;
}

.document-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.document-drawer-table {
    table-layout: fixed;
}

.document-drawer-table th:nth-child(1),
.document-drawer-table td:nth-child(1) {
    width: 7rem;
}

.document-drawer-table th:nth-child(2),
.document-drawer-table td:nth-child(2) {
    width: 5.5rem;
}

.document-drawer-table th:nth-child(4),
.document-drawer-table td:nth-child(4) {
    width: 7.8rem;
}

.document-notes-input {
    min-height: 2.2rem;
    padding: .35rem .5rem;
}

.document-row-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.document-icon-button {
    width: 2.05rem;
    height: 2.05rem;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.document-icon-button::before {
    content: "";
    width: 1.2rem;
    height: 1.2rem;
    background: currentColor;
    -webkit-mask: var(--document-icon) center / contain no-repeat;
    mask: var(--document-icon) center / contain no-repeat;
}

.document-view-button {
    --document-icon: url("/iconos/acta-policial.png");
    background: #e31b23;
}

.document-save-button {
    --document-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h12l2 2v14H5V4ZM8 4v6h8V4M8 20v-6h8v6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: #14532d;
}

.document-delete-button {
    --document-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 14h10l1-14M9 7V4h6v3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: #b42318;
}

.document-drawer-has-docs {
    background: #f6c945 !important;
    color: #15202b !important;
    box-shadow: 0 0 0 3px rgba(246, 201, 69, .35);
}

.document-drawer-has-docs::before {
    background: #15202b !important;
}

.link-button {
    border: 0;
    background: transparent;
    color: #174f87;
    padding: 0;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.document-preview-panel {
    display: grid;
    gap: .5rem;
    margin-top: 1rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.document-preview-panel h4 {
    margin: 0;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.document-preview-frame {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: min(72vh, 760px);
    min-height: 420px;
    border: 1px solid #c8d7e3;
    border-radius: 6px;
    background: #fff;
}

@media (max-width: 700px) {
    .document-preview-frame {
        height: 62vh;
        min-height: 360px;
    }
}

.acta-signature-overlay {
    position: absolute;
    left: 12%;
    top: 82%;
    width: min(38%, 260px);
    height: auto;
    min-width: 150px;
    max-height: 120px;
    display: none;
    padding: .15rem;
    border: 1px dashed #174f87;
    border-radius: 4px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 18px rgba(12, 29, 45, .18);
    cursor: move;
    touch-action: none;
    z-index: 3;
}

.acta-signature-overlay.is-visible {
    display: block;
}

.doi-check-panel {
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid #c8d7e3;
    border-radius: 6px;
    background: #f5f9fc;
}

.doi-check-panel h3 {
    margin: 0 0 .6rem;
    font-size: 1rem;
}

.doi-check-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .8rem;
}

.doi-check-panel-header h3 {
    margin: 0;
}

.doi-check-panel-header .danger-action {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 2.1rem;
    padding: .3rem .6rem;
    font-size: .78rem;
    white-space: nowrap;
}

.compact-table th,
.compact-table td {
    padding: .55rem .6rem;
}

.check-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: .45rem;
}

.check-result-grid-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    grid-template-rows: auto auto;
    align-items: center;
    gap: .15rem .4rem;
    min-width: 0;
    min-height: 3.6rem;
    padding: .42rem .45rem;
    border: 1px solid #c2d2de;
    border-radius: 4px;
    background: #fff;
    color: #20313f;
    font: inherit;
    text-align: left;
}

.check-result-grid-item:disabled {
    opacity: 1;
    color: #20313f;
    cursor: default;
}

.check-result-grid-item.check-result-navigable {
    border-color: #8fc2de;
    background: #dceffc;
    color: #123f73;
    cursor: pointer;
}

.check-result-grid-item.check-result-navigable:hover,
.check-result-grid-item.check-result-navigable:focus-visible {
    border-color: #247c94;
    background: #c6e5f8;
    outline: 2px solid #247c94;
    outline-offset: 1px;
}

.check-result-table,
.check-result-field {
    min-width: 0;
    overflow-wrap: anywhere;
}

.check-result-table {
    align-self: end;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.1;
}

.check-result-field {
    align-self: start;
    color: #526477;
    font-size: .66rem;
    line-height: 1.1;
}

.check-result-count {
    display: grid;
    grid-column: 2;
    grid-row: 1 / 3;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 4px;
    background: #123f73;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
}

.check-results-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: .6rem;
    border: 1px solid #c8d7e3;
    border-radius: 4px;
    background: #fff;
    color: #526477;
    font-size: .85rem;
}

.check-detail-active .team-form > .table-scroll {
    display: none;
}

.signature-block,
.email-send-panel {
    display: grid;
    gap: .7rem;
    padding: .9rem;
    border: 1px solid #c8d7e3;
    border-radius: 6px;
    background: #fff;
}

.email-send-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.email-send-panel label {
    grid-column: 1 / -1;
}

.acta-cajon-reference-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
    border-color: #bfd1df;
    background: #eef6fb;
}

.acta-cajon-reference-panel textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.acta-cajon-reference-panel .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

@media (max-width: 720px) {
    .dashboard-shell:not(:has(.team-form)) {
        padding: .55rem .35rem 1rem;
    }

    .dashboard-shell-side-menu {
        --side-menu-fixed-header-height: 10.4rem;
        padding-top: calc(var(--side-menu-fixed-header-height) + .55rem) !important;
    }

    .dashboard-shell-side-menu > .dashboard-header {
        min-height: var(--side-menu-fixed-header-height);
        padding: .45rem .55rem .6rem;
    }

    .dashboard-shell:not(:has(.team-form)) .dashboard-header {
        align-items: center;
        gap: .45rem;
        margin-bottom: .55rem;
    }

    .dashboard-shell:not(:has(.team-form)) .dashboard-header h1 {
        margin: .15rem 0 .1rem;
        font-size: clamp(2rem, 8.4vw, 2.55rem);
        line-height: .92;
    }

    .dashboard-shell:not(:has(.team-form)) .dashboard-header .eyebrow {
        margin-bottom: .1rem;
        font-size: .72rem;
    }

    .dashboard-shell:not(:has(.team-form)) .dashboard-header .header-copy p {
        margin: .12rem 0 0;
        font-size: .88rem;
        line-height: 1.12;
    }

    .dashboard-shell:not(:has(.team-form)) .dashboard-header .header-copy p:nth-of-type(3) {
        display: none;
    }

    .dashboard-shell:not(:has(.team-form)) .dashboard-header .header-copy p:nth-of-type(4) {
        font-size: .82rem;
        opacity: .86;
    }

    .dashboard-shell:not(:has(.team-form)) .dashboard-header-side {
        gap: .35rem;
        justify-content: center;
    }

    .dashboard-shell:not(:has(.team-form)) .header-actions {
        gap: .35rem;
    }

    .dashboard-shell:not(:has(.team-form)) .header-icon-action {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        font-size: 1.1rem;
    }

    .dashboard-shell:not(:has(.team-form)) .action-grid {
        gap: .5rem;
    }

    .menu-category-grid {
        gap: .5rem;
    }

    .menu-group-heading {
        display: grid;
        grid-template-columns: 3.15rem minmax(0, 1fr);
        gap: .55rem;
    }

    .menu-group-heading > button {
        width: 3.15rem;
        min-width: 3.15rem;
        padding: 0;
    }

    .menu-group-heading h2 {
        overflow-wrap: anywhere;
        font-size: 1.45rem;
    }

    .button-menu-groups {
        gap: .65rem;
    }

    .button-menu-section {
        padding: .55rem;
        gap: .45rem;
    }

    .button-menu-section h2 {
        font-size: .78rem;
    }

    .button-menu-section .action-grid {
        grid-template-columns: 1fr;
    }

    .side-menu-layout {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .side-tree-menu {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: .45rem;
    }

    .side-menu-item {
        grid-template-columns: 1.9rem minmax(0, 1fr) auto;
        min-height: 2.55rem;
    }

    .side-menu-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .side-menu-label {
        white-space: normal;
    }

    .dashboard-shell-side-menu .side-menu-layout {
        grid-template-columns: max-content;
        width: fit-content;
        max-width: calc(100vw - .7rem);
    }

    .dashboard-shell-side-menu .side-tree-menu {
        width: fit-content;
        min-width: 18rem;
        max-width: calc(100vw - .7rem);
    }

    .dashboard-shell-side-menu .side-menu-label {
        white-space: nowrap;
    }

    .dashboard-shell-side-menu::after {
        right: 1.2rem;
        bottom: 7.4rem;
        width: min(30vw, 14rem);
        height: min(48vh, 24rem);
        opacity: .5;
    }

    .dashboard-shell-side-menu::before {
        right: 1rem;
        bottom: .8rem;
        font-size: clamp(1.8rem, 5.4vw, 3.2rem);
        opacity: .82;
    }

    .vehicle-inline-actions.doi-inline-actions.doi-check-actions {
        grid-template-columns: minmax(0, 1fr) 3.15rem 3.15rem 3.35rem;
    }

    .vehicle-inline-actions.plate-check-actions {
        grid-template-columns: minmax(0, 1fr) 3.35rem 3.35rem;
    }

    .login-panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .login-brand {
        justify-items: center;
        text-align: center;
    }

    .login-logo {
        width: 8rem;
    }

    .login-copy {
        font-size: 1rem;
    }

    .secondary-action,
    .police-action,
    .danger-action,
    .success-action,
    .toolbar-list-action,
    .toolbar-agent-action,
    .toolbar-print-action,
    .toolbar-back-action {
        width: 100%;
    }

    .module-button {
        min-height: 3.45rem;
        padding: .4rem .46rem;
        font-size: .82rem;
        gap: .42rem;
    }

    .module-icon {
        width: 2.95rem;
        height: 2.95rem;
    }

    .module-img-icon,
    .module-svg {
        width: 2.37rem;
        height: 2.37rem;
    }

    .module-title-row {
        gap: .24rem;
    }

    .module-detail {
        font-size: .68rem;
        font-weight: 600;
    }

    .dashboard-header {
        gap: .65rem;
    }

    .jefatura-logo {
        width: 54px;
        height: 54px;
    }

    .form-grid.two,
    .form-grid.three,
    .form-grid.four,
    .form-grid.identification-detail-grid,
    .intervention-top-grid,
    .control-capture-row,
    .confirm-actions,
    .button-row,
    .related-intervention-actions,
    .three-actions,
    .four-actions,
    .five-actions {
        grid-template-columns: 1fr;
    }

    .intervention-top-grid .phone-highlight-field,
    .intervention-top-grid .intervention-motivo-field {
        grid-column: auto;
    }

    .intervention-top-grid > .field-group,
    .intervention-request-grid > .field-group {
        grid-column: auto;
        grid-row: auto;
    }

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

    .form-grid.four > .field-group:has(.inline-button-field.vehicle-lookup-actions),
    .form-grid.four > .field-group:has(.inline-button-field.vehicle-related-actions),
    .form-grid.four > .field-group:has(.inline-button-field.location-actions),
    .form-grid.four > .field-group:has(.inline-button-field.coordinate-actions),
    .coordinate-grid > .coordinate-location-field,
    .form-grid.three > .field-group:has(.inline-button-field.location-actions),
    .form-grid.three > .field-group:has(.inline-button-field.coordinate-actions),
    .coordinate-grid > .field-group:has(.inline-button-field.coordinate-actions),
    .form-grid.four > .field-group:has(.inline-button-field.doi-check-inline-actions),
    .form-grid.four > .field-group:has(.inline-button-field.doi-check-read-actions),
    .form-grid.four > .field-group:has(.inline-button-field.doi-action-four-buttons),
    .form-grid.four > .field-group:has(.inline-button-field.doi-check-dgt-pip-actions),
    .form-grid.four > .field-group:has(.vehicle-inline-actions) {
        grid-column: auto;
        min-width: 0;
    }

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

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

    .print-actions {
        top: 0;
        gap: .5rem;
        padding: .5rem 0;
        box-shadow: 0 8px 14px rgba(15, 23, 42, .1);
    }

    .print-preview {
        padding: 0 .65rem .9rem;
    }

    .print-preview .print-sheet {
        width: 920px;
        max-width: 920px;
        justify-self: center;
        zoom: calc((100vw - 1.3rem) / 920);
    }

    .acta-policial-header {
        display: grid;
        grid-template-columns: 1fr;
    }

    .email-send-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .dashboard-shell-side-menu::before,
    .dashboard-shell-side-menu::after {
        display: none;
    }

    .menu-group-options {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: 80mm auto;
        margin: 0;
    }

    body * {
        visibility: hidden;
    }

    .print-sheet,
    .print-sheet *,
    .traffic-ticket-print,
    .traffic-ticket-print * {
        visibility: visible;
    }

    .print-sheet {
        position: absolute;
        inset: 0;
        width: 100%;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .traffic-ticket-print {
        position: absolute;
        inset: 0;
        width: 80mm;
        max-width: 80mm;
        border: 0;
        border-radius: 0;
    }

    .print-actions,
    .floating-scroll-buttons,
    .toolbar-row {
        display: none !important;
    }

    body.partepol-ticket-printing * {
        visibility: hidden !important;
    }

    body.partepol-ticket-printing {
        width: 80mm !important;
        min-width: 80mm !important;
        max-width: 80mm !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    html:has(body.partepol-ticket-printing) {
        width: 80mm !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    body.partepol-ticket-printing > :not(#partepol-ticket-print-host) {
        display: none !important;
    }

    body.partepol-ticket-printing .partepol-ticket-print-host,
    body.partepol-ticket-printing .partepol-ticket-print-host * {
        visibility: visible !important;
    }

    body.partepol-ticket-printing .partepol-ticket-print-host {
        display: block !important;
        position: static !important;
        width: 80mm !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.partepol-ticket-printing .partepol-ticket-print-host .traffic-ticket-print {
        position: static;
        width: 80mm !important;
        max-width: 80mm !important;
        min-height: 0 !important;
        margin: 0;
        padding: 4mm;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* Prueba Retiradas grua: barra superior compacta, siempre en una sola fila. */
.tow-fixed-test-form .tow-fixed-test-actions {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(2.15rem, 1fr)) !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(2.15rem, 1fr);
    align-items: stretch;
    top: calc(var(--tow-fixed-header-height) + var(--tow-fixed-actions-gap)) !important;
}

.tow-fixed-test-form .tow-fixed-test-actions > button {
    width: 100%;
    min-width: 0;
    max-width: none;
    aspect-ratio: auto;
}

@media (max-width: 640px) {
    .tow-fixed-test-form .tow-fixed-test-actions {
        grid-template-columns: repeat(7, minmax(1.95rem, 1fr)) !important;
        gap: .25rem;
        top: calc(var(--tow-fixed-header-height) + var(--tow-fixed-actions-gap)) !important;
    }

    .tow-fixed-test-form .tow-fixed-test-actions > button {
        height: 2.35rem;
        min-height: 2.35rem;
        border-radius: 6px;
    }

    .tow-fixed-test-form .tow-fixed-test-actions > button::before {
        width: 1.45rem;
        height: 1.45rem;
    }
}

/* Cabecera y acciones fijas definitivas para las pantallas de ficha. */
html:has(.dashboard-shell .team-form),
body:has(.dashboard-shell .team-form),
.app-main:has(.dashboard-shell .team-form) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.dashboard-shell:has(.team-form) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.dashboard-shell:has(.team-form) > .wide-panel,
.dashboard-shell:has(.team-form) > .work-panel {
    --fixed-header-height: 4.25rem;
    --fixed-actions-gap: .45rem;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 1rem;
    background: #0d1f2d;
}

.dashboard-shell:has(.team-form) .dashboard-header.compact-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    min-height: var(--fixed-header-height);
    margin-bottom: 0;
    padding: .25rem .45rem .3rem;
    background: #0d1f2d;
    box-shadow: 0 8px 18px rgba(13, 31, 45, .2);
}

.dashboard-shell:has(.team-form) .dashboard-header.compact-header .header-copy p:not(.eyebrow) {
    display: none;
}

.dashboard-shell:has(.team-form) .dashboard-header.compact-header h1 {
    margin: .05rem 0 0;
    font-size: clamp(1.55rem, 5.2vw, 2.55rem);
    line-height: .95;
}

.dashboard-shell:has(.team-form) .dashboard-header.compact-header .jefatura-logo {
    width: clamp(42px, 8vw, 58px);
    height: clamp(42px, 8vw, 58px);
}

.dashboard-shell:has(.team-form) .team-form {
    gap: .75rem;
    padding: .85rem;
}

.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type {
    position: sticky;
    top: calc(var(--fixed-header-height) + var(--fixed-actions-gap));
    z-index: 1190;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(2.15rem, 1fr);
    grid-template-columns: repeat(auto-fit, minmax(2.15rem, 1fr)) !important;
    gap: .35rem;
    margin: var(--fixed-actions-gap) 0 .45rem;
    padding: .35rem .25rem;
    background: #fff;
    border-bottom: 1px solid rgba(193, 209, 222, .72);
    box-shadow: 0 8px 18px rgba(13, 31, 45, .12);
}

.dashboard-shell:has(.team-form) .leaflet-container,
.dashboard-shell:has(.team-form) .leaflet-pane,
.dashboard-shell:has(.team-form) .leaflet-top,
.dashboard-shell:has(.team-form) .leaflet-bottom {
    z-index: 1 !important;
}

.dashboard-shell:has(.team-form) .leaflet-control {
    z-index: 2 !important;
}

.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-icon {
    min-width: 0;
    width: 100%;
    height: 2.75rem;
    min-height: 2.75rem;
    max-width: none;
    padding: 0;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    color: transparent !important;
    font-size: 0;
}

.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-icon::before {
    width: 1.7rem;
    height: 1.7rem;
    margin: 0;
}

.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-icon:not(.action-new):not(.action-save):not(.action-document):not(.action-delete):not(.action-dni):not(.police-action):not(.action-video):not(.action-pdf-cajon):not(.action-email):not(.action-print)::before {
    background: #17212b;
}

.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-new::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-save::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-document::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-delete::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-dni::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.police-action::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-video::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-pdf-cajon::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-email::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-print::before {
    background: #fff;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > button,
.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > button.action-icon {
    min-height: 3rem;
    height: 3rem;
    max-height: 3rem;
    box-sizing: border-box;
    overflow: hidden;
    padding-block: 0;
    align-self: stretch;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > button::before,
.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > button.action-icon::before {
    width: 1.35rem;
    height: 1.35rem;
}

.dashboard-shell:has(.team-form) .team-form .vehicle-block:not(.dni-reader) > .button-row:not(.single-action-row):not(.inline-editor-actions):not(.related-intervention-actions) {
    display: none !important;
}

.dashboard-shell:has(.team-form) .team-form .top-action-message {
    margin: .35rem 0 .65rem;
}

.dashboard-shell:has(.team-form) .team-form .vehicle-block > .action-message {
    display: none !important;
}

@media (max-width: 640px) {
    .dashboard-shell:has(.team-form) > .wide-panel,
    .dashboard-shell:has(.team-form) > .work-panel {
        --fixed-header-height: 3.9rem;
        --fixed-actions-gap: .35rem;
        width: 100%;
        padding: 0 .35rem .75rem;
    }

    .dashboard-shell:has(.team-form) .dashboard-header.compact-header {
        padding: .2rem .45rem .25rem;
    }

    .dashboard-shell:has(.team-form) .dashboard-header.compact-header h1 {
        font-size: 1.35rem;
    }

    .dashboard-shell:has(.team-form) .dashboard-header.compact-header .eyebrow {
        font-size: .7rem;
        margin-bottom: .05rem;
    }

    .dashboard-shell:has(.team-form) .dashboard-header.compact-header .jefatura-logo {
        width: 38px;
        height: 38px;
    }

    .dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type {
        grid-template-columns: repeat(auto-fit, minmax(1.95rem, 1fr)) !important;
        grid-auto-columns: minmax(1.95rem, 1fr);
        gap: .25rem;
    }

    .dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-icon {
        height: 2.35rem;
        min-height: 2.35rem;
        border-radius: 6px;
    }

    .dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-icon::before {
        width: 1.45rem;
        height: 1.45rem;
    }
}

.dashboard-shell:has(.team-form) .team-form > .orders-toolbar:first-of-type {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.dashboard-shell:has(.team-form) .team-form > .orders-toolbar:first-of-type > button.action-icon {
    gap: .25rem;
    padding: 0 .3rem;
    color: #17212b !important;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-shell:has(.team-form) .team-form > .orders-toolbar:first-of-type > button:is(
    .primary-action,
    .police-action,
    .danger-action,
    .success-action,
    .toolbar-agent-action,
    .toolbar-list-action,
    .toolbar-print-action,
    .toolbar-back-action
) {
    color: #fff !important;
}

.dashboard-shell:has(.team-form) .team-form > .orders-toolbar:first-of-type > button.action-icon::before {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
}

@media (max-width: 480px) {
    .dashboard-shell:has(.team-form) .team-form > .orders-toolbar:first-of-type > button.action-icon {
        gap: .15rem;
        padding: 0 .15rem;
        font-size: .68rem;
    }

    .dashboard-shell:has(.team-form) .team-form > .orders-toolbar:first-of-type > button.action-icon::before {
        width: 1.05rem;
        height: 1.05rem;
        flex-basis: 1.05rem;
    }
}

.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-document::before,
button.action-icon.action-document::before {
    width: 2.25rem !important;
    height: 2.25rem !important;
}

/* Iconos DOI definitivos: dibujo CSS estable, sin compresión de SVG. */
.doi-read-action::before,
.dni-inline-button.doi-read-action::before,
.doi-check-action::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 1.95rem !important;
    height: 1.22rem !important;
    border: 2px solid #fff !important;
    border-radius: 4px !important;
    background: transparent !important;
    background-image: none !important;
    background-repeat: initial !important;
    background-size: initial !important;
    -webkit-mask: none !important;
    mask: none !important;
    transform: translate(-50%, -50%) !important;
}

.doi-check-action::before {
    left: calc(50% - .22rem) !important;
    width: 1.66rem !important;
    height: 1.12rem !important;
    box-shadow: .98rem .55rem 0 -.31rem #fff !important;
}

.doi-check-action::after {
    content: "DNI" !important;
    position: absolute !important;
    left: calc(50% - .24rem) !important;
    top: 50% !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: .48rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transform: translate(-50%, -46%) !important;
}

.doi-read-action::after,
.dni-inline-button.doi-read-action::after {
    content: "DNI" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: .54rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transform: translate(-50%, -45%) !important;
}

/* Correccion final: boton Chequear DOI = tarjeta DNI + lupa visible. */
.doi-check-action::before {
    content: "" !important;
    position: absolute !important;
    left: calc(50% - .24rem) !important;
    top: 50% !important;
    display: block !important;
    width: 1.72rem !important;
    height: 1.16rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent url("data:image/svg+xml,%3Csvg viewBox='0 0 34 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2.5' y='4.5' width='24' height='15' rx='3' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3Ctext x='14.5' y='15.3' text-anchor='middle' font-family='Arial,sans-serif' font-size='7.2' font-weight='900' fill='%23fff'%3EDNI%3C/text%3E%3C/svg%3E") center / contain no-repeat !important;
    box-shadow: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

.doi-check-action::after {
    content: "" !important;
    position: absolute !important;
    left: calc(50% + .66rem) !important;
    top: calc(50% + .18rem) !important;
    display: block !important;
    width: .72rem !important;
    height: .72rem !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: .35rem .35rem 0 -.2rem #fff !important;
    -webkit-mask: none !important;
    mask: none !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
}

/* Trafico DOI: botones de chequeo, lectura DNI, DGT y PIP siempre alineados. */
.inline-button-field.doi-check-inline-actions,
.inline-button-field.doi-action-four-buttons,
.inline-button-field.doi-check-dgt-pip-actions {
    min-width: 0;
}

.inline-button-field.doi-check-inline-actions .form-control {
    padding-right: 12.35rem !important;
}

.inline-button-field.doi-action-four-buttons .form-control {
    padding-right: 15.95rem !important;
}

.inline-button-field.doi-check-dgt-pip-actions .form-control {
    padding-right: 15.95rem !important;
}

.inline-button-field.doi-check-inline-actions .inline-field-button,
.inline-button-field.doi-action-four-buttons .inline-field-button,
.inline-button-field.doi-check-dgt-pip-actions .inline-field-button {
    position: absolute !important;
    top: .45rem !important;
    transform: none !important;
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    place-items: center !important;
    height: 2.35rem !important;
    min-height: 2.35rem !important;
    z-index: 5 !important;
}

.inline-button-field.doi-check-inline-actions .doi-check-action {
    right: 8rem !important;
    width: 3.35rem !important;
    min-width: 3.35rem !important;
    max-width: 3.35rem !important;
}

.inline-button-field.doi-check-inline-actions .doi-read-action {
    right: 4.3rem !important;
    width: 3.35rem !important;
    min-width: 3.35rem !important;
    max-width: 3.35rem !important;
}

.inline-button-field.doi-check-inline-actions .ip-inline-button {
    right: .35rem !important;
    width: 3.6rem !important;
    min-width: 3.6rem !important;
    max-width: 3.6rem !important;
}

.inline-button-field.doi-action-four-buttons .doi-check-action,
.inline-button-field.doi-check-dgt-pip-actions .doi-check-action {
    right: 12.25rem !important;
    width: 3.35rem !important;
    min-width: 3.35rem !important;
    max-width: 3.35rem !important;
}

.inline-button-field.doi-action-four-buttons .doi-read-action,
.inline-button-field.doi-check-dgt-pip-actions .doi-read-action {
    right: 8.55rem !important;
    width: 3.35rem !important;
    min-width: 3.35rem !important;
    max-width: 3.35rem !important;
}

.inline-button-field.doi-action-four-buttons .dgt-inline-button,
.inline-button-field.doi-check-dgt-pip-actions .dgt-inline-button {
    right: 4.65rem !important;
    width: 3.55rem !important;
    min-width: 3.55rem !important;
    max-width: 3.55rem !important;
}

.inline-button-field.doi-action-four-buttons .ip-inline-button,
.inline-button-field.doi-check-dgt-pip-actions .ip-inline-button {
    right: .35rem !important;
    width: 3.95rem !important;
    min-width: 3.95rem !important;
    max-width: 3.95rem !important;
}

/* DOI final: cualquier boton embebido de DOI queda dentro del input. */
.inline-button-field .inline-field-button:is(.doi-check-action, .doi-read-action, .dni-inline-button, .dgt-inline-button, .ip-inline-button) {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.inline-button-field:is(.doi-check-inline-actions, .doi-check-read-actions, .doi-action-four-buttons, .doi-check-dgt-pip-actions) .inline-field-button:is(.doi-check-action, .doi-read-action, .dni-inline-button, .dgt-inline-button, .ip-inline-button) {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.identification-bottom-actions {
    display: none !important;
}

.vehicle-abandoned-bottom-actions {
    display: none !important;
}

/* Controles vehiculos: DOI titular con dos acciones embebidas. */
.inline-button-field.doi-check-read-actions {
    display: block;
    width: 100%;
    min-width: 0;
}

.inline-button-field.doi-check-read-actions .form-control {
    width: 100%;
    padding-right: 7.85rem !important;
    box-sizing: border-box;
}

.inline-button-field.doi-check-read-actions .inline-field-button:is(.doi-check-action, .doi-read-action, .dni-inline-button) {
    position: absolute !important;
    top: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 3.35rem !important;
    min-width: 3.35rem !important;
    max-width: 3.35rem !important;
    height: 2.35rem !important;
    min-height: 2.35rem !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 5 !important;
}

.inline-button-field.doi-check-read-actions .doi-check-action {
    right: 4.15rem !important;
}

.inline-button-field.doi-check-read-actions .doi-read-action,
.inline-button-field.doi-check-read-actions .dni-inline-button.doi-read-action {
    right: .35rem !important;
}

/* DOI conductor: acciones compactas para dejar mas espacio de escritura. */
.inline-button-field.doi-action-four-buttons .form-control,
.inline-button-field.doi-check-dgt-pip-actions .form-control {
    padding-right: 13.05rem !important;
}

.inline-button-field.doi-action-four-buttons .inline-field-button,
.inline-button-field.doi-check-dgt-pip-actions .inline-field-button {
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: 0 !important;
}

.inline-button-field.doi-action-four-buttons .doi-check-action,
.inline-button-field.doi-check-dgt-pip-actions .doi-check-action {
    right: 10.15rem !important;
    width: 2.75rem !important;
    min-width: 2.75rem !important;
    max-width: 2.75rem !important;
}

.inline-button-field.doi-action-four-buttons .doi-read-action,
.inline-button-field.doi-check-dgt-pip-actions .doi-read-action {
    right: 7.1rem !important;
    width: 2.75rem !important;
    min-width: 2.75rem !important;
    max-width: 2.75rem !important;
}

.inline-button-field.doi-action-four-buttons .dgt-inline-button,
.inline-button-field.doi-check-dgt-pip-actions .dgt-inline-button {
    right: 3.7rem !important;
    width: 3.05rem !important;
    min-width: 3.05rem !important;
    max-width: 3.05rem !important;
    font-size: .72rem !important;
}

.inline-button-field.doi-action-four-buttons .ip-inline-button,
.inline-button-field.doi-check-dgt-pip-actions .ip-inline-button {
    right: .35rem !important;
    width: 3rem !important;
    min-width: 3rem !important;
    max-width: 3rem !important;
    font-size: .72rem !important;
}

/* Botoneras de vehiculo compactas: mas ancho libre para matriculas. */
.vehicle-inline-actions.four-inline-actions .form-control {
    padding-right: 12.85rem !important;
}

.vehicle-inline-actions.four-inline-actions .inline-action {
    min-width: 0 !important;
    min-height: 2.2rem !important;
    height: 2.2rem !important;
    padding: 0 !important;
    font-size: .72rem !important;
}

.vehicle-inline-actions.four-inline-actions .vehicle-photo-camera,
.vehicle-inline-actions.four-inline-actions .vehicle-photo-folder {
    width: 2.55rem !important;
    min-width: 2.55rem !important;
    max-width: 2.55rem !important;
}

.vehicle-inline-actions.four-inline-actions .vehicle-dgt-action,
.vehicle-inline-actions.four-inline-actions .vehicle-vip-action {
    width: 3.05rem !important;
    min-width: 3.05rem !important;
    max-width: 3.05rem !important;
}

.vehicle-inline-actions.four-inline-actions .vehicle-photo-camera {
    right: 10.05rem !important;
}

.vehicle-inline-actions.four-inline-actions .vehicle-photo-folder {
    right: 7.25rem !important;
}

.vehicle-inline-actions.four-inline-actions .vehicle-dgt-action {
    right: 3.85rem !important;
}

.vehicle-inline-actions.four-inline-actions .vehicle-vip-action {
    right: .45rem !important;
}

.inline-button-field.vehicle-lookup-actions .form-control {
    padding-right: 7.4rem !important;
}

.inline-button-field.vehicle-lookup-actions .inline-field-button {
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: 0 !important;
    font-size: .72rem !important;
}

.inline-button-field.vehicle-lookup-actions .inline-field-button:first-of-type {
    right: 3.75rem !important;
    width: 3.05rem !important;
    min-width: 3.05rem !important;
    max-width: 3.05rem !important;
}

.inline-button-field.vehicle-lookup-actions .inline-field-button:last-of-type {
    right: .35rem !important;
    width: 3rem !important;
    min-width: 3rem !important;
    max-width: 3rem !important;
}

.inline-button-field.vehicle-related-actions .form-control {
    padding-right: 9.9rem !important;
}

.inline-button-field.vehicle-related-actions .action-camera {
    right: 6.95rem !important;
}

.inline-button-field.vehicle-related-actions .action-folder {
    right: 4.1rem !important;
}

.inline-button-field.vehicle-related-actions .action-vip {
    right: .35rem !important;
    width: 3.35rem !important;
    min-width: 3.35rem !important;
    max-width: 3.35rem !important;
    font-size: .72rem !important;
}

.map-action-message {
    margin: .75rem 0 1rem;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type {
    grid-template-columns: minmax(2.25rem, .55fr) minmax(2.25rem, .55fr) minmax(3.6rem, 1fr) minmax(3.3rem, .78fr) minmax(3.2rem, .76fr) minmax(2.25rem, .55fr) minmax(2.25rem, .55fr) !important;
    grid-auto-rows: 2.75rem !important;
    align-items: stretch !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > button,
.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > button.action-icon {
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    max-height: 2.75rem !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 .25rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > button.service-icon-only {
    padding: 0 !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-agents {
    gap: .16rem !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-agents::before {
    width: 1.75rem !important;
    height: 1.75rem !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-send-part {
    --action-icon: url("/iconos/parte-send.png");
    background: #174a7e !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-lock-closed {
    --action-icon: url("/iconos/parte-lock-closed.png");
    background: #be251c !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-lock-open {
    --action-icon: url("/iconos/parte-lock-open.png");
    background: #23834f !important;
}

.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-send-part::before,
.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-lock-closed::before,
.dashboard-shell:has(.team-form) .team-form > .service-toolbar:first-of-type > .action-lock-open::before {
    width: 1.7rem !important;
    height: 1.7rem !important;
    background: #fff !important;
}

/* Tamaño homogéneo definitivo solo para los iconos de las fichas. */

.ordinance-people-grid {
    align-items: start !important;
}

.ordinance-people-grid > .field-group {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
}

.ordinance-people-grid > .field-group > label {
    flex: 0 0 auto !important;
}

.ordinance-people-grid > .field-group > .vehicle-inline-actions.doi-inline-actions {
    flex: 0 0 auto !important;
    height: 3rem !important;
    min-height: 3rem !important;
    margin-top: .4rem !important;
}

.ordinance-people-grid > .field-group > .compact-summary {
    flex: 0 0 auto !important;
}

.ordinance-people-summary-grid {
    align-items: start !important;
    margin-top: .35rem !important;
}

.ordinance-people-summary-grid .compact-summary {
    margin-top: 0 !important;
}

.stable-doi-grid {
    align-items: start !important;
}

.stable-doi-grid > .field-group {
    align-self: start !important;
    align-content: start !important;
}

.stable-doi-summary-grid {
    align-items: start !important;
    margin-top: .35rem !important;
}

.stable-doi-summary-grid .compact-summary {
    margin-top: 0 !important;
}

.inspection-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: .65rem .75rem;
    margin-top: .7rem;
}

.inspection-check-grid label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.65rem;
    padding: .5rem .7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0b1f33;
    font-weight: 700;
    line-height: 1.2;
}

.inspection-check-grid input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.inspection-check-grid label:has(input:checked) {
    border-color: #1f6fa8;
    background: #eaf5ff;
}

.inspection-check-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 18rem));
    margin-bottom: .85rem;
}

.vehicle-circumstances-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .65rem .75rem;
    margin: .65rem 0 1rem;
}

.vehicle-circumstances-check-grid label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.65rem;
    padding: .55rem .7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0b1f33;
    font-weight: 700;
    line-height: 1.2;
}

.vehicle-circumstances-check-grid input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.vehicle-circumstances-check-grid label:has(input:checked) {
    border-color: #1f6fa8;
    background: #eaf5ff;
}

@media (max-width: 560px) {
    .vehicle-circumstances-check-grid {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .vehicle-circumstances-check-grid label {
        min-height: 2.55rem;
    }
}

.photo-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 1150;
    overflow: hidden;
    padding: 1rem;
    background: rgba(8, 20, 31, .78);
}

.photo-report-panel {
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    height: calc(100dvh - 2rem);
    min-height: 0;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.photo-report-sticky-header {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    background: #fff;
}

.photo-report-scroll-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .25rem;
    scrollbar-gutter: stable;
}

.photo-report-header,
.photo-report-actions,
.photo-report-card-actions,
.photo-report-pdf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.photo-report-header h2 {
    margin: .15rem 0;
    color: #0f2437;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.photo-report-header p {
    margin: 0;
    color: #526170;
    font-weight: 700;
}

.photo-report-actions {
    justify-content: flex-start;
    margin: 1rem 0;
}

.photo-report-file-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    overflow: hidden;
    cursor: pointer;
}

.photo-report-print-panel,
.photo-report-pdf-actions,
.photo-report-panel .email-send-panel {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) auto;
    align-items: end;
    justify-content: start;
    gap: .7rem;
    margin: .8rem 0;
}

.photo-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: .9rem;
    margin-top: 1rem;
}

.photo-report-sort-hint {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-left: 4px solid #174a7e;
    background: #eaf2f8;
    color: #0f2437;
    font-weight: 800;
}

.photo-report-card {
    display: grid;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #d5dee8;
    border-radius: 8px;
    background: #f8fafc;
}

.photo-report-card.is-dragging {
    z-index: 2;
    opacity: .68;
    border-color: #174a7e;
    box-shadow: 0 10px 24px rgba(15, 36, 55, .2);
    transform: scale(.985);
}

.photo-report-grid.is-sorting .photo-report-card:not(.is-dragging) {
    transition: transform .12s ease, box-shadow .12s ease;
}

.photo-report-image-button {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #e8eef5;
    color: #475569;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.photo-report-image-button:active {
    cursor: grabbing;
}

.photo-report-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.photo-report-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    min-height: 2rem;
    font-weight: 800;
}

.photo-report-image-info {
    margin-left: auto;
    padding: .25rem .45rem;
    border: 1px solid #c5d2df;
    border-radius: 4px;
    background: #e8eef5;
    color: #334155;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

.photo-report-comment {
    min-height: 5rem;
    resize: vertical;
}

.photo-report-card-actions {
    justify-content: flex-start;
}

.photo-report-card-actions .compact-button,
.photo-report-actions .compact-button,
.photo-report-print-panel .compact-button,
.photo-report-pdf-actions .compact-button {
    min-height: 2.45rem;
    padding: 0 .75rem;
}

.photo-report-pdf-frame {
    width: 100%;
    min-height: 70vh;
    margin-top: .7rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.photo-report-document-preview {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #dfe6eb;
    border: 1px solid #c4d0d9;
}

.photo-report-preview-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(100%, 794px);
    aspect-ratio: 210 / 297;
    margin: 0 auto;
    padding: 34px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 36, 55, .16);
    color: #111827;
    overflow: hidden;
}

.photo-report-preview-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid #183d5d;
}

.photo-report-preview-header img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.photo-report-preview-header strong,
.photo-report-preview-header h3,
.photo-report-preview-header p,
.photo-report-preview-header small {
    display: block;
    margin: 0;
}

.photo-report-preview-header h3 {
    margin: 3px 0;
    font-size: 22px;
    letter-spacing: 0;
}

.photo-report-preview-header p,
.photo-report-preview-header small,
.photo-report-preview-header > span {
    font-size: 11px;
}

.photo-report-preview-grid {
    display: grid;
    min-height: 0;
    gap: 16px;
    padding: 18px 0;
}

.photo-report-preview-grid.photos-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.photo-report-preview-grid.photos-2 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.photo-report-preview-grid.photos-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.photo-report-preview-grid figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    border: 1px solid #bdcbd6;
    background: #fff;
    overflow: hidden;
}

.photo-report-preview-image {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 7px;
    background: #f1f4f6;
}

.photo-report-preview-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.photo-report-preview-grid figcaption {
    min-height: 48px;
    padding: 8px 10px;
    border-top: 1px solid #d6e0e7;
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
}

.photo-report-preview-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 46px;
    padding-top: 8px;
    border-top: 1px solid #bdcbd6;
    font-size: 10px;
}

.photo-report-preview-signature {
    display: grid;
    grid-template-columns: auto 150px;
    align-items: end;
    gap: 10px;
}

.photo-report-preview-signature img {
    width: 150px;
    height: 42px;
    object-fit: contain;
}

.photo-report-signature-block {
    margin: .8rem 0;
}

.photo-report-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 20, 32, .72);
}

.photo-report-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 20, 31, .7);
}

.photo-report-confirm-panel {
    width: min(92vw, 28rem);
    padding: 1.25rem;
    border: 1px solid #d5dee8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(8, 20, 31, .3);
}

.photo-report-confirm-panel h3 {
    margin: 0 0 .65rem;
    color: #0f2437;
}

.photo-report-confirm-panel p {
    margin: 0 0 1rem;
    color: #334155;
    line-height: 1.5;
}

.photo-report-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.photo-report-lightbox-panel {
    position: relative;
    display: grid;
    gap: .85rem;
    width: min(96vw, 980px);
    max-height: 94vh;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    overflow: auto;
}

.photo-report-lightbox-panel img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #0f172a;
}

@media (max-width: 640px) {
    .photo-report-overlay {
        padding: 0;
    }

    .photo-report-panel {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        margin: 0;
        padding: .85rem;
        border: 0;
        border-radius: 0;
    }

    .photo-report-sticky-header .photo-report-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .photo-report-sticky-header .photo-report-header > button,
    .photo-report-sticky-header .photo-report-actions,
    .photo-report-sticky-header .photo-report-actions .compact-button {
        width: 100%;
    }

    .photo-report-sticky-header .photo-report-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        margin: .65rem 0;
    }

    .photo-report-document-preview {
        padding: .5rem;
    }

    .photo-report-preview-page {
        padding: 14px;
    }

    .photo-report-preview-header {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .photo-report-preview-header img {
        width: 42px;
        height: 42px;
    }

    .photo-report-preview-header h3 {
        font-size: 16px;
    }

    .photo-report-preview-header p,
    .photo-report-preview-header small,
    .photo-report-preview-header > span,
    .photo-report-preview-grid figcaption {
        font-size: 8px;
    }

    .photo-report-preview-grid {
        gap: 7px;
        padding: 9px 0;
    }

    .photo-report-preview-grid figcaption {
        min-height: 30px;
        padding: 4px 5px;
    }

    .photo-report-preview-signature {
        grid-template-columns: 1fr;
    }

    .photo-report-preview-signature img {
        width: 100px;
        height: 30px;
    }

    .photo-report-print-panel,
    .photo-report-pdf-actions,
    .photo-report-panel .email-send-panel {
        grid-template-columns: 1fr;
    }
}

button.action-home {
    width: 3.15rem !important;
    min-width: 3.15rem !important;
    max-width: 3.15rem !important;
    height: 3.15rem !important;
    min-height: 3.15rem !important;
    max-height: 3.15rem !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 1px solid #73b4de !important;
    background: #2f78ad !important;
    color: transparent !important;
    font-size: 0 !important;
}

button.action-home:hover {
    border-color: #3d86ba !important;
    background: #246690 !important;
}

button.action-home::before {
    width: 1.55rem !important;
    height: 1.55rem !important;
    margin: 0 !important;
    background: #fff !important;
}

.header-home-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
}

.header-home-link:hover {
    color: #f0d36f;
}

.header-home-link:focus-visible {
    outline: 3px solid #d8b64c;
    outline-offset: 4px;
}

.quick-check-work-panel {
    width: min(100%, 760px);
}

.quick-check-header {
    width: 100%;
    margin-bottom: 1rem;
}

.quick-check-header h1 {
    font-size: 2.45rem;
    line-height: 1;
    letter-spacing: 0;
}

.quick-check-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    color: #17212b;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.quick-check-toolbar {
    display: flex;
    justify-content: flex-start;
}

.quick-check-heading {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid #c8d7e3;
}

.quick-check-heading img {
    width: 5.25rem;
    height: 5.25rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.quick-check-heading h2 {
    min-width: 0;
    margin: 0;
    color: #123f73;
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.quick-check-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: stretch;
}

.quick-check-entry .form-control,
.quick-check-submit {
    min-height: 3.15rem;
}

.quick-check-entry .form-control {
    min-width: 0;
    font-size: 1.05rem;
}

.quick-check-submit {
    min-width: 8.5rem;
}

.quick-check-entry.quick-check-entry-vehicle { grid-template-columns:minmax(0,1fr) auto auto; }
@media(max-width:600px) {
    .quick-check-entry.quick-check-entry-vehicle { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .quick-check-entry-vehicle > input { grid-column:1/-1; }
    .quick-check-entry-vehicle > button { min-width:0; width:100%; }
}

.quick-check-message {
    margin: 0;
}

.quick-check-results {
    margin-top: 0;
}

@media (max-width: 640px) {
    .quick-check-shell {
        padding: .75rem .5rem 1rem;
    }

    .quick-check-header h1 {
        font-size: 2rem;
    }

    .quick-check-header .jefatura-logo {
        width: 3.5rem;
        height: 3.5rem;
    }

    .quick-check-card {
        gap: .8rem;
        padding: .8rem;
    }

    .quick-check-heading {
        gap: .7rem;
    }

    .quick-check-heading img {
        width: 4.25rem;
        height: 4.25rem;
    }

    .quick-check-heading h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 420px) {
    .quick-check-entry {
        grid-template-columns: 1fr;
    }

    .quick-check-submit {
        width: 100%;
    }
}

.header-actions {
    position: relative;
    align-items: center;
}

.main-menu-shell .header-message-action {
    width: auto !important;
    min-width: auto !important;
    padding: 0 .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .82rem;
    letter-spacing: 0;
}

.header-message-action.is-active {
    border-color: #f0d36f;
    background: #172633;
}

.header-message-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 1.2rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8Z' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8Z' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.global-message-composer {
    position: absolute;
    top: calc(100% + .65rem);
    right: 0;
    z-index: 2100;
    width: min(23rem, calc(100vw - 1.5rem));
    box-sizing: border-box;
    padding: .9rem;
    display: grid;
    gap: .65rem;
    border: 1px solid #9db5c6;
    border-radius: 6px;
    background: #fff;
    color: #102737;
    text-align: left;
    box-shadow: 0 18px 42px rgba(3, 15, 24, .3);
}

.global-message-composer-heading,
.global-message-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
}

.global-message-composer-heading strong {
    font-size: 1rem;
}

.global-message-composer label {
    font-size: .82rem;
    font-weight: 800;
}

.global-message-composer textarea {
    width: 100%;
    min-height: 7.5rem;
    resize: vertical;
}

.global-message-composer-footer span {
    color: #5d6c76;
    font-size: .78rem;
    font-weight: 700;
}

.global-message-composer-footer button {
    min-width: 7rem;
}

.global-message-composer-close {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #e6edf2;
    color: #102737;
    font-size: 1.35rem;
    line-height: 1;
}

.global-message-composer-close:hover {
    background: #d4e0e8;
}

.global-message-composer-error {
    margin: 0;
    padding: .55rem .65rem;
    border-left: 3px solid #b42318;
    background: #fff0f0;
    color: #8f1c13;
    font-size: .82rem;
}

.global-message-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(5, 17, 27, .78);
}

.global-message-dialog {
    width: min(100%, 35rem);
    box-sizing: border-box;
    padding: 1.35rem;
    border: 1px solid #d8b64c;
    border-radius: 8px;
    background: #fff;
    color: #102737;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.global-message-kicker {
    margin: 0 0 .3rem;
    color: #9a7410;
    font-size: .76rem;
    font-weight: 900;
}

.global-message-dialog h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.1;
}

.global-message-text {
    margin: 1rem 0 1.15rem;
    padding: 1rem;
    border-left: 4px solid #2f78ad;
    background: #eef5fa;
    font-size: 1.08rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.global-message-accept {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .main-menu-shell .header-message-action {
        height: 2.35rem !important;
        padding: 0 .5rem;
        font-size: .76rem !important;
    }

    .header-message-icon {
        width: 1.05rem;
        height: 1.05rem;
        flex-basis: 1.05rem;
    }

    .global-message-composer {
        position: fixed;
        top: .75rem;
        right: .75rem;
        width: calc(100vw - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        overflow-y: auto;
    }

    .global-message-dialog {
        padding: 1rem;
    }
}

/* Navegación jerárquica y reparto de las barras de acciones extensas. */
.action-back {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m7-7-7 7 7 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    border-color: #2774a3 !important;
    background: #2f83b8 !important;
    color: #fff !important;
}

.action-patrol-map {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 6 5-2 8 3 5-2v13l-5 2-8-3-5 2V6Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8 4v13m8-10v13' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.intervention-patrol-map-action {
    border-color: #a87900 !important;
    background: #f4c842 !important;
    color: #102432 !important;
}

.intervention-patrol-map-action:hover,
.intervention-patrol-map-action:focus-visible {
    background: #e3b82f !important;
}

.intervention-patrol-map-action::before {
    background: #102432 !important;
}

.action-patrol-location {
    --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 2v3m0 14v3M2 12h3m14 0h3M5 5l2 2m10 10 2 2M19 5l-2 2M7 17l-2 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.header-patrol-map-action {
    width: auto !important;
    min-width: auto !important;
    padding: 0 .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #f4c842;
    font-size: .82rem;
    letter-spacing: 0;
}

.header-patrol-map-action::before {
    width: 1.2rem;
    height: 1.2rem;
    background: #f4c842 !important;
}

@media (max-width: 640px) {
    .header-patrol-map-action {
        height: 2.35rem !important;
        padding: 0 .5rem;
        font-size: .76rem !important;
    }

    .header-patrol-map-action span {
        display: none;
    }
}

.patrol-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    background: #eef3f6;
}

.intervention-google-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    background: #eef3f6;
    overscroll-behavior: contain;
}

.intervention-google-map-overlay .patrol-map-header h2 {
    min-width: 0;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.intervention-google-map-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}

.patrol-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
    padding: .75rem 1rem;
    color: #fff;
    background: #102432;
    border-bottom: 3px solid #d8b64c;
}

.patrol-map-header h2,
.patrol-map-header p {
    margin: 0;
}

.patrol-map-header h2 {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0;
}

.patrol-map-header .eyebrow {
    margin-bottom: .15rem;
    color: #f4c842;
}

.patrol-map-header > div:first-child > p:last-child {
    margin-top: .15rem;
    color: #d9e5ec;
    font-size: .9rem;
}

.patrol-map-actions {
    display: flex;
    align-items: stretch;
    gap: .55rem;
    flex: 0 0 auto;
}

.patrol-map-actions > button {
    min-height: 3rem;
}

.patrol-map-close {
    width: 3rem;
    min-width: 3rem;
    padding: 0;
    border-color: #851d15 !important;
    background: #b42318 !important;
    color: #fff !important;
    font-size: 0;
}

.patrol-map-close:hover,
.patrol-map-close:focus-visible {
    background: #8f1c13 !important;
}

.patrol-map-close::before {
    margin: 0;
    background: #fff !important;
}

.patrol-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #dce5ea;
}

.patrol-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.65rem;
    padding: .55rem 1rem;
    color: #17324d;
    background: #fff;
    border-top: 1px solid #bccbd5;
}

.patrol-map-label {
    padding: .28rem .5rem !important;
    color: #fff !important;
    background: #102432 !important;
    border: 2px solid #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28) !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.patrol-map-label::before {
    border-top-color: #102432 !important;
}

@media (max-width: 700px) {
    .patrol-map-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .55rem;
        padding: .55rem .65rem;
    }

    .patrol-map-header h2 {
        font-size: 1.25rem;
    }

    .patrol-map-actions {
        width: 100%;
    }

    .patrol-map-actions > .action-patrol-location {
        flex: 1 1 auto;
    }

    .patrol-map-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .1rem;
        padding: .45rem .65rem;
        font-size: .82rem;
    }
}

button.action-back:hover {
    border-color: #205f86 !important;
    background: #246b98 !important;
}

button.action-back::before {
    background: #fff !important;
}

:is(
    .dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type,
    .absentee-record-toolbar,
    .immobilization-record-toolbar,
    .protection-record-toolbar,
    .lost-property-record-toolbar
):has(> :nth-child(6)) {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 2.75rem !important;
    align-items: stretch !important;
    gap: .35rem !important;
    grid-auto-columns: unset !important;
}

:is(
    .dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type,
    .absentee-record-toolbar,
    .immobilization-record-toolbar,
    .protection-record-toolbar,
    .lost-property-record-toolbar
):has(> :nth-child(6)) > :is(button, a, label) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-icon::before,
.dashboard-shell:has(.team-form) .team-form > :is(.button-row, .toolbar-row):first-of-type > button.action-icon.action-document::before {
    width: 1.65rem !important;
    height: 1.65rem !important;
    flex-basis: 1.65rem !important;
}
@media (max-width: 760px) {
    .dashboard-shell.immobilization-screen .team-form.immobilization-form > .immobilization-toolbar.immobilization-record-toolbar:has(> :nth-child(6)) {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(3.3rem, auto) !important;
    }
    .immobilization-screen .immobilization-record-toolbar > button.action-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: .8rem;
        line-height: 1.15;
        padding: .35rem;
    }
}

/* Ayuda común: el recurso se muestra limpio, sin aspecto de botón. */
.partepol-help-icon {
    position: fixed;
    top: 10px;
    right: 78px;
    z-index: 1250;
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2));
}

.partepol-help-icon:hover,
.partepol-help-icon:focus-visible {
    opacity: .82;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.app-js-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 28, 39, .42);
}

.app-js-dialog {
    width: min(92vw, 560px);
    padding: 1rem;
    border: 1px solid #c8d6e1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.app-js-dialog h2 { margin: 0 0 .85rem; color: #082949; font-size: 1.15rem; }
.app-js-dialog-fields { display: grid; gap: .75rem; }
.app-js-dialog-fields label { display: grid; gap: .3rem; color: #17324d; font-size: .86rem; font-weight: 800; }
.app-js-dialog-fields input,
.app-js-dialog-fields textarea { width: 100%; border: 1px solid #b8c8d6; border-radius: 4px; padding: .45rem .55rem; font: inherit; }
.app-js-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }

.help-tutor-editor-surface .help-image-resize-box {
    position: relative;
    display: inline-block;
    min-width: 80px;
    min-height: 60px;
    max-width: 100%;
    overflow: hidden;
    resize: both;
    vertical-align: middle;
    border: 1px dashed transparent;
}

.help-tutor-editor-surface .help-image-resize-box:hover { border-color: #60a5fa; }
.help-tutor-editor-surface .help-image-resize-box img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
