/* Plus Jakarta Sans - Local v12 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
}


html,
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.active-item {
    background-color: #ffffff !important;
}

.inactive-item {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #dbe3ec !important;
}

/* Modern, non-invasive presentation layer for the existing Laravel panel. */
:root {
    --panel-background: #f5f7fb;
    --panel-surface: #ffffff;
    --panel-border: #e5eaf1;
    --panel-text: #172033;
    --panel-muted: #667085;
    --panel-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html:not(.theme-dark) body {
    color: var(--panel-text);
    background: var(--panel-background);
}

html:not(.theme-dark) body > .flex.h-screen,
html:not(.theme-dark) main {
    background: var(--panel-background);
}

html:not(.theme-dark) header.z-10 {
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(229, 234, 241, 0.9);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

/* Modern sidebar: visual-only layer; routes and permission logic remain in Blade. */
.chaskiy-sidebar {
    position: relative;
    isolation: isolate;
    color: #fff;
    border-right: 1px solid rgba(147, 197, 253, 0.22);
    background:
        radial-gradient(circle at 12% 4%, rgba(64, 147, 255, 0.42), transparent 26%),
        radial-gradient(circle at 92% 88%, rgba(14, 165, 233, 0.2), transparent 32%),
        linear-gradient(165deg, #141f83 0%, #12369b 45%, #126ed8 100%);
    box-shadow: 12px 0 38px rgba(15, 35, 100, 0.18);
}

.chaskiy-sidebar::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.04), transparent 42%);
}

.chaskiy-sidebar__inner {
    min-height: 100%;
}

.chaskiy-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 1rem 1rem;
    color: #fff;
}

.chaskiy-sidebar__brand:hover {
    color: #fff;
}

.chaskiy-sidebar__logo-wrap {
    display: grid;
    flex: 0 0 auto;
    width: 4.15rem;
    height: 4.15rem;
    padding: 0.3rem;
    place-items: center;
    border: 1px solid rgba(147, 197, 253, 0.72);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(37, 99, 235, 0.22));
    box-shadow: 0 12px 24px rgba(2, 15, 72, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chaskiy-sidebar__logo {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
}

.chaskiy-sidebar__brand-copy {
    min-width: 0;
}

.chaskiy-sidebar__name {
    overflow: hidden;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chaskiy-sidebar__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-top: 0.25rem;
    color: rgba(219, 234, 254, 0.86);
    font-size: 0.68rem;
    font-weight: 600;
}

.chaskiy-sidebar__status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chaskiy-sidebar__status i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

.chaskiy-sidebar__divider {
    height: 1px;
    margin: 0 1rem 0.55rem;
    background: linear-gradient(90deg, transparent, rgba(191, 219, 254, 0.32), transparent);
}

.chaskiy-sidebar ul.mt-6 {
    margin-top: 0;
    padding: 0.2rem 0.7rem 1.5rem;
}

.chaskiy-menu-item {
    padding: 0.16rem 0;
}

.chaskiy-menu-link,
.chaskiy-menu-group__trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 2.9rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.48rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.78rem;
    color: rgba(239, 246, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
        box-shadow 160ms ease, transform 160ms ease;
}

.chaskiy-menu-link:hover,
.chaskiy-menu-group__trigger:hover {
    color: #fff;
    border-color: rgba(191, 219, 254, 0.14);
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(2px);
}

.chaskiy-menu-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #dbeafe;
    border: 1px solid rgba(191, 219, 254, 0.12);
    border-radius: 0.62rem;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.65), rgba(37, 99, 235, 0.25));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chaskiy-menu-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0 !important;
}

.chaskiy-menu-label {
    min-width: 0;
}

.chaskiy-menu-item.is-active .chaskiy-menu-link {
    color: #fff;
    border-color: rgba(147, 197, 253, 0.36);
    background: linear-gradient(100deg, #0796f6 0%, #3457f5 100%);
    box-shadow: 0 10px 24px rgba(6, 38, 148, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.chaskiy-menu-item.is-active .chaskiy-menu-link::before {
    position: absolute;
    top: 0.48rem;
    bottom: 0.48rem;
    left: -0.72rem;
    width: 0.22rem;
    content: "";
    border-radius: 999px;
    background: #67e8f9;
    box-shadow: 0 0 10px rgba(103, 232, 249, 0.7);
}

.chaskiy-menu-item.is-active .chaskiy-menu-icon {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
}

.chaskiy-menu-group {
    margin: 0.16rem 0;
}

.chaskiy-menu-group.is-active > .chaskiy-menu-group__trigger {
    color: #fff;
    border-color: rgba(147, 197, 253, 0.2);
    background: rgba(255, 255, 255, 0.09);
}

.chaskiy-menu-chevron {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: rgba(219, 234, 254, 0.8);
}

.chaskiy-menu-chevron svg {
    width: 1rem;
    height: 1rem;
}

.chaskiy-menu-submenu {
    margin: 0.2rem 0.15rem 0.45rem 1rem;
    padding: 0.24rem 0.22rem 0.24rem 0.48rem;
    overflow: hidden;
    border-left: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(4, 16, 83, 0.2);
}

.chaskiy-menu-submenu ul {
    padding: 0;
}

.chaskiy-menu-submenu .chaskiy-menu-link {
    min-height: 2.55rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.76rem;
}

.chaskiy-menu-submenu .chaskiy-menu-icon {
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 0.5rem;
}

.chaskiy-sidebar hr {
    margin: 0.6rem 0.35rem;
    border-color: rgba(147, 197, 253, 0.2);
}

.chaskiy-sidebar {
    scrollbar-color: rgba(147, 197, 253, 0.52) transparent;
}

.chaskiy-sidebar::-webkit-scrollbar-thumb {
    background: rgba(147, 197, 253, 0.52);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.chaskiy-sidebar--mobile {
    border-radius: 0 1.1rem 1.1rem 0;
    box-shadow: 18px 0 42px rgba(8, 24, 82, 0.32);
}

.chaskiy-sidebar__close {
    position: absolute;
    z-index: 3;
    top: 0.65rem;
    right: 0.65rem;
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(191, 219, 254, 0.3);
    border-radius: 0.7rem;
    background: rgba(4, 16, 83, 0.32);
    box-shadow: 0 8px 18px rgba(3, 15, 62, 0.2);
}

.chaskiy-baseview {
    padding-right: 0;
    padding-left: 0;
}

.chaskiy-table-toolbar__primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chaskiy-table-toolbar__secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.chaskiy-table-toolbar__secondary > div,
.chaskiy-table-toolbar__secondary select,
.chaskiy-table-toolbar__secondary button {
    max-width: 100%;
}

.chaskiy-table-toolbar__per-page {
    grid-column: 1 / -1;
}

html:not(.theme-dark) main .container.grid {
    width: 100%;
    max-width: 1600px;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
}

html:not(.theme-dark) main .align-middle.min-w-full {
    border: 1px solid var(--panel-border);
    border-radius: 0.9rem;
    box-shadow: var(--panel-shadow);
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

html:not(.theme-dark) main table {
    border-collapse: separate;
    border-spacing: 0;
}

html:not(.theme-dark) main table thead {
    background: #f8fafc;
}

html:not(.theme-dark) main table th {
    color: var(--panel-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

html:not(.theme-dark) main table tbody tr {
    background: var(--panel-surface);
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

html:not(.theme-dark) main table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

html:not(.theme-dark) main table tbody tr:hover {
    background: #f3f7ff;
}

html:not(.theme-dark) main table td {
    border-color: #edf0f4;
}

html:not(.theme-dark) main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html:not(.theme-dark) main select,
html:not(.theme-dark) main textarea {
    border-color: #d8dee8;
    border-radius: 0.7rem;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

html:not(.theme-dark) main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
html:not(.theme-dark) main select:focus,
html:not(.theme-dark) main textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

html:not(.theme-dark) main button,
html:not(.theme-dark) main a {
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease,
        box-shadow 150ms ease, transform 150ms ease;
}

html:not(.theme-dark) main button:active {
    transform: translateY(1px);
}

html:not(.theme-dark) main .rounded-lg.shadow,
html:not(.theme-dark) main .rounded-xl.shadow,
html:not(.theme-dark) main .rounded-lg.shadow-md,
html:not(.theme-dark) main .rounded-xl.shadow-md {
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #b8c2d1 transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: #b8c2d1;
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 767px) {
    .chaskiy-sidebar--mobile {
        width: min(15rem, calc(100vw - 3.5rem)) !important;
        max-width: calc(100vw - 3.5rem);
    }

    .chaskiy-sidebar--mobile .chaskiy-sidebar__close {
        display: inline-flex;
    }

    .chaskiy-sidebar--mobile .chaskiy-sidebar__brand {
        gap: 0.65rem;
        padding: 0.25rem 2.75rem 0.85rem 0.75rem;
    }

    .chaskiy-sidebar--mobile .chaskiy-sidebar__logo-wrap {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.85rem;
    }

    .chaskiy-sidebar--mobile .chaskiy-sidebar__logo {
        border-radius: 0.62rem;
    }

    .chaskiy-sidebar--mobile .chaskiy-sidebar__name {
        font-size: 1rem;
    }

    .chaskiy-sidebar--mobile .chaskiy-sidebar__meta {
        gap: 0.2rem 0.45rem;
        font-size: 0.58rem;
    }

    .chaskiy-sidebar--mobile ul.mt-6 {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .chaskiy-sidebar--mobile .chaskiy-menu-link,
    .chaskiy-sidebar--mobile .chaskiy-menu-group__trigger {
        min-height: 2.65rem;
        gap: 0.55rem;
        padding: 0.4rem 0.52rem;
        font-size: 0.76rem;
    }

    .chaskiy-sidebar--mobile .chaskiy-menu-icon {
        width: 1.78rem;
        height: 1.78rem;
    }

    .chaskiy-sidebar--mobile .chaskiy-menu-submenu {
        margin-left: 0.65rem;
        padding-left: 0.3rem;
    }

    html:not(.theme-dark) main .container.grid {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .chaskiy-table-toolbar button,
    .chaskiy-table-toolbar input,
    .chaskiy-table-toolbar select {
        min-height: 2.75rem;
    }

    html:not(.theme-dark) main .align-middle.min-w-full {
        border-radius: 0.75rem;
    }

    html:not(.theme-dark) main .vendor-table-responsive .align-middle.min-w-full > table {
        min-width: 68rem;
    }

    html:not(.theme-dark) main table th,
    html:not(.theme-dark) main table td {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}

@media (min-width: 640px) {
    .chaskiy-baseview {
        padding-right: 1rem;
        padding-left: 1rem;
    }

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

    .chaskiy-table-toolbar__secondary {
        display: flex;
        align-items: center;
    }

    .chaskiy-table-toolbar__per-page {
        grid-column: auto;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    html:not(.theme-dark) main .vendor-table-responsive .align-middle.min-w-full > table {
        min-width: 72rem;
    }
}

@media (min-width: 768px) {
    .chaskiy-table-toolbar__primary {
        display: flex;
        margin-bottom: 0;
    }
}
/* Compact global action menu used by table rows. */
.chaskiy-action-menu {
    display: inline-flex;
    position: relative;
}

.chaskiy-action-menu__trigger {
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.4rem;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    transition: transform 150ms ease, box-shadow 150ms ease;
    white-space: nowrap;
}

.chaskiy-action-menu__trigger:hover {
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.chaskiy-action-menu__backdrop {
    align-items: center;
    background: rgba(15, 23, 42, 0.56);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 9999;
}

.chaskiy-action-menu__panel {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    max-height: min(80vh, 42rem);
    max-width: 34rem;
    overflow-y: auto;
    padding: 1rem;
    width: min(92vw, 34rem);
}

.chaskiy-action-menu__header {
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.25rem 0.25rem 0.9rem;
}

.chaskiy-action-menu__header h3 {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.chaskiy-action-menu__header p {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0.2rem 0 0;
}

.chaskiy-action-menu__close {
    align-items: center;
    background: #f1f5f9;
    border: 0;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.chaskiy-action-menu__grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chaskiy-action-menu__grid > button,
.chaskiy-action-menu__grid > a,
.chaskiy-action-menu__grid > span,
.chaskiy-action-menu__grid > div {
    min-width: 0;
}

.chaskiy-action-menu__grid button[title],
.chaskiy-action-menu__grid a[title],
.chaskiy-action-menu__grid > a > button[title] {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: flex-start;
    min-height: 2.75rem;
    width: 100%;
}

.chaskiy-action-menu__grid button[title]::after,
.chaskiy-action-menu__grid a[title]::after,
.chaskiy-action-menu__grid > a > button[title]::after {
    content: attr(title);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .chaskiy-action-menu__trigger span {
        display: none;
    }

    .chaskiy-action-menu__grid {
        grid-template-columns: 1fr;
    }
}
