.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.sidebar .nav-link.active {
    background: #002E6E;
    color: #fff !important;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: #002E6E;
}

.sidebar {
    background-color: #002E6E !important;
}

.btn-default {
    /* color: #23282c; */
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.sidebar .nav-link .nav-icon {
    color: #fff;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    /* color: #23282c; */
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs>.btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}

.searchable-fields {
    padding-left: 5px;
}

.searchable-link {
    padding: 0 5px 0 5px;
}

.searchable-link:hover {
    cursor: pointer;
    /* background: #eaeaea; */
}

.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.enquiry-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.form-card h2 {
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.form-value {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background: #eceff1;
    font-size: 14px;
    color: #000;
}

.status-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 350px;
    margin-left: 20px;
    height: 200px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.status-card h3 {
    color: #ff5c5c;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 700;
}

.status-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.status-buttons button {
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-buttons button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-approve {
    background: green;
}

.btn-reject {
    background: red;
}

.Enuiry-bg {
    background: linear-gradient(45deg, #002E6E, #0047AB);
    color: #ffffff;
    padding-top: 5px;
    padding-bottom: 1px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.nav-dropdown-items {
    margin-left: 18px !important;
}

.form-bg {
    background: linear-gradient(45deg, #002E6E, #0047AB);
    padding: 15px;
    border-radius: 10px;
    color: #ffffff;
}


/* ===== Card ===== */

.card {
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    background: #fff;
}

.card-1 {
    margin-left: 150px;
    width: 70%;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    background: #fff;
}


/* Small screens (tablets and large phones under 768px) */

@media (max-width: 768px) {
    .card-1 {
        margin-left: 40px;
        width: 90%;
    }
}


/* Very small screens (phones under 576px) */

@media (max-width: 576px) {
    .card-1 {
        margin-left: auto;
        margin-right: auto;
        width: 95%;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

.card-header {
    background: linear-gradient(45deg, #002E6E, #0047AB);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 18px;
}


/* ===== Table ===== */

.table {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.table thead {
    background: #f1f5f9;
}

.table th {
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    color: #444;
    padding: 12px;
}

.table tbody tr {
    transition: all 0.2s ease-in-out;
}

.table tbody tr:hover {
    background: #f9fbff;
    transform: scale(1.01);
}


/* ===== Buttons ===== */

.btn {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    margin: 2px;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #4cd964);
    border: none;
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(45deg, #218838, #34c759);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #ff5e62);
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #ff3b30);
    transform: translateY(-2px);
}


/* ===== Status Badge ===== */

.badge {
    border-radius: 8px;
    font-size: 12px;
    padding: 6px 12px;
}

.badge.bg-success {
    background: #28a745 !important;
}

.badge.bg-danger {
    background: #dc3545 !important;
}

.badge.bg-secondary {
    background: #6c757d !important;
    color: #fff;
}


/* Customize Bootstrap btn-close */

.btn-close {
    width: 1.5rem;
    /* Default is 1rem */
    height: 1.5rem;
    /* Default is 1rem */
    background-color: transparent;
    /* Usually transparent */
    border: none;
    /* Remove default border */
    opacity: 0.5;
    /* Slightly faded by default */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    /* Fully visible on hover */
    transform: rotate(90deg);
    /* Optional fun effect */
    cursor: pointer;
}

.btn-close::before,
.btn-close::after {
    background-color: #000;
    /* Default cross color */
}


/* ===== Responsive Table as Cards ===== */

@media (max-width: 768px) {
    table.table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }
    thead tr {
        display: none;
    }
    tbody tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    td {
        text-align: left;
        /* Text left align kar do */
        padding-left: 0;
        padding-top: 8px;
        padding-bottom: 8px;
        position: relative;
        display: block;
        /* Har ek row ko block banane ke liye */
        white-space: normal;
        /* Text wrap hoga */
    }
    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #002E6E;
        display: block;
        /* Upar label show hoga */
        margin-bottom: 4px;
        font-size: 13px;
    }
}

.form-control-sm {
    padding-right: 18px;
}

label.form-label {
    margin-top: 5px !important;
}