@font-face {
    font-family: 'MenuFont';
    src: url('/asset/fonts/Open_Sans/static/OpenSans-Medium.ttf');
}

html {
    height: 100%;
    overflow: inherit;
}

body {
    font-family: -apple-system, Roboto, MenuFont, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", 'Open Sans', Arial sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    height: 100%;
    margin: 0;
}

#overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    width: 100%;
    height: 100%;
    background: transparent url('/asset/images/loader.gif') center center no-repeat;
    opacity: 0.5;
}

.shrink {
    width: 1%;
    white-space: nowrap;
}

.w-1 {
    width: 1% !important
}

.w-10 {
    width: 10% !important
}

.w-20 {
    width: 20% !important
}

.w-60 {
    width: 60% !important
}

.w-80 {
    width: 80% !important
}

.w-90 {
    width: 90% !important
}


.w-90 {
    width: 99% !important
}


.heading {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.fs-7 {
    font-size: .8rem !important;
    line-height: 1.25 !important;
}

.form-check-input {
    border: 1px solid #325d88;
}

.col-form-label, .form-label {
    font-weight: bold;
    margin-bottom: 0;
}

.link {
    cursor: pointer;
}

.image-column {
    width: 0; /* Default width when empty */
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
}

.image-column:empty {
    width: 0; /* Ensure width stays 0 when empty */
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
}

.image-column:not(:empty) {
    width: 100px; /* Width when there is content */
}

.image-client-thumbnail {
    width: 100px;
}

.language-icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    margin-bottom: 3px;
}

[data-bs-theme=light] {
    --bs-link-color-rgb: 20, 134, 112;
    --bs-link-hover-color-rgb: 12, 80, 67;
    --bs-link-color: #148670 !important; /* Darker shade of #18bc9c */
    --bs-link-hover-color: #0c5043 !important; /* Even darker for hover */
}

.row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

/*.table-secondary {*/
/*    --bs-table-color: #fff;*/
/*    --bs-table-bg: #95a5a6;*/
/*    --bs-table-border-color: #aab7b8;*/
/*    --bs-table-striped-bg: #9aaaaa;*/
/*    --bs-table-striped-color: #fff;*/
/*    --bs-table-active-bg: #a0aeaf;*/
/*    --bs-table-active-color: #fff;*/
/*    --bs-table-hover-bg: #9dacad;*/
/*    --bs-table-hover-color: #fff;*/
/*    color: var(--bs-table-color);*/
/*    border-color: var(--bs-table-border-color)*/
/*}*/


.table-hide-head thead {
    display: none;
}

label.required:after {
    content: " *";
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.small-container {
    max-width: 960px; /* Smaller than 540px */
    width: 100%;
    margin: 0 auto;
}

.custom-popover {
    --bs-popover-header-font-size: 1rem;
    --bs-popover-font-size: 1rem;
}

.dropdown-menu-2-columns {
    column-count: 2;
    column-gap: 20px;
    max-height: 600px;
    overflow-y: auto;
}

/* sortable */
.drag-source {
    opacity: 0.5;
    background-color: var(--bs-secondary) #d1d5db !important;
}

.handle {
    cursor: grab;
    touch-action: none;
}

.handle:active {
    cursor: grabbing;
}

[data-bs-theme="dark"] {
    .drop-zone-border-top {
        border-top: 3px solid var(--bs-light);
    }

    .drop-zone-border {
        border-bottom: 3px solid var(--bs-light);

    }

    --bs-info-bg-subtle: #00324b;
    --bs-success-bg-subtle: #004b32;
    --bs-danger-bg-subtle: #4b0000;
    --bs-warning-bg-subtle: #643202;
}

[data-bs-theme="light"] {
    .table > tbody > tr {
        border-bottom-width: 1px;
        border-bottom-color: #999;
        border-top-width: 1px;
        border-top-color: #999;
    }

    .table > thead > tr {
        border-bottom-width: 1px;
        border-bottom-color: #999;
        /*border-top-width: 1px !important;*/
        /*border-top-color: #999 !important;*/

    }
}

[data-bs-theme="dark"] {
    .table > tbody > tr {
        border-bottom-width: 1px;
        /*border-bottom-color: #999 !important;*/
        border-top-width: 1px;
        /*border-top-color: #999 !important;*/
    }

    .table > thead > tr {
        border-bottom-width: 1px;
        /*border-bottom-color: #999 !important;*/
        /*border-top-width: 1px !important;*/
        /*border-top-color: #999 !important;*/

    }
}

[data-bs-theme="light"] {
    .drop-zone-border-top {
        border-top: 3px solid var(--bs-primary) !important;
    }

    .drop-zone-border {
        border-bottom: 3px solid var(--bs-primary) !important;
    }
}

/*.table > thead > th {*/
/*  border-bottom: none !important;*/
/*}*/
/*.table > tbody > tr:first-child > td {*/
/*    border-top-width: 1px !important;*/
/*    border-top-color: #999 !important;*/
/*}*/


/* Light mode */
.oe-hover {
  --bs-table-bg: #f8f9fa !important;
  --bs-table-color: #212529 !important;
}

/* Dark mode */
[data-bs-theme="dark"] .oe-hover {
  --bs-table-bg: #2d3338 !important;
  --bs-table-color: #e9ecef !important;

}
