.topbar { display: block; min-height: 0; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.topbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: min(1040px, 100%); margin: 0 auto; }
.topbar-title { display: grid; gap: 2px; min-width: 0; line-height: 1.15; }
.topbar-title span { color: #6e7078; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.topbar-title strong { overflow: hidden; color: #17171a; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.date-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.88); border-radius: 21px; background: rgba(255,255,255,.58); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(30,30,38,.04), 0 5px 18px rgba(30,30,38,.1); color: #17171a; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .22s cubic-bezier(.2,.9,.2,1.25), background-color .18s ease, box-shadow .18s ease; }
.date-link:hover { background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(30,30,38,.13); transform: translateY(-1px); }
.date-link:active { transform: scale(.96); }
.date-link:focus-visible { outline: 3px solid rgba(207,36,52,.3); outline-offset: 3px; }
.date-link svg { width: 17px; height: 17px; color: #b52232; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 30px 0 16px; }
.admin-view { animation: admin-view-in .38s cubic-bezier(.2,.8,.2,1); }
.admin-view[hidden] { display: none !important; }
.admin-view.notification-settings, .admin-view.waste-section { margin-top: 0; }
.admin-view.waste-section { padding-top: 0; border-top: 0; }
@keyframes admin-view-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.admin-toolbar .search { flex: 1; }
.admin-toolbar .search input { width: min(420px, 100%); }
.admin-toolbar > span { color: #6b6e75; font-size: 13px; font-weight: 700; }
.product-list { display: grid; gap: 9px; }
.product-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 17px; border: 1px solid #d8d5ce; border-radius: 7px; background: #fff; }
.product-card h3 { margin: 0; font-size: 18px; }
.product-card p { margin: 6px 0 0; color: #696c74; font-size: 13px; }
.barcode-number { display: inline-block; margin-top: 8px; padding: 4px 7px; border-radius: 4px; background: #eeeae3; color: #34363d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.barcode-preview { display: inline-grid; justify-items: center; gap: 3px; max-width: 190px; margin-top: 10px; padding: 7px 9px 5px; border: 1px solid rgba(25,25,30,.09); border-radius: 6px; background: #fff; }
.barcode-preview svg { display: block; width: auto; max-width: 170px; height: 25px; }
.barcode-preview span { color: #54565d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1; }
.barcode-preview-error svg { display: none; }
.product-actions { display: flex; gap: 7px; }
.product-actions button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid #cbc7bf; border-radius: 6px; background: #fff; font-weight: 700; }
.product-actions .delete-product { color: #a91f2c; }
.notification-settings { margin-top: 36px; padding: 22px; border: 1px solid rgba(255,255,255,.82); border-radius: 22px; background: rgba(255,255,255,.68); box-shadow: inset 0 1px 0 #fff, 0 9px 28px rgba(30,30,38,.08); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px); }
.section-heading > svg { width: 28px; height: 28px; color: #b52232; }
.settings-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) auto; align-items: end; gap: 14px; margin-top: 18px; }
.switch-setting { display: flex; align-items: center; min-height: 46px; padding: 0 13px; border: 1px solid #c9c5bc; border-radius: 12px; background: rgba(255,255,255,.72); }
.switch-setting input { width: 20px; min-height: 20px; margin: 0 10px 0 0; accent-color: #cf2434; }
.settings-help { margin: 13px 0 0; color: #6b6e75; font-size: 12px; }
.settings-actions { display: flex; gap: 8px; }
.settings-actions button { white-space: nowrap; }
.waste-section { margin-top: 54px; padding-top: 34px; border-top: 1px solid #d4d0c8; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.waste-total { display: grid; justify-items: end; }
.waste-total span { font-size: 28px; font-weight: 850; }
.waste-total small { color: #6b6e75; }
.waste-toolbar { display: flex; gap: 10px; margin: 20px 0 12px; }
.waste-toolbar .search { flex: 1; }
.waste-toolbar .search input { width: 100%; }
.waste-toolbar select { width: auto; min-width: 180px; }
.waste-list { display: grid; gap: 8px; }
.waste-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 15px 17px; border: 1px solid #d8d5ce; border-radius: 7px; background: #fff; }
.waste-row h3 { margin: 0; font-size: 16px; }
.waste-row p { margin: 5px 0 0; color: #6b6e75; font-size: 12px; }
.waste-employee { color: #44474e; font-size: 13px; font-weight: 700; }
.waste-quantity { min-width: 76px; text-align: right; }
.waste-quantity strong { display: block; font-size: 21px; }
.waste-quantity small { color: #6b6e75; }
.admin-bottom-nav { position: fixed; z-index: 20; right: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(76px, 1fr)); width: min(350px, calc(100% - 24px)); padding: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.86); border-radius: 24px; background: rgba(242,242,247,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 12px 36px rgba(25,25,32,.18); transform: translateX(50%); -webkit-backdrop-filter: saturate(190%) blur(28px); backdrop-filter: saturate(190%) blur(28px); }
.admin-bottom-nav::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border: 1px solid rgba(255,255,255,.92); border-radius: 18px; background: rgba(255,255,255,.76); box-shadow: inset 0 1px 0 #fff, 0 5px 16px rgba(28,28,34,.12); transform: translateX(calc(var(--active-index) * 100%)); transition: transform .46s cubic-bezier(.22,1.18,.36,1); }
.admin-bottom-nav a { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 3px; min-height: 52px; border-radius: 18px; color: #6b6b73; font-size: 10px; font-weight: 750; text-decoration: none; transition: color .22s ease, transform .28s cubic-bezier(.2,.9,.2,1.3); -webkit-tap-highlight-color: transparent; }
.admin-bottom-nav a.active { color: #a91f2c; }
.admin-bottom-nav a:active { transform: scale(.9); }
.admin-bottom-nav svg { width: 20px; height: 20px; stroke-width: 2; }
@media (max-width: 620px) { .waste-toolbar { flex-direction: column; } .waste-toolbar select { width: 100%; } .waste-row { grid-template-columns: minmax(0, 1fr) auto; } .waste-employee { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 560px) { .topbar { padding-right: max(11px, env(safe-area-inset-right)); padding-left: max(11px, env(safe-area-inset-left)); } .topbar-inner { gap: 9px; } .home-link { width: 42px; height: 42px; border-radius: 12px; } .topbar-title strong { font-size: 14px; } .date-link { min-height: 40px; padding: 0 12px; font-size: 12px; } .admin-toolbar { align-items: stretch; flex-direction: column; } .product-card { grid-template-columns: 1fr; } .product-actions button { flex: 1; } .settings-row { grid-template-columns: 1fr; } .settings-actions button { flex: 1; } .app-shell { padding-bottom: 118px; } }

@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .date-link { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .product-actions {
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 12px;
    background: rgba(246, 245, 241, .68);
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(28, 30, 36, .05), 0 9px 24px rgba(28, 30, 36, .1);
    -webkit-backdrop-filter: saturate(175%) blur(18px);
    backdrop-filter: saturate(175%) blur(18px);
  }
  .product-actions button { border-radius: 9px; }
}
