/*
 * Visual refresh for the shared application shell.
 * This layer intentionally avoids width, height and layout changes.
 */
:root {
    --ui-primary: #298986;
    --ui-primary-dark: #246f6d;
    --ui-primary-soft: rgba(41, 137, 134, .12);
    --ui-primary-ring: rgba(41, 137, 134, .18);
    --ui-ink: #263735;
    --ui-muted: #71807e;
    --ui-border: #cfdad8;
    --ui-border-hover: #9eb8b4;
    --ui-surface: #ffffff;
    --ui-surface-subtle: #f6f8f8;
    --ui-disabled: #edf1f1;
    --ui-danger: #c94b48;
    --ui-danger-ring: rgba(201, 75, 72, .16);
    --ui-success: #34865d;
    --ui-success-ring: rgba(52, 134, 93, .16);
    --ui-level-high: #367fbd;
    --ui-level-positive: #2d9a78;
    --ui-level-warning: #dda12d;
    --ui-level-negative: #ce5e58;
}

/* Calculated values: preserve the system's existing semantic classes. */
.progress > .progress-bar.bg-primary {
    background-color: var(--ui-level-high) !important;
}

.progress > .progress-bar.bg-success {
    background-color: var(--ui-level-positive) !important;
}

.progress > .progress-bar.bg-warning {
    background-color: var(--ui-level-warning) !important;
}

.progress > .progress-bar.bg-danger {
    background-color: var(--ui-level-negative) !important;
}

.progress > .progress-bar.bg-primary,
.progress > .progress-bar.bg-success,
.progress > .progress-bar.bg-warning,
.progress > .progress-bar.bg-danger {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 1px 4px rgba(37, 64, 61, .12);
}

.circular-chart {
    --ui-meter-color: var(--ui-level-high);
    --ui-meter-glow: rgba(54, 127, 189, .2);
    filter: drop-shadow(0 5px 10px var(--ui-meter-glow));
}

.circular-chart.blue {
    --ui-meter-color: var(--ui-level-high);
    --ui-meter-glow: rgba(54, 127, 189, .2);
}

.circular-chart.green {
    --ui-meter-color: var(--ui-level-positive);
    --ui-meter-glow: rgba(45, 154, 120, .2);
}

.circular-chart.orange {
    --ui-meter-color: var(--ui-level-warning);
    --ui-meter-glow: rgba(221, 161, 45, .2);
}

.circular-chart.red {
    --ui-meter-color: var(--ui-level-negative);
    --ui-meter-glow: rgba(206, 94, 88, .2);
}

.circular-chart.blue .circle,
.circular-chart.green .circle,
.circular-chart.orange .circle,
.circular-chart.red .circle {
    stroke: var(--ui-meter-color);
}

.circular-chart.blue .percentage,
.circular-chart.green .percentage,
.circular-chart.orange .percentage,
.circular-chart.red .percentage {
    fill: var(--ui-meter-color);
}

/* Stable navbar/content separation -------------------------------------- */
body.header-fixed > .app-body,
body.header-fixed .page-wrapper > .app-body {
    margin-top: 55px;
}

.app-content-spacing {
    display: flow-root;
    margin-top: 0 !important;
    padding-top: 2px;
}

body.pos-module-mode .app-content-spacing {
    padding-top: 0;
}

/* Main application footer ------------------------------------------------ */
body:not(.pos-module-mode) .page-wrapper .page-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 55px);
}

body:not(.pos-module-mode) .page-wrapper .page-content > .container-fluid {
    flex: 1 0 auto;
}

.app-main-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    padding: 8px 18px;
    color: #697b78;
    background: #f4f7f6;
    border: 0;
    border-top: 1px solid #d6e1df;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: none;
}

.app-main-footer__content,
.app-main-footer__brand {
    display: flex;
    align-items: center;
}

.app-main-footer__content {
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.app-main-footer__brand {
    min-width: 0;
}

.app-main-footer strong {
    color: #3a504d;
    font-weight: 650;
}

.app-main-footer__meta {
    color: #82918f;
    font-size: 11px;
    letter-spacing: .02em;
}

.app-footer.app-main-footer {
    height: auto;
}

@media (max-width: 575.98px) {
    .app-main-footer {
        min-height: 40px;
        padding: 8px 12px;
    }

    .app-main-footer__meta {
        flex: 0 0 auto;
        font-size: 10.5px;
    }
}

/* Global modals --------------------------------------------------------- */
.modal-dialog {
    --app-modal-accent: #55aaa4;
    --app-modal-header: #244442;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-primary,
.modal-content.modal-primary,
.modal-header.btn-primary,
.modal-header.bg-primary {
    --app-modal-accent: #4aa8a2;
}

.modal-success,
.modal-content.modal-success,
.modal-header.btn-success,
.modal-header.bg-success {
    --app-modal-accent: #55ad7a;
}

.modal-info,
.modal-content.modal-info,
.modal-header.btn-info,
.modal-header.bg-info {
    --app-modal-accent: #5ca6b6;
}

.modal-warning,
.modal-content.modal-warning,
.modal-header.btn-warning,
.modal-header.bg-warning {
    --app-modal-accent: #d0a044;
}

.modal-danger,
.modal-content.modal-danger,
.modal-header.btn-danger,
.modal-header.bg-danger {
    --app-modal-accent: #d16a65;
}

.modal-dark,
.modal-content.modal-dark,
.modal-header.btn-dark,
.modal-header.bg-dark {
    --app-modal-accent: #8aa09d;
}

.modal-light,
.modal-content.modal-light,
.modal-header.btn-light,
.modal-header.bg-light,
.modal-secondary,
.modal-content.modal-secondary {
    --app-modal-accent: #a8b8b5;
}

.modal-backdrop {
    background-color: #172c2a;
}

.modal-backdrop.show,
.modal-backdrop.in {
    opacity: .56;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .modal-backdrop.show,
    .modal-backdrop.in {
        -webkit-backdrop-filter: blur(1.5px);
        backdrop-filter: blur(1.5px);
    }
}

.modal.fade .modal-dialog {
    transform: translateY(-8px) scale(.99);
    transition: transform .2s ease-out;
}

.modal.show .modal-dialog,
.modal.in .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-content {
    background-color: #ffffff;
    border: 1px solid #d5e0de !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 55px rgba(23, 48, 45, .2) !important;
}

.modal-dialog-scrollable .modal-content {
    overflow: hidden;
}

.modal-header,
.modal-primary .modal-header,
.modal-secondary .modal-header,
.modal-success .modal-header,
.modal-info .modal-header,
.modal-warning .modal-header,
.modal-danger .modal-header,
.modal-light .modal-header,
.modal-dark .modal-header,
.modal-content.modal-primary > .modal-header,
.modal-content.modal-secondary > .modal-header,
.modal-content.modal-success > .modal-header,
.modal-content.modal-info > .modal-header,
.modal-content.modal-warning > .modal-header,
.modal-content.modal-danger > .modal-header,
.modal-content.modal-light > .modal-header,
.modal-content.modal-dark > .modal-header {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 12px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--app-modal-header) 0%, #203a39 100%) !important;
    border: 0;
    border-radius: 13px 13px 0 0;
    box-shadow: none;
}

.modal-title,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
    margin: 0;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .005em;
    line-height: 1.3;
}

.modal-header > .close {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: -1px -5px -1px auto;
    padding: 0;
    color: #d9ecea;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    opacity: .88;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, opacity .16s ease;
}

.modal-header > .close:hover,
.modal-header > .close:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .2);
    outline: 0;
    opacity: 1;
}

.modal-header > .close:focus-visible {
    box-shadow: 0 0 0 .18rem rgba(128, 211, 204, .28);
}

.modal-body {
    padding: 17px 18px;
    color: #354744;
    background: #ffffff;
}

.modal-body > .col-12:first-child,
.modal-body > .col-sm-12:first-child,
.modal-body > .col-md-12:first-child,
.modal-body > .col-lg-12:first-child {
    padding-top: 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 56px;
    padding: 10px 18px;
    background: #f7faf9;
    border-top: 1px solid #dce5e3;
    border-radius: 0 0 13px 13px;
}

.modal-footer > *,
.modal-footer > .form-actions {
    margin: 0;
}

.modal-footer > .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.modal .btn:not(.close) {
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.modal .btn:not(.close):hover {
    transform: translateY(-1px);
}

.modal .btn:not(.close):focus,
.modal .btn:not(.close):focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .18rem var(--ui-primary-ring);
}

.modal .btn:not(.close):disabled,
.modal .btn:not(.close).disabled {
    transform: none;
    box-shadow: none;
}

.modal .btn-primary,
.modal .btn-outline-primary:hover,
.modal .btn-outline-primary:focus {
    color: #ffffff !important;
    background-color: var(--ui-primary) !important;
    border-color: var(--ui-primary) !important;
}

.modal .btn-primary:hover,
.modal .btn-primary:focus {
    background-color: var(--ui-primary-dark) !important;
    border-color: var(--ui-primary-dark) !important;
}

.modal .btn-outline-primary {
    color: var(--ui-primary-dark) !important;
    background: #ffffff !important;
    border-color: #78aaa6 !important;
}

.modal .btn-success {
    color: #ffffff !important;
    background-color: #348b67 !important;
    border-color: #348b67 !important;
}

.modal .btn-success:hover,
.modal .btn-success:focus {
    background-color: #2c7658 !important;
    border-color: #2c7658 !important;
}

.modal .btn-outline-danger {
    color: #c95450 !important;
    background-color: #ffffff !important;
    border-color: #dfa5a2 !important;
}

.modal .btn-outline-danger:hover,
.modal .btn-outline-danger:focus,
.modal .btn-danger {
    color: #ffffff !important;
    background-color: #c95450 !important;
    border-color: #c95450 !important;
}

.modal .btn-outline-dark {
    color: #4b5f5c !important;
    background-color: #ffffff !important;
    border-color: #b9c8c5 !important;
}

.modal .btn-outline-dark:hover,
.modal .btn-outline-dark:focus {
    color: var(--ui-primary-dark) !important;
    background-color: #eff7f6 !important;
    border-color: #8db8b4 !important;
}

.modal .x_title {
    margin-bottom: 12px;
    border-bottom-color: #dbe5e3;
}

.modal .x_title_label {
    color: #304542;
    font-weight: 700;
}

.modal-dialog.modal-xl2 {
    width: calc(100% - 32px);
    max-width: 1600px !important;
}

@media (max-width: 575.98px) {
    .modal-dialog,
    .modal-dialog.modal-xl2 {
        width: auto;
        margin: 8px;
    }

    .modal-content {
        border-radius: 11px !important;
    }

    .modal-header,
    .modal-primary .modal-header,
    .modal-secondary .modal-header,
    .modal-success .modal-header,
    .modal-info .modal-header,
    .modal-warning .modal-header,
    .modal-danger .modal-header,
    .modal-light .modal-header,
    .modal-dark .modal-header {
        min-height: 52px;
        padding: 10px 13px;
        border-radius: 10px 10px 0 0;
    }

    .modal-title,
    .modal-header h1,
    .modal-header h2,
    .modal-header h3,
    .modal-header h4,
    .modal-header h5,
    .modal-header h6 {
        font-size: 15.5px;
    }

    .modal-header > .close {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        margin-right: -3px;
        border-radius: 8px;
    }

    .modal-body {
        padding: 13px;
    }

    .modal-footer {
        min-height: 52px;
        padding: 9px 13px;
        border-radius: 0 0 10px 10px;
    }
}

/* Shared form controls ---------------------------------------------------- */
input[type="text"]:not(.multiselect__input),
input[type="search"]:not(.multiselect__input),
input[type="email"]:not(.multiselect__input),
input[type="password"]:not(.multiselect__input),
input[type="tel"]:not(.multiselect__input),
input[type="url"]:not(.multiselect__input),
input[type="number"]:not(.multiselect__input),
input[type="date"]:not(.multiselect__input),
input[type="datetime-local"]:not(.multiselect__input),
input[type="month"]:not(.multiselect__input),
input[type="time"]:not(.multiselect__input),
input[type="week"]:not(.multiselect__input),
select,
textarea:not(.multiselect__input) {
    box-sizing: border-box;
    border-color: var(--ui-border);
    border-radius: .42rem;
    color: var(--ui-ink);
    font-family: inherit;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.form-control,
.custom-select,
.form-select {
    color: var(--ui-ink);
    background-color: var(--ui-surface);
    border-color: var(--ui-border);
    border-radius: .42rem;
    box-shadow: none;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.form-control:hover:not(:disabled):not([readonly]),
.custom-select:hover:not(:disabled),
.form-select:hover:not(:disabled),
input[type="text"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="search"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="email"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="password"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="tel"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="url"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="number"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="date"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="datetime-local"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="month"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="time"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
input[type="week"]:not(.multiselect__input):hover:not(:disabled):not([readonly]),
select:hover:not(:disabled):not([readonly]),
textarea:not(.multiselect__input):hover:not(:disabled):not([readonly]) {
    border-color: var(--ui-border-hover);
}

.form-control:focus,
.custom-select:focus,
.form-select:focus,
input[type="text"]:not(.multiselect__input):focus,
input[type="search"]:not(.multiselect__input):focus,
input[type="email"]:not(.multiselect__input):focus,
input[type="password"]:not(.multiselect__input):focus,
input[type="tel"]:not(.multiselect__input):focus,
input[type="url"]:not(.multiselect__input):focus,
input[type="number"]:not(.multiselect__input):focus,
input[type="date"]:not(.multiselect__input):focus,
input[type="datetime-local"]:not(.multiselect__input):focus,
input[type="month"]:not(.multiselect__input):focus,
input[type="time"]:not(.multiselect__input):focus,
input[type="week"]:not(.multiselect__input):focus,
select:focus,
textarea:not(.multiselect__input):focus {
    color: var(--ui-ink);
    background-color: var(--ui-surface);
    border-color: var(--ui-primary);
    outline: 0;
    box-shadow: 0 0 0 .18rem var(--ui-primary-ring);
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    color: #8b9997;
    opacity: 1;
}

.form-control:disabled,
.custom-select:disabled,
.form-select:disabled,
input:disabled:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]),
select:disabled,
textarea:disabled {
    color: #7c8987;
    background-color: var(--ui-disabled);
    border-color: #d8e0df;
    cursor: not-allowed;
    opacity: 1;
}

.form-control[readonly],
.form-select[readonly],
input[readonly]:not([type="checkbox"]):not([type="radio"]),
textarea[readonly] {
    color: #52625f;
    background-color: var(--ui-surface-subtle);
    border-color: #d8e0df;
    opacity: 1;
}

/* Mark required fields without adding content or consuming layout space. */
.form-control[required]:not(:disabled):not([readonly]),
.custom-select[required]:not(:disabled),
.form-select[required]:not(:disabled),
input[required]:not([type="checkbox"]):not([type="radio"]):not(:disabled):not([readonly]),
select[required]:not(:disabled),
textarea[required]:not(:disabled):not([readonly]) {
    border-left-color: var(--ui-primary-dark);
}

/*
 * Keep the current control box dimensions while replacing the native arrow.
 * The right padding changes only the content area because controls use
 * border-box sizing; width and height remain under the existing theme/views.
 */
select.form-control:not([multiple]):not([size]),
select.custom-select:not([multiple]):not([size]),
select.form-select:not([multiple]):not([size]),
select:not([multiple]):not([size]) {
    padding-right: 1.75rem;
    background-color: var(--ui-surface);
    background-image:
        linear-gradient(45deg, transparent 50%, #5f7471 50%),
        linear-gradient(135deg, #5f7471 50%, transparent 50%);
    background-repeat: no-repeat;
    background-position:
        calc(100% - .72rem) 50%,
        calc(100% - .48rem) 50%;
    background-size: .25rem .25rem, .25rem .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-control:not([multiple]):not([size]):disabled,
select.custom-select:not([multiple]):not([size]):disabled,
select.form-select:not([multiple]):not([size]):disabled,
select:not([multiple]):not([size]):disabled {
    background-color: var(--ui-disabled);
    background-image:
        linear-gradient(45deg, transparent 50%, #93a19f 50%),
        linear-gradient(135deg, #93a19f 50%, transparent 50%);
}

select::-ms-expand {
    display: none;
}

input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
    color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .62;
}

.input-group-text {
    color: #596c69;
    background-color: #f1f5f4;
    border-color: var(--ui-border);
}

.input-group > .form-control:focus,
.input-group > .custom-select:focus,
.input-group > .form-select:focus {
    z-index: 3;
}

/* Global buttons and joined input actions -------------------------------- */
.btn:not(.close):not(.navbar-toggler):not(.sidebar-minimizer):not(.btn-link) {
    border-radius: 7px;
    font-weight: 600;
    box-shadow: none;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn-lg:not(.close):not(.navbar-toggler) {
    border-radius: 9px;
}

.btn-sm:not(.close):not(.navbar-toggler) {
    border-radius: 6px;
}

.btn:not(.close):not(.navbar-toggler):not(.sidebar-minimizer):not(.btn-link):hover {
    transform: translateY(-1px);
}

.btn:not(.close):not(.navbar-toggler):not(.sidebar-minimizer):focus,
.btn:not(.close):not(.navbar-toggler):not(.sidebar-minimizer):focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .18rem var(--ui-primary-ring);
}

.btn:not(.close):disabled,
.btn:not(.close).disabled {
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff !important;
    background-color: var(--ui-primary) !important;
    border-color: var(--ui-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ui-primary-dark) !important;
    border-color: var(--ui-primary-dark) !important;
}

.btn-outline-primary {
    color: var(--ui-primary-dark) !important;
    background-color: #ffffff !important;
    border-color: #78aaa6 !important;
}

.btn-secondary,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #ffffff !important;
    background-color: #71827f !important;
    border-color: #71827f !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5f706d !important;
    border-color: #5f706d !important;
}

.btn-outline-secondary {
    color: #5f706d !important;
    background-color: #ffffff !important;
    border-color: #aebbb9 !important;
}

.btn-success,
.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #ffffff !important;
    background-color: #348b67 !important;
    border-color: #348b67 !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #2c7658 !important;
    border-color: #2c7658 !important;
}

.btn-outline-success {
    color: #2f795a !important;
    background-color: #ffffff !important;
    border-color: #82b69e !important;
}

.btn-info,
.btn-outline-info:hover,
.btn-outline-info:focus {
    color: #ffffff !important;
    background-color: #3d8998 !important;
    border-color: #3d8998 !important;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #347682 !important;
    border-color: #347682 !important;
}

.btn-outline-info {
    color: #347682 !important;
    background-color: #ffffff !important;
    border-color: #83b3bd !important;
}

.btn-warning,
.btn-outline-warning:hover,
.btn-outline-warning:focus {
    color: #ffffff !important;
    background-color: #ba7e20 !important;
    border-color: #ba7e20 !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #a46c18 !important;
    border-color: #a46c18 !important;
}

.btn-outline-warning {
    color: #9b681d !important;
    background-color: #ffffff !important;
    border-color: #d7b77d !important;
}

.btn-danger,
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #ffffff !important;
    background-color: #c95450 !important;
    border-color: #c95450 !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #ad4542 !important;
    border-color: #ad4542 !important;
}

.btn-outline-danger {
    color: #c95450 !important;
    background-color: #ffffff !important;
    border-color: #dfa5a2 !important;
}

.btn-dark,
.btn-outline-dark:hover,
.btn-outline-dark:focus {
    color: #ffffff !important;
    background-color: #405552 !important;
    border-color: #405552 !important;
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: #334744 !important;
    border-color: #334744 !important;
}

.btn-outline-dark {
    color: #4b5f5c !important;
    background-color: #ffffff !important;
    border-color: #b9c8c5 !important;
}

.btn-light {
    color: #40524f !important;
    background-color: #f4f7f6 !important;
    border-color: #d5dfdd !important;
}

.btn-light:hover,
.btn-light:focus {
    color: var(--ui-primary-dark) !important;
    background-color: #eaf2f1 !important;
    border-color: #bccdca !important;
}

.btn-link {
    color: var(--ui-primary-dark);
    font-weight: 600;
}

.btn-link:hover,
.btn-link:focus {
    color: var(--ui-primary);
}

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child),
.input-group > .form-select:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group > .form-control:not(:first-child),
.input-group > .custom-select:not(:first-child),
.input-group > .form-select:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group-prepend > .btn,
.input-group-prepend > .input-group-text {
    margin-right: 0;
    border-radius: 8px 0 0 8px !important;
}

.input-group-prepend > .btn:not(:first-child),
.input-group-prepend > .input-group-text:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group-append > .btn,
.input-group-append > .input-group-text {
    margin-left: 0;
    border-radius: 0 8px 8px 0 !important;
}

.input-group-append > .btn,
.input-group-prepend > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.input-group-append > .btn:not(:last-child),
.input-group-append > .input-group-text:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-append > .btn:hover,
.input-group-append > .btn:focus,
.input-group-prepend > .btn:hover,
.input-group-prepend > .btn:focus {
    position: relative;
    z-index: 4;
}

.was-validated .form-control:valid,
.form-control.is-valid,
.was-validated .custom-select:valid,
.custom-select.is-valid,
.was-validated .form-select:valid,
.form-select.is-valid {
    border-color: var(--ui-success);
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus,
.was-validated .custom-select:valid:focus,
.custom-select.is-valid:focus,
.was-validated .form-select:valid:focus,
.form-select.is-valid:focus {
    border-color: var(--ui-success);
    box-shadow: 0 0 0 .18rem var(--ui-success-ring);
}

.was-validated .form-control:invalid,
.form-control.is-invalid,
.was-validated .custom-select:invalid,
.custom-select.is-invalid,
.was-validated .form-select:invalid,
.form-select.is-invalid,
.input-validation-error,
[aria-invalid="true"] {
    border-color: var(--ui-danger);
    background-color: #fffafa;
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus,
.was-validated .custom-select:invalid:focus,
.custom-select.is-invalid:focus,
.was-validated .form-select:invalid:focus,
.form-select.is-invalid:focus,
.input-validation-error:focus,
[aria-invalid="true"]:focus {
    border-color: var(--ui-danger);
    box-shadow: 0 0 0 .18rem var(--ui-danger-ring);
}

.field-validation-error,
.validation-summary-errors,
.invalid-feedback,
.invalid-feedback2 {
    color: var(--ui-danger);
    font-weight: 600;
}

.valid-feedback {
    color: var(--ui-success);
    font-weight: 600;
}

label.required::after,
.required > label::after,
label[data-required="true"]::after {
    margin-left: .2rem;
    color: var(--ui-danger);
    content: "*";
}

/* Vue Multiselect: visual-only overrides, retaining plugin dimensions. */
.multiselect__tags {
    color: var(--ui-ink);
    background: var(--ui-surface);
    border-color: var(--ui-border);
    border-radius: .42rem;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.multiselect:hover:not(.multiselect--disabled) .multiselect__tags {
    border-color: var(--ui-border-hover);
}

.multiselect--active .multiselect__tags {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 .18rem var(--ui-primary-ring);
}

.multiselect__input,
.multiselect__single {
    color: var(--ui-ink);
    background: transparent;
}

.multiselect__placeholder {
    color: #8b9997;
}

.multiselect__content-wrapper {
    border-color: var(--ui-border);
    border-radius: 0 0 .42rem .42rem;
    box-shadow: 0 8px 20px rgba(36, 75, 72, .10);
}

.multiselect__option--highlight {
    color: var(--ui-ink);
    background: #e9f4f3;
}

.multiselect__option--selected {
    color: var(--ui-primary-dark);
    background: #eef5f4;
    font-weight: 600;
}

.multiselect--disabled .multiselect__tags,
.multiselect--disabled .multiselect__current,
.multiselect--disabled .multiselect__select {
    background: var(--ui-disabled);
}

/* Main navbar ------------------------------------------------------------ */
.app-navbar {
    color: var(--ui-ink);
    background: rgba(255, 255, 255, .98);
    border-bottom-color: #dbe4e2;
    box-shadow: 0 2px 12px rgba(37, 69, 66, .055);
}

.app-navbar .navbar-brand {
    position: relative;
    border-right: 1px solid #edf1f0;
    transition: background-color .16s ease;
}

.app-navbar .navbar-brand:hover,
.app-navbar .navbar-brand:focus {
    background-color: #f7faf9;
    outline: 0;
}

.app-navbar .navbar-brand img {
    object-fit: contain;
}

.app-navbar .navbar-toggler {
    color: #607370;
    border-radius: 8px !important;
    transition: color .16s ease, background-color .16s ease;
}

.app-navbar .navbar-toggler:hover,
.app-navbar .navbar-toggler:focus {
    color: var(--ui-primary-dark);
    background-color: #edf5f4;
    outline: 0;
}

.app-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%235d7470' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M5 8h20M5 15h20M5 22h20'/%3E%3C/svg%3E");
    background-size: 22px 22px;
    transition: background-image .16s ease;
}

.app-navbar .navbar-toggler:hover .navbar-toggler-icon,
.app-navbar .navbar-toggler:focus .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23246f6d' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M5 8h20M5 15h20M5 22h20'/%3E%3C/svg%3E");
}

.app-navbar > .navbar-nav:not(.ml-auto) .nav-link {
    overflow: hidden;
    padding: 6px 10px;
    border: 1px solid #e3ebe9;
    border-radius: 8px;
    color: #3d5350;
    background: #f7f9f9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-navbar > .navbar-nav.ml-auto {
    padding-right: 4px;
}

.app-navbar .nav-item > .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #637572;
    line-height: 1.2;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease;
}

.app-navbar .nav-item > .nav-link:hover,
.app-navbar .nav-item > .nav-link:focus,
.app-navbar .nav-item.show > .nav-link,
.app-navbar .nav-item > .nav-link[aria-expanded="true"] {
    color: var(--ui-primary-dark);
    background-color: #edf5f4;
    outline: 0;
}

.app-navbar .nav-item > .nav-link:focus-visible,
.app-navbar .navbar-brand:focus-visible,
.app-navbar .navbar-toggler:focus-visible,
.app-navbar .dropdown-item:focus-visible {
    box-shadow: 0 0 0 .18rem var(--ui-primary-ring);
}

.app-navbar .nav-link > i {
    min-width: 17px;
    color: #718783;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    transition: color .16s ease;
}

.app-navbar .nav-link:hover > i,
.app-navbar .nav-link:focus > i,
.app-navbar .nav-link[aria-expanded="true"] > i {
    color: var(--ui-primary);
}

.app-navbar .nav-link > b {
    display: block;
    max-width: 190px;
    overflow: hidden;
    color: #3b4e4b;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-navbar .nav-item .nav-link .badge {
    min-width: 17px;
    min-height: 17px;
    margin-top: -17px;
    padding: 3px 5px;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
}

.app-navbar .badge-primary {
    background-color: var(--ui-primary);
}

.app-navbar .badge-danger {
    background-color: #c95753;
}

.app-navbar .dropdown-menu {
    margin-top: 8px;
    padding: 6px 0;
    background: #ffffff;
    border: 1px solid #dbe4e2;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(31, 61, 58, .13);
    overflow: hidden;
}

.app-navbar .dropdown-header {
    padding: 9px 14px;
    color: #758682;
    background: #f5f8f8 !important;
    border-bottom: 1px solid #e6eceb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left !important;
    text-transform: uppercase;
}

.app-navbar .dropdown-item {
    padding: 9px 14px;
    color: #3f504d;
    border-left: 2px solid transparent;
    font-size: 12.5px;
    line-height: 1.4;
    white-space: normal;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.app-navbar a.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
    color: var(--ui-primary-dark);
    background-color: #eef6f5;
    border-left-color: #70b9b1;
    outline: 0;
}

.app-navbar .dropdown-item > i,
.app-navbar .dropdown-item > .fa,
.app-navbar .dropdown-item > [class^="icon-"] {
    flex: 0 0 20px;
    width: 20px;
    margin: 0;
    color: #6c817d;
    text-align: center;
}

.app-navbar .dropdown-item:hover > i,
.app-navbar .dropdown-item:focus > i {
    color: var(--ui-primary);
}

.app-navbar .dropdown-item .message {
    width: 100%;
    color: #40524f;
    text-align: left;
}

.app-navbar .dropdown-item .message .text-muted {
    color: #7e8e8b !important;
}

.app-navbar .dropdown-item .btn.text-muted {
    color: #82908e !important;
    background: transparent;
    border-radius: 6px;
}

.app-navbar .dropdown-item .btn.text-muted:hover {
    color: #b34845 !important;
    background: rgba(201, 75, 72, .08);
}

.app-navbar .dropdown-item.border-top {
    justify-content: center;
    margin-top: 3px;
    color: var(--ui-primary-dark);
    background: #f8fbfa;
    border-top-color: #e6eceb !important;
    font-size: 11.5px;
}

.app-navbar .dropdown-item.logout_bt {
    color: #a94744;
}

.app-navbar .dropdown-item.logout_bt:hover,
.app-navbar .dropdown-item.logout_bt:focus {
    color: #9e3734;
    background: #fdf1f0;
    border-left-color: #d36a66;
}

.app-navbar .progress {
    overflow: hidden;
    background-color: #e8efed;
    border-radius: 10px;
}

.app-navbar .progress-bar {
    border-radius: 10px;
}

.app-navbar-company {
    justify-content: flex-end;
}

.app-navbar-company #display_top_company {
    margin-right: auto;
}

@media (max-width: 991.98px) {
    .app-navbar {
        box-shadow: 0 2px 10px rgba(37, 69, 66, .06);
    }

    .app-navbar .navbar-brand {
        border-right: 0;
    }

    .app-navbar .dropdown-menu.dropdown-menu-right {
        right: 6px;
        max-width: calc(100vw - 12px);
    }
}

@media (max-width: 575.98px) {
    .app-navbar > .navbar-nav.ml-auto {
        padding-right: 1px;
    }

    .app-navbar .nav-item > .nav-link {
        padding-right: 7px;
        padding-left: 7px;
    }

    .app-navbar .nav-link > b {
        max-width: 92px;
    }

    .app-navbar .dropdown-menu-lg {
        width: calc(100vw - 12px);
    }
}

/* Main sidebar ----------------------------------------------------------- */
.page-wrapper.ice-theme.sidebar-bg .sidebar-wrapper {
    color: #dae6e3;
    background: linear-gradient(180deg, #314a48 0%, #293f3d 100%);
    border-right: 1px solid rgba(42, 174, 173, .14);
    box-shadow: none;
}

.page-wrapper.ice-theme.sidebar-bg .sidebar-wrapper::before {
    background: transparent;
}

.sidebar-wrapper .sidebar-content {
    scrollbar-color: rgba(42, 174, 173, .38) transparent;
    scrollbar-width: thin;
}

.sidebar-wrapper .sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-wrapper .sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(42, 174, 173, .34);
    border-radius: 10px;
}

.sidebar-wrapper .sidebar-brand {
    height: 55px;
    padding: 1rem 1.15rem;
    border: 0;
}

.sidebar-wrapper .sidebar-header {
    width: auto;
    margin: 8px 10px 6px;
    padding: 0;
    border: 0;
    overflow: visible;
}

.sidebar-wrapper .sidebar-header .nav-link {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    color: #d9e6e3;
    background: rgba(255, 255, 255, .035);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .16s ease, background-color .16s ease;
}

.sidebar-wrapper .sidebar-header .nav-link:hover,
.sidebar-wrapper .sidebar-header .nav-link.is-current {
    color: #ffffff;
    background: rgba(42, 174, 173, .13);
}

.sidebar-wrapper .sidebar-header .nav-link.is-current::after {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #2aaead;
    content: "";
}

.sidebar-wrapper .sidebar-header .nav-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 8px;
    color: #53c4c0;
    background: rgba(42, 174, 173, .10);
    font-size: 14px;
    line-height: 28px;
    text-align: center;
}

.sidebar-wrapper .sidebar-menu {
    padding: 0 10px 12px;
}

.sidebar-wrapper .sidebar-menu .header-menu {
    margin: 2px 2px 6px;
    border: 0;
}

.sidebar-wrapper .sidebar-menu .header-menu span {
    padding: 10px 8px 5px;
    color: #91aaa5 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.sidebar-wrapper .sidebar-menu > ul > .sidebar-dropdown {
    margin-bottom: 4px;
}

.sidebar-wrapper .sidebar-menu ul li a {
    min-width: 0;
    padding: 8px 30px 8px 10px;
    border-radius: 8px;
    border: 0;
    color: #cfddda !important;
    font-size: 13px;
    line-height: 1.35;
    transition: color .16s ease, background-color .16s ease;
}

.sidebar-wrapper .sidebar-menu ul li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .055);
}

.sidebar-wrapper .sidebar-menu ul li a:hover > i::before {
    animation: none;
}

.page-wrapper.ice-theme.sidebar-bg .sidebar-wrapper .sidebar-menu ul li a i,
.sidebar-wrapper .sidebar-menu ul li a i {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border: 1px solid rgba(83, 196, 192, .12);
    border-radius: 8px;
    color: #a7ceca;
    background: rgba(255, 255, 255, .04);
    font-size: 13px;
    line-height: 28px;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.sidebar-wrapper .sidebar-menu ul li a:hover > i,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a > i {
    color: #ddf7f4;
    background: rgba(42, 174, 173, .20);
    border-color: rgba(83, 196, 192, .25);
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown > a::after {
    right: 12px;
    top: 50%;
    color: #8eaaa6;
    font-size: 11px;
    transform: translateY(-50%);
    transition: color .16s ease, transform .18s ease;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a {
    color: #ffffff !important;
    background: rgba(42, 174, 173, .12);
    box-shadow: inset 3px 0 0 #2aaead;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a::after {
    right: 12px;
    color: #73d1cc;
    transform: translateY(-50%) rotate(90deg);
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > .sidebar-submenu {
    display: block;
}

.page-wrapper.ice-theme.sidebar-bg .sidebar-wrapper .sidebar-menu .sidebar-dropdown div,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu {
    margin: 4px 0 8px 13px;
    padding: 3px 0 3px 13px;
    background: transparent;
    border: 0;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu ul {
    padding: 0;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li {
    position: relative;
    padding-left: 0;
    border: 0 !important;
    font-size: 12px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a {
    min-height: 31px;
    padding: 6px 9px 6px 19px;
    border: 0 !important;
    border-radius: 7px;
    color: #bdccca !important;
    line-height: 1.35;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a::before {
    position: absolute;
    top: 50%;
    left: 7px;
    width: 4px;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #789995;
    content: "";
    transform: translateY(-50%);
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:hover {
    color: #f4fbfa !important;
    background: rgba(255, 255, 255, .05);
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:hover::before {
    background: #53c4c0;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li.is-current > a,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li.is-current-parent > a {
    color: #ffffff !important;
    background: rgba(42, 174, 173, .14);
    font-weight: 600;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li.is-current > a::before,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li.is-current-parent > a::before {
    border-color: #65d1cc;
    background: #65d1cc;
    box-shadow: 0 0 0 3px rgba(42, 174, 173, .10);
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li.is-current > a::after {
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 7px;
    width: 2px;
    border-radius: 2px;
    background: #2aaead;
    content: "";
}

.sidebar-wrapper .sidebar-menu .sidebar-submenu .collapse {
    margin: 2px 0 2px 8px;
    padding-left: 7px;
    border-left: 1px solid rgba(83, 196, 192, .14);
}

.page-wrapper.ice-theme.sidebar-bg .sidebar-wrapper .sidebar-footer,
.sidebar-wrapper .sidebar-footer {
    height: 40px;
    background: #243a38;
    border-top: 1px solid rgba(42, 174, 173, .12);
    box-shadow: none;
}

.sidebar-wrapper .sidebar-footer > div {
    height: 40px;
    line-height: 40px;
}

.sidebar-wrapper .sidebar-footer > div > a {
    color: #83c6c1 !important;
    transition: color .16s ease, background-color .16s ease;
}

.sidebar-wrapper .sidebar-footer > div > a:hover {
    color: #ffffff !important;
    background: rgba(42, 174, 173, .12);
}

.sidebar-wrapper .sidebar-footer .dropdown-menu {
    bottom: 42px;
    margin: 0 8px;
    border: 1px solid #d8e1df;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(24, 54, 52, .12);
}

.sidebar-wrapper .sidebar-footer .dropdown-menu .dropdown-item {
    color: var(--ui-ink);
}

/* --------------------------------------------------------------------------
   jQuery UI datepicker
   -------------------------------------------------------------------------- */

#ui-datepicker-div.ui-datepicker,
.ui-datepicker.ui-datepicker-inline {
    width: 18rem;
    padding: .5rem;
    border: 1px solid #d5e0de;
    border-radius: 12px;
    color: var(--ui-ink);
    background: var(--ui-surface);
    box-shadow: 0 10px 28px rgba(38, 55, 53, .14);
    font-family: inherit;
    font-size: .875rem;
    box-sizing: border-box;
}

#ui-datepicker-div.ui-datepicker {
    z-index: 2000 !important;
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    margin: 0 0 .45rem;
    padding: .55rem 2.45rem;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #314a48 0%, var(--ui-primary) 100%);
    box-shadow: none;
}

.ui-datepicker .ui-datepicker-title {
    min-height: 30px;
    margin: 0;
    color: #ffffff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
}

.ui-datepicker .ui-datepicker-title select {
    height: 30px;
    margin: 0 2px;
    padding: 0 24px 0 8px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 7px;
    outline: 0;
    color: var(--ui-ink);
    background-color: #ffffff;
    font: inherit;
    font-weight: 600;
    vertical-align: middle;
}

.ui-datepicker .ui-datepicker-title select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border: 0 !important;
    border-radius: 7px;
    background: rgba(255, 255, 255, .08) !important;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev {
    left: 5px;
}

.ui-datepicker .ui-datepicker-next {
    right: 5px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover,
.ui-datepicker .ui-datepicker-prev:focus,
.ui-datepicker .ui-datepicker-next:focus {
    top: 50%;
    border: 0;
    background: rgba(255, 255, 255, .18) !important;
}

.ui-datepicker .ui-datepicker-prev:hover {
    left: 5px;
}

.ui-datepicker .ui-datepicker-next:hover {
    right: 5px;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-style: solid;
    border-color: #ffffff;
    background: none !important;
}

.ui-datepicker .ui-datepicker-prev span {
    border-width: 0 0 2px 2px;
    transform: rotate(45deg);
}

.ui-datepicker .ui-datepicker-next span {
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}

.ui-datepicker table {
    width: 100%;
    margin: .2rem 0 0;
    border-collapse: separate;
    border-spacing: 2px;
    font-size: .84rem;
}

.ui-datepicker th {
    padding: .5rem .15rem .35rem;
    color: var(--ui-muted);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.ui-datepicker td {
    padding: 0;
    border: 0;
}

.ui-datepicker td span,
.ui-datepicker td a,
.ui-datepicker .ui-state-default {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #355754;
    background: transparent;
    background-image: none;
    box-shadow: none;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

.ui-datepicker td a.ui-state-hover,
.ui-datepicker td a:hover,
.ui-datepicker .ui-state-hover {
    border-color: rgba(41, 137, 134, .28);
    color: var(--ui-primary-dark);
    background: var(--ui-primary-soft);
    background-image: none;
}

.ui-datepicker td .ui-state-highlight {
    border-color: #9ccfca;
    color: var(--ui-primary-dark);
    background: #e7f5f3;
    background-image: none;
}

.ui-datepicker td .ui-state-active {
    border-color: var(--ui-primary);
    color: #ffffff;
    background: linear-gradient(135deg, var(--ui-primary-dark), var(--ui-primary));
    background-image: linear-gradient(135deg, var(--ui-primary-dark), var(--ui-primary));
    box-shadow: 0 3px 8px rgba(41, 137, 134, .22);
}

.ui-datepicker .ui-datepicker-other-month a,
.ui-datepicker .ui-datepicker-other-month span {
    color: #a6b3b1;
}

.ui-datepicker td.ui-state-disabled {
    opacity: .42;
}

.ui-datepicker .ui-datepicker-buttonpane {
    margin: .5rem 0 0;
    padding: .5rem 0 0;
    border-width: 1px 0 0;
    border-color: #e3eae9;
    background: transparent;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    margin: 0;
    padding: .4rem .75rem;
    border: 1px solid var(--ui-primary);
    border-radius: 7px;
    color: var(--ui-primary-dark);
    background: #ffffff;
    background-image: none;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover,
.ui-datepicker .ui-datepicker-buttonpane button:focus {
    color: #ffffff;
    background: var(--ui-primary);
}

@media (max-width: 360px) {
    #ui-datepicker-div.ui-datepicker {
        width: calc(100vw - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-control,
    .custom-select,
    .form-select,
    .multiselect__tags,
    .ui-datepicker td span,
    .ui-datepicker td a,
    .sidebar-wrapper a,
    .sidebar-wrapper i {
        transition: none !important;
    }
}

@media print {
    .form-control,
    .custom-select,
    .form-select {
        box-shadow: none !important;
    }
}

/* Shared action controls ------------------------------------------------- */
.app-action-toolbar,
.app-icon-actions,
.app-footer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.app-action-toolbar {
    min-height: 33px;
}

.app-action-toolbar .app-action-button,
.app-footer-actions .app-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0;
    padding: 7px 13px !important;
    gap: 6px;
    border-radius: 8px !important;
    line-height: 1.2;
}

.input-group-append > .app-search-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 100%;
    margin-left: 0 !important;
    padding: 0 12px !important;
    gap: 5px;
    border-radius: 0 8px 8px 0 !important;
    line-height: 1;
}

.app-icon-actions {
    gap: 7px;
}

.app-icon-actions--center {
    justify-content: center;
}

.app-icon-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 9px !important;
}

.app-icon-action > i {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1;
}

.app-icon-action--sm {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 8px !important;
}

.app-icon-action--sm > i {
    font-size: 14px !important;
}

.app-footer-actions {
    justify-content: flex-end;
    width: 100%;
}

@media (max-width: 575.98px) {
    .app-action-toolbar .app-action-button {
        flex: 1 1 105px;
    }

    .app-footer-actions .app-action-button {
        flex: 1 1 125px;
    }
}

/* Almacen report card --------------------------------------------------- */
:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-report-shell {
    min-height: 600px;
    overflow: hidden;
    border-color: #d7e2e0;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-filter-section > hr,
:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-report-shell > hr {
    margin: 10px 0 14px;
    border-color: #e2eae9;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-actions {
    align-items: stretch;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-summary {
    padding: 2px 6px 4px;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-summary-grid > [class*="col-"] {
    display: flex;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card {
    --warehouse-accent: var(--ui-primary);
    --warehouse-tint: #edf8f7;
    position: relative;
    width: 100%;
    min-height: 126px;
    overflow: hidden;
    color: var(--ui-ink);
    background: linear-gradient(145deg, #ffffff 42%, var(--warehouse-tint) 100%);
    border: 1px solid #d8e3e1;
    border-left: 4px solid var(--warehouse-accent);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(31, 66, 62, .07);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--warehouse-accent) 38%, #d8e3e1);
    box-shadow: 0 8px 20px rgba(31, 66, 62, .10);
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card .card-body {
    width: 100%;
    padding: 15px 17px;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 0 12px auto;
    color: var(--warehouse-accent);
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--warehouse-accent) 28%, #d8e3e1);
    border-radius: 10px;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-icon i {
    font-size: 18px !important;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-value {
    color: #263b38;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.15;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-label {
    margin: 4px 0 0;
    color: var(--warehouse-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .045em;
    line-height: 1.2;
    text-transform: uppercase;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card--ambient {
    --warehouse-accent: #337fab;
    --warehouse-tint: #edf6fb;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card--temperature {
    --warehouse-accent: #bf7e16;
    --warehouse-tint: #fff7e8;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card--selected {
    --warehouse-accent: #298f86;
    --warehouse-tint: #eaf8f5;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card--price {
    --warehouse-accent: #6875ba;
    --warehouse-tint: #f1f2fb;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card--total {
    --warehouse-accent: #526665;
    --warehouse-tint: #eef2f1;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-metric-card--variance {
    --warehouse-accent: #bd574b;
    --warehouse-tint: #fff1ef;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-card {
    overflow: hidden;
    border: 1px solid #d6e2df;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(31, 66, 62, .06);
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-header.card-header {
    padding: 12px 16px;
    color: var(--ui-ink);
    background: #edf6f5;
    border-bottom: 1px solid #d5e4e1;
}

/* This legacy panel-heading painted over the light results header. */
:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-card > .warehouse-results-header.card-header {
    color: #304a46 !important;
    background: linear-gradient(90deg, #edf7f5 0%, #f6faf9 100%) !important;
    border-bottom-color: #cfe1de !important;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-toolbar.panel-heading {
    color: #304a46 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-search .form-control {
    background-color: #ffffff !important;
    border-color: #c9d9d6 !important;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-toolbar {
    align-items: center;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-search {
    flex: 1 1 280px;
    max-width: 360px;
    padding: 0;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-toolbar > .col-4 {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0 6px 0 10px;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-toolbar > .col-1 {
    flex: 0 0 38px;
    max-width: 38px;
    padding: 0 3px;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #536966;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-sort-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    color: var(--warehouse-accent) !important;
    background: #ffffff !important;
    border: 1px solid #cddbd8;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-sort-control:hover,
:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-sort-control:focus {
    color: #ffffff !important;
    background: var(--warehouse-accent) !important;
    border-color: var(--warehouse-accent);
    transform: translateY(-1px);
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-body {
    padding: 12px 14px;
    background: #f8fbfa;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-list {
    margin-bottom: 7px;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-list:last-child {
    margin-bottom: 0;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-item {
    padding: 12px 14px;
    color: #425754;
    background: #ffffff;
    border: 1px solid #dbe5e3;
    border-radius: 9px;
    box-shadow: 0 1px 3px rgba(31, 66, 62, .035);
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-list:nth-child(even) .warehouse-result-item {
    background: #f4f9f8;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-item:hover {
    z-index: auto;
    color: #304844;
    background: #edf7f5;
    border-color: #a9cbc5;
    transform: translateY(-1px);
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-item .badge {
    padding: 4px 7px !important;
    font-weight: 700;
    box-shadow: none;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-item span.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 4px 8px !important;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 7px !important;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(20, 47, 43, .055)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(35, 59, 56, .09);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    line-height: 1;
    vertical-align: middle;
    transition: box-shadow .16s ease, transform .16s ease;
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-item:hover span.badge {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 5px rgba(35, 59, 56, .12);
    transform: translateY(-1px);
}

:is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-result-item div.badge.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(35, 59, 56, .12);
    font-size: 9px;
    line-height: 1;
    vertical-align: middle;
}

#AlmacenReportCard .warehouse-movement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

#AlmacenReportCard .warehouse-movement--entry {
    background: rgba(46, 184, 0, .08);
}

#AlmacenReportCard .warehouse-movement--exit {
    background: rgba(218, 0, 0, .07);
}

/* Tank status card ------------------------------------------------------ */
#TankStatusCard .tank-status-card-shell {
    min-height: 600px;
    overflow: hidden;
    border-color: #d7e2e0;
}

#TankStatusCard .tank-status-filter-section > hr {
    margin: 10px 0 16px;
    border-color: #e2eae9;
}

#TankStatusCard .tank-status-grid {
    column-gap: 16px;
    padding: 0 4px 4px;
}

#TankStatusCard .tank-status-station-card {
    overflow: hidden;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #d5e2df;
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(31, 66, 62, .075);
    break-inside: avoid;
}

#TankStatusCard .tank-status-station-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    color: #284743;
    background: #eaf5f3;
    border-bottom: 1px solid #d4e5e2;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

#TankStatusCard .tank-status-station-title > i {
    color: var(--ui-primary);
}

#TankStatusCard .tank-status-station-title label {
    margin: 0;
}

#TankStatusCard .tank-status-item {
    margin: 0;
    padding: 15px 16px 16px;
}

#TankStatusCard .tank-status-item + .tank-status-item {
    border-top: 1px solid #e2eae8;
}

#TankStatusCard .tank-status-overview {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 9px;
}

#TankStatusCard .tank-status-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    min-height: 78px;
    padding: 3px 5px 5px;
    background: linear-gradient(145deg, #f8fbfa, #edf6f4);
    border: 1px solid #d3e4e1;
    border-radius: 12px;
}

#TankStatusCard .tank-level-gauge {
    position: relative;
    width: 74px;
    height: 66px;
    padding-top: 6px;
}

#TankStatusCard .tank-level-cap {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 27px;
    height: 8px;
    background: #607b77;
    border: 2px solid #496965;
    border-bottom: 0;
    border-radius: 5px 5px 2px 2px;
    transform: translateX(-50%);
}

#TankStatusCard .tank-level-chamber {
    position: relative;
    width: 74px;
    height: 56px;
    overflow: hidden;
    background-color: #f8fbfa;
    background-image: linear-gradient(to bottom,
        transparent 24%, rgba(105, 137, 132, .12) 25%, transparent 26%,
        transparent 49%, rgba(105, 137, 132, .12) 50%, transparent 51%,
        transparent 74%, rgba(105, 137, 132, .12) 75%, transparent 76%);
    border: 2px solid #52736e;
    border-radius: 10px 10px 14px 14px;
    box-shadow: inset 0 2px 7px rgba(38, 69, 65, .12), 0 2px 5px rgba(38, 69, 65, .08);
}

#TankStatusCard .tank-level-chamber::after {
    position: absolute;
    top: 5px;
    left: 6px;
    z-index: 2;
    width: 5px;
    height: 35px;
    background: rgba(255, 255, 255, .58);
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

#TankStatusCard .tank-level-liquid {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 0;
    overflow: visible;
    background: linear-gradient(180deg, #55b9b1 0%, #268b85 100%) !important;
    transition: height .8s cubic-bezier(.2, .75, .25, 1);
    animation: tank-liquid-pulse 3.4s ease-in-out infinite;
}

#TankStatusCard .tank-level-liquid::before,
#TankStatusCard .tank-level-liquid::after {
    position: absolute;
    top: -5px;
    left: -22px;
    width: 116px;
    height: 11px;
    background: rgba(255, 255, 255, .34);
    border-radius: 42%;
    content: "";
    animation: tank-wave 3.8s linear infinite;
}

#TankStatusCard .tank-level-liquid::after {
    top: -3px;
    left: -8px;
    background: rgba(255, 255, 255, .18);
    animation-direction: reverse;
    animation-duration: 4.8s;
}

#TankStatusCard .tank-level-liquid.bg-primary {
    background: linear-gradient(180deg, #5c9bd0 0%, var(--ui-level-high) 100%) !important;
}

#TankStatusCard .tank-level-liquid.bg-success {
    background: linear-gradient(180deg, #58b995 0%, var(--ui-level-positive) 100%) !important;
}

#TankStatusCard .tank-level-liquid.bg-warning {
    background: linear-gradient(180deg, #efc05e 0%, var(--ui-level-warning) 100%) !important;
}

#TankStatusCard .tank-level-liquid.bg-danger {
    background: linear-gradient(180deg, #e5837e 0%, var(--ui-level-negative) 100%) !important;
}

#TankStatusCard .tank-level-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 47px;
    min-height: 21px;
    padding: 2px 5px;
    color: #29433f;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(92, 122, 117, .28);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-shadow: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(35, 67, 62, .10);
}

#TankStatusCard .tank-level-leg {
    position: absolute;
    bottom: 1px;
    width: 13px;
    height: 4px;
    background: #52736e;
    border-radius: 0 0 4px 4px;
}

#TankStatusCard .tank-level-leg--left {
    left: 9px;
}

#TankStatusCard .tank-level-leg--right {
    right: 9px;
}

@keyframes tank-wave {
    from { transform: translateX(0) rotate(0deg); }
    to { transform: translateX(18px) rotate(360deg); }
}

@keyframes tank-liquid-pulse {
    0%, 100% { filter: saturate(1); }
    50% { filter: saturate(1.12) brightness(1.04); }
}

#TankStatusCard .tank-status-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 7px 9px;
    background: #f7f9f9;
    border: 1px solid #e0e7e6;
    border-radius: 9px;
}

#TankStatusCard .tank-status-stat span {
    overflow: hidden;
    color: #748582;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

#TankStatusCard .tank-status-stat strong {
    margin-top: 4px;
    color: #2b5752;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.1;
}

#TankStatusCard .tank-status-detail.card-body {
    padding: 12px 0 0;
}

#TankStatusCard .tank-status-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 4px 8px;
    color: #647875;
    background: #f5f8f7;
    border-radius: 6px;
    font-size: 11px;
}

#TankStatusCard .tank-status-capacity {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 10px 0 0;
    color: #758582;
    line-height: 1.25;
}

#TankStatusCard .tank-status-capacity b {
    color: #344d49;
    font-size: 12px;
}

@media (max-width: 767.98px) {
    :is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-search {
        flex-basis: 100%;
        max-width: 100%;
    }

    :is(#AlmacenReportCard, #GetStationCardManagerByProduct) .warehouse-results-toolbar > .col-4 {
        margin-right: auto;
        padding-left: 0;
    }

    #TankStatusCard .tank-status-overview {
        grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr);
    }

    #TankStatusCard .tank-status-image {
        width: 86px;
        min-height: 76px;
    }
}

@media (max-width: 420px) {
    #TankStatusCard .tank-status-overview {
        grid-template-columns: 86px 1fr;
    }

    #TankStatusCard .tank-status-stat:last-child {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    #TankStatusCard .tank-level-liquid,
    #TankStatusCard .tank-level-liquid::before,
    #TankStatusCard .tank-level-liquid::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Global SweetAlert ------------------------------------------------------ */
body .swal2-container {
    padding: 14px;
    font-family: inherit;
}

body .swal2-container.swal2-backdrop-show,
body .swal2-container.swal2-backdrop-hide {
    background: rgba(20, 39, 37, .62) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

body .swal2-container .swal2-popup:not(.swal2-toast) {
    box-sizing: border-box;
    width: 31.5rem;
    max-width: calc(100vw - 28px);
    padding: 26px 28px 24px;
    overflow: hidden;
    border: 1px solid #d6e2e0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 22px 60px rgba(17, 40, 37, .24);
}

body .swal2-container .swal2-header {
    padding: 0;
}

body .swal2-container .swal2-title {
    margin: 0;
    padding: 2px 6px 0;
    color: #253f3c;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.012em;
}

body .swal2-container .swal2-content,
body .swal2-container .swal2-html-container {
    margin: 10px 0 0;
    padding: 0 5px;
    color: #60716e;
    font-size: .98rem;
    font-weight: 400;
    line-height: 1.55;
}

body .swal2-container .swal2-icon {
    width: 80px;
    height: 80px;
    margin: 2px auto 17px;
    border-width: 3px;
}

body .swal2-container .swal2-icon.swal2-error {
    border-color: #e18b87;
    color: #d45f5a;
}

body .swal2-container .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    height: 4px;
    background-color: #d45f5a;
}

body .swal2-container .swal2-icon.swal2-warning {
    border-color: #dfba70;
    color: #c68724;
}

body .swal2-container .swal2-icon.swal2-info {
    border-color: #79b7c3;
    color: #398a9b;
}

body .swal2-container .swal2-icon.swal2-question {
    border-color: #7cb9b4;
    color: #2b8f89;
}

body .swal2-container .swal2-icon.swal2-success {
    border-color: rgba(52, 145, 109, .3);
    color: #34916d;
}

body .swal2-container .swal2-success-ring {
    border-color: rgba(52, 145, 109, .28);
}

body .swal2-container .swal2-success-line-tip,
body .swal2-container .swal2-success-line-long {
    background-color: #34916d;
}

body .swal2-container .swal2-actions {
    gap: 9px;
    margin: 22px 0 0;
}

body .swal2-container .swal2-styled {
    min-width: 104px;
    min-height: 40px;
    margin: 0;
    padding: 9px 17px;
    border: 1px solid transparent !important;
    border-radius: 8px;
    box-shadow: none !important;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.2;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

body .swal2-container .swal2-confirm.swal2-styled {
    color: #ffffff !important;
    background: linear-gradient(135deg, #247d78, #299792) !important;
    border-color: #247d78 !important;
}

body .swal2-container .swal2-confirm.swal2-styled:hover {
    background: linear-gradient(135deg, #206d69, #248681) !important;
    border-color: #206d69 !important;
    transform: translateY(-1px);
}

body .swal2-container .swal2-cancel.swal2-styled,
body .swal2-container .swal2-deny.swal2-styled {
    color: #bd5652 !important;
    background: #ffffff !important;
    border-color: #dda6a3 !important;
}

body .swal2-container .swal2-cancel.swal2-styled:hover,
body .swal2-container .swal2-deny.swal2-styled:hover {
    color: #a94743 !important;
    background: #fff5f4 !important;
    border-color: #cf7b77 !important;
    transform: translateY(-1px);
}

body .swal2-container .swal2-styled:focus,
body .swal2-container .swal2-styled:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(41, 137, 134, .2) !important;
}

body .swal2-container .swal2-styled:disabled {
    transform: none;
    cursor: not-allowed;
    opacity: .58;
}

body .swal2-container .swal2-close {
    top: 11px;
    right: 11px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #79908c;
    font-family: inherit;
    font-size: 1.8rem;
    line-height: 1;
    transition: color .16s ease, background-color .16s ease;
}

body .swal2-container .swal2-close:hover,
body .swal2-container .swal2-close:focus {
    color: #244442;
    background: #eef5f4;
}

body .swal2-container .swal2-input,
body .swal2-container .swal2-file,
body .swal2-container .swal2-select,
body .swal2-container .swal2-textarea {
    border-color: #cbd8d6;
    border-radius: 8px;
    box-shadow: none;
    color: #344946;
    background-color: #ffffff;
}

body .swal2-container .swal2-input:focus,
body .swal2-container .swal2-file:focus,
body .swal2-container .swal2-select:focus,
body .swal2-container .swal2-textarea:focus {
    border-color: #298986;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(41, 137, 134, .17);
}

body .swal2-container .swal2-validation-message {
    border-radius: 8px;
    color: #a84642;
    background: #fff1f0;
}

body .swal2-container .swal2-timer-progress-bar {
    background: #29918b;
}

body .swal2-container .swal2-loader {
    border-color: #29918b transparent #29918b transparent;
}

body .swal2-container .swal2-popup.swal2-toast {
    border: 1px solid #d6e2e0;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(17, 40, 37, .18);
}

body .swal2-container .swal2-popup.swal2-toast .swal2-title {
    color: #304743;
    font-size: .98rem;
}

.swal2-show {
    animation: appSwalShow .2s ease-out both !important;
}

.swal2-hide {
    animation: appSwalHide .16s ease-in both !important;
}

@keyframes appSwalShow {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes appSwalHide {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(5px) scale(.99);
    }
}

/* Legacy SweetAlert kept for the older demo/view. */
body .sweet-overlay {
    background-color: rgba(20, 39, 37, .62);
}

body .sweet-alert {
    box-sizing: border-box;
    width: 500px;
    max-width: calc(100vw - 28px);
    margin-left: -250px;
    padding: 27px 28px 24px;
    border: 1px solid #d6e2e0;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(17, 40, 37, .24);
    font-family: inherit;
}

body .sweet-alert h2 {
    margin: 4px 0 9px;
    color: #253f3c;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
}

body .sweet-alert p {
    color: #60716e;
    font-size: .98rem;
    line-height: 1.55;
}

body .sweet-alert button {
    min-width: 104px;
    min-height: 40px;
    margin: 20px 4px 0;
    padding: 9px 17px;
    border: 1px solid transparent !important;
    border-radius: 8px;
    box-shadow: none !important;
    font-size: .92rem;
    font-weight: 650;
}

body .sweet-alert button.confirm {
    color: #ffffff;
    background: linear-gradient(135deg, #247d78, #299792) !important;
    border-color: #247d78 !important;
}

body .sweet-alert button.cancel {
    color: #bd5652;
    background: #ffffff !important;
    border-color: #dda6a3 !important;
}

body .sweet-alert button:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(41, 137, 134, .2) !important;
}

@media (max-width: 575.98px) {
    body .swal2-container {
        padding: 10px;
    }

    body .swal2-container .swal2-popup:not(.swal2-toast) {
        max-width: calc(100vw - 20px);
        padding: 22px 17px 19px;
        border-radius: 13px;
    }

    body .swal2-container .swal2-icon {
        margin-bottom: 14px;
    }

    body .swal2-container .swal2-title,
    body .sweet-alert h2 {
        font-size: 1.25rem;
    }

    body .swal2-container .swal2-actions {
        width: 100%;
        gap: 7px;
    }

    body .swal2-container .swal2-styled {
        flex: 1 1 110px;
    }

    body .sweet-alert {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
        padding: 22px 17px 19px;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swal2-show,
    .swal2-hide,
    body .swal2-container .swal2-styled {
        animation: none !important;
        transition: none !important;
    }
}
