@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --biz-black: #0d0d0d;
    --biz-black-soft: #1a1a1a;
    --biz-black-hover: #262626;
    --biz-green: #8CE800;
    --biz-text: #ffffff;
    --biz-text-muted: #c9c9c9;
    --biz-border: #2e2e2e;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f4f6f9 !important;
    height: 100%;
}

.bizupon-header {
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Top Bar */
.top-bar {
    background: linear-gradient(179deg, #000000, #012312);
    padding: 14px 0;
    border-bottom: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    width: 15%;
}

    .logo img {
        width: 75%;
    }

/* User Dropdown */
.user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #000 !important;
    border: 1px solid #2e2e2eb3;
    border-radius: 30px;
    padding: 1px 14px 2px 1px;
    color: var(--biz-text);
    transition: background-color 0.2s ease;
}

    .user-toggle:hover,
    .user-toggle:focus {
        background-color: #333333;
        color: var(--biz-text);
    }

    .user-toggle .avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #002c16, #198754a1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: #ffffff;
        flex-shrink: 0;
    }

.welcome-text {
    font-size: 13px;
    font-weight: 200;
    white-space: nowrap;
    color: #fff;
}

.user-menu {
    background-color: #000;
    border: none;
    border-radius: 8px;
    min-width: 220px;
    padding: 8px 0;
    margin-top: 10px;
    z-index: 10;
}

.dropdown-item {
    font-weight: 300;
}

.user-menu .dropdown-item {
    color: var(--biz-text);
    padding: 10px 18px;
    font-size: 0.95rem;
}

    .user-menu .dropdown-item:hover,
    .user-menu .dropdown-item:focus {
        background-color: var(--biz-black-hover) !important;
        background: #333333;
        color: var(--biz-green);
    }

.user-menu li:not(:last-child) .dropdown-item {
    border-bottom: 1px solid var(--biz-border);
}

/* Nav Bar */
.nav-bar {
    background-color: #002c16;
    padding: 0;
}

    .nav-bar .navbar-nav {
        gap: 4px;
    }

    .nav-bar .nav-link {
        color: var(--biz-text-muted) !important;
        font-size: 0.98rem;
        font-weight: 300;
        padding: 8px 14px !important;
        transition: color 0.2s ease, background-color 0.2s ease;
        border-radius: 4px 4px 0 0;
    }

        .nav-bar .nav-link:hover,
        .nav-bar .nav-link:focus,
        .nav-bar .nav-item.show .nav-link {
            color: var(--biz-text) !important;
            background-color: #000;
        }

    .nav-bar .dropdown-toggle::after {
        margin-left: 12px;
        vertical-align: 2px;
    }

.all-categories {
    width: 22.5%;
    background: #00140a;
}

    .all-categories .nav-link {
        color: var(--biz-text) !important;
        font-weight: 300;
    }

    .all-categories .bi-grid-3x3-gap-fill {
        color: #4fa729;
        font-size: 1.05rem;
    }

.nav-bar .dropdown-menu {
    background: linear-gradient(160deg, #000000, #03371e);
    border: none;
    border-radius: 12px;
    margin-top: 1px;
    padding: 0px;
}

    .nav-bar .dropdown-menu .dropdown-item {
        color: var(--biz-text-muted);
        padding: 10px 15px;
        font-size: 0.92rem;
        border-radius: 8px;
        transition: 0.5s;
    }

        .nav-bar .dropdown-menu .dropdown-item:hover,
        .nav-bar .dropdown-menu .dropdown-item:focus {
            background-color: #000000;
            color: #4ad10e;
        }

.categories-menu {
    min-width: 280px;
    padding: 10px 0;
}

    .categories-menu .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 22px;
        color: var(--biz-text);
        font-size: 0.96rem;
        /*        border-bottom: 1px solid var(--biz-border);*/
    }

        .categories-menu .dropdown-item:last-child {
            border-bottom: none;
        }

        .categories-menu .dropdown-item i {
            color: var(--biz-green);
            font-size: 0.85rem;
        }

        .categories-menu .dropdown-item:hover,
        .categories-menu .dropdown-item:focus {
            background-color: #333333;
            color: var(--biz-green);
            padding-left: 26px;
        }

/* Mobile toggler */
.navbar-toggler {
    border: none;
}

.bi-list {
    font-size: 25px;
    color: #ffffffd1;
}

.navbar-toggler-icon {
    filter: invert(1);
}

ul#side-menu {
    margin: 0;
    padding: 0;
}

.dropdown-submenu {
    position: relative;
    list-style: none;
    margin: 10px;
}

    .dropdown-submenu > .submenu-trigger {
        /*    border-bottom: 1px solid var(--biz-border);*/
    }

.submenu-panel {
    display: none;
    position: absolute;
    top: -11px;
    left: 100%;
    margin-left: 8px;
    /*    min-width: 640px;*/
    background-color: #000000;
    border: 1px solid var(--biz-border);
    border-radius: 10px;
    box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.45);
    padding: 0 6px;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-height: min(480px, calc(100vh - 140px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dropdown-submenu:hover > .submenu-panel {
    display: grid;
    background: #000000;
}

.submenu-panel.show {
    display: grid;
}

.submenu-col {
    display: flex;
    flex-direction: column;
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 10px;
    margin: 10px;
}

    .submenu-col .dropdown-item {
        border-bottom: none;
        padding: 10px 14px;
        color: var(--biz-text-muted);
        font-size: 0.9rem;
        white-space: nowrap;
        background: rgb(3, 39, 21, 0.7);
    }

        .submenu-col .dropdown-item:hover,
        .submenu-col .dropdown-item:focus {
            background-color: #000000;
            color: #4ad10e;
            padding-left: 18px;
            background: rgb(3, 39, 21, 1) !important;
        }

.submenu-panel {
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a #000000;
}

    .submenu-panel::-webkit-scrollbar {
        width: 7px;
    }

    .submenu-panel::-webkit-scrollbar-track {
        background: #000000;
        border-radius: 10px;
    }

    .submenu-panel::-webkit-scrollbar-thumb {
        background: #3a3a3a;
        border-radius: 10px;
    }

        .submenu-panel::-webkit-scrollbar-thumb:hover {
            background: #4ad10e;
        }


/* Footer Section */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    background: #0c0f1a;
}

.demo-tall-content .page-content {
    min-height: 1400px;
}

.copy-text {
    color: #c9ccd1;
    font-size: 15px;
}

.brand-link {
    color: #e8492a;
    font-weight: 600;
    text-decoration: none;
}

    .brand-link:hover {
        color: #ff5f3a;
    }

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

    .footer-links li {
        position: relative;
        padding: 0 14px;
    }

        .footer-links li + li::before {
            content: "|";
            position: absolute;
            left: -2px;
            color: #5a5f6b;
        }

    .footer-links a {
        color: #e6e8ec;
        font-size: 15px;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: #e8492a;
        }

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .site-footer {
        padding: 4px 0;
    }

    body {
        padding-bottom: 90px;
    }
}

@media (max-width: 480px) {
    .footer-links li {
        padding: 0 8px;
    }

    .copy-text {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }
}

/* Yard Lookup form */

.search-form-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.field-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1b2a1f;
    margin-bottom: 5px;
}

.field-input {
    border: 1px solid #d8dcd8;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #495057 !important;
    width: 100%;
    background: #fff !important;
}

    .field-input:focus {
        box-shadow: none;
        border-color: #2e7d32;
        outline: none;
    }

.all-chassis-area {
    resize: vertical;
    min-height: 96px;
}

.sort-select {
    background-position: right 14px center;
}

.ss-dropdown {
    position: relative;
}

.ss-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #d8dcd8;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #495057;
    text-align: left;
}

    .ss-toggle:hover,
    .ss-toggle:focus {
        border-color: #2e7d32;
    }

    .ss-toggle i {
        color: #2e7d32;
        font-size: 13px;
        margin-left: 8px;
        flex-shrink: 0;
    }

.ss-menu {
    width: 100%;
    min-width: 100%;
    padding: 10px;
    border: 1px solid #e2e5e2;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    margin-top: 4px;
}

.ss-search {
    border: 1px solid #d8dcd8;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 8px;
}

    .ss-search:focus {
        box-shadow: none;
        border-color: #2e7d32;
    }

.ss-options {
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
}

.ss-option {
    padding: 10px 12px;
    font-size: 14px;
    color: #343a40;
    border-radius: 6px;
    cursor: pointer;
}

    .ss-option:hover {
        background: #eaf3ea;
        color: #1b5e20;
    }

    .ss-option.active {
        background: #2e7d32;
        color: #ffffff;
    }

.ss-options::-webkit-scrollbar {
    width: 7px;
}

.ss-options::-webkit-scrollbar-thumb {
    background: #c8d0c8;
    border-radius: 4px;
}

.btn-brand {
    background: #4caf50;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 11px 30px;
    border: none;
    border-radius: 6px;
}

    .btn-brand:hover {
        background: #3d8b40;
        color: #ffffff;
    }

@media (max-width: 991.98px) {
    .search-form-card {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .search-form-card {
        padding: 18px;
    }

    .btn-brand {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* ===== Page ===== */
.status-page {
    background: #f4f6f4;
    min-height: 60vh;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1b2a1f;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e9e6;
    margin-bottom: 22px;
}

/* ===== Form card ===== */
.status-form-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.field-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1b2a1f;
    margin-bottom: 8px;
}

.field-input {
    border: 1px solid #d8dcd8;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #495057;
    width: 100%;
}

    .field-input:focus {
        box-shadow: none;
        border-color: #2e7d32;
        outline: none;
    }

.all-chassis-area {
    resize: vertical;
    min-height: 96px;
}

/* ===== Searchable select (shared pattern) ===== */
.ss-dropdown {
    position: relative;
}

.ss-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #d8dcd8;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #495057;
    text-align: left;
}

    .ss-toggle:hover,
    .ss-toggle:focus {
        border-color: #2e7d32;
    }

    .ss-toggle i {
        color: #2e7d32;
        font-size: 13px;
        margin-left: 8px;
        flex-shrink: 0;
    }

.ss-menu {
    width: 100%;
    min-width: 100%;
    padding: 10px;
    border: 1px solid #e2e5e2;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    margin-top: 4px;
}

.ss-search {
    border: 1px solid #d8dcd8;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 8px;
}

    .ss-search:focus {
        box-shadow: none;
        border-color: #2e7d32;
    }

.ss-options {
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
}

.ss-option {
    padding: 10px 12px;
    font-size: 14px;
    color: #343a40;
    border-radius: 6px;
    cursor: pointer;
}

    .ss-option:hover {
        background: #eaf3ea;
        color: #1b5e20;
    }

    .ss-option.active {
        background: #2e7d32;
        color: #ffffff;
    }

.ss-options::-webkit-scrollbar {
    width: 7px;
}

.ss-options::-webkit-scrollbar-thumb {
    background: #c8d0c8;
    border-radius: 4px;
}

/*-- pagination --*/
.GridPager table tbody tr:hover {
    background: transparent !important;
}

.GridPager table tbody tr td {
    padding: 5px;
    border:none;
}

    .GridPager table tbody tr td span {
        background: #4caf50 !important;
        color: #fff;
    }

    .GridPager table tbody tr td span,
    .GridPager table tbody tr td a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 5px;
        background: #f5f5f5;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
    }

/* ===== Buttons ===== */
.btn-brand {
    background: #4caf50;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    padding: 11px 30px;
    border: none;
    border-radius: 6px;
}

    .btn-brand:hover {
        background: #3d8b40;
        color: #ffffff;
    }

/* ==========================================================================
   TABLES - columns wrap long content instead of stretching the table
   --------------------------------------------------------------------------
   Key changes vs. the old version:
   1. Tables are width:100% (NOT width:max-content), so they fit the container
      and the browser shares the space between columns.
   2. Cells use white-space:normal + overflow-wrap:anywhere so long text
      (remarks, emails, names) wraps onto multiple lines.
   3. Text-heavy columns get a max-width so they can't hog the row.
   4. The wrapper still scrolls horizontally on small screens as a fallback.
   ========================================================================== */

/* Wrapper: scrolls only if the table truly can't fit (e.g. small phones) */
.table-responsive,
.status-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.status-table-wrap {
    background: #ffffff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

    /* Table itself: fit the container, let columns share the space */
    .table,
    .status-table,
    .payment-table,
    .table-responsive > table,
    .status-table-wrap > table,
    table.table {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        table-layout: auto;
        border-collapse: collapse;
        margin-bottom: 0;
    }

.table,
.status-table,
.payment-table {
    font-size: 13.5px;
}

    /* Headers: wrap instead of colliding */
    .table th,
    .status-table th,
    .payment-table th,
    .table-responsive > table th,
    .status-table-wrap > table th {
        background: #1c1f1c;
        color: #ffffff;
        font-weight: 700;
        font-size: 12.5px;
        line-height: 1.4;
        text-align: left;
        vertical-align: middle;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: normal;
        min-width: 70px;
        max-width: 220px;
        padding: 12px 10px !important;
        border: 1px solid #d5d8d5;
    }

    /* Body cells: ALWAYS wrap long content (names, emails, remarks, etc.) */
    .table td,
    .status-table td,
    .payment-table td,
    .table-responsive > table td,
    .status-table-wrap > table td,
    table.table td {
        vertical-align: middle;
        padding: 12px 10px;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 280px;
        border: 1px solid #d5d8d5;
    }

        /* Extra-long text columns (remarks / description) wrap in a narrower column.
   Add class="content-column" to the <td> (and <th>) of those columns. */
        .table td.content-column,
        .table-responsive td.content-column,
        .status-table td.content-column {
            min-width: 200px;
            max-width: 320px;
            white-space: normal !important;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

/* Optional: cap any column's width with class="col-wrap" */
.col-wrap {
    max-width: 220px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Keep short data (S.No, status, dates, buttons) compact */
.table td .btn,
.status-table td .btn,
.table td a.btn {
    white-space: nowrap;
}

/* Payment table: inputs/textareas fill their cell, remarks stay readable */
.payment-table th:nth-child(5),
.payment-table td:nth-child(5),
.payment-table th:nth-child(6),
.payment-table td:nth-child(6) {
    min-width: 160px;
    white-space: normal;
}

.payment-table td textarea,
.payment-table td input,
.payment-table td select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Images and form controls never push a cell wider */
table.table td img,
table.table td input,
table.table td select,
table.table td textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.status-table tbody td {
    color: #343a40;
    border-color: #d5d8d5;
    font-size: 12px;
}

.status-table tbody tr:nth-child(even) {
    background: #f5f6f5;
}

.status-table tbody tr:hover {
    background: #eef3ea;
}

/* Keep checkbox / S.No columns compact */
.table th:first-child,
.table td:first-child,
.status-table th:first-child,
.status-table td:first-child,
.payment-table th:first-child,
.payment-table td:first-child {
    min-width: 40px;
    width: 40px;
    /*text-align: center;*/
}

#GridView1_checkAll {
    width: 14px !important;
    height: 14px !important;
    margin: 0;
    padding: 0;
}

#GridView1 th:has(#GridView1_checkAll) {
    width: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    padding: 5px !important;
}

@media (max-width: 767.98px) {
    .table th,
    .status-table th,
    .payment-table th,
    .table-responsive > table th,
    .status-table-wrap > table th {
        min-width: 64px;
        padding: 10px 8px !important;
        font-size: 12px;
    }

    .table td,
    .status-table td,
    .payment-table td,
    .table-responsive > table td,
    .status-table-wrap > table td {
        padding: 10px 8px;
        font-size: 12px;
        max-width: 200px;
    }

        .table td.content-column,
        .table-responsive td.content-column {
            min-width: 150px;
            max-width: 220px;
        }
}

.row-link {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

    .row-link:hover {
        text-decoration: underline;
    }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .status-form-card {
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    .status-form-card {
        padding: 16px;
    }

    .btn-brand {
        flex: 1 1 100%;
        text-align: center;
    }

    .page-title {
        font-size: 19px;
    }
}


/* Invoice Styling */
.invoice-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    padding: 24px;
}

.invoice-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1d20;
    margin-bottom: 20px;
}

/* Modern Segmented Control Styling */
.modern-tab-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    display: inline-flex;
    gap: 6px;
    /*    width: 100%;*/
   /* max-width: 420px;*/
    margin-bottom: 25px;
}

    .modern-tab-wrapper .nav-link {
        flex: 1;
        text-align: center;
        padding: 10px 18px;
        font-weight: 600;
        font-size: 0.95rem;
        color: #64748b;
        border-radius: 8px;
        border: none;
        background: transparent;
        transition: all 0.25s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        .modern-tab-wrapper .nav-link:hover {
            color: #1e293b;
        }

        /* Active Tab State */
        .modern-tab-wrapper .nav-link.active {
            background-color: #198754; /* Clean Modern Green */
            color: #ffffff !important;
            box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
        }

/* Form Inputs & Select Styling */
.invoice-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 6px;
}

.invoice-form .form-control,
.invoice-form .form-select {
    border-radius: 6px;
    border: 1px solid #cbd5e1 !important;
    padding: 9px 12px;
    font-size: 0.925rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff !important;
    color: #495057 !important;
}

    .invoice-form .form-control:focus,
    .invoice-form .form-select:focus {
        border-color: #198754;
        box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
    }

/* Action Buttons */
.btn-green-action {
    background-color: #198754;
    color: #ffffff;
    font-weight: 600;
    padding: 9px 28px;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .btn-green-action:hover {
        background-color: #146c43;
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(25, 135, 84, 0.2);
    }

/* Modern Table styling for View Section */
.custom-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

    .custom-table th {
        background-color: #f8fafc;
        color: #475569;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

@media (max-width: 576px) {
    .modern-tab-wrapper {
        max-width: 100%;
        flex-direction: column;
    }
}

/* Modal Container & Dialog */
#con-detail .modal-content,
#view-remark .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#con-detail .modal-header,
#view-remark .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

#con-detail .modal-title,
#view-remark .modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2b3440;
    display: flex;
    align-items: center;
}

#con-detail .modal-body,
#view-remark .modal-body {
    padding: 1.5rem;
    background-color: #ffffff;
}

#con-detail .modal-footer,
#view-remark .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 0.85rem 1.5rem;
}

/* Modal Form Fields & Typography */
#con-detail .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.35rem;
}



#con-detail textarea.form-control {
    resize: vertical;
    min-height: 120px;
}





/* ==========================================================================
   View Remark Table (#tabdata)
   ========================================================================== */
#Remarkview {
    min-height: 120px;
}

#tabdata {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

    #tabdata thead th {
        background-color: #212529;
        color: #ffffff;
        font-size: 0.825rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 12px 14px;
        border-bottom: none;
        white-space: nowrap;
    }

    #tabdata tbody td {
        padding: 10px 14px;
        font-size: 0.875rem;
        vertical-align: middle;
        color: #333333;
        border-color: #f1f3f5;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #tabdata tbody tr:nth-of-type(even) {
        background-color: #fcfcfd;
    }

    #tabdata tbody tr:hover {
        background-color: #f1f5f9;
    }

    /* Badges for Remark Types */
    #tabdata .badge {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.35em 0.65em;
        border-radius: 4px;
        letter-spacing: 0.2px;
    }

    /* Action Buttons inside Table */
    #tabdata .btn-outline-danger {
        padding: 0.25rem 0.65rem;
        font-size: 0.8rem;
        border-radius: 4px;
        transition: all 0.2s ease-in-out;
    }

        #tabdata .btn-outline-danger:hover {
            color: #ffffff;
            background-color: #dc3545;
            border-color: #dc3545;
        }

/* Preserve horizontal scrolling fallback for very narrow screens */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.px-4 {
    padding-right: 30px !important;
    padding-left: 30px !important;
}

#custPrint {
    margin-left: 20px !important;
}

#btndownload {
    margin-left: 20px !important;
}

#btnDownload {
    margin-left: 20px !important;
}

/* ===== TAB BUTTONS: 50% width each ===== */
.modern-tab-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

    .modern-tab-wrapper > .nav-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .modern-tab-wrapper .nav-link {
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }
