.border-dashed {
    border: 1px !important;
    border-style: dashed !important;
    border-color: #4471FF !important;
    border-radius: 2px !important;
    /* dashes: 4, 4 !important; */
} 
.bg-orange {
    background-color: #E85E31 !important;
    color: #fff !important;
  }
/* Header*/
.btn-add-vendor {
    color: #fff;
    background-color: #E85E31;
    border-color: #E85E31;
    box-shadow: 0px 0px 3px 0px #FFFFFFA3;
  }

  .brand-link-container{
    width: 209px;
    height: 56px;
    padding: 15px;
    
}
.navbar-bg,.default-bg-color {
    background-color: #2473C0 !important;
    color: #fff !important;
}
.nav-link {
    color: #fff !important;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: #fff !important;
    color: #E85E31 !important;
} 

.vendor-tabs {
    border-bottom: 1px solid #838383A6;
}

.vendor-tabs .nav-link {
    color: #333 !important;
    border: 0;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
}

.vendor-tabs .nav-link.active {
    color: #E85E31 !important;
    border-bottom-color: #E85E31;
    background-color: transparent;
}

.btn-save-next {
    background-color: #E85E31;
    border-color: #E85E31;
    box-shadow: 0px 0px 3px 0px #FFFFFFA3;
}

.btn-save-next:hover,
.btn-save-next:focus {
    background-color: #d6532a;
    border-color: #d6532a;
}

.vendor-form label {
    font-family: "Inter", sans-serif;
    font-weight: 400!important;
    font-size: 16px!important;
    letter-spacing: 0!important;
    color: #232323!important;
}
 
.vendor-form .form-section-title {
    border-bottom: 2px solid #83838380!important;
    padding-bottom: 10px!important;
    margin-bottom: 10px!important;
}

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

.vendor-documents-header-row {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 150%;
    letter-spacing: 0;
    color: #6c757d !important;
    padding: 0.75rem 1rem;
    /* border-bottom: 1px solid #dee2e6; */
}

.vendor-documents-col-name {
    width: 35%;
}

.vendor-documents-col-file {
    width: 35%;
}

.vendor-documents-col-format {
    width: 15%;
}

.vendor-documents-col-action {
    width: 15%;
}

.vendor-documents-table th,
.vendor-documents-table td {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 150%;
    letter-spacing: 0;
    color: #6c757d !important;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e5e5e5;
}

.vendor-documents-table thead th {
    font-weight: 500;
    color: #6c757d !important;
    border-bottom: 1px solid #dee2e6;
}

.vendor-documents-card {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.vendor-documents-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.vendor-documents-group-title {
    color: #000 !important;
    font-weight: 400!important;
    font-size: 15px!important;
}

.vendor-documents-badge {
    background-color: #007bff;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 13px;
    border-radius: 4px;
}
 

.vendor-documents-row td {
    padding: 0.85rem 1rem;
}

.vendor-documents-row {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    color: #6c757d !important;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 15px;
    margin-left: 0;
    margin-right: 0;
}

.vendor-documents-extra-row {
    border-top: 1px solid #DFE0EB;
    border-bottom: 1px solid #DFE0EB;
    border-left: 0;
    border-right: 0;
    background: #DFE0E680;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.vendor-documents-extra-fields {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding: 0.4rem 0;
    min-width: 0;
}

.vendor-documents-extra-fields .form-control {
    width: 210px;
}

.vendor-documents-extra-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.vendor-documents-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vendor-documents-actions i {
    font-size: 18px;
}

.vendor-documents-action-view {
    color: #E85E31 !important;
}

.vendor-documents-action-upload {
    color: #20A74E !important;
}

.vendor-documents-action-download {
    color: #20A74E !important;
}

.vendor-documents-action-delete {
    color: #E12121 !important;
}

.vendor-documents-action-add,.vendor-documents-plus-circle {
    color: #C71C8E !important;
}

.vendor-documents-extra-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vendor-documents-extra-form .form-control {
    max-width: 260px;
    min-width: 200px;
}

.vendor-documents-extra-form .vendor-documents-extra-action {
    font-size: 18px;
}

/* SweetAlert2 sizing */
/* .swal2-popup:not(.swal2-toast) {
    width: 420px !important;
    padding: 24px !important;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
    font-size: 20px !important;
    margin-bottom: 8px !important;
}

.swal2-popup:not(.swal2-toast) .swal2-html-container {
    font-size: 14px !important;
} */

/* DataTable common styles */
.datatable-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.datatable-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataTables_filter {
    margin: 0 !important;
}

.dataTables_filter label {
    margin-bottom: 0;
}

.dataTables_filter input {
    min-width: 260px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.datatable-filter-button {
    width: 38px;
    height: 38px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background-color: #fff;
}


.datatable-filter-button i {
    color: #667085;
}

.datatable-toolbar-right .dt-buttons .btn {
    background-color: #E85E31;
    border-color: #E85E31;
    color: #fff;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    box-shadow: 0px 0px 3px 0px #FFFFFFA3;
}

.datatable-toolbar-right .dt-buttons .btn:hover,
.datatable-toolbar-right .dt-buttons .btn:focus {
    background-color: #d6532a;
    border-color: #d6532a;
    color: #fff;
}

.datatable-filter-panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08);
}

.filter-panel-header {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-panel-title {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
}

.datatable-filter-panel .form-group {
    margin-bottom: 16px;
}

.datatable-filter-panel label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.datatable-filter-panel .form-control {
    height: 40px;
    border-radius: 8px;
    border-color: #d0d5dd;
}

.datatable-filter-panel .select2-container {
    width: 100% !important;
}

.datatable-filter-panel .select2-selection--single {
    height: 40px;
    border-radius: 8px;
    border-color: #d0d5dd;
}

.datatable-filter-panel .select2-selection__rendered {
    line-height: 38px;
}

.datatable-filter-panel .select2-selection__arrow {
    height: 38px;
}

.datatable-filter-panel .filter-date-range {
    display: flex;
    gap: 8px;
    width: 100%;
}

.datatable-filter-panel .filter-date-range .form-control {
    flex: 1;
    min-width: 0;
}

table.dataTable thead th {
    font-weight: 600;
    color: #667085;
    border-bottom: 1px solid #e5e7eb !important;
}
.datatable-footer {
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
}
table.dataTable tbody td {
    color: #344054;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px;
    /* padding: 0.25rem 0.6rem; */
    padding: 0.15rem 0.1rem; 
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
}

.datatable-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.datatable-action-item {
    margin: 0;
}

.datatable-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    text-decoration: none;
}

.datatable-action-link.action-view {
    color: #111827;
}

.datatable-action-link.action-edit {
    color: #4471FF;
}

.datatable-action-link.action-delete {
    color: #eb5757;
}

/* Auth layout */
.auth-page {
    background: #f3f5f9;
    min-height: 100vh;
    margin: 0;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-surface {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.auth-side-image {
    flex: 1;
    background: #eef1f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.auth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-side-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 48px;
}

.auth-form-card {
    width: 100%;
    max-width: 520px;
}

@media (max-width: 992px) {
    .auth-surface {
        flex-direction: column;
    }

    .auth-side-image {
        min-height: 240px;
        max-height: 320px;
    }

    .auth-side-form {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .auth-layout {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .auth-surface {
        border-radius: 12px;
    }

    .auth-side-image {
        min-height: 200px;
    }

    .auth-side-form {
        padding: 24px 16px;
    } 
    .auth-form-card {
        max-width: 100%;
    }
    .auth-form-card h1.h5.fw-semibold.mb-0 {
        padding-top: 1.5rem !important;
    }
}

/* Vendor view page */
.vendor-view-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.vendor-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 16px;
}

.vendor-view-edit {
    color: #2f80ed;
    text-decoration: none;
}

.vendor-view-list {
    display: grid;
    gap: 12px;
}

.vendor-view-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.vendor-view-row > .shortfall-status-cell {
    flex: 0 0 auto;
}

.vendor-view-row > .vendor-view-label {
    flex: 1 1 0;
    min-width: 0;
}

.vendor-view-row > .vendor-view-value {
    flex: 1 1 0;
    min-width: 0;
    text-align: right;
    word-break: break-word;
}

.vendor-view-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.vendor-view-label {
    font-size: 14px;
    color: #475569;
}

.vendor-view-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}

.vendor-view-accordion .vendor-accordion-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    margin-bottom: 16px;
}

.vendor-view-accordion .vendor-accordion-header {
    background: #ffffff;
    border-bottom: 0;
}

.vendor-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    padding: 10px 0;
}

.vendor-accordion-toggle:hover,
.vendor-accordion-toggle:focus {
    text-decoration: none;
}

.vendor-accordion-body {
    padding-top: 0;
}

.vendor-view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vendor-view-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vendor-view-grid .vendor-view-value {
    text-align: left;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .vendor-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .vendor-view-grid {
        grid-template-columns: 1fr;
    }
}

/* Shortfall status: consistent alignment */
.shortfall-status-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-right: 2px;
}
.shortfall-status-cell.shortfall-checkbox-wrap {
    flex-direction: row;
    flex-wrap: nowrap;
}
.shortfall-status-cell .shortfall-checkbox {
    position: static !important;
    width: 1rem;
    height: 1rem;
    margin: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}
.shortfall-status-row {
    position: relative;
}
.shortfall-status-row .shortfall-checkbox {
    position: static !important;
    width: 1rem;
    height: 1rem;
    margin: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}
.shortfall-status-cell .shortfall-resolve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: none;
    background: none;
   /* color: #28a745; */
   color: #E85E31;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
    transition: opacity 0.15s, transform 0.15s;
}
.shortfall-status-cell .shortfall-resolve-btn:hover {
    opacity: 0.85;
    transform: scale(1.08);
}
.shortfall-status-cell .shortfall-resolve-btn:disabled {
    cursor: default;
    opacity: 0.7;
}
.shortfall-status-cell .shortfall-resolve-btn i {
    font-size: 1.1rem;
}
.shortfall-status-cell.shortfall-resolved-indicator {
    color: #28a745;
}
.shortfall-status-cell.shortfall-resolved-indicator i {
    font-size: 1.15rem;
}
/* Grid items: status + label on first row, value below indented */
.vendor-view-grid .vendor-view-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0.4rem;
}
.vendor-view-grid .vendor-view-item > .shortfall-status-cell {
    flex: 0 0 auto;
}
.vendor-view-grid .vendor-view-item .vendor-view-label {
    flex: 1;
    min-width: 0;
}
.vendor-view-grid .vendor-view-item .vendor-view-value {
    flex: 0 0 100%;
    width: 100%;
    /* padding-left: 1.75rem; */
    margin-top: 2px;
    box-sizing: border-box;
}

.admin-view .vendor-view-grid .vendor-view-item .vendor-view-value{
    padding-left: 1.75rem;
}