* {
    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: 100%;
    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(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

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

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

.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-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b1e42;
}

.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-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b1e42;
}

.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;
    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;
}

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);
}

.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;
}

h1 {
    font-weight: 900;
}

.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: 100%;
    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;
}

.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: 100%;
        max-width: 100%;
        min-width: 45%;
    }

    .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-panel {
        background: white;
    }

    .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;
}

.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: auto;
    }

    .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;
        z-index: 2;
    }

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

    .user-profile {
        max-width: 40%;
    }

    .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: 100%;
    }

    .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__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;
    }



    /** ТОПЛИВНЫЕ КАРТЫ: **/
    .cards-table,
    .cards-table__head,
    .cards-table__body,
    .cards-table__row,
    .cards-table__th,
    .cards-table__td {
        display: block;
    }

    .cards-table__head {
        display: none;
    }

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

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

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

    .cards-table__td:nth-child(1)::before {
        content: "НОМЕР КАРТЫ";
        font-weight: 600;
        color: #64748b;
    }

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

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

    .cards-table__td:nth-child(4)::before {
        content: "ЛИМИТ (ТОПЛИВНО)";
        font-weight: 600;
        color: #64748b;
    }

    .cards-table__td:nth-child(5)::before {
        content: "УСЛУГИ";
        font-weight: 600;
        color: #64748b;
    }

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












    /** ТРАНЗАКЦИИ: **/
    .transactions-table,
    .transactions-table__head,
    .transactions-table__body,
    .transactions-table__row,
    .transactions-table__th,
    .transactions-table__td {
        display: block;
    }

    .transactions-table__head {
        display: none;
    }

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

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

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

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

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

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

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

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



    /** ШИНОМОНТАЖ **/
    .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;
    }

}


.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;
}