﻿:root {
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --border: #e5e7eb;
    --text-muted: #64748b;
    --blue: #2563eb;
}

* {
    box-sizing: border-box;
    font-family: Inter;
}

a:not([class]) {
    text-decoration: none;
    color: #221EE3;
}

body {
    margin: 0;
    background: var(--bg-light);
    color: #111827;
}

/* ===== Header ===== */
.header {
    height: 64px;
    background: var(--bg-dark);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 24px;
}

    .header nav a {
        color: #cbd5f5;
        text-decoration: none;
        margin-right: 16px;
    }

        .header nav a.active {
            color: white;
            font-weight: 600;
        }

.search {
    display: flex;
    gap: 12px;
}

    .search input {
        padding: 8px 12px;
        border-radius: 8px;
        border: none;
        width: 260px;
    }

    .search button {
        background: var(--blue);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
    }


.header__nav {
    margin: auto;
}

.header__mobile-nav,
.header__mobile-settings {
    display: none;
}

.mobile-nav__button,
.mobile-settings__button {
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    border: none;
    display: block;
}

    .mobile-nav__button svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .mobile-settings__button svg {
        width: 20px;
        height: 20px;
        display: block;
    }

@media only screen and (max-width: 720px) {
    .header__mobile-nav {
        display: block;
    }

    .header__mobile-settings {
        display: block;
    }

    .header__nav {
        display: none;
    }

    .search {
        display: none;
    }

    .header__title {
        display: none;
    }

    .header {
        justify-content: space-between
    }
}


/* ===== Layout ===== */
.layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    width: 64px;
    background: #020617;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
}

@media only screen and (max-width: 720px) {
    .sidebar {
        display: none;
    }
}


.content {
    width: 100%;
}


/* Main */
.main {
    overflow: auto;
    padding: 16px;
    background-color: #fff;
    width: 100%;
}

.main--nopadding {
    padding: 8px 0;
}

.main--grey {
    background-color: #F3F5F9;
}

.btn {
    border-radius: 4px;
    border: 1px solid;
    font-family: Inter;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    padding: 10px 17px;
    white-space: nowrap;
    cursor: pointer;
}

.btn--light {
    color: #221EE3;
    background-color: transparent;
    border-color: #221EE3;
}

.btn--blue {
    background-color: #221EE3;
    color: #fff;
}

.btn--width-full {
    width: 100%
}

.btn--light-red {
    background-color: transparent;
    color: #E31D1C;
    border-color: #E31D1C;
}

.filters__counter {
    font-family: Inter;
    font-weight: 500;
    font-size: 16px;
    margin: 0 56px 0 20px;
    color: #221EE3;
    white-space: nowrap;
}

.main__heading {
    display: flex;
}

.heading__filters {
    display: flex;
    align-items: center;
    flex: 0 0 270px;
    padding: 16px 20px;
}

@media only screen and (max-width: 720px) {
    .heading__filters {
        display: none;
    }
}

.header__calendar {
    display: flex;
    overflow-x: scroll;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.calendar__month {
    font-family: Inter;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 4px 14px;
}

.calendar__date {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    margin: 0 0 5px;
}

.calendar__day {
    width: 40px;
    height: 40px;
    text-align: center;
}

.calendar__days {
    display: flex;
}

.calendar__dow {
    font-family: Inter;
    font-weight: 400;
    font-size: 10px;
}

.calendar__day--holiday .calendar__date,
.calendar__day--holiday .calendar__dow {
    color: #E31D1C;
}

.calendar__day--active .calendar__date {
    background-color: #E31D1C;
    width: 23px;
    height: 23px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.times__row {
    display: flex;
    min-height: 80px;
    margin: 0 0 2px;
    border-bottom: 1px solid #eee;
}

.times {
    overflow-x: scroll;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.times__time {
    font-weight: 400;
    font-size: 12px;
    padding: 0 12px 0 5px;
    flex: 0 0 50px;
}

.action__card {
    border-radius: 4px;
    border-left: 4px solid;
    padding: 4px 8px;
    flex: 0 0 270px;
}

.card__header {
    display: flex;
    column-gap: 8px;
    align-items: center;
    margin: 0 0 4px;
}

.card__numberplate {
    font-family: Inter;
    font-weight: 700;
    font-size: 16px;
}

.card__model {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    color: #68768B;
}

.card__address {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    margin: 0 0 4px;
}

.card__contact {
    display: flex;
    align-items: center;
    column-gap: 8px;
}

.card__phone {
    font-family: Inter;
    font-weight: 500;
    font-size: 16px;
}

.card__name {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
}

.action__card--green {
    background: #4CB7051A;
    border-color: #2B9348;
}

.action__card--red {
    background: #FF383C1A;
    border-color: #FF383C;
}

.action__card--yellow {
    background: #FFCC001C;
    border-color: #FFCC00;
}

.action__card--blue {
    background: #55D5F51A;
    border-color: #55D5F5;
}

.schedule__car {
    height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.schedule__cars {
    flex: 0 0 270px;
}

.schedule {
    display: flex;
}

.schedule__cars {
}

.schedule__model {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    color: #000000;
}

.schedule__numberplate {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    color: #68768B;
    padding: 0 20px 0 0;
}

.schedule__cell {
    width: 40px;
    height: 33px;
    border-right: 1px solid #eee;
    flex: 0 0 40px;
    position: relative;
    overflow-x: visible;
}

.schedule__row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.schedule__table {
    background-color: #F3F5F9;
    overflow-x: scroll;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.schedule__event {
    height: 100%;
    padding: 5px;
    z-index: 100;
    position: absolute;
    left: 0;
    top: 0;
}

.schedule__event-inner {
    display: flex;
    justify-content: space-between;
    padding: 3px 4px;
    border-radius: 4px;
    align-items: center;
}

.schedule__event--green .schedule__event-inner {
    background-color: #A7E0B799;
}

.schedule__event--purple .schedule__event-inner {
    background-color: #DADBFF99;
}

.schedule__event-time {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
}

.schedule__event-days {
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    color: #68768B;
}

.schedule__event-minutes {
    font-family: Inter;
    font-weight: 500;
    font-size: 8px;
    vertical-align: top;
}

.main__list {
    display: flex;
    margin: -16px;
    height: calc(100% + 32px);
    width: calc(100% + 32px);
}

.filters.filters--static {
}

.filters {
    width: 288px;
    flex: 0 0 288px;
    padding: 20px;
}

.filters--static {
    background-color: #F3F5F9;
}


.form__title {
    font-family: Inter;
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 20px;
}

.form__input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #C8D3E1;
    border-radius: 8px;
    margin-bottom: 8px;
}

    .form__input:last-of-type {
        margin: 0;
    }

.form__group {
    margin-bottom: 20px;
    position: relative;
}

.form__subtitle {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.form__label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}


textarea.form__input {
    min-height: 140px;
}

.form__input--labeled {
    position: relative;
}

.form__file {
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #C8D3E1;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

    .form__file.hover {
        border-color: #333;
        background-color: #e9e9e9;
    }

.form__badge {
    position: absolute;
    top: 0px;
    right: 0px;
}

.form__file-input {
    margin-top: 80px;
}


.form__textarea {
    padding: 8px 14px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 14px;
    border-color: #C8D3E1;
    width: 100%;
    min-height: 100px;
    resize: none;
}

.checkbox__label {
    display: block;
    position: relative;
    height: 22px;
}

    .checkbox__label:before {
        content: '';
        display: block;
        position: absolute;
        width: 20px;
        height: 20px;
        left: 0;
        top: 0;
        border: 1px solid #221EE3;
        border-radius: 5px;
        background-color: #fff;
    }

    .checkbox__label:has(input:checked):before {
        content: '';
        display: block;
        position: absolute;
        width: 20px;
        height: 20px;
        left: 0;
        top: 0;
        border: 1px solid #221EE3;
        border-radius: 5px;
        background-color: #221EE3;
    }

    .checkbox__label:has(input:checked):after {
        content: '';
        display: block;
        position: absolute;
        width: 5px;
        height: 10px;
        left: 7px;
        top: 3px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
    }

    .checkbox__label input {
        display: none;
    }

.checkbox__text {
    padding: 0 0 0 30px;
    font-size: 14px;
    font-weight: 600;
}

.table__container {
    padding: 20px;
    flex: 1 1 auto;
}

.table {
    border-collapse: collapse;
    width: 100%
}

    .table th,
    .table td {
        padding: 8px 20px 8px 0;
        border-bottom: 1px solid #E0E0E0;
    }

    .table th {
        white-space: nowrap;
        font-weight: 700;
    }

.table--align-left th,
.table--align-left td {
    text-align: left;
}

.table td.border-none {
    border: none;
}

.table td.pb-0 {
    padding-bottom: 0;
}

.table tr:last-child td {
    border-bottom: none;
}

.link__icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.link {
    font-family: Inter;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    color: #221EE3;
    vertical-align: middle;
}

.text--16 {
    font-size: 16px;
}

.text--14 {
    font-size: 14px;
}

.text--12 {
    font-size: 12px;
}

.text--secondary {
    color: #68768B;
}

.text--normal {
    font-weight: 500;
}

.text--bolder {
    font-weight: 600;
}

.text--danger {
    color: #E31D1C;
}

.text--success {
    color: #2B9348;
}

.text--center {
    text-align: center;
}

.text--right {
    text-align: right;
}

.p-20 {
    padding: 20px;
}


.status-label {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 400;
    font-size: 12px;
    white-space: nowrap;
    display: inline-block;
}

.status-label--red {
    background-color: #E31D1C;
    color: #fff;
}

.status-label--green {
    background-color: #B1E5BB;
    color: #000;
}

.status-label--grey {
    background-color: #BDBDBD40;
    color: #000;
}

.status-label--light-green {
    background-color: #C4EC76;
    color: #000;
}

.status-label--light-yellow {
    background-color: #FFE692;
    color: #000;
}

.status-label--light-red {
    background-color: #FF383C1A;
    color: #000;
}

.status-label--outline-green {
    border: 1px solid #007A4F;
    color: #007A4F;
}

.status-label--dark-green {
    color: #fff;
    background-color: #2B9348;
}

.switch-radio {
    width: fit-content;
    display: flex;
    padding: 4px;
    border-radius: 4px;
    background-color: #F3F5F9;
    column-gap: 4px;
}

.switch-radio__label {
    font-weight: 600;
    font-size: 14px;
}

.switch-radio__input {
    display: none;
}

.switch-radio__label {
    width: 174px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
}

    .switch-radio__label:has(input:checked) {
        background-color: #fff;
    }

.row {
    display: flex;
    column-gap: 20px;
}

.row--gap-8 {
    column-gap: 8px
}

.row--gap-40 {
    column-gap: 40px
}

.row--gap-60 {
    column-gap: 60px
}

.row--align-center {
    align-items: center;
}

.row--justify-right {
    justify-content: end;
}

.row--justify-between {
    justify-content: space-between;
}

.col-6 {
    flex: 0 1 50%;
}

.modal-select__input {
    display: none;
}

.modal-select__preview {
    border: 1px solid #C8D3E1;
    padding: 11px 14px;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: space-between;
}

.modal-select__search-icon {
    width: 15px;
    height: 15px;
    margin-right: 15px;
}

.modal-select__add {
    font-weight: 600;
    font-size: 14px;
    color: #221EE3;
    cursor: pointer;
}

.modal-select__text {
    flex: 1 0 auto;
    font-weight: 600;
    font-size: 14px;
}

.modal-address {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #F3F5F9;
    row-gap: 8px;
}

    .modal-address .link {
        font-weight: 600;
        font-size: 14px;
    }

.modal-address__type {
    font-weight: 400;
    font-size: 12px;
}

.panel {
    gap: 40px;
    border-radius: 16px;
    padding: 20px;
    margin: 0 0 20px;
}

@media only screen and (max-width: 720px) {
    .panel {
        padding: 8px 20px;
        border-radius: 4px;
    }
}

.panel--dark {
    background-color: #F3F5F9;
}


.panel--white {
    background-color: #fff;
}

.panel__title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px;
    position: relative;
}

.panel__secondary-title {
    font-weight: 400;
    font-size: 12px;
    color: #68768B;
    margin-bottom: 8px;
}

.panel__main-text {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.panel__info-text {
    font-weight: 500;
    font-size: 14px;
    color: #221EE3;
}

.input__right-label {
    font-family: Inter;
    font-weight: 600;
    font-size: 14px;
    color: #68768B;
    position: absolute;
    top: calc(50% - 9px);
    right: 14px;
}

.total__title {
    font-weight: 700;
    font-size: 16px;
}

.total__sum {
    font-weight: 700;
    font-size: 16px;
}


.overview__top-link {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    padding: 0 0 0 15px;
    position: relative;
}

    .overview__top-link:before {
        content: '';
        position: absolute;
        border-left: 2px solid #221EE3;
        border-top: 2px solid #221EE3;
        height: 8px;
        width: 8px;
        left: 2px;
        top: 5px;
        transform: rotate(-45deg);
    }

.overview__top-info {
    display: flex;
    justify-content: space-between;
    margin: 0 0 40px;
}

    .overview__top-info .status-label {
        margin-left: 8px;
    }

        .overview__top-info .status-label:first-of-type {
            margin-left: auto;
        }

.overview {
    display: flex;
    column-gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
}

.overview__data {
    flex: 1 0 65%;
}

.overview__table {
    width: 100%;
}

    .overview__table td {
        padding: 0 20px 12px 0;
    }

@media only screen and (max-width: 720px) {
    .overview__table td {
        padding: 0 20px 8px 0;
    }
}

.overview__table td.pb-0 {
    padding-bottom: 0;
}

.overview__lebel {
    border-radius: 8px;
    padding: 8px;
    background-color: #FFFFFF;
    text-align: center;
    box-shadow: 0px -1px 0px 0px #E0E0E0 inset;
}

.overview__labels {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.overview__button-container {
    text-align: center;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.status-label--blue {
    background-color: #76ABEC;
    color: #000;
}

.mb-4 {
    margin-bottom: 4px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mr-20 {
    margin-right: 20px;
}

.image-preview__img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 4px;
}

.image-preview {
    width: 60px;
    height: 60px;
    position: relative;
    margin-right: 4px;
    display: inline-block;
}


.file-input__input input {
    display: none;
}

.file-input__input {
    display: none;
}

.file-input__tooltip {
    text-align: center;
    color: #221EE3;
}

.file-input__icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 12px;
}

.file-input__text {
    vertical-align: middle;
}

.file-input__preview {
    font-size: 14px;
    text-align: center;
    margin-top: auto;
}


.overview--attention {
    background-color: #FF383C1A;
}

.date-info {
    border-radius: 4px;
    background-color: #F3F5F9;
    padding: 8px 20px;
}

.date-info__heading {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #000000;
}

.date-info__address {
    font-weight: 500;
    font-size: 14px;
    color: #221EE3;
}

.backnav {
    padding: 10px;
    display: flex;
    align-items: center;
    border-left: 3px solid;
}

.backnav--green {
    background-color: #4CB7051A;
    border-color: #2B9348;
}

.backnav .overview__top-link {
    margin-left: 20px
}

    .backnav .overview__top-link:before {
        border-left: 2px solid #000;
        border-top: 2px solid #000;
        top: -5px;
    }

.backnav__numberplate {
    margin-left: 20px;
    font-weight: 700;
    font-size: 16px;
}

.backnav__car {
    margin-left: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #68768B;
}

.file__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border-radius: 8px;
    cursor: pointer;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    column-gap: 12px;
    border-radius: 8px;
    border: 1px solid #C8D3E1;
}

.file__icon-container {
    width: 20px;
    height: 20px;
    fill: #221EE3;
    color: #221EE3;
}

.file__icon {
    width: 100%;
    height: 100%
}

.file__label input[type=file] {
    display: none
}

.file__text {
    font-weight: 700;
    font-size: 14px;
    color: #221EE3;
    text-align: center
}

.file__subtext {
    font-weight: 400;
    font-size: 12px;
    color: #fff;
    text-align: center;
    margin-top: 5px
}

.form__checklist {
    margin: 0 0 12px 0;
    padding-inline-start: 15px;
    list-style-type: disc;
}

.form__checklist-item {
    font-weight: 500;
    font-size: 10px;
}

.input__description {
    font-weight: 500;
    font-size: 10px;
}

.file__image-preview__img {
    height: 128px;
    width: auto;
    display: block;
}

.image-preview__remove {
    position: absolute;
    top: 7px;
    right: 10px;
    z-index: 2;
    border: 0;
    width: 30px;
    height: 30px;
    background-color: transparent;
    cursor: pointer
}

    .image-preview__remove:before {
        content: '';
        position: absolute;
        top: 0;
        right: 13px;
        border-left: 3px solid #fff;
        height: 30px;
        transform: rotate(45deg)
    }

    .image-preview__remove:after {
        content: '';
        position: absolute;
        top: 0;
        right: 13px;
        border-left: 3px solid #fff;
        height: 30px;
        transform: rotate(-45deg)
    }

.multiimage-preview {
    position: relative;
}

.td-remove__icon {
    width: 24px;
    height: 24px;
    fill: #E31D1C;
    color: #E31D1C;
    display: block;
}

.td-remove {
    display: block;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
