/* Orthofeet panel theme — visual overlay on Metronic (look only) */
:root {
    --of-navy: #111827;
    --of-navy-soft: #1f2937;
    --of-teal: #0d9488;
    --of-teal-soft: rgba(13, 148, 136, 0.18);
    --of-blue: #2563eb;
    --of-blue-soft: #eff6ff;
    --of-orange: #f97316;
    --of-green: #16a34a;
    --of-surface: #f3f4f6;
    --of-card: #ffffff;
    --of-border: #e5e7eb;
    --of-muted: #6b7280;
    --of-text: #111827;
    --of-radius: 10px;
    --of-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 4px 14px rgba(17, 24, 39, 0.04);
}

body.app-default {
    background-color: var(--of-surface) !important;
    color: var(--of-text);
}

/* Sidebar — unified Orthofeet teal + noticeable motion for client demo */
#kt_app_sidebar {
    --of-sidebar-bg: #0b1220;
    --of-sidebar-text: #94a3b8;
    --of-sidebar-text-hover: #ffffff;
    --of-sidebar-active: #0d9488;
    --of-sidebar-active-2: #14b8a6;
    --of-sidebar-active-soft: rgba(13, 148, 136, 0.28);
    --of-sidebar-hover: rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #0b1220 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

#kt_app_sidebar_logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 70px;
    animation: of-sidebar-logo-in 0.55s ease both;
}

.app-sidebar-logo-default,
.app-sidebar-logo-minimize {
    filter: brightness(1.05);
    transition: transform 0.25s ease, filter 0.25s ease;
}

#kt_app_sidebar_logo:hover .app-sidebar-logo-default,
#kt_app_sidebar_logo:hover .app-sidebar-logo-minimize {
    transform: scale(1.03);
    filter: brightness(1.15);
}

#kt_app_sidebar_menu.menu {
    padding-top: 0.35rem;
}

/* Staggered entrance so sidebar feels freshly redesigned */
#kt_app_sidebar_menu > .menu-item {
    animation: of-sidebar-item-in 0.45s ease both;
}

#kt_app_sidebar_menu > .menu-item:nth-child(1) { animation-delay: 0.04s; }
#kt_app_sidebar_menu > .menu-item:nth-child(2) { animation-delay: 0.08s; }
#kt_app_sidebar_menu > .menu-item:nth-child(3) { animation-delay: 0.12s; }
#kt_app_sidebar_menu > .menu-item:nth-child(4) { animation-delay: 0.16s; }
#kt_app_sidebar_menu > .menu-item:nth-child(5) { animation-delay: 0.2s; }
#kt_app_sidebar_menu > .menu-item:nth-child(6) { animation-delay: 0.24s; }
#kt_app_sidebar_menu > .menu-item:nth-child(7) { animation-delay: 0.28s; }
#kt_app_sidebar_menu > .menu-item:nth-child(8) { animation-delay: 0.32s; }

#kt_app_sidebar_menu .menu-item .menu-link {
    position: relative;
    overflow: hidden;
    border-radius: 10px !important;
    margin: 3px 0;
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    color: var(--of-sidebar-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    transition:
        background-color 0.28s ease,
        background 0.28s ease,
        color 0.28s ease,
        transform 0.28s ease,
        box-shadow 0.28s ease,
        padding-left 0.28s ease;
}

#kt_app_sidebar_menu .menu-item .menu-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
    transform: scaleY(0.4);
}

#kt_app_sidebar_menu .menu-item .menu-link .menu-title {
    color: inherit !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: letter-spacing 0.28s ease, transform 0.28s ease;
}

#kt_app_sidebar_menu .menu-item .menu-link .menu-title.has-source-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    white-space: normal;
    line-height: 1.2;
}

#kt_app_sidebar_menu .menu-source-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(20, 184, 166, 0.16);
    color: #5eead4;
}

#kt_app_sidebar_menu .menu-item .menu-link.active .menu-source-tag,
#kt_app_sidebar_menu .menu-sub .menu-item .menu-link.active .menu-source-tag {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

#kt_app_sidebar_menu .menu-item .menu-link .menu-icon,
#kt_app_sidebar_menu .menu-item .menu-link .menu-icon .svg-icon,
#kt_app_sidebar_menu .menu-item .menu-link .menu-icon i,
#kt_app_sidebar_menu .menu-item .menu-link .menu-icon svg {
    color: inherit !important;
    transition: transform 0.28s ease, color 0.28s ease;
}

#kt_app_sidebar_menu .menu-item .menu-link .menu-icon svg path {
    fill: currentColor;
}

#kt_app_sidebar_menu .menu-item .menu-link .menu-arrow:after {
    background-color: currentColor !important;
    transition: transform 0.28s ease, background-color 0.28s ease;
}

/* Hover (inactive only) */
#kt_app_sidebar_menu .menu-item:not(.here) > .menu-link:hover:not(.active),
#kt_app_sidebar_menu .menu-sub .menu-link:hover:not(.active) {
    background: var(--of-sidebar-hover) !important;
    color: var(--of-sidebar-text-hover) !important;
    transform: translateX(3px);
}

#kt_app_sidebar_menu .menu-item:not(.here) > .menu-link:hover:not(.active)::before,
#kt_app_sidebar_menu .menu-sub .menu-link:hover:not(.active)::before {
    background: rgba(20, 184, 166, 0.75);
    transform: scaleY(1);
}

#kt_app_sidebar_menu .menu-item:not(.here) > .menu-link:hover:not(.active) .menu-icon,
#kt_app_sidebar_menu .menu-sub .menu-link:hover:not(.active) .menu-icon {
    transform: scale(1.08);
}

/* Parent accordion open / here */
#kt_app_sidebar_menu .menu-item.here > .menu-link,
#kt_app_sidebar_menu .menu-item.here.show > .menu-link,
#kt_app_sidebar_menu .menu-item.show.here > .menu-link {
    background: linear-gradient(110deg, var(--of-sidebar-active) 0%, var(--of-sidebar-active-2) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.35) !important;
    animation: of-sidebar-active-pop 0.55s ease both;
}

#kt_app_sidebar_menu .menu-item.here > .menu-link::before,
#kt_app_sidebar_menu .menu-item.here.show > .menu-link::before {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
    transform: scaleY(1);
}

#kt_app_sidebar_menu .menu-item.here > .menu-link .menu-title {
    letter-spacing: 0.02em;
}

/* Active leaf + active child */
#kt_app_sidebar_menu .menu-item .menu-link.active,
#kt_app_sidebar_menu .menu-sub .menu-item .menu-link.active,
#kt_app_sidebar_menu.menu .menu-item .menu-link.active {
    background: linear-gradient(110deg, var(--of-sidebar-active) 0%, var(--of-sidebar-active-2) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.32) !important;
    animation: of-sidebar-active-pop 0.55s ease both;
}

#kt_app_sidebar_menu .menu-item .menu-link.active::before,
#kt_app_sidebar_menu .menu-sub .menu-item .menu-link.active::before {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
    transform: scaleY(1);
}

/* Soft breathing glow on active — subtle “new UI” signal */
#kt_app_sidebar_menu .menu-item.here > .menu-link,
#kt_app_sidebar_menu .menu-item .menu-link.active {
    animation:
        of-sidebar-active-pop 0.55s ease both,
        of-sidebar-active-glow 2.8s ease-in-out 0.55s 2;
}

/* When parent is already teal, keep children softer but same hue */
#kt_app_sidebar_menu .menu-item.here > .menu-sub .menu-link:not(.active) {
    color: var(--of-sidebar-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none;
}

#kt_app_sidebar_menu .menu-item.here > .menu-sub .menu-link.active {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    animation: of-sidebar-active-pop 0.45s ease both;
}

#kt_app_sidebar_menu .menu-item.here > .menu-sub .menu-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}

#kt_app_sidebar_menu .menu-item.here > .menu-sub {
    animation: of-sidebar-sub-in 0.35s ease both;
}

#kt_app_sidebar_menu .menu-bullet .bullet {
    background-color: rgba(148, 163, 184, 0.7) !important;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#kt_app_sidebar_menu .menu-link.active .menu-bullet .bullet,
#kt_app_sidebar_menu .menu-item.here > .menu-link .menu-bullet .bullet,
#kt_app_sidebar_menu .menu-item.here > .menu-sub .menu-link.active .menu-bullet .bullet {
    background-color: #ffffff !important;
    transform: scale(1.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

#kt_app_sidebar_toggle {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#kt_app_sidebar_toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

@keyframes of-sidebar-logo-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes of-sidebar-item-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes of-sidebar-active-pop {
    0% {
        transform: scale(0.98);
        filter: brightness(0.95);
    }
    60% {
        transform: scale(1.015);
        filter: brightness(1.08);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes of-sidebar-active-glow {
    0%,
    100% {
        box-shadow: 0 8px 22px rgba(13, 148, 136, 0.32);
    }
    50% {
        box-shadow: 0 10px 28px rgba(20, 184, 166, 0.5);
    }
}

@keyframes of-sidebar-sub-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #kt_app_sidebar_logo,
    #kt_app_sidebar_menu > .menu-item,
    #kt_app_sidebar_menu .menu-item .menu-link,
    #kt_app_sidebar_menu .menu-item.here > .menu-sub {
        animation: none !important;
        transition: none !important;
    }
}

/* Boot full-page overlay disabled in layout — never flash blank gray on refresh */
.app-page-loader.of-loader--boot {
    display: none !important;
}

/*
 * Livewire overlay — separate class so it never pairs with boot loader.
 * Does not cover fixed header (avoids white header flash).
 */
.of-livewire-loader {
    display: none;
    position: fixed;
    top: var(--bs-app-header-height, 70px);
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.22) !important;
    color: #111827 !important;
    z-index: 95; /* below fixed header */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (min-width: 992px) {
    [data-kt-app-sidebar-fixed="true"] .of-livewire-loader {
        left: var(--bs-app-sidebar-width, 265px);
    }

    [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-fixed="true"] .of-livewire-loader {
        left: var(--bs-app-sidebar-width-actual, 75px);
    }
}

/* Keep header above any loading overlays */
#kt_app_header.app-header {
    z-index: 100 !important;
    background: #fff !important;
}

.of-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-width: 160px;
    padding: 1.35rem 1.75rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.of-loader-spinner {
    position: relative;
    width: 44px;
    height: 44px;
}

.of-loader-ring {
    box-sizing: border-box;
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3.5px solid #dbeafe;
    border-top-color: #2563eb;
    border-right-color: #0d9488;
    animation: of-loader-spin 0.75s linear infinite;
}

.of-loader-text {
    margin: 0 !important;
    color: #374151 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

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

/* Header — no hard border/highlight under title bar */
#kt_app_header,
#kt_app_header.app-header {
    background: #fff !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

#kt_app_header::before,
#kt_app_header::after,
#kt_app_header_container::before,
#kt_app_header_container::after {
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

#kt_app_header_wrapper,
#kt_app_header_container {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.page-title {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-title .page-heading {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.02em;
}

.page-title .page-subtitle {
    color: var(--of-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

.page-title .breadcrumb {
    margin-top: 0.25rem !important;
}

.page-title .breadcrumb-item,
.page-title .breadcrumb-item a {
    color: #9ca3af !important;
    font-size: 0.78rem;
}

.page-title .breadcrumb-item .bullet {
    background-color: #d1d5db !important;
    opacity: 0.7;
}

/* When Metronic swaps title into content, don't look like a bordered card */
#kt_app_content_container > .page-title {
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.app-navbar .symbol img {
    border: 2px solid var(--of-border);
    object-fit: cover;
}

/* Content shell — kill Metronic's large top gap under header (all modules) */
#kt_app_content.app-content,
.app-content {
    padding-top: 0.75rem !important;
    padding-bottom: 1.25rem !important;
}

@media (max-width: 991.98px) {
    #kt_app_content.app-content,
    .app-content {
        padding-top: 0.65rem !important;
        padding-bottom: 1rem !important;
    }
}

#kt_app_content_container {
    padding-top: 0 !important;
    padding-bottom: 0.5rem !important;
}

.of-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Responsive shell — stop page/table from pushing off-screen */
html,
body.app-default {
    max-width: 100%;
    overflow-x: hidden;
}

#kt_app_root,
#kt_app_page,
#kt_app_wrapper,
#kt_app_main,
#kt_app_content,
#kt_app_content_container {
    min-width: 0 !important;
    max-width: 100%;
}

#kt_app_content_container.app-container {
    width: 100% !important;
    box-sizing: border-box;
}

.card,
.of-page-card,
.of-page-table-wrap,
.of-table-responsive,
.table-responsive {
    max-width: 100%;
    min-width: 0;
}

.of-table-responsive,
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.of-pagination-desktop {
    row-gap: 0.75rem;
}

@media (max-width: 1199.98px) {
    #kt_app_content_container.app-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 991.98px) {
    #kt_app_content_container.app-container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .of-pagination-desktop {
        flex-direction: column;
        align-items: stretch !important;
    }

    .of-pagination-meta {
        width: 100%;
        justify-content: space-between;
    }

    .of-pagination-pages {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    #kt_app_content_container.app-container {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .card .card-header,
    .of-page-card > .card-header {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .card .card-body,
    .of-page-table-wrap {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Cards */
.card {
    background: var(--of-card) !important;
    border: 1px solid var(--of-border) !important;
    border-radius: var(--of-radius) !important;
    box-shadow: var(--of-shadow) !important;
}

.card .card-header {
    background: transparent !important;
    min-height: auto;
}

.card .card-body {
    padding-top: 0.75rem;
}

/* Tables (shared) */
.card .table {
    font-size: 0.875rem;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #1e293b;
}

.card thead,
.card .orders-like-thead {
    background: #f8fafc !important;
}

.card thead th,
.card .of-data-table thead th,
.of-page-table-wrap thead th,
.of-data-table thead th {
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: #f8fafc !important;
    padding: 12px 14px !important;
    white-space: nowrap;
    opacity: 1 !important;
    /* Kill cell box borders on header titles */
    border: 0 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

.card .table.table-row-dashed thead tr,
.card .table.table-row-dashed thead th,
.of-data-table.table-row-dashed thead th {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
    border-bottom-color: #e5e7eb !important;
}

.card tbody td {
    padding: 12px 14px !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #111827 !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.card tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}

.card tbody tr:hover {
    background-color: #f0f7ff !important;
}

.card tbody tr:hover > td {
    background-color: transparent !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--of-blue) !important;
    border-color: var(--of-blue) !important;
}

.btn-light-primary {
    background-color: var(--of-blue-soft) !important;
    color: var(--of-blue) !important;
    border: 1px solid #bfdbfe !important;
}

.btn-light-success {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

.form-control-solid,
.form-select-solid {
    background-color: #f8fafc !important;
    border: 1px solid var(--of-border) !important;
    border-radius: 10px !important;
}

.form-control-solid:focus,
.form-select-solid:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Pagination — shared across all modules */
.table-pagination,
.of-pagination {
    margin-top: 1rem;
    padding: 0.85rem 0.15rem 0.1rem;
    border-top: 1px solid #eef2f7;
}

.of-pagination-meta {
    min-width: 0;
}

.of-pagination-perpage {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.of-pagination-perpage-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.of-pagination-select {
    width: auto !important;
    min-width: 68px;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 1.75rem 0 0.65rem !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 32px !important;
}

.of-pagination-summary {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.of-pagination-summary .fw-semibold {
    color: #111827;
}

.of-pagination-pages {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.of-pagination-pages .page-item {
    margin: 0 !important;
}

.of-pagination-pages .page-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.55rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.of-pagination-pages .page-link:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

.of-pagination-pages .page-item.active .page-link {
    background: var(--of-blue) !important;
    border-color: var(--of-blue) !important;
    color: #fff !important;
    cursor: default;
}

.of-pagination-pages .page-item.disabled .page-link {
    background: #f9fafb !important;
    border-color: #eef2f7 !important;
    color: #c0c4cc !important;
    opacity: 1 !important;
    pointer-events: none;
}

.of-pagination-pages .of-page-ellipsis .page-link {
    min-width: 28px;
    border-color: transparent !important;
    background: transparent !important;
    color: #9ca3af !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
}

.of-pagination-pages .of-page-edge {
    font-size: 14px !important;
}

.of-pagination-mobile .of-pagination-pages .page-item.active .page-link {
    min-width: 64px;
}

/* Legacy fallback if old markup still present */
.table-pagination .pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid var(--of-border);
    color: #475569;
    min-width: 34px;
    text-align: center;
}

.table-pagination .pagination .page-item.active .page-link {
    background: var(--of-blue) !important;
    border-color: var(--of-blue) !important;
    color: #fff !important;
}

/* Status pill badges — keep class helpers; enums also set inline styles */
.status-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.status-pill--success {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

.status-pill--warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}

.status-pill--info {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border-color: #c4b5fd !important;
}

.status-pill--primary {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #93c5fd !important;
}

.status-pill--danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

.status-pill--orange {
    background: #ffedd5 !important;
    color: #9a3412 !important;
    border-color: #fdba74 !important;
}

.status-pill--muted {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.table td .status-pill,
.card td .status-pill {
    margin: 0 !important;
}

/* Footer */
#kt_app_footer .app-container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#kt_app_footer {
    border-top: 1px solid var(--of-border);
    background: transparent;
}

/* Shared module pages (Inventory / Moderators / Roles) */
.of-page-intro {
    margin: 0 0 0.65rem !important;
    padding: 0 !important;
}

/* Avoid double big title under header — keep only subtitle here */
.of-page-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.of-page-intro p {
    margin: 0 !important;
    padding: 0 !important;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
}

.of-page-card {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.of-page-toolbar {
    border-bottom: 0 !important;
}

.of-page-table-wrap .table-responsive,
.of-table-responsive {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    /* Must allow horizontal scroll — overflow:hidden was clipping wide tables */
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.of-page-table-wrap table.table,
.of-data-table {
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* Flat header bar — no per-cell box / vertical dividers */
.of-data-table > :not(caption) > * > *,
.of-page-table-wrap .table > :not(caption) > * > * {
    border-width: 0 !important;
    box-shadow: none !important;
}

.of-data-table.table-row-dashed > thead > tr,
.of-page-table-wrap .table.table-row-dashed > thead > tr {
    border: 0 !important;
    border-bottom: 0 !important;
}

.of-page-table-wrap thead th,
.of-data-table thead th {
    text-transform: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    background: #f8fafc !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

.of-page-table-wrap tbody td,
.of-data-table tbody td {
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: none !important;
}

/* Kill Metronic oversized row gutters */
.card .table.gy-5 > :not(caption) > * > *,
.card .table.gy-3 > :not(caption) > * > * {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.of-cell-strong {
    font-weight: 700;
    color: #111827;
}

.of-cell-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #4b5563;
}

.of-search-input {
    height: 42px;
    border-radius: 10px !important;
}

.of-create-btn {
    border-radius: 10px !important;
    padding: 0.55rem 0.9rem !important;
    font-weight: 600;
}

.of-export-btn {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.of-export-btn:hover {
    background: #15803d !important;
    border-color: #15803d !important;
    color: #fff !important;
}

.of-avatar-link {
    display: inline-flex;
}

.of-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    background: #eff6ff;
}

.of-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 14px;
}

.of-status-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* Module toolbars (Inventory etc.) */
.inventory-toolbar-item,
.moderator-toolbar-item,
.role-toolbar-item {
    min-height: 38px;
}

.inventory-toolbar-select {
    background-color: #f8fafc !important;
}

.inventory-toolbar .form-select.form-select-solid:focus {
    background-color: #f8fafc !important;
}

.card-header .form-control-solid,
.card-title .form-control-solid {
    border-radius: 10px !important;
}

.card-toolbar .btn-primary,
.card-toolbar .btn-sm.btn-primary {
    border-radius: 10px !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Create / edit form cards */
.card .form-label {
    font-weight: 600;
    color: #334155;
}

.card .fv-row .form-control,
.card .fv-row .form-select {
    border-radius: 10px;
}

/* Auth polish */
.login-form .form-control,
body.auth-page .form-control {
    border-radius: 10px;
}

.form.w-100 .btn-primary {
    border-radius: 10px;
    background-color: var(--of-blue) !important;
    border-color: var(--of-blue) !important;
}
