.theme-toggle{margin-left:auto;white-space:nowrap}.account .theme-toggle{margin-left:0}.product-photos{display:flex;gap:12px;flex-wrap:wrap}.product-photos img{width:150px;height:150px;object-fit:contain;border-radius:10px}.catalog-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}
:root[data-theme=dark]{color-scheme:dark;--muted:#afb7c4;--line:#39414c;--soft:#262e38;--bg:#161c24;--text:#edf1f7;--card:#202732;--border:#39414c;background:#161c24;color:#edf1f7}
[data-theme=dark] body,[data-theme=dark] main{background:#161c24;color:#edf1f7}
[data-theme=dark] header,[data-theme=dark] dialog,[data-theme=dark] .panel,[data-theme=dark] .card,[data-theme=dark] .stock-options,[data-theme=dark] details,[data-theme=dark] .task-card{background:#202732;color:#edf1f7;border-color:#39414c}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] button{background:#29323e;color:#edf1f7;border-color:#46515e}
[data-theme=dark] button:hover,[data-theme=dark] .stock-option:hover,[data-theme=dark] [aria-selected=true]{background:#3c495a}
[data-theme=dark] .primary,[data-theme=dark] button[aria-current=true]{background:#dce5f1;color:#18202c;border-color:#dce5f1}
[data-theme=dark] a,[data-theme=dark] .brand,[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3{color:#edf1f7}
[data-theme=dark] .notice{background:#40392c;color:#f0dcb4}[data-theme=dark] label,[data-theme=dark] small,[data-theme=dark] th{color:#afb7c4}
@media print{[data-theme=dark] body,[data-theme=dark] main,[data-theme=dark] table,[data-theme=dark] td,[data-theme=dark] th{background:white!important;color:black!important}.theme-toggle{display:none}}

.photo-preview{max-width:100%;max-height:300px;object-fit:contain;border-radius:12px}
[data-theme=dark] .stock-toolbar,[data-theme=dark] .place-branch,[data-theme=dark] .place-branch .place-branch,[data-theme=dark] .filters{background:#202732;border-color:#39414c}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#aeb7c5}
[data-theme=dark] dialog .close{background:#29323e!important;color:#edf1f7!important;border-color:#46515e!important}

.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.dashboard-card{display:block;padding:26px;border:1px solid #dce1e7;border-radius:18px;background:#f6f7f9;color:inherit;text-decoration:none;transition:transform .15s,border-color .15s;min-height:210px}.dashboard-card:hover{transform:translateY(-2px);border-color:#59697b}.dashboard-card:focus-visible{outline:3px solid #437dcc}.dashboard-card h2{margin:0 0 18px;font-size:24px}.dashboard-number{font-size:24px;font-weight:700;margin:12px 0}.dashboard-warning{color:#b83232;font-weight:600}.dashboard-body p{line-height:1.5}.global-settings{display:inline-flex;align-items:center;justify-content:center;font-size:23px;color:inherit;text-decoration:none;padding:10px}.history-link{margin-left:auto;color:inherit}body:has(#workspace[hidden]) .global-settings{display:none}[data-theme=dark] .dashboard-card{background:#212a35;border-color:#46515e}[data-theme=dark] .dashboard-warning{color:#ff9a9a}@media(max-width:720px){.dashboard-grid{grid-template-columns:1fr}.dashboard-card{min-height:170px;padding:22px}}@media print{.global-settings,.history-link{display:none}.dashboard-card{break-inside:avoid;background:white!important;color:black!important}}

[data-theme="dark"] .payment-paid{color:#81ddb4}[data-theme="dark"] .payment-expired{color:#ffa0a9}[data-theme="dark"] .payment-waiting{color:#ffd671}
