﻿@import url('https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap');

/* ===== GLOBAL STYLES ===== */
body, p, div, span, h1, h2, h3, h4, h5, h6, a, td, th, input, button {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #f1f5f9 !important;
}

html, body, #map {
    height: 100%;
    margin: 0;
    padding: 0;
}

.layout-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.global-color {
    color: #004b6b;
}

.rtl-grid {
    direction: rtl;
    text-align: right;
}

/* ===== BLazor SPECIFIC ===== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== MAP STYLES ===== */
#map {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.leaflet-control {
    z-index: 9998 !important;
    position: absolute;
    top: 115px;
    left: 10px;
}

.leaflet-tooltip.custom-tooltip {
    background-color: #ffffff;
    border: 1px solid #004b6b;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 8px 12px;
    color: #333;
    font-family: Vazirmatn, sans-serif;
    max-width: 250px;
    line-height: 1.6;
}

.leaflet-tooltip.geofence-tooltip {
    background-color: #004b6b;
    color: #fff;
    font-size: 13px;
    font-family: Vazirmatn, sans-serif;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.bl-customer-icon {
    background: transparent !important;
    border: none !important;
}

    .bl-customer-icon:hover {
        transform: scale(1.2);
        transition: transform 0.2s ease;
    }

/* ===== VEHICLE COMPONENTS ===== */
.vehicle-selector-wrapper {
    position: fixed;
    bottom: 5px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px;
    font-family: Vazirmatn;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.vehicle-info-panel {
    position: absolute;
    top: 65px;
    left: 20px;
    right: 20px;
    z-index: 9999 !important;
    padding: 8px;
    font-family: Vazirmatn;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    min-height: 55px;
}

.geofence-edit-panel {
    position: absolute;
    top: 250px;
    left: 20px;
    z-index: 9999;
    background: #ffffffdd;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px #aaa;
    width: 250px;
    font-size: 0.9rem;
}

#routeSummaryPanel {
    position: absolute;
    top: 125px;
    left: 85px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    max-width: 300px;
    font-family: Vazirmatn, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    #routeSummaryPanel.show {
        opacity: 1;
        transform: translateY(0);
    }

    #routeSummaryPanel.hide {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }

.toggle-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    text-align: center;
    background-color: #004b6b;
    color: white;
    border: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

    .toggle-button:hover {
        background-color: #003347;
    }

.arrow, .group-arrow {
    font-size: 14px;
}

.group-container {
    margin-bottom: 8px;
}

.group-label {
    background-color: #f1f1f1;
    padding: 10px 16px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.group-items {
    background-color: #fafafa;
    border-left: 3px solid #007bff;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    text-align: center;
}

    .dropdown-item:hover {
        background-color: #e9ecef;
    }

.selected-vehicle-info {
    margin-top: 10px;
}

.vehicle-item:hover {
    background-color: #e6f0ff;
    transition: background-color 0.2s ease-in-out;
}

.vehicle-item .action-button {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.vehicle-item:hover .action-button {
    opacity: 1;
    visibility: visible;
}

.vehicle-action-btn {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: background-color 0.2s;
}

    .vehicle-action-btn:hover {
        background-color: #f0f0f0;
    }

/* ===== SIDEBAR & NAVIGATION ===== */
.sidebar {
    position: absolute;
    top: 40px;
    bottom: 0;
    right: 0;
    width: 80px;
    background-color: #1e2a38;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 11000;
    transition: transform 0.3s ease-in-out;
}

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-btn, .sidebar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        text-decoration: none;
        margin-bottom: 16px;
        font-size: 12px;
        background: none;
        border: none;
        width: 100%;
        padding: 7px 0;
        cursor: pointer;
    }

        .sidebar-btn:hover, .sidebar a:hover {
            color: #ff9d00;
        }

    .sidebar i {
        font-size: 20px;
        margin-bottom: 5px;
    }

.sidebar-item-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    background-color: transparent;
}

/* ===== DASHBOARD & CARDS ===== */
.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.status-title {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.status-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 6px;
}

.status-icon {
    font-size: 20px;
}

.divider {
    width: 1px;
    background-color: #ddd;
    margin: 0 16px;
}

.card-title-box {
    display: block;
}

.header-underline {
    width: 100%;
    height: 2px;
    background-color: #3B71CA;
    border-radius: 1px;
}

/* Transport Cards */
.transport-cards {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.transport-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 0.6rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .05s ease;
}

    .transport-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }

    .transport-card:active {
        transform: translateY(1px);
    }

    .transport-card .card-title {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .transport-card .card-sub {
        font-size: 0.75rem;
        color: #6c757d;
    }

.stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    background: transparent;
    outline: none;
}

.transport-card:has(.stretched-link:focus-visible) {
    box-shadow: 0 0 0 3px rgba(13,110,253,.35), 0 4px 16px rgba(0,0,0,.08);
}

/* Group Box */
.group-box {
    border: 1px solid #e6eef3;
    background: #ffffff;
    padding: 0.75rem;
}

/* ===== TABLES ===== */
.table th, .table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f2f9ff;
}

thead tr th {
    vertical-align: middle;
    height: 48px;
    background-color: #fff !important;
    border-right: 1px solid #dee2e6;
    border-left: none;
}

tbody tr td {
    border-left: none !important;
    border-right: none !important;
}

    tbody tr td:first-child {
        border-right: 1px solid #dee2e6 !important;
    }

    tbody tr td:last-child {
        border-left: 1px solid #dee2e6 !important;
    }

tr.table-secondary {
    background-color: #f3f3f3 !important;
    color: #333;
}

.list-item:hover {
    background-color: #f0f8ff !important;
}

.service-detail-row {
    transition: background-color 0.2s ease;
}

    .service-detail-row:hover {
        background-color: #f8f9fa;
    }

.status-overdue {
    background-color: rgba(255,0,0,0.10) !important;
}

.status-warning {
    background-color: rgba(255,255,0,0.12) !important;
}

.status-normal {
    background-color: rgba(0,255,0,0.05) !important;
}

/* ===== FORMS & INPUTS ===== */
.my-RadzenText-font {
    font-family: 'Vazirmatn', sans-serif;
}

.square-checkbox {
    border-radius: 0 !important;
    width: 16px;
    height: 16px;
    appearance: auto !important;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
}

.btn-primary-custom {
    background-color: #004b6b !important;
    color: white !important;
    border: none;
    height: 40px;
}

    .btn-primary-custom:hover {
        background-color: #006080 !important;
        color: white !important;
    }

.btn-no-outline:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom-tab-button {
    color: #004b6b !important;
    font-size: 0.9rem !important;
    background-color: transparent;
    border: none;
}

    .custom-tab-button.active {
        font-weight: bold;
    }

/* ===== MODALS & OVERLAYS ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
}

.loading-text {
    color: #004b6b;
    font-weight: 500;
    margin-top: 1rem;
}

.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-loading-box {
    background-color: white;
    border: 1.5px solid #004b6b;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 75, 107, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-spinner {
    width: 2rem;
    height: 2rem;
    color: #004b6b;
}

.custom-modal-dialog {
    max-width: 400px;
    width: 90%;
    margin: auto;
}

#feedbackModal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#feedbackModal .modal-footer {
    border-top: none;
    justify-content: center;
}

#feedbackModal .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    text-align: right;
}

.rz-dialog-wrapper {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 20000 !important;
}

.modal {
    z-index: 20001 !important;
}

/* ===== DROPDOWNS & MENUS ===== */
.dropdown-menu {
    position: absolute !important;
    top: 100%;
    right: 0;
    z-index: 15000;
    max-height: 320px;
    overflow-y: auto;
    background-color: white;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease forwards;
    padding: 8px 0;
}

.custom-dropdown {
    position: absolute !important;
    top: 100%;
    right: 0;
    z-index: 20000;
    display: block;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 220px;
}

.small-dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 4px 10px;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #004b6b !important;
    color: #fff !important;
}

    .dropdown-menu .dropdown-item.active .material-icons,
    .dropdown-menu .dropdown-item:active .material-icons {
        color: #fff !important;
    }

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.submenu-inline {
    padding-inline-start: 1.5rem;
    padding-inline-end: 1.5rem;
}

    .submenu-inline .submenu-item {
        display: block;
        padding: 0.30rem 0;
        font-size: 0.75rem;
    }

/* ===== ICONS ===== */
.clock-icon {
    color: #004b6b;
    font-size: 1.1rem;
}

.info-icon {
    color: #ff8400;
    font-size: 1.1rem;
}

.edit-icon {
    color: #004b6b !important;
    cursor: pointer;
}

.bi-three-dots-vertical {
    font-size: 1rem;
}

.material-icons, .material-symbols-outlined {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    font-size: 20px;
}

.dropdown-menu .dropdown-item .report-icon {
    vertical-align: middle;
    transform: translateY(1px);
}

/* ===== REPORTS COMPONENT ===== */
.reports-scope {
    min-height: 100vh;
}

.report-content {
    min-height: 400px;
}

.report-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

    .report-header.compact {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #004b6b !important;
        color: #fff !important;
    }

        .report-header.compact .rh-breadcrumb,
        .report-header.compact .rh-title,
        .report-header.compact .rh-vehicle-count {
            color: #fff !important;
        }

        .report-header.compact .rh-icon {
            color: #fff !important;
        }

        .report-header.compact .rh-chip {
            background: #fff !important;
            color: #004b6b !important;
        }

.rh-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rh-icon {
    font-size: 2rem;
    color: #0d6efd;
}

.rh-text {
    display: flex;
    flex-direction: column;
}

.rh-breadcrumb {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.rh-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.rh-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rh-chip {
    background: #0d6efd;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.rh-vehicle-count {
    color: #6c757d;
    font-size: 0.875rem;
}

.report-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1rem;
}

    .report-tabs .nav-link.active {
        color: #004b6b !important;
        background: none;
        border-bottom: 3px solid #004b6b;
    }

    .report-tabs .nav-link:hover {
        color: #004b6b !important;
    }

.report-icon {
    font-size: 1.125rem;
}

.report-title {
    font-size: 0.875rem;
}

.report-item-active {
    background-color: #004b6b !important;
    color: white !important;
}

    .report-item-active .material-icons {
        color: white !important;
    }

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-transition {
    transition: all 0.3s ease-in-out;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: #004b6b !important;
    border-color: #004b6b !important;
}

    .btn-primary:hover {
        background-color: #003347 !important;
        border-color: #003347 !important;
    }

    .btn-primary:focus {
        background-color: #004b6b;
        border-color: #004b6b;
        box-shadow: 0 0 0 0.2rem rgba(0, 75, 107, 0.25);
    }

    .btn-primary:disabled {
        background-color: #6c757d !important;
        border-color: #6c757d !important;
        opacity: 0.65;
    }

/* ===== OVERRIDE BOOTSTRAP PRIMARY COLORS ===== */
.bg-primary {
    background-color: #004b6b !important;
}

.text-primary {
    color: #004b6b !important;
}

.badge.bg-primary {
    background-color: #004b6b !important;
    color: white !important;
}

/* استایل‌های آکاردئون موبایل */
.accordion-header {
    transition: background-color 0.2s ease;
}

    .accordion-header:hover {
        background-color: #f8f9fa !important;
    }

.transition-rotate {
    transition: transform 0.3s ease;
}

.accordion-body {
    background-color: #fafafa;
}

.accordion-item {
    border-bottom: 1px solid #eee !important;
}

    .accordion-item:last-child {
        border-bottom: none !important;
    }

/* استایل آیتم‌های گزارش در آکاردئون */
.report-list-group .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
}

    .report-list-group .list-group-item:first-child {
        border-top: none;
    }

    .report-list-group .list-group-item:last-child {
        border-bottom: none;
    }

/* ===== DAILY REPORT STYLES ===== */
.daily-report-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

/* استایل‌های جدول برای دسکتاپ */
.daily-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

/* استایل‌های کارت برای موبایل */
.daily-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.daily-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.daily-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.daily-card-date {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.daily-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.daily-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.daily-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

/* ===== DISTANCE FUEL REPORT STYLES ===== */
.distance-fuel-report-container {
    direction: rtl;
    padding: 1rem;
}

.filter-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.date-picker-wrapper {
    min-width: 200px;
}

.export-btn {
    min-width: 140px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    padding: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.report-period {
    text-align: center;
}

.table-responsive-vertical {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: white;
}

.responsive-grid {
    min-width: 100%;
}

.row-number {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    color: #495057;
    margin-bottom: 1rem;
}

/* استایل خلاصه آمار ساده */
.simple-summary-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.simple-stat-item {
    padding: 0.5rem;
}

.simple-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #004b6b;
    font-family: 'Vazirmatn', sans-serif;
}

.simple-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.simple-report-period {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* استایل‌های مخصوص گزارش دستگاه‌های معیوب */
.faulty-devices-report-container {
    direction: rtl;
    padding: 1rem;
}

.faulty-time {
    /*font-family: 'Courier New', monospace;*/
    font-size: 0.85rem;
    color: #dc3545;
    font-weight: 500;
}

.faulty-address {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.4;
}

.faulty-coords {
    /*font-family: 'Courier New', monospace;*/
    font-size: 0.8rem;
    color: #6c757d;
}

/* استایل‌های مخصوص گزارش FMS */
.fms-report-container {
    direction: rtl;
    padding: 1rem;
}

/* خلاصه آمار جمع و جور */
.compact-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.compact-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.compact-stat-item {
    text-align: center;
    flex: 1;
}

.compact-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.compact-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.compact-stat-period {
    text-align: left;
    flex: 2;
}

.fms-time {
    /*font-family: 'Courier New', monospace;*/
    font-size: 0.85rem;
    color: #495057;
}

.fms-value {
    /*font-family: 'Courier New', monospace;*/
    font-weight: 600;
    color: #2c3e50;
}

.fms-address {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.4;
}

.fms-coords {
    /*font-family: 'Courier New', monospace;*/
    font-size: 0.8rem;
    color: #6c757d;
}

/* استایل‌های مخصوص گزارش محدوده‌ها */
.geofence-report-container {
    direction: rtl;
    padding: 1rem;
}

.geofence-time {
    /*font-family: 'Courier New', monospace;*/
    font-size: 0.85rem;
    color: #495057;
}

.geofence-duration {
    /*font-family: 'Courier New', monospace;*/
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
}

/* ===== GPS STATUS REPORT STYLES ===== */
.gps-status-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.status-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.status-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.status-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.status-card-badge {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.status-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.status-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.status-map-btn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #004b6b;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .status-map-btn:hover {
        background-color: #003347;
    }

/* ===== LAST POSITIONS REPORT STYLES ===== */
.last-positions-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.last-positions-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.last-positions-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.last-positions-stat-item {
    text-align: center;
    flex: 1;
}

.last-positions-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.last-positions-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.last-positions-stat-period {
    text-align: left;
    flex: 2;
}

.last-positions-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.last-positions-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.last-positions-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.last-positions-card-badge {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.last-positions-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.last-positions-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.last-positions-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.last-positions-active {
    color: #28a745;
    font-weight: 600;
}

.last-positions-inactive {
    color: #dc3545;
    font-weight: 600;
}

.last-positions-map-btn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #004b6b;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .last-positions-map-btn:hover {
        background-color: #003347;
    }

/* ===== DISTANCE FUEL REPORT STYLES ===== */
.distance-fuel-report-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.distance-fuel-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.distance-fuel-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.distance-fuel-stat-item {
    text-align: center;
    flex: 1;
}

.distance-fuel-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.distance-fuel-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.distance-fuel-stat-period {
    text-align: left;
    flex: 2;
}

.distance-fuel-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.distance-fuel-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.distance-fuel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.distance-fuel-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.distance-fuel-card-group {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.distance-fuel-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.distance-fuel-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.distance-fuel-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.distance-fuel-method-ecu {
    color: #28a745;
    font-weight: 600;
}

.distance-fuel-method-estimate {
    color: #fd7e14;
    font-weight: 600;
}

/* ===== FAULTY DEVICES REPORT STYLES ===== */
.faulty-devices-report-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.faulty-devices-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.faulty-devices-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faulty-devices-stat-item {
    text-align: center;
    flex: 1;
}

.faulty-devices-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.faulty-devices-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.faulty-devices-stat-period {
    text-align: left;
    flex: 2;
}

.faulty-devices-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.faulty-devices-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faulty-devices-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.faulty-devices-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.faulty-devices-card-group {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.faulty-devices-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.faulty-devices-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.faulty-devices-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.faulty-devices-reason {
    color: #dc3545;
    font-weight: 600;
}

.faulty-devices-time {
    color: #6c757d;
    /*font-family: 'Courier New', monospace;*/
}

.faulty-devices-address {
    color: #495057;
    line-height: 1.4;
}

.faulty-devices-coords {
    color: #6c757d;
    /*font-family: 'Courier New', monospace;*/
}

/* ===== OVERSPEED REPORT STYLES ===== */
.overspeed-report-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.overspeed-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.overspeed-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.overspeed-stat-item {
    text-align: center;
    flex: 1;
}

.overspeed-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.overspeed-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.overspeed-stat-period {
    text-align: left;
    flex: 2;
}

.overspeed-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.overspeed-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.overspeed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.overspeed-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.overspeed-card-badge {
    background: #6b0000;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.overspeed-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.overspeed-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.overspeed-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.overspeed-time {
    /*font-family: 'Courier New', monospace;*/
    color: #495057;
}

.overspeed-speed-high {
    color: #dc3545;
    font-weight: 600;
}

.overspeed-speed-medium {
    color: #fd7e14;
    font-weight: 600;
}

.overspeed-distance {
    /*font-family: 'Courier New', monospace;*/
    font-weight: 600;
    color: #2c3e50;
}

.overspeed-map-btn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #6b0000;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .overspeed-map-btn:hover {
        background-color: #4d0000;
    }

/* ===== RECORDS REPORT STYLES ===== */
.records-report-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.records-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.records-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.records-stat-item {
    text-align: center;
    flex: 1;
}

.records-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.records-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.records-stat-period {
    text-align: left;
    flex: 2;
}

.records-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.records-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.records-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.records-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.records-card-group {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.records-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.records-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.records-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.records-time {
    /*font-family: 'Courier New', monospace;*/
    color: #495057;
}

.records-speed-high {
    color: #dc3545;
    font-weight: 600;
}

.records-speed-medium {
    color: #fd7e14;
    font-weight: 600;
}

.records-speed-low {
    color: #28a745;
    font-weight: 600;
}

.records-address {
    color: #495057;
    line-height: 1.4;
}

.records-coords {
    color: #6c757d;
    /*font-family: 'Courier New', monospace;*/
}

.records-map-btn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #004b6b;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .records-map-btn:hover {
        background-color: #003347;
    }

/* ===== STOPS REPORT STYLES ===== */
.stops-report-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.stops-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.stops-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.stops-stat-item {
    text-align: center;
    flex: 1;
}

.stops-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.stops-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.stops-stat-period {
    text-align: left;
    flex: 2;
}

.stops-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.stops-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stops-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.stops-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.stops-card-group {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stops-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.stops-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.stops-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.stops-time {
    /*font-family: 'Courier New', monospace;*/
    color: #495057;
}

.stops-duration {
    color: #dc3545;
    font-weight: 600;
}

.stops-summary-card-mobile {
    background: rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.stops-summary-title {
    color: #004b6b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stops-summary-duration {
    color: #dc3545;
    font-size: 1.1rem;
}

.stops-map-btn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #004b6b;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .stops-map-btn:hover {
        background-color: #003347;
    }

/* ===== VEHICLE SERVICES DUE STYLES ===== */
.services-due-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.services-due-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.services-due-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.services-due-stat-item {
    text-align: center;
    flex: 1;
}

.services-due-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.services-due-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.services-due-stat-period {
    text-align: left;
    flex: 2;
}

.services-due-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.services-due-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.services-due-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.services-due-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.services-due-card-plate {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.services-due-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.services-due-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.services-due-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.services-due-remaining-overdue {
    color: #dc3545;
    font-weight: 600;
}

.services-due-remaining-warning {
    color: #fd7e14;
    font-weight: 600;
}

.services-due-remaining-normal {
    color: #28a745;
    font-weight: 600;
}

.services-due-service-name {
    color: #495057;
    font-weight: 500;
}

.services-due-km {
    /*font-family: 'Courier New', monospace;*/
    font-weight: 600;
    color: #2c3e50;
}

/* ===== VEHICLE REPORT STYLES ===== */
.vehicle-report-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

.vehicle-summary-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.vehicle-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vehicle-stat-item {
    text-align: center;
    flex: 1;
}

.vehicle-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.vehicle-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.vehicle-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.vehicle-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.vehicle-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.vehicle-card-badge {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vehicle-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.vehicle-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.vehicle-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.vehicle-expired {
    color: #dc3545;
    font-weight: 600;
}

.vehicle-expiring {
    color: #fd7e14;
    font-weight: 600;
}

.vehicle-valid {
    color: #28a745;
    font-weight: 600;
}

.vehicle-map-btn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #004b6b;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .vehicle-map-btn:hover {
        background-color: #003347;
    }

/* کارت‌های گروه در موبایل */
.mobile-groups-list {
    padding: 0.5rem;
}

.mobile-group-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    transition: all 0.2s;
}

    .mobile-group-card:active {
        background-color: #f8f9fa;
        transform: scale(0.98);
    }

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.group-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.vehicle-count {
    background: #17a2b8;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
}

.group-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

/* کارت‌های خودرو در موبایل */
.mobile-vehicles-list {
    padding: 0.5rem;
}

.mobile-vehicle-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
}

.vehicle-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    flex: 1;
    margin-right: 0.5rem;
}

.vehicle-id {
    color: #0d6efd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: monospace;
}

.vehicle-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.info-label {
    font-size: 0.8rem;
    color: #6c757d;
    width: 80px;
    flex-shrink: 0;
}

.info-value {
    font-size: 0.85rem;
    color: #333;
    flex: 1;
}

.vehicle-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

    .vehicle-card-actions .btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }


/* تنظیمات عمومی برای موبایل */
.vehicles-management-container {
    padding-bottom: 2rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* بهبود نمایش در موبایل */
.material-icons {
    font-size: 18px;
}

/* استایل برای ردیف‌های قابل کلیک */
.clickable-rows .rz-data-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .clickable-rows .rz-data-row:hover {
        background-color: #f8f9fa;
    }

/* استایل‌های جدید برای متن‌ها بدون بک‌گراند رنگی */
.vehicle-count-text {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.count-text {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: none;
}

.group-name-text {
    color: #495057;
    font-weight: 500;
}

.plate-text {
    color: #0d6efd;
    font-weight: 500;
}

/* بهبود استایل کارت‌های موبایل */
.mobile-group-card {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

    .mobile-group-card:hover {
        background-color: #f8f9fa;
    }

    .mobile-group-card:last-child {
        border-bottom: none;
    }

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.group-name {
    font-weight: 600;
    color: #212529;
}

.mobile-vehicle-card {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

    .mobile-vehicle-card:last-child {
        border-bottom: none;
    }

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.vehicle-name {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
}

.vehicle-id {
    color: #6c757d;
    font-size: 0.875rem;
}

.vehicle-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.info-label {
    color: #6c757d;
    min-width: 80px;
}

.info-value {
    color: #495057;
    margin-right: 0.5rem;
}

.vehicle-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* فیلتر فعال */
.active-filter-card {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

/* استایل‌های عمومی */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    color: #6c757d;
    margin-bottom: 1rem;
}

/*.empty-state-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}*/

.btn-primary-custom {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* استایل‌های خاص صفحه رانندگان */
.management-container {
    padding: 1rem;
}

.branch-name-text {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* استایل‌های کارت موبایل */
.mobile-drivers-list {
    padding: 0.5rem;
}

.mobile-driver-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.driver-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.driver-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.driver-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.personal-code {
    background-color: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.branch-badge {
    background-color: #d4edda;
    color: #155724;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.driver-card-body {
    margin-bottom: 1rem;
}

.driver-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.driver-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/*.cars-management-container {
    padding: 1rem;
}*/

.branches-container {
    padding: 1rem;
}

.driver-name-text {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-maintenance {
    background-color: #fff3cd;
    color: #856404;
}

.status-unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

/* استایل‌های کارت موبایل */
.mobile-cars-list {
    padding: 0.5rem;
}

.mobile-car-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.car-plate {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    background-color: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.car-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.car-type {
    background-color: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.car-card-body {
    margin-bottom: 1rem;
}

.car-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.car-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===== RESPONSIVE STYLES ===== */

/* موبایل */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(100%);
        width: 80px;
    }

    .content {
        margin-right: 0 !important;
    }

    .vehicle-info-panel {
        top: 70px;
    }

    .reports-scope {
        padding: 0.5rem !important;
    }

    .mobile-sidebar-toggle {
        width: 100%;
        border-radius: 8px;
        background-color: #004b6b !important;
        border-color: #004b6b !important;
        color: white !important;
    }

    .vehicle-filter-card {
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

        .vehicle-filter-card .card-header {
            border-radius: 8px 8px 0 0;
            background-color: #f8f9fa !important;
        }

    .report-mobile-header {
        border-radius: 8px;
        margin-bottom: 1rem;
        background-color: #004b6b !important;
    }

        .report-mobile-header .card-body {
            padding: 0.75rem;
            color: white !important;
        }

        .report-mobile-header .small,
        .report-mobile-header .fw-bold,
        .report-mobile-header .text-primary {
            color: white !important;
        }

        .report-mobile-header .badge {
            background-color: white !important;
            color: #004b6b !important;
        }

    .report-selector-card {
        border: none;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

        .report-selector-card .card-header {
            border-radius: 8px 8px 0 0;
            background-color: #f8f9fa !important;
        }

    .report-list-group .list-group-item {
        border-left: none;
        border-right: none;
        padding: 0.75rem 1rem;
    }

        .report-list-group .list-group-item:first-child {
            border-top: none;
            border-radius: 0;
        }

        .report-list-group .list-group-item:last-child {
            border-bottom: none;
        }

    .report-list-group .group-header {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
    }

    .rh-title {
        font-size: 1.125rem;
    }

    .btn-outline-primary {
        color: #004b6b !important;
        border-color: #004b6b !important;
    }

        .btn-outline-primary:hover {
            background-color: #004b6b !important;
            color: white !important;
        }

    .badge.bg-primary {
        background-color: #004b6b !important;
    }

    .text-primary {
        color: #004b6b !important;
    }

    .vehicle-services-container {
        padding: 0.5rem !important;
    }

    .service-mobile-card {
        border: none;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
    }

        .service-mobile-card .card-body {
            padding: 1rem;
        }

    .service-info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

        .service-info-row:last-child {
            border-bottom: none;
        }

    .service-info-label {
        font-weight: 600;
        color: #495057;
    }

    .service-info-value {
        color: #212529;
    }

    .btn-primary {
        background-color: #004b6b !important;
        border-color: #004b6b !important;
    }

        .btn-primary:hover {
            background-color: #003347 !important;
            border-color: #003347 !important;
        }

    .card-title.text-primary {
        color: #004b6b !important;
    }

    /* مخفی کردن جدول در موبایل */
    .daily-grid-desktop,
    .status-grid-desktop,
    .last-positions-grid-desktop,
    .distance-fuel-grid-desktop,
    .faulty-devices-grid-desktop,
    .overspeed-grid-desktop,
    .records-grid-desktop,
    .stops-grid-desktop,
    .services-due-grid-desktop,
    .vehicle-grid-desktop {
        display: none !important;
    }

    /* نمایش کارت‌ها در موبایل */
    .daily-cards-mobile,
    .status-cards-mobile,
    .last-positions-cards-mobile,
    .distance-fuel-cards-mobile,
    .faulty-devices-cards-mobile,
    .overspeed-cards-mobile,
    .records-cards-mobile,
    .stops-cards-mobile,
    .services-due-cards-mobile,
    .vehicle-cards-mobile {
        display: block !important;
    }

    /* Transport Cards Mobile */
    .transport-cards {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }



    .driver-card-actions,
    .car-card-actions {
        flex-direction: column;
    }

        .driver-card-actions .btn,
        .car-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .map-section .card-body #map {
        height: 300px;
    }

    /* Responsive adjustments for reports */
    .daily-report-container,
    .gps-status-container,
    .last-positions-container,
    .distance-fuel-report-container,
    .faulty-devices-report-container,
    .overspeed-report-container,
    .records-report-container,
    .stops-report-container,
    .services-due-container,
    .vehicle-report-container,
    .fms-report-container,
    .geofence-report-container {
        padding: 0.5rem;
    }

    .summary-card,
    .status-summary-card,
    .last-positions-summary-card,
    .distance-fuel-summary-card,
    .faulty-devices-summary-card,
    .overspeed-summary-card,
    .records-summary-card,
    .stops-summary-card,
    .services-due-summary-card,
    .vehicle-summary-card,
    .compact-summary-card,
    .simple-summary-card {
        padding: 0.75rem;
    }

    .stats-row,
    .last-positions-stats-row,
    .distance-fuel-stats-row,
    .faulty-devices-stats-row,
    .overspeed-stats-row,
    .records-stats-row,
    .stops-stats-row,
    .services-due-stats-row,
    .vehicle-stats-row,
    .compact-stats-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .stat-item,
    .last-positions-stat-item,
    .distance-fuel-stat-item,
    .faulty-devices-stat-item,
    .overspeed-stat-item,
    .records-stat-item,
    .stops-stat-item,
    .services-due-stat-item,
    .vehicle-stat-item,
    .compact-stat-item,
    .simple-stat-item {
        flex: none;
    }

    .stat-value,
    .last-positions-stat-value,
    .distance-fuel-stat-value,
    .faulty-devices-stat-value,
    .overspeed-stat-value,
    .records-stat-value,
    .stops-stat-value,
    .services-due-stat-value,
    .vehicle-stat-value,
    .compact-stat-value,
    .simple-stat-value {
        font-size: 1.1rem;
    }

    .stat-label,
    .last-positions-stat-label,
    .distance-fuel-stat-label,
    .faulty-devices-stat-label,
    .overspeed-stat-label,
    .records-stat-label,
    .stops-stat-label,
    .services-due-stat-label,
    .vehicle-stat-label,
    .compact-stat-label,
    .simple-stat-label {
        font-size: 0.75rem;
    }

    .stat-period,
    .last-positions-stat-period,
    .distance-fuel-stat-period,
    .faulty-devices-stat-period,
    .overspeed-stat-period,
    .records-stat-period,
    .stops-stat-period,
    .services-due-stat-period,
    .compact-stat-period,
    .simple-report-period {
        text-align: center;
        flex: none;
    }

    .filter-section {
        padding: 1rem;
    }

    .date-picker-wrapper {
        min-width: 100%;
    }

    .export-btn {
        min-width: 120px;
    }

    .table-responsive-vertical {
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .row-number {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-width: 25px;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }
}

/* تبلت */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar-container {
        display: none;
    }

    .sidebar-visible {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1040;
    }

    .reports-scope {
        padding: 1rem !important;
    }

    .vehicle-filter-sidebar {
        height: fit-content;
        position: sticky;
        top: 1rem;
    }

    .report-tabs-container {
        border-bottom: 1px solid #dee2e6;
    }

    .vehicle-services-container {
        padding: 1rem !important;
    }

    /* مخفی کردن کارت‌های موبایل در تبلت و دسکتاپ */
    .daily-cards-mobile,
    .status-cards-mobile,
    .last-positions-cards-mobile,
    .distance-fuel-cards-mobile,
    .faulty-devices-cards-mobile,
    .overspeed-cards-mobile,
    .records-cards-mobile,
    .stops-cards-mobile,
    .services-due-cards-mobile,
    .vehicle-cards-mobile {
        display: none !important;
    }

    /* نمایش گرید دسکتاپ در تبلت و دسکتاپ */
    .daily-grid-desktop,
    .status-grid-desktop,
    .last-positions-grid-desktop,
    .distance-fuel-grid-desktop,
    .faulty-devices-grid-desktop,
    .overspeed-grid-desktop,
    .records-grid-desktop,
    .stops-grid-desktop,
    .services-due-grid-desktop,
    .vehicle-grid-desktop {
        display: block !important;
    }

    /* Transport Cards Tablet */
    .transport-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* تنظیمات تبلت برای گزارش‌ها */
    .daily-grid-desktop,
    .status-grid-desktop,
    .last-positions-grid-desktop,
    .distance-fuel-grid-desktop,
    .faulty-devices-grid-desktop,
    .overspeed-grid-desktop,
    .records-grid-desktop,
    .stops-grid-desktop,
    .services-due-grid-desktop,
    .vehicle-grid-desktop {
        min-width: 100%;
        font-size: 0.85rem;
    }

    .compact-stats-row {
        gap: 0.5rem;
    }

    .compact-stat-value {
        font-size: 1.1rem;
    }

    .compact-stat-label {
        font-size: 0.75rem;
    }
}

/* دسکتاپ */
@media (min-width: 992px) {
    .sidebar-container {
        display: block;
    }

    /* Transport Cards Desktop */
    .transport-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    /* Transport Cards Large Desktop */
    .transport-cards {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
    }
}

/* Small Mobile Styles */
@media (max-width: 575.98px) {
    /* Transport Cards Small Mobile */
    .transport-cards {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Medium Mobile to Tablet Styles */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Transport Cards Medium Mobile */
    .transport-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Radzen Component Fixes */
.rz-tabview-panels,
.rz-tabview-panel {
    overflow: visible !important;
}

.rz-tabs,
.rz-tabs .rz-panel {
    overflow: visible !important;
}

.jalali-datepicker .calendar {
    z-index: 9999 !important;
}

.jalali-datepicker .input-container {
    width: 100%;
}

.jalali-datepicker .date-input {
    width: 100% !important;
}

.jalali-datepicker .calendar {
    width: 300px;
    max-width: 90vw;
}

.rtl-grid .rz-paginator {
    direction: ltr;
    text-align: left;
}

code {
    color: #c02d76;
}

/* بهبود استایل‌های Radzen Data Grid */
.responsive-grid .rz-grid {
    border: none !important;
}

.responsive-grid .rz-grid-table th {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    font-weight: 600;
    color: #495057;
}

.responsive-grid .rz-grid-table td {
    border-color: #e9ecef !important;
    padding: 0.5rem;
    vertical-align: middle;
}

.responsive-grid .rz-paginator {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    padding: 0.75rem !important;
}

/* هایلایت ردیف در هاور */
.responsive-grid .rz-grid-table tbody tr:hover {
    background-color: #f8f9fa !important;
    transition: background-color 0.2s ease;
}


/* استایل‌های جدول خودروهای داخل محدوده */
.vehicle-grid-desktop {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.vehicle-cards-mobile {
    display: none;
}

.vehicle-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.vehicle-card-title {
    font-weight: 600;
    color: #004b6b;
    font-size: 1rem;
}

.vehicle-card-badge {
    background: #004b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vehicle-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.vehicle-card-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
}

.vehicle-card-value {
    color: #212529;
    font-size: 0.85rem;
    flex: 2;
    text-align: left;
}

.vehicle-expired {
    color: #dc3545;
    font-weight: 600;
}

.vehicle-expiring {
    color: #fd7e14;
    font-weight: 600;
}

.vehicle-valid {
    color: #28a745;
    font-weight: 600;
}

.vehicle-map-btn {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #004b6b;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .vehicle-map-btn:hover {
        background-color: #003347;
    }

/* responsive */
@media (max-width: 767.98px) {
    .vehicle-grid-desktop {
        display: none !important;
    }

    .vehicle-cards-mobile {
        display: block !important;
    }
}


/* ===== SIDEBAR & NAVIGATION ===== */
.sidebar {
    position: absolute;
    top: 40px;
    bottom: 0;
    right: 0;
    width: 80px;
    background-color: #1e2a38;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 11000;
    transition: transform 0.3s ease-in-out;
}

.sidebar-item-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* استایل اصلی برای زیرمنوها - باز شدن به سمت چپ */
.submenu-inline {
    position: absolute;
    right: 100%; /* قرارگیری در سمت چپ آیتم سایدبار */
    top: 0;
    background-color: #2a3a4d;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 160px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a4a5d;
    z-index: 11001;
    animation: slideInRight 0.2s ease-out;
}

.submenu-nested {
    position: absolute;
    right: 100%; /* قرارگیری در سمت چپ زیرمنوی والد */
    top: 0;
    background-color: #34465c;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 180px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #44566d;
    z-index: 11002;
    animation: slideInRight 0.2s ease-out;
}

/* آیتم‌های زیرمنو */
.submenu-item {
    display: block;
    padding: 4px 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: right;
    white-space: nowrap;
}

    .submenu-item:hover {
        background-color: #3a4a5d;
        color: #ff9d00;
        text-decoration: none;
    }

/* انیمیشن برای باز شدن زیرمنو */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* بهبود ظاهر سایدبار */
.sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 12px;
    background: none;
    border: none;
    width: 100%;
    padding: 7px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .sidebar-btn:hover {
        color: #ff9d00;
        background-color: #2a3a4d;
    }

/* برای موبایل - زیرمنوها همچنان به سمت چپ باز شوند */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(100%);
        width: 80px;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .submenu-inline,
    .submenu-nested {
        right: 100%;
        min-width: 140px;
    }
}

/* جلوگیری از بسته شدن سریع زیرمنوها هنگام حرکت ماوس */
.sidebar-item-wrapper:hover .submenu-inline,
.submenu-item-wrapper:hover .submenu-nested {
    display: block;
}

/* استایل برای آیتم‌های دارای زیرمنوی تو در تو */
.submenu-item-wrapper {
    position: relative;
    padding: 4px 8px;
}


/* ===== BRANCHES PAGE STYLES ===== */
.branches-container {
    direction: rtl;
    padding: 1rem;
    overflow: visible;
}

/* استایل‌های کارت موبایل برای شعب */
.mobile-branches-list {
    padding: 0.5rem;
}

.mobile-branch-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

    .mobile-branch-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.branch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.branch-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004b6b;
    flex: 1;
    margin-left: 0.5rem;
}

.branch-id {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    /*font-family: 'Courier New', monospace;*/
}

.branch-card-body {
    margin-bottom: 1rem;
}

.branch-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .branch-info-row:last-child {
        border-bottom: none;
    }

.branch-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* استایل‌های عمومی */
.count-text {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
}

.branch-name-text {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* بهبود استایل‌های دسکتاپ */
.branches-container .rz-datagrid {
    border: none !important;
}

.branches-container .rz-grid-table th {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem 0.5rem;
}

.branches-container .rz-grid-table td {
    border-color: #e9ecef !important;
    padding: 0.5rem;
    vertical-align: middle;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 767.98px) {
    .branches-container {
        padding: 0.5rem;
    }

    .branch-card-actions {
        flex-direction: column;
    }

        .branch-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .branch-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .branch-name {
        margin-left: 0;
    }
}

/* استایل‌های مودال */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: #004b6b;
    font-weight: 600;
}

/* بهبود استایل‌های فرم */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

    .form-control:focus {
        border-color: #004b6b;
        box-shadow: 0 0 0 0.2rem rgba(0, 75, 107, 0.25);
    }

.form-check-label {
    color: #495057;
    font-weight: 500;
}

/* استایل‌های کارت موبایل برای فروشندگان */
.mobile-persons-list {
    padding: 0.5rem;
}

.mobile-person-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

    .mobile-person-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.person-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.person-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004b6b;
    flex: 1;
    margin-left: 0.5rem;
}

.person-card-body {
    margin-bottom: 1rem;
}

.person-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .person-info-row:last-child {
        border-bottom: none;
    }

.person-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* استایل‌های عمومی برای فروشندگان */
.person-name-text {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* استایل‌های مودال فروشندگان */
.section-title {
    color: #004b6b;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 767.98px) {
    .persons-management-container {
        padding: 0.5rem;
    }

    .person-card-actions {
        flex-direction: column;
    }

        .person-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .person-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .person-name {
        margin-left: 0;
    }
}

/* بهبود استایل‌های فرم در مودال */
.modal-body .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

    .modal-body .form-control:focus,
    .modal-body .form-select:focus {
        border-color: #004b6b;
        box-shadow: 0 0 0 0.2rem rgba(0, 75, 107, 0.25);
    }

/* استایل برای پیام‌های خطا */
.form-text.text-danger {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* استایل‌های دکمه‌ها در مودال */
.modal-footer .rz-button {
    min-width: 100px;
}


/* استایل‌های کارت موبایل برای سرفصل‌های هزینه */
.mobile-costs-list {
    padding: 0.5rem;
}

.mobile-cost-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

    .mobile-cost-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.cost-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.cost-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004b6b;
    flex: 1;
    margin-left: 0.5rem;
}

.cost-card-body {
    margin-bottom: 1rem;
}

.cost-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .cost-info-row:last-child {
        border-bottom: none;
    }

.cost-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* استایل‌های عمومی برای سرفصل‌های هزینه */
.cost-title-text {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 767.98px) {
    .costs-management-container {
        padding: 0.5rem;
    }

    .cost-card-actions {
        flex-direction: column;
    }

        .cost-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .cost-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cost-title {
        margin-left: 0;
    }
}


.menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 4px;
}

.dropdown-item-template {
    padding: 8px 12px;
    line-height: 1.4;
}

.car-info, .driver-info, .person-info, .cost-info {
    margin-bottom: 4px;
}

.car-details, .driver-details, .person-details, .cost-details {
    font-size: 0.85em;
}

.rz-dropdown {
    width: 100%;
}

.rz-dropdown-panel {
    z-index: 1055 !important;
}

/* برای نمایش بهتر در مودال */
.modal.show .rz-dropdown-panel {
    z-index: 1060 !important;
}

/* کلاس‌های جدید برای کارت‌های موبایل هزینه‌ها */
.mobile-costmasters-list {
    padding: 0.5rem;
}

.mobile-costmaster-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

    .mobile-costmaster-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.costmaster-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.costmaster-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plate-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004b6b;
}

.costmaster-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.costmaster-card-body {
    margin-bottom: 1rem;
}

.costmaster-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .costmaster-info-row:last-child {
        border-bottom: none;
    }

.costmaster-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* کلاس‌های status-badge مخصوص هزینه‌ها */
.status-badge.confirmed {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* کلاس‌های مربوط به مودال‌ها و فرم‌ها */
.date-picker-wrapper {
    position: relative;
    width: 100%;
}

.section-title {
    color: #004b6b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.total-cost {
    color: #004b6b;
    font-weight: bold;
    font-size: 1.1rem;
}

/*.cost-amount {*/
    /*font-family: 'Courier New', monospace;*/
    /*font-weight: 600;
    color: #2c3e50;
}*/

/* کلاس‌های selection-grid برای جداول انتخاب */
.selection-grid .rz-grid-table th {
    background-color: #f8f9fa !important;
    font-weight: 600;
}

.selection-grid .rz-data-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .selection-grid .rz-data-row:hover {
        background-color: #e3f2fd !important;
    }

/* کلاس‌های utility */
.management-container {
    padding: 1rem;
}

.rtl-grid {
    direction: rtl;
    text-align: right;
}

/* بهبود responsive برای کارت‌های موبایل */
@media (max-width: 767.98px) {
    .costmaster-card-actions {
        flex-direction: column;
    }

        .costmaster-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .costmaster-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .costmaster-meta {
        flex-wrap: wrap;
    }
}


/* کلاس‌های جدید برای کارت‌های موبایل بیمه */
.mobile-insurances-list {
    padding: 0.5rem;
}

.mobile-insurance-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

    .mobile-insurance-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.insurance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.insurance-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plate-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004b6b;
}

.insurance-type {
    font-weight: 500;
    color: #495057;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.insurance-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.insurance-card-body {
    margin-bottom: 1rem;
}

.insurance-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .insurance-info-row:last-child {
        border-bottom: none;
    }

.insurance-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* استایل‌های status-badge مخصوص بیمه */
.status-badge.active {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.expired {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* کلاس‌های کمکی */
.section-title {
    color: #004b6b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.date-picker-wrapper {
    position: relative;
    width: 100%;
}

/* بهبود responsive برای کارت‌های موبایل */
@media (max-width: 767.98px) {
    .insurance-card-actions {
        flex-direction: column;
    }

        .insurance-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .insurance-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .insurance-meta {
        flex-wrap: wrap;
    }

    .insurance-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-label {
        font-weight: 600;
        color: #495057;
        min-width: 100px;
    }

    .info-value {
        color: #212529;
        margin-right: 0.5rem;
    }
}

/* استایل‌های برای نمایش بهتر در دسکتاپ */
@media (min-width: 768px) {
    .insurance-card-actions {
        justify-content: flex-end;
    }
}

/* استایل‌های عمومی */
.branch-badge {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* استایل‌های مخصوص Radzen DataGrid */
.selection-grid .rz-grid-table th {
    background-color: #f8f9fa !important;
    font-weight: 600;
}

.selection-grid .rz-data-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .selection-grid .rz-data-row:hover {
        background-color: #e3f2fd !important;
    }




/* ===== MOBILE DIAGNOSIS STYLES ===== */

/* استایل‌های مخصوص معاینه فنی در موبایل */
.mobile-diagnoses-list {
    padding: 0.5rem;
}

.mobile-diagnosis-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

    .mobile-diagnosis-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.diagnosis-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.diagnosis-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plate-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004b6b;
}

.diagnosis-center {
    font-weight: 500;
    color: #495057;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.diagnosis-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.diagnosis-card-body {
    margin-bottom: 1rem;
}

.diagnosis-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .diagnosis-info-row:last-child {
        border-bottom: none;
    }

.diagnosis-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* استایل‌های status-badge مخصوص معاینه فنی */
.status-badge.active {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.expired {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* استایل‌های cost نمایش هزینه */
.cost-amount {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    direction: ltr;
    display: inline-block;
}

/* بهبود responsive برای کارت‌های موبایل معاینه فنی */
@media (max-width: 767.98px) {
    .diagnosis-management-container {
        padding: 0.5rem;
    }

    .diagnosis-card-actions {
        flex-direction: column;
    }

        .diagnosis-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .diagnosis-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .diagnosis-meta {
        flex-wrap: wrap;
    }

    .diagnosis-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-label {
        font-weight: 600;
        color: #495057;
        min-width: 100px;
    }

    .info-value {
        color: #212529;
        margin-right: 0.5rem;
    }

    /* مخفی کردن جدول دسکتاپ در موبایل */
    .diagnosis-grid-desktop {
        display: none !important;
    }

    /* نمایش کارت‌های موبایل */
    .diagnosis-cards-mobile {
        display: block !important;
    }
}

@media (min-width: 768px) {
    /* مخفی کردن کارت‌های موبایل در دسکتاپ */
    .diagnosis-cards-mobile {
        display: none !important;
    }

    /* نمایش جدول دسکتاپ */
    .diagnosis-grid-desktop {
        display: block !important;
    }
}

/* استایل‌های مخصوص وضعیت تایید شده */
.confirmation-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

    .confirmation-badge.confirmed {
        background-color: #d4edda;
        color: #155724;
    }

    .confirmation-badge.pending {
        background-color: #fff3cd;
        color: #856404;
    }

/* استایل‌های مخصوص نمایش تاریخ شمسی */
.jalali-date {
    font-family: 'Vazirmatn', sans-serif;
    direction: ltr;
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

/* استایل‌های مخصوص هشدار */
.alarm-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.alarm-on {
    color: #dc3545;
}

.alarm-off {
    color: #6c757d;
}

/* استایل‌های مخصوص بخش فیلتر در موبایل */
.diagnosis-filter-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.diagnosis-search-input {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    width: 100%;
}

/* استایل‌های مخصوص خلاصه آمار در موبایل */
.diagnosis-summary-mobile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.diagnosis-summary-item {
    text-align: center;
    padding: 0.5rem;
}

.diagnosis-summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.diagnosis-summary-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* استایل‌های مخصوص کارت‌های وضعیت در موبایل */
.diagnosis-status-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.diagnosis-status-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.diagnosis-status-count {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004b6b;
    margin-bottom: 0.25rem;
}

.diagnosis-status-text {
    font-size: 0.75rem;
    color: #6c757d;
}

/* استایل‌های مخصوص دکمه‌های عملیات در موبایل */
.diagnosis-action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.diagnosis-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .diagnosis-action-btn.primary {
        background-color: #004b6b;
        color: white;
    }

    .diagnosis-action-btn.secondary {
        background-color: #6c757d;
        color: white;
    }

    .diagnosis-action-btn.success {
        background-color: #28a745;
        color: white;
    }

    .diagnosis-action-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

/* استایل‌های مخصوص مودال در موبایل */
@media (max-width: 767.98px) {
    .diagnosis-modal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    .diagnosis-modal .modal-content {
        border-radius: 0.5rem;
    }

    .diagnosis-modal .modal-body {
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }

    .diagnosis-form-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .diagnosis-form-group {
        margin-bottom: 0;
    }

    .diagnosis-form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #495057;
    }

    .diagnosis-form-input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
        font-size: 1rem;
    }

    .diagnosis-form-textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
        font-size: 1rem;
        resize: vertical;
        min-height: 100px;
    }
}

/* استایل‌های مخصوص اسکلتون لودینگ در موبایل */
.diagnosis-skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
}

.diagnosis-skeleton-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.diagnosis-skeleton-line {
    height: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.25rem;
}

    .diagnosis-skeleton-line.short {
        width: 60%;
    }

    .diagnosis-skeleton-line.medium {
        width: 80%;
    }

    .diagnosis-skeleton-line.long {
        width: 100%;
    }

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* استایل‌های مخصوص پیام خالی در موبایل */
.diagnosis-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.diagnosis-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.diagnosis-empty-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.diagnosis-empty-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* استایل‌های مخصوص پagination در موبایل */
.diagnosis-pagination-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

.diagnosis-pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
    color: #004b6b;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .diagnosis-pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .diagnosis-pagination-btn.active {
        background: #004b6b;
        color: white;
        border-color: #004b6b;
    }

.diagnosis-pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
}

/* استایل‌های مخصوص سوئیچ‌ها در موبایل */
.diagnosis-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .diagnosis-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.diagnosis-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .diagnosis-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .diagnosis-slider {
    background-color: #004b6b;
}

    input:checked + .diagnosis-slider:before {
        transform: translateX(26px);
    }

/* استایل‌های مخصوص badgeهای وضعیت در موبایل */
.diagnosis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

    .diagnosis-badge.success {
        background-color: #d4edda;
        color: #155724;
    }

    .diagnosis-badge.warning {
        background-color: #fff3cd;
        color: #856404;
    }

    .diagnosis-badge.danger {
        background-color: #f8d7da;
        color: #721c24;
    }

    .diagnosis-badge.info {
        background-color: #d1ecf1;
        color: #0c5460;
    }

/* بهبود کلی نمایش در موبایل برای بخش مدیریت معاینه فنی */
@media (max-width: 767.98px) {
    .diagnosis-management-container {
        padding: 0;
    }

    .diagnosis-header {
        background: white;
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 0;
    }

    .diagnosis-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .diagnosis-stat-card {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        border: 1px solid #e9ecef;
        text-align: center;
    }

    .diagnosis-stat-value {
        font-size: 1.5rem;
        font-weight: bold;
        color: #004b6b;
        display: block;
    }

    .diagnosis-stat-label {
        font-size: 0.75rem;
        color: #6c757d;
        margin-top: 0.25rem;
    }

    /* بهبود نمایش فرم در موبایل */
    .diagnosis-form-container {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }

    .diagnosis-form-group {
        margin-bottom: 1rem;
    }

    .diagnosis-form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #495057;
    }

    .diagnosis-form-control {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
        font-size: 1rem;
    }

    /* بهبود نمایش دکمه‌ها در موبایل */
    .diagnosis-btn-group {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .diagnosis-btn {
        flex: 1;
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 0.375rem;
        font-weight: 500;
        text-align: center;
        transition: all 0.2s ease;
    }

    .diagnosis-btn-primary {
        background: #004b6b;
        color: white;
    }

    .diagnosis-btn-secondary {
        background: #6c757d;
        color: white;
    }

    .diagnosis-btn-success {
        background: #28a745;
        color: white;
    }

    .diagnosis-btn-danger {
        background: #dc3545;
        color: white;
    }
}

/* استایل‌های مخصوص حالت تاریک در موبایل */
@media (prefers-color-scheme: dark) and (max-width: 767.98px) {
    .mobile-diagnosis-card {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .diagnosis-card-header {
        border-bottom-color: #4a5568;
    }

    .plate-number {
        color: #63b3ed;
    }

    .diagnosis-center {
        background-color: #4a5568;
        color: #e2e8f0;
    }

    .diagnosis-info-row {
        border-bottom-color: #4a5568;
    }

    .info-label {
        color: #cbd5e0;
    }

    .info-value {
        color: #e2e8f0;
    }

    .diagnosis-card-actions {
        border-top-color: #4a5568;
    }
}

/* استایل‌های مخصوص صفحه جرائم */
.mobile-penalties-list {
    padding: 0;
}

.mobile-penalty-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 16px;
    background: white;
}

.penalty-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.penalty-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plate-number {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.penalty-type {
    color: #666;
    font-size: 14px;
}

.penalty-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.branch-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

    .status-badge.confirmed {
        background: #e8f5e8;
        color: #2e7d32;
    }

    .status-badge.pending {
        background: #fff3e0;
        color: #f57c00;
    }

.penalty-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.penalty-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}


.mobile-services-list,
.mobile-service-details-list {
    padding: 0;
}

.mobile-service-card,
.mobile-service-detail-card {
    border-bottom: 1px solid #eee;
    padding: 1rem;
    transition: background-color 0.2s;
}

    .mobile-service-card:last-child,
    .mobile-service-detail-card:last-child {
        border-bottom: none;
    }

    .mobile-service-card:hover,
    .mobile-service-detail-card:hover {
        background-color: #f8f9fa;
    }

.service-card-header,
.service-detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.service-name,
.service-detail-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    flex: 1;
    margin-right: 0.5rem;
}

.detail-count-text,
.kilometer-text {
    font-size: 0.85rem;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    white-space: nowrap;
}

.service-card-body,
.service-detail-card-body {
    margin-bottom: 0.75rem;
}

.service-detail-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-label {
    color: #6c757d;
    margin-left: 0.5rem;
    min-width: 60px;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.service-card-actions,
.service-detail-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

    .service-card-actions button,
    .service-detail-card-actions button {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

.ecu-dashboard-container {
    padding: 1rem 1.5rem;
    /*background: #f8f9fa;*/
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-title {
    color: #2c3e50;
    font-weight: 700;
}

.ecu-icon {
    font-size: 1.5em;
    margin-left: 0.5rem;
}

.ecu-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.2s ease;
}

.ecu-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.ecu-card-icon {
    font-size: 1.8em;
    margin-left: 0.5rem;
}

.ecu-card-title {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.ecu-metric {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.metric-unit {
    font-size: 1rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

.ecu-metric-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6c757d;
    margin: 0;
}

.persian-date {
    direction: ltr;
    display: inline-block;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
    .ecu-dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .ecu-card {
        padding: 1rem;
    }

    .chart-card {
        padding: 1rem;
    }
}


.section-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.section-body {
    padding: 20px;
}

.form-check.form-switch {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    margin-left: 10px;
    margin-right: 0;
}

.form-check-label {
    margin-bottom: 0;
}


.color-dot {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #ccc;
    vertical-align: middle;
}

.mobile-geofences-list {
    padding: 0.5rem;
}

.mobile-geofence-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
}

.geofence-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.geofence-name {
    font-weight: 600;
    color: #004b6b;
}

.geofence-id {
    font-size: 0.875rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.geofence-card-body {
    margin-bottom: 1rem;
}

.geofence-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.geofence-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.geofence-count-text {
    background: #e7f3ff;
    color: #004b6b;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}



.point-count-text {
    background: #e7f3ff;
    color: #004b6b;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.mobile-points-list {
    padding: 0.5rem;
}

.mobile-point-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
}

.point-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.point-name {
    font-weight: 600;
    color: #004b6b;
}

.point-id {
    font-size: 0.875rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.point-card-body {
    margin-bottom: 1rem;
}

.point-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.point-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}


/* ===== MOBILE GARAGE INOUT STYLES ===== */
.mobile-garageinouts-list {
    padding: 0.5rem;
}

.mobile-garageinout-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

    .mobile-garageinout-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.garageinout-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.garageinout-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plate-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #004b6b;
}

.applyer {
    font-weight: 500;
    color: #495057;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.garageinout-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.branch-badge {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

    .status-badge.confirmed {
        background-color: #d4edda;
        color: #155724;
    }

    .status-badge.pending {
        background-color: #fff3cd;
        color: #856404;
    }

.garageinout-card-body {
    margin-bottom: 1rem;
}

.garageinout-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .garageinout-info-row:last-child {
        border-bottom: none;
    }

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
}

.info-value {
    color: #212529;
    margin-right: 0.5rem;
}

.garageinout-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* استایل‌های مربوط به مودال‌های انتخاب */
.selection-grid .rz-grid-table th {
    background-color: #f8f9fa !important;
    font-weight: 600;
}

.selection-grid .rz-data-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .selection-grid .rz-data-row:hover {
        background-color: #e3f2fd !important;
    }

/* استایل‌های مربوط به موارد تعمیر */
.repair-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

    .repair-item:last-child {
        border-bottom: none;
    }

/* استایل‌های ریسپانسیو برای مودال‌ها */
@media (max-width: 767.98px) {
    .garageinout-card-actions {
        flex-direction: column;
    }

        .garageinout-card-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .garageinout-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .garageinout-meta {
        flex-wrap: wrap;
    }

    .garageinout-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-label {
        min-width: auto;
    }

    .info-value {
        margin-right: 0;
    }
}

/* استایل‌های مخصوص تاریخ‌های فارسی در موبایل */
.persian-date {
    direction: ltr;
    display: inline-block;
    font-family: 'Vazirmatn', sans-serif;
}

/* استایل‌های مخصوص وضعیت‌های تایید */
.confirmation-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

    .confirmation-badge.confirmed {
        background-color: #d4edda;
        color: #155724;
    }

    .confirmation-badge.pending {
        background-color: #fff3cd;
        color: #856404;
    }

/* استایل‌های مخصوص بخش‌های فرم در مودال */
.section-title {
    color: #004b6b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* استایل‌های مخصوص input group در موبایل */
.input-group.input-group-sm {
    border-radius: 0.375rem;
}

    .input-group.input-group-sm .form-select {
        border-radius: 0.375rem 0 0 0.375rem;
    }

    .input-group.input-group-sm .btn {
        border-radius: 0 0.375rem 0.375rem 0;
    }

/* استایل‌های مخصوص جدول موارد تعمیر در مودال */
.table-responsive .table-sm th,
.table-responsive .table-sm td {
    padding: 8px;
    vertical-align: middle;
}

.table-responsive .table-sm thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}


.mobile-users-list {
    padding: 0;
}

.mobile-user-card {
    border-bottom: 1px solid #eee;
    padding: 1rem;
}

    .mobile-user-card:last-child {
        border-bottom: none;
    }

.user-card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.user-name {
    font-weight: bold;
    color: #004b6b;
}

.user-id {
    color: #666;
    font-size: 0.9rem;
}

.user-card-details {
    margin-bottom: 0.5rem;
}

.user-phone {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.user-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.section-title {
    color: #004b6b;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}


.selected-group {
    background-color: #e3f2fd !important;
    border-right: 3px solid #2196f3 !important;
}

.mobile-user-card.selected-group {
    border: 2px solid #2196f3 !important;
    background-color: #f0f8ff !important;
}

.user-group-grid .rz-datatable-tbody tr {
    cursor: pointer;
}

    .user-group-grid .rz-datatable-tbody tr:hover {
        background-color: #f8f9fa;
    }

.clickable-group {
    cursor: pointer;
}

    .clickable-group:hover {
        background-color: #f8f9fa;
    }

/* تغییر cursor به pointer برای ردیف‌های جدول گروه‌ها */
.clickable-rows .rz-datatable-tbody tr {
    cursor: pointer;
}

/* استایل برای کارت‌های گروه در نسخه موبایل */
.mobile-group-card {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .mobile-group-card:hover {
        background-color: #f8f9fa;
    }


/*14040912*/

/* استایل برای اعلان خودروهای در حال اتمام */
.alert-expiring-vehicles {
    border-right: 4px solid #ffc107;
    margin-bottom: 1.5rem;
}

    .alert-expiring-vehicles .expiring-message {
        font-size: 0.9rem;
        line-height: 1.5;
    }

/* ریسپانسیو برای موبایل */
@media (max-width: 767.98px) {
    .alert-expiring-vehicles {
        margin-bottom: 1rem;
    }

        .alert-expiring-vehicles .btn {
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
        }

        .alert-expiring-vehicles .expiring-message {
            font-size: 0.85rem;
        }
}

/* برای صفحات خیلی کوچک */
@media (max-width: 575.98px) {
    .alert-expiring-vehicles .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .alert-expiring-vehicles .expiring-message {
        font-size: 0.8rem;
    }
}


#blazor-error-ui {
    display: none !important;
}

.blazor-error-boundary {
    display: none !important;
}


/* استایل برای نقطه جدید */
.new-point {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* استایل برای پنل نقطه */
.geofence-edit-panel {
    /* استایل‌های موجود */
}

/* استایل برای دکمه نقطه در کنترل‌ها */
.point-btn:hover svg {
    color: #e74c3c;
}


/* استایل‌های سفارزی برای ریسپانسیو بهتر */
.filter-section .form-control-sm {
    min-height: 38px;
}

.date-picker-wrapper {
    width: 100%;
}

/* برای موبایل */
@media (max-width: 576px) {
    .filter-section .row {
        margin-bottom: 0.5rem;
    }

    .filter-section .col-12 {
        margin-bottom: 0.75rem;
    }

    .filter-section .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .filter-section .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* برای تبلت */
@media (min-width: 577px) and (max-width: 768px) {
    .filter-section .col-sm-6 {
        margin-bottom: 1rem;
    }

    .filter-section .d-flex {
        flex-direction: column !important;
    }

    .filter-section .btn,
    .filter-section .export-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* برای دسکتاپ کوچک */
@media (min-width: 769px) and (max-width: 992px) {
    .filter-section .col-md-6 {
        margin-bottom: 1rem;
    }

    .filter-section .d-flex {
        flex-wrap: wrap;
    }
}
