/* ===== 1. ОСНОВА СТРАНИЦЫ ===== */*{box-sizing:border-box}html,body{margin:0;padding:0;max-width:100%;min-height:100%;overflow-x:hidden}body{font-family:Arial,sans-serif;background:#f3f3f3;color:#111}button,input,select,textarea{font:inherit;outline:none}button{cursor:pointer}button,a,.admin-menu button,.admin-shortcuts button,.side-bottom button,.admin-tabs button,.mobile-admin-tools button,.bottom-nav button,.mobile-bottom-nav a{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;outline:none;caret-color:transparent}button:focus,button:active,a:focus,a:active{outline:none!important;box-shadow:none!important}

/* ===== 2. КАРКАС АДМИНКИ ===== */.admin{display:flex;min-height:100vh;background:#fff}.admin-side{width:280px;background:#f8f8f8;border-right:1px solid #e5e5e5;flex-shrink:0;display:flex;flex-direction:column}.admin-main{flex:1;min-width:0;padding:36px 38px;overflow:auto;background:#fff}.admin-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:28px}.admin-top h1{margin:0;font-size:30px;font-weight:900;letter-spacing:-.03em}.back-btn{border:1px solid #111;background:#fff;padding:12px 18px;border-radius:4px;font-weight:800;cursor:pointer;white-space:nowrap}.back-btn:hover{background:#111;color:#fff}

/* ===== 3. ПРОФИЛЬ СЛЕВА ===== */.profile{padding:28px 22px;border-bottom:1px solid #ddd}.profile-top{display:flex;align-items:center;gap:14px}.avatar{width:56px;height:56px;border-radius:50%;background:#e5e5e5;color:#777;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;flex:0 0 auto}.name{font-size:20px;font-weight:900;line-height:1.1}.user-id{font-size:13px;color:#666;margin-top:4px}

/* ===== 4. ДЕПОЗИТ / ИНФО СЛЕВА ===== */.deposit{margin-top:20px;border:1px solid #ddd;background:#fff;border-radius:10px;padding:18px}.deposit span{font-size:14px;color:#666}.deposit b{display:block;font-size:28px;margin:12px 0;font-weight:900}.deposit button{background:#111;color:#fff;border:0;padding:10px 18px;border-radius:8px;font-weight:800;transition:.2s}.deposit button:hover{opacity:.9}

/* ===== 5. БОКОВОЕ МЕНЮ ===== */.admin-menu{display:flex;flex-direction:column;gap:4px;padding:20px 18px}.admin-shortcuts{padding:0 18px 14px;display:flex;flex-direction:column;gap:8px}.admin-menu button,.admin-shortcuts button,.side-bottom button{width:100%;border:0;background:transparent;padding:16px 18px;text-align:left;font-size:16px;color:#4b5563;display:flex;align-items:center;gap:12px;border-radius:14px;transition:all .2s ease;font-weight:500}.admin-menu button.active,.admin-shortcuts button.active{background:#f3ecff;color:#7c3aed;font-weight:800}.admin-menu button:hover,.admin-shortcuts button:hover,.side-bottom button:hover{background:#f8f5ff;color:#7c3aed}.admin-menu hr{width:100%;border:0;border-top:1px solid #ddd;margin:12px 0}.side-bottom{margin-top:auto;border-top:1px solid #ddd;padding:14px 18px 22px;display:flex;flex-direction:column;gap:6px}.admin-exit-btn{color:#e11d48!important}

/* ===== 6. МОБИЛЬНЫЕ КНОПКИ ===== */.admin-tabs{display:none!important}.mobile-admin-tools{display:none}

/* ===== 7. КНОПКИ И ПОЛЯ ===== */.field,input,select,textarea{border:1px solid #ddd;background:#fff;border-radius:14px;padding:0 14px}.primary-btn,.secondary-btn,.danger-btn,.ghost-btn{height:46px;border:0;border-radius:14px;font-weight:800;padding:0 16px}.primary-btn{background:#111;color:#fff}.secondary-btn,.ghost-btn{background:#f5f5f7;color:#111}.danger-btn{background:#fff1f2;color:#e11d48}

/* ===== 8. СТАТИСТИКА ЗАКАЗОВ ===== */.order-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.stat-item{height:110px;background:#fff;border:1px solid #ececf2;border-radius:24px;box-shadow:0 4px 18px rgba(0,0,0,.04);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;cursor:pointer;transition:.15s}.stat-item:hover{background:#fafafa}.stat-item b{display:block;font-size:42px;color:#111;font-weight:900;line-height:1}.stat-item span{display:block;font-size:13px;color:#6b7280;font-weight:600}.stat-item.active b{color:#e11d48}.stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin:18px 0}.stats-grid .stat-item{height:110px;border:1px solid #ececf2;border-radius:22px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}

/* ===== 9. ФИЛЬТРЫ И ПОИСК ===== */.filters{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}.filters button{height:44px;border:1px solid #ddd;background:#fff;padding:0 18px;border-radius:10px;font-weight:800}.filters button.active{background:#111;color:#fff}.date-row{display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:14px}.date-row button{height:44px;padding:0 18px;border:1px solid #e5e7eb;background:#fff;border-radius:14px;font-weight:800;flex:1!important;min-width:0!important}.date-row span,.date-separator{flex:0 0 auto!important;width:12px!important;text-align:center!important;font-size:16px!important;line-height:1!important;color:#666!important;margin:0!important;padding:0!important}.search-row{display:flex;align-items:center;height:50px;background:#fff;border:1px solid #ddd;border-radius:14px;max-width:520px;margin-bottom:18px}.search-row input{flex:1;height:100%;border:0;background:transparent;padding:0 16px;font-size:15px}.search-row button{width:50px;height:50px;border:0;background:transparent;font-size:18px}.filters-box{background:#fff;border:1px solid #ececf2;border-radius:20px;padding:18px 20px;margin:16px 0}.filters-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr 1fr auto;gap:14px;align-items:end}.filter-item label{display:block;font-size:13px;font-weight:700;color:#222;margin-bottom:7px}.filter-item input,.filter-item select{width:100%;height:46px;border:1px solid #e7e7ef;border-radius:12px;padding:0 14px;font-size:15px;background:#fff}.filter-actions{display:flex;align-items:center;gap:12px;padding-top:20px}.apply-btn{height:46px;padding:0 20px;border:none;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff;font-size:15px;font-weight:700;cursor:pointer;white-space:nowrap}.reset-btn{background:none;border:none;color:#6d28d9;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}

/* ===== 10. МАССОВЫЕ ДЕЙСТВИЯ ===== */.bulk-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;font-size:14px}.bulk-actions button{height:42px;border:1px solid #ddd;background:#fff;border-radius:12px;padding:0 16px;font-weight:700}.bulk-actions button:hover{background:#f8f5ff;color:#7c3aed}.bulk-status-select{height:42px;border:1px solid #ddd;background:#fff;border-radius:12px;padding:0 12px;font-size:13px;font-weight:800;color:#444;min-width:120px}

/* ===== 11. ТАБЛИЦА ЗАКАЗОВ ===== */.orders-table{width:100%;background:#fff;border:1px solid #ececf2;border-radius:18px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.04)}.orders-table .thead,.orders-table .order-row{display:grid;grid-template-columns:40px 70px 90px 60px 1fr 120px 150px!important;align-items:center;gap:8px}.orders-table .thead{font-weight:800;font-size:12px;padding:12px 14px;border-bottom:1px solid #eee;background:#fafafa;color:#555}.orders-table .thead span{padding:0}.orders-table .order-row{min-height:58px;padding:10px 14px;border-bottom:1px solid #f1f1f1;font-size:13px}.orders-table .order-row:last-child{border-bottom:0}.orders-table .order-row span{padding:0;min-width:0}.orders-table .order-row b{font-size:13px}.orders-table .order-row small{font-size:11px;color:#666}.order-price{text-align:left!important;padding-left:8px!important;font-weight:800;white-space:nowrap}.actions{display:flex;align-items:center;justify-content:flex-end!important;gap:6px}.actions button{width:28px;height:28px;border:none;border-radius:9px;background:#f6f0ff;color:#6d28d9;cursor:pointer;display:flex;align-items:center;justify-content:center}.actions button:hover{background:#f3ecff}

/* ===== 12. СТАТУСЫ BADGE ===== */.badge{display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}.badge.wait{background:#fff7ed;color:#f97316}.badge.build{background:#eef4ff;color:#2563eb}.badge.delivery{background:#f3e8ff;color:#7c3aed}.badge.done{background:#dcfce7;color:#16a34a}.badge.paid{background:#eaf2ff;color:#2563eb}.order-status-text{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:#f5f5f7;color:#555;font-size:12px;font-weight:700;margin-top:6px}.order-top-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-top-line .badge{margin:0!important;white-space:nowrap}.status-select{height:32px;border:1px solid #e5e7eb;border-radius:10px;padding:0 10px;font-size:12px;font-weight:700;background:#fff;min-width:140px}

/* ===== 13. ПАГИНАЦИЯ ===== */.pager{display:flex;align-items:center;justify-content:center;gap:6px;padding:18px 0}.pager button{width:42px;height:42px;border-radius:10px;background:#fff;border:1px solid #ddd;font-weight:800}.pager button.active{background:#111;color:#fff}.mini-pager{display:flex;justify-content:center;gap:8px;padding:16px}.mini-pager button{width:36px;height:36px;border:none;border-radius:10px;background:#f3f4f6;font-weight:700;cursor:pointer}.mini-pager button.active{background:#7c3aed;color:#fff}

/* ===== 14. СТРАНИЦЫ / КАРТОЧКИ ===== */.admin-card,.info-card,.info-profile-card,.admin-profile-card,.admin-profile-head,.system-card,.admin-system{background:#fff;border:1px solid #ececf2;border-radius:24px;padding:24px;box-shadow:0 4px 18px rgba(0,0,0,.04)}.info-page,.admin-profile-page{display:flex;flex-direction:column;gap:18px}.info-profile-card,.admin-profile-head{display:flex;align-items:center;gap:24px;position:relative;min-height:150px}.info-avatar{width:110px;height:110px;border-radius:50%;background:linear-gradient(135deg,#efe8ff,#d8c7ff);display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:800;color:#6d35e8;flex:0 0 auto}.info-avatar-wrap{position:relative;flex:0 0 auto}.avatar-camera{position:absolute;right:2px;bottom:4px;width:34px;height:34px;border:none;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.12);cursor:pointer}.profile-login{margin:0;font-size:25px;font-weight:900;line-height:1;color:#111827}.profile-main-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.profile-reg-date{font-size:12px;color:#6b7280;white-space:nowrap}.profile-reg-date b{color:#111827;font-weight:800}.client-type{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;letter-spacing:.14em;color:#667085;text-transform:uppercase}.client-badge{width:9px;height:9px;border-radius:50%;display:inline-block}.client-badge.bronze{background:#c96a1b}.client-badge.silver{background:#9ca3af}.client-badge.gold{background:#f59e0b}.client-badge.platinum{background:#7c3aed}.info-row.editable,.admin-profile-row{display:grid;grid-template-columns:140px 1fr 42px;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #f1f1f4}.info-row.editable:last-child,.admin-profile-row:last-child{border-bottom:none}.info-row.editable span,.admin-profile-row span{display:flex;align-items:center;gap:8px;color:#4b5563}.info-row.editable b,.admin-profile-row b{justify-self:end;text-align:right;white-space:nowrap}.info-row.editable button,.admin-profile-row button{width:38px;height:38px;border:none;border-radius:50%;background:#f5f5f7;display:flex;align-items:center;justify-content:center;font-size:0;cursor:pointer}.info-row.editable button::before,.admin-profile-row button::before{content:'✎';font-size:16px;color:#7c3aed}.profile-logout-btn{position:absolute;top:18px;right:18px;width:42px;height:42px;border:none;border-radius:14px;background:#f5f5f7;display:flex;align-items:center;justify-content:center}.profile-logout-btn svg{width:22px;height:22px;stroke:#7c3aed;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.system-card h3,.admin-system h3,.info-card.system h3{margin:0 0 18px;font-size:20px;font-weight:900}.system-card p,.admin-system p,.info-card.system p{margin:10px 0 18px;color:#4b5563;font-size:15px;line-height:1.35}.system-card button,.admin-system button,.info-card.system button{height:42px;border:0;border-radius:14px;background:#f5f5f7;color:#7c3aed;padding:0 16px;font-weight:800}.system-card button:hover,.admin-system button:hover,.info-card.system button:hover{background:#f3ecff}.security-row,.password-row{display:grid;grid-template-columns:140px 1fr 42px;align-items:center;gap:12px;padding:18px 0}.security-row button,.password-row button,.security-edit{width:38px;height:38px;border:none;border-radius:50%;background:#f5f5f7;display:flex;align-items:center;justify-content:center;font-size:0;cursor:pointer;flex:0 0 38px}.security-row button::before,.password-row button::before,.security-edit::before{content:'✎';font-size:16px;color:#7c3aed}

/* ===== 15. ЗАКАЗЫ ДВА СТОЛБЦА ===== */.orders-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.orders-panel{background:#fff;border:1px solid #e8e8ef;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(20,20,40,.04)}.orders-panel-title{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800;padding:18px 20px;border-bottom:1px solid #eee}.orders-panel-title b{background:#eee7ff;color:#5b21b6;border-radius:999px;padding:4px 10px;font-size:12px}.orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;flex-wrap:wrap}.orders-toolbar-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.orders-toolbar h2{margin:0}.new-order-btn{height:46px;border-radius:12px;border:none;padding:0 22px;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff}.mobile-order-tabs,.mobile-orders-table{display:none}

/* ===== 16. МОДАЛКИ ПРОФИЛЯ ===== */.profile-modal{position:fixed;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:99999;padding:20px}.profile-modal-box{width:100%;max-width:420px;background:#fff;border-radius:28px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.16)}.profile-modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.profile-modal-top h3{margin:0;font-size:24px}.profile-modal-top button{width:40px;height:40px;border:none;border-radius:50%;background:#f3f4f6;font-size:18px}.profile-form{display:flex;flex-direction:column;gap:10px}.profile-form label{font-size:14px;font-weight:700;color:#374151}.profile-form input{height:50px;border:1px solid #e5e7eb;border-radius:14px;padding:0 16px;font-size:15px}.profile-form input:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.1)}.profile-modal-actions{display:flex;gap:12px;margin-top:18px}.cancel-btn,.save-btn{flex:1;height:48px;border:none;border-radius:14px;font-weight:700}.cancel-btn{background:#f3f4f6}.save-btn{background:#7c3aed;color:#fff}

/* ===== 17. МОДАЛКА ЗАКАЗА ===== */body .order-modal{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(15,23,42,.58)!important;backdrop-filter:blur(4px)!important;z-index:999999!important;padding:18px!important}body .order-modal *{box-sizing:border-box}body .order-modal .order-modal-box{width:100%!important;max-width:760px!important;background:#fff!important;border-radius:32px!important;padding:28px!important;box-shadow:0 30px 80px rgba(88,56,255,.12)!important;border:1px solid #ecebff!important;margin:auto!important}body .order-modal .order-modal-top{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:22px!important}body .order-modal .order-modal-top h2{margin:0!important;font-size:38px!important;font-weight:900!important;letter-spacing:-1px!important;color:#111}body .order-modal .order-modal-top button{width:46px!important;height:46px!important;border:none!important;border-radius:16px!important;background:#f5f3ff!important;color:#7c3aed!important;font-size:22px!important;font-weight:700!important}body .order-modal .order-modal-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important}body .order-modal .order-modal-grid div{display:flex!important;flex-direction:column!important;gap:8px!important}body .order-modal .order-modal-grid span{font-size:13px!important;font-weight:700!important;color:#6b7280!important;padding-left:4px}body .order-modal input,body .order-modal select,body .order-modal textarea{display:block!important;width:100%!important;background:#fafafe!important;border:1px solid #e9e7ff!important;border-radius:18px!important;font-size:15px!important;color:#111!important}body .order-modal input,body .order-modal select{height:52px!important;padding:0 16px!important}body .order-modal textarea{height:52px!important;min-height:52px!important;padding:14px 16px!important;resize:none!important}body .order-modal .order-modal-section{margin-top:22px!important}body .order-modal .order-modal-section h3{margin:0 0 12px!important;font-size:28px!important;font-weight:900!important}body .order-modal .order-modal-actions{display:flex!important;gap:12px!important;margin-top:24px!important}body .order-modal .order-modal-actions button{height:52px!important;padding:0 24px!important;border:none!important;border-radius:18px!important;font-size:15px!important;font-weight:800!important}body .order-modal .order-modal-actions button:first-child{background:linear-gradient(135deg,#7c3aed,#8b5cf6)!important;color:#fff!important}body .order-modal .order-modal-actions .danger{background:#f4f4f5!important;color:#111!important}

/* ===== 18. ТОВАРЫ В ЗАКАЗЕ ===== */.new-item-row{display:grid;grid-template-columns:1.2fr 1.4fr 140px 120px 52px;gap:10px;align-items:end}.new-item-row button{height:46px;border:none;border-radius:12px;background:#7c3aed;color:#fff;font-weight:900}.qty-wrap{display:flex;flex-direction:column}.qty-wrap label{font-size:13px;font-weight:700;margin-bottom:6px;color:#666}.new-items-list{display:flex;flex-direction:column;gap:4px!important;margin-top:6px!important}.new-order-summary{display:flex;justify-content:flex-end;margin-top:10px}.summary-box{display:flex;gap:28px;align-items:center;background:#fafafa;border:1px solid #ececf3;padding:16px 22px;border-radius:18px}.summary-box div{display:flex;gap:10px;align-items:center}.summary-box span{font-size:14px;color:#666}.summary-box strong{font-size:24px;font-weight:900}.summary-box.small{display:flex;align-items:center;gap:16px;background:#fafafa;border:1px solid #ececf3;padding:7px 12px!important;border-radius:14px;font-size:12px;max-width:max-content}.summary-box.small div{display:flex;align-items:center;gap:7px}.summary-box.small span{font-size:12px;color:#777}.summary-box.small strong{font-size:15px!important;font-weight:900}.summary-box.small div+div{border-left:1px solid #ddd;padding-left:16px}.wm-weight-row{display:grid!important;grid-template-columns:70px 1fr 95px 110px 28px 28px!important;gap:5px!important;align-items:center!important;padding:3px 6px!important;min-height:30px!important;border:1px solid #ececf2!important;border-radius:8px!important;background:#fafafa!important}.wm-weight-row b{font-size:12px!important;font-weight:800!important}.wm-weight-row span{font-size:13px!important;line-height:1.1!important}.cur-weight{font-size:11px!important;color:#666!important}.cur-weight strong{font-size:12px!important;color:#111!important}.new-weight{display:flex!important;align-items:center!important;gap:4px!important;font-size:11px!important;color:#666!important}.new-weight input{width:74px!important;min-width:74px!important;height:24px!important;border:1px solid #ddd!important;border-radius:7px!important;padding:0 8px!important;font-size:13px!important;background:#fff!important}.wm-weight-row button{width:23px!important;height:23px!important;border:0!important;border-radius:6px!important;font-size:10px!important}.save-weight{background:#ede9fe!important;color:#6d28d9!important}.del-weight{background:#ffe8ee!important;color:#ff3b6b!important}.wm-weight-row.pending{border-left:4px solid #ffb300!important}.wm-weight-row.ready{border-left:4px solid #22c55e!important}

/* ===== 19. ПОИСК ТОВАРА / КЛИЕНТА ===== */.product-search-wrap,.client-search-wrap{position:relative}.product-suggest,.client-suggest{position:absolute;left:0;right:0;top:58px;background:#fff;border:1px solid #e9e7ff;border-radius:16px;box-shadow:0 16px 40px rgba(0,0,0,.12);z-index:1000000;overflow:hidden}.product-suggest button,.client-suggest button{width:100%;min-height:52px;padding:10px 12px;border:none;background:#fff;display:grid;grid-template-columns:90px 1fr 100px;gap:8px;text-align:left;align-items:center}.product-suggest button:hover,.client-suggest button:hover{background:#f5f3ff}.product-suggest b,.product-suggest span,.product-suggest em,.client-suggest b,.client-suggest span,.client-suggest em{font-size:13px;color:#111;display:block}.product-suggest em,.client-suggest em{font-style:normal;text-align:right;color:#7c3aed;font-weight:800}.product-empty,.client-empty{padding:12px;color:#777;font-size:13px}body .order-modal .product-suggest{background:#fff!important;z-index:10000000!important;width:calc(100vw - 88px)!important;max-width:700px!important;left:0!important;top:58px!important}

/* ===== 20. ПРОСМОТР ЗАКАЗА ===== */.view-box{max-width:920px!important;padding:28px 30px!important}.view-box .order-modal-top{margin-bottom:18px}.view-box .order-modal-top h2{font-size:36px!important}.view-box h3{font-size:18px!important;margin:18px 0 10px!important;font-weight:900!important}.view-head{display:grid;grid-template-columns:1fr 130px 90px;gap:12px;background:#fafafa;border:1px solid #ececf2;border-radius:16px;padding:12px 14px;margin-bottom:16px}.view-head span{display:block;font-size:11px;color:#777;margin-bottom:3px}.view-head b{font-size:14px;font-weight:800}.view-items{border:1px solid #eee;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.03)}.view-row{display:grid;grid-template-columns:100px 1fr 90px 120px;gap:10px;align-items:center;padding:10px 14px;border-bottom:1px solid #f0f0f3;font-size:13px;transition:.15s}.view-row:last-child{border-bottom:0}.view-row:hover{background:#fafafe}.view-row.head{background:#f6f6fb;font-weight:900;font-size:12px;text-transform:uppercase;color:#555;letter-spacing:.3px}.view-row span:nth-child(3),.view-row span:nth-child(4){text-align:right;font-weight:700}.view-total{display:flex;justify-content:flex-end;align-items:stretch;background:linear-gradient(180deg,#fcfcfd 0%,#f6f6fa 100%);border-top:1px solid #ececf2;overflow:hidden}.view-total div{min-width:150px;padding:12px 16px;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;position:relative}.view-total div:first-child{border-right:1px solid #e7e7ef}.view-total span{font-size:10px;color:#8a8a95;letter-spacing:.3px;margin-bottom:3px;text-transform:uppercase}.view-total strong{font-size:16px;line-height:1.1;font-weight:800;color:#111}.history-list{border:1px solid #eee;border-radius:18px;overflow:hidden;background:#fff;margin-top:6px;box-shadow:0 2px 10px rgba(0,0,0,.03)}.history-row{display:grid;grid-template-columns:90px 60px 100px 1fr 1.2fr;gap:10px;align-items:center;padding:10px 14px;border-bottom:1px solid #f0f0f3;font-size:12px}.history-row:last-child{border-bottom:0}.history-row:hover{background:#fafafe}.history-row em{font-style:normal;color:#666}.history-row strong{font-weight:800;color:#111}.empty-history{padding:18px;color:#999;background:#fafafa;font-size:14px;text-align:center}

/* ===== 21. ПЕЧАТЬ ===== */.print-choice-box{max-width:340px!important;padding:16px!important;border-radius:22px!important}.print-choice-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.print-choice-top b{font-size:13px!important;font-weight:700!important;line-height:1!important}.print-choice-top button{width:26px!important;height:26px!important;border:0!important;border-radius:8px!important;background:#f1f1f4!important}.print-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.print-choice-grid button{height:62px;border:1px solid #ececf2;border-radius:12px;background:#fafafa;font-size:13px;font-weight:800;cursor:pointer;padding:0 8px;transition:.15s}.print-choice-grid button:hover{background:#f3edff;color:#6d28d9}

/* ===== 22. ОТЧЁТЫ СОТРУДНИКОВ ===== */.staff-report-page{display:grid;gap:18px}.staff-report-head{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #edf0f5;border-radius:24px;padding:18px 20px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.staff-report-head h2{margin:0;font-size:24px;font-weight:950;color:#071126}.staff-report-head p{margin:4px 0 0;color:#64748b;font-size:13px;font-weight:700}.staff-head-actions{display:flex;gap:10px;align-items:center}.staff-report-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;background:#fff;border:1px solid #edf0f5;border-radius:24px;padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.04)}.admin-input,.admin-select{width:100%;height:52px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:0 14px;font-size:15px;font-weight:800;color:#0f172a;outline:none}.admin-input:focus,.admin-select:focus{border-color:#0f172a;background:#fff}.admin-btn{height:52px;border:0;border-radius:16px;background:#08122a;color:#fff;font-weight:950;padding:0 18px;cursor:pointer;transition:.16s}.admin-btn:hover{transform:translateY(-1px)}.admin-btn.primary{background:#08122a;color:#fff}.staff-report-stats,.wm-stat-modern{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.staff-stat-card{min-height:94px;display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #edf0f5;border-radius:22px;padding:20px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.staff-stat-card i{width:52px;height:52px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:25px;flex:0 0 52px}.staff-stat-card i.blue{background:#e0f2fe}.staff-stat-card i.purple{background:#f3e8ff}.staff-stat-card i.green{background:#dcfce7}.staff-stat-card i.orange{background:#ffedd5}.staff-stat-card i.yellow{background:#fef3c7}.staff-stat-card small{display:block;font-size:12px;font-weight:900;color:#8da0bd;margin-bottom:6px}.staff-stat-card strong{display:block;font-size:26px;font-weight:950;color:#071126;line-height:1.05}.staff-compare-card{background:#fff;border:1px solid #edf0f5;border-radius:24px;padding:20px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.staff-compare-card h3{margin:0 0 14px;font-size:17px;font-weight:950;color:#071126;text-align:center}.staff-compare-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.staff-compare-grid div{background:#f8fafc;border:1px solid #e7edf5;border-radius:16px;padding:14px;text-align:center}.staff-compare-grid small{display:block;font-size:11px;font-weight:900;color:#8da0bd;margin-bottom:6px}.staff-compare-grid strong{display:block;font-size:19px;font-weight:950;color:#071126}.staff-compare-grid .good{color:#16a34a}.staff-compare-grid .bad{color:#dc2626}.staff-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.staff-chart-card{background:#fff;border:1px solid #edf0f5;border-radius:24px;padding:22px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.staff-chart-card h3{margin:0 0 14px;font-size:17px;font-weight:950;color:#071126;text-align:center}.staff-bars{display:grid;gap:10px}.staff-bar-row{display:grid;grid-template-columns:90px 1fr 64px;gap:10px;align-items:center}.staff-bar-label{font-size:12px;font-weight:900;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.staff-bar-line{height:14px;background:#edf2f7;border-radius:999px;overflow:hidden}.staff-bar-line i{display:block;height:100%;background:#08122a;border-radius:999px}.staff-bar-value{text-align:right;font-size:12px;font-weight:900;color:#071126}.staff-reports-list,.staff-reports-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.staff-report-card,.wm-staff-card{position:relative;background:#fff;border:1px solid #e8edf5;border-radius:22px;padding:18px;box-shadow:0 14px 34px rgba(15,23,42,.06);transition:.18s}.staff-report-card:hover,.wm-staff-card:hover{transform:translateY(-2px)}.wm-staff-actions{position:absolute;right:18px;top:18px;display:flex;gap:6px}.wm-staff-actions button{width:34px;height:34px;border:0;border-radius:10px;background:#f1f5f9;color:#0f172a;font-size:15px;font-weight:900;cursor:pointer}.wm-staff-actions button.danger{background:#fee2e2;color:#dc2626}.wm-staff-num{font-size:24px;font-weight:950;color:#071126;margin-bottom:14px;padding-right:82px}.wm-staff-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.wm-staff-meta span{font-size:12px;font-weight:900;color:#64748b;display:flex;align-items:center;gap:5px}.wm-staff-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}.wm-staff-grid div,.wm-staff-comment{background:#fff;border:1px solid #e6edf5;border-radius:14px;padding:12px;min-height:70px}.wm-staff-grid small,.wm-staff-comment small{display:block;font-size:11px;font-weight:900;color:#8da0bd;margin-bottom:8px}.wm-staff-grid strong,.wm-staff-comment strong{display:block;font-size:16px;font-weight:950;color:#071126;line-height:1.2;word-break:break-word}.wm-staff-comment{margin-top:8px;min-height:78px}.empty,.staff-report-loading,.staff-report-error{background:#fff;border:1px solid #edf0f5;border-radius:18px;padding:18px;text-align:center;color:#64748b;font-weight:800}

/* ===== 23. STAFF MODAL / СПРАВОЧНИКИ ===== */.staff-modal{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}.staff-modal-box{width:min(760px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;padding:18px;box-shadow:0 30px 80px rgba(15,23,42,.28)}.staff-modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.staff-modal-top h2{margin:0;font-size:20px;font-weight:950;color:#071126}.staff-modal-top button{width:38px;height:38px;border:0;border-radius:14px;background:#f1f5f9;font-size:18px;font-weight:900;cursor:pointer}.staff-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.staff-form-grid label{font-size:12px;font-weight:900;color:#64748b;display:grid;gap:6px}.staff-form-grid .wide{grid-column:1/-1}.staff-form-grid textarea{height:86px;padding-top:10px;resize:none}.staff-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}.staff-refs-box{width:min(980px,100%)}.staff-refs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.staff-refs-col{background:#f8fafc;border:1px solid #e7edf5;border-radius:20px;padding:14px}.staff-refs-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.staff-refs-title b{font-size:17px;font-weight:950;color:#071126}.staff-refs-title button{height:38px;border:0;border-radius:12px;background:#08122a;color:#fff;font-weight:900;padding:0 12px;cursor:pointer}.staff-refs-list{display:grid;gap:10px}.staff-ref-row{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #e6edf5;border-radius:16px;padding:12px}.staff-ref-row strong{display:block;font-size:15px;font-weight:950;color:#071126}.staff-ref-row small{display:block;font-size:11px;font-weight:850;color:#8da0bd;margin-top:3px}.staff-ref-row div:last-child{display:flex;gap:7px}.staff-ref-row button{width:36px;height:36px;border:0;border-radius:11px;background:#f1f5f9;color:#0f172a;font-weight:900;cursor:pointer}.staff-ref-row button.danger{background:#fee2e2;color:#dc2626}.staff-ref-edit-box{width:min(720px,100%)}.staff-ref-form{display:grid;gap:12px}.staff-ref-form label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#64748b}.staff-ref-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.staff-ref-checks label{background:#f8fafc;border:1px solid #e7edf5;border-radius:14px;padding:12px;display:flex;align-items:center;gap:8px;color:#071126}.staff-ref-cats{display:grid;gap:8px;background:#f8fafc;border:1px solid #e7edf5;border-radius:16px;padding:12px}.staff-ref-cats b{font-size:14px;font-weight:950;color:#071126;margin-bottom:4px}.staff-ref-cats label{background:#fff;border:1px solid #e6edf5;border-radius:12px;padding:10px;display:flex;align-items:center;gap:8px;color:#071126}
/* ===== 24. MOBILE ADMIN BASE / МОБИЛЬНАЯ ОСНОВА ===== */.mobile-bottom-nav,.admin-burger,.admin-menu-backdrop,.mobile-admin-tools{display:none!important}@media(max-width:900px){body{background:#eef3fb!important;overflow-x:hidden!important}.admin{display:block!important;width:100%!important;max-width:480px!important;min-height:100vh!important;margin:0 auto!important;background:#fff!important;border-left:1px solid #d9e1ec!important;border-right:1px solid #d9e1ec!important}.admin-main{width:100%!important;margin:0!important;padding:14px 14px 90px!important;background:#fff!important;overflow:hidden!important}.admin-top{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin-bottom:18px!important}.admin-top h1{font-size:22px!important;margin:0!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.back-btn{height:40px!important;padding:0 10px!important;font-size:12px!important;border-radius:8px!important;white-space:nowrap!important}.admin-burger{display:flex!important;width:44px!important;height:44px!important;border:1px solid #ececf2!important;border-radius:12px!important;background:#fff!important;align-items:center!important;justify-content:center!important;font-size:24px!important;font-weight:900!important;color:#7c3aed!important;box-shadow:0 4px 12px rgba(0,0,0,.08)!important}.admin-side{display:flex!important;flex-direction:column!important;position:fixed!important;left:-290px!important;top:0!important;bottom:0!important;width:280px!important;background:#f8f8f8!important;z-index:1000003!important;border-right:1px solid #e5e5e5!important;transition:left .25s ease!important;overflow-y:auto!important}.admin-side.open{left:0!important}.admin-menu-backdrop{position:fixed!important;inset:0!important;background:rgba(0,0,0,.35)!important;z-index:1000001!important}.admin-menu-backdrop.show{display:block!important}.mobile-bottom-nav{display:flex!important}}@media(min-width:901px){.admin-burger,.admin-menu-backdrop,.mobile-bottom-nav,.mobile-admin-tools{display:none!important}}

/* ===== 25. MOBILE ORDERS / ЗАКАЗЫ МОБИЛЬНАЯ ===== */@media(max-width:900px){.order-stats,.stats-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0 0 18px!important;overflow:visible!important}.order-stats .stat-item,.stats-grid .stat-item{height:76px!important;border-radius:16px!important;padding:4px!important;min-width:0!important}.order-stats .stat-item b,.stats-grid .stat-item b{font-size:28px!important;line-height:1!important}.order-stats .stat-item span,.stats-grid .stat-item span{font-size:10px!important;line-height:1.1!important}.filters-box{padding:16px!important;border-radius:18px!important;overflow:hidden!important}.filters-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.filter-item input,.filter-item select{width:100%!important;height:46px!important}.filter-actions{padding-top:0!important}.apply-btn,.reset-btn{width:100%!important}.bulk-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.bulk-actions button,.bulk-status-select{height:42px!important;border-radius:12px!important;font-size:13px!important}.orders-two-cols{display:none!important}.mobile-order-tabs{display:flex!important;gap:8px!important;margin:10px 0 12px!important}.mobile-order-tabs button{flex:1!important;height:40px!important;border:0!important;border-radius:14px!important;background:#f3f4f6!important;color:#111!important;font-size:13px!important;font-weight:900!important}.mobile-order-tabs button.active{background:#7c3aed!important;color:#fff!important}.mobile-orders-table{display:block!important}.mobile-orders-table .orders-table{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}.mobile-orders-table .thead{display:none!important}.mobile-orders-table .order-row{display:grid!important;grid-template-columns:32px 56px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:10px!important;margin-bottom:8px!important;border:1px solid #ececf2!important;border-radius:16px!important;background:#fff!important;min-height:54px!important}.mobile-orders-table .order-row span{padding:0!important;min-width:0!important}.mobile-orders-table .order-row span:nth-child(3),.mobile-orders-table .order-row span:nth-child(4),.mobile-orders-table .order-row span:nth-child(6){display:none!important}.mobile-orders-table .actions{display:flex!important;gap:5px!important;justify-content:flex-end!important}.mobile-orders-table .actions button{width:26px!important;height:26px!important;border-radius:8px!important;font-size:11px!important}}

/* ===== 26. PRINT / ПЕЧАТЬ ===== */@media print{body.print-staff-reports *{visibility:hidden!important}body.print-staff-reports #content,body.print-staff-reports #content *{visibility:visible!important}body.print-staff-reports #content{position:absolute;left:0;top:0;width:100%!important;background:#fff!important}body.print-staff-reports .sidebar,body.print-staff-reports .admin-sidebar,body.print-staff-reports .staff-report-head button,body.print-staff-reports .staff-report-filters,.wm-staff-del{display:none!important}body.print-staff-reports .staff-report-page,body.print-staff-reports .staff-report-card,body.print-staff-reports .staff-chart-card,body.print-staff-reports .staff-compare-card,body.print-staff-reports .staff-stat-card{box-shadow:none!important;border-color:#ddd!important;break-inside:avoid}}