/* =================================================================
   CUSTOM TABLER THEME VARIABLES
   Based on Tabler.io standards
   ================================================================= */

:root {
    /* Custom Color Palette - Light Theme */
    --tblr-custom-primary: #0F5B97;
    --tblr-custom-header: #f8b967;
    --tblr-custom-sub-header: #99c7f1;
    --tblr-custom-yellow-lightest: #fef5e6;
    --tblr-custom-blue-lightest: #f5f8fb;
    --tblr-custom-pink-lightest: #fffbf3;
    --tblr-custom-green-lightest: rgba(213, 246, 213, 0.27);
    --tblr-custom-green: #95dfac;
    --tblr-custom-table-header: #ebf3fd;
    --tblr-custom-table-child: #F7FAFE;

    /* Typography */
    --tblr-custom-font-size-mini: 0.625rem;
    --tblr-custom-font-size-small: 0.725rem;
    --tblr-custom-font-size-medium: 0.775rem;
    --tblr-custom-font-size-header: 0.800rem;

    /* Layout */
    --tblr-custom-header-height: 56px;
    --tblr-custom-footer-height: 20px;
    --tblr-custom-offcanvas-width: 65%;
    --tblr-custom-table-height: 400px;
    --tblr-custom-icon-size: 25px;
    --tblr-custom-icon-md-size: 40%;

    /* Spacing */
    --tblr-custom-spacing-xs: 0.25rem;
    --tblr-custom-spacing-sm: 0.5rem;
    --tblr-custom-spacing-md: 1rem;
    --tblr-custom-spacing-lg: 1.5rem;
    --tblr-custom-spacing-xl: 3rem;
    --tblr-custom-spacing-xxl: 5rem;
}

/* Dark theme overrides */
[data-bs-theme="dark"] {
    --tblr-custom-header: #2d4356;
    --tblr-custom-sub-header: #3d5a7a;
    --tblr-custom-yellow-lightest: #2a251f;
    --tblr-custom-blue-lightest: #1f2528;
    --tblr-custom-pink-lightest: #2a2722;
    --tblr-custom-green-lightest: rgba(45, 82, 45, 0.27);
    --tblr-custom-green: #4a6b4f;
    --tblr-custom-table-header: #2a3441;
    --tblr-custom-table-child: #232b36;
}

/* Override Tabler primary color */
:root {
    --tblr-primary: var(--tblr-custom-primary);
}

/* =================================================================
   FORM COMPONENTS
   ================================================================= */

.form-label,
.form-check-label,
.col-form-label {
    font-size: var(--tblr-custom-font-size-mini);
    font-weight: var(--tblr-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1rem;
    color: var(--tblr-secondary-color);
    margin-bottom: var(--tblr-custom-spacing-xs);
}

/* Dark theme form labels - make them more readable */
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .form-check-label,
[data-bs-theme="dark"] .col-form-label {
    color: var(--tblr-emphasis-color);
    opacity: 0.9;
}

/* Light theme form labels - keep original muted style */
[data-bs-theme="light"] .form-label,
[data-bs-theme="light"] .form-check-label,
[data-bs-theme="light"] .col-form-label {
    color: var(--tblr-muted);
}

.col-form-label {
    padding: 2px;
}


/* Read-only input styles */
input:read-only[type='text'] {
    background-color: var(--tblr-bg-surface-secondary) !important;
    color: var(--tblr-body-color);
    opacity: 1;
}

input:read-only[placeholder='d M, Y'],
input:read-only[placeholder='dd/mm/yyyy'],
input:read-only[placeholder='d/m/y to d/m/y'],
input:read-only[placeholder='d/m/y h:m'] {
    background-color: var(--tblr-bg-surface) !important;
    color: var(--tblr-body-color);
    opacity: 1;
}

/* Custom calendar styling */
.cust-calender {
    position: relative;
}

.cust-calender i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tblr-muted);
}

/* Form group legend */
.form-group legend {
    display: none;
}

/* Form background */
.form_content_background {
    background-color: var(--tblr-bg-surface-secondary);
}

/* =================================================================
   TABLE COMPONENTS
   ================================================================= */

.table thead th {
    font-size: var(--tblr-custom-font-size-small);
    color: var(--tblr-body-color);
}

/* Custom table colors */
.custom-th-color {
    background-color: var(--tblr-custom-table-header);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

.custom-th-child-color {
    background-color: var(--tblr-custom-table-child);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

/* Table scroll container */
.tbl-scroll {
    height: var(--tblr-custom-table-height);
    overflow: auto;
    border: 1px solid var(--tblr-border-color);
}

/* Fixed column table styles */
.custom-td-fixed th:first-child,
.custom-td-fixed td:first-child {
    position: sticky;
    left: 0;
    background-color: var(--tblr-custom-table-child);
    color: var(--tblr-body-color);
    padding: 0 10px;
}

.custom-td-fixed th:first-child:after,
.custom-td-fixed td:first-child:after {
    content: '';
    width: 100%;
    border-bottom: 1px solid var(--tblr-border-color);
    position: absolute;
    left: 0;
    height: auto;
    bottom: -1px;
}

.custom-td-fixed thead th:after {
    content: '';
    width: 100%;
    border-right: 1px solid var(--tblr-border-color);
    position: absolute;
    right: 0;
    height: 100%;
    bottom: 0;
}

.custom-td-fixed thead th {
    position: sticky;
    top: 0;
    background-color: var(--tblr-custom-table-header);
    color: var(--tblr-body-color);
}

/* =================================================================
   HEADER AND NAVIGATION
   ================================================================= */

.custom-header {
    background-color: var(--tblr-custom-header);
}

.custom-header-color {
    color: var(--tblr-custom-primary);
}

.custom-sub-header {
    background-color: var(--tblr-custom-sub-header);
}

.custom-header-menu {
    color: var(--tblr-body-color);
    font-size: var(--tblr-custom-font-size-header);
    font-weight: 500;
}

.navbar-header {
    margin-top: var(--tblr-custom-header-height);
}

@media (max-width: 992px) {
    .navbar-header {
        margin-top: 0;
    }
}

.main-header .navbar-nav .nav-item ul {
    margin: 0;
    padding: 0;
}

.toggleMenu {
    display: none;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

/* Background utilities */
.bg-yellow-lightest {
    background-color: var(--tblr-custom-yellow-lightest);
    color: var(--tblr-body-color);
}

.bg-blue-lightest {
    background-color: var(--tblr-custom-blue-lightest);
    color: var(--tblr-body-color);
}

.bg-pink-lightest {
    background-color: var(--tblr-custom-pink-lightest);
    color: var(--tblr-body-color);
}

.bg-green-lightest {
    background-color: var(--tblr-custom-green-lightest);
    color: var(--tblr-body-color);
}

.bg-custom-green {
    background-color: var(--tblr-custom-green);
    color: var(--tblr-body-color);
}

/* Text utilities */
.text-mini {
    font-size: var(--tblr-custom-font-size-medium) !important;
    color: var(--tblr-body-color);
}

/* Spacing utilities */
.mb-n5 {
    margin-bottom: calc(var(--tblr-custom-spacing-xxl) * -1) !important;
}

.mt-n4 {
    margin-top: calc(var(--tblr-custom-spacing-lg) * -1) !important;
}

.mx-n4 {
    margin-right: calc(var(--tblr-custom-spacing-lg) * -1) !important;
    margin-left: calc(var(--tblr-custom-spacing-lg) * -1) !important;
}

/* =================================================================
   COMPONENT OVERRIDES
   ================================================================= */

/* Button overrides */
.btn-primary {
    --tblr-btn-bg: var(--tblr-custom-primary);
    --tblr-btn-border-color: var(--tblr-custom-primary);
    --tblr-btn-hover-bg: var(--tblr-custom-primary);
    --tblr-btn-hover-border-color: var(--tblr-custom-primary);
}

/* Dropdown overrides */
.dropdown-menu {
    background-color: var(--tblr-bg-surface);
    border-color: var(--tblr-border-color);
}

.dropdown-menu-column .dropdown-item {
    color: var(--tblr-body-color);
}

.dropdown-menu-column .dropdown-item:hover {
    color: var(--tblr-custom-primary);
    background-color: var(--tblr-bg-surface-secondary);
}

/* Interface block styles */
.interfaceBlock .dropdown-menu-columns {
    display: flex;
    flex: 0 0.25rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.interfaceBlock .dropdown-menu-column {
    min-width: 47%;
    width: 47%;
}

/* Link hover effects */
a:hover {
    text-decoration: none;
    color: var(--tblr-link-hover-color);
}

/* Icon utilities */
.icon-color-green {
    filter: drop-shadow(0 1px 0 var(--tblr-custom-green));
}

.custom-icon {
    width: var(--tblr-custom-icon-size);
}

.icon-md {
    max-width: var(--tblr-custom-icon-md-size);
}

/* Footer */
.custom-footer {
    height: var(--tblr-custom-footer-height);
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
}

/* Offcanvas override */
.offcanvas {
    --tblr-offcanvas-width: var(--tblr-custom-offcanvas-width);
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
}

/* =================================================================
   THIRD-PARTY COMPONENT OVERRIDES
   ================================================================= */

/* TomSelect v2.3.1 overrides */
.ts-dropdown {
    background: var(--tblr-bg-surface) !important;
    border-color: var(--tblr-border-color) !important;
    color: var(--tblr-body-color) !important;
}

.tom-select-fieldset-class {
    display: flex;
    justify-content: space-between;
}

.tom-select-fieldset-class .ts-wrapper {
    width: 45%;
}

.tom-select-duration-fieldset-class {
    display: flex;
    justify-content: space-between;
}

.tom-select-duration-fieldset-class .ts-wrapper {
    width: 100%;
}

/* DataTables UI overrides */
.domLength .dt-length label {
    display: none;
}

.domLength .dt-length label .form-select {
    margin: 0 10px;
    width: 60px;
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

.domSearch .dt-search label {
    display: none;
}

.domSearch .dt-search label input {
    margin-left: 10px;
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

/* DataTables wrapper styling */
.dataTables_wrapper {
    color: var(--tblr-body-color);
}

/* Flatpickr calendar overrides */
.flatpickr-calendar.inline,
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
    width: 100%;
    padding: 2px;
    box-shadow: none;
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
}

.flatpickr-day {
    width: 100px;
    max-width: 100px;
    margin: 6px 0;
    color: var(--tblr-body-color);
}

.flatpickr-day:hover {
    background-color: var(--tblr-bg-surface-secondary);
}

.flatpickr-day.selected {
    background-color: var(--tblr-primary);
    color: var(--tblr-white);
}

.dayContainer {
    min-width: 100%;
    max-width: 100%;
    padding: 2px;
}

.flatpickr-weekdays {
    background-color: var(--tblr-custom-header);
    color: var(--tblr-body-color);
    height: 50px;
}

.flatpickr-current-month {
    padding: 0;
    color: var(--tblr-body-color);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 0;
    color: var(--tblr-body-color);
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    border: 1px solid var(--tblr-border-color);
    margin: 0;
    border-radius: var(--tblr-border-radius);
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
}

/* =================================================================
   CUSTOM COMPONENTS
   ================================================================= */

/* Tracking block */
.tracking-block {
    padding: 2px 5px 5px;
    min-width: 35px;
    max-width: 35px;
    background-color: var(--tblr-bg-surface-secondary);
    color: var(--tblr-body-color);
    border: 1px solid var(--tblr-border-color);
}

/* Progress overlay */
body.progress-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    background-color: var(--tblr-body-bg);
    opacity: 0.95;
    z-index: 99;
}

body.progress-overlay:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    background-color: var(--tblr-body-bg);
    opacity: 0.95;
    z-index: 99;
}

/* Document settings */
.doc-setting {
    position: fixed;
    bottom: 5%;
    right: 20px;
    z-index: 1000;
    background-color: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    color: var(--tblr-body-color);
}

/* Document settings */
.activity-setting {
    position: fixed;
    bottom: 5%;
    right: 100px;
    z-index: 1000;
    background-color: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    color: var(--tblr-body-color);
}

/* Scroll container and indicators */
.scroll-container {
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--tblr-border-color) transparent;
}

.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--tblr-border-color);
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--tblr-muted);
}

.scroll-indicator {
    position: absolute;
    right: 8px;
    background: var(--tblr-body-color);
    color: var(--tblr-body-bg);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

.scroll-indicator:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.scroll-indicator-top {
    top: 8px;
}

.scroll-indicator-bottom {
    bottom: 8px;
}

.scroll-indicator.fade-out {
    opacity: 0.3;
}

/* Theme toggle button styles */
.nav-item [data-theme-target="toggle"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: var(--tblr-white);
}

.nav-item [data-theme-target="toggle"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item [data-theme-target="toggle"] svg {
    width: 20px;
    height: 20px;
}

/* Ensure proper theme transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* =================================================================
   TOMSELECT DARK MODE ENHANCEMENTS
   Fix for selected option visibility issues in dark mode
   ================================================================= */

/* Enhanced dark mode TomSelect styling */
[data-bs-theme="dark"] .ts-wrapper.single .ts-control,
[data-bs-theme="dark"] .ts-wrapper.multi .ts-control {
    background-color: var(--tblr-bg-surface-dark, #1f2937) !important;
    border-color: var(--tblr-border-color-dark, #374151) !important;
    color: var(--tblr-body-color-dark, #e5e7eb) !important;
}

/* Selected items in multi-select dark mode */
[data-bs-theme="dark"] .ts-wrapper.multi .ts-control .item {
    background-color: var(--tblr-primary, #6aa9e7) !important;
    color: var(--tblr-white, #ffffff) !important;
    border-color: var(--tblr-primary, #6aa9e7) !important;
}

/* Single select selected value in dark mode */
[data-bs-theme="dark"] .ts-wrapper.single .ts-control .item {
    background-color: transparent !important;
    color: var(--tblr-body-color-dark, #e5e7eb) !important;
    border: none !important;
}

/* Dropdown styling for dark mode */
[data-bs-theme="dark"] .ts-dropdown {
    background-color: var(--tblr-bg-surface-dark, #1f2937) !important;
    border-color: var(--tblr-border-color-dark, #374151) !important;
    color: var(--tblr-body-color-dark, #e5e7eb) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

/* Dropdown options in dark mode */
[data-bs-theme="dark"] .ts-dropdown .option {
    background-color: transparent !important;
    color: var(--tblr-body-color-dark, #e5e7eb) !important;
}

/* Hover and active states for dropdown options */
[data-bs-theme="dark"] .ts-dropdown .option:hover,
[data-bs-theme="dark"] .ts-dropdown .option.active {
    background-color: var(--tblr-primary, #6aa9e7) !important;
    color: var(--tblr-white, #ffffff) !important;
}

/* Selected options in dropdown */
[data-bs-theme="dark"] .ts-dropdown .option.selected {
    background-color: var(--tblr-bg-surface-secondary-dark, #2d3748) !important;
    color: var(--tblr-body-color-dark, #e5e7eb) !important;
}

/* Input field styling in dark mode */
[data-bs-theme="dark"] .ts-wrapper .ts-control input {
    color: var(--tblr-body-color-dark, #e5e7eb) !important;
    background-color: transparent !important;
}

/* Placeholder text in dark mode */
[data-bs-theme="dark"] .ts-wrapper .ts-control input::placeholder {
    color: var(--tblr-text-muted-dark, #9ca3af) !important;
    opacity: 0.7 !important;
}

/* Focus state for dark mode */
[data-bs-theme="dark"] .ts-wrapper.focus .ts-control {
    border-color: var(--tblr-primary, #6aa9e7) !important;
    box-shadow: 0 0 0 0.25rem rgba(106, 169, 227, 0.25) !important;
}

/* Disabled state in dark mode */
[data-bs-theme="dark"] .ts-wrapper.disabled .ts-control {
    opacity: 0.6 !important;
    background-color: var(--tblr-bg-surface-tertiary-dark, #111827) !important;
    color: var(--tblr-text-muted-dark, #6b7280) !important;
}

/* Remove button for multi-select items in dark mode */
[data-bs-theme="dark"] .ts-wrapper.multi .ts-control .item .remove {
    color: var(--tblr-white, #ffffff) !important;
    opacity: 0.8 !important;
}

[data-bs-theme="dark"] .ts-wrapper.multi .ts-control .item .remove:hover {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
}

/* Light mode enhancements to ensure consistency */
[data-bs-theme="light"] .ts-wrapper.single .ts-control,
[data-bs-theme="light"] .ts-wrapper.multi .ts-control {
    background-color: var(--tblr-bg-surface, #ffffff) !important;
    border-color: var(--tblr-border-color, #e5e7eb) !important;
    color: var(--tblr-body-color, #1f2937) !important;
}

[data-bs-theme="light"] .ts-wrapper.multi .ts-control .item {
    background-color: var(--tblr-primary, #066fd1) !important;
    color: var(--tblr-white, #ffffff) !important;
    border-color: var(--tblr-primary, #066fd1) !important;
}

[data-bs-theme="light"] .ts-dropdown {
    background-color: var(--tblr-bg-surface, #ffffff) !important;
    border-color: var(--tblr-border-color, #e5e7eb) !important;
    color: var(--tblr-body-color, #1f2937) !important;
}

/* Override any conflicting styles from existing theme classes */
.ts-theme-dark .ts-wrapper.single .ts-control,
.ts-theme-dark .ts-wrapper.multi .ts-control,
.ts-theme-light .ts-wrapper.single .ts-control,
.ts-theme-light .ts-wrapper.multi .ts-control {
    transition: all 0.2s ease !important;
}

/* Ensure proper visibility for all text elements */
[data-bs-theme="dark"] .ts-wrapper .ts-control,
[data-bs-theme="dark"] .ts-dropdown {
    font-weight: 400 !important;
}

[data-bs-theme="dark"] .ts-wrapper.single .ts-control .item,
[data-bs-theme="dark"] .ts-wrapper .ts-control input {
    font-weight: 400 !important;
    text-shadow: none !important;
}

/* =================================================================
   END TOMSELECT DARK MODE ENHANCEMENTS
   ================================================================= */


/* =================================================================
   MODAL AND CARD OVERRIDES
   ================================================================= */

.modal-content {
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

.modal-header {
    background-color: var(--tblr-bg-surface-secondary);
    border-color: var(--tblr-border-color);
}

.modal-footer {
    background-color: var(--tblr-bg-surface-secondary);
    border-color: var(--tblr-border-color);
}

.card {
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

.card-header {
    background-color: var(--tblr-bg-surface-secondary);
    border-color: var(--tblr-border-color);
}

.card-footer {
    background-color: var(--tblr-bg-surface-secondary);
    border-color: var(--tblr-border-color);
}

/* =================================================================
   ALERT AND NOTIFICATION OVERRIDES
   ================================================================= */

.alert {
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

.alert-success {
    background-color: var(--tblr-success-bg-subtle);
    border-color: var(--tblr-success-border-subtle);
    color: var(--tblr-success-text-emphasis);
}

.alert-danger {
    background-color: var(--tblr-danger-bg-subtle);
    border-color: var(--tblr-danger-border-subtle);
    color: var(--tblr-danger-text-emphasis);
}

.alert-warning {
    background-color: var(--tblr-warning-bg-subtle);
    border-color: var(--tblr-warning-border-subtle);
    color: var(--tblr-warning-text-emphasis);
}

.alert-info {
    background-color: var(--tblr-info-bg-subtle);
    border-color: var(--tblr-info-border-subtle);
    color: var(--tblr-info-text-emphasis);
}

/* =================================================================
   FORM CONTROL OVERRIDES
   ================================================================= */

.form-control,
.form-select,
.form-check-input {
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--tblr-primary-rgb), 0.25);
}

.form-control::placeholder {
    color: var(--tblr-secondary-color);
}

/* =================================================================
   LIST GROUP OVERRIDES
   ================================================================= */

.list-group-item {
    background-color: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    border-color: var(--tblr-border-color);
}

.list-group-item:hover {
    background-color: var(--tblr-bg-surface-secondary);
}

.list-group-item.active {
    background-color: var(--tblr-primary);
    color: var(--tblr-white);
    border-color: var(--tblr-primary);
}

/*.showAccommodationRateBlock {*/
/*    max-height: 600px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/

/*.showRestaurantRateBlock {*/
/*    max-height: 300px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/

/*.showActivityRateBlock {*/
/*    max-height: 400px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/

/*.showTransferRateBlock {*/
/*    max-height: 400px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/

/*.showFerryRateBlock {*/
/*    max-height: 400px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/

/*.showRentalRateBlock {*/
/*    max-height: 400px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/

/*.showRentalMiscBlock {*/
/*    max-height: 300px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/

/*.showRentalGuideBlock {*/
/*    max-height: 300px;*/
/*    overflow-y: auto;*/
/*    overflow-x: hidden;*/
/*    scroll-behavior: smooth;*/
/*}*/


/* Trumbowyg custom styles for Tabler theme */
.trumbowyg-box {
    border: 1px solid var(--tblr-border-color, #dee2e6);
    border-radius: var(--tblr-border-radius, 4px);
    font-family: var(--tblr-font-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.trumbowyg-editor {
    min-height: 120px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.4285714286;
    padding: 0.5rem 0.75rem;
    background-color: var(--tblr-body-bg, #ffffff);
    color: var(--tblr-body-color, #1e293b);
}

.trumbowyg-button-pane {
    background: var(--tblr-bg-surface, #f8f9fa);
    border-bottom: 1px solid var(--tblr-border-color, #dee2e6);
    border-radius: var(--tblr-border-radius, 4px) var(--tblr-border-radius, 4px) 0 0;
    padding: 0.25rem;
}

.trumbowyg-button-pane button {
    color: var(--tblr-body-color, #1e293b);
    border-radius: var(--tblr-border-radius-sm, 2px);
    border: none;
    background: transparent;
    padding: 0.375rem;
    margin: 0.125rem;
    width: auto;
    height: auto;
}

.trumbowyg-button-pane button:hover {
    background-color: var(--tblr-hover-bg, #e9ecef);
}

.trumbowyg-button-pane .trumbowyg-active {
    background-color: var(--tblr-primary, #206bc4) !important;
    color: var(--tblr-primary-fg, #ffffff) !important;
}

.trumbowyg-button-pane .trumbowyg-button-group:not(:last-child):after {
    content: '';
    display: inline-block;
    width: 1px;
    background: var(--tblr-border-color, #dee2e6);
    margin: 0 0.25rem;
    vertical-align: middle;
    height: 20px;
}

/* Dark theme support */
[data-bs-theme="dark"] .trumbowyg-box {
    background: var(--tblr-dark, #1e293b);
    border-color: var(--tblr-border-color-dark, #374151);
}

[data-bs-theme="dark"] .trumbowyg-editor {
    background: var(--tblr-dark, #1e293b);
    color: var(--tblr-body-color-dark, #f8f9fa);
}

/*[data-bs-theme="dark"] .trumbowyg-button-pane {*/
/*    background: var(--tblr-bg-surface-dark, #374151);*/
/*    border-color: var(--tblr-border-color-dark, #374151);*/
/*}*/

/*[data-bs-theme="dark"] .trumbowyg-button-pane button {*/
/*    color: var(--tblr-body-color-dark, #f8f9fa);*/
/*}*/

/*[data-bs-theme="dark"] .trumbowyg-button-pane button:hover {*/
/*    background-color: var(--tblr-hover-bg-dark, #475569);*/
/*}*/

/* Table styles */
.trumbowyg-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
}

.trumbowyg-editor table td,
.trumbowyg-editor table th {
    border: 1px solid var(--tblr-border-color, #dee2e6);
    padding: 0.5rem;
}

.trumbowyg-editor table th {
    background-color: var(--tblr-bg-surface, #f8f9fa);
    font-weight: 600;
}

/* Modal and dropdown styles */
.trumbowyg-modal-box {
    background: var(--tblr-body-bg, #ffffff);
    border: 1px solid var(--tblr-border-color, #dee2e6);
    border-radius: var(--tblr-border-radius, 4px);
}

.trumbowyg-dropdown {
    background: var(--tblr-body-bg, #ffffff);
    border: 1px solid var(--tblr-border-color, #dee2e6);
    border-radius: var(--tblr-border-radius, 4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trumbowyg-button-pane {
        flex-wrap: wrap;
    }

    .trumbowyg-button-pane button {
        padding: 0.25rem;
        margin: 0.1rem;
    }
}

/* =================================================================
   FLATPICKR DARK MODE SUPPORT ONLY
   Light theme uses default Flatpickr styles
   ================================================================= */

/* Dark mode calendar container */
[data-bs-theme="dark"] .flatpickr-calendar {
    background: var(--tblr-bg-surface, #1f2937);
    border-color: var(--tblr-border-color, #374151);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    color: var(--tblr-body-color, #e5e7eb);
}

/* Dark mode month header */
[data-bs-theme="dark"] .flatpickr-months {
    background: var(--tblr-bg-surface-secondary, #2d3748);
    border-color: var(--tblr-border-color, #374151);
}

[data-bs-theme="dark"] .flatpickr-current-month {
    color: var(--tblr-body-color, #e5e7eb);
}

[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--tblr-bg-surface, #1f2937);
    border-color: var(--tblr-border-color, #374151);
    color: var(--tblr-body-color, #e5e7eb);
}

/* Dark mode navigation arrows */
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month {
    color: var(--tblr-body-color, #e5e7eb);
    fill: var(--tblr-body-color, #e5e7eb);
}

[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month:hover {
    color: var(--tblr-primary, #60a5fa);
    fill: var(--tblr-primary, #60a5fa);
}

/* Dark mode weekday headers */
[data-bs-theme="dark"] .flatpickr-weekdays {
    background: var(--tblr-bg-surface-secondary, #2d3748);
}

[data-bs-theme="dark"] .flatpickr-weekday {
    color: var(--tblr-secondary-color, #9ca3af);
}

/* Dark mode day container */
[data-bs-theme="dark"] .flatpickr-days {
    background: var(--tblr-bg-surface, #1f2937);
}

[data-bs-theme="dark"] .flatpickr-day {
    color: var(--tblr-body-color, #e5e7eb);
}

/* Dark mode day hover */
[data-bs-theme="dark"] .flatpickr-day:hover,
[data-bs-theme="dark"] .flatpickr-day:focus {
    background: var(--tblr-bg-surface-secondary, #374151);
    border-color: var(--tblr-border-color, #4b5563);
    color: var(--tblr-body-color, #f3f4f6);
}

/* Dark mode selected day */
[data-bs-theme="dark"] .flatpickr-day.selected,
[data-bs-theme="dark"] .flatpickr-day.startRange,
[data-bs-theme="dark"] .flatpickr-day.endRange {
    background: var(--tblr-primary, #60a5fa) !important;
    border-color: var(--tblr-primary, #60a5fa) !important;
    color: var(--tblr-white, #ffffff) !important;
}

/* Dark mode today indicator */
[data-bs-theme="dark"] .flatpickr-day.today {
    border-color: var(--tblr-primary, #60a5fa);
    color: var(--tblr-primary, #60a5fa);
}

[data-bs-theme="dark"] .flatpickr-day.today:not(.selected) {
    background: transparent;
}

/* Dark mode range selection */
[data-bs-theme="dark"] .flatpickr-day.inRange {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    color: var(--tblr-body-color, #e5e7eb);
}

/* Dark mode disabled/adjacent month days */
[data-bs-theme="dark"] .flatpickr-day.disabled,
[data-bs-theme="dark"] .flatpickr-day.nextMonthDay:not(.selected),
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay:not(.selected) {
    color: var(--tblr-secondary-color, #6b7280);
    opacity: 0.4;
}

/* Dark mode time picker (if enabled) */
[data-bs-theme="dark"] .flatpickr-time {
    background: var(--tblr-bg-surface, #1f2937);
    border-color: var(--tblr-border-color, #374151);
    color: var(--tblr-body-color, #e5e7eb);
}

[data-bs-theme="dark"] .flatpickr-time input {
    background: var(--tblr-bg-surface-secondary, #374151);
    border-color: var(--tblr-border-color, #4b5563);
    color: var(--tblr-body-color, #e5e7eb);
}

[data-bs-theme="dark"] .flatpickr-time input:focus {
    border-color: var(--tblr-primary, #60a5fa);
}

[data-bs-theme="dark"] .flatpickr-am-pm {
    background: var(--tblr-bg-surface-secondary, #374151);
    border-color: var(--tblr-border-color, #4b5563);
    color: var(--tblr-body-color, #e5e7eb);
}

[data-bs-theme="dark"] .flatpickr-am-pm:hover {
    background: var(--tblr-primary, #60a5fa);
    color: var(--tblr-white, #ffffff);
}

/* =================================================================
   END FLATPICKR DARK MODE SUPPORT
   ================================================================= */




/*!* Ensure proper z-index for calendar dropdown *!*/
.flatpickr-calendar:not(.inline) {
    z-index: 1050;
}

/* =================================================================
   END FLATPICKR DARK MODE ENHANCEMENTS
   ================================================================= */

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

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

.w-30 {
    width: 30% !important;
}

.w-40 {
    width: 40% !important;
}

body.progress-overlay {
    position: fixed;
    content: '';
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    /*background: rgb(240, 240, 240);*/
    /*transition: opacity 0.5s, width 0.5s;*/
    width: 100vw;
    opacity: 0.95;
    z-index: 99;
}

body.progress-overlay:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    /*background: rgba(240, 240, 240, 0.47);*/
    /*transition: opacity 0.5s, width 0.5s;*/
    width: 100vw;
    opacity: 0.95;
    z-index: 99;
}
