/* A Code Shop admin Larkon ihlette változata. */
:root {
    --blue: #0a72ba;
    --blue-dark: #075e9a;
    --blue-tint: #e8f4fc;
    --admin-highlight: #149bf4;
    --admin-blue-border: #cce4f6;
    --admin-blue-text: #05568b;
    --ink: #14202b;
    --muted: #4f5d6b;
    --line: #e1e7ed;
    --bg: #f2f5f8;
    --card: #fff;
    --radius: 12px;
    --admin-shadow: 0 2px 6px #252a3110;
    --admin-bar-height: 64px;
}

body { font-size: 14px; }
.admin { grid-template-columns: 238px minmax(0, 1fr); }
.admin-main { min-width: 0; }
.sidebar { background: var(--card); color: var(--muted); border-inline-end: 1px solid var(--line); padding: 20px 15px; gap: 22px; height: 100dvh; }
.brand { color: var(--ink); gap: 11px; font-size: 20px; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; color: var(--admin-blue-text); background: var(--blue-tint); border-radius: 9px; }
.brand-mark svg { width: 22px; height: 22px; }
.nav-group-label { color: var(--muted); font-size: 10.5px; padding-inline: 10px; }
.admin-nav { gap: 13px; scrollbar-color: #d0dae3 transparent; }
.admin-nav a {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E");
    position: relative;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 33px;
    padding: 6px 9px;
    border-inline-start: 3px solid transparent;
    border-radius: 0 7px 7px 0;
}
.admin-nav a[href*="/rendelesek"], .admin-nav a[href*="/ajanlatkeresek"], .admin-nav a[href*="/oldalak"], .admin-nav a[href*="/blog"] {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v5h4M9 12h6m-6 4h6'/%3E%3C/svg%3E");
}
.admin-nav a[href*="/termekek"], .admin-nav a[href*="/kategoriak"], .admin-nav a[href*="/markak"] {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='m3 7 9-4 9 4-9 4zM3 7v10l9 4 9-4V7m-9 4v10'/%3E%3C/svg%3E");
}
.admin-nav a[href*="/vasarlok"], .admin-nav a[href*="/vevoszintek"], .admin-nav a[href*="/feliratkozok"] {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M4 20a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}
.admin-nav a[href*="/kuponok"], .admin-nav a[href*="/akciok"], .admin-nav a[href*="/cimkek"] {
    --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M3 4h8l10 10-7 7L3 10z'/%3E%3Ccircle cx='7' cy='8' r='1'/%3E%3C/svg%3E");
}
.admin-nav a::before { content: ""; width: 17px; height: 17px; flex: none; background: currentColor; mask: var(--menu-icon) center / contain no-repeat; }
.admin-nav a:hover, .admin-nav a:focus-visible { background: var(--bg); color: var(--ink); }
.admin-nav a.active { border-color: var(--blue); color: var(--admin-blue-text); background: var(--blue-tint); font-weight: 650; }
.admin-nav a .nav-count, .sidebar nav a.active .nav-count { margin-inline-start: auto; color: var(--admin-blue-text); background: #dceefb; }
.menu-toggle { color: var(--admin-blue-text); background: var(--blue-tint); border-color: var(--admin-blue-border); }
.menu-toggle[aria-expanded="true"] { background: #dceefb; border-color: var(--blue); }
.menu-current { color: var(--muted); }
.content { padding: 25px 28px 42px; }
.admin-topbar {
    position: sticky;
    z-index: 6;
    top: 0;
    min-height: var(--admin-bar-height);
    padding: 9px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.admin-location { font-weight: 750; text-transform: uppercase; letter-spacing: .045em; color: var(--muted); font-size: 12px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; min-width: 0; }
.admin-search { position: relative; display: flex; align-items: center; min-width: 0; }
.admin-search svg { width: 17px; height: 17px; position: absolute; left: 11px; pointer-events: none; color: var(--muted); }
.admin-search input {
    width: 210px;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #e9eff4;
    padding: 9px 10px 9px 35px;
    color: var(--ink);
    font: inherit;
}
.admin-utility, .admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
}
.admin-utility { color: var(--muted); }
.admin-utility:hover { background: var(--blue-tint); color: var(--blue); }
.admin-utility svg { width: 20px; height: 20px; }
.admin-avatar { color: var(--admin-blue-text); background: var(--blue-tint); font-weight: 750; }
.admin-profile { position: relative; }
.admin-profile summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; font-weight: 600; }
.admin-profile-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile summary::-webkit-details-marker { display: none; }
.admin-profile-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    min-width: 144px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--admin-shadow);
    background: var(--card);
}
.admin-profile-menu a, .admin-profile-menu button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 8px 10px;
    color: var(--ink);
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.admin-profile-menu :is(a, button):hover { background: var(--blue-tint); }

.btn { font-size: 13px; font-weight: 650; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { border-color: var(--admin-blue-border); color: var(--blue-dark); }
input:is([type="checkbox"], [type="radio"]) { accent-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.card, .table-wrap, .stat, .product-filters, .login-card { box-shadow: var(--admin-shadow); }
.card .table-wrap { box-shadow: none; }
.table th { text-transform: none; letter-spacing: 0; font-size: 12px; background: #f4f7fa; }
.table tbody tr:hover td { background: #f7fafc; }
.pill { border-radius: 5px; font-weight: 650; }
.tabs a { border-radius: 7px; }
.field { color: #424c5e; font-weight: 550; }
.field :is(input, select, textarea):disabled { background: #f2f5f8; }
.form-side { top: calc(var(--admin-bar-height) + 16px); }
.form-bar { top: var(--admin-bar-height); box-shadow: var(--admin-shadow); }
.form-section { scroll-margin-top: calc(var(--admin-bar-height) + 90px); }
.customizer-page .content { padding: 0; }
.customizer { height: calc(100dvh - var(--admin-bar-height)); }
.login-card { border-radius: 14px; }

.larkon-filter-panel {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--admin-shadow);
}
.larkon-filter-panel summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.larkon-filter-panel summary::-webkit-details-marker { display: none; }
.larkon-filter-panel summary > span:first-child { display: inline-flex; gap: 7px; align-items: center; }
.larkon-filter-panel summary svg { width: 16px; height: 16px; color: var(--blue); }
.larkon-filter-panel summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-start: auto;
    border: solid var(--muted);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.larkon-filter-panel[open] summary::after { transform: rotate(225deg); }
.larkon-filter-panel .product-filters { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }

.admin-product-cell { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.admin-product-cell a { text-decoration: none; color: var(--ink); }
.admin-product-cell a:hover { color: var(--blue); text-decoration: underline; }
.admin-product-thumb { display: grid; place-items: center; width: 47px; height: 47px; flex: none; border-radius: 8px; overflow: hidden; color: var(--muted); background: #edf2f6; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-thumb svg { width: 21px; height: 21px; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-row-action { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #eef0f4; color: #46516a; }
.admin-row-action-edit { background: var(--blue-tint); color: var(--blue); }
.admin-row-action:hover { box-shadow: inset 0 0 0 1px currentColor; }
.admin-row-action svg { width: 17px; height: 17px; }

.larkon-order-tabs { margin: 14px 0; }
.larkon-order-tabs a.active { background: var(--blue-tint); color: var(--blue-dark); border-color: var(--admin-blue-border); }
.larkon-order-tabs .count { background: #ececf1; color: #4b5467; border-radius: 4px; padding: 0 4px; opacity: 1; }
.larkon-order-tabs a.active .count { background: #dceefb; color: var(--blue-dark); }
.admin-order-customer { display: flex; align-items: center; gap: 10px; }
.admin-order-customer strong { font-weight: 650; }
.admin-order-avatar { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 50%; color: #535e75; background: #eef0f4; font-size: 13px; font-weight: 700; }
.larkon-order-table .order-status { display: inline-flex; align-items: center; gap: 5px; }
.larkon-order-table .order-status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.larkon-order-table .pill-shipped { background: #eee9fb; color: #5b3cc4; }
.larkon-order-table .pill-refunded { background: #edf0f5; color: #535e75; }
.bulk-bar select {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--card);
    color: var(--ink);
    padding: 7px 9px;
    font: inherit;
}

.larkon-dashboard-head { margin-bottom: 20px; }
.larkon-dashboard-head h1 { font-size: 27px; letter-spacing: -.03em; }
.larkon-dashboard-head .muted { margin: 5px 0 0; }
.dashboard-date { color: var(--muted); margin: 0 0 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.dashboard-overview { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 18px; margin-bottom: 18px; align-items: stretch; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dashboard-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 0; min-width: 0; padding: 0; overflow: hidden; }
.dashboard-stat-main { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 16px 13px; }
.dashboard-stat-main > div { min-width: 0; text-align: end; }
.dashboard-stat-main .stat-label { display: block; font-size: 11px; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.dashboard-stat-main .stat-value { font-size: clamp(1.05rem, 1.5vw, 1.4rem); display: block; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-stat-icon { width: 41px; height: 41px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.dashboard-stat-icon svg { width: 22px; height: 22px; }
.dashboard-stat-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 8px 13px; background: #f4f7fa; color: var(--muted); font-size: 11px; }
.dashboard-stat-foot span + span { font-weight: 650; color: var(--ink); }
.dashboard-sales { min-width: 0; align-content: start; padding: 15px 16px; }
.dashboard-sales .muted { margin: 3px 0 0; }
.dashboard-chart { margin: 0; }
.dashboard-chart svg { width: 100%; height: auto; display: block; }
.dashboard-chart .chart-grid { stroke-dasharray: 3 3; }
.dashboard-chart .chart-mark { fill: var(--admin-highlight); }
.dashboard-chart figcaption { display: flex; justify-content: center; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.dashboard-chart figcaption span { width: 8px; height: 8px; border-radius: 50%; background: var(--admin-highlight); }
.larkon-dashboard-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.larkon-dashboard-grid > .dash-wide { grid-column: 1 / -1; }
.dash-todos .todo-count { border-radius: 8px; }
.dash-actions .action-list .btn { color: var(--blue-dark); background: var(--blue-tint); border-color: transparent; }
.dash-actions .action-list .btn:hover { border-color: var(--admin-blue-border); }

@media (max-width: 1100px) {
    .dashboard-overview { grid-template-columns: 1fr; }
    .dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .form-side { position: static; }
    .customizer { height: auto; }
}

@media (max-width: 820px) {
    .admin { grid-template-columns: minmax(0, 1fr); }
    .sidebar { height: auto; padding: 10px 15px; gap: 10px; }
    .sidebar-top { width: 100%; }
    .admin-nav { gap: 10px 7px; }
    .admin-topbar { padding: 7px 15px; --admin-bar-height: 53px; }
    .admin-location { display: none; }
    .admin-topbar-actions { width: 100%; justify-content: flex-end; }
    .admin-search { flex: 1; }
    .admin-search input { width: 100%; }
    .admin-profile-name { display: none; }
    .content { padding: 18px 15px 36px; }
    .form-bar { top: 53px; }
    .larkon-dashboard-grid { grid-template-columns: 1fr; }
    .larkon-dashboard-grid > .dash-wide { grid-column: auto; }
}

@media (max-width: 640px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dashboard-stat-main { padding: 12px 9px; }
    .dashboard-stat-icon { width: 32px; height: 32px; }
    .dashboard-stat-icon svg { width: 18px; height: 18px; }
    .dashboard-stat-foot { padding-inline: 9px; }
    .dashboard-sales { padding-inline: 12px; }
    .dashboard-chart .chart-axis { font-size: 18px; }
    .dashboard-chart-dates text:nth-child(even) { display: none; }
}

#order-edit .form-actions-row { justify-content: flex-end; }
.order-edit-items { min-width: 0; }
.order-edit-items .qty-cell input { width: 72px; }
.order-edit-line {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.order-edit-line > .product-lookup { flex: 1 1 230px; }
.order-edit-line > .field:not(.product-lookup) { flex: 0 1 92px; }
.order-edit-line-price { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 3px; }
.order-edit-line-price dt { font-size: 12px; color: var(--muted); }
.order-edit-line-price dd { margin: 2px 0 0; font-weight: 600; white-space: nowrap; }
[data-preview-summary] td:last-child { text-align: right; }
.order-edit-shipping { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
    .order-edit-line > .product-lookup { flex-basis: 100%; }
    .order-edit-shipping { grid-template-columns: 1fr; }
}
