@font-face {
    font-family: 'nunito';
    src: url('./../webfonts/Nunito-Regular.woff2') format('woff2'),
        url('./../webfonts/Nunito-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nunito';
    src: url('./../webfonts/Nunito-Medium.woff2') format('woff2'),
        url('./../webfonts/Nunito-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nunito';
    src: url('./../webfonts/Nunito-SemiBold.woff2') format('woff2'),
        url('./../webfonts/Nunito-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nunito';
    src: url('./../webfonts/Nunito-Bold.woff2') format('woff2'),
        url('./../webfonts/Nunito-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nunito';
    src: url('./../webfonts/Nunito-ExtraBold.woff2') format('woff2'),
        url('./../webfonts/Nunito-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'nunito';
}

.main-content {
    min-width: 0;
}

::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 20px;
}

body.login {
    min-height: 100dvh;
    background: #E8EDF2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-section {
    width: 100%;
    max-width: 550px;
}

.login-logo {
    margin-bottom: 50px;
}

.login-logo img {
    width: 311px;
    height: 90px;
}

.login-box {
    width: 100%;
    background-color: #2C3947;
    border-radius: 12px;
    padding: 35px;
}

.login-title {
    font-size: 58px;
    line-height: 64px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 25px;
}

@media (max-width: 576px) {
    .login-logo img {
        width: 250px;
        height: 70px;
    }

    .login-box {
        padding: 30px 25px;
    }

    .login-title {
        font-size: 38px;
        line-height: 44px;
    }
}

.login-box .form-label {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}

.login-box .form-control {
    background-color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #2C3947;
    padding: 10px;
    box-shadow: none;
}

.login-box .form-control:focus {
    border-color: #D99B7F;
    box-shadow: none;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-wrapper .password-toggle img {
    width: 20px;
    height: 20px;
}

.login-box .form-check {
    min-height: auto;
    margin-bottom: 0;
}

.login-box .form-check-input {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #666666;
    box-shadow: none;
}

.login-box .form-check-input:checked {
    background-color: #D99B7F;
    border-color: #D99B7F;
}

.login-box .form-check-label {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
}

.forgot-password {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
}

.login-section .login-box .login-btn {
    background: #D99B7F;
    border: none;
    border-radius: 4px;
    color: #2C3947;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    padding: 12px;
}

.login-section .otp-wrapper {
    display: flex;
    gap: 8px;
}

.login-section .otp-wrapper .otp-input {
    width: 100%;
    height: 46px;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    outline: none;
}

.login-section .otp-wrapper .otp-input:focus {
    border-color: #D99B7F;
    box-shadow: none;
}

/* ================================
   Sidebar
================================ */

.sidebar-column {
    position: relative;
    z-index: 1000;
}

.admin-sidebar {
    width: 300px;
    height: 100dvh;
    background-color: #2C3947;
    padding: 50px 25px;
    overflow-y: auto;
}

.sidebar-logo {
    position: relative;
    margin-bottom: 60px;
}

.sidebar-logo img {
    width: 176px;
    height: 51px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    width: 100%;
}

.sidebar-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background-color: #374350;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-item.active .sidebar-link {
    background-color: #3D434D;
    color: #D99B7F;
}

.sidebar-item.active .sidebar-icon {
    filter: brightness(0) saturate(100%) invert(68%) sepia(28%) saturate(619%) hue-rotate(329deg) brightness(94%) contrast(84%);
}

.sidebar-item:not(.logout-item) .sidebar-link:hover {
    background-color: #3D434D;
    color: #D99B7F;
}

.sidebar-item:not(.logout-item) .sidebar-link:hover .sidebar-icon {
    filter: brightness(0) saturate(100%) invert(68%) sepia(28%) saturate(619%) hue-rotate(329deg) brightness(94%) contrast(84%);
}

.sidebar-link span {
    display: block;
}

.sidebar-icon {
    width: 16px;
    height: 16px;
    transition: filter 0.3s ease;
}

.logout-item .sidebar-link {
    background-color: #FF2D55;
    color: #ffffff;
}

.logout-item .sidebar-link:hover {
    background-color: #FF2D55;
    color: #ffffff;
}

/* ================================
   Top Header
================================ */

.top-header {
    width: 100%;
    background-color: #2C3947;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px;
}

.admin-info {
    text-align: right;
    color: #FFFFFF;
}

.admin-info h6 {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    margin-bottom: 0px;
}

.admin-info p {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    background-color: transparent;
    border: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: #FFFFFF;
    transition: 0.3s;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: -20px;
    right: -5px;
    padding: 0;
    background-color: transparent;
    border: 0;
    color: #FFFFFF;
    font-size: 32px;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 767px) {
    .sidebar-column {
        position: fixed;
        top: 0;
        left: -307px;
        width: 307px;
        max-width: 85%;
        height: 100dvh;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .sidebar-column.sidebar-open {
        left: 0;
    }

    .admin-sidebar {
        width: 100%;
        height: 100dvh;
        padding: 30px 20px;
    }

    .sidebar-logo {
        margin-bottom: 40px;
    }

    .sidebar-close {
        display: block;
    }

    .top-header {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.sidebar-active {
        overflow: hidden;
    }

    .main-content {
        width: 100%;
    }
}

/* ================================
   content
================================ */

.content {
    height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 0;
    background: #E8EDF2;
    padding: 25px 15px;
}

.page-heading {
    margin-bottom: 16px;
}

.page-heading h5 {
    margin: 0;
    color: #2C3947;
    font-size: 23px;
    line-height: 29px;
    font-weight: 600;
}

.content .page-heading .add-company-btn {
    padding: 10px 16px;
    background-color: #D99B7F;
    border: none;
    border-radius: 4px;
    color: #2C3947;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.company-table-wrapper {
    width: 100%;
}

.company-table {
    width: 100%;
    background-color: #FFFFFF;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.company-table thead th {
    padding: 14px;
    background-color: #2C3947;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    border: 0;
    white-space: nowrap;
}

.company-table thead th:first-child {
    border-top-left-radius: 4px;
}

.company-table thead th:last-child {
    border-top-right-radius: 4px;
}

.company-table tbody td {
    padding: 14px;
    background-color: #FFFFFF;
    color: #2C3947;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    border-bottom: 1px solid #DFE3E6;
}

.companys-logo {
    width: 50px;
    height: 50px;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    border: 0;
}

.view-btn {
    background-color: #547A95;
}

.edit-btn {
    background-color: #D99B7F;
    color: #2C3947;
}

.delete-btn {
    background-color: #547A95;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.table-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 38px;
    height: 38px;
    color: #2C3947;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-decoration: none;
    flex-shrink: 0;
}

.pagination-number.active {
    background-color: #D99B7F;
    color: #2C3947;
}

.pagination-arrow.active {
    background-color: #2C3947;
    color: #FFFFFF;
}

.pagination-arrow img {
    width: 20px;
    height: 20px;
}

.add-user-modal {
    background: #2C3947;
    border: none;
    border-radius: 12px;
    padding: 35px;
}

.add-user-modal .modal-title {
    color: #FFFFFF;
    font-size: 25px;
    line-height: 31px;
    font-weight: 700;
    margin-bottom: 20px;
}

.add-user-modal .login-box .cancel-btn {
    border: none;
    border-radius: 4px;
    background: #547A95;
    padding: 12px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.add-user-modal .login-box .submit-btn {
    border: none;
    border-radius: 4px;
    background: #D99B7F;
    padding: 12px;
    color: #2C3947;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .page-heading h5 {
        font-size: 20px;
        line-height: 26px;
    }

    .content .page-heading .add-company-btn {
        font-size: 14px;
        line-height: 20px;
    }

    .table-pagination {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .add-user-modal {
        padding: 30px 25px;
    }
}

.pdf-link {
    color: #2C3947;
    text-decoration: underline;
}

.company-logo {
    width: 85px;
    height: 85px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 10px;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-text h3 {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #2C3947;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.company-text p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #797D92;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

.company-text p img {
    width: 16px;
    height: 16px;
}

.company-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.content .page-heading .delete-company-btn {
    padding: 10px 16px;
    background-color: #547A95;
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.detail-card {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 16px;
    height: 100%;
    text-align: center;
}

.detail-card span {
    display: block;
    color: #797D92;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.detail-card h6 {
    margin: 0;
    color: #2C3947;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    word-break: break-word;
}

.image-card {
    background: #FFFFFF;
    border-radius: 8px;
    height: 182px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.image-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}


.company-form{
    background:#2C3947;
    border-radius:12px;
    padding:35px;
}

@media (max-width: 567px) {
    .company-form {
        padding: 30px 25px;
    }
}

.form-title{
    color:#FFFFFF;
    font-size:25px;
    line-height: 31px;
    font-weight:700;
    margin-bottom:15px;
}

.upload-card{
    background:#374350;
    border-radius:4px;
    padding:20px;
    height:100%;
}

.upload-card h5{
    color:#FFFFFF;
    font-size:16px;
    line-height: 22px;
    font-weight:600;
    margin-bottom:15px;
}

.upload-card h5 span{
    color:#D99B7F;
}

.upload-area{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}

.upload-btn{
    padding: 12px 35px;
    background-color: #547A95;
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    cursor: pointer;
}

.upload-input{
    display:none;
}

.file-name{
    color:#fff;
    font-size:16px;
    word-break:break-word;
}

.content .company-form .cancel-btn,
.content .company-form .submit-btn{
    padding: 12px 45px;
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.content .company-form .cancel-btn{
    background:#547A95;
}

.content .company-form .submit-btn{
    background:#D99B7F;
    color: #2C3947;
}

.company-subtitle{
    color:#E8EDF2;
    font-size:16px;
    line-height:22px;
    font-weight:500;
    margin-bottom:22px;
}

.calendar-icon{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events:none;
}

input[type="date"]::-webkit-calendar-picker-indicator{
    opacity:0;
}

input[type="date"]{
    cursor:pointer;
}


.new-form .form-label{
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}

.new-form .company-select{
    background-color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #2C3947;
    padding: 10px;
    box-shadow: none;
}

.new-form .company-select:focus {
    border-color: #D99B7F;
    box-shadow: none;
}

.document-box{
    background:#FFFFFF;
    border-radius:0px;
    overflow:hidden;
}

.document-item{
    padding:27px 10px;
    border-bottom: 1px solid #DFE3E6;
    display: flex;
    align-items: center;
}

.pdf-option-box{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    background:#374350;
    border-radius:4px;
    padding:10px;
}

.custom-radio{
    display:flex;
    align-items:center;
    cursor:pointer;
    margin:0;
    color:#FFFFFF;
    font-size:16px;
    line-height: 22px;
    font-weight:600;
}

.custom-radio input{
    display:none;
}

.custom-radio span{
    width:20px;
    height:20px;
    border:2px solid #797D92;
    border-radius:50%;
    margin-right:8px;
    position:relative;
}

.custom-radio input:checked + span{
    border-color:#D99B7F;
}

.custom-radio input:checked + span::after{
    content:"";
    width:10px;
    height:10px;
    background:#D99B7F;
    border-radius:50%;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
}

.login-box.new .form-check-label {
    color: #2C3947;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    cursor: pointer;
}

#pdfLoader{
    position:fixed;
    inset:0;
    background:rgba(44,57,71,.82);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999;
}

.loader-box{
    text-align:center;
    color:#fff;
}

.loader-box p{
    font-size:18px;
    font-weight:600;
}

.pdf-success-msg{
    display:none;
    margin-top:18px;
    text-align:center;
    color:#D99B7F;
    font-size:14px;
    font-weight:600;
}