* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6f9;
    color: #1f2937;
}

/* =========================
   LOGIN PAGE
   ========================= */

body.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f766e 100%);
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    padding: 42px 38px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
    margin: 0;
    text-align: center;
    font-size: 38px;
    color: #0f172a;
    letter-spacing: -1px;
}

.login-card > p {
    margin: 10px 0 32px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

.login-card label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    margin: 0 0 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.login-card button {
    width: 100%;
    height: 50px;
    margin-top: 5px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.login-card button:hover {
    background: #1d4ed8;
}

.login-card button:active {
    transform: translateY(1px);
}

.flash.bad {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
}

/* =========================
   GENERAL APPLICATION
   ========================= */

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {
    body.login {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 14px;
    }

    .login-card h1 {
        font-size: 32px;
    }
}

/* =========================================================
   FLEETLOGIC MAIN APPLICATION
   ========================================================= */

.app-body {
    margin: 0;
    background: #f4f7fb;
    color: #172033;
    min-height: 100vh;
}

.shell {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 270px;
    min-width: 270px;
    min-height: 100vh;
    background: #0f1f38;
    color: #ffffff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.25s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 26px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
}

.brand-text h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.brand-text h2 span {
    color: #60a5fa;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.sidebar-nav {
    padding: 16px 12px 30px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    margin: 3px 0;
    border-radius: 8px;
    color: #dbeafe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.nav-section {
    margin: 20px 14px 7px;
    color: #718096;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.logout-link {
    margin-top: 15px !important;
    color: #fecaca !important;
}


/* MAIN AREA */

.main-area {
    width: calc(100% - 270px);
    min-height: 100vh;
    margin-left: 270px;
}

.topbar {
    height: 76px;
    background: #ffffff;
    border-bottom: 1px solid #e6ebf2;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 500;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
    color: #172033;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-info strong {
    display: block;
    font-size: 14px;
}

.user-info small {
    display: block;
    color: #64748b;
    margin-top: 2px;
    font-size: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8efff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.content-area {
    padding: 32px;
    max-width: 1700px;
    margin: 0 auto;
}


/* PAGE HEADINGS */

.content-area h1 {
    margin: 0 0 8px;
    font-size: 31px;
    letter-spacing: -0.7px;
    color: #172033;
}

.content-area h2,
.content-area h3 {
    color: #172033;
}

.muted {
    color: #64748b;
}


/* DASHBOARD CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.card {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.card small {
    display: block;
    color: #64748b;
    margin-bottom: 11px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card strong {
    display: block;
    font-size: 31px;
    color: #172033;
}


/* PANELS */

.panel {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 13px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
}

.panel h3 {
    margin-top: 0;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* TABLES */

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf0f4;
    font-size: 14px;
}

tbody tr:hover {
    background: #fafcff;
}


/* FORMS */

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grid-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.grid-form .wide {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
}

textarea {
    min-height: 95px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* BUTTONS */

button,
.btnlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.btnlink:hover {
    background: #1d4ed8;
    text-decoration: none;
}

button.secondary {
    background: #e8eef8;
    color: #334155;
}


/* BADGES */

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 800;
}


/* ALERTS */

.flash {
    border-radius: 8px;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-size: 14px;
}

.flash.good {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.flash.bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}


/* TITLE ROW */

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}


/* MOBILE */

@media (max-width: 950px) {

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-area {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        justify-content: space-between;
        padding: 0 18px;
    }

    .menu-button {
        display: block;
    }

    .content-area {
        padding: 22px 16px;
    }

    .grid.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .grid-form .wide {
        grid-column: auto;
    }

    .title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .content-area h1 {
        font-size: 26px;
    }
}

/* =========================================================
   FLEETLOGIC - VEHICLE PROFILE & SERVICE STATUS
   ========================================================= */

/* Vehicle action buttons */
.vehicle-action-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vehicle-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.vehicle-view-btn:hover {
    opacity: 0.9;
}


/* =========================================================
   SERVICE STATUS
   ========================================================= */

.service-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* Service OK */
.service-status.good {
    background: #dcfce7;
    color: #166534;
}

/* Service approaching / due soon */
.service-status.warning {
    background: #fef3c7;
    color: #92400e;
}

/* Service overdue */
.service-status.bad {
    background: #fee2e2;
    color: #991b1b;
}

.service-remaining-text {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}


/* =========================================================
   VEHICLE PROFILE
   ========================================================= */

.vehicle-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.vehicle-profile-title h1 {
    margin: 0 0 6px;
}

.vehicle-profile-title p {
    margin: 0;
    color: #64748b;
}


/* Profile information cards */

.vehicle-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.vehicle-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
}

.vehicle-profile-card .label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.vehicle-profile-card .value {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   VEHICLE DETAILS
   ========================================================= */

.vehicle-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vehicle-detail {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.vehicle-detail .label {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.vehicle-detail .value {
    color: #0f172a;
    font-weight: 700;
}


/* =========================================================
   VEHICLE PROFILE SECTIONS
   ========================================================= */

.vehicle-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px;
}

.vehicle-section h2,
.vehicle-section h3 {
    margin-top: 0;
    color: #0f172a;
}


/* =========================================================
   VEHICLE STATUS
   ========================================================= */

.vehicle-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.vehicle-status.operational {
    background: #dcfce7;
    color: #166534;
}

.vehicle-status.workshop,
.vehicle-status.breakdown {
    background: #fef3c7;
    color: #92400e;
}

.vehicle-status.accident,
.vehicle-status.off-road {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================================================
   EXPIRY / WARNING BOXES
   ========================================================= */

.expiry-warning {
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 600;
}

.expiry-warning.ok {
    background: #dcfce7;
    color: #166534;
}

.expiry-warning.warning {
    background: #fef3c7;
    color: #92400e;
}

.expiry-warning.expired {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .vehicle-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vehicle-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .vehicle-profile-header {
        flex-direction: column;
    }

    .vehicle-profile-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-details-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-action-cell {
        flex-direction: column;
        align-items: stretch;
    }

    .vehicle-view-btn {
        width: 100%;
    }
}

/* =========================================================
   VEHICLE LIST - ROW HIGHLIGHTING
   ========================================================= */

.vehicle-list-table tbody tr {
    background: #ffffff;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.vehicle-list-table tbody tr:nth-child(even) {
    background: #f3f8ff;
}

.vehicle-list-table tbody td {
    border-bottom: 1px solid #e5edf7;
    background: transparent;
}

.vehicle-list-table tbody tr:hover {
    background: #e8f3ff;
}

.vehicle-list-table thead tr {
    background: #eef4fa;
}

/* =========================================================
   SERVICE REQUESTS
   ========================================================= */

.service-selected-vehicle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #f4f9ff;
    border-color: #dbeafe;
}

.service-selected-vehicle small {
    display: block;
    color: #64748b;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.service-selected-vehicle h3 {
    margin: 5px 0;
    font-size: 25px;
}

.service-selected-vehicle p {
    margin: 0;
    color: #64748b;
}

.service-selected-stats {
    display: flex;
    gap: 35px;
}

.service-selected-stats strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
    color: #172033;
}


.service-workflow {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.service-workflow > div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
}

.service-workflow > div > span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
}

.service-workflow strong {
    display: block;
}

.service-workflow small {
    display: block;
    margin-top: 3px;
    color: #64748b;
}


.service-urgency {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.service-urgency.normal {
    background: #eef2ff;
    color: #3730a3;
}

.service-urgency.high {
    background: #fff7ed;
    color: #c2410c;
}

.service-urgency.urgent {
    background: #fef2f2;
    color: #b91c1c;
}


.service-request-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.service-request-status.requested {
    background: #eff6ff;
    color: #1d4ed8;
}

.service-request-status.approved,
.service-request-status.booked {
    background: #fff7ed;
    color: #c2410c;
}

.service-request-status.in_progress {
    background: #fef3c7;
    color: #92400e;
}

.service-request-status.completed {
    background: #ecfdf5;
    color: #047857;
}

.service-request-status.cancelled {
    background: #f1f5f9;
    color: #64748b;
}


.empty-state {
    padding: 40px;
    text-align: center;
    color: #64748b;
}

.empty-state strong {
    display: block;
    margin-bottom: 5px;
    color: #172033;
}


@media (max-width: 750px) {

    .service-selected-vehicle {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-selected-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   WORKSHOP DASHBOARD
   ========================================================= */

.queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8efff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.workshop-queue {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.queue-card {
    padding: 18px;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    background: #f8fbff;
}

.queue-card:nth-child(even) {
    background: #f2f7fc;
}

.queue-card:hover {
    border-color: #bfd6f5;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.queue-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.queue-registration {
    display: block;
    font-size: 18px;
    color: #172033;
}

.queue-vehicle {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.queue-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.queue-details > div {
    padding: 11px 0;
    border-bottom: 1px solid #e7edf5;
}

.queue-details small {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.queue-details strong {
    color: #172033;
    font-size: 13px;
}

.queue-notes {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.workshop-create-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dfe8f3;
}

.workshop-create-form label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.workshop-create-form .wide {
    grid-column: 1 / -1;
}

.workshop-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.workshop-status.open,
.workshop-status.requested {
    background: #eff6ff;
    color: #1d4ed8;
}

.workshop-status.diagnosis,
.workshop-status.awaiting_parts {
    background: #fff7ed;
    color: #c2410c;
}

.workshop-status.repair,
.workshop-status.testing,
.workshop-status.in_progress {
    background: #fef3c7;
    color: #92400e;
}

.workshop-status.ready,
.workshop-status.completed,
.workshop-status.released,
.workshop-status.closed {
    background: #ecfdf5;
    color: #047857;
}

.workshop-status.cancelled,
.workshop-status.failed {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 700px) {

    .queue-details,
    .workshop-create-form {
        grid-template-columns: 1fr;
    }

    .workshop-create-form .wide {
        grid-column: auto;
    }
}

/* =========================================================
   EMPLOYEE MANAGEMENT
   ========================================================= */

/* Workshop role badges */
.employee-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.employee-role {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.employee-role.technician {
    background: #e8f1ff;
    color: #1558b0;
}

.employee-role.supervisor {
    background: #f0eaff;
    color: #673ab7;
}


/* Driver indicator */
.employee-driver {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    white-space: nowrap;
}

.employee-driver.yes {
    color: #16803c;
}

.employee-driver.no {
    color: #777;
}


/* Employee action buttons */
.employee-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
}

.employee-actions form {
    margin: 0;
}

.employee-actions button {
    margin: 0;
    white-space: nowrap;
}


/* Employee checkbox fields */
#employeeForm .check {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 40px;
    cursor: pointer;
}

#employeeForm .check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    cursor: pointer;
}


/* Keep employee table tidy */
.employee-list-table td {
    vertical-align: middle;
}

.employee-list-table th {
    white-space: nowrap;
}

/* =========================================================
   VEHICLE SERVICE & REPAIR HISTORY
   ========================================================= */

.vehicle-service-history {
    width: 100%;
}

.service-history-list {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.service-history-card {
    background: #ffffff;
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(15, 35, 65, 0.05);
}

.service-history-card:hover {
    border-color: #c7d9ef;
    box-shadow: 0 7px 20px rgba(15, 35, 65, 0.08);
}

.service-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e8eef6;
}

.service-history-header > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-history-header > div > strong {
    font-size: 17px;
    color: #12233f;
}

.service-history-header > div > span {
    color: #66758b;
    font-size: 13px;
}

.service-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-history-grid > div {
    background: #f7faff;
    border: 1px solid #e5edf7;
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 68px;
}

.service-history-grid > div > span {
    display: block;
    margin-bottom: 5px;
    color: #6a7890;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.service-history-grid > div > strong {
    display: block;
    color: #13233e;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.service-history-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.service-history-actions .btnlink {
    min-width: 100px;
    text-align: center;
}


/* Make service history fill full Vehicle Activity width */
.activity-placeholder .vehicle-service-history.full-width {
    grid-column: 1 / -1;
}


/* Improve remaining Vehicle Activity placeholders */
.activity-placeholder > div:not(.vehicle-service-history) {
    padding: 14px 16px;
    border: 1px solid #e5edf7;
    border-radius: 10px;
    background: #f9fbfe;
}

.activity-placeholder > div:not(.vehicle-service-history) strong {
    display: block;
    margin-bottom: 4px;
}


/* Responsive history cards */
@media (max-width: 1100px) {
    .service-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .service-history-grid {
        grid-template-columns: 1fr;
    }

    .service-history-header {
        flex-direction: column;
    }

    .service-history-actions {
        justify-content: stretch;
    }

    .service-history-actions .btnlink {
        width: 100%;
    }
}