/* =================================================================
   OGERP TRAVEL AGENCY — SHARED STYLESHEET
   Single source of truth for fonts, colors, layout, and all page
   styles (dashboard + driver management). Blade views only contain
   markup + scripts — no inline <style> blocks.
================================================================== */

:root {

    --ta-orange: #f47b20;
    --ta-orange-dark: #f15a24;
    --ta-orange-light: #ff7a45;
    --ta-orange-bg: #fff1eb;

    --ta-navy: #111827;
    --ta-text: #20242a;
    --ta-muted: #6b7280;

    --ta-line: #e8ebf0;
    --ta-border: #e1e5ea;

    --ta-bg: #f6f7f9;
    --ta-white: #ffffff;

    --ta-green: #159a6c;
    --ta-blue: #4267e8;
    --ta-yellow: #e5a020;
    --ta-red: #d94b4b;

    /* Canonical font stack + base size — used everywhere. */
    --ta-font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    --ta-font-size-base: 13px;

}


/* ============================================================
   BASE
============================================================ */

body.ta-body {

    font-family: var(--ta-font-family);
    font-size: var(--ta-font-size-base);

    background: var(--ta-bg);
    color: var(--ta-text);

}

body.ta-modal-open {
    overflow: hidden;
}

/* Every page/module inherits the same font stack explicitly too,
   so this is guaranteed even if markup is embedded elsewhere
   (e.g. inside a widget or modal not nested under body.ta-body). */

.ta-dashboard,
.ta-dashboard input,
.ta-dashboard select,
.ta-dashboard button,
.ta-dashboard table,
.ta-driver-page,
.ta-driver-page input,
.ta-driver-page select,
.ta-driver-page button,
.ta-driver-page table,
.ta-login-page {

    font-family: var(--ta-font-family);

}


/* ============================================================
   SIDEBAR
============================================================ */

.ta-sidebar {
    width: 250px;
    min-height: 100vh;
    background: #151515;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 22px 16px;
    overflow-y: auto;
    z-index: 1030;
}

.ta-sidebar .ta-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 10px;
}

.ta-sidebar .ta-brand img {
    /* width: 38px; */
    height: 54px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
}

.ta-sidebar .ta-brand-text strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.ta-sidebar .ta-brand-text strong span {
    color: var(--ta-orange);
}

.ta-sidebar .ta-brand-text small {
    display: block;
    color: #9ca7ba;
    font-size: 10px;
    margin-top: 2px;
}

.ta-sidebar .nav-section {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #69758a;
    padding: 18px 12px 8px;
}

.ta-sidebar .nav-link {
    color: #c9cdd2;
    border-radius: 8px;
    padding: .65rem .85rem;
    font-size: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ta-sidebar .nav-link i {
    width: 18px;
    text-align: center;
}

.ta-sidebar .nav-link:hover,
.ta-sidebar .nav-link.active {
    background: #292929;
    color: #fff;
}

.ta-sidebar .nav-link.active {
    border-left: 3px solid var(--ta-orange);
    padding-left: calc(.85rem - 3px);
}


/* ============================================================
   MAIN / TOPBAR
============================================================ */

.ta-main {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

.ta-topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--ta-line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.ta-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff0e4;
    color: var(--ta-orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}


/* ============================================================
   BUTTONS
============================================================ */

.btn-brand {
    background: var(--ta-orange);
    border-color: var(--ta-orange);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--ta-orange-dark);
    border-color: var(--ta-orange-dark);
    color: #fff;
}

.btn-outline-brand {
    color: var(--ta-orange-dark);
    border-color: var(--ta-orange);
}

.btn-outline-brand:hover {
    background: var(--ta-orange);
    border-color: var(--ta-orange);
    color: #fff;
}


/* ============================================================
   MISC (shared widgets)
============================================================ */

.ta-card-stat {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
}

.ta-card-stat::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    right: -27px;
    top: -25px;
    background: #fff4ee;
}

.ta-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #fff1eb;
    color: var(--ta-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ta-clickable-stat {
    cursor: pointer;
    transition: border-color .15s;
}

.ta-clickable-stat:hover {
    border-color: var(--ta-orange) !important;
}

.ta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.ta-route-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.ta-timeline {
    border-left: 2px solid var(--ta-orange);
    padding-left: 14px;
}

.ta-unassigned {
    color: #9a6400;
    font-weight: 700;
}


/* ============================================================
   LOGIN PAGE
============================================================ */

.ta-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #f4f5f7;
}

.ta-login-shell {
    width: min(1180px, 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
}

.ta-brand-panel {
    background: linear-gradient(145deg, #101010 0%, #21150d 55%, #f15a24 150%);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
    /* min-height: 680px; */
}

.ta-brand-panel::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 153, 51, .16);
    border-radius: 50%;
    top: -130px;
    right: -160px;
}

.ta-brand-panel::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 153, 51, .10);
    border-radius: 50%;
    bottom: -180px;
    left: -140px;
}

.ta-brand-panel .ta-logo {
    width: 220px;
    max-width: 50%;
    height: auto;
    margin-bottom: 28px;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .3));
}

.ta-brand-panel .ta-divider {
    width: 65px;
    height: 3px;
    background: #ff6a27;
    margin: 24px auto;
}

.ta-login-panel {
    padding: 62px 72px;
}

.ta-login-panel .ta-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ta-orange-dark);
}


/* =================================================================
   DASHBOARD PAGE
================================================================== */

.ta-dashboard {
    width: 100%;
    background: var(--ta-bg);
    min-height: calc(100vh - 70px);
    padding: 36px 40px 44px;
}

.ta-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 23px;
}

.ta-dashboard .ta-page-title {
    margin: 0;
    color: var(--ta-navy);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ta-dashboard .ta-page-subtitle {
    margin: 7px 0 0;
    color: var(--ta-muted);
    font-size: 14px;
    line-height: 1.5;
}

.ta-dashboard-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ta-period-select {
    height: 44px;
    min-width: 98px;
    padding: 0 35px 0 15px;
    border: 1px solid var(--ta-border);
    border-radius: 10px;
    background-color: #fff;
    color: var(--ta-text);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.ta-period-select:focus {
    border-color: var(--ta-orange);
}

.ta-apply-btn {
    height: 44px;
    padding: 0 17px;
    border: 1px solid var(--ta-orange);
    border-radius: 10px;
    background: var(--ta-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
}

.ta-apply-btn:hover {
    background: var(--ta-orange-dark);
    border-color: var(--ta-orange-dark);
}

/* Stat cards */

.ta-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ta-stat-card {
    position: relative;
    min-height: 173px;
    padding: 19px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ta-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}

.ta-stat-circle {
    position: absolute;
    width: 74px;
    height: 74px;
    right: -27px;
    top: -25px;
    border-radius: 50%;
    background: #fff2eb;
}

.ta-stat-icon {
    position: relative;
    z-index: 1;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #fff1eb;
    color: var(--ta-orange);
    font-size: 17px;
}

.ta-stat-label {
    position: relative;
    z-index: 1;
    color: #63748b;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 7px;
}

.ta-stat-number {
    position: relative;
    z-index: 1;
    color: var(--ta-navy);
    font-size: 29px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 9px;
}

.ta-stat-footer {
    position: relative;
    z-index: 1;
    color: #63748b;
    font-size: 11px;
    line-height: 1.4;
}

.ta-stat-footer.ta-positive {
    color: #0aa36d;
}

/* Rows / cards */

.ta-dashboard-row {
    display: grid;
    gap: 20px;
}

.ta-chart-row {
    grid-template-columns: 1.48fr 1fr;
    margin-bottom: 20px;
}

.ta-dashboard-card {
    background: #fff;
    border: 1px solid var(--ta-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
    overflow: hidden;
}

.ta-card-heading {
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.ta-card-heading h3 {
    margin: 0;
    color: var(--ta-navy);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.ta-card-heading>span {
    color: #63748b;
    font-size: 11px;
}

/* Trip activity chart */

.ta-activity-card {
    min-height: 371px;
}

.ta-chart {
    height: 309px;
    padding: 9px 23px 30px;
}

.ta-chart-bars {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 25px;
    border-bottom: 1px solid #dfe5eb;
    padding: 0 6px 0;
}

.ta-chart-column {
    position: relative;
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
}

.ta-chart-value {
    position: absolute;
    bottom: calc(var(--bar-height, 0%) + 8px);
    color: #50647d;
    font-size: 9px;
    line-height: 1;
}

.ta-bar {
    width: 46px;
    min-height: 15px;
    background: linear-gradient(to bottom, var(--ta-orange-light) 0%, var(--ta-orange-dark) 100%);
    border-radius: 7px 7px 0 0;
}

.ta-chart-day {
    position: absolute;
    bottom: -24px;
    color: #63748b;
    font-size: 10px;
    white-space: nowrap;
}

/* Trip status */

.ta-status-card {
    min-height: 371px;
}

.ta-status-list {
    padding: 8px 22px 25px;
}

.ta-status-item {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.ta-status-name {
    min-width: 115px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ta-navy);
    font-size: 13px;
}

.ta-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.ta-status-dot.completed {
    background: var(--ta-green);
}

.ta-status-dot.upcoming {
    background: var(--ta-blue);
}

.ta-status-dot.ongoing {
    background: var(--ta-yellow);
}

.ta-status-dot.cancelled {
    background: var(--ta-red);
}

.ta-status-progress {
    flex: 1;
    max-width: 160px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ta-progress-track {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #e9edf2;
}

.ta-progress-fill {
    height: 100%;
    border-radius: 20px;
    background: var(--ta-orange);
}

.ta-status-progress strong {
    width: 20px;
    color: var(--ta-navy);
    font-size: 12px;
    text-align: right;
}

/* Bottom row */

.ta-bottom-row {
    grid-template-columns: 1.4fr 1fr;
}

/* Upcoming trips table */

.ta-upcoming-card {
    min-height: 315px;
}

.ta-view-link {
    color: #63748b;
    font-size: 11px;
    text-decoration: none;
}

.ta-view-link:hover {
    color: var(--ta-orange);
}

.ta-dashboard-table {
    width: calc(100% - 44px);
    margin: 0 22px;
    border-collapse: collapse;
}

.ta-dashboard-table thead th {
    padding: 10px 9px;
    color: #66758b;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid #e1e6eb;
}

.ta-dashboard-table tbody td {
    padding: 11px 9px;
    color: #132847;
    font-size: 11px;
    border-bottom: 1px solid #e5e9ee;
}

.ta-dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.ta-dashboard-table tbody td:first-child {
    color: var(--ta-navy);
}

.ta-dashboard-table tbody td strong {
    font-weight: 700;
}

.ta-trip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 25px;
    padding: 0 10px;
    border-radius: 20px;
    background: #edf2ff;
    color: #315eea;
    font-size: 9px;
    font-weight: 600;
}

/* Invoice summary */

.ta-invoice-card {
    min-height: 315px;
}

.ta-invoice-list {
    padding: 0 21px 20px;
}

.ta-invoice-item {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 15px;
    margin-bottom: 13px;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    background: #fff;
}

.ta-invoice-item:last-child {
    margin-bottom: 0;
}

.ta-invoice-id {
    color: var(--ta-navy);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ta-invoice-meta {
    color: #63748b;
    font-size: 9px;
}

.ta-invoice-item>strong {
    color: var(--ta-navy);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}


/* =================================================================
   DRIVER MANAGEMENT PAGE
================================================================== */

.ta-driver-page {
    color: #111827;
}

.ta-driver-page .ta-page-title {
    margin: 0 0 3px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.25px;
}

.ta-driver-page .ta-page-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.ta-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Filter bar */

.ta-driver-filter-card {
    background: #fff;
    border: 1px solid var(--ta-border);
    border-radius: 11px;
    padding: 12px 13px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .02);
}

.ta-driver-filter {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.ta-driver-search {
    flex: 1 1 auto;
    min-width: 240px;
}

.ta-input,
.ta-select {
    height: 37px;
    border-radius: 7px;
    border: 1px solid #d9dee5;
    background: #fff;
    color: #111827;
    font-size: 12px;
    box-shadow: none !important;
}

.ta-input {
    padding-left: 11px;
    padding-right: 11px;
}

.ta-input::placeholder {
    color: #7b8492;
    opacity: 1;
}

.ta-input:focus,
.ta-select:focus,
.ta-modal-input:focus {
    border-color: var(--ta-orange);
    box-shadow: 0 0 0 2px rgba(244, 123, 32, .08) !important;
}

.ta-filter-select {
    width: 140px;
    flex: 0 0 140px;
}

.ta-select {
    padding-left: 11px;
    padding-right: 30px;
    cursor: pointer;
}

.ta-clear-btn {
    height: 37px;
    padding: 0 14px;
    border-radius: 7px;
    background: #f4f5f7;
    border: 1px solid #f4f5f7;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ta-clear-btn:hover {
    background: #eceef1;
    border-color: #eceef1;
    color: #111827;
}

.ta-add-driver-btn {
    height: 37px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--ta-orange);
    border: 1px solid var(--ta-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.ta-add-driver-btn:hover,
.ta-add-driver-btn:focus {
    background: var(--ta-orange-dark);
    border-color: var(--ta-orange-dark);
    color: #fff;
}

.ta-add-driver-btn i {
    font-size: 13px;
}

/* Driver list card */

.ta-driver-list-card {
    background: #fff;
    border: 1px solid var(--ta-border);
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .02);
}

.ta-driver-list-header {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e7e9ed;
}

.ta-driver-list-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.ta-driver-count {
    font-size: 11px;
    color: #7b8492;
}

.ta-driver-table {
    width: 100%;
    color: #111827;
}

.ta-driver-table thead th {
    height: 39px;
    padding: 0 15px;
    vertical-align: middle;
    background: #fff;
    border-bottom: 1px solid #e7e9ed;
    color: #687386;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.ta-driver-table tbody td {
    height: 58px;
    padding: 7px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f3;
    color: #172033;
    font-size: 11px;
    font-weight: 400;
}

.ta-driver-table tbody tr:last-child td {
    border-bottom: 0;
}

.ta-driver-table tbody tr:hover {
    background: #fffaf7;
}

.ta-driver-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: #f0f1f3;
    color: #596273;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.ta-driver-name {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.ta-driver-id {
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.2;
    color: #7b8492;
}

.ta-driver-phone,
.ta-driver-licence {
    font-size: 11.5px;
    color: #111827;
}

.ta-driver-expiry {
    font-size: 11.5px;
    color: #111827;
    line-height: 1.3;
}

.ta-driver-expiry-status {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #7b8492;
}

.ta-driver-assigned {
    font-size: 12px;
    color: #111827;
    font-weight: 500;
}

.ta-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 43px;
    height: 22px;
    padding: 0 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.ta-status-active {
    background: #eaf8f1;
    color: #14945f;
}

.ta-status-inactive {
    background: #fff0f0;
    color: #e04b4b;
}

.ta-action-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ta-action-btn {
    min-width: 37px;
    height: 29px;
    padding: 0 9px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #dce1e7;
    color: #273142;
    font-size: 11.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ta-action-btn:hover {
    background: #f7f8fa;
    border-color: #cbd1d9;
    color: #111827;
}

.ta-action-disable {
    color: #e04444;
}

.ta-action-disable:hover {
    background: #fff5f5;
    border-color: #f1bebe;
    color: #d93636;
}

.ta-action-enable {
    color: #168b5a;
}

.ta-action-enable:hover {
    background: #f1fbf6;
    border-color: #bde8d3;
    color: #12804f;
}

/* Empty state */

.ta-driver-empty {
    padding: 55px 20px;
    text-align: center;
}

.ta-empty-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #f5f6f7;
    color: #8a93a1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-empty-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ta-empty-text {
    margin-top: 4px;
    font-size: 11px;
    color: #7b8492;
}

/* Footer / pagination */

.ta-driver-footer {
    min-height: 53px;
    padding: 0 16px;
    border-top: 1px solid #e7e9ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ta-driver-range {
    font-size: 10.5px;
    color: #7b8492;
}

.ta-pagination {
    gap: 4px;
}

.ta-pagination .page-item {
    margin: 0;
}

.ta-pagination .page-link {
    width: 29px;
    height: 29px;
    padding: 0;
    border-radius: 6px !important;
    border: 1px solid #d9dee5;
    background: #fff;
    color: #273142;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: none !important;
}

.ta-pagination .page-link:hover {
    background: #fff6f0;
    border-color: var(--ta-orange);
    color: var(--ta-orange-dark);
}

.ta-pagination .page-item.active .page-link {
    background: var(--ta-orange);
    border-color: var(--ta-orange);
    color: #fff;
}

/* Modal */

.ta-driver-modal {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(17, 24, 39, .18);
}

.ta-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e8ebf0;
    background: #fff;
}

.ta-modal-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.ta-modal-subtitle {
    margin-top: 3px;
    color: #7b8492;
    font-size: 10.5px;
}

.ta-modal-body {
    padding: 20px;
    background: #fff;
}

.ta-form-label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
}

.ta-form-label span {
    color: var(--ta-orange-dark);
}

.ta-modal-input {
    min-height: 37px;
    border: 1px solid #d9dee5;
    border-radius: 7px;
    color: #111827;
    font-size: 11.5px;
    box-shadow: none !important;
}

textarea.ta-modal-input {
    resize: vertical;
}

.ta-modal-input::placeholder {
    color: #9aa2ae;
}

.ta-file-help {
    margin-top: 4px;
    font-size: 9px;
    color: #8a93a1;
}

.ta-modal-footer {
    padding: 13px 20px;
    border-top: 1px solid #e8ebf0;
    background: #fff;
}

.ta-modal-cancel {
    height: 35px;
    padding: 0 15px;
    border-radius: 7px;
    border: 1px solid #d9dee5;
    background: #fff;
    color: #374151;
    font-size: 11px;
    font-weight: 500;
}

.ta-modal-cancel:hover {
    background: #f5f6f7;
}

.ta-modal-save {
    height: 35px;
    padding: 0 17px;
    border-radius: 7px;
    border: 1px solid var(--ta-orange);
    background: var(--ta-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.ta-modal-save:hover {
    background: var(--ta-orange-dark);
    border-color: var(--ta-orange-dark);
    color: #fff;
}


/* =================================================================
   TRIP MANAGEMENT PAGE
   Append this block to the shared stylesheet (style.css), just
   before the RESPONSIVE section, so it inherits the same tokens
   (--ta-orange, --ta-border, etc.) as the driver page.
================================================================== */

.ta-trip-page .ta-page-header {
    margin-bottom: 18px;
}

.ta-trip-header-tag {
    align-self: flex-start;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

/* Stat cards */

.ta-trip-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ta-trip-stat-card {
    background: #fff;
    border: 1px solid var(--ta-border);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.ta-trip-stat-card:hover {
    border-color: var(--ta-orange);
}

.ta-trip-stat-card.active {
    border-color: var(--ta-orange);
    box-shadow: 0 0 0 1px var(--ta-orange);
}

.ta-trip-stat-label {
    color: #7b8492;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.ta-trip-stat-number {
    color: #111827;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

/* Filter bar (grid layout for four fields + clear button) */

.ta-trip-filter-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.ta-trip-filter-col {
    display: flex;
    flex-direction: column;
}

.ta-trip-filter-col-sm {
    min-width: 0;
}

.ta-trip-filter-col-btn {
    width: 100px;
}

.ta-trip-filter-label {
    margin-bottom: 6px;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
}

/* Status tabs */

.ta-trip-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ta-trip-tab {
    height: 34px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid var(--ta-border);
    background: #f4f5f7;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ta-trip-tab:hover {
    background: #eceef1;
}

.ta-trip-tab.active {
    background: var(--ta-orange);
    border-color: var(--ta-orange);
    color: #fff;
}

/* Table cell helpers */

.ta-trip-drop {
    margin-top: 2px;
    color: #7b8492;
    font-size: 10.5px;
}

.ta-trip-unassigned {
    color: #9a6400;
    font-weight: 600;
    font-size: 12px;
}

/* Status badges */

.ta-trip-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 22px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
}

.ta-trip-status-new {
    background: #eef0ff;
    color: #5b5be0;
}

.ta-trip-status-progress {
    background: #fff1e0;
    color: var(--ta-orange-dark);
}

.ta-trip-status-arrived {
    background: #eaf8f1;
    color: #596273;
}

.ta-trip-status-completed {
    background: #d2ffd2;
    color: green;
}

.ta-trip-status-cancelled {
    background: #fff0f0;
    color: #e04b4b;
}

.ta-trip-status-driver-arrived {
    background: #f0f1f3;
    color: #596273;
}

.ta-trip-status-point-cancellation{
    background: #ffd4d4;
    color: #ff0000;
}

/* Action button variants (reuse .ta-action-btn base from driver page) */

.ta-trip-btn-primary {
    background: var(--ta-orange);
    border-color: var(--ta-orange);
    color: #fff;
}

.ta-trip-btn-primary:hover {
    background: var(--ta-orange-dark);
    border-color: var(--ta-orange-dark);
    color: #fff;
}

.ta-trip-btn-success {
    background: var(--ta-green);
    border-color: var(--ta-green);
    color: #fff;
}

.ta-trip-btn-success:hover {
    background: #0f8259;
    border-color: #0f8259;
    color: #fff;
}

/* ----------------------------------------------------------------
   Trip Details modal (view-trip popup on the Trips page)
   Used by the #tripDetailsModal in trips.blade.php:
   .ta-trip-details-grid / .ta-trip-details-box / -label / -value /
   -sub, plus .ta-trip-route-box / -title / -timeline / -stop
---------------------------------------------------------------- */

.ta-trip-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ta-trip-details-box {
    background: #f8f9fa;
    border: 1px solid var(--ta-border);
    border-radius: 10px;
    padding: 13px 15px;
}

.ta-trip-details-label {
    color: #7b8492;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ta-trip-details-value {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.ta-trip-details-sub {
    margin-top: 3px;
    color: #7b8492;
    font-size: 11px;
}

.ta-trip-route-box {
    background: #fff;
    border: 1px solid var(--ta-border);
    border-radius: 10px;
    padding: 16px 18px;
}

.ta-trip-route-title {
    margin: 0 0 14px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

/* .ta-trip-route-timeline is combined with the base .ta-timeline
   class in markup (orange vertical rule + left padding); this adds
   the stacked-stop layout on top of it. */
.ta-trip-route-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ta-trip-route-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.ta-trip-route-stop i {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
}

.ta-trip-route-stop.pickup i {
    background: #fff1eb;
    color: var(--ta-orange);
}

.ta-trip-route-stop.drop i {
    background: #eef0f3;
    color: #596273;
}

/* Soft-filled variant of .ta-modal-input — used for the Arrival
   Date/Time fields in the Mark Arrived modal, to visually match the
   read-only info boxes above them. */
.ta-modal-input-soft {
    background: #f8f9fa;
}

.ta-modal-input-soft:focus {
    background: #fff;
}


/* =================================================================
   TRIP REPORT PAGE
   These ta-report-* classes are used by trip-report.blade.php.
   They were missing from the stylesheet, which is why the filter
   bar (Search / Date Duration / Trip Status / Vehicle Type / Driver)
   was rendering stacked instead of in a single row.
================================================================== */

.ta-report-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ta-report-download-btn {
    height: 37px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--ta-orange);
    border: 1px solid var(--ta-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ta-report-download-btn:hover {
    background: var(--ta-orange-dark);
    border-color: var(--ta-orange-dark);
    color: #fff;
}

/* Filter bar — single row: Search / Date Duration / Trip Status / Vehicle Type / Driver */

.ta-report-filter-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

/* Modifier for report pages with 4 filter fields instead of 5
   (e.g. Driver Report: Search / Date Duration / Driver Status / Driver) */
.ta-report-filter-grid-4 {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
}

.ta-report-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ta-report-search-wrap i {
    position: absolute;
    left: 11px;
    color: #9aa2ae;
    font-size: 12px;
    pointer-events: none;
}

.ta-report-search-input {
    padding-left: 30px;
    width: 100%;
}

.ta-report-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.ta-report-hint {
    font-size: 10.5px;
    color: #7b8492;
}

/* Trip Records list header — sort control */

.ta-report-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ta-report-sort label {
    font-size: 11px;
    color: #374151;
    font-weight: 600;
}

.ta-report-sort-select {
    height: 31px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid #d9dee5;
    background: #fff;
    color: #111827;
    font-size: 11.5px;
    cursor: pointer;
}

.ta-report-sort-select:focus {
    border-color: var(--ta-orange);
    outline: none;
}

.ta-report-view-link {
    color: var(--ta-orange-dark);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
}

.ta-report-view-link:hover {
    text-decoration: underline;
}

/* Status badges (report table) */

.ta-report-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 22px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
}

.ta-report-table.ta-driver-table {
    min-width: 1080px;
}

.ta-report-status-created {
    background: #f0f1f3;
    color: #596273;
}

.ta-report-status-progress {
    background: #fff1e0;
    color: var(--ta-orange-dark);
}

.ta-report-status-arrived {
    background: #eef2ff;
    color: #4267e8;
}

.ta-report-status-completed {
    background: #eaf8f1;
    color: #14945f;
}

.ta-report-status-cancelled {
    background: #fff0f0;
    color: #e04b4b;
}


/* =================================================================
   INVOICE REPORT PAGE
================================================================== */

/* Filter bar — Search / Date Duration / Invoice Status /
   Payment Status / Sort / Export button, all in one row */

.ta-invoice-filter-grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr .9fr .9fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.ta-invoice-filter-col-btn {
    display: flex;
}

.ta-invoice-filter-label-spacer {
    visibility: hidden;
}

.ta-invoice-export-btn {
    height: 37px;
    white-space: nowrap;
}

/* Summary cards */

.ta-invoice-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ta-invoice-summary-card {
    background: #fff;
    border: 1px solid var(--ta-border);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
}

.ta-invoice-summary-label {
    color: #7b8492;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ta-invoice-summary-value {
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}

/* Invoice list */

.ta-invoice-number {
    color: var(--ta-orange-dark);
    font-weight: 700;
    font-size: 12.5px;
}

.ta-invoice-table {
    min-width: 1320px;
}

/* Invoice status badges */

.ta-invoice-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 22px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
}

.ta-invoice-status-finalized {
    background: #eef0ff;
    color: #5b5be0;
}

.ta-invoice-status-draft {
    background: #f0f1f3;
    color: #596273;
}

.ta-invoice-status-cancelled {
    background: #fff0f0;
    color: #e04b4b;
}

/* Payment status badges */

.ta-payment-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 22px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
}

.ta-payment-status-paid {
    background: #eaf8f1;
    color: #14945f;
}

.ta-payment-status-partial {
    background: #fff1e0;
    color: var(--ta-orange-dark);
}

.ta-payment-status-unpaid {
    background: #fff0f0;
    color: #e04b4b;
}


/* =================================================================
   TRIP REPORT — VIEW DETAILS MODAL
   Matches the driver-management modal pattern (.ta-modal-header /
   .ta-modal-body / .ta-modal-footer / .ta-modal-cancel) but adds its
   own overlay + card + label/value grid for the read-only trip
   details popup opened from the report table's "View" link.
================================================================== */

.ta-trip-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1050;
}

.ta-trip-modal {
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, .18);
}

.ta-trip-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid #e8ebf0;
}

.ta-trip-modal-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.ta-trip-modal-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid #d9dee5;
    background: #fff;
    color: #374151;
    font-size: 12px;
    flex: 0 0 30px;
}

.ta-trip-modal-close:hover {
    background: #f5f6f7;
    color: #111827;
}

.ta-trip-modal-body {
    padding: 22px 20px;
    background: #fff;
}

.ta-trip-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
}

.ta-trip-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ta-trip-modal-label {
    color: #7b8492;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ta-trip-modal-value {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.ta-trip-modal-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 13px 20px;
    background: #fff;
    border-top: 1px solid #e8ebf0;
}


/* =================================================================
   RESPONSIVE — add alongside the existing RESPONSIVE section
================================================================== */

@media (max-width: 1200px) {
    .ta-trip-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ta-trip-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ta-trip-filter-col-btn {
        width: auto;
        grid-column: span 2;
    }

    .ta-report-filter-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .ta-report-filter-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .ta-invoice-filter-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .ta-invoice-filter-col-btn {
        grid-column: span 3;
    }

    .ta-invoice-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ta-trip-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-trip-filter-grid {
        grid-template-columns: 1fr;
    }

    .ta-trip-filter-col-btn {
        grid-column: span 1;
    }

    .ta-trip-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .ta-trip-table {
        min-width: 950px;
    }

    .ta-trip-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-trip-details-grid {
        grid-template-columns: 1fr;
    }

    .ta-report-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ta-report-filter-grid-4 {
        grid-template-columns: 1fr;
    }

    .ta-report-header-actions {
        width: 100%;
    }

    .ta-report-download-btn {
        flex: 1;
        justify-content: center;
    }

    .ta-invoice-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ta-invoice-filter-col-btn {
        grid-column: span 2;
    }

    .ta-invoice-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .ta-trip-stat-grid {
        grid-template-columns: 1fr;
    }

    .ta-trip-modal-grid {
        grid-template-columns: 1fr;
    }

    .ta-report-filter-grid {
        grid-template-columns: 1fr;
    }

    .ta-invoice-filter-grid {
        grid-template-columns: 1fr;
    }

    .ta-invoice-filter-col-btn {
        grid-column: span 1;
    }

    .footer {
        display: none;
    }
}



/* ========================= REPORTS SUBMENU ========================= */
.reports-parent {
    display: flex;
    align-items: center;
}

.reports-arrow {
    transition: transform 0.2s ease;
}

.reports-parent.open .reports-arrow {
    transform: rotate(180deg);
}

.reports-submenu {
    display: none;
    margin-left: 18px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 8px;
}

.reports-submenu.show {
    display: block;
}

.reports-submenu .sub-link {
    padding: 9px 12px;
    font-size: 13px;
}

.reports-submenu .sub-link.active {
    font-weight: 600;
}



/* =================================================================
   MOBILE / TABLET
================================================================== */

.ta-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ta-border);
    border-radius: 9px;
    background: #fff;
    color: var(--ta-navy);
    font-size: 20px;
    margin-right: 6px;
    padding: 0;
}

.ta-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .5);
    z-index: 1025;
}

/* ---------- Tablet & below: off-canvas sidebar ---------- */
@media (max-width: 991.98px) {

    .ta-sidebar {
        width: 270px;
        max-width: 84vw;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1040;
    }

    body.ta-sidebar-open .ta-sidebar {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, .35);
    }

    body.ta-sidebar-open .ta-sidebar-overlay {
        display: block;
    }

    body.ta-sidebar-open {
        overflow: hidden;
    }

    .ta-main {
        margin-left: 0;
        width: 100%;
    }

    .ta-menu-toggle {
        display: inline-flex;
    }

    .ta-topbar {
        height: 60px;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Dashboard */
    .ta-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ta-chart-row,
    .ta-bottom-row {
        grid-template-columns: 1fr;
    }

    .ta-activity-card,
    .ta-status-card,
    .ta-upcoming-card,
    .ta-invoice-card {
        min-height: 0;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {

    .ta-crumb-root {
        display: none;
    }

    /* Page headers stack */
    .ta-dashboard-header,
    .ta-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ta-driver-page .ta-page-title {
        font-size: 20px;
    }

    .ta-driver-page .ta-page-subtitle {
        font-size: 12px;
    }

    .ta-dashboard-filter {
        width: 100%;
    }

    .ta-period-select {
        flex: 1;
        height: 40px;
    }

    .ta-apply-btn {
        height: 40px;
    }

    /* Stat cards: 2 per row, last odd card spans full width */
    .ta-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ta-stat-grid .ta-stat-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .ta-stat-card {
        min-height: 140px;
        padding: 15px;
    }

    .ta-stat-number {
        font-size: 24px;
    }

    .ta-dashboard-row {
        gap: 14px;
    }

    .ta-chart-row {
        margin-bottom: 14px;
    }

    .ta-card-heading {
        height: 54px;
        padding: 0 16px;
    }

    /* Chart: scrolls sideways if there are many bars (30/90 days) */
    .ta-chart {
        height: 260px;
        padding: 9px 14px 30px;
        overflow-x: auto;
    }

    .ta-chart-bars {
        min-width: 100%;
        width: max-content;
        gap: 12px;
    }

    .ta-chart-column {
        width: 30px;
    }

    .ta-bar {
        width: 28px;
    }

    .ta-status-list {
        padding: 8px 16px 20px;
    }

    .ta-status-name {
        min-width: 100px;
    }

    /* Upcoming trips table scrolls inside the card */
    .ta-upcoming-card .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .ta-dashboard-table {
        width: 100%;
        margin: 0;
        min-width: 480px;
    }

    .ta-dashboard-table thead th:first-child,
    .ta-dashboard-table tbody td:first-child {
        padding-left: 16px;
    }

    .ta-invoice-list {
        padding: 0 14px 16px;
    }

    /* ---------- Driver page ---------- */
    .ta-driver-filter {
        flex-wrap: wrap;
    }

    .ta-driver-search {
        flex: 1 1 100%;
        min-width: 0;
    }

    .ta-filter-select {
        flex: 1 1 calc(50% - 5px);
        width: auto;
    }

    .ta-clear-btn {
        flex: 1 1 100%;
    }

    .ta-add-driver-btn {
        width: 100%;
    }

    .ta-driver-list-card {
        overflow-x: auto;
    }

    .ta-driver-table {
        min-width: 860px;
    }

    .ta-driver-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }

    /* Modals */
    .ta-modal-body {
        padding: 16px;
    }

    .ta-modal-header {
        padding: 14px 16px;
    }

    .ta-modal-footer {
        padding: 12px 16px;
    }

    .ta-trip-modal-overlay {
        padding: 10px;
    }

    .ta-trip-modal-body {
        padding: 16px;
    }

    /* Trip report header buttons */
    .ta-report-header-actions {
        flex-wrap: wrap;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 479.98px) {
    .ta-stat-grid {
        grid-template-columns: 1fr;
    }

    .ta-stat-grid .ta-stat-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .ta-stat-card {
        min-height: 0;
    }

    .ta-filter-select {
        flex: 1 1 100%;
    }

    .ta-login-panel {
        padding: 32px 22px;
    }

    .ta-brand-panel {
        padding: 32px 22px;
    }

    .ta-login-page {
        padding: 14px;
    }
}


.ta-breadcrumb a:hover {
    text-decoration: underline !important;
}

.ta-back-btn {
    white-space: nowrap;
}

.ta-driver-summary-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}

.ta-driver-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.ta-trip-stats {
    margin-bottom: 16px;
}

.ta-stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
}

.ta-stat-label {
    color: #8a8f98;
    font-size: .78rem;
    margin-bottom: 6px;
}

.ta-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.ta-trip-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    list-style: none;
    padding-left: 0;
}

.ta-trip-tabs .nav-link {
    border: none;
    background: none;
    color: #8a8f98;
    font-weight: 600;
    padding: 8px 4px;
    margin-right: 24px;
    border-bottom: 2px solid transparent;
}

.ta-trip-tabs .nav-link.active {
    color: #ff7a1a;
    border-bottom-color: #ff7a1a;
}

.ta-export-btn {
    background: #fff;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.ta-export-btn:hover {
    background: #f5f5f5;
}

.ta-profile-label {
    color: #8a8f98;
    font-size: .78rem;
    margin-bottom: 2px;
}

.ta-profile-value {
    font-weight: 500;
}

.footer {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    width: 100%;
}


/* ================================================ Profile page =================================================== */

.ta-profile-alert {
    font-size: 12px;
    margin-bottom: 14px;
}

.ta-profile-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

/* Logo card */

.ta-profile-logo-body {
    padding: 22px 20px 20px;
    text-align: center;
}

.ta-profile-logo-box {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 1px dashed #cfd4dc;
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ta-profile-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ta-profile-logo-placeholder {
    font-size: 11.5px;
    line-height: 1.4;
    color: #98a2b3;
}

.ta-profile-company-name {
    margin-top: 14px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.ta-profile-company-email {
    margin-top: 3px;
    color: #7b8492;
    font-size: 11px;
    word-break: break-all;
}

.ta-profile-logo-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.ta-profile-upload-btn {
    cursor: pointer;
    margin: 0;
}

.ta-profile-logo-body .ta-file-help {
    margin-top: 12px;
    line-height: 1.5;
}

/* Shared error text (logo + password modal) */

.ta-form-error {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #fff0f0;
    color: #d93636;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
}

/* Details card sections */

.ta-profile-section {
    padding: 20px;
    border-bottom: 1px solid #e7e9ed;
}

.ta-profile-section:last-child {
    border-bottom: 0;
}

.ta-profile-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ta-profile-section-desc {
    margin-top: 3px;
    color: #7b8492;
    font-size: 10.5px;
}

.ta-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.ta-profile-full {
    grid-column: 1 / -1;
}

.ta-profile-value {
    min-height: 37px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid var(--ta-border);
    border-radius: 7px;
    color: #111827;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

/* Pills */

.ta-profile-pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ta-profile-pill-green {
    background: #eaf8f1;
    color: #14945f;
}

.ta-profile-pill-grey {
    background: #f0f1f3;
    color: #596273;
}

/* Security rows */

.ta-profile-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}

.ta-profile-security-row+.ta-profile-security-row {
    border-top: 1px solid #edf0f3;
}

.ta-profile-security-title {
    color: #111827;
    font-size: 12.5px;
    font-weight: 700;
}

.ta-profile-security-sub {
    margin-top: 3px;
    color: #7b8492;
    font-size: 11px;
    word-break: break-all;
}

/* Modal note */

.ta-profile-note {
    padding: 10px 12px;
    border-radius: 7px;
    background: #f8f9fa;
    color: #6b7280;
    font-size: 10.5px;
    line-height: 1.5;
}

/* Responsive */

@media (max-width: 991.98px) {
    .ta-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ta-profile-grid {
        grid-template-columns: 1fr;
    }

    .ta-profile-full {
        grid-column: auto;
    }

    .ta-profile-section {
        padding: 16px;
    }

    .ta-profile-security-row .ta-add-driver-btn {
        flex-shrink: 0;
    }
}


.ta-password-field {
    position: relative;
}
.ta-password-field .form-control {
    padding-right: 44px; /* room for the icon */
}
.ta-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 6px 8px;
    color: #6b7280;
    line-height: 1;
    cursor: pointer;
}
.ta-password-toggle:hover,
.ta-password-toggle:focus-visible {
    color: #111827;
}
