
/* LMK One UI Hotfix v3.68.1
   Self-contained UI layer - does not require Tailwind recompilation.
*/

:root {
    --lmk-primary: #4f46e5;
    --lmk-primary-2: #6366f1;
    --lmk-bg: #f6f7fb;
    --lmk-card: #ffffff;
    --lmk-border: #e5e7eb;
    --lmk-text: #111827;
    --lmk-muted: #6b7280;
    --lmk-success: #059669;
    --lmk-warning: #d97706;
    --lmk-danger: #dc2626;
    --lmk-info: #0284c7;
    --lmk-radius: 18px;
    --lmk-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}

html.dark {
    --lmk-bg: #0b1220;
    --lmk-card: #111827;
    --lmk-border: #263244;
    --lmk-text: #f9fafb;
    --lmk-muted: #9ca3af;
}

.lmk-app {
    color: var(--lmk-text);
}

.lmk-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--lmk-border);
    border-radius: var(--lmk-radius);
    background: var(--lmk-card);
    box-shadow: var(--lmk-shadow);
}

.lmk-page-header__eyebrow {
    margin-bottom: 5px;
    color: var(--lmk-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lmk-page-header h1 {
    margin: 0;
    color: var(--lmk-text);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 750;
}

.lmk-page-header p {
    margin: 7px 0 0;
    max-width: 760px;
    color: var(--lmk-muted);
    font-size: 14px;
    line-height: 1.6;
}

.lmk-page-header__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lmk-nav {
    margin-bottom: 24px;
}

.lmk-nav__bar {
    display: flex;
    gap: 5px;
    align-items: center;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid var(--lmk-border);
    border-radius: 16px;
    background: var(--lmk-card);
    box-shadow: 0 2px 10px rgba(15,23,42,.04);
}

.lmk-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 11px;
    color: var(--lmk-muted);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: .18s ease;
}

.lmk-nav__item:hover {
    background: #f3f4f6;
    color: var(--lmk-text);
}

html.dark .lmk-nav__item:hover {
    background: #1f2937;
}

.lmk-nav__item.is-active {
    background: var(--lmk-primary);
    color: #fff;
    box-shadow: 0 5px 14px rgba(79,70,229,.2);
}

.lmk-nav__separator {
    width: 1px;
    height: 25px;
    margin: 0 2px;
    background: var(--lmk-border);
}

.lmk-nav__site {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 8px;
    padding: 0 4px;
    color: var(--lmk-muted);
    font-size: 12px;
}

.lmk-grid {
    display: grid;
    gap: 16px;
}

.lmk-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lmk-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lmk-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lmk-stat {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    padding: 20px;
    border: 1px solid var(--lmk-border);
    border-radius: var(--lmk-radius);
    background: var(--lmk-card);
    box-shadow: var(--lmk-shadow);
}

.lmk-stat::after {
    content: "";
    position: absolute;
    right: -25px;
    top: -35px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(79,70,229,.06);
}

.lmk-stat__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.lmk-stat__label {
    color: var(--lmk-muted);
    font-size: 13px;
    font-weight: 650;
}

.lmk-stat__value {
    margin-top: 8px;
    color: var(--lmk-text);
    font-size: 31px;
    line-height: 1.05;
    font-weight: 780;
}

.lmk-stat__hint {
    margin-top: 8px;
    color: var(--lmk-muted);
    font-size: 12px;
}

.lmk-stat__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #eef2ff;
    color: var(--lmk-primary);
}

.lmk-stat--success .lmk-stat__icon { background:#ecfdf5; color:var(--lmk-success); }
.lmk-stat--warning .lmk-stat__icon { background:#fffbeb; color:var(--lmk-warning); }
.lmk-stat--danger .lmk-stat__icon { background:#fef2f2; color:var(--lmk-danger); }
.lmk-stat--info .lmk-stat__icon { background:#f0f9ff; color:var(--lmk-info); }

.lmk-section {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--lmk-border);
    border-radius: var(--lmk-radius);
    background: var(--lmk-card);
    box-shadow: var(--lmk-shadow);
}

.lmk-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--lmk-border);
}

.lmk-section__title {
    margin: 0;
    font-size: 16px;
    font-weight: 760;
}

.lmk-section__subtitle {
    margin-top: 4px;
    color: var(--lmk-muted);
    font-size: 13px;
}

.lmk-section__body {
    padding: 20px;
}

.lmk-action {
    display: block;
    min-height: 130px;
    padding: 18px;
    border: 1px solid var(--lmk-border);
    border-radius: 15px;
    background: var(--lmk-card);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lmk-action:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 12px 26px rgba(15,23,42,.08);
}

.lmk-action__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.lmk-action__title {
    font-size: 15px;
    font-weight: 760;
}

.lmk-action__desc {
    margin-top: 8px;
    color: var(--lmk-muted);
    font-size: 13px;
    line-height: 1.55;
}

.lmk-action__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--lmk-primary);
}

.lmk-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--lmk-primary);
    font-size: 11px;
    font-weight: 800;
}

.lmk-badge--success { background:#ecfdf5; color:#047857; }
.lmk-badge--warning { background:#fffbeb; color:#b45309; }
.lmk-badge--danger { background:#fef2f2; color:#b91c1c; }
.lmk-badge--neutral { background:#f3f4f6; color:#4b5563; }

.lmk-metric {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 120px;
    padding: 18px;
    border: 1px solid var(--lmk-border);
    border-radius: var(--lmk-radius);
    background: var(--lmk-card);
    box-shadow: var(--lmk-shadow);
}

.lmk-ring {
    --pct: 0;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--lmk-primary) calc(var(--pct) * 1%), #e5e7eb 0);
}

.lmk-ring__inner {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--lmk-card);
    color: var(--lmk-text);
    font-size: 16px;
    font-weight: 800;
}

.lmk-highlight {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #fde68a;
    border-radius: var(--lmk-radius);
    background: linear-gradient(135deg, #fffbeb, #fff);
    box-shadow: var(--lmk-shadow);
}

html.dark .lmk-highlight {
    background: linear-gradient(135deg, rgba(120,53,15,.22), var(--lmk-card));
}

.lmk-highlight--success {
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #ecfdf5, #fff);
}

.lmk-progress {
    margin-top: 16px;
}

.lmk-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lmk-progress__label {
    font-size: 13px;
    font-weight: 700;
}

.lmk-progress__hint {
    margin-top: 2px;
    color: var(--lmk-muted);
    font-size: 11px;
}

.lmk-progress__value {
    font-size: 13px;
    font-weight: 800;
}

.lmk-progress__track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

html.dark .lmk-progress__track {
    background: #253041;
}

.lmk-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lmk-primary), var(--lmk-primary-2));
}

.lmk-progress__bar--success {
    background: linear-gradient(90deg, #10b981, #059669);
}

.lmk-progress__bar--warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.lmk-progress__bar--info {
    background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.lmk-timeline__item {
    position: relative;
    display: flex;
    gap: 13px;
    padding-bottom: 19px;
}

.lmk-timeline__dot {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--lmk-primary);
}

.lmk-timeline__content {
    min-width: 0;
    flex: 1;
}

.lmk-timeline__title {
    font-size: 13px;
    font-weight: 750;
}

.lmk-timeline__desc,
.lmk-timeline__time {
    margin-top: 3px;
    color: var(--lmk-muted);
    font-size: 11px;
}

.lmk-empty {
    padding: 36px 20px;
    border: 1px dashed #d1d5db;
    border-radius: 15px;
    background: #f9fafb;
    text-align: center;
}

html.dark .lmk-empty {
    background: #111827;
    border-color: #374151;
}

.lmk-empty__title {
    font-weight: 750;
}

.lmk-empty__desc {
    margin-top: 6px;
    color: var(--lmk-muted);
    font-size: 13px;
}

@media (max-width: 1150px) {
    .lmk-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lmk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .lmk-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .lmk-grid--2,
    .lmk-grid--3,
    .lmk-grid--4 {
        grid-template-columns: 1fr;
    }

    .lmk-nav__site {
        flex-direction: column;
        gap: 2px;
    }
}



/* =========================================================
   LMK One UI Retrofit v3.68.2
   Utility shim for existing LMK One Blade views.
   No Tailwind rebuild required.
   ========================================================= */

.grid { display: grid !important; }
.flex { display: flex !important; }
.block { display: block !important; }
.inline-flex { display: inline-flex !important; }
.hidden { display: none !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }

.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-col { flex-direction: column !important; }

.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: .75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }

.space-y-3 > * + * { margin-top: .75rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-5 > * + * { margin-top: 1.25rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }

.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: .75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.25rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }

.p-2 { padding: .5rem !important; }
.p-3 { padding: .75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: .75rem !important; padding-right: .75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }

.w-full { width: 100% !important; }
.min-w-0 { min-width: 0 !important; }
.overflow-x-auto { overflow-x: auto !important; }

.rounded-xl { border-radius: 12px !important; }
.rounded-2xl { border-radius: 16px !important; }
.rounded-full { border-radius: 9999px !important; }

.border { border: 1px solid var(--lmk-border) !important; }
.border-b { border-bottom: 1px solid var(--lmk-border) !important; }

.bg-white { background: var(--lmk-card) !important; }
.bg-gray-50 { background: #f9fafb !important; }
.bg-gray-100 { background: #f3f4f6 !important; }

.shadow-sm { box-shadow: 0 2px 10px rgba(15,23,42,.04) !important; }
.shadow-md { box-shadow: 0 12px 26px rgba(15,23,42,.08) !important; }

.text-xs { font-size: 12px !important; }
.text-sm { font-size: 14px !important; }
.text-base { font-size: 16px !important; }
.text-lg { font-size: 18px !important; }
.text-xl { font-size: 20px !important; }
.text-2xl { font-size: 24px !important; }
.text-3xl { font-size: 30px !important; }

.font-medium { font-weight: 600 !important; }
.font-semibold { font-weight: 700 !important; }
.uppercase { text-transform: uppercase !important; }

.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: var(--lmk-muted) !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-950 { color: var(--lmk-text) !important; }

.bg-emerald-50 { background: #ecfdf5 !important; }
.bg-amber-50 { background: #fffbeb !important; }
.bg-rose-50 { background: #fef2f2 !important; }
.bg-sky-50 { background: #f0f9ff !important; }
.bg-primary-50\/50 { background: rgba(238,242,255,.7) !important; }

.text-emerald-700 { color: #047857 !important; }
.text-amber-900 { color: #78350f !important; }
.text-rose-700 { color: #be123c !important; }

.border-amber-200 { border-color: #fde68a !important; }
.border-primary-200 { border-color: #c7d2fe !important; }

.transition { transition: .18s ease !important; }

.hover\:shadow-md:hover { box-shadow: 0 12px 26px rgba(15,23,42,.08) !important; }
.hover\:border-primary-300:hover { border-color: #a5b4fc !important; }

.lmk-ui-scope {
    color: var(--lmk-text);
}

.lmk-ui-scope select,
.lmk-ui-scope input:not([type="checkbox"]):not([type="radio"]),
.lmk-ui-scope textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--lmk-border);
    border-radius: 12px;
    background: var(--lmk-card);
    color: var(--lmk-text);
    outline: none;
}

.lmk-ui-scope input:focus,
.lmk-ui-scope select:focus,
.lmk-ui-scope textarea:focus {
    border-color: var(--lmk-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.lmk-ui-scope table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    border: 1px solid var(--lmk-border);
    border-radius: 15px;
    background: var(--lmk-card);
}

.lmk-ui-scope table th {
    padding: 12px 14px;
    background: #f8fafc;
    color: var(--lmk-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid var(--lmk-border);
}

.lmk-ui-scope table td {
    padding: 14px;
    border-bottom: 1px solid var(--lmk-border);
    vertical-align: middle;
}

.lmk-ui-scope table tr:last-child td {
    border-bottom: 0;
}

.lmk-ui-scope table tbody tr:hover {
    background: #fafafa;
}

.lmk-ui-scope label {
    display: block;
}

.lmk-ui-scope label > span:first-child {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--lmk-text);
    font-size: 13px;
    font-weight: 650;
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sm\:flex-row { flex-direction: row !important; }
    .sm\:items-center { align-items: center !important; }
    .sm\:justify-between { justify-content: space-between !important; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:flex-row { flex-direction: row !important; }
    .lg\:items-center { align-items: center !important; }
    .lg\:justify-between { justify-content: space-between !important; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .xl\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .xl\:grid-cols-\[2fr_1fr\] { grid-template-columns: 2fr 1fr !important; }
}


/* =========================================================
   LMK One — Global Filament UI v3.70
   Applies to the entire Filament admin panel.
   ========================================================= */

/* App canvas */
.fi-body {
    background:
        radial-gradient(circle at 8% 0%, rgba(79,70,229,.045), transparent 28rem),
        #f7f8fc;
}

.dark .fi-body {
    background:
        radial-gradient(circle at 8% 0%, rgba(99,102,241,.08), transparent 28rem),
        #0b1120;
}

/* Main content */
.fi-main {
    max-width: 1540px;
}

.fi-main-ctn {
    padding-top: 1rem;
}

/* Sidebar */
.fi-sidebar {
    border-right: 1px solid var(--lmk-border, #e5e7eb);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
}

.dark .fi-sidebar {
    background: rgba(17,24,39,.97);
}

.fi-sidebar-header {
    border-bottom: 1px solid var(--lmk-border, #e5e7eb);
    box-shadow: none !important;
}

.fi-sidebar-nav {
    padding: .9rem .75rem 1.25rem;
}

.fi-sidebar-group-label {
    margin: .8rem .7rem .35rem;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fi-sidebar-item-button {
    min-height: 42px;
    margin: 2px 0;
    padding: 9px 11px !important;
    border-radius: 11px !important;
    font-weight: 620;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.fi-sidebar-item-button:hover {
    background: #f3f4f6 !important;
    transform: translateX(2px);
}

.dark .fi-sidebar-item-button:hover {
    background: #1f2937 !important;
}

.fi-sidebar-item-active > .fi-sidebar-item-button,
.fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background: #eef2ff !important;
    color: #4338ca !important;
}

.dark .fi-sidebar-item-active > .fi-sidebar-item-button,
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background: rgba(79,70,229,.18) !important;
    color: #c7d2fe !important;
}

/* Topbar */
.fi-topbar nav {
    min-height: 62px;
    border-bottom: 1px solid var(--lmk-border, #e5e7eb);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
    box-shadow: none !important;
}

.dark .fi-topbar nav {
    background: rgba(17,24,39,.9);
}

/* Headers */
.fi-header {
    margin-bottom: 1.35rem;
}

.fi-header-heading {
    color: var(--lmk-text, #111827);
    font-size: 1.55rem !important;
    font-weight: 780 !important;
    letter-spacing: -.025em;
}

.fi-header-subheading {
    margin-top: .4rem;
    color: var(--lmk-muted, #6b7280);
    line-height: 1.55;
}

/* Sections */
.fi-section {
    overflow: hidden;
    border: 1px solid var(--lmk-border, #e5e7eb) !important;
    border-radius: 17px !important;
    background: var(--lmk-card, #fff) !important;
    box-shadow: 0 4px 18px rgba(15,23,42,.045) !important;
}

.fi-section-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid #f0f1f4;
}

.dark .fi-section-header {
    border-color: #263244;
}

.fi-section-content-ctn {
    padding: 0 !important;
}

.fi-section-content {
    padding: 20px !important;
}

.fi-section-header-heading {
    font-size: 15px !important;
    font-weight: 750 !important;
}

/* Forms */
.fi-fo-field-wrp {
    gap: 6px !important;
}

.fi-fo-field-wrp-label label,
.fi-fo-field-wrp-label {
    color: var(--lmk-text, #111827);
    font-size: 13px !important;
    font-weight: 650 !important;
}

.fi-input-wrp {
    min-height: 42px;
    border: 1px solid var(--lmk-border, #d1d5db) !important;
    border-radius: 11px !important;
    background: var(--lmk-card, #fff) !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.fi-input-wrp:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.11) !important;
}

.fi-input {
    padding-top: .62rem !important;
    padding-bottom: .62rem !important;
}

.fi-select-input {
    min-height: 42px;
}

.fi-fo-textarea textarea {
    min-height: 116px;
}

/* Buttons */
.fi-btn {
    min-height: 38px;
    border-radius: 10px !important;
    font-weight: 680 !important;
    letter-spacing: -.005em;
    box-shadow: none !important;
    transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease !important;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

.fi-btn-color-primary {
    box-shadow: 0 5px 13px rgba(79,70,229,.17) !important;
}

/* Tables */
.fi-ta {
    overflow: hidden;
    border: 1px solid var(--lmk-border, #e5e7eb) !important;
    border-radius: 17px !important;
    background: var(--lmk-card, #fff) !important;
    box-shadow: 0 4px 18px rgba(15,23,42,.045) !important;
}

.fi-ta-header {
    min-height: 62px;
    padding: 14px 17px !important;
    border-bottom: 1px solid var(--lmk-border, #e5e7eb);
    background: #fbfbfc;
}

.dark .fi-ta-header {
    background: #151d2b;
}

.fi-ta-header-heading {
    font-size: 15px !important;
    font-weight: 750 !important;
}

.fi-ta-table thead tr {
    background: #f8fafc;
}

.dark .fi-ta-table thead tr {
    background: #151d2b;
}

.fi-ta-header-cell {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

.fi-ta-header-cell-label {
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 760 !important;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.fi-ta-row {
    transition: background-color .14s ease;
}

.fi-ta-row:hover {
    background: #fafbff !important;
}

.dark .fi-ta-row:hover {
    background: rgba(31,41,55,.55) !important;
}

.fi-ta-cell {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}

/* Badges */
.fi-badge {
    border-radius: 999px !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
    font-weight: 760 !important;
}

/* Tabs */
.fi-tabs {
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--lmk-border, #e5e7eb);
    border-radius: 13px;
    background: #f8fafc;
}

.dark .fi-tabs {
    background: #111827;
}

.fi-tabs-item {
    border-radius: 9px !important;
    font-weight: 620 !important;
}

.fi-tabs-item-active {
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(15,23,42,.06);
}

.dark .fi-tabs-item-active {
    background: #1f2937 !important;
}

/* Modals */
.fi-modal-window {
    overflow: hidden;
    border: 1px solid var(--lmk-border, #e5e7eb);
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(15,23,42,.2) !important;
}

.fi-modal-header {
    border-bottom: 1px solid var(--lmk-border, #e5e7eb);
}

/* Notifications */
.fi-no-notification {
    border-radius: 15px !important;
    box-shadow: 0 14px 40px rgba(15,23,42,.13) !important;
}

/* Pagination */
.fi-pagination {
    padding: 12px 15px;
}

.fi-pagination-item-button {
    border-radius: 9px !important;
}

/* Breadcrumbs */
.fi-breadcrumbs {
    margin-bottom: .55rem;
}

.fi-breadcrumbs-item-label {
    color: #6b7280 !important;
    font-size: 12px !important;
}

/* Empty states */
.fi-ta-empty-state {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.fi-ta-empty-state-icon-ctn {
    border-radius: 16px !important;
    background: #f3f4f6 !important;
}

/* Widgets */
.fi-wi-stats-overview-stat {
    border: 1px solid var(--lmk-border, #e5e7eb) !important;
    border-radius: 17px !important;
    box-shadow: 0 4px 18px rgba(15,23,42,.045) !important;
}

/* Better content spacing */
.fi-sc {
    gap: 1rem !important;
}

.fi-fo-component-ctn {
    gap: 1rem !important;
}

/* Mobile */
@media (max-width: 768px) {
    .fi-main-ctn {
        padding-top: .5rem;
    }

    .fi-header-heading {
        font-size: 1.35rem !important;
    }

    .fi-section-content {
        padding: 16px !important;
    }

    .fi-ta-cell {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}



/* =========================================================
   LMK One — Legacy Active Views Retrofit v3.72
   Safe wrapper styling for remaining legacy Filament pages.
   ========================================================= */

.lmk-legacy-page {
    color: var(--lmk-text, #111827);
}

.lmk-legacy-page > h1,
.lmk-legacy-page > h2,
.lmk-legacy-page > h3 {
    margin: 0 0 1rem;
    color: var(--lmk-text, #111827);
    font-weight: 780;
    letter-spacing: -.02em;
}

.lmk-legacy-page > h1 { font-size: 1.7rem; }
.lmk-legacy-page > h2 { font-size: 1.35rem; }
.lmk-legacy-page > h3 { font-size: 1.1rem; }

.lmk-legacy-page > p:first-of-type {
    margin-top: -.4rem;
    margin-bottom: 1.25rem;
    color: var(--lmk-muted, #6b7280);
    line-height: 1.6;
}

.lmk-legacy-page .card,
.lmk-legacy-page .panel,
.lmk-legacy-page .box,
.lmk-legacy-page .metric,
.lmk-legacy-page .stat,
.lmk-legacy-page [class*="rounded"],
.lmk-legacy-page [class*="border"] {
    border-color: var(--lmk-border, #e5e7eb);
}

.lmk-legacy-page table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--lmk-border, #e5e7eb);
    border-radius: 16px;
    border-spacing: 0;
    border-collapse: separate;
    background: var(--lmk-card, #fff);
    box-shadow: 0 4px 18px rgba(15,23,42,.045);
}

.lmk-legacy-page table thead tr {
    background: #f8fafc;
}

.dark .lmk-legacy-page table thead tr {
    background: #151d2b;
}

.lmk-legacy-page table th {
    padding: 12px 14px;
    color: var(--lmk-muted, #6b7280);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid var(--lmk-border, #e5e7eb);
}

.lmk-legacy-page table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--lmk-border, #e5e7eb);
    vertical-align: middle;
}

.lmk-legacy-page table tr:last-child td {
    border-bottom: 0;
}

.lmk-legacy-page table tbody tr {
    transition: background-color .14s ease;
}

.lmk-legacy-page table tbody tr:hover {
    background: #fafbff;
}

.dark .lmk-legacy-page table tbody tr:hover {
    background: rgba(31,41,55,.55);
}

.lmk-legacy-page input:not([type="checkbox"]):not([type="radio"]),
.lmk-legacy-page select,
.lmk-legacy-page textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--lmk-text, #111827);
    border: 1px solid var(--lmk-border, #d1d5db);
    border-radius: 11px;
    background: var(--lmk-card, #fff);
    outline: none;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lmk-legacy-page textarea {
    min-height: 112px;
}

.lmk-legacy-page input:focus,
.lmk-legacy-page select:focus,
.lmk-legacy-page textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.11);
}

.lmk-legacy-page label {
    color: var(--lmk-text, #111827);
    font-size: 13px;
    font-weight: 650;
}

.lmk-legacy-page button,
.lmk-legacy-page .button,
.lmk-legacy-page a.btn {
    min-height: 38px;
    border-radius: 10px;
    font-weight: 680;
}

.lmk-legacy-page pre,
.lmk-legacy-page code.block,
.lmk-legacy-page .code-block {
    overflow-x: auto;
    padding: 14px 16px;
    border: 1px solid var(--lmk-border, #e5e7eb);
    border-radius: 13px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.55;
}

.lmk-legacy-page details {
    margin: .75rem 0;
    overflow: hidden;
    border: 1px solid var(--lmk-border, #e5e7eb);
    border-radius: 13px;
    background: var(--lmk-card, #fff);
}

.lmk-legacy-page details summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
}

.lmk-legacy-page details > :not(summary) {
    padding: 0 14px 14px;
}

.lmk-legacy-page hr {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid var(--lmk-border, #e5e7eb);
}

.lmk-legacy-page .alert,
.lmk-legacy-page [role="alert"] {
    padding: 13px 15px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #78350f;
}

.dark .lmk-legacy-page .alert,
.dark .lmk-legacy-page [role="alert"] {
    background: rgba(120,53,15,.22);
    color: #fde68a;
}

.lmk-legacy-page .badge,
.lmk-legacy-page [class*="badge"] {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 760;
}

.lmk-legacy-page .progress,
.lmk-legacy-page progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
}

.lmk-legacy-page progress::-webkit-progress-bar {
    background: #e5e7eb;
    border-radius: 999px;
}

.lmk-legacy-page progress::-webkit-progress-value {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    border-radius: 999px;
}

.lmk-legacy-page .grid {
    gap: 1rem;
}

@media (max-width: 768px) {
    .lmk-legacy-page table {
        font-size: 13px;
    }

    .lmk-legacy-page table th,
    .lmk-legacy-page table td {
        padding: 10px;
    }
}


/* =========================================================
   LMK One — Role Aware Navigation v3.77
   ========================================================= */

.lmk-role-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: visible;
    padding: 8px;
    border: 1px solid var(--lmk-border);
    border-radius: 16px;
    background: var(--lmk-card);
    box-shadow: 0 2px 10px rgba(15,23,42,.04);
}

.lmk-role-nav__main {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
}

.lmk-role-nav__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.lmk-site-switcher {
    min-width: 160px;
    max-width: 230px;
    height: 38px;
    padding: 0 32px 0 11px;
    border: 1px solid var(--lmk-border);
    border-radius: 10px;
    background: var(--lmk-card);
    color: var(--lmk-text);
    font-size: 12px;
    font-weight: 650;
    outline: none;
}

.lmk-site-switcher:focus {
    border-color: var(--lmk-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.10);
}

.lmk-admin-switcher {
    position: relative;
}

.lmk-admin-switcher > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 11px;
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--lmk-border);
    border-radius: 10px;
    color: var(--lmk-muted);
    background: var(--lmk-card);
    font-size: 12px;
    font-weight: 700;
}

.lmk-admin-switcher > summary::-webkit-details-marker {
    display: none;
}

.lmk-admin-switcher[open] > summary {
    color: var(--lmk-primary);
    border-color: #c7d2fe;
    background: #eef2ff;
}

.dark .lmk-admin-switcher[open] > summary {
    background: rgba(79,70,229,.16);
}

.lmk-admin-switcher__menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 7px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--lmk-border);
    border-radius: 12px;
    background: var(--lmk-card);
    box-shadow: 0 16px 40px rgba(15,23,42,.14);
}

.lmk-admin-switcher__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--lmk-text);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.lmk-admin-switcher__menu a:hover {
    background: #f3f4f6;
}

.dark .lmk-admin-switcher__menu a:hover {
    background: #1f2937;
}

/* Quick launcher */
.lmk-launcher {
    position: fixed;
    z-index: 90;
    right: 24px;
    bottom: 24px;
}

.lmk-launcher__button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--lmk-primary), var(--lmk-primary-2));
    box-shadow: 0 12px 30px rgba(79,70,229,.28);
}

.lmk-launcher__menu {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: 250px;
    padding: 8px;
    border: 1px solid var(--lmk-border);
    border-radius: 15px;
    background: var(--lmk-card);
    box-shadow: 0 18px 50px rgba(15,23,42,.16);
}

.lmk-launcher__menu[hidden] {
    display: none;
}

.lmk-launcher__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: var(--lmk-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.lmk-launcher__menu a:hover {
    background: #f3f4f6;
}

.dark .lmk-launcher__menu a:hover {
    background: #1f2937;
}

@media (max-width: 900px) {
    .lmk-role-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .lmk-role-nav__tools {
        justify-content: space-between;
    }

    .lmk-site-switcher {
        flex: 1;
        max-width: none;
    }
}
