@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url("/minia/fonts/ibm-plex-sans/IBMPlexSans.woff2") format("woff2");
}

body.minia-app:not([data-bs-theme="dark"]) {
    background: #f8f8fb !important;
    color: #1f2430;
    /* Readable text everywhere: Bootstrap body / muted / caption colours, one step darker. */
    --bs-body-color: #262b36;
    --bs-body-color-rgb: 38, 43, 54;
    --bs-text-muted: #535869;
    --bs-card-title-desc: #535869;
    --bs-gray-600: #535869;
    --bs-footer-color: #535869;
    --bs-input-placeholder-color: #8a8fa0;
}

body.minia-app,
body.minia-app *:not(.bi):not([class^="bi-"]):not([class*=" bi-"]):not(.fa):not(.fas):not(.far):not(.fab):not([class^="fa-"]):not([class*=" fa-"]):not(.mdi):not([class^="mdi-"]):not([class*=" mdi-"]):not(.bx):not([class^="bx-"]):not([class*=" bx-"]):not([class*="dripicons"]) {
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif) !important;
}

body.minia-app {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    /* Default (subpixel) smoothing: antialiased renders IBM Plex noticeably thinner. */
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

/* Body copy stays regular. Titles, navigation, and table headers set their own weight. */
body.minia-app label,
body.minia-app .form-label,
body.minia-app .header-item,
body.minia-app .breadcrumb,
body.minia-app .navbar-header,
body.minia-app .dropdown-item,
body.minia-app .pf-field > span,
body.minia-app .pf-ops-tab {
    font-weight: 400;
}

body.minia-app .sidebar-brand .logo-txt,
body.minia-app .logo-txt {
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif) !important;
    font-weight: var(--pf-weight-strong, 600) !important;
    font-size: calc(var(--pf-size, 16px) + 2px);
}

body.minia-app h1,
body.minia-app h2,
body.minia-app h3,
body.minia-app h4,
body.minia-app h5,
body.minia-app h6,
body.minia-app .card-title,
body.minia-app .page-title-box h4 {
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif) !important;
    font-weight: 600 !important;
    letter-spacing: -0.018em;
}

body.minia-app:not([data-bs-theme="dark"]) h1,
body.minia-app:not([data-bs-theme="dark"]) h2,
body.minia-app:not([data-bs-theme="dark"]) h3,
body.minia-app:not([data-bs-theme="dark"]) h4,
body.minia-app:not([data-bs-theme="dark"]) h5,
body.minia-app:not([data-bs-theme="dark"]) h6,
body.minia-app:not([data-bs-theme="dark"]) .card-title,
body.minia-app:not([data-bs-theme="dark"]) .page-title-box h4 {
    color: #1b2130;
}

body.minia-app .page-title-box h4 {
    font-size: 1.2rem;
    line-height: 1.3;
}

body.minia-app .btn {
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

body.minia-app .btn-primary,
body.minia-app .btn-danger {
    font-weight: 600 !important;
}

body.minia-app #sidebar-menu ul li a {
    font-size: 14px;
    font-weight: 500 !important;
    letter-spacing: -0.006em;
    line-height: 1.35;
}

body.minia-app #sidebar-menu #side-menu > li.mm-active > a,
body.minia-app #sidebar-menu #side-menu > li > a.active,
body.minia-app #sidebar-menu .sub-section li.mm-active > a,
body.minia-app #sidebar-menu .sub-section a.active {
    font-weight: 600 !important;
}

body.minia-app #sidebar-menu .sub-section li a {
    font-size: 13.5px;
}

body.minia-app .footer {
    font-size: 13px;
    color: #6b7280;
}

/* Explicit emphasis utilities only — relative to theme base. */
body.minia-app .font-medium,
body.minia-app .fw-medium,
body.minia-app .fw-semibold,
body.minia-app .font-semibold {
    font-weight: var(--pf-weight-medium, 500) !important;
}

body.minia-app .font-bold,
body.minia-app .fw-bold {
    font-weight: var(--pf-weight-strong, 600) !important;
}

body.minia-app .mdi:before,
body.minia-app [class^="mdi-"]:before,
body.minia-app [class*=" mdi-"]:before,
body.minia-app #sidebar-menu .has-arrow:after {
    font-family: "Material Design Icons" !important;
    font-weight: 400 !important;
}

body.minia-app .bx:before,
body.minia-app [class^="bx-"]:before,
body.minia-app [class*=" bx-"]:before {
    font-family: boxicons !important;
    font-weight: 400 !important;
}

body.minia-app .fa:before,
body.minia-app .fas:before,
body.minia-app [class^="fa-"]:before,
body.minia-app [class*=" fa-"]:before {
    font-family: "Font Awesome 5 Free" !important;
}

body.minia-app .fab:before {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

body.minia-app [class*="dripicons-"]:before {
    font-family: dripicons-v2 !important;
    font-weight: 400 !important;
}

body.minia-app #sidebar-menu ul li a svg {
    display: inline-block;
    width: 16px !important;
    height: 16px !important;
    margin-right: 10px;
    stroke: currentColor;
    vertical-align: middle;
}

body.minia-app .main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.minia-app .page-content {
    flex: 1 0 auto;
    padding-bottom: 24px !important;
}

body.minia-app .footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto;
    height: auto;
    margin-top: auto;
}

body.minia-app #page-topbar {
    height: 70px;
}

body.minia-app .dash-meter,
body.minia-app .dash-spark,
body.minia-app .dash-plot,
body.minia-app .dash-donut {
    position: relative;
    overflow: hidden;
}

/* Equal-height Profit / Today / Stock cards in the dashboard mid row */
@media (min-width: 1200px) {
    body.minia-app .dash-mid-row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    body.minia-app .dash-mid-row > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    body.minia-app .dash-mid-row > .col-xl-5 > .dash-mid-card {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        margin-bottom: 1.25rem;
    }

    body.minia-app .dash-mid-nested {
        display: flex;
        flex-wrap: wrap;
        flex: 1 1 auto;
        width: 100%;
        align-items: stretch;
        margin-left: 0;
        margin-right: 0;
    }

    body.minia-app .dash-mid-nested > [class*="col-"] {
        display: flex;
        flex-direction: column;
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    }

    body.minia-app .dash-mid-nested > [class*="col-"] > .dash-mid-card {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        margin-bottom: 1.25rem;
    }

    body.minia-app .dash-mid-card > .card-body {
        flex: 1 1 auto;
    }
}

body.minia-app .dash-mid-card {
    display: flex;
    flex-direction: column;
}

body.minia-app .dash-meter {
    height: 180px;
}

body.minia-app .dash-donut {
    height: 230px;
}

body.minia-app .dash-spark {
    height: 46px;
}

body.minia-app .dash-plot {
    height: 300px;
}

body.minia-app .dash-plot-side {
    height: auto;
    min-height: 0;
}

body.minia-app .dash-spark .apexcharts-canvas,
body.minia-app .dash-meter .apexcharts-canvas,
body.minia-app .dash-plot .apexcharts-canvas {
    margin: 0 auto;
}

body.minia-app .watch-tile {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 14px 8px;
}

body.minia-app .navbar-header,
body.minia-app .navbar-brand-box {
    height: 70px;
}

body.minia-app .navbar-brand-box {
    display: flex;
    align-items: center;
}

body.minia-app .shell-logo .logo-lg,
body.minia-app .shell-logo .logo-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

@media (min-width: 992px) {
    body.minia-app:not([data-sidebar-size="sm"]) .shell-logo .logo-lg {
        display: inline-flex !important;
    }

    body.minia-app:not([data-sidebar-size="sm"]) .shell-logo .logo-sm {
        display: none !important;
    }

    body.minia-app[data-sidebar-size="sm"] .shell-logo .logo-lg {
        display: none !important;
    }

    body.minia-app[data-sidebar-size="sm"] .shell-logo .logo-sm {
        display: inline-flex !important;
    }

    body.minia-app .logo-light {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.minia-app .navbar-brand-box {
        width: auto !important;
        padding: 0 0.75rem !important;
    }

    body.minia-app .shell-logo .logo-lg,
    body.minia-app .logo-light .logo-lg {
        display: none !important;
    }

    body.minia-app .shell-logo .logo-sm {
        display: inline-block !important;
    }

    body.minia-app .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    body.minia-app .main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 380px) {
    body.minia-app .navbar-brand-box {
        display: flex !important;
        padding-right: 0 !important;
    }
}

body.minia-app .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: #5156be;
    font-size: 16px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #e4e5f1;
    flex: none;
}

body.minia-app .navbar-brand-box .logo-mark img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
}

body.minia-app .header-profile-user {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

body.minia-app .vertical-menu .h-100 {
    height: 100%;
    overflow-y: auto;
}

body.minia-app .branch-menu {
    position: relative;
    margin-left: 8px;
}

body.minia-app .branch-control {
    height: 40px;
    min-width: 190px;
    border: 1px solid #e9e9ef;
    border-radius: 30px;
    background: #f3f3f9;
    color: #495057;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif) !important;
    font-size: 13px;
    font-weight: var(--pf-weight, 400) !important;
}

body.minia-app .branch-menu .dropdown-menu,
body.minia-app .profile-menu .dropdown-menu {
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif) !important;
    font-size: 13px;
    font-weight: var(--pf-weight, 400);
    min-width: 190px;
    margin-top: 6px;
    padding: 8px 0;
    border: 0;
    border-radius: var(--pf-radius, 10px) !important;
    box-shadow: 0 5px 16px rgba(30, 32, 37, 0.1);
}

body.minia-app .profile-menu .dropdown-menu {
    min-width: 200px;
}

body.minia-app .profile-menu .dropdown-item {
    width: calc(100% - 12px);
    margin: 2px 6px;
}

body.minia-app .dropdown-item {
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif) !important;
    font-size: 13px;
    font-weight: var(--pf-weight, 400) !important;
    padding: 8px 16px;
    color: #495057;
    border-radius: var(--pf-radius, 10px);
}

body.minia-app .dropdown-menu > button.dropdown-item {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: calc(100% - 12px);
    margin: 2px 6px;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: inherit;
    text-align: inherit;
    border-radius: var(--pf-radius, 10px);
}

body.minia-app .dropdown-item:hover,
body.minia-app .dropdown-item:focus {
    background: #f8f9fa;
    color: #495057;
}

body.minia-app .dropdown-item.active,
body.minia-app .dropdown-item:active {
    background: #5156be;
    color: #fff;
}

body.minia-app .theme-list {
    min-width: 176px;
    padding: 6px;
}

body.minia-app .profile-email {
    padding: 4px 16px 8px;
    font-size: 12px;
    font-weight: 400;
    color: #74788d;
}

body.minia-app[data-bs-theme="dark"] .dropdown-item,
body.minia-app[data-bs-theme="dark"] .dropdown-menu > button.dropdown-item {
    color: var(--shell-text, #e8edf7);
    background: transparent;
}

body.minia-app[data-bs-theme="dark"] .dropdown-item:hover,
body.minia-app[data-bs-theme="dark"] .dropdown-item:focus,
body.minia-app[data-bs-theme="dark"] .dropdown-menu > button.dropdown-item:hover,
body.minia-app[data-bs-theme="dark"] .dropdown-menu > button.dropdown-item:focus {
    background: var(--shell-btn-hover, #2c3344);
    color: #fff;
}

body.minia-app[data-bs-theme="dark"] .profile-email {
    color: var(--shell-muted, #b7c0d6);
}

body.minia-app[data-bs-theme="dark"] .dropdown-divider {
    border-top-color: var(--shell-border, #343c5c);
    opacity: 1;
}

body.minia-app .theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #343a40;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: left;
}

body.minia-app .bi::before,
body.minia-app [class^="bi-"]::before,
body.minia-app [class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
    font-weight: 400 !important;
}

body.minia-app .theme-option .bi {
    font-size: 15px;
    width: 16px;
    line-height: 1;
}

body.minia-app .dropdown-item .bi {
    width: 16px;
    margin-right: 8px;
    font-size: 15px;
    vertical-align: -1px;
}

body.minia-app .theme-option:hover {
    background: #f4f5fb;
    color: #343a40;
}

body.minia-app .theme-option.is-current {
    background: rgba(81, 86, 190, 0.12);
    color: #5156be;
}

body.minia-app[data-bs-theme="dark"] .theme-option {
    color: #e9ecef;
}

body.minia-app[data-bs-theme="dark"] .theme-option:hover,
body.minia-app[data-bs-theme="dark"] .theme-option:focus {
    background-color: #2c3344;
    color: #fff;
}

body.minia-app[data-theme="night"] .theme-option:hover,
body.minia-app[data-theme="night"] .theme-option:focus {
    background-color: #2d3558;
    color: #fff;
}

body.minia-app[data-bs-theme="dark"] .theme-option.is-current,
body.minia-app[data-bs-theme="dark"] .theme-option.is-current:hover,
body.minia-app[data-bs-theme="dark"] .theme-option.is-current:focus {
    background-color: rgba(81, 86, 190, 0.32);
    color: #d7d9ff;
}

body.minia-app .shortcuts-menu,
body.minia-app .alerts-list {
    padding: 8px 0 10px;
}

body.minia-app #page-topbar .theme-menu,
body.minia-app #page-topbar .apps-menu,
body.minia-app #page-topbar .alerts-menu,
body.minia-app #page-topbar .profile-menu {
    position: relative;
}

body.minia-app #page-topbar .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
}

body.minia-app .shortcuts-menu {
    width: min(460px, calc(100vw - 16px));
    max-height: min(70vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
}

body.minia-app .alerts-list {
    min-width: 240px;
}

body.minia-app .shortcut-title {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #74788d;
}

body.minia-app .shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.minia-app .shortcut-grid .dropdown-item,
body.minia-app .alerts-list .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.minia-app .shortcut-grid .dropdown-item {
    min-width: 0;
    width: 100%;
    white-space: normal;
}

body.minia-app .shortcut-grid .dropdown-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.minia-app #sidebar-menu {
    padding-top: 4px !important;
}

body.minia-app #sidebar-menu ul li ul.sub-menu.mm-show {
    border-left: 1px solid #e1e4ea;
    margin-left: 36px;
}

body.minia-app #sidebar-menu ul li ul.sub-menu.mm-show > li > a {
    padding-left: 14px !important;
}

body.minia-app #sidebar-menu ul li ul.sub-menu.mm-show > li.mm-active > a,
body.minia-app #sidebar-menu ul li ul.sub-menu.mm-show > li > a.active {
    margin-left: -1px;
    box-shadow: inset 2px 0 0 #5156be;
    color: #5156be !important;
}

body.minia-app #sidebar-menu li.mm-active > ul.sub-menu.mm-show {
    border-left-color: #c8cbeb;
}

body.minia-app .page-content {
    padding-top: 82px !important;
}

body.minia-app .page-title-box {
    padding-bottom: 8px !important;
}

body.minia-app .navbar-header {
    padding-right: 0 !important;
}

body.minia-app #page-topbar .nav-rail {
    flex: 0 0 auto;
    width: max-content;
    height: 70px;
    background: linear-gradient(180deg, #f8f9fc 0%, #f2f3f8 100%);
}

body.minia-app #page-topbar .navbar-header > .d-flex > .nav-rail:not(.profile-menu) {
    background: transparent;
    border: 0;
}

body.minia-app #page-topbar .profile-menu.nav-rail {
    display: flex;
    align-items: stretch;
    border-right: 0;
    border-left: 1px solid #eceef4;
    margin-right: 0;
    padding-right: 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #f2f3f8 100%);
}

body.minia-app #page-topbar .profile-menu.nav-rail .header-item {
    height: 70px;
}

body.minia-app #page-topbar .nav-rail .navbar-brand-box {
    background: linear-gradient(180deg, #f8f9fc 0%, #f2f3f8 100%) !important;
    border-right: 1px solid #e9e9ef !important;
}

body.minia-app[data-bs-theme="dark"] #page-topbar .nav-rail {
    background: linear-gradient(180deg, #262b36 0%, #1e232d 100%);
}

body.minia-app[data-bs-theme="dark"] #page-topbar .navbar-header > .d-flex > .nav-rail:not(.profile-menu) {
    background: transparent !important;
}

body.minia-app[data-bs-theme="dark"] #page-topbar .nav-rail .navbar-brand-box {
    background: linear-gradient(180deg, #262b36 0%, #1e232d 100%) !important;
    border-right-color: var(--bs-sidebar-border-color) !important;
}

body.minia-app[data-bs-theme="dark"] #page-topbar .profile-menu.nav-rail {
    background: linear-gradient(180deg, #262b36 0%, #1e232d 100%) !important;
    border-left-color: #323844;
}

body.minia-app[data-bs-theme="dark"] #sidebar-menu ul li ul.sub-menu.mm-show {
    border-left-color: #343a4a;
}

body.minia-app[data-bs-theme="dark"] #sidebar-menu li.mm-active > ul.sub-menu.mm-show {
    border-left-color: #6d73c8;
}

body.minia-app #page-topbar .theme-menu,
body.minia-app #page-topbar .apps-menu,
body.minia-app #page-topbar .alerts-menu {
    display: flex;
    align-items: center;
}

body.minia-app #page-topbar .header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 70px;
    padding: 0 !important;
    margin: 0;
    line-height: 1;
}

body.minia-app #page-topbar .header-icon svg,
body.minia-app #page-topbar .header-icon .icon-lg,
body.minia-app #page-topbar .theme-menu > .header-icon .bi {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
    font-size: 18px;
    line-height: 1;
}

body.minia-app #page-topbar .theme-menu > .header-icon .bi::before {
    display: block;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 991.98px) {
    body.minia-app #page-topbar .theme-menu,
    body.minia-app #page-topbar .apps-menu,
    body.minia-app #page-topbar .alerts-menu,
    body.minia-app #page-topbar > .navbar-header .header-icon.d-none {
        display: inline-flex !important;
        align-items: center;
    }

    body.minia-app #page-topbar .header-icon {
        width: 34px;
    }
}

@media (min-width: 992px) {
    body.minia-app #page-topbar .apps-menu.d-lg-inline-block {
        display: flex !important;
        align-items: center;
    }
}

body.minia-app #sidebar-menu #side-menu > li > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

body.minia-app #sidebar-menu #side-menu > li > a.has-arrow {
    position: relative;
    padding-right: 2.15rem !important;
}

body.minia-app #sidebar-menu #side-menu > li > a.has-arrow > span {
    flex: 1 1 auto;
    min-width: 0;
}

/* Flex layout cancels float:right — pin chevrons to a shared right edge */
body.minia-app #sidebar-menu .has-arrow:after {
    position: absolute !important;
    right: 1.15rem;
    top: 50%;
    float: none !important;
    display: block !important;
    margin: 0 !important;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

body.minia-app #sidebar-menu .has-arrow[aria-expanded="true"]:after,
body.minia-app #sidebar-menu li.mm-active > .has-arrow:after {
    transform: translateY(-50%) rotate(90deg);
}

/* Collapsed rail: hide chevrons so they don't sit on top of icons */
body.minia-app[data-sidebar-size="sm"] #sidebar-menu #side-menu > li > a.has-arrow {
    padding-right: 20px !important;
    justify-content: center;
}

body.minia-app[data-sidebar-size="sm"] #sidebar-menu #side-menu > li:hover > a.has-arrow {
    justify-content: flex-start;
}

body.minia-app[data-sidebar-size="sm"] #sidebar-menu .has-arrow:after,
body.minia-app[data-sidebar-size="sm"] #sidebar-menu .has-arrow[aria-expanded="true"]:after,
body.minia-app[data-sidebar-size="sm"] #sidebar-menu li.mm-active > .has-arrow:after {
    display: none !important;
}

body.minia-app[data-sidebar-size="sm"] #sidebar-menu #side-menu > li > a > .bi {
    min-width: 0;
}

body.minia-app #sidebar-menu #side-menu > li > a > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.625rem;
    font-size: 16px;
    line-height: 1;
    color: #545a6d;
}

body.minia-app #sidebar-menu #side-menu > li.mm-active > a > .bi,
body.minia-app #sidebar-menu #side-menu > li > a.active > .bi {
    color: #5156be;
}

body.minia-app #sidebar-menu .sub-section {
    margin: 0;
    padding: 0;
    border: 0;
}

body.minia-app #sidebar-menu .sub-section li a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.5rem 0.4rem 3.3rem !important;
}

body.minia-app #sidebar-menu .sub-section .bi {
    font-size: 14px;
    width: 16px;
    line-height: 1;
    color: #7b8190;
}

body.minia-app #sidebar-menu .sub-section li.mm-active .bi,
body.minia-app #sidebar-menu .sub-section a.active .bi {
    color: #5156be;
}

/* Keep page toolbar fields/buttons the same height as Medicine forms */
body.minia-app .med-panel {
    --app-control-h: 2rem;
}

body.minia-app .med-panel .field,
body.minia-app .med-panel input.field,
body.minia-app .med-panel select.field {
    height: var(--app-control-h) !important;
    min-height: var(--app-control-h) !important;
    padding: 0 0.65rem !important;
    font-size: 0.875rem !important;
    line-height: calc(var(--app-control-h) - 2px) !important;
}

body.minia-app .med-panel textarea.field {
    height: auto !important;
    min-height: 4.5rem !important;
    padding: 0.45rem 0.65rem !important;
    line-height: 1.35 !important;
}

/* One type scale for form and detail content in every module. */
body.minia-app .med-panel-head h6 {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.3 !important;
}

body.minia-app .med-panel-head p,
body.minia-app .field-label,
body.minia-app .med-fact dt,
body.minia-app .status-chip {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
}

body.minia-app .field-label,
body.minia-app .med-fact dt,
body.minia-app .status-chip {
    font-weight: 600 !important;
}

body.minia-app .med-fact dd,
body.minia-app .details-block {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

body.minia-app .med-fact dd {
    font-weight: 600 !important;
}

body.minia-app .field-hint,
body.minia-app .field-error {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
}

body.minia-app .pc-card-title,
body.minia-app .settings-panel-head h5,
body.minia-app .profile-section-head h6,
body.minia-app .med-panel-head h5,
body.minia-app .import-drop-title {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase;
    line-height: 1.3 !important;
}

body.minia-app .pc-field > span,
body.minia-app .settings-panel-head p,
body.minia-app .profile-section-head p {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
}

body.minia-app .pc-field > span {
    font-weight: 600 !important;
}

body.minia-app .finance-line dd,
body.minia-app .price-box dd,
body.minia-app .med-metric strong,
body.minia-app .med-notes,
body.minia-app .transfer-row {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

body.minia-app .med-panel .table thead th {
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1.25 !important;
}

body.minia-app .med-panel .table tbody td,
body.minia-app .med-panel .table tfoot th {
    padding: 4px 8px !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
}

body.minia-app .med-panel .btn,
body.minia-app .med-panel .btn-sm {
    height: var(--app-control-h) !important;
    min-height: var(--app-control-h) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

body.minia-app .minia-spark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 46px;
}

body.minia-app .minia-spark span {
    display: block;
    width: 6px;
    border-radius: 3px 3px 0 0;
    background: #5156be;
}

body.minia-app .minia-donut {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(#34c38f 0 38%, #5156be 38% 78%, #50a5f1 78% 100%);
    margin: 8px auto;
    position: relative;
}

body.minia-app .minia-donut::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: #fff;
}

body.minia-app[data-sidebar-size="sm"] .vertical-menu,
body.minia-app[data-sidebar-size="sm"] .vertical-menu .h-100,
body.minia-app[data-sidebar-size="sm"] .vertical-menu .simplebar-wrapper,
body.minia-app[data-sidebar-size="sm"] .vertical-menu .simplebar-mask,
body.minia-app[data-sidebar-size="sm"] .vertical-menu .simplebar-offset,
body.minia-app[data-sidebar-size="sm"] .vertical-menu .simplebar-content-wrapper,
body.minia-app[data-sidebar-size="sm"] .vertical-menu .simplebar-content,
body.minia-app[data-sidebar-size="sm"] #sidebar-menu > ul > li:hover > ul {
    overflow: visible !important;
}

@media (min-width: 992px) {
    body.minia-app #page-topbar {
        left: 0 !important;
        background: #fff;
    }

    body.minia-app .navbar-brand-box {
        width: 250px !important;
        flex: 0 0 250px;
        padding: 0 1.5rem !important;
        background: linear-gradient(180deg, #f8f9fc 0%, #f2f3f8 100%) !important;
        border-right: 1px solid #e9e9ef !important;
        box-shadow: none !important;
    }

    body.minia-app .vertical-menu {
        top: 70px !important;
        left: 0;
        width: 250px !important;
        background: #fbfaff !important;
        border-right: 1px solid #e9e9ef !important;
    }

    body.minia-app[data-sidebar-size="sm"] .navbar-brand-box {
        width: 70px !important;
        flex: 0 0 70px;
        padding: 0 !important;
        justify-content: center;
    }

    body.minia-app[data-sidebar-size="sm"] .vertical-menu {
        top: 70px !important;
        width: 70px !important;
        z-index: 1002;
    }

    body.minia-app[data-sidebar-size="sm"] .main-content {
        margin-left: 70px !important;
    }
}

body.minia-app .vertical-menu,
body.minia-app .vertical-menu [data-simplebar],
body.minia-app .vertical-menu .simplebar-content-wrapper,
body.minia-app .vertical-menu .simplebar-mask {
    background: #fbfaff;
}

body.minia-app .dt-wrap .dt-buttons .btn {
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e9e9ef;
    background: #fff;
    color: #495057;
}

body.minia-app .dt-wrap .dt-icon-btn .mdi {
    font-size: 16px;
    line-height: 1;
}

body.minia-app .dt-wrap .dt-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

body.minia-app .dt-wrap .pagination {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
}

body.minia-app .dt-wrap .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    white-space: nowrap;
    line-height: 1.2;
}

body.minia-app .btn-icon {
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.minia-app .btn-icon .bi {
    font-size: 13px;
    line-height: 1;
}

body.minia-app .dt-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
}

body.minia-app .dt-card table thead th:last-child,
body.minia-app .dt-card table tbody td:last-child,
body.minia-app .dataTables_wrapper table.dataTable thead th:last-child,
body.minia-app .dataTables_wrapper table.dataTable tbody td:last-child,
body.minia-app .dataTables_wrapper table.dataTable colgroup col:last-child,
body.minia-app .dataTables_wrapper table.dataTable .dt-fit {
    width: 1% !important;
    white-space: nowrap !important;
    text-align: right !important;
}

body.minia-app .dataTables_wrapper {
    max-width: 100%;
    overflow: visible;
}

body.minia-app .dataTables_wrapper table.dataTable {
    width: 100% !important;
    max-width: 100% !important;
}

body.minia-app .dataTables_wrapper table.dataTable th,
body.minia-app .dataTables_wrapper table.dataTable td {
    box-sizing: border-box !important;
}

body.minia-app .dataTables_wrapper table.dataTable tbody td.dataTables_empty,
body.minia-app .dataTables_wrapper table.dataTable tbody td.dt-empty-cell,
body.minia-app .dataTables_wrapper table.dataTable tbody td.dataTables_empty:last-child,
body.minia-app .dataTables_wrapper table.dataTable tbody td.dt-empty-cell:last-child {
    width: auto !important;
    white-space: normal !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 2.5rem 1rem !important;
    border-bottom: 0 !important;
}

body.minia-app .dt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 7rem;
    margin: 0 auto;
    color: #f46a6a;
}

body.minia-app .dt-empty i {
    font-size: 1.35rem;
    opacity: 0.9;
}

body.minia-app .dt-empty strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.minia-app .dt-empty span {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #f09191;
}

body.minia-app .screen-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    padding: 24px;
    background: rgba(15, 18, 28, 0.45);
    overflow: auto;
}

body.minia-app .screen-modal-panel {
    width: min(1080px, 100%);
    min-height: calc(100vh - 48px);
    margin: auto;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.16);
}

body.minia-app .screen-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e6e8ee;
}

body.minia-app .screen-modal-body {
    padding: 20px;
}

body.minia-app .screen-modal input:not([type="checkbox"]):not([type="radio"]),
body.minia-app .screen-modal select,
body.minia-app .screen-modal textarea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.47rem 0.75rem;
    background: #fff;
}

body.minia-app[data-bs-theme="dark"] .screen-modal-panel {
    background: var(--shell-card-bg);
    border-color: var(--shell-border);
    color: var(--shell-text);
}

/* Content-area floating modal: leaves topbar, sidebar, footer alone */
body.minia-app.app-content-modal-open {
    overflow: hidden;
}

body.minia-app .app-float-modal,
body.minia-app .app-float-modal-backdrop {
    position: fixed !important;
    top: 70px !important;
    left: 250px !important;
    right: 0 !important;
    bottom: 60px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.minia-app .app-float-modal {
    z-index: 1000;
    display: block !important;
}

body.minia-app .app-float-modal-backdrop {
    z-index: 999;
    background: rgba(15, 18, 28, 0.45);
}

body.minia-app .app-float-modal.is-in,
body.minia-app .app-float-modal-backdrop.is-in {
    opacity: 1;
    pointer-events: auto;
}

body.minia-app .app-float-modal.is-enter,
body.minia-app .app-float-modal.is-leave,
body.minia-app .app-float-modal-backdrop.is-enter,
body.minia-app .app-float-modal-backdrop.is-leave {
    opacity: 0;
    pointer-events: none;
}

body.minia-app .app-float-modal .app-float-modal-dialog {
    transform: translateY(12px) scale(0.985);
    transition: transform 0.22s ease;
}

body.minia-app .app-float-modal.is-in .app-float-modal-dialog {
    transform: none;
}

body.minia-app .app-float-modal.is-leave .app-float-modal-dialog {
    transform: translateY(10px) scale(0.985);
}

body.minia-app[data-sidebar-size="sm"] .app-float-modal,
body.minia-app[data-sidebar-size="sm"] .app-float-modal-backdrop {
    left: 70px !important;
}

@media (max-width: 991.98px) {
    body.minia-app .app-float-modal,
    body.minia-app .app-float-modal-backdrop,
    body.minia-app[data-sidebar-size="sm"] .app-float-modal,
    body.minia-app[data-sidebar-size="sm"] .app-float-modal-backdrop {
        left: 0 !important;
    }
}

body.minia-app .app-float-modal-dialog {
    margin: 1rem auto;
    max-width: calc(100% - 2rem);
}

/* size="xl" (document views such as the invoice popup): readable width, not edge to edge. */
body.minia-app .app-float-modal-dialog.modal-xl {
    max-width: min(960px, calc(100% - 2rem));
}

body.minia-app .app-float-modal-dialog--fs {
    width: calc(100% - 2rem);
    max-width: none;
    height: calc(100% - 2rem);
    margin: 1rem;
}

body.minia-app .app-float-modal-content {
    height: 100%;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(16, 24, 40, 0.18);
    overflow: hidden;
}

body.minia-app .app-float-modal .modal-header,
body.minia-app .app-float-modal .modal-footer {
    flex-shrink: 0;
}

body.minia-app {
    --shell-panel-bg: #f8f9fc;
    --shell-panel-surface: #ffffff;
    --shell-panel-border: #e6e8ee;
    /* Darker than the Minia defaults (#343747 / #74788d) so small text stays readable. */
    --shell-panel-text: #1f2330;
    --shell-panel-muted: #535869;
    --shell-panel-accent-bg: #e8f8f1;
    --shell-panel-accent-border: #b7ebd6;
    --shell-panel-accent-text: #1e8f68;
    --shell-panel-canvas: #fafbfc;
}

body.minia-app .app-float-modal .modal-body {
    overflow-y: auto;
    padding: 1rem 1.15rem;
    background: var(--shell-panel-surface);
    color: var(--shell-panel-text);
}

body.minia-app .app-float-modal .modal-header {
    padding: 0.85rem 1.15rem;
}

body.minia-app .app-float-modal .modal-footer {
    padding: 0.75rem 1.15rem;
    gap: 0.5rem;
}

body.minia-app.app-content-modal-open .footer {
    position: fixed !important;
    left: 250px !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1001;
    height: 60px;
    display: flex;
    align-items: center;
}

body.minia-app.app-content-modal-open[data-sidebar-size="sm"] .footer {
    left: 70px !important;
}

@media (max-width: 991.98px) {
    body.minia-app.app-content-modal-open .footer,
    body.minia-app.app-content-modal-open[data-sidebar-size="sm"] .footer {
        left: 0 !important;
    }
}

body.minia-app[data-bs-theme="dark"] .app-float-modal-content,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-header,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-footer,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body {
    background: var(--shell-card-bg);
    border-color: var(--shell-border);
    color: var(--shell-text);
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-title,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body h1,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body h2,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body h3,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body h4,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body h5,
body.minia-app[data-bs-theme="dark"] .app-float-modal .modal-body h6 {
    color: var(--shell-text);
}

body.minia-app .app-float-modal .app-float-close {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.1rem 0.2rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: #74788d !important;
    font-family: inherit !important;
    font-size: 1.55rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    opacity: 0.85;
    cursor: pointer;
}

body.minia-app .app-float-modal .app-float-close:hover,
body.minia-app .app-float-modal .app-float-close:focus,
body.minia-app .app-float-modal .app-float-close:focus-visible,
body.minia-app .app-float-modal .app-float-close:active {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: #f46a6a !important;
    opacity: 1;
    outline: none !important;
    box-shadow: none !important;
}

body.minia-app .app-float-modal .app-float-close:disabled {
    opacity: 0.35;
    cursor: default;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .app-float-close {
    border: 0 !important;
    color: #98a2b3 !important;
    background: transparent !important;
    background-image: none !important;
    filter: none;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .app-float-close:hover,
body.minia-app[data-bs-theme="dark"] .app-float-modal .app-float-close:focus,
body.minia-app[data-bs-theme="dark"] .app-float-modal .app-float-close:focus-visible,
body.minia-app[data-bs-theme="dark"] .app-float-modal .app-float-close:active {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: #f46a6a !important;
}

/* Uniform control heights inside content modals */
body.minia-app .app-float-modal {
    --app-control-h: 2rem;
}

body.minia-app .profile-page {
    --app-control-h: 2rem;
}

body.minia-app .profile-page .btn,
body.minia-app .profile-page .profile-field input,
body.minia-app .profile-page .profile-tab,
body.minia-app .profile-page .profile-badge {
    height: var(--app-control-h) !important;
    min-height: var(--app-control-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.8125rem !important;
    line-height: 1 !important;
}

body.minia-app .profile-page .profile-field input {
    display: block !important;
    width: 100%;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    font-size: 0.875rem !important;
    line-height: calc(var(--app-control-h) - 2px) !important;
    justify-content: flex-start;
}

body.minia-app .profile-page .profile-tab {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

body.minia-app .profile-page .btn,
body.minia-app .profile-page .profile-badge {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
    gap: 0.35rem;
}

body.minia-app .app-float-modal .modal-footer .btn,
body.minia-app .app-float-modal .modal-header .btn:not(.app-float-close),
body.minia-app .app-float-modal .btn-sm,
body.minia-app .app-float-modal .modal-header .status-chip,
body.minia-app .app-float-modal button.status-chip {
    height: var(--app-control-h) !important;
    min-height: var(--app-control-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.8125rem !important;
    line-height: 1 !important;
}

body.minia-app .app-float-modal .field,
body.minia-app .app-float-modal .ss-input,
body.minia-app .app-float-modal input.field,
body.minia-app .app-float-modal select.field,
body.minia-app .app-float-modal .form-control,
body.minia-app .app-float-modal .form-select {
    height: var(--app-control-h) !important;
    min-height: var(--app-control-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.875rem !important;
    line-height: calc(var(--app-control-h) - 2px) !important;
}

body.minia-app .app-float-modal textarea.field,
body.minia-app .app-float-modal textarea.form-control {
    height: auto !important;
    min-height: 4.5rem !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    line-height: 1.35 !important;
}

body.minia-app .app-float-modal input[type="file"].field,
body.minia-app .app-float-modal .field-file {
    height: var(--app-control-h) !important;
    min-height: var(--app-control-h) !important;
    padding: 0.2rem 0.4rem !important;
    line-height: 1.2 !important;
    font-size: 0.75rem !important;
}

body.minia-app .app-float-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 14rem;
    color: var(--shell-panel-muted, #74788d);
}

body.minia-app .app-float-loading p {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 500;
}

body.minia-app .app-float-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(var(--pf-accent-rgb, 81, 86, 190), 0.18);
    border-top-color: var(--pf-accent, #5156be);
    border-radius: 50%;
    animation: app-float-spin 0.7s linear infinite;
}

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

body.minia-app[data-bs-theme="dark"] .app-float-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .btn-outline-secondary,
body.minia-app[data-bs-theme="dark"] .app-float-modal .btn-secondary {
    color: var(--shell-text);
    border-color: var(--shell-border);
    background: transparent;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .btn-outline-secondary:hover,
body.minia-app[data-bs-theme="dark"] .app-float-modal .btn-secondary:hover {
    background: var(--shell-btn-hover);
    border-color: var(--shell-border);
    color: #fff;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .form-control,
body.minia-app[data-bs-theme="dark"] .app-float-modal .form-select,
body.minia-app[data-bs-theme="dark"] .app-float-modal input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.minia-app[data-bs-theme="dark"] .app-float-modal select,
body.minia-app[data-bs-theme="dark"] .app-float-modal textarea {
    background: var(--shell-input-bg);
    border-color: var(--shell-input-border);
    color: var(--shell-text);
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .med-panel,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-size-field,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-empty,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card,
body.minia-app[data-bs-theme="dark"] .app-float-modal .med-metric,
body.minia-app[data-bs-theme="dark"] .app-float-modal .field,
body.minia-app[data-bs-theme="dark"] .app-float-modal .status-chip {
    background: var(--shell-panel-bg) !important;
    border-color: var(--shell-panel-border) !important;
    color: var(--shell-panel-text) !important;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .med-panel-notes,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-foot,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-canvas,
body.minia-app[data-bs-theme="dark"] .app-float-modal .med-metric:not(.accent) {
    background: var(--shell-panel-surface) !important;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .med-panel-head,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-head,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-meta,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-foot,
body.minia-app[data-bs-theme="dark"] .app-float-modal .med-facts-tight {
    border-color: var(--shell-panel-border) !important;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .med-panel-head h6,
body.minia-app[data-bs-theme="dark"] .app-float-modal .med-fact dd,
body.minia-app[data-bs-theme="dark"] .app-float-modal .med-metric-value,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-title,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-meta dd {
    color: var(--shell-panel-text) !important;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .med-panel-head p,
body.minia-app[data-bs-theme="dark"] .app-float-modal .med-fact dt,
body.minia-app[data-bs-theme="dark"] .app-float-modal .med-metric-label,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-chip,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-empty,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-size-field > span,
body.minia-app[data-bs-theme="dark"] .app-float-modal .code-card-meta dt {
    color: var(--shell-panel-muted) !important;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .code-chip,
body.minia-app[data-bs-theme="dark"] .app-float-modal .status-chip:not(.is-on) {
    background: var(--shell-panel-surface) !important;
    border-color: var(--shell-panel-border) !important;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .med-metric.accent,
body.minia-app[data-bs-theme="dark"] .app-float-modal .status-chip.is-on {
    background: var(--shell-panel-accent-bg) !important;
    border-color: var(--shell-panel-accent-border) !important;
    color: var(--shell-panel-accent-text) !important;
}

body.minia-app[data-bs-theme="dark"] .app-float-modal .med-metric.accent .med-metric-value,
body.minia-app[data-bs-theme="dark"] .app-float-modal .status-chip.is-on {
    color: var(--shell-panel-accent-text) !important;
}

@media (max-width: 767.98px) {
    body.minia-app .app-float-modal-dialog,
    body.minia-app .app-float-modal-dialog--fs {
        width: calc(100% - 1.5rem);
        max-width: none;
        height: calc(100% - 1.5rem);
        margin: 0.75rem;
    }
}

body.minia-app .dataTables_wrapper table.dataTable thead th,
body.minia-app .dataTables_wrapper table.dataTable tbody td {
    padding: 4px 8px !important;
    font-size: 13.5px;
    line-height: 1.25;
    vertical-align: middle;
    color: #2a3142;
    border-color: #e7e9ef !important;
}

body.minia-app[data-bs-theme="dark"] .dataTables_wrapper table.dataTable thead th,
body.minia-app[data-bs-theme="dark"] .dataTables_wrapper table.dataTable tbody td {
    color: inherit;
}

body.minia-app .dt-card:not(.is-ready):not(.is-failed):not(.dt-card-all) tbody tr:nth-child(n + 11) {
    display: none;
}

body.minia-app .dt-toolbar-hold {
    pointer-events: none;
}

body.minia-app .dt-card.is-ready .dt-toolbar-hold {
    display: none;
}

body.minia-app .dt-card table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body.minia-app .dt-card table thead th,
body.minia-app .dt-card table tbody td {
    padding: 4px 8px !important;
    font-size: 13.5px;
    line-height: 1.25;
    vertical-align: middle;
    border-color: #e7e9ef !important;
}

body.minia-app .dt-card table tbody td:nth-child(2),
body.minia-app .dt-card table tbody td:nth-child(2) .fw-semibold,
body.minia-app .dt-card table tbody td:nth-child(2) .fw-bold,
body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2),
body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) .fw-semibold,
body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) .fw-bold,
body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) .font-size-12,
body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) a {
    font-size: 13.5px !important;
    letter-spacing: normal !important;
    line-height: 1.25 !important;
    font-family: inherit !important;
}

body.minia-app .dt-card table thead th,
body.minia-app .dataTables_wrapper table.dataTable thead th {
    position: relative;
    padding: 4px 16px 4px 8px !important;
    font-size: 12px;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
    line-height: 1.25;
    vertical-align: middle !important;
    color: #5c6578 !important;
    background: #f4f5f8 !important;
}

body.minia-app table.dataTable thead th.sorting:before,
body.minia-app table.dataTable thead th.sorting_asc:before,
body.minia-app table.dataTable thead th.sorting_desc:before,
body.minia-app table.dataTable thead > tr > th.sorting:before,
body.minia-app table.dataTable thead > tr > th.sorting_asc:before,
body.minia-app table.dataTable thead > tr > th.sorting_desc:before {
    top: calc(50% - 8px) !important;
    bottom: auto !important;
}

body.minia-app table.dataTable thead th.sorting:after,
body.minia-app table.dataTable thead th.sorting_asc:after,
body.minia-app table.dataTable thead th.sorting_desc:after,
body.minia-app table.dataTable thead > tr > th.sorting:after,
body.minia-app table.dataTable thead > tr > th.sorting_asc:after,
body.minia-app table.dataTable thead > tr > th.sorting_desc:after {
    top: calc(50% + 1px) !important;
    bottom: auto !important;
}

body.minia-app .dt-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

body.minia-app .dt-toolbar .dt-filter {
    margin-left: auto;
}

body.minia-app .dataTables_length,
body.minia-app .dataTables_filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    line-height: 1;
}

body.minia-app .dataTables_length label,
body.minia-app .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--shell-panel-muted, #74788d);
}

body.minia-app .dataTables_length select,
body.minia-app .dataTables_filter input {
    height: 2rem !important;
    min-height: 2rem !important;
    padding: 0 0.55rem !important;
    font-size: 0.875rem !important;
    line-height: calc(2rem - 2px) !important;
    border-radius: var(--pf-radius, 10px) !important;
    border: 1px solid var(--shell-panel-border, #ced4da);
    background: var(--shell-panel-surface, #fff);
    color: var(--shell-panel-text, #343747);
    box-shadow: none !important;
}

body.minia-app .dataTables_length select {
    min-width: 64px;
    width: 64px !important;
    margin: 0 !important;
    padding-right: 22px !important;
}

body.minia-app .dataTables_filter input {
    width: 180px;
    margin: 0 !important;
}

body.minia-app .dt-buttons.btn-group,
body.minia-app .dt-buttons {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 6px;
}

body.minia-app .dt-buttons .btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

body.minia-app .dt-buttons .btn .bi {
    margin: 0 8px 0 0 !important;
    font-size: 14px;
    line-height: 1;
}

body.minia-app .dataTables_wrapper .page-link {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    font-size: 13px;
    line-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--shell-panel-text, #495057);
}

body.minia-app .dataTables_wrapper .page-item.active .page-link {
    color: #fff !important;
}

body.minia-app .dt-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

body.minia-app .dt-acc {
    display: grid;
    gap: 6px;
    padding: 4px 4px 4px 8px;
}

body.minia-app .dt-acc-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(81, 86, 190, 0.06);
    font-size: 12.5px;
}

body.minia-app .dt-acc-row > span:first-child {
    color: #74788d;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.minia-app .dt-card table .dt-index,
body.minia-app .dataTables_wrapper table.dataTable .dt-index {
    width: 36px !important;
    min-width: 36px;
    text-align: center !important;
    color: #2a3142 !important;
    white-space: nowrap;
}

body.minia-app[data-bs-theme="dark"] .dt-card table .dt-index,
body.minia-app[data-bs-theme="dark"] .dataTables_wrapper table.dataTable .dt-index {
    color: var(--shell-muted, #98a2b3) !important;
}

@media (max-width: 767.98px) {
    body.minia-app .dt-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    body.minia-app .dt-toolbar .dt-filter {
        margin-left: 0;
        width: 100%;
    }

    body.minia-app .dt-toolbar .dt-filter input {
        width: 100%;
    }

    body.minia-app .dt-buttons,
    body.minia-app .dt-buttons.btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100%;
        gap: 6px;
    }

    body.minia-app .dt-buttons .btn,
    body.minia-app .dt-buttons.btn-group > .btn {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 32px !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    body.minia-app .dataTables_wrapper table.dataTable thead {
        display: none;
    }

    body.minia-app .dataTables_wrapper table.dataTable,
    body.minia-app .dataTables_wrapper table.dataTable tbody {
        display: block;
        width: 100% !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr {
        position: relative;
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr);
        margin: 0 0 10px;
        padding: 0 28px 0 0;
        overflow: hidden;
        border: 1px solid #e6e8ee;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        text-align: left;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr::after {
        content: "";
        position: absolute;
        top: 16px;
        right: 12px;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid #74788d;
        border-bottom: 1.5px solid #74788d;
        transform: rotate(45deg);
        pointer-events: none;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open::after {
        top: 18px;
        transform: rotate(-135deg);
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody td,
    body.minia-app .dataTables_wrapper table.dataTable tbody td:last-child {
        display: none !important;
        float: none !important;
        width: auto !important;
        max-width: none !important;
        border: 0 !important;
        padding: 8px 12px !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody td.dt-index {
        display: flex !important;
        grid-column: 1;
        align-items: center;
        justify-content: center;
        width: 28px !important;
        padding: 12px 0 !important;
        color: #74788d;
        text-align: center !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) {
        display: block !important;
        grid-column: 2;
        min-width: 0;
        padding: 12px 8px 12px 4px !important;
        overflow: hidden;
        font-weight: 600;
        text-align: left !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) button,
    body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) a,
    body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) .block,
    body.minia-app .dataTables_wrapper table.dataTable tbody td:nth-child(2) .truncate {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-align: left !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open td:nth-child(n+3) {
        display: flex !important;
        grid-column: 1 / -1;
        align-items: center;
        justify-content: flex-start !important;
        gap: 12px;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0;
        margin: 0;
        padding: 8px 12px !important;
        overflow: hidden;
        border-top: 1px solid #eef0f3 !important;
        text-align: left !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open td:nth-child(n+3)::before {
        content: attr(data-label);
        flex: 0 0 92px;
        color: #74788d;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-align: left;
        text-transform: uppercase;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open td:nth-child(n+3) > *:not(.dt-actions) {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-align: left !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open td.dt-fit {
        display: flex !important;
        justify-content: flex-end !important;
        padding: 10px 12px !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open td.dt-fit::before {
        content: none !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open td.dt-fit .dt-actions {
        display: inline-flex !important;
        flex-flow: row nowrap !important;
        align-items: center;
        justify-content: flex-end !important;
        gap: 8px;
        width: auto !important;
        overflow: visible;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.is-open td.dt-fit .dt-actions .btn {
        display: inline-flex !important;
        flex: 0 0 32px !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible;
    }

    body.minia-app[data-bs-theme="dark"] .dataTables_wrapper table.dataTable tbody tr {
        background: var(--shell-card-bg);
        border-color: var(--shell-border);
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.dt-empty-row {
        display: block !important;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        cursor: default;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.dt-empty-row::after {
        content: none !important;
    }

    body.minia-app .dataTables_wrapper table.dataTable tbody tr.dt-empty-row td.dataTables_empty,
    body.minia-app .dataTables_wrapper table.dataTable tbody tr.dt-empty-row td.dt-empty-cell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem 1rem !important;
        overflow: visible;
        text-align: center !important;
        white-space: normal !important;
    }
}

body.minia-app .dataTables_wrapper .rounded-full {
    padding: 1px 6px !important;
    line-height: 1.35;
    font-size: 11px;
}

body.minia-app .epharma-confirm {
    width: min(440px, 92vw);
    max-width: 92vw;
    padding: 22px 22px 18px;
    border: 1px solid var(--shell-panel-border, #e6e8ee);
    border-radius: var(--pf-radius, 10px) !important;
    background: var(--shell-panel-surface, #fff);
    color: var(--shell-panel-text, #1f2430);
    font-family: inherit;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
}

body.minia-app .epharma-confirm .swal2-icon,
body.minia-app .epharma-confirm .epharma-confirm-icon {
    width: 44px;
    height: 44px;
    margin: 2px auto 10px;
    border: 0 !important;
    border-radius: var(--pf-radius, 10px) !important;
    background: #fff1f3;
    color: #e11d48;
    line-height: 44px;
}

body.minia-app .epharma-confirm .swal2-icon .swal2-icon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

body.minia-app .epharma-confirm .swal2-close,
body.minia-app .epharma-confirm-close {
    -webkit-appearance: none !important;
    appearance: none !important;
    top: 8px;
    right: 10px;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0.1rem 0.2rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--shell-panel-muted, #74788d) !important;
    font-size: 1.45rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    opacity: 0.85;
}

body.minia-app .epharma-confirm .swal2-close:hover,
body.minia-app .epharma-confirm-close:hover {
    background: transparent !important;
    border: 0 !important;
    color: #f46a6a !important;
    opacity: 1;
}

body.minia-app .epharma-confirm-title {
    padding: 0;
    color: var(--shell-panel-text, #1f2430);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

body.minia-app .epharma-confirm-text {
    margin: 6px 0 0;
    color: var(--shell-panel-muted, #98a2b3);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
}

body.minia-app .epharma-confirm-actions {
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 18px 0 0;
}

body.minia-app .epharma-confirm-cancel,
body.minia-app .epharma-confirm-delete,
body.minia-app .epharma-confirm-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    height: 2rem;
    margin: 0;
    border: 1px solid transparent;
    border-radius: var(--pf-radius, 10px) !important;
    font-size: 13px;
    font-weight: 600;
}

body.minia-app .epharma-confirm .swal2-html-container {
    margin: 6px 0 0;
    padding: 0;
    text-align: left;
}

body.minia-app .epharma-confirm .swal2-input-label {
    display: block;
    margin: 0.75rem 0 0.2rem;
    justify-content: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--shell-panel-muted, #74788d);
}

body.minia-app .epharma-confirm .swal2-input,
body.minia-app .epharma-confirm-input {
    height: 2rem !important;
    margin: 0;
    padding: 0 0.65rem;
    border: 1px solid var(--shell-panel-border, #ced4da);
    border-radius: var(--pf-radius, 4px) !important;
    background: var(--shell-panel-surface, #fff);
    box-shadow: none;
    font-size: 0.875rem;
    color: var(--shell-panel-text, #2a3142);
}

body.minia-app .epharma-confirm .swal2-input:focus,
body.minia-app .epharma-confirm-input:focus {
    border-color: var(--pf-accent, #5156be);
    box-shadow: 0 0 0 0.12rem rgba(var(--pf-accent-rgb, 81, 86, 190), 0.16);
}

body.minia-app .epharma-confirm .swal2-validation-message {
    margin: 0.35rem 0 0;
    padding: 0;
    background: transparent;
    color: #e04b4b;
    font-size: 0.7rem;
    font-weight: 600;
    justify-content: flex-start;
}

body.minia-app .swal2-container {
    align-items: center;
}

body.minia-app .epharma-confirm-cancel {
    border-color: #f5c2c7;
    background: #fff1f3;
    color: #e11d48;
}

body.minia-app .epharma-confirm-cancel:hover {
    background: #ffe4e8;
}

body.minia-app .epharma-confirm-delete {
    background: #e11d48;
    color: #fff;
}

body.minia-app .epharma-confirm .epharma-confirm-icon.is-success {
    background: #ecfdf3;
    color: #039855;
}

body.minia-app .epharma-confirm .epharma-confirm-icon.is-error {
    background: #fff1f3;
    color: #e11d48;
}

body.minia-app .epharma-confirm-ok {
    min-width: 88px;
    background: var(--pf-accent, #5156be);
    color: #fff;
}

body.minia-app[data-bs-theme="dark"] .epharma-confirm {
    background: var(--shell-panel-surface, #20242d);
    border-color: var(--shell-border, #303642);
    color: var(--bs-heading-color, #f3f5f8);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

body.minia-app[data-bs-theme="dark"] .epharma-confirm-title {
    color: var(--bs-heading-color, #f3f5f8);
}

body.minia-app[data-bs-theme="dark"] .epharma-confirm .swal2-close,
body.minia-app[data-bs-theme="dark"] .epharma-confirm-close {
    border-color: var(--shell-border, #303642);
    color: var(--shell-muted, #98a2b3) !important;
}

body.minia-app[data-app-shape="flat"] .epharma-confirm,
body.minia-app[data-app-shape="flat"] .epharma-confirm .swal2-icon,
body.minia-app[data-app-shape="flat"] .epharma-confirm .epharma-confirm-icon,
body.minia-app[data-app-shape="flat"] .epharma-confirm .swal2-close,
body.minia-app[data-app-shape="flat"] .epharma-confirm-close,
body.minia-app[data-app-shape="flat"] .epharma-confirm-cancel,
body.minia-app[data-app-shape="flat"] .epharma-confirm-delete,
body.minia-app[data-app-shape="flat"] .epharma-confirm-ok {
    border-radius: 0 !important;
}

body.minia-app .dt-wrap thead th.dt-sort {
    cursor: pointer;
    user-select: none;
}

body.minia-app .dt-wrap thead th.dt-sort::after {
    content: "↕";
    margin-left: 6px;
    color: #adb5bd;
    font-size: 11px;
}

body.minia-app .page-content .py-12 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.minia-app .page-content .max-w-7xl,
body.minia-app .page-content .max-w-3xl {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.minia-app .page-content .listing-filters {
    display: none !important;
}

/* Old listing pages wrap LunaTable in overflow-x-auto; Bootstrap leftovers
   (row gutters / padded cards) only need a few px and create a fake x-scroll. */
body.minia-app .page-content .overflow-x-auto:has(.dt-card),
body.minia-app .page-content .overflow-x-auto:has(.dataTables_wrapper) {
    overflow-x: visible !important;
}

body.minia-app .dt-card,
body.minia-app .dt-card > .card-body,
body.minia-app .dataTables_wrapper,
body.minia-app .dt-toolbar,
body.minia-app .dt-tools,
body.minia-app .dt-buttons {
    overflow: visible !important;
}

body.minia-app div.dt-button-collection {
    z-index: 2000 !important;
}

body.minia-app[data-bs-theme="dark"] {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color);
    color-scheme: dark;
    --bs-body-bg: #171a21;
    --bs-body-color: #d8dee9;
    --bs-heading-color: #f3f5f8;
    --bs-card-bg: #20242d;
    --bs-card-border-color: #303642;
    --bs-border-color: #303642;
    --bs-header-bg: #20242d;
    --bs-header-item-color: #d8dee9;
    --bs-footer-bg: #1b1f27;
    --bs-footer-color: #98a2b3;
    --bs-sidebar-bg: #1c2029;
    --bs-sidebar-dark-bg: #1c2029;
    --bs-sidebar-border-color: #2c313d;
    --bs-sidebar-menu-item-color: #a5adba;
    --bs-sidebar-menu-item-icon-color: #8e98a9;
    --bs-sidebar-menu-sub-item-color: #909bad;
    --bs-dropdown-bg: #242933;
    --bs-dropdown-link-color: #d8dee9;
    --bs-dropdown-link-hover-bg: #303642;
    --bs-dropdown-link-hover-color: #fff;
    --shell-input-bg: #252a34;
    --shell-input-border: #39404e;
    --shell-logo-bg: #292e39;
    --shell-btn-hover: #343b48;
    --shell-muted: #98a2b3;
    --shell-card-bg: #20242d;
    --shell-text: #d8dee9;
    --shell-border: #303642;
    --shell-panel-bg: #1b1f27;
    --shell-panel-surface: #252a34;
    --shell-panel-border: #303642;
    --shell-panel-text: #d8dee9;
    --shell-panel-muted: #98a2b3;
    --shell-panel-accent-bg: rgba(52, 195, 143, 0.14);
    --shell-panel-accent-border: rgba(52, 195, 143, 0.35);
    --shell-panel-accent-text: #34c38f;
    --shell-panel-canvas: #1f2430;
}

body.minia-app #layout-wrapper[data-layout-mode="dark"] {
    --bs-body-bg: #171a21;
    --bs-body-color: #d8dee9;
    --bs-heading-color: #f3f5f8;
    --bs-card-bg: #20242d;
    --bs-card-cap-bg: #20242d;
    --bs-card-border-color: #303642;
    --bs-border-color: #303642;
    --bs-light: #252a34;
    --bs-secondary-color: #98a2b3;
    --bs-input-bg: #252a34;
    --bs-input-color: #d8dee9;
    --bs-input-border-color: #39404e;
    --shell-card-bg: #20242d;
    --shell-text: #d8dee9;
    --shell-muted: #98a2b3;
    --shell-border: #303642;
    --shell-input-bg: #252a34;
    --shell-btn-hover: #343b48;
}

body.minia-app #layout-wrapper[data-theme="night"] {
    --bs-body-bg: #171b2a;
    --bs-body-color: #c9d2ea;
    --bs-heading-color: #f4f6fb;
    --bs-card-bg: #222844;
    --bs-card-cap-bg: #222844;
    --bs-card-border-color: #343c5c;
    --bs-border-color: #343c5c;
    --bs-light: #1a2040;
    --bs-secondary-color: #93a0c4;
    --bs-input-bg: #1a2040;
    --bs-input-color: #c9d2ea;
    --bs-input-border-color: #3a446c;
    --shell-card-bg: #222844;
    --shell-text: #c9d2ea;
    --shell-muted: #93a0c4;
    --shell-border: #343c5c;
    --shell-input-bg: #1a2040;
    --shell-btn-hover: #323a62;
}

body.minia-app[data-theme="night"] {
    --bs-body-bg: #171b2a;
    --bs-body-color: #c9d2ea;
    --bs-heading-color: #f4f6fb;
    --bs-card-bg: #222844;
    --bs-card-border-color: #343c5c;
    --bs-border-color: #343c5c;
    --bs-header-bg: #1d2340;
    --bs-header-item-color: #d5dcf2;
    --bs-footer-bg: #15192b;
    --bs-footer-color: #93a0c4;
    --bs-sidebar-bg: #12172b;
    --bs-sidebar-dark-bg: #12172b;
    --bs-sidebar-border-color: #2a3150;
    --bs-sidebar-menu-item-color: #aeb8d8;
    --bs-sidebar-menu-item-icon-color: #9aa6cc;
    --bs-sidebar-menu-sub-item-color: #9aa6cc;
    --bs-dropdown-bg: #222844;
    --bs-dropdown-link-color: #c9d2ea;
    --bs-dropdown-link-hover-bg: #2d3558;
    --bs-dropdown-link-hover-color: #fff;
    --shell-input-bg: #1a2040;
    --shell-input-border: #3a446c;
    --shell-logo-bg: #1c2344;
    --shell-btn-hover: #323a62;
    --shell-muted: #93a0c4;
    --shell-card-bg: #222844;
    --shell-text: #c9d2ea;
    --shell-border: #343c5c;
}

body.minia-app[data-bs-theme="dark"] #page-topbar {
    background-color: var(--bs-header-bg) !important;
    color: var(--bs-header-item-color);
    border-color: var(--bs-border-color) !important;
}

body.minia-app[data-bs-theme="dark"] .card,
body.minia-app[data-bs-theme="dark"] .dropdown-menu,
body.minia-app[data-bs-theme="dark"] .modal-content,
body.minia-app[data-bs-theme="dark"] .list-group-item {
    --bs-card-bg: var(--shell-card-bg);
    --bs-card-cap-bg: var(--shell-card-bg);
    --bs-card-border-color: var(--shell-border);
    background-color: var(--shell-card-bg) !important;
    color: var(--shell-text);
    border-color: var(--shell-border) !important;
}

body.minia-app[data-bs-theme="dark"] .main-content,
body.minia-app[data-bs-theme="dark"] .page-content {
    background-color: var(--bs-body-bg) !important;
}

body.minia-app[data-bs-theme="dark"] .footer {
    background-color: var(--bs-footer-bg) !important;
    color: var(--bs-footer-color);
    border-color: var(--bs-border-color) !important;
}

body.minia-app[data-bs-theme="dark"] .navbar-brand-box,
body.minia-app[data-bs-theme="dark"] .vertical-menu,
body.minia-app[data-bs-theme="dark"] .vertical-menu [data-simplebar],
body.minia-app[data-bs-theme="dark"] .vertical-menu .simplebar-content-wrapper,
body.minia-app[data-bs-theme="dark"] .vertical-menu .simplebar-mask {
    background: var(--bs-sidebar-bg) !important;
    border-color: var(--bs-sidebar-border-color) !important;
    color: var(--bs-sidebar-menu-item-color);
}

body.minia-app[data-bs-theme="dark"] .logo-txt,
body.minia-app[data-bs-theme="dark"] .header-item,
body.minia-app[data-bs-theme="dark"] .card-title,
body.minia-app[data-bs-theme="dark"] h1,
body.minia-app[data-bs-theme="dark"] h2,
body.minia-app[data-bs-theme="dark"] h3,
body.minia-app[data-bs-theme="dark"] h4,
body.minia-app[data-bs-theme="dark"] h5,
body.minia-app[data-bs-theme="dark"] h6 {
    color: var(--bs-heading-color);
}

body.minia-app[data-bs-theme="dark"] #sidebar-menu ul li a,
body.minia-app[data-bs-theme="dark"] .menu-title {
    color: var(--bs-sidebar-menu-item-color);
}

body.minia-app[data-bs-theme="dark"] #sidebar-menu ul li a:hover,
body.minia-app[data-bs-theme="dark"] #sidebar-menu ul li.mm-active > a,
body.minia-app[data-bs-theme="dark"] #sidebar-menu ul li a.active {
    color: #fff !important;
}

body.minia-app[data-bs-theme="dark"]:not([data-sidebar-size="sm"]) .shell-logo .logo-lg {
    display: inline-flex !important;
}

body.minia-app[data-bs-theme="dark"] .logo-mark {
    background: var(--shell-logo-bg);
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--shell-input-border);
}

body.minia-app[data-bs-theme="dark"] .text-muted,
body.minia-app[data-bs-theme="dark"] .dataTables_wrapper,
body.minia-app[data-bs-theme="dark"] .dataTables_info,
body.minia-app[data-bs-theme="dark"] .dataTables_length,
body.minia-app[data-bs-theme="dark"] .dataTables_filter {
    color: var(--shell-muted) !important;
}

body.minia-app[data-bs-theme="dark"] .form-control,
body.minia-app[data-bs-theme="dark"] .form-select,
body.minia-app[data-bs-theme="dark"] .page-link,
body.minia-app[data-bs-theme="dark"] .branch-control,
body.minia-app[data-bs-theme="dark"] .dataTables_filter input,
body.minia-app[data-bs-theme="dark"] .dataTables_length select {
    background-color: var(--shell-input-bg) !important;
    color: var(--bs-heading-color) !important;
    border-color: var(--shell-input-border) !important;
}

body.minia-app[data-bs-theme="dark"] .form-control::placeholder {
    color: #778195;
}

body.minia-app[data-bs-theme="dark"] .form-control:focus,
body.minia-app[data-bs-theme="dark"] .form-select:focus {
    border-color: #686fd5 !important;
    box-shadow: 0 0 0 .15rem rgba(81, 86, 190, .2);
}

body.minia-app[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-table-hover-color: #fff;
    color: var(--bs-body-color);
}

body.minia-app[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: #5156be !important;
    border-color: #5156be !important;
    color: #fff !important;
}

body.minia-app[data-bs-theme="dark"] .bg-primary {
    background-color: #5156be !important;
}

body.minia-app[data-bs-theme="dark"] .btn-light {
    background-color: var(--shell-input-bg);
    border-color: var(--shell-input-border);
    color: var(--bs-heading-color);
}

body.minia-app[data-bs-theme="dark"] .btn-light:hover {
    background-color: var(--shell-btn-hover);
    border-color: var(--shell-input-border);
    color: #fff;
}

body.minia-app[data-bs-theme="dark"] .minia-donut::after {
    background: var(--bs-card-bg);
}

/* Keep the custom logo independent from Minia's logo-light/logo-dark switch. */
body.minia-app .shell-logo {
    display: inline-flex !important;
    height: 70px;
    align-items: center;
}

@media (min-width: 992px) {
    body.minia-app[data-sidebar-size="lg"] .navbar-brand-box,
    body.minia-app:not([data-sidebar-size]) .navbar-brand-box {
        width: 250px !important;
        flex-basis: 250px !important;
    }

    body.minia-app[data-sidebar-size="lg"] .vertical-menu,
    body.minia-app:not([data-sidebar-size]) .vertical-menu {
        width: 250px !important;
    }

    body.minia-app[data-sidebar-size="lg"] .main-content,
    body.minia-app:not([data-sidebar-size]) .main-content {
        margin-left: 250px !important;
    }

    body.minia-app[data-sidebar-size="sm"] .navbar-brand-box,
    body.minia-app[data-sidebar-size="sm"] .vertical-menu {
        width: 70px !important;
    }

    body.minia-app[data-sidebar-size="sm"] .navbar-brand-box {
        flex: 0 0 70px !important;
        padding: 0 !important;
    }

    body.minia-app[data-sidebar-size="sm"] .main-content {
        margin-left: 70px !important;
    }

    body.minia-app[data-sidebar-size="sm"] .shell-logo .logo-lg {
        display: none !important;
    }

    body.minia-app[data-sidebar-size="sm"] .shell-logo .logo-sm {
        display: inline-flex !important;
    }

    body.minia-app[data-sidebar-size="sm"] #sidebar-menu > ul > li > a svg {
        width: 18px !important;
        height: 18px !important;
        margin: -3px 0 0 6px !important;
    }

    body.minia-app[data-sidebar-size="sm"] #sidebar-menu > ul > li:hover > ul.sub-section li a {
        padding: 8px 20px !important;
        width: 190px;
    }
}

/* Surfaces that were locked to white by Bootstrap, DataTables, or utility classes. */
body.minia-app[data-bs-theme="dark"] :is(
    .bg-white,
    .bg-gray-50,
    .bg-gray-100,
    .bg-slate-50,
    .bg-slate-100,
    .bg-zinc-50,
    .bg-light,
    .table,
    .table > :not(caption) > * > *,
    table.dataTable thead th,
    table.dataTable tbody td,
    table.dataTable tbody tr,
    .dataTables_empty
),
.pos-app[data-appearance="dark"] :is(.bg-white, .bg-gray-50, .bg-gray-100),
.pos-app[data-appearance="night"] :is(.bg-white, .bg-gray-50, .bg-gray-100) {
    background-color: var(--shell-card-bg) !important;
    color: var(--shell-text);
}

body.minia-app[data-bs-theme="dark"] .dt-card table thead th,
body.minia-app[data-bs-theme="dark"] table.dataTable thead th,
.pos-app[data-appearance="dark"] table thead th,
.pos-app[data-appearance="night"] table thead th {
    color: var(--shell-muted) !important;
    border-color: var(--shell-border) !important;
    box-shadow: none !important;
    background-color: #171b24 !important;
}

body.minia-app[data-theme="night"] .dt-card table thead th,
body.minia-app[data-theme="night"] table.dataTable thead th {
    background-color: #14182a !important;
}

body.minia-app[data-bs-theme="dark"] table.dataTable tbody td,
body.minia-app[data-bs-theme="dark"] .table > :not(caption) > * > * {
    border-color: var(--shell-border) !important;
    box-shadow: none !important;
}

body.minia-app[data-bs-theme="dark"] table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.035) !important;
}

body.minia-app[data-bs-theme="dark"] table.dataTable.table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

body.minia-app[data-bs-theme="dark"] :is(
    .text-gray-900,
    .text-gray-800,
    .text-gray-700,
    .text-slate-900,
    .text-slate-800,
    .text-black
),
.pos-app[data-appearance="dark"] :is(.text-gray-900, .text-gray-800, .text-gray-700),
.pos-app[data-appearance="night"] :is(.text-gray-900, .text-gray-800, .text-gray-700) {
    color: var(--shell-text) !important;
}

body.minia-app[data-bs-theme="dark"] :is(
    .text-gray-600,
    .text-gray-500,
    .text-gray-400,
    .text-slate-600,
    .text-slate-500
),
.pos-app[data-appearance="dark"] :is(.text-gray-600, .text-gray-500, .text-gray-400),
.pos-app[data-appearance="night"] :is(.text-gray-600, .text-gray-500, .text-gray-400) {
    color: var(--shell-muted) !important;
}

body.minia-app[data-bs-theme="dark"] :is(
    .border-gray-100,
    .border-gray-200,
    .border-gray-300,
    .border-slate-200
),
.pos-app[data-appearance="dark"] :is(.border-gray-100, .border-gray-200, .border-gray-300),
.pos-app[data-appearance="night"] :is(.border-gray-100, .border-gray-200, .border-gray-300) {
    border-color: var(--shell-border) !important;
}

body.minia-app[data-bs-theme="dark"] :is(.divide-gray-100, .divide-gray-200, .divide-slate-200) > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--shell-border) !important;
}

body.minia-app[data-bs-theme="dark"] :is(.hover\:bg-gray-50, .hover\:bg-gray-100, .hover\:bg-white):hover,
.pos-app[data-appearance="dark"] :is(.hover\:bg-gray-50, .hover\:bg-white):hover,
.pos-app[data-appearance="night"] :is(.hover\:bg-gray-50, .hover\:bg-white):hover {
    background-color: var(--shell-btn-hover) !important;
    color: #fff;
}

body.minia-app[data-bs-theme="dark"] .dataTables_paginate .paginate_button {
    background: var(--shell-input-bg) !important;
    color: var(--shell-text) !important;
    border-color: var(--shell-input-border) !important;
}

body.minia-app[data-bs-theme="dark"] .dataTables_paginate .paginate_button.current,
body.minia-app[data-bs-theme="dark"] .dataTables_paginate .paginate_button.current:hover {
    background: #5156be !important;
    color: #fff !important;
    border-color: #5156be !important;
}

.pos-app[data-appearance="dark"],
.pos-app[data-appearance="night"] {
    --shell-text: #d8dee9;
    --shell-muted: #98a2b3;
    --shell-card-bg: #20242d;
    --shell-border: #303642;
    --shell-input-bg: #252a34;
    --shell-input-border: #39404e;
    --shell-btn-hover: #343b48;
    background: #171a21 !important;
    color: var(--shell-text) !important;
}

.pos-app[data-appearance="night"] {
    --shell-text: #c9d2ea;
    --shell-muted: #93a0c4;
    --shell-card-bg: #222844;
    --shell-border: #343c5c;
    --shell-input-bg: #1a2040;
    --shell-input-border: #3a446c;
    --shell-btn-hover: #323a62;
    background: #171b2a !important;
}

.pos-app[data-appearance="dark"] input,
.pos-app[data-appearance="dark"] select,
.pos-app[data-appearance="dark"] textarea,
.pos-app[data-appearance="night"] input,
.pos-app[data-appearance="night"] select,
.pos-app[data-appearance="night"] textarea {
    background-color: var(--shell-input-bg) !important;
    color: var(--shell-text) !important;
    border-color: var(--shell-input-border) !important;
}

.pos-app[data-appearance="dark"] input::placeholder,
.pos-app[data-appearance="night"] input::placeholder {
    color: var(--shell-muted);
}

body.minia-app .pos-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8f8fb;
    color: #495057;
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif);
    font-size: var(--pf-size, 0.875rem);
}

body.minia-app .pos-shell .btn,
body.minia-app .pos-shell .form-control,
body.minia-app .pos-shell .form-select,
body.minia-app .pos-shell h1,
body.minia-app .pos-shell h5,
body.minia-app .pos-shell h6 {
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif);
}

body.minia-app .pos-top {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e9e9ef;
}

body.minia-app .pos-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

body.minia-app .pos-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

body.minia-app .pos-catalog {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
}

/* ===== Pharmacy POS ===== */
body.minia-app .pos-search {
    position: relative;
}

body.minia-app .pos-search .bi {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #74788d;
    z-index: 2;
}

body.minia-app .pos-search .form-control {
    padding-left: 2.25rem;
    height: 2rem;
}

body.minia-app .pos-speed .btn-sm {
    height: 2rem;
    display: inline-flex;
    align-items: center;
}

body.minia-app .pos-suggest {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 220px;
    overflow: auto;
}

body.minia-app .pos-lines {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

body.minia-app .pos-line {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eff0f4;
}

body.minia-app .pos-qty {
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1;
}

body.minia-app .pos-qty-value {
    min-width: 0.9rem;
    font-size: 1rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

body.minia-app .pos-totals {
    margin: 0.5rem 0 0.4rem;
    font-size: 0.72rem;
}

body.minia-app .pos-totals div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.15rem;
    color: #74788d;
}

body.minia-app .pos-totals dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

body.minia-app .pos-grand {
    color: #343a40;
    font-weight: 600;
    font-size: 0.82rem;
    padding-top: 0.25rem;
}

body.minia-app .pos-discount-group .form-control,
body.minia-app .pos-discount-group .btn {
    height: 2rem;
}

body.minia-app .pos-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 18, 32, 0.35);
}

body.minia-app .pos-modal-card {
    width: 100%;
    max-width: 420px;
    margin: 0;
}

body.minia-app .pos-modal-wide {
    max-width: 640px;
}

body.minia-app .pos-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 6px;
    object-fit: contain;
}

body.minia-app .pos-rx-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    background: #111;
    color: #c9cdd8;
    border-radius: 6px;
}

body.minia-app .pos-customer-body {
    gap: 0.65rem;
}

body.minia-app .pos-customer-top {
    flex: 0 0 auto;
}

body.minia-app .pos-rx-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--shell-panel-border, #eff0f4);
}

body.minia-app .pos-rx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex: 0 0 auto;
}

body.minia-app .pos-rx-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    align-content: start;
    overflow: auto;
    padding: 0.1rem;
}

body.minia-app .pos-rx-tile {
    position: relative;
    aspect-ratio: 1;
    min-height: 0;
}

body.minia-app .pos-rx-tile-btn {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #e1e4ec;
    border-radius: var(--pf-radius, 8px);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.minia-app .pos-rx-tile-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.minia-app .pos-rx-tile-pdf {
    color: #c0392b;
    font-size: 1.25rem;
}

body.minia-app .pos-rx-tile-remove {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(33, 37, 41, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
}

body.minia-app .pos-rx-tile-add {
    border: 1px dashed #cfd5e3;
    border-radius: var(--pf-radius, 8px);
    background: #f6f7fb;
    color: #8a91a3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body.minia-app .pos-rx-empty {
    flex: 1 1 auto;
    min-height: 8rem;
    width: 100%;
    margin: 0;
    padding: 0.75rem;
    border: 1px dashed #cfd5e3;
    border-radius: var(--pf-radius, 8px);
    background: #f6f7fb;
    color: #8a91a3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
}

body.minia-app .pos-rx-empty i {
    font-size: 1.35rem;
}

body.minia-app .pos-rx-empty span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
}

body.minia-app .pos-rx-empty small {
    font-size: 0.68rem;
    color: #98a0b3;
}

body.minia-app .pos-stage-customer .pos-held {
    flex: 0 0 auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--shell-panel-border, #eff0f4);
}

body.minia-app .pos-rx-large {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 0.5rem;
}

body.minia-app .pos-screen {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    background: #f8f8fb;
    overflow: hidden;
}

body.minia-app .pos-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e9e9ef;
}

body.minia-app .pos-title {
    font-size: 1.05rem;
    font-weight: 700;
}

body.minia-app .pos-screen > .card,
body.minia-app .pos-screen > .alert {
    margin: 1rem 1.25rem 0;
}

body.minia-app .pos-stage {
    flex: 1;
    min-height: 0;
    display: grid;
    /* Catalog / customer / invoice: the customer column is the slimmest, the invoice gets the room. */
    grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
}

body.minia-app .pos-stage-list,
body.minia-app .pos-stage-customer,
body.minia-app .pos-stage-ticket,
body.minia-app .pos-stage .card,
body.minia-app .pos-stage .card-body {
    min-height: 0;
    height: 100%;
}

body.minia-app .pos-stage-list .card-body {
    overflow: auto;
}

body.minia-app .pos-side-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.85rem !important;
}

body.minia-app .pos-side-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

body.minia-app .pos-stage-ticket .pos-side-body {
    gap: 0.5rem;
}

body.minia-app .pos-ticket-foot {
    flex: 0 0 auto;
    padding-top: 0.35rem;
    border-top: 1px solid var(--shell-panel-border, #eff0f4);
    margin-top: auto;
}

body.minia-app .pos-stage-customer .form-control,
body.minia-app .pos-stage-customer .form-select,
body.minia-app .pos-stage-customer .btn-sm,
body.minia-app .pos-stage-ticket .form-control,
body.minia-app .pos-stage-ticket .form-select:not(.pos-batch),
body.minia-app .pos-stage-ticket .btn-sm {
    height: 2rem;
}

body.minia-app .pos-stage-ticket .pos-batch.form-select {
    height: 1.75rem !important;
    min-height: 1.75rem !important;
    padding: 0.15rem 1.5rem 0.15rem 0.4rem !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    color: #343a40 !important;
    background-color: #fff !important;
    background-position: right 0.4rem center !important;
    background-size: 10px 8px !important;
}

body.minia-app .pos-stage-ticket .btn-primary.w-100 {
    height: 2.35rem;
}

body.minia-app .pos-drug-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    align-content: start;
}

body.minia-app .pos-drug-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid #e7e9f0;
    border-radius: var(--pf-radius, 10px);
    background: #fff;
    box-shadow: 0 4px 14px rgba(35, 42, 70, 0.04);
}

body.minia-app .pos-drug-card.is-out {
    opacity: 0.72;
}

body.minia-app .pos-drug-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

body.minia-app .pos-drug-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

body.minia-app .pos-drug-foot .btn {
    height: 2rem;
    min-width: 3.4rem;
}

@media (max-width: 1199.98px) {
    body.minia-app .pos-stage {
        grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 991.98px) {
    body.minia-app .pos-screen {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    body.minia-app .pos-stage {
        flex: 0 0 auto;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    body.minia-app .pos-stage-list,
    body.minia-app .pos-stage-customer,
    body.minia-app .pos-stage-ticket {
        height: auto;
        min-height: 0;
    }

    body.minia-app .pos-stage .card,
    body.minia-app .pos-stage .card-body,
    body.minia-app .pos-side-body {
        height: auto;
        overflow: visible;
    }

    body.minia-app .pos-stage .card-body {
        min-height: 0;
    }

    body.minia-app .pos-rx-panel {
        flex: 0 0 auto;
    }

    body.minia-app .pos-rx-empty {
        flex: 0 0 auto;
    }

    body.minia-app .pos-rx-grid {
        flex: 0 0 auto;
        overflow: visible;
    }

    body.minia-app .pos-lines {
        max-height: 360px;
        overflow-y: auto;
    }

    body.minia-app .pos-drug-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 575.98px) {
    body.minia-app .pos-top {
        flex-wrap: wrap;
        gap: 0.45rem 0.6rem;
        padding: 0.55rem 0.7rem;
    }

    body.minia-app .pos-top > div:last-child {
        width: 100%;
        margin-left: 0 !important;
        justify-content: flex-start;
        gap: 0.4rem !important;
    }

    body.minia-app .pos-top > div:last-child .pos-chip {
        margin-right: auto;
    }

    body.minia-app .pos-top .btn {
        min-height: 2rem;
        padding: 0.35rem 0.55rem;
    }

    body.minia-app .pos-screen > .card,
    body.minia-app .pos-screen > .alert {
        margin: 0.65rem 0.7rem 0;
    }

    body.minia-app .pos-speed .row > [class*="col-"] {
        min-width: 0;
    }

    body.minia-app .pos-speed .row > [class*="col-"]:last-child > .d-flex {
        justify-content: flex-start !important;
        gap: 0.35rem !important;
    }

    body.minia-app .pos-stage {
        padding: 0.65rem 0.7rem 1rem;
        gap: 0.65rem;
    }

    body.minia-app .pos-drug-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 0.5rem;
    }

    body.minia-app .pos-drug-card {
        min-width: 0;
        padding: 0.65rem;
    }

    body.minia-app .pos-drug-top {
        min-width: 0;
    }

    body.minia-app .pos-drug-top > .min-w-0 {
        flex: 1 1 auto;
    }

    body.minia-app .pos-stage-customer,
    body.minia-app .pos-stage-ticket,
    body.minia-app .pos-stage-list {
        min-width: 0;
    }

    body.minia-app .pos-line-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 5.5rem) auto;
        gap: 0.4rem;
    }

    body.minia-app .pos-stage-ticket .pos-batch.form-select {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }

    body.minia-app .pos-line-discount {
        width: 100%;
        min-width: 0;
    }

    body.minia-app .pos-ticket-foot {
        position: sticky;
        bottom: 0;
        z-index: 2;
        padding: 0.6rem 0.1rem 0.15rem;
        background: var(--shell-panel-surface, #fff);
    }

    body.minia-app .pos-customer-body {
        gap: 0.85rem;
    }

    body.minia-app .pos-top > div:last-child .pos-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

body.minia-app[data-bs-theme="dark"] .pos-screen,
body.minia-app[data-bs-theme="dark"] .pos-top,
body.minia-app[data-bs-theme="dark"] .pos-drug-card {
    background: var(--bs-body-bg, #171a21);
    color: var(--bs-body-color, #d8dee9);
    border-color: var(--bs-border-color, #303642);
}

body.minia-app[data-bs-theme="dark"] .pos-grand {
    color: inherit;
}

/* Tenant theme: accent + shape tokens */
body.minia-app .btn-primary,
body.minia-app .bg-primary,
body.minia-app .badge.bg-primary {
    background-color: var(--pf-accent, #5156be) !important;
    border-color: var(--pf-accent, #5156be) !important;
}

body.minia-app .btn-outline-primary {
    color: var(--pf-accent, #5156be) !important;
    border-color: var(--pf-accent, #5156be) !important;
}

body.minia-app .btn-outline-primary:hover,
body.minia-app .btn-outline-primary:focus {
    background-color: var(--pf-accent, #5156be) !important;
    color: #fff !important;
}

body.minia-app .text-primary,
body.minia-app a.text-primary {
    color: var(--pf-accent, #5156be) !important;
}

body.minia-app .page-item.active .page-link,
body.minia-app .nav-pills .nav-link.active,
body.minia-app .form-check-input:checked {
    background-color: var(--pf-accent, #5156be) !important;
    border-color: var(--pf-accent, #5156be) !important;
}

body.minia-app .page-item.active .page-link,
body.minia-app .dataTables_wrapper .page-item.active .page-link,
body.minia-app .dataTables_paginate .paginate_button.current,
body.minia-app .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
}

body.minia-app .dataTables_wrapper .page-link,
body.minia-app .pagination .page-link {
    color: var(--shell-panel-text, #495057);
}

body.minia-app .form-control:focus,
body.minia-app .form-select:focus,
body.minia-app .field:focus {
    border-color: var(--pf-accent, #5156be) !important;
    box-shadow: 0 0 0 0.15rem rgba(var(--pf-accent-rgb, 81, 86, 190), 0.18) !important;
}

body.minia-app #sidebar-menu ul li a.active,
body.minia-app #sidebar-menu ul li.mm-active > a,
body.minia-app #sidebar-menu ul li ul.sub-menu li a.active {
    color: var(--pf-accent, #5156be) !important;
}

body.minia-app #sidebar-menu ul li ul.sub-menu.mm-show > li > a.active {
    box-shadow: inset 2px 0 0 var(--pf-accent, #5156be) !important;
}

body.minia-app[data-app-shape="rounded"] .btn,
body.minia-app[data-app-shape="rounded"] .form-control,
body.minia-app[data-app-shape="rounded"] .form-select,
body.minia-app[data-app-shape="rounded"] .card,
body.minia-app[data-app-shape="rounded"] .modal-content,
body.minia-app[data-app-shape="rounded"] .dropdown-menu,
body.minia-app[data-app-shape="rounded"] .alert,
body.minia-app[data-app-shape="rounded"] .app-float-modal-content,
body.minia-app[data-app-shape="rounded"] .med-panel,
body.minia-app[data-app-shape="rounded"] .theme-panel,
body.minia-app[data-app-shape="rounded"] .settings-nav,
body.minia-app[data-app-shape="rounded"] .epharma-confirm,
body.minia-app[data-app-shape="rounded"] .epharma-confirm-cancel,
body.minia-app[data-app-shape="rounded"] .epharma-confirm-delete,
body.minia-app[data-app-shape="rounded"] .epharma-confirm-ok,
body.minia-app[data-app-shape="rounded"] .dataTables_length select,
body.minia-app[data-app-shape="rounded"] .dataTables_filter input,
body.minia-app[data-app-shape="rounded"] .pos-drug-card,
body.minia-app[data-app-shape="rounded"] .pos-rx-preview,
body.minia-app[data-app-shape="rounded"] .pos-rx-thumb,
body.minia-app[data-app-shape="rounded"] .pos-modal-card,
body.minia-app[data-app-shape="rounded"] .pf-card,
body.minia-app[data-app-shape="rounded"] .pf-ops-tab,
body.minia-app[data-app-shape="rounded"] .pf-metric,
body.minia-app[data-app-shape="rounded"] .pf-field input,
body.minia-app[data-app-shape="rounded"] .pf-field select,
body.minia-app[data-app-shape="rounded"] .pf-field textarea,
body.minia-app[data-app-shape="rounded"] .ss-input,
body.minia-app[data-app-shape="rounded"] .ss-menu {
    border-radius: var(--pf-radius, 10px) !important;
}

body.minia-app[data-app-shape="default"] .btn,
body.minia-app[data-app-shape="default"] .form-control,
body.minia-app[data-app-shape="default"] .form-select,
body.minia-app[data-app-shape="default"] .card,
body.minia-app[data-app-shape="default"] .modal-content,
body.minia-app[data-app-shape="default"] .dropdown-menu,
body.minia-app[data-app-shape="default"] .alert,
body.minia-app[data-app-shape="default"] .app-float-modal-content,
body.minia-app[data-app-shape="default"] .med-panel,
body.minia-app[data-app-shape="default"] .theme-panel,
body.minia-app[data-app-shape="default"] .settings-nav,
body.minia-app[data-app-shape="default"] .epharma-confirm,
body.minia-app[data-app-shape="default"] .epharma-confirm-cancel,
body.minia-app[data-app-shape="default"] .epharma-confirm-delete,
body.minia-app[data-app-shape="default"] .epharma-confirm-ok,
body.minia-app[data-app-shape="default"] .dataTables_length select,
body.minia-app[data-app-shape="default"] .dataTables_filter input,
body.minia-app[data-app-shape="default"] .pos-drug-card,
body.minia-app[data-app-shape="default"] .pos-rx-preview,
body.minia-app[data-app-shape="default"] .pos-rx-thumb,
body.minia-app[data-app-shape="default"] .pos-modal-card,
body.minia-app[data-app-shape="default"] .pf-card,
body.minia-app[data-app-shape="default"] .pf-ops-tab,
body.minia-app[data-app-shape="default"] .pf-metric,
body.minia-app[data-app-shape="default"] .pf-field input,
body.minia-app[data-app-shape="default"] .pf-field select,
body.minia-app[data-app-shape="default"] .pf-field textarea,
body.minia-app[data-app-shape="default"] .ss-input,
body.minia-app[data-app-shape="default"] .ss-menu {
    border-radius: var(--pf-radius, 4px) !important;
}

body.minia-app[data-app-shape="flat"] .btn,
body.minia-app[data-app-shape="flat"] .form-control,
body.minia-app[data-app-shape="flat"] .form-select,
body.minia-app[data-app-shape="flat"] .card,
body.minia-app[data-app-shape="flat"] .modal-content,
body.minia-app[data-app-shape="flat"] .dropdown-menu,
body.minia-app[data-app-shape="flat"] .alert,
body.minia-app[data-app-shape="flat"] .app-float-modal-content,
body.minia-app[data-app-shape="flat"] .med-panel,
body.minia-app[data-app-shape="flat"] .theme-panel,
body.minia-app[data-app-shape="flat"] .settings-nav,
body.minia-app[data-app-shape="flat"] .epharma-confirm,
body.minia-app[data-app-shape="flat"] .epharma-confirm-cancel,
body.minia-app[data-app-shape="flat"] .epharma-confirm-delete,
body.minia-app[data-app-shape="flat"] .epharma-confirm-ok,
body.minia-app[data-app-shape="flat"] .dataTables_length select,
body.minia-app[data-app-shape="flat"] .dataTables_filter input,
body.minia-app[data-app-shape="flat"] .pos-drug-card,
body.minia-app[data-app-shape="flat"] .pos-rx-preview,
body.minia-app[data-app-shape="flat"] .pos-rx-thumb,
body.minia-app[data-app-shape="flat"] .pos-modal-card,
body.minia-app[data-app-shape="flat"] .pf-card,
body.minia-app[data-app-shape="flat"] .pf-ops-tab,
body.minia-app[data-app-shape="flat"] .pf-metric,
body.minia-app[data-app-shape="flat"] .pf-field input,
body.minia-app[data-app-shape="flat"] .pf-field select,
body.minia-app[data-app-shape="flat"] .pf-field textarea,
body.minia-app[data-app-shape="flat"] .ss-input,
body.minia-app[data-app-shape="flat"] .ss-menu {
    border-radius: 0 !important;
}

body.minia-app .settings-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    body.minia-app .settings-shell {
        grid-template-columns: 1fr;
    }
}

/* Broad theme compliance: accent, radius, type */
body.minia-app {
    font-size: var(--pf-size, 0.875rem) !important;
    font-weight: var(--pf-weight, 400) !important;
}

body.minia-app .btn-primary:hover,
body.minia-app .btn-primary:focus,
body.minia-app .btn-primary:active,
body.minia-app .btn-primary.active,
body.minia-app .btn-check:checked + .btn-primary {
    background-color: color-mix(in srgb, var(--pf-accent, #5156be) 88%, #000) !important;
    border-color: color-mix(in srgb, var(--pf-accent, #5156be) 88%, #000) !important;
}

body.minia-app .btn-soft-primary,
body.minia-app .bg-soft-primary {
    color: var(--pf-accent, #5156be) !important;
    background-color: rgba(var(--pf-accent-rgb, 81, 86, 190), 0.12) !important;
}

body.minia-app .border-primary {
    border-color: var(--pf-accent, #5156be) !important;
}

body.minia-app a:not(.btn):not(.dropdown-item):not(.nav-link):not(.list-group-item):not(.page-link) {
    color: var(--pf-accent, #5156be);
}

body.minia-app .table thead th,
body.minia-app .dataTables_wrapper table.dataTable thead th {
    font-family: var(--pf-font, "IBM Plex Sans", sans-serif) !important;
}

body.minia-app .dt-card,
body.minia-app .card,
body.minia-app .modal-content,
body.minia-app .dropdown-menu,
body.minia-app .list-group-item,
body.minia-app .page-link,
body.minia-app .badge,
body.minia-app .alert,
body.minia-app .toast,
body.minia-app .popover,
body.minia-app .tooltip-inner,
body.minia-app .input-group-text,
body.minia-app .form-control,
body.minia-app .form-select,
body.minia-app .form-check-input,
body.minia-app .btn,
body.minia-app .nav-pills .nav-link,
body.minia-app .progress,
body.minia-app .progress-bar,
body.minia-app .offcanvas,
body.minia-app .accordion-item,
body.minia-app .accordion-button,
body.minia-app .pagination .page-link,
body.minia-app .select2-container--default .select2-selection--single,
body.minia-app .field,
body.minia-app .med-panel,
body.minia-app .med-metric,
body.minia-app .theme-panel,
body.minia-app .theme-preview-card,
body.minia-app .theme-shape,
body.minia-app .settings-nav,
body.minia-app .app-float-modal-content,
body.minia-app .status-chip,
body.minia-app .pf-badge,
body.minia-app .pf-card,
body.minia-app .pf-metric,
body.minia-app .pf-ops-nav,
body.minia-app .pf-ops-tab,
body.minia-app .pf-toolbar,
body.minia-app .pf-alert,
body.minia-app .ss-input,
body.minia-app .ss-menu,
body.minia-app .create-tabs,
body.minia-app .create-tab,
body.minia-app .create-panel,
body.minia-app .switch,
body.minia-app .epharma-confirm,
body.minia-app .epharma-confirm .swal2-icon,
body.minia-app .epharma-confirm .epharma-confirm-icon,
body.minia-app .epharma-confirm .swal2-close,
body.minia-app .epharma-confirm-close,
body.minia-app .epharma-confirm-cancel,
body.minia-app .epharma-confirm-delete,
body.minia-app .epharma-confirm-ok,
body.minia-app .dataTables_length select,
body.minia-app .dataTables_filter input,
body.minia-app .pos-drug-card,
body.minia-app .pos-rx-preview,
body.minia-app .pos-rx-thumb,
body.minia-app .pos-modal-card {
    border-radius: var(--pf-radius, 10px) !important;
}

body.minia-app[data-app-shape="flat"] .dt-card,
body.minia-app[data-app-shape="flat"] .card,
body.minia-app[data-app-shape="flat"] .modal-content,
body.minia-app[data-app-shape="flat"] .dropdown-menu,
body.minia-app[data-app-shape="flat"] .list-group-item,
body.minia-app[data-app-shape="flat"] .page-link,
body.minia-app[data-app-shape="flat"] .badge,
body.minia-app[data-app-shape="flat"] .alert,
body.minia-app[data-app-shape="flat"] .toast,
body.minia-app[data-app-shape="flat"] .input-group-text,
body.minia-app[data-app-shape="flat"] .form-control,
body.minia-app[data-app-shape="flat"] .form-select,
body.minia-app[data-app-shape="flat"] .form-check-input,
body.minia-app[data-app-shape="flat"] .btn,
body.minia-app[data-app-shape="flat"] .nav-pills .nav-link,
body.minia-app[data-app-shape="flat"] .progress,
body.minia-app[data-app-shape="flat"] .offcanvas,
body.minia-app[data-app-shape="flat"] .accordion-item,
body.minia-app[data-app-shape="flat"] .accordion-button,
body.minia-app[data-app-shape="flat"] .pagination .page-link,
body.minia-app[data-app-shape="flat"] .field,
body.minia-app[data-app-shape="flat"] .med-panel,
body.minia-app[data-app-shape="flat"] .med-metric,
body.minia-app[data-app-shape="flat"] .theme-panel,
body.minia-app[data-app-shape="flat"] .theme-preview-card,
body.minia-app[data-app-shape="flat"] .theme-shape,
body.minia-app[data-app-shape="flat"] .settings-nav,
body.minia-app[data-app-shape="flat"] .app-float-modal-content,
body.minia-app[data-app-shape="flat"] .status-chip,
body.minia-app[data-app-shape="flat"] .pf-badge,
body.minia-app[data-app-shape="flat"] .pf-card,
body.minia-app[data-app-shape="flat"] .pf-metric,
body.minia-app[data-app-shape="flat"] .pf-ops-nav,
body.minia-app[data-app-shape="flat"] .pf-ops-tab,
body.minia-app[data-app-shape="flat"] .pf-toolbar,
body.minia-app[data-app-shape="flat"] .pf-alert,
body.minia-app[data-app-shape="flat"] .ss-input,
body.minia-app[data-app-shape="flat"] .ss-menu,
body.minia-app[data-app-shape="flat"] .create-tabs,
body.minia-app[data-app-shape="flat"] .create-tab,
body.minia-app[data-app-shape="flat"] .create-panel,
body.minia-app[data-app-shape="flat"] .switch,
body.minia-app[data-app-shape="flat"] .pos-drug-card,
body.minia-app[data-app-shape="flat"] .pos-rx-preview,
body.minia-app[data-app-shape="flat"] .pos-rx-thumb,
body.minia-app[data-app-shape="flat"] .pos-modal-card,
body.minia-app[data-app-shape="flat"] .epharma-confirm,
body.minia-app[data-app-shape="flat"] .epharma-confirm .swal2-icon,
body.minia-app[data-app-shape="flat"] .epharma-confirm .epharma-confirm-icon,
body.minia-app[data-app-shape="flat"] .epharma-confirm .swal2-close,
body.minia-app[data-app-shape="flat"] .epharma-confirm-close,
body.minia-app[data-app-shape="flat"] .epharma-confirm-cancel,
body.minia-app[data-app-shape="flat"] .epharma-confirm-delete,
body.minia-app[data-app-shape="flat"] .epharma-confirm-ok,
body.minia-app[data-app-shape="flat"] .dataTables_length select,
body.minia-app[data-app-shape="flat"] .dataTables_filter input {
    border-radius: 0 !important;
}

body.minia-app .switch {
    border-radius: 999px !important;
}

body.minia-app[data-app-shape="flat"] .switch {
    border-radius: 999px !important;
}

/* Status pills / badges follow corner shape */
body.minia-app .status-chip,
body.minia-app .pf-badge,
body.minia-app .badge.rounded-pill,
body.minia-app .theme-locked-badge,
body.minia-app .rounded-full,
body.minia-app .rounded-pill,
body.minia-app span.rounded-full {
    border-radius: var(--pf-radius, 10px) !important;
}

body.minia-app[data-app-shape="rounded"] .status-chip,
body.minia-app[data-app-shape="rounded"] .pf-badge,
body.minia-app[data-app-shape="rounded"] .badge.rounded-pill,
body.minia-app[data-app-shape="rounded"] .theme-locked-badge,
body.minia-app[data-app-shape="rounded"] .rounded-full,
body.minia-app[data-app-shape="rounded"] .rounded-pill,
body.minia-app[data-app-shape="rounded"] span.rounded-full {
    border-radius: 999px !important;
}

body.minia-app[data-app-shape="flat"] .status-chip,
body.minia-app[data-app-shape="flat"] .pf-badge,
body.minia-app[data-app-shape="flat"] .badge.rounded-pill,
body.minia-app[data-app-shape="flat"] .theme-locked-badge,
body.minia-app[data-app-shape="flat"] .rounded-full,
body.minia-app[data-app-shape="flat"] .rounded-pill,
body.minia-app[data-app-shape="flat"] span.rounded-full {
    border-radius: 0 !important;
}

/* Profile / avatar marks follow corner shape */
body.minia-app .logo-mark,
body.minia-app .header-profile-user,
body.minia-app .rounded-circle,
body.minia-app .avatar-title.rounded-circle {
    border-radius: var(--pf-radius, 10px) !important;
}

body.minia-app[data-app-shape="rounded"] .logo-mark,
body.minia-app[data-app-shape="rounded"] .header-profile-user,
body.minia-app[data-app-shape="rounded"] .rounded-circle,
body.minia-app[data-app-shape="rounded"] .avatar-title.rounded-circle {
    border-radius: 50% !important;
}

body.minia-app[data-app-shape="flat"] .logo-mark,
body.minia-app[data-app-shape="flat"] .header-profile-user,
body.minia-app[data-app-shape="flat"] .rounded-circle,
body.minia-app[data-app-shape="flat"] .avatar-title.rounded-circle {
    border-radius: 0 !important;
}

body.minia-app .navbar-header .header-item.btn,
body.minia-app #vertical-menu-btn {
    border-radius: var(--pf-radius, 10px) !important;
}

body.minia-app[data-app-shape="flat"] .navbar-header .header-item.btn,
body.minia-app[data-app-shape="flat"] #vertical-menu-btn {
    border-radius: 0 !important;
}
