:root {
    --bg: #f3f7f8;
    --surface: #ffffff;
    --surface-soft: #eaf1f3;
    --text: #172a3a;
    --muted: #607383;
    --line: #cfdae0;
    --primary: #0f6f78;
    --primary-strong: #12324a;
    --accent: #2f8f95;
    --danger: #b42318;
    --success: #137333;
    --shadow: 0 16px 36px rgba(22, 32, 42, .10);
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    background:
        linear-gradient(180deg, rgba(15, 111, 120, .07), rgba(15, 111, 120, 0) 320px),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.app-body,
.login-page,
.history-page,
.success-page,
.check-page,
.home-page {
    display: flex;
    flex-direction: column;
}

button,
input,
select,
textarea {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.app-body {
    padding: 0px 18px;
}

.app-body > main {
    flex: 1 0 auto;
}

.home-shell,
.shell,
.login-shell {
    width: min(100%, 980px);
    margin: 0 auto;
}

.shell.narrow,
.login-shell {
    width: min(100%, 460px);
}

.home-shell {
    min-height: calc(100vh - 36px);
    display: grid;
    align-items: center;
    padding-top: 58px;
}

.home-page {
    overflow-x: hidden;
    overflow-y: auto;
}

.home-page .home-shell {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 10px;
}

.home-hero {
    display: grid;
    gap: 24px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-lockup.compact {
    margin-bottom: 24px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--primary);
    background: var(--surface);
    font-weight: 800;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.05;
}

h2 {
    margin-bottom: 4px;
    font-size: 1.16rem;
    line-height: 1.2;
}

p {
    color: var(--muted);
    line-height: 1.55;
}

.hero-copy {
    max-width: 650px;
    margin-bottom: 0;
    font-size: 1rem;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vehicle-card {
    min-height: 170px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #bfd0d8;
    border-radius: var(--radius);
    color: var(--primary);
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 50, 74, .09);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vehicle-card:active,
.vehicle-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 100, 102, .45);
    box-shadow: 0 18px 42px rgba(17, 100, 102, .14);
}

.vehicle-card svg {
    width: 112px;
    height: 78px;
}

.vehicle-card span {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 800;
}

.vehicle-card::after {
    content: "Selecionar";
    display: inline-flex;
    border-radius: var(--radius);
    padding: 6px 10px;
    color: #fff;
    background: var(--primary);
    font-size: .75rem;
    font-weight: 900;
}

.admin-link,
.back-link {
    width: max-content;
    color: var(--muted);
    font-weight: 700;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-top-actions {
    position: sticky;
    top: 0;
    z-index: 40;
    width: calc(100% + 36px);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: -18px;
    border-bottom: 1px solid var(--line);
    padding: 8px max(18px, calc((100vw - 980px) / 2));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(18, 50, 74, .08);
    backdrop-filter: blur(10px);
}

.home-menu-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
}

.checkin-type-selector #vehicle-type-title {
    white-space: nowrap;
    font-size: clamp(1rem, 4.8vw, 1.55rem);
}

@media (max-width: 620px) {
    .home-top-actions {
        min-height: 52px;
        padding: 7px 10px;
    }

    .home-menu-links {
        display: flex;
        min-width: 0;
        gap: 4px;
    }

    .home-menu-links .btn {
        min-height: 36px;
        width: auto;
        padding: 6px 7px;
        font-size: clamp(.66rem, 2.7vw, .79rem);
        white-space: nowrap;
    }
}

@media (min-width: 620px) {
    .home-top-actions {
        width: calc(100% + 56px);
        margin-left: -28px;
    }
}

.driver-auth-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 430px;
    gap: 10px;
}

.driver-auth-row .btn {
    width: 100%;
}

@media (max-width: 620px) {
    .driver-auth-row {
        max-width: none;
    }
}

.login-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(22, 32, 42, .46);
    backdrop-filter: blur(8px);
}

.app-modal {
    width: min(100%, 560px);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(22, 32, 42, .26);
}

.officer-details-modal { width: min(100%, 760px); }
.officer-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.officer-details-grid > div { min-width: 0; border-bottom: 1px solid var(--line); padding: 8px 0; }
.officer-details-grid dt { font-size: .78rem; color: var(--muted); }
.officer-details-grid dd { margin: 4px 0 0; font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 520px) { .officer-details-grid { grid-template-columns: 1fr; } }

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.login-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.login-square-card {
    aspect-ratio: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    border: 1px solid rgba(17, 100, 102, .24);
    border-radius: var(--radius);
    padding: 14px;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(17, 100, 102, .12), rgba(216, 162, 27, .13)),
        #fff;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
}

.login-square-card strong {
    color: var(--primary);
}

.login-square-card span {
    color: var(--muted);
    font-weight: 800;
}

.login-option-card {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: linear-gradient(135deg, #e4f5f1 0%, #fff2cb 100%);
    box-shadow: var(--shadow);
}

.login-option-card strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.login-option-card span {
    color: var(--muted);
}

.admin-link:hover,
.back-link:hover {
    color: var(--primary);
}

.check-form,
.stack-form {
    display: grid;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 16px;
}

.form-panel,
.content-section,
.login-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-panel,
.content-section,
.login-card {
    padding: 18px;
}

.lead-panel {
    background:
        linear-gradient(135deg, rgba(17, 100, 102, .10), rgba(216, 162, 27, .08)),
        var(--surface);
}

.section-title,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-title {
    justify-content: flex-start;
}

.section-title > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: var(--primary);
    font-weight: 900;
}

.section-title p,
.section-heading p {
    margin-bottom: 0;
}

.field {
    display: grid;
    gap: 7px;
}

.field > span,
.choice-field legend {
    color: var(--text);
    font-size: .9rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 13px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 100, 102, .12);
}

input[readonly] {
    color: var(--muted);
    background: #f3f6f8;
}

.inline-search,
.form-grid,
.filter-bar,
.filter-grid {
    display: grid;
    gap: 12px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.1;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.btn.primary {
    color: #fff;
    background: var(--primary);
}

.btn.primary:hover {
    background: var(--primary-strong);
}

.btn.secondary {
    color: var(--primary);
    border-color: rgba(17, 100, 102, .24);
    background: rgba(17, 100, 102, .08);
}

.btn.ghost {
    color: var(--text);
    border-color: var(--line);
    background: #fff;
}

.btn.danger {
    color: #fff;
    background: var(--danger);
}

.btn.small {
    min-height: 36px;
    padding: 8px 11px;
    font-size: .86rem;
}

.feedback {
    border-radius: var(--radius);
    padding: 12px;
    color: var(--primary-strong);
    background: rgba(17, 100, 102, .08);
    font-weight: 700;
}

.feedback.error {
    color: var(--danger);
    background: rgba(180, 35, 24, .08);
}

.feedback-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.drive-actions {
    margin-top: 16px;
}

.drive-actions form {
    margin: 0;
}

.driver-found {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}

.driver-line,
.driver-meta {
    margin: 0;
}

.driver-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
}

.found-ok {
    color: var(--success);
    font-weight: 900;
}

.driver-meta {
    color: var(--muted);
}

.driver-meta strong {
    color: var(--text);
}

.viatura-picker {
    display: grid;
    gap: 10px;
}

.detail-grid,
.stats-grid {
    display: grid;
    gap: 10px;
    margin: 0;
}

.split-admin-grid {
    display: grid;
    gap: 16px;
}

.detail-card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #fff;
}

.checklist-list {
    display: grid;
}

.checklist-list > [data-check-field],
.checklist-list > .choice-field {
    border-bottom: 1px dashed #b8c6cf;
    padding: 0 0 14px;
    margin-bottom: 14px;
}

.checklist-list > [data-check-field]:last-child,
.checklist-list > .choice-field:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.choice-field {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.choice-field[hidden],
[hidden] {
    display: none !important;
}

.segmented,
.stacked-options {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented label,
.stacked-options label,
.switch-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: #fff;
    cursor: pointer;
}

.segmented input,
.stacked-options input,
.switch-row input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    accent-color: var(--primary);
}

.segmented span,
.stacked-options span,
.switch-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.choice-field textarea {
    margin-top: 10px;
}

.camera-note {
    margin-bottom: 14px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 11px 12px;
    color: #5a4100;
    background: rgba(216, 162, 27, .12);
    font-size: .9rem;
    font-weight: 700;
}

.device-warning {
    border-left: 4px solid var(--danger);
    border-radius: var(--radius);
    padding: 11px 12px;
    color: var(--danger);
    background: rgba(180, 35, 24, .08);
    font-size: .9rem;
    font-weight: 800;
}

.photo-grid,
.photos-detail-grid,
.timeline-grid {
    display: grid;
    gap: 12px;
}

.timeline-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 280px);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 8px;
    scroll-snap-type: inline mandatory;
}

.timeline-strip-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.photo-capture,
.photo-detail,
.timeline-photo {
    position: relative;
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #fff;
}

.timeline-photo {
    scroll-snap-align: start;
}

.direct-photo-preview {
    min-height: 180px;
    padding: 0;
}

.direct-photo-preview img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.additional-photos {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #b8c6cf;
}

.compact-heading {
    margin-bottom: 0;
}

.compact-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.icon-btn {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 1.35rem;
}

.photo-placeholder,
.photo-link-preview {
    min-height: 154px;
    display: grid;
    place-items: center;
    gap: 4px;
    overflow: hidden;
    border: 1px dashed #b8c6cf;
    border-radius: var(--radius);
    color: var(--muted);
    background:
        linear-gradient(135deg, rgba(17, 100, 102, .10), rgba(216, 162, 27, .10)),
        #f8fafb;
    text-align: center;
}

.photo-camera-trigger {
    width: 100%;
    padding: 0;
    cursor: pointer;
}

.photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 32px;
    min-height: 32px;
    border: 1px solid rgba(22, 32, 42, .16);
    border-radius: var(--radius);
    color: #fff;
    background: rgba(22, 32, 42, .72);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 900;
}

.photo-placeholder span,
.photo-link-preview span {
    color: var(--text);
    font-weight: 900;
}

.photo-placeholder small,
.photo-link-preview small,
.detail-card small,
.data-table small,
.timeline-photo small,
.photo-detail small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.photo-placeholder.has-image {
    border-style: solid;
    padding: 0;
    background-size: cover;
    background-position: center;
}

.photo-placeholder.has-image span,
.photo-placeholder.has-image small {
    display: none;
}

.file-trigger {
    position: relative;
    overflow: hidden;
}

.file-trigger input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sticky-actions {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.sticky-actions .btn {
    width: 100%;
}

.toast {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 50;
    width: min(calc(100% - 28px), 680px);
    transform: translateX(-50%);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text);
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 800;
    transition: opacity .24s ease, transform .24s ease;
}

.toast.is-hiding {
    opacity: 0;
    transform: translate(-50%, -10px);
}

.toast.success {
    border-left: 5px solid var(--success);
}

.toast.error {
    border-left: 5px solid var(--danger);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--text);
    background: rgba(246, 248, 251, .76);
    backdrop-filter: blur(8px);
    font-weight: 900;
}

.app-footer {
    width: min(100%, 980px);
    margin: auto auto 0;
    padding: 24px 12px 30px;
    color: var(--muted);
    text-align: center;
    font-size: .86rem;
    font-weight: 800;
}

.app-footer,
.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.instagram-link {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.instagram-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.admin-footer-credit {
    width: 100%;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(17, 100, 102, .16);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 26px;
    text-align: center;
}

.empty-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--primary);
    background: rgba(17, 100, 102, .10);
    font-weight: 900;
}

.login-shell {
    min-height: calc(100vh - 36px);
    display: grid;
    align-items: center;
}

.admin-body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.brand-mini {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--primary);
    font-weight: 900;
}

.brand-mini small {
    color: var(--muted);
}

.admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.admin-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    color: var(--muted);
    font-weight: 800;
    background: #fff;
}

.admin-nav a.active {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.admin-user {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: .9rem;
}

.admin-user a {
    color: var(--primary);
    font-weight: 800;
}

.admin-user a:last-child {
    color: var(--danger);
    font-weight: 800;
}

.admin-main {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 18px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-topbar h1 {
    font-size: 1.55rem;
}

.stats-grid {
    margin-bottom: 16px;
}

.stat-card span,
.detail-card .eyebrow {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong,
.detail-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.55rem;
}

.stat-card.alert strong {
    color: var(--danger);
}

.stat-card.warn strong {
    color: #8a5a00;
}

.content-section {
    margin-bottom: 16px;
}

.narrow-section {
    max-width: 720px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: .76rem;
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.muted {
    color: var(--muted);
}

.center {
    text-align: center;
}

.pill {
    display: inline-flex;
    max-width: 280px;
    border-radius: var(--radius);
    padding: 5px 8px;
    color: var(--primary-strong);
    background: rgba(17, 100, 102, .10);
    font-size: .78rem;
    font-weight: 900;
}

.pill.ok {
    color: var(--success);
    background: rgba(19, 115, 51, .10);
}

.muted-pill {
    color: var(--muted);
    background: #edf1f4;
}

.row-actions,
.form-actions,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-bar {
    align-items: end;
    margin-bottom: 14px;
}

.filter-grid {
    align-items: end;
}

.result-count {
    color: var(--muted);
    font-weight: 800;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    color: var(--muted);
    font-weight: 800;
}

.pagination [aria-disabled="true"] {
    pointer-events: none;
    opacity: .5;
}

.checkout-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.pdf-icon-link { display:inline-grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:9px; color:#c53939; background:#fff; }
.pdf-icon-link:hover { border-color:#c53939; background:#fff4f4; }
.pdf-icon-link.disabled { color:var(--muted); opacity:.45; cursor:not-allowed; }
.pdf-icon-link svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.admin-nav-group { display:grid; gap:2px; }
.admin-nav-child { margin-left:18px; padding-top:7px!important; padding-bottom:7px!important; font-size:.82rem; opacity:.86; }

.admin-body .roster-search {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 670px);
}

@media (max-width: 480px) {
    .admin-body .roster-search {
        grid-template-columns: 1fr;
    }
}

.detail-grid {
    grid-template-columns: 1fr;
}

.detail-list {
    display: grid;
    gap: 8px;
}

.detail-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list span {
    color: var(--muted);
}

.field-builder {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: #f8fafb;
}

.builder-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #fff;
}

.builder-row:last-child {
    margin-bottom: 0;
}

.builder-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.photo-link-preview {
    min-height: 130px;
}

.photos-modal {
    width: min(100%, 720px);
}

.photo-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.slider-btn {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 1.5rem;
}

.photo-slide {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.camera-modal {
    width: min(100%, 760px);
}

.camera-stage {
    display: grid;
    place-items: center;
    min-height: 320px;
    border: 1px solid var(--line);
    background: #111;
}

.camera-stage video,
.camera-stage canvas {
    width: 100%;
    max-height: 62vh;
    object-fit: contain;
}

.camera-modal .form-actions {
    margin-top: 12px;
    justify-content: center;
}

.previous-photo-card {
    width: 100%;
    display: grid;
    gap: 10px;
}

.previous-photo-card img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.slider-count {
    margin-top: 10px;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

@media (min-width: 620px) {
    .app-body {
        padding: 0px 28px 0px 28px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .inline-search {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .viatura-picker {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .form-grid.two,
    .stats-grid,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid,
    .photos-detail-grid,
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: 1fr 180px 160px auto;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .admin-body {
        display: grid;
        grid-template-columns: 250px 1fr;
    }

    .admin-sidebar {
        min-height: 100vh;
        align-content: start;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .admin-nav {
        display: grid;
        overflow: visible;
    }

    .admin-user {
        margin-top: 20px;
    }

    .admin-main {
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .split-admin-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
        align-items: start;
    }

    .filter-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .photo-grid,
    .photos-detail-grid,
    .timeline-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-operation-group {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
}

.home-page-heading {
    max-width: 760px;
    margin: 0 auto -4px;
    text-align: center;
}

.home-page-heading h1 {
    margin: 0;
    color: var(--primary-strong);
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.home-operation-group .section-heading h2,
.home-operation-group > p {
    margin: 0;
}

.checkin-type-selector .section-heading {
    align-items: center;
}

.checkin-type-selector .section-heading h1 {
    white-space: nowrap;
    font-size: clamp(1rem, 5vw, 1.3rem);
}

.home-flow-card {
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 50, 74, .08);
}

.home-flow-heading h2,
.home-flow-heading p {
    margin: 0;
}

.home-flow-heading p {
    margin-top: 5px;
    font-size: .9rem;
}

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

.home-flow-option {
    min-width: 0;
    min-height: 176px;
    display: grid;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    gap: 12px;
    padding: 20px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-flow-option:hover,
.home-flow-option:active {
    transform: translateY(-2px);
}

.home-flow-option.checkin-option {
    border-color: #afd4d2;
    background: #eef8f6;
    box-shadow: 0 10px 24px rgba(15, 111, 120, .08);
}

.home-flow-option.checkout-option {
    border-color: #bdced9;
    background: #f0f5f8;
    box-shadow: 0 10px 24px rgba(18, 50, 74, .08);
}

.home-flow-option.checkin-option:hover,
.home-flow-option.checkin-option:active {
    border-color: var(--primary);
    box-shadow: 0 16px 34px rgba(17, 100, 102, .18);
}

.home-flow-option.checkout-option:hover,
.home-flow-option.checkout-option:active {
    border-color: var(--primary-strong);
    box-shadow: 0 16px 34px rgba(18, 50, 74, .15);
}

.home-flow-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 111, 120, .14);
    border-radius: var(--radius);
    color: var(--primary);
    background: rgba(255, 255, 255, .78);
}

.checkout-option .home-flow-icon {
    color: var(--primary-strong);
    border-color: rgba(18, 50, 74, .14);
}

.home-flow-icon svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-flow-icon .flow-arrow {
    stroke-width: 4;
}

.home-flow-copy {
    min-width: 0;
    display: grid;
    align-self: stretch;
    align-content: start;
    gap: 4px;
}

.home-flow-copy strong {
    font-size: 1.18rem;
}

.home-flow-copy small {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.35;
}

.home-flow-option b {
    display: inline-flex;
    justify-content: center;
    min-width: 86px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-size: .78rem;
}

.checkout-option b {
    background: var(--primary-strong);
}

.checkout-group {
    border-color: rgba(180, 122, 15, .28);
    background: rgba(255, 247, 222, .72);
}

.checkout-entry-card {
    min-height: 118px;
}

.checkout-entry-card svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.checkout-entry-card::after { content: "Consultar"; }

.checkout-shell { display: grid; gap: 16px; }
.checkout-user-line,
.checkout-service-head,
.checkout-service-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.checkout-user-line strong { display: block; }
.checkout-service-card { display: grid; gap: 16px; }
.checkout-service-card.is-overdue { border-color: rgba(180, 35, 24, .25); }
.checkout-service-head h2 { margin: 0; }
.checkout-service-data { align-items: stretch; }
.checkout-service-data > div { flex: 1; display: grid; gap: 4px; padding: 12px; border-radius: 2px; background: #f3f7f8; }
.checkout-service-data small { color: var(--muted); }
.status-pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 900; }
.status-pill.success { color: #116149; background: #dcfce7; }
.status-pill.danger { color: #991b1b; background: #fee2e2; }
.status-pill.info { color: #174ea6; background: #dbeafe; }
.feedback.warning { color: #854d0e; background: #fef3c7; }
.checkout-options { align-items: flex-start; }
.omission-option { flex: 1; }
.omission-option summary { list-style: none; cursor: pointer; }
.omission-option summary::-webkit-details-marker { display: none; }
.omission-option form { display: grid; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.confirmation-line { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; line-height: 1.4; }
.confirmation-line input[type="checkbox"] { appearance: auto; width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; flex: 0 0 20px; }
.confirmation-line > span { min-width: 0; }

@media (max-width: 620px) {
    .checkout-user-line,
    .checkout-service-head,
    .checkout-service-data { align-items: stretch; flex-direction: column; }
    .checkout-service-head .status-pill { align-self: flex-start; }
    .checkout-options { display: grid; }
}

@media (max-width: 430px) {
    .home-page,
    .home-page .home-shell,
    .home-page .home-hero,
    .home-flow-card,
    .home-flow-options,
    .service-change-entry {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .home-page .brand-lockup {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-page .brand-lockup > div {
        min-width: 0;
    }

    .home-page #home-title {
        max-width: 100%;
        font-size: clamp(1.5rem, 7vw, 1.8rem);
        overflow-wrap: break-word;
    }

    .home-flow-card {
        padding: 12px;
    }

    .home-flow-options {
        gap: 8px;
    }

    .home-flow-option {
        min-height: 150px;
        gap: 9px;
        padding: 16px 9px;
    }

    .home-flow-icon {
        width: 62px;
        height: 62px;
    }

    .home-flow-icon svg {
        width: 50px;
        height: 50px;
    }

    .home-flow-copy strong {
        font-size: 1rem;
    }

    .home-flow-copy small {
        font-size: .75rem;
        overflow-wrap: anywhere;
    }
}

.modal-open {
    overflow: hidden;
}

.officer-registration-modal {
    width: min(100%, 700px);
}

.modal-intro {
    margin-top: -8px;
    color: var(--muted);
}

.officer-registration-form,
.registration-conditional {
    display: grid;
    gap: 13px;
}

.registration-origin {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.registration-origin legend {
    margin-bottom: 7px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 800;
}

.registration-origin > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.registration-origin label {
    position: relative;
    cursor: pointer;
}

.registration-origin input {
    position: absolute;
    opacity: 0;
}

.registration-origin span {
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 2px;
    background: var(--surface-soft);
    font-weight: 850;
}

.registration-origin input:checked + span {
    border-color: var(--accent);
    color: var(--primary-strong);
    background: #e3f5f3;
}

/* O check segue a mesma linguagem visual da etapa de cadastramento no PC11. */
.check-page {
    background: linear-gradient(#e8f2f6, #f7fafb 320px);
}

.check-page .shell {
    width: min(100%, 760px);
    padding-top: 14px;
}

.check-page .check-form {
    gap: 15px;
}

.check-page .form-panel {
    display: grid;
    gap: 17px;
    border-color: #dce5ec;
    border-radius: 2px;
    box-shadow: 0 8px 25px rgba(11, 45, 72, .06);
}

.check-page .lead-panel {
    border: 0;
    border-radius: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-strong), #194760);
    box-shadow: 0 16px 40px rgba(11, 45, 72, .12);
}

.check-page .lead-panel h1 {
    margin-bottom: 3px;
    font-size: 1.65rem;
}

.check-page .lead-panel > p {
    margin: 0;
    color: #c8dce9;
}

.check-page .section-title {
    align-items: flex-start;
    margin-bottom: 0;
}

.check-page .section-title > span {
    border-radius: 2px;
    background: var(--primary-strong);
}

.check-page .section-title h2 {
    margin: 0;
    font-size: 1.2rem;
}

.check-page .section-title p {
    margin-top: 2px;
    color: #64788b;
    font-size: .9rem;
}

.service-change-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(17, 100, 102, .22);
    border-radius: var(--radius);
    color: var(--text);
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 100, 102, .1);
    text-decoration: none;
}

.service-change-entry svg {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 2px;
    color: #fff;
    background: var(--primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-change-entry span {
    display: grid;
    min-width: 0;
}

.service-change-entry strong {
    font-size: 1rem;
}

.service-change-entry small {
    color: var(--muted);
    font-size: .86rem;
}

.service-change-entry b {
    color: var(--primary);
    font-size: .86rem;
}

.service-change-entry:hover,
.service-change-entry:active {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.back-button {
    display: inline-flex;
    width: auto;
    margin: 0 0 14px;
}

.validation-summary {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #d84545;
    border-radius: var(--radius);
    color: #8f1f1f;
    background: #fff2f2;
}

.validation-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.field-invalid {
    outline: 3px solid rgba(216, 69, 69, .2);
    outline-offset: 4px;
    border-radius: var(--radius);
}

.functional-phone-number,
.success-operation-card,
.last-check-card {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.functional-phone-number small,
.success-operation-card span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.functional-phone-number strong {
    font-size: 1.25rem;
}

.admin-grid {
    display: grid;
    gap: 18px;
}

.panel-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.narrow-card {
    max-width: 720px;
}

@media (min-width: 960px) {
    .admin-grid.two-cols {
        grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
        align-items: start;
    }
}

.pending-flow-card {
    display: grid;
    gap: 14px;
    width: min(100%, 760px);
    margin: 0 auto 18px;
    padding: 18px;
    border: 2px solid #e2b72e;
    border-radius: var(--radius);
    background: #fff6cf;
    box-shadow: 0 12px 30px rgba(91, 69, 0, .12);
}

.pending-flow-card div {
    display: grid;
    gap: 3px;
}

.pending-flow-card p {
    margin: 0;
    color: #685619;
}

.vehicle-change-banner {
    border: 1px solid rgba(17, 100, 102, .24);
    background: #e7f5f2;
    box-shadow: 0 12px 30px rgba(17, 100, 102, .12);
}

.vehicle-change-banner p {
    color: #245b5d;
}

@media (max-width: 560px) {
    .service-change-entry {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .service-change-entry b {
        display: none;
    }
}

@media (min-width: 720px) {
    .pending-flow-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.drive-pin-shell {
    display: grid;
    place-items: start center;
    min-height: calc(100vh - 150px);
    padding: 24px 0;
}

.drive-pin-card {
    width: min(100%, 410px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.drive-pin-logo {
    width: 82px;
    height: 82px;
    margin-bottom: 12px;
    object-fit: contain;
}

.drive-pin-card h2 {
    margin: 6px 0 8px;
    font-size: 1.65rem;
}

.drive-pin-card > p {
    margin: 0 0 20px;
    color: var(--muted);
}

.drive-pin-form,
.drive-pin-field {
    display: grid;
    gap: 14px;
}

.drive-pin-field {
    text-align: left;
}

.drive-pin-field input {
    min-height: 58px;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: .65em;
    text-align: center;
    text-indent: .65em;
}

.drive-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.drive-pin-keypad button {
    min-height: 58px;
    border: 1px solid #cbd9e2;
    border-radius: 2px;
    color: var(--primary-strong);
    background: #f4f8fa;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
}

.drive-pin-keypad button:hover,
.drive-pin-keypad button:focus-visible {
    border-color: var(--primary);
    background: #e7f5f2;
}

.drive-pin-keypad .keypad-clear,
.drive-pin-keypad .keypad-backspace {
    color: var(--muted);
    font-size: .82rem;
}

.legal-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef5f6 0, #f7f9fb 320px);
}

.legal-shell {
    width: min(calc(100% - 32px), 900px);
    margin: 0 auto;
    padding: 32px 0 56px;
}

.legal-header,
.legal-content {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.legal-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
}

.legal-header img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.legal-header h1 {
    margin: 4px 0;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.legal-header p {
    margin: 0;
    color: #d5e8ea;
}

.legal-content {
    display: grid;
    gap: 22px;
    padding: 28px;
    border-top: 0;
    border-radius: var(--radius);
}

.legal-content section {
    display: grid;
    gap: 7px;
}

.legal-content h2,
.legal-content p,
.legal-content ul {
    margin: 0;
}

.legal-content h2 {
    color: var(--primary-strong);
    font-size: 1.12rem;
}

.legal-content p,
.legal-content li {
    color: #445d70;
    line-height: 1.65;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-actions,
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal-links a {
    color: inherit;
    font-size: .82rem;
}

/* Keep the test banner above both columns of the administrative grid. */
.admin-body > .test-environment-banner {
    grid-column: 1 / -1;
    align-self: start;
}

@media (min-width: 960px) {
    .admin-body.test-environment {
        grid-template-rows: max-content minmax(0, 1fr);
    }

    .admin-body .admin-nav {
        gap: 4px;
    }

    .admin-body .admin-nav a {
        min-height: 32px;
        padding: 5px 9px;
        font-size: .84rem;
    }
}

.admin-body .admin-sidebar {
    min-height: 0;
    align-content: start;
}

.admin-body .admin-main {
    width: 100%;
    min-width: 0;
    padding: 16px;
}

@media (max-width: 959px) {
    .admin-body .admin-nav {
        flex-wrap: wrap;
        overflow: visible;
        gap: 5px;
    }

    .admin-body .admin-nav a {
        min-height: 32px;
        padding: 5px 8px;
        font-size: .79rem;
    }
}

.admin-body .admin-topbar {
    margin-bottom: 12px;
}

.admin-body .admin-topbar h1 {
    margin: 0;
    font-size: 1.4rem;
}

.admin-body .content-section,
.admin-body .form-panel {
    padding: 14px;
    margin-bottom: 12px;
}

.admin-body .section-heading {
    margin-bottom: 10px;
}

.admin-body .data-table th,
.admin-body .data-table td,
.admin-body .table-wrap th,
.admin-body .table-wrap td {
    padding: 8px 7px;
    font-size: .83rem;
    line-height: 1.3;
}

.checkout-omissions .admin-card {
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.checkout-omissions .admin-card .section-heading h2 {
    margin: 0;
    font-size: 1.1rem;
}

.checkout-omissions .filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, 205px)) auto;
    align-items: end;
    gap: 8px;
}

.checkout-omissions .filter-form .field {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}

.checkout-omissions .filter-form .field span {
    flex: 0 0 auto;
    font-size: .8rem;
}

.checkout-omissions .filter-form input[type="date"] {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 6px 8px;
}

.checkout-omissions .filter-form input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 6px 8px;
}

.checkout-omissions .filter-form .btn {
    min-height: 38px;
    justify-self: start;
}

.checkout-omissions .table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-omissions .table-wrap td p {
    margin: 4px 0 0;
}

@media (max-width: 520px) {
    .checkout-omissions .filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-omissions .filter-form .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .checkout-omissions .filter-form .search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .drive-pin-card,
    .legal-content,
    .legal-header {
        padding: 20px;
    }

    .legal-header {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .legal-header img {
        width: 58px;
        height: 58px;
    }
}
.test-environment-banner {
    position: relative;
    z-index: 10000;
    width: 100%;
    padding: 7px 12px;
    background: #9f1239;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
 }
.image-lightbox { position: fixed; z-index: 20000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.86); }
.image-lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.image-lightbox button { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.18); font-size: 28px; }
[data-photo-lightbox] { cursor: zoom-in; }
.checkin-justification-list { display: grid; gap: 12px; margin: 12px 0; }
.checkin-justification-list > section { padding: 12px; border: 1px solid var(--line); background: #fff7ed; }
.checkin-justification-list p { margin: 4px 0 10px; font-size: .85rem; }

/* Same navigation and action language used by PC11. */
.app-body .btn.primary,
.admin-body .btn.primary { background: #12324a; color: #fff; }
.app-body .btn.primary:hover,
.admin-body .btn.primary:hover { background: #194760; }
.app-body .btn.secondary,
.admin-body .btn.secondary { background: #fff; border-color: #bfd0dd; color: #12324a; }
.app-body .home-menu-links .btn.small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .84rem;
}
.admin-body .admin-sidebar {
    border-color: #12324a;
    background: #12324a;
    color: #fff;
}
.admin-body .brand-mini,
.admin-body .brand-mini small { color: #fff; }
.admin-body .brand-mini small { opacity: .7; }
.admin-body .admin-nav a {
    border-color: transparent;
    background: transparent;
    color: #c8d9e5;
}
.admin-body .admin-nav a:hover,
.admin-body .admin-nav a.active {
    border-color: transparent;
    background: rgba(255, 255, 255, .13);
    color: #fff;
}
.admin-body .admin-user { color: #c8d9e5; }
.admin-body .admin-user a { color: #7cdbd8; }
.admin-body .admin-user a:last-child { color: #ffd6d6; }
@media (max-width: 620px) {
    .app-body .home-menu-links .btn.small {
        padding: 6px 7px;
        font-size: clamp(.66rem, 2.7vw, .79rem);
    }
}
