/* =========================================================
   RideMonkey MOT — Page Styling
   ========================================================= */

.rm-mot {
    width: 100%;
}

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


/* ---------------------------------------------------------
   MOT stats summary
   --------------------------------------------------------- */

.rm-mot-stats-card {
    width: 100%;
    padding: 12px 16px;

    background: #ffffff;

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

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

.rm-mot-stats-row {
    display: flex;

    justify-content: space-around;
    gap: 10px;
}

.rm-mot-stat {
    display: flex;
    flex-direction: column;

    align-items: center;
    gap: 2px;
}

.rm-mot-stat-label {
    color: #666666;

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

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

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

.rm-mot-stat-warning {
    color: #c0392b;
}


/* ---------------------------------------------------------
   MOT list wrapper
   --------------------------------------------------------- */

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

    gap: 14px;
}


/* ---------------------------------------------------------
   MOT card

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

.rm-mot-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-mot-card:hover,
.rm-mot-card:focus {
    border-color: #ff4b00;
}

.rm-mot-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 12px 18px 10px;

    background: #faf9f6;

    border-bottom: 2px solid #ff4b00;

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

.rm-mot-card-year {
    color: #222222;
}

.rm-mot-card-header.rm-mot-pass .rm-mot-card-result {
    color: #1a7f37;
}

.rm-mot-card-header.rm-mot-fail .rm-mot-card-result {
    color: #c0392b;
}

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

    flex-direction: column;

    gap: 4px;

    padding: 10px 18px;
}

.rm-mot-card-date,
.rm-mot-card-expiry {
    color: #666666;

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


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

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

    color: #666666;

    font-size: 15px;
}


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

@media (max-width: 767px) {

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

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

    .rm-mot-stat-value {
        font-size: 13px;
    }

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

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

        font-size: 14px;
    }

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

    .rm-mot-card-date,
    .rm-mot-card-expiry {
        font-size: 12px;
    }

}