/* @import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");
ssh -p 29337 ssh_FleetWeb485515@webfleet.majjane.agency
.user-management-container {
    min-height: 100vh;
    font-family: Montserrat, sans-serif;
} */

/* Alert */
/* .alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
} */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon {
    width: 48px;
    height: 48px;
    color: #5a9f9d;
    stroke-width: 2;
}

.content-header h1 {
    margin-bottom: 8px;
    color: var(--title-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
}
.content-header__title {
    position: relative;
    padding-left: 26px;
}
.content-header__title::before {
    position: absolute;
    content: "";
    width: 6px;
    height: 46px;
    background-color: var(--light-green);
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
}
.content-header__subtitle {
    margin-bottom: 0;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.btn-add,
.main-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--light-green);
    color: var(--white);
    border: none;
    padding: 7px 7px 7px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "montserrat-semibold";
}

.btn-add:hover,
.main-btn:hover {
    box-shadow: 0 4px 12px rgba(90, 159, 157, 0.3);
}

.btn-add .plus-icon,
.main-btn .plus-icon {
    width: 46px;
    height: 46px;
    border-radius: 46px;
    background: #2b827d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-add .plus-icon img {
    background: rgba(255, 255, 255, 0.1);
    padding: 7px;
    border-radius: 50%;
}

.main-btn {
    font-size: 14px;
}
.main-btn .plus-icon {
    width: 38px;
    height: 38px;
}

/* Table Container */
/* .table-container {
    overflow-y: scroll;
} */

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

.main-table th {
    padding: 20px 8px;
    text-align: left;
    color: #000;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.16px;
}

.th-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.btn-filter {
    background-color: transparent;
    border: none;
}
/* Filter Row */
.filter-row td {
    padding: 0 12px 10px 12px;
}

.search-input-wrapper {
    position: relative;
    min-width: 70px;
}

.search-input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    border-radius: 20px;
    border: 0.5px solid #04115e;
    opacity: 0.4;
    background-color: white;
}

.search-input:focus {
    border-color: #5a9f9d;
    box-shadow: 0 0 0 3px rgba(90, 159, 157, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: 0.6;
}
.search-input-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 30px;
    z-index: 0;
    height: 11px;
    width: 1px;
    background: #04115e;
    transform: translateY(-50%);
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
}

.pill {
    padding: 8px 10px;

    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: var(--Color, #5cb8b3);
    border-radius: 20px;
    border: 0.5px solid var(--Color, #5cb8b3);
    opacity: 0.3;
}

.pill:hover,
.pill.active {
    background: #5cb8b3;
    color: white;
    opacity: 1;
}

/* Table Body */
.main-table tbody tr {
    border-bottom: 1px solid #5cb8b3;
    transition: background 0.2s;
}

.main-table tbody tr:hover {
    background: #f8f9fa;
}

.main-table tbody td {
    padding: 1rem 10px;
    color: #495057;
}

/* Role Badges */
.main-badge {
    display: inline-block;
    padding: 8px 16px;
    color: var(--light-green);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    border-radius: 50px;
    border: 1px solid rgba(92, 184, 179, 0.3);
    background: rgba(92, 184, 179, 0.07);
    min-width: 110px;
    text-align: center;
}
.badge-1 {
    background-color: var(--green);
    color: var(--white);
}

.badge-2 {
    color: var(--light-green);
    border: 1px solid rgba(92, 184, 179, 0.3);
    background: rgba(92, 184, 179, 0.07);
}

.badge-3 {
    border: 1px solid rgba(233, 69, 90, 0.3);
    background: rgba(233, 69, 90, 0.06);
    color: var(--red);
}
.role-chauffeur {
    background: #d1f0f0;
    color: #2c7a7b;
    border: 1px solid #b2e4e4;
}

.role-dispacher {
    background: #e6e6ff;
    color: #5858d6;
    border: 1px solid #d0d0f5;
}

.role-manager {
    background: #5a9f9d;
    color: var(--white);
}

.role-default {
    background: #e9ecef;
    color: #495057;
}

/* Status */
.doc-status {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: underline;
    color: var(--dark-1);
    font-weight: 500;
    font-size: 14px;
}
.icon-status {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-status.valide {
    background-color: var(--light-green);
}
.icon-status.invalide {
    background-color: var(--red);
}
/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e9ecef;
}

.btn-icon.btn-danger:hover {
    background: #fee;
}

.btn-icon.btn-icon__info {
    background: rgba(156, 231, 217, 0.24);
}
.btn-icon.btn-icon__danger {
    background: #f6f6f6;
}
.btn-more {
    position: relative;
}
.btn-more__content {
    width: 125px;
    position: absolute;
    top: 100%;
    right: 0;
    border-radius: 4px;
    border: 1px solid rgba(92, 184, 179, 0.48);
    background: #fff;
    display: flex;
    flex-direction: column;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s;
    display: none;
}
.btn-more__content.active {
    opacity: 1;
    display: block;
}
.btn-more__item {
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding-block: 8px;
    width: 100%;
}
.btn-more__item.br {
    border-bottom: 1px solid rgba(92, 184, 179, 0.48);
}
.btn-more__item.br .btn-more__item-icon {
    background-color: var(--light-green);
}
.btn-more__item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--green);
    border-radius: 50%;
}
/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal__content {
    border-radius: 19.665px;
    border: 0.819px solid rgba(66, 75, 84, 0.1);
    background: #fafafa;
    padding: 40px;
    width: 90%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    padding-bottom: 1rem;
}

.modal__header h2 {
    color: var(--black);
    text-align: center;
    font-size: 24px;
    font-family: "montserrat-semibold";
    line-height: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 40%;
    background-color: var(--light-green);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    padding: 0;
    z-index: 2;
}

.close-btn:hover {
    background-color: #4da9a5;
}

.modal-body {
    overflow: scroll;
    overflow-x: hidden;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-bottom: 1rem;
    border-radius: 15.153px;
    background: var(--white);
    box-shadow: 0 1.515px 4.546px 0 rgba(0, 0, 0, 0.03);
    padding: 22px 0;
    align-items: end;
    padding-right: 16px;
}
.form-grid__col {
    padding-inline: 16px 0;
}
.form-grid__text {
    font-size: 12px;
    margin-bottom: 8px;
    padding-left: 5px;
}
.form__group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form__control {
    padding: 12px 16px;
    font-size: 12px;
    color: #1a1a1a;
    background-color: var(--white);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(92, 184, 179, 0.36);
}

.form__control:focus {
    border-color: var(--light-green);
    background: rgba(92, 184, 179, 0.05);
}

/* File input specific styling */
.form__control[type="file"] {
    cursor: pointer;
}

.form__control[type="file"]::file-selector-button,
.form__control[type="file"]::-webkit-file-upload-button {
    display: none;
}
.form__file-icon {
    width: 12px;
    height: 12px;
    position: absolute;
    top: 21.5px;
    right: 16px;
    transform: translateY(-50%);
}
.form__file-icon.eye{
  width: auto;
  height: auto;
}

/* Label styling */
.form__group label {
    position: absolute;
    left: 16px;
    top: 21.5px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: var(--white);
    padding: 0 4px;
    color: var(--dark-1);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}
.form__group.textarea label {
    top: 0px;
    left: 12px;
    color: var(--green);
    font-size: 10px;
    font-weight: 400;
}

.form__control:focus + label,
.form__control:not(:placeholder-shown) + label,
select.form__control:focus + label,
select.form__control:valid + label {
    top: 0px;
    left: 12px;
    color: var(--green);
    font-size: 10px;
    font-weight: 400;
}

.contract-file {
    color: var(--green);
    font-size: 14px;
    font-weight: 400;
}

/* File input label - always at top when file is selected */
.form__control[type="file"]:focus + label,
.form__control[type="file"]:valid + label {
    top: 0px;
    left: 12px;
    color: var(--green);
    font-size: 10px;
    font-weight: 400;
}

/* .form__control:not(:focus):not(:placeholder-shown) + label {
    color: #666;
} */

select.form__control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.required {
    color: var(--red);
    margin-left: 2px;
}

.help-text {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

.error {
    display: block;
    color: var(--red);
    font-size: 12px;
    margin-top: 6px;
    padding-left: 4px;
}

.info-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 16px;
    background-color: var(--white);
    margin-bottom: 10px;
    border-radius: 9px;
    box-shadow: 0 1.639px 4.916px 0 rgba(0, 0, 0, 0.03);
    position: relative;
}
.info-header::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    content: "";
    height: 1rem;
    width: 2px;
    background-color: var(--light-green);
}
.info-header.driver {
    justify-content: space-between;
}
.info-header.driver::before {
    display: none;
}

.info-header-item {
    text-align: center;
}

.info-header-item label {
    color: var(--black);
    font-size: 12px;
    font-family: "montserrat-medium";
}

.info-header-item span {
    color: var(--green);
    font-size: 12px;
    font-family: "montserrat-medium";
}

.vehicle-main {
    display: grid;
    grid-template-columns: 58% 40%;
    gap: 2%;
    margin-bottom: 9px;
    background-color: var(--white);
    padding: 12px;
    border-radius: 20px;
}

.vehicle-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 20px;
}

.vehicle-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(92, 184, 179, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--black);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.16px;
    font-weight: 600;
}

.info-value {
    color: var(--dark-1);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    text-align: right;
}
.vehicle-info .doc-status {
    font-size: 12px;
}
.icon-status {
    width: 14px;
    height: 14px;
}
.documents-section {
    margin-top: 30px;
}

.search-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    margin-top: 32px;
    padding: 24px 16px;
    background-color: var(--white);
    border-radius: 20px;
}

.search-wrapper {
    position: relative;
}
.search-wrapper .form__control {
    padding-left: 36px;
}
.search-wrapper .form__group label {
    left: 36px;
}

.search-section__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5cb3cc;
    font-size: 18px;
    z-index: 1;
}
.modal__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.modal__content-grid .vehicle-main {
    grid-template-columns: 1fr;
    gap: 20px;
    grid-area: 1 / 1 / 3 / 2;
    margin-bottom: 0;
    align-content: space-between;
}
.modal__content-grid .vehicle-main .vehicle-info {
    height: fit-content;
}
.user-section {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    gap: 27px;
    background-color: var(--white);
    padding: 24px 15px;
    border-radius: 15px;
    height: fit-content;
}
.user__grid{
    display: flex;
    flex-wrap: wrap;
    row-gap: 1rem;
}
.user__avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user__avatar {
    width: 106px;
    height: 106px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--light-green);
}

.user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company__badge {
    background: var(--green);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 8px;
    text-transform: uppercase;
    transform: translateY(-58%);
}

.user__infos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.date-time-grid {
    grid-area: 2 / 2 / 3 / 3;
    background-color: var(--white);
    padding: 24px 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}

.modal__users {
    background-color: var(--white);
    padding: 24px 16px;
    border-radius: 20px;
}
.modal__users-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.modal__item-left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.modal__user-avatar {
    height: 33px;
    width: 33px;
    border-radius: 50%;
    overflow: hidden;
}
.modal__user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal__user-name {
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
}
.modal__item-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.modal__item-right .company__badge {
    transform: translateY(0);
    font-size: 10px;
    padding: 4px 10px;
}
.user__status {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background-color: var(--red);
}
.user__status.active {
    background-color: var(--light-green);
}
/* Modal Footer */
.modal__footer {
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

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

    .modal-body {
        padding: 24px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .main-table {
        font-size: 0.8rem;
    }

    .main-table th,
    .main-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
    }
}
.check-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.check-section {
    display: none;
}
.check-section.active {
    display: block;
}

.check-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

.check-status-badge--pending {
    background: #fff3cd;
    color: #856404;
}

.check-status-badge--done {
    background: #d4edda;
    color: #155724;
}

.check-status-badge img {
    width: 20px;
    height: 20px;
}

.check-date {
    font-size: 14px;
    color: #6c757d;
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.photos-grid .form__group {
    grid-area: 2/4;
}

.photo-upload-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-upload-label {
    width: 150px;
    height: 150px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.photo-upload-label:hover {
    border-color: #4a90e2;
    background: #e7f3ff;
}

.photo-upload-label img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.photo-upload-item p {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-item p {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

/* Checks Container */

.checks-section {
    grid-area: 2 / 2 / 3 / 3;
    background-color: var(--white);
    padding: 6px 1rem;
    border-radius: 15px;
}
.checks-section .check__item:first-child {
    border-bottom: 1px solid #e5e5e5;
}
.check__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
}

.check__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check__icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--light-green-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.check__icon.inchecked {
    background-color: var(--red);
}

.check__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.camera-icon {
    width: 20px;
    height: 20px;
}

.check__right {
    text-align: right;
}

.check__date-label {
    font-size: 12px;
    color: var(--black);
    font-family: "montserrat-medium";
}

.check__date-value {
    font-size: 12px;
    color: #0000007a;
    font-weight: 400;
}
.checks-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.checks-container .info-header {
    padding: 16px 10px;
    justify-content: space-between;
    border-radius: 16px;
}
.info-header .check__item {
    width: 300px;
    justify-content: space-around;
    border-radius: 50px;
    padding: 10px;
    transition: all 0.3s ease;
}
.info-header .check__item:hover {
    background-color: rgba(156, 231, 217, 0.24);
}
.info-header .check__item.active {
    background-color: var(--green);
}
.info-header .check__item.active .check__label,
.info-header .check__item.active .check__date-label,
.info-header .check__item.active .check__date-value {
    color: var(--white);
}
