
html {
    scrollbar-color: rgba(100, 100, 100, 0.5) transparent;
    scrollbar-width: thin;
    overscroll-behavior: none !important;
}

@font-face {
    font-family: 'Aptos';
    src: url('../fonts/Aptos.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('../fonts/Aptos-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

*, html, body {
    font-family: "Aptos", sans-serif;
    font-size: var(--font-size);
    --bs-card-bg: var(--bg-light);
    /*--bs-table-bg: var(--bg-light);*/
}

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

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(128, 89, 89, 0.67);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(128, 89, 89, 0.85);
}

.btn-info {
    --bs-btn-color: var(--acme-color-surface);
    --bs-btn-hover-color: var(--acme-color-surface);
    --bs-btn-bg: var(--acme-color-info-action);
    --bs-btn-hover-bg: color-mix(in srgb, var(--acme-color-info-action) 84%, black);
    --bs-btn-hover-border-color: var(--acme-color-info-action);
    --bs-btn-border-color: var(--acme-color-info-action);
}

main {
    max-height: 100vh;
    height: 100% !important;
}

h1:focus-visible {
    outline: 2px solid var(--acme-color-primary-action);
    outline-offset: 2px;
}

aside::-webkit-scrollbar {
    display: none;
}

aside > .nav > li > a > span > i {
    /*background: #3a3f48;*/
    height: 30px;
    width: 30px;
    border-radius: 10%;
}

.modal-width-200 .modal-dialog {
    width: 200px !important;
}

.modal-width-250 .modal-dialog {
    width: 250px !important;
}

.modal-width-300 .modal-dialog {
    width: 300px !important;
}

.modal-width-350 .modal-dialog {
    width: 350px !important;
}

.modal-width-400 .modal-dialog {
    width: 400px !important;
}

.modal-width-450 .modal-dialog {
    width: 450px !important;
}

.modal-width-500 .modal-dialog {
    width: 500px !important;
}

.modal-width-550 .modal-dialog {
    width: 550px !important;
}

.modal-width-600 .modal-dialog {
    width: 600px !important;
}

.modal-width-700 .modal-dialog {
    width: 700px !important;
}

.modal-width-900 .modal-dialog {
    width: 900px !important;
}

.modal-width-1000 .modal-dialog {
    width: 1000px !important;
}

.navbar-toggler {
    /*display: unset !important;*/
}

code {
    color: #c02d76;
}

.popup .nav-link {
    padding: 0 5px !important;
}

.popup .nav-link:not(.active) {
    color: var(--acme-color-primary-action);
}

.card .ico-card {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reportFilterDialog select {
    height: 26px;
}

.report-control-button {
    display: flex;
    gap: .25rem;
}

.spinner {
    margin: 100px auto;
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

.spinner > div {
    background-color: #ffffff;
    height: 100%;
    width: 6px;
    display: inline-block;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1.0);
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}

.modal-confirmation button.btn-secondary {
    margin-right: 5px;
}

.modal-confirmation button {
    padding: 2px;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    text-align: right !important;
}

/* Chrome, Safari, Edge */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lds-roller {
    /* change color here */
    color: #d6dfe3;
    display: inline-block;
    position: relative;
    width: 32px; /* Reduced from 40px */
    height: 8px; /* Reduced from 10px */
}

.lds-roller,
.lds-roller div,
.lds-roller div:after {
    box-sizing: border-box;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 32px 32px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin: -2.9px 0 0 -2.9px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 50px;
    left: 50px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 54px;
    left: 45px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 57px;
    left: 39px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 58px;
    left: 32px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 57px;
    left: 25px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 54px;
    left: 19px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 50px;
    left: 14px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 45px;
    left: 10px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.icon-disable {
    color: var(--acme-color-text-disabled);
    cursor: not-allowed;
}

.loading-progress-text {
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.initial-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

.pulse-wave-container {
    margin-top: 40vh;
    position: relative;
    width: 600px;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-roboto {
    font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}


/* Pulse waves */
.pulse-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0;
    z-index: 5;
}

.wave-1 {
    width: 200px;
    height: 100px;
    border-color: #F44336;
    animation: preloaderPulse 4s infinite ease-out;
}

.wave-2 {
    width: 200px;
    height: 100px;
    border-color: #2196F3;
    animation: preloaderPulse 4s infinite ease-out 0.5s;
}

.wave-3 {
    width: 200px;
    height: 100px;
    border-color: #FF9800;
    animation: preloaderPulse 4s infinite ease-out 1s;
}

.wave-4 {
    width: 200px;
    height: 100px;
    border-color: #4CAF50;
    animation: preloaderPulse 4s infinite ease-out 1.5s;
}

@keyframes preloaderPulse {
    0% {
        transform: scale(0.1);
        opacity: 0.8;
    }

    70% {
        opacity: 0.4;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Loading bar */
.loading-bar-container {
    width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.loading-bar {
    height: 100%;
    width: var(--blazor-load-percentage);
    background: linear-gradient(90deg, #F44336, #2196F3);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}

.loading-text {
    margin-top: 25px;
    font-size: 1.2rem;
    color: #aaa;
    text-align: center;
    letter-spacing: 2px;
}

.loading-dots {
    display: inline-block;
    width: 60px;
    text-align: left;
}

.loading-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2196F3;
    border-radius: 50%;
    margin: 0 3px;
    opacity: 0;
}

.dot-1 {
    animation: dotPulse 1.5s infinite;
}

.dot-2 {
    animation: dotPulse 1.5s infinite 0.2s;
}

.dot-3 {
    animation: dotPulse 1.5s infinite 0.4s;
}

@keyframes dotPulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.status-text {
    margin-top: 20px;
    font-size: 1rem;
    color: #777;
    text-align: center;
    max-width: 500px;
    line-height: 1.5;
    font-family: monospace;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 14px;
}

.status-item.show {
    opacity: 1;
    transform: translateY(0);
}

.icon {
    width: 18px;
    text-align: center;
}

.page-loading-spinner i {
    animation: spin 1s linear infinite;
}

.check i {
    color: #28a745;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.background-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
    animation-duration: 25s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 80%;
    animation-delay: 10s;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, 30px) rotate(90deg);
    }

    50% {
        transform: translate(0, 60px) rotate(180deg);
    }

    75% {
        transform: translate(-30px, 30px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.completion-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.completion-screen.active {
    opacity: 1;
    visibility: visible;
}

.completion-check {
    font-size: 8rem;
    color: #4CAF50;
    margin-bottom: 30px;
    animation: checkScale 0.8s ease-out 0.5s both;
}

@keyframes checkScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-text {
    font-family: 'Audiowide', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.enter-button {
    margin-top: 40px;
    padding: 15px 40px;
    background: linear-gradient(90deg, #2196F3, #F44336);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Audiowide', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
}

.enter-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.6);
}

.modal-dialog {
    transition: transform 100ms ease-out, margin 100ms ease-out;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: var(--brand-font-size);
    }

    .wave-1, .wave-2, .wave-3, .wave-4 {
        width: 120px;
        height: 120px;
    }

    .completion-text {
        font-size: 2rem;
    }
}

/*loading end*/
.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    animation: navIconPulse 0.6s ease;
}

@keyframes navIconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-disable {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* [data-bare-input]: an input or textarea drawn inside a styled wrapper (e.g. the report find box, the AI chat
   composer) that shows focus on the wrapper itself; without the opt-out this rule paints a second ring/border
   inside it. */
input:not([type='checkbox']):not([type='radio']):not([type='button']):not([type='submit']):not([type='reset']):not([type='hidden']):not([data-bare-input]):focus-visible,
textarea:not([data-bare-input]):focus-visible,
select:focus-visible {
    outline: none !important;
    border-color: var(--acme-color-primary-action) !important;
    box-shadow: var(--acme-focus-ring) !important;
}

input:not([type='checkbox']):not([type='radio']):not([type='button']):not([type='submit']):not([type='reset']):not([type='hidden']):not([data-bare-input]):user-valid {
    border-color: var(--acme-color-success);
}

.switch-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.switch-slider {
    display: inline-block;
    width: 22px;
    height: 13px;
    flex: 0 0 auto;
    background-color: var(--acme-color-surface-subtle, #e9ecef);
    border: 1px solid var(--acme-color-border-soft, #ced4da);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: background-color var(--acme-transition-fast, 150ms ease),
                border-color var(--acme-transition-fast, 150ms ease),
                box-shadow var(--acme-transition-fast, 150ms ease);
}

.switch-checkbox:focus-visible + .switch-slider,
.switch-slider:focus-visible {
    border-color: var(--acme-color-primary-action, var(--bs-primary));
    outline: none;
    box-shadow: var(--acme-focus-ring, 0 0 0 0.2rem rgb(25 135 84 / 15%));
}

.switch-slider::before {
    content: "";
    position: absolute;
    height: 9px;
    width: 9px;
    left: 1px;
    top: 1px;
    background-color: var(--acme-color-surface, #fff);
    border-radius: 50%;
    box-shadow: 0 1px 2px var(--acme-overlay-20, rgb(0 0 0 / 20%));
    transition: transform var(--acme-transition-fast, 150ms ease);
}

.switch-slider[aria-disabled]::before {
    background-color: var(--acme-color-text-disabled, #9a9a9a);
}

.switch-slider[aria-disabled].non-focus-slider::before {
    background-color: var(--acme-color-surface, #fff);
}

.switch-checkbox:checked + .switch-slider {
    background-color: var(--acme-color-primary-action, var(--bs-primary));
    border-color: var(--acme-color-primary-action, var(--bs-primary));
}

.switch-checkbox:checked + .switch-slider::before {
    transform: translateX(9px);
}

.switch-checkbox + .switch-slider {
    margin-inline-end: 0.35rem;
    vertical-align: middle;
}

.switch-checkbox:disabled + .switch-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
    .switch-slider,
    .switch-slider::before {
        transition: none;
    }
}


.form-control:disabled {
    color: var(--text-readonly) !important;
}

.form-control-sm {
    padding: .2rem .5rem;
    max-height: calc(1.2em + .5rem + 2px);
    height: calc(1.2em + .5rem + 2px);
    min-height: 1.5rem;
    font-size: var(--font-size);
    line-height: 1.5;
    border-radius: .2rem;
}

.page-sticky-header {
    color: #9e163c !important;
    font-weight: bold;
    background-color: rgb(210, 211, 213);
    padding-right: 12px;
    z-index: 1000;
    width: -webkit-fill-available;
    width: -moz-available;
    /*border-radius: .3rem;*/
}


.page-sticky-header::before {
    content: "";
    box-shadow: 0 0 10px rgba(0, 0, 0, .8);
}

.page-sticky-header::after {
    border-radius: 5px;
}

.page-sticky-footer {
    padding-right: 12px;
}

.dragging {
    opacity: 0.8;
    cursor: grabbing !important;
}

.dropzone-height-expand {
    display: flex;
    height: 40px;
    width: 100%;
}

.dropzone-height-collapse {
    height: 0;
}

.dropzone-height-collapse .hide-zone {
    display: none;
}

#dropzone-container {
    -webkit-transition: height 1s ease;
    -moz-transition: height 1s ease;
    transition: height 1s ease;
}

.hide-zone {
    color: #545454;
    border: 2px dashed #ccc;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.hide-zone.dragover {
    background-color: #f6f6f6;
    border: #6a6a6a 1px solid;
}

.underlineTab {

    --bs-nav-link-color: var(--text-secondary);
    --bs-nav-link-hover-color: var(--brand-dark);
    --bs-nav-link-active-color: var(--brand-accent);
    --bs-nav-tabs-link-active-color: var(--brand-accent);
    --bs-nav-tabs-link-active-border-color: transparent transparent var(--brand-accent) transparent;
    font-size: var(--font-size);
    border-bottom: 2px solid var(--acme-color-border-light);
    display: flex;
    gap: 8px;
}

.underlineTab .nav-link {
    color: var(--bs-nav-link-color) !important;
    padding: 0.6rem 1rem;
    margin-bottom: -2px; /* Pull down to overlay neatly on the border line */
    border: none;
    border-bottom: 2px solid transparent;
    border-top-left-radius: var(--acme-radius-sm);
    border-top-right-radius: var(--acme-radius-sm);
    font-weight: 500;
    font-size: var(--font-size);
    line-height: var(--adt-line-height-base);
    transition: color var(--acme-transition-fast),
    background-color var(--acme-transition-fast),
    border-color var(--acme-transition-fast);
    background-color: transparent;
    cursor: pointer;
}

.underlineTab .nav-link.active {
    border-bottom: 2px solid var(--bs-nav-link-active-color) !important;
    font-weight: var(--adt-font-weight-bold);
    color: var(--bs-nav-link-active-color) !important;
    background-color: transparent !important;
}

.underlineTab .nav-link:not(.active):hover {
    color: var(--bs-nav-link-hover-color) !important;
    border-bottom: 2px solid var(--acme-color-border-strong);
    background-color: var(--brand-accent-10);
}

#licenseModel .modal-title {
    font-size: 1rem !important;
}

.body-content {
    display: flex;
    flex-direction: column;
}

.body-sticky-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.body-content .form-control:not(:focus) {
    border-radius: 2px;
    padding: 0.25rem 0.2rem;
}

.body-content .form-control input:focus {
    height: 23px;
    padding: 0.25rem 0.2rem;
    color: #495057;
    background-color: #fff;
    border-radius: 0;
    border: black 2px solid;
    outline: black 1px solid;
    box-shadow: 0 0 0 0 black !important;
}

.non-taxable * {
    color: var(--non-taxable-color) !important;
}

.modal:not(#preloader) {
    background: rgb(28 26 26 / 80%);
}

#preloader {
    backdrop-filter: none !important;
    filter: none !important;
}

.auto-progress {
    width: 0;
    height: 5px;
    animation: loading-loop 400ms forwards infinite;
}

@keyframes loading-loop {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

.max-w-200 {
    max-width: 200px !important;
}

.formatText {
    text-transform: capitalize;
}

.animated-btn {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 6px rgba(93, 55, 55, 0.1);
}

.animated-btn:hover {
    transform: translateY(-4px) scale(1.08) rotate(-1deg);
}

.animated-btn:hover i {
    animation: animatedButtonSpin 1s linear infinite;
}

@keyframes animatedButtonSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

input[type=number] {
    -moz-appearance: textfield;
    text-align: right !important;
}

.modal-backdrop {
    background-color: var(--brand-dark) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: none;
}

button:disabled {
    cursor: not-allowed;
}

.selected-row, .highlight-row, .highlight-row:focus {
    outline: #b2b2b2 solid 1px;
    background-color: var(--bs-table-hover-bg);
}

.selected-row > td {
    background: inherit;
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value]::before {
    content: attr(data-value);
}


.brand-text {
    font-family: "Audiowide", cursive;
    color: #e0e0e0;
    text-decoration: none;
}


.logo-text {
    font-family: "Audiowide", cursive;
    font-size: var(--brand-font-size);
    text-align: center;
    color: transparent;
    background: linear-gradient(90deg, #F44336, #2196F3, #F44336);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    z-index: 20;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.logoText::before {
    content: "acme Erp";
    font-family: "Audiowide", cursive;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1;

    /* Flowing gradient using #de6262 and #2951a6 */
    background: linear-gradient(
            90deg,
            #de6262 0%,
            #2951a6 50%,
            #de6262 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Layout & Alignment */
    display: inline-block;
    vertical-align: middle;
    align-self: center;
    animation: glowFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    flowGradient 4s linear infinite;
    will-change: transform, opacity, background-position;
}

@keyframes glowFadeIn {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.97);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flowGradient {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.tooltip .tooltip-inner {
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #aaa; /* optional border */
}

/* Tooltip arrow (the little triangle) */
.tooltip .arrow::before {
    border-top-color: #333 !important; /* for top-positioned tooltip */
    border-right-color: #333 !important; /* for right-positioned tooltip */
    border-bottom-color: #333 !important; /* for bottom */
    border-left-color: #333 !important; /* for left */
}

.sticky-footer {
    position: sticky !important;
    bottom: 0;
    z-index: 10;
}

.bold-row {
    background: var(--acme-bold-row) !important;
    color: var(--acme-color-danger) !important;
    font-weight: bolder !important;
}

.numericTextBox {
    text-align: end;
}

.floating-label {
    position: relative;
    width: auto;
}

.floating-label input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
}

.floating-label label {
    position: absolute !important;
    top: 1rem;
    left: 0.25rem;
    color: #8c98a4;
    max-width: fit-content;
    max-height: fit-content;
    transition: top 0.2s ease-in-out,
    left 0.2s ease-in-out,
    color 0.2s ease-in-out,
    font-size 0.2s ease-in-out;
    background: inherit;
    padding: 0 4px;
    pointer-events: none;
    border-radius: 5rem;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -0.5px;
    left: 0.65rem;
    font-size: var(--font-size);
    color: black;
    margin: 0 !important;
    padding: 1px 6px !important;
    background: white;
}

.floating-label-text {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #8c98a4;
    font-size: var(--font-size);
    background: #fff;
    padding: 0 4px;
    transition: top 0.2s ease-in-out,
    left 0.2s ease-in-out,
    color 0.2s ease-in-out,
    font-size 0.2s ease-in-out;
    pointer-events: none;
}

.floating-input:focus + .floating-label-text,
.floating-input:not(:placeholder-shown) + .floating-label-text {
    top: 0;
    left: 0.65rem;
    font-size: var(--font-size);
}

.toggle-password {
    font-size: var(--font-size);
    color: #6c757d;
    height: 100%;
    display: flex;
    align-items: center;
    right: 0.5rem;
}

.toggle-password:hover {
    color: #dc3545;
}

.floating-input:focus + .floating-label-text {
    animation: floatPop 0.2s ease-out;
}

@keyframes floatPop {
    0% {
        transform: translateY(-45%) scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

.btn-success {
    --bs-btn-bg: rgb(25, 135, 84);
    --bs-btn-border-color: rgb(25, 135, 84);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/*Phone Css*/
@media (max-width: 767px) {
    .sidebar-overlay.show {
        display: block;
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.box-sm {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 0.25rem;
}

.validation-message {
    color: #e50f0f;
}

.view-mode {
    pointer-events: none !important;
    background: #0f1010d9;
}

.modal {
    --bs-modal-footer-bg: #f5f5f5 !important;
    --bs-body-bg: #f5f5f5;
}

.no-wrap-label {
    white-space: nowrap;
}

.resizer {
    opacity: 0;
    transition: opacity 0.2s ease;
}

th:hover .resizer {
    opacity: 1;
}

.resizer.resizing {
    border-right: 1px solid var(--acme-color-primary-action);
}

.resizer:hover, .resizing {
    border-right: 2px solid #252728;
}

.dragging {
    background-color: #f0f0f0;
}

.overscroll-behavior-none {
    overscroll-behavior: none !important;
}

thead th {
    height: var(--table-header-height);
    vertical-align: middle;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--active-bg) !important;
}

button[draggable="true"] {
    cursor: grab;
}

.btn-small {
    --bs-btn-padding-y: .20rem !important;
    --bs-btn-padding-x: .5rem !important;
    --bs-btn-font-size: .5rem !important;
}

.text-dim {
    color: #b3b3b3 !important;
}

.bg-dim {
    background-color: #b3b3b3 !important;
}

.btn {
    /*border-radius: .25rem !important;*/
    font-weight: 500 !important;
    transition: color var(--acme-transition-base),
    background-color var(--acme-transition-base),
    border-color var(--acme-transition-base),
    box-shadow var(--acme-transition-base),
    transform var(--acme-transition-base) !important;
}

@media print {
    .print-only {
        display: block !important;
    }

    html, body {
        visibility: hidden;
        margin: 0;
        padding: 0;
    }

    /* Make print area visible and fill page */
    #print-area {
        visibility: visible;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background-color: white;
    }

    #print-area * {
        visibility: visible;
    }

    .no-print,
    aside {
        display: none !important;
    }

    #print-area table {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    #print-area thead {
        display: table-header-group;
    }

    #print-area tbody {
        display: table-row-group;
    }

    #print-area tr {
        display: table-row;
    }

    #print-area td,
    #print-area th {
        display: table-cell;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        margin: 1cm;
    }
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent-primary) 50%, transparent) transparent;
    overscroll-behavior: none;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent-primary) 50%, transparent);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--accent-primary) 80%, transparent);
}


/*Modal Core Css*/

.modal {
    display: none;
    z-index: var(--app-modal-z-index, 2147483430) !important;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    z-index: var(--app-modal-backdrop-z-index, 2147483420) !important;
    pointer-events: auto;
}

.modal-backdrop.show {
    opacity: 0.38;
}

@media (prefers-reduced-motion: reduce) {
    .modal-backdrop {
        transition: none;
    }
}

/*
 * iOS Safari enlarges the visual viewport when a focused text control uses a
 * computed font size below 16px. Keep controls readable without disabling
 * user pinch zoom through the viewport meta tag.
 */
@supports (-webkit-touch-callout: none) {
    input:not([type="button"]):not([type="checkbox"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="radio"]):not([type="range"]):not([type="reset"]):not([type="submit"]),
    textarea,
    select,
    [contenteditable="true"] {
        font-size: 16px !important;
    }
}

body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.modal-animation {
    will-change: transform, opacity, filter, clip-path;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.modal-body-scroll {
    max-height: 80dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

/* ========== DESKTOP ANIMATIONS (min-width: 769px) ========== */
@media (min-width: 769px) {

    .modal .modal-dialog {
        margin: 1.75rem auto !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .modal .modal-fullscreen {
        max-width: none !important;
        width: 100% !important;
    }

    .modal.show .modal-dialog,
    .modal:not(.show) .modal-dialog {
        transform: none !important;
    }

    .modal .modal-header::before {
        display: none;
    }

    .modal .btn,
    .modal .form-control,
    .modal .form-select {
        min-height: auto;
    }

    .modal-animation.smooth-scale .modal-dialog {
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.smooth-scale.show .modal-dialog {
        transform: scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Gentle Slide ========== */
    .modal-animation.gentle-slide .modal-dialog {
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.gentle-slide.show .modal-dialog {
        transform: translateY(0) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Elegant Fade ========== */
    .modal-animation.elegant-fade .modal-dialog {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.elegant-fade.show .modal-dialog {
        transform: scale(1) !important;
        opacity: 1;
        filter: blur(0);
    }

    .modal-animation.fluid-flip .modal-dialog {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center center;
    }

    .modal-animation.fluid-flip.show .modal-dialog {
        transform: perspective(1500px) rotateX(0deg) rotateY(0deg) scale(1) !important;
        opacity: 1;
    }

    .modal-animation.slide-right .modal-dialog {
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.slide-right.show .modal-dialog {
        transform: translateX(0) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Elastic Bounce ========== */
    .modal-animation.elastic-bounce .modal-dialog {
        transition: transform 0.7s cubic-bezier(0.68, -0.6, 0.32, 1.6),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.elastic-bounce.show .modal-dialog {
        transform: scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Glide Down ========== */
    .modal-animation.glide-down .modal-dialog {
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.glide-down.show .modal-dialog {
        transform: translateY(0) scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Rotate Scale ========== */
    .modal-animation.rotate-scale .modal-dialog {
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.rotate-scale.show .modal-dialog {
        transform: rotate(0deg) scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Parallax ========== */
    .modal-animation.parallax .modal-dialog {
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.parallax.show .modal-dialog {
        transform: translateY(0) scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Smooth Zoom ========== */
    .modal-animation.smooth-zoom .modal-dialog {
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.smooth-zoom.show .modal-dialog {
        transform: scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Reveal ========== */
    .modal-animation.reveal .modal-dialog {
        transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.reveal.show .modal-dialog {
        clip-path: circle(100% at 50% 50%);
        opacity: 1;
    }

    /* ========== ANIMATION: Smooth Skew ========== */
    .modal-animation.smooth-skew .modal-dialog {
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.smooth-skew.show .modal-dialog {
        transform: skewX(0deg) scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Gentle Scale ========== */
    .modal-animation.gentle-scale .modal-dialog {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.gentle-scale.show .modal-dialog {
        transform: scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Flip Fade ========== */
    .modal-animation.flip-fade .modal-dialog {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: left center;
    }

    .modal-animation.flip-fade.show .modal-dialog {
        transform: perspective(1000px) rotateY(0deg) translateX(0) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Smooth Fall ========== */
    .modal-animation.smooth-fall .modal-dialog {
        transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: top center;
    }

    .modal-animation.smooth-fall.show .modal-dialog {
        transform: translateY(0) rotateX(0deg) scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Pop ========== */
    .modal-animation.pop .modal-dialog {
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-animation.pop.show .modal-dialog {
        transform: scale(1) !important;
        opacity: 1;
    }

    /* ========== ANIMATION: Fade Slide ========== */
    .modal-animation.fade-slide .modal-dialog {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .modal-animation.fade-slide.show .modal-dialog {
        opacity: 1;
        transform: translateY(0) !important;
    }
}

@media (max-width: 768px) {

    .pulse-wave-container {
        width: 90vw;
        height: 200px;
    }

    .logo-text {
        font-size: var(--brand-font-size);
        margin-bottom: 30px;
    }

    .loading-bar-container {
        width: 80vw;
    }

    .wave-1, .wave-2, .wave-3, .wave-4 {
        width: 150px;
        height: 150px;
    }

    .completion-text {
        font-size: 2.5rem;
        text-align: center;
        padding: 0 20px;
    }

    .modal {
        padding-right: 0 !important;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) {
        will-change: transform;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-content {
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform, opacity, filter;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: translateY(100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        opacity: 1 !important;
        filter: none !important;
        clip-path: none !important;
    }

    .modal.show .modal-dialog:not([class*="modal-fullscreen"]) {
        transform: translateY(0) !important;
    }

    /* Centered Bootstrap dialogs become bottom sheets on phone screens. */
    .modal .modal-dialog-centered:not([class*="modal-fullscreen"]) {
        align-items: flex-end !important;
        min-height: auto !important;
        display: flex !important;
    }

    /* Bottom sheet content */
    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-content {
        border-radius: 16px 16px 0 0 !important;
        border: none !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top, 0px))) !important;
        overflow: hidden !important;
    }

    /* Header with grab handle */
    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-header {
        position: relative !important;
        padding: 20px 16px 12px 16px !important;
        cursor: grab;
        flex-shrink: 0;
        touch-action: none;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-header:active {
        cursor: grabbing;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-header .btn-close {
        margin: 0 0 0 auto !important;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 12px;
        touch-action: manipulation;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-body {
        max-height: calc(90dvh - 120px - env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1;
        overscroll-behavior-y: contain;
    }

    .modal .table-container {
        max-height: 50vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-footer {
        padding: 12px 16px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        background: inherit !important;
        border-radius: 0 !important;
        flex-shrink: 0;
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .modal .table tbody tr {
        cursor: pointer;
        transition: background-color 0.2s !important;
    }

    .modal .table tbody tr:active {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .modal .form-select {
        font-size: var(--font-size, 16px) !important;
    }

    .modal .search-text-box {
        font-size: var(--font-size, 16px) !important;
        min-height: 44px;
    }

    /* Fullscreen modals */
    .modal .modal-fullscreen {
        border-radius: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .modal .modal-fullscreen .modal-content {
        border-radius: 0 !important;
        max-height: 100vh !important;
    }

    .modal .modal-fullscreen .modal-body {
        max-height: calc(100vh - 120px) !important;
    }

    /* Size overrides */
    .modal .modal-sm,
    .modal .modal-lg,
    .modal .modal-xl {
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Drag state */
    body.modal-dragging,
    body.modal-dragging * {
        user-select: none;
        -webkit-user-select: none;
    }

    @media (hover: none) {
        .modal .modal-header:active {
            cursor: grabbing;
        }
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .modal .modal-dialog:not([class*="modal-fullscreen"]) {
        transition: none !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-content {
        max-height: 85dvh !important;
    }

    .modal .modal-dialog:not([class*="modal-fullscreen"]) .modal-body {
        max-height: calc(85dvh - 100px - env(safe-area-inset-bottom, 0px)) !important;
    }
}

@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .modal .modal-header {
            padding-top: max(20px, env(safe-area-inset-top)) !important;
            padding-left: max(20px, env(safe-area-inset-left)) !important;
            padding-right: max(20px, env(safe-area-inset-right)) !important;
        }

        .modal .modal-footer {
            padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
            padding-left: max(6px, env(safe-area-inset-left)) !important;
            padding-right: max(6px, env(safe-area-inset-right)) !important;
        }

        .modal .modal-body {
            padding-left: max(6px, env(safe-area-inset-left)) !important;
            padding-right: max(6px, env(safe-area-inset-right)) !important;
        }
    }
}

.modal-animation.animate-shake .modal-dialog {
    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/*winbox style*/
.offcanvas-backdrop:has(+ #navbarOffcanvas),
body:has(#navbarOffcanvas.show) > .offcanvas-backdrop {
    z-index: var(--navbar-overlay-z-index);
}

@media (max-width: 768px) {
    #sidebar-overlay {
        position: fixed;
        inset: var(--acme-shell-header-height, 42px) 0 0;
        z-index: var(--navbar-overlay-z-index);
        display: none;
        background: var(--navbar-overlay-bg);
    }

    #sidebar-overlay.show {
        display: block;
    }
}

/* =====================================================================================================================
   WinBox windows ("Open in Window"): chrome aligned with the application shell.
   Header matches the app top bar (--bg-color / --text-light), body matches pages (--acme-color-surface), the active
   window is marked with the brand primary (--bs-primary). All colours come from the tokens below.
   ===================================================================================================================== */
:root {
    --wb-header-height: 36px;
    --wb-radius: var(--acme-radius-lg, 10px);
    --wb-header-bg: var(--bg-color, #2f3640);
    --wb-header-bg-inactive: color-mix(in srgb, var(--bg-color, #2f3640) 78%, #ffffff 22%);
    --wb-header-text: var(--text-light, #e2e8f0);
    --wb-header-text-inactive: color-mix(in srgb, var(--text-light, #e2e8f0) 72%, transparent);
    --wb-header-divider: rgba(255, 255, 255, 0.07);
    --wb-accent: var(--bs-primary, #198754);
    --wb-body-bg: var(--acme-color-surface, #ffffff);
    --wb-border: color-mix(in srgb, var(--bg-color, #2f3640) 55%, transparent);
    --wb-border-active: color-mix(in srgb, var(--wb-accent) 55%, var(--bg-color, #2f3640));
    --wb-shadow: 0 18px 44px rgba(2, 19, 32, 0.30), 0 3px 10px rgba(2, 19, 32, 0.18);
    --wb-shadow-inactive: 0 8px 22px rgba(2, 19, 32, 0.18), 0 1px 4px rgba(2, 19, 32, 0.12);
    --wb-control-hover: rgba(255, 255, 255, 0.10);
    --wb-control-active: rgba(255, 255, 255, 0.18);
    --wb-close-hover: #c42b1c;
    --wb-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Frame ---------- */
.winbox.native-winbox {
    border: 1px solid var(--wb-border) !important;
    border-radius: var(--wb-radius);
    overflow: clip;
    background: var(--wb-header-bg) !important;
    box-shadow: var(--wb-shadow) !important;
    font-family: inherit;
    transition: width 180ms var(--wb-ease),
    height 180ms var(--wb-ease),
    left 180ms var(--wb-ease),
    top 180ms var(--wb-ease),
    opacity 140ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease !important;
}

/* Open animation plays once; `wb-ready` is added by interlop/winbox.js when it ends. */
.winbox.native-winbox:not(.wb-ready) {
    animation: wbOpen 180ms var(--wb-ease) both;
}

.winbox.native-winbox:not(.wb-inactive) {
    border-color: var(--wb-border-active) !important;
}

.winbox.native-winbox.wb-inactive {
    box-shadow: var(--wb-shadow-inactive) !important;
}

/* Calculator (F10) floats above the shell and all other windows. WinBox writes an inline z-index on
   focus, so this needs !important. */
.winbox.acme-calculator-window {
    z-index: var(--app-calculator-z-index, 2147483300) !important;
}

.winbox.acme-calculator-window .wb-body {
    overflow: hidden;
    background: var(--wb-body-bg);
}

/* Fixed size: no resize grips, no maximize, no snapping (see canSnap in interlop/winbox.js). */
.winbox.acme-calculator-window .wb-n,
.winbox.acme-calculator-window .wb-s,
.winbox.acme-calculator-window .wb-e,
.winbox.acme-calculator-window .wb-w,
.winbox.acme-calculator-window .wb-ne,
.winbox.acme-calculator-window .wb-nw,
.winbox.acme-calculator-window .wb-se,
.winbox.acme-calculator-window .wb-sw {
    display: none;
}

/* ---------- Header ---------- */
.winbox.native-winbox .wb-header {
    height: var(--wb-header-height);
    line-height: var(--wb-header-height);
    color: var(--wb-header-text);
    background: var(--wb-header-bg);
    border-bottom: 1px solid var(--wb-header-divider);
    transition: background-color 160ms ease, color 160ms ease;
}

/* Brand accent line on the focused window. */
.winbox.native-winbox .wb-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--wb-accent);
    opacity: 1;
    transition: opacity 160ms ease;
    pointer-events: none;
}

.winbox.native-winbox.wb-inactive .wb-header {
    color: var(--wb-header-text-inactive);
    background: var(--wb-header-bg-inactive);
}

.winbox.native-winbox.wb-inactive .wb-header::before {
    opacity: 0;
}

.winbox.native-winbox .wb-drag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
}

.winbox.native-winbox .wb-title {
    min-width: 0;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Small window glyph before the title (the WinBox `icon` option still wins when set). */
.winbox.native-winbox .wb-drag::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 10px;
    border: 2px solid currentColor;
    border-top-width: 3px;
    border-radius: 2px;
    opacity: 0.7;
}

.winbox.native-winbox .wb-icon:not([style*="background-image"]) {
    display: none;
}

/* ---------- Window controls ---------- */
.winbox.native-winbox .wb-control {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 4px;
    gap: 2px;
}

.winbox.native-winbox .wb-control > span {
    width: 34px;
    height: 26px;
    border-radius: 6px;
    background-color: transparent;
    background-position: center !important;
    opacity: 0.82;
    cursor: pointer;
    transition: background-color 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.winbox.native-winbox .wb-control .wb-min {
    background-size: 12px auto;
}

.winbox.native-winbox .wb-control .wb-max {
    background-size: 13px auto;
}

.winbox.native-winbox .wb-control .wb-full {
    background-size: 13px auto;
}

.winbox.native-winbox .wb-control .wb-close {
    background-size: 11px auto;
}

.winbox.native-winbox .wb-control > span:hover {
    opacity: 1;
    background-color: var(--wb-control-hover);
}

.winbox.native-winbox .wb-control > span:active {
    background-color: var(--wb-control-active);
    transform: scale(0.94);
}

.winbox.native-winbox .wb-control .wb-close:hover {
    background-color: var(--wb-close-hover);
}

/* ---------- Body ---------- */
.winbox.native-winbox .wb-body {
    top: var(--wb-header-height);
    color: var(--acme-color-text-default, inherit);
    background: var(--wb-body-bg);
    scrollbar-width: thin;
    scrollbar-color: var(--acme-color-border-strong, #a7a5a5) transparent;
}

/* ---------- States ---------- */
.winbox.native-winbox.max {
    border-radius: 0;
    border-color: transparent !important;
    box-shadow: none !important;
}

.winbox.native-winbox.max .wb-header::before {
    display: none;
}

/* Minimized windows sit on the bottom edge like taskbar chips. */
.winbox.native-winbox.min {
    border-radius: 8px 8px 0 0;
    border-bottom-width: 0 !important;
    box-shadow: 0 -2px 12px rgba(2, 19, 32, 0.22) !important;
}

.winbox.native-winbox.min .wb-header {
    color: var(--wb-header-text);
    background: var(--wb-header-bg);
    cursor: pointer;
}

.winbox.native-winbox.min .wb-header:hover {
    background: color-mix(in srgb, var(--wb-header-bg) 86%, #ffffff 14%);
}

.winbox.native-winbox.min .wb-header::before {
    opacity: 0.55;
}

/* While WinBox is dragging/resizing (body.wb-lock) the frame follows the pointer 1:1 — the left/top/size
   transitions above are only for snapping, maximize and restore. */
.wb-lock .winbox.native-winbox,
.winbox.native-winbox.wb-dragging {
    transition: box-shadow 160ms ease, border-color 160ms ease, opacity 120ms ease !important;
}

.winbox.native-winbox.wb-near-snap {
    opacity: 0.88;
}

.winbox.native-winbox.wb-snap-bounce {
    animation: winboxSnapBounce 240ms cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Snap preview ---------- */
/* Ghost of the target zone (half, quarter or maximize). Sits above windows, below the shell header. */
.winbox-snap-preview {
    position: fixed;
    z-index: 2147483000;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    border: 1px solid color-mix(in srgb, var(--wb-accent) 55%, transparent);
    border-radius: var(--wb-radius);
    background: color-mix(in srgb, var(--wb-accent) 12%, transparent);
    box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--wb-accent) 8%, transparent),
                0 12px 32px rgba(2, 19, 32, 0.18);
    transition: left 160ms var(--wb-ease), top 160ms var(--wb-ease),
                width 160ms var(--wb-ease), height 160ms var(--wb-ease),
                border-radius 160ms var(--wb-ease), opacity 120ms ease;
}

.winbox-snap-preview.visible {
    opacity: 1;
}

.winbox-snap-preview.is-maximize {
    border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
    .winbox-snap-preview,
    .winbox.native-winbox {
        transition: opacity 80ms linear !important;
    }

    .winbox.native-winbox.wb-snap-bounce {
        animation: none;
    }
}

/* ---------- Window switcher (keyboard cycle) ---------- */
.winbox-window-switcher {
    position: fixed;
    left: 50%;
    top: 46%;
    z-index: 2147483100;
    display: flex;
    max-width: min(760px, calc(100vw - 32px));
    padding: 10px;
    gap: 8px;
    overflow-x: auto;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: color-mix(in srgb, var(--wb-header-bg) 92%, transparent);
    box-shadow: 0 24px 70px rgba(2, 19, 32, 0.45);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: opacity 100ms ease, transform 140ms cubic-bezier(.16, 1, .3, 1);
}

.winbox-window-switcher.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.winbox-switcher-item {
    display: flex;
    align-items: center;
    width: 150px;
    min-width: 150px;
    height: 64px;
    padding: 10px;
    gap: 10px;
    color: var(--wb-header-text-inactive);
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
}

.winbox-switcher-item.active {
    color: var(--wb-header-text);
    border-color: color-mix(in srgb, var(--wb-accent) 70%, #ffffff);
    background: color-mix(in srgb, var(--wb-accent) 24%, transparent);
}

.winbox-switcher-icon {
    font-size: 20px;
    color: color-mix(in srgb, var(--wb-accent) 60%, #ffffff);
}

.winbox-switcher-title {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes wbOpen {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes winboxSnapBounce {
    0% {
        transform: scale(0.985);
    }
    62% {
        transform: scale(1.008);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .winbox,
    .winbox-snap-preview,
    .winbox-window-switcher {
        transition: none !important;
        animation: none !important;
    }
}

/* Modals/offcanvas rendered by a page inside a WinBox are scoped to that window (see interlop/winbox.js).
   `position: fixed` resolves against `.wb-body` because WinBox applies CSS containment. */
.winbox .wb-body .modal,
.winbox .wb-body .modal-backdrop,
.winbox .wb-body .offcanvas-backdrop {
    position: fixed;
    top: var(--wb-scroll-top, 0px);
    left: var(--wb-scroll-left, 0px);
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
}

.winbox .wb-body .modal .modal-dialog:not([class*="modal-fullscreen"]) {
    max-width: min(var(--bs-modal-width, 500px), calc(100% - 1rem));
    margin: 0.5rem auto;
}

/* Centre dialogs (report filters) in the window's own height, not the page's 1.75rem gutters. */
.winbox .wb-body .modal .modal-dialog-centered:not([class*="modal-fullscreen"]) {
    min-height: calc(100% - 1rem);
}

/* A dialog taller than the window scrolls inside its own overlay; the scroll never chains to the page. */
.winbox .wb-body .modal {
    overscroll-behavior: contain;
}

/* The mount div is the window's page host: give it the same height chain as `.content-page` in DynamicTabPage so
   pages built with `height: 100%` (e.g. TransactionBaseUi) fit the window and keep their own header/footer/scroll. */
.winbox .wb-body > .winbox-mount {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: auto;
}

.winbox .wb-body > .winbox-mount > * {
    flex-shrink: 0;
}

.winbox .wb-body > .winbox-mount > .transaction-shell {
    flex: 1 1 auto;
    min-height: 0;
}

.winbox.wb-overlay-open .wb-body {
    overflow: hidden;
}

/* The mount is the window's only scroller. `.wb-body` (WinBox default: overflow auto) must never scroll: fixed
   popovers (context menu, overlays) resolve against it and would otherwise add blank scrollable space around the
   page. `clip` also blocks programmatic scrolling (focus / scrollIntoView). */
.winbox.native-winbox .wb-body {
    overflow: clip;
}

.winbox .wb-body > .winbox-mount {
    overscroll-behavior: contain;
}

/* Report pages scroll inside their grid viewport (headers/footer pinned), exactly like in a tab: the report fills
   the window and the mount itself never scrolls, so no extra space appears below or beside the report. */
.winbox .wb-body > .winbox-mount:has(> .report-viewer) {
    overflow: hidden;
}

.winbox .wb-body > .winbox-mount > .report-viewer {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}


.modal-header *[role="button"] {
    color: rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important;
}


.page-content {
    background-color: #fff !important;
}

.body-sticky-header {
    display: flex;
    flex-direction: column;
    gap: .5rem !important
}

.status-alert-label {
    color: var(--acme-color-danger);
    background: var(--acme-color-danger-soft);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    margin-left: auto;
}

.customer-matrix-box {
    background-color: #f8fafc;
    border: 1px solid var(--acme-color-border);
    border-radius: 6px;
    padding: 12px;
    display: grid;
    grid-template-columns: 75px 1fr;
    grid-template-rows: auto;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 12px;
}

.matrix-title {
    font-weight: 600;
    color: #64748b;
}

.matrix-value {
    color: var(--brand-dark);
    font-weight: 500;
}

.grid-structure-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.form-element-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.form-element-row:last-child {
    margin-bottom: 0;
}

.label-cell {
    grid-column: span 4;
    font-weight: 500;
    color: #475569;
}

.label-cell.required-field::after {
    content: " *";
    color: var(--bs-danger);
}

.input-cell {
    grid-column: span 8;
    display: flex;
    align-items: center;
    position: relative;
}


.fixed-column {
    width: var(--fixed-column-width, 4rem);
}

.transaction-shell {
    display: block;
    height: 100%;
    min-height: 0;
}


.form-control.is-invalid {
    outline: 1px solid var(--acme-color-danger);
    background-image: none;
}

.form-control.is-invalid:focus-visible,
.form-select.is-invalid:focus-visible {
    outline-color: var(--acme-color-danger) !important;
    border-color: var(--acme-color-danger) !important;
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--acme-color-danger) 25%, transparent) !important;
}

/* Shared floating surface used by Popover and ContextMenu. */
.acme-popover-surface {
    --popover-surface-bg: var(--acme-color-surface);
    --popover-surface-text: var(--acme-color-text-default);
    --popover-item-hover: var(--acme-color-surface-hover);
    --popover-item-active: color-mix(in srgb, var(--acme-color-primary-action) 10%, var(--acme-color-surface));
    --popover-divider: var(--acme-color-border-light);
    --popover-border: var(--acme-color-border-light);
    --popover-icon: var(--acme-color-text-muted);
    --popover-danger: var(--acme-color-danger-strong);
    z-index: var(--navbar-nested-popup-z-index, 2147483230);
    color: var(--popover-surface-text);
    background: var(--popover-surface-bg);
    border: 1px solid var(--popover-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--acme-overlay-10), 0 18px 42px var(--acme-overlay-20);
}

.acme-popover-surface.account-popover-surface,
.acme-popover-surface.navbar-popover-surface {
    --popover-surface-bg: var(--bg-color);
    --popover-surface-text: var(--text-light);
    --popover-item-hover: var(--acme-white-08);
    --popover-item-active: color-mix(in srgb, var(--acme-color-primary-action) 30%, var(--bg-color));
    --popover-divider: var(--acme-white-08);
    --popover-border: color-mix(in srgb, var(--text-light) 16%, transparent);
    --popover-icon: var(--text-muted);
    --popover-danger: color-mix(in srgb, var(--acme-color-danger) 65%, white);
}

/* The account panel draws its own edge-to-edge header, so it skips the default menu padding. */
.acme-popover-surface.account-popover-surface {
    padding: 0;
}

.acme-popover-surface.bg-dark {
    --popover-surface-bg: var(--bg-dark);
    --popover-surface-text: var(--text-light);
    --popover-item-hover: var(--acme-white-08);
    --popover-item-active: color-mix(in srgb, var(--acme-color-primary-action) 24%, var(--bg-dark));
    --popover-divider: var(--acme-white-08);
}

.acme-popover-surface .menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.acme-popover-surface .menu-item {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    gap: .625rem;
    padding: .55rem .75rem;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: var(--acme-radius-md);
    cursor: pointer;
    font: inherit;
    line-height: 1.35;
    text-align: start;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background-color var(--acme-transition-fast), color var(--acme-transition-fast);
}

.acme-popover-surface .menu-item:hover {
    color: inherit;
    background: var(--popover-item-hover);
}

.acme-popover-surface .menu-item:focus-visible,
.acme-popover-surface .menu-icon-action:focus-visible {
    outline: 2px solid var(--acme-color-primary-action);
    outline-offset: -2px;
}

.acme-popover-surface .menu-item > i,
.acme-popover-surface .menu-item-icon {
    width: 18px;
    flex: 0 0 18px;
    color: var(--popover-icon);
    text-align: center;
}

.acme-popover-surface .menu-item.bg-light,
.acme-popover-surface .menu-item.selected {
    color: var(--acme-color-primary-action) !important;
    background: var(--popover-item-active) !important;
    font-weight: 600;
}

.acme-popover-surface .menu-item.danger,
.acme-popover-surface .menu-item.danger > i {
    color: var(--popover-danger);
}

.acme-popover-surface .menu-divider {
    height: 1px;
    margin: .375rem .5rem;
    background: var(--popover-divider);
}

.acme-popover-surface .menu-heading {
    padding: .5rem .75rem .35rem;
    color: var(--popover-icon);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.acme-popover-surface .context-menu-row {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.acme-popover-surface .context-menu-row > .menu-item {
    min-width: 0;
    flex: 1;
}

.acme-popover-surface .menu-item-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acme-popover-surface .menu-item-actions {
    display: inline-flex;
    gap: .125rem;
    padding-right: .25rem;
}

.acme-popover-surface .menu-icon-action {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: var(--popover-icon);
    background: transparent;
    border: 0;
    border-radius: var(--acme-radius-md);
}

.acme-popover-surface .menu-icon-action:hover {
    color: var(--popover-surface-text);
    background: var(--popover-item-hover);
}

.acme-popover-surface .menu-icon-action.danger {
    color: var(--popover-danger);
}

@media (pointer: coarse) {
    .acme-popover-surface .menu-item {
        min-height: 44px;
    }

    .acme-popover-surface .menu-icon-action {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* ==========================================================================
   Restaurant Billing dialog chrome
   Shared by RestaurantProductInfoDialog and RestaurantPacksSheet. These classes sit on elements rendered by
   Blazor.Bootstrap Modal/Offcanvas, which scoped CSS cannot reach, so they are global.
   ========================================================================== */
.restaurant-billing__product-dialog .modal-content {
    overflow: hidden;
    border-color: var(--acme-color-border-light);
    border-radius: var(--acme-radius-lg);
    background: var(--acme-color-surface);
    box-shadow: var(--acme-dialog-shadow);
}

.restaurant-billing__product-dialog-header {
    padding: 0.75rem 1rem;
    color: var(--acme-color-text-default);
    border-bottom: 1px solid var(--acme-color-border-light);
    background: var(--acme-color-surface-muted);
}

.restaurant-billing__product-dialog-header small {
    color: var(--acme-color-text-muted);
}

.restaurant-billing__product-dialog-icon {
    display: inline-grid;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: var(--acme-color-primary-action);
    border: 1px solid color-mix(in srgb, var(--acme-color-primary-action) 22%, var(--acme-color-border-light));
    border-radius: var(--acme-radius-md);
    background: color-mix(in srgb, var(--acme-color-primary-action) 9%, var(--acme-color-surface));
}

.restaurant-billing__product-dialog-footer {
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--acme-color-border-light);
    background: var(--acme-color-surface-muted);
}


/* ---------- Layout loading placeholder (Static/LayoutPlaceHolder.razor) ----------
   Mirrors AdminLayout / MainLayout / EmptyLayout. Colors come from --layout-ph-* in theme.css.
   Sizes are passed per bone via --ph-w / --ph-h. */
.layout-ph {
    height: 100vh;
    min-height: 0;
    background: var(--layout-ph-content-bg);
}

@supports (height: 100dvh) {
    .layout-ph {
        height: 100dvh;
    }
}

.layout-ph > main {
    min-width: 0;
    min-height: 0;
}

.layout-ph-header {
    position: relative;
    z-index: 1;
    background: var(--layout-ph-shell-bg);
    box-shadow: var(--layout-ph-shell-shadow);
}

.layout-ph-topbar {
    min-height: 2.6rem;
    padding-inline: .5rem;
    min-width: 0;
    overflow: hidden;
}

.layout-ph-navbar {
    height: var(--navbar-height);
    padding-inline: .5rem;
    background: var(--layout-ph-nav-bg);
    border-top: 1px solid var(--acme-white-08);
    border-bottom: 1px solid var(--layout-ph-shell-border);
}

.layout-ph-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    padding: 6px;
    background: var(--layout-ph-nav-bg);
    border-right: 1px solid var(--layout-ph-shell-border);
    box-shadow: var(--navbar-shadow);
    overflow: hidden;
}

.layout-ph-sidebar-item {
    height: 26px;
    margin-bottom: .5rem;
}

.layout-ph-content {
    min-width: 0;
    background: var(--layout-ph-content-bg);
}

.layout-ph-tabs {
    height: 1.75rem;
    border-bottom: 1px solid var(--acme-color-border-light);
}

.layout-ph-bone {
    --ph-bone: var(--layout-ph-content-bone);
    --ph-bone-shine: var(--layout-ph-content-bone-shine);
    display: block;
    flex: 0 0 auto;
    width: var(--ph-w, 100%);
    height: var(--ph-h, 1rem);
    border-radius: var(--layout-ph-bone-radius);
    background: linear-gradient(90deg, var(--ph-bone) 25%, var(--ph-bone-shine) 37%, var(--ph-bone) 63%);
    background-size: 400% 100%;
    animation: layout-ph-shimmer var(--layout-ph-shimmer-duration) ease infinite;
}

.layout-ph-header .layout-ph-bone,
.layout-ph-sidebar .layout-ph-bone {
    --ph-bone: var(--layout-ph-shell-bone);
    --ph-bone-shine: var(--layout-ph-shell-bone-shine);
}

.layout-ph-bone.is-pill {
    border-radius: var(--acme-radius-pill);
}

.layout-ph-bone.is-circle {
    border-radius: 50%;
}

.layout-ph-bone.is-fill {
    flex: 1 1 auto;
    height: auto;
    min-height: 3rem;
}

.layout-ph-tabs .layout-ph-bone {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

@keyframes layout-ph-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .layout-ph-bone {
        animation: none;
        background: var(--ph-bone);
    }
}

/*
 * Nested modals: a modal opened from inside another modal (a PickList or prompt rendered in a DynamicModal body,
 * e.g. Dashboard › Widget access › User / Company pickers).
 * The parent's open-state transform (`.modal-animation.*.show .modal-dialog { transform: scale(1) }`),
 * `will-change: transform / filter / clip-path` and translateZ hacks each make the parent a containing block for
 * position:fixed descendants, so the child modal was laid out inside the parent dialog and clipped by its
 * overflow:hidden content instead of covering the viewport. While a child modal is open, drop those properties on
 * the parent chain (visually identical: scale(1) / translate(0) == none) and give the child its own dimmed backdrop,
 * because the body-level backdrop sits below the parent modal.
 * Must stay last in this file so it beats the phone bottom-sheet rules above.
 */
.modal:has(.modal.show),
.modal:has(.modal.show) .modal-dialog,
.modal:has(.modal.show) .modal-content,
.modal:has(.modal.show) .modal-body,
.modal:has(.modal.show) .modal-body-scroll {
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    will-change: auto !important;
    contain: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.modal .modal.show {
    background-color: rgb(15 23 42 / 38%);
}
