body{
    overflow-x:hidden;
}

#create-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}


#clearSearch {
    cursor: pointer;
}

table.dataTable {
    width: 100% !important;
    background-color: var(--bs-table-bg) !important;
}

@media (max-width: 992px) {
    #pageHeader {
        flex-direction: column;
        gap: 1rem;
    }

        #pageHeader > div {
            width: 100%;
            justify-content: center !important;
        }

    .input-group {
        max-width: 100% !important;
    }
}

body {
    overflow-x: hidden;
}

.dt-scrollableTable {
    overflow-x: auto;
    display: block;
}

.dt-action-buttons .btn i[class*="bx-"] {
    display: inline-block;
    font-size: 1.25rem;
    margin-right: 0ស;
}

.dt-action-buttons .btn {
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* DataTables Scroll Body */
.dataTables_scrollBody {
    overflow-x: hidden !important;
    position: relative !important;
}

td.active-master-td {
    background-color: #d0ebff !important;
}

.highlight-detail-td {
    background-color: red;
}

#number {
    text-align: right;
}

.number {
    text-align: right;
}

.Amountright {
    text-align: right;
}

.btn-show-details::before {
    content: "+";
}

.btn-show-details {
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(34, 48, 62, 0.8);
    font-weight: 600;
    font-size: 0.7em;
    border-radius: 20%;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
}

.details-control button {
    cursor: pointer;
    font-size: 16px;
}

.detail-container {
    display: flex;
    margin-left: 6%;
    background-color: var(--bs-card-bg);
    /*  background: #edf0f5;*/
}


.detail-wrapper {
    padding: 0.5rem 2rem;
    margin-left: 3.7em;
    border-radius: 4px;
}
/*
.detail-table {
  width: 100%;
  border-collapse: collapse;
}
*/
/*.detail-table th,
  .detail-table td {
    padding: 10px 10px;
    border: 1px solid #ddd;
    text-align: left;
  }*/
/*  .detail-table th {
    background-color: #e0e0e0;
    font-weight: 600;
  }*/
.arrow {
    display: inline-block;
    font-size: 3em;
    color: black;
    margin-right: 5px;
}

.arrow-column {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}

tr.shown td.details-control button::before {
    content: "-";
}

/*.inline-editor-row {
  background-color: #f8f9fa;
}*/

.inline-editor-container {
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .inline-editor-container .form-control,
    .inline-editor-container .select2-container {
        font-size: 0.875rem;
    }

        .inline-editor-container .select2-container .select2-selection--single {
            height: 31px;
        }

        .inline-editor-container .select2-container .select2-selection__rendered {
            line-height: 31px;
        }

        .inline-editor-container .select2-container .select2-selection__arrow {
            height: 31px;
        }

    .inline-editor-container .form-label {
        margin-bottom: 0.25rem;
    }

.is-invalid {
    border-color: #dc3545 !important;
}

/*.error-message {
  color: #dc3545;*/
/*font-size: 0.85rem;*/
/*font-weight:600;
  margin-top: 0.25rem;
}*/
.error-message {
    color: red;
    font-size: 16px;
    font-weight: 600;
    margin-top: 5px;
}

/*@media (max-width: 575.98px) {
  .invoice-edit .invoice-preview-card .invoice-calculations,
  .invoice-add .invoice-preview-card .invoice-calculations {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .invoice-edit .repeater-title,
  .invoice-add .repeater-title {*/
/* position: absolute;*/
/*top: -2.4rem;
  }
}

.invoice-edit .invoice-preview-card .repeater-wrapper:not(:last-child)*/
/*.invoice-add .invoice-preview-card .repeater-wrapper:not(:last-child)*/ /*{
  margin-bottom: 1.5rem;
}

@media print {
  .invoice-edit hr,
  .invoice-add hr {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

.invoice-preview .invoice-preview-header,
.invoice-edit .invoice-preview-header,
.invoice-add .invoice-preview-header {
  background-color: rgba(34, 48, 62, 0.06);
}

.dark-style .invoice-preview .invoice-preview-header,
.dark-style .invoice-edit .invoice-preview-header,
.dark-style .invoice-add .invoice-preview-header {
  background-color: rgba(230, 230, 241, 0.06);
}*/
/*Wizard styling*/
.bs-stepper-content {
    padding: 0 0px 0px;
}

.bs-stepper .bs-stepper-content {
    padding: 0;
}

#personal-info {
    padding: 1.5rem 1.5rem;
}

/*row color */
/* Zebra striping for DataTable */
/*#userTable tbody tr.even-row {*/
/*  background-color: #f9f9f9;*/
/*background-color: var(--bs-table-striped-bg);
}

#userTable tbody tr.odd-row {
  background-color: var(--bs-table-bg);
}*/

/* Optional: Hover effect */

/*#masterTable thead tr {
    background-color: var(--bs-table-striped-bg);
}*/
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_paginate {
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.error-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: red;
    font-size: 1.2rem;
    cursor: help;
    z-index: 2;
}

.form-control.input-validation-error {
    border-bottom: 2px solid red;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

    .form-control.input-validation-error:focus {
        border-bottom: 2px solid red;
        outline: none;
        box-shadow: none;
    }

.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    overflow-y: auto;
    max-height: 100px;
    white-space: normal;
    word-break: break-word;
}




.dataTables_filter .input-group .input-group-text {
    padding: calc(0.2rem - 1px) calc(0.9375rem - var(--bs-border-width));
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


.searchdev .input-group-text i {
    font-size: 0.9rem;
    font-weight: bold;
}
/*.dataTables_filter .input-group {
  display: flex;
  x-wrap: wrap;
}

  .dataTables_filter .input-group .input-group-text {
    padding: calc(0.2rem - 1px) calc(0.9375rem - var(--bs-border-width));
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }*/
/*#wizardTabs .nav-link.active, #innerTabs .nav-link.active {
    color: black;
}

#wizardTabs .nav-link, #innerTabs .nav-link {
    color: grey;
}

    #wizardTabs .nav-link:hover, .nav-tabs .nav-link:focus, #innerTabs .nav-link:hover, .nav-tabs .nav-link:focus {
        color: grey;
    }*/
#innerTabs .nav-link.active, #invoiceTabs .nav-link.active {
    color: black;
}

#innerTabs .nav-link, #invoiceTabs .nav-link {
    color: grey;
}

    #innerTabs .nav-link:hover, #invoiceTabs .nav-link:hover, .nav-tabs .nav-link:focus {
        color: grey;
    }

.search-main #sharedLength {
    width: 170px;
    margin-left: 0.5em;
}

.search-main .input-group-text, .search-main .form-control {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
}

/*.search-main .input-group:focus-within {
    box-shadow: none;
}*/

#innerTabs {
    display: flex;
    border-bottom: 1px solid #dee2e6; /* light underline */
}


.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.no-spinner {
    -moz-appearance: textfield;
}
/*.nav-item {
   background-color: #F5F5F9;
}*/
#innerTabs {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.search-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.dataTables_length select {
    font-size: 12px;
    background-color: white;
}



thead {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, "Noto Sans", Arial, "Odoo Unicode Support Noto", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    letter-spacing: normal;
    color: #374151;
}

.input-group {
    width: 100% !important
}

table.dataTable {
    margin-bottom: 0 !important;
}

/*.table.dataTable {
    box-shadow: 0 0.1875rem 0.5rem 0 rgba(34, 48, 62, 0.1);
}
#masterTable {
    box-shadow: 0 0.1875rem 0.5rem 0 rgba(34, 48, 62, 0.1);
}*/

table.dataTable tbody tr.even-row {
    background-color: #f9f9f9; /* Light gray */
}

table.dataTable tbody tr.odd-row {
    background-color: #ffffff; /* White */
}

table tbody tr:hover {
    background-color: var(--bs-table-striped-bg);
}

table.dataTable tbody tr:hover {
    background-color: var(--bs-table-striped-bg);
}


table.dataTable tbody tr.even-row {
    background-color: #f9f9f9; /* Light gray */
}

table.dataTable tbody tr.odd-row {
    background-color: #ffffff; /* White */
}

table tbody tr:hover {
    background-color: var(--bs-table-striped-bg);
}

table.dataTable tbody tr:hover {
    background-color: var(--bs-table-striped-bg);
}



.remove-row {
    display: none;
}

table.dataTable tbody tr:hover .remove-row {
    display: inline-block;
}

.pagination {
    margin-top: 1.1rem;
    margin-left: -5rem;
}

.page-item .page-link {
    border-radius: 0.375rem !important;
}
/*Delete Button */
.table .delete-btn {
    visibility: hidden;
}

.table tr:hover .delete-btn {
    visibility: visible;
}
.table .edit-btn {
    visibility: hidden;
}

.table tr:hover .edit-btn {
    visibility: visible;
}

.table .print-btn {
    visibility: hidden;
}

.table tr:hover .print-btn {
    visibility: visible;
}




.form-control.no-border-input {
    border: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
}



form .form-select:focus {
    border: none;
    border-bottom: var(--bs-border-width) solid rgb(206.38, 209.46, 212.54);
    border-radius: 0;
    box-shadow: none;
}

form .form-select {
    border: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
}

.form-control.no-border-input:hover {
    border-bottom: var(--bs-border-width) solid #ced4da;
    border-radius: 0;
    box-shadow: none;
}

.form-control.no-border-input:focus {
    border-bottom: 1px solid #0d6efd;
    outline: none;
    box-shadow: none;
}

.select2-container .select2-selection--single {
    border: none !important;
    box-shadow: none !important;
    height: var(--bs-form-select-height, 2.375rem);
    border-bottom: none;
    display: flex;
    align-items: center;
    border-radius: 0 !important;
}

    .select2-container .select2-selection--single:hover {
        border: none !important;
        border-bottom: 1px solid #ced4da !important;
        box-shadow: none !important;
        height: var(--bs-form-select-height, 2.375rem);
        border-bottom: var(--bs-border-width) solid rgb(206.38, 209.46, 212.54);
        display: flex;
        align-items: center;
        border-radius: 0 !important;
    }

/*
.selection {

}*/
.section-wrapper {
    position: relative; /* so toolbar can be positioned inside */
}

.section-toolbar {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 5; /* lower than resize handles (z-index:10), higher than content */
    opacity: 0.6;
    transition: opacity 0.2s;
    background: rgba(255, 255, 255, 0.85); /* subtle background so it doesn't block */
    border-radius: 4px;
}

.section-wrapper:hover .section-toolbar {
    opacity: 1;
}
/* Sidebar container */
#editFormModal {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: #fff;
    border-left: 1px solid #ccc;
    padding: 20px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: -3px 0 8px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-family: Arial, sans-serif;
}

    /* Active sidebar */
    #editFormModal.active {
        transform: translateX(0);
    }

    /* Header */
    #editFormModal .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

        #editFormModal .modal-header h5 {
            margin: 0;
            font-size: 18px;
        }
/*
    #editFormModal .close-btn {
        cursor: pointer;
        font-size: 22px;
    }*/

/* List of fields */
#formFieldList {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #formFieldList .list-group-item {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 12px;
        background: #fafafa;
        display: flex;
        flex-direction: column;
    }

    /* Field header: label + type + show + drag */
    #formFieldList .d-flex.align-items-center {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
    }

    /* Inputs and selects spacing */
    #formFieldList input.form-control-sm,
    #formFieldList select.form-select-sm {
        font-size: 13px;
    }

    /* Field layout options row */
    #formFieldList .d-flex.mt-2 {
        flex-wrap: wrap;
        gap: 2px;
        margin-top: 8px;
    }

    /* Dropdown config */
    #formFieldList .dropdown-config {
        flex-wrap: wrap;
        gap: 2px;
        margin-top: 8px;
    }

        #formFieldList .dropdown-config label {
            font-size: 12px;
            font-weight: 500;
        }

/* Drag handle */
.drag-handle {
    cursor: move;
    color: #555;
}

#editFormModal {
    z-index: 2000; /* navbar may be 1000+ */
}

@media (max-width: 640px) {
    #LocationTable td.desktop-only, #LocationTable th.desktop-only,
    #categoryTable td.desktop-only, #categoryTable th.desktop-only,
    #ChartTable td.desktop-only, #ChartTable th.desktop-only,
    #AccountOpeningTable td.desktop-only, #AccountOpeningTable th.desktop-only,
    #BankPaymentTable td.desktop-only, #BankPaymentTable th.desktop-only,
    #BankReceiptTable td.desktop-only, #BankReceiptTable th.desktop-only,
    #CashPaymentTable td.desktop-only, #CashPaymentTable th.desktop-only,
    #CashReceiptTable td.desktop-only, #CashReceiptTable th.desktop-only,
    #GeneralJournalTable td.desktop-only, #GeneralJournalTable th.desktop-only,
    #masterTable td.desktop-only, #masterTable th.desktop-only {
        display: none !important;
    }
}
