.ops-actions,.ops-filters,.ops-modal-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ops-modal-actions {justify-content:flex-end;margin-top:22px}
.ops-wrap {flex-wrap:wrap}
.ops-stat-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}
.ops-stat {display:flex;align-items:flex-start;gap:13px;padding:18px 17px;min-width:0}
.ops-stat-icon,.ops-detail-icon {display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:11px;background:#e6f4f0;color:#007c71}
.ops-stat.orange .ops-stat-icon,.ops-stat-icon.orange {background:#fff2e5;color:#a45418}
.ops-stat.blue .ops-stat-icon {background:#eaf1fb;color:#2b5d99}
.ops-stat-body {display:grid;gap:2px;min-width:0}
.ops-stat[data-stock-filter] {display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:start;color:inherit;text-align:center;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
.ops-stat[data-stock-filter]:hover {border-color:#b4a1dd;background:#fbf9ff}
.ops-stat[aria-pressed="true"] {border-color:#754bd2;background:#f6f0ff;box-shadow:inset 0 0 0 1px #754bd2}
.ops-stat[aria-pressed="true"] .ops-stat-body>span {color:#5129a7;font-weight:700}
.ops-stat strong {font-size:clamp(20px,3vw,29px);font-weight:760;letter-spacing:-.04em;line-height:1.15;overflow-wrap:anywhere}
.ops-stat small {font-size:12px}
.ops-list {overflow:hidden;margin-bottom:18px}
.ops-list-head {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 20px;flex-wrap:wrap}
.ops-list h2,.ops-catalog h2,.ops-scan-card h2,.ops-backup h2 {font-size:18px;line-height:1.3;margin:0 0 4px;letter-spacing:-.025em}
.ops-list-head p,.ops-catalog p,.ops-scan-card p,.ops-backup p {margin:0}
.ops-filters {gap:8px}
.ops-filters select,.ops-search {min-height:38px}
.ops-search {display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #dce5ea;border-radius:8px;color:#516579;padding:0 10px}
.ops-search:focus-within {border-color:#007b72;box-shadow:0 0 0 2px #d7f0eb}
.ops-search input {border:0;background:none;padding:4px 0;width:142px;min-width:0;box-shadow:none!important;outline:none;font:inherit;font-size:14px}
.ops-filters select {font-size:13px;max-width:200px}
.ops-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ops-table {border-collapse:collapse;width:100%;font-size:14px;text-align:left}
.ops-table th {font-size:11px;text-transform:uppercase;letter-spacing:.045em;color:#4d6173;white-space:nowrap;background:#f4f7f8}
.ops-table :is(th,td) {padding:11px 14px;border-top:1px solid #e8edf0}
.ops-table :is(th,td):first-child {padding-left:20px}
.ops-table :is(th,td):last-child {padding-right:20px}
.ops-table .ops-table-action {text-align:right}
.ops-table tbody tr:hover {background:#fafcfc}
.ops-table .ops-small {font-size:12px;min-height:32px;padding:4px 10px}
.ops-table td>.muted {font-size:12px}
.ops-badge {font-size:12px;white-space:nowrap;gap:6px;vertical-align:middle;display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;line-height:1.2;font-weight:700}
.ops-badge::before {display:none}
.ops-badge span {width:6px;height:6px;border-radius:50%;background:currentColor}
.ops-badge.good {background:#e8f6ef;color:#17664e}
.ops-badge.info {background:#e9f1fb;color:#2c5d93}
.ops-badge.caution {background:#fff2dd;color:#84541c}
.ops-badge.danger {background:#fff0eb;color:#a53927}
.ops-badge.neutral {background:#edf1f4;color:#536273}
.ops-item,.ops-detail-head {display:flex;align-items:center;gap:11px}
.ops-item>div {display:grid;gap:2px}
.ops-item .muted {font-size:12px;overflow-wrap:anywhere}
.ops-estimate {display:block;font-size:11px;margin-top:2px}
.ops-thumb {display:grid;place-items:center;flex:none;width:35px;height:35px;overflow:hidden;border-radius:8px;background:#ebf3f4;color:#477879}
.ops-thumb img,.ops-detail-image {display:block;width:100%;height:100%;object-fit:cover}
.ops-category-label {display:inline-flex;align-items:center;gap:7px;min-width:0}
.ops-category-mark {display:inline-grid;flex:none;place-items:center;width:29px;height:29px;border-radius:8px;background:#eee6fe;color:#6537c1}
.ops-category-mark:is([data-glyph="paper"],[data-glyph="desk"],[data-glyph="furniture"],[data-glyph="chair"],[data-glyph="storage"]) {background:#ecf1fb;color:#315b96}
.ops-category-mark:is([data-glyph="coffee"],[data-glyph="pantry"],[data-glyph="packaging"],[data-glyph="tools"]) {background:#fcf0e5;color:#955310}
.ops-category-mark:is([data-glyph="cleaning"],[data-glyph="water"],[data-glyph="network"],[data-glyph="air"]) {background:#e6f4ee;color:#137460}
.ops-item .ops-category-mark {width:36px;height:36px}
.ops-item-photo {width:27px;height:27px;flex:none;object-fit:cover;border-radius:6px}
.ops-text-btn {border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-align:left;padding:0;line-height:1.25}
.ops-text-btn:hover,.ops-text-link:hover {text-decoration:underline;text-underline-offset:3px}
.ops-text-link {color:#007366;font-size:13px;font-weight:650;text-decoration:none;width:fit-content}
.ops-empty {display:grid;justify-items:center;gap:6px;text-align:center;padding:40px 20px;color:#516579}
.ops-empty svg {margin-bottom:4px;color:#007b72}
.ops-empty strong {color:#142434;font-size:16px}
.ops-empty p {margin:0}
.ops-catalog-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}
.ops-catalog {padding:19px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.ops-catalog ul {margin:4px 0 10px;padding-left:19px;flex:1}
.ops-catalog li+li {margin-top:5px}
.ops-catalog .ops-category-list {width:100%;padding:0;list-style:none}
.ops-category-entry {display:flex;align-items:center;justify-content:space-between;gap:7px}
.ops-mini-icon {display:grid;place-items:center;width:30px;height:30px;flex:none;color:#5d35ae;background:transparent;border:1px solid #e7ddf4;border-radius:8px;cursor:pointer}
.ops-mini-icon:hover {background:#f2eafb}
.ops-backup {padding:20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.ops-scan-layout {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:17px;align-items:start}
.ops-scan-card {padding:19px}
.ops-scan-side {display:grid;gap:17px}
.ops-viewfinder {position:relative;display:grid;place-items:center;overflow:hidden;min-height:230px;aspect-ratio:16/9;background:radial-gradient(ellipse at 50% 40%,#234457,#122534);color:#fff;border-radius:12px;margin:14px 0 10px}
.ops-viewfinder video {width:100%;height:100%;inset:0;position:absolute;object-fit:cover}
.ops-viewfinder [hidden],.ops-result[hidden],.ops-movement-purchase[hidden],.ops-movement-cost[hidden],.ops-form-error[hidden],.ops-table tr[hidden] {display:none!important}
.ops-scan-frame {position:absolute;inset:14%;border-radius:9px;background:linear-gradient(#99e7d5,#99e7d5) left top/22px 2px,linear-gradient(#99e7d5,#99e7d5) left top/2px 22px,linear-gradient(#99e7d5,#99e7d5) right top/22px 2px,linear-gradient(#99e7d5,#99e7d5) right top/2px 22px,linear-gradient(#99e7d5,#99e7d5) right bottom/22px 2px,linear-gradient(#99e7d5,#99e7d5) right bottom/2px 22px,linear-gradient(#99e7d5,#99e7d5) left bottom/22px 2px,linear-gradient(#99e7d5,#99e7d5) left bottom/2px 22px;background-repeat:no-repeat;pointer-events:none}
.ops-camera-placeholder {z-index:1;display:grid;justify-items:center;gap:9px;padding:18px 30px;text-align:center;color:#dbf5f0;font-size:13px}
.ops-camera-placeholder svg {color:#a5e8db}
.ops-camera-status:not(:empty) {margin:0 0 11px}
.ops-file-btn {position:relative;overflow:hidden;cursor:pointer}
.ops-file-btn input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.ops-file-btn:focus-within {outline:2px solid #007b72;outline-offset:2px}
.ops-manual {margin-top:14px;display:flex;align-items:flex-end;gap:8px}
.ops-manual .field {flex:1;min-width:0;margin:0}
.ops-manual .btn {flex:none}
.ops-result {display:grid;gap:12px}
.ops-code-value {overflow-wrap:anywhere;font-family:ui-monospace,monospace}
.ops-detail-head {align-items:flex-start;gap:13px}
.ops-detail-head h3 {margin:0 0 4px;font-size:20px;letter-spacing:-.025em}
.ops-detail-head p {margin:0;overflow-wrap:anywhere}
.ops-detail-head .ops-badge {margin-left:auto}
.ops-detail-icon {width:53px;height:53px}
.ops-detail-image {width:65px;height:65px;flex:none;border-radius:10px}
.ops-detail-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:14px 0 0;padding:14px;border:1px solid #e4eaef;border-radius:10px;background:#f8fafb}
.ops-detail-grid dt {color:#536579;font-size:12px;margin-bottom:2px}
.ops-detail-grid dd {margin:0;font-weight:630;overflow-wrap:anywhere}
.ops-detail-links {margin-top:13px}
.ops-history {margin:18px 0 0}
.ops-history h4 {margin:0 0 8px;font-size:15px}
.ops-history ul {list-style:none;padding:0;margin:0;max-height:265px;overflow:auto}
.ops-history li {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 2px;border-bottom:1px solid #e8edf0;font-size:13px}
.ops-history li>div {display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.ops-history li>span {flex:none}
.ops-evidence {display:block;max-width:100%;max-height:320px;object-fit:contain;margin-top:16px;border-radius:10px}
.ops-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:13px}
.ops-form-grid .field {margin:0;min-width:0}
.ops-form-grid .field input,.ops-form-grid .field select,.ops-form-grid .field textarea {width:100%;min-width:0}
.ops-form-grid .field textarea {resize:vertical}
.ops-wide {grid-column:1/-1}
.ops-form-hint {margin:0;font-size:13px;align-self:center}
.ops-calculation {padding:10px 13px;border-radius:9px;background:#f5efff;color:#533280}
.ops-frequency,.ops-product-photo,.ops-icon-picker {min-width:0;margin:0;padding:11px 13px 13px;border:1px solid #e6dff0;border-radius:10px}
.ops-frequency legend,.ops-product-photo legend,.ops-icon-picker legend {padding:0 5px;color:#332747;font-weight:650;font-size:13px}
.ops-frequency legend span {font-weight:450}
.ops-frequency>p,.ops-product-photo>p {margin-top:10px}
.ops-photo-preview {display:flex;align-items:center;gap:8px;margin-top:11px;font-size:13px;color:#615373;overflow-wrap:anywhere}
.ops-photo-preview img {flex:none;width:52px;height:52px;border-radius:8px;object-fit:cover}
.ops-photo-camera {display:grid;gap:9px;margin-top:10px}
.ops-photo-camera video {width:100%;max-height:270px;border-radius:9px;background:#231931;object-fit:contain}
.ops-icon-picker>div {display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:7px}
.ops-icon-choice {cursor:pointer;position:relative}
.ops-icon-choice input {position:absolute;opacity:0;width:1px;height:1px}
.ops-icon-choice span {display:grid;place-items:center;min-height:62px;gap:4px;padding:6px 2px;border:1px solid #e9e0f3;border-radius:8px;color:#5f399f;text-align:center}
.ops-icon-choice input:checked+span {border-color:#754bd2;background:#f6f0ff;box-shadow:inset 0 0 0 1px #754bd2}
.ops-icon-choice input:focus-visible+span {outline:3px solid #9270ec;outline-offset:2px}
.ops-icon-choice small {font-size:11px}
.ops-check {display:flex;align-items:center;gap:7px;min-height:38px;align-self:end;font-size:14px}
.ops-check input {accent-color:#007b72;width:15px;height:15px}
.ops-form-error {color:#9e3120;background:#fff0eb;padding:9px 12px;border-radius:8px;font-size:14px;margin-top:14px}
.ops-danger {color:#a03827!important}

@media (max-width:900px) {
  .ops-stat[data-stock-filter] {grid-template-columns:minmax(0,1fr);justify-items:center;gap:6px}
}
@media (max-width:850px) {
  .ops-scan-layout {grid-template-columns:1fr}
  .ops-viewfinder {max-height:350px}
}
@media (max-width:670px) {
  .ops-stat-grid {gap:8px}
  .ops-stat {padding:11px 9px;display:grid;gap:6px}
  .ops-stat-icon {width:34px;height:34px}
  .ops-stat .muted {font-size:11px}
  .ops-stat small {display:none}
  .ops-catalog-grid {grid-template-columns:1fr}
  .ops-list-head,.ops-backup,.ops-scan-card {padding:14px}
  .ops-table,.ops-table tbody {display:block}
  .ops-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ops-table tbody tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 11px;padding:12px 14px;border-top:1px solid #e8edf0}
  .ops-table tr td {display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
  .ops-table tr td:first-child {grid-column:1/-1;padding:0}
  .ops-table tr td:last-child {padding:0}
  .ops-table tr td:not(:first-child):not(.ops-table-action)::before {content:attr(data-column);display:block;font-size:11px;color:#536579}
  .ops-table .ops-table-action {display:flex;justify-content:flex-start;align-items:flex-end}
  .ops-viewfinder {min-height:185px}
  .ops-filters {width:100%}
  .ops-filters .ops-search {width:100%}
  .ops-search input {width:100%}
  .ops-form-grid {gap:10px}
}
@media (max-width:400px) {
  .ops-form-grid {grid-template-columns:1fr}
  .ops-detail-head {flex-wrap:wrap}
  .ops-detail-head .ops-badge {margin-left:0}
}
