/* Ajustes necessários para links e formulários nativos; o app.css original foi preservado. */
a {
    color: inherit;
    text-decoration: none;
}

a.btn-primary,
a.btn-secondary,
a.btn-success,
a.btn-danger,
a.btn-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inline-form {
    display: inline;
}

details>summary {
    cursor: pointer;
    list-style: none;
}

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

details[open]>.user-menu-dropdown,
details[open]>.notif-dropdown,
details[open]>.card-menu-dropdown {
    display: block;
}

.notification-text,
.menu-logout {
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.menu-logout {
    display: block;
    width: 100%;
    padding: 12px 16px;
}

.notification-text {
    padding: 0;
}

.user-delete-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 28px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 16px;
    background: var(--white);
    color: var(--text-main);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.user-delete-dialog::backdrop {
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.user-delete-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.user-delete-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.user-delete-heading h2 { font-size: 1.35rem; }
.user-delete-dialog p { line-height: 1.6; overflow-wrap: anywhere; }
.user-delete-close {
    border: 0;
    border-radius: 8px;
    background: var(--light-bg);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.user-delete-field { margin: 22px 0; }
.user-delete-field select {
    background-color: var(--light-bg);
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
}
.user-delete-field select:focus-visible,
.user-delete-dialog button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.user-delete-field small {
    display: block;
    margin-top: 8px;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.user-delete-notice {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--light-bg);
    font-size: .85rem;
    color: var(--text-muted);
}
.user-delete-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

@media(max-width:600px) {
    .user-delete-dialog { padding: 20px; }
    .user-delete-actions button { flex: 1 1 auto; }
}

.card-menu-dropdown .menu-logout {
    color: var(--danger);
}

.car-card .car-header {
    color: inherit;
}

.card-photo-prev,
.card-photo-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .6);
    color: white;
    border: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 20;
}

.card-photo-prev {
    left: 5px
}

.card-photo-next {
    right: 5px
}

#evaluation-print {
    display: block !important;
}

@media print {
    #evaluation-print {
        display: block !important;
        border: 0 !important;
        box-shadow: none !important
    }

    .page-back-button,
    .inline-form {
        display: none !important
    }

    body:has(#evaluation-print) #app-screen {
        display: block !important
    }

    body:has(#evaluation-print) .container {
        display: block !important
    }
}

@media(max-width:600px) {
    .admin-table .inline-form button {
        margin-top: 5px
    }

    .header-actions {
        gap: 10px
    }
}

a.btn-primary,
a.btn-secondary,
a.btn-success,
a.btn-danger,
a.btn-print {
    font-size: 13.3333px;
}

.notification-text {
    font-size: .85rem;
    color: var(--text-main);
    line-height: 1.3;
}

@media(max-width:600px) {
    .btn-group>a {
        flex: 1 1 100%;
    }

    .report-filter-actions a {
        width: 100%;
    }
}
