:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#172033;background:#f4f6fb;font-size:15px}*{box-sizing:border-box}body{margin:0}a{color:#1954aa;text-decoration:none}a:hover{text-decoration:underline}.nav{background:#14253b;color:white}.nav-inner{max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 22px}.brand{color:white;font-weight:800;font-size:19px}nav{display:flex;align-items:center;gap:19px;flex-wrap:wrap}nav a,.link{color:#e0ebff}.container{max-width:1240px;padding:28px 22px;margin:auto}.heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.heading h1{margin:0}h1{font-size:28px;margin:0 0 18px}h2{font-size:18px;margin:8px 0 18px}.muted{color:#728094}.card{background:white;border:1px solid #e2e7f0;border-radius:14px;padding:24px;box-shadow:0 2px 6px #1b2e4d08;margin-bottom:18px}.stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat{padding:20px 12px;display:flex;align-items:center;gap:6px;flex-direction:column;color:inherit}.stat strong{font-size:26px}.stat span{font-size:13px;color:#67768c}.btn{background:white;border:1px solid #cbd5e4;border-radius:9px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#172033;font-size:14px;font-weight:600}.btn:hover{background:#edf4ff;text-decoration:none}.primary{background:#2563eb;border-color:#2563eb;color:white}.primary:hover{background:#1d4ed8;color:white}.small{font-size:12px;padding:7px}.full{width:100%}.inline{display:inline}.link{border:0;background:none;cursor:pointer;font:inherit;padding:0}.filters{display:flex;gap:10px;margin-bottom:20px}.filters input{flex:1;min-width:0}.filters select{width:190px}input,select,textarea{border:1px solid #ccd6e4;border-radius:8px;padding:11px 12px;font:inherit;background:white;width:100%;color:#172033}input:focus,select:focus,textarea:focus{outline:2px solid #b7d0ff;border-color:#2563eb}label{display:block;font-weight:600;margin-bottom:15px}label input,label select,label textarea{margin-top:7px;font-weight:400}.grid{display:grid;gap:16px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-card{max-width:880px}.form-card h2{margin-top:22px;border-bottom:1px solid #e9edf4;padding-bottom:11px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{background:#f8fafd;color:#69798e;font-size:12px;white-space:nowrap}th,td{padding:14px 12px;border-bottom:1px solid #edf0f5;vertical-align:middle}tbody tr:hover{background:#fbfcfe}.strong{font-weight:800}.truncate{max-width:260px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.pill{display:inline-block;padding:7px 11px;border-radius:40px;background:#e8f0ff;color:#2157aa;font-size:12px;font-weight:700;white-space:nowrap}.empty{text-align:center;padding:36px;color:#728094}.detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:20px}.detail-grid aside .card{margin-bottom:20px}dl{display:grid;grid-template-columns:125px 1fr;gap:14px;margin-bottom:28px}dt{color:#748196}dd{margin:0;font-weight:600;overflow-wrap:anywhere}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.history{padding-left:20px}.history li{padding-bottom:15px}.history small{color:#728094}.auth{max-width:440px;margin:40px auto}.flash{padding:13px 18px;border-radius:9px;margin-bottom:16px;background:#edf6ff;border:1px solid #b8d6ff}.flash.error{background:#fff0f0;border-color:#ffcccc}.flash.success{background:#e8f8ed;border-color:#c1e5ce}.actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:800px){.nav-inner{flex-direction:column;align-items:flex-start}.stats{grid-template-columns:repeat(3,1fr)}.detail-grid{grid-template-columns:1fr}.filters{flex-wrap:wrap}.filters input{flex-basis:100%}.filters select{flex:1}.heading{align-items:flex-start;flex-direction:column}}@media(max-width:480px){.container{padding:18px 12px}.card{padding:16px}.stats{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}dl{grid-template-columns:95px 1fr}nav{gap:12px}}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.form-grid label{min-width:0}@media(max-width:800px){.form-grid{grid-template-columns:1fr}}

/* v1.6: прозвон и роль директора */
.order-id{display:inline-block;padding:4px 8px;border-radius:6px;}
.callback-id{background:#c8eeff!important;color:#075985!important;box-shadow:inset 0 0 0 1px #7dd3fc;}
.checkbox-row{display:flex;align-items:center;gap:10px;margin:8px 0;cursor:pointer;}
.checkbox-row input{width:18px;height:18px;flex-shrink:0;}
.callback-panel form{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.danger-zone{margin-top:18px;border:1px solid #f4b0b0;}
.btn.danger{background:#b91c1c;color:white;border-color:#991b1b;}

/* v1.7: быстрое копирование карточки заказа */
.copy-order-btn{white-space:nowrap}.copy-order-feedback{font-size:13px;color:#157347;align-self:center}

/* v2.0 — реестр заказов как в образце */
body:has(.orders-table) .container{max-width:none;margin:0;padding:24px 18px 40px}
.orders-heading,.orders-title{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap}.orders-heading{margin-bottom:18px}.orders-heading h1{margin:0;font-size:30px}.orders-title{justify-content:flex-start}.orders-counts{background:#e9edf4;border-radius:7px;padding:9px 12px;color:#45556b;font-size:13px}.orders-tabs{display:flex;gap:4px;margin-bottom:16px;flex-wrap:wrap}.orders-tabs a{padding:10px 18px;background:#fff;border:1px solid #dbe2ec;border-radius:8px;color:#26354a}.orders-tabs a.current{background:#dceaff;color:#1054b3;border-color:#bbd4f5;font-weight:700}.orders-table-card{background:#fff;border:1px solid #d6dfeb;box-shadow:0 2px 8px #273b5710;border-radius:10px;overflow:hidden}.orders-grid-scroll{overflow-x:auto;width:100%}.orders-table{min-width:1530px;width:100%;border-collapse:collapse;table-layout:auto}.orders-table th,.orders-table td{border:1px solid #d8e0e9;vertical-align:middle;padding:11px 10px;font-size:13px}.orders-table th{font-size:13px;font-weight:700;background:#f7f9fc;color:#182337;text-align:center;white-space:nowrap}.orders-table tbody tr:nth-child(even){background:#f6f7f9}.orders-table tbody tr:hover{background:#eaf1fa}.orders-table .filter-row td{background:#fbfcfe;padding:8px 5px}.orders-table .filter-row input,.orders-table .filter-row select{min-width:65px;width:100%;padding:8px 7px;border-radius:5px;font-size:12px;height:38px}.orders-table .filter-row td:nth-child(4){min-width:145px}.orders-table .filter-row td:nth-child(7){min-width:190px}.orders-table .filter-row td:nth-child(9){min-width:190px}.orders-table .filter-row td:nth-child(10){min-width:165px}.stacked-filter{display:flex;flex-direction:column;gap:3px}.orders-table .stacked-filter input{height:32px;padding:4px}.orders-table .status-td{font-weight:800;color:#152432;min-width:108px;white-space:nowrap}.orders-table .status-waiting{background:#a8ef8c!important}.orders-table .status-onway{background:#269d45!important;color:#fff}.orders-table .status-working{background:#ffd55c!important}.orders-table .status-sd{background:#ff9637!important}.orders-table .status-done{background:#8ed6fb!important}.orders-table .order-id{font-weight:750;color:#123b75;padding:5px 6px;white-space:nowrap}.orders-table .callback-id{background:#bceeff!important;color:#075985!important}.order-id-cell{display:flex;align-items:center;gap:2px}.table-icon{border:none;background:transparent;color:#697b90;font-size:19px;cursor:pointer;padding:3px 5px}.table-icon:hover{color:#0e65bf}.orders-table .flag-cell{text-align:center;font-size:22px;font-weight:800;min-width:34px}.orders-table .date-cell{white-space:nowrap;font-variant-numeric:tabular-nums}.customer-link{font-weight:600;color:#1c3048}.call-cell{text-align:center}.call-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c7d3e0;border-radius:6px;padding:6px 10px;color:#1d3556;font-size:18px}.call-button:hover{background:#e5f1ff}.reset-filter{font-size:22px;margin-left:6px;vertical-align:middle}.orders-footer{padding:15px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;color:#39475a}.per-page-form label{margin:0;display:flex;align-items:center;gap:9px;font-weight:400}.per-page-form select{width:76px;padding:7px}.page-links{margin-left:auto;display:flex;gap:7px;align-items:center}.page-links>*{display:inline-flex;min-width:35px;height:34px;align-items:center;justify-content:center;border:1px solid #d3dce9;border-radius:6px}.page-links .selected-page{background:#2065de;border-color:#2065de;color:white}.page-links .disabled{pointer-events:none;opacity:.35}.orders-legend{font-size:12px;color:#65758b;margin:11px 3px}

/* v2.4: единое сохранение карточки и проведение заказа */
.order-actions-buttons{display:grid;gap:9px;margin-top:15px}.btn.complete-order{background:#167348;color:white;border-color:#167348}.btn.complete-order:hover{background:#105b39;color:white}.order-actions-card .muted{font-size:13px;line-height:1.45}

/* v2.5 — строки таблицы открываются по нажатию, сумма заказа */
.orders-table tbody tr.order-clickable{cursor:pointer}
.orders-table tbody tr.order-clickable:hover td:not(.status-td){background:#e9f3ff}
.orders-table tbody tr.order-clickable:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
.orders-table .order-total-cell{white-space:nowrap;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.orders-table .filter-row td:nth-child(12){min-width:105px}

/* Раздел расчётов с партнёрами */
.partner-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.partner-filters label{min-width:140px;flex:1 1 140px}
.partner-filters .btn{margin-bottom:2px}
.partner-payment-toggle{min-width:125px}
.partner-payment-toggle .checkbox-row{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.partner-payment-toggle input[type=checkbox]{width:18px;height:18px;accent-color:#16803c}

/* Сумма заказа: положительная сумма или отказ */
.orders-table .order-total-positive{background:#d9f7df!important;color:#176b2c!important;font-weight:800}
.orders-table .order-total-refusal{background:#ffe0e0!important;color:#b42318!important;font-weight:800;text-align:center}

/* Director reports dropdown */
.nav-dropdown{position:relative;display:inline-block;color:inherit}
.nav-dropdown summary{cursor:pointer;list-style:none;padding:8px 10px;border-radius:8px}
.nav-dropdown summary::-webkit-details-marker{display:none}
.nav-dropdown[open] summary{background:#eef2f7}
.nav-dropdown-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:50;min-width:210px;background:#fff;border:1px solid #dfe4ea;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.12);padding:6px;display:grid;gap:3px}
.nav-dropdown-menu a{display:block;padding:9px 10px;border-radius:7px;text-decoration:none;color:#253044;white-space:nowrap}
.nav-dropdown-menu a:hover{background:#f1f5f9}
.report-tabs{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}
.report-tabs a{padding:8px 12px;border:1px solid #dce2e9;border-radius:8px;text-decoration:none;color:inherit}
.report-tabs a.active{background:#eaf2ff;border-color:#9dbcf4;font-weight:600}

/* Компактные действия фильтра рядом с вкладкой «Готовые». */
.orders-tabs .orders-filter-action{font-size:12px!important;line-height:1.2;padding:7px 11px!important;min-height:32px;align-self:center;white-space:nowrap}
.orders-tabs .reset-filter{margin-left:0!important;vertical-align:middle}

/* FastUp 3.8 - master registry */
.master-fields{display:grid;grid-template-columns:1.1fr 1.6fr 1fr 1.6fr .8fr;gap:10px;align-items:end}.master-fields label{font-size:12px;min-width:0;margin:0}.master-fields input,.master-fields select{margin-top:5px;padding:9px 7px;font-size:13px}.master-editor{display:grid;gap:14px}.master-edit-cell{padding:10px!important}.master-row-form{display:grid;gap:10px}.master-actions{display:flex;justify-content:flex-end}.master-delete-form{text-align:right;margin-top:-39px;margin-right:95px;position:relative;pointer-events:none}.master-delete-form button{pointer-events:auto}.mobile-field-label{display:none}.work-indicator{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px;vertical-align:middle}.work-indicator.working{background:#16a34a}.work-indicator.not-working{background:#dc2626}@media(max-width:950px){.master-fields{grid-template-columns:1fr 1fr}.mobile-field-label{display:inline}.master-delete-form{margin:8px 0 0;pointer-events:auto}.master-actions{justify-content:flex-start}}

.masters-table{min-width:860px}.masters-table td{vertical-align:top}.masters-table td input,.masters-table td select{min-width:105px;padding:8px;font-size:13px}.masters-table td form{margin-bottom:5px}.masters-table td:last-child{white-space:nowrap}

/* FastUp 3.9 — city filtering and ordering in the masters directory. */
.masters-filter-bar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}
.masters-filter-bar label{display:flex;flex-direction:column;gap:5px;font-size:13px;min-width:190px}
.masters-filter-bar input,.masters-filter-bar select{padding:9px;max-width:290px;width:100%}
.masters-filter-bar .btn{white-space:nowrap}
.masters-sort-link{color:inherit;text-decoration:none;white-space:nowrap}
.masters-sort-link:hover{text-decoration:underline}

/* FastUp 4.0: instantaneous search directly in master registry headers */
.master-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.masters-table{min-width:1370px}
.masters-filter-row th{background:#eef5ff!important;padding:7px!important}
.masters-filter-row input{font-size:12px;padding:8px;width:100%;background:white}
#masters-registry tbody tr[hidden],#masters-empty-row[hidden]{display:none!important}
.masters-inline-filter-info{font-size:13px;margin:4px 0 6px}
.master-telegram-link{display:block;font-size:12px;margin-top:5px}
.master-telegram-link[hidden]{display:none}
@media(max-width:950px){.master-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.master-fields{grid-template-columns:1fr}}

/* FastUp 4.1: multiple service areas and directions */
.master-direction-list{display:flex;flex-direction:column;gap:.35rem;margin:.4rem 0}
.master-direction-list .checkbox-row{display:flex;align-items:center;gap:.4rem;white-space:nowrap;font-size:.87rem}
.master-direction-list input[type=checkbox]{width:auto;min-width:1rem}
.masters-table td{vertical-align:top}

/* FastUp 4.2 - compact multi-select city/direction dropdowns */
.master-choice-field{min-width:0;font-size:12px}
.master-field-title{display:block;margin-bottom:5px;font-weight:600}
.master-multiselect{min-width:160px;position:relative;font-size:13px}
.master-multiselect summary{list-style:none;cursor:pointer;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:9px 28px 9px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}
.master-multiselect summary::-webkit-details-marker{display:none}
.master-multiselect summary:after{content:'▾';position:absolute;right:9px;top:8px;color:#64748b}
.master-multiselect[open] summary{border-color:#3b82f6}
.master-picker-content{position:absolute;top:100%;left:0;z-index:30;min-width:230px;max-width:min(360px,85vw);width:max-content;max-height:260px;overflow:auto;background:#fff;border:1px solid #cbd5e1;box-shadow:0 8px 24px rgba(0,0,0,.12);border-radius:8px;padding:10px}
.master-picker-content .checkbox-row{font-size:13px;display:flex;align-items:center;margin:6px 0;gap:8px}
.master-picker-content .checkbox-row input{width:16px!important;min-width:16px!important;margin:0!important;padding:0!important}
.master-custom-city{border-top:1px solid #e2e8f0;padding-top:9px;margin-top:8px;display:flex;gap:6px;align-items:center}
.master-custom-city input{min-width:90px!important;width:145px!important}
.master-custom-city button{white-space:nowrap}
.masters-table td .master-multiselect{min-width:160px}

/* FastUp 4.4: раскрытый список городов показывает все выбранные значения. */
.master-multiselect[data-kind="cities"][open] summary{white-space:normal;overflow-wrap:anywhere;text-overflow:clip;padding-right:28px}

/* FastUp 4.5: compact masters registry and dedicated master cards */
.masters-registry-table{min-width:590px}
.masters-registry-table .master-clickable{cursor:pointer}
.masters-registry-table .master-clickable:hover{background:#eaf2ff}
.masters-registry-table .master-clickable:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.master-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:end}
.master-detail-fields label{margin:0;font-size:13px}
.master-detail-fields .master-choice-field{align-self:stretch}
.master-detail-fields .master-multiselect{margin-top:8px}
@media(max-width:720px){.master-detail-fields{grid-template-columns:1fr}}

/* FastUp 4.7: two-level hover navigation for cash. */
.nav-dropdown:hover > .nav-dropdown-menu {display:grid}
.nav-dropdown > .nav-dropdown-menu {display:none;top:100%}
.nav-submenu {position:relative}
.nav-submenu > a {display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav-submenu-panel {display:none;position:absolute;left:calc(100% - 3px);top:-6px;min-width:195px;padding:6px;background:#fff;border:1px solid #dfe4ea;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.12);z-index:60}
.nav-submenu:hover > .nav-submenu-panel {display:grid;gap:3px}
@media(max-width:720px){.nav-submenu-panel{left:0;top:100%;min-width:190px}}

/* FastUp 4.7.2: меню исчезает при уходе мыши; не удерживаем меню из-за клика/focus. */
.nav-dropdown:not(:hover):not(:focus-within) > .nav-dropdown-menu {display:none}
.nav-submenu:not(:hover) > .nav-submenu-panel {display:none}
.nav-dropdown:hover > summary {background:rgba(255,255,255,.12);color:#fff}

/* FastUp 4.8: reports by city */
.report-period-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:12px 0 20px}.report-period-form label{min-width:180px;margin:0}.report-period-form .btn{margin-bottom:0}.report-total td{background:#edf4ff;border-top:2px solid #d0dff4}

/* FastUp 4.9: отдельный статус отказа */
.orders-table .status-refused{background:#ffb9b9!important;color:#842020!important}

/* FastUp 5.1: отчёт по кассе — города в строках, показатели в столбцах */
.cash-city-report { width: 100%; border-collapse: collapse; white-space: nowrap; }
.cash-city-report th, .cash-city-report td { text-align: right; padding: 10px 12px; }
.cash-city-report th:first-child, .cash-city-report td:first-child { text-align: left; }
.cash-city-report tbody tr:hover { background: rgba(100, 116, 139, .07); }
.cash-city-report tfoot { font-weight: 700; border-top: 2px solid #94a3b8; }

/* FastUp 5.2 — individual master cash settlement */
.finance-master-row{cursor:pointer}.finance-master-row:hover{background:#eaf3ff}.finance-check-button{border:1px solid #bdd5e9;border-radius:7px;background:#f8fbff;cursor:pointer;padding:8px 12px;display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13px;white-space:nowrap}.finance-check-button:hover{background:#e5f5ea;border-color:#7ac18a}.finance-check-box{width:16px;height:16px;border:2px solid #7d90a7;border-radius:3px;display:inline-block}.finance-paid-label{display:inline-flex;align-items:center;gap:6px;margin:0;color:#16743e;font-size:13px;white-space:nowrap}.finance-paid-label input{width:auto;margin:0;accent-color:#16a34a}
.finance-unpaid-label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:600;font-size:13px;margin:0;white-space:nowrap}.finance-unpaid-label input{width:18px;height:18px;margin:0;accent-color:#16a34a}


.finance-master-heading {align-items:center;}
.finance-master-total {font-size:18px; color:#4b5563; white-space:nowrap;}
.finance-master-actions {display:flex; justify-content:space-between; align-items:center; margin:16px 0;}
.finance-master-table .money-cell {white-space:nowrap; text-align:right;}
.finance-master-table .due-red {color:#dc2626; font-weight:700;}
.finance-order-link {font-weight:700; text-decoration:none;}
.finance-master-table tr.is-complete {background:#f8fafc;}
.finance-master-table td:last-child, .finance-master-table th:last-child {text-align:center; white-space:nowrap;}
.finance-master-table input[type="checkbox"] {width:18px; height:18px;}

.finance-master-actions-right {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;}
.finance-master-actions-bottom {margin-bottom:18px;}
.finance-master-table input.settle-checkbox {cursor:pointer;}
@media(max-width:700px){.finance-master-actions {flex-wrap:wrap;gap:12px}.finance-master-actions-right {width:100%;justify-content:space-between}}

/* FastUp 5.5: presentation matches the compact detailed table from 5.3; batch settlement from 5.4 remains. */
.settlement-breadcrumb{display:flex;align-items:center;gap:10px;font-size:14px;margin:0 0 14px;color:#7c8592;flex-wrap:wrap}
.settlement-breadcrumb a{color:#334155;text-decoration:none;font-weight:600}
.settlement-profile-header{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:14px 18px;border:1px solid #dde3eb;background:#f8fafc;margin-bottom:0;flex-wrap:wrap}
.settlement-profile-header h1{font-size:24px;margin:0;line-height:1.35;color:#334155}
.settlement-balance{font-size:20px;color:#475569;white-space:nowrap}
.settlement-controls{padding:14px 4px 8px;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.settlement-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap}
.settlement-count{font-size:13px;color:#334155}
.finance-master-table-v53{width:100%;min-width:1300px;border-collapse:collapse;font-size:13px}
.finance-master-table-v53 th,.finance-master-table-v53 td{border:1px solid #dde3eb;padding:10px 12px;vertical-align:middle}
.finance-master-table-v53 th{font-size:13px;font-weight:700;background:#fff;color:#111827;white-space:nowrap}
.finance-master-table-v53 tbody tr:nth-child(odd){background:#f1f3f5}
.finance-master-table-v53 tbody tr:nth-child(even){background:#fff}
.finance-master-table-v53 tbody tr.is-complete{background:#eaf8f0}
.finance-master-table-v53 td:first-child,.finance-master-table-v53 td:nth-child(2){white-space:nowrap}
.finance-master-table-v53 .group-cell{text-align:center;font-weight:600}
.finance-master-table-v53 .due-red{color:#dc2626!important}
.finance-master-table-v53 .money-cell{white-space:nowrap;text-align:right}
.finance-master-table-v53 .settle-checkbox{cursor:pointer}
@media(max-width:700px){.settlement-balance{font-size:17px}.settlement-profile-header h1{font-size:20px}}


.finance-master-heading {align-items:center;}
.finance-master-total {font-size:18px; color:#4b5563; white-space:nowrap;}
.finance-master-actions {display:flex; justify-content:space-between; align-items:center; margin:16px 0; gap:12px;}
.finance-master-actions-right {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;}
.finance-master-table .money-cell {white-space:nowrap; text-align:right;}
.finance-master-table .due-red {color:#dc2626; font-weight:700;}
.finance-order-link {font-weight:700; text-decoration:none;}
.finance-master-table tr.is-complete {background:#f8fafc;}
.finance-master-table td:last-child, .finance-master-table th:last-child {text-align:center; white-space:nowrap;}
.finance-master-table input[type="checkbox"] {width:18px; height:18px;}
.finance-master-table{width:100%;min-width:1300px;border-collapse:collapse;font-size:13px}
.finance-master-table th,.finance-master-table td{border:1px solid #dde3eb;padding:10px 12px;vertical-align:middle}
.finance-master-table th{font-size:13px;font-weight:700;background:#fff;color:#111827;white-space:nowrap}
.finance-master-table tbody tr:nth-child(odd){background:#f1f3f5}
.finance-master-table tbody tr:nth-child(even){background:#fff}
.finance-master-table tbody tr.is-complete{background:#eaf8f0}
@media(max-width:700px){.finance-master-actions {flex-wrap:wrap}.finance-master-actions-right {width:100%;justify-content:space-between}}

.orders-table .status-cancel-cc{background:#d6c7f7!important;color:#4b2d83!important}

/* FastUp 5.6.2: города по строкам, все показатели по столбцам. */
.city-report-table {min-width:860px; width:100%; border-collapse:collapse;}
.city-report-table th,.city-report-table td {padding:12px 14px; border-bottom:1px solid #e6ebf2; white-space:nowrap;}
.city-report-table thead th {font-size:12px; font-weight:700; background:#f1f5fa; color:#344054;}
.city-report-table tbody th {text-align:left; font-weight:700; background:transparent;}
.city-report-table td,.city-report-table thead th:not(:first-child),.city-report-table tfoot td {text-align:right;}
.city-report-table tfoot th,.city-report-table tfoot td {background:#edf4ff; font-weight:700; border-top:2px solid #d0dff4;}

/* FastUp 5.9: Excel-like multi-city filter on Masters */
.masters-city-filter{position:relative;min-width:210px;font-size:13px;font-weight:400}
.masters-city-filter-trigger{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #cbd5e4;background:white;border-radius:8px;padding:8px 10px;color:#172033;font:inherit;text-align:left;cursor:pointer}
.masters-city-filter-trigger:focus-visible{outline:2px solid #2563eb}
.masters-city-filter-panel{position:absolute;left:0;top:calc(100% + 4px);z-index:20;width:min(320px,85vw);background:#fff;border:1px solid #cbd5e4;border-radius:10px;box-shadow:0 12px 32px #14253b26;padding:10px;text-align:left}
.masters-city-filter-panel[hidden]{display:none}
.masters-city-filter-panel>input{margin-bottom:7px;font-size:13px;padding:9px}
.masters-city-filter-options{max-height:235px;overflow-y:auto}
.masters-city-option{display:flex;align-items:center;gap:9px;padding:8px 7px;margin:0;font-size:13px;font-weight:500;cursor:pointer;border-radius:6px}
.masters-city-option:hover{background:#edf4ff}
.masters-city-option[hidden]{display:none}
.masters-city-option input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0;accent-color:#2563eb}
.masters-city-all{border-bottom:1px solid #edf0f5;margin-bottom:5px}
.masters-city-filter-footer{display:flex;justify-content:space-between;gap:8px;margin-top:9px;border-top:1px solid #edf0f5;padding-top:9px}
#masters-registry .master-record[hidden]{display:none!important}
#masters-empty-row[hidden]{display:none!important}

.masters-registry-wrap{overflow:visible}
@media(max-width:650px){.masters-registry-wrap{overflow-x:auto}.masters-city-filter-panel{position:fixed;left:14px;right:14px;top:200px;width:auto;max-height:65vh;overflow-y:auto}}

/* FastUp 5.9.1: city filter belongs in the City column header, Excel style. */
.masters-city-heading{display:flex;align-items:center;gap:8px;white-space:nowrap}
.masters-city-heading .masters-city-filter{min-width:0;flex:0 0 auto}
.masters-city-heading .masters-city-filter-trigger{width:auto;min-width:28px;min-height:28px;justify-content:center;padding:4px 7px;gap:6px;border-radius:5px;font-weight:400;box-shadow:none}
.masters-city-heading .masters-city-filter-label{display:none;font-size:12px;font-weight:400;max-width:145px;overflow:hidden;text-overflow:ellipsis}
.masters-city-heading .masters-city-filter-trigger[aria-expanded="true"]{background:#eaf3ff;border-color:#7eb1f5}
.masters-city-heading .masters-city-filter:has(.masters-city-choice:checked) .masters-city-filter-trigger{background:#eff6ff;border-color:#80a9e9;color:#174ea6}
.masters-city-heading .masters-city-filter:has(.masters-city-choice:checked) .masters-city-filter-label{display:inline}
.masters-city-heading .masters-city-filter-panel{left:0;top:calc(100% + 8px);white-space:normal}

/* FastUp 5.9.2 — dropdown opens on hover next to City heading. */
.masters-city-heading .masters-city-filter-panel{top:100%;padding-top:12px;background:#fff;z-index:100}
.masters-city-heading .masters-city-filter{z-index:20}
.masters-city-heading .masters-city-filter:has(.masters-city-filter-panel:not([hidden])){z-index:120}
.masters-city-heading .masters-city-filter-trigger svg{display:block;flex:none}
@media(hover:hover) and (pointer:fine){
  .masters-city-heading .masters-city-filter-trigger:hover{border-color:#70a5ec;background:#eaf3ff}
}

/* 5.9.3 Excel-like funnel menu; overrides older hover filter styling. */
.masters-city-heading .masters-city-filter .excel-filter-panel{width:315px;max-width:calc(100vw - 28px);padding:0;border-radius:2px;top:calc(100% + 2px);border:1px solid #aab0b8;background:#fafafa;box-shadow:1px 4px 14px #0003;color:#202020;font-family:Arial,sans-serif;font-weight:400;font-size:13px;white-space:normal}
.excel-filter-sort{padding:8px 5px 5px}
.excel-filter-action{display:flex;align-items:center;gap:12px;width:100%;padding:7px 8px;background:transparent;border:0;text-align:left;font:inherit;cursor:pointer;color:#222}
.excel-filter-action:hover{background:#dbe9fa}
.excel-sort-icon{font-size:11px;color:#2563a9;width:25px}
.excel-filter-separator{border-top:1px solid #d9d9d9;margin:0 9px 9px}
.excel-search-label{display:block;font-size:12px;margin:0 12px 4px;color:#585858}
.masters-city-heading .excel-filter-panel #masters-city-option-search{width:calc(100% - 24px);margin:0 12px 7px;border:1px solid #bbb;border-radius:0;height:31px;padding:5px 8px;background:white;font:inherit}
.excel-filter-checklist{background:#fff;border:1px solid #c8c8c8;margin:0 12px;height:206px;overflow:auto;padding:5px 4px}
.masters-city-heading .excel-filter-option{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:400;margin:0;padding:3px 4px;border-radius:0;cursor:pointer}
.masters-city-heading .excel-filter-option:hover{background:#e8f1fd}
.masters-city-heading .excel-filter-option[hidden]{display:none}
.masters-city-heading .excel-filter-option input[type=checkbox]{width:14px;height:14px;margin:0;flex:none;accent-color:#2464b4}
.masters-city-heading .excel-all{border:0}
.masters-city-heading .masters-city-filter-options{max-height:none;overflow:visible;padding-left:12px}
.excel-filter-empty{font-size:12px;color:#777;padding:10px}
.excel-filter-empty[hidden]{display:none}
.excel-filter-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px}
.excel-filter-footer button{font:inherit;padding:5px 14px;min-width:52px;border:1px solid #999;border-radius:0;cursor:pointer}
.excel-filter-ok{background:#f5f5f5;color:#111}
.excel-filter-cancel{background:#ececec;color:#111}
.excel-filter-footer button:hover{background:#d7e8fc}
.masters-city-heading .masters-city-filter-trigger.excel-filter-active{background:#dbeafe;border-color:#4e8bc8;color:#194f85}
@media(max-width:650px){.masters-city-heading .masters-city-filter .excel-filter-panel{position:fixed;left:12px;right:12px;top:100px;max-height:75vh;overflow:auto;width:auto}}

/* FastUp 5.9.4 — sortable City heading, independent of Excel filter funnel. */
.masters-city-sort-heading{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:4px 0;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;white-space:nowrap}
.masters-city-sort-heading:hover{text-decoration:underline;color:#1756a9}
.masters-city-sort-heading:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
#masters-city-sort-indicator{font-size:12px;color:#64748b;min-width:12px;text-align:center}

/* FastUp 5.9.5: clean City heading (no A–Z / sort arrow), hover funnel works independently. */
.masters-city-heading .masters-city-filter .excel-filter-panel{top:100%}

/* FastUp 6.2 - candidate approval forms */
.registration-review-form{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:290px;}
.registration-review-form input{width:100%;min-width:190px;}

.master-schedule-card{margin-top:18px}
.master-schedule-grid{border-collapse:collapse;width:100%;min-width:820px}
.master-schedule-grid th,.master-schedule-grid td{border:1px solid #cbd5e1;padding:10px 12px;text-align:center;white-space:nowrap}
.master-schedule-grid thead th{background:#eff2f6}
.master-schedule-grid tbody th{text-align:left}
.master-schedule-grid .schedule-work{background:#bbf7d0;color:#14532d;font-weight:700}
.master-schedule-grid .schedule-off{background:#fecaca;color:#7f1d1d;font-weight:700}
.master-schedule-grid .schedule-empty{background:#f8fafc;color:#64748b}
.schedule-period-select{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}

/* FastUp 6.6: specializations must remain inline, not float as a menu */
.master-detail-fields #masterSpecializations {position:static!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px 12px;min-width:0!important;width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;z-index:auto!important;background:#f8fafc;border:1px solid #dbe3eb;border-radius:9px;padding:12px}
#masterSpecializations .checkbox-row {display:flex!important;align-items:flex-start;gap:9px;white-space:normal;min-width:0;overflow-wrap:anywhere;font-size:13px;margin:0}
#masterSpecializations .checkbox-row input {flex:0 0 17px;width:17px!important;margin:2px 0 0!important}

/* FastUp 6.9.7: right-bottom notifications for staff phone access requests */
.phone-notifications{position:fixed;bottom:18px;right:18px;z-index:9999;display:flex;flex-direction:column;gap:8px;width:min(370px,calc(100vw - 36px));pointer-events:none}.phone-toast,.phone-toast-sound{pointer-events:auto;display:block;border-radius:12px;background:#fff;border:1px solid #cbd5e1;box-shadow:0 8px 25px #0002;padding:12px 16px;color:#172b4d;text-decoration:none;font-size:14px}.phone-toast strong{display:block;margin-bottom:6px}.phone-toast span{display:block}.phone-toast:hover{background:#eff6ff}.phone-toast-sound{font:inherit;cursor:pointer;background:#1d4ed8;color:white;border:0;text-align:center}

/* FastUp 6.9.8: dismiss phone access toast without approving the request. */
.phone-toast-item{pointer-events:auto;display:flex;align-items:stretch;gap:6px}
.phone-toast-item .phone-toast{flex:1;min-width:0}
.phone-toast-close{cursor:pointer;flex:0 0 auto;align-self:center;border:1px solid #cbd5e1;background:white;color:#334155;border-radius:8px;padding:8px;font:inherit;font-size:12px}
.phone-toast-close:hover{background:#f1f5f9}
.phone-toast-close:disabled{opacity:.6;cursor:wait}

/* FastUp 6.15 — закреплённая шапка, роль и дата регистрации без логина. */
.nav { position:sticky; top:0; z-index:110; isolation:isolate; box-shadow:0 2px 10px rgba(10,25,45,.13); }
.nav-inner nav { align-items:center; }
.nav-user-identity { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:3px; min-width:118px; }
.nav-role-name { color:#e0ebff; font-size:13px; font-weight:700; white-space:nowrap; }
.nav-role-date { color:#bccce2; font-size:10px; white-space:nowrap; }
.nav .inline { flex-shrink:0; }
@media(max-width:800px) {
  .nav-inner { gap:8px; padding:10px 14px; }
  .nav-inner nav { width:100%; gap:10px; }
  .nav-user-identity { align-items:flex-start; }
}

/* FastUp 6.20: responsive order dates and translucent directions */
.orders-table .direction-chip{display:inline-block;padding:5px 9px;border-radius:8px;font-weight:750;white-space:nowrap;border:1px solid transparent}
.orders-table .direction-kp{background:rgba(42,170,91,.19);border-color:rgba(42,170,91,.32);color:#196637}
.orders-table .direction-mnch{background:rgba(55,127,227,.19);border-color:rgba(55,127,227,.32);color:#1b4d90}
.orders-table .direction-bt{background:rgba(237,150,35,.20);border-color:rgba(237,150,35,.34);color:#8e4b0e}
.orders-table .date-cell{white-space:normal;min-width:112px;max-width:150px;overflow-wrap:normal;font-size:12px;font-variant-numeric:tabular-nums}
.orders-table th:nth-child(4),.orders-table th:nth-child(12){white-space:normal;min-width:110px}
.orders-table td:nth-child(4),.orders-table td:nth-child(12){min-width:112px;white-space:normal;font-variant-numeric:tabular-nums}
.order-net-summary{padding:12px;margin:8px 0 14px;border-radius:9px;background:#f0f6ff;color:#173d70}
@media(max-width:650px){.orders-table th,.orders-table td{padding:8px 7px;font-size:12px}.orders-table .date-cell{min-width:104px;max-width:125px;font-size:11px;line-height:1.5}.orders-table th:nth-child(4),.orders-table th:nth-child(12),.orders-table td:nth-child(4),.orders-table td:nth-child(12){min-width:104px;max-width:125px;white-space:normal;overflow-wrap:normal}}

.orders-table .date-time{display:block;font-size:11px;line-height:1.5;color:#66758a;margin-top:2px}

/* FastUp 6.22: iPhone - table filter controls must never paint outside cells.
   Table remains horizontally scrollable; individual filters fit their columns. */
.orders-table-card,.orders-grid-scroll{min-width:0;max-width:100%}
.orders-grid-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto;overflow-y:visible}
.orders-table .filter-row td{box-sizing:border-box;min-width:0;max-width:none;overflow:hidden}
.orders-table .filter-row input,.orders-table .filter-row select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0;font-size:12px}
.orders-table .filter-row input[type=date]{min-width:0;width:100%;max-width:100%;padding:7px 3px;font-size:12px;appearance:none;-webkit-appearance:none}
.orders-table .filter-row input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}
.orders-table .filter-row input[type=date]::-webkit-calendar-picker-indicator{width:14px;margin:0;padding:0}
.orders-table th:nth-child(4),.orders-table td:nth-child(4),
.orders-table th:nth-child(12),.orders-table td:nth-child(12){width:158px;min-width:158px;max-width:158px}
.orders-table .filter-row td:nth-child(4),.orders-table .filter-row td:nth-child(12){width:158px;min-width:158px;max-width:158px}
.orders-table .filter-row td:nth-child(1){min-width:120px;width:120px}
@media(max-width:650px){
  .orders-table{min-width:1630px}
  .orders-table .filter-row td:nth-child(4),.orders-table .filter-row td:nth-child(12),
  .orders-table th:nth-child(4),.orders-table td:nth-child(4),
  .orders-table th:nth-child(12),.orders-table td:nth-child(12){width:158px;min-width:158px;max-width:158px}
  .orders-table .filter-row input,.orders-table .filter-row select{font-size:12px;padding:6px 4px;height:36px}
  .orders-table .filter-row input[type=date]{padding:6px 2px;font-size:12px}
}
/* FASTUP_MOBILE_DATES_V1_BEGIN: additive, mobile-only responsive date controls */
@media (max-width: 800px) {
  /* All CRM sections: contain native Safari date/time widgets in their parent. */
  .container, .card, .form-card, .detail-grid, .grid, .form-grid, .filters,
  .partner-filters, .heading, .actions, .orders-heading, .orders-table-card,
  .table-wrap, .orders-grid-scroll { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .grid > *, .form-grid > *, .filters > *, .partner-filters > *,
  .detail-grid > *, .card > form, form > label, .filters label,
  .partner-filters label { min-width: 0; max-width: 100%; box-sizing: border-box; }
  input[type="date"], input[type="time"], input[type="datetime-local"],
  input[type="month"], input[type="week"] {
    display: block; box-sizing: border-box; width: 100%; min-width: 0;
    max-width: 100%; font-size: 16px; line-height: 1.3; height: 44px;
    padding: 8px 9px; overflow: hidden; color: inherit;
  }
  input[type="date"]::-webkit-date-and-time-value,
  input[type="time"]::-webkit-date-and-time-value,
  input[type="datetime-local"]::-webkit-date-and-time-value {
    min-width: 0; text-align: left;
  }
  input[type="date"]::-webkit-datetime-edit,
  input[type="time"]::-webkit-datetime-edit,
  input[type="datetime-local"]::-webkit-datetime-edit { min-width: 0; padding: 0; }
  input[type="date"]::-webkit-calendar-picker-indicator,
  input[type="datetime-local"]::-webkit-calendar-picker-indicator { margin-left: 2px; flex-shrink: 0; }
  .grid.two, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-filters { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .partner-filters label { width: 100%; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .filters > input, .filters > select, .filters > label { flex: 1 1 170px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { width: max-content; min-width: 100%; }
  .date-cell, td[class*="date"], .history time, dl dd { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  /* Order filter cells use two columns on phones; collapse to one on narrow devices. */
  .orders-table .filter-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .orders-table .filter-row td, .orders-table .filter-row label { min-width: 0!important; max-width: 100%; }
  .orders-table .filter-row input[type="date"] { width: 100%; min-width: 0!important; max-width: 100%; }
  .orders-table .date-cell { white-space: normal; word-break: normal; line-height: 1.45; }
}
@media (max-width: 390px) {
  .orders-table .filter-row { grid-template-columns: minmax(0,1fr); }
}
/* FASTUP_MOBILE_DATES_V1_END */
/* FASTUP_MOBILE_FIX_V2_BEGIN -- non-destructive global phone layout */
/* Keep normal desktop navigation after moving the original nav into details. */
@media (min-width:801px) {
 .fastup-mobile-menu { display:contents; }
 .fastup-mobile-menu > summary { display:none; }
 .fastup-mobile-menu > nav { display:flex; }
}

@media (max-width: 800px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .container, main, .card, .grid, .form-grid, .detail-grid, .stats, .heading, .table-wrap { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .grid > *, .form-grid > *, .detail-grid > *, .stats > *, .card > *, form > *, .heading > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
  input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=week] {
    box-sizing: border-box !important; display:block; width:100% !important; min-width:0 !important; max-width:100% !important;
    height:auto; min-height:46px; padding:10px 12px !important; font-size:16px !important; line-height:1.4;
  }
  input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { min-width:0; text-align:left; }
  input[type=date]::-webkit-datetime-edit, input[type=time]::-webkit-datetime-edit { min-width:0; padding:0; }
  /* Real mobile layout for every period/date filter form, not simply narrower date fields. */
  form:has(input[type=date]) { max-width:100%; min-width:0; }
  form:has(input[type=date]) > label, form:has(input[type=date]) > .field,
  form:has(input[type=date]) > .form-field { min-width:0 !important; max-width:100% !important; }
  .partner-filters:has(input[type=date]), .filters:has(input[type=date]),
  .form-grid:has(input[type=date]), .grid.two:has(input[type=date]) {
    display:grid !important; grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important; align-items:stretch;
  }
  .partner-filters:has(input[type=date]) > label, .filters:has(input[type=date]) > label,
  .form-grid:has(input[type=date]) > label, .grid.two:has(input[type=date]) > label { width:100% !important; margin:0; }
  .table-wrap, .orders-grid-scroll { max-width:100%; overflow-x:auto !important; overflow-y:hidden; -webkit-overflow-scrolling:touch; }
  .table-wrap > table { width:max-content; min-width:100%; }
  .table-wrap th, .table-wrap td { white-space:nowrap; }
  .table-wrap td:first-child { white-space:normal; min-width:120px; }
  /* Top navigation is transformed into a real mobile details menu by the companion script. */
  .nav-inner { display:flex !important; flex-direction:row !important; align-items:center !important; flex-wrap:wrap; justify-content:space-between; gap:10px; padding:12px 16px; }
  .nav-inner > .brand { flex:1 1 auto; min-width:0; }
  .nav-inner > nav { display:none !important; }
  .fastup-mobile-menu { margin-left:auto; position:relative; display:block; color:#fff; }
  .fastup-mobile-menu > summary { cursor:pointer; list-style:none; user-select:none; background:#274363; border:1px solid #6a809b; padding:10px 14px; border-radius:9px; font-size:15px; font-weight:700; }
  .fastup-mobile-menu > summary::-webkit-details-marker {display:none;}
  .fastup-mobile-menu > nav { display:none !important; }
  .fastup-mobile-menu[open] > nav { display:flex !important; position:absolute; right:0; top:calc(100% + 8px); width:min(330px,calc(100vw - 26px)); max-height:calc(100dvh - 110px); overflow-y:auto; -webkit-overflow-scrolling:touch; z-index:1000; padding:10px; background:#14253b; border:1px solid #47617d; border-radius:12px; box-shadow:0 15px 35px #071a30aa; flex-direction:column; align-items:stretch; gap:3px; flex-wrap:nowrap; }
  .fastup-mobile-menu > nav > * { flex:0 0 auto; margin:0; }
  .fastup-mobile-menu nav > a, .fastup-mobile-menu nav > form, .fastup-mobile-menu nav > .nav-dropdown, .fastup-mobile-menu nav > details { display:block; width:100%; max-width:100%; }
  .fastup-mobile-menu nav > a, .fastup-mobile-menu nav .link, .fastup-mobile-menu nav .nav-dropdown > summary { width:100%; display:block; text-align:left; padding:10px 12px; color:#e0ebff; font-size:15px; }
  .fastup-mobile-menu .nav-dropdown-menu { position:static; width:100%; min-width:0; max-width:100%; margin:4px 0 8px; box-shadow:none; }
  .fastup-mobile-menu .nav-dropdown[open] > summary { color:#fff; background:#294865; }
}
@media (max-width:600px) {
  .container, body:has(.orders-table) .container { padding-left:12px; padding-right:12px; }
  .card { max-width:100%; padding:16px; }
  .actions, .filters, .partner-filters { max-width:100%; }
  .date-cell, td[class*=date] { white-space:normal; overflow-wrap:anywhere; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) { .stats { grid-template-columns:minmax(0,1fr); } }
/* FASTUP_MOBILE_FIX_V2_END */

/* FastUp: восстановление десктопного меню */
@media (min-width: 801px) {
    .nav-inner > nav {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .fastup-mobile-menu {
        display: none !important;
    }
}
