*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f0f2f5;--fg:#1a1d23;--accent:#3b5bdb;--accent-hover:#2f4ac9;--accent-contrast:#fff;--muted:#6b7280;--border:#d9dde8;--card:#fff;--surface:#f0f2f5;--badge-bg:#eef0f6;--row-hover:#f5f7ff;--row-selected:#e8edff;--row-divider:#eef0f6;--danger:#e03131;--danger-hover:#c92a2a;--input-bg:#fff;--overlay:#00000073;--shadow-card:0 2px 8px #0000000f;--shadow-modal:0 8px 32px #0000002e;--tooltip-bg:#fff;--tooltip-border:#c2c9d6}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#14161a;--fg:#e6e8ec;--accent:#5c7cfa;--accent-hover:#4263eb;--accent-contrast:#fff;--muted:#9aa1ad;--border:#2a2f3a;--card:#1c1f26;--surface:#232733;--badge-bg:#2a2f3a;--row-hover:#20242e;--row-selected:#2b3350;--row-divider:#23262e;--danger:#ff6b6b;--danger-hover:#fa5252;--input-bg:#1c1f26;--overlay:#0009;--shadow-card:0 2px 8px #0000004d;--shadow-modal:0 8px 32px #00000080;--tooltip-bg:#2a2f3a;--tooltip-border:#4a5160}body{background:var(--bg);color:var(--fg);padding:2rem 1.25rem;font-family:system-ui,sans-serif;transition:background .15s,color .15s}.app{max-width:960px;margin:0 auto}h1{color:var(--accent);font-size:1.6rem}h2{align-items:center;gap:.5rem;margin-bottom:1rem;font-size:1rem;font-weight:600;display:flex}.app-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.header-actions{align-items:center;gap:.5rem;display:flex}.layout{grid-template-columns:1fr 320px;gap:1rem;max-width:860px;margin:0 auto;display:grid}@media (width<=640px){.layout{grid-template-columns:1fr}}.card{background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-card);border-radius:8px;padding:1.25rem}.fields{grid-template-columns:1fr 1fr;gap:.65rem;margin-bottom:1rem;display:grid}.full{grid-column:1/-1}label{color:var(--muted);flex-direction:column;gap:.25rem;min-width:0;font-size:.78rem;font-weight:500;display:flex}input{border:1.5px solid var(--border);width:100%;color:var(--fg);background:var(--input-bg);border-radius:5px;padding:.45rem .65rem;font-size:.9rem}input:focus{border-color:var(--accent);outline:none}.actions{gap:.5rem;display:flex}button{cursor:pointer;border:none;border-radius:5px;padding:.45rem 1rem;font-size:.85rem;font-weight:500}button.primary{background:var(--accent);color:var(--accent-contrast)}button.primary:hover{background:var(--accent-hover)}button.primary:disabled{opacity:.4;cursor:not-allowed}button.ghost{color:var(--muted);border:1.5px solid var(--border);background:0 0}button.ghost:hover{background:var(--surface)}button.danger{background:var(--danger);color:var(--accent-contrast)}button.danger:hover{background:var(--danger-hover)}button.small{padding:.3rem .7rem;font-size:.78rem}.badge{background:var(--badge-bg);color:var(--accent);border-radius:99px;padding:.1em .45em;font-size:.72rem;font-weight:600}table{border-collapse:collapse;width:100%;font-size:.88rem}th{text-align:left;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;border-bottom:1.5px solid var(--border);padding:.4rem .9rem;font-size:.72rem;font-weight:600}td{border-bottom:1px solid var(--row-divider);padding:.6rem .9rem}tbody tr{cursor:pointer;transition:background .1s}tbody tr:last-child td{border-bottom:none}.row-edit{all:unset;cursor:pointer;width:100%;font:inherit;color:inherit;display:block}.row-edit:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}tbody tr:hover{background:var(--row-hover)}tbody tr.selected td{background:var(--row-selected)}tbody tr.selected td:first-child{border-left:3px solid var(--accent);padding-left:calc(.9rem - 3px)}.status{color:var(--muted);padding:.5rem 0;font-size:.9rem}.status.error{color:var(--danger)}.grid-empty{color:var(--muted);text-align:center;padding:1.25rem .9rem}.tabs{align-items:center;max-width:960px;margin:0 auto 1.5rem;display:flex}.tabs__links{gap:.5rem;display:flex}.tab{border:1.5px solid var(--border);color:var(--muted);cursor:pointer;background:0 0;border-radius:5px;padding:.4rem 1.2rem;font-size:.88rem;font-weight:500;text-decoration:none;transition:background .1s,color .1s}.tab:not(.tab--active):hover{background:var(--surface)}.tab--active{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}.tab--active:hover{background:var(--accent-hover)}.tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.switchers{gap:0;margin-left:auto;display:flex}.switchers>:last-child{margin-right:calc(-.5rem - 1.5px)}.icon-switcher{display:inline-flex;position:relative}.icon-switcher__trigger{color:var(--muted);cursor:pointer;background:0 0;border:1.5px solid #0000;border-radius:5px;justify-content:center;align-items:center;padding:.35rem .5rem;line-height:1;display:inline-flex;position:relative}.icon-switcher__trigger:hover{background:var(--surface)}.icon-switcher__trigger:focus-visible{border-color:var(--accent);outline:none}.icon-switcher__trigger[data-tooltip]:after{content:attr(data-tooltip);white-space:nowrap;color:var(--fg);background:var(--tooltip-bg);border:1px solid var(--tooltip-border);box-shadow:var(--shadow-card);opacity:0;pointer-events:none;z-index:1200;border-radius:4px;padding:.3rem .6rem;font-size:.85rem;transition:opacity .12s;position:absolute;top:calc(100% + .4rem);right:0}.icon-switcher__trigger[data-tooltip]:hover:after,.icon-switcher__trigger[data-tooltip]:focus-visible:after{opacity:1;transition-delay:.8s}.icon-switcher__trigger[aria-expanded=true]:after{content:none}.flag{width:1.25rem;height:auto;box-shadow:0 0 0 1px var(--border);border-radius:2px;display:block}.theme-icon{width:1.2rem;height:1.2rem;display:block}.icon-menu{z-index:1100;background:var(--card);border:1px solid var(--border);min-width:11rem;box-shadow:var(--shadow-card);border-radius:6px;margin:0;padding:.3rem;list-style:none;position:absolute;top:calc(100% + .35rem);right:0}.icon-menu__item{color:var(--fg);cursor:pointer;border-radius:4px;align-items:center;gap:.6rem;padding:.4rem .55rem;font-size:.85rem;display:flex}.icon-menu__item:hover{background:var(--surface)}.icon-menu__item:focus-visible{background:var(--surface);outline:none}.icon-menu__item[aria-selected=true]{color:var(--accent);font-weight:600}.avatar{border-radius:50%;justify-content:center;align-items:center;width:1.55rem;height:1.55rem;display:inline-flex}.avatar svg{width:.95rem;height:.95rem;display:block}.avatar--admin{color:#cf4a40;background:#d04a4033}.avatar--user{color:#2e9e5e;background:#2e9e5e33}.avatar--keeper{color:#3a82dc;background:#3a82dc38}.icon-menu__header{border-bottom:1px solid var(--border);color:var(--fg);flex-direction:column;gap:.1rem;margin-bottom:.25rem;padding:.4rem .55rem .5rem;font-size:.85rem;font-weight:600;display:flex}.icon-menu__sub{color:var(--muted);font-size:.75rem;font-weight:400}.icon-menu__item--disabled{opacity:.5;cursor:not-allowed}.icon-menu__item--disabled:hover{background:0 0}.password-notice{background:var(--surface);border:1px solid var(--accent);border-radius:6px;justify-content:space-between;align-items:center;gap:1rem;margin:0 0 1rem;padding:.6rem .9rem;font-size:.9rem;display:flex}.password-notice__close{color:var(--muted);cursor:pointer;background:0 0;border:none;font-size:1.2rem;line-height:1}.row-actions{gap:.4rem;display:flex}.badge--ok{background:var(--accent)}.badge--off{background:var(--muted)}tr.row--disabled td{opacity:.55}tr.row--readonly{cursor:default}.layout--orders{grid-template-columns:1fr 440px}select{border:1.5px solid var(--border);width:100%;color:var(--fg);background:var(--input-bg);cursor:pointer;border-radius:5px;padding:.45rem .65rem;font-size:.9rem}select:focus{border-color:var(--accent);outline:none}.order-form .items-table{width:100%;margin:.75rem 0;font-size:.88rem}.order-form .items-table th{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;border-bottom:1.5px solid var(--border);text-align:left;padding:.3rem .5rem;font-size:.72rem;font-weight:600}.order-form .items-table td{border-bottom:1px solid var(--row-divider);vertical-align:middle;padding:.3rem .5rem}.order-form .items-table select{font-size:.85rem}.order-form .qty-cell input{width:5rem}.order-footer{justify-content:space-between;align-items:center;margin:.5rem 0 .75rem;display:flex}.order-total{color:var(--accent);font-size:.9rem;font-weight:600}.modal-backdrop{background:var(--overlay);z-index:1000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-panel{background:var(--card);box-shadow:var(--shadow-modal);border-radius:10px;width:min(480px,100vw - 2rem);max-height:calc(100vh - 4rem);padding:1.5rem;overflow-y:auto}.modal-panel--wide{width:min(600px,100vw - 2rem)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;transition-delay:0s!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
