* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    background: #f0f3f7;
    color: #1a2639;
    line-height: 1.5;
}

.app {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    background: #f0f3f7;
}

.sidebar {
    width: 290px;
    height: 100vh;
    overflow-y: auto;
    background: white;
    padding: 28px 12px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    margin-bottom: 20px;
}

.fleet-modal {
    background: white;
    border-radius: 24px;
    width: 680px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}

.logo-icon {
    background: #1e3a8a;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.logo-text {
    font-weight: 700;
    font-size: 22px;
    color: #0b1e42;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #4a5a6e;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.nav-item i {
    width: 20px;
    font-size: 1rem;
    color: #6d7b8c;
    text-align: center;
}

.nav-item:hover {
    background: #f8fafc;
    color: #1e3a8a;
}

.nav-item.active {
    background: #eef2ff;
    color: #1e3a8a;
    font-weight: 600;
}

.nav-item.active i {
    color: #1e3a8a;
}

/* .submenu { margin-left: 20px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; } */
.sub-item {
    padding: 8px 16px;
    border-radius: 10px;
    color: #556b82;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-item:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

.sub-item.active {
    color: #1e3a8a;
    font-weight: 600;
    background: #f1f5f9;
}

.main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 28px 25px;
    display: none;
}

.main.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}

.contract-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3f536b;
    font-size: 0.9rem;
    margin-top: 5px;
}

.contract-badge span {
    background: white;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #dce3ec;
    font-weight: 600;
    color: #1e3a8a;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    /* padding: 10px 16px; */
    border-radius: 40px;
    width: fit-content;     
    max-width: 40%;
    height: 31px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}

.user-company {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    font-weight: 600;
}

.user-profile .logo-icon {
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stats-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stats-grid4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-card-header h3 {
    margin: 0 0 3px 0;
}


.contact-subtitle {
    display: block;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.manager-icon {
    background: #eef2ff;
    color: #1e3a8a;
}

.contacts-icon {
    background: #eff6ff;
    color: #2563eb;
}

.reports-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 12px;
    border-radius: 14px;
    transition: background .2s ease;
}

.contact-row:hover {
    background: #f8fafc;
}

.contact-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.contact-icon.phone {
    background: #fee2e2;
    color: #dc2626;
}

.company-contact-icon.support {
    background: #dcfce7;
    color: #16a34a;
}

.company-contact-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}


.company-contact-content span {
    font-size: 11px;
    color: #94a3b8;
}


.company-contact-content a,
.company-contact-content strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.manager-icon {
    background: #eef2ff;
    color: #1e3a8a;
}

.contacts-icon {
    background: #eff6ff;
    color: #2563eb;
}


.company-contact-content a:hover {
    color: #1e3a8a;
}

.info-panel {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.info-panel2 {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    max-width: 100%;
}

.info-panel-mobile {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.info-panel h3 {
    font-size: 1.1rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0b1e42;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-card-header h3 {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 700;
    color: #0b1e42;
}

.contact-subtitle {
    display: block;
    color: #94a3b8;
    font-size: 13px;
}       

.manager-name {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;

    margin-bottom: 18px;
}


.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.contact-action {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;

    background: #f8fafc;
    border: 1px solid #edf2f7;

    border-radius: 15px;

    text-decoration: none;
    color: inherit;

    transition: all .2s ease;
}


.contact-action:hover {
    background: #f1f5f9;
    border-color: #dbe4ee;
    transform: translateY(-1px);
}


.action-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
}


.phone-icon {
    background: #fee2e2;
    color: #dc2626;
}


.email-icon {
    background: #e0f2fe;
    color: #0284c7;
}


.action-content {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}


.action-content span {
    font-size: 11px;
    color: #94a3b8;
}


.action-content strong {
    font-size: 14px;
    color: #1e293b;

    overflow: hidden;
    text-overflow: ellipsis;
}

.company-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.company-contact-row {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 11px 12px;

    border-radius: 14px;

    transition: background .2s ease;
}

.manager-card {
    display: flex;
    flex-direction: column;
}

.manager-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.manager-divider {
    display: block;
    width: 100%;
    border-bottom: 1px solid lightgray;
    margin-top: 20px;
    margin-bottom: 12px;
}

.manager-work-time {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.manager-work-time span {
    font-size: 14px;
}

.manager-work-time strong {
    font-size: 14px;
    font-weight: 600;
}

.company-contact-row:hover {
    background: #f8fafc;
}


.company-contact-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


.company-contact-icon.phone {
    background: #fee2e2;
    color: #dc2626;
}


.company-contact-icon.support {
    background: #dcfce7;
    color: #16a34a;
}

.support-status {
    display: flex;
    align-items: center;
    gap: 7px;
}


.online-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.telegram-contact {
    margin-top: 8px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;

    background: #f0f9ff;
    border: 1px solid #e0f2fe;

    border-radius: 15px;

    text-decoration: none;

    transition: all .2s ease;
}


.telegram-contact:hover {
    background: #e0f2fe;
    transform: translateY(-1px);
}


.telegram-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #229ed9;
    color: white;

    font-size: 17px;
}


.telegram-contact > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}


.telegram-contact span {
    font-size: 11px;
    color: #64748b;
}


.telegram-contact strong {
    font-size: 14px;
    color: #0369a1;
}


.telegram-contact > i {
    margin-left: auto;
    color: #7dd3fc;
    font-size: 12px;
}


.company-contact-content {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}


.company-contact-content span {
    font-size: 11px;
    color: #94a3b8;
}

.drivers-info {
    grid-template-columns: repeat(3, 1fr);
}

.transport-info {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {

    .contacts-section {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .contact-card {
        padding: 20px;
    }

    .manager-name {
        font-size: 19px;
    }

    .contact-action {
        padding: 12px;
    }

    .company-contact-row {
        padding: 10px 8px;
    }

}


.company-contact-content a,
.company-contact-content strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;

    text-decoration: none;
}


.company-contact-content a:hover {
    color: #1e3a8a;
}

.action-arrow {
    margin-left: auto;
    color: #cbd5e1;
    font-size: 11px;
}


.contact-action:hover .action-arrow {
    color: #1e3a8a;
}


.contact-footer {
    margin-top: auto;
    display: flex;
    /* align-items: center; */
    gap: 12px;
}


.footer-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
}


.contact-footer div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.contact-footer span {
    font-size: 11px;
    color: #94a3b8;
}


.contact-footer strong {
    font-size: 13px;
    color: #475569;
}



.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.info-label {
    color: #64748b;
}

.info-value {
    font-weight: 600;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary {
    background: #eef2ff;
    color: #1e3a8a;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
}

.btn-outline.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-warning {
    background: #fef08a;
    color: #854d0e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.text-danger {
    color: #ef4444 !important;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.info-panel {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.info-label {
    color: #64748b;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    text-align: left;
    padding: 12px;
    color: #64748b;
    font-size: 0.85rem;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #1a2639;
}

tr:hover td {
    background: #f8fafc;
}

.filter-bar {
    display: flex;
    gap: 10px;
    /* background: white; */
    padding: 12px;
    border-radius: 18px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    outline: none;
    width: 300px;
    font-size: 0.9rem;
}

.contract-strip {
    background: white;
    border-radius: 24px;
    padding: 15px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.news-card {
    background: white;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    transition: 0.2s;
    cursor: pointer;
}

.news-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-primary {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary {
    background: #eef2ff;
    color: #1e3a8a;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    color: #4a5a6e;
}

.btn-outline:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.btn-outline.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.btn-small {
    padding: 4px 12px;
    font-size: 0.8rem;
}

.service-tag {
    background: #f2f6fd;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-tag2 {
    background: #f1f5f9;
    padding: 4px 12px;
    color: #1e3a8a;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.issue-card-modal {
    width: 560px;
}

.issue-header {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 30px;
}

.issue-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 12px 25px rgba(30, 58, 138, .25);
}

.issue-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
}

.issue-header p {
    margin-top: 6px;
    color: #64748b;
    font-size: .92rem;
}

.cards-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 25px 0 30px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.main-header-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.required-note {
    margin-bottom: 20px;
    font-size: .9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.required-note span {
    color: #ef4444;
    font-size: 1rem;
    font-weight: 700;
}

.checkbox-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input {
    display: none;
}

.check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: .2s;
    position: relative;
    background: #fff;
}

.checkbox-wrapper input:checked+.check {
    background: #22c55e;
    border-color: #22c55e;
}

.checkbox-wrapper input:checked+.check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.toast {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 360px;

    background: #fff;

    border-radius: 14px;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .18);

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    transform: translateX(420px);

    transition: .35s;

    z-index: 99999;

    overflow: hidden;

}

.toast.show {

    transform: translateX(0);

}

.toast.success {

    border-left: 5px solid #22c55e;

}

.toast.error {

    border-left: 5px solid #ef4444;

}

.toast-icon {

    font-size: 32px;

    color: #22c55e;

}

.toast.error .toast-icon {

    color: #ef4444;

}

.toast-content {

    flex: 1;

}

.toast strong {

    display: block;

    font-size: 16px;

    margin-bottom: 5px;

}

.toast p,
.toast div {

    color: #64748b;

    font-size: 14px;

}

.toast-progress {

    position: absolute;

    bottom: 0;

    left: 0;

    height: 4px;

    width: 100%;

    background: #22c55e;

    animation: toastProgress 3s linear forwards;

}

.toast.error .toast-progress {
    background: #ef4444;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.search-bar .filter-input {
    width: 300px;
}

.counter-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 18px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 20px;
    cursor: pointer;
    transition: .25s;
}

.counter-btn:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

.counter-center {
    width: 170px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
    text-align: center;
}

.counter-center span {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
}

.counter-center small {
    color: #64748b;
    font-size: .9rem;
}

.issue-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.issue-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 18px;
}

.issue-item i {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 20px;
}

.issue-item strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
}

.issue-item span {
    color: #64748b;
    font-size: .85rem;
}

.issue-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #eef6ff;
    color: #335d99;
    border-left: 4px solid #3b82f6;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 28px;
}

.issue-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cards-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1e3a8a;
}

.cards-input::-webkit-outer-spin-button,
.cards-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cards-input[type=number] {
    -moz-appearance: textfield;
}

.issue-actions button {
    min-width: 170px;
}

.text-muted {
    color: #73869e;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-warning {
    background: #fef08a;
    color: #854d0e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.text-danger {
    color: #ef4444 !important;
    font-weight: 600;
}

.text-success {
    color: #10b981 !important;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    flex-direction: row;
}

th {
    text-align: left;
    padding: 12px;
    color: #64748b;
    font-size: 0.85rem;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drivers-table .table-value {
    display: flex;
    min-width: 0;
    text-align: right;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #1a2639;
    vertical-align: middle;
}

tr:hover td {
    background: #f8fafc;
}

.filter-bar {
    display: flex;
    gap: 10px;
    /* background: white; */
    padding: 12px;
    border-radius: 18px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 24px;
    width: 680px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    display: block !important;
    opacity: 1 !important;
}

.cars_modal {
    background: white;
    border-radius: 24px;
    width: 680px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    opacity: 1 !important;
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.delivery-block {
    margin-top: 25px;
    padding: 22px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.delivery-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.delivery-title i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(30, 58, 138, .2);
}

.delivery-title h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.delivery-title span {
    color: #64748b;
    font-size: .9rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.small-grid {
    margin-top: 18px;
    grid-template-columns: repeat(5, 1fr);
}

.delivery-block textarea {
    resize: vertical;
    min-height: 90px;
}

.delivery-block .form-control {
    background: white;
}

.delivery-block .form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, .08);
}

@media(max-width:768px) {

    .delivery-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

}

.issue-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.issue-delivery {
    align-items: flex-start;
}

.delivery-select {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 10px 14px;
    background: #fff;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.delivery-select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, .08);
}

.delivery-fields {

    margin-top: 22px;

    padding: 24px;

    border-radius: 22px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    display: none;

    animation: fadeIn .25s;

}

.delivery-divider {

    margin: 25px 0;

    border: none;

    border-top: 1px solid #e2e8f0;

}

@media(max-width:900px) {

    .issue-info {
        grid-template-columns: 1fr;
    }

}

.modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #64748b;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    transition: 0.2s;
}

.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.table-label {
    display: none;
}

.table-value {
    display: inline;
}

.status-select {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.status-select2 {
    display: flex;
    gap: 10px;
    width: 500px;
}

.status-option {
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.status-option.green {
    background: #dcfce7;
    color: #166534;
}

.status-option.yellow {
    background: #fef08a;
    color: #854d0e;
}

.status-option.active {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
}

.modal-line_of_credit {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.slider-block {
    margin-top: 20px;
}

.slider-label {
    font-weight: 500;
    color: #1e3a8a;
    margin-bottom: 10px;
    display: block;
}

.export {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

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

.page-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        #1e3a8a,
        #2563eb
    );
    color: #fff;
    font-size: 19px;
    box-shadow:
        0 8px 20px rgba(37, 99, 235, .18);
}

.page-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.4px;
}

.page-title p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.export-btn i {
    color: #2563eb;
}

.export-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .07);
}

.filter-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow:
        0 4px 16px rgba(15, 23, 42, .035);
}

.filter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.filter-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.filter-heading-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
}

.filter-heading strong {
    display: block;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.filter-heading span {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
}

.reset-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    transition: .2s;
}

.reset-link:hover {
    color: #2563eb;
}

.filter-fields {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(170px, .8fr)
        minmax(170px, .8fr)
        110px;

    gap: 12px;
    align-items: end;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 7px;
    padding-left: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.input-wrap {
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.input-wrap i {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    transition: .2s;
}

.input-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px 0 0;
}

.input-wrap input::placeholder {
    color: #a8b3c2;
}

.input-wrap:focus-within {
    background: #fff;
    border-color: #93c5fd;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}

.input-wrap:focus-within i {
    color: #2563eb;
}

.search-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: 12px;
    background: #1e3a8a;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(30, 58, 138, .18);
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.search-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow:
        0 9px 18px rgba(30, 58, 138, .24);
}

.search-btn:active {
    transform: translateY(0);
}

.quick-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.quick-title {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.quick-title i {
    color: #94a3b8;
}

.periods {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
    background: #f1f5f9;
}

.period {
    height: 32px;
    padding: 0 13px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 9px;
    transition: .2s ease;
}

.period:hover {
    color: #1e3a8a;
}

.period.active {
    background: #fff;
    color: #1e3a8a;
    box-shadow:
        0 2px 7px rgba(15, 23, 42, .08);
}

.tx-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.tx-page-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.tx-page-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 18px;
}

.tx-page-heading h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
}

.tx-page-heading p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.tx-export {
    height: 44px;
    padding: 0 17px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.tx-export:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e3a8a;
}

.tx-export i {
    color: #2563eb;
}

.tx-filter-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 22px;
    margin-bottom: 22px;
    box-shadow:
        0 5px 18px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.tx-filter-header {
    min-height: 67px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.tx-filter-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tx-filter-title-icon {
    min-width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f1f5ff;
    color: #1e3a8a;;
    font-size: 14px;
}

.tx-filter-title strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.tx-filter-title span {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
}

.tx-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 9px;
    transition: .2s ease;
}

.tx-reset:hover {
    background: #f8fafc;
    color: #1e3a8a;
}

.tx-reset i {
    font-size: 11px;
}

.tx-filter-content {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        auto;
    gap: 14px;
    padding: 18px;
}

.tx-filter-field {
    min-width: 0;
}

.tx-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15px;
}

.tx-input-wrapper {
    height: 44px;
    display: flex;
    align-items: center;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.tx-input-wrapper:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.tx-input-wrapper:focus-within {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, .09);
}

.tx-input-wrapper > i {
    width: 42px;
    flex-shrink: 0;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    transition: color .2s ease;
}

.tx-input-wrapper:focus-within > i {
    color: #2563eb;
}

.tx-input-wrapper input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}

.tx-input-wrapper input::placeholder {
    color: #a8b3c2;
}

.tx-input-wrapper input[type="date"] {
    padding-right: 10px;
}

.tx-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .55;
}

.tx-input-clear {
    width: 30px;
    height: 30px;
    margin-right: 7px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: .2s ease;
}

.tx-input-clear:hover {
    background: #eef2ff;
    color: #2563eb;
}

.tx-search-button {
    align-self: end;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    background: #1e3a8a;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(30, 58, 138, .16);
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.create_car {
    height: auto;
}

.tx-search-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 9px 18px rgba(30, 58, 138, .2);
}

.tx-search-button:active {
    transform: translateY(0);
}

.tx-search-button i {
    font-size: 12px;
}

.tx-quick-filter {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fcfdff;
}

.tx-quick-label {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.tx-quick-label i {
    color: #94a3b8;
    font-size: 12px;
}

.tx-period-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
}

.tx-period-btn {
    height: 32px;
    padding: 0 13px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.tx-period-btn:hover {
    color: #1e3a8a;
}

.tx-period-btn.active {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow:
        0 2px 7px rgba(15, 23, 42, .08);
}

.tx-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-add-driver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: none;
    border-radius: 10px;
    background: #1e3a8a;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(30, 58, 138, .18);
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.tx-add-driver:hover {
background: #1d4ed8;
transform: translateY(-1px);


box-shadow:
    0 9px 18px rgba(30, 58, 138, .24);


}

.tx-add-driver:active {
transform: translateY(0);
}


#page-transactions .info-panel-mobile {
    border: 1px solid #e8edf3;
    border-radius: 22px;
    /* background: #ffffff; */
    box-shadow:
        0 5px 18px rgba(15, 23, 42, .035);
}

@media (max-width: 1050px) {
    .tx-filter-content {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .tx-input-wrapper {
        width: 100%;
    }

    .tx-search-button {
        grid-column: 1 / -1;

        width: 100%;
    }

    .tx-quick-filter {
        flex-wrap: wrap;
    }

}

@media (max-width: 768px) {
    .tx-page-header {
        margin-bottom: 18px;
    }
    p {
        margin-bottom: 0;   
    }
    td{
        display: flex;
        flex-direction: column;
    }

    .tx-page-heading h1 {
        font-size: 24px;
    }

    .tx-page-heading p {
        font-size: 12px;
    }

    .tx-page-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .tx-filter-card {
        border-radius: 18px;
    }

    .tx-filter-content {
        grid-template-columns: 1fr 1fr;

        padding: 15px;
    }

    .tx-search-field {
        grid-column: 1 / -1;
    }

    .tx-search-button {
        grid-column: 1 / -1;
    }

    .tx-quick-filter {
        padding: 12px 15px;

        gap: 10px;

        align-items: flex-start;
        flex-direction: column;
    }

    .tx-period-buttons {
        width: 100%;
    }

    .tx-period-btn {
        flex: 1;
    }

}

@media (max-width: 540px) {

    .tx-page-header {
        align-items: flex-start;
    }

    .tx-page-heading {
        gap: 10px;
    }

    .tx-page-icon {
        width: 40px;
        height: 40px;

        border-radius: 12px;

        font-size: 15px;
    }

    .tx-page-heading h1 {
        font-size: 21px;
    }

    .tx-page-heading p {
        display: none;
    }

    .tx-export {
        height: 40px;
        padding: 0 5px;
        border-radius: 11px;
    }

    .tx-export span {
        display: none;
    }

    .tx-export i {
        margin: 0;
    }


    .tx-filter-header {
        padding: 13px;
    }

    .tx-filter-title-icon {
        width: 34px;
        height: 34px;
    }

    .tx-filter-content {
        display: flex;
        flex-direction: column;

        padding: 14px;

        gap: 12px;
    }

    .tx-search-field {
        width: 100%;
    }

    .tx-input-wrapper {
        height: 46px;
    }

    .tx-search-button {
        width: 100%;
        height: 46px;
    }


    .tx-quick-filter {
        padding: 12px 14px;
    }

    .tx-period-buttons {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(3, 1fr);

        gap: 3px;
    }

    .tx-period-btn {
        width: 100%;
        padding: 0 5px;

        font-size: 10px;
    }

    #page-transactions .info-panel-mobile {
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .tx-page-header {
        gap: 10px;
    }

    .tx-page-heading h1 {
        font-size: 19px;
    }

    .tx-export {
        width: 40px;
        padding: 0;
    }

    .tx-filter-title span {
        display: none;
    }

    .tx-period-btn {
        font-size: 9px;
    }
}


.filter-card + .info-panel-mobile {
    margin-top: 0;
}

@media (max-width: 1050px) {
    .filter-fields {
        grid-template-columns:
            1fr 1fr;
    }

    .field-search {
        grid-column: 1 / -1;
    }

    .search-btn {
        width: 100%;
    }
}


@media (max-width: 700px) {

    .page-header {
        align-items: flex-start;
    }

    .page-title-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .page-title h1 {
        font-size: 22px;
    }

    .page-title p {
        font-size: 12px;
    }

    .export-btn {
        height: 40px;
        padding: 0 13px;
    }

    .filter-card {
        padding: 15px;
        border-radius: 17px;
    }

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

    .field-search {
        grid-column: auto;
    }

    .quick-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .periods {
        width: 100%;
    }

    .period {
        flex: 1;
        padding: 0 7px;
    }
}


@media (max-width: 480px) {
    .page-header {
        gap: 12px;
    }

    .page-title {
        gap: 10px;
    }

    .page-title-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

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

    .page-title p {
        display: none;
    }

    .export-btn span {
        display: none;
    }

    .export-btn {
        width: 40px;
        padding: 0;
    }

    .filter-top {
        align-items: flex-start;
    }

    .filter-heading-icon {
        width: 34px;
        height: 34px;
    }

    .periods {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .period {
        width: 100%;
    }
}


@media (max-width: 468px) {
    #page-home .contract-badge {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
        width: 100%;
        font-size: 0.78rem;
    }

    #page-home .contract-badge span {
        padding: 2px 6px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    #page-home .contract-badge select {
        flex: 1 1 140px;
        min-width: 0;
        max-width: 100%;
        width: auto;
        font-size: 0.78rem;
    }
}

@media(max-width: 780px) {
    .drivers-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 500px) {
    .drivers-info {
        grid-template-columns: 1fr;
    }

    .transport-info {
        grid-template-columns: 1fr;
    }
}

.export:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .07);
}

.export i {
    color: #1e3a8a;;
}

h1 {
    font-weight: 900;
    font-size: 28px;
}

.slider-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 10px;
}

#content-area {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

#rangeSlider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    outline: none;
    margin-bottom: 15px;
}

#rangeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid #1e3a8a;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

#rangeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#rangeSlider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid #1e3a8a;
    cursor: pointer;
}

.modal-top_up {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: -5px;
    margin-bottom: 10px;
}

.type-select {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.type-btn {
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    transition: 0.2s;
}

.type-btn.active {
    background: #1e3a8a;
    color: white;
}

.days-select {
    display: none;
    gap: 10px;
    margin-top: 10px;
}

.day-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    background: #eef2ff;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

.day-btn.active {
    background: #1e3a8a;
    color: white;
}

.doc-select {
    display: flex;
    gap: 10px;
}

.doc-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    background: #f1f5f9;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

.doc-btn.active {
    background: #1e3a8a;
    color: white;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #1a2639;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-checkbox:hover .checkmark {
    border-color: #3b82f6;
}

.custom-checkbox input:checked+.checkmark {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.custom-checkbox input:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.limits-settings-block {
    transition: all 0.25s ease;
}

.limits-settings-block.disabled {
    opacity: 0.45;
    filter: blur(1px);
    pointer-events: none;
    transform: scale(0.99);
}

.stats-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contract-badge select {
    border: none;
    background: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
    color: #1e3a8a;
    outline: none;
}

.submenu {
    max-height: 0;
    margin-left: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(254, 242, 242, 0.9));
}

.logout-btn {
    width: 90%;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    padding: 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.25);
    transition: all .25s ease;
    height: 50px;
    margin: 20px auto 0;
}



.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #f87171, #dc2626);
}

.logout-btn:active {
    transform: scale(.98);
}

.logout-btn i {
    font-size: 1rem;
}

@media(max-width:1100px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .main {
        padding: 20px;
    }

    .logo-text-mobile {
        font-size: 20px;
        font-weight: 900;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .user-profile {
        /* width: 80%; */
        /* max-width: 80%; */   
        max-width: 10%; height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        min-width: 5%;
    }

    .user-company {
        flex: 1;
        font-size: 15px;
    }

    .user-profile .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    /* 
    .user-profile {
        width: 100%;
        justify-content: flex-start;
    } */

    .info-panel>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .info-panel2 {
        background: none;
        box-shadow: none;
    }

    .info-panel-mobile {
        background: none;
        box-shadow: none;   
    }
}

.submenu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.nav-item.active .arrow {
    transform: rotate(180deg);
}

.mobile-menu-btn {
    display: none;
}

.sidebar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .97);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: .4s;
}

.sidebar-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}


.drivers-table {
    width: 100%;
    border-collapse: collapse;
}

.sidebar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 2;
    margin-left: 60px;
}

.sidebar-mobile-close {
    width: 46px;
    height: 46px;

    border: none;
    border-radius: 14px;

    background: #eef2ff;
    color: #1e3a8a;

    cursor: pointer;
    font-size: 1.2rem;
}

.sidebar-mobile-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width:768px) {

    .sidebar {
        display: none;
    }

    .app {
        display: block;
    }

    .main {
        width: 100%;
        padding: 80px 15px 20px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 0%;
        margin-left: 10px;
        width: 52px;
        height: 52px;
        border: none;
        border-radius: 14px;
        background: #fff;
        color: #1e3a8a;
        font-size: 20px;
        cursor: pointer;
        z-index: 3000;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    }

    .sidebar-mobile {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(14px);
        z-index: 2500;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: .35s ease;
        /* overflow-y: hidden; */
    }

    .sidebar-mobile.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .sidebar-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
        background: white;
        position: sticky;
        top: 0;
        margin-left: 0;
        z-index: 2;
    }

    .logo-area-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-left: 60px;
    }

    .user-profile {
        max-width: 25%;
        height: 30px;
    }

    .sidebar-mobile-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .sidebar-mobile-content .nav-item {
        min-height: 54px;
        border-radius: 16px;
    }

    .sidebar-mobile-content .submenu {
        margin-left: 10px;
    }

    .sidebar-mobile-close {
        width: 46px;
        height: 46px;

        border: none;
        border-radius: 14px;

        background: #eef2ff;
        color: #1e3a8a;

        cursor: pointer;

        font-size: 18px;
        transition: .25s;
    }

    .sidebar-mobile-close:hover {
        background: #1e3a8a;
        color: white;
        transform: rotate(90deg);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .55);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        z-index: 2400;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-profile {
        width: 80%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contract-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-bar {
        flex-direction: row;
        align-items: stretch;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    td:last-child {
        border-bottom: none;
    }

    /** АВТОПАРК / АВТОМОБИЛИ **/
    /* .vehicles-table,
    .vehicles-table__head,
    .vehicles-table__body,
    .vehicles-table__row,
    .vehicles-table__th,
    .vehicles-table__td {
        display: block;
    }

    .vehicles-table__head {
        display: none;
    }

    .vehicles-table__row {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .vehicles-table__td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    } */

    .vehicles-table,
    .vehicles-table thead,
    .vehicles-table tbody,
    .vehicles-table tr,
    .vehicles-table th,
    .vehicles-table td {
        display: block;
    }

    .vehicles-table thead {
        display: none;
    }

    .filter-input {
        width: 100%;
    }

    .mobile-btn {
        width: 49%;
    }

    .mobile-btn3 {
        width: 48.8%;
    }

    .mobile-btn2 {
        width: 100%;
    }

    .vehicles-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .vehicles-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .vehicles-table td:last-child {
        border-bottom: none;
    }

    .vehicles-table .table-label {
        display: block;
        flex-shrink: 0;
        font-size: 1rem;
        font-weight: 800;
        color: #64748b;
    }

    .vehicles-table .table-value {
        display: block;
        min-width: 0;
        text-align: right;
    }

    .vehicles-table .vehicle-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }



    .stats-grid2 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-bottom: 25px;
    }

    .stats-grid4 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-bottom: 25px;
    }

    /* .vehicles-table__td:last-child {
        border-bottom: none;
    }

    .vehicle-actions {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    .vehicles-table__td:nth-child(1)::before {
        content: "МАРКА / МОДЕЛЬ";
        font-weight: 600;
        color: #64748b;
    }

    .vehicles-table__td:nth-child(2)::before {
        content: "ГОС. НОМЕР";
        font-weight: 600;
        color: #64748b;
    }

    .vehicles-table__td:nth-child(3)::before {
        content: "ТИП ТОПЛИВА";
        font-weight: 600;
        color: #64748b;
    }

    .vehicles-table__td:nth-child(4)::before {
        content: "ТЕКУЩИЙ ВОДИТЕЛЬ";
        font-weight: 600;
        color: #64748b;
    }

    .vehicles-table__td:nth-child(5)::before {
        content: "СТАТУС";
        font-weight: 600;
        color: #64748b;
    }

    .vehicles-table__td:nth-child(6)::before {
        content: "ДЕЙСТВИЯ";
        font-weight: 600;
        color: #64748b;
    } */



    /** ВОДИТЕЛИ: **/
    /* .drivers-table,
    .drivers-table__head,
    .drivers-table__body,
    .drivers-table__row,
    .drivers-table__th,
    .drivers-table__td {
        display: block;
    }

    .drivers-table__head {
        display: none;
    }

    .drivers-table__row {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .drivers-table__td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .drivers-table__td:last-child {
        border-bottom: none;
    }

    .drivers-table__td:nth-child(1)::before {
        content: "ФИО";
        font-weight: 600;
        color: #64748b;
    }

    .drivers-table__td:nth-child(2)::before {
        content: "ТЕЛЕФОН";
        font-weight: 600;
        color: #64748b;
    }

    .drivers-table__td:nth-child(3)::before {
        content: "ПРИВЯЗАННОЕ ТС";
        font-weight: 600;
        color: #64748b;
    }

    .drivers-table__td:nth-child(4)::before {
        content: "АКТИВИРОВАННАЯ КАРТА";
        font-weight: 600;
        color: #64748b;
    } */

    .drivers-table,
    .drivers-table thead,
    .drivers-table tbody,
    .drivers-table tr,
    .drivers-table th,
    .drivers-table td {
        display: block;
    }

    .drivers-table thead {
        display: none;
    }

    .drivers-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .drivers-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* gap: 20px; */
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .drivers-table td:last-child {
        border-bottom: none;
    }

    .drivers-table .table-label {
        display: block;
        flex-shrink: 0;
        font-size: 1rem;
        font-weight: 800;
        color: #64748b;
    }

    .drivers-table .table-value {
        display: flex;
        min-width: 0; 
        text-align: right;
    }



    /** ТОПЛИВНЫЕ КАРТЫ: **/
    .cards-table,
    .cards-table thead,
    .cards-table tbody,
    .cards-table tr,
    .cards-table th,
    .cards-table td {
        display: block;
    }

    .cards-table thead {
        display: none;
    }

    .cards-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .cards-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .cards-table td:last-child {
        border-bottom: none;
    }

    .cards-table .table-label {
        display: block;
        flex-shrink: 0;
        font-size: 1rem;
        font-weight: 800;
        color: #64748b;
    }

    .cards-table .table-value {
        display: block;
        min-width: 0;
        text-align: right;
    }

    @media(max-width: 552px) {
        .form-control .form-select-sm {
            min-width: 40px;
        }
    }












    /** ТРАНЗАКЦИИ: **/
    .transactions-table,
    .transactions-table thead,
    .transactions-table tbody,
    .transactions-table tr,
    .transactions-table th,
    .transactions-table td {
        display: block;
    }

    .transactions-table thead {
        display: none;
    }

    .transactions-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .transactions-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .transactions-table td:last-child {
        border-bottom: none;
    }

    .transactions-table .table-label {
        display: block;
        flex-shrink: 0;
        font-size: 1rem;
        font-weight: 800;
        color: #64748b;
    }

    .transactions-table .table-value {
        display: block;
        min-width: 0;
        text-align: right;
    }



    /** ШИНОМОНТАЖ **/
    .tire_services-table,
    .tire_services-table__head,
    .tire_services-table__body,
    .tire_services-table__row,
    .tire_services-table__th,
    .tire_services-table__td {
        display: block;
    }

    .tire_services-table__head {
        display: none;
    }

    .tire_services-table__row {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .tire_services-table__td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .tire_services-table__td:last-child {
        border-bottom: none;
    }

    .tire_services-table__td:nth-child(1)::before {
        content: "ДАТА";
        font-weight: 600;
        color: #64748b;
    }

    .tire_services-table__td:nth-child(2)::before {
        content: "КАРТА";
        font-weight: 600;
        color: #64748b;
    }

    .tire_services-table__td:nth-child(3)::before {
        content: "ВОДИТЕЛь";
        font-weight: 600;
        color: #64748b;
    }

    .tire_services-table__td:nth-child(4)::before {
        content: "УСЛУГА / ТОВАР";
        font-weight: 600;
        color: #64748b;
    }

    .tire_services-table__td:nth-child(5)::before {
        content: "СУММА";
        font-weight: 600;
        color: #64748b;
    }



    /** ОТЧЕТЫ **/
    .reports-table,
    .reports-table__head,
    .reports-table__body,
    .reports-table__row,
    .reports-table__th,
    .reports-table__td {
        display: block;
    }

    .reports-table__head {
        display: none;
    }

    .reports-table__row {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .reports-table__td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .reports-table__td:last-child {
        border-bottom: none;
    }

    .reports-table__td:nth-child(1)::before {
        content: "НАЗВАНИЕ";
        font-weight: 600;
        color: #64748b;
    }

    .reports-table__td:nth-child(2)::before {
        content: "ПЕРИОД";
        font-weight: 600;
        color: #64748b;
    }

    .reports-table__td:nth-child(3)::before {
        content: "СОЗДАН";
        font-weight: 600;
        color: #64748b;
    }

    .reports-table__td:nth-child(4)::before {
        content: "СКАЧАТЬ";
        font-weight: 600;
        color: #64748b;
    }






    /** ПЛАТНЫЕ ДОРОГИ (1-АЯ ТАБЛИЦА) **/
    .toll_roads1-table,
    .toll_roads1-table__head,
    .toll_roads1-table__body,
    .toll_roads1-table__row,
    .toll_roads1-table__th,
    .toll_roads1-table__td {
        display: block;
    }

    .toll_roads1-table__head {
        display: none;
    }

    .toll_roads1-table__row {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .toll_roads1-table__td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .toll_roads1-table__td:last-child {
        border-bottom: none;
    }

    .toll_roads1-table__td:nth-child(1)::before {
        content: "НОМЕР УСТРОЙСТВА";
        font-weight: 600;
        color: #64748b;
    }

    .toll_roads1-table__td:nth-child(2)::before {
        content: "ПРИВЯЗАННОЕ ТС";
        font-weight: 600;
        color: #64748b;
    }

    .toll_roads1-table__td:nth-child(3)::before {
        content: "БАЛАНС";
        font-weight: 600;
        color: #64748b;
    }

    .toll_roads1-table__td:nth-child(4)::before {
        content: "СТАТУС";
        font-weight: 600;
        color: #64748b;
    }



    /** ПЛАТНЫЕ ДОРОГИ (2-АЯ ТАБЛИЦА) **/
    .toll_roads2-table,
    .toll_roads2-table__head,
    .toll_roads2-table__body,
    .toll_roads2-table__row,
    .toll_roads2-table__th,
    .toll_roads2-table__td {
        display: block;
    }

    .toll_roads2-table__head {
        display: none;
    }

    .toll_roads2-table__row {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .toll_roads2-table__td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .toll_roads2-table__td:last-child {
        border-bottom: none;
    }

    .toll_roads2-table__td:nth-child(1)::before {
        content: "ДАТА ПРОЕЗДА";
        font-weight: 600;
        color: #64748b;
    }

    .toll_roads2-table__td:nth-child(2)::before {
        content: "ТРАССА / РУБЕЖ";
        font-weight: 600;
        color: #64748b;
    }

    .toll_roads2-table__td:nth-child(3)::before {
        content: "АВТОМОБИЛЬ";
        font-weight: 600;
        color: #64748b;
    }

    .toll_roads2-table__td:nth-child(4)::before {
        content: "СУММА К ОПЛАТЕ";
        font-weight: 600;
        color: #64748b;
    }

    .toll_roads2-table__td:nth-child(5)::before {
        content: "ДЕЙСТВИЕ";
        font-weight: 600;
        color: #64748b;
    }




    /** ДВОЙНОЙ КОНТРОЛЬ **/
    .double_control-table,
    .double_control-table__head,
    .double_control-table__body,
    .double_control-table__row,
    .double_control-table__th,
    .double_control-table__td {
        display: block;
    }

    .double_control-table__head {
        display: none;
    }

    .double_control-table__row {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .double_control-table__td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .double_control-table__td:last-child {
        border-bottom: none;
    }

    .double_control-table__td:nth-child(1)::before {
        content: "АВТО / ВОДИТЕЛЬ";
        font-weight: 600;
        color: #64748b;
    }

    .double_control-table__td:nth-child(2)::before {
        content: "МЕСТО ЗАПРАВКИ";
        font-weight: 600;
        color: #64748b;
    }

    .double_control-table__td:nth-child(3)::before {
        content: "СПИСАНО ПО КАРТЕ (ЧЕК)";
        font-weight: 600;
        color: #64748b;
    }

    .double_control-table__td:nth-child(4)::before {
        content: "ПОСТУПИЛО В БАК (ДАТЧИК)";
        font-weight: 600;
        color: #64748b;
    }

    .double_control-table__td:nth-child(5)::before {
        content: "РАЗНИЦА (ДЕЛЬТА)";
        font-weight: 600;
        color: #64748b;
    }

    .double_control-table__td:nth-child(6)::before {
        content: "СТАТУС / ТРИГГЕР";
        font-weight: 600;
        color: #64748b;
    }













    .status-select2,
    .doc-select,
    .type-select,
    .days-select {
        flex-direction: column;
        width: 100%;
    }

    .modal {
        width: calc(100% - 20px);
        margin: 10px;
        padding: 20px;
    }

    /* 
    table {
        display: block;
        white-space: nowrap;
    } */

    table {
        display: table;
        width: 100%;
        overflow-x: scroll;
        table-layout: fixed;
    }

}

@media(max-width: 529px) {
    .mobile-btn {
        width: 48.5%;
    } 
}


.simple-pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    justify-content: center;
    flex-wrap: wrap;
}

.simple-pagination li {
    display: inline-block;
}

.simple-pagination a,
.simple-pagination span {
    display: block;
    padding: 6px 14px;
    border-radius: 6px;
    background: #f1f3f5;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    transition: 0.15s;
    border: 1px solid transparent;
}

.simple-pagination a:hover {
    background: #e2e8f0;
}

.simple-pagination .active span {
    background: #1e3a8a;
    color: #fff;
    font-weight: 600;
}

.simple-pagination .disabled span {
    opacity: 0.4;
    cursor: default;
}

.cards-table th.card-bind-cell {
    width: 64px;
    min-width: 64px;
    padding: 8px !important;
    text-align: center;
    vertical-align: middle;
    background: transparent !important;
}

.link-card-modal {
    width: 520px;
    max-width: calc(100vw - 30px);
    height: auto !important;
    min-height: 430px;
    position: relative;
    padding: 30px;
}

.link-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.link-card-header-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 21px;
}

.link-card-header h2 {
    margin: 0 0 5px;
    font-size: 21px;
    color: #1e293b;
}

.link-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.binding-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.binding-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.binding-option:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.binding-option.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.binding-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
}

.binding-option.active .binding-option-icon {
    background: #2563eb;
    color: #ffffff;
}

.binding-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.binding-option-content strong {
    font-size: 14px;
    color: #1e293b;
}

.binding-option-content span {
    font-size: 11px;
    line-height: 1.3;
    color: #64748b;
}

.binding-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 9px;
}

.binding-option.active .binding-check {
    display: flex;
}

.link-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.link-card-actions button {
    flex: 1;
}

@media (max-width: 600px) {
    .binding-options {
        grid-template-columns: 1fr;
    }

    .link-card-modal {
        padding: 22px;
    }
}

.card-bind-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none !important;
    outline: none;
    background: transparent !important;
    cursor: pointer;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.card-bind-btn:hover .card-bind-icon {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.card-bind-btn:active .card-bind-icon {
    background: #1d4ed8;
    box-shadow: none;
}

.card-bind-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 15px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.card-bind-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.card-bind-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.card-bind-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.card-bind-status.success {
    color: #16a34a;
}

.card-bind-arrow {
    font-size: 11px;
    color: #94a3b8;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.card-bind-btn:focus-visible .card-bind-icon {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.cards-table tbody tr:hover .card-bind-cell {
    background: transparent !important;
}

.cards-table .card-row {
    position: relative;
}

.card-bind-btn:hover .card-bind-arrow {
    color: #2563eb;
}

.card-bind-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.card-bind-btn.active .card-bind-icon {
    background: linear-gradient(135deg,
            #1d4ed8,
            #1e40af);
}


.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 4px 0;
}

.limit-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9edf2;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.limit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.limit-card-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid #f1f4f8;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.limit-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.limit-product {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.limit-station {
    font-size: 12px;
    color: #64748b;
    background: #f1f4f8;
    padding: 2px 10px;
    border-radius: 12px;
}

.limit-card-body {
    padding: 12px 16px 16px;
}

.limit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.limit-row:last-child {
    margin-bottom: 0;
}

.limit-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 80px;
}

.limit-item.limit-period {
    flex: 2;
    min-width: 120px;
}

.limit-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #94a3b8;
}

.limit-value {
    font-size: 15px;
    color: #0f172a;
}

.limit-days {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin-left: 6px;
}

.limit-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 16px 12px;
    border-top: 1px solid #f1f4f8;
}

@media (max-width: 640px) {
    .limits-grid {
        grid-template-columns: 1fr;
    }
    .limit-row {
        flex-direction: column;
        gap: 8px;
    }
    .limit-item {
        min-width: unset;
    }
}
