.filter-panel form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.filter-disclosure { display: block; flex: 1 1 auto; }
.filter-disclosure summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-soft); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; }
.filter-disclosure summary::-webkit-details-marker { display: none; }
.filter-disclosure summary::after { content: '\203A'; font-size: 19px; line-height: 1; transform: rotate(90deg); transition: transform .15s ease; }
.filter-disclosure[open] summary::after { transform: rotate(-90deg); }
.filter-advanced { display: none; }
.filter-disclosure[open] .filter-advanced { display: flex; align-items: end; gap: 8px; padding-top: 8px; }
@media (max-width: 700px) {
	.filter-panel form { display: grid; grid-template-columns: minmax(0, 1fr) 42px; }
	.filter-disclosure { grid-column: 1 / -1; grid-row: 2; width: 100%; }
	.filter-disclosure[open] .filter-advanced { flex-direction: column; align-items: stretch; }
	.filter-disclosure .filter-field { min-width: 100%; }
}
.filter-panel form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.filter-panel .filter-disclosure { grid-column: 1 / -1; }
@media (max-width: 700px) {
	.filter-panel form { grid-template-columns: minmax(0, 1fr) 42px; }
	.filter-panel .filter-search { grid-column: 1; min-width: 0; width: auto; }
	.filter-panel .filter-submit { grid-column: 2; grid-row: 1; width: 42px; height: 42px; }
	.filter-panel .filter-disclosure { grid-column: 1 / -1; grid-row: 2; width: 100%; }
}
@media (max-width: 700px) {
	.filter-panel form { align-items: stretch; }
	.filter-search { flex: 1 1 calc(100% - 50px); min-width: 0; }
	.filter-search label { display: none; }
	.filter-search input { min-height: 42px; }
	.filter-submit { width: 42px; height: 42px; flex: 0 0 42px; }
	.filter-disclosure { display: block; flex: 1 1 100%; order: 3; }
	.filter-disclosure summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-soft); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
	.filter-disclosure summary::-webkit-details-marker { display: none; }
	.filter-disclosure summary::after { content: '\203A'; font-size: 19px; line-height: 1; transform: rotate(90deg); transition: transform .15s ease; }
	.filter-disclosure[open] summary::after { transform: rotate(-90deg); }
	.filter-advanced { display: none; }
	.filter-disclosure[open] .filter-advanced { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
	.filter-disclosure .filter-field { min-width: 100%; }
}
@media (max-width: 700px) { .items-table .selection-column { position: sticky; left: 0; z-index: 4; background: var(--surface-soft); } .items-table .item-name-column, .items-table .item-name-cell { position: sticky; left: 0; z-index: 3; background: var(--surface); } .items-table .item-name-column { background: var(--surface-soft); } .items-table.has-selection .item-name-column, .items-table.has-selection .item-name-cell { left: 44px; } .items-table .item-name-cell { box-shadow: 8px 0 12px -12px rgba(32, 48, 64, .45); } }
:root { --tg-blue: #168acd; --tg-blue-dark: #1176b2; --ink: #203040; --muted: #778899; --line: #e5edf3; --canvas: #f4f8fb; --surface: #fff; --surface-soft: #f8fbfd; --green: #22a06b; --shadow: rgba(31, 72, 101, .05); }
:root[data-theme='dark'] { --ink: #e8f1f7; --muted: #91a5b5; --line: #2b4252; --canvas: #15232e; --surface: #1d303c; --surface-soft: #223845; --shadow: rgba(0, 0, 0, .2); }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'Manrope', sans-serif; font-size: 14px; transition: background .2s ease, color .2s ease; }
.app-nav { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px var(--shadow); }
.nav-inner { min-height: 72px; display: flex; align-items: center; gap: 36px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand b { color: var(--tg-blue); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--tg-blue); font-size: 18px; }
.nav-links { display: flex; align-self: stretch; gap: 8px; flex: 1; }
.nav-toggle { display: none; }
.nav-link { color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 8px; padding: 0 13px; font-weight: 700; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--tg-blue); }
.nav-link.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--tg-blue); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .user-menu { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 0; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.theme-toggle:hover, .user-menu:hover { color: var(--tg-blue); border-color: #81c8e8; background: rgba(22, 138, 205, .08); }
.theme-toggle i, .user-menu i { font-size: 15px; }
.logout-form { display: flex; align-items: center; gap: 7px; margin: 0; }
.profile-toggle { display: flex; align-items: center; gap: 7px; border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; }
.profile-toggle .bi-chevron-down { font-size: 11px; }
.profile-menu { min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 30px rgba(20, 52, 73, .14); }
.profile-summary { padding: 7px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.profile-summary strong { color: var(--ink); font-size: 13px; }
.profile-summary span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.profile-menu .dropdown-item { border-radius: 7px; color: var(--ink); font-size: 13px; padding: 8px 10px; }
.profile-menu .dropdown-item:hover { background: var(--surface-soft); color: var(--tg-blue); }
.profile-menu .dropdown-item i { width: 20px; color: var(--muted); }
.profile-menu form { margin: 0; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #63b7df; font-size: 12px; font-weight: 800; }
.page-content { padding-top: 38px; padding-bottom: 60px; }
.eyebrow { color: var(--tg-blue); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; margin-bottom: 7px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.7px; }
h1 { font-size: 30px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.page-heading p { color: var(--muted); margin: 6px 0 0; }
.btn { border-radius: 8px; font-weight: 700; padding: 8px 11px; border: 0; font-size: 13px; line-height: 1.25; }
.btn-primary { background: var(--tg-blue); box-shadow: 0 5px 14px rgba(22, 138, 205, .2); }
.btn-primary:hover { background: var(--tg-blue-dark); }
.btn-outline-secondary, .btn-outline-success { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline-success:hover { color: var(--green); background: #f0fbf6; border-color: #bde9d4; }
.btn i { margin-right: 5px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 23px; box-shadow: 0 8px 25px var(--shadow); }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; color: var(--tg-blue); background: #e8f5fc; }
.stat-label { color: var(--muted); font-weight: 600; margin-top: 18px; }
.stat-value { color: var(--ink); font-size: 36px; line-height: 1.1; font-weight: 800; margin-top: 5px; }
.table-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 7px 24px var(--shadow); }
.table { margin: 0; vertical-align: middle; }
.table thead th { background: var(--surface-soft); color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .65px; padding: 15px 18px; white-space: nowrap; }
.table tbody td { border-color: #eef3f6; padding: 16px 18px; color: #536678; }
.table tbody tr:hover { background: var(--surface-soft); }
.table tbody td:first-child { color: var(--ink); font-weight: 700; }
.table a { color: var(--tg-blue); text-decoration: none; }
.table a:hover { color: var(--tg-blue-dark); }
.row-action { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--tg-blue) !important; background: var(--surface-soft); }
.row-action:hover { border-color: #81c8e8; background: rgba(22, 138, 205, .12); }
.row-actions { display: inline-flex; gap: 6px; }
.row-action-danger { color: #d65353 !important; }
.row-action-danger:hover { border-color: #e5a6a6; background: #fff0f0; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--green); background: #eaf8f1; }
.status-off { color: #a3adb6; background: #f0f3f5; }
.status-waiting { color: #c17d18; background: #fff5df; }
.quantity-cell { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.quantity-cell.remaining { color: #c17d18 !important; }
.filter-panel, .form-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; box-shadow: 0 5px 18px var(--shadow); }
.filter-panel form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.filter-field { display: flex; flex: 1 1 145px; min-width: 125px; flex-direction: column; gap: 5px; }
.filter-search { flex-basis: 190px; }
.filter-field label { margin: 0; line-height: 1; }
.filter-field input, .filter-field select { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--ink); background: var(--surface); box-shadow: none; font: inherit; font-size: 13px; outline: none; }
.filter-field input:focus, .filter-field select:focus { border-color: #73c1e5; box-shadow: 0 0 0 3px rgba(115, 193, 229, .16); }
.filter-field input[type='search'] { appearance: none; -webkit-appearance: none; }
.filter-field select { cursor: pointer; }
.filter-submit { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #fff; background: var(--tg-blue); cursor: pointer; box-shadow: 0 4px 10px rgba(22, 138, 205, .18); transition: background .15s ease, transform .15s ease; }
.filter-submit:hover { background: var(--tg-blue-dark); transform: translateY(-1px); }
.filter-submit i { font-size: 15px; }
label { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.form-control, .form-select { border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; min-height: 36px; color: var(--ink); background: var(--surface); font-size: 13px; }
.form-control:focus, .form-select:focus { border-color: #73c1e5; box-shadow: 0 0 0 3px #e1f3fb; }
.form-switch { padding-left: 2.8em; }
.form-switch .form-check-input { width: 2.2em; height: 1.2em; margin-left: -2.8em; margin-top: .1em; border-color: var(--line); background-color: var(--surface-soft); cursor: pointer; }
.form-switch .form-check-input:checked { border-color: var(--tg-blue); background-color: var(--tg-blue); }
.form-check-label { color: var(--ink); font-weight: 700; cursor: pointer; }
.empty-state { color: var(--muted); text-align: center; padding: 38px !important; }
:root[data-theme='dark'] .btn-outline-secondary, :root[data-theme='dark'] .btn-outline-success { color: var(--ink); background: var(--surface); }
:root[data-theme='dark'] .table { --bs-table-color: var(--ink); --bs-table-bg: var(--surface); --bs-table-border-color: var(--line); }
:root[data-theme='dark'] .text-muted { color: var(--muted) !important; }
:root[data-theme='dark'] .table tbody td { border-color: var(--line); color: #b0c0cb; }
:root[data-theme='dark'] .table-striped>tbody>tr:nth-of-type(odd)>* { --bs-table-accent-bg: #1a2c37; color: var(--ink); }
:root[data-theme='dark'] .table tbody tr:hover { background: #263e4c; }
:root[data-theme='dark'] .stat-icon { background: #23475a; }
:root[data-theme='dark'] .status-ok { background: #174835; }
:root[data-theme='dark'] .status-off { background: #33434d; }
:root[data-theme='dark'] .profile-menu { box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
:root[data-theme='dark'] .filter-panel .form-control,
:root[data-theme='dark'] .filter-panel .form-select,
:root[data-theme='dark'] .filter-panel input,
:root[data-theme='dark'] .filter-panel select { color: var(--ink); background-color: var(--surface-soft); border-color: var(--line); color-scheme: dark; }
:root[data-theme='dark'] .filter-panel select option { color: var(--ink); background: var(--surface); }
:root[data-theme='dark'] .filter-panel input::placeholder { color: #7e96a7; }
.filter-panel .form-control, .filter-panel .form-select { box-shadow: none; }
:root[data-theme='dark'] .filter-field input, :root[data-theme='dark'] .filter-field select { background: var(--surface-soft); color: var(--ink); border-color: var(--line); color-scheme: dark; }
:root[data-theme='dark'] .filter-field select option { background: var(--surface); color: var(--ink); }
:root[data-theme='dark'] .filter-panel .filter-submit { color: #d9f1fc; }
@media (max-width: 700px) { .nav-inner { position: relative; gap: 8px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; } .brand { font-size: 15px; margin-right: auto; } .brand-mark { width: 32px; height: 32px; font-size: 16px; } .brand span:last-child { display: none; } .nav-toggle { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 21px; } .nav-actions { gap: 5px; } .theme-toggle { width: 42px; height: 42px; } .profile-toggle .bi-chevron-down { display: none; } .nav-links { position: absolute; z-index: 10; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; gap: 4px; align-self: auto; padding: 10px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--surface); box-shadow: 0 12px 24px var(--shadow); } .nav-links.is-open { display: flex; } .nav-link { min-height: 46px; padding: 0 12px; border-radius: 9px; font-size: 14px; } .nav-link.active::after { display: none; } .nav-link.active { background: var(--surface-soft); } .page-content { padding: 24px 12px 42px; } .page-heading { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 20px; } .page-heading .btn { width: 100%; min-height: 44px; } h1 { font-size: 25px; margin-bottom: 0; } .table-shell { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 11px; } .table { min-width: 680px; } .table thead th { padding: 11px 10px; font-size: 10px; } .table tbody td { padding: 12px 10px; } .table tbody td:first-child, .table thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); } .table thead th:first-child { background: var(--surface-soft); } .filter-panel { padding: 10px; } .filter-panel form { align-items: stretch; } .filter-field { min-width: 100%; } .filter-submit { width: 100%; height: 42px; } .stat-card { padding: 17px; border-radius: 12px; } .stat-value { font-size: 30px; } .stat-label { margin-top: 13px; } }