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 {
    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;
}

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

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

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

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

.primary-action {
    min-height: 3.1rem;
    color: #111922;
    background: #d8b64c;
}

.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 {
    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;
}

.police-action:disabled,
.danger-action:disabled,
.success-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 #d8b64c;
    border-left-width: 6px;
    border-radius: 8px;
    background: #fff4c2;
    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);
}

.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: 1fr;
    gap: .6rem;
}

.logout-row {
    width: min(100%, 560px);
    margin: .8rem auto 0;
}

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

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

.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;
}

.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.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.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;
}

.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 {
    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 {
    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;
}

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

.mic-button {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 2.8rem;
    height: 2rem;
    border: 0;
    border-radius: 6px;
    background: #20313f;
    color: #d8b64c;
    font-size: .68rem;
    font-weight: 800;
}

.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;
}

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

.data-table th {
    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;
}

.orders-table {
    table-layout: fixed;
}

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

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

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    white-space: normal;
    min-width: 14rem;
}

.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;
}

.dni-reader {
    border-color: #7aa7bd;
    background: #f2f8fb;
}

.dni-capture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.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: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.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-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: 6rem;
    field-sizing: content;
    resize: vertical;
    overflow-y: hidden;
}

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

.module-button {
    min-width: 0;
    min-height: 3.6rem;
    padding: .55rem .75rem;
    display: flex;
    flex-direction: row;
    gap: .5rem;
    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: .98rem;
    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-team .module-icon {
    background: #1f6f8b;
}

.module-button.module-service .module-icon {
    background: #8c6a00;
}

.module-button.module-orders .module-icon {
    background: #5b3ba6;
}

.module-button.module-interventions .module-icon {
    background: #944f1e;
}

.module-button.module-people .module-icon {
    background: #277a4f;
}

.module-button.module-vehicles .module-icon {
    background: #b42318;
}

.module-button:hover {
    border-color: #aab7c2;
    transform: translateY(-1px);
}

.module-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: #20313f;
    color: #d8b64c;
    font-size: .72rem;
}

.module-text {
    min-width: 0;
    display: grid;
    gap: .2rem;
}

.module-text strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-text small {
    color: #5d6c7b;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
}

.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;
}

.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 {
    display: grid;
    gap: 1rem;
}

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

.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;
}

.print-text {
    min-height: 3rem;
    white-space: pre-wrap;
}

.signature-pad {
    width: 100%;
    max-width: 720px;
    height: 180px;
    display: block;
    border: 2px dashed #7b8794;
    border-radius: 6px;
    background: #fff;
    touch-action: none;
}

@media (max-width: 720px) {
    .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.5rem;
        padding: .5rem .65rem;
        font-size: .95rem;
    }

    .dashboard-header {
        gap: .65rem;
    }

    .jefatura-logo {
        width: 64px;
        height: 64px;
    }

    .form-grid.two,
    .form-grid.three,
    .form-grid.four,
    .confirm-actions,
    .button-row,
    .three-actions,
    .four-actions,
    .five-actions {
        grid-template-columns: 1fr;
    }

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

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

@media print {
    body * {
        visibility: hidden;
    }

    .print-sheet,
    .print-sheet * {
        visibility: visible;
    }

    .print-sheet {
        position: absolute;
        inset: 0;
        width: 100%;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .print-actions,
    .floating-scroll-buttons,
    .toolbar-row {
        display: none !important;
    }
}
