.stores-filters { position: relative; margin-bottom: 22px; min-height: 84px; }
.stores-filters:has(.stores-default-button) { padding-right: 162px; }
body[data-page="console"] .stores-default-button { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); min-width: 120px; }
.stores-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 26px; }
.stores-metric { min-width: 0; background: #fff; border: 1px solid #dfe8e3; border-radius: 8px; padding: 18px; box-shadow: 0 3px 12px #173b2b06; }
.stores-metric .metric-value { overflow-wrap: anywhere; }
.stores-information { padding: 22px; border: 1px solid #dfe8e3; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px #173b2b06; }
.stores-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.stores-heading h2 { margin: 0; font-size: var(--text-subtitle); }
.stores-search { display: flex; gap: 10px; min-width: 0; }
.stores-search input { width: 350px; max-width: 100%; min-width: 0; height: 40px; border: 1px solid #cbdcd5; border-radius: 5px; padding: 0 12px; font: inherit; color: #30463a; }
.stores-status { color: #728579; font-size: var(--text-small); line-height: 1.6; overflow-wrap: anywhere; }
.stores-heading { margin-bottom: 18px; }
.stores-status.is-error { color: #af3c33; }
.store-devices-link { display:block; margin-top:6px; border:0; padding:0; background:none; color:#197e69; font:inherit; cursor:pointer; }
.store-device-list { display:grid; gap:12px; padding:20px 24px; }
.store-device-item { border:1px solid #dfe8e3; border-radius:8px; padding:14px; overflow-wrap:anywhere; }
.store-device-item p { margin:8px 0 0; color:#62776d; }
#box-ticket-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
#box-ticket-form label, #box-confirm-form label { display:grid; gap:8px; }
#box-identity-editor select, #box-identity-editor input { min-height:42px; padding:8px; border:1px solid #cbdcd5; border-radius:5px; font:inherit; max-width:100%; }
.box-registration-code { font-family:monospace; font-size:20px; overflow-wrap:anywhere; user-select:all; }
.box-identity-list { display:grid; gap:12px; }
.box-identity-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
#box-confirm-form button { margin-top:12px; }
#box-identity-editor [role="alert"] { color:#af3c33; }
.stores-table { min-width: 1600px; }
.stores-table th, .stores-table td { padding: 15px 12px; font-size: var(--text-body); white-space: nowrap; }
.stores-table .stores-address, .stores-table .stores-name { min-width: 140px; max-width: 230px; white-space: normal; overflow-wrap: anywhere; }
.stores-table th:last-child, .stores-table td:last-child { position: sticky; right: 0; z-index: 1; min-width: 140px; text-align: center; background: #fff; box-shadow: -6px 0 10px #173b2b08; }
.stores-table th:last-child { background: #f6f9f7; }
.stores-actions { display: flex; justify-content: center; gap: 12px; }
.stores-actions button { min-height: 36px; padding: 4px 6px; border: 0; background: none; color: #197e69; font: inherit; cursor: pointer; }
.stores-actions button:hover { background: #edf7f1; border-radius: 4px; }
.stores-state { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: var(--text-small); }
.stores-state.online { color: #147758; background: #e4f4eb; }
.stores-state.offline { color: #8b6342; background: #fbf0e5; }
.stores-last-seen { display: block; font-size: var(--text-caption); margin-top: 5px; color: #829187; }
.stores-table .stores-empty { padding: 38px; text-align: center; }
.stores-pages { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: var(--text-small); }
.stores-pages button, .store-editor button { min-height: 38px; padding: 6px 12px; border: 1px solid #cbdcd5; border-radius: 6px; background: #fff; color: #315748; font: inherit; cursor: pointer; }
.stores-pages button:disabled { opacity: .45; cursor: default; }
.store-editor { width: min(820px,calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: auto; padding: 0; border: 1px solid #d4e3da; border-radius: 12px; background: #fff; color: #29473b; box-shadow: 0 20px 70px #132e2540; }
.store-editor::backdrop { background: #12231f70; }
.store-editor header, .store-editor footer { position: sticky; background: #fff; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 1; }
.store-editor header { top: 0; border-bottom: 1px solid #e4ece7; }
.store-editor header h2 { font-size: var(--text-subtitle); margin: 0; }
.store-editor footer { bottom: 0; border-top: 1px solid #e4ece7; justify-content: flex-end; }
.store-editor .primary { color: #fff; background: #197e69; border-color: #197e69; }
.store-editor-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 22px; padding: 20px 24px; }
.store-editor-fields label { display: grid; align-content: start; gap: 8px; font-size: var(--text-body); min-width: 0; }
.store-editor-fields input, .store-editor-fields select, .store-editor-fields textarea { min-width: 0; width: 100%; min-height: 42px; border: 1px solid #cbdcd5; border-radius: 6px; padding: 8px 10px; color: inherit; background: #fff; font: inherit; }
.store-field-wide { grid-column: 1/-1; }
.store-identity { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.store-help { margin: 0; font-size: var(--text-small); color: #728579; line-height: 1.6; }
#store-edit-error { margin: 0 24px 18px; padding: 10px; color: #a93630; background: #fff1ef; border-radius: 5px; }
@media(max-width:900px) { .stores-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .stores-filters:has(.stores-default-button) { padding-right: 14px; padding-bottom: 72px; }
  body[data-page="console"] .stores-default-button { top: auto; bottom: 14px; right: 14px; transform: none; }
  .stores-information { padding: 14px; }
  .stores-search { width: 100%; }
  .stores-search input { flex: 1; width: 100%; }
  .stores-metrics { gap: 9px; }
  .stores-metric { padding: 13px; }
  .store-editor-fields { grid-template-columns: minmax(0,1fr); padding: 18px 16px; }
  .store-editor header, .store-editor footer { padding: 16px; }
}
