﻿/* =========================================================
   DMB FinCore - Abastecimentos
   Escopo: somente pÃ¡ginas com .fuel-page
   ========================================================= */

.fuel-page {
    width: 100%;
}

.fuel-page .module-header {
    align-items: center;
}

.fuel-page .module-header-actions {
    flex-shrink: 0;
}

.fuel-page .summary-card {
    min-height: 104px;
}

.fuel-page .summary-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fuel-page .summary-content {
    flex: 1;
    text-align: center;
}

.fuel-page .summary-content strong {
    margin-top: 0.45rem;
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    white-space: nowrap;
}

.fuel-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(4px);
}

.fuel-page .fuel-form-modal {
    width: min(1180px, 96vw);
    max-height: calc(100vh - 3rem);
    margin: auto;
    padding: 1.5rem;
    overflow-y: auto;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.fuel-page .fuel-form-modal .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.fuel-page .fuel-form-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.fuel-page .fuel-form-close:hover {
    border-color: #1d4ed8;
    background: #dbeafe;
}

.fuel-page .fuel-form-feedback {
    margin: 0 0 1.25rem;
}

.fuel-page .feature-card,
.fuel-page .form-section,
.fuel-page .feature-filters,
.fuel-page .feature-table-card {
    border-color: #dbe3ef;
}

.fuel-page .feature-table tbody tr:hover {
    background: #f8fbff;
}

.fuel-page .feature-status-active,
.fuel-page .status-active {
    color: #059669;
    font-weight: 900;
}

.fuel-page .feature-status-inactive,
.fuel-page .status-inactive {
    color: #64748b;
    font-weight: 900;
}

.fuel-page .feature-money-positive {
    color: #047857;
    font-weight: 900;
}

.fuel-page .feature-money-negative {
    color: #dc2626;
    font-weight: 900;
}

/* A tabela segue o mesmo padrão aprovado em Unidades. */
.fuel-page .table-card,
.fuel-page .table-responsive,
.fuel-page .app-table {
    overflow: visible;
}

.fuel-page .app-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.fuel-page .app-table th,
.fuel-page .app-table td {
    padding: 1rem 0.7rem;
    overflow-wrap: anywhere;
}

.fuel-page .app-table td {
    vertical-align: middle;
}

.fuel-page .app-table th:nth-child(4),
.fuel-page .app-table td:nth-child(4),
.fuel-page .app-table th:nth-child(5),
.fuel-page .app-table td:nth-child(5),
.fuel-page .app-table th:nth-child(6),
.fuel-page .app-table td:nth-child(6),
.fuel-page .app-table th:nth-child(7),
.fuel-page .app-table td:nth-child(7) {
    text-align: center;
}

.fuel-page .app-table th:first-child,
.fuel-page .app-table td:first-child {
    width: 15%;
}

.fuel-page .app-table th:nth-child(2),
.fuel-page .app-table td:nth-child(2) {
    width: 14%;
}

.fuel-page .app-table th:nth-child(3),
.fuel-page .app-table td:nth-child(3) {
    width: 12%;
}

.fuel-page .fuel-type-text {
    display: inline;
    color: #0b1f3a;
    font-size: 0.9rem;
    font-weight: 700;
}

.fuel-page .app-table th:nth-child(8),
.fuel-page .app-table td:nth-child(8) {
    width: 96px;
    min-width: 96px;
    text-align: center;
}

.fuel-page .app-table th:last-child,
.fuel-page .app-table td:last-child {
    width: 72px;
    min-width: 72px;
    text-align: center;
}

.fuel-page .fuel-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    pointer-events: none;
    user-select: none;
}

.fuel-page .actions-cell {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.fuel-page .fuel-actions-menu {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fuel-page .kebab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.fuel-page .kebab-button:hover {
    background: #eff6ff;
    border-color: #1d4ed8;
}

.fuel-page .kebab-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    z-index: 130;
    min-width: 168px;
    padding: 0.45rem;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    transform: none;
}

.fuel-page .kebab-menu button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0b1f3a;
    padding: 0.75rem 0.9rem;
    text-align: center;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
}

.fuel-page .kebab-menu button:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.fuel-page .app-table tbody tr:last-child .kebab-menu {
    top: auto;
    bottom: calc(100% + 0.45rem);
}

.fuel-page .actions-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    border: 0;
    background: transparent;
    cursor: default;
}

.fuel-page .app-table tbody tr {
    position: relative;
    z-index: 0;
}

.fuel-page .app-table tbody tr.actions-row-open {
    z-index: 110;
}

.fuel-page .actions-cell.is-open,
.fuel-page .actions-cell.is-open .fuel-actions-menu {
    z-index: 120;
}

@media (max-width: 760px) {
    .fuel-page .feature-title {
        font-size: 2.25rem;
    }

    .fuel-page .module-header-actions,
    .fuel-page .module-header-actions .btn {
        width: 100%;
    }

    .fuel-form-overlay {
        align-items: flex-start;
        padding: 0.5rem;
    }

    .fuel-page .fuel-form-modal {
        max-height: calc(100vh - 1rem);
        padding: 1rem;
    }

    .fuel-page .actions-cell {
        width: 72px;
        min-width: 72px;
    }

    .fuel-page .kebab-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}
