* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* =========================
   LAYOUT
========================= */

.layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   MENU LATERAL
========================= */

.sidebar {
    width: 240px;
    background: #1f2937;
    color: #fff;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.logo {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 20px;
    font-weight: bold;
    background: #111827;
}

.logo span {
    margin-left: 8px;
}

.menu {
    padding: 20px 12px;
}

.menu-title {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    margin: 15px 12px 8px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #d1d5db;

    padding: 12px;
    margin-bottom: 4px;

    border-radius: 6px;

    transition: 0.2s;
}

.menu a:hover {
    background: #374151;
    color: #fff;
}

.menu a.active {
    background: #2563eb;
    color: #fff;
}

.menu-icon {
    width: 22px;
    text-align: center;
}

/* =========================
   CONTEÚDO
========================= */

.main {
    margin-left: 240px;
    width: calc(100% - 240px);
    min-height: 100vh;
}

/* =========================
   TOPO
========================= */

.topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;
}

.topbar-title {
    font-size: 20px;
    font-weight: 600;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

/* =========================
   ÁREA DA PÁGINA
========================= */

.content {
    padding: 30px;
}

/* =========================
   TÍTULO
========================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 26px;
    font-weight: 600;
    text-transform: uppercase;
}

.page-subtitle {
    color: #6b7280;
    margin-top: 5px;
}

/* =========================
   CARDS
========================= */

.card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 20px;
}

/* =========================
   TABELA
========================= */

.table-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th {
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
    background: #f9fafb;
}

/* =========================
   BOTÕES
========================= */

.btn {
    display: inline-block;

    border: none;
    border-radius: 6px;

    padding: 10px 16px;

    text-decoration: none;

    cursor: pointer;

    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
}

/* =========================
   STATUS
========================= */

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-info {
    background: #dbeafe;
    color: #1e40af;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}



/* =========================
   RESPONSIVO
========================= */

@media (max-width: 800px) {

    .sidebar {
        width: 70px;
    }

    .logo span,
    .menu a span:not(.menu-icon),
    .menu-title {
        display: none;
    }

    .main {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

    .content {
        padding: 20px;
    }
}
/* =========================
   DASHBOARD
========================= */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.dashboard-card-title {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.dashboard-card-number {
    font-size: 30px;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-grid h3,
.card h3 {
    margin-bottom: 15px;
}

.dashboard-empty {
    color: #6b7280;
    padding: 20px 0;
}


@media (max-width: 1100px) {

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f6f9;
}

.login-box {
    width: 400px;
    max-width: calc(100% - 40px);

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    padding: 40px;

    text-align: center;
}

.login-logo {
    font-size: 42px;
    margin-bottom: 10px;
}

.login-box h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    font-size: 15px;

    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
}

.login-button {
    width: 100%;
    margin-top: 5px;
}

.login-error {
    background: #fee2e2;
    color: #991b1b;

    border: 1px solid #fecaca;
    border-radius: 6px;

    padding: 10px;

    margin-bottom: 20px;

    font-size: 14px;
}

.user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user div {
    display: flex;
    flex-direction: column;
}

.user strong {
    font-size: 14px;
}

.user small {
    font-size: 11px;
    color: #6b7280;
    text-transform: capitalize;
}

/* =========================
   FORMULÁRIOS
========================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #fff;

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #e5e7eb;
}

/* =========================
   BOTÕES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    border: none;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary:hover {
    opacity: 0.9;
}

/* =========================
   CABEÇALHO DA PÁGINA
========================= */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.page-header h1 {
    margin: 0 0 5px;
}

.page-header p {
    margin: 0;
    color: #6b7280;
}

/* =========================
   CARD
========================= */

.card {
    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    padding: 25px;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* =========================
   FICHA DO VEÍCULO
========================= */

.vehicle-section {
    margin-bottom: 20px;
}

.vehicle-section:last-child {
    margin-bottom: 0;
}

.vehicle-section h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;

    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
}

.vehicle-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.vehicle-detail {
    min-width: 0;
}

.vehicle-detail-label {
    display: block;

    margin-bottom: 6px;

    color: #6b7280;
    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
}

.vehicle-detail-value {
    display: block;

    color: #1f2937;
    font-size: 15px;
    font-weight: 500;

    word-break: break-word;
}

.vehicle-detail-value.highlight {
    font-size: 18px;
    font-weight: 600;
}

.vehicle-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vehicle-history-empty {
    padding: 20px;

    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;

    color: #6b7280;
    text-align: center;
}


/* =========================
   RESPONSIVO - FICHA
========================= */

@media (max-width: 900px) {

    .vehicle-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .vehicle-details {
        grid-template-columns: 1fr;
    }

    .vehicle-header-actions {
        width: 100%;
        flex-direction: column;
    }

    .vehicle-header-actions .btn {
        width: 100%;
    }

}

/* =========================
   IMPRESSÃO - FICHA VEÍCULO
========================= */

@media print {

    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background: #fff;
        color: #000;
    }

    .sidebar,
    .topbar,
    .vehicle-header-actions {
        display: none !important;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .content {
        padding: 0;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 22px;
        color: #000;
    }

    .page-subtitle {
        color: #555;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    .vehicle-details {
        grid-template-columns: repeat(3, 1fr);
    }

    .vehicle-detail-label {
        color: #555;
    }

    .vehicle-detail-value {
        color: #000;
    }

    .status {
        border: 1px solid #999;
        background: #fff !important;
        color: #000 !important;
    }

    .vehicle-history-empty {
        background: #fff;
        border: 1px solid #ccc;
        color: #555;
    }

}

/* =========================
   CABEÇALHO DE IMPRESSÃO
========================= */

.print-header {
    display: none;
}


/* =========================
   IMPRESSÃO
========================= */

@media print {

    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background: #fff;
        color: #000;
    }

    .sidebar,
    .topbar,
    .vehicle-header-actions {
        display: none !important;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .content {
        padding: 0;
    }

    .print-header {
        display: block;
        text-align: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #000;
    }

    .print-header-title {
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .print-header-system {
        font-size: 13px;
        margin-top: 4px;
    }

    .print-vehicle-name {
    font-size: 24px;
    font-weight: 700;
    margin-top: 18px;
    color: #000;
    text-transform: uppercase;
}

    .print-document-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 18px;
        text-transform: uppercase;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 20px;
        color: #000;
    }

    .page-subtitle {
        color: #555;
    }

    .card {
        border: 1px solid #aaa;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    .vehicle-details {
        grid-template-columns: repeat(3, 1fr);
    }

    .vehicle-detail-label {
        color: #555;
    }

    .vehicle-detail-value {
        color: #000;
    }

    .status {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #888;
    }

    .vehicle-history-empty {
        background: #fff;
        border: 1px solid #aaa;
        color: #555;
    }

}

.print-footer {
    display: none;
}

@media print {

    .print-footer {
        display: block;

        margin-top: 25px;
        padding-top: 10px;

        border-top: 1px solid #ccc;

        text-align: center;

        color: #666;
        font-size: 10px;
    }

}

/* =========================
   FICHA DO VEÍCULO
========================= */

.vehicle-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.vehicle-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vehicle-status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-status-label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.vehicle-km {
    text-align: right;
}

.vehicle-km span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 5px;
}

.vehicle-km strong {
    font-size: 22px;
    color: #111827;
}

.vehicle-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.vehicle-section-title {
    padding: 17px 22px;

    background: #f9fafb;

    border-bottom: 1px solid #e5e7eb;

    font-size: 15px;
    font-weight: 600;

    color: #374151;
}

.vehicle-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.vehicle-info {
    padding: 20px 22px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.vehicle-info:nth-child(3n) {
    border-right: none;
}

.vehicle-info span {
    display: block;

    font-size: 12px;
    color: #6b7280;

    margin-bottom: 7px;
}

.vehicle-info strong {
    display: block;

    font-size: 15px;
    color: #111827;

    font-weight: 600;
}

.vehicle-info-highlight {
    background: #f8fafc;
}

.vehicle-info-highlight strong {
    font-size: 16px;
}

.vehicle-observations {
    padding: 22px;

    line-height: 1.6;

    color: #374151;

    white-space: normal;
}

.vehicle-empty {
    padding: 22px;

    color: #9ca3af;

    font-size: 14px;
}

.vehicle-meta {
    display: flex;
    justify-content: space-between;

    padding: 5px 3px 20px;

    color: #9ca3af;

    font-size: 12px;
}


/* =========================
   RESPONSIVO - FICHA
========================= */

@media (max-width: 900px) {

    .vehicle-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-info:nth-child(3n) {
        border-right: 1px solid #f0f0f0;
    }

    .vehicle-info:nth-child(2n) {
        border-right: none;
    }

}


@media (max-width: 700px) {

    .vehicle-title {
        font-size: 24px;
    }

    .vehicle-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .vehicle-actions .btn {
        flex: 1;
    }

    .vehicle-status-card {
        align-items: flex-start;
        gap: 20px;
    }

    .vehicle-km {
        text-align: left;
    }

    .vehicle-info-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-info {
        border-right: none !important;
    }

    .vehicle-meta {
        flex-direction: column;
        gap: 5px;
    }

}

.vehicle-summary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    background: #f9fafb;
}

.vehicle-summary div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vehicle-summary small {
    color: #6b7280;
    font-size: 12px;
}

.vehicle-summary strong {
    font-size: 16px;
    color: #111827;
}

@media (max-width: 768px) {

    .vehicle-summary {
        grid-template-columns: 1fr 1fr;
    }

}

/* =========================
   RESUMO DE MANUTENÇÕES
========================= */

.maintenance-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.maintenance-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
}

.maintenance-card-title {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.maintenance-card-number {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
}

.maintenance-card-value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

@media (max-width: 1000px) {

    .maintenance-summary {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .maintenance-summary {
        grid-template-columns: 1fr;
    }

}

/* =========================
   HISTÓRICO DE MANUTENÇÕES
========================= */

.maintenance-history {
    padding: 0;
    overflow: hidden;
}

.maintenance-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 25px;

    border-bottom: 1px solid #e5e7eb;
}

.maintenance-history-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 19px;
    font-weight: 600;
    color: #111827;
}

.maintenance-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    height: 25px;

    padding: 0 7px;

    border-radius: 20px;

    background: #e5e7eb;
    color: #374151;

    font-size: 12px;
    font-weight: 600;
}

.maintenance-history-subtitle {
    margin-top: 5px;

    color: #6b7280;
    font-size: 13px;
}


/* =========================
   TABELA
========================= */

.maintenance-table-wrapper {
    overflow-x: auto;
}

.maintenance-table {
    min-width: 900px;
}

.maintenance-table th {
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.maintenance-table td {
    vertical-align: middle;
}

.maintenance-table tbody tr:last-child td {
    border-bottom: none;
}

.maintenance-date {
    white-space: nowrap;
    font-weight: 600;
    color: #374151;
}

.maintenance-type {
    font-weight: 600;
    color: #374151;
}

.maintenance-description {
    max-width: 300px;
    line-height: 1.4;
}

.maintenance-km {
    white-space: nowrap;
    font-weight: 600;
}

.maintenance-km small {
    color: #6b7280;
    font-weight: normal;
    font-size: 11px;
}

.maintenance-muted {
    color: #9ca3af;
}


/* =========================
   AÇÕES
========================= */

.maintenance-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.maintenance-action {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    border-radius: 5px;

    text-decoration: none;

    color: #374151;

    font-size: 12px;
    font-weight: 600;

    background: #f3f4f6;

    transition: .2s;
}

.maintenance-action:hover {
    background: #e5e7eb;
}


/* =========================
   SEM MANUTENÇÕES
========================= */

.maintenance-empty {
    padding: 45px 20px;

    text-align: center;
}

.maintenance-empty-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.maintenance-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.maintenance-empty-text {
    margin-top: 5px;

    color: #6b7280;
    font-size: 13px;
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 700px) {

    .maintenance-history-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .maintenance-history-header .btn {
        width: 100%;
    }

}

/* =========================
   FILTROS DE MANUTENÇÃO
========================= */

.maintenance-filters {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(220px, 1.5fr)
        auto;

    gap: 12px;

    padding: 18px 25px;

    background: #f9fafb;

    border-bottom: 1px solid #e5e7eb;
}

.maintenance-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maintenance-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.maintenance-filter-group input,
.maintenance-filter-group select {
    width: 100%;

    height: 38px;

    padding: 0 10px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #fff;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.maintenance-filter-group input:focus,
.maintenance-filter-group select:focus {
    border-color: #2563eb;
}

.maintenance-filter-actions {
    display: flex;
    align-items: flex-end;
}

.maintenance-filter-actions .btn {
    height: 38px;
    white-space: nowrap;
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1200px) {

    .maintenance-filters {
        grid-template-columns:
            repeat(3, minmax(150px, 1fr));
    }

}

@media (max-width: 800px) {

    .maintenance-filters {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 550px) {

    .maintenance-filters {
        grid-template-columns: 1fr;
    }

    .maintenance-filter-actions {
        align-items: stretch;
    }

    .maintenance-filter-actions .btn {
        width: 100%;
    }

}

/* ========================================
   FICHA DE MANUTENÇÃO
======================================== */

.maintenance-page-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.maintenance-page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.maintenance-page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* VEÍCULO */

.maintenance-vehicle-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px 25px;
    margin-bottom: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.maintenance-vehicle-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.maintenance-vehicle-title {
    font-size: 24px;
    font-weight: 700;
}

.maintenance-vehicle-info {
    display: flex;
    gap: 35px;
}

.maintenance-vehicle-info div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.maintenance-vehicle-info span {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
}

.maintenance-vehicle-info strong {
    font-size: 14px;
}


/* SEÇÕES */

.maintenance-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px 25px;
    margin-bottom: 20px;
}

.maintenance-section-title {
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}


/* RESUMO */

.maintenance-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.maintenance-summary-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.maintenance-summary-item span:first-child {
    font-size: 12px;
    color: #6b7280;
}

.maintenance-summary-item strong {
    font-size: 15px;
}


/* DESCRIÇÃO */

.maintenance-description {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    white-space: normal;
}


/* RESPONSÁVEL */

.maintenance-responsible-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.maintenance-info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.maintenance-info-box span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.maintenance-info-box strong {
    font-size: 15px;
}


/* OBSERVAÇÕES */

.maintenance-observations {
    background: #f9fafb;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.maintenance-empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 5px 0;
}


/* META */

.maintenance-meta {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    color: #9ca3af;
    font-size: 11px;
    margin: 10px 0 20px;
}

.maintenance-meta strong {
    color: #6b7280;
}


/* RESPONSIVO */

@media (max-width: 900px) {

    .maintenance-vehicle-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .maintenance-vehicle-info {
        width: 100%;
        flex-wrap: wrap;
        gap: 20px;
    }

    .maintenance-summary {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .maintenance-page-actions {
        width: 100%;
    }

    .maintenance-page-actions .btn {
        flex: 1;
    }

    .maintenance-summary {
        grid-template-columns: 1fr;
    }

    .maintenance-responsible-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-meta {
        flex-direction: column;
        gap: 5px;
    }

}

/* Menu suspenso de relatórios */

.menu-dropdown {
    width: 100%;
}

.menu-dropdown summary {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    color: inherit;
    border-radius: 6px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.menu-dropdown summary::-webkit-details-marker {
    display: none;
}

.menu-dropdown summary::marker {
    display: none;
    content: "";
}

.menu-dropdown summary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-dropdown[open] > summary {
    background: rgba(255, 255, 255, 0.06);
}

.menu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.menu-dropdown[open] .menu-arrow {
    transform: rotate(180deg);
}

.menu-submenu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px 0 5px 14px;
}

.menu-submenu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    font-size: 13px;
    border-left: 2px solid transparent;
}

.menu-submenu a:hover {
    border-left-color: rgba(255, 255, 255, 0.45);
}

.menu-submenu a.active {
    font-weight: 600;
    border-left-color: #60a5fa;
    background: rgba(59, 130, 246, 0.18);
}

.submenu-icon {
    width: 18px;
    text-align: center;
    font-size: 12px;
}

.menu-logout-form {
    width: 100%;
    margin: 0;
}

.menu-logout-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.menu-logout-button:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* =========================
   IMPRESSÃO DA FICHA
========================= 

.ficha-impressao .ficha-cabecalho {
    text-align: center;
    border-bottom: 2px solid #222;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.ficha-impressao.ficha-orgao {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.ficha-impressao.ficha-setor {
    font-size: 13px;
    margin-top: 5px;
    color: #555;
}

.ficha-impressao.ficha-titulo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px;
    margin-bottom: 25px;
    border: 2px solid #222;
}

.ficha-impressao.ficha-rodape {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #999;
    margin-top: 30px;
    padding-top: 10px;
    font-size: 11px;
    color: #555;
}


 =========================
   SOMENTE NA IMPRESSÃO
========================= 

@media print {

    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background: #fff;
        color: #000;
    }

    .sidebar,
    .topbar,
    .no-print,
    .form-actions,
    .btn {
        display: none !important;
    }

    .main {
        margin: 0 !important;
        width: 100% !important;
    }

    .content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .ficha-impressao {
        display: block !important;
    }

    .ficha-impressao .ficha-cabecalho,
    .ficha-impressao .ficha-rodape {
        display: block !important;
    }

    .ficha-impressao .ficha-titulo {
        display: block !important;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}*/
