/* =========================================================
   RideMonkey Fuel Log — Page Styling
   ========================================================= */

.rm-fuel-log {
    width: 100%;
}

.rm-fuel-log .rm-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}


/* ---------------------------------------------------------
   Fuel stats summary

   Cost figures (month/year/all-time) are one swipeable
   scroll-snap strip — one shown at a time, swipe left/right
   to change — rather than three stacked figures, so each can
   sit on a single label+value line without crowding.
   --------------------------------------------------------- */

.rm-fuel-stats-card {
    width: 100%;
    min-width: 0;
    padding: 10px 16px 12px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    overflow: hidden;
}

.rm-fuel-stats-scroll {
    display: flex;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.rm-fuel-stats-scroll::-webkit-scrollbar {
    display: none;
}

.rm-fuel-stats-page {
    display: flex;
    flex: 0 0 100%;
    min-width: 0;

    align-items: baseline;
    justify-content: center;
    gap: 6px;

    scroll-snap-align: start;
}

.rm-fuel-stats-arrow {
    flex-shrink: 0;

    color: #ff4b00;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.rm-fuel-stat-value {
    color: #222222;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.rm-fuel-stats-secondary {
    display: flex;

    justify-content: center;
    gap: 18px;

    margin-top: 8px;
    padding-top: 8px;

    border-top: 1px solid #f0f0f0;
}

.rm-fuel-stat-mini {
    display: flex;

    align-items: baseline;
    gap: 4px;
}

.rm-fuel-stat-mini-label {
    color: #666666;

    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rm-fuel-stat-mini-value {
    color: #222222;

    font-size: 12px;
    font-weight: 700;
}

.rm-fuel-stats-hint {
    margin: 8px 0 0;

    color: #ff4b00;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}


/* ---------------------------------------------------------
   Fuel list wrapper
   --------------------------------------------------------- */

.rm-fuel-list {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


/* ---------------------------------------------------------
   Fuel card

   Now a link — see fuel-details.php.
   --------------------------------------------------------- */

.rm-fuel-card {
    display: block;
    width: 100%;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    overflow: hidden;

    color: inherit;
    text-decoration: none;

    transition: border-color 0.15s ease;
}

.rm-fuel-card:hover,
.rm-fuel-card:focus {
    border-color: #ff4b00;
}

.rm-fuel-card-header {
    padding: 12px 18px 10px;

    background: #faf9f6;

    border-bottom: 2px solid #ff4b00;

    color: #222222;

    font-size: 16px;
    font-weight: 700;
}

.rm-fuel-card-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px;

    padding: 10px 18px;
}

.rm-fuel-card-date,
.rm-fuel-card-mileage {
    color: #666666;

    font-size: 13px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

.rm-fuel-log-empty-message {
    margin: 0;
    padding: 4px 2px;

    color: #666666;

    font-size: 15px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .rm-fuel-log .rm-page-grid {
        gap: 14px;
    }

    .rm-fuel-stats-card {
        padding: 8px 14px 10px;
    }

    .rm-fuel-stat-value {
        font-size: 14px;
    }

    .rm-fuel-stat-mini-value {
        font-size: 11px;
    }

    .rm-fuel-list {
        gap: 10px;
    }

    .rm-fuel-card-header {
        padding: 10px 16px 8px;

        font-size: 14px;
    }

    .rm-fuel-card-meta {
        padding: 8px 16px;
    }

    .rm-fuel-card-date,
    .rm-fuel-card-mileage {
        font-size: 12px;
    }

}