.table-header {
    display: flex;
    justify-content: space-between;
}

/* 
.legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.legend span {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #000;
}

.legend-box {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border-radius: 3px;
    border: 1px solid #e1e1e1;
}

.pending {
    background-color: #a1a1a1;
}

.inprogress {
    background-color: #fca924;
}

.completed {
    background-color: #0f6e47;
}

.delayed {
    background-color: #ffe1e0;
}

.not-allocated {
    background-color: #fff;
} */

table td {
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #2a2a2a !important;
    font-size: 13px !important;
}



.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    /* background: #f9fafc;
    border: 1px solid #e5e7eb; */
    border-radius: 8px;
}

.legend span {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.legend-box {
    width: 13px;
    height: 13px;
    margin-right: 6px;
    border-radius: 4px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
}

.legend-parent {
    /* position: absolute;
    top: 46px;
    right: 30px; */
    float: right;
}

/* Status Colors - Subtle & Corporate */
.pending {
    background-color: #c6c6c6;
    /* neutral gray */
}

.inprogress {
    background-color: #ffc05b;
    /* amber */
}

.completed {
    background-color: #83c1a7;
    /* green */
}

.delayed {
    background-color: #ef4444;
    /* red */
}

.not-allocated {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
}




table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

th,
td {
    border: 1px solid #e6e6e6;
    padding: 5px;
    vertical-align: middle;
    white-space: nowrap;
}

th {
    background-color: #defaff;
    color: #000;
}

.vendor {
    padding: 5px;
    position: relative;
}

.vendor span {
    display: inline-block;
    margin-bottom: 1px;
}

.hall-btn {
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 10px !important;
    margin-top: 2px;
    border: 1px solid #dbdbdb;
}

.hall-btn-exp {
    border: none !important;
    font-size: 13px !important;
}

.hall-btn-exp:hover {
    background-color: #fff !important;
}

.hall-btn-1 {
    background-color: #0dcaf0;
    border: 1px solid #b7b7b7 !important;
    color: #ffffff;
}

.hall-btn-2 {
    background-color: #f7e579;
    border: 1px solid #d8bb0a !important;
    color: #60605f;
}

.hall-btn-3 {
    background-color: #f7f7f7;
    border: 1px solid #d8bb0a !important;
    color: #575757;
}

.hall-status {
    font-size: 11px !important;
}

.ven-icon {
    position: relative;
    top: 2px;
    font-size: 15px !important;
}

.expand-card {
    position: absolute;
    top: -25px;
    left: 0;
    color: black;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
    animation: fadein 0.2s ease-in-out;
}

.expand-card.active {
    display: block;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-header h5 {
    font-size: 15px;
}

.vendor-div-line {
    color: #b0b0b0;
}

.service-bg {
    background-color: #e1e1e1;
    color: #1b1b1b;
    border-bottom: 1px solid #c4c4c4;
}


.vendor-table thead th:first-child {
    z-index: 6;
}



.vendor-table tbody td {
    vertical-align: middle;
    padding: 3px 4px;
}

/* Hall buttons hover */
.hall-btn:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Hover highlight */
.vendor-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.custom-table-container {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Table Head */
.custom-table thead th {
    background-color: #defaff;
    color: #222;
    font-weight: 600;
    /* border: none; */
}

/* Zebra Striping */
.custom-table tbody tr:nth-child(odd) {
    background-color: #f9fbfd;
}

/* Hover Effect */
.custom-table tbody tr:hover {
    background-color: #eaf4ff;
    transition: 0.2s ease-in-out;
}

/* Progress Bar Height */
.custom-table .progress {
    height: 8px;
    border-radius: 5px;
}

.progress {
    height: 7px !important;
}

/* Status Badges */
.status {
    font-weight: 600;
}

.status-inprogress {
    /* background-color: #fff3cd; */
    color: #856404;
}

.status-completed {
    /* background-color: #d4edda; */
    color: #155724;
}

.status-pending {
    /* background-color: #e2e3e5; */
    color: #383d41;
}

.status-delayed {
    /* background-color: #f8d7da; */
    color: #721c24;
}


.table-wrapper {
    overflow-x: auto;
    position: relative;
}

.corporate-table {
    border-collapse: collapse;
    width: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.corporate-table th,
.corporate-table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    text-align: left;
}


.corporate-table thead th:first-child {
    z-index: 6;
}

/* Hover row effect */
.corporate-table tbody tr:hover {
    background-color: #f1f7ff;
}

/* Checkbox styling */
.corporate-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}


.icon-both {
    position: absolute;
    right: -2px;
    top: 3px;
}

.comment-col {
    position: relative;
}

.comment-his {
    position: absolute;
    bottom: 0px;
    padding: 1px 4px 0px 5px;
    right: 0px;
    font-size: 16px;
    background: #3cbba7;
    color: #ffffff;
    border-radius: 11px 0px 0px 0px;
    cursor: pointer;
}

.not-all {
    font-size: 12px;
}



.high-light-text {
    background: #eefffc;
    padding: 0px 6px;
    border-radius: 3px;
    border: 1px solid #3dbca7;
}

.icons-shorting {
    right: 0;
    top: 10px;
    font-size: 15px;
}

.scan-icon {
    border: 1px solid #74a7f3;
    padding: 1px 2px;
    border-radius: 5px;
    border-spacing: #000;
    /* color: #103e83; */
    font-size: 18px;
}


textarea.form-control {
    font-size: 13px !important;
}

.lagend-tab {
    position: absolute;
    right: -10px;
    top: -45px;
}














.delay-btn {
    width: 25px;
    height: 23px;
    line-height: 10px;
}

.delay-rem {
    width: 25px;
    height: 23px;
    line-height: 10px;
}

.nav-item a {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #fff !important;
}

.stat-value {
    font-size: 22px;
    text-align: left;
}

.badge-soft-danger-vendor {
    background: #e0f5f3;
    font-size: 10px;
    border-radius: 20px;
    border: 0.5px solid#c5f5f5;
    padding: 2px 8px;
    color: #2e8b82;
    font-weight: normal;
}

.nav-item i {
    font-size: 10px !important;
}

.count-query {
    position: absolute;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    margin-right: 4px;
    color: #4154f1;
}

.col-form-label {
    font-size: 13px;
    color: #222;
}

.sidebar-nav .nav-link.collapsed i {
    color: #222 !important;
}

.sidebar-nav .nav-link i {
    font-size: 15px;
    margin-right: 1px !important;
    color: #4154f1;
}

.sidebar-nav .nav-link {
    padding: 4px 10px !important;
}

.form-select {
    padding: 5px;
}

.input-group-text {
    padding: 0px 7px;
}

.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    font-size: 13px !important;
}

.aud-details {
    display: flex;
}

.form-check {
    font-weight: normal;
}

.smooth-blink {
    animation: smoothBlink 1.5s infinite;
}

@keyframes smoothBlink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

:root {
    --bg: #f5f6f8;
    --card: #fff;
    --ink: #222;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #2563eb;
    --danger: #e11d48;
    --pill: #eef2ff;
    --radius: 10px;
}

.role {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--pill);
    border: 1px solid #dfe3ff;
    color: #3730a3;
}

.role.organizer {
    color: #0f766e;
    background: #ecfeff;
    border-color: #cffafe;
}

.role.vendor {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #dbeafe;
}

.role.auditor {
    color: #a21caf;
    background: #fdf4ff;
    border-color: #f5d0fe;
}

.role.hallmgr {
    color: #7c2d12;
    background: #fff7ed;
    border-color: #fed7aa;
}

.role.exhibitor {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

.reply {
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.reply .text {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.btnx {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.btnx.reply-btn {
    background: var(--accent);
    color: #fff;
}

.btnx.delete {
    background: var(--danger);
    color: #fff;
}

.reply .btnx.reply-btn {
    display: none;
}

.reply .btnx.delete {
    display: none;
}

.reply-thread .reply:not(:last-child) .btnx.delete {
    display: inline-block;
}

.reply-thread .reply:last-child .btnx.reply-btn {
    display: inline-block;
}

.reply-form {
    margin-top: 10px;
    display: none;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    resize: vertical;
    font-size: 13px;
}

.reply-form button {
    margin-top: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-left: auto;
    background-image: var(--bs-accordion-btn-icon);
    background-repeat: no-repeat;
    background-size: 16px !important;
    transition: transform 0.2s ease-in-out;
    right: 0;
    top: 7px;
    right: 6px;
}

.accordion-button:not(.collapsed)::after {
    top: 3px;
    /* when open */
}

.accordion-button::before {
    top: 7px;
    right: 6px;
}

.accordion-body {
    background: #fff;
    border-radius: var(--radius);
}

.text-orange {
    color: #ff8315 !important;
}

.custom-card {
    transition: all 0.3s ease-in-out;
}

.proceed-btn {
    display: none;
}

.custom-card:hover .proceed-btn {
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    /* hidden */
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    /* padding: 20px; */
    z-index: 1001;
    overflow-y: auto;
    /* scroll if content too tall */
}

.drawer.open {
    right: 0;
    /* visible */
}

.doc-document {
    height: calc(100vh - 100px);
    overflow: auto;
}

.drawer .close-btn {
    position: absolute;
    top: 7px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Optional overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.overlay.show {
    display: block;
}

/* Style dashboard image */
#dashboardImg {
    cursor: pointer;
    /* border: 1px solid #ddd; */
    border-radius: 6px;
}

.drawer h5 {
    background: #8236e9;
    padding: 15px;
    color: #fff;
    font-size: 16px;
}









.doc-list {
    max-width: 500px;
    margin: 15px auto;
    font-family: Arial, sans-serif;
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon {
    font-size: 22px;
}

.doc-text h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.doc-text small {
    font-size: 12px;
    color: #888;
}

.download-icon {
    font-size: 18px;
    color: #0d6efd;
    cursor: pointer;
}

.doc-item:hover {
    background: #f9f9f9;
}

.exbhi-tabel th {
    background-color: #004085;
    color: white;
    font-weight: 600;
    padding: 5px;
    white-space: nowrap;
    background-clip: padding-box;
}

.exbhi-tabel td {
    padding: 5px;
}

/* .table-light th{
    background: #444;
    color: #fff;
} */
.note-meta {
    float: right;
    position: absolute;
    right: 10px;
}

.note-text {
    background: #cff3fb;
    display: flex;
    padding: 8px;
    border-radius: 5px;
    margin-top: 11px;
}













/* Existing styles remain */

.icon-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    /* space between download and info icon */
}

.info-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.info-icon {
    font-size: 18px;
    color: #ffc107;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.info-icon-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.down-btn {
    width: 95%;
    position: absolute;
    bottom: 11px;
}

.icon-header {
    float: right;
    position: absolute;
    right: 25px;
    top: 1px;
    z-index: 111;
    cursor: pointer;
}

.vendor-table th:first-child,
.vendor-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f8f9fa;
    font-weight: 600;
    min-width: 110px;
    background-clip: padding-box;
}

.vendor-table thead th:first-child {
    z-index: 2;
    left: -2px;
}

.vendor-table {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    z-index: 0;
    position: relative;
}

.vendor-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #004085;
    color: white;
    font-weight: 600;
    padding: 10px;
    white-space: nowrap;
    background-clip: padding-box;
}

.vendor-table tbody td {
    vertical-align: middle;
    padding: 8px 10px;
}


.hall-btn:hover {
    background-color: #3dbca7 !important;
    color: #fff;
}

/* Contact details inline */
.vendor span {
    display: inline-block;
    margin-right: 6px;
}

.replicate-btn {
    /* background: #eef7ff; */
    border: 1px solid #dbdbdb;
    padding: 5px 8px;
    /* wider so text fits */
    font-size: 14px;
    color: #222;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    /* <<< THIS FIXES YOUR ISSUE */
    gap: 6px;
    /* space between icon & text */
    font-weight: 500;
}


.replicate-btn i {
    font-size: 14px;
}

/* .replicate-btn:hover {
    background: #d8eaff;
    border-color: #88b8e8;
    color: #063863;
} */

.copy-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    cursor: pointer;
    width: 40px;
}

.copy-icon-box i {
    font-size: 16px;
    margin-bottom: 2px;
}

/* Entry Gate CSS */
/* CARD */
.entry-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 28px;
    min-height: 190px;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 6px 12px rgba(0, 0, 0, 0.04);

    border-left: 7px solid #3fb7a2;
    transition: all 0.25s ease;
}

/* .entry-card:hover {
  transform: translateY(-4px);
} */

/* ROWS */
.entry-row {
    display: flex;
    margin-bottom: 16px;
    font-size: 15px;
}

.entry-row:last-child {
    margin-bottom: 0;
}

.entry-label {
    width: 150px;
    font-weight: 600;
    color: #42515a;
}

.entry-value {
    color: #212529;
}

/* COUNT BADGE */
.count-circle {
    position: absolute;
    top: 6px;
    right: 35px;
    width: 29px;
    height: 27px;
    border-radius: 50%;
    background: #3fb7a2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
}

/* POPUP */
.history-popup {
    position: absolute;
    top: 65px;
    right: -10px;

    width: 360px;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.16);

    border-top: 6px solid #3fb7a2;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px) scale(0.98);

    transition: all 0.25s ease;
    z-index: 20;
}

.history-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* POPUP TITLE */
.popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #2e9f8c;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* HISTORY ITEM */
.history-item {
    padding: 12px 0;
    border-bottom: 1px dashed #dee2e6;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item strong {
    font-size: 15px;
    color: #343a40;
}

.history-item span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6c757d;
}
