﻿:root {
    --shop-cyan: #0096C7;
    --shop-cyan-rgb: 0, 150, 199;
    --shop-cyan-deep: #0077A3;
    --shop-ink: #0C2D3D;
    --shop-ink-soft: #163B4D;
    --shop-gold: #E8A317;
    --shop-coral: #E14B4B;
    --shop-mint: #1FA97A;
    --shop-sky: #2EB6E0;
    --shop-sidebar: #062636;
    --shop-sidebar-hover: #0A3548;
    --shop-cream: #EAF6FB;
    --shop-card: #FFFFFF;
    --shop-muted: #5A7380;
    --shop-border: #C9E2EC;
    --shop-radius: 18px;
    --shop-shadow: 0 10px 30px rgba(6, 38, 54, 0.08);
    --shop-blue: var(--shop-cyan);
    --shop-blue-rgb: var(--shop-cyan-rgb);
    --shop-blue-deep: var(--shop-cyan-deep);
    --shop-success: var(--shop-mint);
    --shop-warning: var(--shop-gold);
    --shop-danger: var(--shop-coral);
    --shop-info: var(--shop-sky);
}

@keyframes milkora-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes milkora-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes milkora-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--shop-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--shop-cream);
}

a { color: var(--shop-cyan-deep); }

.mud-layout.shop-shell,
.shop-shell {
    margin: 0 !important;
    padding: 0 !important;
}

.shop-shell > .mud-drawer-container,
.shop-shell .mud-drawer,
.mud-drawer.shop-drawer,
.mud-drawer-pos-left,
.mud-drawer-fixed {
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    height: 100% !important;
    max-height: 100vh !important;
}

/* Pin open drawers to the edge, but never override MudBlazor's closed offset
   (left: calc(-1 * drawer-width)) or the sidebar stays visible while the page shifts. */
.shop-shell .mud-drawer.mud-drawer--open,
.mud-drawer.shop-drawer.mud-drawer--open {
    left: 0 !important;
}

.shop-shell .mud-drawer-content,
.shop-drawer .mud-drawer-content {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--shop-sidebar) !important;
}

.shop-drawer {
    background:
        radial-gradient(420px 220px at 0% 0%, rgba(0,150,199,0.28), transparent 60%),
        linear-gradient(180deg, #062636 0%, #041C28 100%) !important;
    color: #9EB8C6;
    box-shadow: none !important;
}

.drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 1.05rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.drawer-logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0096C7, #2EB6E0);
    box-shadow: 0 8px 18px rgba(0,150,199,0.35);
}

.drawer-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.drawer-brand-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.drawer-brand-sub {
    margin-top: 0.2rem;
    color: #7FA3B4;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
}

.drawer-favorites { padding: 0.95rem 1rem 0.4rem; }
.drawer-section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6F8E9E;
    margin-bottom: 0.55rem;
}

.drawer-fav-row { display: flex; gap: 0.45rem; }
.drawer-fav {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    color: #9EB8C6;
    border: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.drawer-fav:hover {
    transform: translateY(-2px);
    background: rgba(0,150,199,0.22);
    color: #fff;
}
.drawer-fav.active {
    background: linear-gradient(145deg, #0096C7, #2EB6E0);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(0,150,199,0.35);
}

.drawer-scroll {
    flex: 1;
    overflow: auto;
    padding: 0.45rem 0.7rem 1rem;
}

.shop-nav .mud-nav-link,
.shop-nav .mud-nav-group-title {
    color: #9EB8C6 !important;
    border-radius: 12px !important;
    margin: 0.14rem 0;
    font-weight: 600 !important;
    min-height: 42px;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-nav .mud-nav-link .mud-nav-link-icon,
.shop-nav .mud-nav-group-title .mud-nav-link-icon { color: #7FA3B4 !important; }
.shop-nav .mud-nav-link:hover,
.shop-nav .mud-nav-group-title:hover {
    background: var(--shop-sidebar-hover) !important;
    color: #F3FBFE !important;
}
.shop-nav .mud-nav-link.active,
.shop-nav .mud-nav-link.active:hover {
    background: linear-gradient(90deg, rgba(0,150,199,0.28), rgba(0,150,199,0.08)) !important;
    color: #7DD3F0 !important;
    box-shadow: inset 3px 0 0 #2EB6E0;
}
.shop-nav .mud-nav-link.active .mud-nav-link-icon { color: #7DD3F0 !important; }

.drawer-footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.18);
}
.drawer-footer-avatar { box-shadow: 0 0 0 2px rgba(0,150,199,0.45); }
.drawer-footer-name {
    color: #F3FBFE;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drawer-footer-role { color: #7FA3B4; font-size: 0.7rem; font-weight: 600; }

.shop-main {
    min-height: 100vh;
    padding-top: 0 !important;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(0,150,199,0.18), transparent 55%),
        radial-gradient(700px 360px at -10% 20%, rgba(232,163,23,0.12), transparent 50%),
        linear-gradient(180deg, #EAF6FB 0%, #F5FBFD 45%, #EAF6FB 100%);
}

.shop-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    padding: 0.7rem 1.4rem;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201,226,236,0.9);
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.topbar-search {
    display: none;
    align-items: center;
    gap: 0.55rem;
    min-width: 320px;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    background: #F3FAFD;
    border: 1px solid var(--shop-border);
    color: var(--shop-muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.topbar-search-icon { color: #7FA3B4 !important; }
.topbar-kbd {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--shop-border);
    background: #fff;
    color: #7FA3B4;
}
@media (min-width: 900px) {
    .topbar-search { display: inline-flex; }
}

.topbar-notify-badge .mud-badge-content {
    font-weight: 700;
    min-width: 1.15rem;
}
.topbar-notify-btn {
    color: var(--shop-ink) !important;
}
.topbar-notify-menu .mud-list {
    min-width: min(22rem, 92vw);
}
.topbar-notify-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem 0.35rem;
    color: var(--shop-ink);
    font-size: 0.92rem;
}
.topbar-notify-head span {
    color: var(--shop-muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.topbar-notify-empty {
    padding: 0.85rem 1rem 1rem;
    color: var(--shop-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}
.topbar-notify-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.topbar-notify-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--shop-muted);
    letter-spacing: 0.02em;
}
.topbar-notify-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shop-ink);
    white-space: normal;
}
.topbar-notify-footer {
    font-weight: 600 !important;
}

.topbar-user { display: flex; align-items: center; gap: 0.55rem; }
.topbar-avatar { box-shadow: 0 0 0 3px rgba(0,150,199,0.2); }
.topbar-user-name { font-size: 0.88rem; font-weight: 600; color: var(--shop-ink); }
.topbar-user-role { font-size: 0.7rem; color: var(--shop-muted); font-weight: 600; }
.topbar-logout { border-radius: 12px !important; }
.topbar-shop-switch {
    border-radius: 12px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    white-space: nowrap;
}
.topbar-shop-name {
    font-weight: 500;
    opacity: 0.75;
    margin-left: 0.15rem;
}
@media (max-width: 600px) {
    .topbar-shop-name { display: none; }
}

.shop-page {
    padding: 1.25rem 1.4rem 2.8rem;
    max-width: 1500px;
}

.shop-page-enter {
    animation: milkora-rise 0.45s ease both;
}

.shop-page > .mud-typography-h4,
.page-head h1 {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
    font-size: 1.5rem !important;
}

.page-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding: 1.35rem 1.45rem;
    border-radius: 22px;
    background:
        linear-gradient(120deg, #062636 0%, #0A4A63 48%, #0096C7 100%);
    color: #EAF8FD;
    box-shadow: 0 16px 36px rgba(6, 38, 54, 0.18);
    animation: milkora-rise 0.4s ease both;
}

.page-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 36rem;
}

.page-hero .page-eyebrow {
    color: rgba(234, 248, 253, 0.72);
    margin-bottom: 0.35rem;
}

.page-hero h1 {
    margin: 0 0 0.4rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.page-hero p {
    margin: 0;
    color: rgba(234, 248, 253, 0.84);
    font-size: 0.95rem;
    line-height: 1.5;
}

.page-hero-art {
    position: relative;
    width: 140px;
    min-height: 96px;
    flex-shrink: 0;
    display: none;
}
@media (min-width: 780px) {
    .page-hero-art { display: block; }
}

.page-hero-art .blob {
    position: absolute;
    border-radius: 40% 60% 55% 45%;
    filter: blur(0.5px);
    opacity: 0.55;
}
.page-hero-art .blob-a {
    inset: 8% 10% 20% 18%;
    background: rgba(255,255,255,0.18);
}
.page-hero-art .blob-b {
    inset: 28% 0 0 35%;
    background: rgba(232,163,23,0.35);
    border-radius: 50%;
}
.page-hero-icon {
    position: absolute;
    right: 8px;
    bottom: 4px;
    font-size: 4.2rem !important;
    color: rgba(255,255,255,0.88) !important;
}

.filter-panel {
    background: #fff;
    border: 1px solid rgba(201,226,236,0.95);
    border-radius: 20px;
    padding: 1.1rem 1.2rem 1rem;
    box-shadow: 0 12px 32px rgba(6, 38, 54, 0.07);
}

.filter-panel-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--shop-cyan-deep);
    margin-bottom: 0.75rem;
}

.filter-run {
    min-height: 42px;
    border-radius: 12px !important;
}

.quick-report-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--shop-border);
}

.quick-report {
    border: 1px solid var(--shop-border);
    background: #F3FAFD;
    color: var(--shop-ink);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.quick-report:hover {
    background: rgba(0,150,199,0.12);
    border-color: rgba(0,150,199,0.35);
    transform: translateY(-1px);
}

.empty-stage {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 22px;
    border: 1px dashed rgba(0,150,199,0.35);
    background:
        radial-gradient(500px 180px at 50% 0%, rgba(0,150,199,0.12), transparent 70%),
        #fff;
    box-shadow: var(--shop-shadow);
    animation: milkora-rise 0.45s ease both;
}
.empty-stage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0096C7, #2EB6E0);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,150,199,0.28);
}
.empty-stage-icon .mud-icon-root { font-size: 1.8rem !important; }
.empty-stage h2 {
    margin: 0 0 0.35rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--shop-ink);
}
.empty-stage p {
    margin: 0 auto;
    max-width: 28rem;
    color: var(--shop-muted);
    font-size: 0.95rem;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.page-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--shop-cyan-deep);
    margin-bottom: 0.25rem;
}
.page-banner { display: none; }

.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.55rem 1.6rem 1.4rem;
    margin-bottom: 1.2rem;
    color: #EAF8FD;
    background:
        linear-gradient(125deg, #062636 0%, #0A4A63 42%, #0096C7 100%);
    box-shadow: 0 18px 40px rgba(6, 38, 54, 0.22);
    animation: milkora-rise 0.55s ease both;
}
.dash-hero-glow {
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 70%;
    background: radial-gradient(circle, rgba(232,163,23,0.35), transparent 60%);
    pointer-events: none;
}
.dash-hero-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.dash-hero-brand {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.45rem;
    background: linear-gradient(90deg, #fff, #B8E8F7, #F6C453, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: milkora-shimmer 6s linear infinite;
}
.dash-hero h1 {
    margin: 0 0 0.4rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 600;
    color: #fff;
    max-width: 34rem;
}
.dash-hero-copy {
    margin: 0;
    max-width: 38rem;
    color: rgba(234,248,253,0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}
.dash-hero-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    color: #fff;
}
.dash-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.72rem;
    font-weight: 700;
}
.dash-live .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    animation: milkora-pulse 1.6s ease infinite;
}
.dash-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (max-width: 900px) {
    .dash-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dash-hero-stat {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    transition: transform 0.18s ease, background 0.18s ease;
}
.dash-hero-stat:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.16);
}
.dash-hero-stat .label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(234,248,253,0.72);
    margin-bottom: 0.2rem;
}
.dash-hero-stat .value {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}
.dash-hero-stat.tone-gold { border-color: rgba(232,163,23,0.45); }
.dash-hero-stat.tone-coral { border-color: rgba(225,75,75,0.4); }
.dash-hero-stat.tone-mint { border-color: rgba(31,169,122,0.45); }

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(900px 480px at 90% -10%, rgba(0,150,199,0.35), transparent 55%),
        radial-gradient(700px 400px at 0% 100%, rgba(232,163,23,0.2), transparent 50%),
        linear-gradient(145deg, #062636 0%, #0A4A63 55%, #0096C7 130%);
}
.login-card {
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    border-radius: 22px !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35) !important;
}
.login-banner { display: block; width: 100%; height: auto; }
.login-card-body { padding: 1.5rem 2rem 2rem; }

.shop-picker {
    width: 100%;
    max-width: 560px;
}
.shop-picker-card {
    padding: 1.75rem 2rem 2rem !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35) !important;
}
.shop-picker-item {
    justify-content: flex-start !important;
    text-transform: none !important;
    height: 3.1rem !important;
    border-radius: 14px !important;
}
.shop-manage-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    border: 1px solid var(--shop-border);
    border-radius: 14px;
    background: #F3FAFD;
}
.shop-manage-row.is-current {
    border-color: rgba(0, 150, 199, 0.45);
    background: rgba(0, 150, 199, 0.1);
}
.shop-manage-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 180px;
}
.shop-manage-icon { color: var(--shop-cyan-deep); }
.shop-manage-name {
    font-weight: 600;
    color: var(--shop-ink);
    line-height: 1.25;
}
.shop-manage-badge {
    font-size: 0.75rem;
    color: var(--shop-cyan-deep);
    margin-top: 0.15rem;
}
.shop-manage-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.shop-manage-rename { flex: 1 1 200px; }

.checklist-table .checklist-task {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
}
.checklist-table .checklist-name { font-weight: 500; }
.checklist-table .checklist-link { font-size: 0.85rem; white-space: nowrap; }
.checklist-table tr.checklist-done .checklist-name {
    text-decoration: line-through;
    color: var(--shop-muted);
}

.picker-item { display: flex; justify-content: space-between; gap: 1rem; width: 100%; }
.picker-item-detail, .picker-item-meta { color: var(--shop-muted); font-size: 0.8rem; }
.confirm-card { width: min(420px, 92vw); }
.mud-typography-h4:focus, h1:focus { outline: none; }

.dash-tab-panel { padding-top: 1rem; }

.dash-kpi {
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--shop-border) !important;
    border-radius: var(--shop-radius) !important;
    box-shadow: var(--shop-shadow);
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dash-kpi:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(6, 38, 54, 0.12);
}
.dash-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 0.7rem;
    color: #fff;
}
.dash-kpi.tone-cyan .dash-kpi-icon { background: linear-gradient(145deg, #0096C7, #2EB6E0); }
.dash-kpi.tone-sky .dash-kpi-icon { background: linear-gradient(145deg, #2EB6E0, #67D0EC); }
.dash-kpi.tone-gold .dash-kpi-icon { background: linear-gradient(145deg, #E8A317, #F0C15A); color: #1A1A1A; }
.dash-kpi.tone-coral .dash-kpi-icon { background: linear-gradient(145deg, #E14B4B, #F07A7A); }
.dash-kpi .mud-typography-caption {
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 500 !important;
    color: var(--shop-muted) !important;
}
.dash-kpi .mud-typography-h5 {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

.dash-action {
    height: 100%;
    border: 1px solid var(--shop-border) !important;
    border-radius: var(--shop-radius) !important;
    box-shadow: var(--shop-shadow);
    transition: transform 0.18s ease;
}
.dash-action:hover { transform: translateY(-3px); }

.mud-card, .mud-paper { border-radius: var(--shop-radius) !important; }
.mud-card.mud-card-outlined,
.mud-paper[class*="mud-elevation-0"] {
    border-color: var(--shop-border) !important;
    box-shadow: var(--shop-shadow);
}
.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #0096C7, #2EB6E0) !important;
    box-shadow: 0 8px 18px rgba(0,150,199,0.28) !important;
}
.mud-tabs {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 0.4rem;
    box-shadow: var(--shop-shadow);
}
.mud-tabs .mud-tab {
    font-weight: 700;
    text-transform: none;
    border-radius: 12px !important;
}
.mud-tabs .mud-tab.mud-tab-active {
    background: rgba(0,150,199,0.12);
    color: var(--shop-cyan-deep) !important;
}

.daily-sheet-table .mud-input-control { margin-top: 0; margin-bottom: 0; }

.dash-ring { position: relative; width: 148px; height: 148px; margin: 0 auto; }
.dash-ring .mud-progress-circular { width: 148px !important; height: 148px !important; }
.dash-ring-label {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; pointer-events: none; text-align: center; padding: 1.5rem;
}

.print-banner {
    display: block; height: 72px; width: auto; max-width: 100%;
    margin-bottom: 0.5rem; object-fit: contain;
}

/* ---- Data tables (screen) ---- */
.mud-simple-table {
    border-radius: 10px;
    overflow: hidden;
}

.mud-simple-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.mud-simple-table thead th,
.mud-simple-table th.sortable-th {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    color: var(--shop-ink);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    text-transform: none;
    border-bottom: 2px solid rgba(var(--shop-blue-rgb), 0.28) !important;
    white-space: nowrap;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

.mud-simple-table tbody td {
    font-size: 0.9rem;
    border-bottom: 1px solid #eef2f4 !important;
    vertical-align: middle;
}

.mud-simple-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.mud-simple-table tbody tr:hover {
    background: rgba(var(--shop-blue-rgb), 0.06) !important;
}

.mud-simple-table tfoot td {
    background: #eef6fa;
    border-top: 2px solid var(--shop-blue) !important;
    font-weight: 700;
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
}

/* ---- Report document (screen + print) ---- */
.report-doc {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    padding: 1.35rem 1.45rem 1.6rem;
    box-shadow: var(--shop-shadow);
}

.report-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 3px solid var(--shop-blue);
}

.report-brand img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.report-shop {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--shop-blue-deep);
    line-height: 1.2;
}

.report-tagline {
    font-size: 0.8rem;
    color: var(--shop-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-title-block {
    margin-bottom: 1rem;
}

.report-title-block h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--shop-ink);
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    color: var(--shop-muted);
    font-size: 0.9rem;
}

.report-meta strong {
    color: var(--shop-ink);
    font-weight: 600;
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.report-kpi {
    background: linear-gradient(160deg, #f4fafd 0%, #eaf4fa 100%);
    border: 1px solid rgba(var(--shop-blue-rgb), 0.18);
    border-top: 3px solid var(--shop-blue);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    min-width: 0;
}

.report-kpi .label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--shop-muted);
    margin-bottom: 0.2rem;
}

.report-kpi .value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--shop-ink);
    word-break: break-word;
}

.report-kpi.accent .value {
    color: var(--shop-blue);
}

.report-kpi.warn .value {
    color: #b45309;
}

.report-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--shop-border);
}

.report-section-title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--shop-ink);
}

.report-section-title span {
    font-size: 0.85rem;
    color: var(--shop-muted);
}

.report-table-wrap {
    border: 1px solid rgba(var(--shop-blue-rgb), 0.15);
    border-radius: 10px;
    overflow: auto;
}

.report-table-wrap .mud-simple-table {
    border-radius: 0;
}

.report-table-wrap .mud-paper {
    border: none !important;
    box-shadow: none !important;
}

.report-note {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--shop-muted);
}

.report-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.25rem;
    padding-top: 0.5rem;
}

.report-sign {
    text-align: center;
}

.report-sign-line {
    border-top: 1px solid #9aa8b0;
    margin: 2.5rem 1rem 0.45rem;
}

.report-sign-label {
    font-size: 0.85rem;
    color: var(--shop-muted);
}

.report-generated {
    margin-top: 1.25rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--shop-border);
    font-size: 0.75rem;
    color: var(--shop-muted);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-toolbar {
    margin-bottom: 0.75rem;
}

.print-only {
    display: none !important;
}

@media print {
    .no-print,
    .shop-topbar,
    .shop-appbar,
    .shop-drawer,
    .mobile-bottom-nav,
    .mud-appbar,
    .mud-drawer,
    .mud-drawer-content,
    .mud-drawer-container,
    .mud-navmenu,
    .mud-overlay,
    .mud-snackbar-provider,
    .mud-dialog-container,
    .report-toolbar,
    .mud-input-control,
    .mud-button-root,
    aside,
    nav,
    #blazor-error-ui {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    .print-only {
        display: block !important;
    }

    html, body, .mud-layout, .mud-main-content, .shop-main, .shop-page {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .mud-main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        --mud-drawer-width-left: 0px !important;
    }

    .report-doc {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .report-brand {
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.35rem !important;
        border-bottom: 2px solid #0096C7 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-brand img {
        height: 36px !important;
    }

    .report-shop {
        font-size: 1rem !important;
    }

    .report-tagline {
        font-size: 0.65rem !important;
    }

    .report-title-block {
        margin-bottom: 0.45rem !important;
    }

    .report-title-block h1 {
        font-size: 1.05rem !important;
        margin: 0 0 0.15rem !important;
    }

    .report-meta {
        font-size: 0.75rem !important;
        gap: 0.25rem 0.75rem !important;
    }

    .report-kpis {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 0.35rem !important;
        margin-bottom: 0.5rem !important;
        break-inside: avoid;
    }

    .report-kpi {
        background: #EAF6FB !important;
        border: 1px solid #C9E2EC !important;
        border-top: 2px solid #0096C7 !important;
        border-radius: 6px !important;
        padding: 0.35rem 0.45rem !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        break-inside: avoid;
    }

    .report-kpi .label {
        font-size: 0.55rem !important;
        margin-bottom: 0 !important;
    }

    .report-kpi .value {
        font-size: 0.8rem !important;
    }

    .report-section-title {
        margin: 0 0 0.3rem !important;
        padding-bottom: 0.15rem !important;
    }

    .report-section-title h2 {
        font-size: 0.85rem !important;
    }

    .report-table-wrap {
        border: 1px solid #D1D5DB !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .mud-paper,
    .mud-table,
    .mud-simple-table {
        box-shadow: none !important;
        border-color: #ccc !important;
    }

    .mud-simple-table,
    .mud-simple-table table {
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 8pt !important;
        line-height: 1.2 !important;
    }

    .mud-simple-table thead th,
    .mud-simple-table th.sortable-th,
    .mud-simple-table tbody td,
    .mud-simple-table tfoot td {
        padding: 2px 4px !important;
        word-wrap: break-word !important;
        overflow-wrap: anywhere !important;
        vertical-align: top !important;
    }

    .mud-simple-table thead th,
    .mud-simple-table th.sortable-th {
        background: #EAF6FB !important;
        font-size: 7pt !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .mud-simple-table tbody tr:nth-child(even) {
        background: #F9FAFB !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .mud-simple-table tfoot td {
        background: #F3FAFD !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sortable-th-icon {
        display: none !important;
    }

    .report-note {
        font-size: 7.5pt !important;
        margin: 0.35rem 0 0 !important;
    }

    .report-signatures {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-top: 0.85rem !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-sign-line {
        margin: 1.1rem 0.5rem 0.25rem !important;
    }

    .report-sign-label {
        font-size: 7.5pt !important;
    }

    .report-generated {
        margin-top: 0.5rem !important;
        padding-top: 0.35rem !important;
        font-size: 7pt !important;
        break-inside: avoid;
    }

    /* Prefer landscape so milk+yogurt columns fit one sheet width */
    @page {
        size: A4 landscape;
        margin: 8mm;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable-th:hover {
    color: var(--shop-blue);
}

.sortable-th-active {
    color: var(--shop-blue);
}

.sortable-th-label {
    vertical-align: middle;
}

.sortable-th-icon {
    vertical-align: middle;
    margin-left: 0.15rem;
    font-size: 1rem !important;
}

/* Checklist return bar (same-window PWA flow) */
.checklist-return-bar {
    position: sticky;
    top: 68px; /* sit under .shop-topbar */
    z-index: 25;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin: 0;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(180deg, #E8F7FC 0%, #F3FAFD 100%);
    border-bottom: 1px solid rgba(0, 150, 199, 0.28);
    box-shadow: 0 6px 18px rgba(6, 38, 54, 0.06);
}
.checklist-return-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.checklist-return-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--shop-muted);
}
.checklist-return-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--shop-ink);
    line-height: 1.25;
}
.checklist-return-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.checklist-return-message {
    flex: 1 1 100%;
    font-size: 0.82rem;
    font-weight: 600;
    color: #B42318;
}

/* —— Mobile PWA chrome —— */
.mobile-bottom-nav {
    display: none;
}

.table-scroll,
.mud-simple-table,
.mud-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 959.98px) {
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        min-height: 56px;
        padding: 0.25rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(201, 226, 236, 0.95);
        box-shadow: 0 -8px 24px rgba(6, 38, 54, 0.08);
    }

    .mobile-nav-item {
        appearance: none;
        border: none;
        background: transparent;
        color: var(--shop-muted);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
        min-height: 48px;
        padding: 0.35rem 0.2rem;
        font-family: inherit;
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.1;
        cursor: pointer;
        border-radius: 12px;
    }

    .mobile-nav-item .mud-icon-root {
        font-size: 1.35rem !important;
    }

    .mobile-nav-item.active {
        color: var(--shop-cyan-deep);
        background: rgba(0, 150, 199, 0.1);
    }

    .shop-main.shop-main-mobile {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .shop-topbar {
        min-height: 56px;
        padding: 0.45rem 0.7rem;
        padding-top: calc(0.45rem + env(safe-area-inset-top, 0px));
        gap: 0.45rem;
    }

    .topbar-left, .topbar-right {
        gap: 0.35rem;
    }

    .topbar-menu.mud-button-root,
    .topbar-menu {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    .topbar-shop-label,
    .topbar-logout-label,
    .topbar-shop-name {
        display: none !important;
    }

    .topbar-shop-switch,
    .topbar-logout {
        min-width: 44px !important;
        min-height: 44px !important;
        padding-inline: 0.55rem !important;
        border-radius: 12px !important;
    }

    .topbar-shop-switch .mud-button-label,
    .topbar-logout .mud-button-label {
        gap: 0 !important;
    }

    .checklist-return-bar {
        top: calc(56px + env(safe-area-inset-top, 0px));
        padding: 0.55rem 0.85rem;
        gap: 0.5rem;
    }

    .checklist-return-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .checklist-return-actions .mud-button-root {
        min-height: 40px;
    }

    .shop-page {
        padding: 0.85rem 0.85rem 1.25rem;
    }

    .shop-page .mud-paper,
    .shop-page .mud-paper.pa-4 {
        padding: 0.85rem !important;
    }

    .shop-page .mud-paper > .mud-stack:not(.flex-row) > .mud-button-root.mud-button-filled {
        width: 100%;
        min-height: 44px;
    }

    .page-hero {
        padding: 1rem 1.05rem;
        border-radius: 16px;
        margin-bottom: 0.9rem;
    }

    .filter-panel {
        padding: 0.75rem !important;
    }

    .mud-input-control,
    .mud-button-root {
        min-height: 44px;
    }

    .mud-icon-button {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (max-width: 600px) {
    .shop-page > .mud-typography-h4,
    .page-head h1 {
        font-size: 1.28rem !important;
    }

    .topbar-user-meta {
        display: none !important;
    }
}


