﻿/* =========================================================
   TTT Final Unified Theme
   نسخه نهایی قالب مشترک کل سامانه اتوماسیون اداری
   قابل استفاده برای: داشبورد، نقلیه، منابع انسانی، دبیرخانه، انبار، IT، مالی، مدیریت
   ========================================================= */

:root {
    --ttt-navy: #07385a;
    --ttt-navy-dark: #052b45;
    --ttt-gold: #d4a017;
    --ttt-bg: #f3f6fa;
    --ttt-card: #ffffff;
    --ttt-border: #d9e2ec;
    --ttt-border-soft: #edf1f5;
    --ttt-text: #082b45;
    --ttt-muted: #6c7a89;
    --ttt-success: #198754;
    --ttt-success-soft: #d8f0e4;
    --ttt-danger: #dc3545;
    --ttt-danger-soft: #f8d7da;
    --ttt-warning: #f0b429;
    --ttt-warning-soft: #fff3cd;
    --ttt-info: #0b86b7;
    --ttt-info-soft: #e8f4fb;
    --ttt-shadow: 0 10px 26px rgba(7, 56, 90, 0.08);
    --ttt-radius: 14px;
}

/* اندازه واقعی امضای الکترونیکی؛ فقط خود تصویر بزرگ می‌شود. */
.signature img,
.signature-image,
.signature-img,
img[alt="امضا"],
img[alt^="امضای"] {
    transform: scale(2);
    transform-origin: center center;
    position: relative;
    z-index: 2;
}

html,
body {
    direction: rtl;
    text-align: right;
    background: var(--ttt-bg);
    color: var(--ttt-text);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
}

/* =========================================================
   General Layout
   ========================================================= */

.ttt-page,
.outing-page,
.ttt-transport-page,
.ttt-hr-page,
.ttt-module-page {
    direction: rtl;
    text-align: right;
    padding: 10px 0;
    color: var(--ttt-text);
    font-family: Tahoma, Arial, sans-serif;
}

.ttt-card,
.outing-card,
.ttt-module-card {
    background: var(--ttt-card);
    border: 1px solid var(--ttt-border);
    border-radius: var(--ttt-radius);
    box-shadow: var(--ttt-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

/* =========================================================
   Header Standard
   ========================================================= */

.ttt-page-header,
.ttt-final-header,
.ttt-standard-header,
.outing-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    border-bottom: 2px solid var(--ttt-gold) !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
}

    .ttt-page-title,
    .ttt-final-title,
    .ttt-header-title,
    .outing-card-header > div {
        order: 1 !important;
        flex: 1 1 auto !important;
        text-align: right !important;
    }

        .ttt-page-title h1,
        .ttt-page-title h2,
        .ttt-final-title h1,
        .ttt-final-title h2,
        .ttt-header-title h1,
        .ttt-header-title h2,
        .outing-card-header h1,
        .outing-card-header h2,
        .ttt-module-page h1,
        .ttt-module-page h2,
        .ttt-transport-page h1,
        .ttt-transport-page h2,
        .ttt-hr-page h1,
        .ttt-hr-page h2 {
            margin: 0 !important;
            color: var(--ttt-navy) !important;
            font-size: 24px !important;
            line-height: 1.45 !important;
            font-weight: 800 !important;
            text-align: right !important;
        }

        .ttt-page-title span,
        .ttt-page-title small,
        .ttt-final-title span,
        .ttt-final-title small,
        .ttt-header-title span,
        .ttt-header-title small,
        .outing-card-header span,
        .outing-card-header small {
            display: block !important;
            margin-top: 5px !important;
            color: var(--ttt-muted) !important;
            font-size: 13px !important;
            line-height: 1.7 !important;
            font-weight: 600 !important;
            text-align: right !important;
        }

    .ttt-page-actions,
    .ttt-final-actions,
    .ttt-header-actions,
    .outing-card-header > a,
    .outing-card-header > .btn {
        order: 2 !important;
        margin-right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        text-align: left !important;
    }

/* =========================================================
   Sections
   ========================================================= */

.ttt-section-card {
    background: #ffffff;
    border: 1px solid var(--ttt-border);
    border-radius: var(--ttt-radius);
    padding: 18px;
    margin-bottom: 18px;
}

.ttt-section-card-title {
    color: var(--ttt-navy);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    border-bottom: 1px solid var(--ttt-gold);
    padding-bottom: 10px;
    margin-bottom: 16px;
    text-align: right;
}

/* =========================================================
   Forms
   ========================================================= */

.form-label,
label,
.ttt-form-label {
    color: var(--ttt-text) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
    text-align: right !important;
}

.form-control,
.form-select,
.ttt-form-control {
    min-height: 42px !important;
    border: 1px solid #cfd9e3 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ttt-text) !important;
    background-color: #ffffff !important;
}

    .form-control:focus,
    .form-select:focus,
    .ttt-form-control:focus {
        border-color: #8ab3d5 !important;
        box-shadow: 0 0 0 .2rem rgba(7, 56, 90, .10) !important;
    }

    .form-control[readonly] {
        background: #f7f9fb !important;
        color: #526274 !important;
    }

textarea.form-control {
    min-height: 110px !important;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    padding: 8px 15px !important;
    min-height: 38px !important;
}

.btn-sm {
    padding: 6px 10px !important;
    min-height: 30px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
}

.btn-success {
    background-color: var(--ttt-success) !important;
    border-color: var(--ttt-success) !important;
    color: #ffffff !important;
}

.btn-secondary {
    background-color: #66788f !important;
    border-color: #66788f !important;
    color: #ffffff !important;
}

.btn-warning {
    background-color: var(--ttt-warning) !important;
    border-color: var(--ttt-warning) !important;
    color: #1f2933 !important;
}

.btn-info {
    background-color: var(--ttt-info) !important;
    border-color: var(--ttt-info) !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: var(--ttt-danger) !important;
    border-color: var(--ttt-danger) !important;
    color: #ffffff !important;
}

.ttt-actions-left,
.outing-actions,
.ttt-form-actions {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 22px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--ttt-border-soft) !important;
    text-align: left !important;
}

/* =========================================================
   Tables
   ========================================================= */

.table-responsive {
    border-radius: 12px;
}

.table,
.ttt-table,
.outing-table {
    color: var(--ttt-text) !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
}

    .table thead th,
    .ttt-table thead th,
    .outing-table thead th {
        background: var(--ttt-navy) !important;
        color: #ffffff !important;
        border-color: var(--ttt-navy) !important;
        font-weight: 800 !important;
        font-size: 12px !important;
        text-align: center !important;
        vertical-align: middle !important;
        padding: 12px 10px !important;
        white-space: nowrap !important;
    }

    .table tbody td,
    .table tbody th,
    .ttt-table tbody td,
    .outing-table tbody td {
        vertical-align: middle !important;
        text-align: center !important;
        padding: 11px 10px !important;
        border-color: var(--ttt-border-soft) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

.table-bordered {
    border-color: var(--ttt-border) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc !important;
}

.table-hover tbody tr:hover {
    background-color: #eef5fb !important;
}

.ttt-table-actions {
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* جدول ورود و خروج: جلوگیری از فشرده‌شدن پلاک، تاریخ‌ها و دکمه‌ها */
.transport-outings-table {
    min-width: 1650px !important;
    table-layout: auto !important;
}

.transport-outings-table th,
.transport-outings-table td {
    white-space: nowrap !important;
}

.transport-outings-table .transport-plate-cell {
    min-width: 160px !important;
}

.transport-outings-table .transport-person-cell,
.transport-outings-table .transport-destination-cell {
    min-width: 130px !important;
}

.transport-outings-table .ttt-table-actions {
    min-width: 110px !important;
}

/* =========================================================
   Dashboard / KPI Cards
   ========================================================= */

.ttt-dashboard-grid,
.ttt-kpi-grid-final {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.ttt-dashboard-card,
.dashboard-stat-card,
.ttt-dashboard-card-pro {
    background: #ffffff !important;
    border: 1px solid var(--ttt-border) !important;
    border-radius: var(--ttt-radius) !important;
    box-shadow: var(--ttt-shadow) !important;
    padding: 22px !important;
    min-height: 112px !important;
    text-align: center !important;
}

    .ttt-dashboard-card h3,
    .dashboard-stat-card h3,
    .ttt-dashboard-card-pro h3 {
        color: var(--ttt-navy) !important;
        font-weight: 800 !important;
        font-size: 26px !important;
        margin: 0 0 8px !important;
        text-align: center !important;
    }

    .ttt-dashboard-card span,
    .dashboard-stat-card span,
    .ttt-dashboard-card-pro span {
        color: var(--ttt-text) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
    }

/* =========================================================
   Info Cards
   ========================================================= */

.ttt-info-grid-final,
.ttt-info-grid,
.ttt-alert-grid-final {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.ttt-info-card-final,
.ttt-info-card {
    background: #ffffff !important;
    border: 1px solid var(--ttt-border) !important;
    border-radius: var(--ttt-radius) !important;
    padding: 16px !important;
}

    .ttt-info-card-final h3,
    .ttt-info-card h3 {
        margin: 0 0 14px 0 !important;
        color: var(--ttt-navy) !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        border-bottom: 1px solid var(--ttt-gold) !important;
        padding-bottom: 10px !important;
        text-align: right !important;
    }

.ttt-info-row-final,
.ttt-info-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.ttt-info-item-final,
.ttt-info-item {
    background: #f8fafc !important;
    border: 1px solid var(--ttt-border-soft) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    min-height: 62px !important;
}

    .ttt-info-item-final span,
    .ttt-info-item span {
        display: block !important;
        color: var(--ttt-muted) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        margin-bottom: 5px !important;
    }

    .ttt-info-item-final strong,
    .ttt-info-item strong {
        display: block !important;
        color: var(--ttt-text) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    .ttt-info-item-final.wide,
    .ttt-info-item.wide {
        grid-column: 1 / -1 !important;
    }

/* =========================================================
   Alerts / Status
   ========================================================= */

.alert {
    border: 0 !important;
    border-radius: 12px !important;
    padding: 13px 15px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

.alert-info {
    background: var(--ttt-info-soft) !important;
    color: #06466d !important;
}

.alert-warning {
    background: var(--ttt-warning-soft) !important;
    color: #664d03 !important;
}

.alert-danger {
    background: var(--ttt-danger-soft) !important;
    color: #842029 !important;
}

.alert-success {
    background: var(--ttt-success-soft) !important;
    color: #0f5132 !important;
}

.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 72px !important;
    padding: 6px 11px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.status-in {
    color: #0f5132 !important;
    background: var(--ttt-success-soft) !important;
}

.status-out {
    color: #842029 !important;
    background: var(--ttt-danger-soft) !important;
}

.status-wait {
    color: #664d03 !important;
    background: var(--ttt-warning-soft) !important;
}

/* =========================================================
   Checkboxes
   ========================================================= */

.ttt-checkbox-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    margin-top: 12px !important;
}

.ttt-check-inline,
.form-check {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    margin: 0 0 0 20px !important;
    white-space: nowrap !important;
}

    .ttt-check-inline input[type="checkbox"],
    .form-check input[type="checkbox"],
    .form-check-input {
        margin: 0 !important;
        width: 16px !important;
        height: 16px !important;
        float: none !important;
    }

    .ttt-check-inline label,
    .form-check-label {
        margin: 0 !important;
        font-weight: 800 !important;
        font-size: 13px !important;
    }

/* =========================================================
   Plate / Time Helpers
   ========================================================= */

.plate-iran-style {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px !important;
    background: #f9fbfd !important;
    border: 1px solid var(--ttt-border) !important;
    border-radius: 12px !important;
}

.plate-iran-label {
    background: #eef3f8 !important;
    border: 1px solid var(--ttt-border) !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    font-weight: 800 !important;
    color: var(--ttt-navy) !important;
}

.plate-part,
.plate-letter {
    width: 76px !important;
    text-align: center !important;
    font-weight: 700 !important;
}

.plate-letter {
    min-width: 84px !important;
}

.plate-dash {
    color: var(--ttt-text) !important;
    font-weight: 800 !important;
}

.time-select-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.time-select {
    max-width: 110px !important;
    text-align: center !important;
}

.time-colon {
    font-weight: 800 !important;
    color: var(--ttt-navy) !important;
}

/* =========================================================
   Persian Datepicker
   ========================================================= */

.persian-date,
.persian-date-input {
    direction: rtl !important;
    text-align: right !important;
    cursor: pointer !important;
}

/* =========================================================
   Module compatibility aliases
   ========================================================= */

.ttt-transport-page .ttt-card,
.ttt-hr-page .ttt-card {
    margin-bottom: 24px;
}

.ttt-report-filter {
    border: 1px solid var(--ttt-border) !important;
    border-radius: var(--ttt-radius) !important;
    padding: 18px !important;
    background: #ffffff !important;
    margin-bottom: 18px !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {
    .ttt-dashboard-grid,
    .ttt-kpi-grid-final {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ttt-info-grid-final,
    .ttt-info-grid,
    .ttt-alert-grid-final {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .ttt-card,
    .outing-card,
    .ttt-module-card {
        padding: 16px !important;
    }

    .ttt-page-header,
    .ttt-final-header,
    .ttt-standard-header,
    .outing-card-header {
        flex-direction: column !important;
    }

    .ttt-page-actions,
    .ttt-final-actions,
    .ttt-header-actions {
        margin-right: 0 !important;
        width: 100% !important;
    }

        .ttt-page-actions .btn,
        .ttt-final-actions .btn,
        .ttt-header-actions .btn,
        .ttt-actions-left .btn {
            width: 100% !important;
        }

    .ttt-dashboard-grid,
    .ttt-kpi-grid-final,
    .ttt-info-row-final,
    .ttt-info-row {
        grid-template-columns: 1fr !important;
    }

    .plate-iran-style {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

/* نمایش استاندارد پلاک وسایل نقلیه در جداول و داشبورد */
.ttt-vehicle-plate { direction:ltr;unicode-bidi:isolate;display:inline-flex;align-items:stretch;justify-content:center;min-width:136px;height:34px;overflow:hidden;border:1px solid #17202a;border-radius:6px;background:#fff;color:#111;font-size:12px;font-weight:700;line-height:1;vertical-align:middle;white-space:nowrap; }
.ttt-vehicle-plate-part,.ttt-vehicle-plate-letter { display:inline-flex;align-items:center;justify-content:center;padding:0 7px; }
.ttt-vehicle-plate-letter { min-width:28px;padding-inline:4px; }
.ttt-vehicle-plate-main { min-width:40px; }
.ttt-vehicle-plate-iran { display:inline-flex;min-width:35px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px 5px;border-left:1px solid #17202a;background:#f7f9fb; }
.ttt-vehicle-plate-iran small { font-size:8px;font-weight:600;line-height:1; }
.ttt-vehicle-plate-iran strong { font-size:11px;line-height:1; }
.ttt-vehicle-plate-separator { display:inline-flex;align-items:center;justify-content:center; }
.ttt-vehicle-plate-motor { min-width:150px; }
.ttt-vehicle-plate-motor .ttt-vehicle-plate-iran { min-width:42px; }
.ttt-vehicle-plate-fallback,.ttt-vehicle-plate-empty { display:inline-block;direction:ltr;unicode-bidi:isolate;white-space:nowrap; }
@media (max-width:768px){.ttt-vehicle-plate{min-width:124px;height:32px;font-size:11px}.ttt-vehicle-plate-part,.ttt-vehicle-plate-letter{padding-inline:5px}}

/* Keep the shared plate component intact inside information cards whose generic
   span rules otherwise turn every plate segment into a separate block. */
.ttt-info-item-final .ttt-vehicle-plate,
.ttt-info-item .ttt-vehicle-plate {
    display: inline-flex !important;
    width: auto !important;
    min-width: 136px !important;
    height: 34px !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.ttt-info-item-final .ttt-vehicle-plate > .ttt-vehicle-plate-part,
.ttt-info-item-final .ttt-vehicle-plate > .ttt-vehicle-plate-letter,
.ttt-info-item-final .ttt-vehicle-plate > .ttt-vehicle-plate-separator,
.ttt-info-item .ttt-vehicle-plate > .ttt-vehicle-plate-part,
.ttt-info-item .ttt-vehicle-plate > .ttt-vehicle-plate-letter,
.ttt-info-item .ttt-vehicle-plate > .ttt-vehicle-plate-separator {
    display: inline-flex !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: inherit !important;
}

.ttt-info-item-final .ttt-vehicle-plate > .ttt-vehicle-plate-iran,
.ttt-info-item .ttt-vehicle-plate > .ttt-vehicle-plate-iran {
    display: inline-flex !important;
    margin: 0 !important;
    color: #111 !important;
}

.ttt-info-item-final .ttt-vehicle-plate > .ttt-vehicle-plate-iran small,
.ttt-info-item .ttt-vehicle-plate > .ttt-vehicle-plate-iran small {
    display: inline !important;
    margin: 0 !important;
    color: #111 !important;
}

/* ظرف اختصاصی نمایش پلاک در صفحات جزئیات؛ این قواعد عمداً از قواعد عمومی
   کارت اطلاعات قوی‌ترند تا تمام قطعات پلاک همیشه در یک خط دیده شوند. */
.ttt-plate-detail-value {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.ttt-plate-detail-value > .ttt-vehicle-plate {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 176px !important;
    max-width: none !important;
    height: 34px !important;
    overflow: hidden !important;
    margin: 0 !important;
    border: 1px solid #17202a !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.ttt-plate-detail-value > .ttt-vehicle-plate > .ttt-vehicle-plate-part,
.ttt-plate-detail-value > .ttt-vehicle-plate > .ttt-vehicle-plate-letter,
.ttt-plate-detail-value > .ttt-vehicle-plate > .ttt-vehicle-plate-separator {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 7px !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.ttt-plate-detail-value > .ttt-vehicle-plate > .ttt-vehicle-plate-letter {
    min-width: 28px !important;
    padding-inline: 4px !important;
}

.ttt-plate-detail-value > .ttt-vehicle-plate > .ttt-vehicle-plate-main {
    min-width: 40px !important;
}

.ttt-plate-detail-value > .ttt-vehicle-plate > .ttt-vehicle-plate-iran {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    min-width: 35px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 2px 5px !important;
    margin: 0 !important;
    border-left: 1px solid #17202a !important;
    background: #f7f9fb !important;
    color: #111 !important;
}

.ttt-plate-detail-value > .ttt-vehicle-plate > .ttt-vehicle-plate-iran small {
    display: inline !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.ttt-weekly-report-plate-item {
    overflow: visible !important;
}


/* انتخاب انبار فعال - بدون تغییر در قالب اصلی */
.inventory-active-warehouse-wrap {
    margin-top: 18px;
    margin-bottom: 2px;
}

.inventory-active-warehouse-card {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px;
    border: 1px solid #d7e1ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(25, 55, 85, 0.06);
    display: grid;
    grid-template-columns: 110px minmax(260px, 520px) 1fr;
    gap: 12px;
    align-items: center;
}

.inventory-active-warehouse-card label {
    margin: 0;
    font-weight: 700;
    color: #073b5c;
}

.inventory-active-warehouse-card .form-select {
    min-height: 40px;
}

.inventory-active-warehouse-help {
    color: #68788a;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .inventory-active-warehouse-card {
        grid-template-columns: 1fr;
    }
}

/* TTT Platform Core - dashboard and header counters. Existing theme values are inherited. */
.ttt-platform-status{display:flex;align-items:center;gap:.5rem;margin-inline-start:auto}
.ttt-platform-status-link{display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;white-space:nowrap}
.ttt-platform-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.55rem;height:1.55rem;padding:0 .35rem;border:1px solid currentColor;border-radius:999px;font-size:.78rem;font-weight:700}
.ttt-platform-widget-settings{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:.75rem 1rem;border:1px solid rgba(0,0,0,.12);border-radius:.4rem;background:rgba(0,0,0,.02)}
.ttt-platform-widget-settings label{display:inline-flex;align-items:center;gap:.35rem;margin:0}
.ttt-platform-card,.ttt-platform-stat{display:flex;min-height:100px;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid rgba(0,0,0,.12);border-radius:.45rem;background:#fff;text-decoration:none;color:inherit}
.ttt-platform-card:hover{text-decoration:none;color:inherit;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.ttt-platform-card strong,.ttt-platform-stat strong{font-size:1.8rem;line-height:1.2}
.ttt-platform-card span,.ttt-platform-stat span{margin-top:.35rem}
@media (max-width:767.98px){.ttt-platform-status{width:100%;justify-content:flex-end;margin-top:.5rem}.ttt-platform-actions{width:100%}}

/* ===== TTT compact header actions and right drawer ===== */
.ttt-header-actions {
    position: absolute;
    left: 274px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000001;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttt-header-action-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.ttt-header-action-button:hover,
.ttt-header-action-button:focus-visible {
    background: rgba(255,255,255,.16);
    border-color: rgba(224,184,96,.75);
    outline: none;
    transform: translateY(-1px);
}

.ttt-header-action-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ttt-header-action-count {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--ttt-gold-dark);
    color: #fff;
    border: 2px solid var(--ttt-navy);
    font-size: 8pt;
    font-weight: 900;
    line-height: 15px;
    text-align: center;
    direction: ltr;
}

.ttt-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6,36,61,.38);
    z-index: 1000098;
}

.ttt-notification-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(390px, 92vw);
    height: 100vh;
    background: #fff;
    box-shadow: -16px 0 42px rgba(0,0,0,.22);
    z-index: 1000099;
    transform: translateX(105%);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
    color: var(--ttt-text);
}

.ttt-notification-drawer.open {
    transform: translateX(0);
}

.ttt-notification-drawer-head {
    min-height: 86px;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--ttt-navy) 0%, var(--ttt-navy-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 3px solid var(--ttt-gold);
}

.ttt-notification-drawer-head strong {
    display: block;
    color: var(--ttt-gold);
    font-size: 14pt;
    margin-bottom: 5px;
}

.ttt-notification-drawer-head span {
    display: block;
    font-size: 9pt;
    color: rgba(255,255,255,.82);
}

.ttt-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 20pt;
    line-height: 1;
    cursor: pointer;
}

.ttt-notification-drawer-body {
    overflow-y: auto;
    padding: 18px;
    background: var(--ttt-bg);
    flex: 1;
}

.ttt-drawer-summary {
    background: #fff;
    border: 1px solid var(--ttt-border);
    border-top: 3px solid var(--ttt-gold-dark);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(8,48,80,.07);
}

.ttt-drawer-summary-number {
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef4f9;
    color: var(--ttt-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16pt;
    font-weight: 900;
    direction: ltr;
}

.ttt-drawer-summary strong,
.ttt-drawer-summary span {
    display: block;
}

.ttt-drawer-summary strong { font-size: 10.5pt; margin-bottom: 4px; }
.ttt-drawer-summary span { font-size: 9pt; color: var(--ttt-muted); }

.ttt-drawer-links {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.ttt-drawer-links a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--ttt-border);
    background: #fff;
    color: var(--ttt-text) !important;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.ttt-drawer-links a:hover {
    border-color: var(--ttt-gold-dark);
    transform: translateX(-2px);
}

.ttt-drawer-links strong,
.ttt-drawer-links span { display: block; }
.ttt-drawer-links strong { font-size: 10pt; margin-bottom: 4px; }
.ttt-drawer-links span { font-size: 8.8pt; color: var(--ttt-muted); }

body.ttt-drawer-open { overflow: hidden; }

@media (max-width: 1100px) {
    .ttt-header-actions { left: 268px; }
    .ttt-header-action-button { width: 34px; height: 34px; }
}

@media (max-width: 767.98px) {
    .ttt-header-actions {
        left: 12px;
        top: 12px;
        transform: none;
    }
}

/* ===== Vehicle module layout fixes (2026-08-01) ===== */
.ttt-transport-page .transport-dashboard-header {
    align-items: flex-start !important;
}

.ttt-transport-page .transport-dashboard-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    flex: 0 1 720px !important;
    max-width: 720px !important;
}

.ttt-transport-page .transport-dashboard-action-row {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    justify-content: flex-start;
    gap: 8px;
}

.ttt-transport-page .transport-dashboard-action-row .btn {
    white-space: nowrap;
}

.ttt-transport-page .ttt-page-header > .ttt-page-actions {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    z-index: auto !important;
    align-self: flex-start !important;
}

.ttt-transport-page .transport-outings-scroll,
.ttt-transport-page .transport-latest-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    border-radius: 12px !important;
    padding-bottom: 8px !important;
}

.ttt-transport-page .transport-outings-table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

.ttt-transport-page .transport-outings-table th,
.ttt-transport-page .transport-outings-table td {
    width: auto !important;
    min-width: 105px !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

.ttt-transport-page .transport-outings-table .transport-plate-cell {
    min-width: 160px !important;
}

.ttt-transport-page .transport-outings-table .transport-person-cell,
.ttt-transport-page .transport-outings-table .transport-destination-cell {
    min-width: 150px !important;
}

.ttt-transport-page .transport-outings-table .transport-status-cell {
    min-width: 130px !important;
}

.ttt-transport-page .transport-outings-table .transport-actions-cell {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    min-width: 210px !important;
    background: #ffffff !important;
    box-shadow: 8px 0 12px -12px rgba(8, 47, 79, .65) !important;
}

.ttt-transport-page .transport-outings-table thead .transport-actions-cell,
.ttt-transport-page .transport-outings-table thead th:last-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 5 !important;
    min-width: 210px !important;
    background: var(--ttt-navy) !important;
}

.ttt-transport-page .transport-outings-table tbody tr:hover .transport-actions-cell {
    background: #eef5fb !important;
}

.ttt-transport-page .transport-outings-table .transport-actions-cell .ttt-table-actions {
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}

.ttt-transport-page .transport-latest-table {
    width: 100% !important;
    min-width: 900px !important;
    table-layout: auto !important;
}

.ttt-transport-page .transport-latest-table th,
.ttt-transport-page .transport-latest-table td {
    width: auto !important;
    min-width: 110px !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

.ttt-transport-page .transport-latest-table th:nth-child(2),
.ttt-transport-page .transport-latest-table td:nth-child(2) {
    min-width: 160px !important;
}

.ttt-transport-page .transport-latest-table th:last-child,
.ttt-transport-page .transport-latest-table td:last-child {
    width: auto !important;
    min-width: 135px !important;
}

@media (max-width: 768px) {
    .ttt-transport-page .ttt-page-header > .ttt-page-actions {
        width: 100% !important;
    }

    .ttt-transport-page .transport-outings-table .transport-actions-cell,
    .ttt-transport-page .transport-outings-table thead th:last-child {
        position: static !important;
    }
}

@media (max-width: 1100px) {
    .ttt-transport-page .transport-dashboard-header { flex-wrap: wrap !important; }
    .ttt-transport-page .transport-dashboard-actions { flex-basis: 100% !important; max-width: 100% !important; }
}

/* Unified meeting text/table editor */
.management-document-editor {
    overflow: hidden;
    border: 1px solid #cbd9e6;
    border-radius: 12px;
    background: #fff;
}
.management-document-toolbar,
.management-cell-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    padding: 10px;
    background: #f7f9fc;
    border-bottom: 1px solid #dbe4ed;
}
.management-document-toolbar label,
.management-cell-toolbar label { margin: 0; min-width: 70px; font-size: .83rem; }
.management-document-toolbar input[type="number"] { width: 72px; }
.management-toolbar-separator { align-self: stretch; width: 1px; background: #d4dee8; margin: 0 2px; }
.management-description-surface {
    min-height: 170px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: vertical;
    padding: 14px !important;
}
.management-cell-toolbar { border-top: 1px solid #dbe4ed; }
.management-cell-toolbar input[type="color"] { width: 44px; height: 32px; padding: 2px; border: 1px solid #cbd6e0; border-radius: 6px; }
.meeting-table-canvas { min-height: 54px; padding: 10px; background: #fbfcfe; }
.meeting-content-table { min-width: 520px; margin: 0 !important; table-layout: fixed; }
.meeting-content-table th,
.meeting-content-table td { min-width: 125px; padding: 0 !important; vertical-align: middle; background: #fff; }
.meeting-content-table .meeting-cell-active { outline: 2px solid #1778e7; outline-offset: -2px; }
.meeting-cell-input { display: block; width: 100%; min-height: 52px; padding: 8px; border: 0; outline: 0; resize: vertical; background: transparent; }
@media (max-width: 768px) {
    .management-toolbar-separator { display: none; }
    .management-document-toolbar .btn { flex: 1 1 auto; }
}
