:root {
    --neko-navy: #061B3A;
    --neko-navy-2: #082B5C;
    --neko-blue: #006DFF;
    --neko-blue-2: #0057D8;
    --neko-cyan: #00C8F8;
    --neko-sky: #EAF6FF;
    --bg-app: #F7FAFF;
    --bg-card: #FFFFFF;
    --bg-sidebar: linear-gradient(180deg, #061B3A 0%, #03142C 100%);
    --text-main: #0F1B33;
    --text-muted: #6B7890;
    --text-soft: #94A3B8;
    --success: #13B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #2563EB;
    --purple: #7C3AED;
    --border-soft: #E6EEF8;
    --shadow-card: 0 12px 30px rgba(15, 35, 70, 0.06);
    --shadow-hover: 0 18px 40px rgba(0, 109, 255, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --sidebar-w: 280px;
}

[data-theme="dark"] {
    --bg-app: #071528;
    --bg-card: #0D1F38;
    --text-main: #EAF6FF;
    --text-muted: #B7C4D8;
    --border-soft: rgba(255,255,255,.11);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.neko-app {
    background: var(--bg-app);
    color: var(--text-main);
    font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    margin: 0;
    min-height: 100vh;
}

body.neko-app a {
    color: inherit;
    text-decoration: none;
}

.neko-shell {
    background:
        radial-gradient(circle at 68% -15%, rgba(0, 200, 248, .14), transparent 32%),
        linear-gradient(180deg, #FFFFFF 0%, var(--bg-app) 32%);
    min-height: 100vh;
}

.neko-sidebar {
    background: var(--bg-sidebar);
    bottom: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow: hidden;
    padding: 28px 18px 24px;
    position: fixed;
    top: 0;
    width: var(--sidebar-w);
    z-index: 10;
}

.neko-sidebar::before {
    background: radial-gradient(circle, rgba(0, 200, 248, .22), transparent 58%);
    content: "";
    height: 260px;
    left: -80px;
    position: absolute;
    top: -90px;
    width: 260px;
}

.neko-brand {
    align-items: center;
    display: flex;
    min-height: 92px;
    padding: 4px 14px 26px;
    position: relative;
    z-index: 1;
}

.neko-brand img {
    display: block;
    height: auto;
    max-height: 82px;
    max-width: 190px;
    object-fit: contain;
}

.neko-nav {
    display: grid;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.neko-nav__item {
    align-items: center;
    border-radius: 14px;
    color: rgba(255,255,255,.88);
    display: flex;
    font-weight: 650;
    gap: 14px;
    min-height: 48px;
    padding: 13px 18px;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.neko-nav__item:hover {
    background: rgba(255,255,255,.08);
}

.neko-nav__item--active {
    background: linear-gradient(135deg, #008BFF 0%, #006DFF 100%);
    box-shadow: 0 12px 28px rgba(0, 109, 255, .32);
    color: #fff;
}

.neko-icon {
    flex: 0 0 auto;
    height: 22px;
    width: 22px;
}

.neko-sidebar__art {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    min-height: 130px;
    opacity: .18;
    padding: 24px 0;
}

.neko-sidebar__art img {
    filter: drop-shadow(0 18px 34px rgba(0, 200, 248, .28));
    max-height: 180px;
    max-width: 190px;
    object-fit: contain;
}

.neko-store-switch {
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    padding: 14px;
    position: relative;
    z-index: 1;
}

.neko-store-switch span {
    display: grid;
    flex: 1;
    gap: 3px;
}

.neko-store-switch small {
    color: rgba(255,255,255,.72);
}

.neko-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    padding: 0 32px 42px;
}

.neko-header {
    align-items: center;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    gap: 24px;
    height: 76px;
    justify-content: space-between;
    margin: 0 -32px 20px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 8;
}

.neko-header__left {
    align-items: center;
    display: flex;
    gap: 16px;
}

.neko-icon-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 35, 70, .04);
    color: var(--neko-navy);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    position: relative;
    width: 44px;
}

.neko-has-badge span {
    background: var(--neko-blue);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    min-width: 18px;
    position: absolute;
    right: -4px;
    text-align: center;
    top: -6px;
}

.neko-global-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 35, 70, .04);
    color: var(--text-soft);
    display: flex;
    gap: 10px;
    height: 48px;
    max-width: min(520px, 48vw);
    padding: 0 12px 0 16px;
    width: 520px;
}

.neko-global-search input {
    border: 0;
    color: var(--text-main);
    flex: 1;
    font: inherit;
    min-width: 0;
    outline: none;
}

.neko-global-search kbd {
    background: #F8FAFC;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 12px;
    padding: 5px 8px;
}

.neko-user {
    align-items: center;
    display: flex;
    gap: 12px;
}

.neko-user__avatar {
    background: var(--neko-sky);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    height: 48px;
    object-fit: contain;
    padding: 5px;
    width: 48px;
}

.neko-user__meta {
    display: grid;
    gap: 2px;
    min-width: 120px;
}

.neko-user__meta strong {
    font-weight: 800;
}

.neko-user__meta small {
    color: var(--text-muted);
}

.neko-logout button,
.neko-button,
.neko-form button[type="submit"],
.neko-toolbar button,
button.neko-button,
a.neko-button {
    align-items: center;
    background: linear-gradient(135deg, #008BFF 0%, #006DFF 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0, 109, 255, .18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 750;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
}

.neko-logout button {
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: none;
    color: var(--text-main);
}

.neko-button:hover,
.neko-form button[type="submit"]:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.neko-button[disabled],
button[disabled] {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.neko-button--wide {
    font-size: 18px;
    min-height: 62px;
    width: 100%;
}

.neko-link,
.neko-link-button {
    background: transparent;
    border: 0;
    color: var(--neko-blue);
    cursor: pointer;
    font-weight: 700;
}

.neko-page-title {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.neko-kicker {
    color: var(--text-muted);
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 5px;
}

h1,
h2,
h3 {
    color: var(--text-main);
    letter-spacing: 0;
    margin: 0;
}

h1 {
    font-size: 28px;
    font-weight: 800;
}

h2 {
    font-size: 18px;
    font-weight: 800;
}

h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 18px 0 10px;
}

p {
    color: var(--text-muted);
}

.neko-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.neko-grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

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

.neko-card,
.neko-panel,
.neko-ticket {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.neko-card {
    display: grid;
    gap: 8px;
    min-height: 108px;
    padding: 20px;
    transition: box-shadow .18s ease, transform .18s ease;
}

.neko-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.neko-card span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 650;
}

.neko-card strong {
    color: var(--text-main);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 850;
}

.neko-card small {
    color: var(--text-muted);
    font-weight: 550;
}

.neko-card:nth-child(5n+1)::before,
.neko-card:nth-child(5n+2)::before,
.neko-card:nth-child(5n+3)::before,
.neko-card:nth-child(5n+4)::before,
.neko-card:nth-child(5n+5)::before {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    font-size: 20px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.neko-card:nth-child(5n+1)::before { background: #EAF6FF; color: var(--neko-blue); content: "▣"; }
.neko-card:nth-child(5n+2)::before { background: #EEF2FF; color: var(--purple); content: "◈"; }
.neko-card:nth-child(5n+3)::before { background: #FFF7ED; color: var(--warning); content: "△"; }
.neko-card:nth-child(5n+4)::before { background: #ECFDF5; color: var(--success); content: "◌"; }
.neko-card:nth-child(5n+5)::before { background: #EFF6FF; color: var(--info); content: "⌁"; }

.neko-panel {
    margin-bottom: 18px;
    padding: 20px;
}

.neko-panel__header {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.neko-dashboard {
    display: grid;
    gap: 18px;
}

.neko-dashboard .neko-grid:first-child {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.neko-dashboard .neko-panel:nth-of-type(1) {
    min-height: 260px;
    position: relative;
}

.neko-dashboard .neko-panel:nth-of-type(1)::after {
    background:
        linear-gradient(180deg, rgba(0,109,255,.10), rgba(0,109,255,0)),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 700 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 130 C70 60 110 150 180 78 S290 122 350 62 S470 112 540 54 S630 88 700 38' fill='none' stroke='%23006DFF' stroke-width='5'/%3E%3Cpath d='M0 155 C80 100 115 170 180 118 S295 148 355 98 S470 145 540 92 S640 130 700 82' fill='none' stroke='%2393C5FD' stroke-width='4' stroke-dasharray='9 10'/%3E%3C/svg%3E") center / contain no-repeat;
    border-radius: 18px;
    bottom: 20px;
    content: "";
    left: 20px;
    position: absolute;
    right: 20px;
    top: 72px;
}

.neko-dashboard-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr) minmax(300px, .8fr);
}

.neko-dashboard-bottom {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr 1.1fr;
}

.neko-executive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.82fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.neko-chart-panel {
    min-height: 330px;
}

.neko-line-chart {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    height: 250px;
    overflow: hidden;
    padding: 18px;
}

.neko-line-chart svg {
    height: 100%;
    width: 100%;
}

.neko-donut {
    align-items: center;
    background: conic-gradient(var(--neko-blue) 0 38%, #60A5FA 38% 60%, #22C1E8 60% 76%, #8B5CF6 76% 88%, #F59E0B 88% 95%, #CBD5E1 95% 100%);
    border-radius: 50%;
    display: grid;
    height: 190px;
    justify-items: center;
    margin: 16px auto;
    position: relative;
    width: 190px;
}

.neko-donut::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    inset: 48px;
    position: absolute;
}

.neko-donut span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    position: relative;
    text-align: center;
    z-index: 1;
}

.neko-donut strong {
    color: var(--text-main);
    font-size: 20px;
}

.neko-list,
.neko-ranked-list,
.neko-activity,
.neko-finance {
    display: grid;
    gap: 12px;
}

.neko-list p,
.neko-ranked-list p,
.neko-activity p,
.neko-finance p {
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0;
    padding: 10px 0;
}

.neko-list b,
.neko-ranked-list b,
.neko-activity b {
    color: var(--text-main);
}

.neko-ranked-list span {
    align-items: center;
    background: #FDE68A;
    border-radius: 50%;
    color: #92400E;
    display: inline-flex;
    font-weight: 850;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.neko-ranked-list strong,
.neko-finance strong {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 850;
}

.neko-activity span {
    align-items: center;
    background: var(--neko-sky);
    border-radius: 14px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.neko-activity small {
    color: var(--text-muted);
    margin-left: auto;
}

.neko-button--ghost {
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: none;
    color: var(--text-main);
}

.neko-table {
    border-collapse: separate;
    border-spacing: 0;
    color: #22314D;
    overflow: hidden;
    width: 100%;
}

.neko-table-wrap {
    overflow-x: auto;
}

.neko-table th {
    background: #F8FAFC;
    color: #52617A;
    font-size: 12px;
    font-weight: 800;
    padding: 14px 16px;
    text-align: left;
}

.neko-table td {
    border-top: 1px solid var(--border-soft);
    padding: 16px;
    vertical-align: middle;
}

.neko-table tr {
    min-height: 64px;
}

.neko-table tr:hover td {
    background: #FBFDFF;
}

.neko-badge {
    background: #EAF6FF;
    border: 1px solid rgba(0,109,255,.14);
    border-radius: 999px;
    color: var(--neko-blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.neko-badge--success,
.neko-badge[data-status="active"] {
    background: #ECFDF5;
    border-color: #BBF7D0;
    color: #047857;
}

.neko-badge--warning {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: #C2410C;
}

.neko-badge--danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.neko-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.neko-actions a,
.neko-actions button,
.neko-link-button {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--neko-navy);
    min-height: 36px;
    padding: 0 12px;
}

.neko-muted {
    color: var(--text-muted);
}

.neko-alert {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 16px;
    color: #9A3412;
    margin-bottom: 16px;
    padding: 14px 16px;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: var(--text-main);
    font: inherit;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

input,
select {
    height: 46px;
    padding: 0 14px;
}

textarea {
    min-height: 120px;
    padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0,109,255,.55);
    box-shadow: 0 0 0 4px rgba(0,109,255,.10);
}

.neko-form,
.neko-form-grid {
    display: grid;
    gap: 16px;
}

.neko-form label,
.neko-form-grid label {
    color: var(--text-muted);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
}

.neko-toolbar,
.neko-filters,
.neko-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.neko-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin: 16px 0 20px;
}

.neko-filters input,
.neko-filters select,
.neko-toolbar input {
    min-width: 0;
}

.neko-two-col {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.neko-login {
    align-items: center;
    background:
        radial-gradient(circle at 20% 18%, rgba(0,200,248,.18), transparent 35%),
        linear-gradient(135deg, #F7FAFF 0%, #EAF6FF 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
}

.neko-login__panel {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(6,27,58,.12);
    max-width: 520px;
    padding: 42px;
    width: 100%;
}

.neko-login__brand {
    align-items: flex-start;
    display: grid;
    gap: 8px;
    margin-bottom: 30px;
}

.neko-login__brand img {
    max-height: 70px;
    max-width: 240px;
    object-fit: contain;
}

.neko-login__brand small {
    color: var(--text-muted);
    font-weight: 700;
}

.neko-login h1 {
    margin-bottom: 24px;
}

.neko-pos {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.neko-pos-status {
    margin-bottom: 18px;
}

.neko-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.neko-chip {
    background: #F1F5F9;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: #53627C;
    font-size: 13px;
    font-weight: 750;
    padding: 9px 14px;
}

.neko-chip--active {
    background: linear-gradient(135deg, #008BFF 0%, #006DFF 100%);
    color: #fff;
}

.neko-pos__left,
.neko-pos__cart {
    min-width: 0;
}

.neko-product-results {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.neko-result {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    padding: 14px;
    transition: transform .16s ease, box-shadow .16s ease;
}

.neko-result:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.neko-result strong {
    display: block;
    font-weight: 800;
}

.neko-result small {
    color: var(--text-muted);
    display: block;
    margin: 4px 0 10px;
}

.neko-cart-line {
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 76px 100px auto auto;
    padding: 14px 0;
}

.neko-cart-line small {
    color: var(--text-muted);
    display: block;
}

.neko-cart-line input {
    width: 100%;
}

.neko-totals {
    border-top: 1px solid var(--border-soft);
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding-top: 16px;
}

.neko-totals span {
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.neko-total {
    color: var(--text-main) !important;
    font-size: 20px;
    font-weight: 850;
}

.neko-total strong {
    color: var(--neko-blue);
    font-size: 28px;
}

.neko-ticket {
    margin: 0 auto;
    max-width: 420px;
    padding: 26px;
}

.neko-ticket h2,
.neko-ticket p {
    text-align: center;
}

.neko-ticket small {
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.neko-customer-profile {
    display: grid;
    gap: 18px;
}

.neko-customer-hero {
    align-items: center;
    display: flex;
    gap: 20px;
    grid-column: span 2;
}

.neko-customer-hero::before {
    display: none !important;
}

.neko-customer-avatar {
    align-items: center;
    background: linear-gradient(135deg, #EAF6FF 0%, #DCEBFF 100%);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--neko-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 42px;
    font-weight: 900;
    height: 116px;
    justify-content: center;
    width: 116px;
}

.neko-hero-panel {
    background:
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(234,246,255,.82)),
        radial-gradient(circle at 90% 10%, rgba(0,200,248,.18), transparent 34%);
}

@media (max-width: 1180px) {
    .neko-dashboard .neko-grid:first-child {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .neko-dashboard-layout,
    .neko-dashboard-bottom,
    .neko-executive-layout {
        grid-template-columns: 1fr;
    }

    .neko-pos,
    .neko-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .neko-sidebar {
        transform: translateX(-100%);
    }

    .neko-main {
        margin-left: 0;
        padding: 0 20px 32px;
    }

    .neko-header {
        margin: 0 -20px 18px;
        padding: 0 20px;
    }

    .neko-global-search {
        max-width: none;
        width: 48vw;
    }

    .neko-user__meta,
    .neko-logout {
        display: none;
    }
}

@media (max-width: 680px) {
    .neko-dashboard .neko-grid:first-child,
    .neko-grid,
    .neko-grid--2,
    .neko-grid--cards {
        grid-template-columns: 1fr;
    }

    .neko-header {
        height: auto;
        padding-bottom: 14px;
        padding-top: 14px;
    }

    .neko-header__left {
        flex: 1;
    }

    .neko-global-search {
        width: 100%;
    }

    .neko-user .neko-icon-button {
        display: none;
    }

    .neko-cart-line {
        grid-template-columns: 1fr;
    }

    .neko-panel,
    .neko-card {
        border-radius: 16px;
        padding: 16px;
    }
}

/* Navigation and real-operation fixes */
.neko-sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
}

.neko-nav {
    gap: 6px;
}

.neko-nav-group {
    display: grid;
    gap: 4px;
}

.neko-nav__parent {
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

.neko-nav__chevron {
    display: inline-flex;
    margin-left: auto;
    opacity: 0.68;
    transition: transform 0.18s ease;
}

.neko-nav__chevron .neko-icon {
    height: 15px;
    width: 15px;
}

.neko-nav-group.is-open .neko-nav__chevron {
    transform: rotate(90deg);
}

.neko-nav__submenu {
    display: none;
    gap: 3px;
    padding: 0 0 6px 48px;
}

.neko-nav-group.is-open .neko-nav__submenu {
    display: grid;
}

.neko-nav__subitem {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 650;
    padding: 8px 11px;
}

.neko-nav__subitem:hover,
.neko-nav__subitem.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.neko-nav__item--disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.neko-store-switch {
    color: #ffffff;
}

.neko-store-switch b .neko-icon {
    height: 16px;
    width: 16px;
}

.neko-topbar {
    height: 72px;
    gap: 16px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.78);
}

.neko-main {
    padding-top: 0;
}

.neko-page-title {
    margin-bottom: 18px;
}

.neko-icon-button:hover,
.neko-icon-button.is-active {
    background: var(--neko-sky);
    border-color: rgba(0, 109, 255, 0.22);
    color: var(--neko-blue);
}

.neko-search-wrap,
.neko-dropdown-wrap {
    position: relative;
}

.neko-user {
    align-items: center;
    display: flex;
    gap: 10px;
}

.neko-user-menu {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 16px;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    min-height: 52px;
    padding: 6px 8px;
}

.neko-user-menu:hover,
.neko-user-menu.is-active {
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 35, 70, 0.06);
}

.neko-user-menu > .neko-icon {
    height: 15px;
    width: 15px;
}

.neko-dropdown {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 24px 54px rgba(15, 35, 70, 0.16);
    display: none;
    min-width: 280px;
    padding: 12px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
}

.neko-dropdown.is-open {
    display: grid;
    gap: 6px;
}

.neko-search-dropdown {
    left: 0;
    right: auto;
    width: min(520px, 88vw);
}

.neko-dropdown h3 {
    color: var(--text-main);
    font-size: 13px;
    margin: 4px 8px 8px;
}

.neko-dropdown a,
.neko-dropdown__disabled {
    align-items: center;
    border-radius: 12px;
    color: var(--text-main);
    display: flex;
    gap: 12px;
    padding: 10px;
}

.neko-dropdown a:hover,
.neko-dropdown a.is-active {
    background: var(--neko-sky);
    color: var(--neko-blue);
}

.neko-dropdown small {
    color: var(--text-muted);
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.neko-dropdown__disabled {
    color: var(--text-soft);
    cursor: not-allowed;
}

.neko-quick-dropdown {
    min-width: 340px;
}

.neko-dropdown form {
    margin: 8px 0 0;
}

.neko-dropdown form button {
    justify-content: center;
    width: 100%;
}

.neko-sidebar-backdrop {
    background: rgba(6, 27, 58, 0.48);
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9;
}

body.neko-sidebar-mobile-open .neko-sidebar-backdrop {
    display: block;
}

body.neko-sidebar-collapsed {
    --sidebar-w: 92px;
}

body.neko-sidebar-collapsed .neko-sidebar {
    padding-left: 14px;
    padding-right: 14px;
}

body.neko-sidebar-collapsed .neko-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.neko-sidebar-collapsed .neko-brand img {
    max-width: 54px;
}

body.neko-sidebar-collapsed .neko-nav__item span,
body.neko-sidebar-collapsed .neko-nav__chevron,
body.neko-sidebar-collapsed .neko-nav__submenu,
body.neko-sidebar-collapsed .neko-sidebar__art,
body.neko-sidebar-collapsed .neko-store-switch span,
body.neko-sidebar-collapsed .neko-store-switch b {
    display: none;
}

body.neko-sidebar-collapsed .neko-nav__item,
body.neko-sidebar-collapsed .neko-store-switch {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.neko-btn,
.neko-button,
.neko-panel button,
.neko-toolbar button,
.neko-form button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.neko-btn:hover,
.neko-button:hover,
.neko-panel button:hover,
.neko-toolbar button:hover,
.neko-form button:hover {
    transform: translateY(-1px);
}

.neko-btn-primary,
.neko-button:not(.neko-button--secondary):not(.neko-button--ghost):not(.neko-button--danger),
.neko-panel button[type="submit"]:not(.neko-btn-secondary):not(.neko-btn-danger),
.neko-toolbar button[type="submit"] {
    background: linear-gradient(135deg, #008BFF 0%, #006DFF 100%);
    box-shadow: 0 14px 28px rgba(0, 109, 255, 0.18);
    color: #ffffff;
}

.neko-btn-secondary,
.neko-button--secondary {
    background: #ffffff;
    border-color: var(--border-soft);
    color: var(--text-main);
}

.neko-btn-danger,
.neko-button--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

.neko-btn-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.neko-btn-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.neko-btn-ghost,
.neko-button--ghost {
    background: transparent;
    border-color: var(--border-soft);
    color: var(--text-main);
}

.neko-btn-icon {
    justify-content: center;
    padding: 0;
    width: 44px;
}

.neko-btn-sm {
    border-radius: 12px;
    font-size: 13px;
    min-height: 36px;
    padding: 0 13px;
}

.neko-btn-lg {
    border-radius: 16px;
    font-size: 16px;
    min-height: 52px;
    padding: 0 22px;
}

.neko-quick-actions {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 18px 0;
}

.neko-quick-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 35, 70, 0.05);
    display: flex;
    gap: 12px;
    min-height: 86px;
    padding: 16px;
}

.neko-quick-action:hover {
    border-color: rgba(0, 109, 255, 0.24);
    box-shadow: var(--shadow-hover);
    color: var(--neko-blue);
    transform: translateY(-2px);
}

.neko-quick-action .neko-icon {
    background: var(--neko-sky);
    border-radius: 14px;
    color: var(--neko-blue);
    height: 42px;
    padding: 10px;
    width: 42px;
}

.neko-quick-action > b {
    align-items: center;
    background: var(--neko-sky);
    border-radius: 14px;
    color: var(--neko-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    height: 42px;
    justify-content: center;
    min-width: 42px;
    padding: 0 8px;
}

.neko-quick-action span {
    display: grid;
    gap: 3px;
}

.neko-quick-action small {
    color: var(--text-muted);
}

.neko-system-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.neko-system-link {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 12px;
}

.neko-system-link:hover {
    background: var(--neko-sky);
    color: var(--neko-blue);
}

/* Sidebar contrast hardening for real WordPress/theme rendering */
.neko-sidebar .neko-nav__item,
.neko-sidebar .neko-nav__parent,
.neko-sidebar .neko-nav__item:visited {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.neko-sidebar .neko-nav__item .neko-icon,
.neko-sidebar .neko-nav__parent .neko-icon {
    color: currentColor;
}

.neko-sidebar .neko-nav__item:hover,
.neko-sidebar .neko-nav__parent:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.neko-sidebar .neko-nav__item--active,
.neko-sidebar .neko-nav__item--active:hover,
.neko-sidebar .neko-nav__parent.neko-nav__item--active,
.neko-sidebar .neko-nav__parent.neko-nav__item--active:hover {
    background: linear-gradient(135deg, #008BFF 0%, #006DFF 100%);
    box-shadow: 0 12px 28px rgba(0, 109, 255, 0.32);
    color: #ffffff;
}

.neko-sidebar .neko-nav__subitem {
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.neko-sidebar .neko-nav__subitem:hover,
.neko-sidebar .neko-nav__subitem.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.neko-sidebar .neko-nav__item--disabled,
.neko-sidebar .neko-nav__item--disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
}

/* Product create/edit premium form */
.neko-product-editor form {
    display: grid;
    gap: 20px;
}

.neko-product-editor__heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.neko-breadcrumb {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 13px;
    gap: 10px;
    margin-top: 8px;
}

.neko-breadcrumb a {
    color: var(--neko-blue);
    font-weight: 700;
}

.neko-page-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.neko-product-form-grid {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 380px;
}

.neko-product-form-main,
.neko-product-form-side,
.neko-form-stack {
    display: grid;
    gap: 16px;
}

.neko-product-card {
    padding: 20px;
}

.neko-card__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.neko-card__header h2 {
    align-items: center;
    color: var(--text-main);
    display: flex;
    font-size: 16px;
    gap: 9px;
    margin: 0;
}

.neko-section-dot {
    align-items: center;
    border: 1px solid rgba(0, 109, 255, 0.18);
    border-radius: 999px;
    color: var(--neko-blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.neko-general-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
}

.neko-form-grid-2 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neko-form-grid-3 {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.neko-form-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.neko-label {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
}

.neko-label b {
    color: var(--danger);
    font-weight: 800;
}

.neko-input,
.neko-select,
.neko-textarea,
.neko-input-prefix input {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 14px;
    outline: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    width: 100%;
}

.neko-input,
.neko-select,
.neko-input-prefix input {
    height: 46px;
    padding: 0 14px;
}

.neko-textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.neko-textarea--compact {
    min-height: 46px;
    padding-right: 62px;
}

.neko-input:focus,
.neko-select:focus,
.neko-textarea:focus,
.neko-input-prefix:focus-within {
    border-color: var(--neko-blue);
    box-shadow: 0 0 0 4px rgba(0, 109, 255, 0.1);
}

.neko-input.is-invalid,
.neko-select.is-invalid,
.neko-textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.neko-field-help,
.neko-field-error,
.neko-character-count {
    color: var(--text-muted);
    font-size: 12px;
}

.neko-field-error {
    color: var(--danger);
    font-weight: 700;
}

.neko-character-count {
    justify-self: end;
    margin-top: -30px;
    padding-right: 10px;
    position: relative;
    z-index: 1;
}

.neko-input-prefix {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    display: flex;
    height: 46px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.neko-input-prefix > b {
    align-items: center;
    align-self: stretch;
    background: #f8fbff;
    border-right: 1px solid var(--border-soft);
    color: var(--text-muted);
    display: inline-flex;
    flex: 0 0 42px;
    justify-content: center;
}

.neko-input-prefix input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 44px;
}

.neko-input-prefix input:focus {
    box-shadow: none;
}

.neko-upload-box {
    align-items: center;
    background: #fbfdff;
    border: 1.5px dashed #c9d8ea;
    border-radius: 18px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 210px;
    padding: 20px;
    text-align: center;
}

.neko-upload-box.has-preview {
    background: #ffffff;
    justify-content: flex-start;
}

.neko-upload-box img {
    border-radius: 16px;
    height: 118px;
    max-width: 100%;
    object-fit: cover;
    width: 160px;
}

.neko-upload-box p {
    margin: 0;
}

.neko-upload-box small {
    color: var(--text-muted);
}

.neko-upload-icon {
    align-items: center;
    background: var(--neko-sky);
    border-radius: 18px;
    color: var(--neko-blue);
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    height: 70px;
    justify-content: center;
    width: 70px;
}

.neko-upload-url {
    margin-top: 10px;
}

.neko-switch,
.neko-checkbox {
    align-items: center;
    color: var(--text-main);
    display: flex;
    gap: 12px;
}

.neko-switch input,
.neko-checkbox input {
    height: auto;
    width: auto;
}

.neko-switch > span {
    background: #d8e3f1;
    border-radius: 999px;
    flex: 0 0 38px;
    height: 22px;
    position: relative;
    transition: background 0.18s ease;
}

.neko-switch > span::after {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(15, 35, 70, 0.22);
    content: "";
    height: 18px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform 0.18s ease;
    width: 18px;
}

.neko-switch input {
    opacity: 0;
    position: absolute;
}

.neko-switch input:checked + span {
    background: var(--neko-blue);
}

.neko-switch input:checked + span::after {
    transform: translateX(16px);
}

.neko-switch em {
    display: grid;
    font-style: normal;
    gap: 2px;
}

.neko-switch small,
.neko-checkbox small {
    color: var(--text-muted);
    font-size: 12px;
}

.neko-checkbox {
    align-items: flex-start;
    flex-wrap: wrap;
    font-weight: 700;
}

.neko-checkbox input {
    accent-color: var(--neko-blue);
    margin-top: 2px;
}

.neko-checkbox small {
    flex-basis: 100%;
    margin-left: 26px;
}

.neko-checkbox.is-disabled {
    color: var(--text-muted);
}

.neko-alert-danger {
    background: #fff7f7;
    border-color: #fecaca;
    color: #991b1b;
    display: grid;
    gap: 4px;
}

.neko-product-description {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 20px;
}

@media (max-width: 1320px) {
    .neko-product-form-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .neko-general-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .neko-product-form-grid {
        grid-template-columns: 1fr;
    }

    .neko-product-form-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .neko-product-editor__heading,
    .neko-page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .neko-page-actions .neko-btn {
        justify-content: center;
        width: 100%;
    }

    .neko-form-grid-2,
    .neko-form-grid-3,
    .neko-product-form-side {
        grid-template-columns: 1fr;
    }

    .neko-product-card,
    .neko-product-description {
        padding: 16px;
    }
}

/* Operational UI cleanup: products, categories, inventory adjustment and customer forms */
.neko-page-header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 22px 0 24px;
}

.neko-page-header--with-icon {
    justify-content: flex-start;
}

.neko-page-title {
    color: var(--text-main);
    font-size: 32px;
    line-height: 1.15;
    margin: 8px 0 6px;
}

.neko-page-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.neko-header-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.neko-icon-lg {
    height: 24px;
    width: 24px;
}

.neko-icon-sm {
    height: 18px;
    width: 18px;
}

.neko-icon-box {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.neko-icon-box-blue { background: #eaf4ff; color: var(--neko-blue); }
.neko-icon-box-green { background: #e9fbf3; color: var(--success); }
.neko-icon-box-orange { background: #fff4e5; color: var(--warning); }
.neko-icon-box-red { background: #fff0f0; color: var(--danger); }
.neko-icon-box-purple { background: #f1ebff; color: var(--purple); }

.neko-btn-full {
    justify-content: center;
    width: 100%;
}

.neko-btn-symbol {
    font-size: 18px;
    line-height: 1;
}

.neko-kpi-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.neko-kpi-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.neko-kpi-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 16px;
    min-height: 116px;
    padding: 20px;
}

.neko-kpi-card span:last-child {
    display: grid;
    gap: 4px;
}

.neko-kpi-card small {
    color: var(--text-muted);
    font-weight: 700;
}

.neko-kpi-card strong {
    color: var(--text-main);
    font-size: 24px;
    line-height: 1.1;
}

.neko-kpi-card em {
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
}

.neko-filter-card {
    margin-bottom: 18px;
    padding: 22px;
}

.neko-filter-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(260px, 1.8fr) repeat(4, minmax(150px, 1fr));
}

.neko-filter-actions {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto auto;
    margin-top: 16px;
}

.neko-toolbar--loose {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
}

.neko-table-card {
    overflow: hidden;
    padding: 0;
}

.neko-table-card .neko-card-header {
    padding: 20px 22px 0;
}

.neko-card-header {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.neko-card-title {
    align-items: center;
    color: var(--text-main);
    display: flex;
    font-size: 18px;
    gap: 10px;
    margin: 0;
}

.neko-table-responsive {
    overflow-x: auto;
}

.neko-table input[type="checkbox"] {
    height: 18px;
    min-height: 0;
    width: 18px;
}

.neko-product-cell {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 210px;
}

.neko-product-cell img,
.neko-product-cell > b {
    border-radius: 12px;
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.neko-product-cell > b:not(.neko-icon-box) {
    align-items: center;
    background: var(--neko-sky);
    color: var(--neko-blue);
    display: inline-flex;
    justify-content: center;
}

.neko-product-cell span {
    display: grid;
    gap: 3px;
}

.neko-product-cell small {
    color: var(--text-muted);
}

.neko-table-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.neko-table-actions form {
    margin: 0;
}

.neko-table-footer {
    align-items: center;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    padding: 16px 22px;
}

.neko-pagination {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.neko-pagination b {
    align-items: center;
    background: var(--neko-blue);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.neko-empty-state {
    align-items: center;
    display: grid;
    gap: 12px;
    justify-items: center;
    min-height: 280px;
    padding: 42px 20px;
    text-align: center;
}

.neko-empty-state h2 {
    margin: 0;
}

.neko-empty-state p {
    color: var(--text-muted);
    margin: 0;
}

.neko-badge-success { background: #dcfce7; color: #047857; }
.neko-badge-info { background: #eaf4ff; color: var(--neko-blue); }
.neko-badge-muted { background: #eef2f7; color: var(--text-muted); }
.neko-text-success { color: #059669; }
.neko-text-warning { color: #d97706; }
.neko-text-danger { color: var(--danger); }

.neko-split-layout {
    align-items: start;
    display: grid;
    gap: 24px;
}

.neko-split-layout--categories {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
}

.neko-form-card {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.neko-form-card .neko-textarea {
    min-height: 150px;
}

.neko-summary-strip {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
    overflow: hidden;
}

.neko-summary-strip article {
    align-items: center;
    display: grid;
    gap: 4px 14px;
    grid-template-columns: 52px 1fr;
    padding: 20px;
}

.neko-summary-strip article + article {
    border-left: 1px solid var(--border-soft);
}

.neko-summary-strip .neko-icon-box {
    grid-row: span 3;
}

.neko-summary-strip small,
.neko-summary-strip em {
    color: var(--text-muted);
    font-style: normal;
}

.neko-summary-strip strong {
    color: var(--text-main);
    font-size: 24px;
}

.neko-adjust-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.neko-split-main {
    display: grid;
    gap: 14px;
}

.neko-step-card {
    padding: 20px;
}

.neko-step-number {
    align-items: center;
    background: var(--neko-blue);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.neko-adjust-product-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(210px, 0.9fr) 210px;
}

.neko-mini-stock {
    background: #f8fbff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    display: grid;
    gap: 4px;
    padding: 16px;
}

.neko-mini-stock small,
.neko-mini-stock span {
    color: var(--text-muted);
}

.neko-mini-stock strong {
    color: var(--neko-blue);
    font-size: 26px;
}

.neko-input-suffix {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    display: flex;
    height: 46px;
    overflow: hidden;
}

.neko-input-suffix input {
    border: 0;
    box-shadow: none;
    flex: 1;
    height: 44px;
    min-width: 0;
}

.neko-input-suffix b {
    align-items: center;
    align-self: stretch;
    background: #f8fbff;
    border-left: 1px solid var(--border-soft);
    color: var(--text-muted);
    display: inline-flex;
    padding: 0 16px;
}

.neko-inline-message {
    align-self: end;
    background: #effcf5;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    color: #047857;
    min-height: 46px;
    padding: 13px 16px;
}

.neko-form-footer {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.neko-summary-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 16px;
    padding: 22px;
    position: sticky;
    top: 92px;
}

.neko-summary-card h2 {
    margin: 0;
}

.neko-summary-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.neko-summary-card dt {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
}

.neko-summary-card dd {
    border-bottom: 1px solid var(--border-soft);
    margin: 0;
    padding: 6px 0 12px;
}

.neko-result-box {
    background: #f1f7ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.neko-result-box span {
    color: var(--text-muted);
}

.neko-summary-card p {
    background: #f8fbff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: var(--text-muted);
    margin: 0;
    padding: 14px;
}

.neko-customer-editor form {
    display: grid;
    gap: 18px;
}

.neko-customer-hero {
    align-items: center;
    background: linear-gradient(135deg, #eef7ff 0%, #ffffff 65%, #eaf4ff 100%);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 16px;
    min-height: 96px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.neko-customer-hero::after {
    background: radial-gradient(circle, rgba(0, 109, 255, 0.14), transparent 62%);
    content: "";
    height: 170px;
    position: absolute;
    right: 20px;
    top: -54px;
    width: 260px;
}

.neko-customer-hero span:not(.neko-icon-box) {
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.neko-customer-hero strong {
    color: var(--text-main);
    font-size: 18px;
}

.neko-customer-hero small {
    color: var(--text-muted);
}

.neko-customer-form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neko-info-strip {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

/* Real WordPress visual fixes: prevent dashboard quick actions overflow/overlay */
.neko-dashboard {
    max-width: 100%;
    overflow-x: hidden;
}

.neko-card::before {
    content: none !important;
}

.neko-dashboard .neko-grid:first-child {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.neko-dashboard > .neko-panel:nth-of-type(1) {
    min-height: 0;
}

.neko-dashboard > .neko-panel:nth-of-type(1)::after {
    content: none;
}

.neko-dashboard .neko-quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    max-width: 100%;
}

.neko-dashboard .neko-quick-action {
    min-width: 0;
    overflow: hidden;
}

.neko-dashboard .neko-quick-action span,
.neko-dashboard .neko-quick-action strong,
.neko-dashboard .neko-quick-action small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* Shared visual standards for new ERP views */
.neko-sidebar {
    isolation: isolate;
    overflow: hidden;
}

.neko-sidebar::before,
.neko-sidebar::after,
.neko-sidebar__art,
.neko-sidebar__art * {
    pointer-events: none;
}

.neko-brand,
.neko-nav,
.neko-store-switch {
    position: relative;
    z-index: 3;
}

.neko-nav {
    overflow-y: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

.neko-sidebar__art {
    flex: 0 0 auto;
    opacity: .32;
    position: relative;
    z-index: 1;
}

.neko-store-switch {
    flex: 0 0 auto;
}

.neko-page {
    display: grid;
    gap: 18px;
}

.neko-page-kicker {
    color: var(--neko-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.neko-form-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.neko-form-main,
.neko-form-aside {
    display: grid;
    gap: 18px;
}

.neko-form-aside {
    position: sticky;
    top: 94px;
}

.neko-form-card,
.neko-table-card,
.neko-summary-card,
.neko-help-card,
.neko-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.neko-form-card,
.neko-table-card,
.neko-summary-card,
.neko-help-card {
    padding: 22px;
}

.neko-form-card-header,
.neko-card-header {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.neko-form-card-header > div,
.neko-card-header > div {
    min-width: 0;
}

.neko-form-card-title,
.neko-card-title {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.neko-form-card-subtitle,
.neko-card-header p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.neko-form-grid-2,
.neko-form-grid-3 {
    display: grid;
    gap: 16px;
}

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

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

.neko-form-span-2 {
    grid-column: span 2;
}

.neko-form-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.neko-label {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
}

.neko-required {
    color: var(--danger);
    font-weight: 800;
}

.neko-input,
.neko-select,
.neko-textarea {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: var(--text-main);
    font: inherit;
    outline: 0;
    width: 100%;
}

.neko-input,
.neko-select {
    height: 46px;
    padding: 0 14px;
}

.neko-textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
}

.neko-input:focus,
.neko-select:focus,
.neko-textarea:focus {
    border-color: var(--neko-blue);
    box-shadow: 0 0 0 4px rgba(0, 109, 255, .1);
}

.neko-input-prefix {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    display: flex;
    overflow: hidden;
}

.neko-input-prefix b {
    align-items: center;
    align-self: stretch;
    background: #f8fbff;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    min-width: 42px;
}

.neko-input-prefix .neko-input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.neko-form-footer {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.neko-summary-card {
    display: grid;
    gap: 14px;
}

.neko-summary-card h2,
.neko-help-card h3 {
    color: var(--text-main);
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.neko-summary-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.neko-summary-list div {
    border-bottom: 1px solid var(--border-soft);
    display: grid;
    gap: 4px;
    padding: 12px 0;
}

.neko-summary-list div:last-child {
    border-bottom: 0;
}

.neko-summary-list dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.neko-summary-list dd {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.neko-help-card {
    color: var(--text-muted);
    display: grid;
    gap: 8px;
}

.neko-help-card p {
    margin: 0;
}

.neko-help-card--danger {
    border-color: rgba(239, 68, 68, .18);
}

.neko-settings-grid {
    align-items: stretch;
}

.neko-settings-card {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.neko-settings-card h3 {
    color: var(--text-main);
    margin: 0 0 6px;
}

.neko-settings-card p,
.neko-settings-card small {
    color: var(--text-muted);
    margin: 0;
}

.neko-table-entity {
    align-items: center;
    display: flex;
    gap: 12px;
}

.neko-table-entity span:last-child {
    display: grid;
    gap: 2px;
}

.neko-thumbnail--initial {
    align-items: center;
    background: var(--neko-sky);
    color: var(--neko-blue);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.neko-editable-table .neko-input {
    min-width: 96px;
}

.neko-alert-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.neko-badge--muted {
    background: #f1f5f9;
    color: var(--text-muted);
}

@media (max-width: 1280px) {
    .neko-quick-actions,
    .neko-system-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .neko-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    body.neko-sidebar-collapsed {
        --sidebar-w: 280px;
    }

    .neko-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    body.neko-sidebar-mobile-open .neko-sidebar {
        transform: translateX(0);
    }

    .neko-main {
        margin-left: 0;
    }

    .neko-split-layout--categories,
    .neko-adjust-layout,
    .neko-form-layout {
        grid-template-columns: 1fr;
    }

    .neko-summary-card,
    .neko-form-aside {
        position: static;
    }

    .neko-adjust-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .neko-page-header,
    .neko-header-actions,
    .neko-filter-actions,
    .neko-form-footer,
    .neko-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .neko-header-actions .neko-btn,
    .neko-form-footer .neko-btn {
        justify-content: center;
        width: 100%;
    }

    .neko-kpi-grid--five,
    .neko-kpi-grid--four,
    .neko-filter-grid,
    .neko-summary-strip,
    .neko-customer-form-grid,
    .neko-form-grid-2,
    .neko-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .neko-form-span-2 {
        grid-column: auto;
    }

    .neko-summary-strip article + article {
        border-left: 0;
        border-top: 1px solid var(--border-soft);
    }

    .neko-filter-actions {
        display: flex;
    }

    .neko-topbar {
        height: auto;
        min-height: 72px;
        padding: 12px 16px;
    }

    .neko-header__left {
        flex: 1;
    }

    .neko-global-search {
        max-width: none;
        width: 100%;
    }

    .neko-user__meta,
    .neko-logout-inline {
        display: none;
    }

    .neko-quick-actions,
    .neko-system-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.neko-app {
        background: #fff;
    }

    .neko-sidebar,
    .neko-header,
    .neko-page-title,
    .neko-print-hide {
        display: none !important;
    }

    .neko-shell,
    .neko-main {
        display: block;
        margin: 0;
        padding: 0;
    }

    .neko-ticket {
        box-shadow: none;
        max-width: none;
    }
}
