.arm-workspace { padding: 12px 0 40px; }
.arm-heading, .arm-actions, .arm-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arm-heading h2 { font-size: 23px; margin: 6px 0 0; }
.arm-eyebrow { font-size: 11px; color: var(--muted); }
.arm-actions { justify-content: flex-start; flex-wrap: wrap; }
.arm-workspace button, .arm-dialog button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; cursor: pointer; }
.arm-workspace button:disabled, .arm-dialog button:disabled { cursor: not-allowed; opacity: .5; }
.arm-workspace svg, .arm-dialog svg { width: 18px; height: 18px; flex-shrink: 0; }
.arm-icon { width: 44px; height: 44px; padding: 10px !important; flex-shrink: 0; }
.arm-totals { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 28px 0; color: var(--muted); font-size: 13px; }
.arm-totals strong { font-size: 20px; color: var(--ink); margin-right: 5px; font-variant-numeric: tabular-nums; }
.arm-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--stroke); }
.arm-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0; color: var(--muted); }
.arm-tabs button[aria-selected="true"] { color: #246d66; border-bottom-color: #246d66; }
.arm-tabs span { font-size: 12px; }
.arm-status:empty { display: none; }
.arm-status { font-size: 14px; margin: 20px 0; color: #246d66; }
.arm-status.error, .arm-form-error { color: #a0354c; }
.arm-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(140px, 190px) minmax(140px, 190px); gap: 12px; padding: 24px 0; }
.arm-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--stroke); border-radius: 5px; padding-left: 12px; }
.arm-search input { border: 0; background: transparent; min-width: 0; width: 100%; }
.arm-workspace input, .arm-workspace select, .arm-dialog input, .arm-dialog select, .arm-dialog textarea { min-height: 44px; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 5px; }
.arm-table-head, .arm-row { display: grid; grid-template-columns: minmax(170px, 2fr) minmax(110px, 1fr) minmax(130px, 1.2fr) 148px; align-items: center; gap: 18px; }
.arm-table-head { font-size: 12px; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.arm-row { padding: 20px 0; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.arm-item-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.arm-item-name strong { font-size: 15px; overflow-wrap: anywhere; }
.arm-kind { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 5px; flex-shrink: 0; background: #eaf3f2; color: #246d66; }
.arm-kind.material { background: #edf1fa; color: #45629a; }
.arm-kind.equipment { background: #faf1dc; color: #856318; }
.arm-row small, .arm-kit small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.arm-quantity strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.arm-quantity span { font-size: 12px; color: var(--muted); }
.arm-warning { color: #9d4b24 !important; }
.arm-ok { color: #246d66; }
.arm-row .arm-actions { gap: 5px; justify-content: flex-end; }
.arm-packed { background: #eaf3f2 !important; color: #246d66; border-color: #b6d4d1 !important; }
.arm-empty { display: flex; align-items: center; flex-direction: column; gap: 18px; padding: 60px 20px; text-align: center; color: var(--muted); }
.arm-empty > svg { width: 40px; height: 40px; color: #609792; }
.arm-empty h3 { margin: 0; color: var(--ink); font-size: 18px; }
.arm-kit { border-bottom: 1px solid var(--stroke); }
.arm-kit summary { list-style: none; display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; }
.arm-kit summary::-webkit-details-marker { display: none; }
.arm-kit summary > span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.arm-kit[open] summary > svg { transform: rotate(180deg); }
.arm-kit strong { overflow-wrap: anywhere; }
.arm-kit-content { padding: 0 0 24px; }
.arm-kit-content p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.arm-kit ul { padding: 0; margin: 0 0 20px; list-style: none; }
.arm-kit li { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid var(--stroke); font-size: 14px; }
.arm-kit li > span:last-child { white-space: nowrap; color: var(--muted); }
.arm-dialog { width: min(740px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 28px; border: 1px solid var(--stroke); border-radius: 8px; color: var(--ink); background: white; overflow-y: auto; }
.arm-dialog::backdrop { background: rgb(15 35 33 / 35%); }
.arm-dialog-head { margin-bottom: 24px; }
.arm-dialog h2 { font-size: 22px; margin: 0; }
.arm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.arm-field { display: flex; flex-direction: column; min-width: 0; gap: 8px; margin-bottom: 16px; }
.arm-field > span { font-size: 13px; font-weight: 600; }
.arm-field input, .arm-field select, .arm-field textarea { width: 100%; min-width: 0; border: 1px solid var(--stroke); background: white; color: var(--ink); }
.arm-form-grid .arm-field { margin: 0; }
.arm-form-grid { margin-bottom: 20px; }
.arm-form-details { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); margin: 20px 0; }
.arm-form-details summary { padding: 16px 0; cursor: pointer; }
.arm-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.arm-form-actions > button:first-child:not(:last-child) { margin-right: auto; }
.arm-form-error { font-size: 14px; }
.arm-form-error:empty { display: none; }
.arm-kit-line { display: grid; grid-template-columns: minmax(0, 1fr) 80px 130px 44px; gap: 12px; border-top: 1px solid var(--stroke); padding-top: 18px; }
.arm-kit-line .arm-field:nth-child(4) { grid-column: 1 / 4; }
.arm-kit-line > button { grid-column: 4; grid-row: 1; align-self: end; margin-bottom: 16px; }
@media (max-width: 700px) {
  .arm-heading { flex-wrap: wrap; }
  .arm-heading h2 { font-size: 20px; }
  .arm-heading > .arm-actions { width: 100%; justify-content: flex-end; }
  .arm-toolbar { grid-template-columns: 1fr 1fr; }
  .arm-search { grid-column: 1 / -1; }
  .arm-toolbar select { min-width: 0; width: 100%; }
  .arm-table-head { display: none; }
  .arm-row { grid-template-columns: minmax(0, 1fr) 148px; gap: 12px; }
  .arm-item-name { grid-column: 1 / -1; }
  .arm-quantity { grid-column: 1; }
  .arm-row-status { grid-column: 1; }
  .arm-row .arm-actions { grid-column: 2; grid-row: 2 / 4; }
  .arm-dialog { padding: 20px; }
  .arm-form-grid { grid-template-columns: 1fr; }
  .arm-kit-line { grid-template-columns: minmax(0, 1fr) 76px 44px; }
  .arm-kit-line .arm-field:nth-child(3) { grid-column: 1 / 3; }
  .arm-kit-line .arm-field:nth-child(4) { grid-column: 1 / 3; }
  .arm-kit-line > button { grid-column: 3; }
}
