/* ==========================================================================
   Modern Form Input Styling — data_input.php
   Converts legacy table-based form layout into responsive card-grid layout.
   Inspired by the v2 Blade component design system.
   ========================================================================== */

/* ---------- Card-like sections ---------- */
.form-section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-section-card > h3,
.form-section-card > h5 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

/* ---------- Convert tables to vertical block layout ---------- */
.form-section-card > .table,
.tab-content .form-section-card .table,
.modern-panel .panel-body > .table {
    border: none;
    margin-bottom: 0;
}

.form-section-card > .table > thead,
.form-section-card > .table > tbody,
.form-section-card > .table > tfoot,
.form-section-card > .table > thead > tr,
.form-section-card > .table > tbody > tr,
.form-section-card > .table > tfoot > tr,
.form-section-card > .table > thead > tr > td,
.form-section-card > .table > thead > tr > th,
.form-section-card > .table > tbody > tr > td,
.form-section-card > .table > tbody > tr > th,
.form-section-card > .table > tfoot > tr > td,
.form-section-card > .table > tfoot > tr > th,
.modern-panel .panel-body > .table > thead,
.modern-panel .panel-body > .table > tbody,
.modern-panel .panel-body > .table > tfoot,
.modern-panel .panel-body > .table > thead > tr,
.modern-panel .panel-body > .table > tbody > tr,
.modern-panel .panel-body > .table > tfoot > tr,
.modern-panel .panel-body > .table > thead > tr > td,
.modern-panel .panel-body > .table > thead > tr > th,
.modern-panel .panel-body > .table > tbody > tr > td,
.modern-panel .panel-body > .table > tbody > tr > th,
.modern-panel .panel-body > .table > tfoot > tr > td,
.modern-panel .panel-body > .table > tfoot > tr > th {
    border: none !important;
}

/* Each TR becomes a block-level row */
.form-section-card > .table > tbody > tr,
.form-section-card > .table > tr,
.modern-panel .panel-body > .table > tbody > tr,
.modern-panel .panel-body > .table > tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    border: none !important;
    border-bottom: none !important;
}

/* ---------- Multi-column row groups (via <tbody class="cols-N">) ---------- */
.form-section-card > .table > tbody.cols-2,
.form-section-card > .table > tbody.cols-3 {
    display: grid;
    gap: 0 24px;
}

.form-section-card > .table > tbody.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-section-card > .table > tbody.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Inside a grid group, each <tr> is a single block item */
.form-section-card > .table > tbody.cols-2 > tr,
.form-section-card > .table > tbody.cols-3 > tr {
    display: block;
    padding: 0;
}

/* Label + input inside grid cells */
.form-section-card > .table > tbody.cols-2 > tr > .LeftColumnBG,
.form-section-card > .table > tbody.cols-3 > tr > .LeftColumnBG,
.form-section-card > .table > tbody.cols-2 > tr > .RightColumnBG,
.form-section-card > .table > tbody.cols-3 > tr > .RightColumnBG {
    display: block;
    width: 100%;
}

@media (max-width: 767px) {
    .form-section-card > .table > tbody.cols-2,
    .form-section-card > .table > tbody.cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Section title rows (colspan=2) */
.form-section-card > .table > tbody > tr > td[colspan],
.form-section-card > .table > tr > td[colspan] {
    width: 100%;
    flex: 0 0 100%;
    padding: 0 0 4px 0;
}

.form-section-card > .table > tbody > tr > td[colspan] > h3,
.form-section-card > .table > tr > td[colspan] > h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 20px 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.form-section-card > .table > tbody > tr > td[colspan] > h3:first-child,
.form-section-card > .table > tr > td[colspan] > h3:first-child {
    margin-top: 0;
}

/* Label cell (LeftColumnBG) */
.form-section-card .LeftColumnBG,
.modern-panel .panel-body .LeftColumnBG {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    padding: 12px 0 4px 0 !important;
    background: transparent !important;
    white-space: normal !important;
    vertical-align: top !important;
}

.form-section-card .LeftColumnBG b,
.modern-panel .panel-body .LeftColumnBG b {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}

/* Input cell (RightColumnBG) */
.form-section-card .RightColumnBG,
.modern-panel .panel-body .RightColumnBG {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    padding: 0 0 8px 0 !important;
    background: transparent !important;
}

/* ---------- Modern input fields ---------- */
.form-section-card input.ControlStyle,
.form-section-card input.ControlErr,
.form-section-card select.ControlStyle,
.form-section-card select.ControlErr,
.form-section-card textarea.ControlStyle,
.form-section-card textarea.ControlErr,
.form-section-card .form-control,
.modern-panel .panel-body input.ControlStyle,
.modern-panel .panel-body input.ControlErr,
.modern-panel .panel-body select.ControlStyle,
.modern-panel .panel-body select.ControlErr,
.modern-panel .panel-body textarea.ControlStyle,
.modern-panel .panel-body textarea.ControlErr,
.modern-panel .panel-body .form-control {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-section-card input.ControlStyle:focus,
.form-section-card select.ControlStyle:focus,
.form-section-card textarea.ControlStyle:focus,
.form-section-card .form-control:focus,
.modern-panel .panel-body input.ControlStyle:focus,
.modern-panel .panel-body select.ControlStyle:focus,
.modern-panel .panel-body textarea.ControlStyle:focus,
.modern-panel .panel-body .form-control:focus {
    border-color: #e87718;
    box-shadow: 0 0 0 3px rgba(232, 119, 24, 0.15);
    outline: none;
    background-color: #fff;
}

.form-section-card input.ControlErr,
.form-section-card select.ControlErr,
.form-section-card textarea.ControlErr,
.modern-panel .panel-body input.ControlErr,
.modern-panel .panel-body select.ControlErr,
.modern-panel .panel-body textarea.ControlErr {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-section-card input.ControlErr:focus,
.form-section-card select.ControlErr:focus,
.form-section-card textarea.ControlErr:focus,
.modern-panel .panel-body input.ControlErr:focus,
.modern-panel .panel-body select.ControlErr:focus,
.modern-panel .panel-body textarea.ControlErr:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Select dropdown styling */
.form-section-card select.ControlStyle,
.form-section-card select.ControlErr,
.form-section-card select.form-control,
.modern-panel .panel-body select.ControlStyle,
.modern-panel .panel-body select.ControlErr,
.modern-panel .panel-body select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.22 4.47a.75.75 0 0 1 1.06 0L6 7.19l2.72-2.72a.75.75 0 0 1 1.06 1.06L6.53 8.78a.75.75 0 0 1-1.06 0L2.22 5.53a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
}

/* Radio buttons */
.form-section-card input[type="radio"],
.modern-panel .panel-body input[type="radio"] {
    width: auto !important;
    display: inline-block !important;
    margin-right: 4px;
    vertical-align: middle;
    accent-color: #e87718;
}

.form-section-card label:has(input[type="radio"]),
.form-section-card input[type="radio"] + label,
.modern-panel .panel-body label:has(input[type="radio"]),
.modern-panel .panel-body input[type="radio"] + label {
    font-weight: 400;
    color: #374151;
    margin-right: 16px;
    cursor: pointer;
}

/* Checkboxes */
.form-section-card input[type="checkbox"],
.modern-panel .panel-body input[type="checkbox"] {
    width: auto !important;
    display: inline-block !important;
    margin-right: 6px;
    vertical-align: middle;
    accent-color: #e87718;
}

/* Labels within form sections */
.form-section-card small.text-smooth,
.modern-panel .panel-body small.text-smooth {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

/* ---------- Responsive Grid for grouped fields ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

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

.form-grid-auto {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid-auto {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid-auto {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.form-grid-item {
    display: flex;
    flex-direction: column;
}

.form-grid-item > label,
.form-grid-item > .field-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-grid-item > .field-label span[id="edit"] {
    color: #ef4444;
}

/* ---------- Inline field pairs (RT/RW, etc.) ---------- */
.form-inline-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-inline-group .form-inline-field {
    flex: 1;
    min-width: 80px;
}

.form-inline-group .form-inline-separator {
    font-weight: 500;
    color: #9ca3af;
    flex-shrink: 0;
}

/* ---------- Nested address tables → modern layout ---------- */
.form-section-card .RightColumnBG > table {
    width: 100%;
    border: none;
}

.form-section-card .RightColumnBG > table > tbody > tr,
.form-section-card .RightColumnBG > table > tr {
    display: block;
    padding: 0;
    border: none !important;
}

.form-section-card .RightColumnBG > table > tbody > tr > td,
.form-section-card .RightColumnBG > table > tr > td {
    display: block;
    width: 100%;
    padding: 0 0 12px 0 !important;
    border: none !important;
}

/* ---------- Tab content modernization ---------- */
.content-wrap.modern-tabs {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 16px;
}

.content-wrap.modern-tabs > .tab-pane {
    padding: 0;
}

/* Modern tab pills */
.nav-tabs.modern-nav-tabs {
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 10px;
}

.nav-tabs.modern-nav-tabs > li {
    float: none;
    flex: 1;
    min-width: 0;
}

.nav-tabs.modern-nav-tabs > li > a {
    border: none !important;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-tabs.modern-nav-tabs > li > a:hover,
.nav-tabs.modern-nav-tabs > li > a:focus {
    background: rgba(255, 255, 255, 0.6);
    color: #374151;
}

.nav-tabs.modern-nav-tabs > li.active > a,
.nav-tabs.modern-nav-tabs > li.active > a:focus,
.nav-tabs.modern-nav-tabs > li.active > a:hover {
    background: #fff;
    color: #e87718;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

@media (max-width: 640px) {
    .nav-tabs.modern-nav-tabs {
        flex-direction: column;
    }

    .nav-tabs.modern-nav-tabs > li {
        flex: none;
        width: 100%;
    }
}

/* ---------- Panel modernization ---------- */
.panel.modern-panel {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.panel.modern-panel > .panel-heading {
    background: linear-gradient(135deg, #e87718, #f59e0b);
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
}

.panel.modern-panel > .panel-body {
    padding: 20px;
}

/* ---------- Select2 Global Overrides ---------- */

/* Container */
.select2-container {
    width: 100% !important;
}

/* Single selection box */
.select2-container--default .select2-selection--single {
    height: auto;
    min-height: 42px;
    padding: 6px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827;
    line-height: 1.6;
    padding-left: 0;
    padding-right: 28px;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
    top: 0;
    width: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-left: -4px;
    margin-top: -2px;
}

/* Focus / Open state */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #e87718;
    box-shadow: 0 0 0 3px rgba(232, 119, 24, 0.15);
    outline: none;
    background-color: #fff;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #e87718 transparent;
    border-width: 0 4px 5px 4px;
}

/* ---------- Select2 Dropdown Panel ---------- */
.select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 4px;
    z-index: 10060;
}

.select2-container--open .select2-dropdown--below {
    border-top: 1px solid #e5e7eb;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.select2-container--open .select2-dropdown--above {
    border-bottom: 1px solid #e5e7eb;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Search input inside dropdown */
.select2-search--dropdown {
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.select2-search--dropdown .select2-search__field {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #e87718;
    box-shadow: 0 0 0 3px rgba(232, 119, 24, 0.12);
}

/* Results list */
.select2-results__options {
    max-height: 260px;
    padding: 4px;
}

.select2-results__option {
    padding: 9px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #374151;
    border-radius: 6px;
    margin: 1px 0;
    transition: background-color 0.12s ease;
}

.select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #fff7ed;
    color: #e87718;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 500;
}

/* Loading state */
.select2-results__option.loading-results {
    color: #9ca3af;
    font-style: italic;
    padding: 12px 14px;
}

/* No results message */
.select2-results__message {
    color: #9ca3af;
    font-size: 13px;
    padding: 12px 14px;
    text-align: center;
}

/* ---------- Multiple selection ---------- */
.select2-container--default .select2-selection--multiple {
    min-height: 42px;
    padding: 4px 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #e87718;
    box-shadow: 0 0 0 3px rgba(232, 119, 24, 0.15);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 3px 8px;
    margin: 3px 4px 3px 0;
    font-size: 13px;
    color: #c2410c;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #c2410c;
    margin-right: 4px;
    font-weight: 700;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #7c2d12;
}

/* ---------- Select2 inside form-section-card (ensure full width) ---------- */
.form-section-card .select2-container {
    width: 100% !important;
    display: block;
}

/* ---------- Select2 inside panel-body ---------- */
.panel-body .select2-container {
    width: 100% !important;
}

/* ---------- Raport card layout ---------- */
.raport-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .raport-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .raport-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.raport-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.raport-card:hover {
    border-color: #e87718;
    box-shadow: 0 2px 8px rgba(232, 119, 24, 0.1);
}

.raport-card .raport-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.raport-card .raport-input {
    width: 100% !important;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.raport-card .raport-input:hover {
    border-color: #e87718;
}

/* ---------- Responsive: stack all fields on mobile ---------- */
@media (max-width: 767px) {
    .form-section-card {
        padding: 16px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .form-section-card > .table > tbody > tr > td,
    .form-section-card > .table > tr > td {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Override inline width styles */
    .form-section-card input[style*="width"],
    .form-section-card select[style*="width"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Rowspan cells in responsive */
    .form-section-card > .table > tbody > tr > td[rowspan] {
        display: block;
        width: 100%;
    }
}

/* ---------- Utility classes ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.gap-12 { gap: 12px; }

/* ---------- Override inline display styles for inputs ---------- */
.form-section-card input[style*="display:inline-block"],
.form-section-card select[style*="display:inline-block"] {
    display: block !important;
    width: 100% !important;
}

/* ---------- Notification spans ---------- */
.form-section-card span[id^="notif"] {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.form-section-card span[id^="notif"] .fa {
    margin-right: 4px;
}

/* ---------- Alert modernization ---------- */
.form-section-card + .alert,
.form-section-card ~ .alert {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Override legacy content-wrap when modern tabs used ---------- */
.modern-nav-tabs + .content-wrap,
.content-wrap:has(.form-section-card) {
    border: none;
    border-radius: 0;
    padding: 20px 0 0 0;
}

/* ---------- Modern panel: registration details table ---------- */
.modern-panel .panel-body > table.table {
    border: none;
    margin-bottom: 0;
}

.modern-panel .panel-body > table.table > tbody > tr > td,
.modern-panel .panel-body > table.table > tr > td {
    border: none !important;
    border-top: none !important;
    padding: 8px 12px;
    vertical-align: middle;
    font-size: 14px;
    color: #374151;
}

.modern-panel .panel-body > table.table > tbody > tr > td:first-child,
.modern-panel .panel-body > table.table > tr > td:first-child {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    width: 200px;
}

.modern-panel .panel-body > table.table > tbody > tr > td b,
.modern-panel .panel-body > table.table > tr > td b {
    font-weight: 600;
    color: #374151;
}

/* ---------- DataBG Section headers ---------- */
.form-section-card td.DataBG,
.form-section-card .DataBG {
    background: transparent !important;
    padding: 0 !important;
}

.form-section-card td.DataBG h3,
.form-section-card .DataBG h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 24px 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.form-section-card td.DataBG:first-child h3,
.form-section-card tr:first-child td.DataBG h3 {
    margin-top: 0;
}

/* ---------- Nested address/sub-tables inside form-section-card ---------- */
.form-section-card td > table,
.form-section-card .RightColumnBG > table {
    width: 100%;
    border: none !important;
    border-collapse: collapse;
}

.form-section-card td > table td,
.form-section-card .RightColumnBG > table td {
    border: none !important;
    padding: 0 0 8px 0 !important;
}

/* ---------- Authenticated footer alignment ---------- */
@media (min-width: 992px) {
    .auth-layout-page .footer {
        margin-left: 250px;
    }

    body.sidebar-collapsed .footer {
        margin-left: 72px;
    }
}

/* ---------- Page header modernization ---------- */
.app-content .page-header {
    border-bottom: none;
    margin-bottom: 0;
}

.app-content .page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

/* ---------- Alert info modernization ---------- */
.app-content .alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 10px;
    font-size: 14px;
}

.app-content .alert-info .close {
    color: #1e40af;
    opacity: 0.6;
}

.app-content .alert-info .close:hover {
    opacity: 1;
}

/* ---------- Status progress table (inc_tahapanpendaftar) ---------- */
.app-content .table-striped {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.app-content .table-striped > tbody > tr > td {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    vertical-align: middle;
    border: none !important;
}

/* ---------- Data buttons area ---------- */
.app-content .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}
