.hs-workspace { max-width: 1200px; margin: 0 auto; min-width: 0; color: var(--ink, #1f2528); }
.hs-workspace * { box-sizing: border-box; min-width: 0; letter-spacing: 0; }
.hs-heading, .hs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hs-heading { justify-content: space-between; border-bottom: 1px solid var(--line, #ced8d8); padding: 8px 0 16px; }
.hs-heading h2 { font-size: 22px; margin: 0; }.hs-heading p { margin: 4px 0 0; }
.hs-workspace h3 { font-size: 18px; margin: 20px 0 12px; }
.hs-workspace h4 { font-size: 16px; }
.hs-workspace p, .hs-workspace strong, .hs-workspace span, .hs-workspace label { overflow-wrap: anywhere; }
.hs-workspace button, .hs-workspace input, .hs-workspace select { min-height: 44px; font: inherit; max-width: 100%; border-radius: 6px; }
.hs-workspace button { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line, #ced8d8); background: var(--panel, #fff); color: inherit; cursor: pointer; }
.hs-workspace button:disabled { opacity: .55; cursor: default; }
.hs-workspace button:hover:not(:disabled), .hs-workspace button:active:not(:disabled) { background: color-mix(in srgb, var(--brand, #1c8d84) 10%, var(--panel, #fff)); }
.hs-workspace button:not([data-status]):hover:not(:disabled) { border-color: var(--brand, #1c8d84); }
.hs-workspace :focus-visible { outline: 3px solid var(--brand-focus, var(--brand, #1c8d84)); outline-offset: 2px; }
.hs-workspace button svg { width: 20px; height: 20px; flex-shrink: 0; }
.hs-workspace button[type=submit], .hs-workspace [data-service-action=lock],
.hs-workspace button[type=submit]:hover:not(:disabled), .hs-workspace button[type=submit]:active:not(:disabled),
.hs-workspace [data-service-action=lock]:hover:not(:disabled), .hs-workspace [data-service-action=lock]:active:not(:disabled) { background: var(--brand, #1c8d84); color: var(--on-brand, #000); border-color: var(--brand, #1c8d84); }
.hs-workspace label { display: grid; gap: 6px; font-weight: 600; }
.hs-workspace input, .hs-workspace select { background: var(--panel, #fff); color: var(--ink, #1f2528); border: 1px solid var(--line, #ced8d8); padding: 8px 10px; width: 100%; }
.hs-status { min-height: 36px; padding: 8px 0; color: var(--muted, #637074); }
.hs-error, .hs-warning { padding: 14px; margin: 0 0 14px; border-left: 4px solid var(--status-danger-text, #8f2b22); background: var(--status-danger-bg, #fff0ec); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hs-warning { border-color: var(--status-warning-text, #70501c); background: var(--status-warning-bg, #fff5df); }
.hs-controls { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.hs-floor { margin-top: 16px; width: 100%; aspect-ratio: 16 / 9; max-height: 500px; border: 1px solid var(--line, #ced8d8); background: var(--panel, #fff); }
.hs-floor > svg { display: block; width: 100%; height: 100%; touch-action: none; }
.hs-floor .hl-object:focus-visible { outline: none; }
.hs-floor .hl-object:focus-visible > rect, .hs-floor .hl-object:focus-visible > ellipse { stroke: var(--brand-focus, var(--brand, #1c8d84)); stroke-width: 50; }
.hs-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; list-style: none; padding: 0; }
.hs-tables button, .hs-visits button { width: 100%; align-items: flex-start; flex-direction: column; text-align: left; }
.hs-tables [data-status=Available] { border-left: 5px solid #1b8c68; }
.hs-tables [data-status=Occupied] { border-left: 5px solid #4273b8; }
.hs-tables [data-status=NeedsCleaning] { border-left: 5px solid #b58a12; }
.hs-tables [data-status=Blocked] { border-left: 5px solid #b32f43; }
.hs-tables span, .hs-visits span { font-size: 14px; }
.hs-visits, .hs-lines, .hs-checks { list-style: none; padding: 0; margin: 12px 0; }
.hs-visits li + li { margin-top: 8px; }
.hs-lines li, .hs-checks li { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line, #ced8d8); padding: 12px 0; }
.hs-lines strong { flex-shrink: 0; }
.hs-order { border-top: 1px solid var(--line, #ced8d8); padding: 12px 0 20px; margin-top: 20px; }
.hs-form { display: grid; gap: 16px; max-width: 640px; margin: 16px 0 24px; }
.hs-form h3 { margin: 0; }.hs-form > button[type=submit] { justify-self: start; }
.hs-workspace .hs-checkbox { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.hs-workspace .hs-checkbox input { width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; padding: 0; accent-color: var(--brand, #1c8d84); }
.hs-line-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; max-width: 640px; margin-bottom: 12px; }
.hs-total { font-size: 22px; font-weight: 700; }
.hs-balance { display: grid; gap: 4px; margin: 8px 0 16px; min-width: 0; }
.hs-balance > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hs-balance dt { overflow-wrap: anywhere; }
.hs-balance dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.hs-receipt { border-left: 4px solid var(--status-success-text, #146447); padding: 12px 16px; margin-bottom: 20px; background: var(--status-success-bg, #e2f6ed); }
@media (max-width: 600px) { .hs-floor { aspect-ratio: 1; }.hs-actions > label { width: 100%; }.hs-checks li { align-items: flex-start; flex-direction: column; }.hs-workspace button { white-space: normal; } }
@media (prefers-reduced-motion: no-preference) { .hs-workspace[aria-busy=true] .hs-status::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid var(--line, #ced8d8); border-top-color: var(--brand, #1c8d84); border-radius: 50%; animation: hs-spin .8s linear infinite; } @keyframes hs-spin { to { transform: rotate(360deg); } } }
