/* assets/director-delay-view.css */
.director-delays {
  max-width: 760px;
  margin: 0 auto;
  color: #172338;
  font: 15px/1.35 Arial, sans-serif;
}
.director-delays > header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #dce1ea;
}
.director-delays button {
  cursor: pointer;
  min-height: 44px;
  background: white;
  color: #183558;
  border: 1px solid #d6deea;
  border-radius: 12px;
  padding: 8px 14px;
}
.director-delays > button {
  display: block;
  width: 100%;
  margin: 8px 0;
  text-align: left;
}
.director-delay-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin: 12px 0;
  color: #17233a;
}
.director-delay-card > header,
.director-delay-card > section,
.delay-bucket {
  border: 1px solid #dce1ea;
  border-radius: 12px;
  padding: 12px;
}
.director-delay-card > header {
  grid-column: 1/-1;
  background: #f8fafc;
}
.director-delay-card small {
  display: block;
  font-size: 12px;
}
.director-delay-card h3,
.director-delay-card p {
  margin: 0 0 6px;
}
.delay-lane {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  font-size: 13px;
  margin: 8px 0;
}
.delay-track {
  height: 20px;
  background: #edf0f3;
  border-radius: 4px;
  overflow: hidden;
}
.delay-track i {
  height: 100%;
  display: block;
  background: #d6dde6;
  border-right: 2px solid #a74828;
}
.delay-lane + .delay-lane i {
  background: #b4ddce;
}
.delay-scale {
  text-align: right;
  font-size: 12px;
}
.delay-stop,
.delay-result {
  border-radius: 8px;
  background: #fff2cf;
  padding: 8px;
  margin-top: 8px;
}
.delay-result {
  background: #f8efec;
}
.delay-bucket {
  background: #fff4da;
  margin-bottom: 8px;
  font-size: 13px;
}
.delay-bucket:nth-child(3n+2) {
  background: #e8f4ef;
}
.delay-bucket:nth-child(3n) {
  background: #f1edfc;
}
.delay-bucket small {
  float: right;
}
.delay-bucket span {
  display: inline-block;
  background: white;
  margin: 5px 4px 0 0;
  padding: 2px 6px;
  border-radius: 4px;
}
@media (max-width: 650px) {
  .director-delay-card {
    grid-template-columns: 1fr;
  }
}
.director-delay-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.delay-graph {
  width: 44%;
  min-width: 0;
}
.delay-graph svg {
  display: block;
  width: 100%;
  height: 34px;
  border-bottom: 1px solid #bec9d8;
}
.delay-graph small {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.delay-scale {
  position: relative;
  margin-left: 44px;
  height: 16px;
  font-size: 10px;
}
.delay-scale span {
  position: absolute;
  transform: translateX(-50%);
}
.delay-scale span:first-child {
  transform: none;
}
.delay-scale span:last-child {
  transform: translateX(-100%);
}

/* assets/director-shift-panels.css */
.ds-panel {
  container-type: inline-size;
}
.ds-panel > header {
  margin-bottom: 12px;
}
.ds-panel > small {
  display: block;
  color: #465368;
  margin: 8px 0;
}
.dm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 8px;
}
.dm-card,
.dp-person {
  background: white;
  border: 1px solid #d9dfe6;
  border-radius: 11px;
  padding: 10px 12px;
  min-width: 0;
}
.dm-card h3,
.dp-person h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.dm-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff0b8;
  padding: 9px;
  border-radius: 7px;
  gap: 8px;
}
.dm-events > div + div {
  border-left: 1px solid #d7bc64;
  padding-left: 9px;
}
.dm-events b,
.dm-events small,
.dm-events strong {
  display: block;
}
.dm-events b {
  font-size: 13px;
}
.dm-events strong {
  font-size: 20px;
}
.dm-balance {
  margin: 8px 0;
  border-top: 1px solid #dce1ea;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dm-balance b {
  color: #a51c32;
}
.dm-balance span,
.dm-card details {
  font-size: 14px;
}
.dm-card summary {
  color: #2845a0;
  font-weight: 650;
  cursor: pointer;
}
.dp-person {
  margin: 7px 0;
}
.dp-person summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.dp-person summary::after {
  content: "\2304";
  color: #425a9d;
}
.dp-person[open] summary::after {
  content: "\2303";
}
.dp-person summary > strong {
  flex: 1;
}
.dp-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dp-metric {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
}
.dp-metric b {
  border: 5px solid;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.dp-person h3 {
  border-top: 1px solid #dce1ea;
  padding-top: 8px;
  margin: 9px 0 6px;
  font-size: 15px;
  color: #664095;
}
.dp-person dl {
  margin: 0;
}
.dp-person dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.dp-person dd {
  margin: 0;
  font-weight: bold;
}
@container (max-width:480px) {
  .dp-person summary {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .dp-rings {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .dp-person summary::after {
    grid-column: 2;
    grid-row: 1;
  }
}
.dh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.director-hub button.dh-tile {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 12px 14px;
  min-height: 78px;
  border: 1px solid #d5dce1;
  border-radius: 12px;
  color: #182535;
}
.dh-tile > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.dh-tile strong,
.dh-tile b,
.dh-tile small {
  display: block;
}
.dh-tile strong {
  font-size: 17px;
}
.dh-tile b {
  font-size: 15px;
  margin-top: 4px;
}
.dh-tile i {
  color: #657384;
  font-size: 23px;
}
.dh-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.director-hub button.dh-truck {
  grid-column: 1/-1;
  background: #fff5f2;
}
.dh-truck .dh-icon {
  background: #f6ddd9;
  color: #9c3448;
}
.dh-truck b {
  font-size: 23px;
}
.dh-truck small {
  color: #89304a;
  margin-top: 4px;
}
.dh-areas .dh-icon {
  background: #def2eb;
  color: #257e67;
}
.dh-delays .dh-icon {
  background: #faecd6;
  color: #9a6b22;
}
.dh-materials .dh-icon {
  background: #f0e5f8;
  color: #8052a2;
}
.dh-people .dh-icon {
  background: #e5edf9;
  color: #4d6799;
}
.dh-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dh-figures b {
  display: block;
  font-size: 20px;
}
.dh-orders {
  max-height: 45vh;
  overflow: auto;
}
@container (max-width:520px) {
  .dh-grid {
    grid-template-columns: 1fr;
  }
  .director-hub button.dh-tile {
    min-height: 62px;
    padding: 9px 10px;
  }
  .dh-icon {
    width: 34px;
    height: 34px;
  }
}
.director-hub button.dh-problem,
.ds-issue {
  margin-left: auto;
  background: none;
  border: 0;
  color: #a81a36;
  font-weight: 700;
}
.director-stops > header {
  justify-content: space-between;
}
.ds-issue {
  text-decoration: none;
  font-size: 23px;
}
.ds-tabs {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 6px;
}
.director-stops .ds-tabs button {
  font: 600 clamp(12px, 3vw, 15px)/1.2 Arial;
  padding: 6px;
  min-width: 0;
  white-space: nowrap;
}
.ds-tabs [aria-pressed=true] {
  background: #fff0b8;
  border-color: #e4b829;
}
.ds-stop-list {
  max-height: 62dvh;
  overflow: auto;
}
.ds-stop-card {
  border: 1px solid #efd6d5;
  border-left: 4px solid #a72e42;
  border-radius: 10px;
  background: #fff7f5;
  padding: 12px;
  margin: 9px 0;
  display: grid;
  gap: 6px;
}
.ds-stop-card > small {
  font-weight: bold;
  color: #942038;
}
.ds-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7e1df;
  border-radius: 6px;
  padding: 7px;
  gap: 6px;
}
.ds-clock small,
.ds-clock b {
  display: block;
}
.ds-clock strong {
  font-variant-numeric: tabular-nums;
  color: #8f263b;
}

/* assets/receipt-approved.css */
.rr-card {
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #cdd2df;
  border-radius: 14px;
  padding: 28px;
  color: #111820;
  font-family: Arial, sans-serif;
  box-shadow: none;
}
.rr-card * {
  box-sizing: border-box;
}
.rr-card button,
.rr-card input,
.rr-card a {
  font: inherit;
}
.rr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.rr-card button {
  cursor: pointer;
}
.rr-card button:disabled {
  cursor: default;
  opacity: .5;
}
.rr-card :is(button, a, input):focus-visible {
  outline: 3px solid #1434e8;
  outline-offset: 3px;
}
.rr-back {
  background: transparent;
  color: #1031e5;
  border: 0;
  min-height: 44px;
  padding: 0;
  font-weight: 600 !important;
}
.rr-problem {
  color: #cb1823;
  border: 1px solid #cb1823;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.rr-card h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 750;
}
.rr-place {
  font-size: 22px;
  font-weight: 700;
}
.rr-status {
  display: inline-block;
  border-radius: 7px;
  padding: 7px 12px;
  background: #fff1bb;
  color: #594500;
  font-weight: 700;
  font-size: 16px;
  margin: 14px 0 24px;
}
.rr-status--received {
  background: #e0f5e5;
  color: #12632b;
}
.rr-status--shortage {
  background: #ffe3e5;
  color: #a71724;
}
.rr-material {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, .8fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid #cdd2df;
  border-radius: 10px;
  margin-bottom: 24px;
  background: #fff;
}
.rr-material h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}
.rr-amount {
  border-left: 1px solid #cdd2df;
  padding-left: 26px;
}
.rr-amount strong {
  font-size: 52px;
  line-height: 1.15;
  display: block;
  overflow-wrap: anywhere;
}
.rr-amount span {
  display: block;
  font-size: 18px;
  color: #5a6474;
  margin-top: 8px;
}
.rr-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}
.rr-actions button {
  min-height: 60px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  flex: 1;
}
.rr-primary {
  background: #ffcf00;
  color: #151400;
  border: 1px solid #ffcf00;
}
.rr-secondary {
  background: #fff;
  color: #171e29;
  border: 1px solid #aab3c5;
}
.rr-hint {
  font-size: 16px;
  line-height: 1.45;
  color: #586375;
  margin: 20px 0 0;
}
.rr-shortage {
  border-top: 1px solid #d8dce7;
  padding-top: 20px;
}
.rr-shortage label {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.rr-input {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rr-input input {
  width: 180px;
  min-height: 58px;
  border: 2px solid #aab3c5;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 30px;
}
.rr-input span {
  font-size: 22px;
}
.rr-calculation {
  font-size: 22px;
  font-weight: 700;
  margin: 16px 0;
}
.rr-result {
  background: #f7f9fb;
  border: 1px solid #ccd3de;
  border-radius: 10px;
  padding: 20px;
  font-size: 24px;
}
.rr-missing {
  color: #b51a28;
  margin: 12px 0 0;
  font-weight: 700;
}
.rr-error {
  border-left: 4px solid #bd1f2e;
  background: #fff1f2;
  padding: 14px;
  margin: 16px 0;
  color: #841b24;
}
.rr-error p {
  margin: 0 0 12px;
}
.rr-error button,
.rr-recovery button {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.rr-error button {
  background: #fff;
  border: 1px solid #a13843;
  color: #841b24;
}
.rr-recovery {
  margin: 16px 0;
}
.rr-recovery p {
  line-height: 1.45;
}
@media (max-width: 640px) {
  .rr-card {
    padding: 18px 16px;
    border-radius: 10px;
  }
  .rr-header {
    gap: 10px;
    margin-bottom: 20px;
  }
  .rr-back,
  .rr-problem {
    font-size: 15px !important;
  }
  .rr-problem {
    padding: 9px;
  }
  .rr-card h1 {
    font-size: 29px;
    margin-bottom: 20px;
  }
  .rr-place {
    font-size: 22px;
  }
  .rr-status {
    margin: 12px 0 20px;
    font-size: 15px;
  }
  .rr-material {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
    margin-bottom: 20px;
  }
  .rr-material h2 {
    font-size: 28px;
  }
  .rr-amount {
    padding: 0;
    border: 0;
  }
  .rr-amount strong {
    font-size: 48px;
  }
  .rr-amount span {
    font-size: 17px;
  }
  .rr-actions {
    flex-direction: column;
    gap: 12px;
  }
  .rr-actions button {
    width: 100%;
    font-size: 20px;
    min-height: 58px;
    padding: 14px;
  }
  .rr-hint {
    font-size: 15px;
  }
  .rr-shortage label {
    font-size: 21px;
  }
  .rr-calculation,
  .rr-result {
    font-size: 21px;
  }
}
.rr-card .rr-problem {
  background: #fff;
  color: #cb1823;
}
.rr-format {
  font-size: 20px;
  color: #596579;
  margin: 12px 0 0;
}
.rr-remainder {
  margin-top: 20px;
}
.rr-remainder h2 {
  font-size: 26px;
  margin: 0 0 16px;
}
.rr-remainder .rr-calculation {
  font-size: 18px;
  font-weight: 400;
  color: #586375;
}
.rr-remainder .rr-input input {
  width: min(100%, 320px);
}
@media (max-width: 640px) {
  .rr-card--remainder .rr-header {
    margin-bottom: 12px;
  }
  .rr-card--remainder h1 {
    font-size: 26px;
    margin-bottom: 12px;
  }
  .rr-card--remainder .rr-status {
    margin: 8px 0 12px;
  }
  .rr-card--remainder .rr-material {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
    gap: 12px;
    margin-bottom: 12px;
  }
  .rr-card--remainder .rr-material h2 {
    font-size: 21px;
  }
  .rr-card--remainder .rr-amount strong {
    font-size: 32px;
  }
  .rr-card--remainder .rr-amount span {
    font-size: 13px;
    margin-top: 4px;
  }
  .rr-card--remainder .rr-result {
    padding: 12px;
    font-size: 18px;
  }
  .rr-card--remainder .rr-missing {
    margin: 6px 0 0;
  }
  .rr-remainder {
    margin-top: 14px;
    padding-top: 14px;
  }
  .rr-remainder h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .rr-remainder label {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .rr-remainder .rr-input input {
    min-height: 48px;
    font-size: 24px;
    padding: 8px 12px;
  }
  .rr-remainder .rr-calculation {
    font-size: 16px;
    margin: 10px 0;
  }
  .rr-remainder .rr-actions {
    margin-top: 14px;
    gap: 8px;
  }
  .rr-remainder .rr-actions button {
    min-height: 48px;
    font-size: 18px;
    padding: 10px 12px;
  }
  .rr-remainder .rr-hint {
    margin-top: 12px;
  }
}
.rr-card--remainder {
  max-width: 860px;
}
.rr-card--remainder .rr-place {
  font-size: 18px;
  font-weight: 500;
  color: #586375;
}
.rr-card--remainder .rr-status--shortage {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 16px;
  margin: 14px 0 16px;
}
.rr-card--remainder .rr-material {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-bottom: 16px;
}
.rr-card--remainder .rr-material h2 {
  font-size: 24px;
}
.rr-card--remainder .rr-amount {
  border: 0;
  padding: 0;
  text-align: end;
}
.rr-card--remainder .rr-amount strong {
  font-size: 24px;
}
.rr-card--remainder .rr-amount span {
  font-size: 14px;
}
.rr-card--remainder .rr-result {
  border: 0;
  border-block: 1px solid #d8dce7;
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 20px;
}
.rr-card--remainder .rr-missing {
  margin: 0;
}
.rr-card--remainder .rr-remainder {
  border: 0;
  margin-top: 0;
  padding-top: 22px;
}
.rr-card--remainder .rr-remainder .rr-input input {
  width: min(100%, 640px);
  min-width: 0;
  flex: 1;
}
.rr-card--remainder .rr-remainder .rr-actions {
  flex-direction: column;
  gap: 4px;
}
.rr-card--remainder .rr-remainder .rr-primary {
  min-height: 50px;
}
.rr-card--remainder .rr-remainder .rr-secondary {
  border: 0;
  background: transparent;
  color: #1031e5;
  min-height: 44px;
  padding: 8px 12px;
}
.rr-card--remainder .rr-remainder .rr-hint {
  font-size: 14px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .rr-card--remainder .rr-status--shortage {
    margin: 10px 0 12px;
  }
  .rr-card--remainder .rr-material {
    gap: 14px;
    margin-bottom: 12px;
  }
  .rr-card--remainder .rr-material h2 {
    font-size: 20px;
  }
  .rr-card--remainder .rr-amount strong {
    font-size: 22px;
  }
  .rr-card--remainder .rr-amount span {
    font-size: 13px;
  }
  .rr-card--remainder .rr-result {
    font-size: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 0;
  }
  .rr-card--remainder .rr-remainder {
    padding-top: 18px;
  }
}
.rr-card--remainder {
  max-width: 860px;
  padding: 26px 30px;
}
.rr-card--remainder .rr-header {
  border-bottom: 1px solid #d8dce7;
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.rr-card--remainder .rr-problem {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px !important;
  background: transparent;
}
.rr-card--remainder .rr-problem::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid #cb1823;
  border-radius: 50%;
}
.rr-card--remainder h1 {
  font-size: 30px;
  margin: 0 0 10px;
}
.rr-card--remainder .rr-place {
  font-size: 20px;
  font-weight: 400;
}
.rr-card--remainder .rr-material {
  display: block;
  margin: 24px 0 20px;
  padding: 0;
  border: 0;
  background: none;
}
.rr-card--remainder .rr-material h2 {
  font-size: 26px;
}
.rr-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid #d8dce7;
  padding-bottom: 22px;
}
.rr-facts > div {
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid #d8dce7;
}
.rr-facts > div:first-child {
  padding-left: 0;
}
.rr-facts > div:last-child {
  border: 0;
  padding-right: 0;
}
.rr-facts dt {
  font-size: 17px;
  color: #586375;
  margin-bottom: 10px;
}
.rr-facts dd {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}
.rr-fact--missing dd {
  display: inline-block;
  color: #b51a28;
  background: #ffe5e8;
  border-radius: 7px;
  padding: 3px 8px;
  margin-top: -3px;
}
.rr-card--remainder .rr-remainder {
  padding-top: 22px;
}
.rr-card--remainder .rr-remainder label {
  font-size: 23px;
  margin-bottom: 14px;
}
.rr-card--remainder .rr-input {
  position: relative;
  display: block;
}
.rr-card--remainder .rr-remainder .rr-input input {
  width: 100%;
  padding-right: 85px;
  min-height: 58px;
  font-size: 29px;
  border: 2px solid #8b96ad;
  background: #fff;
}
.rr-card--remainder .rr-input input:focus {
  border-color: #1031e5;
  outline: 1px solid #1031e5;
  outline-offset: 0;
}
.rr-card--remainder .rr-input span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  pointer-events: none;
}
.rr-preview {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.rr-card--remainder .rr-remainder .rr-calculation,
.rr-left-preview {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: #586375;
}
.rr-card--remainder .rr-remainder .rr-actions {
  margin-top: 24px;
}
.rr-card--remainder .rr-remainder .rr-primary {
  min-height: 56px;
  font-size: 23px;
  border-radius: 9px;
}
.rr-card--remainder .rr-remainder .rr-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 16px;
}
@media (max-width: 640px) {
  .rr-card--remainder {
    padding: 18px 16px;
  }
  .rr-card--remainder .rr-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
  }
  .rr-card--remainder h1 {
    font-size: 25px;
  }
  .rr-card--remainder .rr-place {
    font-size: 18px;
  }
  .rr-card--remainder .rr-material {
    margin: 24px 0 22px;
  }
  .rr-card--remainder .rr-material h2 {
    font-size: 23px;
  }
  .rr-facts > div {
    padding: 0 12px;
  }
  .rr-facts dt {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .rr-facts dd {
    font-size: 23px;
    white-space: nowrap;
  }
  .rr-fact--missing dd {
    padding: 3px 6px;
  }
  .rr-facts {
    padding-bottom: 24px;
  }
  .rr-card--remainder .rr-remainder {
    padding-top: 22px;
  }
  .rr-card--remainder .rr-remainder label {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .rr-card--remainder .rr-remainder .rr-input input {
    min-height: 56px;
    font-size: 28px;
  }
  .rr-preview {
    display: block;
    margin-top: 14px;
  }
  .rr-card--remainder .rr-remainder .rr-calculation,
  .rr-left-preview {
    font-size: 16px;
    line-height: 1.4;
  }
  .rr-left-preview {
    margin-top: 4px;
  }
  .rr-card--remainder .rr-remainder .rr-primary {
    font-size: 21px;
    min-height: 54px;
  }
  .rr-card--remainder .rr-remainder .rr-hint {
    font-size: 14px;
    margin-top: 14px;
  }
}

/* assets/staff-transfer.css */
.staff-transfer-page {
  max-width: 1400px;
  margin-inline: auto;
}
.staff-transfer-page > nav {
  margin-bottom: 8px;
}
.staff-transfer-page .ui-page-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.staff-transfer-page h1 {
  margin: 0;
}
.staff-transfer-page h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.staff-transfer-page h3 {
  font-size: 20px;
  margin: 22px 0 16px;
}
.staff-transfer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}
.staff-transfer-grid > .ir-feedback-control {
  grid-column: 1 / -1;
  justify-self: end;
}
.staff-transfer-card {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 620px;
}
.staff-transfer-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 600;
}
.staff-transfer-card :is(select, textarea) {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  padding: 10px 12px;
  box-sizing: border-box;
  font-weight: 400;
}
.staff-transfer-card :is(p, strong, li, summary) {
  overflow-wrap: anywhere;
}
.staff-transfer-card p {
  margin: 0 0 12px;
}
.staff-transfer-card svg {
  flex: 0 0 auto;
}
.staff-transfer-subtitle,
.staff-transfer-stage,
.staff-transfer-hint,
.staff-transfer-muted {
  color: var(--ui-muted);
}
.staff-transfer-task {
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--ui-line);
}
.staff-transfer-task > p,
.staff-transfer-icon-row,
.staff-transfer-checks p {
  display: flex;
  align-items: center;
  gap: 14px;
}
.staff-transfer-task .staff-transfer-icon-row {
  align-items: flex-start;
  margin-top: 20px;
}
.staff-transfer-task .staff-transfer-icon-row p {
  margin: 6px 0 0;
  color: var(--ui-muted);
}
.staff-transfer-ok {
  color: var(--ui-success);
}
.staff-transfer-checks {
  padding: 8px 0 18px;
}
.staff-transfer-comment,
.staff-transfer-history {
  border-top: 1px solid var(--ui-line);
  padding-top: 20px;
  margin-top: 4px;
}
.staff-transfer-comment summary,
.staff-transfer-history summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--ui-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.staff-transfer-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--ui-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  cursor: pointer;
}
.staff-transfer-bottom {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
}
.staff-transfer-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}
.staff-transfer-flow strong {
  padding: 18px 10px;
  text-align: center;
  border-radius: var(--ui-radius);
  background: var(--ui-subtle);
}
.staff-transfer-flow strong:last-child {
  background: var(--ui-selected-soft);
}
.staff-transfer-stage {
  text-align: right;
  margin-top: 12px !important;
}
.staff-transfer-queue {
  padding: 22px 0 12px;
  margin: 12px 0 16px;
  border-top: 1px solid var(--ui-line);
  border-bottom: 1px solid var(--ui-line);
}
.staff-transfer-queue p + p {
  border-top: 1px solid var(--ui-line);
  padding-top: 20px;
  margin-top: 20px;
}
.staff-transfer-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}
.staff-transfer-confirm:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.staff-transfer-hint {
  text-align: center;
  margin-top: 10px !important;
}
.staff-transfer-info {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ui-info-bg);
  padding: 16px;
  margin: 12px 0 24px;
  border-radius: var(--ui-radius);
}
.staff-transfer-info p {
  margin: 0;
}
.staff-transfer-error {
  color: var(--ui-danger);
  background: var(--ui-danger-bg);
  padding: 12px 20px;
  border-radius: var(--ui-radius);
  margin: 0 0 14px;
}
.staff-transfer-error p {
  margin: 0 0 10px;
}
.staff-transfer-saved {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ui-success);
  background: var(--ui-success-bg);
  padding: 16px;
  border-radius: var(--ui-radius);
}
.staff-transfer-history ol {
  padding-left: 20px;
}
.staff-transfer-history li {
  margin: 0 0 12px;
}
@media (max-width: 760px) {
  .staff-transfer-grid {
    grid-template-columns: 1fr;
  }
  .staff-transfer-card {
    min-height: 0;
    padding: 18px;
  }
  .staff-transfer-page h2 {
    font-size: 22px;
  }
  .staff-transfer-page .ui-page-heading {
    gap: 8px;
  }
  .staff-transfer-flow {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .staff-transfer-confirm {
    transition: background-color .12s ease;
  }
}

/* assets/receipt-photo-review.css */
.pw-photo-launch {
  margin: 0 0 12px;
}
.pw-photo-launch .pw-photo-trigger {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #a9b6cd;
  border-radius: 8px;
  background: #fff;
  color: #173d9c;
  font-weight: 650;
}
.pw-photo-launch .pw-photo-applied {
  margin: 8px 0 0;
  color: #245c36;
}
.pw-photo-launch .pw-photo-dialog {
  box-sizing: border-box;
  width: min(510px, calc(100% - 20px));
  min-width: 0;
  max-height: calc(100dvh - 16px);
  padding: 0;
  border: 1px solid #d5ddea;
  border-radius: 15px;
  color: #172537;
  background: #fff;
  box-shadow: 0 12px 40px #17253730;
}
.pw-photo-dialog::backdrop {
  background: #18243580;
}
.pw-photo-screen {
  display: grid;
  gap: 12px;
  padding: clamp(12px, 4vw, 22px);
}
.pw-photo-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.pw-photo-header p {
  margin: 0 0 3px;
  color: #495b70;
  font-size: 13px;
}
.pw-photo-dialog .pw-photo-header h2 {
  margin: 0;
  padding: 0;
  background: none;
  font-size: clamp(22px, 5vw, 27px);
  line-height: 1.15;
}
.pw-photo-dialog .pw-photo-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  color: #24364f;
  font-size: 24px;
}
.pw-photo-body {
  display: grid;
  gap: 9px;
}
.pw-photo-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #495b70;
  font-size: 14px;
}
.pw-photo-progress a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #173d9c;
}
.pw-photo-position {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 13px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #f5f7fb;
}
.pw-photo-position h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0 0 3px;
  font-size: 19px;
  line-height: 1.18;
}
.pw-photo-position span,
.pw-photo-explain {
  color: #495b70;
  font-size: 14px;
}
.pw-photo-quantity {
  font-size: 27px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pw-photo-dialog .pw-photo-material {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #344964;
  font-size: 14px;
}
.pw-photo-dialog .pw-photo-material select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid #a9b6cd;
  border-radius: 8px;
  background: #fff;
  color: #172537;
  font-size: 16px;
}
.pw-photo-screen :is(.pw-photo-status, .pw-photo-explain, .pw-photo-loading) {
  margin: 0;
}
.pw-photo-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
}
.pw-photo-dialog .pw-photo-primary {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #ffd400;
  color: #181818;
  font-size: 16px;
  font-weight: 700;
}
.pw-photo-dialog .pw-photo-primary:disabled {
  background: #edf0f4;
  color: #526477;
}
.pw-photo-actions > .pw-photo-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}
.pw-photo-confirm .pw-photo-primary {
  white-space: nowrap;
}
.pw-photo-dialog .pw-photo-edit {
  border: 1px solid #a9b6cd;
  border-radius: 8px;
  background: #fff;
  color: #173d9c;
  font-size: 24px;
}
.pw-photo-pagination {
  display: flex;
  justify-content: space-between;
}
.pw-photo-pagination button:disabled {
  color: #526477;
}
.pw-photo-dialog .pw-photo-link {
  min-height: 44px;
  padding: 8px 7px;
  border: 0;
  background: transparent;
  color: #173d9c;
  font-size: 14px;
}
.pw-photo-dialog .wh-invoice {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.pw-photo-dialog .wh-invoice-picker {
  position: relative;
  margin: 0 0 4px;
}
.pw-photo-dialog .wh-invoice-picker input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.pw-photo-dialog .wh-invoice-picker input:focus-visible + label {
  outline: 2px solid #2251bc;
  outline-offset: 2px;
}
.pw-photo-dialog .wh-invoice-picker label {
  min-height: 44px;
}
.pw-photo-dialog:not(:has(.pw-photo-primary)) .wh-invoice-picker label {
  width: 100%;
  background: #ffd400;
  border-color: #ffd400;
  color: #181818;
  font-weight: 700;
}
.pw-photo-dialog .wh-invoice-list {
  margin: 4px 0 0;
}
.pw-photo-dialog .wh-invoice-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.pw-photo-dialog .wh-invoice-list li a {
  overflow-wrap: anywhere;
}
.pw-photo-dialog .wh-invoice-list li span:not([role=status]) {
  display: none;
}
.pw-photo-dialog .wh-invoice-list li button {
  min-height: 44px;
}
.pw-photo-dialog :is(select, button, a):focus-visible {
  outline: 2px solid #2251bc;
  outline-offset: 2px;
}
.pw-receipt-camera {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
.pw-receipt-camera p {
  margin: 0;
  color: #ae241d;
}
.pw-receipt-viewfinder {
  display: grid;
  gap: 8px;
}
.pw-receipt-viewfinder video {
  display: block;
  width: 100%;
  height: min(28dvh, 185px);
  object-fit: contain;
  background: #202932;
  border-radius: 8px;
}
.pw-photo-dialog .pw-receipt-shutter {
  min-height: 46px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  background: #ffd400;
  color: #181818;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}
.pw-photo-dialog .pw-receipt-shutter:disabled {
  background: #edf0f4;
  color: #526477;
}
.pw-photo-warning {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  color: #d12421;
}
.pw-photo-dialog:has(.pw-receipt-shutter) .wh-invoice-picker label {
  background: #fff;
  border-color: #a9b6cd;
}
.pw-photo-dialog:has(.pw-receipt-viewfinder) :is(.pw-photo-warning, .pw-photo-status, .wh-invoice-list, .wh-invoice > small) {
  display: none;
}
.pw-photo-dialog .pw-photo-camera-title {
  display: none;
}
.pw-photo-dialog:has(.pw-receipt-viewfinder) .pw-photo-current-title {
  display: none;
}
.pw-photo-dialog:has(.pw-receipt-viewfinder) .pw-photo-camera-title {
  display: inline;
}
.pw-photo-dialog:has(.pw-photo-warning) #pw-photo-title {
  font-size: clamp(18px, 5.8vw, 24px);
  white-space: nowrap;
}

/* assets/sales-crm.css */
.sales-crm {
  --crm-ink:var(--ui-text,#202124);
  --crm-muted:var(--ui-muted,#626873);
  --crm-line:var(--ui-line,#dcdfe4);
  --crm-yellow:var(--ui-accent,#ffd500);
  --crm-soft:var(--ui-subtle,#f5f6f8);
  color: var(--crm-ink);
  font-family: var(--ui-font,Arial,sans-serif);
  min-width: 0;
  width: 100%;
  padding-bottom: 24px;
}
.sales-crm * {
  box-sizing: border-box;
}
.sales-crm h1,
.sales-crm h2,
.sales-crm h3,
.sales-crm p {
  margin: 0;
}
.sales-crm button,
.sales-crm input,
.sales-crm select,
.sales-crm textarea {
  font: inherit;
}
.sales-crm button {
  cursor: pointer;
  touch-action: manipulation;
}
.sales-crm button:disabled {
  cursor: default;
  opacity: .48;
}
.sales-crm :is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid var(--ui-focus,#424a55);
  outline-offset: 3px;
}
.sales-crm a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crm-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.crm-page-heading h1 {
  font-size: 30px;
  letter-spacing: -.8px;
  font-weight: 750;
  line-height: 1.15;
}
.crm-page-heading p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--crm-muted);
  margin-top: 7px;
}
.crm-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sales-crm :is(.crm-primary, .crm-secondary, .crm-icon-button, .crm-text-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  box-shadow: none;
}
.sales-crm .crm-primary {
  background: var(--crm-yellow);
  border: 1px solid var(--crm-yellow);
  color: #202124;
}
.sales-crm .crm-primary:hover:not(:disabled) {
  background: var(--ui-accent-hover,#efc700);
  border-color: var(--ui-accent-hover,#efc700);
}
.sales-crm .crm-secondary {
  background: #fff;
  border: 1px solid #aab0b8;
  color: var(--crm-ink);
}
.sales-crm .crm-secondary:hover:not(:disabled) {
  background: var(--crm-soft);
}
.sales-crm .crm-icon-button {
  background: #fff;
  border: 1px solid var(--crm-line);
  width: 40px;
  padding: 8px;
}
.sales-crm .crm-text-button {
  background: transparent;
  border: 0;
  padding: 5px 0;
  min-height: 32px;
  font-weight: 600;
  color: var(--crm-muted);
}
.sales-crm .crm-text-button:hover {
  color: var(--crm-ink);
  text-decoration: underline;
}
.crm-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  border: 1px solid var(--crm-line);
  background: var(--crm-soft);
  padding: 12px 14px;
  border-radius: 6px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.crm-alert.is-success {
  justify-content: flex-start;
  background: var(--ui-success-bg,#edf7f1);
  border-color: #bbd8c9;
  color: var(--ui-success,#176443);
}
.crm-alert.is-error {
  background: var(--ui-danger-bg,#fff1f2);
  border-color: #efbdc2;
  color: #a31e2c;
}
.crm-alert.is-error > span {
  flex: 1;
}
.crm-alert.is-info {
  color: var(--crm-muted);
}
.crm-summary {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  border: 1px solid var(--crm-line);
  background: #fff;
  border-radius: 6px;
  margin-bottom: 20px;
}
.crm-summary > div,
.crm-summary > button {
  padding: 15px 20px;
  text-align: left;
  border: 0;
  background: none;
  min-width: 0;
  position: relative;
}
.crm-summary > div + div,
.crm-summary > button {
  border-left: 1px solid var(--crm-line);
}
.crm-summary span {
  display: block;
  font-size: 13px;
  color: var(--crm-muted);
  line-height: 1.35;
}
.crm-summary strong {
  display: block;
  font-size: 24px;
  letter-spacing: -.4px;
  font-weight: 750;
  line-height: 1.25;
  margin-top: 5px;
}
.crm-summary small {
  display: block;
  font-size: 12px;
  color: var(--crm-muted);
  margin-top: 4px;
}
.crm-summary button.is-selected {
  background: var(--ui-warning-bg,#fff7db);
}
.crm-summary button:hover {
  background: var(--crm-soft);
}
.crm-pipeline {
  margin-bottom: 20px;
}
.crm-mobile-funnel {
  display: none;
}
@media (max-width: 960px) {
  .sales-crm .crm-detail,
  .sales-crm .crm-list-panel {
    scroll-margin-top: 56px;
  }
}
.crm-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}
.sales-crm .crm-section-heading h2 {
  font-size: 17px;
  font-weight: 700;
}
.crm-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--crm-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.crm-funnel-stage {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 6px 8px;
  min-height: 98px;
  padding: 13px 14px 11px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--crm-line);
  border-bottom: 1px solid var(--crm-line);
  text-align: left;
  min-width: 0;
  position: relative;
  color: var(--crm-ink);
}
.crm-funnel-stage:nth-child(5n) {
  border-right: 0;
}
.crm-funnel-stage:nth-child(n+6) {
  border-bottom: 0;
}
.crm-funnel-stage:hover {
  background: var(--crm-soft);
}
.crm-funnel-stage.is-selected {
  background: var(--ui-selected-soft,#fff8dc);
  box-shadow: inset 0 0 0 2px var(--crm-yellow);
}
.crm-funnel-step {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  grid-column: 1/-1;
  min-width: 0;
}
.crm-funnel-index {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  flex: 0 0 16px;
  height: 16px;
  border-radius: 50%;
  background: #eceef1;
  color: #69707b;
  margin-top: 1px;
}
.crm-funnel-name {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  min-height: 32px;
}
.crm-funnel-count {
  font-size: 23px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.5px;
  padding-left: 23px;
}
.crm-funnel-amount {
  font-size: 11px;
  line-height: 1.2;
  color: var(--crm-muted);
  text-align: right;
  align-self: end;
  overflow-wrap: anywhere;
}
.crm-funnel-stage[data-stage=delivered] .crm-funnel-index {
  background: #dceee3;
  color: #176443;
}
.crm-funnel-stage[data-stage=lost] .crm-funnel-index {
  background: #f4dfe1;
  color: #a31e2c;
}
.crm-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.crm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-height: 42px;
  border: 1px solid #aab0b8;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: var(--crm-muted);
}
.crm-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  min-height: 40px;
  padding: 0;
  color: var(--crm-ink);
  font-size: 13px;
}
.crm-search:focus-within {
  outline: 2px solid var(--ui-focus,#424a55);
  outline-offset: 2px;
}
.sales-crm .crm-search input:focus-visible {
  outline: none;
}
.crm-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 1 165px;
  min-width: 135px;
}
.crm-filter > span {
  font-size: 11px;
  color: var(--crm-muted);
}
.crm-filter select {
  min-height: 42px;
  width: 100%;
  background: #fff;
  border: 1px solid #aab0b8;
  border-radius: 6px;
  padding: 8px 28px 8px 10px;
  font-size: 13px;
  color: var(--crm-ink);
}
.crm-test-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  min-height: 42px;
  white-space: nowrap;
  color: var(--crm-muted);
}
.crm-test-filter input {
  accent-color: #343e48;
  width: 16px;
  height: 16px;
}
.crm-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .85fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.crm-list-panel {
  border: 1px solid var(--crm-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}
.crm-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--crm-line);
}
.sales-crm .crm-list-heading h2 {
  font-size: 16px;
  font-weight: 700;
}
.crm-list-heading > span {
  font-size: 12px;
  color: var(--crm-muted);
  white-space: nowrap;
}
.crm-lead-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.crm-lead-list > li + li {
  border-top: 1px solid var(--crm-line);
}
.crm-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(80px, .6fr);
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 0;
  border-left: 3px solid transparent;
  text-align: left;
  color: var(--crm-ink);
  min-width: 0;
  line-height: 1.35;
}
.crm-lead-row:hover {
  background: #fafbfc;
}
.crm-lead-row.is-selected {
  background: var(--ui-selected-soft,#fff8dc);
  border-left-color: var(--crm-yellow);
}
.crm-lead-main,
.crm-lead-followup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 5px;
}
.crm-lead-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: center;
  margin-bottom: 3px;
}
.crm-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #59616d;
  font-weight: 600;
}
.crm-source:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #87909e;
}
.crm-test-tag {
  padding: 1px 4px;
  background: #eceef1;
  border-radius: 3px;
  color: #666f7b;
  font-size: 10px;
}
.crm-lead-number {
  font-size: 11px;
  color: var(--crm-muted);
}
.crm-lead-main > strong {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.crm-lead-product {
  font-size: 12px;
  line-height: 1.4;
  color: var(--crm-muted);
  overflow-wrap: anywhere;
}
.crm-lead-assignee {
  font-size: 11px;
  color: #7b828d;
}
.crm-stage-label {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef0f3;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}
.crm-stage-label[data-stage=new] {
  background: #fff0b0;
  color: #685000;
}
.crm-stage-label[data-stage=in_progress],
.crm-stage-label[data-stage=proposal_sent] {
  background: #e8eef8;
  color: #3c5c89;
}
.crm-stage-label[data-stage=waiting_decision],
.crm-stage-label[data-stage=invoice_sent] {
  background: #f7efd9;
  color: #7e651d;
}
.crm-stage-label[data-stage=agreed],
.crm-stage-label[data-stage=paid],
.crm-stage-label[data-stage=delivered] {
  background: #e7f2eb;
  color: #246445;
}
.crm-stage-label[data-stage=shipped] {
  background: #e8f0f2;
  color: #32616e;
}
.crm-stage-label[data-stage=lost] {
  background: #f7e7e9;
  color: #9b3e47;
}
.crm-next-action {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11px;
  color: var(--crm-muted);
  line-height: 1.4;
  margin-top: 5px;
}
.crm-next-action svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.crm-next-action.is-overdue {
  color: #b52130;
  font-weight: 650;
}
.crm-next-copy {
  font-size: 11px;
  color: var(--crm-muted);
  overflow-wrap: anywhere;
}
.crm-lead-amount {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 5px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  padding-top: 23px;
  overflow-wrap: anywhere;
}
.crm-lead-amount svg {
  flex: 0 0 16px;
  color: #9097a1;
  margin-top: 1px;
}
.crm-list-footer {
  font-size: 11px;
  color: var(--crm-muted);
  padding: 12px 16px;
  border-top: 1px solid var(--crm-line);
  background: #fafbfc;
}
.crm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 45px 24px;
  max-width: 440px;
  margin: 0 auto;
}
.crm-empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--crm-line);
  border-radius: 10px;
  color: #7d8591;
  background: #fff;
  margin-bottom: 16px;
}
.sales-crm .crm-empty h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.sales-crm .crm-empty p {
  font-size: 13px;
  color: var(--crm-muted);
  line-height: 1.6;
  margin: 8px 0 16px;
}
.crm-list-loading {
  padding: 45px 24px;
  text-align: center;
  color: var(--crm-muted);
}
.crm-detail {
  border: 1px solid var(--crm-line);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  scrollbar-gutter: stable;
}
.crm-detail-placeholder {
  background: #fafbfc;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.crm-detail-loading {
  padding: 32px 20px;
  color: var(--crm-muted);
  font-size: 14px;
}
.crm-detail-heading {
  padding: 19px 19px 16px;
  border-bottom: 1px solid var(--crm-line);
}
.crm-detail-titleline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.sales-crm .crm-detail-heading h2 {
  font-size: 21px;
  letter-spacing: -.4px;
  line-height: 1.25;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.sales-crm .crm-detail-heading > p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--crm-muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.crm-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  font-size: 12px;
  margin: 14px 0;
  color: var(--crm-muted);
}
.crm-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.crm-detail-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.crm-detail-value > strong {
  font-size: 23px;
  letter-spacing: -.4px;
  line-height: 1.2;
}
.crm-client-materials {
  padding: 16px 19px;
  border-bottom: 1px solid var(--crm-line);
}
.crm-client-materials > div + div {
  margin-top: 16px;
}
.sales-crm .crm-client-materials h3 {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 7px;
}
.sales-crm .crm-client-message p {
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crm-client-files ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crm-client-files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--crm-line);
  min-width: 0;
}
.crm-client-files li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.crm-client-files a,
.crm-client-file-name {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.crm-client-files small {
  font-size: 10px;
  color: var(--crm-muted);
}
.crm-client-files svg {
  flex-shrink: 0;
  color: var(--crm-muted);
}
.crm-detail-tabs {
  display: flex;
  padding: 0 19px;
  gap: 18px;
  border-bottom: 1px solid var(--crm-line);
}
.crm-detail-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 0 10px;
  color: var(--crm-muted);
  font-size: 12px;
  font-weight: 650;
  min-height: 42px;
}
.crm-detail-tabs button[aria-selected=true] {
  border-bottom-color: var(--crm-yellow);
  color: var(--crm-ink);
}
.crm-detail-tabs button > span {
  font-size: 10px;
  padding: 1px 5px;
  background: #eef0f3;
  border-radius: 8px;
}
.crm-detail-work {
  padding: 0 19px;
}
.sales-crm .crm-detail h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.crm-stage-action {
  padding: 18px 0;
  border-bottom: 1px solid var(--crm-line);
}
.crm-stage-submit {
  width: 100%;
  margin-top: 10px;
  justify-content: space-between !important;
}
.crm-followup-section {
  padding: 18px 0;
}
.crm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin-bottom: 12px;
  text-align: left;
}
.crm-field > span {
  font-size: 12px;
  font-weight: 550;
  color: #59616d;
}
.sales-crm .crm-field :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #aab0b8;
  border-radius: 5px;
  background: #fff;
  color: var(--crm-ink);
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: none;
}
.sales-crm .crm-field textarea {
  resize: vertical;
  min-height: 72px;
}
.sales-crm .crm-field :is(input, select, textarea):disabled {
  background: #f6f7f9;
  color: #7c8490;
}
.sales-crm .crm-field input::placeholder,
.sales-crm .crm-field textarea::placeholder {
  color: #8c929b;
  opacity: 1;
}
.crm-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sales-crm .crm-help {
  font-size: 11px;
  line-height: 1.5;
  color: var(--crm-muted);
  margin-top: 8px;
}
.crm-edit-section {
  border-top: 1px solid var(--crm-line);
}
.crm-edit-section summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding: 14px 20px 14px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}
.crm-edit-section summary::-webkit-details-marker {
  display: none;
}
.crm-edit-section summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 17px;
  color: #737c89;
  font-size: 17px;
  font-weight: 400;
}
.crm-edit-section[open] summary:after {
  content: "\2212";
}
.crm-edit-section summary > span {
  font-size: 11px;
  font-weight: 400;
  color: var(--crm-muted);
  overflow-wrap: anywhere;
}
.crm-edit-section-body {
  padding: 3px 0 8px;
}
.crm-save-bar {
  border-top: 1px solid var(--crm-line);
  padding: 13px 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.crm-save-bar > span {
  font-size: 10px;
  color: var(--crm-muted);
}
.crm-save-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.sales-crm .crm-save-bar .crm-text-button {
  font-size: 11px;
  font-weight: 500;
}
.crm-notes {
  border-top: 1px solid var(--crm-line);
  padding: 18px 0;
}
.crm-note {
  padding: 10px 12px;
  background: #f6f7f9;
  border-left: 2px solid #d8dce2;
  margin-bottom: 10px;
  border-radius: 0 4px 4px 0;
}
.sales-crm .crm-note p {
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crm-note footer {
  font-size: 10px;
  color: var(--crm-muted);
  line-height: 1.5;
  margin-top: 7px;
}
.crm-notes > form {
  margin-top: 12px;
}
.crm-detail-footer {
  padding: 12px 19px;
  border-top: 1px solid var(--crm-line);
  background: #fafbfc;
  color: var(--crm-muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.crm-detail-footer a {
  font-size: 11px;
}
.crm-history {
  padding: 18px 19px;
  min-height: 240px;
}
.crm-history ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crm-history li {
  border-left: 2px solid #e2e5e9;
  padding: 0 0 20px 14px;
  position: relative;
}
.crm-history li:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #acb3bd;
  border: 2px solid #fff;
  border-radius: 50%;
  left: -5px;
  top: 3px;
}
.crm-history li:last-child {
  padding-bottom: 3px;
}
.crm-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}
.crm-history-head strong {
  font-size: 12px;
  font-weight: 650;
}
.crm-history-head time {
  font-size: 10px;
  color: var(--crm-muted);
}
.sales-crm .crm-history p {
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin-top: 6px;
  white-space: pre-wrap;
}
.sales-crm .crm-history .crm-history-actor {
  font-size: 10px;
  color: var(--crm-muted);
  margin-top: 3px;
}
.crm-history-change b {
  font-weight: 600;
}
.crm-muted {
  color: var(--crm-muted);
  font-size: 12px;
  line-height: 1.5;
}
.crm-mobile-back {
  display: none;
}
.crm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: #20293066;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.crm-create-modal {
  background: #fff;
  border: 1px solid var(--crm-line);
  border-radius: 9px;
  box-shadow: 0 14px 48px #20212424;
  width: 620px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 24px;
}
.crm-create-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.sales-crm .crm-create-modal h2 {
  font-size: 23px;
  letter-spacing: -.4px;
  line-height: 1.25;
}
.sales-crm .crm-create-modal header p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--crm-muted);
  margin-top: 7px;
}
.crm-create-modal > form > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--crm-line);
  padding-top: 17px;
  margin-top: 17px;
}
.crm-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  .crm-funnel {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .crm-funnel-stage {
    border-bottom: 0;
    min-height: 110px;
  }
  .crm-funnel-stage:nth-child(5n) {
    border-right: 1px solid var(--crm-line);
  }
  .crm-funnel-stage:last-child {
    border-right: 0;
  }
  .crm-workspace {
    grid-template-columns: minmax(0, 1.45fr) minmax(400px, .8fr);
  }
}
@media (max-width: 1200px) {
  .crm-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
  }
  .crm-lead-row {
    grid-template-columns: minmax(0, 1fr) minmax(90px, .7fr);
    gap: 10px;
    padding: 14px 12px;
  }
  .crm-lead-followup {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5px 10px;
  }
  .crm-next-action {
    margin-top: 0;
    justify-content: flex-end;
    text-align: right;
  }
  .crm-next-copy {
    grid-column: 1/-1;
  }
  .crm-lead-amount {
    padding-top: 24px;
  }
  .crm-detail-heading,
  .crm-detail-tabs,
  .crm-history {
    padding-left: 15px;
    padding-right: 15px;
  }
  .crm-detail-work {
    padding: 0 15px;
  }
  .crm-funnel-stage {
    padding: 11px;
  }
  .crm-funnel-name {
    font-size: 11px;
  }
  .crm-funnel-amount {
    font-size: 10px;
  }
  .crm-field-pair {
    gap: 9px;
  }
}
@media (max-width: 960px) {
  .crm-workspace {
    grid-template-columns: 1fr;
  }
  .crm-detail-placeholder {
    display: none;
  }
  .crm-detail {
    position: static;
    max-height: none;
  }
  .crm-workspace[data-detail-open=true] > .crm-list-panel {
    display: none;
  }
  .crm-mobile-back {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 12px;
    color: var(--crm-muted);
    font-size: 12px;
  }
  .crm-funnel-stage {
    min-height: 95px;
  }
  .crm-summary > div,
  .crm-summary > button {
    padding: 12px 14px;
  }
  .crm-summary strong {
    font-size: 21px;
  }
  .crm-lead-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(90px, .6fr);
  }
  .crm-lead-followup {
    display: flex;
    grid-column: auto;
    grid-row: auto;
    align-items: flex-start;
  }
  .crm-next-action {
    margin-top: 5px;
    text-align: left;
    justify-content: flex-start;
  }
  .crm-next-copy {
    grid-column: auto;
  }
  .crm-lead-amount {
    padding-top: 23px;
  }
  .crm-detail-heading {
    padding: 18px;
  }
  .crm-detail-work {
    padding: 0 18px;
  }
  .crm-detail-tabs {
    padding-left: 18px;
  }
  .crm-detail-footer {
    padding: 12px 18px;
  }
}
@media (max-width: 640px) {
  .crm-page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .crm-page-heading h1 {
    font-size: 25px;
  }
  .crm-page-heading p {
    font-size: 12px;
    max-width: 230px;
  }
  .crm-heading-actions {
    gap: 6px;
  }
  .crm-heading-actions > .crm-icon-button {
    display: none;
  }
  .sales-crm .crm-heading-actions > .crm-primary {
    font-size: 12px;
    padding: 9px 10px;
    min-height: 40px;
    gap: 5px;
    white-space: nowrap;
  }
  .crm-summary {
    grid-template-columns: 1fr 1.35fr;
    margin-bottom: 16px;
  }
  .crm-summary > button {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--crm-line);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .crm-summary > button strong {
    margin: 0;
    font-size: 18px;
    order: -1;
  }
  .crm-summary > button small {
    margin: 0 0 0 auto;
    font-size: 10px;
  }
  .crm-summary span {
    font-size: 11px;
  }
  .crm-summary strong {
    font-size: 20px;
  }
  .crm-summary small {
    font-size: 10px;
  }
  .crm-summary > div {
    padding: 11px 12px;
  }
  .crm-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-funnel-stage {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 10px 11px;
    gap: 4px 8px;
    border-bottom: 1px solid var(--crm-line) !important;
    border-right: 1px solid var(--crm-line) !important;
  }
  .crm-funnel-stage:nth-child(2n) {
    border-right: 0 !important;
  }
  .crm-funnel-stage:nth-last-child(-n+2) {
    border-bottom: 0 !important;
  }
  .crm-funnel-step {
    grid-column: 1;
    grid-row: 1;
  }
  .crm-funnel-name {
    min-height: 0;
    font-size: 11px;
  }
  .crm-funnel-count {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    font-size: 20px;
    text-align: right;
  }
  .crm-funnel-amount {
    grid-column: 1/-1;
    text-align: left;
    padding-left: 23px;
  }
  .crm-section-heading {
    margin-bottom: 7px;
  }
  .sales-crm .crm-section-heading h2 {
    font-size: 15px;
  }
  .sales-crm .crm-section-heading .crm-text-button {
    font-size: 12px;
  }
  .crm-pipeline {
    margin-bottom: 15px;
  }
  .crm-toolbar {
    gap: 8px;
  }
  .crm-search {
    flex-basis: 100%;
    min-width: 0;
  }
  .crm-search input {
    font-size: 12px;
  }
  .crm-filter {
    flex: 1 1 130px;
    min-width: 0;
  }
  .crm-filter select {
    font-size: 12px;
    min-height: 40px;
  }
  .crm-test-filter {
    width: 100%;
    min-height: 30px;
    font-size: 11px;
  }
  .crm-lead-row {
    grid-template-columns: minmax(0, 1fr) minmax(85px, .65fr);
    gap: 9px;
    padding: 13px 11px;
  }
  .crm-lead-main > strong {
    font-size: 13px;
  }
  .crm-lead-followup {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 9px;
  }
  .crm-next-action {
    margin-top: 0;
    justify-content: flex-end;
    text-align: right;
    font-size: 10px;
  }
  .crm-next-copy {
    grid-column: 1/-1;
    font-size: 11px;
  }
  .crm-lead-amount {
    padding-top: 24px;
    font-size: 12px;
  }
  .crm-lead-product {
    font-size: 11px;
  }
  .crm-list-heading {
    padding: 13px 12px;
  }
  .crm-list-heading > span {
    font-size: 11px;
  }
  .sales-crm .crm-list-heading h2 {
    font-size: 14px;
  }
  .crm-detail-heading {
    padding: 16px 14px;
  }
  .crm-detail-work {
    padding: 0 14px;
  }
  .crm-detail-tabs {
    padding: 0 14px;
  }
  .sales-crm .crm-detail-heading h2 {
    font-size: 20px;
  }
  .crm-detail-value > strong {
    font-size: 22px;
  }
  .crm-field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .crm-contact-links {
    font-size: 13px;
    flex-direction: column;
    gap: 10px;
  }
  .sales-crm .crm-primary,
  .sales-crm .crm-secondary {
    min-height: 44px;
  }
  .sales-crm .crm-field :is(input, select, textarea) {
    min-height: 44px;
    font-size: 16px;
  }
  .crm-field > span {
    font-size: 12px;
  }
  .crm-create-modal {
    padding: 18px 15px;
    max-height: calc(100dvh - 24px);
    border-radius: 7px;
  }
  .crm-modal-backdrop {
    padding: 12px;
  }
  .crm-create-modal > header {
    margin-bottom: 18px;
  }
  .sales-crm .crm-create-modal h2 {
    font-size: 21px;
  }
  .crm-create-modal > form > footer {
    position: sticky;
    bottom: -18px;
    margin: 14px -15px -18px;
    padding: 12px 15px 18px;
    background: #fff;
  }
  .crm-create-modal > form > footer > button {
    flex: 1;
  }
  .crm-alert {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 12px;
  }
  .crm-alert > .crm-secondary {
    width: 100%;
  }
  .crm-empty {
    padding: 35px 18px;
  }
  .crm-history {
    padding: 16px 14px;
  }
  .crm-save-bar > span {
    width: 100%;
  }
  .crm-detail-footer {
    font-size: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sales-crm * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 640px) {
  .crm-funnel {
    display: none;
  }
  .crm-mobile-funnel {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .crm-mobile-funnel > span {
    font-size: 11px;
    color: var(--crm-muted);
  }
  .crm-mobile-funnel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #aab0b8;
    border-radius: 6px;
    background: #fff;
    color: var(--crm-ink);
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* assets/marketplace-compact.css */
.marketing-production-entry .mplace-platforms {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--ui-line,#ddd);
  background: var(--ui-surface,#fff);
}
.marketing-production-entry .mplace-platforms button {
  min-height: 42px;
  padding: 8px 20px;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 7px;
  color: var(--ui-text,#20252b);
  background: var(--ui-surface,#fff);
  font-weight: 650;
  cursor: pointer;
}
.marketing-production-entry .mplace-platforms button[aria-pressed=true] {
  background: var(--ui-accent,#ffdc00);
  border-color: var(--ui-accent,#ffdc00);
  box-shadow: inset 0 -3px 0 #0002;
}
.marketing-production-entry .mplace-platforms button:focus-visible,
.mroi-inline-value summary:focus-visible {
  outline: 2px solid var(--ui-link,#3268b1);
  outline-offset: 2px;
}
.marketing-production-entry .mw-page .mat-table .mroi-inline-cell {
  position: sticky;
  left: var(--mat-identity-width,240px);
  z-index: 2;
  background: var(--ui-surface,#fff);
  min-width: 122px;
  text-align: left;
  vertical-align: middle;
}
.marketing-production-entry .mw-page .mat-table th,
.marketing-production-entry .mw-page .mat-table td {
  padding: 6px 9px !important;
  height: auto !important;
  line-height: 1.25;
}
.marketing-production-entry .mw-page .mat-table tr.mat-group > th {
  padding: 7px 8px !important;
}
.marketing-production-entry .mw-page .mat-table .mat-expand {
  min-height: 34px;
  gap: 5px;
  align-items: center;
  padding: 0;
  max-width: 100%;
}
.marketing-production-entry .mw-page .mat-table .mat-expand strong {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 190px;
}
.marketing-production-entry .mw-page .mat-table .mat-expand small {
  font-size: 11px;
  line-height: 1.2;
  margin-top: 3px;
}
.marketing-production-entry .mw-page .mat-table .mat-graph-hit {
  position: static;
  display: inline-block;
  min-width: 56px;
  width: auto;
  height: 27px;
  min-height: 27px;
  padding: 3px 7px;
  margin: 2px 0 0 21px;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 5px;
  font-size: 11px;
  color: var(--ui-text,#222);
  background: var(--ui-surface,#fff);
}
.marketing-production-entry .mw-page .mat-table .mat-article-id {
  gap: 5px;
  min-height: 28px;
}
.marketing-production-entry .mw-page .mat-table .mat-article-id input[type=checkbox] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}
.marketing-production-entry .mw-page .mat-table .mat-article-copy small {
  font-size: 10px;
  margin-top: 2px;
}
.marketing-production-entry .mw-page .mat-table .mat-test-state {
  font-size: 10px;
  line-height: 1.1;
}
.marketing-production-entry .mw-page .mat-table .mat-experiment-counts {
  font-size: 10px;
  margin: 2px 0 0;
}
.marketing-production-entry .mw-page .mat-scroll {
  max-height: 68vh;
}
.marketing-production-entry .mw-page .mat-group-stat {
  font-size: 12px;
}
.mroi-inline-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: normal;
  min-width: 100px;
}
.mroi-inline-value > strong {
  font-size: 15px;
}
.mroi-inline-value summary {
  font-size: 10px;
  color: var(--ui-muted,#666);
  cursor: pointer;
  white-space: nowrap;
}
.mroi-inline-value details[open] p {
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  width: 210px;
  max-width: 100%;
  margin: 6px 0;
}
.mroi-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 6px;
}
.mroi-primary > strong {
  font-size: 23px;
}
.mroi-primary > span:last-child {
  font-size: 12px;
  color: var(--ui-muted,#666);
}
.mroi-summary {
  margin: 10px 0;
  padding: 10px 14px;
}
.mroi-summary > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
}
.mroi-summary > summary > span {
  font-size: 12px;
  color: var(--ui-muted,#666);
}
.mplace-unlinked {
  padding: 7px 9px;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 6px;
  background: var(--ui-surface,#fff);
  font-size: 11px;
  cursor: pointer;
}
.mplace-back {
  margin: 8px 0;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 8px 12px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-toolbar > * {
  position: static !important;
  margin: 0 !important;
  max-width: 100%;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-cabinet {
  flex: 1 1 185px;
  min-width: 160px;
  max-width: 240px;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-date {
  display: none !important;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-period-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 3px !important;
  flex: 1 1 260px;
  max-width: 380px;
  height: auto !important;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-settings {
  flex: 0 1 auto;
  align-self: flex-end;
  margin-left: auto !important;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-table .mat-expand {
  min-height: 30px !important;
  padding-right: 57px !important;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-table .mat-expand strong {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  max-width: 162px !important;
  line-height: 16px !important;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-table .mat-expand small {
  line-height: 13px !important;
}
.marketing-production-entry .mw-page.mat-reference-page .mat-table .mat-graph-hit {
  position: absolute !important;
  right: 5px !important;
  top: 8px !important;
  bottom: auto !important;
  margin: 0 !important;
  height: 27px !important;
  opacity: 1 !important;
}
.global-navigation a[href="/#advertising"][aria-current=page] {
  color: #20252b !important;
}
@media (max-width: 680px) {
  .marketing-production-entry .mplace-platforms {
    padding: 8px 12px;
  }
  .marketing-production-entry .mplace-platforms button {
    flex: 1;
    min-height: 44px;
    padding: 8px 12px;
  }
  .marketing-production-entry .mw-page .mat-table .mroi-inline-cell {
    left: 168px;
    min-width: 108px;
  }
  .marketing-production-entry .mw-page .mat-table .mat-expand strong {
    max-width: 125px;
  }
  .marketing-production-entry .mw-page .mat-table .mat-graph-hit {
    min-height: 36px;
  }
  .mroi-summary > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .mroi-primary {
    flex-wrap: wrap;
  }
  .mroi-primary > span:last-child {
    width: 100%;
  }
}
.marketing-production-entry .mw-page .mat-table thead th:nth-child(2) {
  position: sticky;
  left: var(--mat-identity-width,240px);
  z-index: 5;
  background: var(--ui-surface,#fff);
}
.mplace-metrics-toggle {
  padding: 6px 10px;
  margin: 0 0 7px;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 6px;
  background: var(--ui-surface,#fff);
  font-size: 12px;
  cursor: pointer;
}
.mplace-empty {
  padding: 10px 0;
  font-size: 13px;
}
.mplace-empty p {
  margin: 0 0 8px;
}
@media (max-width: 680px) {
  .marketing-production-entry .mw-page .mat-table thead th:nth-child(2) {
    left: 168px;
  }
  .marketing-production-entry .mw-page.mat-reference-page .mat-table .mat-expand strong {
    max-width: 96px !important;
  }
}
@media (max-width: 680px) {
  .marketing-production-entry .mat-range-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 100%;
    gap: 8px !important;
  }
  .marketing-production-entry .mat-range-inline label {
    flex: 1 1 120px;
    min-width: 0;
  }
  .marketing-production-entry .mat-range-inline input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .marketing-production-entry .mat-range-inline > button {
    margin-left: auto;
  }
  .marketing-production-entry .mp-live-source {
    overflow-wrap: anywhere;
  }
}
.marketplace-evidence {
  margin: 10px 0;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 6px;
  padding: 9px 11px;
}
.marketplace-evidence > summary {
  cursor: pointer;
  font-weight: 600;
}
.marketplace-evidence-scroll {
  max-width: 100%;
  overflow: auto;
  max-height: 440px;
}
.marketplace-evidence table {
  border-collapse: collapse;
  min-width: 700px;
  width: 100%;
  font-size: 12px;
}
.marketplace-evidence td,
.marketplace-evidence th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--ui-line,#ddd);
  vertical-align: top;
  text-align: left;
}
.marketplace-evidence th {
  position: sticky;
  top: 0;
  background: var(--ui-surface,#fff);
}
.marketplace-evidence p {
  font-size: 12px;
  line-height: 1.45;
}
.marketplace-evidence button {
  padding: 7px 10px;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 5px;
  background: var(--ui-surface,#fff);
}

/* assets/marketplace-roi.css */
.mroi-panel {
  padding: 18px;
  margin: 16px 0;
  min-width: 0;
}
.mroi-panel h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.mroi-panel p {
  font-size: 13px;
  line-height: 1.55;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.mroi-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.mroi-value {
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.mroi-value span {
  font-size: 12px;
  color: var(--ui-muted,#666);
}
.mroi-value strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.mroi-warning {
  color: var(--ui-muted,#666);
  border-left: 3px solid var(--ui-warning,#b87e23);
  padding-left: 10px;
}
.mroi-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.mroi-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.mroi-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  min-width: 0;
}
.mroi-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--ui-line,#ddd);
  border-radius: 6px;
  background: var(--ui-surface,#fff);
  color: inherit;
}
.mroi-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.mroi-confirm input {
  margin-top: 4px;
  flex: 0 0 auto;
}
.mroi-members {
  max-height: 120px;
  overflow: auto;
}
.mroi-scenario {
  border-top: 1px solid var(--ui-line,#ddd);
  margin-top: 12px;
  padding-top: 4px;
}
@media (max-width: 500px) {
  .mroi-panel {
    padding: 12px;
  }
  .mroi-values {
    grid-template-columns: 1fr 1fr;
  }
  .mroi-fields {
    grid-template-columns: 1fr;
  }
  .mroi-value strong {
    font-size: 15px;
  }
}

/* assets/marketplace-navigation.css */
.global-navigation .navigation-links > a[href="/#advertising"] {
  box-sizing: border-box;
  border: 1px solid var(--ui-line, #dce1e6);
  background: var(--ui-surface, #fff);
  color: var(--ui-text, #202124);
}
.global-navigation .navigation-links > a[href="/#advertising"]:hover,
.platform-phone-menu a[href="/#advertising"]:hover {
  background: var(--ui-selected-soft, #fff8dc);
}
.global-navigation .navigation-links > a[href="/#advertising"][aria-current=page],
.platform-phone-menu a[href="/#advertising"][aria-current=page] {
  border-color: var(--ui-accent-hover, #efc700);
  background: var(--ui-selected, #fff0ac);
  color: var(--ui-text, #202124);
  box-shadow: inset 3px 0 0 var(--ui-accent, #ffd500);
  font-weight: 700;
}
.global-navigation .navigation-links > a[href="/#advertising"]:focus-visible,
.platform-phone-menu a[href="/#advertising"]:focus-visible {
  outline: 2px solid var(--ui-text, #202124);
  outline-offset: -3px;
}

/* .build-dependencies/platform-foundation.css */
:root {
  color-scheme: light;
  --ui-font:
    Arial,
    "Segoe UI",
    sans-serif;
  --ui-bg: #fff;
  --ui-surface: #fff;
  --ui-subtle: #f5f6f8;
  --ui-section-bg: #f0f1f3;
  --ui-text: #202124;
  --ui-muted: #626873;
  --ui-line: #dcdfe4;
  --ui-input-line: #7f8792;
  --ui-accent: #ffd500;
  --ui-accent-hover: #efc700;
  --ui-selected: #fff0ac;
  --ui-selected-soft: #fff8dc;
  --ui-link: #303842;
  --ui-focus: #424a55;
  --ui-info: #454d59;
  --ui-info-bg: #f5f6f8;
  --ui-success: #176443;
  --ui-success-bg: #edf7f1;
  --ui-danger: #bd2532;
  --ui-danger-bg: #fff1f2;
  --ui-warning: #785a13;
  --ui-warning-bg: #fff7db;
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-space-8: 32px;
  --ui-text-sm: 14px;
  --ui-text-base: 14px;
  --ui-text-lg: 16px;
  --ui-heading: 28px;
  --ui-section-heading: 18px;
  --ui-line-height: 1.45;
  --ui-radius-sm: 4px;
  --ui-radius: 6px;
  --ui-radius-lg: 6px;
  --ui-control: 36px;
  --ui-control-compact: 32px;
  --ui-control-touch: 44px;
  --ui-control-padding: 6px 12px;
  --ui-page-padding: 16px;
  --ui-panel-padding: 16px;
  --ui-table-padding: 7px 12px;
  --ui-shadow: none;
  --ui-modal-shadow: 0 14px 48px #20212424;
  --ui-nav-surface: #202930;
  --ui-nav-raised: #303a43;
  --ui-nav-text: #f5f6f7;
  --ui-nav-muted: #c7cdd3;
  --ui-nav-line: #46515c;
  --ui-nav-selected: #37424c;
  --bg: var(--ui-bg);
  --paper: var(--ui-surface);
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --line: var(--ui-line);
  --green: var(--ui-link);
  --teal: var(--ui-link);
  --mint: var(--ui-subtle);
  --red: var(--ui-danger);
  --red-bg: var(--ui-danger-bg);
  --amber: var(--ui-warning);
  --yellow: var(--ui-accent);
  --soft: var(--ui-selected-soft);
  --director-ink: var(--ui-text);
  --director-muted: var(--ui-muted);
  --home-ink: var(--ui-text);
  --home-muted: var(--ui-muted);
  --home-line: var(--ui-line);
  --shell-bg: var(--ui-bg);
  --shell-line: var(--ui-line);
  --shell-text: var(--ui-text);
  --shell-muted: var(--ui-muted);
  --shell-yellow: var(--ui-accent);
  --shell-radius: var(--ui-radius);
}
html {
  font-family: var(--ui-font);
  color: var(--ui-text);
  background: var(--ui-bg);
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
  font: var(--ui-text-base)/var(--ui-line-height) var(--ui-font);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: var(--ui-text-base);
  line-height: var(--ui-line-height);
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled,
[aria-disabled=true] {
  cursor: not-allowed;
  opacity: .65;
}
:where(a) {
  color: var(--ui-link);
  text-underline-offset: 3px;
}
:where(a:hover) {
  text-decoration: underline;
}
:where(h1, h2, h3, h4) {
  color: var(--ui-text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
h1 {
  font-size: var(--ui-heading);
  font-weight: 700;
  letter-spacing: -.4px;
}
h2 {
  font-size: var(--ui-section-heading);
}
h3 {
  font-size: var(--ui-text-lg);
}
small {
  font-size: var(--ui-text-sm);
  line-height: var(--ui-line-height);
}
:where(button, input, select, textarea, a, summary):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}
.ui-density-compact {
  --ui-control: var(--ui-control-compact);
  --ui-control-padding: 4px 10px;
}
.ui-density-compact .ui-field {
  gap: 4px;
}
button,
.ui-button {
  min-height: var(--ui-control);
  padding: var(--ui-control-padding);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font-weight: 600;
  box-shadow: none;
}
.ui-button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--ui-text-base);
  text-decoration: none;
}
.ui-button:hover {
  background: var(--ui-subtle);
  text-decoration: none;
}
.ui-button--primary,
.primary,
.work-action,
.shift-open-plan {
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: var(--ui-text);
  box-shadow: none;
}
.ui-button--primary:hover,
.primary:hover,
.work-action:hover,
.shift-open-plan:hover {
  background: var(--ui-accent-hover);
  border-color: var(--ui-accent-hover);
}
.secondary,
.ui-button--secondary {
  color: var(--ui-text);
  background: var(--ui-surface);
  border-color: var(--ui-input-line);
}
.ui-button--danger {
  color: var(--ui-danger);
  background: var(--ui-surface);
  border-color: var(--ui-danger);
}
.ui-button--danger:hover {
  background: var(--ui-danger-bg);
}
.text-button,
.panel-link {
  min-height: var(--ui-control);
  font-size: var(--ui-text-base);
  color: var(--ui-link);
}
.ui-icon-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ui-control);
  min-width: var(--ui-control);
  min-height: var(--ui-control);
  padding: 6px;
  border-radius: var(--ui-radius);
}
:where(input:not([type=checkbox]):not([type=radio]), select, textarea),
.ui-input {
  max-width: 100%;
  min-height: var(--ui-control);
  padding: var(--ui-control-padding);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
}
input[type=checkbox],
input[type=radio] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--ui-text);
}
input::placeholder,
textarea::placeholder {
  color: var(--ui-muted);
  opacity: 1;
}
input[aria-invalid=true],
select[aria-invalid=true],
textarea[aria-invalid=true] {
  border-color: var(--ui-danger);
}
:where(label) {
  font-size: var(--ui-text-base);
  color: var(--ui-text);
}
.ui-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ui-field small,
.ui-muted {
  color: var(--ui-muted);
}
.ui-card {
  min-width: 0;
  padding: var(--ui-panel-padding);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}
.ui-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: var(--ui-radius);
  font-size: var(--ui-text-sm);
  font-weight: 600;
  line-height: var(--ui-line-height);
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.ui-badge--info {
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.ui-badge--success {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.ui-badge--danger {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.ui-badge--warning {
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}
.ui-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.ui-notice svg {
  flex: none;
}
.ui-notice p {
  margin: 0;
}
.ui-notice--error {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.ui-empty {
  padding: 24px 16px;
  border: 1px dashed var(--ui-input-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-muted);
  text-align: center;
}
.ui-empty h2 {
  font-size: 20px;
  color: var(--ui-text);
}
.ui-empty svg {
  margin-bottom: 12px;
}
.ui-table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
table {
  border-collapse: collapse;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
}
th {
  background: var(--ui-subtle);
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  font-weight: 600;
}
td {
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
}
th,
td {
  padding: var(--ui-table-padding);
  border-bottom: 1px solid var(--ui-line);
  line-height: var(--ui-line-height);
  vertical-align: top;
}
td b {
  font-size: inherit;
  color: var(--ui-text);
}
td small {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.ui-table-scroll table {
  width: 100%;
}
.ui-table-scroll a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ui-control);
}
tbody tr:hover {
  background: var(--ui-selected-soft);
}
.ui-register.ui-card {
  padding: 0;
  overflow: hidden;
}
.ui-register .ui-table-scroll {
  border: 0;
  border-radius: 0;
}
.ui-register-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
}
.ui-register-toolbar input {
  flex: 1 1 260px;
  max-width: 440px;
}
.ui-register-toolbar select {
  flex: 0 1 240px;
  min-width: 180px;
}
.ui-register-empty {
  padding: 24px 16px;
  margin: 0;
  color: var(--ui-muted);
  text-align: center;
}
.ui-register-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--ui-line);
}
.ui-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.ui-card > .ui-empty {
  border: 0;
  padding: 24px 0;
}
.ui-page > .ui-card + .ui-card {
  margin-top: 16px;
}
.wh-page > .ui-section-tabs {
  padding-inline: 0;
  margin-bottom: 16px;
}
.ui-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ui-page-heading h1 {
  margin: 0 0 6px;
}
.ui-page-heading p {
  margin: 0;
  color: var(--ui-muted);
}
.ui-section-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 16px;
  border-bottom: 1px solid var(--ui-line);
}
.ui-section-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--ui-control);
  padding: 7px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ui-muted);
  font-size: var(--ui-text-base);
  font-weight: 600;
}
.ui-section-tabs button:hover {
  color: var(--ui-text);
}
.ui-section-tabs button[aria-pressed=true] {
  color: var(--ui-text);
  border-bottom-color: var(--ui-accent);
}
.ui-section-tabs button span {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  font-weight: 400;
}
.ui-table-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: var(--ui-control);
  padding: 4px 0;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: var(--ui-link);
  font-size: var(--ui-text-base);
  font-weight: 400;
  white-space: normal;
}
.ui-table-link:hover {
  background: transparent;
  text-decoration: underline;
}
dialog,
.modal {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-modal-shadow);
}
dialog {
  max-width: calc(100vw - 24px);
  max-height: 90vh;
  max-height: 90dvh;
}
dialog::backdrop,
.modal-backdrop {
  background: #20212466;
}
.modal-backdrop {
  z-index: 500;
}
.modal {
  height: 100vh;
  height: 100dvh;
}
.modal-head {
  gap: 16px;
}
.modal-footer {
  flex-wrap: wrap;
}
.modal-body {
  min-height: 0;
}
.ui-dialog {
  padding: 0;
  overflow: auto;
  font-family: var(--ui-font);
  font-size: var(--ui-text-base);
}
.ui-dialog > header,
.ui-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--ui-surface);
}
.ui-dialog > header {
  border-bottom: 1px solid var(--ui-line);
}
.ui-dialog > footer {
  border-top: 1px solid var(--ui-line);
  flex-wrap: wrap;
}
.ui-dialog > header h2 {
  margin: 0;
  font-size: 20px;
}
.ui-dialog > header p {
  margin: 6px 0 0;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: var(--ui-line-height);
}
.ui-dialog > footer > span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.toast {
  background: var(--ui-text);
  color: var(--ui-surface);
  font-size: var(--ui-text-base);
  z-index: 600;
}
.segmented button,
.settings-tabs button {
  min-height: var(--ui-control);
  font-size: var(--ui-text-base);
  color: var(--ui-muted);
}
.segmented .active,
.segmented button[aria-pressed=true],
.settings-tabs button[aria-pressed=true] {
  background: var(--ui-selected);
  border-color: var(--ui-accent);
  color: var(--ui-text);
  box-shadow: none;
}
.empty,
.column-empty {
  font-size: var(--ui-text-base);
  color: var(--ui-muted);
}
.label-error,
[role=alert] {
  color: var(--ui-danger);
}
[aria-busy=true] {
  cursor: progress;
}
@media (max-width: 760px), (pointer: coarse) {
  :root {
    --ui-text-base: 16px;
    --ui-heading: 24px;
    --ui-control: 44px;
    --ui-control-compact: 44px;
    --ui-control-padding: 10px 12px;
    --ui-page-padding: 12px;
    --ui-panel-padding: 12px;
    --ui-table-padding: 10px 12px;
  }
  .ui-density-compact {
    --ui-control: var(--ui-control-touch);
    --ui-control-padding: 10px 12px;
  }
  input[type=checkbox],
  input[type=radio] {
    width: 20px;
    height: 20px;
  }
}
.preview-mobile {
  --ui-text-base: 16px;
  --ui-heading: 24px;
  --ui-control: 44px;
  --ui-control-compact: 44px;
  --ui-control-padding: 10px 12px;
  --ui-page-padding: 12px;
  --ui-panel-padding: 12px;
}
.preview-mobile .ui-density-compact {
  --ui-control: var(--ui-control-touch);
  --ui-control-padding: 10px 12px;
}
@media (max-width: 760px) {
  .ui-register-toolbar input,
  .ui-register-toolbar select {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }
  .ui-section-tabs {
    padding-inline: 12px;
    gap: 16px;
  }
  .ui-section-tabs button {
    padding-block: 10px;
  }
  .ui-register-footer,
  .ui-dialog > header,
  .ui-dialog > footer {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  button,
  a,
  input,
  select,
  textarea {
    forced-color-adjust: auto;
  }
  .ui-badge {
    border: 1px solid CanvasText;
  }
  [aria-current=page] {
    outline: 2px solid Highlight;
  }
}

/* assets/finished-stock-reference.css */
.pw-finished-view.pw-finished-reference.pw-stock-structure {
  --finished-ink: var(--stock-ink, #191c25);
  --finished-muted: var(--stock-muted, #596170);
  --finished-line: var(--stock-line, #d4d9e2);
  --finished-soft: var(--stock-soft, #f4f5f8);
  --finished-yellow: var(--stock-yellow, #ffdc25);
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--finished-ink);
  font-family: var(--ui-font, Arial, "Segoe UI", sans-serif);
  font-size: 16px;
  line-height: 1.35;
  text-shadow: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure :is(button, input, select) {
  box-sizing: border-box;
  min-height: 36px;
  border: 1px solid var(--finished-line);
  border-radius: 4px;
  background: #fff;
  color: var(--finished-ink);
  font: inherit;
  letter-spacing: normal;
  text-shadow: none;
  box-shadow: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure :is(button, summary, input, select):focus-visible {
  outline: 2px solid #3264b9;
  outline-offset: 2px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure button {
  padding: 6px 12px;
  cursor: pointer;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure button:disabled {
  cursor: default;
  opacity: .55;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure svg {
  flex: none;
  filter: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-heading h3 {
  display: block;
  margin: 0;
  color: var(--finished-ink);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-counter {
  color: var(--finished-muted);
  font-size: 14px;
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metrics {
  display: flex;
  align-items: center;
  gap: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 132px;
  padding: 0 24px;
  border-left: 1px solid #c7cdd8;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metric strong {
  color: var(--finished-ink);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metric span {
  color: var(--finished-muted);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-search {
  display: block;
  width: 100%;
  margin: 0 0 12px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-search-field {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-search-caption,
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-filter-count,
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metrics + .pw-finished-counter {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: #626b7a;
  transform: translateY(-50%);
  pointer-events: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure input[type=search] {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 8px 12px 8px 42px;
  border-color: #bfc7d5;
  font-size: 16px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure input[type=search]::placeholder {
  color: #626b7a;
  opacity: 1;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, .9fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 9px 18px;
  margin: 0 0 20px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-switches {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  gap: 9px;
  min-width: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice {
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0 0 0 151px;
  border: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice legend {
  position: absolute;
  top: 0;
  left: 0;
  width: 145px;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 36px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice button {
  min-width: 0;
  height: auto;
  min-height: 36px;
  padding: 5px 8px;
  white-space: normal;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice button[aria-pressed=true] {
  background: var(--finished-yellow);
  border-color: var(--finished-yellow);
  font-weight: 700;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice button:hover:not([aria-pressed=true]):not(:disabled) {
  background: #f6f7f9;
  border-color: #a9b4c5;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-selects {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-selects label {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-selects select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 5px 9px;
  font-size: 15px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-reset {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  min-height: 30px;
  padding: 4px 0;
  border: 0;
  color: #2457a6;
  text-decoration: underline;
  background: transparent;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-scope-note {
  order: 2;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--finished-line);
  color: var(--finished-muted);
  font-size: 14px;
  line-height: 1.4;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-secondary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  padding: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-secondary button {
  min-height: 30px;
  border: 0;
  padding: 2px 0;
  color: #2457a6;
  background: transparent;
  text-decoration: underline;
  font-size: 14px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-group {
  margin: 0 0 8px;
  border: 1px solid var(--finished-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-group > summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  background: var(--finished-soft);
  list-style: none;
  cursor: pointer;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-group > summary::-webkit-details-marker {
  display: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--finished-ink);
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-shape-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  flex: 0 0 32px;
  color: var(--finished-ink);
  filter: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-shape-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-group > summary h4 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--finished-ink);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: normal;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-group-count {
  flex: 0 0 auto;
  margin: 0 0 0 4px;
  padding: 0;
  color: var(--finished-muted);
  font-size: 14px;
  line-height: 1.35;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-table-wrap.pw-finished-scroll {
  width: 100%;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table {
  display: table;
  width: 100%;
  min-width: 900px;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(1) {
  width: 21%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(2) {
  width: 12%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(3) {
  width: 10%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(4) {
  width: 17.5%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(5) {
  width: 10.5%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(6) {
  width: 9%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(7) {
  width: 10.5%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table col:nth-child(8) {
  width: 9.5%;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table :is(th, td) {
  display: table-cell;
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 3px 12px;
  border: 0;
  border-right: 1px solid var(--finished-line);
  border-bottom: 1px solid var(--finished-line);
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: normal;
  line-height: 1.3;
  color: var(--finished-ink);
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table thead th {
  height: 34px;
  background: #eef0f4;
  color: var(--finished-ink);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table :is(th, td):first-child,
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table :is(th, td):nth-child(4) {
  text-align: left;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table :is(th, td):last-child {
  border-right: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody tr {
  background: #fff;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody th {
  position: static;
  background: inherit;
  font-size: 16px;
  font-weight: 700;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody tr:last-child > :is(th, td) {
  border-bottom: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody tr:is(:hover, :focus-within, .is-selected) {
  background: #f2f5fa;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td[data-stock-field=quantity] {
  background: #fff5cb;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:is([data-stock-field=reserved], [data-stock-field=available]) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table .pw-finished-article {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--finished-ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-article:hover {
  color: #2457a6;
  text-decoration: underline;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-item-size {
  display: none;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table small {
  display: inline;
  margin: 0 0 0 4px;
  color: var(--finished-muted);
  font-size: 12px;
  line-height: 1.3;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table td:nth-child(4) small {
  display: inline;
  margin: 0 0 0 4px;
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-note {
  order: 3;
  margin: 6px 0 0;
  color: var(--finished-muted);
  font-size: 14px;
  line-height: 1.45;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .stock-empty {
  margin: 12px 0;
  padding: 24px;
  border: 1px solid var(--finished-line);
  border-radius: 4px;
  background: #fafbfc;
}
@media (min-width: 800px) and (max-width: 1240px) {
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-controls {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-switches {
    grid-column: 1;
    grid-row: 1;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-selects {
    grid-column: 1;
    grid-row: 2;
    width: min(500px, 75%);
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-reset {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
}
@media (max-width: 799px) {
  .pw-finished-view.pw-finished-reference.pw-stock-structure {
    font-size: 15px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-heading h3 {
    font-size: 26px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-counter {
    font-size: 13px;
    white-space: normal;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metrics {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 10px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metric {
    min-width: 0;
    padding: 0 12px;
    gap: 3px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metric:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metric strong {
    font-size: 24px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-metric span {
    font-size: 13px;
    white-space: normal;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure :is(button, input, select) {
    min-height: 44px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure input[type=search] {
    height: 44px;
    font-size: 16px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-switches {
    display: grid;
    width: 100%;
    gap: 12px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice {
    padding: 0;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice legend {
    position: static;
    float: none;
    width: auto;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.3;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-choice button {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 7px;
    font-size: 14px;
    white-space: normal;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-selects {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: flex-start;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-selects label {
    display: block;
    flex: 1 1 0;
    font-size: 14px;
    white-space: normal;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-selects select {
    height: 44px;
    margin-top: 5px;
    font-size: 15px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-reset {
    align-self: flex-end;
    min-height: 44px;
    padding: 6px 0;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-group {
    margin-bottom: 10px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-group > summary {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-group > summary h4 {
    flex: 1 1 0;
    font-size: 17px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-shape-icon {
    width: 32px;
    height: 24px;
    flex-basis: 32px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-group-count {
    flex: 0 0 auto;
    padding: 0;
    font-size: 13px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-table-wrap.pw-finished-scroll {
    overflow: visible;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
    font-size: 15px;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table colgroup {
    display: none;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody {
    display: block;
    width: 100%;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "article quantity" "location location" "light control" "reserved available";
    gap: 6px 12px;
    height: auto;
    padding: 10px;
    border-bottom: 1px solid var(--finished-line);
    background: #fff;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody tr:last-child {
    border-bottom: 0;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody :is(th, td) {
    position: static;
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody th {
    grid-area: article;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td[data-stock-field=size] {
    position: absolute;
    grid-area: auto;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:nth-child(3) {
    grid-area: light;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:nth-child(4) {
    grid-area: control;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:nth-child(5) {
    grid-area: quantity;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 20px;
    font-weight: 700;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:nth-child(6) {
    grid-area: reserved;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:nth-child(7) {
    grid-area: available;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:nth-child(8) {
    grid-area: location;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td:is([data-stock-field=quantity], [data-stock-field=reserved], [data-stock-field=available]) {
    text-align: left;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 2px;
    color: var(--finished-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table .pw-finished-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 44px;
    gap: 3px;
    font-size: 20px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-article .pw-finished-item-size {
    display: block;
    order: 0;
    max-width: 100%;
    color: var(--finished-ink);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-article .pw-finished-item-label {
    display: none;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-article[data-has-article] .pw-finished-item-label {
    display: block;
    order: 1;
    max-width: 100%;
    color: var(--finished-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-table small {
    font-size: 13px;
    font-weight: 400;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-note {
    margin-top: 12px;
    font-size: 13px;
  }
}

/* assets/finished-stock-shell.css */
.stock-category-mobile {
  display: none;
}
.pw-finished-mobile-filter-toggle {
  display: none;
}
#workspace-content:has(> .wh-stock-focus) > .stock-sections {
  display: none;
}
#workspace-content .wh-page.wh-stock-focus {
  --stock-ink: #191c25;
  --stock-muted: #596170;
  --stock-line: #d4d9e2;
  --stock-soft: #f4f5f8;
  --stock-yellow: #ffdc25;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 18px 24px 28px;
  background: #fff;
}
#workspace-content .wh-stock-focus > .stock-finished-breadcrumb {
  order: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 20px;
  color: #191c25;
}
#workspace-content .wh-stock-focus > .stock-finished-breadcrumb a {
  color: #245fc2;
}
#workspace-content .wh-stock-focus > .ui-page-heading {
  order: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  align-items: center;
  margin: 0 0 20px;
}
#workspace-content .wh-stock-focus > .ui-page-heading .ui-page-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
#workspace-content .wh-stock-focus .ui-page-actions .ir-feedback-stock {
  order: 0;
}
#workspace-content .wh-stock-focus .ui-page-actions :is(button.ir-feedback-stock, .ir-feedback-stock button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  margin: 0;
  border: 1px solid #d51c1c;
  border-radius: 4px;
  background: #fff;
  color: #c91414;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
#workspace-content .wh-stock-focus .ui-page-actions :is(button.ir-feedback-stock, .ir-feedback-stock button):hover {
  background: #fff5f5;
}
#workspace-content .wh-stock-focus .ui-page-actions .ir-feedback-stock svg {
  width: 21px;
  height: 21px;
  flex: none;
  color: currentColor;
  filter: none;
}
#workspace-content .wh-stock-focus .stock-view-options {
  position: relative;
  order: 2;
  flex: 0 0 auto;
  margin: 0;
}
#workspace-content .wh-stock-focus .stock-view-options > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #cbd1dc;
  border-radius: 4px;
  background: #fff;
  color: #191c25;
  box-sizing: border-box;
  list-style: none;
  cursor: pointer;
}
#workspace-content .wh-stock-focus .stock-view-options > summary::-webkit-details-marker {
  display: none;
}
#workspace-content .wh-stock-focus .stock-view-options > summary svg {
  display: block;
  width: 23px;
  height: 23px;
  filter: none;
}
#workspace-content .wh-stock-focus .stock-view-options[open] > summary {
  background: #f5f6f8;
}
#workspace-content .wh-stock-focus .stock-view-options-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  gap: 8px;
  padding: 12px;
  border: 1px solid #cbd1dc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 14px #182a4520;
}
#workspace-content .wh-stock-focus .stock-view-options:not([open]) > .stock-view-options-panel {
  display: none;
}
#workspace-content .wh-stock-focus .stock-view-options-panel button {
  flex: 1;
  min-height: 36px;
  margin: 0;
}
#workspace-content .wh-stock-focus .stock-view-options > summary:focus-visible,
#workspace-content .wh-stock-focus .ui-page-actions :is(button.ir-feedback-stock, .ir-feedback-stock button):focus-visible {
  outline: 2px solid #3264b9;
  outline-offset: 2px;
}
#workspace-content .wh-stock-focus > .ui-page-heading h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -.5px;
  font-weight: 750;
  color: #191c25;
}
#workspace-content .wh-stock-focus > .stock-workspace {
  order: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}
#workspace-content .wh-stock-focus .stock-workspace > .pw-stock-structure {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
}
#workspace-content .wh-stock-focus .pw-materials-table tbody th[data-stock-field=name] {
  background: transparent;
}
#workspace-content .wh-stock-focus .pw-materials-table [data-stock-field=quantity]:has(.pw-materials-quantity:not(.unknown)) {
  background: #fff5cb;
}
#workspace-content .wh-stock-focus .stock-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid #d4d9e2;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 0;
  min-width: 0;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--stock-line);
  border-radius: 4px;
  color: #191c25;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  white-space: nowrap;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button:first-child {
  flex-grow: 1.55;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button > span {
  font: inherit;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button + button::before {
  content: none;
  position: absolute;
  left: 0;
  top: 12px;
  height: 24px;
  border-left: 1px solid #cbd1dc;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button.active {
  border-color: var(--stock-yellow);
  background: var(--stock-yellow);
  font-weight: 700;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button svg {
  display: none;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button:not(.active):hover {
  background: #f8f9fb;
}
#workspace-content .wh-stock-focus .stock-category-tabs > button:focus-visible {
  outline: 2px solid #3264b9;
  outline-offset: -3px;
}
#workspace-content .wh-stock-focus .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-heading h3 {
  display: none;
}
#workspace-content .wh-stock-focus .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-stock-heading {
  justify-content: flex-start;
  position: static;
  margin: 0 0 12px;
}
#workspace-content .wh-stock-focus > .wr-source-details,
#workspace-content .wh-stock-focus > .wh-planning-details {
  order: 4;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e1e4e9;
  color: #596170;
  font-size: 13px;
}
#workspace-content .wh-stock-focus > .wh-planning-details {
  order: 5;
}
#workspace-content .wh-stock-focus > .wh-saved,
#workspace-content .wh-stock-focus > .ui-notice {
  order: 3;
}
#workspace-content .wh-stock-focus > .stock-finished-source-line {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin: 18px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #d4d9e2;
  color: #596170;
  font-size: 14px;
  line-height: 1.4;
}
@media (min-width: 800px) {
  #workspace-content .wh-stock-focus .pw-finished-reference .pw-finished-filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }
  #workspace-content .wh-stock-focus .pw-finished-reference .pw-finished-filter-button {
    flex: 1 1 auto;
    height: 36px;
    min-height: 36px;
    min-width: 0;
    padding: 5px 8px;
    white-space: nowrap;
    font-size: 14px;
    line-height: 20px;
  }
  #workspace-content .wh-stock-focus .pw-finished-reference .pw-finished-configuration {
    display: inline;
    margin: 0 0 0 4px;
    white-space: nowrap;
  }
  #workspace-content .wh-stock-focus .pw-finished-reference td[data-stock-field=control] {
    white-space: nowrap;
  }
}
@media (min-width: 1440px) {
  #workspace-content .wh-stock-focus .pw-finished-reference {
    position: static;
  }
  #workspace-content .wh-stock-focus .pw-finished-reference .pw-finished-heading {
    height: 0;
    min-height: 0;
    margin: 0;
  }
  #workspace-content .wh-stock-focus .pw-finished-reference .pw-finished-metrics {
    position: absolute;
    top: 54px;
    left: 398px;
    z-index: 1;
    margin: 0;
  }
}
@media (min-width: 800px) and (max-width: 1439px) {
  #workspace-content .wh-stock-focus .stock-category-tabs > button {
    padding-inline: 9px;
    font-size: 15px;
  }
  #workspace-content .wh-stock-focus .pw-finished-controls {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  #workspace-content .wh-stock-focus .pw-finished-switches {
    grid-column: 1;
    grid-row: 1;
  }
  #workspace-content .wh-stock-focus .pw-finished-selects {
    grid-column: 1;
    grid-row: 2;
    width: min(500px, 75%);
  }
  #workspace-content .wh-stock-focus .pw-finished-reset {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
}
@media (max-width: 799px) {
  #workspace-content .wh-page.wh-stock-focus {
    padding: 14px 12px 24px;
  }
  #workspace-content .wh-stock-focus > .stock-finished-breadcrumb {
    margin-bottom: 12px;
    font-size: 13px;
  }
  #workspace-content .wh-stock-focus > .ui-page-heading {
    margin-bottom: 16px;
  }
  #workspace-content .wh-stock-focus > .ui-page-heading h1 {
    font-size: 26px;
    letter-spacing: -.3px;
  }
  #workspace-content .wh-stock-focus > .ui-page-heading .ui-page-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  #workspace-content .wh-stock-focus .ui-page-actions :is(button.ir-feedback-stock, .ir-feedback-stock button) {
    padding-inline: 11px;
    font-size: 14px;
  }
  #workspace-content .wh-stock-focus .stock-view-options-panel button {
    min-height: 44px;
  }
  #workspace-content .wh-stock-focus > .stock-finished-source-line {
    margin-top: 14px;
    font-size: 13px;
  }
  #workspace-content .wh-stock-focus .pw-finished-reference .pw-finished-heading {
    display: block;
    margin: 0 0 10px;
  }
  #workspace-content .wh-stock-focus .pw-finished-reference .pw-finished-metrics {
    position: static;
  }
  #workspace-content .wh-stock-focus .stock-category-tabs {
    display: none;
  }
  #workspace-content .wh-stock-focus .stock-category-mobile {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid #d4d9e2;
    border-radius: 4px;
    color: #191c25;
    background: #fff;
    font: inherit;
    font-size: 15px;
  }
  #workspace-content .wh-stock-focus .pw-finished-mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d4d9e2;
    border-radius: 4px;
    margin: 0 0 12px;
    color: #191c25;
    background: #f6f7f9;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
  }
  #workspace-content .wh-stock-focus .pw-finished-controls:not([data-mobile-open=true]) {
    display: none;
  }
}

/* assets/stock-focus-mirror.css */
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--stock-ink, #191c25);
  background: #fff;
  font-family: var(--ui-font, Arial, "Segoe UI", sans-serif);
  font-size: 14px;
  line-height: 1.35;
  text-shadow: none;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure :is(button, input, select) {
  box-sizing: border-box;
  min-height: 36px;
  max-width: 100%;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  box-shadow: none;
  text-shadow: none;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure button {
  padding: 6px 12px;
  cursor: pointer;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure button[aria-pressed=true] {
  border-color: var(--stock-yellow, #ffdc25);
  background: var(--stock-yellow, #ffdc25);
  font-weight: 700;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure :is(button, input, select, summary):focus-visible {
  outline: 2px solid #3264b9;
  outline-offset: 2px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure svg {
  flex: none;
  filter: none;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-type-tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  border: 0;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-type-tabs button {
  flex: 0 1 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
  background: #fff;
  white-space: nowrap;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-type-tabs button[aria-pressed=true] {
  border-color: var(--stock-yellow, #ffdc25);
  background: var(--stock-yellow, #ffdc25);
  font-weight: 700;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 16px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-search {
  display: contents;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-search-field {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-search-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-search-icon {
  position: absolute;
  inset: 50% auto auto 12px;
  transform: translateY(-50%);
  color: #77808d;
  pointer-events: none;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure input[type=search] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 8px 12px 8px 40px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure input[type=search]::placeholder {
  color: var(--stock-muted, #596170);
  opacity: 1;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-known {
  grid-column: 1;
  min-height: 36px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure input[type=checkbox] {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--stock-yellow, #ffdc25);
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-secondary {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-secondary button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group {
  min-width: 0;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
  background: #fff;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 46px;
  padding: 8px 12px;
  background: var(--stock-soft, #f4f5f8);
  color: var(--stock-ink, #191c25);
  list-style: none;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary::-webkit-details-marker {
  display: none;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary h4 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group-facts,
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 12px;
  color: var(--stock-muted, #596170);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary > .pw-stock-group-facts {
  flex: 1 1 250px;
  justify-content: flex-end;
  margin-inline-start: auto;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group-area small {
  margin: 0;
  font-size: inherit;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-blank-choices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-blank-choices button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-widths {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--stock-line, #d4d9e2);
  background: #fff;
  font-size: 13px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-widths > span {
  margin-inline-end: 4px;
  color: var(--stock-muted, #596170);
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-widths button {
  min-width: 42px;
  min-height: 30px;
  padding: 4px 8px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table :is(th, td) {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 32px;
  padding: 4px 10px;
  border: 0;
  border-right: 1px solid var(--stock-line, #d4d9e2);
  border-bottom: 1px solid var(--stock-line, #d4d9e2);
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table th {
  height: 34px;
  background: #eceef2;
  color: #3c4451;
  font-size: 13px;
  font-weight: 400;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table [data-stock-field=item] {
  width: 23%;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table [data-stock-field=size] {
  width: 17%;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table [data-stock-field=quantity] {
  width: 12%;
  text-align: center;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table [data-stock-field=area] {
  width: 12%;
  text-align: right;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table [data-stock-field=location] {
  width: 15%;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table [data-stock-field=source] {
  width: 21%;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage=offcuts] [data-stock-field=item] {
  width: 21%;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage=offcuts] [data-stock-field=size] {
  width: 16%;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage=offcuts] :is([data-stock-field=quantity], [data-stock-field=reserved], [data-stock-field=available]) {
  width: 10%;
  text-align: right;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage=offcuts] [data-stock-field=source] {
  width: 18%;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table :is(th, td):last-child {
  min-width: 0;
  border-right: 0;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table tbody tr:nth-child(n) {
  background: #fff;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table tbody tr:last-child td {
  border-bottom: 0;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table td[data-stock-field=quantity] {
  background: #fff7cc;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-number {
  font-variant-numeric: tabular-nums;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table small {
  margin: 0;
  color: var(--stock-muted, #596170);
  font-size: 12px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-number small {
  display: inline;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-item {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--stock-ink, #191c25);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-item:hover {
  text-decoration: underline;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-item-size {
  display: none;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=source] {
  font-size: 12px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=source] > span > small {
  display: inline;
  margin-inline-end: 4px;
  font-size: 11px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-lot-holds {
  margin: 12px 0;
  padding: 0;
  overflow-wrap: anywhere;
  border: 1px solid #d8b778;
  border-radius: 4px;
  background: #fffaf0;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-lot-holds > summary {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-lot-holds :is(p, ul) {
  margin: 8px 12px 12px;
  color: var(--stock-muted, #596170);
  font-size: 13px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-lot-holds button {
  margin: 6px 0 0 8px;
  font-size: 13px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-explanation,
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-no-rows {
  margin: 10px 0;
  color: var(--stock-muted, #596170);
  font-size: 12px;
  line-height: 1.5;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-no-rows {
  padding: 10px 12px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .stock-empty {
  padding: 16px;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
}
.pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .stock-empty p {
  color: var(--stock-muted, #596170);
  font-size: 14px;
}
@media (max-width: 799px) {
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure {
    font-size: 14px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure :is(button, input, select) {
    min-height: 44px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-type-tabs button {
    min-width: 0;
    min-height: 44px;
    padding: 7px 6px;
    white-space: normal;
    font-size: 13px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure input[type=search] {
    height: 44px;
    font-size: 16px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-known {
    grid-column: 1;
    min-height: 44px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure input[type=checkbox] {
    min-height: 20px;
    width: 20px;
    height: 20px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-secondary {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-secondary button {
    min-width: 0;
    min-height: 44px;
    padding: 7px 6px;
    font-size: 13px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-secondary button:first-child {
    grid-column: 1 / -1;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group {
    margin: 10px 0;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary {
    gap: 6px 8px;
    min-height: 48px;
    padding: 10px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary h4 {
    flex: 1 1 0;
    font-size: 18px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary > .pw-stock-group-facts {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-inline-start: 0;
    padding-inline-start: 26px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-group > summary > .pw-stock-blank-choices {
    flex: 1 1 100%;
    min-width: 0;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-blank-choices button {
    flex: 1 1 100px;
    min-width: 0;
    min-height: 44px;
    padding: 7px 6px;
    font-size: 13px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-widths {
    gap: 6px;
    padding: 8px 10px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-widths > span {
    flex-basis: 100%;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-widths button {
    min-height: 44px;
    min-width: 44px;
    padding: 6px 10px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-table-wrap {
    overflow: visible;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table,
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, .6fr);
    grid-template-areas: "item quantity" "location location" "area source";
    gap: 6px;
    height: auto;
    padding: 10px;
    border-bottom: 1px solid var(--stock-line, #d4d9e2);
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage=offcuts] tbody tr {
    grid-template-areas: "item quantity" "location location" "reserved available" "source source";
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table tbody tr:last-child {
    border-bottom: 0;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage] td[data-stock-field] {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 0;
    border: 0;
    color: var(--stock-ink, #191c25);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table td[data-stock-field]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--stock-muted, #596170);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=item] {
    grid-area: item;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=item]::before {
    display: none;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage] td[data-stock-field=quantity] {
    grid-area: quantity;
    align-self: start;
    padding: 4px 8px;
    border-radius: 3px;
    background: #fff7cc;
    font-size: 20px;
    font-weight: 700;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=quantity]::before {
    color: #665d3d;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=location] {
    grid-area: location;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=area] {
    grid-area: area;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=reserved] {
    grid-area: reserved;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=available] {
    grid-area: available;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure td[data-stock-field=source] {
    grid-area: source;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table[data-mirror-stage] td[data-stock-field=size] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-item-size {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-mirror-item-label {
    display: block;
    color: var(--stock-muted, #596170);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-mirror-table td[data-stock-field=source] > span > small {
    display: block;
    margin: 0 0 2px;
  }
  .pw-mirror-view.pw-stock-focus-mirror.pw-stock-structure .pw-stock-lot-holds button {
    min-height: 44px;
    max-width: 100%;
    margin: 6px 0 0;
    white-space: normal;
  }
}

/* assets/stock-focus-components.css */
.wh-stock-focus .pw-component-structure {
  min-width: 0;
  padding: 0;
  color: var(--stock-ink, #191c25);
}
.wh-stock-focus .pw-component-structure .pw-stock-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 8px;
}
.wh-stock-focus .pw-component-structure .pw-stock-heading h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
.wh-stock-focus .pw-component-structure .pw-stock-heading > span {
  color: var(--stock-muted, #596170);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.wh-stock-focus .pw-component-structure .pw-component-location-note {
  margin: 0 0 14px;
  padding: 8px 10px;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
  background: var(--stock-soft, #f4f5f8);
  color: var(--stock-muted, #596170);
  font-size: 13px;
  line-height: 1.45;
}
.wh-stock-focus .pw-component-structure .pw-component-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 16px;
}
.wh-stock-focus .pw-component-structure .pw-component-controls > .pw-stock-search {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
  min-width: 0;
  margin: 0;
}
.wh-stock-focus .pw-component-structure .pw-stock-search > label:first-child {
  display: grid;
  flex: 1 1 420px;
  min-width: 0;
  gap: 4px;
  color: var(--stock-muted, #596170);
  font-size: 13px;
}
.wh-stock-focus .pw-component-structure .pw-stock-search input[type=search] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
  background: #fff;
  color: var(--stock-ink, #191c25);
  font: inherit;
  font-size: 15px;
}
.wh-stock-focus .pw-component-structure .pw-stock-known {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  margin: 0;
  color: var(--stock-ink, #191c25);
  font-size: 14px;
}
.wh-stock-focus .pw-component-structure input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--stock-yellow, #ffdc25);
}
.wh-stock-focus .pw-component-structure .pw-stock-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.wh-stock-focus .pw-component-structure .pw-stock-secondary button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
  background: #fff;
  color: var(--stock-ink, #191c25);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.wh-stock-focus .pw-component-structure :is(button, input, summary):focus-visible,
.wh-stock-focus .pw-component-structure .pw-component-scroll:focus-visible {
  outline: 2px solid var(--stock-ink, #191c25);
  outline-offset: 2px;
}
.wh-stock-focus .pw-component-structure .pw-stock-secondary button:hover {
  background: var(--stock-soft, #f4f5f8);
}
.wh-stock-focus .pw-component-structure .pw-stock-group {
  min-width: 0;
  margin: 10px 0;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 5px;
  overflow: hidden;
}
.wh-stock-focus .pw-component-structure .pw-stock-group > summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  gap: 3px 10px;
  padding: 7px 12px;
  background: var(--stock-soft, #f4f5f8);
  list-style: none;
}
.wh-stock-focus .pw-component-structure .pw-stock-group > summary::-webkit-details-marker {
  display: none;
}
.wh-stock-focus .pw-component-structure .pw-stock-group > summary h4 {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  color: var(--stock-ink, #191c25);
  font-size: 18px;
  font-weight: 650;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.wh-stock-focus .pw-component-structure .pw-stock-group > summary > .pw-stock-group-facts {
  display: contents;
  color: var(--stock-muted, #596170);
  font-size: 13px;
  line-height: 19px;
}
.wh-stock-focus .pw-component-structure .pw-stock-group-facts > span:first-child {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
}
.wh-stock-focus .pw-component-structure .pw-stock-group-area {
  display: flex;
  grid-column: 2 / -1;
  grid-row: 2;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  gap: 2px 16px;
}
.wh-stock-focus .pw-component-structure .pw-stock-group-area small {
  max-width: 100%;
  margin: 0;
  color: var(--stock-muted, #596170);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  overflow-wrap: anywhere;
}
.wh-stock-focus .pw-component-structure .pw-component-widths {
  padding: 0 10px;
}
.wh-stock-focus .pw-component-structure .pw-component-width {
  margin: 8px 0;
}
.wh-stock-focus .pw-component-structure .pw-component-width > summary {
  min-height: 40px;
}
.wh-stock-focus .pw-component-structure .pw-component-width > summary h4 {
  font-size: 16px;
}
.wh-stock-focus .pw-component-structure .pw-component-scroll {
  min-width: 0;
  overflow-x: auto;
}
.wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table {
  display: table;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 20px;
}
.wh-stock-focus .pw-component-structure .pw-component-table thead {
  display: table-header-group;
}
.wh-stock-focus .pw-component-structure .pw-component-table tbody {
  display: table-row-group;
}
.wh-stock-focus .pw-component-structure .pw-component-table tr {
  display: table-row;
}
.wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table :is(th, td) {
  display: table-cell;
  min-width: 0;
  padding: 5px 8px;
  border: 0;
  border-inline-end: 1px solid var(--stock-line, #d4d9e2);
  border-bottom: 1px solid var(--stock-line, #d4d9e2);
  color: var(--stock-ink, #191c25);
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wh-stock-focus .pw-component-structure .pw-component-table :is(th, td):last-child {
  border-inline-end: 0;
}
.wh-stock-focus .pw-component-structure .pw-component-table tbody tr:last-child td {
  border-bottom: 0;
}
.wh-stock-focus .pw-component-structure .pw-component-table th {
  background: var(--stock-soft, #f4f5f8);
  font-size: 13px;
  font-weight: 500;
}
.wh-stock-focus .pw-component-structure .pw-component-table tbody tr {
  height: 32px;
}
.wh-stock-focus .pw-component-structure .pw-component-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.wh-stock-focus .pw-component-structure .pw-component-table tbody tr:hover {
  background: var(--stock-soft, #f4f5f8);
}
.wh-stock-focus .pw-component-structure .pw-component-table td::before {
  content: none;
}
.wh-stock-focus .pw-component-structure .pw-component-table tr > :first-child {
  position: static;
  background: transparent;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-col-item {
  width: 22%;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-col-format {
  width: 12%;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-col-unit {
  width: 5%;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-col-warehouse {
  width: 12%;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-col-workplace {
  width: 20%;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-col-source {
  width: 29%;
}
.wh-stock-focus .pw-component-structure .pw-component-cut-table .pw-component-col-item {
  width: 19%;
}
.wh-stock-focus .pw-component-structure .pw-component-cut-table .pw-component-col-format {
  width: 9%;
}
.wh-stock-focus .pw-component-structure .pw-component-cut-table .pw-component-col-cut {
  width: 14%;
}
.wh-stock-focus .pw-component-structure .pw-component-cut-table .pw-component-col-warehouse {
  width: 11%;
}
.wh-stock-focus .pw-component-structure .pw-component-cut-table .pw-component-col-workplace {
  width: 17%;
}
.wh-stock-focus .pw-component-structure .pw-component-cut-table .pw-component-col-source {
  width: 25%;
}
.wh-stock-focus .pw-component-structure .pw-component-dvp-table .pw-component-col-item {
  width: 20%;
}
.wh-stock-focus .pw-component-structure .pw-component-dvp-table .pw-component-col-format {
  width: 12%;
}
.wh-stock-focus .pw-component-structure .pw-component-dvp-table .pw-component-col-warehouse {
  width: 10%;
}
.wh-stock-focus .pw-component-structure .pw-component-dvp-table .pw-component-col-workplace {
  width: 15%;
}
.wh-stock-focus .pw-component-structure .pw-component-dvp-table .pw-component-col-source {
  width: 22%;
}
.wh-stock-focus .pw-component-structure .pw-component-dvp-table :is(.pw-component-col-area, .pw-component-col-cost) {
  width: 8%;
}
.wh-stock-focus .pw-component-structure .pw-component-item-link {
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--stock-ink, #191c25);
  font: inherit;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wh-stock-focus .pw-component-structure .pw-component-item-link:hover {
  text-decoration: underline;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-cell-format {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wh-stock-focus .pw-component-structure .pw-component-source-amount {
  display: inline-block;
  min-width: 30px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wh-stock-focus .pw-component-structure .pw-component-source-amount[data-known=true] {
  background: #fff3bc;
}
.wh-stock-focus .pw-component-structure .pw-component-source-unit {
  display: none;
}
.wh-stock-focus .pw-component-structure .pw-component-table small {
  display: block;
  margin-top: 2px;
  color: var(--stock-muted, #596170);
  font-size: 12px;
  line-height: 17px;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-review {
  color: #794916;
  font-weight: 500;
}
.wh-stock-focus .pw-component-structure .pw-component-table .pw-component-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wh-stock-focus .pw-component-structure .pw-component-issue > summary {
  padding: 3px 0;
  color: var(--stock-ink, #191c25);
  font-size: 13px;
  line-height: 19px;
}
.wh-stock-focus .pw-component-structure .pw-component-issue :is(ul, p) {
  margin: 5px 0;
  font-size: 12px;
  line-height: 18px;
}
.wh-stock-focus .pw-component-structure .pw-stock-explanation {
  margin: 10px 0;
  color: var(--stock-muted, #596170);
  font-size: 12px;
  line-height: 18px;
}
.wh-stock-focus .pw-component-structure .pw-stock-lot-holds {
  margin: 10px 0;
  padding: 8px 12px;
  border: 1px solid var(--stock-line, #d4d9e2);
  border-radius: 4px;
  font-size: 13px;
  line-height: 19px;
}
.wh-stock-focus .pw-component-structure .pw-stock-lot-holds > summary {
  min-height: 28px;
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 760px) {
  .wh-stock-focus .pw-component-structure .pw-stock-heading {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-heading h3 {
    font-size: 26px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-controls {
    gap: 8px;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-search > label:first-child {
    flex-basis: 100%;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-search input[type=search] {
    min-height: 44px;
    font-size: 16px;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-known {
    min-height: 44px;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-secondary {
    width: 100%;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-secondary button {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 7px 8px;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-group > summary {
    min-height: 44px;
    padding: 8px 10px;
    gap: 4px 8px;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-group > summary h4 {
    flex: 1 1 150px;
    font-size: 18px;
    line-height: 23px;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-group > summary > .pw-stock-group-facts {
    display: contents;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-group-area {
    gap: 2px 8px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-widths {
    padding: 0 6px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll {
    overflow: visible;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .wh-stock-focus .pw-component-structure .pw-component-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .wh-stock-focus .pw-component-structure .pw-component-table tbody {
    display: block;
  }
  .wh-stock-focus .pw-component-structure .pw-component-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    min-width: 0;
    padding: 10px;
    border-bottom: 1px solid var(--stock-line, #d4d9e2);
    background: #fff;
  }
  .wh-stock-focus .pw-component-structure .pw-component-table tbody tr:last-child {
    border-bottom: 0;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 7px 0;
    border: 0;
    background: transparent;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td[data-label]::before {
    display: block;
    margin: 0 0 3px;
    content: attr(data-label);
    color: var(--stock-muted, #596170);
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-item {
    grid-column: 1 / -1;
    order: 0;
    padding: 0 0 6px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-item::before {
    content: none;
  }
  .wh-stock-focus .pw-component-structure .pw-component-item-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
    line-height: 21px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-format {
    grid-column: 1 / -1;
    order: 1;
    padding-top: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-source {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    order: 2;
    align-items: center;
    gap: 2px 8px;
    padding: 8px;
    border: 1px solid var(--stock-line, #d4d9e2);
    border-radius: 4px;
    background: var(--stock-soft, #f4f5f8);
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-source::before {
    margin: 0;
  }
  .wh-stock-focus .pw-component-structure .pw-component-source-amount {
    min-width: 0;
    font-size: 22px;
    line-height: 28px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-source-unit {
    display: inline;
    font-size: 14px;
    font-weight: 500;
  }
  .wh-stock-focus .pw-component-structure .pw-component-cell-source > :not(.pw-component-source-amount) {
    grid-column: 1 / -1;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-unit {
    display: none;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td:is(.pw-component-cell-warehouse, .pw-component-cell-workplace) {
    order: 3;
    padding-top: 10px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-warehouse {
    padding-right: 8px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-workplace {
    padding-left: 8px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-cut {
    grid-column: 1 / -1;
    order: 4;
    border-top: 1px solid var(--stock-line, #d4d9e2);
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td:is(.pw-component-cell-area, .pw-component-cell-cost) {
    order: 5;
    border-top: 1px solid var(--stock-line, #d4d9e2);
    font-size: 16px;
    font-weight: 600;
  }
  .wh-stock-focus .pw-component-structure .pw-component-scroll .pw-component-table td.pw-component-cell-cost {
    padding-left: 8px;
  }
  .wh-stock-focus .pw-component-structure .pw-component-issue > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
  .wh-stock-focus .pw-component-structure .pw-stock-lot-holds > summary {
    min-height: 44px;
  }
}

/* assets/stock-focus-materials.css */
.pw-stock-structure.pw-materials-view.pw-stock-focus-materials {
  width: 100%;
  min-width: 0;
  color: var(--stock-ink,#191c25);
  font: 14px/1.35 var(--ui-font,Arial,"Segoe UI",sans-serif);
}
.pw-stock-focus-materials :is(button, input, select) {
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  box-shadow: none;
  text-shadow: none;
}
.pw-stock-focus-materials :is(button, summary, input, select):focus-visible {
  outline: 2px solid #3264b9;
  outline-offset: 2px;
}
.pw-stock-focus-materials .stock-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.pw-stock-focus-materials .pw-materials-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 0 8px;
}
.pw-stock-focus-materials .pw-materials-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 350px;
  min-width: 100px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--stock-line,#d4d9e2);
  border-radius: 4px;
  background: #fff;
}
.pw-stock-focus-materials .pw-materials-search svg {
  flex: none;
  color: var(--stock-muted,#596170);
}
.pw-stock-focus-materials .pw-materials-search input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline-offset: 3px;
}
.pw-stock-focus-materials .pw-materials-known {
  display: flex;
  flex: none;
  gap: 6px;
}
.pw-stock-focus-materials .pw-materials-known button {
  min-height: 36px;
  padding: 5px 14px;
  border: 1px solid var(--stock-line,#d4d9e2);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.pw-stock-focus-materials .pw-materials-known button[aria-pressed=true] {
  background: var(--stock-yellow,#ffdc25);
  border-color: var(--stock-yellow,#ffdc25);
  font-weight: 700;
}
.pw-stock-focus-materials .pw-materials-unit-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}
.pw-stock-focus-materials .pw-materials-unit-select select {
  flex: 1;
  min-width: 80px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--stock-line,#d4d9e2);
  border-radius: 4px;
  background: #fff;
}
.pw-stock-focus-materials .pw-materials-counter {
  margin: 0 0 8px;
  color: var(--stock-muted,#596170);
  font-size: 12px;
}
.pw-stock-focus-materials .pw-materials-group {
  min-width: 0;
  margin: 0 0 10px;
  border: 1px solid var(--stock-line,#d4d9e2);
  border-radius: 4px;
  background: #fff;
}
.pw-stock-focus-materials .pw-materials-group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 7px 10px;
  background: var(--stock-soft,#f1f2f5);
  cursor: pointer;
}
.pw-stock-focus-materials .pw-materials-group > summary[data-custom-chevron=true] {
  list-style: none;
}
.pw-stock-focus-materials .pw-materials-group > summary[data-custom-chevron=true]::marker {
  content: "";
}
.pw-stock-focus-materials .pw-materials-group > summary[data-custom-chevron=true]::-webkit-details-marker {
  display: none;
}
.pw-stock-focus-materials .pw-materials-group > summary h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}
.pw-stock-focus-materials .pw-materials-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}
.pw-stock-focus-materials .pw-materials-group[open] > summary .pw-materials-chevron {
  transform: rotate(0);
}
.pw-stock-focus-materials .pw-materials-kit-icon {
  flex: none;
}
.pw-stock-focus-materials .pw-materials-group-count {
  flex: none;
  color: var(--stock-muted,#596170);
  font-size: 13px;
  font-weight: 400;
}
.pw-stock-focus-materials .pw-materials-table-wrap {
  min-width: 0;
  max-width: 100%;
}
.pw-stock-focus-materials .pw-materials-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
.pw-stock-focus-materials .pw-materials-col-name {
  width: 44%;
}
.pw-stock-focus-materials .pw-materials-col-quantity {
  width: 15%;
}
.pw-stock-focus-materials .pw-materials-col-unit {
  width: 8%;
}
.pw-stock-focus-materials .pw-materials-col-date {
  width: 18%;
}
.pw-stock-focus-materials .pw-materials-col-location {
  width: 15%;
}
.pw-stock-focus-materials .pw-materials-table :is(th, td) {
  height: 32px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--stock-line,#d4d9e2);
  vertical-align: middle;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-weight: 400;
  text-align: left;
}
.pw-stock-focus-materials .pw-materials-table thead th {
  height: 36px;
  background: var(--stock-soft,#f1f2f5);
  font-size: 13px;
  font-weight: 600;
}
.pw-stock-focus-materials .pw-materials-table tbody tr:nth-child(even) {
  background: #f7f8fa;
}
.pw-stock-focus-materials .pw-materials-table :is(th, td)[data-stock-field=quantity],
.pw-stock-focus-materials .pw-materials-table :is(th, td)[data-stock-field=unit] {
  text-align: center;
}
.pw-stock-focus-materials .pw-materials-item,
.pw-stock-focus-materials .pw-materials-quantity {
  min-height: 32px;
  margin: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.pw-stock-focus-materials .pw-materials-item {
  max-width: 100%;
  color: var(--stock-ink,#191c25);
  font-weight: 600;
}
.pw-stock-focus-materials .pw-materials-item:hover {
  text-decoration: underline;
}
.pw-stock-focus-materials .pw-materials-quantity {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pw-stock-focus-materials .pw-materials-quantity.unknown {
  color: var(--stock-muted,#596170);
  font-weight: 400;
}
.pw-stock-focus-materials .pw-materials-date {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 13px;
}
.pw-stock-focus-materials .pw-materials-date small {
  color: var(--stock-muted,#596170);
  font-size: 10px;
}
.pw-stock-focus-materials .pw-materials-date.needs-review {
  color: #8c5212;
}
.pw-stock-focus-materials .pw-power-kit {
  margin: 2px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.pw-stock-focus-materials .pw-power-kit > summary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0;
  color: var(--stock-muted,#596170);
  cursor: pointer;
}
.pw-stock-focus-materials .pw-power-kit :is(p, ul) {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.35;
}
.pw-stock-focus-materials .pw-power-kit ul {
  padding-left: 18px;
}
.pw-stock-focus-materials .pw-materials-kit-note,
.pw-stock-focus-materials .pw-materials-note {
  margin: 7px 10px;
  color: var(--stock-muted,#596170);
  font-size: 12px;
}
.pw-stock-focus-materials .pw-materials-note {
  margin: 10px 0;
}
.pw-stock-focus-materials .pw-materials-empty {
  padding: 24px 12px;
  border: 1px solid var(--stock-line,#d4d9e2);
  border-radius: 4px;
  text-align: center;
}
.pw-stock-focus-materials .pw-materials-empty h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.pw-stock-focus-materials .pw-materials-empty p {
  margin: 0 0 10px;
  color: var(--stock-muted,#596170);
}
.pw-stock-focus-materials .pw-materials-empty button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--stock-line,#d4d9e2);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
@media (min-width: 800px) {
  .pw-stock-focus-materials .pw-materials-table th[data-stock-field=name]:has(.pw-power-kit) > .pw-materials-item {
    display: inline-block;
    max-width: calc(100% - 158px);
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pw-stock-focus-materials .pw-materials-table .pw-power-kit {
    display: inline-block;
    max-width: 148px;
    margin: 0 0 0 8px;
    vertical-align: middle;
  }
  .pw-stock-focus-materials .pw-materials-table .pw-power-kit > summary {
    display: block;
    min-height: 28px;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pw-stock-focus-materials .pw-materials-table .pw-power-kit > summary svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
  }
  .pw-stock-focus-materials .pw-materials-table .pw-power-kit[open] {
    display: block;
    max-width: none;
    margin: 0;
  }
}
@media (max-width: 799px) {
  .pw-stock-focus-materials .pw-materials-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .pw-stock-focus-materials .pw-materials-search {
    grid-column: 1/-1;
    width: auto;
    min-width: 0;
    height: 44px;
  }
  .pw-stock-focus-materials .pw-materials-search input {
    min-height: 42px;
    font-size: 16px;
  }
  .pw-stock-focus-materials .pw-materials-known {
    gap: 4px;
    min-width: 0;
  }
  .pw-stock-focus-materials .pw-materials-known button {
    min-height: 44px;
    min-width: 44px;
    padding: 6px;
    font-size: 13px;
  }
  .pw-stock-focus-materials .pw-materials-known button:last-child {
    flex: 1;
    min-width: 0;
  }
  .pw-stock-focus-materials .pw-materials-unit-select {
    min-width: 0;
    gap: 5px;
    font-size: 12px;
  }
  .pw-stock-focus-materials .pw-materials-unit-select select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 14px;
  }
  .pw-stock-focus-materials .pw-materials-group > summary {
    min-height: 48px;
    padding: 8px;
    gap: 7px;
  }
  .pw-stock-focus-materials .pw-materials-group > summary h4 {
    font-size: 17px;
  }
  .pw-stock-focus-materials .pw-materials-group-count {
    font-size: 12px;
  }
  .pw-stock-focus-materials .pw-materials-kit-icon {
    width: 20px;
  }
  .pw-stock-focus-materials .pw-materials-table,
  .pw-stock-focus-materials .pw-materials-table tbody {
    display: block;
    width: 100%;
  }
  .pw-stock-focus-materials .pw-materials-table :is(colgroup, thead) {
    display: none;
  }
  .pw-stock-focus-materials .pw-materials-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name name" "quantity unit" "location location" "date date";
    gap: 2px 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--stock-line,#d4d9e2);
  }
  .pw-stock-focus-materials .pw-materials-table tbody tr:last-child {
    border-bottom: 0;
  }
  .pw-stock-focus-materials .pw-materials-table :is(th, td) {
    display: block;
    height: auto;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
  }
  .pw-stock-focus-materials .pw-materials-table [data-stock-field=name] {
    grid-area: name;
  }
  .pw-stock-focus-materials .pw-materials-table [data-stock-field=quantity] {
    grid-area: quantity;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }
  .pw-stock-focus-materials .pw-materials-table [data-stock-field=quantity]::before {
    content: attr(data-label);
    color: var(--stock-muted,#596170);
    font-size: 12px;
  }
  .pw-stock-focus-materials .pw-materials-table [data-stock-field=unit] {
    grid-area: unit;
    align-self: center;
    color: var(--stock-muted,#596170);
  }
  .pw-stock-focus-materials .pw-materials-table [data-stock-field=location] {
    grid-area: location;
  }
  .pw-stock-focus-materials .pw-materials-table [data-stock-field=location]::before {
    content: attr(data-label) ": ";
    color: var(--stock-muted,#596170);
    font-size: 12px;
  }
  .pw-stock-focus-materials .pw-materials-table [data-stock-field=date] {
    grid-area: date;
  }
  .pw-stock-structure.pw-materials-view.pw-stock-focus-materials .pw-materials-table th[data-stock-field=name] {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pw-stock-structure.pw-materials-view.pw-stock-focus-materials .pw-materials-table button.pw-materials-item,
  #workspace-content .wh-stock-focus .pw-materials-view.pw-stock-focus-materials .pw-materials-table button.pw-materials-item {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    max-height: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: left;
    font-size: 16px;
    line-height: 1.25;
  }
  .pw-stock-focus-materials .pw-materials-quantity {
    min-height: 44px;
    font-size: 19px;
  }
  .pw-stock-focus-materials .pw-materials-date {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
  }
  .pw-stock-focus-materials .pw-materials-date small {
    font-size: 12px;
  }
  .pw-stock-focus-materials .pw-power-kit > summary {
    min-height: 44px;
    font-size: 13px;
  }
  .pw-stock-focus-materials .pw-materials-empty button {
    min-height: 44px;
  }
}

/* assets/warehouse-article-links.css */
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-identity-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-identity-line .pw-finished-article {
  flex: 1;
  min-width: 0;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-identity-line[data-unlinked=true] .pw-finished-item-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--finished-muted,#596170);
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-bind {
  flex: none;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #c6ccd7;
  border-radius: 4px;
  color: #233855;
  background: #fff;
  font: 600 12px/1.3 Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-bind:hover {
  border-color: #9aa5b7;
  background: #fff8d4;
}
.pw-finished-bind:focus-visible,
.wh-article-link-editor :is(button, input):focus-visible {
  outline: 2px solid #191c25;
  outline-offset: 2px;
}
.wh-dialog:has(.wh-article-link-editor) {
  box-sizing: border-box;
  width: min(680px, calc(100vw - 40px));
  max-width: 680px;
  max-height: calc(100dvh - 40px);
  padding: 24px;
  border: 1px solid #d4d9e2;
  border-radius: 12px;
  background: #fff;
  color: #191c25;
  overflow: hidden;
}
.wh-dialog[open]:has(.wh-article-link-editor) {
  display: flex;
  flex-direction: column;
}
.wh-dialog:has(.wh-article-link-editor) > header {
  flex: none;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.wh-dialog:has(.wh-article-link-editor) > header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.wh-dialog:has(.wh-article-link-editor) > header > button {
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 6px;
}
.wh-dialog:has(.wh-article-link-editor) [data-interface-feedback] {
  flex: none;
  margin-top: 0;
  margin-bottom: 6px;
}
.wh-dialog:has(.wh-article-link-editor) > header > .ir-feedback-dialog-heading-control {
  flex: 0 0 auto;
  width: auto;
  align-self: center;
  margin: 0;
  padding: 0;
  clear: none;
}
.wh-dialog:has(.wh-article-link-editor) > header > .ir-feedback-dialog-heading-control button {
  min-height: 32px;
  margin: 0;
  padding: 6px 8px;
  white-space: nowrap;
  font-size: 12px;
}
.wh-article-link-editor {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  color: #191c25;
  font: 14px/1.4 Arial, sans-serif;
  overflow: hidden;
}
.wh-article-link-editor .wh-article-link-item {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d4d9e2;
  border-left: 4px solid #ffdc25;
  border-radius: 6px;
  background: #f4f5f8;
}
.wh-article-link-editor .wh-article-link-item-label {
  color: #596170;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}
.wh-article-link-editor .wh-article-link-item > strong {
  display: block;
  margin: 0;
  color: #191c25;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  min-width: 0;
  margin-top: 2px;
}
.wh-article-link-editor .wh-article-link-shape {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 2px 7px;
  box-sizing: border-box;
  border: 1px solid #d4d9e2;
  border-radius: 4px;
  color: #374151;
  background: #fff;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-hint {
  flex: none;
  margin: 0;
  color: #596170;
  font-size: 12px;
  line-height: 17px;
}
.wh-article-link-editor .wh-article-link-count {
  flex: none;
  margin: 0;
  color: #596170;
  font-size: 12px;
  line-height: 17px;
}
.wh-article-link-editor .wh-article-link-search {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #aeb7c5;
  border-radius: 5px;
  background: #fff;
}
.wh-article-link-editor .wh-article-link-search:focus-within {
  outline: 2px solid #191c25;
  outline-offset: 2px;
}
.wh-article-link-editor .wh-article-link-search svg {
  flex: none;
  color: #596170;
}
.wh-article-link-editor .wh-article-link-search input {
  flex: 1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #191c25;
  font: inherit;
  font-size: 16px;
  box-shadow: none;
}
.wh-article-link-editor .wh-article-link-search input:focus-visible {
  outline: none;
}
.wh-article-link-editor .stock-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wh-article-link-editor .wh-article-link-options {
  flex: 1 1 250px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 56px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border: 1px solid #d4d9e2;
  border-radius: 5px;
  background: #fff;
  overscroll-behavior: contain;
}
.wh-article-link-editor .wh-article-link-option {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 52px;
  gap: 11px;
  padding: 9px 12px;
  border-bottom: 1px solid #e3e6eb;
  cursor: pointer;
}
.wh-article-link-editor .wh-article-link-option:last-child {
  border-bottom: 0;
}
.wh-article-link-editor .wh-article-link-option:hover {
  background: #f4f5f8;
}
.wh-article-link-editor .wh-article-link-option[data-selected=true] {
  background: #fff6ce;
  box-shadow: inset 3px 0 #ffdc25;
}
.wh-article-link-editor .wh-article-link-option input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #7b6411;
}
.wh-article-link-editor .wh-article-link-option > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.wh-article-link-editor .wh-article-link-option strong {
  color: #191c25;
  font-size: 17px;
  font-weight: 650;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-option small {
  color: #596170;
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-selection {
  flex: none;
  min-width: 0;
  min-height: 18px;
  color: #596170;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-selection[data-selected=true] {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid #ead477;
  border-radius: 5px;
  color: #191c25;
  background: #fff8da;
}
.wh-article-link-editor .wh-article-link-selection[data-selected=true] > span {
  color: #596170;
  font-size: 12px;
  line-height: 16px;
}
.wh-article-link-editor .wh-article-link-selection strong {
  color: #191c25;
  font-size: 26px;
  font-weight: 700;
  line-height: 31px;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-actions {
  display: flex;
  flex: none;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #d4d9e2;
  background: #fff;
}
.wh-article-link-editor .wh-article-link-actions button,
.wh-article-link-editor .wh-article-link-error button {
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid #c6ccd7;
  border-radius: 5px;
  color: #191c25;
  background: #fff;
  font: 600 14px/20px Arial, sans-serif;
  cursor: pointer;
}
.wh-article-link-editor .wh-article-link-actions button:hover:not(:disabled) {
  border-color: #9aa5b7;
  background: #f4f5f8;
}
.wh-article-link-editor .wh-article-link-actions .wh-article-link-save {
  border-color: #ffdc25;
  background: #ffdc25;
}
.wh-article-link-editor .wh-article-link-actions .wh-article-link-save:hover:not(:disabled) {
  border-color: #e5bd00;
  background: #f5ce13;
}
.wh-article-link-editor .wh-article-link-actions button:disabled {
  opacity: .5;
  cursor: default;
}
.wh-article-link-editor .wh-article-link-error {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #e8b4ad;
  border-radius: 5px;
  color: #8b2d23;
  background: #fff4f1;
  font-size: 13px;
  line-height: 18px;
}
.wh-article-link-editor .wh-article-link-error > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.wh-article-link-editor .wh-article-link-error button {
  flex: none;
  min-height: 36px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 18px;
}
.wh-article-link-editor .wh-article-link-empty {
  margin: 0;
  padding: 12px;
  color: #596170;
  font-size: 13px;
  line-height: 19px;
  overflow-wrap: anywhere;
}
@media (max-width: 799px) {
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-identity-line {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-identity-line .pw-finished-article {
    flex: 1 1 100%;
  }
  .pw-finished-view.pw-finished-reference.pw-stock-structure .pw-finished-bind {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .wh-dialog:has(.wh-article-link-editor) {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 12px;
    border-radius: 12px;
  }
  .wh-dialog:has(.wh-article-link-editor) > header {
    gap: 8px;
    margin-bottom: 8px;
  }
  .wh-dialog:has(.wh-article-link-editor) > header h2 {
    font-size: 18px;
    line-height: 22px;
  }
  .wh-dialog:has(.wh-article-link-editor) > header > .ir-feedback-dialog-heading-control button {
    min-height: 44px;
    padding: 6px 7px;
  }
  .wh-article-link-editor {
    gap: 7px;
  }
  .wh-article-link-editor .wh-article-link-item {
    gap: 3px;
    padding: 9px 10px;
  }
  .wh-article-link-editor .wh-article-link-item > strong {
    font-size: 30px;
    line-height: 35px;
  }
  .wh-article-link-editor .wh-article-link-meta {
    gap: 4px 5px;
    margin-top: 1px;
  }
  .wh-article-link-editor .wh-article-link-shape {
    font-size: 13px;
    line-height: 19px;
  }
  .wh-article-link-editor .wh-article-link-chip {
    min-height: 23px;
    padding: 2px 5px;
    font-size: 12px;
    line-height: 17px;
  }
  .wh-article-link-editor .wh-article-link-hint {
    display: none;
  }
  .wh-article-link-editor .wh-article-link-search {
    padding: 0 10px;
  }
  .wh-article-link-editor .wh-article-link-options {
    flex-basis: 180px;
    min-height: 48px;
    max-height: 250px;
  }
  .wh-article-link-editor .wh-article-link-option {
    min-height: 48px;
    padding: 8px 10px;
    gap: 9px;
  }
  .wh-article-link-editor .wh-article-link-option strong {
    font-size: 16px;
    line-height: 21px;
  }
  .wh-article-link-editor .wh-article-link-option small {
    font-size: 11px;
    line-height: 15px;
  }
  .wh-article-link-editor .wh-article-link-selection[data-selected=true] {
    gap: 1px;
    padding: 7px 9px;
  }
  .wh-article-link-editor .wh-article-link-selection strong {
    font-size: 24px;
    line-height: 28px;
  }
  .wh-article-link-editor .wh-article-link-actions {
    padding-top: 8px;
  }
  .wh-article-link-editor .wh-article-link-actions button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    font-size: 14px;
    line-height: 20px;
  }
  .wh-article-link-editor .wh-article-link-error {
    padding: 6px 8px;
    font-size: 12px;
    line-height: 17px;
  }
  .wh-article-link-editor .wh-article-link-error button {
    min-height: 44px;
    padding: 5px 8px;
  }
}
@media (max-width: 799px) and (max-height: 700px) {
  .wh-dialog:has(.wh-article-link-editor) {
    max-height: calc(100dvh - 20px);
    padding: 10px 12px;
  }
  .wh-dialog:has(.wh-article-link-editor) > header {
    margin-bottom: 6px;
  }
  .wh-article-link-editor {
    gap: 6px;
  }
  .wh-article-link-editor .wh-article-link-item {
    gap: 2px;
    padding: 7px 9px;
  }
  .wh-article-link-editor .wh-article-link-item > strong {
    font-size: 28px;
    line-height: 32px;
  }
  .wh-article-link-editor .wh-article-link-chip {
    min-height: 21px;
    padding: 1px 5px;
  }
  .wh-article-link-editor .wh-article-link-selection[data-selected=true] {
    padding: 6px 9px;
  }
  .wh-article-link-editor .wh-article-link-selection strong {
    font-size: 22px;
    line-height: 26px;
  }
  .wh-article-link-editor .wh-article-link-options {
    min-height: 44px;
  }
}

/* assets/knowledge-vivid.css */
.pk-knowledge:has(.pk-vivid-detail) {
  --pk-vivid-ink: #191c25;
  --pk-vivid-muted: #596170;
  --pk-vivid-line: #d9dee6;
  --pk-vivid-soft: #eff1f5;
  --pk-vivid-yellow: #ffdc25;
  --pk-vivid-warning: #96500b;
  --pk-toolbar-inset: 6px;
  --pk-toolbar-gap: 6px;
  --pk-toolbar-control: var(--ui-control);
  --pk-toolbar-feedback: 104px;
  --pk-toolbar-second: calc(var(--pk-toolbar-inset) + var(--pk-toolbar-control) + var(--pk-toolbar-gap));
  --pk-toolbar-height: calc(var(--pk-toolbar-second) + var(--pk-toolbar-control) + 4px);
  position: relative;
  color: var(--pk-vivid-ink);
  background: #fff;
  min-width: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail {
  --pk-work-height: auto;
  min-width: 0;
  color: var(--pk-vivid-ink, #191c25);
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(h2, h3, h4, p, dl) {
  margin-top: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(button, input, select, textarea, a, summary) {
  max-width: 100%;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(input, select, textarea) {
  min-width: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ui-focus, #2666c8);
  outline-offset: 2px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header {
  display: grid;
  grid-template-columns: 96px minmax(220px, 1.1fr) minmax(230px, 1fr);
  align-items: center;
  gap: 8px 18px;
  padding: 12px 0 14px;
  min-width: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 80px;
  margin: 0;
  padding: 5px;
  border-radius: 10px;
  background: #fff1c1;
  overflow: hidden;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-article {
  margin: 0;
  color: var(--pk-vivid-ink);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-heading {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-heading h2 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-heading > :is(span, p, small) {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header > :not(.pk-vivid-product-thumb) {
  min-width: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  color: var(--pk-vivid-muted);
  font-size: 14px;
  line-height: 1.4;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary > .ui-badge {
  flex-basis: auto;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary-details {
  margin: 0 0 5px;
  color: var(--pk-vivid-muted);
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary-details > summary {
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 7px;
  cursor: pointer;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary-details[open] {
  padding-bottom: 6px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary-details .pk-compact-overview {
  padding: 8px 10px;
  background: #f6f7f9;
  border: 1px solid var(--pk-vivid-line);
  border-radius: 5px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary :is(p, small) {
  margin: 0;
  font-size: inherit;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header .ui-badge {
  min-width: 0;
  white-space: normal;
  border-radius: 5px;
  padding: 5px 9px;
  line-height: 1.3;
  font-size: 14px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header .ui-badge[data-tone=warning] {
  background: #ffebc4;
  color: var(--pk-vivid-warning);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons {
  display: flex;
  align-items: start;
  min-height: 42px;
  padding: 0 0 8px;
  gap: 6px;
  border-bottom: 1px solid var(--ui-line);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
  width: auto;
  min-width: 0;
  overflow: visible;
  gap: 6px;
  padding: 0;
  border: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons nav button {
  width: 100%;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 6px 4px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons > .ui-button {
  align-self: center;
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-workspace {
  display: grid;
  grid-template-columns: minmax(238px, 28%) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  height: auto;
  min-height: 360px;
  padding-top: 14px;
  min-width: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree {
  min-width: 0;
  border: 1px solid var(--pk-vivid-line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree > header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 38px;
  height: auto;
  padding: 7px 10px;
  background: var(--pk-vivid-soft);
  border: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree > header small {
  width: 100%;
  font-size: 11px;
  font-weight: 400;
  color: var(--pk-vivid-muted);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-tree-body {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 4px 8px 6px;
  scrollbar-gutter: auto;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-tree-body > section + section {
  border-top: 1px solid #e9ecf1;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(.pk-compact-tree-group, .pk-vivid-tree-row) {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 40px;
  padding: 5px 4px;
  gap: 7px;
  border: 0;
  border-radius: 0;
  color: var(--pk-vivid-ink);
  background: transparent;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-tree-group > span:not(.pk-vivid-group-icon),
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree-row > span:not(.pk-vivid-group-icon) {
  flex: 1;
  min-width: 0;
  white-space: normal;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree-row small {
  flex: 0 1 auto;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
  text-align: right;
  color: var(--pk-vivid-ink);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-tree-group > svg {
  width: 15px;
  height: 15px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-tree-children {
  margin-left: 20px;
  border: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-leaf.is-selected {
  background: #fff4cd;
  box-shadow: inset 4px 0 0 var(--pk-vivid-yellow);
  border-radius: 4px 0 0 4px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-tree-row:hover {
  background: #f6f7f9;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-leaf.is-selected:hover {
  background: #ffefb7;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-tree .pk-compact-tree-group + .pk-compact-tree-children {
  margin-left: 0;
  padding-left: 8px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-material-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 36px;
  padding: 8px 8px 7px;
  gap: 4px 8px;
  font-size: 13px;
  border-bottom: 1px solid #edf0f3;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-material-main {
  display: contents;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-material-name {
  grid-area: 1 / 2;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-material-cuts {
  grid-area: 2 / 2 / 3 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  color: #364860;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-material-cut {
  flex: 0 0 auto;
  max-width: 100%;
  border: 1px solid #dfe6ee;
  border-radius: 4px;
  background: #f4f7fa;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-material-row .pk-material-quantity {
  grid-area: 1 / 3;
  max-width: 100%;
  white-space: normal;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-material-purpose {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 6px 0 10px;
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-material-purpose select {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 760px) {
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-material-row,
  .pk-knowledge:has(.pk-vivid-detail) .pk-material-purpose select {
    min-height: 44px;
  }
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-group-icon {
  --pk-group-color: #46535f;
  --pk-group-bg: #e9edf0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  margin: 0;
  border-radius: 6px;
  color: var(--pk-group-color);
  background: var(--pk-group-bg);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-group-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-icon:is([data-kind=frame], [data-kind=frames]) {
  --pk-group-color: #176d9a;
  --pk-group-bg: #dff0ff;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-icon:is([data-kind=electrics], [data-kind=electrical], [data-kind=electric]) {
  --pk-group-color: #b85b00;
  --pk-group-bg: #ffedb9;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-icon[data-kind=electronics] {
  --pk-group-color: #b85b00;
  --pk-group-bg: #ffedb9;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-icon:is([data-kind=kit], [data-kind=insert], [data-kind=insert-kit]) {
  --pk-group-color: #0c756d;
  --pk-group-bg: #d3f3ef;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-icon:is([data-kind=box], [data-kind=packaging], [data-kind=packing]) {
  --pk-group-color: #a25c28;
  --pk-group-bg: #ffe4d2;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-icon:is([data-kind=decorative], [data-kind=decorative-frame], [data-kind=decor]) {
  --pk-group-color: #73529b;
  --pk-group-bg: #ebe3f9;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-icon:is([data-kind=assembly], [data-kind=general]) {
  --pk-group-color: #495971;
  --pk-group-bg: #e5ecf5;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-tree [data-kind=frame] > .pk-vivid-group-icon {
  --pk-group-color: #176d9a;
  --pk-group-bg: #dff0ff;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-tree [data-kind=electronics] > .pk-vivid-group-icon {
  --pk-group-color: #b85b00;
  --pk-group-bg: #ffedb9;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-tree [data-kind=insert-kit] > .pk-vivid-group-icon {
  --pk-group-color: #0c756d;
  --pk-group-bg: #d3f3ef;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-tree [data-kind=box] > .pk-vivid-group-icon {
  --pk-group-color: #a25c28;
  --pk-group-bg: #ffe4d2;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-tree [data-kind=decorative-frame] > .pk-vivid-group-icon {
  --pk-group-color: #73529b;
  --pk-group-bg: #ebe3f9;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-tree [data-kind=assembly] > .pk-vivid-group-icon {
  --pk-group-color: #495971;
  --pk-group-bg: #e5ecf5;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: 0;
  border: 1px solid var(--pk-vivid-line);
  border-radius: 7px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > header {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  margin: 0;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--pk-vivid-soft);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > header h3 {
  flex: 1;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > :not(header) {
  margin-inline: 12px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-hero {
  display: grid;
  grid-template-columns: minmax(100px, .85fr) minmax(140px, 1fr) minmax(180px, 1.5fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-block: 14px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-material-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 110px;
  width: 100%;
  object-fit: contain;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-material-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-hero:not(:has(.pk-vivid-material-visual)) {
  grid-template-columns: minmax(140px, .9fr) minmax(180px, 1.5fr);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-material-hero:not(:has(.pk-vivid-material-visual)) > .pk-vivid-quantity {
  padding-left: 0;
  border-left: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity {
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid var(--pk-vivid-line);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity > :is(span, small) {
  display: block;
  margin: 0 0 6px;
  color: var(--pk-vivid-muted);
  font-size: 14px;
  line-height: 1.3;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity strong {
  display: inline-block;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 7px;
  background: #ffe477;
  color: #11151d;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts {
  display: grid;
  min-width: 0;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid var(--pk-vivid-line);
  gap: 0;
  font-size: 14px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
  min-height: 34px;
  padding-block: 5px;
  border-bottom: 1px solid #e6e9ee;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts > div:last-child {
  border-bottom: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--pk-vivid-muted);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts dd {
  margin: 0;
  font-weight: 650;
  color: var(--pk-vivid-ink);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--pk-vivid-muted);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts > div > strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-unlinked,
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-fields {
  min-width: 0;
  margin-top: 6px;
  margin-bottom: 10px;
  gap: 8px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-unlinked {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-node-header .pk-vivid-unlinked {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  margin: 0;
  gap: 5px;
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: #ffebc4;
  color: var(--pk-vivid-warning);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-unlinked .pk-compact-field {
  flex: 1 1 220px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-field {
  gap: 4px;
  color: var(--pk-vivid-ink);
  font-size: 13px;
  line-height: 1.3;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-field :is(input, select),
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(input, select, textarea) {
  width: 100%;
  height: auto;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid #aeb7c6;
  border-radius: 5px;
  background: #fff;
  color: var(--pk-vivid-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail textarea {
  min-height: 60px;
  resize: vertical;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(input, select, textarea):disabled {
  opacity: 1;
  color: #677080;
  background: #f4f5f8;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .ui-button {
  min-height: 36px;
  height: auto;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  white-space: normal;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .ui-button--primary {
  background: var(--pk-vivid-yellow);
  border-color: var(--pk-vivid-yellow);
  color: #191c25;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .ui-button:disabled {
  opacity: 1;
  color: #768092;
  background: #eceef3;
  border-color: #e0e4eb;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-evidence {
  margin-top: 8px;
  border-top: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-evidence > summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 5px;
  color: var(--pk-vivid-ink);
  background: var(--pk-vivid-soft);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-works {
  padding: 8px 0 2px;
  gap: 8px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-works > section {
  border: 0;
  padding: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-works .pk-compact-fields {
  margin-block: 6px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-source-details {
  margin-block: 8px;
  font-size: 13px;
  color: var(--pk-vivid-muted);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-source-details > summary {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 6px;
  cursor: pointer;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-source-details[open] {
  padding-bottom: 6px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--pk-vivid-line);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal > summary {
  min-height: 34px;
  padding: 6px 10px;
  background: var(--pk-vivid-soft);
  border-radius: 5px;
  color: var(--pk-vivid-ink);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-reason {
  padding: 8px 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-footer {
  position: static;
  min-height: 42px;
  padding: 6px 0;
  gap: 8px 14px;
  background: #fff;
  border-top: 0;
  box-shadow: none;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-ownership {
  font-size: 12px;
  line-height: 1.35;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail > .pk-compact-extra {
  height: auto;
  min-height: 360px;
  padding: 14px 0;
  overflow: visible;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-back {
  display: none;
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-register-controls, .pk-vivid-group-context, .pk-vivid-article-context) {
  margin: 0;
  min-width: 0;
  border: 0;
  background: #fff;
  color: var(--pk-vivid-muted);
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-group-context, .pk-vivid-article-context) {
  position: static;
  padding: 0;
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-group-context, .pk-vivid-article-context):not([open]) {
  height: 0;
  min-height: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls {
  min-height: var(--pk-toolbar-height);
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-register-controls, .pk-vivid-group-context, .pk-vivid-article-context) > summary.ui-button {
  position: absolute;
  z-index: 2;
  justify-content: space-between;
  height: var(--pk-toolbar-control);
  min-height: var(--pk-toolbar-control);
  margin: 0;
  padding: 4px 10px;
  cursor: pointer;
  font-size: var(--ui-text-sm);
  line-height: 1.2;
  list-style: none;
  white-space: normal;
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-register-controls, .pk-vivid-group-context, .pk-vivid-article-context) > summary.ui-button::-webkit-details-marker {
  display: none;
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-register-controls, .pk-vivid-group-context, .pk-vivid-article-context) > summary.ui-button::after {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-right: 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-register-controls, .pk-vivid-group-context, .pk-vivid-article-context)[open] > summary.ui-button::after {
  transform: translateY(2px) rotate(225deg);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls > summary.ui-button {
  top: var(--pk-toolbar-inset);
  left: var(--pk-toolbar-inset);
  right: calc(var(--pk-toolbar-feedback) + var(--pk-toolbar-inset) + var(--pk-toolbar-gap));
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-group-context, .pk-vivid-article-context) > summary.ui-button {
  top: var(--pk-toolbar-second);
  width: calc(50% - var(--pk-toolbar-inset) - var(--pk-toolbar-gap) / 2);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-context > summary.ui-button {
  left: var(--pk-toolbar-inset);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-article-context > summary.ui-button {
  right: var(--pk-toolbar-inset);
}
.pk-knowledge:has(.pk-vivid-detail) > .ir-feedback-control {
  position: absolute;
  top: var(--pk-toolbar-inset);
  right: var(--pk-toolbar-inset);
  z-index: 3;
  width: var(--pk-toolbar-feedback);
  height: var(--pk-toolbar-control);
  margin: 0;
  padding: 0;
}
.pk-knowledge:has(.pk-vivid-detail) > .ir-feedback-control button {
  width: 100%;
  height: var(--pk-toolbar-control);
  min-height: var(--pk-toolbar-control);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls[open] {
  padding-top: var(--pk-toolbar-height);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pk-vivid-line);
}
.pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-group-context, .pk-vivid-article-context)[open] {
  padding-block: 6px;
}
@media (min-width: 1101px) {
  .pk-knowledge:has(.pk-vivid-detail) {
    --pk-toolbar-height: calc(var(--pk-toolbar-inset) + var(--pk-toolbar-control) + 4px);
  }
  .pk-knowledge:has(.pk-vivid-detail) :is(.pk-vivid-register-controls, .pk-vivid-group-context, .pk-vivid-article-context) > summary.ui-button {
    white-space: nowrap;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls > summary.ui-button {
    width: 258px;
    right: auto;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-context > summary.ui-button {
    top: var(--pk-toolbar-inset);
    left: 270px;
    width: 180px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-article-context > summary.ui-button {
    top: var(--pk-toolbar-inset);
    left: 456px;
    right: auto;
    width: 176px;
  }
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls .pk-heading {
  min-height: 36px;
  height: auto;
  flex-wrap: wrap;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls .pk-heading h1 {
  font-size: 21px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls .pk-filters {
  flex-wrap: wrap;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls .pk-filters > * {
  min-width: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-group-context > .pk-group-head {
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-groups {
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-article-row.is-selected {
  min-height: 30px;
  padding: 2px 0;
  background: #fff;
  border-bottom: 1px solid var(--pk-vivid-line);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-article-row.is-selected .pk-article-name {
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-article-row.is-selected .pk-question-links {
  min-width: 0;
  flex-wrap: wrap;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-list-footer {
  padding: 3px 0;
  min-height: 34px;
}
.pk-knowledge:has(.pk-vivid-detail) > .pk-workspace-footer {
  min-height: 32px;
  padding: 3px 0;
}
@media (min-width: 1101px) and (max-height: 780px) {
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header {
    grid-template-columns: 76px minmax(220px, 1.1fr) minmax(220px, 1fr);
    gap: 6px 14px;
    padding-block: 8px 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-product-thumb {
    width: 76px;
    height: 66px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-article {
    font-size: 28px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-heading h2 {
    font-size: 28px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-workspace {
    min-height: 340px;
    padding-top: 10px;
    gap: 12px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > header {
    min-height: 36px;
    padding-block: 6px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > header h3 {
    font-size: 19px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-hero {
    min-height: 110px;
    padding-block: 10px;
    gap: 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-material-visual {
    height: 88px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity strong {
    font-size: 34px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(.pk-compact-tree-group, .pk-vivid-tree-row) {
    min-height: 36px;
    padding-block: 4px;
    font-size: 14px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-group-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-product-thumb {
    width: 76px;
    height: 70px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary {
    grid-column: 2;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-workspace {
    grid-template-columns: minmax(218px, 29%) minmax(0, 1fr);
    gap: 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-hero {
    grid-template-columns: minmax(95px, .8fr) minmax(125px, 1fr);
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px 0 0;
    border-left: 0;
    border-top: 1px solid var(--pk-vivid-line);
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts > div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    border: 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .pk-knowledge:has(.pk-vivid-detail) {
    padding-inline: 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail {
    font-size: 15px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 10px 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-product-thumb {
    width: 62px;
    height: 62px;
    padding: 3px;
    border-radius: 7px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-article {
    font-size: 23px;
    line-height: 1.15;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-heading h2 {
    font-size: 23px;
    line-height: 1.15;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-heading > :is(span, p, small) {
    font-size: 12px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary {
    gap: 4px 8px;
    font-size: 13px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary {
    grid-column: 1 / -1;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary-details > summary {
    min-height: 44px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header .ui-badge {
    font-size: 12px;
    padding: 4px 6px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding-top: 8px;
    gap: 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree {
    border-radius: 5px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree > header {
    min-height: 40px;
    font-size: 18px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-tree-body {
    max-height: none;
    overflow: visible;
    padding: 3px 8px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(.pk-compact-tree-group, .pk-vivid-tree-row) {
    min-height: 44px;
    font-size: 15px;
    padding-block: 6px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-tree-row small {
    max-width: 38%;
    font-size: 13px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin: 0;
    padding: 6px 0;
    color: var(--ui-link, #1456d9);
    background: none;
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail [data-mobile-view=detail] > .pk-vivid-tree,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-workspace[data-view=detail] > .pk-vivid-tree {
    display: none;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail [data-mobile-view=tree] > .pk-compact-node,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-workspace[data-view=tree] > .pk-compact-node {
    display: none;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node {
    overflow: visible;
    padding: 0;
    border-radius: 5px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > header {
    padding: 9px 10px;
    min-height: 44px;
    gap: 5px 8px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > header h3 {
    flex-basis: 100%;
    font-size: 19px;
    line-height: 1.3;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > :not(header) {
    margin-inline: 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-hero {
    grid-template-columns: minmax(95px, .8fr) minmax(135px, 1fr);
    gap: 8px;
    padding-block: 12px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-hero:not(:has(.pk-vivid-material-visual)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-material-visual {
    height: 95px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity {
    padding-inline: 10px 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity > :is(span, small) {
    margin-bottom: 5px;
    font-size: 13px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity strong {
    padding: 5px 8px;
    font-size: 32px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts {
    grid-column: 1 / -1;
    padding: 6px 0 0;
    border-left: 0;
    border-top: 1px solid var(--pk-vivid-line);
    font-size: 14px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts > div {
    min-height: 37px;
    gap: 4px 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-facts dd {
    margin-left: auto;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-unlinked {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-node-header .pk-vivid-unlinked {
    flex-direction: row;
    align-items: center;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-unlinked .pk-compact-field {
    flex: 0 1 auto;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-fields,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-glue-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail :is(input, select, textarea),
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-field :is(input, select),
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .ui-button {
    min-height: 44px;
    height: auto;
    padding: 8px 10px;
    font-size: 16px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-evidence > summary,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal > summary,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-source-details > summary,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-secondary button {
    min-height: 44px;
    font-size: 14px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node-reason {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 8px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-footer .ui-button {
    min-height: 44px;
    height: auto;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-ownership {
    font-size: 13px;
    line-height: 1.4;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail > .pk-compact-extra {
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 12px 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-storage-row > .pk-compact-field {
    min-width: 0;
    width: 100%;
    padding: 6px 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-glue-cost {
    grid-column: auto;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls .pk-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-register-controls .pk-filters :is(input, select, button, .pk-provider) {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    height: auto;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-article-row.is-selected {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 3px 6px;
    min-height: 44px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-article-row.is-selected .pk-question-links {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-list-footer,
  .pk-knowledge:has(.pk-vivid-detail) > .pk-workspace-footer {
    flex-wrap: wrap;
    min-height: 44px;
  }
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-source-line {
  display: block;
  margin-block: 4px;
  padding: 0;
  background: transparent;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-source-line > summary {
  min-height: 28px;
  padding: 3px 0;
  font-size: 12px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-source-line > :not(summary) {
  display: block;
  margin-block: 4px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-secondary-cost {
  margin-block: 3px;
  color: var(--pk-vivid-muted);
  font-size: 12px;
  line-height: 1.3;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-facts > .pk-compact-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px 0;
  margin: 0;
  gap: 3px 6px;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-facts .pk-compact-location > span {
  flex: 1;
  font-size: 12px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-facts .pk-compact-location > strong {
  max-width: 100%;
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-binding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-width: 0;
  gap: 8px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-fields {
  grid-template-columns: minmax(0, 1fr);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail[data-can-edit=false] .pk-vivid-material-fields > .pk-compact-field {
  display: none;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail[data-can-edit=true] .pk-vivid-material-fields {
  grid-template-columns: minmax(0, 1fr) minmax(80px, .45fr) minmax(80px, .45fr);
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail[data-can-edit=true] .pk-vivid-material-binding {
  grid-column: 1 / -1;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-secondary {
  display: block;
  margin-top: 3px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-secondary > summary {
  display: flex;
  align-items: center;
  min-height: 28px;
  gap: 5px;
  color: var(--ui-link, #1456d9);
  cursor: pointer;
  font-size: 12px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-proposal > header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  background: var(--pk-vivid-soft);
  border-radius: 4px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-proposal > header strong {
  font-size: 15px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-proposal > header span {
  color: var(--pk-vivid-muted);
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal > .pk-compact-node-reason {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin: 0;
  font-size: 12px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal-footer {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: end;
  padding: 0;
  gap: 3px;
  margin: 0;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-proposal-footer > .pk-compact-ownership {
  font-size: 11px;
  line-height: 1.2;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-proposal-footer > .ui-button {
  min-height: 36px;
  height: auto;
  font-size: 13px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-proposal-note {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--pk-vivid-muted);
}
@media (min-width: 761px) {
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-header {
    grid-template-columns: 76px minmax(220px, 1.1fr) minmax(220px, 1fr);
    min-height: 92px;
    gap: 5px 14px;
    padding-block: 6px 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-product-thumb {
    width: 76px;
    height: 66px;
    object-fit: contain;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary {
    gap: 2px 10px;
    font-size: 13px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary-details {
    margin: 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-summary-details > summary {
    min-height: 24px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-workspace {
    min-height: 0;
    height: auto;
    padding-top: 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-hero {
    min-height: 92px;
    padding-block: 8px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-material-visual {
    height: 80px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-quantity strong {
    font-size: 34px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-evidence {
    margin-top: 5px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-evidence > summary {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 13px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-fields {
    margin-block: 4px 6px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > :not(header) {
    margin-inline: 10px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-compact-node > .pk-vivid-proposal {
    margin-top: 6px;
    margin-bottom: 4px;
  }
}
@media (max-width: 760px) {
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-material-binding {
    grid-template-columns: minmax(0, 1fr);
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail[data-can-edit=true] .pk-vivid-material-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal {
    grid-template-columns: minmax(0, 1fr);
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal > .pk-compact-node-reason,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-proposal-footer {
    grid-column: 1;
    grid-row: auto;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-proposal-footer > .ui-button {
    min-height: 44px;
    font-size: 15px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-source-line > summary,
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-secondary > summary {
    min-height: 44px;
    font-size: 13px;
  }
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail[data-can-edit=false] .pk-vivid-secondary-cost {
  display: none;
}
.pk-vivid-detail .pk-vivid-workspace[hidden] {
  display: none !important;
}
.pk-vivid-detail .pk-composition-home {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 14px;
  margin-top: 12px;
}
.pk-vivid-detail .pk-composition-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
}
.pk-vivid-detail .pk-composition-card h3 {
  margin: 0;
  color: #162233;
  font-size: 18px;
  line-height: 1.25;
}
.pk-vivid-detail .pk-composition-visual {
  background: var(--ui-surface);
}
.pk-vivid-detail .pk-composition-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: var(--ui-space-3);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.pk-vivid-detail .pk-composition-spec {
  min-width: 0;
  padding: var(--ui-space-2) var(--ui-space-3);
}
.pk-vivid-detail .pk-composition-spec + .pk-composition-spec {
  border-inline-start: 1px solid var(--ui-line);
}
.pk-vivid-detail .pk-composition-spec :is(h3, h4) {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ui-text);
  font-size: var(--ui-text-base);
  font-weight: 700;
}
.pk-vivid-detail .pk-composition-spec h4 svg {
  flex: none;
  color: #425f7a;
}
.pk-vivid-detail .pk-composition-spec :is(dl.pk-composition-spec-values, .pk-composition-spec-values > dl) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px var(--ui-space-2);
  margin: var(--ui-space-2) 0 0;
  font-size: var(--ui-text-sm);
  line-height: 1.3;
}
.pk-vivid-detail .pk-composition-spec-values > div:has(> dt) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px var(--ui-space-2);
  min-width: 0;
}
.pk-vivid-detail .pk-composition-spec-values > div:first-child {
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
}
.pk-vivid-detail .pk-composition-spec-values > div:first-child > dd {
  text-align: left;
  font-size: var(--ui-text-base);
}
.pk-vivid-detail .pk-composition-spec-values dt {
  color: var(--ui-muted);
}
.pk-vivid-detail .pk-composition-spec-values dd {
  min-width: 0;
  margin: 0;
  color: var(--ui-text);
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.pk-vivid-detail .pk-composition-spec .ui-badge {
  width: fit-content;
  margin-top: 3px;
}
.pk-vivid-detail .pk-composition-spec-note {
  display: inline-block;
  margin-inline-start: 8px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  font-weight: 400;
}
.pk-vivid-detail .pk-composition-spec > .pk-composition-spec-note {
  display: block;
  margin: 3px 0 0;
}
.pk-vivid-detail :is(.pk-composition-box-details, .pk-composition-parameter-details) {
  min-width: 0;
  margin-top: var(--ui-space-2);
  padding: 0 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.pk-vivid-detail :is(.pk-composition-box-details, .pk-composition-parameter-details, .pk-composition-accounting) > summary {
  min-height: 40px;
  padding-block: 6px;
  align-content: center;
  font-size: var(--ui-text-sm);
  font-weight: 600;
  color: var(--ui-text);
  cursor: pointer;
}
.pk-vivid-detail :is(.pk-composition-box-details, .pk-composition-parameter-details)[open] {
  padding-bottom: 8px;
}
.pk-vivid-detail :is(.pk-composition-box-details, .pk-composition-parameter-details)[open] > summary {
  margin-bottom: var(--ui-space-2);
  border-bottom: 1px solid var(--ui-line);
}
.pk-vivid-detail :is(.pk-composition-box-details, .pk-composition-parameter-details) > :not(summary) {
  min-width: 0;
  max-width: 100%;
}
.pk-vivid-detail .pk-composition-box-details .pk-packaging-table table {
  min-width: 0;
}
.pk-vivid-detail .pk-composition-drawing {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  overflow: hidden;
}
.pk-vivid-detail .pk-composition-drawing > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ui-line);
}
.pk-vivid-detail .pk-composition-drawing > header > span {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-vivid-detail .pk-composition-drawing > .pk-composition-empty {
  margin: 0;
  padding: 12px;
}
.pk-vivid-detail .pk-frame-drawing {
  margin: 0;
}
.pk-vivid-detail .pk-frame-drawing-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 395px;
  background:
    linear-gradient(
      to right,
      #e4ecf6 1px,
      transparent 1px) 0 0 / 16px 16px,
    linear-gradient(
      to bottom,
      #e4ecf6 1px,
      transparent 1px) 0 0 / 16px 16px,
    #f6f9fd;
}
.pk-vivid-detail .pk-frame-drawing-caption,
.pk-vivid-detail .pk-composition-empty,
.pk-vivid-detail .pk-material-summary-empty {
  margin: 8px 0 0;
  color: #4c5b6c;
  font-size: 13px;
  line-height: 1.4;
}
.pk-vivid-detail .pk-frame-drawing-cuts {
  margin: 6px 0 0;
  padding-left: 20px;
}
.pk-vivid-detail .pk-frame-drawing-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 0;
  margin: 6px 0;
  list-style: none;
  color: #34465b;
  font-size: 12px;
  line-height: 1.4;
}
.pk-vivid-detail .pk-frame-drawing-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pk-vivid-detail .pk-frame-drawing-swatch {
  flex: none;
  width: 13px;
  height: 8px;
  border: 1px solid #6387a1;
  background: #eaf4fa;
}
.pk-vivid-detail .pk-frame-drawing-swatch[data-kind=frame] {
  border-color: #245777;
  background: #8ba9bc;
}
.pk-vivid-detail .pk-frame-drawing-swatch[data-kind=interior] {
  border-color: #397487;
  border-style: dashed;
  background: #c3d9e3;
}
.pk-vivid-detail .pk-frame-drawing-swatch[data-kind=led] {
  border: 0;
  border-top: 2px dashed #b17b08;
  height: 0;
  background: transparent;
}
.pk-vivid-detail .pk-frame-drawing-caption {
  margin: 0;
  padding: 5px 12px 9px;
  border-top: 1px solid var(--ui-line);
}
.pk-vivid-detail .pk-frame-drawing-caption p {
  margin: 4px 0;
}
.pk-vivid-detail .pk-frame-drawing-hardware {
  margin-top: 7px;
  padding-top: 4px;
  border-top: 1px solid #dce3ec;
}
.pk-vivid-detail .pk-composition-data-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pk-vivid-detail .pk-composition-detail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.pk-vivid-detail .pk-composition-detail-bar > .pkb-article-ownership {
  min-width: 0;
}
.pk-vivid-detail .pk-composition-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.pk-vivid-detail .pk-composition-metrics > div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #d8e3ef;
  border-radius: var(--ui-radius);
  background: #f3f7fc;
}
.pk-vivid-detail .pk-composition-metrics > [data-metric=cost] {
  background: #fff8e5;
  border-color: #eedcb1;
}
.pk-vivid-detail .pk-composition-metrics :is(dt, small) {
  display: block;
  color: #4a596d;
  font-size: 12px;
  line-height: 1.25;
}
.pk-vivid-detail .pk-composition-metrics dd {
  margin: 3px 0 0;
  color: #162233;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pk-vivid-detail .pk-composition-metrics [data-state=missing] dd {
  color: #4a596d;
  font-size: 15px;
}
.pk-vivid-detail .pk-composition-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: #edf1f6;
}
.pk-vivid-detail .pk-composition-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #26374b;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.pk-vivid-detail .pk-composition-switch button[aria-pressed=true] {
  background: #fff2be;
  color: #1f2630;
  box-shadow: inset 0 -2px 0 #e1ad22;
}
.pk-vivid-detail .pk-material-summary {
  list-style: none;
  padding: 0;
  margin: 7px 0 0;
}
.pk-vivid-detail .pk-material-summary-groups {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.pk-vivid-detail .pk-material-summary-group {
  --material-accent: #8a9aab;
  overflow: hidden;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #fff;
}
.pk-vivid-detail .pk-material-summary-group[data-kind=mirror] {
  --material-accent: #519293;
}
.pk-vivid-detail .pk-material-summary-group[data-kind=frame] {
  --material-accent: #4c779e;
}
.pk-vivid-detail .pk-material-summary-group[data-kind=electronics] {
  --material-accent: #bc8b25;
}
.pk-vivid-detail .pk-material-summary-group[data-kind=insert-kit] {
  --material-accent: #688c72;
}
.pk-vivid-detail .pk-material-summary-group[data-kind=box] {
  --material-accent: #8475a1;
}
.pk-vivid-detail .pk-material-summary-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border-left: 3px solid var(--material-accent);
  background: color-mix(in srgb, var(--material-accent) 11%, white);
  color: #233950;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.pk-vivid-detail .pk-material-summary-title svg {
  flex: none;
  color: #38536c;
}
.pk-vivid-detail .pk-material-summary-group .pk-material-summary {
  margin: 0 8px;
}
.pk-vivid-detail .pk-material-summary-item + .pk-material-summary-item {
  border-top: 1px solid #e7ecf2;
}
.pk-vivid-detail .pk-material-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 12px;
  width: 100%;
  padding: 7px 3px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #203044;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
}
.pk-vivid-detail button.pk-material-summary-row {
  position: relative;
  padding-inline-end: 16px;
  cursor: pointer;
}
.pk-vivid-detail button.pk-material-summary-row::after {
  content: "";
  position: absolute;
  inset: 13px 4px auto auto;
  width: 5px;
  height: 5px;
  border: solid #718297;
  border-width: 1px 1px 0 0;
  rotate: 45deg;
}
.pk-vivid-detail button.pk-material-summary-row:hover {
  background: #f1f5fa;
}
.pk-vivid-detail .pk-material-summary-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pk-vivid-detail .pk-material-summary-amount {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pk-vivid-detail .pk-material-summary-cuts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #4c5b6c;
  font-size: 12px;
}
.pk-vivid-detail .pk-material-summary-cut {
  padding: 1px 5px;
  border-radius: 4px;
  background: #edf2f7;
}
.pk-vivid-detail .pk-work-summary {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.35;
}
.pk-vivid-detail .pk-work-summary :is(th, td) {
  padding: 7px 8px;
  border-bottom: 1px solid var(--ui-line);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pk-vivid-detail .pk-work-summary thead th {
  background: var(--ui-subtle);
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
}
.pk-vivid-detail .pk-work-summary-name {
  text-align: left;
  font-weight: 500;
}
.pk-vivid-detail .pk-work-summary-amount {
  width: 26%;
}
.pk-vivid-detail .pk-work-summary-duration {
  width: 20%;
}
.pk-vivid-detail .pk-work-summary :is(.pk-work-summary-amount, .pk-work-summary-duration) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pk-vivid-detail .pk-work-summary tbody tr:nth-child(even) {
  background: #f7f9fc;
}
.pk-vivid-detail .pk-work-summary-duration[data-state=known] {
  font-weight: 700;
  color: #24496a;
}
.pk-vivid-detail .pk-work-summary-duration[data-state=partial] {
  font-weight: 650;
  color: #745619;
}
.pk-vivid-detail .pk-work-summary-duration[data-state=missing] {
  color: var(--ui-muted);
  font-size: 12px;
}
.pk-vivid-detail .pk-composition-accounting {
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.pk-vivid-detail .pk-composition-accounting[open] {
  padding-bottom: 10px;
}
.pk-vivid-detail .pk-composition-accounting > summary {
  cursor: pointer;
  font-weight: 650;
}
.pk-vivid-detail .pk-composition-calculation > summary {
  padding: 9px 0;
  cursor: pointer;
  font-weight: 650;
}
.pk-vivid-detail .pk-composition-accounting .pk-readiness-toolbar {
  flex-wrap: wrap;
}
.pk-vivid-detail .pk-compact-extra {
  margin-top: 12px;
  border-radius: 8px;
}
.pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-section {
  min-width: 0;
  min-height: 0;
  margin: var(--ui-space-3) 0 0;
  padding: 0 !important;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
}
.pk-vivid-detail .pk-card-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--ui-space-2);
  min-width: 0;
  margin: 0;
  padding: var(--ui-space-3) var(--ui-panel-padding);
  border-bottom: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg) var(--ui-radius-lg) 0 0;
  background: var(--ui-subtle);
  box-shadow: inset 3px 0 0 var(--ui-accent);
}
.pk-vivid-detail .pk-card-section-head > div {
  min-width: 0;
}
.pk-vivid-detail .pk-card-section-head > div:first-child {
  flex: 1 1 220px;
}
.pk-vivid-detail .pk-card-section-head :is(h2, h3) {
  margin: 0;
  color: var(--ui-text);
  font-size: var(--ui-section-heading);
  line-height: 1.25;
}
.pk-vivid-detail .pk-card-section-kicker {
  margin: 3px 0 0;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.35;
}
.pk-vivid-detail .pk-card-section-content {
  display: grid;
  gap: var(--ui-space-3);
  min-width: 0;
  padding: var(--ui-panel-padding);
  overflow-wrap: anywhere;
}
.pk-vivid-detail .pk-card-section-content > * {
  min-width: 0;
  max-width: 100%;
}
.pk-vivid-detail .pk-card-section-content > p {
  margin: 0;
}
.pk-vivid-detail .pk-card-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ui-space-2);
  min-width: 0;
}
.pk-vivid-detail .pk-card-section .pk-card-section-subhead {
  margin: 0;
  color: var(--ui-text);
  font-size: var(--ui-text-lg);
  line-height: 1.3;
}
.pk-vivid-detail .pk-card-section .pk-card-section-note {
  margin: 0;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.4;
}
.pk-vivid-detail .pk-card-section-sources .pk-card-section-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: var(--ui-space-2);
  margin: 0;
}
.pk-vivid-detail .pk-card-section-facts > div {
  min-width: 0;
  padding: var(--ui-space-3);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-subtle);
}
.pk-vivid-detail .pk-card-section-facts dt {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.pk-vivid-detail .pk-card-section-facts dd {
  margin: 4px 0 0;
  color: var(--ui-text);
  font-size: var(--ui-text-lg);
  font-weight: 700;
}
.pk-vivid-detail .pk-card-section-source-reference {
  display: grid;
  gap: 4px;
  padding: var(--ui-space-2) var(--ui-space-3);
  border: 1px solid var(--ui-line);
  border-inline-start: 3px solid var(--ui-accent);
  border-radius: var(--ui-radius);
  background: var(--ui-selected-soft);
}
.pk-vivid-detail .pk-card-section-source-reference code {
  color: var(--ui-muted);
  overflow-wrap: anywhere;
}
.pk-vivid-detail .pk-card-section-sources .pk-card-section-disclosure {
  margin: 0;
  padding: 0 var(--ui-space-3);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.pk-vivid-detail .pk-card-section-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ui-control);
  gap: var(--ui-space-2);
  padding-block: 6px;
  color: var(--ui-text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.pk-vivid-detail .pk-card-section-disclosure > summary::-webkit-details-marker {
  display: none;
}
.pk-vivid-detail .pk-card-section-disclosure > summary::after {
  content: "\25be";
  color: var(--ui-muted);
}
.pk-vivid-detail .pk-card-section-disclosure[open] > summary::after {
  content: "\25b4";
}
.pk-vivid-detail .pk-card-section-disclosure .pk-card-section-provenance {
  margin: 0;
  padding-block: var(--ui-space-2);
  border-top: 1px solid var(--ui-line);
}
.pk-vivid-detail .pk-card-section-listings .pk-card-section-market-base {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: start;
  gap: var(--ui-space-2) var(--ui-space-3);
  margin: 0;
  padding: var(--ui-space-3);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-subtle);
}
.pk-vivid-detail .pk-card-section-market-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.pk-vivid-detail .pk-card-section-market-counts .ui-badge {
  white-space: normal;
}
.pk-vivid-detail .pk-card-section-listings .ar-market-links {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--ui-space-2);
}
.pk-vivid-detail .pk-card-section-listings .pk-card-section-market-card {
  min-width: 0;
  padding: var(--ui-space-3);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.pk-vivid-detail .pk-card-section-market-card[data-link-state=pending] {
  border-inline-start: 3px solid var(--ui-accent);
}
.pk-vivid-detail .pk-card-section-market-card > .pk-card-section-market-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px var(--ui-space-2);
}
.pk-vivid-detail .pk-card-section-market-head > .ui-badge {
  min-width: 0;
  justify-self: start;
  white-space: normal;
}
.pk-vivid-detail .pk-card-section-market-head > .ui-badge:last-child {
  grid-area: 1 / 2;
  justify-self: end;
}
.pk-vivid-detail .pk-card-section-market-card > .pk-card-section-market-head > h3 {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--ui-text);
  font-size: var(--ui-text-lg);
}
.pk-vivid-detail .pk-card-section-market-card .ar-market-evidence > summary {
  min-height: var(--ui-control);
  color: var(--ui-text);
}
.pk-vivid-detail .pk-card-section-approval .ar-approval-roles {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--ui-space-2);
  margin: 0;
}
.pk-vivid-detail .pk-card-section-approval .pk-card-section-approval-role {
  min-width: 0;
  padding: var(--ui-space-3);
  border-inline-start: 3px solid var(--ui-line);
  background: var(--ui-subtle);
}
.pk-vivid-detail .pk-card-section-approval-role[data-decision=pending] {
  border-inline-start-color: var(--ui-accent);
}
.pk-vivid-detail .pk-card-section-approval-role[data-decision=approved] {
  border-inline-start-color: var(--ui-success);
}
.pk-vivid-detail .pk-card-section-approval-role[data-decision=rejected] {
  border-inline-start-color: var(--ui-danger);
}
.pk-vivid-detail .pk-card-section-approval-role > span {
  font-weight: 600;
}
.pk-vivid-detail .pk-card-section-approval-role[data-decision=approved] > strong {
  color: var(--ui-success);
}
.pk-vivid-detail .pk-card-section-approval-role[data-decision=rejected] > strong {
  color: var(--ui-danger);
}
.pk-vivid-detail .pk-card-section-approval[data-approval-state=approved] .pk-card-section-head > .ui-badge {
  color: var(--ui-success);
  background: var(--ui-success-bg);
}
.pk-vivid-detail .pk-card-section-approval .ar-approval-actions {
  margin: 0;
  padding-top: var(--ui-space-3);
  border-top: 1px solid var(--ui-line);
}
.pk-vivid-detail .pk-card-section-approval .ar-approval-actions:empty {
  display: none;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .pk-knowledge:has(.pk-vivid-detail) .pk-article-row.is-selected {
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) 36px;
  }
  .pk-vivid-detail .pk-work-summary :is(th, td) {
    padding-inline: 5px;
  }
  .pk-vivid-detail .pk-work-summary-duration {
    width: 26%;
  }
}
@media (max-width: 760px) {
  .pk-vivid-detail .pk-composition-home {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
  }
  .pk-vivid-detail .pk-composition-card {
    padding: 10px;
  }
  .pk-vivid-detail .pk-composition-spec {
    padding-inline: 7px;
  }
  .pk-vivid-detail .pk-composition-spec:first-child .pk-composition-spec-values > div:last-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
  }
  .pk-vivid-detail .pk-composition-spec:first-child .pk-composition-spec-values > div:last-child > dd {
    text-align: left;
  }
  .pk-vivid-detail .pk-frame-drawing-svg {
    max-height: 360px;
  }
  .pk-vivid-detail :is(.pk-composition-switch button, button.pk-material-summary-row) {
    min-height: 44px;
  }
  .pk-vivid-detail :is(.pk-composition-box-details, .pk-composition-parameter-details, .pk-composition-accounting) > summary {
    min-height: 44px;
  }
  .pk-vivid-detail .pk-work-summary :is(th, td) {
    padding-inline: 5px;
  }
}
@media (max-width: 760px) {
  .pk-knowledge:has(.pk-vivid-detail) {
    padding-top: 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-header {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 4px 10px;
    min-height: 0;
    padding: 6px 8px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-heading h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-summary {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
    font-size: 12px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-summary > p {
    display: none;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-summary-details {
    margin: 0;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-vivid-summary-details > summary {
    min-height: 44px;
    font-size: 12px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
    gap: 4px;
    height: auto;
    min-height: 0;
    padding: 0 4px 4px;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: auto;
    min-width: 0;
    flex: initial;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons nav button {
    min-height: 44px;
    height: auto;
    padding: 3px 2px;
    font-size: 13px;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons > button.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    gap: 0;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
  }
  .pk-knowledge:has(.pk-vivid-detail) .pk-vivid-detail .pk-card-tab-buttons > button svg {
    width: 18px;
    height: 18px;
    flex: none;
  }
}
.pk-knowledge--registry {
  --pk-registry-account-width: 145px;
  --pk-registry-total-width: 76px;
  --pk-registry-status-width: 128px;
  --pk-registry-chevron-width: 18px;
  --pk-registry-action-width: var(--ui-control);
  --pk-registry-gap: 8px;
}
.pk-knowledge--registry .pk-heading {
  position: relative;
  height: auto;
  min-height: 48px;
  gap: 8px 16px;
}
.pk-knowledge--registry .pk-heading nav {
  align-self: center;
  gap: 6px;
}
.pk-knowledge--registry .pk-heading nav > a,
.pk-knowledge--registry .pk-heading .pk-sources > summary {
  min-height: 36px;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  font-weight: 650;
  text-align: center;
}
.pk-knowledge--registry .pk-heading nav > a[aria-current=page] {
  border-color: var(--ui-accent);
  background: var(--ui-accent);
  color: #17202d;
}
.pk-knowledge--registry .pk-heading :is(nav > a, .pk-sources > summary):hover {
  border-color: #8b9ab0;
}
.pk-knowledge--registry .pk-heading .pk-sources {
  margin-left: auto;
}
.pk-knowledge.pk-knowledge--registry .pk-filters.pk-registry-filters {
  min-height: 0;
  gap: 6px;
  padding-block: 6px;
}
.pk-knowledge--registry .pk-registry-filters > * {
  min-width: 0;
}
.pk-knowledge.pk-knowledge--registry .pk-registry-filters :is(input, select, .pk-provider, .ui-button) {
  min-height: var(--ui-control);
  height: auto;
}
.pk-knowledge--registry .pk-scope-line [role=status] {
  font-weight: 700;
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
}
.pk-knowledge--registry .pk-scope-line {
  flex-wrap: wrap;
  gap: 4px 12px;
}
.pk-knowledge--registry .pk-registry-collapse-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: auto;
  min-height: 32px;
}
.pk-knowledge--registry .pk-registry-group-divider {
  margin: 0;
  padding: 8px 12px;
  border-block: 1px solid var(--ui-line);
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-size: var(--ui-text-base);
  font-weight: 700;
}
.pk-knowledge--registry .pk-registry-group-account {
  color: var(--ui-muted);
}
.pk-knowledge--registry .pk-article-name:has(.pk-registry-light, .pk-mz-status) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
}
.pk-knowledge--registry .pk-registry-light {
  padding: 1px 4px;
  border-radius: 4px;
  background: #edf2f6;
  color: #34465b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}
.pk-knowledge--registry .pk-registry-light[data-temperature="3000"] {
  background: #fff1c8;
  color: #694810;
}
.pk-knowledge--registry .pk-registry-light[data-temperature="6500"] {
  background: #e3effe;
  color: #1e4f7b;
}
.pk-mz-comparison {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-surface);
}
.pk-mz-comparison-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.pk-mz-comparison-heading h2 {
  margin: 0;
  font-size: 16px;
}
.pk-mz-comparison-heading > span {
  color: var(--ui-muted);
  font-size: 12px;
}
.pk-mz-comparison-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
  gap: 6px;
}
.pk-mz-comparison-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  background: var(--ui-surface);
  color: var(--ui-text);
  text-align: left;
  cursor: pointer;
}
.pk-mz-comparison-filter[aria-pressed=true] {
  background: #fff4cc;
  border-color: #ce930d;
}
.pk-mz-comparison-filter strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.pk-mz-comparison-filter span {
  font-size: 12px;
}
.pk-mz-status {
  border-radius: 4px;
  padding: 1px 4px;
  background: #edf2f6;
  color: #34465b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}
.pk-mz-status[data-status=linked] {
  background: #e2f5e9;
  color: #215939;
}
.pk-mz-status:is([data-status=exact], [data-status=conflict]) {
  background: #fff1c8;
  color: #694810;
}
.pk-knowledge--registry .pk-group-head[data-provider=catalog] .pk-registry-group-thumb {
  color: #1c5777;
  background: #e8f3f8;
}
.pk-knowledge--registry .pk-group-head[data-provider=review] .pk-registry-group-thumb {
  color: #745619;
  background: #fff5d8;
}
.pk-knowledge--registry .pk-registry-listing-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 5px 12px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-knowledge--registry .pk-registry-listing-titles {
  padding: 8px 12px;
  background: var(--ui-subtle);
}
.pk-knowledge--registry .pk-registry-listing-titles p {
  margin: 0 0 8px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-knowledge--registry .pk-registry-listing-titles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pk-knowledge--registry .pk-registry-listing-titles li {
  display: grid;
  grid-template-columns: minmax(120px, 185px) minmax(0, 1fr);
  gap: 4px 12px;
  padding: 6px 0;
  border-top: 1px solid var(--ui-line);
  overflow-wrap: anywhere;
}
.pk-knowledge--registry .pk-group-head:hover {
  background: #f2f6fb;
}
.pk-knowledge--registry .pk-group.is-open > .pk-group-head {
  background: #fff7d9;
}
.pk-knowledge--registry .pk-group-head :is(.pk-group-title, span) {
  min-width: 0;
}
.pk-knowledge.pk-knowledge--registry .pk-group-columns {
  grid-template-columns: minmax(0, 1fr) var(--pk-registry-account-width) var(--pk-registry-total-width) var(--pk-registry-status-width) calc(var(--pk-registry-chevron-width) + var(--pk-registry-action-width));
  gap: var(--pk-registry-gap);
  padding: 5px 8px;
  font-size: 13px;
  line-height: 1.25;
}
.pk-knowledge--registry .pk-registry-group-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pk-registry-action-width);
  align-items: center;
  min-width: 0;
  padding-inline-end: 8px;
  background: var(--ui-surface);
}
.pk-knowledge--registry .pk-group.is-open > .pk-registry-group-shell {
  background: var(--ui-selected-soft);
}
.pk-knowledge--registry .pk-registry-group-shell > .pk-group-head {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) var(--pk-registry-account-width) var(--pk-registry-total-width) var(--pk-registry-status-width) var(--pk-registry-chevron-width);
  align-items: center;
  gap: var(--pk-registry-gap);
  width: 100%;
  min-width: 0;
  min-height: var(--ui-control);
  padding: 2px 0 2px 8px;
  background: transparent;
  font-size: var(--ui-text-sm);
  line-height: 1.2;
}
.pk-knowledge--registry .pk-registry-group-shell > .pk-group-head:hover {
  background: var(--ui-subtle);
}
.pk-knowledge--registry .pk-registry-group-shell .pk-group-title strong {
  font-size: var(--ui-text-sm);
  line-height: 1.25;
}
.pk-knowledge--registry .pk-registry-group-shell .pk-group-title small {
  font-size: 11px;
  line-height: 1.2;
}
.pk-knowledge--registry .pk-registry-group-shell .pk-group-head > :nth-child(3) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-knowledge--registry .pk-registry-group-thumb {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.pk-knowledge--registry .pk-registry-group-shell .pk-registry-group-thumb :is(img, svg) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pk-knowledge--registry .pk-registry-group-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.pk-knowledge--registry .pk-registry-rename {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--pk-registry-action-width);
  min-height: var(--ui-control);
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--ui-muted);
}
.pk-knowledge--registry .pk-registry-rename:hover,
.pk-knowledge--registry .pk-registry-rename[aria-expanded=true] {
  border-color: var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-text);
}
.pk-knowledge--registry .pk-registry-rename svg {
  width: 16px;
  height: 16px;
}
.pk-knowledge--registry .pk-registry-rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-column: 1 / -1;
  align-items: end;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px;
  border-top: 1px solid var(--ui-line);
  background: var(--ui-subtle);
}
.pk-knowledge--registry .pk-registry-rename-form > * {
  min-width: 0;
}
.pk-knowledge--registry .pk-registry-rename-form > label {
  display: grid;
  gap: 4px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-knowledge--registry .pk-registry-rename-form :is(input, button) {
  min-height: var(--ui-control);
}
.pk-knowledge--registry .pk-registry-rename-form input {
  width: 100%;
}
.pk-knowledge--registry .pk-registry-rename-form > [role=alert] {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ui-danger);
}
.pk-knowledge--registry :is(.pk-registry-issue-count, .pk-registry-group-status.pk-question-state) {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.pk-knowledge--registry .pk-registry-mobile-label {
  display: none;
}
.pk-knowledge--registry .pk-article-name {
  width: fit-content;
  max-width: 100%;
  color: var(--ui-text);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pk-knowledge--registry .pk-question-links :is(a, .pk-registry-issues > summary) {
  min-height: 26px;
  padding: 2px 7px;
  border: 1px solid #e9dfc7;
  border-radius: 5px;
  background: #fffaf0;
  color: #65460f;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
.pk-knowledge--registry .pk-question-links a:hover {
  text-decoration: underline;
}
.pk-knowledge--registry .pk-registry-issues {
  min-width: 0;
}
.pk-knowledge--registry .pk-registry-issues > summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  border-color: var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-text);
  cursor: pointer;
}
.pk-knowledge--registry .pk-registry-issues > summary::-webkit-details-marker {
  display: none;
}
.pk-knowledge--registry .pk-registry-issues[open] {
  flex-basis: 100%;
}
.pk-knowledge--registry .pk-registry-issues > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 4px;
}
.pk-knowledge--registry .pk-registry-desktop-issues {
  display: contents;
}
.pk-knowledge--registry .pk-registry-mobile-issues {
  display: none;
}
.pk-knowledge.pk-knowledge--registry .pk-article-columns {
  padding-inline: 8px;
}
.pk-knowledge.pk-knowledge--registry .pk-article-row {
  min-height: var(--ui-control);
  padding: 2px 8px;
}
.pk-knowledge--registry .pk-article-row,
.pk-knowledge--registry .pk-group:not(.is-open) {
  content-visibility: auto;
  contain-intrinsic-block-size: auto var(--ui-control);
}
.pk-knowledge--registry :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid var(--ui-focus, #2666c8);
  outline-offset: 2px;
}
.pk-knowledge--registry .pk-registry-group-shell :is(.pk-group-head, .pk-registry-rename):focus-visible {
  outline-offset: -2px;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .pk-knowledge--registry {
    --pk-registry-account-width: 92px;
    --pk-registry-total-width: 58px;
    --pk-registry-status-width: 96px;
    --pk-registry-gap: 6px;
  }
}
@media (max-width: 760px) {
  .pk-knowledge--registry .pk-registry-collapse-all {
    min-height: 44px;
  }
  .pk-knowledge--registry .pk-registry-listing-titles li {
    grid-template-columns: minmax(0, 1fr);
  }
  .pk-knowledge--registry .pk-registry-light[data-temperature=unknown] {
    display: none;
  }
  .pk-knowledge--registry .pk-heading nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .pk-knowledge--registry .pk-heading nav > a,
  .pk-knowledge--registry .pk-heading .pk-sources > summary {
    min-height: 44px;
    padding-inline: 5px;
    line-height: 1.2;
  }
  .pk-knowledge.pk-knowledge--registry .pk-filters.pk-registry-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-knowledge.pk-knowledge--registry .pk-registry-filters > .pk-search {
    grid-column: 1 / -1;
  }
  .pk-knowledge.pk-knowledge--registry .pk-registry-filters > .pk-provider {
    display: none;
  }
  .pk-knowledge.pk-knowledge--registry .pk-filters.pk-registry-filters > :is(select, button) {
    grid-column: auto;
    width: 100%;
  }
  .pk-knowledge.pk-knowledge--registry .pk-group-columns {
    display: none;
  }
  .pk-knowledge--registry .pk-registry-group-shell {
    padding-inline-end: 4px;
  }
  .pk-knowledge--registry .pk-registry-group-shell > .pk-group-head {
    grid-template-columns: 30px minmax(0, 1fr) minmax(56px, 83px) 16px;
    gap: 2px 5px;
    padding: 4px 2px 4px 6px;
  }
  .pk-knowledge--registry .pk-registry-group-thumb {
    grid-area: 1 / 1 / 3 / 2;
    width: 30px;
    height: 30px;
  }
  .pk-knowledge--registry .pk-registry-group-shell .pk-group-head > .pk-group-title {
    display: block;
    grid-area: 1 / 2 / 2 / 3;
  }
  .pk-knowledge--registry .pk-registry-group-shell .pk-group-head > :nth-child(3) {
    display: block;
    grid-area: 2 / 2 / 3 / 3;
  }
  .pk-knowledge--registry .pk-registry-group-shell .pk-group-head > :nth-child(4) {
    display: block;
    grid-area: 1 / 3 / 2 / 4;
  }
  .pk-knowledge--registry .pk-registry-group-shell .pk-group-head > :nth-child(5) {
    display: block;
    grid-area: 2 / 3 / 3 / 4;
  }
  .pk-knowledge--registry .pk-registry-group-shell .pk-group-head > :last-child {
    grid-area: 1 / 4 / 3 / 5;
  }
  .pk-knowledge--registry .pk-registry-mobile-label {
    display: inline;
  }
  .pk-knowledge--registry .pk-registry-group-shell .pk-group-head > :nth-child(n+3):not(:last-child) {
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .pk-knowledge--registry .pk-registry-group-shell .pk-group-title strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pk-knowledge--registry .pk-registry-rename-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-knowledge--registry .pk-registry-rename-form > :is(label, input) {
    grid-column: 1 / -1;
  }
  .pk-knowledge.pk-knowledge--registry .pk-article-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .pk-knowledge--registry .pk-article-row :is(.pk-article-name, .pk-row-chevron) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .pk-knowledge--registry .pk-article-row .pk-row-chevron {
    justify-content: center;
    width: 44px;
  }
  .pk-knowledge--registry .pk-question-links {
    gap: 4px 6px;
  }
  .pk-knowledge--registry .pk-question-links :is(a, .pk-registry-issues > summary) {
    min-height: 44px;
  }
  .pk-knowledge.pk-knowledge--registry .pk-article-row {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 4px 8px;
  }
  .pk-knowledge.pk-knowledge--registry .pk-article-row > .pk-question-links {
    grid-area: 1 / 2 / 2 / 3;
    min-width: 0;
  }
  .pk-knowledge.pk-knowledge--registry .pk-article-row > .pk-row-chevron {
    grid-area: 1 / 3 / 2 / 4;
  }
  .pk-knowledge--registry .pk-registry-desktop-issues {
    display: none;
  }
  .pk-knowledge--registry .pk-registry-mobile-issues {
    display: block;
    min-width: 0;
  }
  .pk-knowledge--registry .pk-registry-mobile-issues > summary {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding-inline: 6px;
    color: #65460f;
    font-weight: 650;
    cursor: pointer;
  }
  .pk-knowledge--registry .pk-registry-mobile-issues > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  .pk-knowledge.pk-knowledge--registry .pk-article-row:has(.pk-registry-mobile-issues[open]) > .pk-question-links {
    grid-area: 2 / 1 / 3 / -1;
  }
}

/* assets/knowledge-configuration-matrix.css */
.pk-config {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px 0;
}
.pk-config :is(h2, h3, p) {
  margin: 0;
}
.pk-config h2 {
  font-size: 20px;
}
.pk-config h3 {
  font-size: 15px;
}
.pk-config-help {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-config-toolbar,
.pk-config-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pk-config-toolbar input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: var(--ui-control);
  padding: 6px 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font: inherit;
}
.pk-config-family,
.pk-config-review {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.pk-config-section {
  --pk-config-accent: #305573;
  --pk-config-tint: #edf3f8;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
}
.pk-config-section--frames {
  --pk-config-accent: #785919;
  --pk-config-tint: #faf3e1;
}
.pk-config-section--mdf {
  --pk-config-accent: #2e6554;
  --pk-config-tint: #e9f4ed;
}
.pk-config-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 11px;
  border-inline-start: 3px solid var(--pk-config-accent);
  border-radius: 5px;
  background: var(--pk-config-tint);
  color: var(--pk-config-accent);
}
.pk-config-section-heading p {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.pk-config-section-families {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.pk-config-section .pk-config-family-head[aria-expanded=true] {
  background: var(--pk-config-tint);
}
.pk-config-family-review {
  margin: 0 8px 8px;
  min-width: 0;
}
.pk-config-family-review-toggle {
  width: fit-content;
  margin: 6px 0;
}
.pk-config-family-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pk-config-family-review-count {
  color: var(--pk-config-accent);
  background: var(--pk-config-tint);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 650;
}
.pk-config-family-head,
.pk-config-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  text-align: left;
  font: inherit;
}
button.pk-config-family-head,
button.pk-config-group-head {
  cursor: pointer;
}
button.pk-config-family-head:hover,
button.pk-config-group-head:hover {
  background: var(--ui-subtle);
}
.pk-config-family-head {
  min-height: 36px;
  justify-content: flex-start;
}
.pk-config-family-head > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-config-family-head > .pk-config-family-count {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  margin-left: auto;
  text-align: right;
  flex: none;
}
.pk-config-family-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 24px;
  flex: none;
  color: var(--pk-config-accent, #304c65);
  background: var(--pk-config-tint, #edf3f8);
  border-radius: 5px;
}
.pk-config-family-icon svg {
  width: 24px;
  height: 20px;
}
.pk-config-family-icon[data-family=frame-black] {
  color: #212830;
  --pk-config-frame-color: #303b45;
}
.pk-config-family-icon[data-family=frame-white] {
  color: #596b7e;
  --pk-config-frame-color: #fff;
}
.pk-config-family-icon[data-family=frame-gray] {
  color: #56626d;
  --pk-config-frame-color: #929ba4;
}
.pk-config-family-icon[data-family=frame-gold] {
  color: #8a5e08;
  --pk-config-frame-color: #e0b85c;
}
.pk-config-family-icon[data-family=frame-silver] {
  color: #627289;
  --pk-config-frame-color: #b8c4d3;
}
.pk-config-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--ui-muted);
  line-height: 1;
  vertical-align: middle;
}
.pk-config-disclosure {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: var(--ui-surface);
  color: var(--pk-config-accent, #305573);
}
.pk-config-disclosure:not(.pk-config-disclosure-empty)::before,
.pk-config-disclosure:not(.pk-config-disclosure-empty)::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.pk-config-disclosure:not(.pk-config-disclosure-empty)::before {
  width: 8px;
  height: 2px;
}
.pk-config-disclosure:not(.pk-config-disclosure-empty)::after {
  width: 2px;
  height: 8px;
}
.pk-config [aria-expanded=true] > .pk-config-disclosure::after {
  display: none;
}
.pk-config-disclosure.pk-config-disclosure-empty {
  border-color: transparent;
  background: transparent;
}
.pk-config-family-groups {
  padding: 0 8px 6px;
}
.pk-config-group {
  border-top: 1px solid var(--ui-line);
}
.pk-knowledge .pk-config .pk-config-group-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(0, max-content);
  height: 44px;
  min-height: 44px;
  padding: 7px 10px;
  column-gap: 10px;
}
button.pk-config-group-head[aria-expanded=false] {
  background: var(--ui-subtle);
}
button.pk-config-group-head[aria-expanded=false]:hover {
  background: var(--ui-selected-soft);
}
.pk-config-group-head[aria-expanded=true] {
  background: var(--ui-selected-soft);
}
.pk-config-group-label {
  display: grid;
  grid-template-columns: minmax(0, max-content) 62px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pk-config-group-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-config-group-label small {
  white-space: nowrap;
}
.pk-config-group-label small,
.pk-config-review-rows small {
  color: var(--ui-muted);
}
.pk-config-lights {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88px, 1fr);
  gap: 4px;
  align-items: stretch;
}
.pk-config-lights:has(.pk-config-light:only-child) {
  grid-auto-columns: minmax(140px, 1fr);
}
.pk-config-light {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  column-gap: 3px;
  min-width: 0;
  min-height: 28px;
  padding: 3px 5px;
  border: 1px solid var(--ui-line);
  border-radius: 5px;
  background: var(--ui-subtle);
  font-size: 12px;
  line-height: 1.2;
}
.pk-config-light strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-config-light[data-empty=true] {
  color: var(--ui-muted);
  background: var(--ui-surface);
}
.pk-config-light small {
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pk-config-articles,
.pk-config-review-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pk-config-articles li,
.pk-config-review-rows li {
  display: grid;
  grid-template-columns: minmax(135px, 1.25fr) minmax(95px, 1fr) minmax(75px, .8fr) minmax(105px, 1fr);
  align-items: start;
  gap: 4px 8px;
  padding: 5px 9px;
  border-top: 1px solid var(--ui-line);
  overflow-wrap: anywhere;
}
.pk-config-articles a,
.pk-config-review-rows a {
  color: var(--ui-link);
  font-weight: 650;
}
.pk-config-review {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
}
.pk-config-review button[aria-pressed=true] {
  background: var(--ui-selected-soft);
}
.pk-config-review-rows li {
  grid-template-columns: minmax(155px, 1fr) minmax(125px, 1fr) minmax(200px, 2fr);
}
.pk-config-review-rows small {
  display: block;
}
.pk-config-review > .ui-button {
  justify-self: start;
}
.pk-config-return {
  align-self: flex-start;
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .pk-config-family-head {
    min-height: 44px;
  }
  .pk-knowledge .pk-config .pk-config-group-head {
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-rows: 20px 28px;
    grid-template-areas: "toggle label" "lights lights";
    row-gap: 4px;
    height: 66px;
    min-height: 66px;
  }
  .pk-config-group-head > .pk-config-disclosure {
    grid-area: toggle;
  }
  .pk-config-group-label {
    grid-area: label;
  }
  .pk-config-lights {
    grid-area: lights;
    grid-auto-columns: minmax(0, 1fr);
    justify-self: stretch;
  }
  .pk-config-lights:has(.pk-config-light:only-child) {
    grid-auto-columns: minmax(0, 1fr);
  }
  .pk-config-light {
    font-size: 11px;
  }
  .pk-config-articles li,
  .pk-config-review-rows li {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-config-review-rows li > :last-child {
    grid-column: 1 / -1;
  }
  .pk-config-articles li a,
  .pk-config-review-rows li a {
    display: inline-block;
    padding-block: 5px;
  }
}

/* assets/knowledge-material-registry.css */
.pkb-page.pk-materials-page {
  --material-columns: 36px minmax(0, 1fr) 55px 138px 90px 96px;
  --material-navy: #314e69;
  --material-blue: #edf3f8;
  --material-focus: #fff8dc;
}
.pk-materials-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pk-materials-title > svg {
  box-sizing: content-box;
  flex: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--ui-text);
  background: var(--ui-accent);
}
.pk-materials-page .ui-page-heading p {
  margin-top: 5px;
}
.pk-materials-page .pkb-metrics {
  grid-template-columns: repeat(2, minmax(0, 255px));
  gap: 8px;
}
.pk-materials-page .pkb-metrics > button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px;
}
.pk-materials-page .pkb-metrics svg {
  flex: none;
  color: var(--material-navy);
}
.pk-materials-page .pkb-metrics > button[aria-pressed=true] {
  border-color: #e2c445;
  background: var(--material-focus);
}
.pk-materials-page .pkb-metrics strong {
  font-variant-numeric: tabular-nums;
}
.pk-materials-page .pkb-source-line > span {
  overflow-wrap: anywhere;
}
.pk-materials-page .pkb-source-line summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline: 8px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--material-navy);
  list-style: none;
}
.pk-materials-page .pkb-source-line summary::-webkit-details-marker {
  display: none;
}
.pk-materials-page .pkb-source-line details[open] summary svg {
  transform: rotate(180deg);
}
.pk-materials-page .pk-materials-assignment[open] {
  flex-basis: 100%;
}
.pk-materials-page .pk-materials-assignment .pkb-assignment {
  margin-top: 5px;
  padding: 6px 8px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.pk-materials-page .pkb-register.ui-card {
  padding: 0;
}
.pk-materials-page .pkb-register > .ui-section-tabs {
  padding: 8px 10px;
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible;
  background: var(--ui-subtle);
}
.pk-materials-page .pkb-register > .ui-section-tabs > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font-weight: 650;
  white-space: normal;
  text-align: left;
}
.pk-materials-page .ui-section-tabs > button > svg {
  flex: none;
}
.pk-materials-page .pkb-register > .ui-section-tabs > button:hover {
  background: var(--material-focus);
  border-color: #e2c445;
}
.pk-materials-page .pkb-register > .ui-section-tabs > button[aria-pressed=true] {
  border-color: var(--ui-accent);
  background: var(--ui-accent);
}
.pk-materials-page .ui-section-tabs > button > span {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--material-blue);
  color: var(--material-navy);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pk-materials-page .pkb-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 218px) auto;
  gap: 8px;
  padding: 9px 10px;
}
.pk-materials-page .pkb-toolbar > .ui-field {
  min-width: 0;
}
.pk-materials-page .pkb-toolbar > .ui-field:only-child {
  grid-column: 1 / -1;
}
.pk-materials-search-control {
  position: relative;
  display: block;
  min-width: 0;
}
.pk-materials-search-control > svg {
  position: absolute;
  inset-inline-start: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ui-muted);
  pointer-events: none;
}
.pk-materials-page .pk-materials-search input {
  padding-inline-start: 33px;
}
.pk-materials-page .pkb-toolbar :is(input, select, .pk-materials-reset) {
  min-height: 36px;
}
.pk-materials-page .pkb-toolbar select {
  cursor: pointer;
}
.pk-materials-page .pk-materials-reset {
  align-self: end;
  white-space: nowrap;
}
.pk-material-registry-view {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-top: 1px solid var(--ui-line);
}
.pkb-page .pk-material-registry {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ui-surface);
}
.pk-material-registry-row + .pk-material-registry-row {
  border-top: 1px solid var(--ui-line);
}
.pk-material-registry-columns,
.pk-material-registry-head {
  display: grid;
  grid-template-columns: var(--material-columns);
  align-items: center;
  gap: 0 8px;
  padding-inline: 4px 10px;
  min-width: 0;
}
.pk-material-registry-columns {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 32px;
  border-bottom: 1px solid var(--ui-line);
  background: #ecf0f4;
  color: var(--material-navy);
  font-size: var(--ui-text-sm);
  font-weight: 700;
}
.pk-material-registry-head {
  min-height: 44px;
}
.pk-material-registry-row:nth-child(even) > .pk-material-registry-head {
  background: #f7f9fb;
}
.pk-material-registry-row > .pk-material-registry-head:has([aria-expanded=true]) {
  box-shadow: inset 3px 0 var(--ui-accent);
  background: var(--material-focus);
}
.pkb-page .pk-material-registry-toggle {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.pk-material-registry-disclosure {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1px solid #b8c8d7;
  border-radius: 5px;
  background: var(--ui-surface);
  color: var(--material-navy);
}
.pk-material-registry-toggle:hover .pk-material-registry-disclosure,
.pk-material-registry-toggle[aria-expanded=true] .pk-material-registry-disclosure {
  border-color: #c4a600;
  background: var(--ui-selected);
}
.pk-material-registry-disclosure::before,
.pk-material-registry-disclosure::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 1px;
  background: currentColor;
}
.pk-material-registry-disclosure::before {
  width: 9px;
  height: 2px;
}
.pk-material-registry-disclosure::after {
  width: 2px;
  height: 9px;
}
.pk-material-registry-toggle[aria-expanded=true] .pk-material-registry-disclosure::after {
  display: none;
}
.pk-material-registry-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pk-material-registry-name-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pk-material-registry-type-icon {
  box-sizing: content-box;
  width: 17px;
  height: 17px;
  flex: none;
  padding: 5px;
  border-radius: 6px;
  background: var(--material-blue);
  color: var(--material-navy);
}
.pk-material-registry-type-icon[data-kind=glass] {
  background: #e5f4f7;
  color: #216479;
}
.pk-material-registry-type-icon[data-kind=light] {
  background: #fff1ce;
  color: #835b13;
}
.pk-material-registry-type-icon[data-kind=fastener] {
  background: #eee9f7;
  color: #66518a;
}
.pk-material-registry-type-icon[data-kind=adhesive] {
  background: #e9f3eb;
  color: #32674b;
}
.pk-material-registry-type-icon[data-kind=packaging] {
  background: #f7ede2;
  color: #805939;
}
.pk-material-registry-unit,
.pk-material-registry-count,
.pk-material-registry-questions {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-material-registry-count {
  color: var(--ui-text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pk-material-registry-unconfirmed {
  display: block;
  color: var(--ui-warning);
  font-size: 11px;
  font-weight: 550;
}
.pk-material-registry-questions {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  border-radius: 5px;
  padding: 2px 5px;
  font-variant-numeric: tabular-nums;
}
.pk-material-registry-questions[data-has-questions=true] {
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}
.pk-material-registry-question-mark {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #ad7619;
}
.pkb-page .pk-material-registry-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 5px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--material-navy);
  font-size: var(--ui-text-sm);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.pkb-page .pk-material-registry-card-link:hover {
  border-color: #a8bdcd;
  background: var(--material-blue);
}
.pk-material-registry-passport-icon {
  width: 15px;
  height: 15px;
  flex: none;
}
.pk-material-registry-usage {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px 10px 12px 40px;
  border-top: 1px solid var(--ui-line);
  background: var(--ui-subtle);
}
.pk-material-registry-usage :is(h3, h4, p) {
  margin: 0;
}
.pk-material-registry-usage-title,
.pk-material-registry-usage-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
}
.pk-material-registry-usage-title {
  padding: 7px 9px;
  border-inline-start: 3px solid #8ba6bc;
  background: var(--material-blue);
  color: var(--material-navy);
}
.pk-material-registry-usage-title > span {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-material-registry-usage-group[data-status=unconfirmed] .pk-material-registry-usage-title {
  border-inline-start-color: #c28b2b;
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}
.pk-material-registry-usage-questions {
  padding: 7px 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.pk-material-registry-usage-questions ul {
  margin: 3px 0 0;
  padding-left: 18px;
}
.pk-material-registry-usage-group {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  overflow: hidden;
}
.pk-material-registry-usage-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ui-surface);
}
.pk-material-registry-usage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, .7fr) minmax(0, 1.2fr);
  gap: 4px 8px;
  align-items: start;
  padding: 6px 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pk-material-registry-usage-row + .pk-material-registry-usage-row {
  border-top: 1px solid var(--ui-line);
}
.pk-material-registry-usage-row:nth-child(even) {
  background: #f7f9fb;
}
.pk-material-registry-usage-row > :first-child {
  font-weight: 650;
}
.pk-material-registry-usage-row > :last-child {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-material-registry-usage-row small {
  display: block;
  color: var(--ui-muted);
}
.pk-material-registry-quantity {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--ui-selected);
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
}
.pk-material-registry-usage-group[data-status=unconfirmed] .pk-material-registry-quantity {
  background: transparent;
  color: var(--ui-warning);
  font-weight: 600;
}
.pkb-page.pk-material-passport > .pkb-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.pk-material-passport .pkb-top > .ui-page-heading {
  margin: 0;
}
.pk-material-passport .pkb-top > .ui-badge {
  justify-self: start;
  padding: 4px 8px;
  background: var(--ui-selected-soft);
  color: var(--ui-warning);
}
.pk-material-passport-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 185px));
  gap: 6px;
  margin: 0;
}
.pk-material-passport-facts > div {
  padding: 7px 9px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-subtle);
}
.pk-material-passport-facts dt {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.pk-material-passport-facts dd {
  margin: 1px 0 0;
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.pk-material-passport .pkb-claim {
  border-inline-start: 3px solid var(--ui-accent);
  background: var(--ui-selected-soft);
}
.pk-material-passport h2:has(.pk-material-passport-heading) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.pk-material-passport-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pk-material-passport-heading svg {
  box-sizing: content-box;
  flex: none;
  padding: 5px;
  border-radius: 5px;
  background: #edf3f8;
  color: #314e69;
}
.pkb-page.pk-material-passport .pkb-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.pk-material-passport .pkb-detail-grid > .pkb-source {
  min-width: 0;
  margin-top: 0;
}
.pk-material-passport-assignment {
  margin: 5px 0;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-material-passport-assignment summary {
  cursor: pointer;
}
.pk-material-passport-preview strong {
  color: var(--ui-text);
}
.pk-material-passport-steps {
  min-width: 0;
}
.pk-material-passport-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pk-material-passport-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.pk-material-passport-step:hover {
  border-color: #c5aa34;
  background: var(--ui-selected-soft);
}
.pk-material-passport-step[aria-current=step] {
  border-color: var(--ui-accent);
  background: var(--ui-accent);
}
.pk-material-passport-step-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 5px;
  background: #edf3f8;
  color: #314e69;
  font-variant-numeric: tabular-nums;
}
.pk-material-passport-step[aria-current=step] .pk-material-passport-step-number {
  background: var(--ui-surface);
  color: var(--ui-text);
}
.pk-material-passport-step-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pk-material-passport-panel {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-subtle);
}
.pk-material-passport-step-heading {
  margin: 0;
  color: var(--ui-text);
  font-size: 16px;
}
.pk-material-passport-step-help {
  margin: 0;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-material-passport-step-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px 12px;
  margin-top: 3px;
}
.pk-material-passport-step-fields:has(> .pkb-purchase) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pk-material-passport-step-fields > .pkb-purchase {
  display: contents;
}
.pk-material-passport-step-fields .ui-field {
  min-width: 0;
}
.pk-material-passport-step-fields :is(input, select),
.pk-material-question :is(input, select) {
  min-height: 36px;
}
.pk-material-passport-step-fields textarea {
  min-height: 68px;
}
.pk-material-passport-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}
.pk-material-passport .pk-material-passport-step-actions .ui-button {
  min-height: 36px;
}
.pk-material-passport-step-actions .ui-button--primary {
  margin-inline-start: auto;
}
:is(#material-passport-questions, #material-passport-save) {
  scroll-margin-top: 60px;
}
.pk-material-passport :is(.pk-material-passport-step-fields, .pkb-questions) :is(input, textarea, select):disabled {
  background: var(--ui-subtle);
  color: var(--ui-text);
  opacity: 1;
}
.pk-material-passport .pkb-questions {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.pk-material-question-help {
  margin: -4px 0 9px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-material-question {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr);
  align-items: start;
  gap: 8px 12px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-subtle);
}
.pk-material-question-title {
  grid-column: 1;
  font-weight: 600;
}
.pk-material-question-choice {
  grid-column: 2;
  grid-row: 1;
}
.pk-material-question-choice-label {
  margin: 0 0 5px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.pk-material-question-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pk-material-question-option,
.pk-material-question-clear {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 9px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font: inherit;
  font-size: var(--ui-text-sm);
  line-height: 1.35;
  text-align: left;
}
button.pk-material-question-option,
button.pk-material-question-clear {
  cursor: pointer;
}
button.pk-material-question-option:hover {
  border-color: #bea62a;
  background: var(--ui-selected-soft);
}
.pk-material-question-option[data-selected=true] {
  border-color: #bea62a;
  background: var(--ui-selected);
  font-weight: 700;
}
.pk-material-question-clear {
  margin-top: 5px;
  border-color: transparent;
  background: transparent;
  color: var(--ui-link);
}
.pk-material-question-scope,
.pk-material-question-note {
  grid-column: 2;
}
.pk-material-question-amount {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 2;
  gap: 8px;
}
.pk-material-question select {
  text-overflow: ellipsis;
}
.pk-material-question textarea {
  min-height: 42px;
}
@media (max-width: 920px) {
  .pk-material-registry-columns {
    display: none;
  }
  .pk-material-registry-head {
    grid-template-columns: 36px auto minmax(0, 1fr) auto;
    gap: 2px 6px;
    padding-block: 3px;
  }
  .pkb-page .pk-material-registry-toggle {
    grid-row: 1 / 3;
    align-self: stretch;
  }
  .pk-material-registry-name {
    grid-column: 2 / 4;
    grid-row: 1;
  }
  .pk-material-registry-unit {
    grid-column: 2;
  }
  .pk-material-registry-count {
    grid-column: 3;
  }
  .pk-material-registry-questions {
    grid-column: 4;
  }
  .pkb-page .pk-material-registry-card-link {
    grid-column: 4;
    grid-row: 1;
    min-height: 38px;
  }
  .pk-material-registry-unit,
  .pk-material-registry-count,
  .pk-material-registry-questions {
    grid-row: 2;
  }
  .pk-material-registry-usage {
    padding-inline: 8px;
  }
}
@media (max-width: 600px) {
  .pk-materials-page.pkb-page:has(.pkb-register) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .pk-materials-page .ui-page-heading h1 {
    font-size: 22px;
  }
  .pk-materials-title > svg {
    padding: 6px;
  }
  .pk-materials-page .pkb-register > .ui-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-materials-page .pkb-register > .ui-section-tabs > button {
    justify-content: flex-start;
    gap: 4px;
    padding-inline: 6px;
    font-size: 13px;
  }
  .pk-materials-page .pkb-register > .ui-section-tabs > button,
  .pk-materials-page .pkb-toolbar :is(input, select, .pk-materials-reset),
  .pkb-page .pk-material-registry-card-link {
    min-height: 44px;
  }
  .pk-materials-page .pkb-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pk-materials-page .pk-materials-search {
    grid-column: 1 / -1;
  }
  .pk-material-registry-view {
    overflow: visible;
  }
  .pk-material-registry-usage-row {
    grid-template-columns: minmax(0, 1fr) minmax(84px, auto);
  }
  .pk-material-registry-usage-row > :nth-child(3) {
    grid-column: 1 / -1;
  }
  .pkb-page.pk-material-passport > .pkb-top {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pkb-page.pk-material-passport > .pkb-top > .ui-page-heading {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .pk-material-passport-step {
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
    padding-inline: 4px;
    font-size: 12px;
    text-align: center;
  }
  .pk-material-passport-step-fields,
  .pk-material-question {
    grid-template-columns: minmax(0, 1fr);
  }
  .pk-material-passport-step-fields:has(> .pkb-purchase) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-material-passport-step-fields:has(> .pkb-purchase) > .ui-field {
    grid-column: 1 / -1;
  }
  .pk-material-question > * {
    grid-column: 1;
    grid-row: auto;
  }
  .pk-material-question-option,
  .pk-material-question-clear {
    min-height: 44px;
  }
  .pk-material-passport :is(.pkb-top, .pk-material-passport-step-actions) .ui-button {
    min-height: 44px;
  }
}

/* assets/roles-accounts.css */
.roles-accounts-settings > .ui-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 10px;
}
.roles-accounts-settings > .ui-section-tabs button {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font-weight: 650;
}
.roles-accounts-settings > .ui-section-tabs button[aria-pressed=true] {
  border-color: var(--ui-accent);
  background: var(--ui-accent);
}
.roles-accounts {
  min-width: 0;
}
.roles-accounts .roles-accounts-intro {
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid var(--ui-line);
  border-inline-start: 3px solid var(--ui-accent);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-muted);
}
.roles-accounts .settings-columns {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.roles-accounts .settings-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: none;
}
.roles-accounts .settings-card h2 {
  margin: 0;
  font-size: 18px;
}
.roles-accounts .role-reference-roster {
  grid-template-columns: minmax(0, 1fr);
}
.roles-accounts .role-reference-columns {
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}
.roles-accounts .role-reference-columns > .settings-card {
  padding: clamp(12px, 1.35vw, 22px);
  border-radius: 10px;
}
.roles-accounts .role-reference-columns h2 {
  font-size: clamp(23px, 2.1vw, 31px);
  line-height: 1.14;
}
.roles-accounts .role-reference-columns h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}
.roles-accounts .role-reference-roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.roles-accounts .role-reference-columns .roles-accounts-form fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
}
.roles-accounts .role-reference-box {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  min-width: 0;
}
.roles-accounts .role-reference-account-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.roles-accounts .role-reference-box label {
  margin: 0;
}
.roles-accounts .role-reference-account-fields > label {
  display: grid;
  align-content: start;
  gap: 4px;
}
.roles-accounts .role-reference-account-fields :is(input, select),
.roles-accounts .role-reference-operations select {
  margin-top: 0;
  min-height: 38px;
  padding: 6px 9px;
}
.roles-accounts .role-reference-operations > section {
  display: grid;
  gap: 7px;
}
.roles-accounts .role-reference-operations > section > label:first-child {
  display: grid;
  gap: 4px;
}
.roles-accounts .role-reference-operations .user-check {
  margin: 0;
}
.roles-accounts :is(.role-reference-box, .role-reference-summary) .settings-note {
  margin: 0;
  padding: 7px 9px;
  color: var(--ui-muted);
  font-size: 13px;
}
.roles-accounts .role-reference-summary > .settings-note {
  padding: 0;
  border: 0;
  background: transparent;
}
.roles-accounts .role-reference-columns > .settings-card .settings-actions button {
  min-height: 42px;
  font-weight: 650;
}
.roles-accounts .role-reference-account-state {
  display: grid;
  align-content: start;
  gap: 4px;
}
.roles-accounts .role-reference-account-state strong {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.roles-accounts .role-reference-table {
  overflow-x: auto;
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
}
.roles-accounts .role-reference-table table {
  width: 100%;
  min-width: 372px;
  border-collapse: collapse;
}
.roles-accounts .role-reference-table th,
.roles-accounts .role-reference-table td {
  padding: 8px;
  border-bottom: 1px solid var(--ui-line);
  border-right: 1px solid var(--ui-line);
}
.roles-accounts .role-reference-table :is(th, td):last-child {
  border-right: 0;
}
.roles-accounts .role-reference-table tbody tr:last-child > * {
  border-bottom: 0;
}
.roles-accounts .role-reference-table th {
  text-align: start;
}
.roles-accounts .role-reference-table thead {
  background: var(--ui-section-bg);
}
.roles-accounts .role-reference-table :is(th, td):not(:first-child) {
  text-align: center;
}
.roles-accounts .role-reference-granted {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--ui-accent);
  color: var(--ui-text);
  font-weight: 700;
}
.roles-accounts .role-reference-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ui-muted);
  font-size: 12px;
}
.roles-accounts .role-reference-summary {
  display: grid;
  align-content: start;
  gap: 10px;
}
.roles-accounts .role-reference-actor,
.roles-accounts .role-reference-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin: 0;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  background: var(--ui-subtle);
}
.roles-accounts .role-reference-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
}
.roles-accounts .role-reference-result > div {
  display: grid;
  gap: 5px;
}
.roles-accounts .role-reference-result p,
.roles-accounts .role-reference-result ul,
.roles-accounts .role-reference-result dl {
  margin: 0;
}
.roles-accounts .role-reference-result ul {
  padding-inline-start: 19px;
}
.roles-accounts .role-reference-result dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
}
.roles-accounts .role-reference-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.roles-accounts .role-reference-result dt {
  color: var(--ui-muted);
}
.roles-accounts .role-reference-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ui-accent) 22%, var(--ui-surface));
}
.roles-accounts .role-reference-actions {
  justify-content: space-between;
  margin: 0;
}
.roles-accounts .role-reference-actions .settings-primary {
  min-width: min(60%, 250px);
}
@media (max-width: 1100px) {
  .roles-accounts .role-reference-account-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .roles-accounts .settings-columns.role-reference-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .roles-accounts .role-reference-account-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.roles-accounts .roles-accounts-list-header {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.roles-accounts .roles-accounts-search {
  min-width: 0;
  margin: 0;
}
.roles-accounts input.roles-accounts-search,
.roles-accounts .roles-accounts-form :is(input:not([type=checkbox]), select) {
  min-width: 0;
  width: 100%;
  min-height: 38px;
}
.roles-accounts .roles-accounts-list-count,
.roles-accounts .roles-accounts-form-hint {
  margin: 0;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.roles-accounts .roles-accounts-list-count {
  margin-inline-start: 8px;
  font-variant-numeric: tabular-nums;
}
.roles-accounts .roles-accounts-list-body {
  min-width: 0;
}
.roles-accounts .roles-accounts-row {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-top: 1px solid var(--ui-line);
}
.roles-accounts .roles-accounts-row:nth-child(even) {
  background: var(--ui-subtle);
}
.roles-accounts .roles-accounts-row[data-selected=true] {
  background: var(--ui-selected-soft);
  box-shadow: inset 3px 0 var(--ui-accent);
}
.roles-accounts .roles-accounts-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.roles-accounts .roles-accounts-name,
.roles-accounts .roles-accounts-position {
  min-width: 0;
  overflow-wrap: anywhere;
}
.roles-accounts .roles-accounts-position,
.roles-accounts .roles-accounts-directions {
  color: var(--ui-muted);
}
.roles-accounts .roles-accounts-tags,
.roles-accounts .roles-accounts-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.roles-accounts .roles-accounts-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  line-height: 1.4;
}
.roles-accounts .roles-accounts-badge[data-kind=role] {
  background: #e9edf0;
}
.roles-accounts .roles-accounts-badge[data-kind=pending] {
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}
.roles-accounts .roles-accounts-badge[data-kind=registered] {
  background: #eaf2ed;
  color: #28543a;
}
.roles-accounts .roles-accounts-badge[data-kind=disabled] {
  background: #f1e9e9;
  color: #773a3a;
}
.roles-accounts .roles-accounts-row-actions button {
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  text-align: start;
}
.roles-accounts .roles-accounts-row-actions .roles-accounts-edit {
  border-color: #d3bd55;
  background: var(--ui-selected-soft);
  font-weight: 700;
}
.roles-accounts .roles-accounts-row-actions button:hover {
  border-color: var(--ui-accent);
}
.roles-accounts .roles-accounts-form-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}
.roles-accounts .roles-accounts-form fieldset {
  min-width: 0;
}
.roles-accounts .roles-accounts-summary {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid var(--ui-line);
  border-inline-start: 3px solid var(--ui-accent);
  border-radius: var(--ui-radius);
  background: var(--ui-subtle);
}
.roles-accounts .roles-accounts-summary :is(h3, p) {
  margin: 0;
}
.roles-accounts .roles-accounts-summary p {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.roles-accounts .roles-accounts-summary dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 3px 10px;
  margin: 3px 0 0;
}
.roles-accounts .roles-accounts-summary dt {
  color: var(--ui-muted);
}
.roles-accounts .roles-accounts-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.roles-accounts .roles-accounts-invite-panel {
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .roles-accounts .settings-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .roles-accounts-settings > .ui-section-tabs button,
  .roles-accounts .roles-accounts-row-actions button,
  .roles-accounts input.roles-accounts-search,
  .roles-accounts .roles-accounts-form :is(input:not([type=checkbox]), select) {
    min-height: 44px;
  }
}
.roles-accounts.account-reference-page {
  display: grid;
  min-width: 0;
  gap: 12px;
}
.account-reference-page .settings-columns.role-reference-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}
.account-reference-page .role-reference-columns > .settings-card {
  min-width: 0;
  padding: clamp(15px, 1.5vw, 24px);
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface);
  box-shadow: none;
}
.account-reference-page .role-reference-columns h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.14;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.account-reference-page .role-reference-box {
  padding: 13px 15px;
  border-radius: 8px;
}
.account-reference-page .role-reference-box h3 {
  font-size: 18px;
}
.account-reference-page .role-reference-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-reference-page .role-reference-box h3 svg {
  flex: none;
}
.account-reference-page .role-reference-columns h2:focus {
  outline: none;
}
.account-reference-page .role-reference-table input[type=checkbox] {
  width: 21px;
  height: 21px;
  min-height: 21px;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  opacity: 1;
  accent-color: var(--ui-accent);
}
.account-reference-page input[type=checkbox] {
  accent-color: var(--ui-accent);
}
.account-reference-page .role-reference-table td {
  padding: 0;
}
.account-reference-page .role-reference-table .role-reference-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  width: 100%;
  margin: 0;
  cursor: pointer;
}
.account-reference-page .role-reference-check:has(input:focus-visible) {
  outline: 2px solid var(--ui-text);
  outline-offset: -3px;
}
.account-reference-page .role-reference-check:has(input:disabled) {
  cursor: default;
}
.account-reference-page .role-reference-unknown {
  color: var(--ui-muted);
  font-size: 12px;
}
.account-reference-page .role-reference-matrix-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.account-reference-page .role-reference-matrix-heading button {
  margin: 0;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  background: var(--ui-surface);
  color: var(--ui-text);
  white-space: normal;
}
.account-reference-page .role-reference-table .role-reference-explicit {
  background: var(--ui-selected-soft);
  box-shadow: inset 0 -2px var(--ui-accent);
}
.account-reference-page .role-reference-assigned-operations {
  margin-top: 10px;
}
.account-reference-page .role-reference-assigned-operations > p {
  margin-bottom: 4px;
  font-weight: 600;
}
.account-reference-page .role-reference-profile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  margin: 0;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  background: var(--ui-surface);
  color: var(--ui-text);
  white-space: normal;
}
.account-reference-page .role-reference-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.account-reference-page :is(.role-reference-account-fields, .role-reference-contact-fields) > label {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
  margin: 0;
}
.account-reference-page .role-reference-box :is(input:not([type=checkbox]), select),
.account-reference-page .role-reference-account-state strong {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  text-overflow: ellipsis;
}
.account-reference-page .role-reference-summary h2 {
  margin-bottom: 2px;
}
.account-reference-page .role-reference-result {
  padding: 13px;
  border-radius: 8px;
}
.account-reference-page .role-reference-result > div {
  min-width: 0;
}
.account-reference-page .role-reference-result :is(strong, p, dt, dd, li) {
  overflow-wrap: anywhere;
}
.account-reference-page .role-reference-actions {
  flex-wrap: wrap;
  gap: 10px;
}
.account-reference-page .role-reference-actions button {
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 900px) {
  .account-reference-page .settings-columns.role-reference-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .account-reference-page .role-reference-columns > .settings-card {
    padding: 12px;
  }
  .account-reference-page .role-reference-box {
    padding: 11px;
  }
  .account-reference-page .role-reference-columns h2 {
    font-size: 26px;
  }
  .account-reference-page .role-reference-box :is(input:not([type=checkbox]), select),
  .account-reference-page .role-reference-account-state strong {
    min-height: 44px;
  }
  .account-reference-page .role-reference-table .role-reference-check {
    min-height: 44px;
  }
  .account-reference-page .role-reference-matrix-heading button {
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .account-reference-page .role-reference-contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* assets/account-management.css */
.account-management {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: var(--ui-text);
  container-type: inline-size;
}
.account-management .am-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-width: 0;
}
.account-management .am-heading > div {
  min-width: 0;
}
.account-management .am-heading :is(h1, h2) {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.account-management .am-heading p {
  max-width: 76ch;
  margin: 5px 0 0;
  color: var(--ui-muted);
  line-height: 1.4;
}
.account-management :is(.am-toolbar, .am-account-picker, .am-invite) {
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface);
  box-shadow: none;
}
.account-management .am-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}
.account-management .am-account-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 15px;
}
.account-management :is(.am-toolbar, .am-account-picker, .am-invite) label {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.account-management :is(.am-toolbar, .am-account-picker, .am-invite) :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--ui-input-line);
  border-radius: 6px;
  background: var(--ui-surface);
  color: var(--ui-text);
  font: inherit;
  text-overflow: ellipsis;
}
.account-management .am-count {
  align-self: end;
  padding-block: 10px;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.account-management .am-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  max-width: 100%;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid var(--ui-accent);
  border-radius: 8px;
  background: var(--ui-accent);
  color: var(--ui-text);
  font: inherit;
  font-weight: 650;
  white-space: normal;
}
.account-management .am-heading button svg {
  flex: none;
}
.account-management .am-empty {
  margin: 0;
  color: var(--ui-muted);
  line-height: 1.4;
}
.account-management .am-filters summary {
  width: fit-content;
  padding: 6px 0;
  cursor: pointer;
  font-weight: 600;
}
.account-management .am-filters[open] summary {
  margin-bottom: 7px;
}
.account-management .am-invite {
  display: grid;
  gap: 8px;
}
.account-management .am-invite :is(h2, h3, p) {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-management .am-invite button {
  min-height: 40px;
  justify-self: start;
  white-space: normal;
}
.account-management :is(button, input, select, a):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}
@container (max-width: 650px) {
  .account-management .am-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-management .am-toolbar > :first-child {
    grid-column: 1 / -1;
  }
}
@container (max-width: 420px) {
  .account-management :is(.am-toolbar, .am-account-picker, .am-invite) {
    padding: 11px;
  }
  .account-management .am-account-picker {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .account-management .am-count {
    padding-block: 0;
  }
  .account-management :is(.am-toolbar, .am-account-picker, .am-invite) :is(input, select),
  .account-management .am-heading button {
    height: auto;
    min-height: 44px;
  }
}
@container (max-width: 310px) {
  .account-management .am-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* assets/employee-profile-approved.css */
.employee-profile:has(> .ep-approved-profile) {
  container: employee-profile-layout / inline-size;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile {
  align-items: start;
  gap: 14px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-column {
  gap: 12px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-card {
  border: 1px solid var(--ep-line);
  border-radius: 8px;
  padding: 14px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-card h2 {
  font-size: 22px;
  line-height: 28px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-title-icon {
  background: #fff3c4;
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-identity {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1.05fr) minmax(0, 1fr);
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-identity-item > span {
  min-height: 20px;
  line-height: 20px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-identity-input {
  background: #f5f7f9;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix {
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 17px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix :is(th, td) {
  height: 31px;
  border: 1px solid var(--ep-line);
  padding: 3px 6px;
  vertical-align: middle;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix thead th {
  background: #f1f3f5;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix thead th:first-child {
  width: 49%;
  text-align: left;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix tbody th {
  background: transparent;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix th[data-level="1"] {
  padding-left: 17px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix th[data-level="2"] {
  padding-left: 29px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding: 0 3px 0 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: inherit;
  font-weight: 600;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-unknown {
  color: #667085;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-granted {
  color: var(--ui-text);
  background: color-mix(in srgb, var(--ui-accent) 22%, var(--ui-surface));
  font-weight: 700;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-assigned-state {
  display: inline-block;
  margin-left: 6px;
  padding-inline: 4px;
  border-radius: 3px;
  background: #f2f4f7;
  color: #4b5563;
  font-size: 11px;
  font-weight: 400;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-edit-roles-link {
  margin-top: 8px;
  min-height: 32px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 13px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-contract-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card {
  container: employee-document-card / inline-size;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card table {
  min-width: 0;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card thead th {
  white-space: normal;
  overflow-wrap: anywhere;
  background: #f1f3f5;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card th:nth-child(1) {
  width: 29%;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card th:nth-child(2) {
  width: 19%;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card th:nth-child(3) {
  width: 17%;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card th:nth-child(4) {
  width: 19%;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card th:nth-child(5) {
  width: 16%;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card tbody :is(th, td) {
  height: 33px;
  padding: 2px 4px;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card select[data-stage-status=done] {
  background: #eaf4ec;
  color: #1e5731;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card select[data-stage-status=pending] {
  background: #fff2c4;
  color: #654800;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-version-caption {
  display: none;
}
.employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-full-analytics {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
@container employee-document-card (min-width: 490px) {
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card tbody :is(.ep-upload, .ep-doc-version-button) {
    width: 100%;
    min-width: 0;
    max-width: 115px;
    padding-inline: 3px;
    font-size: 12px;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card :is(.ep-upload-caption, .ep-version-caption) {
    display: inline;
  }
}
@media (min-width: 601px) {
  @container employee-document-card (max-width: 489px) {
    .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card tbody :is(.ep-upload-caption, .ep-version-caption) {
      display: none;
    }
  }
}
@container employee-profile-layout (max-width: 910px) {
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container employee-profile-layout (max-width: 600px) {
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-card {
    padding: 12px;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-card h2 {
    font-size: 19px;
    line-height: 25px;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-identity {
    grid-template-columns: minmax(0, 1fr);
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-account-state {
    position: static;
    margin-bottom: 8px;
    width: fit-content;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-contact-card h2 {
    padding-right: 0;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-toggle,
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-edit-roles-link {
    min-height: 44px;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-access-matrix thead th {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-contract-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-contract-upload {
    margin: 0;
    min-height: 44px;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card .ep-table-wrap {
    overflow: visible;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card :is(table, tbody) {
    display: block;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    border-bottom: 1px solid var(--ep-line);
    padding: 10px 2px;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card tbody :is(th, td) {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card tbody th {
    grid-column: 1 / -1;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    color: var(--ep-muted);
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card td :is(input, select, .ep-upload, .ep-doc-version-button) {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    font-size: 16px;
    margin: 0;
  }
  .employee-profile .ep-grid.ep-profile-body.ep-approved-profile .ep-doc-card :is(.ep-upload-caption, .ep-version-caption) {
    display: inline;
  }
}

/* assets/employee-analytics-approved.css */
.employee-profile .ep-analytics-approved {
  --ea-ink: #181a20;
  --ea-muted: #5c6065;
  --ea-line: #e1e2e4;
  --ea-shade: #f2f2f3;
  --ea-accent: #ffdf67;
  display: grid;
  gap: 12px;
  color: var(--ea-ink);
}
.ep-analytics-approved :where(.ep-analytics-header, .ep-analytics-panel) {
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--ea-line);
  border-radius: 9px;
  background: #fff;
}
.ep-analytics-approved .ep-analytics-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: end;
  padding: 14px 20px;
}
.ep-analytics-approved .ep-analytics-header h1 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 33px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.ep-analytics-approved .ep-analytics-identity,
.ep-analytics-approved .ep-analytics-date-picker,
.ep-analytics-approved .ep-analytics-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.ep-analytics-approved .ep-analytics-identity {
  margin-top: 4px;
}
.ep-analytics-approved .ep-analytics-identity strong {
  font-size: 18px;
}
.ep-analytics-approved .ep-analytics-identity > span:not(.ep-analytics-icon) {
  font-size: 14px;
}
.ep-analytics-approved .ep-analytics-identity > span:not(.ep-analytics-icon)::before {
  content: "\b7";
  margin-right: 9px;
}
.ep-analytics-approved .ep-analytics-period {
  display: grid;
  gap: 9px;
}
.ep-analytics-approved .ep-analytics-date-picker {
  justify-content: flex-end;
  font-size: 14px;
}
.ep-analytics-approved .ep-analytics-date-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.employee-profile .ep-analytics-approved .ep-analytics-date-picker input {
  min-width: 0;
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid var(--ea-line);
  border-radius: 6px;
  color: var(--ea-ink);
  background: #fff;
  font: inherit;
}
.ep-analytics-approved .ep-analytics-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.ep-analytics-approved .ep-analytics-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.ep-analytics-approved .ep-analytics-panel {
  container-type: inline-size;
  scroll-margin-top: 14px;
}
.ep-analytics-approved .ep-analytics-panel h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 7px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.25;
  letter-spacing: -.015em;
}
.ep-analytics-approved .ep-analytics-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  color: #17181b;
  background: var(--ea-accent);
}
.ep-analytics-approved :where(.ep-analytics-note, .ep-analytics-notice) {
  margin: 7px 0 0;
  color: var(--ea-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ep-analytics-approved .ep-analytics-notice {
  margin: 0;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--ea-shade);
}
.ep-analytics-approved .ep-analytics-table {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ea-line);
  border-radius: 6px;
}
.employee-profile .ep-analytics-approved table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ea-ink);
  font-size: 14px;
  line-height: 1.32;
}
.employee-profile .ep-analytics-approved table :is(th, td) {
  padding: 6px 9px;
  border: 0;
  border-bottom: 1px solid var(--ea-line);
  text-align: start;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ep-analytics-approved table :is(th, td) + :is(th, td) {
  border-left: 1px solid var(--ea-line);
}
.employee-profile .ep-analytics-approved tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}
.ep-analytics-approved tbody th {
  width: 57%;
  font-weight: 500;
}
.ep-analytics-approved thead th {
  background: var(--ea-shade);
  font-weight: 650;
}
.ep-analytics-approved .ep-analytics-log thead th:first-child {
  width: 32%;
}
.ep-analytics-approved .ep-analytics-unknown {
  color: var(--ea-muted);
}
.employee-profile .ep-analytics-approved td.ep-analytics-empty {
  padding: 13px 9px;
  text-align: center;
  color: var(--ea-muted);
}
.ep-analytics-approved .ep-analytics-disclosure {
  margin-top: 8px;
}
.ep-analytics-approved .ep-analytics-disclosure h3 {
  margin: 8px 0;
  font-size: 15px;
}
.ep-analytics-approved details.ep-analytics-disclosure summary {
  margin-bottom: 6px;
  cursor: pointer;
  font-weight: 600;
}
.ep-analytics-approved .ep-analytics-actions {
  margin-top: 8px;
}
.employee-profile .ep-analytics-approved :is(.ep-analytics-link, .ep-analytics-button) {
  min-height: 34px;
  max-width: 100%;
  color: var(--ea-ink);
  font: inherit;
  font-size: 14px;
  white-space: normal;
}
.employee-profile .ep-analytics-approved .ep-analytics-link {
  padding: 3px 0;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.employee-profile .ep-analytics-approved .ep-analytics-button {
  padding: 5px 10px;
  border: 1px solid #bdbec1;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
}
.ep-analytics-approved .ep-analytics-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ea-line);
  border-radius: 6px;
  background: var(--ea-line);
}
.ep-analytics-approved :is(.ep-analytics-month, .ep-analytics-day) {
  min-width: 0;
  padding: 8px;
  background: #fff;
}
.ep-analytics-approved .ep-analytics-day h3 {
  margin: 0 0 7px;
  font-size: 17px;
}
.ep-analytics-approved .ep-analytics-day h4 {
  margin: 6px 0;
  font-size: 14px;
}
.ep-analytics-approved .ep-analytics-day .ep-analytics-table + .ep-analytics-table,
.ep-analytics-approved .ep-analytics-interval {
  margin-top: 6px;
}
.ep-analytics-approved .ep-analytics-duties {
  margin: 6px 0;
  padding-left: 19px;
  font-size: 13px;
}
.ep-analytics-approved .ep-analytics-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.ep-analytics-approved .ep-analytics-month-header strong {
  text-align: center;
  text-transform: capitalize;
}
.ep-analytics-approved .ep-analytics-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}
.ep-analytics-approved .ep-analytics-weekday {
  padding: 4px 0;
  color: var(--ea-muted);
  text-align: center;
  font-size: 12px;
}
.employee-profile .ep-analytics-approved :is(.ep-analytics-month-header, .ep-analytics-calendar) button {
  position: relative;
  min-width: 0;
  min-height: 33px;
  padding: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ea-ink);
  font-size: 13px;
  text-align: center;
}
.employee-profile .ep-analytics-approved .ep-analytics-month-header button {
  min-width: 32px;
  font-size: 22px;
}
.employee-profile .ep-analytics-approved .ep-analytics-calendar button[aria-pressed=true] {
  background: var(--ea-accent);
  font-weight: 700;
}
.ep-analytics-approved .ep-analytics-calendar button[data-kind]:not([data-kind=unknown])::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  content: "";
}
.ep-analytics-approved .ep-analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  margin: 7px 0 0;
  padding: 0;
  color: var(--ea-muted);
  list-style: none;
  font-size: 11px;
  line-height: 1.4;
}
.ep-analytics-approved .ep-analytics-legend li {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ep-analytics-approved .ep-analytics-legend li::before {
  content: "";
}
.ep-analytics-approved :is(.ep-analytics-calendar button, .ep-analytics-legend li)[data-kind=complete]::after,
.ep-analytics-approved .ep-analytics-legend [data-kind=complete]::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ea-ink);
}
.ep-analytics-approved .ep-analytics-calendar button[data-kind=partial]::after,
.ep-analytics-approved .ep-analytics-legend [data-kind=partial]::before {
  width: 9px;
  height: 2px;
  background: #76540a;
}
.ep-analytics-approved .ep-analytics-calendar button[data-kind=issue]::after,
.ep-analytics-approved .ep-analytics-legend [data-kind=issue]::before {
  width: 5px;
  height: 5px;
  rotate: 45deg;
  background: #9c3932;
}
.ep-analytics-approved .ep-analytics-legend [data-kind=unknown]::before {
  width: 6px;
  height: 6px;
  border: 1px solid var(--ea-muted);
  border-radius: 50%;
}
.employee-profile .ep-analytics-approved :is(button, summary, input):focus-visible {
  outline: 2px solid #76621b;
  outline-offset: 2px;
}
@container (max-width: 455px) {
  .ep-analytics-approved .ep-analytics-calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .ep-analytics-approved .ep-analytics-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 650px) {
  .ep-analytics-approved .ep-analytics-header {
    grid-template-columns: minmax(0, 1fr);
  }
  .ep-analytics-approved :is(.ep-analytics-header, .ep-analytics-panel) {
    padding: 11px;
  }
  .ep-analytics-approved .ep-analytics-date-picker {
    justify-content: flex-start;
  }
  .employee-profile .ep-analytics-approved table {
    font-size: 14px;
  }
  .employee-profile .ep-analytics-approved table :is(th, td) {
    padding: 6px 5px;
  }
  .employee-profile .ep-analytics-approved :is(.ep-analytics-link, .ep-analytics-button, .ep-analytics-month-header button, .ep-analytics-calendar button) {
    min-height: 44px;
  }
}

/* assets/section-staff.css */
.section-staff-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  border-bottom: 1px solid var(--ui-line);
}
.section-staff-tools input[type=search] {
  width: min(210px, 100%);
  min-width: 0;
}
.section-staff-list h2 {
  margin: 0;
  padding: 12px;
  font-size: 18px;
}
.section-staff-list p {
  margin: 0;
  padding: 12px;
  color: var(--ui-muted);
}
.section-staff-list table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.section-staff-list :is(th, td) {
  padding: 8px 10px;
  text-align: start;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--ui-line);
}
.section-staff-list th {
  background: var(--ui-subtle);
  color: var(--ui-muted);
  font-size: 13px;
}
.section-staff-list th:nth-child(1),
.section-staff-list th:nth-child(3) {
  width: 28%;
}
.section-staff-list tr[data-selected=true] {
  background: var(--ui-selected-soft, #fff9df);
}
.section-staff-list button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  width: 100%;
  padding: 2px;
  border: 0;
  text-align: start;
  background: transparent;
  color: inherit;
  overflow-wrap: anywhere;
}
.section-staff-list button svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}
.section-staff-state {
  color: var(--ui-muted);
  font-size: 13px;
}
.section-staff-state[data-status=working] {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 5px;
  background: var(--ui-warning-bg, #fff5d6);
  color: var(--ui-warning, #795500);
}
.section-staff-detail .section-staff-task {
  margin: 10px 0;
  padding: 10px 0;
  border-block-start: 1px solid var(--ui-line);
}
.section-staff-detail .section-staff-task-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 6px;
}
.section-staff-detail .section-staff-task-title strong {
  overflow-wrap: anywhere;
}
.section-staff-detail .section-staff-task .ui-button {
  width: 100%;
}
.section-staff-detail ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-inline-start: 16px;
}
.section-staff-detail li > :first-child {
  margin-inline-end: 6px;
}
@media (max-width: 520px) {
  .section-staff-tools input[type=search] {
    width: 100%;
  }
  .section-staff-list :is(th, td) {
    padding: 6px 4px;
  }
  .section-staff-list td {
    font-size: 13px;
  }
  .section-staff-list button svg {
    display: none;
  }
}

/* app.css */
.original-brand-logo {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 899/150;
  background: var(--ui-surface);
  flex-shrink: 0;
}
.original-brand-logo img {
  display: block;
  position: absolute;
  width: 111.235%;
  max-width: none;
  height: auto;
  left: -5.673%;
  top: -266.667%;
}
.sidebar .brand {
  display: block;
  width: 100%;
  margin: 0 0 30px;
  padding: 8px 2px;
}
.sidebar .brand small {
  text-align: center;
  margin-top: 8px;
  letter-spacing: .5px;
}
.role-brand > .original-brand-logo {
  width: min(430px, 65vw);
}
.login-mark > .original-brand-logo {
  width: 360px;
  max-width: 80vw;
}
.tv-brand .original-brand-logo {
  width: 280px;
  height: auto;
  min-height: 0;
  min-width: 0;
  display: block;
  background: var(--ui-surface);
  border: 0;
  border-radius: 0;
}
.director-brand-sign {
  width: 320px;
  max-width: 100%;
  padding: 8px 12px;
  background: var(--ui-surface);
  border-radius: 8px;
  margin-bottom: 18px;
}
@media (max-width: 650px) {
  .role-brand > .original-brand-logo {
    width: 260px;
  }
  .tv-brand .original-brand-logo {
    width: 190px;
  }
}
.navigation-shell {
  --menu-width:272px;
}
.navigation-shell.navigation-compact {
  --menu-width:72px;
}
.global-navigation {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--menu-width);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ui-surface);
  z-index: 250;
}
.global-navigation a,
.global-navigation button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.global-navigation svg {
  flex: none;
}
.navigation-head,
.navigation-footer {
  flex: none;
  border-bottom: 1px solid var(--ui-line);
}
.navigation-footer {
  border-bottom: 0;
  border-top: 1px solid var(--ui-line);
}
.navigation-head .original-brand-logo {
  display: block;
  width: 100%;
  margin: 0;
}
.navigation-links {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.navigation-compact .global-navigation span {
  display: none;
}
.navigation-content {
  margin-left: var(--menu-width);
  min-width: 0;
}
.navigation-content .main {
  margin-left: 0;
  width: auto;
}
.navigation-content .market-settings,
.navigation-content .settings-page {
  padding: 28px;
}
.navigation-content .label-page {
  max-width: none;
}
.common-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.common-metrics .ui-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.common-metrics strong {
  font-size: 40px;
  line-height: 1.2;
}
.common-freshness {
  font-size: 14px;
  color: var(--ui-muted);
  margin: 20px 0 28px;
}
.legacy-module .main {
  margin: 0;
}
.legacy-module .content {
  padding: 28px;
}
.common-page table {
  width: 100%;
  border-collapse: collapse;
}
.common-page td,
.common-page th {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--ui-line);
}
@media (max-width: 1000px) {
  .common-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .common-metrics {
    grid-template-columns: 1fr;
  }
  .navigation-content .market-settings,
  .navigation-content .settings-page,
  .legacy-module .content {
    padding: 16px 12px;
  }
  .navigation-content .settings-columns {
    grid-template-columns: 1fr;
  }
  .navigation-content .label-page {
    padding: 16px 10px;
  }
}
.navigation-head .navigation-brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.navigation-task-entry {
  margin-bottom: 4px;
}
.global-navigation .navigation-task-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 4px 14px;
  align-items: center;
}
.global-navigation .navigation-task-counts a {
  display: inline-flex;
  justify-content: center;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 10px;
  background: var(--ui-selected);
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 700;
}
.global-navigation .navigation-task-counts a.navigation-message-count {
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.global-navigation .navigation-task-counts a:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
.global-navigation .navigation-task-counts a[aria-current=page] {
  box-shadow: inset 0 0 0 2px currentColor;
}
.global-navigation .navigation-task-counts a:focus-visible {
  outline: 3px solid var(--ui-info);
  outline-offset: 2px;
}
.global-navigation .navigation-counter-error {
  display: inline;
  font-weight: 700;
  color: var(--ui-warning);
}
.navigation-compact .global-navigation .navigation-task-counts {
  flex-direction: column;
  padding: 4px 0;
  gap: 6px;
}
.navigation-compact .global-navigation .navigation-task-counts a {
  max-width: 100%;
  padding: 6px 2px;
  gap: 3px;
  flex-wrap: wrap;
}
.navigation-compact .global-navigation .navigation-task-counts span {
  display: inline;
}
.global-navigation .navigation-notice-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 14px;
  background: var(--ui-accent);
  color: var(--ui-text);
  font-size: 14px;
  padding: 0 6px;
  margin-left: auto;
}
.navigation-compact .global-navigation a[href="/notifications"] {
  position: relative;
}
.navigation-compact .navigation-notice-badge {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 19px;
  height: 19px;
  font-size: var(--ui-text-sm);
  padding: 0 4px;
}
.equipment-telegram-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.equipment-telegram-heading h2 {
  margin: 0;
  font-size: 22px;
}
.equipment-telegram-heading > svg {
  color: var(--ui-info);
}
.equipment-telegram p {
  margin: 0;
}
.equipment-telegram-config summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ui-link);
}
.equipment-telegram-config[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.equipment-telegram small {
  font-size: 14px;
  display: block;
}
.equipment-telegram .ui-notice .ui-button {
  margin-top: 12px;
}
.equipment-telegram a {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .equipment-telegram > .ui-row .ui-button {
    width: 100%;
  }
  .equipment-telegram-config .ui-row .ui-button {
    width: 100%;
  }
}
.equipment-notices-page {
  max-width: 1200px;
  margin: auto;
}
.equipment-notices-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.equipment-notice-item.is-unread {
  border-left: 4px solid var(--ui-link);
}
.equipment-notice-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.equipment-notice-head > div {
  flex: 1;
  min-width: 0;
}
.equipment-notice-head h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.equipment-notice-head small {
  font-size: 14px;
  color: var(--ui-muted);
}
.equipment-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--ui-info-bg);
  color: var(--ui-info);
  border-radius: 12px;
}
.equipment-notice-icon.is-late {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.equipment-notice-body {
  font-size: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.equipment-notice-late {
  color: var(--ui-danger);
}
.equipment-notice-actions {
  margin-top: 18px;
}
@media (max-width: 650px) {
  .equipment-notices-page .ui-card {
    padding: 16px;
  }
  .equipment-notice-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .equipment-notice-head > div {
    flex: 1;
    min-width: 130px;
  }
  .equipment-notice-actions .ui-button {
    width: 100%;
  }
  .equipment-notices-toolbar .ui-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .equipment-notices-toolbar .ui-section-tabs > button {
    min-width: 0;
    white-space: normal;
  }
  .equipment-notices-toolbar > .ui-button {
    width: 100%;
  }
}
.equipment-page {
  max-width: 1600px;
  margin: auto;
}
.equipment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.equipment-summary .ui-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.equipment-summary strong {
  font-size: 32px;
  line-height: 1.2;
}
.equipment-filters,
.equipment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.equipment-search {
  grid-column: span 2;
}
.equipment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.equipment-table small {
  display: block;
}
.equipment-table a {
  white-space: normal;
  overflow-wrap: anywhere;
}
.equipment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.equipment-facts dt {
  color: var(--ui-muted);
  font-size: 14px;
}
.equipment-facts dd {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.equipment-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.equipment-actions {
  margin-top: 20px;
}
.equipment-page h2 {
  font-size: 22px;
  margin-top: 0;
}
.equipment-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.equipment-page small {
  font-size: 14px;
}
@media (max-width: 1000px) {
  .equipment-filters,
  .equipment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .equipment-summary,
  .equipment-filters,
  .equipment-form,
  .equipment-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .equipment-summary .ui-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
  }
  .equipment-search {
    grid-column: auto;
  }
  .equipment-table thead {
    display: none;
  }
  .equipment-table,
  .equipment-table tbody,
  .equipment-table tr,
  .equipment-table td {
    display: block;
    width: 100%;
  }
  .equipment-table tr {
    border-bottom: 2px solid var(--ui-line);
    padding: 12px;
  }
  .equipment-table td {
    padding: 8px;
    border: 0;
  }
  .equipment-table td:before {
    content: attr(data-label);
    display: block;
    color: var(--ui-muted);
    font-size: 14px;
  }
  .equipment-page .ui-card {
    padding: 16px;
  }
  .equipment-page .ui-button {
    max-width: 100%;
    white-space: normal;
  }
  .equipment-page .ui-section-tabs {
    flex-wrap: wrap;
  }
  .equipment-page h1 {
    overflow-wrap: anywhere;
  }
}
.equipment-summary .equipment-summary-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 20px;
  cursor: pointer;
  font-weight: 400;
}
.equipment-summary-item.is-selected {
  border-color: var(--ui-accent);
  background: var(--ui-selected-soft);
}
.equipment-summary-item svg {
  color: var(--ui-muted);
}
.equipment-summary-item strong {
  font-size: 28px;
}
.equipment-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.equipment-search-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 16px;
}
.equipment-search-row .equipment-search {
  grid-column: auto;
}
.equipment-advanced summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ui-link);
  font-weight: 600;
}
.equipment-advanced .equipment-filters {
  padding-top: 12px;
}
.equipment-filter-footer {
  justify-content: space-between;
}
.equipment-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}
.equipment-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.equipment-type-icon.is-large {
  width: 60px;
  height: 60px;
}
.equipment-unit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.equipment-unit > div {
  min-width: 0;
}
.equipment-unit a {
  line-height: 1.4;
}
.equipment-table small {
  margin-top: 5px;
}
.equipment-badges .ui-badge {
  gap: 6px;
  white-space: normal;
}
.equipment-badges svg {
  flex: none;
}
.equipment-danger {
  color: var(--ui-danger) !important;
  font-weight: 600;
}
.equipment-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.equipment-row-actions a {
  white-space: nowrap;
  font-weight: 400;
}
.equipment-needs-action td:first-child {
  border-left: 3px solid var(--ui-danger);
}
.equipment-card-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.equipment-task-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}
.equipment-task-heading h2 {
  margin: 0;
}
.equipment-linked-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.equipment-linked-tasks > a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  text-decoration: none;
  min-width: 0;
}
.equipment-linked-tasks > a > span:first-of-type {
  flex: 1;
  min-width: 0;
}
.equipment-linked-tasks b {
  overflow-wrap: anywhere;
}
.equipment-linked-tasks small {
  display: block;
  color: var(--ui-muted);
}
.equipment-linked-tasks svg {
  flex: none;
}
@media (max-width: 1100px) {
  .equipment-summary {
    gap: 12px;
  }
  .equipment-summary .equipment-summary-item {
    padding: 16px;
    grid-template-columns: 24px 1fr;
  }
  .equipment-summary-item strong {
    grid-column: 2;
  }
  .equipment-table td,
  .equipment-table th {
    padding: 12px;
  }
}
@media (max-width: 650px) {
  .equipment-search-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .equipment-summary .equipment-summary-item {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .equipment-summary-item strong {
    grid-column: auto;
  }
  .equipment-table td {
    padding: 8px;
  }
  .equipment-unit {
    gap: 10px;
  }
  .equipment-linked-tasks > a {
    flex-wrap: wrap;
  }
  .equipment-page .ui-section-tabs > button {
    flex: 1 1 130px;
  }
  .equipment-row-actions .ui-button {
    flex: 1;
  }
  .equipment-needs-action td:first-child {
    border: 0;
  }
  .equipment-needs-action {
    border-left: 3px solid var(--ui-danger);
  }
}
.equipment-table {
  table-layout: fixed;
}
.equipment-table th:nth-child(1) {
  width: 31%;
}
.equipment-table th:nth-child(2) {
  width: 19%;
}
.equipment-table th:nth-child(3) {
  width: 31%;
}
.equipment-table th:nth-child(4) {
  width: 19%;
}
.equipment-unit a,
.equipment-unit b {
  overflow-wrap: normal;
  word-break: normal;
}
.equipment-row-actions a {
  white-space: normal;
}
.equipment-unit small {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .equipment-table {
    table-layout: auto;
  }
  .equipment-table th {
    width: auto;
  }
  .equipment-unit a,
  .equipment-unit b {
    overflow-wrap: anywhere;
  }
}
.equipment-table th {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.equipment-row-actions a {
  word-break: normal;
  overflow-wrap: normal;
  min-width: 108px;
}
.equipment-toolbar .ui-section-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.equipment-toolbar .ui-section-tabs > button {
  white-space: normal;
  min-width: 0;
}
@media (max-width: 650px) {
  .equipment-toolbar .ui-section-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .equipment-row-actions .ui-button {
    min-width: 108px;
  }
}
.equipment-details-editor {
  margin-top: 24px;
  margin-bottom: 24px;
}
.equipment-owner-list {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}
.equipment-schedule-table p {
  margin: 8px 0;
}
.equipment-schedule-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.equipment-schedule-table .ui-badge {
  white-space: normal;
  overflow-wrap: anywhere;
}
.equipment-schedule-table th:nth-child(1) {
  width: 36%;
}
.equipment-schedule-table th:nth-child(2) {
  width: 18%;
}
.equipment-schedule-table th:nth-child(3) {
  width: 23%;
}
.equipment-schedule-table th:nth-child(4) {
  width: 23%;
}
@media (max-width: 650px) {
  .equipment-schedule-table th {
    width: auto;
  }
}
.equipment-missing h2,
.equipment-missing h3,
.equipment-missing p {
  margin: 0;
}
.equipment-missing-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.equipment-missing ul {
  padding-left: 22px;
  margin: 8px 0 0;
}
.equipment-missing li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.equipment-missing summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ui-link);
}
.equipment-missing details .equipment-facts {
  margin-top: 12px;
}
.equipment-preparation-editor h3,
.equipment-preparation-editor p {
  margin: 0;
}
.equipment-preparation-editor {
  padding-top: 24px;
  border-top: 1px solid var(--ui-line);
  margin-top: 16px;
}
.equipment-wide {
  grid-column: 1/-1;
}
.equipment-preparation-editor input,
.equipment-preparation-editor textarea {
  min-width: 0;
}
.equipment-preparation-editor textarea {
  min-height: 96px;
}
@media (max-width: 650px) {
  .equipment-missing-groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .equipment-missing .ui-row .ui-button {
    width: 100%;
  }
}
.crm-page .ui-notice {
  margin-bottom: 10px;
}
.crm-has-unread td:first-child {
  box-shadow: inset 3px 0 var(--ui-accent);
}
.crm-unread-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: var(--ui-radius);
  font-size: 14px;
  font-weight: 700;
  background: var(--ui-selected);
  color: var(--ui-text);
  white-space: nowrap;
}
.crm-card.ui-card {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  box-sizing: border-box;
}
.crm-card > header,
.crm-card > footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.crm-card > header {
  border-bottom: 1px solid var(--ui-line);
}
.crm-card > header h1 {
  margin: 0;
  font-size: 22px;
}
.crm-card > header p {
  margin: 4px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
}
.crm-card > footer {
  position: static;
  border-top: 1px solid var(--ui-line);
}
.crm-card > footer > span {
  color: var(--ui-muted);
  font-size: 14px;
}
.crm-card .ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crm-card-status {
  padding: 10px 18px 0;
  display: grid;
  gap: 6px;
}
.crm-status-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.crm-status-flow li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 3px solid var(--ui-line);
  font-size: 14px;
  color: var(--ui-muted);
}
.crm-status-flow li[aria-current=step] {
  color: var(--ui-text);
  border-color: var(--ui-accent);
  font-weight: 600;
  background: var(--ui-selected);
  border-radius: 8px 8px 0 0;
}
.crm-status-flow svg {
  flex-shrink: 0;
}
.crm-card-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
}
.crm-card--new .crm-card-columns {
  grid-template-columns: 1fr 1fr;
}
.crm-task-form,
.crm-task-form > fieldset {
  display: contents;
}
.crm-basics {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ui-line);
}
.crm-title-field,
.crm-performer-field {
  grid-column: span 2;
}
.crm-basics-warning {
  grid-column: 1/-1;
}
.crm-description,
.crm-plan,
.crm-discussion {
  padding: 14px 18px;
  min-width: 0;
  align-self: start;
}
.crm-description,
.crm-plan {
  display: grid;
  gap: 10px;
}
.crm-plan,
.crm-discussion {
  border-left: 1px solid var(--ui-line);
}
.crm-card .ui-field > span {
  font-weight: 600;
}
.crm-card input:not([type=checkbox]),
.crm-card select,
.crm-card textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.crm-card textarea {
  resize: none;
  overflow: hidden;
  line-height: 1.5;
}
.crm-hint {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.45;
  margin: 0;
}
.crm-help summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ui-link);
}
.crm-help summary:before {
  content: "\25b8";
}
.crm-help[open] summary:before {
  content: "\25be";
}
.crm-help p + p {
  margin-top: 8px;
}
.crm-section-title {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 23px;
}
.crm-plan-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--ui-muted);
}
.crm-steps {
  display: grid;
  gap: 6px;
}
.crm-steps:empty {
  display: none;
}
.crm-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 4px;
  align-items: center;
}
.crm-step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ui-subtle);
  border-radius: 50%;
  font-weight: 600;
}
.crm-step-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.crm-step .ui-button {
  padding: 8px;
  justify-content: center;
}
.crm-discussion {
  overflow-wrap: anywhere;
}
.crm-card-heading {
  min-width: 0;
  flex: 1 1 260px;
}
.crm-card-heading h1 {
  overflow-wrap: anywhere;
}
.crm-chat-eyebrow {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  margin-bottom: 4px;
}
.crm-conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crm-conversation > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.crm-conversation h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}
.crm-chat-feed {
  flex: 1;
  min-width: 0;
}
.crm-chat-messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-chat-day {
  text-align: center;
  list-style: none;
  font-size: 14px;
  color: var(--ui-muted);
  padding: 4px 0;
}
.crm-chat-day span {
  display: inline-block;
  background: var(--ui-surface);
  padding: 4px 10px;
  border-radius: var(--ui-radius);
}
.crm-chat-message {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  min-width: 0;
}
.crm-chat-message.is-own {
  justify-content: flex-end;
}
.crm-chat-message article {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  max-width: 88%;
  min-width: 110px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.crm-chat-message.is-own article {
  background: var(--ui-selected-soft);
  border-color: var(--ui-selected);
  border-radius: 16px 16px 4px;
}
.crm-chat-message strong {
  font-size: 14px;
  color: var(--ui-text);
}
.crm-chat-message p {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 4px 0 6px;
  font-size: 16px;
}
.crm-chat-message time {
  display: block;
  text-align: right;
  color: var(--ui-muted);
  font-size: 14px;
}
.crm-chat-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 12px;
  color: var(--ui-muted);
}
.crm-chat-empty strong {
  color: var(--ui-text);
  font-size: 18px;
}
.crm-chat-empty p {
  margin: 0;
  line-height: 1.5;
}
.crm-chat-composer {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  background: var(--ui-surface);
  border-top: 1px solid var(--ui-line);
  padding-top: 12px;
}
.crm-chat-send-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.crm-chat-composer .crm-chat-new {
  justify-self: center;
}
.crm-chat-plan {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.crm-chat-plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ui-line);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.crm-chat-plan svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ui-muted);
}
.crm-chat-plan .is-done svg {
  color: var(--ui-success);
}
.crm-status-history {
  margin-top: 12px;
  border-top: 1px solid var(--ui-line);
  padding-top: 4px;
}
.crm-status-history summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
}
.crm-status-history summary:before {
  content: "\25b8";
}
.crm-status-history[open] summary:before {
  content: "\25be";
}
.crm-status-history ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.crm-status-history li {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.crm-status-history li span {
  color: var(--ui-muted);
}
.crm-feedback:empty {
  display: none;
}
.crm-feedback {
  padding: 10px 18px 0;
}
.crm-feedback .ui-row {
  margin-top: 8px;
}
.crm-confirm {
  padding: 12px 18px;
  background: var(--ui-subtle);
  border-top: 1px solid var(--ui-line);
}
.crm-confirm h3 {
  margin: 0;
}
.crm-confirm p {
  line-height: 1.5;
}
.crm-confirm .ui-row {
  justify-content: flex-end;
}
.crm-table {
  table-layout: auto;
  width: 100%;
  min-width: 960px;
}
.crm-table th:first-child {
  width: 28%;
}
.crm-table th:nth-child(2) {
  width: 24%;
}
.crm-table th:nth-child(3) {
  width: 16%;
}
.crm-table th:nth-child(4) {
  width: 100px;
}
.crm-table th:nth-child(5) {
  width: 145px;
}
.crm-table th:nth-child(6) {
  width: 120px;
}
.crm-table td {
  vertical-align: middle;
  overflow-wrap: break-word;
}
.crm-table td:nth-child(n+3),
.crm-table th {
  white-space: nowrap;
}
.crm-table .crm-title {
  font-weight: 600;
  text-align: left;
  padding-left: 0;
}
.crm-secondary {
  display: block;
  margin-top: 4px;
}
.crm-priority {
  display: block;
  color: var(--ui-warning);
}
.crm-overdue {
  color: var(--ui-danger);
}
.crm-overdue small {
  color: inherit;
}
@media (max-width: 1180px) {
  .crm-card-columns {
    grid-template-columns: 1fr 1fr;
  }
  .crm-discussion {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--ui-line);
  }
  .crm-basics {
    grid-template-columns: 1fr 1fr;
  }
  .crm-title-field,
  .crm-performer-field {
    grid-column: auto;
  }
}
@media (max-width: 1100px) {
  .crm-table {
    table-layout: auto;
  }
  .crm-table th:nth-child(n) {
    width: auto;
  }
  .crm-table td {
    padding: 12px;
  }
}
@media (max-width: 760px) {
  .crm-card-columns,
  .crm-card--new .crm-card-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-basics {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
  .crm-title-field,
  .crm-performer-field {
    grid-column: auto;
  }
  .crm-card-status {
    padding: 10px 12px 0;
  }
  .crm-status-flow {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  }
  .crm-description,
  .crm-plan,
  .crm-discussion {
    padding: 12px;
  }
  .crm-plan,
  .crm-discussion {
    border-left: 0;
    border-top: 1px solid var(--ui-line);
  }
  .crm-card > header,
  .crm-card > footer,
  .crm-confirm {
    padding: 12px;
  }
  .crm-feedback {
    padding: 8px 12px 0;
  }
  .crm-card > footer .ui-row {
    width: 100%;
  }
  .crm-card > footer .ui-button {
    flex: 1 1 145px;
  }
  .crm-table {
    min-width: 0;
  }
  .crm-table,
  .crm-table tbody {
    display: block;
  }
  .crm-table thead {
    display: none;
  }
  .crm-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px 16px;
    gap: 8px 16px;
    border-bottom: 1px solid var(--ui-line);
  }
  .crm-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .crm-table td:first-child,
  .crm-table td:nth-child(2) {
    grid-column: 1/-1;
  }
  .crm-table td:not(:first-child):before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    color: var(--ui-muted);
    margin-bottom: 4px;
  }
  .crm-table td:nth-child(2) {
    padding-bottom: 8px;
  }
  .crm-table .ui-table-link {
    min-height: 44px;
  }
}
.crm-card--chat > header {
  position: sticky;
  top: 8px;
  z-index: 3;
  background: var(--ui-surface);
  border-radius: var(--ui-radius-lg) var(--ui-radius-lg) 0 0;
}
.crm-card--chat .crm-card-status:empty {
  display: none;
}
.crm-card--chat .crm-card-columns {
  grid-template-columns: minmax(220px, .75fr) minmax(0, 2fr);
}
.crm-card--chat .crm-plan {
  grid-column: 1;
  border-left: 0;
  position: sticky;
  top: calc(var(--crm-chat-header-height,90px) + 16px);
}
.crm-card--chat .crm-discussion {
  grid-column: 2;
  border-left: 1px solid var(--ui-line);
  border-top: 0;
  padding: 18px;
  align-self: stretch;
  background: var(--ui-bg);
  border-radius: 0 0 var(--ui-radius-lg) 0;
}
.crm-card--chat .crm-conversation {
  min-height: min(600px, calc(100dvh - 180px));
}
.crm-card--chat .crm-chat-feed {
  padding: 4px 0 16px;
}
.crm-card--chat .crm-chat-composer {
  position: sticky;
  bottom: 8px;
  border: 1px solid var(--ui-line);
  padding: 12px;
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}
.crm-card--chat .crm-chat-composer .ui-field > span {
  display: none;
}
.crm-card--chat .crm-chat-message article {
  max-width: 78%;
}
@media (max-width: 1000px) {
  .crm-card--chat .crm-card-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-card--chat .crm-plan {
    position: static;
    grid-column: 1;
  }
  .crm-card--chat .crm-discussion {
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid var(--ui-line);
    border-radius: 0 0 var(--ui-radius-lg) var(--ui-radius-lg);
  }
  .crm-card--chat .crm-conversation {
    min-height: 400px;
  }
  .crm-card--chat > header {
    position: static;
  }
}
@media (max-width: 760px) {
  .crm-card--chat .crm-discussion {
    padding: 12px;
  }
  .crm-card--chat .crm-chat-message article {
    max-width: 94%;
  }
  .crm-chat-message article {
    padding: 10px;
  }
  .crm-chat-send-row > .crm-hint {
    display: none;
  }
  .crm-chat-send-row {
    justify-content: flex-end;
  }
  .crm-card--chat .crm-chat-composer {
    bottom: 4px;
  }
}
.mk-page {
  max-width: 1800px;
  overflow-wrap: anywhere;
}
.mk-page > div > section {
  margin-bottom: var(--ui-space-5);
}
.mk-page h2 {
  margin: 0 0 16px;
}
.mk-page h3 {
  font-size: 18px;
  margin: 0;
}
.mk-page p {
  line-height: 1.5;
}
.mk-page small,
.mk-meta {
  font-size: 14px;
  color: var(--ui-muted);
}
.mk-page small {
  display: block;
  line-height: 1.4;
}
.mk-page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.mk-page th,
.mk-page td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--ui-line);
  vertical-align: top;
}
.mk-page th {
  background: var(--ui-subtle);
}
.mk-filters,
.mk-buttons,
.mk-condition-head {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.mk-filters {
  margin: 0 0 24px;
}
.mk-filters p {
  margin: 0;
}
.mk-page label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.mk-page input,
.mk-page select,
.mk-page textarea {
  border: 1px solid var(--ui-input-line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: var(--ui-text);
  background: var(--ui-surface);
  min-height: 48px;
  max-width: 100%;
}
.mk-page textarea {
  min-height: 110px;
  resize: vertical;
}
.mk-page select[multiple] {
  min-height: 130px;
}
.mk-page input:focus-visible,
.mk-page select:focus-visible,
.mk-page textarea:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}
.mk-page .mk-check {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 400;
}
.mk-check input {
  min-height: 22px;
  width: 22px;
  flex-shrink: 0;
  accent-color: var(--ui-accent);
}
.mk-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.mk-metrics strong {
  display: block;
  font-size: 30px;
  margin: 12px 0;
}
.mk-metrics p {
  margin: 8px 0;
}
.mk-metrics progress {
  width: 100%;
  height: 10px;
  accent-color: var(--ui-accent);
  margin: 8px 0;
}
.mk-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--ui-subtle);
  margin-top: 20px;
  border-radius: 12px;
}
.mk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mk-condition {
  padding: 24px 0;
  border-bottom: 1px solid var(--ui-line);
}
.mk-condition:last-child {
  border: 0;
  padding-bottom: 0;
}
.mk-condition-head {
  justify-content: space-between;
}
.mk-proof {
  white-space: pre-wrap;
  border-left: 3px solid var(--ui-accent);
  padding-left: 16px;
}
.mk-page details {
  margin-top: 20px;
}
.mk-page summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.mk-next {
  border-left: 4px solid var(--ui-accent);
  padding-left: 16px;
}
@media (max-width: 1000px) {
  .mk-metrics {
    grid-template-columns: 1fr;
  }
  .mk-metrics strong {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .mk-grid {
    grid-template-columns: 1fr;
  }
  .mk-filters > label {
    width: 100%;
  }
  .mk-form {
    padding: 16px;
  }
  .mk-buttons > button {
    flex: 1;
  }
  .mk-condition-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.mk-page .mk-finance-table {
  table-layout: fixed;
  min-width: 780px;
}
.mk-page .mk-finance-table th,
.mk-page .mk-finance-table td {
  white-space: normal;
  padding: 12px 10px;
  overflow-wrap: break-word;
}
.mk-finance-table th:first-child {
  width: 20%;
}
.mk-finance-table th:last-child {
  width: 19%;
}
.mk-readiness table {
  table-layout: fixed;
}
.mk-readiness th:first-child {
  width: 22%;
}
.mk-readiness th:nth-child(2) {
  width: 23%;
}
.mk-readiness td,
.mk-readiness th {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
}
.att-dialog.att-duty-dialog {
  width: min(850px, calc(100vw - 32px));
}
.att-duty-dialog h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.att-duty-roster {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--ui-info-bg);
  border-radius: var(--ui-radius);
  margin-bottom: 20px;
}
.att-duty-roster svg {
  flex: none;
  color: var(--ui-info);
}
.att-duty-roster p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.att-duty-empty {
  padding: 0 0 18px;
}
.att-duty-empty p {
  margin: 0 0 12px;
}
.att-duty-column-head,
.att-duty-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.35fr);
  gap: 14px;
  align-items: center;
}
.att-duty-column-head {
  font-size: 14px;
  color: var(--ui-muted);
  padding-bottom: 8px;
}
.att-duty-fields {
  padding: 0;
  margin: 0 0 16px;
  border: 0;
  min-width: 0;
}
.att-duty-row {
  padding: 8px 0;
  border-top: 1px solid var(--ui-line);
}
.att-duty-row > * {
  min-width: 0;
}
.att-duty-row input,
.att-duty-row select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  font: inherit;
  font-size: 16px;
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  padding: 10px 12px;
}
.att-duty-name strong {
  font-size: 18px;
}
.att-duty-name small {
  margin-top: 5px;
}
.att-duty-dialog .att-duty-warning {
  color: var(--ui-warning);
  margin-top: 8px;
}
.att-duty-hint {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.55;
}
.att-duty-dialog .att-dialog-body {
  gap: 14px;
}
.att-duty-dialog .att-duty-roster {
  margin-bottom: 0;
}
.att-duty-dialog select:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.att-duty-error:focus,
.att-form-feedback:focus {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
  border-radius: var(--ui-radius);
}
.att-duty-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.shift-duty-link {
  display: block;
  color: var(--ui-link);
  padding: 16px 0;
  font-size: 16px;
}
.att-page .att-duty-summary {
  margin-bottom: 20px;
  padding: 20px 24px;
}
.att-duty-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.att-duty-summary-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ui-muted);
}
.att-duty-summary-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}
.att-duty-summary-list > div {
  min-width: 0;
  border-top: 1px solid var(--ui-line);
  padding-top: 10px;
}
.att-duty-summary-list dt {
  font-size: 14px;
  color: var(--ui-muted);
  margin-bottom: 5px;
}
.att-duty-summary-list dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.att-duty-summary-person {
  font-weight: 600;
  color: var(--ui-text);
}
.att-duty-summary-empty {
  color: var(--ui-muted);
  font-weight: 400;
}
.att-duty-summary-list dd small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ui-warning);
}
.att-duty-summary-updating {
  font-size: 14px;
  color: var(--ui-muted);
  margin: 12px 0 0;
}
@media (max-width: 1100px) {
  .att-duty-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .att-page .att-duty-summary {
    padding: 18px 16px;
  }
  .att-duty-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .att-duty-summary-head > .ui-button {
    width: 100%;
  }
  .att-duty-summary-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .att-duty-summary-list > div {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 12px;
    padding: 10px 0;
  }
  .att-duty-summary-list dt {
    font-size: 16px;
    margin: 0;
  }
  .att-duty-column-head {
    display: none;
  }
  .att-duty-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
  }
  .att-duty-name {
    grid-column: 1;
    grid-row: 1;
  }
  .att-duty-row > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .att-dialog.att-duty-dialog h2 {
    font-size: 21px;
  }
  .att-duty-dialog h2 svg {
    display: none;
  }
}
.att-page {
  color: var(--ui-text);
  font-family: var(--ui-font);
}
.att-page h1 {
  font-size: 30px;
}
.att-page h2 {
  font-size: 21px;
  margin: 0;
}
.att-page p {
  line-height: 1.55;
}
.att-heading-actions,
.att-date-controls,
.att-filters,
.att-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.att-page .ui-button,
.att-dialog .ui-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 16px;
}
.att-page .att-calendar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin: 0 0 16px;
}
.att-day-title {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.att-calendar-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--ui-selected-soft);
  border-radius: 12px;
  color: var(--ui-text);
}
.att-day-title strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  text-transform: capitalize;
}
.att-day-title small {
  margin-top: 5px;
}
.att-calendar .ui-field {
  display: flex;
  min-width: 158px;
  width: 158px;
}
.att-date-controls {
  flex-wrap: nowrap;
  gap: 8px;
}
.att-date-controls > .ui-button {
  padding: 10px 12px;
}
.att-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.att-stats .ui-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  padding: 20px;
}
.att-stats svg {
  color: var(--ui-muted);
  position: absolute;
  right: 18px;
  top: 20px;
}
.att-stats span {
  padding-right: 28px;
  font-size: 16px;
  line-height: 1.4;
}
.att-stats strong {
  font-size: 32px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.att-stats .att-hours {
  font-size: 25px;
}
.att-page small,
.att-dialog small {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.45;
}
.att-earlier {
  border: 1px solid var(--ui-line);
  background: var(--ui-warning-bg);
  border-radius: 12px;
  padding: 0 20px;
  margin: 0 0 20px;
}
.att-earlier summary {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  min-height: 62px;
  list-style: none;
}
.att-earlier summary > svg {
  flex: none;
  color: var(--ui-warning);
}
.att-earlier summary > span {
  flex: 1;
}
.att-earlier summary b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  margin-left: 8px;
  padding: 0 6px;
  background: var(--ui-surface);
  border-radius: 8px;
  font-size: 14px;
}
.att-earlier[open] .att-disclosure-icon {
  transform: rotate(180deg);
}
.att-earlier p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ui-muted);
}
.att-earlier-list {
  max-height: 280px;
  overflow: auto;
}
.att-earlier-list > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--ui-line);
}
.att-page .att-list {
  padding: 0;
  overflow: hidden;
}
.att-list-head {
  padding: 24px 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.att-list-head p {
  margin: 8px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
}
.att-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-input-line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ui-muted);
}
.att-search svg {
  flex: none;
}
.att-search input {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 8px 0 !important;
  color: var(--ui-text);
  font: 16px var(--ui-font);
}
.att-search:focus-within {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.att-search button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  cursor: pointer;
}
.att-filters {
  padding: 0 24px 20px;
  gap: 8px;
}
.att-filters button {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  min-height: 46px;
  cursor: pointer;
}
.att-filters button:hover {
  background: var(--ui-subtle);
}
.att-filters button[aria-pressed=true] {
  background: var(--ui-selected);
  border-color: var(--ui-accent);
  font-weight: 600;
}
.att-filters button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  background: var(--ui-subtle);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ui-muted);
  font-variant-numeric: tabular-nums;
}
.att-filters button[aria-pressed=true] span {
  background: var(--ui-surface);
  color: var(--ui-text);
}
.att-page input[type=checkbox],
.att-dialog input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--ui-link);
  flex: none;
}
.att-table-wrap {
  overflow-x: auto;
}
.att-page .att-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
  table-layout: auto;
}
.att-page .att-table thead th {
  background: var(--ui-subtle);
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-muted);
  padding: 14px 20px;
  border-block: 1px solid var(--ui-line);
  white-space: nowrap;
  text-align: left;
}
.att-page .att-table td,
.att-page .att-table tbody th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ui-line);
  vertical-align: middle;
  background: var(--ui-surface);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}
.att-page .att-table tbody th {
  font-weight: 400;
  min-width: 220px;
  max-width: 280px;
}
.att-page .att-table tbody tr {
  background: var(--ui-surface);
}
.att-page .att-table tr:hover > td,
.att-page .att-table tr:hover > th {
  background: var(--ui-selected-soft);
}
.att-page .att-table .att-person-name {
  display: block;
  font-size: 17px;
  color: var(--ui-text);
  font-weight: 600;
  margin-bottom: 4px;
}
.att-table .ui-badge {
  font-size: 14px;
  font-weight: 400;
  padding: 4px 9px;
  line-height: 1.3;
}
.att-table td > strong {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.att-table small {
  margin-top: 5px;
}
.att-page .att-table td[data-label="\412\440\435\43c\44f  \43d\430  \441\43c\435\43d\435"] {
  min-width: 170px;
  max-width: 240px;
}
.att-table tr:last-child td,
.att-table tr:last-child th {
  border-bottom: 0;
}
.att-table .att-row-action {
  white-space: nowrap;
  text-align: right;
}
.att-table .att-row-action .ui-button {
  min-height: 44px;
  padding: 8px 12px;
}
.att-missing {
  color: var(--ui-muted);
  font-size: 16px;
}
.att-list-foot {
  border-top: 1px solid var(--ui-line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ui-muted);
  font-size: 14px;
}
.att-show-voided {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.att-list-foot a {
  padding: 12px 0;
}
.att-help {
  margin: 20px 0;
  color: var(--ui-muted);
  font-size: 14px;
}
.att-help summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  width: fit-content;
  color: var(--ui-link);
}
.att-help[open] summary > svg:last-child {
  transform: rotate(180deg);
}
.att-help > div {
  max-width: 900px;
  padding: 0 28px;
}
.att-help p {
  margin: 8px 0 14px;
}
.att-footer-links {
  font-size: 14px;
  gap: 24px;
}
.att-footer-links a {
  padding: 12px 0;
}
.att-page a,
.att-link {
  color: var(--ui-link);
}
.att-link {
  border: 0;
  background: transparent;
  font-size: inherit;
  text-decoration: underline;
}
.att-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ui-success);
  padding: 14px 16px;
  margin: 16px 0;
  background: var(--ui-success-bg);
  border-radius: 10px;
}
.att-voided .att-person-name {
  text-decoration: line-through;
}
.att-empty {
  padding-bottom: 28px;
  text-align: center;
}
.att-sr {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.att-view-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 18px;
}
.att-view-switch button {
  min-height: 44px;
  padding: 10px 18px;
  font: 16px var(--ui-font);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-muted);
  cursor: pointer;
}
.att-view-switch button[aria-pressed=true] {
  background: var(--ui-selected);
  color: var(--ui-text);
  font-weight: 600;
}
.att-page .att-month-card {
  padding: 0;
  overflow: hidden;
}
.att-month-calendar .ui-field {
  width: 210px;
}
.att-month-legend {
  display: flex;
  align-items: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--ui-muted);
}
.att-month-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.att-page .att-day-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font-style: normal;
  cursor: pointer;
}
.att-page .att-day-mark--complete {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.att-page .att-day-mark--partial {
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.att-page .att-day-mark--issue {
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}
.att-page .att-day-mark--empty {
  background: var(--ui-surface);
  color: var(--ui-muted);
}
.att-day-mark:hover {
  border-color: var(--ui-input-line);
}
.att-page .att-month-legend .att-day-mark {
  width: 26px;
  min-width: 26px;
  height: 26px;
  cursor: default;
}
.att-month-scroll {
  overflow: auto;
  position: relative;
  max-height: 65vh;
  isolation: isolate;
}
.att-page .att-month-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font: 16px/1.4 var(--ui-font);
  text-align: center;
  table-layout: auto;
}
.att-page .att-month-table th,
.att-page .att-month-table td {
  padding: 4px;
  border: 0;
  border-top: 1px solid var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  vertical-align: middle;
}
.att-page .att-month-table tr {
  background: var(--ui-surface);
}
.att-page .att-month-table td {
  min-width: 52px;
}
.att-page .att-month-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ui-subtle);
}
.att-page .att-month-table thead button {
  width: 44px;
  min-height: 52px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: 16px var(--ui-font);
  border-radius: 8px;
}
.att-page .att-month-table thead button small {
  font-size: 14px;
  line-height: 1.2;
}
.att-page .att-month-table .att-month-weekend {
  background: var(--ui-info-bg);
}
.att-page .att-month-table thead button[aria-current=date] {
  outline: 2px solid var(--ui-link);
  outline-offset: -2px;
}
.att-page .att-month-table .att-month-selected {
  background: var(--ui-selected-soft);
}
.att-page .att-month-table .att-month-person {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  max-width: 220px;
  width: 220px;
  padding: 8px 16px;
  text-align: left;
  white-space: normal;
  font-weight: 600;
  border-right: 1px solid var(--ui-line);
}
.att-page .att-month-table thead .att-month-person {
  z-index: 3;
  font-size: 14px;
}
.att-page .att-month-table .att-month-total {
  padding: 8px 14px;
  min-width: 90px;
  font-weight: 600;
}
.att-page .att-month-table thead .att-month-total {
  font-size: 14px;
}
.att-month-scroll:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: -3px;
}
.att-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background: var(--ui-surface);
  color: var(--ui-text);
  font: 16px/1.5 var(--ui-font);
  box-shadow: var(--ui-modal-shadow);
  overflow: auto;
}
.att-dialog::backdrop {
  background: #14182073;
}
.att-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--ui-line);
}
.att-dialog h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0;
}
.att-dialog-head p {
  margin: 8px 0 0;
  color: var(--ui-muted);
  font-size: 16px;
}
.att-dialog-body {
  padding: 24px;
  display: grid;
  gap: 20px;
}
.att-dialog fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.att-people legend {
  font-weight: 600;
  margin-bottom: 12px;
  width: 100%;
  font-size: 17px;
}
.att-people legend span {
  float: right;
  color: var(--ui-muted);
  font-weight: 400;
  font-size: 14px;
}
.att-people-list {
  max-height: 220px;
  overflow: auto;
  margin: 12px 0;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
}
.att-people-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 58px;
  cursor: pointer;
}
.att-people-list label + label {
  border-top: 1px solid var(--ui-line);
}
.att-people-list label:has(input:checked) {
  background: var(--ui-selected-soft);
}
.att-form-fields {
  display: grid;
  gap: 20px;
}
.att-form-section {
  padding: 18px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
}
.att-form-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 17px;
}
.att-form-section p {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--ui-muted);
}
.att-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.att-dialog .ui-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 16px;
}
.att-dialog .ui-field input,
.att-dialog textarea,
.att-page .att-calendar input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  font: 16px var(--ui-font);
  color: var(--ui-text);
  border: 1px solid var(--ui-input-line);
  background: var(--ui-surface);
  border-radius: 9px;
  padding: 10px 12px;
}
.att-dialog textarea {
  min-height: 85px;
  margin-top: 12px;
}
.att-form-section > small {
  margin-top: 10px;
}
.att-form-section > .ui-button {
  margin-top: 12px;
}
.att-dialog details summary {
  cursor: pointer;
  min-height: 44px;
  color: var(--ui-link);
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.att-finish-fields > summary > span {
  flex: 1;
}
.att-finish-fields[open] > summary > svg:last-child {
  transform: rotate(180deg);
}
.att-finish-fields .att-form-section {
  margin: 12px 0 16px;
}
.att-history > div {
  border-left: 3px solid var(--ui-accent);
  padding: 4px 0 4px 14px;
  margin: 16px 0;
  font-size: 14px;
}
.att-history p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.att-annul {
  border-top: 1px solid var(--ui-line);
  padding-top: 12px;
  font-size: 14px;
}
.att-annul label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
.att-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 18px 24px;
  background: var(--ui-surface);
  border-top: 1px solid var(--ui-line);
  position: sticky;
  bottom: 0;
  z-index: 1;
}
.att-dialog input:focus-visible,
.att-dialog textarea:focus-visible,
.att-page button:focus-visible,
.att-dialog button:focus-visible,
.att-page summary:focus-visible,
.att-dialog summary:focus-visible,
.att-table-wrap:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
@media (max-width: 1250px) {
  .att-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .att-page .att-calendar {
    align-items: flex-start;
    flex-direction: column;
  }
  .att-list-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .att-search {
    max-width: 100%;
  }
}
@media (max-width: 1000px) {
  .att-page .att-table,
  .att-page .att-table tbody {
    display: block;
  }
  .att-page .att-table thead {
    display: none;
  }
  .att-page .att-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px;
    gap: 18px 16px;
    border-top: 1px solid var(--ui-line);
  }
  .att-page .att-table tbody th {
    grid-column: 1/-1;
    max-width: none;
    min-width: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .att-page .att-table .att-person-name {
    margin: 0;
  }
  .att-page .att-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0 !important;
    max-width: none !important;
    background: transparent;
  }
  .att-page .att-table tr:hover > td,
  .att-page .att-table tr:hover > th {
    background: var(--ui-surface);
  }
  .att-page .att-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    color: var(--ui-muted);
    margin-bottom: 5px;
  }
  .att-page .att-table .att-row-action {
    grid-column: 1/-1;
    text-align: left;
  }
  .att-row-action .ui-button {
    width: 100%;
  }
  .att-table-wrap {
    overflow: visible;
  }
}
@media (max-width: 600px) {
  .att-view-switch {
    width: 100%;
  }
  .att-view-switch button {
    flex: 1;
    padding: 10px 12px;
  }
  .att-month-calendar .ui-field {
    width: auto;
    min-width: 0;
  }
  .att-month-legend {
    padding: 0 16px 16px;
    gap: 10px 14px;
  }
  .att-page .att-month-table .att-month-person {
    min-width: 136px;
    max-width: 136px;
    width: 136px;
    padding: 6px 10px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .att-page.ui-page {
    padding: 20px 12px;
  }
  .att-page h1 {
    font-size: 26px;
  }
  .att-page .ui-page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .att-heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .att-heading-actions > .ui-button {
    grid-column: 1/-1;
    padding: 10px 12px;
  }
  .att-heading-actions > .ui-button:last-child {
    flex: 1;
  }
  .att-page .att-calendar {
    padding: 16px;
    gap: 18px;
  }
  .att-day-title strong {
    font-size: 17px;
  }
  .att-date-controls {
    display: grid;
    grid-template-columns: 44px minmax(120px, 1fr) 44px;
    width: 100%;
  }
  .att-calendar .ui-field {
    min-width: 0;
    width: auto;
  }
  .att-date-controls > .ui-button:last-child {
    grid-column: 1/-1;
  }
  .att-month-calendar .att-date-controls > .ui-field {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .att-month-calendar .att-date-controls > .ui-button:first-child {
    grid-column: 1;
    grid-row: 2;
  }
  .att-month-calendar .att-date-controls > .ui-button:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
  }
  .att-month-calendar .att-date-controls > .ui-button:last-child {
    grid-column: 2;
    grid-row: 2;
  }
  .att-stats {
    gap: 10px;
  }
  .att-stats .ui-card {
    padding: 16px;
    gap: 8px;
  }
  .att-stats svg {
    display: none;
  }
  .att-stats span {
    padding: 0;
    font-size: 14px;
  }
  .att-stats strong {
    font-size: 28px;
  }
  .att-stats .att-hours {
    font-size: 22px;
  }
  .att-stats small {
    display: none;
  }
  .att-list-head {
    padding: 20px 16px;
  }
  .att-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 16px 18px;
  }
  .att-filters button {
    justify-content: space-between;
    font-size: 14px;
    padding: 10px;
    gap: 6px;
  }
  .att-page .att-table tr {
    grid-template-columns: 1fr 1fr;
    padding: 18px 16px;
    gap: 18px;
  }
  .att-page .att-table tbody th {
    display: block;
  }
  .att-page .att-table .att-person-name {
    margin-bottom: 10px;
    font-size: 18px;
  }
  .att-page .att-table .att-row-action {
    grid-column: 1/-1;
  }
  .att-list-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .att-earlier {
    padding: 0 14px;
  }
  .att-earlier summary {
    gap: 10px;
    padding: 12px 0;
  }
  .att-earlier-list > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .att-help > div {
    padding: 0 8px;
  }
  .att-footer-links {
    gap: 8px 20px;
  }
  .att-dialog-head,
  .att-dialog-body {
    padding: 18px;
  }
  .att-dialog .att-search {
    min-width: 0;
  }
  .att-form-grid {
    grid-template-columns: 1fr;
  }
  .att-dialog-actions {
    padding: 14px;
    flex-wrap: wrap;
  }
  .att-dialog-actions .ui-button {
    flex: 1;
  }
  .att-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
}
.wh-page {
  padding: 28px 30px;
  max-width: 1900px;
  min-width: 0;
  font-size: 16px;
  color: var(--ui-text);
}
.wh-tabs,
.wh-actions,
.wh-toolbar,
.wh-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wh-tabs {
  margin: 18px 0;
}
.wh-tabs .ui-button {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wh-source {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ui-muted);
  max-width: 1100px;
}
.wh-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.wh-summary .ui-card {
  padding: 20px;
}
.wh-summary strong {
  display: block;
  font-size: 30px;
  margin-top: 12px;
}
.wh-summary span {
  font-size: 14px;
}
.wh-toolbar {
  margin-bottom: 20px;
  align-items: end;
}
.wh-toolbar .wh-field:first-child {
  flex: 1;
  min-width: 210px;
}
.wh-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 10px 0;
  font-weight: 500;
}
.wh-field input,
.wh-field select,
.wh-field textarea {
  min-height: 48px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--ui-surface);
  color: var(--ui-text);
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}
.wh-field small {
  font-weight: 400;
  line-height: 1.45;
}
.wh-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  line-height: 1.5;
  margin: 10px 0;
}
.wh-check input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  accent-color: var(--ui-accent);
}
.wh-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}
.wh-table th {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-line);
}
.wh-table td {
  padding: 16px;
  border-bottom: 1px solid var(--ui-line);
  vertical-align: middle;
  line-height: 1.45;
}
.wh-table td:first-child {
  max-width: 360px;
}
.wh-table td span,
.wh-table td small {
  display: block;
  margin-top: 5px;
}
.wh-table small {
  font-size: 14px;
  color: var(--ui-muted);
}
.wh-table strong {
  font-weight: 600;
}
.wh-pagination {
  margin-top: 18px;
  justify-content: flex-end;
}
.wh-pagination > span {
  margin-right: auto;
  font-size: 14px;
}
.wh-list > button {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 12px;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-surface);
  font: inherit;
  color: var(--ui-text);
  text-align: left;
  cursor: pointer;
}
.wh-list > button:hover {
  background: var(--ui-bg);
}
.wh-list span,
.wh-list small {
  display: block;
  margin-top: 7px;
}
.wh-list small {
  font-size: 14px;
}
.wh-list svg {
  flex-shrink: 0;
}
.wh-dialog {
  width: min(850px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 24px;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  color: var(--ui-text);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
  font-size: 16px;
  line-height: 1.5;
  overflow-y: auto;
  box-sizing: border-box;
}
.wh-dialog::backdrop {
  background: #0006;
}
.wh-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.wh-dialog h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
}
.wh-dialog h3 {
  font-size: 18px;
}
.wh-dialog .ui-card {
  padding: 18px;
  margin: 12px 0;
}
.wh-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.wh-dialog fieldset {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  min-width: 0;
}
.wh-dialog legend {
  font-weight: 600;
  padding: 0 8px;
}
.wh-dialog small {
  font-size: 14px;
  color: var(--ui-muted);
}
.wh-actions {
  margin-top: 24px;
}
.wh-actions .ui-button {
  min-height: 48px;
}
.wh-facts,
.wh-money dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.wh-facts dt,
.wh-money dt {
  font-size: 14px;
  color: var(--ui-muted);
}
.wh-facts dd,
.wh-money dd {
  margin: 6px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.wh-big {
  font-size: 32px;
}
.wh-detail-head {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.wh-danger {
  color: var(--ui-danger);
}
.wh-saved {
  font-weight: 600;
}
.wh-money {
  padding: 18px 0;
}
.wh-dialog details {
  margin-top: 20px;
}
.wh-dialog summary {
  cursor: pointer;
  min-height: 44px;
}
.wh-task-strip {
  margin: 20px 30px;
}
.wh-task-strip a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.wh-task-strip span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wh-page input:focus-visible,
.wh-page select:focus-visible,
.wh-dialog input:focus-visible,
.wh-dialog select:focus-visible,
.wh-dialog textarea:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
@media (max-width: 1050px) {
  .wh-summary {
    grid-template-columns: 1fr 1fr;
  }
  .wh-page {
    padding: 22px;
  }
  .wh-toolbar .wh-field {
    flex: 1;
  }
}
@media (max-width: 600px) {
  .wh-page {
    padding: 16px 12px;
  }
  .wh-summary {
    gap: 10px;
  }
  .wh-summary .ui-card {
    padding: 14px;
  }
  .wh-summary strong {
    font-size: 24px;
  }
  .wh-fields,
  .wh-facts,
  .wh-money dl {
    grid-template-columns: 1fr;
  }
  .wh-dialog {
    padding: 18px;
  }
  .wh-dialog h2 {
    font-size: 21px;
  }
  .wh-tabs .ui-button {
    flex: 1;
  }
  .wh-list > button {
    flex-wrap: wrap;
  }
  .wh-pagination {
    gap: 8px;
  }
  .wh-task-strip a {
    flex-direction: column;
  }
}
.wh-page .wh-table {
  table-layout: fixed;
  min-width: 820px;
  white-space: normal;
}
.wh-table th:nth-child(1) {
  width: 26%;
}
.wh-table th:nth-child(2) {
  width: 18%;
}
.wh-table th:nth-child(3) {
  width: 19%;
}
.wh-table th:nth-child(4) {
  width: 23%;
}
.wh-table th:last-child {
  width: 14%;
}
.wh-page .wh-table td,
.wh-page .wh-table th {
  padding: 14px 12px;
  overflow-wrap: anywhere;
}
.wh-table .ui-button {
  padding-left: 10px;
  padding-right: 10px;
  white-space: normal;
}
.wh-summary small {
  display: block;
  font-size: 14px;
  margin-top: 8px;
  color: var(--ui-muted);
}
.wh-summary strong {
  font-size: clamp(22px, 2.1vw, 30px);
}
.wh-scroll-hint {
  font-size: 14px;
  color: var(--ui-muted);
  margin: 0 0 10px;
}
.wh-page .ui-table-scroll {
  max-height: 65vh;
  overflow: auto;
  scrollbar-width: auto;
}
.wh-page .wh-table th {
  position: sticky;
  top: 0;
  background: var(--ui-subtle);
  z-index: 1;
}
@media (min-width: 1500px) {
  .wh-scroll-hint {
    display: none;
  }
}
.wh-action-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.wh-action-overview h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.wh-action-overview p {
  line-height: 1.6;
  margin: 10px 0 18px;
}
.wh-action-overview small {
  font-size: 14px;
  color: var(--ui-muted);
}
.wh-delivery-list button {
  display: block;
  width: 100%;
  font: inherit;
  text-align: left;
  padding: 10px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  cursor: pointer;
}
.wh-delivery-list span,
.wh-delivery-list small {
  display: block;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .wh-action-overview {
    grid-template-columns: 1fr;
  }
}
.mirror-warehouse h2 {
  margin: 0;
}
.mirror-width {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  margin: 12px 0;
  background: var(--ui-surface);
}
.mirror-width > summary {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}
.mirror-width > summary > strong:before,
.mirror-sizes summary > strong:before {
  content: "\25b8";
  display: inline-block;
  margin-right: 12px;
  color: var(--ui-link);
}
.mirror-width[open] > summary > strong:before,
.mirror-sizes details[open] > summary > strong:before {
  content: "\25be";
}
.mirror-width[open] > summary {
  background: var(--ui-selected-soft);
  border-radius: 12px 12px 0 0;
}
.mirror-totals {
  display: flex;
  gap: 32px;
  align-items: start;
}
.mirror-totals span {
  min-width: 170px;
}
.mirror-totals small {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  margin-top: 3px;
}
.mirror-sizes {
  padding: 0 18px 18px 32px;
}
.mirror-sizes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 16px 4px;
  border-top: 1px solid var(--ui-line);
}
.mirror-table {
  min-width: 750px;
  width: 100%;
}
.mirror-table small {
  display: block;
}
.mirror-sizes .ui-table-scroll {
  margin-bottom: 16px;
}
@media (max-width: 950px) {
  .mirror-width > summary,
  .mirror-sizes summary {
    align-items: start;
    flex-direction: column;
  }
  .mirror-totals {
    gap: 16px;
    flex-wrap: wrap;
  }
  .mirror-totals span {
    min-width: 140px;
  }
  .mirror-sizes {
    padding-left: 16px;
  }
}
.mirror-warehouse .wh-tabs {
  margin: 0 0 12px;
  gap: 8px;
}
.mirror-warehouse .wh-toolbar {
  margin-bottom: 8px;
}
.mirror-warehouse .wh-field {
  margin: 4px 0;
}
.mirror-width {
  margin: 8px 0;
}
.mirror-width > summary {
  padding: 12px 16px;
  min-height: 48px;
  box-sizing: border-box;
}
.mirror-sizes summary {
  padding: 10px 4px;
  min-height: 48px;
  box-sizing: border-box;
}
.mirror-totals {
  gap: 20px;
}
.mirror-totals span {
  min-width: 150px;
  font-size: 16px;
}
.mirror-help {
  font-size: 14px;
  margin: 8px 0;
}
.mirror-help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ui-link);
}
.mirror-table td {
  padding: 10px 12px;
}
.mirror-sizes {
  padding-bottom: 10px;
}
@media (max-width: 950px) {
  .mirror-width > summary,
  .mirror-sizes summary {
    gap: 6px;
  }
  .mirror-totals span {
    min-width: 120px;
  }
  .mirror-totals {
    gap: 12px;
  }
  .mirror-warehouse .wh-check {
    font-size: 14px;
  }
}
.activity-json {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 600px;
}
.mirror-arrival {
  display: flex;
  gap: 6px;
  align-items: center;
}
.wh-page .stock-category-tabs button {
  padding: 10px 12px;
  min-height: 48px;
}
.wh-page .stock-category-tabs {
  gap: 8px;
}
.wh-page .stock-content {
  padding: 16px;
}
.wh-page .stock-section-heading {
  margin-bottom: 12px;
}
.wh-page .stock-source-notice,
.wh-page .stock-tools {
  margin: 12px 0;
}
.wh-page .stock-form-group > summary,
.wh-page .stock-width-group > summary {
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 48px;
}
.wh-page .stock-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.wh-page .stock-category-tabs small {
  display: none;
}
.consumable-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-line);
  flex-wrap: wrap;
}
.consumable-line strong {
  min-width: 220px;
}
.consumable-pack {
  padding: 14px 0;
  border-bottom: 1px solid var(--ui-line);
}
.consumable-pack > summary {
  min-height: 48px;
  cursor: pointer;
}
.consumable-pack > summary > span {
  display: block;
  font-size: 14px;
  margin: 8px 0;
}
.stock-value {
  font-size: 14px;
  margin: 12px 0;
}
.stock-value summary {
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.wh-planning-details {
  margin: 10px 0 16px;
}
.wh-planning-details > summary {
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--ui-link);
}
.wh-page .stock-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.wh-page .stock-category-tabs button {
  width: auto;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.wh-page .stock-category-tabs button span {
  display: block;
}
.wh-page .stock-category-tabs svg {
  flex-shrink: 0;
}
@media (max-width: 1050px) {
  .wh-page .stock-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 450px) {
  .wh-page .stock-category-tabs button {
    font-size: 14px;
    gap: 6px;
    padding: 10px 8px;
  }
}
.ea-actions,
.ea-date,
.ea-filters,
.ea-chart-heading,
.ea-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ea-filters {
  align-items: end;
  margin: 20px 0;
  gap: 24px;
}
.ea-date {
  align-items: end;
}
.ea-date .ui-button {
  min-width: 48px;
}
.ea-person-select {
  min-width: 240px;
  flex: 1;
  max-width: 440px;
}
.ea-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 20px;
}
.ea-page .ui-card {
  min-width: 0;
}
.ea-chart-heading {
  justify-content: space-between;
}
.ea-page h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.ea-page p {
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0;
}
.ea-chart-caption {
  color: var(--ui-muted);
}
.ea-chart-scroll {
  max-width: 100%;
  overflow: auto;
  padding: 12px 0;
}
.ea-plot {
  display: flex;
  gap: 8px;
  min-width: 1090px;
  height: 248px;
}
.ea-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 29px 0 36px;
  min-width: 26px;
  font-size: 14px;
  color: var(--ui-muted);
}
.ea-bars {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(24, minmax(44px, 1fr));
  border-bottom: 1px solid var(--ui-line);
}
.ea-hour {
  background: transparent;
  color: var(--ui-text);
  border: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  padding: 6px 8px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ea-hour:hover {
  background: var(--ui-subtle);
}
.ea-hour-selected {
  background: var(--ui-selected) !important;
}
.ea-hour:focus-visible,
.ea-chart-scroll:focus-visible,
.ea-team button:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.ea-count {
  height: 22px;
  font-weight: 600;
}
.ea-bar-track {
  height: 175px;
  width: 100%;
  display: flex;
  align-items: end;
  border-bottom: 2px solid var(--ui-line);
}
.ea-bar {
  width: 100%;
  background: var(--ui-link);
  border-radius: 5px 5px 0 0;
}
.ea-hour-selected .ea-bar {
  background: var(--ui-text);
}
.ea-note,
.ea-page .ea-footer {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
}
.ea-empty-chart {
  padding: 12px;
  background: var(--ui-subtle);
  border-radius: 10px;
}
.ea-team-list {
  max-height: 410px;
  overflow: auto;
}
.ea-team button {
  display: flex;
  width: 100%;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-surface);
  font: inherit;
  font-size: 16px;
  color: var(--ui-text);
  padding: 14px 8px;
  min-height: 54px;
  cursor: pointer;
}
.ea-team button strong {
  font-size: 14px;
  flex: none;
}
.ea-team button.is-selected {
  background: var(--ui-selected);
}
.ea-list,
.ea-missing {
  margin-top: 20px;
}
.ea-task,
.ea-missing-row {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--ui-line);
  align-items: flex-start;
}
.ea-task-time {
  display: grid;
  grid-template-columns: 18px auto;
  gap: 6px 8px;
  width: 165px;
  flex: none;
}
.ea-task-time strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.ea-task-time small {
  grid-column: 1/-1;
  font-size: 14px;
  color: var(--ui-muted);
}
.ea-task-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ea-task h3 {
  font-size: 18px;
  margin: 0 0 6px;
}
.ea-task summary {
  font-size: 14px;
  color: var(--ui-link);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ea-task details p {
  font-size: 14px;
  color: var(--ui-muted);
}
.ea-comment {
  white-space: pre-wrap;
}
.ea-footer {
  justify-content: flex-start;
  margin-top: 22px;
}
.ea-footer span {
  margin-left: auto;
}
.ea-missing-row > div {
  flex: 1;
}
.ea-dialog {
  padding: 0;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  color: var(--ui-text);
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.ea-dialog::backdrop {
  background: #141c286b;
}
.ea-dialog header,
.ea-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--ui-surface);
  position: sticky;
  z-index: 1;
}
.ea-dialog header {
  top: 0;
  border-bottom: 1px solid var(--ui-line);
}
.ea-dialog h2 {
  font-size: 22px;
  margin: 0;
}
.ea-dialog footer {
  bottom: 0;
  justify-content: flex-end;
  border-top: 1px solid var(--ui-line);
}
.ea-dialog-body {
  padding: 24px;
}
.ea-dialog fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.ea-dialog .ui-field {
  min-width: 0;
}
.ea-dialog textarea {
  min-height: 90px;
}
.ea-form-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ea-dialog [tabindex="-1"]:focus {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}
@media (max-width: 1750px) {
  .ea-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ea-team-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
}
@media (max-width: 650px) {
  .ea-filters,
  .ea-date {
    gap: 10px;
  }
  .ea-date {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    width: 100%;
  }
  .ea-date > .ui-button:last-child {
    grid-column: 1/-1;
  }
  .ea-person-select {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .ea-team-list {
    display: block;
  }
  .ea-task {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ea-task-time {
    width: 100%;
  }
  .ea-task-content {
    flex-basis: 100%;
  }
  .ea-footer span {
    margin: 0;
  }
  .ea-form-time {
    grid-template-columns: 1fr;
  }
  .ea-dialog header,
  .ea-dialog footer,
  .ea-dialog-body {
    padding: 16px;
  }
  .ea-missing-row {
    flex-direction: column;
  }
}
.rt-money-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.rt-money-summary > div {
  display: grid;
  gap: 4px;
}
.rt-money-summary small,
.rt-finance small,
.rt-finance-source {
  font-size: 14px;
  color: var(--ui-muted);
}
.rt-money-summary strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.rt-finance {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.rt-finance h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.rt-finance-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  flex-wrap: wrap;
}
.rt-finance-heading p {
  margin: 0;
}
.rt-finance p {
  line-height: 1.5;
}
.rt-finance-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.rt-finance-filters label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  flex: 1;
}
.rt-finance-filters select {
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--ui-card,var(--ui-surface));
  width: 100%;
}
.rt-finance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rt-finance-metrics > div {
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.rt-finance-metrics strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.rt-finance-metrics span {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.45;
}
.rt-finance-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.rt-finance-groups {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rt-finance-groups li + li {
  border-top: 1px solid var(--ui-line);
}
.rt-finance-groups button,
.rt-finance-cabinet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
}
.rt-finance-groups button {
  cursor: pointer;
  min-height: 48px;
}
.rt-finance-groups button:hover,
.rt-finance-groups button[aria-pressed=true] {
  background: var(--ui-subtle);
}
.rt-finance-groups button:focus-visible {
  outline: 2px solid var(--ui-link);
  outline-offset: 3px;
}
.rt-finance-groups span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rt-finance-groups small {
  display: block;
  margin-top: 5px;
}
.rt-finance-groups strong {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.rt-finance-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.rt-finance-records article {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rt-finance-records header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rt-finance-records header strong {
  white-space: nowrap;
}
.rt-finance-records p {
  margin: 7px 0;
}
.rt-finance-records small {
  display: block;
  margin: 8px 0 12px;
}
.rt-finance-missing {
  padding-left: 20px;
  line-height: 1.6;
}
.rt-finance-missing li + li {
  margin-top: 8px;
}
.rt-finance-method summary {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.rt-finance-method summary:after {
  content: "+";
  margin-left: auto;
}
.rt-finance-method[open] summary:after {
  content: "\2212";
}
@media (max-width: 1100px) {
  .rt-finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-finance-breakdown,
  .rt-finance-records {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .rt-finance-metrics {
    grid-template-columns: 1fr;
  }
  .rt-money-summary {
    align-items: start;
  }
  .rt-money-summary > div {
    width: 100%;
  }
  .rt-finance-groups button,
  .rt-finance-cabinet {
    flex-wrap: wrap;
  }
  .rt-finance-groups span {
    flex-basis: 65%;
  }
  .rt-finance-records header {
    flex-wrap: wrap;
  }
}
.rt-finance-sync {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-subtle);
}
.rt-finance-sync p {
  font-size: 14px;
  line-height: 1.5;
}
.rt-finance-sync-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.rt-finance-sync-list li {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(230px, 2fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ui-line);
}
.rt-finance-sync-list li div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rt-finance-sync-list span {
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .rt-finance-sync-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .rt-finance-sync {
    padding: 12px;
  }
}
.rt-page {
  display: grid;
  gap: 18px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
}
.rt-page h2 {
  font-size: 21px;
  margin: 0;
}
.rt-page h3 {
  font-size: 18px;
  margin: 0;
}
.rt-page p {
  margin: 8px 0;
}
.rt-page small,
.rt-hint {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
}
.rt-page small {
  display: block;
}
.rt-page > .ui-card + .ui-card {
  margin-top: 0;
}
.rt-page .ui-badge {
  gap: 6px;
  white-space: normal;
  align-items: center;
}
.rt-page svg {
  flex: none;
}
.rt-page .ui-button {
  gap: 8px;
}
.rt-page a.ui-button {
  text-decoration: none;
}
.rt-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-muted);
}
.rt-source {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.rt-source > div {
  display: grid;
  gap: 2px;
  flex: 1;
}
.rt-source strong {
  font-size: 16px;
}
.rt-source span {
  font-size: 14px;
  color: var(--ui-muted);
}
.rt-source > small {
  border-left: 1px solid var(--ui-line);
  padding-left: 16px;
}
.rt-source--warning {
  background: var(--ui-warning-bg);
}
.rt-source--warning > svg {
  color: var(--ui-warning);
}
.rt-guide summary,
.rt-history summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ui-link);
  font-weight: 600;
  list-style: none;
}
.rt-guide summary::-webkit-details-marker,
.rt-history summary::-webkit-details-marker {
  display: none;
}
.rt-guide > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 16px 20px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.rt-guide p {
  color: var(--ui-muted);
  font-size: 14px;
}
.rt-guide summary:after {
  content: "+";
  margin-left: 4px;
}
.rt-guide[open] summary:after {
  content: "\2212";
}
.rt-register {
  padding: 0 !important;
  overflow: hidden;
}
.rt-register-filters {
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 16px 20px;
}
.rt-register-filters > .rt-field:first-child {
  flex: 1;
}
.rt-register-filters > .rt-field:nth-child(2) {
  flex: 0 1 250px;
}
.rt-register-filters > .ui-button {
  margin-bottom: 8px;
}
.rt-register .ui-section-tabs {
  padding: 0 20px;
  gap: 20px;
}
.rt-list-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
}
.rt-list-caption > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.rt-table .ui-table-scroll {
  border: 0;
  border-radius: 0;
}
.rt-table table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.rt-table th:first-child {
  width: 25%;
}
.rt-table th:nth-child(2) {
  width: 21%;
}
.rt-table th:nth-child(3) {
  width: 23%;
}
.rt-table th:nth-child(4) {
  width: 21%;
}
.rt-table th:last-child {
  width: 176px;
}
.rt-table td,
.rt-table th {
  padding: 14px 16px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.rt-table td small {
  margin-top: 6px;
}
.rt-order-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--ui-link);
  overflow-wrap: anywhere;
}
.rt-product {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}
.rt-table .rt-order-link {
  padding: 0;
  min-height: 34px;
}
.rt-table td:last-child {
  vertical-align: middle;
}
.rt-table .ui-button {
  white-space: nowrap;
}
.rt-table .ui-badge {
  font-size: 14px;
}
.rt-pagination {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.rt-pagination > span {
  color: var(--ui-muted);
  font-size: 14px;
}
.rt-pagination > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.rt-deadline {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
}
.rt-deadline-label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}
.rt-deadline > strong {
  font-size: 16px;
}
.rt-deadline--warning .rt-deadline-label {
  color: var(--ui-warning);
}
.rt-deadline--danger .rt-deadline-label,
.rt-deadline--danger > strong {
  color: var(--ui-danger);
}
.rt-deadline--info .rt-deadline-label {
  color: var(--ui-info);
}
.rt-deadline--neutral .rt-deadline-label {
  color: var(--ui-muted);
}
.rt-next {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 24px;
  border-top: 4px solid var(--ui-accent);
}
.rt-next-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.rt-next h2 {
  font-size: 24px;
}
.rt-next p {
  max-width: 70ch;
  margin: 8px 0 16px;
}
.rt-next > .rt-deadline {
  border-left: 1px solid var(--ui-line);
  padding-left: 24px;
  align-self: center;
}
.rt-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.rt-facts > div {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rt-facts > div > svg {
  color: var(--ui-muted);
  margin-top: 4px;
}
.rt-facts small:first-child {
  margin-bottom: 3px;
}
.rt-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
.rt-detail-main,
.rt-detail-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.rt-card-header,
.rt-unit header,
.rt-form header,
.rt-form footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.rt-card-header {
  margin-bottom: 14px;
}
.rt-card-header h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rt-card-header h2 svg {
  color: var(--ui-muted);
}
.rt-empty-inline {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  color: var(--ui-muted);
}
.rt-empty-inline p {
  font-size: 14px;
}
.rt-empty-inline b {
  color: var(--ui-text);
}
.rt-unit {
  padding: 18px 0;
  border-top: 1px solid var(--ui-line);
}
.rt-unit header {
  align-items: start;
}
.rt-parts,
.rt-file-list,
.rt-task-list,
.rt-deadlines,
.rt-evidence-checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.rt-parts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ui-line);
  padding: 10px 0;
  align-items: start;
}
.rt-location {
  display: flex;
  gap: 7px;
  align-items: center;
}
.rt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rt-file-list {
  display: grid;
  gap: 0;
}
.rt-file-list li {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--ui-line);
  overflow-wrap: anywhere;
}
.rt-file-list li > div {
  flex: 1;
  min-width: 0;
}
.rt-file-list a {
  color: var(--ui-link);
  text-decoration: underline;
  display: inline-block;
  min-height: 24px;
}
.rt-file-list li > svg:last-child {
  color: var(--ui-muted);
  margin-top: 3px;
}
.rt-evidence-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rt-evidence-checklist li {
  display: flex;
  gap: 10px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  padding: 12px;
}
.rt-evidence-checklist li > svg {
  color: var(--ui-muted);
  margin-top: 2px;
}
.rt-evidence-checklist .is-done > svg {
  color: var(--ui-success);
}
.rt-evidence-checklist b {
  font-size: 14px;
}
.rt-upload-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ui-link);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.rt-upload-details > summary::-webkit-details-marker {
  display: none;
}
.rt-upload {
  border-top: 1px solid var(--ui-line);
  margin-top: 10px;
  padding-top: 18px;
}
.rt-upload-progress {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-size: 14px;
}
.rt-upload-progress:empty {
  display: none;
}
.rt-upload-progress progress {
  width: 100%;
  height: 12px;
  accent-color: var(--ui-link);
}
.rt-upload .ui-button {
  margin: 4px 8px 4px 0;
}
.rt-callout {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
  font-size: 14px;
  margin-top: 14px;
}
.rt-deadlines {
  display: grid;
  gap: 14px;
}
.rt-deadlines li {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ui-line);
}
.rt-deadlines li > svg {
  margin-top: 3px;
  color: var(--ui-muted);
}
.rt-deadlines span {
  display: block;
  margin-top: 4px;
}
.rt-people {
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}
.rt-people dt {
  font-size: 14px;
  color: var(--ui-muted);
}
.rt-people dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.rt-task-list {
  display: grid;
  gap: 16px;
}
.rt-task-list li {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ui-line);
}
.rt-task-list li:last-child {
  padding-bottom: 0;
  border: 0;
}
.rt-task-list a {
  color: var(--ui-link);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.rt-task-list .ui-badge {
  justify-self: start;
}
.rt-history {
  border-top: 1px solid var(--ui-line);
  padding: 8px 0;
}
.rt-history summary span {
  font-size: 14px;
  color: var(--ui-muted);
}
.rt-history-item {
  padding: 12px 0 12px 30px;
  border-left: 2px solid var(--ui-line);
  margin-left: 10px;
}
.rt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.rt-saved {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ui-success);
  font-size: 16px;
}
.rt-form {
  max-width: 1000px;
  width: 100%;
}
.rt-form-intro {
  padding: 12px 16px;
  border-left: 3px solid var(--ui-accent);
  background: var(--ui-selected-soft);
}
.rt-form form {
  display: grid;
  gap: 10px;
}
.rt-form .rt-eyebrow {
  display: block;
  margin-bottom: 4px;
}
.rt-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.rt-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 8px 0;
}
.rt-field > span {
  font-weight: 600;
}
.rt-field input,
.rt-field select,
.rt-field textarea {
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.rt-field textarea {
  min-height: 82px;
  resize: vertical;
}
.rt-field small {
  font-weight: 400;
}
.rt-check {
  display: flex;
  gap: 12px;
  align-items: start;
  min-height: 44px;
  margin: 12px 0;
}
.rt-check input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--ui-link);
  margin-top: 1px;
}
.rt-form footer {
  justify-content: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--ui-line);
}
.rt-form footer span {
  font-size: 14px;
  color: var(--ui-muted);
}
.rt-component {
  display: grid;
  grid-template-columns: minmax(210px, 2fr) 100px minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.rt-component .ui-button {
  margin-bottom: 8px;
}
.rt-component:has(label:nth-child(4)) {
  grid-template-columns: 1fr 100px 1fr 1fr auto;
}
.rt-page fieldset {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  margin: 12px 0;
  min-width: 0;
}
.rt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1200px) {
  .rt-detail-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .rt-detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-detail-side > .ui-card:first-child {
    grid-row: span 2;
  }
  .rt-table table {
    table-layout: auto;
    min-width: 850px;
  }
}
@media (max-width: 950px) {
  .rt-source > small {
    display: none;
  }
  .rt-next {
    grid-template-columns: 1fr;
  }
  .rt-next > .rt-deadline {
    border-left: 0;
    border-top: 1px solid var(--ui-line);
    padding: 16px 0 0;
  }
  .rt-guide > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rt-facts {
    grid-template-columns: 1fr;
  }
  .rt-table table {
    min-width: 0;
  }
  .rt-table table,
  .rt-table tbody,
  .rt-table tr,
  .rt-table td {
    display: block;
  }
  .rt-table thead {
    display: none;
  }
  .rt-table tr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ui-line);
  }
  .rt-table td {
    padding: 7px 0;
    border: 0;
    max-width: none;
  }
  .rt-table td[data-label]:not(:first-child):before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    color: var(--ui-muted);
    margin-bottom: 5px;
  }
  .rt-table td:empty {
    display: none;
  }
  .rt-table td:last-child {
    text-align: right;
  }
  .rt-table .ui-table-scroll {
    overflow: visible;
  }
  .rt-detail-side {
    grid-template-columns: 1fr;
  }
  .rt-detail-side > .ui-card:first-child {
    grid-row: auto;
  }
  .rt-fields {
    grid-template-columns: 1fr;
  }
  .rt-component,
  .rt-component:has(label:nth-child(4)) {
    grid-template-columns: 1fr 100px;
  }
  .rt-component > label:first-child {
    grid-column: 1/-1;
  }
  .rt-register-filters {
    flex-wrap: wrap;
  }
  .rt-register-filters > .rt-field:first-child {
    flex-basis: 100%;
  }
  .rt-register-filters > .rt-field:nth-child(2) {
    flex: 1;
  }
}
@media (max-width: 600px) {
  .rt-page {
    gap: 14px;
  }
  .rt-next h2 {
    font-size: 21px;
  }
  .rt-next .ui-button {
    width: 100%;
  }
  .rt-evidence-checklist {
    grid-template-columns: 1fr;
  }
  .rt-source {
    align-items: start;
    padding: 12px;
  }
  .rt-source > svg {
    margin-top: 3px;
  }
  .rt-register .ui-section-tabs {
    gap: 4px 16px;
    padding: 0 16px;
  }
  .rt-register .ui-section-tabs button {
    font-size: 14px;
    min-height: 44px;
  }
  .rt-register-filters,
  .rt-list-caption,
  .rt-pagination {
    padding: 14px 16px;
  }
  .rt-list-caption {
    gap: 4px;
  }
  .rt-pagination > div {
    width: 100%;
    justify-content: space-between;
  }
  .rt-table tr {
    padding: 14px 16px;
  }
  .rt-card-header .ui-button,
  .rt-footer .rt-actions {
    width: 100%;
  }
  .rt-footer .ui-button {
    flex: 1;
  }
}
.rt-table td,
.rt-table th {
  white-space: normal;
}
.rt-table td > span,
.rt-table td > small {
  white-space: normal;
}
.rt-deadline-label {
  flex-wrap: wrap;
}
.rt-deadline-label b {
  min-width: 0;
}
.rt-table td:last-child {
  white-space: nowrap;
}
.rt-sync-details {
  margin-top: 8px;
}
.rt-sync-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ui-link,var(--ui-text));
}
.rt-sync-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rt-sync-details li {
  display: grid;
  gap: 3px;
}
.rt-card-page.rt-page {
  gap: 14px;
}
.rt-process-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rt-process-heading > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.rt-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rt-process-step {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.rt-process-target {
  display: block;
  width: 100%;
  height: 100%;
  padding: 14px;
  border: 0;
  border-radius: inherit;
  text-align: left;
  background: transparent;
  color: inherit;
  font: inherit;
}
button.rt-process-target {
  cursor: pointer;
}
button.rt-process-target:hover {
  box-shadow: inset 0 0 0 2px var(--ui-accent);
}
button.rt-process-target:focus-visible {
  outline: 3px solid var(--ui-text);
  outline-offset: 3px;
}
button.rt-process-target:disabled {
  cursor: not-allowed;
  opacity: .65;
}
.rt-process-title {
  display: block;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.rt-process-note {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 7px;
  color: var(--ui-muted);
}
.rt-process-link {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}
.rt-process-step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 33px;
  right: -15px;
  width: 14px;
  border-top: 2px solid var(--ui-line);
}
.rt-process-step.is-done:not(:last-child):after {
  border-color: var(--ui-success);
}
.rt-process-track {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.rt-process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.rt-process-status {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ui-muted);
}
.rt-process-step.is-done .rt-process-icon {
  color: var(--ui-success);
  background: var(--ui-success-bg);
}
.rt-process-step.is-done .rt-process-status {
  color: var(--ui-success);
}
.rt-process-step.is-current {
  background: var(--ui-selected-soft);
  border-color: var(--ui-accent);
  box-shadow: inset 0 0 0 1px var(--ui-accent);
}
.rt-process-step.is-current .rt-process-icon {
  background: var(--ui-accent);
  color: var(--ui-text);
}
.rt-process-step.is-current .rt-process-status {
  color: var(--ui-text);
}
.rt-process-step.is-verify {
  background: var(--ui-warning-bg);
}
.rt-process-step.is-verify .rt-process-icon,
.rt-process-step.is-verify .rt-process-status {
  color: var(--ui-warning);
}
.rt-card-page .rt-process-step h3 {
  font-size: 17px;
  line-height: 1.4;
}
.rt-process-number {
  font-weight: 400;
  color: var(--ui-muted);
}
.rt-card-page .rt-process-step p {
  font-size: 14px;
  line-height: 1.45;
  margin: 7px 0 0;
  color: var(--ui-muted);
}
.rt-process-claim {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--ui-line);
}
.rt-process-claim > div {
  flex: 1;
  min-width: 180px;
}
.rt-process-claim > div > span {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.rt-process-claim > svg {
  color: var(--ui-muted);
}
@media (max-width: 1000px) {
  .rt-process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-process-step:nth-child(2):after {
    display: none;
  }
}
@media (max-width: 600px) {
  .rt-process-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rt-process-step {
    padding: 0;
    min-height: 88px;
  }
  .rt-process-target {
    padding: 12px 12px 12px 62px;
  }
  .rt-process-track {
    margin-bottom: 4px;
  }
  .rt-process-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
  }
  .rt-process-step:not(:last-child):after,
  .rt-process-step:nth-child(2):after {
    display: block;
    inset: auto auto -11px 28px;
    width: 0;
    height: 10px;
    border-top: 0;
    border-left: 2px solid var(--ui-line);
  }
  .rt-process-step.is-done:not(:last-child):after {
    border-left-color: var(--ui-success);
  }
  .rt-process-claim {
    gap: 10px;
  }
  .rt-process-claim > div {
    min-width: 0;
    flex-basis: calc(100% - 35px);
  }
  .rt-process-claim > .ui-button {
    margin-left: auto;
  }
}
.rt-card-page .ui-page-heading,
.navigation-content .rt-card-page > .ui-notice,
.rt-card-page .ui-card {
  margin: 0;
}
.rt-card-page .ui-card {
  padding: 18px;
}
.rt-card-page .ui-page-heading h1 {
  font-size: 28px;
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}
.rt-card-page .ui-page-actions {
  gap: 10px;
}
.rt-card-page .rt-facts {
  padding: 14px 18px;
  gap: 16px;
}
.rt-card-workspace,
.rt-card-panel,
.rt-card-sidebar {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.rt-card-workspace[hidden],
.rt-card-panel[hidden] {
  display: none;
}
.rt-card-page .rt-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid var(--ui-accent);
}
.rt-next-action > div {
  min-width: 0;
}
.rt-card-page .rt-next-action h2 {
  font-size: 20px;
  margin-top: 2px;
}
.rt-card-page .rt-next-action p {
  margin: 4px 0 0;
  max-width: 78ch;
}
.rt-next-action > .ui-button {
  flex: none;
}
.rt-card-layout,
.rt-card-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 16px;
}
.rt-card-start {
  align-items: stretch;
}
.rt-card-start .rt-deadline-card h2 {
  font-size: 18px;
}
.rt-card-start .rt-deadline-card > .ui-button {
  margin-top: 8px;
}
.rt-card-content {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  scroll-margin-top: 16px;
}
.rt-card-content > .ui-section-tabs {
  padding: 0 18px;
  gap: 18px;
}
.rt-card-content > .ui-section-tabs button {
  min-height: 48px;
}
.rt-card-panel > .ui-card {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}
.rt-card-panel > .ui-card + .ui-card {
  border-top: 1px solid var(--ui-line);
}
.rt-card-panel > .ui-button,
.rt-card-panel > .rt-hint {
  margin: 0 18px 18px;
  justify-self: start;
}
.rt-card-page .rt-unit {
  padding: 14px 0;
}
.rt-card-page .rt-card-header {
  margin-bottom: 10px;
}
.rt-card-sidebar h2 {
  font-size: 18px;
}
.rt-card-sidebar .rt-deadline-card > .ui-button {
  width: 100%;
  margin-top: 12px;
}
.rt-card-sidebar .rt-people {
  gap: 10px;
  margin-bottom: 12px;
}
.rt-card-sidebar .rt-people > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.rt-card-sidebar .rt-people dd {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.rt-card-sidebar .rt-people dt {
  flex: 0 0 98px;
}
.rt-card-sidebar .rt-hint {
  margin-bottom: 0;
}
.rt-card-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ui-line);
  padding-top: 14px;
}
.rt-card-page .rt-form {
  max-width: none;
}
@media (max-width: 1100px) {
  .rt-card-layout,
  .rt-card-start {
    grid-template-columns: minmax(0, 1fr);
  }
  .rt-card-sidebar {
    display: contents;
  }
  .rt-card-start > .rt-deadline-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    align-items: center;
  }
  .rt-card-start > .rt-deadline-card > .rt-card-header {
    display: none;
  }
  .rt-card-start > .rt-deadline-card > .ui-button {
    width: auto;
    margin: 0;
  }
  .rt-card-sidebar .rt-people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .rt-card-sidebar .rt-people > div {
    display: block;
  }
  .rt-card-sidebar .rt-people dd {
    text-align: left;
  }
}
@media (max-width: 650px) {
  .rt-card-page .ui-page-heading h1 {
    font-size: 24px;
  }
  .rt-card-page .ui-page-heading,
  .rt-card-page .ui-page-actions {
    width: 100%;
    gap: 10px;
  }
  .rt-card-page .ui-page-actions {
    justify-content: space-between;
  }
  .rt-card-page .rt-next-action {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .rt-card-page .rt-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rt-card-content > .ui-section-tabs {
    gap: 0 16px;
    padding: 0 14px;
  }
  .rt-card-start > .rt-deadline-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rt-card-start > .rt-deadline-card > .ui-button {
    justify-self: start;
  }
  .rt-card-page .ui-card {
    padding: 14px;
  }
  .rt-card-sidebar .rt-people {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rt-card-sidebar .rt-people > div {
    display: flex;
  }
  .rt-card-sidebar .rt-people dd {
    text-align: right;
  }
  .rt-card-tools > .rt-actions,
  .rt-card-tools .ui-button {
    width: 100%;
  }
  .rt-card-page .rt-unit header {
    gap: 8px;
  }
}
.rt-stage-records {
  margin-top: 16px;
  padding: 16px;
  background: var(--ui-subtle);
  border-radius: var(--ui-radius);
  scroll-margin-top: 16px;
}
.rt-stage-records > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rt-stage-records ul,
.rt-event-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.rt-stage-records li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}
.rt-stage-records li > svg {
  color: var(--ui-success);
  flex: none;
  margin-top: 3px;
}
.rt-stage-records li > div {
  min-width: 0;
}
.rt-stage-records li span,
.rt-stage-records li small {
  display: block;
  margin-top: 3px;
}
.rt-stage-records li p {
  margin: 4px 0 0;
}
.rt-stage-records small,
.rt-event-list small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.rt-history-durations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.rt-history-durations > div {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 12px;
  min-width: 0;
}
.rt-history-durations small {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.rt-history-dates {
  border-block: 1px solid var(--ui-line);
  margin: 16px 0;
}
.rt-history-dates summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.rt-history-dates dl {
  margin: 0 0 14px;
}
.rt-history-dates dl > div {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--ui-line);
}
.rt-history-dates dd {
  margin: 0;
}
.rt-history-dates small {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
  margin-top: 3px;
}
.rt-full-history .ui-section-tabs {
  flex-wrap: wrap;
  gap: 0 16px;
}
.rt-event-list > li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 22px;
  min-width: 0;
}
.rt-event-list > li:not(:last-child):before {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 0;
  border-left: 2px solid var(--ui-line);
}
.rt-event-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--ui-subtle);
  border-radius: 50%;
  color: var(--ui-muted);
}
.rt-event-list > li > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.rt-event-list header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.rt-event-list time {
  color: var(--ui-muted);
  font-size: 14px;
}
.rt-event-list small {
  display: block;
  margin: 3px 0;
}
.rt-event-list p {
  margin: 5px 0;
  white-space: pre-wrap;
}
@media (max-width: 650px) {
  .rt-history-dates dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .rt-history-durations {
    grid-template-columns: 1fr;
  }
  .rt-stage-records {
    padding: 12px;
  }
  .rt-stage-records > header {
    flex-wrap: wrap;
  }
}
.rt-processing {
  gap: 6px;
}
.rt-processing > strong {
  font-size: 20px;
}
.rt-processing > span {
  font-size: 16px;
}
.rt-processing > small {
  font-size: 14px;
  line-height: 1.45;
}
.rt-other-deadline {
  font-size: 16px;
  margin: 16px 0 8px;
}
.rt-form .rt-processing {
  padding: 16px 0;
  border-bottom: 1px solid var(--ui-line);
  margin-bottom: 16px;
}
.rt-processing-rule summary {
  color: var(--ui-link);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.rt-processing-rule summary:after {
  content: " +";
  margin-left: 6px;
}
.rt-processing-rule[open] summary:after {
  content: " \2212";
}
.rt-processing-rule p {
  font-size: 14px;
  margin: 4px 0 8px;
  line-height: 1.45;
}
.rt-card-start {
  grid-template-columns: 1fr;
  align-items: start;
}
.rt-card-start > .rt-deadline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: start;
}
.rt-card-start > .rt-deadline-card:has(.rt-nearest) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.rt-nearest .rt-other-deadline {
  margin: 0 0 8px;
}
.rt-card-start > .rt-deadline-card > .ui-button {
  margin: 0;
}
@media (max-width: 700px) {
  .rt-card-start > .rt-deadline-card,
  .rt-card-start > .rt-deadline-card:has(.rt-nearest) {
    grid-template-columns: 1fr;
  }
  .rt-card-start > .rt-deadline-card > .ui-button {
    justify-self: start;
  }
}
.market-settings {
  min-width: 0;
  color: var(--ui-text);
  font: 16px/1.55 var(--ui-font);
}
.market-settings > .ui-section-tabs {
  padding-inline: 0;
  margin-bottom: 24px;
}
.settings-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.settings-card {
  background: var(--ui-surface);
  padding: 24px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  min-width: 0;
}
.settings-card h2 {
  font-size: 23px;
  margin: 0 0 16px;
}
.settings-card p {
  line-height: 1.55;
}
.settings-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.settings-note {
  padding: 16px;
  background: var(--ui-info-bg);
  border: 1px solid var(--ui-line);
  color: var(--ui-info);
  border-radius: var(--ui-radius);
  line-height: 1.55;
  margin-bottom: 24px;
}
.settings-empty {
  padding: 24px 0;
  color: var(--ui-muted);
}
.settings-card label {
  display: block;
  margin: 18px 0;
  font-weight: 600;
}
.settings-card input,
.settings-card select {
  display: block;
  width: 100%;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  padding: 10px 12px;
  min-height: 48px;
  font: 16px/1.45 var(--ui-font);
  margin-top: 8px;
  background: var(--ui-surface);
  color: var(--ui-text);
}
.settings-help {
  font-size: 14px;
  color: var(--ui-muted);
}
.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.settings-card button {
  border: 1px solid var(--ui-input-line);
  background: var(--ui-surface);
  color: var(--ui-text);
  padding: 10px 14px;
  min-height: 48px;
  border-radius: var(--ui-radius-sm);
  font: 16px/1.45 var(--ui-font);
}
.settings-card .settings-primary {
  background: var(--ui-accent);
  color: var(--ui-text);
  border-color: var(--ui-accent);
}
.settings-account {
  border-top: 1px solid var(--ui-line);
  padding: 18px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.settings-account > div {
  flex: 1 0 100%;
  min-width: 180px;
  overflow-wrap: anywhere;
}
.settings-account span,
.settings-account small {
  display: block;
  margin-top: 6px;
  color: var(--ui-muted);
  font-size: 14px;
}
.settings-feedback {
  padding: 16px;
  border-radius: var(--ui-radius);
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.settings-feedback.error {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.marketing-fields {
  border-top: 1px solid var(--ui-line);
  margin-top: 24px;
  padding-top: 16px;
  margin-bottom: 24px;
}
.settings-card .marketing-toggle,
.settings-card label.user-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
}
.settings-card label.user-check {
  margin: 14px 0;
}
.settings-card .marketing-toggle input,
.settings-card .user-check input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  flex: none;
}
@media (max-width: 850px) {
  .settings-columns {
    grid-template-columns: 1fr;
  }
}
.label-page {
  font: 16px/1.55 var(--ui-font);
  color: var(--ui-text);
  min-width: 0;
}
.label-page p {
  line-height: 1.55;
  margin: 12px 0;
}
.label-tools {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.label-tools label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  color: var(--ui-text);
}
.label-tools input {
  min-width: 240px;
}
.label-tools input,
.label-tools select {
  min-height: 48px;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  color: var(--ui-text);
  padding: 10px 12px;
  font: inherit;
}
.label-tools > button {
  min-height: 48px;
}
.label-table {
  overflow: auto;
  max-height: 72vh;
  margin-top: 16px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  max-width: 100%;
}
.label-table table {
  width: 100%;
  min-width: 1220px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.label-table td,
.label-table th {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: normal;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-text);
  font-size: 16px;
}
.label-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ui-subtle);
  font-weight: 600;
}
.label-table th:nth-child(1) {
  width: 11%;
}
.label-table th:nth-child(2) {
  width: 15%;
}
.label-table th:nth-child(3) {
  width: 14%;
}
.label-table th:nth-child(4) {
  width: 12%;
}
.label-table th:nth-child(5) {
  width: 9%;
}
.label-table th:nth-child(6) {
  width: 10%;
}
.label-table th:nth-child(7) {
  width: 19%;
}
.label-table th:nth-child(8) {
  width: 10%;
}
.label-table small {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
  margin-top: 5px;
}
.label-product + .label-product {
  margin-top: 12px;
}
.label-product strong {
  color: var(--ui-text);
}
.label-table .ui-table-link {
  white-space: nowrap;
  padding: 8px 0;
  font-size: 16px;
  border: 0;
  background: transparent;
  color: var(--ui-link);
  font-weight: 400;
}
.internal-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.full-order-number {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--ui-text);
  overflow-wrap: anywhere;
}
.production-stages {
  display: flex;
  gap: 0;
  width: 170px;
  max-width: 100%;
  height: 14px;
  border: 1px solid var(--ui-input-line);
  border-radius: 2px;
  overflow: hidden;
  margin: 3px 0 6px;
}
.production-stage {
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--ui-line);
}
.production-stage:last-child {
  border: 0;
}
.production-stage.complete {
  background: var(--ui-success);
}
.production-stage.incomplete,
.production-stage.waiting,
.production-stage.working {
  background: var(--ui-link);
}
.production-stage.unknown {
  background:
    repeating-linear-gradient(
      135deg,
      var(--ui-subtle),
      var(--ui-subtle) 3px,
      var(--ui-input-line) 3px,
      var(--ui-input-line) 4px);
}
.production-stage.not-needed {
  background: var(--ui-surface);
}
.production-stage.blocked {
  background: var(--ui-danger);
}
.production-cell .production-blocked {
  color: var(--ui-danger);
}
.stages-legend,
.label-note {
  font-size: 14px;
  color: var(--ui-muted);
}
.legend-green {
  color: var(--ui-success);
}
.legend-blue {
  color: var(--ui-link);
}
.legend-unknown {
  color: var(--ui-muted);
}
.label-action > strong {
  display: block;
  font-size: 16px;
}
.label-action p {
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0;
  color: var(--ui-muted);
}
.label-state-action > strong,
.label-state-access > strong,
.label-state-manual > strong {
  color: var(--ui-danger);
}
.label-state-action {
  border-left: 3px solid var(--ui-danger);
  padding-left: 12px;
}
.label-state-requesting > strong,
.label-state-waiting > strong {
  color: var(--ui-info);
}
.label-state-ready > strong {
  color: var(--ui-success);
}
.label-retry-time {
  font-weight: 600;
}
.label-download,
.label-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-accent);
  border: 1px solid var(--ui-accent);
  color: var(--ui-text) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}
.label-download:hover,
.label-request:hover {
  background: var(--ui-accent-hover);
  text-decoration: none;
}
.label-error {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
  padding: 16px;
  border-radius: var(--ui-radius);
}
.order-details-window {
  width: min(850px, 94vw);
  padding: 24px;
  font-size: 16px;
  color: var(--ui-text);
}
.order-details-window > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}
.order-details-window h2 {
  font-size: 24px;
  margin: 0;
}
.order-details-window h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}
.order-details-window p {
  font-size: 16px;
}
.detail-order-identifiers {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.detail-order-identifiers small {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.detail-order-identifiers .internal-number {
  display: block;
}
.order-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.order-details-grid > div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-line);
}
.order-details-grid dt {
  font-size: 14px;
  color: var(--ui-muted);
}
.order-details-grid dd {
  margin: 6px 0 0;
  font-size: 16px;
}
.label-history summary {
  font-size: 16px;
  min-height: 48px;
  padding: 12px 0;
  cursor: pointer;
}
@media (max-width: 600px) {
  .label-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .label-tools input {
    min-width: 0;
    width: 100%;
  }
  .order-details-grid {
    grid-template-columns: 1fr;
  }
  .order-details-window {
    padding: 18px;
  }
  .order-details-window > header {
    align-items: flex-start;
  }
}
.stock-workspace {
  --stock-ink:#21354b;
  --stock-blue:#eaf2f9;
  --stock-sand:#f9edd1;
  --stock-accent:#185bc8;
  color: var(--stock-ink);
  padding: 0;
  min-width: 0;
}
.stock-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.stock-eyebrow {
  font-size: var(--ui-text-sm);
  font-weight: 750;
  letter-spacing: .13em;
  color: var(--ui-muted);
}
.stock-page-header h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  font-size: 30px;
  letter-spacing: -.8px;
  font-weight: 750;
}
.stock-read-badge {
  font-size: var(--ui-text-sm);
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid var(--ui-line);
  color: var(--ui-info);
  background: var(--ui-subtle);
  padding: 6px 9px;
  border-radius: 7px;
}
.stock-page-header p {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin: 0;
}
.stock-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: var(--ui-text-sm);
  font-weight: 650;
  color: var(--ui-text);
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: 10px;
  padding: 10px 13px;
  text-decoration: none;
}
.stock-source-link:hover {
  background: var(--ui-subtle);
}
.stock-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 17px;
}
.stock-category-tabs > button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  color: var(--ui-muted);
  text-align: left;
  transition: background .15s, border-color .15s;
}
.stock-category-tabs > button svg {
  flex-shrink: 0;
}
.stock-category-tabs > button > span {
  font-size: var(--ui-text-sm);
  font-weight: 650;
}
.stock-category-tabs small {
  display: block;
  font-size: var(--ui-text-sm);
  font-weight: 400;
  margin-top: 4px;
  opacity: .8;
}
.stock-category-tabs > button.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
  box-shadow: 0 3px 12px #1b56b420;
}
.stock-category-tabs > button:hover:not(.active) {
  background: var(--ui-selected);
  border-color: var(--ui-line);
}
.stock-source-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ui-text);
  background: var(--ui-subtle);
  padding: 10px 13px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.stock-source-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.stock-source-notice p {
  font-size: var(--ui-text-sm);
  line-height: 1.6;
  margin: 0;
}
.stock-content {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  padding: 22px;
  overflow: hidden;
  min-width: 0;
}
.stock-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.stock-section-heading h3 {
  font-size: 22px;
  margin: 0 0 7px;
  font-weight: 750;
  letter-spacing: -.3px;
}
.stock-section-heading p {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.5;
  margin: 0;
}
.stock-section-total {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: var(--ui-subtle);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--ui-text);
}
.stock-section-total b {
  font-size: 30px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stock-section-total > span {
  max-width: 95px;
  font-size: var(--ui-text-sm);
  line-height: 1.5;
}
.stock-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: 10px;
  padding: 10px 12px;
  flex: 1;
  min-width: 180px;
  color: var(--ui-muted);
}
.stock-search input {
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  width: 100%;
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  padding: 0 !important;
  min-width: 0;
}
.stock-search button {
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  padding: 1px;
  display: flex;
}
.stock-known-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  cursor: pointer;
}
.stock-known-filter input {
  accent-color: #185bc8;
  width: 15px;
  height: 15px;
}
.stock-stage-tabs {
  display: flex;
  border: 1px solid var(--ui-line);
  background: var(--ui-subtle);
  border-radius: 9px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 3px;
  gap: 4px;
}
.stock-stage-tabs > button {
  background: transparent;
  border: 0;
  color: var(--ui-info);
  font-size: var(--ui-text-sm);
  padding: 8px 13px;
  border-radius: 6px;
}
.stock-stage-tabs > button.active {
  background: var(--ui-surface);
  color: var(--ui-info);
  font-weight: 700;
  box-shadow: 0 1px 5px #16365515;
}
.stock-form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}
.stock-form-tabs > button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  color: var(--ui-muted);
  padding: 8px 11px;
  border-radius: 10px;
  text-align: left;
  font-size: var(--ui-text-sm);
}
.stock-form-tabs small {
  display: block;
  font-size: var(--ui-text-sm);
  opacity: .75;
  margin-top: 3px;
}
.stock-form-tabs > button.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.stock-shape-icon {
  width: 23px;
  height: 29px;
  flex-shrink: 0;
}
.stock-form-tabs .stock-shape-icon {
  width: 18px;
  height: 24px;
}
.stock-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  margin: 0 0 13px;
}
.stock-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stock-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 3px;
}
.stock-finished-groups,
.stock-material-groups {
  display: grid;
  gap: 17px;
}
.stock-form-group,
.stock-material-group {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.stock-form-group > summary,
.stock-material-group > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  background: var(--stock-blue);
  color: var(--ui-text);
}
.stock-form-group h4,
.stock-material-group h4 {
  font-size: 14px;
  font-weight: 750;
  margin: 0;
}
.stock-form-group > summary > span {
  margin-left: auto;
  font-size: 23px;
  font-weight: 750;
  text-align: right;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stock-form-group > summary > span small {
  display: block;
  font-size: var(--ui-text-sm);
  font-weight: 500;
  margin-top: 4px;
  color: var(--ui-muted);
}
.stock-width-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--stock-sand);
  padding: 9px 15px;
  font-size: var(--ui-text-sm);
  list-style: none;
  cursor: pointer;
  color: var(--ui-text);
  border-top: 1px solid var(--ui-line);
}
.stock-width-group > summary > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
}
.stock-width-group > summary > b {
  font-size: var(--ui-text-sm);
  font-variant-numeric: tabular-nums;
}
.stock-width-group > summary small {
  font-size: var(--ui-text-sm);
  font-weight: 400;
}
.stock-width-group:not([open]) > summary svg {
  transform: rotate(-90deg);
}
.stock-table-scroll {
  overflow: auto;
  max-height: 620px;
  scrollbar-width: thin;
  min-width: 0;
}
.stock-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  min-width: 650px;
  font-size: var(--ui-text-sm);
}
.stock-workspace .stock-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-line);
  padding: 10px 13px;
  font-size: var(--ui-text-sm);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ui-muted);
  text-align: left;
  font-weight: 650;
  white-space: normal;
}
.stock-workspace .stock-table tbody td {
  padding: 8px 13px;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  vertical-align: middle;
  height: 49px;
  background: var(--ui-surface);
}
.stock-workspace .stock-table tbody tr:last-child td {
  border-bottom: 0;
}
.stock-workspace .stock-table tbody tr:hover td {
  background: var(--ui-subtle);
}
.stock-workspace .stock-table tbody td:first-child b {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  font-weight: 650;
}
.stock-workspace .stock-table td small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: 3px;
}
.stock-workspace .stock-table td:last-child {
  width: 36px;
  padding-left: 3px;
  padding-right: 10px;
}
.stock-workspace .stock-table th.stock-number-heading {
  background: var(--ui-subtle);
  color: var(--ui-text);
  text-align: center;
}
.stock-quantity {
  min-width: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.1;
  padding: 7px 11px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.stock-quantity.recorded {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.stock-quantity.zero {
  background: var(--ui-subtle);
  color: var(--ui-muted);
  border-color: var(--ui-line);
}
.stock-quantity.unknown {
  background: transparent;
  color: var(--ui-muted);
  font-weight: 500;
}
.stock-quantity:hover {
  border-color: var(--ui-line);
  box-shadow: 0 2px 6px #25456712;
}
.stock-quantity-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stock-light {
  display: inline-flex;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: var(--ui-text-sm);
  white-space: nowrap;
}
.stock-light.warm {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.stock-light.cool {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.stock-light.neutral {
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.stock-location {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: var(--ui-text-sm);
}
.stock-location svg {
  color: var(--ui-muted);
}
.stock-info {
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  border-radius: 6px;
  padding: 6px;
  display: flex;
}
.stock-info:hover {
  color: var(--ui-text);
  background: var(--ui-subtle);
}
.stock-date-problem {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--ui-text);
  font-weight: 650;
}
.stock-material-group > summary {
  justify-content: space-between;
  gap: 10px;
}
.stock-material-group > summary > span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.stock-material-group .stock-table td:first-child {
  width: 52%;
}
.stock-material-group .stock-table td:last-child {
  width: 34px;
}
.stock-workspace .stock-matrix {
  min-width: 870px;
}
.stock-workspace .stock-matrix th,
.stock-workspace .stock-matrix td {
  text-align: center !important;
  padding: 8px !important;
  border-right: 1px solid var(--ui-line);
}
.stock-workspace .stock-matrix th:first-child,
.stock-workspace .stock-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--ui-surface);
  min-width: 90px;
  text-align: left !important;
  padding-left: 15px !important;
  box-shadow: 1px 0 #e3eaf0;
}
.stock-workspace .stock-matrix thead th:first-child {
  z-index: 3;
}
.stock-matrix thead th {
  min-width: 80px;
}
.stock-matrix thead .stock-shape-icon {
  display: block;
  margin: 0 auto 6px;
  width: 19px;
  height: 24px;
  color: var(--ui-muted);
}
.stock-matrix thead th span {
  font-size: var(--ui-text-sm);
  line-height: 1.4;
  display: block;
  max-width: 95px;
  margin: auto;
}
.stock-workspace .stock-matrix tbody .stock-width-row th {
  background: var(--stock-sand);
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  position: static;
  z-index: 0;
  box-shadow: none;
  padding: 8px 15px !important;
  text-align: left !important;
}
.stock-width-row small {
  font-size: var(--ui-text-sm);
  font-weight: 500;
  margin-left: 15px;
  opacity: .8;
}
.stock-blank {
  color: var(--ui-muted);
  font-size: 17px;
}
.stock-duplicate {
  font-size: var(--ui-text-sm);
  border: 1px solid var(--ui-line);
  border-radius: 5px;
  color: var(--ui-text);
  background: var(--ui-subtle);
  padding: 6px;
}
.stock-offcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stock-offcut-card {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface);
  padding: 17px;
  text-align: left;
  color: var(--ui-text);
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.stock-offcut-card:hover {
  border-color: var(--ui-line);
  background: var(--ui-subtle);
}
.stock-offcut-dim {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
}
.stock-offcut-dim small {
  font-size: var(--ui-text-sm);
  font-weight: 400;
  margin-left: auto;
}
.stock-offcut-card > b {
  font-size: 32px;
  color: var(--ui-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stock-offcut-card > b small {
  font-size: var(--ui-text-sm);
  margin-left: 7px;
  font-weight: 400;
}
.stock-offcut-card > span:last-child {
  font-size: var(--ui-text-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ui-muted);
}
.stock-empty {
  text-align: center;
  color: var(--ui-muted);
  padding: 40px 15px;
  border: 1px dashed var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface);
}
.stock-empty > svg {
  margin: 0 auto 14px;
}
.stock-empty h4 {
  color: var(--ui-text);
  font-size: 17px;
  margin: 0 0 8px;
}
.stock-empty p {
  font-size: var(--ui-text-sm);
  margin: 0 0 18px;
}
.stock-empty button {
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-surface);
  color: var(--ui-text);
  padding: 9px 12px;
  font-size: var(--ui-text-sm);
}
.stock-page-footer {
  font-size: var(--ui-text-sm);
  line-height: 1.6;
  color: var(--ui-muted);
  padding: 13px 3px;
}
.stock-detail-dialog {
  margin: auto;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  box-shadow: 0 20px 80px #183a5a35;
  padding: 0;
  width: min(500px, calc(100vw - 28px));
  max-height: 85vh;
  color: var(--ui-text);
  background: var(--ui-surface);
}
.stock-detail-dialog::backdrop {
  background: #142e4a75;
  backdrop-filter: blur(3px);
}
.stock-detail-body {
  padding: 27px;
  position: relative;
}
.stock-close {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px;
  border: 0;
  border-radius: 8px;
  color: var(--ui-muted);
  background: var(--ui-subtle);
  display: flex;
}
.stock-detail-body h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 13px 25px 18px 0;
}
.stock-detail-quantity {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--ui-subtle);
  border-radius: 12px;
  padding: 15px;
  color: var(--ui-text);
}
.stock-detail-quantity > b {
  font-size: 42px;
  font-weight: 750;
  line-height: 1.1;
}
.stock-detail-quantity > span {
  font-size: var(--ui-text-sm);
}
.stock-detail-body dl {
  margin: 20px 0;
}
.stock-detail-body dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ui-line);
  font-size: var(--ui-text-sm);
}
.stock-detail-body dt {
  color: var(--ui-muted);
}
.stock-detail-body dd {
  margin: 0;
  text-align: right;
  max-width: 65%;
}
.stock-detail-issues {
  display: flex;
  gap: 10px;
  background: var(--ui-subtle);
  padding: 12px;
  border-radius: 10px;
  color: var(--ui-text);
}
.stock-detail-issues svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.stock-detail-issues ul {
  font-size: var(--ui-text-sm);
  line-height: 1.6;
  margin: 0;
  padding-left: 15px;
}
.stock-detail-note {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.6;
  margin: 16px 0;
}
.stock-detail-body > .stock-source-link {
  margin-top: 18px;
}
.stock-workspace button:focus-visible,
.stock-workspace summary:focus-visible,
.stock-workspace a:focus-visible,
.stock-close:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 3px;
}
.stock-search:focus-within {
  outline: 2px solid var(--ui-line);
  outline-offset: 2px;
}
.stock-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1000px) {
  .stock-category-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stock-category-tabs > button {
    padding: 11px 9px;
    gap: 7px;
  }
  .stock-category-tabs > button > span {
    font-size: var(--ui-text-sm);
  }
  .stock-category-tabs > button svg {
    width: 16px;
  }
  .stock-category-tabs small {
    font-size: var(--ui-text-sm);
  }
  .stock-content {
    padding: 17px;
  }
  .stock-offcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .stock-page-header {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .stock-page-header h2 {
    font-size: 26px;
  }
  .stock-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stock-category-tabs > button > span {
    font-size: var(--ui-text-sm);
  }
  .stock-content {
    padding: 12px;
    border-radius: 13px;
  }
  .stock-section-heading {
    gap: 10px;
    align-items: flex-start;
  }
  .stock-section-heading h3 {
    font-size: 18px;
  }
  .stock-section-heading p {
    font-size: var(--ui-text-sm);
  }
  .stock-section-total {
    padding: 9px;
    gap: 6px;
    flex-direction: column;
    align-items: flex-end;
  }
  .stock-section-total b {
    font-size: 25px;
  }
  .stock-section-total > span {
    font-size: var(--ui-text-sm);
    max-width: 80px;
    text-align: right;
  }
  .stock-search {
    min-width: 100%;
    flex-basis: 100%;
  }
  .stock-tools {
    gap: 11px;
  }
  .stock-form-tabs {
    gap: 5px;
  }
  .stock-form-tabs > button {
    font-size: var(--ui-text-sm);
    padding: 7px;
    gap: 6px;
  }
  .stock-form-tabs small {
    font-size: var(--ui-text-sm);
  }
  .stock-offcut-grid {
    gap: 8px;
  }
  .stock-offcut-card {
    padding: 12px;
  }
  .stock-offcut-dim {
    font-size: var(--ui-text-sm);
    gap: 5px;
  }
  .stock-offcut-dim svg {
    width: 14px;
  }
  .stock-stage-tabs {
    width: 100%;
  }
  .stock-stage-tabs > button {
    flex: 1;
    font-size: var(--ui-text-sm);
    padding: 7px;
  }
  .stock-detail-body {
    padding: 20px;
  }
  .stock-detail-body h2 {
    font-size: 18px;
  }
  .stock-legend {
    font-size: var(--ui-text-sm);
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stock-category-tabs > button {
    transition: none;
  }
}
.stock-workspace {
  font-family: var(--ui-font);
  color: var(--ui-text);
}
.stock-page-header {
  margin-bottom: 13px;
}
.stock-page-header h2 {
  font-size: 28px;
  margin: 5px 0;
}
.stock-page-header p {
  font-size: var(--ui-text-sm);
}
.stock-read-badge,
.stock-eyebrow {
  font-size: var(--ui-text-sm);
}
.stock-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.stock-category-tabs > button {
  padding: 9px 12px;
  gap: 7px;
  border-radius: 9px;
}
.stock-category-tabs > button > span {
  font-size: var(--ui-text-sm);
}
.stock-category-tabs > button small {
  display: none;
}
.stock-category-tabs > button svg {
  width: 17px;
  height: 17px;
}
.stock-source-notice {
  padding: 8px 11px;
  margin-bottom: 12px;
}
.stock-source-notice p {
  font-size: var(--ui-text-sm);
  line-height: 1.5;
}
.stock-content {
  padding: 16px;
  overflow: visible;
}
.stock-section-heading {
  margin-bottom: 14px;
}
.stock-section-heading h3 {
  font-size: 21px;
  margin-bottom: 5px;
}
.stock-section-heading p {
  font-size: var(--ui-text-sm);
}
.stock-section-total {
  padding: 8px 12px;
  gap: 9px;
}
.stock-section-total b {
  font-size: 29px;
}
.stock-section-total > span {
  font-size: var(--ui-text-sm);
  max-width: 100px;
}
.stock-tools {
  gap: 12px;
  margin-bottom: 10px;
}
.stock-search {
  padding: 9px 11px;
}
.stock-search input {
  font-size: 14px;
}
.stock-known-filter {
  font-size: var(--ui-text-sm);
}
.stock-legend {
  font-size: var(--ui-text-sm);
  margin: 9px 0 12px;
  gap: 14px;
}
.stock-legend > span:first-child {
  display: none;
}
.stock-legend i {
  display: none;
}
.stock-stage-tabs > button {
  font-size: var(--ui-text-sm);
}
.stock-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}
.stock-check-filter {
  position: relative;
}
.stock-check-filter > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  font-weight: 650;
  white-space: nowrap;
}
.stock-check-filter > summary b {
  color: var(--ui-text);
  background: var(--ui-subtle);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: var(--ui-text-sm);
}
.stock-check-filter[open] > summary {
  border-color: var(--ui-line);
  background: var(--ui-subtle);
}
.stock-check-filter[open] > summary svg {
  transform: rotate(180deg);
}
.stock-filter-options {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 25;
  width: 440px;
  max-width: calc(100vw - 50px);
  padding: 13px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  box-shadow: 0 12px 36px #1c3b6028;
}
.stock-filter-options-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 11px;
  font-size: var(--ui-text-sm);
}
.stock-filter-options-head > button {
  background: transparent;
  border: 0;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  padding: 3px;
}
.stock-filter-options-head > button:disabled {
  opacity: .4;
}
.stock-filter-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 310px;
  overflow: auto;
  padding: 2px;
}
.shape-options .stock-filter-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stock-filter-options-grid > label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 7px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  line-height: 1.3;
  cursor: pointer;
}
.stock-filter-options-grid > label:has(input:checked) {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  color: var(--ui-text);
  font-weight: 700;
}
.stock-filter-options-grid input {
  accent-color: #185bc8;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.stock-filter-options-grid .stock-shape-icon {
  width: 16px;
  height: 21px;
}
.stock-filter-options-grid > label:hover {
  border-color: var(--ui-line);
}
.stock-filter-done {
  display: block;
  margin: 11px 0 0 auto;
  border: 0;
  border-radius: 7px;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  font-weight: 700;
  padding: 8px 18px;
}
.stock-reset {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  padding: 8px 3px;
}
.stock-filter-result {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  padding: 0 4px;
  white-space: nowrap;
}
.stock-expand-actions {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.stock-expand-actions button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 9px;
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  white-space: nowrap;
}
.stock-expand-actions button:hover {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.stock-selected-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0;
}
.stock-selected-filters button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ui-line);
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: var(--ui-text-sm);
}
.stock-finished-groups,
.stock-material-groups {
  gap: 12px;
}
.stock-form-group > summary,
.stock-material-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 13px;
  gap: 8px;
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.stock-form-group h4,
.stock-material-group h4 {
  font-size: 17px;
}
.stock-form-group > summary > span {
  font-size: 23px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stock-form-group > summary > span small {
  font-size: var(--ui-text-sm);
  margin: 0;
  font-weight: 400;
}
.stock-form-group:not([open]) > summary > .stock-group-chevron,
.stock-material-group:not([open]) > summary > .stock-group-chevron,
.stock-view-group:not([open]) > summary > svg {
  transform: rotate(-90deg);
}
.stock-material-group > summary h4 {
  margin-right: auto;
}
.stock-material-group > summary > span {
  font-size: var(--ui-text-sm);
}
.stock-width-group > summary {
  padding: 7px 13px;
  font-size: var(--ui-text-sm);
}
.stock-width-group > summary > b {
  font-size: 15px;
}
.stock-width-group > summary small {
  font-size: var(--ui-text-sm);
}
.stock-view-group > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  margin-bottom: 9px;
}
.stock-view-group:not([open]) > summary {
  margin-bottom: 0;
}
.stock-workspace .stock-table {
  min-width: 720px;
}
.stock-workspace .stock-table thead th {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  padding: 8px 11px;
}
.stock-workspace .stock-table tbody td {
  font-size: 14px;
  padding: 6px 11px;
  height: 46px;
  color: var(--ui-text);
}
.stock-workspace .stock-table tbody td:first-child b {
  font-size: 15px;
}
.stock-workspace .stock-table td small {
  font-size: var(--ui-text-sm);
}
.stock-workspace .stock-table th.stock-number-heading {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.stock-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: .1px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stock-size:hover {
  border-color: var(--ui-line);
  background: var(--ui-subtle);
}
.stock-quantity {
  font-size: 22px;
  padding: 5px 10px;
  min-width: 48px;
}
.stock-quantity.recorded {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.stock-quantity.zero {
  color: var(--ui-muted);
}
.stock-light {
  display: inline-grid;
  grid-template-columns: 8px auto;
  align-items: center;
  gap: 2px 7px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  min-width: 110px;
  line-height: 1.2;
}
.stock-light > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  grid-row: 1/3;
  background: currentColor;
}
.stock-light > b {
  font-size: 14px;
  font-weight: 750;
}
.stock-workspace .stock-table .stock-light > small {
  font-size: var(--ui-text-sm);
  margin: 0;
  line-height: 1.2;
  color: inherit;
  font-weight: 500;
}
.stock-light.warm {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.stock-light.neutral {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.stock-light.cool {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.stock-light.other {
  background: var(--ui-subtle);
  color: var(--ui-muted);
  border-color: var(--ui-line);
}
.stock-light.other > i {
  display: none;
}
.stock-light.other > b {
  grid-column: 1/3;
  font-size: var(--ui-text-sm);
}
.stock-configuration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  line-height: 1.2;
  color: var(--ui-text);
  background: var(--ui-surface);
}
.stock-configuration > b {
  font-size: var(--ui-text-sm);
  font-weight: 650;
}
.stock-configuration svg {
  flex-shrink: 0;
}
.stock-configuration.sensor {
  color: var(--ui-text);
  border-color: var(--ui-line);
  background: var(--ui-subtle);
}
.stock-configuration.touch {
  color: var(--ui-text);
  border-color: var(--ui-line);
  background: var(--ui-subtle);
}
.stock-configuration.no-sensor {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  color: var(--ui-muted);
}
.stock-location {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
}
.stock-location svg {
  color: var(--ui-muted);
}
.stock-info {
  padding: 7px;
}
.stock-table .stock-date-problem {
  font-size: var(--ui-text-sm);
}
.stock-workspace .stock-matrix {
  min-width: 930px;
}
.stock-workspace .stock-matrix thead th span {
  font-size: var(--ui-text-sm);
  max-width: 110px;
}
.stock-workspace .stock-matrix tbody td:first-child .stock-size-label {
  font-size: 19px;
  color: var(--ui-text);
  white-space: nowrap;
}
.stock-workspace .stock-matrix tbody .stock-width-row th {
  font-size: var(--ui-text-sm);
}
.stock-width-row small {
  font-size: var(--ui-text-sm);
}
.stock-offcut-dim {
  font-size: 20px;
}
.stock-offcut-card {
  padding: 13px;
  gap: 12px;
}
.stock-offcut-card > span:last-child {
  font-size: var(--ui-text-sm);
}
.stock-page-footer {
  font-size: var(--ui-text-sm);
}
.stock-detail-body dl > div {
  font-size: 14px;
}
.stock-detail-issues ul,
.stock-detail-note {
  font-size: var(--ui-text-sm);
}
@media (max-width: 900px) {
  .stock-expand-actions {
    margin-left: 0;
  }
  .stock-filter-row {
    gap: 7px;
  }
  .stock-filter-result {
    margin-right: auto;
  }
  .stock-category-tabs > button > span {
    font-size: var(--ui-text-sm);
  }
  .stock-form-group h4 {
    font-size: 16px;
  }
}
@media (max-width: 650px) {
  .stock-category-tabs {
    gap: 5px;
  }
  .stock-category-tabs > button {
    padding: 8px 9px;
  }
  .stock-category-tabs > button > span {
    font-size: var(--ui-text-sm);
  }
  .stock-content {
    padding: 11px;
  }
  .stock-page-header h2 {
    font-size: 26px;
  }
  .stock-section-heading h3 {
    font-size: 19px;
  }
  .stock-section-heading p {
    font-size: var(--ui-text-sm);
  }
  .stock-section-total {
    padding: 7px 9px;
    gap: 3px;
  }
  .stock-section-total > span {
    font-size: var(--ui-text-sm);
  }
  .stock-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stock-check-filter > summary {
    justify-content: space-between;
  }
  .stock-filter-options {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    box-shadow: none;
    margin-top: 6px;
    padding: 9px;
  }
  .stock-check-filter:has(> div) {
    min-width: 0;
  }
  .stock-check-filter[open] {
    grid-column: 1/-1;
  }
  .stock-filter-options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stock-filter-options-grid > label {
    font-size: var(--ui-text-sm);
    gap: 6px;
    padding: 8px 5px;
  }
  .shape-options .stock-filter-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stock-expand-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .stock-expand-actions button {
    padding: 9px 10px;
  }
  .stock-filter-result {
    text-align: right;
  }
  .stock-form-group > summary > span small {
    font-size: var(--ui-text-sm);
  }
  .stock-form-group h4 {
    font-size: 15px;
  }
  .stock-legend {
    font-size: var(--ui-text-sm);
  }
  .stock-stage-tabs > button {
    font-size: var(--ui-text-sm);
  }
  .stock-offcut-dim {
    font-size: 17px;
  }
}
.daily-orders {
  margin: 22px 0;
  padding: 24px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 18px;
}
.daily-orders header p,
.daily-explanation {
  color: var(--ui-muted);
  line-height: 1.7;
  margin-top: 9px;
}
.daily-order-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.daily-order-cards button {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface);
  color: var(--ui-text);
}
.daily-order-cards button[aria-pressed=true] {
  background: var(--ui-selected);
  border-color: var(--ui-line);
}
.daily-order-cards strong {
  font-size: 34px;
}
.daily-order-cards small {
  font-size: var(--ui-text-sm);
  font-weight: 500;
}
.daily-order-cards b {
  font-size: var(--ui-text-sm);
  margin-top: auto;
}
.daily-other {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.daily-other button {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  padding: 10px;
  border-radius: 8px;
  color: var(--ui-text);
}
.daily-other button[aria-pressed=true] {
  background: var(--ui-selected);
  border-color: var(--ui-line);
}
.daily-orders > details {
  margin-top: 18px;
}
.daily-orders summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
}
.daily-order {
  border-top: 1px solid var(--ui-line);
}
.daily-order > summary {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1fr;
}
.daily-order small {
  display: block;
  margin-top: 6px;
  color: var(--ui-muted);
}
.daily-status {
  font-weight: 600;
  color: var(--ui-warning);
}
.daily-status.ready,
.daily-status.shipped {
  color: var(--ui-success);
}
.daily-lines {
  background: var(--ui-surface);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.daily-lines > div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
}
.daily-empty {
  padding: 20px;
  color: var(--ui-muted);
}
@media (max-width: 1000px) {
  .daily-order-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .daily-order > summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .daily-orders {
    padding: 15px;
  }
  .daily-order-cards {
    gap: 8px;
  }
  .daily-order-cards button {
    padding: 12px;
  }
  .daily-order-cards strong {
    font-size: 28px;
  }
}
.daily-order-window {
  width: min(1060px, calc(100vw - 32px));
  max-height: 85dvh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--ui-surface);
  color: var(--ui-text);
  box-shadow: 0 24px 90px #142c4266;
}
.daily-order-window::backdrop {
  background: #102a3c88;
}
.daily-order-window > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--ui-line);
  position: sticky;
  top: 0;
  background: var(--ui-surface);
  z-index: 1;
}
.daily-order-window > header button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.daily-window-body {
  padding: 0 24px 24px;
}
.daily-window-body > .daily-explanation {
  margin: 18px 0;
}
.daily-order-window summary {
  cursor: pointer;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
}
.daily-order-window summary > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 600px) {
  .daily-order-window > header {
    padding: 16px;
  }
  .daily-window-body {
    padding: 0 16px 16px;
  }
}
.quality-note {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.6;
  margin: 14px 20px;
}
.quality-error {
  color: var(--ui-danger);
  padding: 12px 18px;
  background: var(--ui-subtle);
  border-radius: 8px;
  font-size: var(--ui-text-sm);
}
.quality-cases {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quality-case {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  width: 100%;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  padding: 20px;
  color: var(--ui-text);
}
.quality-case.open {
  border-left: 5px solid var(--ui-line);
}
.quality-case > svg:first-child {
  color: var(--ui-text);
  flex-shrink: 0;
}
.quality-case > div {
  flex: 1;
}
.quality-case b {
  font-size: 14px;
}
.quality-case p {
  font-size: 14px;
  margin: 7px 0;
}
.quality-case small {
  display: block;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.6;
}
.quality-history {
  margin: 22px 0;
}
.quality-history .panel-head p {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: 6px;
}
.quality-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
}
.quality-charts h3 {
  font-size: var(--ui-text-sm);
  color: var(--ui-info);
  margin-bottom: 12px;
}
.quality-no-data {
  padding: 28px 20px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.director-defect-card {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  border: 1px solid var(--ui-line);
  border-left: 6px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  text-align: left;
  padding: 21px 24px;
  margin-bottom: 22px;
}
.director-defect-card > svg {
  flex-shrink: 0;
}
.director-defect-card > div:first-of-type {
  flex: 1;
}
.director-defect-card h2 {
  font-size: 17px;
}
.director-defect-card p {
  font-size: var(--ui-text-sm);
  margin-top: 6px;
  line-height: 1.5;
  color: var(--ui-text);
}
.defect-big {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.defect-big b {
  font-size: 28px;
  line-height: 1.1;
  white-space: nowrap;
}
.defect-big small {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
}
.director-defect-card.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.director-defect-card.active p,
.director-defect-card.active small {
  color: var(--ui-text);
}
@media (max-width: 850px) {
  .quality-charts {
    grid-template-columns: 1fr;
  }
  .director-defect-card {
    flex-wrap: wrap;
    gap: 16px;
  }
  .quality-case {
    flex-wrap: wrap;
  }
  .quality-case > div {
    min-width: 70%;
  }
}
.quality-analysis-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: var(--ui-surface);
  border-block: 1px solid var(--ui-line);
}
.quality-analysis-filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 180px;
  font-size: var(--ui-text-sm);
  font-weight: 600;
  color: var(--ui-text);
}
.quality-analysis-filters select {
  padding: 9px;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  max-width: 100%;
  min-width: 0;
  background: var(--ui-surface);
  color: var(--ui-text);
}
.quality-overlay,
.quality-sizes {
  padding: 22px 20px;
  border-bottom: 1px solid var(--ui-line);
  min-width: 0;
}
.quality-overlay h3,
.quality-sizes h3 {
  font-size: 15px;
  margin-bottom: 16px;
}
.quality-overlay .quality-note,
.quality-sizes .quality-note {
  margin: 14px 0 0;
}
.quality-series-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.quality-series-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ui-text-sm);
  cursor: pointer;
}
.quality-series-controls input {
  width: 16px;
  height: 16px;
}
.quality-series-controls i {
  width: 16px;
  height: 4px;
  display: inline-block;
}
.quality-departments {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  margin: 16px 0 24px;
  padding: 18px 20px;
}
.quality-departments > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--ui-text);
}
.quality-departments > summary > span {
  font-size: var(--ui-text-sm);
  font-weight: 500;
  margin-left: 16px;
  color: var(--ui-muted);
}
.quality-departments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  min-width: 0;
}
.quality-departments-grid > section {
  min-width: 0;
}
.quality-departments h3 {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  margin-bottom: 12px;
}
.quality-departments .quality-note {
  margin: 14px 0 0;
}
.quality-department-values {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.quality-department-values > div {
  font-size: var(--ui-text-sm);
  border-top: 1px solid var(--ui-line);
  padding-top: 9px;
}
.quality-department-values b {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.quality-department-values small {
  display: block;
  color: var(--ui-muted);
  margin-top: 5px;
  line-height: 1.5;
}
.quality-history > .quality-departments {
  margin: 10px 20px 20px;
}
.quality-quick-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -8px 0 14px;
  gap: 14px;
}
.history-values .table-wrap {
  max-height: 360px;
  overflow: auto;
}
.quality-charts > div {
  min-width: 0;
}
@media (max-width: 800px) {
  .quality-departments-grid {
    grid-template-columns: 1fr;
  }
  .quality-departments > summary > span {
    display: block;
    margin: 8px 0 0;
  }
  .quality-quick-actions {
    flex-wrap: wrap;
  }
  .quality-overlay,
  .quality-sizes {
    padding: 18px 12px;
  }
}
.director-overview {
  --ink:#253f37;
  --muted:#778981;
}
.period-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}
.period-caption .eyebrow {
  font-size: var(--ui-text-sm);
  display: block;
  margin-bottom: 7px;
}
.period-caption h2 {
  font-size: 19px;
  letter-spacing: -.4px;
  color: var(--ink);
}
.period-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.period-stepper {
  display: flex;
  align-items: center;
  gap: 3px;
}
.period-stepper .date-picker {
  padding: 8px;
}
.period-controls .segmented button,
.period-controls .today-link {
  font-size: var(--ui-text-sm);
}
.director-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.director-metrics .metric {
  min-height: 137px;
  padding: 21px;
}
.director-metrics .metric-top {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.director-metrics .metric strong {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  margin-top: 17px;
  color: var(--ink);
}
.director-metrics .metric.mint strong {
  color: var(--ui-text);
}
.director-metrics .metric em {
  font-size: var(--ui-text-sm);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  color: var(--ui-muted);
  margin-left: 10px;
  white-space: nowrap;
}
.director-metrics .metric small {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.6;
  display: block;
}
.director-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr);
  gap: 22px;
  align-items: start;
}
.director-results {
  min-width: 0;
}
.performance-panel .panel-head {
  padding-bottom: 22px;
}
.performance-panel .panel-head h2,
.priorities h2 {
  font-size: 17px;
  color: var(--ink);
}
.performance-panel .panel-head p {
  font-size: var(--ui-text-sm);
  color: var(--muted);
  line-height: 1.6;
}
.plot-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.plot-label b {
  font-weight: 650;
}
.plot-label span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.weekly-chart {
  height: 166px;
  display: flex;
  gap: 12px;
  padding: 12px 24px 0;
}
.week-column {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3px;
  color: var(--ui-muted);
  border-radius: 5px;
}
.week-column:hover,
.week-column.chosen {
  background: var(--ui-subtle);
}
.week-value {
  font-size: var(--ui-text-sm);
  font-weight: 600;
  height: 22px;
  white-space: nowrap;
  letter-spacing: -.3px;
}
.week-track {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--ui-line);
  background:
    repeating-linear-gradient(
      to top,
      transparent,
      transparent 30px,
      var(--ui-subtle) 31px,
      var(--ui-subtle) 32px);
}
.week-bar {
  width: 44%;
  max-width: 38px;
  min-width: 12px;
  border-radius: 4px 4px 0 0;
  background: var(--ui-subtle);
  transition: height .2s;
}
.week-bar.fot {
  background: var(--ui-subtle);
}
.week-column.chosen .week-bar,
.week-column:hover .week-bar {
  background: var(--ui-subtle);
}
.week-column.chosen .week-value {
  color: var(--ui-text);
}
.week-gap {
  width: 44%;
  max-width: 38px;
  height: 7px;
  border: 1px dashed var(--ui-line);
  border-radius: 2px;
  margin-bottom: 2px;
}
.week-day {
  height: 35px;
  font-size: var(--ui-text-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: capitalize;
}
.week-day b {
  font-weight: 650;
  color: var(--ui-text);
}
.secondary-plot {
  padding-top: 24px;
  margin-top: 4px;
  border-top: 1px solid var(--ui-line);
}
.plot-note {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.7;
  padding: 16px 24px 20px;
}
.kpi-definition {
  margin: 13px 0;
  border: 1px dashed var(--ui-line);
  border-radius: 8px;
  color: var(--ui-muted);
  background: var(--ui-subtle);
}
.kpi-definition summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  cursor: pointer;
  font-size: var(--ui-text-sm);
  list-style: none;
}
.kpi-definition summary svg {
  margin-left: auto;
}
.kpi-definition p {
  padding: 0 17px 15px;
  font-size: var(--ui-text-sm);
  line-height: 1.8;
}
.kpi-mark {
  font-weight: 800;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  letter-spacing: .6px;
  background: var(--ui-subtle);
  border-radius: 4px;
  padding: 5px 6px;
}
.checkpoint-detail {
  margin-top: 13px;
}
.checkpoint-detail summary {
  padding: 16px 21px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  gap: 12px;
}
.checkpoint-detail summary > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.checkpoint-detail .checkpoints {
  padding: 12px 15px;
}
.checkpoint-detail .checkpoints strong {
  font-size: 24px;
}
.checkpoint-detail .plot-note {
  padding-top: 4px;
}
.priorities .panel-head {
  align-items: flex-start;
  padding-bottom: 18px;
}
.priorities .eyebrow {
  font-size: var(--ui-text-sm);
  margin-bottom: 7px;
}
.current-marker {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding-top: 3px;
}
.current-marker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ui-subtle);
}
.priority-links {
  padding: 0 13px 16px;
}
.priority-item {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--ui-muted);
  padding: 14px 10px;
  border-radius: 7px;
}
.priority-item:hover {
  background: var(--ui-subtle);
}
.priority-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.priority-symbol {
  height: 34px;
  width: 34px;
  background: var(--ui-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.priority-item b {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  line-height: 1.5;
  display: block;
}
.priority-item small {
  display: block;
  font-size: var(--ui-text-sm);
  line-height: 1.7;
  color: var(--ui-muted);
  margin-top: 3px;
}
.priority-item.needs-attention {
  background: var(--ui-subtle);
  margin: 4px 0;
}
.priority-item.needs-attention b {
  color: var(--ui-text);
}
.priority-item.needs-attention small {
  color: var(--ui-muted);
}
.priority-item.needs-attention .priority-symbol {
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.director-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 23px 11px;
  border-top: 1px solid var(--line);
}
.director-task-head h3 {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
}
.director-task-head h3 span {
  font-weight: 500;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  padding-left: 5px;
}
.director-task-head .text-button {
  font-size: var(--ui-text-sm);
}
.director-tasks {
  padding: 0 13px 12px;
}
.director-task {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  border-radius: 5px;
  color: var(--ui-muted);
}
.director-task:hover {
  background: var(--ui-subtle);
}
.director-task:last-child {
  border-bottom: 0;
}
.director-task > div {
  flex: 1;
  min-width: 0;
}
.director-task b {
  font-size: var(--ui-text-sm);
  font-weight: 650;
  line-height: 1.7;
  color: var(--ui-text);
  display: block;
}
.director-task small {
  font-size: var(--ui-text-sm);
  line-height: 1.7;
  color: var(--ui-muted);
  display: block;
  margin: 5px 0;
}
.director-task div > span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.task-status-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui-success-bg);
  flex: none;
  margin-top: 8px;
}
.director-task.task-attention .task-status-mark {
  background: var(--ui-danger-bg);
}
.director-task.task-attention div > span {
  color: var(--ui-muted);
}
.tasks-empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--ui-muted);
}
.tasks-empty b {
  display: block;
  font-size: var(--ui-text-sm);
  margin: 12px 0 7px;
  color: var(--ui-muted);
}
.tasks-empty p {
  font-size: var(--ui-text-sm);
  line-height: 1.8;
  color: var(--ui-muted);
}
.current-note {
  padding: 13px 23px;
  font-size: var(--ui-text-sm);
  line-height: 1.8;
  color: var(--ui-muted);
  background: var(--ui-surface);
}
.freshness-detail {
  margin: 23px 0 0;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.freshness-detail summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  line-height: 1.8;
}
.freshness-detail summary span:first-child {
  font-weight: 700;
  white-space: nowrap;
  color: var(--ui-muted);
}
.freshness-detail summary svg {
  margin-left: auto;
  flex: none;
}
.freshness-detail > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 15px 0;
  padding: 15px;
  background: var(--ui-subtle);
  border-radius: 7px;
}
.freshness-detail div > span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.freshness-detail b {
  color: var(--ui-muted);
}
.freshness-detail a {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.preview-pill {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  background: var(--ui-subtle);
  padding: 7px 10px;
  border-radius: 5px;
}
summary::-webkit-details-marker {
  display: none;
}
details[open] > summary > svg:last-child {
  transform: rotate(90deg);
}
.director-overview button:focus-visible,
.director-overview summary:focus-visible {
  outline: 2px solid var(--ui-line);
  outline-offset: 3px;
}
@media (min-width: 1500px) {
  .director-columns {
    grid-template-columns: minmax(0, 1.65fr) minmax(355px, 1fr);
  }
  .weekly-chart {
    height: 178px;
  }
}
@media (max-width: 1150px) {
  .period-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .director-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .priorities {
    order: -1;
  }
  .priority-links {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
  }
  .priority-item {
    flex: 1;
    min-width: 230px;
  }
  .director-tasks {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tasks-empty {
    grid-column: 1/-1;
    padding: 15px;
  }
  .current-note {
    display: none;
  }
  .director-metrics .metric strong {
    font-size: 28px;
  }
  .director-metrics .metric em {
    font-size: var(--ui-text-sm);
  }
}
@media (max-width: 680px) {
  .director-metrics {
    gap: 9px;
    grid-template-columns: 1fr 1fr;
  }
  .director-metrics .metric {
    padding: 16px 13px;
    min-height: 126px;
  }
  .director-metrics .metric:last-child {
    grid-column: 1/-1;
    min-height: 106px;
  }
  .director-metrics .metric strong {
    font-size: 29px;
  }
  .director-metrics .metric-top {
    font-size: var(--ui-text-sm);
  }
  .director-metrics .metric em {
    display: block;
    margin: 8px 0 0;
  }
  .director-metrics .metric:last-child strong {
    font-size: 27px;
  }
  .period-controls {
    gap: 12px;
    width: 100%;
  }
  .period-stepper {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .period-stepper .date-picker {
    flex: 1;
    justify-content: center;
    margin: 0 10px;
  }
  .today-link {
    margin-left: auto;
  }
  .period-controls .segmented {
    min-width: 150px;
  }
  .director-task-head {
    padding: 18px;
  }
  .director-tasks {
    grid-template-columns: 1fr;
  }
  .priority-item {
    min-width: 100%;
  }
  .current-marker {
    font-size: var(--ui-text-sm);
  }
  .weekly-chart {
    padding: 10px 14px 0;
    gap: 4px;
    height: 162px;
  }
  .week-value {
    font-size: var(--ui-text-sm);
  }
  .plot-label {
    padding: 0 17px;
  }
  .plot-label.secondary-plot {
    padding-top: 22px;
  }
  .plot-note {
    padding: 14px 17px;
    font-size: var(--ui-text-sm);
  }
  .week-day {
    gap: 3px;
    font-size: var(--ui-text-sm);
  }
  .kpi-definition summary {
    font-size: var(--ui-text-sm);
    padding: 13px;
  }
  .freshness-detail summary {
    flex-wrap: wrap;
    gap: 5px;
  }
  .freshness-detail summary span:nth-child(2) {
    width: 100%;
    font-size: var(--ui-text-sm);
  }
  .freshness-detail summary > svg {
    display: none;
  }
  .preview-pill {
    font-size: var(--ui-text-sm);
    padding: 6px;
  }
  .checkpoint-detail summary {
    padding: 16px;
    font-size: var(--ui-text-sm);
  }
  .director-columns {
    gap: 18px;
  }
}
.director-deadlines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.director-deadlines h2,
.director-overview > .panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.deadline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--ui-line);
  background: var(--ui-surface);
  padding: 16px 22px;
  text-align: left;
  color: var(--ui-text);
}
.deadline-row:hover {
  background: var(--ui-subtle);
}
.deadline-row b {
  display: block;
  font-size: var(--ui-text-sm);
}
.deadline-row small {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.5;
  margin-top: 5px;
}
.deadline-row > div:last-child {
  text-align: right;
}
.director-history-results {
  max-width: 1100px;
}
.history-chart {
  padding: 8px 0 20px;
}
.history-chart .plot-label {
  margin-bottom: 8px;
}
.history-chart-switch {
  margin: 0 24px 20px;
  width: max-content;
}
.history-values {
  margin: 0 24px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.history-values summary {
  cursor: pointer;
  padding: 7px 0;
}
.history-values table {
  width: 100%;
}
.history-chart-empty {
  padding: 60px 25px;
  color: var(--ui-muted);
  text-align: center;
  font-size: var(--ui-text-sm);
}
@media (max-width: 1000px) {
  .director-deadlines {
    grid-template-columns: 1fr;
  }
}
.shift-gauge {
  width: min(100%, 260px);
  margin: 9px auto 10px;
  color: var(--ui-muted);
}
.shift-gauge svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.shift-gauge path {
  stroke-width: 15;
  fill: none;
}
.gauge-green {
  stroke: var(--ui-success);
}
.gauge-yellow {
  stroke: var(--ui-warning);
}
.gauge-red {
  stroke: var(--ui-danger);
}
.shift-gauge text {
  fill: #e7f1ed;
  font: 14px Arial, sans-serif;
}
.shift-gauge .gauge-target-label {
  font-weight: 800;
  fill: #fff;
}
.gauge-tick {
  stroke: var(--ui-success);
  stroke-width: 2;
}
.gauge-target {
  stroke: #fff;
  stroke-width: 3;
}
.gauge-needle {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
}
.gauge-hub {
  fill: #fff;
  stroke: var(--ui-success);
  stroke-width: 3;
}
.shift-gauge .gauge-value {
  font-size: 29px;
  font-weight: 750;
  fill: #fff;
  letter-spacing: -1px;
}
.gauge-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: var(--ui-text-sm);
  flex-wrap: wrap;
  margin-top: 2px;
}
.gauge-caption b {
  background: var(--ui-warning-bg);
  color: var(--ui-success);
  border-radius: 5px;
  padding: 4px 7px;
}
.gauge-caption span {
  color: var(--ui-muted);
}
.shift-gauge-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.shift-gauge-link > span {
  display: block;
  text-align: center;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 8px;
}
.shift-gauge-link:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 4px;
  border-radius: 10px;
}
.department-load-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.department-load-heading > span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.department-load-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.department-load-card {
  border-radius: 20px;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  padding: 22px;
}
.department-load-card.over {
  background: var(--ui-subtle);
}
.department-load-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.department-load-title h2 {
  font-size: 18px;
}
.department-load-title span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.department-load-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.department-load-values small {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-bottom: 6px;
}
.department-load-values b {
  font-size: 17px;
}
.department-load-card p {
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  color: var(--ui-muted);
  margin: 17px 0;
}
.department-load-card > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  color: var(--ui-muted);
  border: 0;
  border-top: 1px solid #ffffff40;
  padding: 13px 0 0;
  font-size: var(--ui-text-sm);
}
.department-load-note {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.7;
  margin: 20px 0;
}
@media (max-width: 1250px) {
  .department-load-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .department-load-grid {
    grid-template-columns: 1fr;
  }
  .department-load-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
.department-functions {
  margin: 14px 0;
  border-top: 1px solid #ffffff30;
  padding-top: 12px;
}
.department-functions summary {
  font-size: var(--ui-text-sm);
  cursor: pointer;
  color: var(--ui-muted);
  font-weight: 600;
}
.department-functions > div > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #ffffff20;
  padding: 12px 0;
}
.department-functions b {
  font-size: var(--ui-text-sm);
  font-weight: 500;
  color: var(--ui-muted);
}
.department-functions span {
  font-size: var(--ui-text-sm);
  line-height: 1.4;
  color: var(--ui-muted);
}
.department-functions span.assigned {
  color: var(--ui-muted);
}
.department-functions > small {
  display: block;
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  color: var(--ui-muted);
  margin-top: 10px;
}
.control-task-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ui-line);
  padding: 8px 0;
}
.control-task-item > .control-task-row {
  flex: 1;
  min-width: 0;
  border: 0;
}
.task-completion {
  flex: none;
  max-width: 320px;
}
.task-completion-error {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ui-danger);
  margin-top: 10px;
}
.task-activity-link {
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ui-link);
  padding: 8px;
}
.control-auto-completion-note {
  font-size: 16px !important;
  color: var(--ui-text) !important;
  background: var(--ui-subtle);
  padding: 16px 24px;
  line-height: 1.5;
}
.control-auto-completion-note a {
  color: var(--ui-link);
}
@media (max-width: 700px) {
  .control-task-item {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
  }
  .control-task-item > .control-task-row {
    flex-basis: 100%;
  }
  .task-completion {
    width: 100%;
    max-width: none;
  }
  .task-completion > .ui-button {
    width: 100%;
  }
  .control-auto-completion-note {
    padding: 16px;
  }
}
.director-control {
  margin: 0 0 27px;
}
.control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
}
.control-heading h2 {
  font-size: 18px;
  color: var(--ui-text);
}
.control-heading .eyebrow {
  font-size: var(--ui-text-sm);
  margin-bottom: 6px;
}
.control-areas {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.control-area {
  text-align: left;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  padding: 16px 14px;
  color: var(--ui-muted);
  min-width: 0;
  transition: .15s;
}
.control-area:hover,
.control-area.selected {
  background: var(--ui-selected);
  border-color: var(--ui-line);
}
.control-area-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 15px;
}
.control-area-top > span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.control-area b {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  line-height: 1.6;
}
.control-area small {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.7;
  margin-top: 6px;
}
.control-area.attention {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
}
.control-area.attention .control-area-top > span {
  color: var(--ui-text);
}
.control-area.attention b {
  color: var(--ui-text);
}
.control-detail {
  margin-top: 15px;
}
.control-detail .panel-head h2 {
  font-size: 17px;
}
.control-detail .panel-head p {
  font-size: var(--ui-text-sm);
}
.control-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 23px 13px;
  flex-wrap: wrap;
}
.control-toolbar .search {
  min-width: 230px;
  flex: 1;
}
.control-draft-note {
  font-size: var(--ui-text-sm);
  line-height: 1.8;
  color: var(--ui-muted);
  background: var(--ui-subtle);
  padding: 10px 23px;
}
.control-task-list {
  padding: 3px 14px;
}
.control-task-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 17px 9px;
  border: 0;
  background: none;
  color: var(--ui-muted);
  border-bottom: 1px solid var(--ui-line);
}
.control-task-row:hover {
  background: var(--ui-subtle);
}
.control-task-row > div {
  flex: 1;
}
.control-task-row b {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  font-weight: 650;
  line-height: 1.7;
}
.control-task-row small {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: 5px;
}
.control-task-row.blocked .task-status-mark {
  background: var(--ui-danger-bg);
}
.control-task-row:last-child {
  border: 0;
}
.control-empty {
  padding: 29px 25px;
  text-align: center;
  color: var(--ui-muted);
}
.control-empty b {
  display: block;
  margin: 12px 0 9px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.control-empty p {
  font-size: var(--ui-text-sm);
  line-height: 1.9;
  max-width: 540px;
  margin: 0 auto;
  color: var(--ui-muted);
}
.control-empty .text-button {
  margin-top: 17px;
}
.control-return {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 17px;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  background: none;
  text-align: left;
  padding: 17px 23px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.control-return:hover {
  background: var(--ui-subtle);
}
.control-return > div {
  flex: 1;
}
.control-return b {
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
}
.control-return small {
  display: block;
  font-size: var(--ui-text-sm);
  margin-top: 5px;
  color: var(--ui-muted);
  line-height: 1.7;
}
.control-return > span:not(.badge) {
  font-size: var(--ui-text-sm);
}
.control-feedback {
  font-size: var(--ui-text-sm);
  padding: 12px 16px;
  color: var(--ui-muted);
  background: var(--ui-subtle);
  line-height: 1.8;
  margin-top: 12px;
  border-radius: 6px;
}
.control-error {
  font-size: var(--ui-text-sm);
  line-height: 1.8;
  color: var(--ui-danger);
  padding: 12px;
  background: var(--ui-subtle);
  border-radius: 6px;
}
.control-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.control-form .modal-body {
  flex: 1;
}
.control-form .field textarea {
  min-height: 105px;
}
.control-brief {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}
.control-brief button {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  padding: 12px 16px;
  border-radius: 7px;
  text-align: left;
  color: var(--ui-muted);
}
.control-brief button > span {
  font-size: var(--ui-text-sm);
  min-width: 95px;
  color: var(--ui-text);
}
.control-brief b {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  flex: 1;
}
.control-brief small {
  font-size: var(--ui-text-sm);
}
.full-control .control-heading {
  display: none;
}
.director-control button:focus-visible {
  outline: 2px solid var(--ui-line);
  outline-offset: 3px;
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (max-width: 1350px) {
  .control-areas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .control-area {
    padding: 14px;
  }
  .control-area-top {
    margin-bottom: 10px;
  }
  .control-area b {
    font-size: var(--ui-text-sm);
  }
  .control-area small {
    font-size: var(--ui-text-sm);
  }
}
@media (max-width: 680px) {
  .control-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .control-area:last-child {
    grid-column: 1/-1;
  }
  .control-heading h2 {
    font-size: 17px;
  }
  .control-heading .secondary {
    font-size: var(--ui-text-sm);
    padding: 7px 9px;
  }
  .control-return {
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .control-return > div {
    min-width: 140px;
  }
  .control-return .badge {
    font-size: var(--ui-text-sm);
  }
  .control-toolbar {
    padding: 3px 16px 13px;
    gap: 10px;
  }
  .control-toolbar .search {
    min-width: 100%;
  }
  .control-draft-note {
    padding: 10px 16px;
    font-size: var(--ui-text-sm);
  }
  .control-task-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .control-task-row > div {
    min-width: 200px;
  }
  .control-task-row .badge {
    margin-left: 14px;
  }
  .control-brief button {
    flex-wrap: wrap;
    gap: 8px;
  }
  .control-brief b {
    min-width: 170px;
  }
  .control-brief small {
    margin-left: auto;
  }
  .control-form .form-grid {
    grid-template-columns: 1fr;
  }
  .control-empty {
    padding: 24px 18px;
  }
}
.production-tv {
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: var(--ui-font);
  color-scheme: light;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100dvh;
  min-width: 0;
}
.production-tv:fullscreen {
  width: 100vw;
  height: 100dvh;
  overflow: auto;
}
.tv-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tv-page-title {
  margin: 0;
}
.tv-top-state {
  color: var(--ui-muted);
  font-size: 16px;
  flex: 1;
  min-width: 180px;
}
.tv-top-state i {
  display: none;
}
.tv-clock {
  font-size: clamp(36px, 3vw, 68px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.tv-clock small {
  font-size: 16px;
  color: var(--ui-muted);
  margin-left: 8px;
}
.tv-tools {
  display: flex;
  gap: 8px;
}
.tv-tools button {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 10px;
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
}
.tv-tools svg {
  width: 22px;
  height: 22px;
}
.tv-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 20px;
  min-width: 0;
}
.tv-work,
.tv-ready,
.tv-departure {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  min-width: 0;
  overflow: hidden;
}
.tv-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}
.tv-section-title h2 {
  font-size: 24px;
  margin: 0;
}
.tv-section-title > span {
  font-size: 16px;
  color: var(--ui-muted);
  text-align: right;
}
.tv-section-title small {
  display: block;
  font-size: 14px;
  margin-top: 6px;
}
.tv-ready-count {
  font-size: 36px !important;
  color: var(--ui-text) !important;
  font-weight: 700;
}
.tv-table {
  max-width: 100%;
  overflow: auto;
}
.tv-table-head,
.tv-unit {
  display: grid;
  grid-template-columns: minmax(210px, 2.5fr) repeat(5, minmax(75px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 14px 24px;
  min-width: 700px;
}
.tv-table-head {
  background: var(--ui-subtle);
  border-block: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-size: 14px;
  min-height: 54px;
}
.tv-table-head > span:not(:first-child) {
  text-align: center;
}
.tv-unit {
  min-height: 102px;
  border-bottom: 1px solid var(--ui-line);
}
.tv-unit.has-issue {
  background: var(--ui-danger-bg);
}
.tv-unit-name {
  min-width: 0;
}
.tv-unit-name b {
  display: block;
  font-size: clamp(19px, 1.3vw, 30px);
  overflow-wrap: anywhere;
}
.tv-unit-name em {
  color: var(--ui-danger);
  font-size: 14px;
  font-style: normal;
}
.tv-order-suffix {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
.tv-order-suffix > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.tv-order-suffix > strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: var(--ui-text);
}
.tv-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ui-info);
  font-size: 14px;
}
.tv-stage-track {
  height: 12px;
  width: 100%;
  background: var(--ui-line);
  border-radius: 3px;
  overflow: hidden;
}
.tv-stage-track i {
  display: block;
  height: 100%;
  background: var(--ui-link);
}
.tv-stage.done {
  color: var(--ui-success);
}
.tv-stage.done i {
  background: var(--ui-success);
}
.tv-stage.blocked {
  color: var(--ui-danger);
}
.tv-stage.blocked i {
  background: var(--ui-danger);
}
.tv-stage.unknown {
  color: var(--ui-muted);
}
.tv-stage.unknown .tv-stage-track {
  border: 1px dashed var(--ui-input-line);
  background: var(--ui-subtle);
}
.tv-stage.not-needed {
  color: var(--ui-muted);
}
.tv-stage svg {
  width: 18px;
  height: 18px;
}
.tv-work-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  color: var(--ui-muted);
  font-size: 14px;
}
.tv-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.tv-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tv-legend i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.tv-legend .done {
  background: var(--ui-success);
}
.tv-legend .doing {
  background: var(--ui-link);
}
.tv-legend .blocked {
  background: var(--ui-danger);
}
.tv-legend .unknown {
  border: 1px dashed var(--ui-input-line);
}
.tv-ready .tv-section-title {
  border-bottom: 1px solid var(--ui-line);
}
.tv-ready-unit {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ui-line);
}
.tv-ready-unit > span {
  color: var(--ui-success);
}
.tv-ready-unit b {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.tv-ready-unit small,
.tv-ready-page {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
}
.tv-ready-page {
  padding: 16px;
}
.tv-stock-next {
  background: var(--ui-success-bg);
}
.tv-stock-action {
  display: block;
  color: var(--ui-success);
  font-size: 16px;
  margin-top: 10px;
}
.tv-stock-action small {
  margin-top: 6px;
}
.tv-departure {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding: 24px;
}
.tv-truck {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ui-muted);
  font-size: 16px;
}
.tv-truck svg {
  width: 28px;
  height: 28px;
}
.tv-departure h2 {
  font-size: 24px;
  margin: 0;
}
.tv-timer {
  font-size: clamp(44px, 4vw, 72px);
  font-variant-numeric: tabular-nums;
  color: var(--ui-text);
  line-height: 1.15;
}
.tv-departure.soon .tv-timer {
  color: var(--ui-warning);
}
.tv-departure.late .tv-timer {
  color: var(--ui-danger);
}
.tv-timer-caption {
  font-size: 14px;
  color: var(--ui-muted);
}
.tv-departure p {
  font-size: 16px;
  margin: 0;
  color: var(--ui-muted);
}
.tv-departure-rule b {
  display: block;
}
.tv-departure-rule span {
  display: block;
  font-size: 16px;
  color: var(--ui-muted);
  margin-top: 8px;
}
.tv-trip-info {
  font-size: 16px;
  color: var(--ui-muted);
}
.tv-trip-info b {
  display: block;
  color: var(--ui-warning);
}
.tv-empty {
  padding: 24px;
  color: var(--ui-muted);
  font-size: 18px;
}
.tv-empty small {
  display: block;
  font-size: 14px;
  margin-top: 8px;
}
.tv-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ui-muted);
}
.tv-footer small {
  display: block;
  font-size: 14px;
}
@media (max-width: 1450px) {
  .tv-columns {
    grid-template-columns: 1fr;
  }
  .tv-ready-list {
    display: flex;
    flex-wrap: wrap;
  }
  .tv-ready-unit {
    flex: 1 1 260px;
  }
}
@media (max-width: 600px) {
  .production-tv {
    padding: 20px 16px;
  }
  .tv-top {
    gap: 14px;
  }
  .tv-top-state {
    flex-basis: 100%;
    order: 3;
  }
  .tv-tools {
    margin-left: auto;
  }
  .tv-clock {
    font-size: 32px;
  }
  .tv-departure {
    grid-template-columns: 1fr;
  }
  .tv-work-bottom {
    padding: 16px;
  }
  .tv-section-title {
    padding: 18px 16px;
  }
  .tv-section-title h2 {
    font-size: 21px;
  }
}
.picking-screen {
  display: grid;
  gap: 18px;
  color: var(--ui-text);
}
.picking-toolbar,
.picking-toolbar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.picking-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--ui-text-sm);
}
.picking-toolbar input {
  padding: 9px;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: var(--ui-surface);
}
.picking-intro {
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ui-text);
}
.picking-intro h2 {
  font-size: 27px;
  margin: 8px 0;
}
.picking-intro p {
  margin: 0;
  font-size: 14px;
}
.picking-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.picking-counts > div {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: 14px;
  padding: 17px;
  display: grid;
  gap: 4px;
}
.picking-counts b {
  font-size: 30px;
  font-weight: 800;
}
.picking-counts span {
  font-size: var(--ui-text-sm);
}
.picking-counts .ready {
  background: var(--ui-subtle);
  color: var(--ui-success);
  border-color: var(--ui-line);
}
.picking-counts .pending {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.picking-scope {
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  color: var(--ui-muted);
  margin: 0;
}
.picking-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.picking-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.picking-filter button {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: var(--ui-text-sm);
  font-weight: 650;
}
.picking-filter button.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.picking-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  padding: 9px 12px;
}
.picking-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  min-width: 200px;
  font-size: 14px;
}
.picking-list {
  display: grid;
  gap: 10px;
}
.picking-row {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr .75fr;
  gap: 20px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-left: 5px solid var(--ui-line);
  border-radius: 13px;
  padding: 20px;
}
.picking-row.assigned {
  border-left-color: var(--ui-line);
}
.picking-row.prepared {
  border-left-color: var(--ui-line);
  background: var(--ui-subtle);
}
.picking-row.blocked {
  border-left-color: var(--ui-line);
  background: var(--ui-subtle);
}
.picking-order,
.picking-place {
  display: grid;
  align-content: start;
  gap: 7px;
}
.picking-order > b {
  font-size: 21px;
  color: var(--ui-text);
  overflow-wrap: anywhere;
}
.picking-order > span {
  font-size: var(--ui-text-sm);
  overflow-wrap: anywhere;
}
.picking-row small {
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  color: var(--ui-muted);
}
.picking-place strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
}
.picking-place p {
  margin: 0;
  font-size: var(--ui-text-sm);
  line-height: 1.5;
}
.picking-state {
  font-size: var(--ui-text-sm);
  font-weight: 750;
  color: var(--ui-text);
}
.prepared .picking-state {
  color: var(--ui-text);
}
.blocked .picking-state {
  color: var(--ui-danger);
}
.picking-checks {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 14px;
}
.picking-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}
.picking-checks input,
.picking-spec input {
  width: 22px;
  height: 22px;
  accent-color: #169960;
  flex-shrink: 0;
}
.picking-checks input:disabled {
  opacity: .45;
}
.picking-checks .text-button {
  font-size: var(--ui-text-sm);
  padding: 0;
}
.picking-empty {
  text-align: center;
  padding: 35px;
  background: var(--ui-surface);
  border: 1px dashed var(--ui-line);
  border-radius: 14px;
}
.picking-empty h3 {
  margin: 12px 0;
}
.picking-empty p {
  font-size: 14px;
  color: var(--ui-muted);
}
.picking-help,
.picking-history {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  padding: 14px;
  background: var(--ui-surface);
  font-size: var(--ui-text-sm);
  line-height: 1.6;
}
.picking-help summary,
.picking-history summary {
  font-weight: 700;
  cursor: pointer;
}
.picking-history > div {
  display: grid;
  padding: 12px 0;
  border-top: 1px solid var(--ui-line);
  gap: 4px;
}
.picking-freshness {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.5;
}
.picking-feedback {
  padding: 12px 15px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.5;
}
.picking-dialog {
  border: 0;
  border-radius: 20px;
  width: min(760px, 94vw);
  max-height: 90dvh;
  padding: 0;
  color: var(--ui-text);
  box-shadow: 0 22px 80px #152b4140;
}
.picking-dialog::backdrop {
  background: #12294380;
}
.picking-dialog form {
  padding: 25px;
  display: grid;
  gap: 16px;
}
.picking-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.picking-dialog h2 {
  font-size: 24px;
  margin: 8px 0;
}
.picking-dialog header p {
  font-size: 14px;
  margin: 0;
}
.picking-options {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 7px;
}
.picking-options > label {
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  cursor: pointer;
}
.picking-options > label.selected {
  background: var(--ui-selected);
  border-color: var(--ui-line);
}
.picking-options input {
  width: 19px;
  height: 19px;
  accent-color: #2679bd;
}
.picking-options > label > div {
  display: grid;
  gap: 5px;
}
.picking-options b {
  font-size: 21px;
  color: var(--ui-text);
}
.picking-options b small {
  font-weight: 500;
  font-size: var(--ui-text-sm);
}
.picking-options span {
  font-size: 14px;
}
.picking-options small {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.picking-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 150px;
  gap: 12px;
}
.picking-fields label {
  display: grid;
  gap: 6px;
  font-size: var(--ui-text-sm);
  font-weight: 650;
}
.picking-fields input {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}
.picking-spec {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  line-height: 1.5;
}
.picking-dialog-note {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  display: flex;
  gap: 7px;
  align-items: start;
  margin: 0;
}
.picking-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.director-stock-picking {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  padding: 18px 22px;
  text-align: left;
  color: var(--ui-text);
  width: 100%;
}
.director-stock-picking > div {
  flex: 1;
}
.director-stock-picking h3 {
  font-size: 18px;
  margin: 0 0 5px;
}
.director-stock-picking p {
  font-size: var(--ui-text-sm);
  margin: 0;
  line-height: 1.5;
}
.director-stock-picking > b {
  font-size: 25px;
  white-space: nowrap;
}
.picking-stock-link {
  margin-bottom: 18px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 1100px) {
  .picking-row {
    grid-template-columns: 1fr 1fr;
  }
  .picking-checks {
    grid-column: 1/-1;
  }
  .picking-fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .picking-counts {
    grid-template-columns: 1fr 1fr;
  }
  .picking-toolbar,
  .picking-toolbar > div {
    flex-wrap: wrap;
  }
  .picking-row,
  .picking-fields {
    grid-template-columns: 1fr;
  }
  .picking-intro h2 {
    font-size: 23px;
  }
  .director-stock-picking {
    flex-wrap: wrap;
  }
  .picking-search {
    width: 100%;
  }
}
.picking-location-label {
  font-size: var(--ui-text-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ui-text);
  font-weight: 700;
}
.picking-ready-check {
  padding: 12px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  width: 100%;
  color: var(--ui-text);
}
.picking-ready-check input {
  width: 26px;
  height: 26px;
}
.picking-place > strong {
  background: var(--ui-subtle);
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--ui-text);
  font-size: 23px;
}
.director-stock-picking .director-picking-total {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  min-width: 120px;
  text-align: center;
}
.director-picking-total strong {
  font-size: 29px;
  color: var(--ui-text);
}
.director-picking-total span {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
}
.director-picking-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  min-height: 76px;
  min-width: 310px;
  padding: 14px 22px;
  background: var(--ui-accent);
  border: 2px solid var(--ui-line);
  border-radius: 13px;
  color: var(--ui-text);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 750;
  text-align: left;
  box-shadow: 0 5px 12px #165ed326;
  cursor: pointer;
}
.director-picking-cta b {
  font-size: 17px;
  font-weight: 650;
}
.director-picking-cta:hover {
  background: var(--ui-accent);
  border-color: var(--ui-line);
  box-shadow: 0 7px 16px #165ed33a;
}
.director-picking-cta:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  .director-stock-picking {
    flex-wrap: wrap;
  }
  .director-picking-cta {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .director-stock-picking > div:first-child {
    min-width: 190px;
  }
}
.picking-missing-check {
  padding: 11px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  width: 100%;
  color: var(--ui-text);
}
.picking-missing-check input {
  accent-color: #d63129;
}
.director-warehouse-alert {
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  background: var(--ui-subtle);
  color: var(--ui-danger);
  border: 2px solid var(--ui-line);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
}
.director-warehouse-alert > div {
  flex: 1;
  display: grid;
  gap: 7px;
}
.director-warehouse-alert b {
  font-size: 20px;
}
.director-warehouse-alert span {
  font-size: 14px;
}
.picking-run {
  display: grid !important;
  width: 100%;
  gap: 5px !important;
}
.picking-run select,
.picking-rework-select select,
.picking-fields select {
  padding: 10px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-surface);
  font-size: var(--ui-text-sm);
  max-width: 100%;
}
.picking-rework {
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  padding: 11px;
  display: grid;
  gap: 6px;
  color: var(--ui-text);
}
.picking-rework b {
  font-size: 14px;
}
.picking-rework span {
  font-size: var(--ui-text-sm);
}
.picking-rework small {
  color: var(--ui-text);
}
.picking-rework-select,
.picking-comment-field {
  display: grid;
  gap: 7px;
  font-size: var(--ui-text-sm);
  font-weight: 650;
}
.picking-comment-field textarea {
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  min-height: 70px;
  font: inherit;
  resize: vertical;
}
.picking-comment {
  border-left: 3px solid var(--ui-line);
  padding-left: 9px;
}
.picking-rework-check {
  font-size: var(--ui-text-sm) !important;
}
.picking-rework-check input {
  width: 22px;
  height: 22px;
  accent-color: #8053b8;
}
.picking-row-feedback {
  margin: 0;
  font-size: var(--ui-text-sm);
  line-height: 1.4;
  padding: 6px 9px;
  border: 1px solid var(--ui-line);
  background: var(--ui-subtle);
  border-radius: 6px;
  width: 100%;
}
.picking-screen,
.picking-toolbar {
  gap: 10px;
}
.picking-toolbar input {
  padding: 6px 8px;
}
.picking-intro {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 12px;
}
.picking-intro h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  margin: 2px 0;
  color: var(--ui-text);
}
.picking-local-label {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  white-space: nowrap;
}
.picking-counts {
  gap: 8px;
}
.picking-counts > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 9px;
}
.picking-counts b {
  font-size: 23px;
  line-height: 1.2;
}
.picking-counts span {
  font-size: var(--ui-text-sm);
  line-height: 1.25;
}
.picking-filter {
  gap: 8px;
}
.picking-filter button {
  padding: 7px 9px;
  font-size: var(--ui-text-sm);
}
.picking-search {
  padding: 7px 9px;
}
.picking-list {
  gap: 6px;
}
.picking-row {
  grid-template-columns: minmax(210px, 1.1fr) minmax(180px, 1fr) 210px;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  border-left-width: 4px;
  align-items: center;
}
.picking-order,
.picking-place {
  gap: 4px;
  min-width: 0;
}
.picking-order > b {
  font-size: 20px;
  line-height: 1.2;
}
.picking-order > span {
  font-size: var(--ui-text-sm);
  line-height: 1.3;
}
.picking-row small {
  font-size: var(--ui-text-sm);
  line-height: 1.35;
}
.picking-location-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.picking-location-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  color: var(--ui-text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.picking-location-button.repack {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  color: var(--ui-text);
}
.picking-location-button.unknown {
  font-size: 14px;
  color: var(--ui-text);
  background: var(--ui-subtle);
  border-color: var(--ui-line);
}
.picking-location-button:disabled {
  opacity: 1;
  cursor: default;
}
.picking-location-button:hover:not(:disabled) {
  border-color: var(--ui-line);
}
.picking-location-button:focus-visible,
.picking-row-details summary:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 2px;
}
.picking-source-badge {
  font-size: var(--ui-text-sm);
  color: var(--ui-info);
}
.picking-status-chip {
  font-size: var(--ui-text-sm);
  font-weight: 700;
  border-radius: 5px;
  padding: 3px 6px;
}
.picking-status-chip.danger {
  background: var(--ui-info-bg);
  color: var(--ui-danger);
}
.picking-status-chip.warning {
  background: var(--ui-warning-bg);
  color: var(--ui-danger);
}
.picking-repack-badge {
  font-size: var(--ui-text-sm);
  font-weight: 650;
  color: var(--ui-info);
}
.picking-rework-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ui-text-sm);
  line-height: 1.3;
}
.picking-place-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 12px;
}
.picking-run-compact {
  font: inherit;
  font-size: var(--ui-text-sm);
  padding: 3px 5px;
  border: 1px solid var(--ui-line);
  border-radius: 5px;
  background: var(--ui-surface);
  color: var(--ui-text);
  max-width: 170px;
}
.picking-row-details {
  font-size: var(--ui-text-sm);
  min-width: 0;
}
.picking-row-details[open] {
  flex-basis: 100%;
}
.picking-row-details summary {
  cursor: pointer;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  padding: 3px 0;
}
.picking-detail-content {
  display: grid;
  gap: 8px;
  padding: 9px 0 2px;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  overflow-wrap: anywhere;
}
.picking-detail-content p {
  font-size: var(--ui-text-sm);
  margin: 0;
}
.picking-detail-content .text-button {
  padding: 2px 0;
  font-size: var(--ui-text-sm);
  justify-content: flex-start;
}
.picking-detail-proposal {
  display: grid;
  gap: 4px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ui-line);
}
.picking-checks {
  display: grid;
  grid-column: auto;
  gap: 5px;
  align-content: center;
}
.picking-checks label {
  font-size: var(--ui-text-sm);
  font-weight: 700;
  line-height: 1.25;
  gap: 7px;
}
.picking-ready-check,
.picking-missing-check {
  padding: 6px 8px;
  border-radius: 7px;
  min-height: 33px;
  cursor: pointer;
}
.picking-checks input,
.picking-ready-check input {
  width: 20px;
  height: 20px;
}
.picking-checks input:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 2px;
}
.picking-help,
.picking-history {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: var(--ui-text-sm);
}
.picking-freshness {
  font-size: var(--ui-text-sm);
}
.picking-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.picking-tabs > button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  padding: 8px 13px;
  background: var(--ui-surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--ui-text);
  cursor: pointer;
}
.picking-tabs > button.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.picking-tabs > button.repack {
  border-color: var(--ui-line);
  color: var(--ui-text);
}
.picking-tabs > button.repack.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.picking-tabs b {
  font-size: var(--ui-text-sm);
  background: #ffffff36;
  padding: 2px 6px;
  border-radius: 5px;
}
.picking-repack-scope {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  margin: 0;
  align-self: center;
}
.picking-repack-source {
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  font-weight: 650;
}
.picking-repack-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  font-weight: 700;
  cursor: pointer;
  grid-column: 1/-1;
}
.picking-repack-action:disabled {
  opacity: .5;
  cursor: default;
}
@media (min-width: 1650px) {
  .picking-row {
    grid-template-columns: minmax(280px, 1.1fr) minmax(220px, 1fr) 340px;
  }
  .picking-checks {
    grid-template-columns: 1.2fr 1fr;
  }
  .picking-row-feedback {
    grid-column: 1/-1;
  }
}
@media (max-width: 1100px) {
  .picking-row {
    grid-template-columns: minmax(190px, 1fr) minmax(155px, .85fr) 185px;
    gap: 10px;
    padding: 9px 11px;
  }
  .picking-checks {
    grid-column: auto;
  }
  .picking-order > b {
    font-size: 18px;
  }
  .picking-location-button {
    font-size: 18px;
  }
}
@media (max-width: 780px) {
  .picking-row {
    grid-template-columns: 1fr 1fr;
  }
  .picking-checks {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
  }
  .picking-row-feedback {
    grid-column: 1/-1;
  }
  .picking-counts {
    grid-template-columns: repeat(2, 1fr);
  }
  .picking-intro h2 {
    font-size: 20px;
  }
  .picking-local-label {
    font-size: var(--ui-text-sm);
  }
  .picking-toolbar,
  .picking-toolbar > div {
    flex-wrap: wrap;
  }
}
@media (max-width: 420px) {
  .picking-row {
    grid-template-columns: 1fr;
  }
  .picking-checks {
    grid-column: auto;
  }
  .picking-intro {
    flex-wrap: wrap;
  }
  .picking-checks label {
    font-size: var(--ui-text-sm);
  }
}
:root {
  --sidebar:244px;
}
* {
  box-sizing: border-box;
}
body {
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--ui-line);
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 750;
}
small {
  font-size: var(--ui-text-sm);
}
.app {
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--ui-surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 18px 0;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin: 0 6px 39px;
}
.brand small {
  display: block;
  font-size: var(--ui-text-sm);
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  margin-top: 5px;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 42px;
  border-radius: 19px 19px 7px 7px;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  position: relative;
  font-size: 24px;
  font-weight: 500;
  flex: none;
}
.brand-icon:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffff50;
  border-radius: 18px 18px 5px 5px;
}
.side-label {
  font-size: var(--ui-text-sm);
  font-weight: 750;
  letter-spacing: 1.5px;
  color: var(--ui-muted);
  padding: 0 13px;
  margin-bottom: 13px;
}
nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 8px;
  padding: 12px 13px;
  margin: 2px 0;
  font-size: var(--ui-text-sm);
  font-weight: 600;
  transition: .15s;
}
nav button svg {
  color: var(--ui-muted);
}
nav button.selected {
  color: var(--ui-text);
  background: var(--ui-selected);
  font-weight: 750;
}
nav button.selected svg {
  color: var(--ui-text);
}
nav button:hover {
  background: var(--ui-subtle);
}
nav button span:nth-child(2) {
  flex: 1;
}
nav button b {
  font-size: var(--ui-text-sm);
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-radius: 5px;
  padding: 2px 6px;
}
.dept-label {
  margin-top: 33px;
}
.department-nav button {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: var(--ui-text-sm);
}
.department-nav small {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.dept-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--ui-success-bg);
  margin-left: 6px;
  margin-right: 7px;
}
.boxes {
  --dept:#ae8655;
}
.packing {
  --dept:#9676b2;
}
.mirrors {
  --dept:#459d95;
}
.frames {
  --dept:#668caf;
}
.assembly {
  --dept:#ac9780;
}
.quality {
  --dept:#84a879;
}
.warehouse {
  --dept:#89929e;
}
.dept-dot {
  background: var(--dept,var(--ui-success-bg));
}
.side-bottom {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 24px 7px;
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
}
.side-bottom small {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: 5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--ui-success-bg);
  border-radius: 50%;
  display: inline-block;
  flex: none;
  margin-top: 4px;
  box-shadow: 0 0 0 3px #4b9c7712;
}
.amber-dot {
  background: var(--ui-danger-bg);
}
.profile {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 18px 5px;
  margin: 0 -4px;
}
.avatar {
  background: var(--ui-subtle);
  color: var(--ui-text);
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: var(--ui-text-sm);
  font-weight: 750;
  flex: none;
}
.profile div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.profile strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--ui-text-sm);
}
.profile small {
  color: var(--ui-muted);
  display: block;
  font-size: var(--ui-text-sm);
  margin-top: 4px;
}
.profile a {
  color: var(--ui-muted);
}
.main {
  margin-left: var(--sidebar);
}
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.breadcrumb b {
  color: var(--ui-text);
  font-weight: 600;
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.shift-pill {
  display: flex;
  gap: 8px;
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  align-items: center;
}
.shift-pill .status-dot {
  margin: 0;
}
.icon-button {
  border: 0;
  background: none;
  color: var(--ui-muted);
  padding: 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1630px;
  margin: 0 auto;
  padding: 31px 36px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: var(--ui-text-sm);
  font-weight: 800;
  letter-spacing: 1.7px;
  color: var(--ui-muted);
  margin-bottom: 9px;
}
.page-heading p {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.7;
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.date-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ui-surface);
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--ui-muted);
}
.date-picker input {
  border: 0;
  background: none;
  width: 125px;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
}
.primary,
.secondary {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.secondary:hover {
  background: var(--ui-subtle);
}
.small {
  padding: 7px 11px;
  min-height: 31px;
  font-size: var(--ui-text-sm);
}
.large {
  padding: 14px 24px;
  font-size: var(--ui-text-sm);
}
.text-button {
  background: none;
  border: 0;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
}
.banner {
  display: flex;
  gap: 15px;
  align-items: center;
  border-radius: 9px;
  padding: 17px 20px;
  margin-bottom: 24px;
}
.banner div:not(.banner-icon) {
  flex: 1;
}
.banner b {
  display: block;
  font-size: var(--ui-text-sm);
  font-weight: 750;
}
.banner span:not(.banner-icon) {
  display: block;
  font-size: var(--ui-text-sm);
  line-height: 1.7;
  margin-top: 5px;
  opacity: .85;
}
.banner-icon {
  height: 38px;
  width: 38px;
  background: var(--ui-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner button {
  border: 0;
  background: var(--ui-surface);
  padding: 9px 13px;
  border-radius: 6px;
  color: inherit;
  font-size: var(--ui-text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.danger {
  background: var(--ui-subtle);
  color: var(--ui-danger);
  border: 1px solid var(--ui-line);
}
.soft {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border: 1px solid var(--ui-line);
}
.warning {
  background: var(--ui-info-bg);
  color: var(--ui-danger);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: var(--ui-surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px 18px;
  min-height: 138px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  gap: 8px;
}
.metric-top svg {
  color: var(--ui-muted);
}
.metric strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 750;
  margin: 14px 0 7px;
  line-height: 1;
}
.metric small {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.metric.mint {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
}
.metric.mint strong,
.metric.mint svg {
  color: var(--ui-text);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 20px;
  margin-bottom: 27px;
}
.panel {
  background: var(--ui-surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 23px 16px;
}
.panel-head p {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: 7px;
}
.panel-head svg {
  color: var(--ui-muted);
}
.subtle {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.chart {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 18px 23px 0;
  background:
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent 43px,
      var(--ui-subtle) 44px,
      var(--ui-subtle) 45px);
  background-clip: content-box;
}
.bar-column {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0;
  flex: 1;
  min-width: 0;
  color: var(--ui-muted);
  height: 100%;
}
.bar {
  background: var(--ui-subtle);
  border-radius: 3px 3px 0 0;
  min-width: 5px;
  width: 70%;
  max-width: 23px;
  transition: .25s;
}
.bar-column.active .bar {
  background: var(--ui-selected);
}
.bar-column:hover .bar {
  background: var(--ui-subtle);
}
.bar-value {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.bar-column small {
  font-size: var(--ui-text-sm);
}
.chart-foot {
  padding: 17px 23px 22px;
  display: flex;
  justify-content: space-between;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  gap: 15px;
}
.chart-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-foot i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ui-success-bg);
  border-radius: 2px;
}
.checkpoints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px 18px 29px;
}
.checkpoints div {
  text-align: center;
  border-right: 1px solid var(--line);
}
.checkpoints div:last-child {
  border: 0;
}
.checkpoints span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.checkpoints strong {
  display: block;
  font-size: 28px;
  font-weight: 650;
  color: var(--ui-muted);
  line-height: 1.5;
  margin: 7px 0;
}
.checkpoints small {
  display: block;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  max-width: 85px;
  margin: auto;
}
.panel-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 15px 23px;
  color: var(--ui-muted);
  background: var(--ui-surface);
  border: 0;
  border-top: 1px solid var(--line);
  font-size: var(--ui-text-sm);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 15px;
}
.section-title span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.department-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 25px;
}
.department-card {
  border: 1px solid var(--line);
  background: var(--ui-surface);
  border-radius: 9px;
  padding: 16px;
  text-align: left;
  transition: .15s;
}
.department-card:hover {
  border-color: var(--ui-line);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px #183f2410;
}
.department-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--ui-muted);
}
.dept-symbol {
  width: 29px;
  height: 29px;
  background: color-mix(in srgb, var(--dept) 12%, white);
  color: var(--dept);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ui-text-sm);
  font-weight: 800;
}
.department-card h3 {
  font-size: var(--ui-text-sm);
}
.department-card p {
  font-size: var(--ui-text-sm);
  margin: 8px 0 14px;
  color: var(--ui-muted);
}
.department-card p span {
  color: var(--ui-muted);
}
.progress-track {
  height: 4px;
  background: var(--ui-subtle);
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
}
.progress-track i {
  height: 100%;
  background: var(--ui-success-bg);
  display: block;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
td b {
  font-size: var(--ui-text-sm);
  font-weight: 700;
  color: var(--ui-text);
}
td small {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  max-width: 230px;
  white-space: normal;
  line-height: 1.6;
  margin-top: 4px;
}
tr:last-child td {
  border-bottom: 0;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: var(--ui-subtle);
}
.urgent-row {
  background: var(--ui-surface);
}
.amount {
  font-weight: 750;
  color: var(--ui-text);
}
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 7px;
  font-size: var(--ui-text-sm);
  line-height: 1.4;
  font-weight: 600;
  background: var(--ui-subtle);
  color: var(--ui-success);
  border-radius: 5px;
}
.badge.red {
  background: var(--ui-subtle);
  color: var(--ui-danger);
}
.badge.amber {
  background: var(--ui-info-bg);
  color: var(--ui-danger);
}
.badge.green {
  background: var(--ui-subtle);
  color: var(--ui-success);
}
.source-footer {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 20px 0;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  flex-wrap: wrap;
}
.source-footer b {
  font-weight: 600;
  color: var(--ui-muted);
}
.source-footer a {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
}
.source-footer .status-dot {
  margin: 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ui-surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ui-muted);
  min-width: 270px;
}
.search input {
  border: 0;
  outline: none;
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  width: 100%;
  background: none;
}
.search input::placeholder {
  color: var(--ui-muted);
}
.toolbar > select {
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 8px;
  background: white;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--ui-subtle);
  border-radius: 8px;
}
.segmented button {
  border: 0;
  background: none;
  padding: 8px 12px;
  font-size: var(--ui-text-sm);
  font-weight: 600;
  color: var(--ui-muted);
  border-radius: 5px;
}
.segmented .active {
  background: white;
  box-shadow: 0 1px 4px #334d5610;
  color: var(--ui-success);
}
.process-strip {
  padding: 15px 0 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.process-strip > span:first-child {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  font-weight: 750;
  letter-spacing: 1px;
}
.process {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.process b {
  height: 21px;
  width: 21px;
  border: 1px solid var(--ui-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ui-text-sm);
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 17px;
  overflow-x: auto;
  min-height: 390px;
}
.kanban-column {
  background: var(--ui-subtle);
  border-radius: 10px;
  padding: 13px;
  min-height: 365px;
}
.kanban-column > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin: 4px 2px 17px;
}
.kanban-column > h3 b {
  margin-left: auto;
  color: var(--ui-muted);
  font-weight: 500;
  background: var(--ui-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}
.column-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui-subtle);
}
.doing .column-dot {
  background: var(--ui-info-bg);
}
.blocked .column-dot {
  background: var(--ui-danger-bg);
}
.done .column-dot {
  background: var(--ui-success-bg);
}
.task-card {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: 8px;
  padding: 15px;
  width: 100%;
  text-align: left;
  margin-bottom: 13px;
  box-shadow: 0 2px 2px #12342303;
}
.task-card:hover {
  border-color: var(--ui-line);
}
.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 11px;
}
.task-card h3 {
  font-size: var(--ui-text-sm);
  line-height: 1.6;
}
.task-card p {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: 5px;
}
.task-process {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  margin: 13px 0 19px;
}
.task-quantity {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.task-quantity > span {
  font-weight: 800;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
}
.task-quantity small {
  font-weight: 500;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.task-bottom {
  border-top: 1px solid var(--ui-line);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  gap: 5px;
}
.task-bottom small {
  display: flex;
  gap: 4px;
  font-size: var(--ui-text-sm);
}
.column-empty {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  border: 1px dashed var(--ui-line);
  border-radius: 7px;
  padding: 21px 10px;
  text-align: center;
}
.notice {
  padding: 13px 16px;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.8;
  border-radius: 7px;
  margin-top: 20px;
}
.notice.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}
.footnote {
  font-size: var(--ui-text-sm);
  line-height: 1.8;
  color: var(--ui-muted);
  margin: 15px 0;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ui-muted);
}
.empty svg {
  margin-bottom: 17px;
}
.empty h3 {
  color: var(--ui-muted);
  margin-bottom: 9px;
}
.empty p {
  font-size: var(--ui-text-sm);
  line-height: 1.8;
}
.shift-hero {
  padding: 32px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.shift-hero h2 {
  font-size: 25px;
  color: var(--ui-text);
}
.shift-hero p {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: 10px;
}
.my-tasks {
  display: grid;
  gap: 12px;
}
.my-task {
  display: flex;
  padding: 20px;
  gap: 17px;
  text-align: left;
  align-items: center;
  color: var(--ui-muted);
}
.my-task > div {
  flex: 1;
}
.my-task small {
  display: block;
  margin-top: 5px;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.my-task strong {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.staff-card {
  padding: 23px;
  text-align: left;
  transition: .15s;
}
.staff-card:hover {
  border-color: var(--ui-line);
}
.staff-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ui-muted);
  margin-bottom: 17px;
}
.large-avatar {
  height: 48px;
  width: 48px;
  font-size: 14px;
}
.staff-card p {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  margin: 8px 0;
}
.staff-email {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0 12px;
}
.staff-card > small {
  color: var(--ui-muted);
  line-height: 1.7;
  font-size: var(--ui-text-sm);
}
.truncated {
  max-width: 170px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--ui-text-sm);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #132a3280;
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.modal {
  width: 560px;
  max-width: 100%;
  background: var(--ui-surface);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 80px #122d3829;
  height: 100dvh;
}
.modal.wide {
  width: 720px;
}
.modal-head {
  padding: 27px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.modal-head h2 {
  font-size: 22px;
}
.modal-head p {
  margin-top: 8px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.modal-body {
  overflow: auto;
  padding: 25px 30px;
  flex: 1;
}
.modal-body > .primary,
.modal-body > .secondary {
  margin: 10px 12px 10px 0;
}
.modal-body h3 {
  margin: 20px 0 12px;
  font-size: var(--ui-text-sm);
}
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 20px 30px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--ui-surface);
  border-radius: 9px;
  padding: 20px;
}
.detail-grid small {
  font-size: var(--ui-text-sm);
  display: block;
  color: var(--ui-muted);
  margin-bottom: 7px;
}
.detail-grid b {
  display: block;
  color: var(--ui-text);
  font-size: var(--ui-text-sm);
  line-height: 1.6;
}
.form-section {
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--line);
}
.form-section h3 {
  margin: 0 0 18px;
  font-size: var(--ui-text-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--ui-line);
  background: var(--ui-subtle);
  border-radius: 7px;
  padding: 11px;
  font-size: var(--ui-text-sm);
  color: var(--ui-text);
  min-height: 39px;
}
.field textarea {
  height: 90px;
  resize: vertical;
  line-height: 1.7;
}
.check-field {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  padding: 11px;
  gap: 12px;
}
.check-field span {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
}
.check-field input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  accent-color: #347a65;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.6;
  padding: 6px 0;
}
.checkbox-grid input {
  accent-color: #367b63;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 90px);
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  padding: 16px 22px;
  border-radius: 9px;
  box-shadow: 0 9px 30px #173d3c30;
  font-size: var(--ui-text-sm);
  max-width: 90vw;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login {
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 85% 5%,
      var(--ui-subtle),
      transparent 55%),
    var(--ui-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.login-mark {
  position: absolute;
  top: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.login-card {
  max-width: 580px;
  text-align: center;
  padding: 60px 40px;
}
.login-card h1 {
  font-size: 48px;
  letter-spacing: -2.5px;
  line-height: 1.15;
  margin: 20px 0 25px;
  color: var(--ui-text);
}
.login-card p {
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.9;
  margin-bottom: 30px;
}
.login-card .text-button {
  margin-top: 25px;
}
.login-bottom {
  position: absolute;
  bottom: 35px;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.red-text {
  color: var(--ui-danger) !important;
}
@media (min-width: 1450px) {
  .department-cards {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .department-card {
    padding: 14px;
  }
  .department-card p {
    font-size: var(--ui-text-sm);
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar:214px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: var(--ui-text-sm);
  }
  .content {
    padding: 27px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric small {
    font-size: var(--ui-text-sm);
  }
  .overview-grid {
    grid-template-columns: 1.6fr 1fr;
  }
  .chart-foot span:last-child {
    display: none;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban {
    grid-template-columns: repeat(4, 230px);
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar:200px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .department-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .checkpoints {
    padding: 15px 20px;
  }
  .checkpoints small {
    max-width: 100px;
  }
  .source-footer span:nth-last-child(2) {
    display: block;
    width: 100%;
  }
  .breadcrumb {
    font-size: var(--ui-text-sm);
    gap: 8px;
  }
  .shift-pill {
    display: none;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  :root {
    --sidebar:244px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: .2s;
  }
  .sidebar.visible {
    transform: none;
    box-shadow: 15px 0 60px #123a3a30;
  }
  .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 60px;
    padding: 0 15px;
    gap: 10px;
  }
  .breadcrumb {
    flex: 1;
  }
  .breadcrumb > b {
    max-width: 110px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .breadcrumb {
    font-size: var(--ui-text-sm);
  }
  .content {
    padding: 23px 17px 0;
  }
  .top-actions {
    gap: 5px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading p {
    font-size: var(--ui-text-sm);
  }
  .banner {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .banner button {
    margin-left: 48px;
    font-size: var(--ui-text-sm);
  }
  .banner b {
    font-size: var(--ui-text-sm);
  }
  .banner span:not(.banner-icon) {
    font-size: var(--ui-text-sm);
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px 13px;
    min-height: 125px;
  }
  .metric-top {
    font-size: var(--ui-text-sm);
  }
  .metric strong {
    font-size: 26px;
  }
  .metric small {
    font-size: var(--ui-text-sm);
  }
  .panel-head {
    padding: 19px 17px 13px;
  }
  .chart {
    padding-left: 15px;
    padding-right: 15px;
    gap: 2px;
  }
  .chart-foot {
    padding: 15px;
  }
  .department-cards {
    gap: 10px;
  }
  .department-card h3 {
    font-size: var(--ui-text-sm);
  }
  .toolbar {
    gap: 10px;
  }
  .search {
    min-width: 0;
    flex: 1;
    width: 100%;
  }
  .toolbar .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
  }
  .table-wrap {
    border-radius: 8px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .shift-hero {
    padding: 23px;
    align-items: flex-start;
    flex-direction: column;
  }
  .shift-hero h2 {
    font-size: 22px;
  }
  .my-task {
    gap: 10px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .modal-head,
  .modal-body {
    padding: 22px;
  }
  .modal-footer {
    padding: 17px 22px;
  }
  .form-grid {
    gap: 9px;
  }
  .detail-grid {
    padding: 15px;
    gap: 17px;
  }
  .toast {
    left: 50%;
    font-size: var(--ui-text-sm);
    min-width: 280px;
  }
  .footer {
    font-size: var(--ui-text-sm);
    gap: 20px;
  }
  .login-card h1 {
    font-size: 37px;
  }
  .login-mark {
    top: 25px;
    left: 25px;
    font-size: var(--ui-text-sm);
  }
  .login-card {
    padding: 90px 25px;
  }
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
  .source-footer {
    line-height: 1.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.director-home {
  --home-ink:#152b46;
  --home-muted:#435b73;
  --home-line:#c9d4e1;
  background: var(--ui-subtle);
  color: var(--home-ink);
  font-family: var(--ui-font);
}
.director-home > .topbar {
  display: none !important;
}
.director-home > .content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 32px;
}
.director-home .page-heading {
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 2px solid var(--ui-line);
}
.director-home .page-heading h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.6px;
  color: var(--ui-text);
}
.director-home .page-heading .eyebrow,
.director-home .page-heading p {
  display: none;
}
.director-home .director-overview {
  --director-ink:#152b46;
  --director-muted:#435b73;
  font-size: 16px;
  line-height: 1.5;
}
.director-home .director-overview > div,
.director-home .director-overview > section {
  min-width: 0;
}
.director-home button {
  font-family: var(--ui-font);
  cursor: pointer;
  touch-action: manipulation;
}
.director-home button:disabled {
  cursor: default;
  opacity: .65;
}
.director-home button,
.director-home input,
.director-home select,
.director-home textarea {
  font-size: 16px;
}
.director-home button:focus-visible,
.director-home a:focus-visible,
.director-home summary:focus-visible,
.director-home input:focus-visible,
.director-home select:focus-visible,
.director-home textarea:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 4px;
}
.director-home .director-main-toolbar {
  display: none !important;
}
.director-home .daily-orders {
  padding: 0;
  margin: 0 0 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.director-home .daily-orders > header {
  display: none !important;
}
.director-home .daily-order-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 18px;
}
.director-home .daily-order-cards .daily-card {
  position: relative;
  min-width: 0;
  min-height: 254px;
  gap: 12px;
  padding: 22px;
  border: 1px solid;
  border-top: 5px solid;
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(25, 48, 82, .07);
  line-height: 1.45;
  transition: box-shadow .15s ease;
}
.director-home .daily-card > svg {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  flex: none;
}
.director-home .daily-card > span {
  font-size: 16px;
  font-weight: 600;
}
.director-home .daily-card > span:first-of-type {
  min-height: 47px;
}
.director-home .daily-card strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 48px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.director-home .daily-card strong small {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.director-home .daily-card > b {
  font-size: 16px;
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 53, 84, .2);
  width: 100%;
}
.director-home .daily-card-today {
  background: var(--ui-subtle);
  color: var(--ui-muted);
  border-color: var(--ui-line) !important;
}
.director-home .daily-card-today > svg {
  color: var(--ui-muted);
  background: var(--ui-subtle);
}
.director-home .daily-card-today > b {
  border-color: var(--ui-line);
}
.director-home .daily-card-waiting {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line) !important;
}
.director-home .daily-card-ready {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line) !important;
}
.director-home .daily-card-shipped {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line) !important;
}
.director-home .daily-card:hover {
  box-shadow: 0 8px 22px rgba(25, 48, 82, .17);
}
.director-home .daily-card[aria-pressed=true] {
  outline: 3px solid var(--ui-line);
  outline-offset: 3px;
}
.director-home .daily-other {
  gap: 10px;
  align-items: stretch;
}
.director-home .daily-other button {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: white;
  color: var(--ui-text);
  font-size: 15px;
  line-height: 1.4;
}
.director-home .daily-other button > b {
  display: inline-block;
  margin-left: 8px;
  color: var(--ui-text);
  font-size: 17px;
}
.director-home .daily-other button:hover,
.director-home .daily-other button[aria-pressed=true] {
  background: var(--ui-selected);
  border-color: var(--ui-line);
}
.director-home .director-priority-grid.priority-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin: 0 0 28px;
}
.director-home .departure-block,
.director-home .returns-block,
.director-home .compact-director-shift {
  padding: 24px;
  border-radius: 18px;
  min-width: 0;
  border: 1px solid var(--ui-line);
  box-shadow: 0 6px 18px rgba(25, 48, 82, .08);
}
.director-home .priority-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  gap: 12px;
}
.director-home .priority-heading h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
  font-weight: 750;
}
.director-home .priority-heading h2 svg {
  width: 25px;
  height: 25px;
}
.director-home .departure-block {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.director-home .departure-direction {
  font-size: 14px;
  background: var(--ui-subtle);
  border-radius: 7px;
  color: var(--ui-text);
}
.director-home .departure-clock-row {
  gap: 16px;
  margin: 22px 0 14px;
  align-items: flex-start;
}
.director-home .departure-clock strong {
  font-size: 56px;
  letter-spacing: -1px;
  color: inherit;
}
.director-home .departure-clock > span,
.director-home .departure-countdown > span,
.director-home .departure-rule {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.director-home .departure-countdown {
  padding-left: 16px;
}
.director-home .departure-countdown b {
  font-size: 27px;
  line-height: 1.3;
  color: inherit;
}
.director-home .departure-quantities {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  border-radius: 12px;
}
.director-home .departure-quantities > div {
  padding: 16px 10px;
  gap: 10px;
}
.director-home .departure-quantities span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.director-home .departure-quantities strong {
  font-size: 34px;
  color: inherit;
}
.director-home .departure-quantities small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ui-muted);
}
.director-home .departure-quantities .quantity-ready {
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.director-home .departure-quantities .quantity-waiting {
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.director-home .departure-readiness {
  margin: 20px 0 10px;
}
.director-home .departure-readiness > div:first-child {
  font-size: 15px;
  line-height: 1.5;
}
.director-home .departure-readiness > div:first-child b {
  font-size: 23px;
}
.director-home .departure-progress {
  height: 12px !important;
  border-radius: 4px;
}
.director-home .departure-readiness > small,
.director-home .departure-evidence p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ui-muted);
}
.director-home .departure-warehouse,
.director-home .departure-warehouse-empty {
  font-size: 15px;
  padding: 14px;
  margin-top: 14px;
  border-radius: 10px;
  border-color: var(--ui-line);
}
.director-home .departure-warehouse-empty > small,
.director-home .departure-warehouse p,
.director-home .departure-warehouse small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.director-home .priority-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.director-home .priority-footer button {
  min-height: 48px;
  padding: 12px 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  background: white;
  color: var(--ui-text);
  flex: 1 1 140px;
}
.director-home .priority-footer button:hover {
  background: var(--ui-subtle);
}
.director-home .departure-block.leaving-soon {
  background: var(--ui-subtle);
  border: 2px solid var(--ui-line);
  color: var(--ui-text);
}
.director-home .leaving-soon .priority-heading {
  border-color: var(--ui-line);
}
.director-home .leaving-soon .departure-direction {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.director-home .leaving-soon .departure-countdown {
  border-color: var(--ui-line);
}
.director-home .leaving-soon .departure-clock > span,
.director-home .leaving-soon .departure-countdown > span,
.director-home .leaving-soon .departure-rule,
.director-home .leaving-soon .departure-readiness > small,
.director-home .leaving-soon .departure-evidence p,
.director-home .leaving-soon .departure-warehouse-empty > small {
  color: var(--ui-text);
}
.director-home .leaving-soon .departure-quantities {
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.director-home .leaving-soon .departure-quantities small {
  color: inherit;
}
.director-home .leaving-soon .departure-quantities .quantity-ready {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.director-home .leaving-soon .departure-quantities .quantity-waiting {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.director-home .leaving-soon .departure-readiness b {
  color: var(--ui-text);
}
.director-home .leaving-soon .departure-progress.unconfirmed {
  background:
    repeating-linear-gradient(
      135deg,
      var(--ui-warning-bg) 0 7px,
      var(--ui-info-bg) 7px 14px);
}
.director-home .leaving-soon .departure-warehouse,
.director-home .leaving-soon .departure-warehouse-empty {
  border-color: var(--ui-line);
}
.director-home .returns-block {
  background: var(--ui-subtle);
  border-top: 5px solid var(--ui-line);
  color: var(--ui-text);
}
.director-home .returns-block .priority-heading {
  border-color: var(--ui-line);
}
.director-home .returns-block.has-urgent {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  border-top-color: var(--ui-line);
}
.director-home .returns-attention {
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-size: 14px;
  border-radius: 7px;
}
.director-home .returns-summary-grid {
  gap: 14px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}
.director-home .return-summary {
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-left: 5px solid var(--ui-line);
  background: white;
  border-radius: 11px;
  color: var(--ui-text);
  min-width: 0;
}
.director-home .return-summary-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.director-home .return-summary strong {
  font-size: 38px;
  line-height: 1.2;
  margin: 13px 0;
  font-weight: 750;
}
.director-home .return-summary strong small {
  font-size: 16px;
  margin-left: 8px;
}
.director-home .return-summary p,
.director-home .return-missing,
.director-home .returns-source {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-text);
}
.director-home .return-summary.urgent {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  color: var(--ui-text);
}
.director-home .return-summary.urgent p,
.director-home .return-summary.urgent .return-missing {
  color: var(--ui-text);
}
.director-home .return-deadline {
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--ui-line);
}
.director-home .return-deadline span,
.director-home .return-deadline small {
  font-size: 14px;
  line-height: 1.5;
}
.director-home .return-deadline b {
  font-size: 19px;
  line-height: 1.5;
}
.director-home .return-summary:hover {
  box-shadow: 0 3px 12px rgba(94, 46, 18, .12);
}
.director-home .compact-director-shift {
  padding: 0;
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  overflow: hidden;
}
.director-home .compact-director-shift > .shift-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--ui-subtle);
  gap: 14px;
  border-radius: 0;
}
.director-home .compact-director-shift .shift-main-value > span {
  display: block;
  font-size: 24px;
  font-weight: 750;
  color: var(--ui-text);
  line-height: 1.3;
  margin-bottom: 12px;
}
.director-home .compact-director-shift .shift-main-value p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ui-muted);
  min-height: 0;
}
.director-home .compact-director-shift .shift-gauge-link {
  padding: 10px 0;
  min-height: 48px;
  color: var(--ui-text);
  max-width: 100%;
}
.director-home .compact-director-shift .shift-gauge-link > span {
  font-size: 16px;
  color: var(--ui-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.director-home .compact-director-shift .shift-main-plan > div:not(.shift-load-track) {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ui-muted);
  gap: 14px;
  margin-bottom: 14px;
}
.director-home .compact-director-shift .shift-main-plan b {
  font-size: 20px;
  color: var(--ui-muted);
}
.director-home .compact-director-shift .shift-main.overloaded {
  background: var(--ui-subtle);
}
.director-home .compact-director-shift button:focus-visible,
.director-home .departure-block button:focus-visible {
  outline-color: var(--ui-line);
}
.director-home .director-stock-picking {
  gap: 22px;
  padding: 24px;
  margin-bottom: 24px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-left: 6px solid var(--ui-line);
  border-radius: 15px;
  color: var(--ui-text);
}
.director-home .director-stock-picking h3 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.director-home .director-stock-picking p {
  font-size: 16px;
  color: var(--ui-text);
  line-height: 1.5;
}
.director-home .director-picking-total strong {
  font-size: 36px;
  color: var(--ui-text);
}
.director-home .director-picking-total span {
  font-size: 15px;
  color: var(--ui-text);
}
.director-home .director-picking-cta {
  background: var(--ui-accent);
  border-color: var(--ui-line);
  color: var(--ui-text);
  border-radius: 10px;
  min-height: 64px;
  min-width: 280px;
  font-size: 19px;
  box-shadow: none;
}
.director-home .director-picking-cta:hover {
  background: var(--ui-accent);
  border-color: var(--ui-line);
}
.director-home .director-main-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 24px;
}
.director-home .director-kpi-card {
  border-radius: 15px;
  border: 1px solid var(--ui-line);
  border-left: 6px solid var(--ui-line);
  background: var(--ui-surface);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(25, 48, 82, .04);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(200px, 1.3fr);
  column-gap: 28px;
  align-items: center;
}
.director-home .director-kpi-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--ui-text);
  line-height: 1.4;
  min-width: 0;
}
.director-home .director-kpi-card strong {
  font-size: 42px;
  margin: 0;
  grid-row: 1/3;
  grid-column: 2;
  white-space: normal;
}
.director-home .director-kpi-card em {
  font-size: 16px;
  color: var(--ui-text);
}
.director-home .director-kpi-card > b {
  font-size: 16px;
  grid-column: 3;
  grid-row: 1;
  line-height: 1.5;
}
.director-home .director-kpi-card p {
  font-size: 15px;
  color: var(--ui-text);
  grid-column: 3;
  margin: 8px 0 0;
  line-height: 1.55;
}
.director-home .director-kpi-link {
  font-size: 16px;
  grid-column: 1;
  margin-top: 14px;
}
.director-home .director-kpi-card:hover {
  transform: none;
  border-color: var(--ui-line);
}
.director-home .director-kpi-card.danger {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  color: var(--ui-danger);
}
.director-home .director-kpi-card.danger strong,
.director-home .director-kpi-card.danger p,
.director-home .director-kpi-card.danger em,
.director-home .director-kpi-card.danger .director-kpi-label,
.director-home .director-kpi-card.danger .director-kpi-link {
  color: var(--ui-danger);
}
.director-home .director-defect-card {
  padding: 24px;
  gap: 24px;
  border-radius: 15px;
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-left: 6px solid var(--ui-line);
  color: var(--ui-text);
  margin-bottom: 14px;
  min-width: 0;
  flex-wrap: wrap;
}
.director-home .director-defect-card h2 {
  font-size: 22px;
  line-height: 1.4;
}
.director-home .director-defect-card p,
.director-home .defect-big small {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ui-text);
}
.director-home .defect-big b {
  font-size: 32px;
}
.director-home .director-defect-card.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.director-home .director-defect-card.active p,
.director-home .director-defect-card.active small {
  color: var(--ui-text);
}
.director-home .quality-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.director-home .quality-quick-actions button {
  min-height: 48px;
  font-size: 16px;
  color: var(--ui-text);
  background: white;
  border: 1px solid var(--ui-line);
  padding: 12px 16px;
  border-radius: 9px;
}
.director-home .quality-departments {
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface);
  margin-bottom: 28px;
  overflow: hidden;
}
.director-home .quality-departments > summary {
  font-size: 19px;
  font-weight: 700;
  padding: 20px 24px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  cursor: pointer;
  min-height: 56px;
}
.director-home .quality-departments > summary span {
  font-size: 15px;
  font-weight: 400;
}
.director-home .quality-no-data,
.director-home .quality-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ui-text);
  padding: 16px 24px;
  margin: 0;
}
.director-home .panel {
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 14px rgba(25, 48, 82, .04);
  overflow: hidden;
  margin-bottom: 28px;
}
.director-home .panel-head {
  padding: 22px 24px;
  background: var(--ui-subtle);
  border-bottom: 1px solid var(--ui-line);
  gap: 18px;
  flex-wrap: wrap;
}
.director-home .panel-head h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 750;
  color: var(--ui-text);
}
.director-home .panel-head p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ui-text);
  margin-top: 6px;
}
.director-home .panel-head button {
  min-height: 48px;
  font-size: 16px;
  border-radius: 9px;
  padding: 12px 18px;
}
.director-home .panel-head .primary {
  background: var(--ui-accent);
  border: 1px solid var(--ui-line);
  color: var(--ui-text);
}
.director-home .panel-head .text-button {
  background: white;
  border: 1px solid var(--ui-line);
  color: var(--ui-text);
}
.director-home .agenda-toolbar {
  padding: 18px 24px;
  gap: 10px;
  flex-wrap: wrap;
}
.director-home .agenda-toolbar button,
.director-home .agenda-toolbar label {
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: white;
  font-size: 16px;
  color: var(--ui-text);
}
.director-home .agenda-toolbar button.active {
  background: var(--ui-selected);
  color: var(--ui-text);
  border-color: var(--ui-line);
}
.director-home .agenda-toolbar input {
  font-size: 16px;
  max-width: 100%;
  min-height: 28px;
  color: var(--ui-text);
}
.director-home .agenda-toolbar > span {
  font-size: 15px;
  color: var(--ui-text);
}
.director-home .agenda-empty {
  margin: 4px 24px 20px;
  padding: 28px;
  border: 1px dashed var(--ui-line);
  border-radius: 10px;
  background: var(--ui-subtle);
  font-size: 17px;
  color: var(--ui-text);
}
.director-home .agenda-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ui-text);
  padding: 0 24px 20px;
  margin: 0;
}
.director-home .agenda-row {
  padding: 18px 24px;
  gap: 16px;
  border-top: 1px solid var(--ui-line);
}
.director-home .agenda-row > input {
  width: 24px;
  height: 24px;
  flex: none;
}
.director-home .agenda-task > b {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ui-text);
}
.director-home .agenda-task small,
.director-home .agenda-task p,
.director-home .agenda-task span,
.director-home .agenda-deadline {
  font-size: 15px;
  line-height: 1.5;
}
.director-home .director-action {
  padding: 18px 24px;
  gap: 16px;
  min-height: 72px;
  border-top: 1px solid var(--ui-line);
}
.director-home .director-action b {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ui-text);
}
.director-home .director-action > span:not(.badge) {
  font-size: 15px;
  color: var(--ui-info);
}
.director-home .badge {
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
}
.director-home .director-action.danger {
  background: var(--ui-subtle);
  border-left: 5px solid var(--ui-line);
}
.director-home .director-action.danger b {
  color: var(--ui-danger);
}
.director-home .director-warehouse-alert {
  font-size: 16px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.director-home .director-warehouse-alert span {
  font-size: 16px;
  line-height: 1.5;
}
.director-home .kpi-definition {
  background: white;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  margin: 24px 0;
}
.director-home .kpi-definition > summary {
  font-size: 17px;
  min-height: 56px;
  padding: 18px 24px;
  color: var(--ui-text);
  line-height: 1.5;
}
.director-home .director-data-time {
  margin: 28px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-text);
  font-size: 14px;
  gap: 18px;
  line-height: 1.5;
}
.director-home .daily-order-window {
  width: calc(100vw - 40px);
  max-width: 1100px;
  max-height: 86vh;
  max-height: 86dvh;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  color: var(--ui-text);
  font-size: 16px;
}
.director-home .daily-order-window > header {
  background: var(--ui-subtle);
  border-color: var(--ui-line);
  padding: 22px 26px;
}
.director-home .daily-order-window h2 {
  font-size: 24px;
  line-height: 1.4;
}
.director-home .daily-order-window > header button {
  min-width: 48px;
  min-height: 48px;
  background: white;
  border: 1px solid var(--ui-line);
  color: var(--ui-text);
}
.director-home .daily-explanation,
.director-home .daily-empty {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ui-text);
}
.director-home .daily-order > summary {
  padding: 18px 0;
  min-height: 64px;
  line-height: 1.5;
  font-size: 16px;
}
.director-home .daily-order small {
  font-size: 14px;
  color: var(--ui-text);
}
.director-home .daily-status {
  font-size: 15px;
  color: var(--ui-danger);
}
.director-home .daily-status.ready {
  color: var(--ui-success);
}
.director-home .daily-status.shipped {
  color: var(--ui-info);
}
.director-home .daily-lines {
  background: var(--ui-subtle);
  font-size: 16px;
}
.director-home .modal {
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 16px;
  color: var(--ui-text);
  font-size: 16px;
}
.director-home .modal-head {
  background: var(--ui-subtle);
  padding: 24px;
  border-bottom: 1px solid var(--ui-line);
}
.director-home .modal-head h2 {
  font-size: 26px;
}
.director-home .modal .field > span,
.director-home .modal .footnote,
.director-home .modal .agenda-note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ui-text);
}
.director-home .modal input,
.director-home .modal select,
.director-home .modal textarea {
  min-height: 48px;
  font-size: 17px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ui-text);
  background: white;
  min-width: 0;
}
.director-home .modal button {
  min-height: 48px;
  font-size: 16px;
  padding: 12px 18px;
}
@media (max-width: 1550px) {
  .director-home .director-priority-grid.priority-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-home .director-priority-grid.priority-three > .compact-director-shift {
    grid-column: 1/-1;
  }
  .director-home .compact-director-shift > .shift-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
  .director-home .compact-director-shift .shift-main-plan {
    align-self: center;
  }
  .director-home .daily-order-cards {
    gap: 14px;
  }
  .director-home .daily-order-cards .daily-card {
    padding: 18px;
    min-height: 262px;
  }
}
@media (max-width: 1200px) {
  .director-home > .content {
    padding: 24px;
  }
  .director-home .daily-order-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-home .daily-order-cards .daily-card {
    min-height: 240px;
  }
  .director-home .director-kpi-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .director-home .director-kpi-card > b,
  .director-home .director-kpi-card p {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .director-home .director-kpi-card > b {
    margin-top: 14px;
  }
  .director-home .director-stock-picking {
    flex-wrap: wrap;
  }
  .director-home .director-picking-cta {
    flex: 1 1 100%;
    min-width: 0;
  }
}
@media (max-width: 1050px) {
  .director-home .director-priority-grid.priority-three {
    grid-template-columns: minmax(0, 1fr);
  }
  .director-home .director-priority-grid.priority-three > .compact-director-shift {
    grid-column: auto;
  }
  .director-home .compact-director-shift > .shift-main {
    display: flex;
  }
  .director-home .compact-director-shift .shift-main-plan {
    align-self: stretch;
  }
  .director-home .returns-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-home .director-action {
    flex-wrap: wrap;
  }
  .director-home .director-action b {
    flex: 1 1 65%;
  }
}
@media (max-width: 700px) {
  .director-home > .content {
    padding: 18px 12px;
  }
  .director-home .page-heading h1 {
    font-size: 29px;
  }
  .director-home .daily-order-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .director-home .daily-order-cards .daily-card {
    min-height: 220px;
    padding: 20px;
  }
  .director-home .daily-card > span:first-of-type {
    min-height: 0;
  }
  .director-home .returns-summary-grid {
    grid-template-columns: 1fr;
  }
  .director-home .departure-block,
  .director-home .returns-block {
    padding: 20px 16px;
  }
  .director-home .director-kpi-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px;
  }
  .director-home .director-kpi-card strong {
    margin: 8px 0;
  }
  .director-home .director-kpi-link {
    margin: 0;
  }
  .director-home .panel-head,
  .director-home .agenda-toolbar {
    padding: 20px 16px;
  }
  .director-home .daily-order > summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .director-home .modal .form-grid {
    grid-template-columns: 1fr;
  }
  .director-home .quality-departments > summary {
    padding: 18px 16px;
  }
  .director-home .director-stock-picking {
    padding: 20px 16px;
  }
  .director-home .departure-clock-row {
    flex-direction: column;
  }
  .director-home .departure-countdown {
    padding-left: 0;
    border-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .director-home button {
    transition: none !important;
    transform: none !important;
  }
}
@media (forced-colors: active) {
  .director-home .daily-card,
  .director-home .departure-block,
  .director-home .returns-block,
  .director-home .compact-director-shift {
    border: 2px solid CanvasText;
  }
  .director-home .daily-card[aria-pressed=true] {
    outline: 3px solid Highlight;
  }
}
.director-home .compact-director-shift .shift-gauge {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.director-home .compact-director-shift .shift-gauge svg {
  width: 100%;
  height: auto;
}
.director-home .compact-director-shift .shift-gauge svg text {
  font-size: 14px;
}
.director-home .compact-director-shift .shift-gauge svg .gauge-value {
  font-size: 32px;
}
.director-home .compact-director-shift .gauge-caption {
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.director-home .compact-director-shift .gauge-caption b,
.director-home .compact-director-shift .gauge-caption span {
  font-size: 15px;
  line-height: 1.5;
}
.director-home .shift-load-trend > button {
  font-size: 16px;
  min-height: 48px;
  line-height: 1.5;
}
.director-home .shift-trend-empty {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.director-home .shift-trend-values b {
  font-size: 17px;
}
.director-home .shift-trend-values small {
  font-size: 14px;
}
@media (max-width: 700px) {
  .director-home {
    overflow-wrap: anywhere;
  }
  .director-home .director-overview * {
    min-width: 0;
  }
  .director-home .departure-quantities {
    grid-template-columns: 1fr;
  }
  .director-home .departure-quantities > div + div {
    border-left: 0;
    border-top: 1px solid var(--ui-line);
  }
  .director-home .departure-clock strong {
    font-size: 44px;
  }
  .director-home .director-stock-picking > div:first-child {
    min-width: 0;
  }
  .director-home .director-picking-cta {
    gap: 8px;
    padding: 12px;
    font-size: 17px;
  }
  .director-home .director-picking-cta svg:last-child {
    display: none;
  }
  .director-home .compact-director-shift .shift-main-plan > div {
    flex-wrap: wrap;
  }
  .director-home .compact-director-shift > .shift-main {
    padding: 18px 14px;
  }
  .director-home .shift-trend-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .director-home .agenda-toolbar > label {
    width: 100%;
    display: block;
    padding: 10px 6px;
  }
  .director-home .agenda-toolbar input {
    width: 100%;
    min-width: 0;
  }
  .director-home .director-action {
    padding: 16px 12px;
  }
  .director-home .director-defect-card {
    padding: 18px 14px;
  }
}
.imported-production {
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  font: 16px/1.5 Arial, sans-serif;
  min-width: 0;
}
.imported-production h2 {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--ui-text);
}
.imported-production p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ui-text);
  margin: 12px 0;
}
.imported-production summary {
  min-height: 48px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 0;
}
.imported-production summary span {
  display: block;
  font-weight: 400;
  font-size: 15px;
}
.imported-facts-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.imported-production table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}
.imported-production th,
.imported-production td {
  padding: 14px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--ui-line);
  white-space: normal;
}
.imported-production thead th {
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-size: 16px;
}
.imported-production td {
  color: var(--ui-text);
}
.imported-production small {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-top: 6px;
}
.imported-production a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ui-text);
  font-size: 16px;
  text-decoration: underline;
}
.imported-production dl {
  margin: 10px 0;
  min-width: 180px;
}
.imported-production dt {
  font-weight: 700;
  margin-top: 8px;
}
.imported-production dd {
  margin: 2px 0 12px;
}
.imported-production summary:focus-visible,
.imported-production a:focus-visible {
  outline: 3px solid var(--ui-line);
  outline-offset: 3px;
}
.director-home .imported-attendance {
  margin: 18px 0 24px;
  color: var(--ui-text);
  background: var(--ui-subtle);
}
.last-vehicle-trip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 20px;
  font: 16px/1.5 Arial, sans-serif;
}
.last-vehicle-trip strong {
  font-size: 19px;
}
.last-vehicle-trip small {
  font-size: 14px;
  color: var(--ui-text);
}
.last-vehicle-trip button {
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .imported-production {
    padding: 14px;
  }
  .imported-production th,
  .imported-production td {
    padding: 12px 8px;
  }
}
.director-home .priority-compact.priority-three {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "vehicle returns" "vehicle shift";
  gap: 20px;
  align-items: start;
}
.priority-compact > .upcoming-departures {
  grid-area: vehicle;
}
.priority-compact > .returns-block {
  grid-area: returns;
}
.priority-compact > .compact-director-shift {
  grid-area: shift;
}
.director-home .priority-compact.priority-three > .compact-director-shift {
  grid-area: shift;
  grid-column: 2;
}
.departure-footnote summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.director-home .upcoming-departures {
  padding: 22px;
}
.director-home .upcoming-departures .priority-heading {
  padding-bottom: 14px;
}
.director-home .upcoming-departures .priority-heading h2 {
  font-size: 24px;
}
.ozon-departure {
  margin-top: 18px;
  padding: 18px;
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 2px solid var(--ui-line);
  border-radius: 12px;
}
.departure-platform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--ui-text);
}
.departure-platform span {
  font-size: 16px;
  font-weight: 700;
}
.departure-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
}
.departure-time > span {
  font-size: 16px;
}
.departure-time > strong {
  font-size: 30px;
  line-height: 1.3;
}
.departure-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
}
.departure-timer span {
  font-size: 16px;
}
.departure-timer > b {
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--ui-text);
}
.departure-batch-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--ui-line);
}
.departure-batch-count strong {
  font-size: 26px;
}
.departure-batch-count span {
  font-size: 15px;
}
.ozon-departure p {
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0;
}
.ozon-departure summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
}
.departure-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--ui-line);
  font-size: 16px;
}
.departure-due {
  border-color: var(--ui-line);
  background: var(--ui-subtle);
}
.departure-warning {
  border: 1px solid var(--ui-line);
  padding: 12px;
  border-radius: 8px;
  color: var(--ui-warning);
  font-size: 15px;
  line-height: 1.5;
}
.yandex-departure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-top: 16px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  border-radius: 10px;
}
.yandex-departure > b {
  font-size: 18px;
}
.yandex-departure > strong {
  font-size: 21px;
}
.yandex-departure > span {
  font-size: 16px;
}
.departure-footnote {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ui-muted);
  margin: 16px 0 0;
}
.director-home .priority-compact .returns-block {
  padding: 20px;
}
.director-home .priority-compact .returns-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.director-home .priority-compact .return-summary {
  min-height: 0 !important;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.director-home .priority-compact .return-summary-title {
  font-size: 17px;
}
.director-home .priority-compact .return-summary strong {
  font-size: 30px;
}
.director-home .priority-compact .return-summary strong small {
  font-size: 14px;
}
.director-home .priority-compact .return-summary p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.director-home .priority-compact .return-deadline {
  margin: 0;
  padding: 8px 0;
  gap: 4px;
}
.director-home .priority-compact .return-deadline b {
  font-size: 16px;
}
.director-home .priority-compact .return-deadline span,
.director-home .priority-compact .return-deadline small {
  font-size: 14px;
}
.director-home .priority-compact .return-missing {
  font-size: 14px;
  padding: 6px;
}
.director-home .priority-compact .return-summary-link {
  display: none;
}
.director-home .priority-compact .returns-source {
  margin: 12px 0 0;
  font-size: 14px;
}
.director-home .shift-unconfirmed {
  padding: 20px;
}
.director-home .shift-unconfirmed .today-heading {
  margin-bottom: 12px;
}
.director-home .shift-unconfirmed .shift-main,
.director-home .shift-unconfirmed .today-cards,
.director-home .shift-unconfirmed .today-footnote {
  display: none;
}
.director-home .shift-unconfirmed .today-actions {
  margin: 8px 0 0;
  gap: 8px;
}
.director-home .shift-unconfirmed .today-actions > div,
.director-home .shift-unconfirmed .today-actions > button {
  padding: 10px;
  min-height: 48px;
}
.director-home .shift-unconfirmed .shift-missing-reason {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ui-muted);
  margin: 12px 0;
}
.director-home .shift-unconfirmed .today-actions > .badge {
  font-size: 14px;
}
.director-home .shift-unconfirmed .imported-attendance {
  margin: 12px 0;
  padding: 12px;
}
@media (max-width: 1100px) {
  .director-home .priority-compact.priority-three {
    grid-template-columns: 1fr;
    grid-template-areas: "vehicle" "returns" "shift";
  }
  .director-home .priority-compact.priority-three > .compact-director-shift {
    grid-column: 1;
  }
}
@media (max-width: 700px) {
  .director-home .priority-compact .returns-summary-grid {
    grid-template-columns: 1fr;
  }
  .ozon-departure {
    padding: 14px;
  }
  .departure-time > strong {
    font-size: 25px;
  }
  .departure-timer > b {
    font-size: 30px;
  }
  .director-home .priority-compact * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
.shift-unconfirmed-heading {
  font-size: 22px;
  line-height: 1.35;
  color: var(--ui-text);
  margin: 0;
}
.shift-open-plan {
  background: white;
  color: var(--ui-text);
  border: 1px solid white;
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
@media (forced-colors: active) {
  button,
  a,
  input,
  select,
  textarea {
    forced-color-adjust: auto;
  }
  .ui-badge {
    border: 1px solid CanvasText;
  }
  [aria-current=page] {
    outline: 2px solid Highlight;
  }
}
.navigation-shell {
  --menu-width:272px;
}
.navigation-shell.navigation-compact {
  --menu-width:72px;
}
.global-navigation {
  padding: 12px 10px;
  background: var(--ui-surface);
  border-right: 1px solid var(--ui-line);
  color: var(--ui-text);
  z-index: 250;
}
.global-navigation a,
.global-navigation button,
.global-navigation .navigation-links a,
.global-navigation .navigation-footer a,
.global-navigation .navigation-footer button {
  color: var(--ui-text);
  font-size: 16px;
  min-height: 48px;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  box-shadow: none;
}
.global-navigation a:hover,
.global-navigation button:hover {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.global-navigation a[aria-current=page],
.global-navigation .is-current > .navigation-group-button {
  background: var(--ui-selected);
  color: var(--ui-text);
  box-shadow: none;
  font-weight: 700;
}
.global-navigation a[aria-current=page]:hover {
  background: var(--ui-selected);
}
.navigation-head {
  padding-bottom: 8px;
  border-color: var(--ui-line);
}
.navigation-head > a {
  padding: 4px 8px;
  min-height: 62px;
}
.navigation-head .original-brand-logo {
  max-width: 230px;
  max-height: 76px;
}
.navigation-head .navigation-toggle {
  justify-content: flex-start;
  color: var(--ui-muted);
  font-size: 14px;
  min-height: 44px;
  padding: 8px 12px;
}
.workspace-switcher {
  padding: 8px 4px;
}
.workspace-switcher label {
  font-size: 14px;
  color: var(--ui-muted);
  gap: 6px;
}
.workspace-switcher select {
  font: 600 16px/1.4 var(--ui-font);
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 1px solid var(--ui-input-line);
  min-height: 46px;
  padding: 10px;
}
.workspace-switcher select:hover {
  background: var(--ui-surface);
  border-color: var(--ui-link);
}
.workspace-switcher small {
  color: var(--ui-muted);
  font-size: 14px;
}
.navigation-links {
  padding: 8px 0;
  scrollbar-width: thin;
}
.navigation-links > a,
.navigation-group {
  margin-bottom: 4px;
}
.navigation-submenu {
  padding: 4px 0 6px 18px;
}
.global-navigation .navigation-submenu a {
  font-size: 15px;
  min-height: 44px;
  padding: 9px 10px;
  gap: 9px;
}
.navigation-submenu svg {
  width: 19px;
  height: 19px;
}
.navigation-submenu a[aria-current=page] {
  background: var(--ui-selected-soft);
  box-shadow: inset 3px 0 var(--ui-accent);
}
.navigation-group-button {
  font-weight: 600;
}
.navigation-chevron {
  margin-left: auto;
  transform: rotate(-90deg);
}
.navigation-chevron.is-open {
  transform: rotate(0);
}
.navigation-footer {
  border-color: var(--ui-line);
  padding-top: 8px;
}
.navigation-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--ui-text);
  font-size: 14px;
}
.navigation-user > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.navigation-user small {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
}
.navigation-user svg {
  flex: none;
}
.navigation-compact .navigation-chevron,
.navigation-compact .navigation-user {
  display: none;
}
.navigation-compact .global-navigation a,
.navigation-compact .global-navigation button {
  padding: 10px;
  justify-content: center;
}
.navigation-compact .navigation-head > a {
  padding: 4px;
}
.navigation-compact .workspace-switcher {
  padding: 2px 0;
}
.navigation-compact .navigation-head .navigation-toggle {
  justify-content: center;
}
.workspace-preview-note {
  background: var(--ui-info-bg);
  color: var(--ui-info);
  border-color: var(--ui-line);
  font: 16px/1.5 var(--ui-font);
}
.navigation-shell .cloud-bar {
  position: relative;
  min-height: 50px;
  background: var(--ui-surface);
  color: var(--ui-muted);
  border-bottom: 1px solid var(--ui-line);
  padding: 10px 28px;
  font: 14px/1.5 var(--ui-font);
  gap: 14px;
}
.navigation-shell .cloud-bar button {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  color: var(--ui-link);
  min-height: 40px;
  padding: 7px 12px;
  font-size: 14px;
  flex: none;
}
.navigation-shell .cloud-error {
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}
.ui-skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 999;
  background: var(--ui-accent);
  color: var(--ui-text);
  padding: 12px;
  border-radius: 8px;
}
.ui-skip-link:focus {
  top: 12px;
}
.ui-page,
.navigation-content .content,
.navigation-content .work-area,
.navigation-content .market-settings,
.navigation-content .label-page {
  padding: var(--ui-page-padding);
  max-width: 1800px;
  margin: 0 auto;
  color: var(--ui-text);
  font-family: var(--ui-font);
  min-width: 0;
}
.navigation-content .content {
  padding-top: var(--ui-page-padding);
}
.navigation-content .main,
.director-home {
  background: var(--ui-bg);
  color: var(--ui-text);
}
.legacy-module .panel-head h2 {
  font-size: var(--ui-section-heading);
}
.legacy-module .panel-head p {
  font-size: var(--ui-text-base);
  color: var(--ui-muted);
}
.legacy-module .toolbar {
  flex-wrap: wrap;
  gap: 16px;
}
.legacy-module .toolbar > .search {
  min-width: 0;
  flex: 1 1 240px;
}
.legacy-module .toolbar .segmented {
  flex-wrap: wrap;
  max-width: 100%;
}
.legacy-module .content > .ui-page-heading p:empty {
  display: none;
}
.legacy-module .segmented,
.legacy-module .picking-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: transparent;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  border-radius: 0;
}
.legacy-module .segmented button,
.legacy-module .picking-tabs button {
  font-size: 16px;
  min-height: 48px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ui-muted);
}
.legacy-module .segmented button.active,
.legacy-module .picking-tabs button.active {
  background: transparent !important;
  border-bottom-color: var(--ui-accent) !important;
  color: var(--ui-text) !important;
  box-shadow: none;
}
.legacy-module .control-toolbar button {
  min-height: 48px;
  font-size: 16px;
}
.legacy-module .control-toolbar .search {
  padding: 0 12px;
  min-height: 48px;
}
.legacy-module .control-toolbar .search input {
  border: 0;
  min-height: 46px;
  background: transparent;
  padding: 8px;
  font-size: 16px;
}
.legacy-module .control-toolbar .search {
  min-width: 0;
  flex: 1 1 240px;
}
.legacy-module .control-toolbar button {
  flex-shrink: 0;
}
.legacy-module .picking-toolbar {
  justify-content: flex-end;
}
.legacy-module .notice.inline {
  display: block;
  text-align: left;
  font-size: 16px;
  line-height: 1.55;
  padding: 16px;
  color: var(--ui-text);
  background: var(--ui-subtle);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.global-navigation .navigation-links {
  overflow-x: hidden;
}
.navigation-links a span,
.navigation-group-button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ui-card a,
.ui-page a:not(.ui-button),
.production-queue a {
  color: var(--ui-link);
}
.ui-page > section,
.ui-page > .ui-notice {
  margin-bottom: 24px;
}
.owner-shortcuts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.owner-home > h2 {
  margin-bottom: 16px;
}
.owner-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.owner-areas h2 {
  margin: 16px 0 8px;
}
.owner-areas p {
  color: var(--ui-muted);
}
.owner-areas a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin-top: 12px;
  font-weight: 600;
}
.owner-areas > .ui-card > svg {
  background: var(--ui-selected-soft);
  padding: 12px;
  box-sizing: content-box;
  border-radius: 12px;
}
.director-home .page-heading {
  border: 0;
  padding: 0;
  margin-bottom: 24px;
}
.director-home .page-heading h1 {
  font-size: 36px;
  color: var(--ui-text);
}
.director-home .director-overview {
  color: var(--ui-text);
}
.director-home .daily-orders {
  margin-bottom: 24px;
}
.director-home .daily-order-cards {
  gap: 16px;
  margin-bottom: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.director-home .daily-order-cards .daily-card {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-line) !important;
  border-radius: 16px;
  min-height: 206px;
  padding: 20px;
  gap: 8px;
  box-shadow: var(--ui-shadow);
  position: relative;
}
.director-home .daily-card > svg {
  background: var(--ui-selected-soft);
  color: var(--ui-text);
  border-radius: 50%;
  width: 23px;
  height: 23px;
  padding: 12px;
  position: absolute;
  left: 18px;
  top: 18px;
}
.director-home .daily-card-ready > svg {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.director-home .daily-card-waiting > svg {
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.director-home .daily-card-shipped > svg {
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.director-home .daily-card > span:first-of-type {
  padding-left: 52px;
  min-height: 46px;
  font-size: 16px;
  line-height: 1.4;
}
.director-home .daily-card strong {
  font-size: 40px;
  letter-spacing: -.8px;
  gap: 6px;
}
.director-home .daily-card strong small {
  font-size: 14px;
}
.director-home .daily-card > span {
  font-size: 14px;
  font-weight: 400;
}
.director-home .daily-card > b {
  color: var(--ui-link);
  border-color: var(--ui-line);
  font-size: 14px;
  padding-top: 10px;
  margin-top: auto;
}
.director-home .daily-card:hover {
  border-color: var(--ui-input-line) !important;
  box-shadow: 0 4px 20px #19243a12;
}
.director-home .daily-card .stock-subset {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  background: var(--ui-info-bg);
  color: var(--ui-info);
  padding: 7px 9px;
  border-radius: 10px;
  line-height: 1.4;
  font-weight: 600;
  min-height: 34px;
}
.stock-subset svg {
  flex: none;
}
.stock-subset em {
  font-style: normal;
  font-weight: 750;
}
.director-home .daily-other {
  gap: 8px;
  flex-wrap: wrap;
}
.director-home .daily-other button {
  background: var(--ui-surface);
  color: var(--ui-muted);
  border: 1px solid var(--ui-line);
  min-height: 40px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}
.production-queue {
  margin: 0 0 24px;
}
.production-queue > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.production-queue h2 {
  margin: 0;
}
.production-queue > header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex: none;
}
.production-queue .ui-table-scroll {
  border: 0;
}
.production-queue table {
  white-space: normal;
  min-width: 680px;
}
.production-queue td small {
  display: block;
}
.production-queue td:first-child > a {
  font-weight: 700;
}
.queue-progress {
  height: 8px;
  width: 110px;
  border-radius: 5px;
  background: var(--ui-line);
  position: relative;
  margin: 10px 0 22px;
}
.queue-progress > span {
  height: 100%;
  display: block;
  background: var(--ui-info);
  border-radius: 5px;
}
.queue-progress > b {
  position: absolute;
  top: 9px;
  font-size: 13px;
  color: var(--ui-muted);
}
.director-home .director-priority-grid.priority-three.priority-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "vehicle returns shift";
  gap: 18px;
  align-items: start;
}
.director-home .priority-compact.priority-three > .compact-director-shift {
  grid-area: shift;
  grid-column: 3;
}
.director-home .director-priority-grid > section,
.director-home .director-priority-grid > .compact-director-shift {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-line) !important;
  border-radius: 16px;
  box-shadow: var(--ui-shadow);
  padding: 20px;
}
.director-home .priority-heading h2,
.director-home .upcoming-departures .priority-heading h2,
.shift-unconfirmed-heading {
  font-size: 22px;
  color: var(--ui-text);
  line-height: 1.35;
}
.director-home .priority-heading svg {
  color: var(--ui-text);
}
.director-home .priority-compact p,
.director-home .priority-compact small,
.director-home .priority-compact .departure-footnote,
.director-home .shift-unconfirmed .shift-missing-reason {
  color: var(--ui-muted);
}
.director-home .priority-compact .returns-summary-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.director-home .return-summary {
  border: 0 !important;
  background: var(--ui-info-bg);
  color: var(--ui-text);
}
.director-home .return-summary.urgent {
  background: var(--ui-danger-bg);
}
.director-home .return-summary strong {
  color: var(--ui-text);
}
.director-home .return-missing {
  color: var(--ui-muted);
  background: var(--ui-subtle);
}
.director-home .ozon-departure {
  border: 0;
  border-top: 1px solid var(--ui-line);
  background: var(--ui-surface);
  padding: 16px 0 0;
  border-radius: 0;
  margin-top: 10px;
}
.director-home .departure-platform {
  font-size: 20px;
  color: var(--ui-link);
}
.director-home .departure-platform span {
  font-size: 14px;
}
.director-home .departure-time > strong {
  font-size: 24px;
}
.director-home .departure-time > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.director-home .departure-timer > b {
  font-size: 28px;
  color: var(--ui-text);
}
.director-home .departure-batch-count strong {
  font-size: 23px;
}
.director-home .departure-warning {
  color: var(--ui-warning);
  background: var(--ui-warning-bg);
  border: 0;
}
.director-home .yandex-departure {
  background: var(--ui-subtle);
  color: var(--ui-text);
}
.director-home .priority-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.director-home .priority-footer button {
  color: var(--ui-link);
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  font-size: 14px;
  min-height: 44px;
  flex: 1;
  padding: 8px;
}
.director-home .shift-unconfirmed .imported-attendance {
  display: none;
}
.director-home .shift-unconfirmed .today-heading {
  display: none;
}
.director-home .shift-unconfirmed .today-actions {
  border: 0;
}
.director-home .shift-unconfirmed .today-actions > div {
  display: none;
}
.director-home .director-more {
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  margin-top: 24px;
  padding: 20px;
}
.director-more > summary {
  font-size: 20px;
  font-weight: 700;
  min-height: 48px;
  cursor: pointer;
}
.director-more[open] > summary {
  margin-bottom: 20px;
}
.navigation-content .panel,
.navigation-content .metric,
.navigation-content .work-panel,
.navigation-content .work-metrics a,
.navigation-content .market-card,
.navigation-content .settings-form {
  background: var(--ui-surface);
  color: var(--ui-text);
  border-color: var(--ui-line);
  border-radius: 16px;
}
.work-area,
.work-area header p,
.work-area .work-table td,
.work-area .work-table th {
  color: var(--ui-text);
}
.work-area .work-table th {
  background: var(--ui-subtle);
}
.work-area .work-metrics a > span:last-child {
  color: var(--ui-link);
}
.market-settings input,
.market-settings select,
.market-settings textarea,
.field input,
.field select,
.field textarea,
.work-area input,
.work-area select {
  background: var(--ui-surface);
  color: var(--ui-text);
  border-color: var(--ui-input-line);
  font-size: 16px;
  min-height: 48px;
}
.market-settings label,
.field,
.work-area label {
  font-size: 16px;
  color: var(--ui-text);
}
.market-settings button,
.label-page button,
.work-area button {
  font-size: 16px;
  min-height: 46px;
}
.market-settings button[type=submit],
.market-settings .primary,
.label-primary {
  background: var(--ui-accent);
  color: var(--ui-text);
  border-color: var(--ui-accent);
}
.payroll-period {
  margin-bottom: 24px;
}
.payroll-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.payroll-kpis strong {
  display: block;
  font-size: 34px;
  margin: 12px 0;
}
.payroll-kpis strong.unknown-value {
  font-size: 25px;
}
.payroll-page .ui-card > h2 {
  margin: 0 0 16px;
}
.payroll-page .ui-table-scroll {
  margin-top: 20px;
}
.payroll-page > .ui-row:last-child {
  gap: 24px;
}
@media (max-width: 1250px) {
  .director-home .daily-order-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-home .director-priority-grid.priority-three.priority-compact {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "vehicle returns" "vehicle shift";
  }
  .director-home .priority-compact.priority-three > .compact-director-shift {
    grid-column: 2;
  }
}
@media (max-width: 800px) {
  .navigation-shell {
    --menu-width:236px;
  }
  .navigation-shell.navigation-compact {
    --menu-width:64px;
  }
  .ui-page,
  .navigation-content .content,
  .navigation-content .work-area,
  .navigation-content .market-settings,
  .navigation-content .label-page {
    padding: 20px 16px;
  }
  .navigation-shell .cloud-bar {
    padding: 10px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .owner-areas {
    grid-template-columns: 1fr;
  }
  .ui-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .director-home .director-priority-grid.priority-three.priority-compact {
    grid-template-columns: 1fr;
    grid-template-areas: "vehicle" "returns" "shift";
  }
  .director-home .priority-compact.priority-three > .compact-director-shift {
    grid-column: 1;
  }
  .settings-columns {
    grid-template-columns: 1fr !important;
  }
  .payroll-kpis {
    grid-template-columns: 1fr;
  }
  .global-navigation {
    padding: 8px;
  }
  .global-navigation .navigation-submenu a {
    font-size: 14px;
  }
  .navigation-user {
    display: none;
  }
}
@media (max-width: 540px) {
  .navigation-shell:not(.navigation-compact) .navigation-content {
    margin-left: 64px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation {
    box-shadow: 10px 0 40px #191c2433;
  }
  .director-home .daily-order-cards {
    grid-template-columns: 1fr;
  }
  .director-home .daily-order-cards .daily-card {
    min-height: 190px;
  }
  .production-queue {
    padding: 16px;
  }
  .production-queue > header {
    flex-wrap: wrap;
  }
  .ui-page,
  .navigation-content .content,
  .navigation-content .work-area,
  .navigation-content .market-settings,
  .navigation-content .label-page {
    padding: 16px 12px;
  }
  .director-home .page-heading h1 {
    font-size: 28px;
  }
  .owner-shortcuts > a {
    width: 100%;
  }
  .label-filters {
    flex-wrap: wrap;
  }
  .ui-page .ui-card {
    min-width: 0;
  }
}
.navigation-content .director-home > .content {
  padding: 60px 30px 28px;
  width: 100%;
  max-width: 1660px;
  margin: 0;
}
.director-home > .content > .page-heading,
.director-home > .content > .footer {
  display: none;
}
.production-surface {
  font: 18px/1.4 var(--ui-font);
  color: var(--ui-text);
}
.surface-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  height: 60px;
}
.surface-heading h1 {
  margin: 0;
  font: 750 46px/1.1 var(--ui-font);
  letter-spacing: -1.3px;
  flex: 1;
}
.surface-date-menu {
  position: relative;
  flex: none;
  z-index: 20;
}
.surface-date {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 12px 16px;
  width: 194px;
  min-height: 50px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: white;
  white-space: nowrap;
  font-size: 18px;
  color: var(--ui-text);
  cursor: pointer;
}
.surface-date::-webkit-details-marker {
  display: none;
}
.surface-date > span {
  flex: 1;
}
.surface-date > svg:last-child {
  color: var(--ui-muted);
}
.surface-date-menu[open] .surface-date > svg:last-child {
  transform: rotate(180deg);
}
.surface-date-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  padding: 12px;
  background: white;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  box-shadow: var(--ui-modal-shadow);
}
.surface-date-options > strong {
  display: block;
  padding: 8px;
  font-size: 15px;
  color: var(--ui-muted);
}
.surface-date-options > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--ui-text);
  font: 16px/1.4 var(--ui-font);
  text-align: left;
  padding: 12px 8px;
  min-height: 48px;
}
.surface-date-options > button:hover {
  background: var(--ui-subtle);
}
.surface-search {
  width: 36.5%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: white;
  padding: 0 14px;
  min-height: 50px;
  color: var(--ui-muted);
}
.surface-search input {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 10px 0 !important;
  min-width: 0;
  width: 100%;
  font-size: 17px !important;
  min-height: 48px !important;
}
.surface-search:focus-within {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.surface-notifications {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 0;
  background: transparent;
  width: 48px;
  min-height: 50px;
  flex: none;
  position: relative;
  color: var(--ui-muted);
}
.surface-notifications i {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ui-danger);
  border: 2px solid var(--ui-bg);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.surface-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.surface-kpi {
  position: relative;
  height: 132px;
  min-height: 132px;
  border: 1px solid #e9ecf1;
  border-radius: 16px;
  background: white;
  box-shadow: var(--ui-shadow);
  padding: 16px 14px 14px 102px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  color: var(--ui-text);
}
.surface-kpi:hover {
  border-color: var(--ui-input-line);
  background: white;
  box-shadow: 0 4px 16px #19243a10;
}
.surface-kpi-main {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
  width: 100%;
  cursor: pointer;
}
.surface-kpi-main:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.surface-kpi-main:focus-visible {
  outline: none;
}
.surface-kpi-main:focus-visible:after {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.surface-kpi.tone-yellow .surface-kpi-main {
  gap: 5px;
}
.surface-kpi.tone-yellow strong {
  font-size: 42px;
}
.surface-kpi-icon {
  position: absolute;
  left: 18px;
  top: 19px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff5c6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-text);
}
.surface-kpi.tone-green .surface-kpi-icon {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.surface-kpi.tone-blue .surface-kpi-icon {
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.surface-kpi.tone-red .surface-kpi-icon {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.surface-kpi.tone-neutral .surface-kpi-icon {
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.surface-kpi-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.surface-kpi strong {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 750;
  white-space: nowrap;
}
.surface-kpi strong small {
  font-size: 16px;
  color: var(--ui-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.surface-kpi strong.surface-missing {
  font-size: 23px;
  letter-spacing: 0;
  line-height: 1.2;
  padding-top: 10px;
}
.surface-stock {
  position: absolute;
  left: 88px;
  right: 16px;
  bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--ui-info-bg);
  color: var(--ui-info);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 20px;
  padding: 7px 8px;
  white-space: nowrap;
}
.surface-stock svg {
  flex: none;
}
.surface-stock b {
  font-size: 21px;
  line-height: 1;
}
button.surface-stock {
  border: 0;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 9px;
  min-height: 32px;
  cursor: pointer;
  letter-spacing: -.15px;
}
.surface-stock:hover {
  background: #dceaff;
}
.surface-stock > svg:last-child {
  margin-left: auto;
}
.surface-kpi-note {
  position: absolute;
  bottom: 10px;
  left: 18px;
  right: 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ui-muted);
}
.surface-queue {
  background: white;
  border: 1px solid #e9ecf1;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--ui-shadow);
}
.surface-queue > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 10px 14px;
  min-height: 50px;
}
.surface-queue h2 {
  font-size: 28px;
  margin: 0;
  font-weight: 750;
  letter-spacing: -.5px;
}
.surface-queue header > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ui-link);
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
  min-height: 40px;
}
.surface-table-scroll {
  position: relative;
  overflow: auto;
  max-width: 100%;
  border-radius: 12px;
}
.surface-table-scroll table {
  width: 100%;
  table-layout: fixed;
  white-space: normal;
  font-size: 18px;
}
.surface-table-scroll th {
  font-weight: 400;
  background: var(--ui-subtle);
  font-size: 16px;
  color: var(--ui-muted);
  height: 50px;
  border: 0;
  padding: 12px 16px;
  text-align: left;
}
.surface-table-scroll th:nth-child(1) {
  width: 13%;
}
.surface-table-scroll th:nth-child(2) {
  width: 31%;
}
.surface-table-scroll th:nth-child(3) {
  width: 32%;
}
.surface-table-scroll th:nth-child(4) {
  width: 18%;
}
.surface-table-scroll th:nth-child(5) {
  width: 6%;
}
.surface-table-scroll td {
  height: 66px;
  padding: 10px 16px;
  color: var(--ui-text);
  font-size: 18px;
  vertical-align: middle;
  border-bottom: 1px solid #e8ebf0;
  line-height: 1.3;
}
.surface-table-scroll tr:last-child td {
  border-bottom: 0;
}
.surface-table-scroll td a {
  color: var(--ui-link);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.surface-table-scroll td small {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ui-muted);
  display: block;
  margin-top: 3px;
}
.surface-table-scroll td:nth-child(2) {
  overflow-wrap: anywhere;
}
.surface-table-scroll td:last-child {
  padding-left: 0;
  padding-right: 6px;
}
.surface-table-scroll td .surface-product-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 400;
}
.surface-product-name:hover {
  color: var(--ui-link) !important;
  text-decoration: underline !important;
}
.surface-table-scroll td small.surface-product-meta {
  color: var(--ui-text);
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: 15px;
  margin-top: 3px;
  max-width: none;
}
.surface-product-meta b {
  font-weight: 600;
}
.surface-product-meta > span {
  white-space: nowrap;
  color: var(--ui-muted);
}
.surface-stage {
  display: flex;
  align-items: center;
  gap: 24px;
}
.surface-stage-label {
  border-radius: 20px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-info-bg);
  color: var(--ui-info);
  font-size: 15px;
  line-height: 1.2;
  min-width: 115px;
  min-height: 36px;
  text-align: center;
  max-width: 170px;
}
.surface-stage-label.ready {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.surface-stage-label.blocked {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.surface-stage-bars {
  display: flex;
  gap: 3px;
  flex: 1;
  max-width: 132px;
  min-width: 70px;
}
.surface-stage-bars i {
  height: 8px;
  flex: 1;
  border-radius: 5px;
  background: var(--ui-line);
}
.surface-stage-bars i.complete {
  background: #22a86a;
}
.surface-stage-bars i.working {
  background: var(--ui-link);
}
.surface-stage-bars i.blocked {
  background: var(--ui-danger);
}
.surface-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ui-muted) !important;
}
.surface-empty {
  padding: 36px;
  text-align: center;
  color: var(--ui-muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.surface-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.surface-bottom-card {
  background: white;
  border: 1px solid #e9ecf1;
  border-radius: 18px;
  padding: 18px 22px;
  height: 260px;
  box-shadow: var(--ui-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.surface-bottom-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 36px;
}
.surface-bottom-card h2 {
  font-size: 27px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.surface-bottom-card h2 svg {
  flex: none;
}
.surface-bottom-card header > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  color: var(--ui-muted);
  flex: none;
}
.surface-car-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-link);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 12px;
  white-space: nowrap;
}
.surface-car-platform > span {
  font-size: 17px;
  color: var(--ui-muted);
  font-weight: 400;
}
.surface-car-platform > button {
  min-height: 30px;
  min-width: 30px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.surface-car-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--ui-line);
  font-size: 15px;
  color: var(--ui-muted);
}
.surface-car-time b {
  color: var(--ui-text);
  font-size: 17px;
  white-space: nowrap;
}
.surface-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  background: var(--ui-accent);
  color: var(--ui-text) !important;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 11px;
  padding: 11px 12px;
  margin-top: auto;
}
.surface-primary:hover {
  background: var(--ui-accent-hover);
  text-decoration: none;
}
.surface-returns > header {
  margin-bottom: 10px;
}
.surface-return-open {
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  padding: 0;
  min-height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.surface-return-list {
  display: grid;
  gap: 6px;
  flex: 1;
}
.surface-return-list > button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 2px 0;
  text-align: left;
  color: var(--ui-text);
}
.surface-return-list > button:hover {
  background: var(--ui-subtle);
}
.surface-return-list > button > svg {
  color: var(--ui-muted);
}
.surface-return-list strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--ui-info-bg);
  color: var(--ui-link);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.5px;
}
.surface-return-list .urgent strong {
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.surface-return-list strong.missing {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  white-space: normal;
  padding: 5px;
  letter-spacing: 0;
}
.surface-return-line-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.surface-return-line-copy > span {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.surface-return-line-copy em {
  font-size: 14px;
  font-style: normal;
  line-height: 1.25;
  color: var(--ui-muted);
}
.surface-return-list .urgent em {
  color: var(--ui-danger);
}
.surface-return-money {
  border: 0;
  background: transparent;
  padding: 7px 0;
  display: flex;
  gap: 6px;
  align-items: center;
  text-align: left;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.25;
  min-height: 34px;
}
.surface-return-money svg {
  flex: none;
}
.surface-returns footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.surface-returns footer > button {
  border: 0;
  background: none;
  color: var(--ui-link);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  min-height: 32px;
}
.surface-returns footer > small {
  font-size: 14px;
  color: var(--ui-muted);
}
.surface-return-detail dl {
  margin: 18px 0;
}
.surface-return-detail dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-line);
}
.surface-return-detail dt {
  flex: 1;
}
.surface-return-detail dd {
  margin: 0;
  max-width: 45%;
  font-weight: 650;
}
.surface-shift-content {
  text-align: center;
  margin: -6px 0 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.surface-shift-content > span {
  background: var(--ui-subtle);
  color: var(--ui-muted);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}
.surface-shift-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
}
.surface-shift-content p {
  font-size: 15px;
  line-height: 1.25;
  color: var(--ui-muted);
  margin: 0;
}
.surface-window-info {
  padding: 20px 0;
  font-size: 16px;
  line-height: 1.5;
}
.surface-window-info > button {
  margin: 6px 10px 6px 0;
}
.surface-window-info p {
  margin: 12px 0;
}
.surface-modal-order {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-text);
}
.surface-modal-order strong {
  color: var(--ui-link);
}
.surface-modal-order svg {
  margin-left: auto;
}
.surface-tasks {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid #e9ecf1;
  border-radius: 14px;
  background: white;
  margin-bottom: 18px;
  min-height: 60px;
}
.surface-tasks-title {
  flex: none;
}
.surface-tasks h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  letter-spacing: -.3px;
  margin: 0;
}
.surface-tasks-title > span {
  display: block;
  color: var(--ui-danger);
  font-size: 14px;
  margin-top: 4px;
}
.surface-tasks > p {
  font-size: 16px;
  margin: 0;
  color: var(--ui-muted);
  flex: 1;
}
.surface-task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1;
  min-width: 0;
  gap: 14px;
}
.surface-task-list > button {
  display: block;
  text-align: left;
  border: 0;
  border-left: 3px solid var(--ui-line);
  background: transparent;
  color: var(--ui-text);
  padding: 2px 10px;
  min-width: 0;
}
.surface-task-list > button:hover {
  background: var(--ui-subtle);
  border-radius: 6px;
}
.surface-task-list > button.overdue {
  border-color: var(--ui-danger);
}
.surface-task-list b,
.surface-task-list small,
.surface-task-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.surface-task-list b {
  font-size: 16px;
  font-weight: 600;
}
.surface-task-list small,
.surface-task-list span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ui-muted);
  font-weight: 400;
}
.surface-task-list .overdue small {
  color: var(--ui-danger);
}
.surface-tasks-all {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 16px;
  color: var(--ui-link);
  min-height: 40px;
  text-decoration: none;
  flex: none;
}
.surface-stock-list {
  margin: 18px 0;
}
.surface-stock-list article {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ui-line);
}
.surface-stock-list h3 {
  font-size: 18px;
  margin: 0 0 6px;
}
.surface-stock-list p {
  margin: 5px 0;
  color: var(--ui-muted);
}
.surface-stock-list article > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.surface-stock-list strong {
  font-size: 24px;
}
.surface-stock-location {
  display: flex;
  align-items: center;
  gap: 8px;
}
.surface-stock-list small {
  font-size: 14px;
  color: var(--ui-muted);
}
@media (max-width: 1100px) {
  .surface-tasks {
    flex-wrap: wrap;
    gap: 12px;
  }
  .surface-tasks-title {
    flex: 1;
  }
  .surface-task-list {
    order: 3;
    flex-basis: 100%;
  }
  .surface-tasks > p {
    order: 3;
    flex-basis: 100%;
  }
  .surface-tasks-all {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .surface-task-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .surface-tasks {
    padding: 12px;
  }
  .surface-tasks h2 {
    font-size: 18px;
  }
  .surface-tasks-all {
    font-size: 14px;
  }
  .surface-stock-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.navigation-shell {
  --menu-width:308px;
}
.navigation-shell.navigation-compact {
  --menu-width:84px;
}
.global-navigation {
  inset: 10px auto 10px 12px;
  width: calc(var(--menu-width) - 12px);
  height: calc(100dvh - 20px);
  border: 0;
  border-radius: 18px;
  padding: 14px 12px;
  --ui-control:48px;
  box-shadow: 0 2px 18px #19243a03;
}
.navigation-head {
  position: relative;
  padding: 0 0 10px;
  border: 0;
}
.navigation-head > a {
  min-height: 54px;
  padding: 4px 30px 4px 4px;
}
.navigation-head .original-brand-logo {
  max-width: 242px;
}
.navigation-head .navigation-toggle {
  position: absolute;
  right: 0;
  top: 8px;
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  padding: 5px;
  justify-content: center;
  background: var(--ui-subtle);
  border-radius: 50%;
  color: var(--ui-text);
}
.navigation-head .navigation-toggle > span {
  display: none;
}
.workspace-switcher {
  padding: 2px 4px 4px;
}
.workspace-switcher label {
  font-size: 0;
  gap: 0;
}
.workspace-switcher select {
  font-size: 15px;
  font-weight: 500;
  min-height: 36px;
  height: 36px;
  padding: 6px 8px;
  border-color: var(--ui-line);
  background: var(--ui-subtle);
  border-radius: 9px;
}
.workspace-switcher small {
  margin-top: 4px;
  font-size: 14px;
}
.global-navigation .navigation-links > a,
.global-navigation .navigation-task-entry > a,
.global-navigation .navigation-group-button {
  min-height: 50px;
  padding: 11px 14px;
  font-size: 19px;
  font-weight: 400;
  gap: 16px;
}
.global-navigation .navigation-links > a > svg,
.global-navigation .navigation-task-entry > a > svg,
.global-navigation .navigation-group-button > svg:first-child {
  width: 26px;
  height: 26px;
  stroke-width: 2;
  color: var(--ui-text);
}
.global-navigation .is-current > .navigation-group-button {
  font-weight: 700;
}
.navigation-group-button .navigation-chevron {
  width: 18px;
  height: 18px;
}
.navigation-chevron {
  transform: none;
}
.navigation-chevron.is-open {
  transform: rotate(180deg);
}
.global-navigation .navigation-submenu a {
  min-height: 43px;
  font-size: 17px;
  padding: 9px 14px;
  gap: 12px;
}
.navigation-submenu svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}
.navigation-submenu {
  padding: 4px 0 4px 20px;
}
.global-navigation .navigation-submenu a[aria-current=page] {
  box-shadow: none;
  font-weight: 600;
}
.navigation-submenu a[href="/#overview"] svg {
  display: none;
}
.global-navigation .navigation-submenu a[href="/#overview"] {
  padding-left: 30px;
  min-height: 40px;
}
.navigation-links > a,
.navigation-group {
  margin-bottom: 4px;
}
.navigation-links {
  padding: 0;
  scrollbar-width: thin;
}
.navigation-links > a[href="/#tv"] {
  margin-top: 18px;
}
.navigation-more {
  font-size: 14px;
  color: var(--ui-muted);
}
.navigation-more > summary {
  padding: 7px 14px;
  min-height: 32px;
  cursor: pointer;
  font-size: 14px;
}
.navigation-footer {
  padding-top: 6px;
  border: 0;
}
.navigation-footer > a {
  font-size: 18px !important;
  min-height: 48px !important;
  gap: 16px;
}
.navigation-footer > a > svg {
  width: 25px;
  height: 25px;
}
.navigation-user {
  padding: 8px 12px;
  gap: 12px;
  font-size: 17px;
}
.navigation-user > svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--ui-subtle);
  border-radius: 50%;
}
.navigation-user small {
  font-size: 14px;
  margin-top: 3px;
}
.navigation-footer > button {
  min-height: 36px !important;
  font-size: 14px !important;
}
.navigation-compact .navigation-head .navigation-toggle {
  position: static;
  width: 44px;
  margin: 4px auto;
}
.navigation-compact .navigation-head > a {
  padding: 4px;
}
.navigation-compact .workspace-switcher {
  padding: 0;
}
.navigation-compact .global-navigation {
  padding: 10px 6px;
}
.navigation-compact .navigation-links > a,
.navigation-compact .navigation-task-entry > a {
  padding: 11px;
}
@media (min-width: 1900px) {
  .surface-heading h1 {
    font-size: 48px;
  }
  .surface-heading {
    gap: 24px;
  }
  .surface-search {
    width: 36.5%;
  }
  .surface-kpi {
    padding-left: 112px;
  }
  .surface-kpi-title {
    font-size: 18px;
  }
  .surface-kpi strong {
    font-size: 52px;
  }
  .surface-kpi strong.surface-missing {
    font-size: 26px;
  }
  .surface-stock {
    left: 100px;
    right: auto;
    min-width: 230px;
  }
  .surface-table-scroll td {
    height: 72px;
  }
  .surface-bottom-card {
    height: 270px;
  }
  .surface-return-counts {
    max-height: 114px;
  }
}
@media (max-width: 1450px) and (min-width: 1101px) {
  .navigation-shell {
    --menu-width:280px;
  }
  .navigation-shell.navigation-compact {
    --menu-width:84px;
  }
  .surface-heading h1 {
    font-size: 36px;
  }
  .surface-heading {
    gap: 12px;
  }
  .surface-date {
    width: 162px;
    font-size: 17px;
  }
  .surface-search {
    width: 32%;
  }
  .surface-kpi {
    padding-left: 78px;
  }
  .surface-kpi-icon {
    width: 48px;
    height: 48px;
    left: 16px;
  }
  .surface-kpi-title {
    font-size: 15px;
  }
  .surface-kpi strong {
    font-size: 42px;
  }
  .surface-kpi strong.surface-missing {
    font-size: 21px;
  }
  .surface-stock {
    left: 12px;
    right: 12px;
    font-size: 14px;
  }
  .surface-stage {
    gap: 12px;
  }
  .surface-stage-label {
    min-width: 100px;
    font-size: 14px;
    padding: 7px 10px;
  }
  .surface-stage-bars {
    min-width: 50px;
  }
  .surface-bottom-card {
    padding: 18px;
  }
  .surface-bottom-card h2 {
    font-size: 22px;
    gap: 8px;
  }
  .surface-bottom-card h2 svg {
    width: 28px;
  }
  .surface-car-platform {
    font-size: 19px;
  }
  .surface-car-platform > span {
    font-size: 15px;
  }
  .surface-car-time {
    font-size: 14px;
  }
  .surface-car-time b {
    font-size: 15px;
  }
  .surface-return-counts > button {
    padding: 10px;
  }
  .surface-return-counts span {
    font-size: 15px;
  }
  .surface-return-counts strong {
    font-size: 36px;
  }
  .surface-return-counts small {
    font-size: 14px;
  }
  .surface-return-counts em {
    font-size: 14px;
  }
  .surface-returns footer > small {
    font-size: 14px;
  }
}
@media (max-width: 1100px) {
  .navigation-shell {
    --menu-width:260px;
  }
  .navigation-shell.navigation-compact {
    --menu-width:80px;
  }
  .global-navigation .navigation-links > a,
  .global-navigation .navigation-task-entry > a,
  .global-navigation .navigation-group-button {
    font-size: 17px;
  }
  .global-navigation .navigation-submenu a {
    font-size: 16px;
  }
  .navigation-content .director-home > .content {
    padding: 30px 22px;
  }
  .surface-heading {
    height: auto;
    flex-wrap: wrap;
  }
  .surface-heading h1 {
    font-size: 34px;
  }
  .surface-date-menu {
    margin-left: auto;
  }
  .surface-date {
    width: 170px;
  }
  .surface-search {
    width: calc(100% - 66px);
    order: 3;
  }
  .surface-notifications {
    order: 4;
  }
  .surface-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .surface-bottom {
    grid-template-columns: 1fr;
  }
  .surface-bottom-card {
    height: 260px;
    max-width: none;
  }
  .surface-table-scroll table {
    min-width: 850px;
  }
  .surface-bottom-card h2 {
    font-size: 25px;
  }
}
@media (max-width: 600px) {
  .navigation-shell {
    --menu-width:236px;
  }
  .navigation-shell.navigation-compact {
    --menu-width:68px;
  }
  .global-navigation {
    left: 6px;
    width: calc(var(--menu-width) - 6px);
    inset-block: 6px;
    height: calc(100dvh - 12px);
    border-radius: 14px;
    padding: 10px 8px;
  }
  .navigation-content .director-home > .content {
    padding: 22px 12px;
  }
  .surface-heading {
    gap: 12px;
  }
  .surface-heading h1 {
    font-size: 27px;
    flex-basis: 100%;
  }
  .surface-date-menu {
    margin: 0;
  }
  .surface-date {
    min-height: 44px;
    padding: 9px 12px;
    width: 174px;
    font-size: 16px;
  }
  .surface-date-options {
    left: 0;
    right: auto;
    width: 254px;
    max-width: calc(100vw - 100px);
  }
  .surface-notifications {
    order: 0;
    margin-left: auto;
    width: 44px;
    min-height: 44px;
  }
  .surface-search {
    width: 100%;
    order: 3;
  }
  .surface-search input {
    font-size: 16px !important;
  }
  .surface-kpis {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .surface-kpi {
    height: 132px;
    padding-left: 90px;
  }
  .surface-kpi-icon {
    width: 56px;
    height: 56px;
    left: 16px;
  }
  .surface-kpi-title {
    font-size: 16px;
  }
  .surface-kpi strong {
    font-size: 42px;
  }
  .surface-kpi strong.surface-missing {
    font-size: 22px;
  }
  .surface-stock {
    left: 16px;
    right: 12px;
    font-size: 14px;
    justify-content: flex-start;
    width: fit-content;
  }
  .surface-queue {
    padding: 12px;
  }
  .surface-queue > header {
    padding: 0 0 12px;
    gap: 10px;
  }
  .surface-queue h2 {
    font-size: 20px;
  }
  .surface-queue header > a {
    font-size: 14px;
    white-space: nowrap;
    gap: 4px;
  }
  .surface-bottom-card {
    padding: 18px;
    height: 274px;
  }
  .surface-bottom-card h2 {
    font-size: 21px;
    gap: 8px;
  }
  .surface-bottom-card h2 svg {
    width: 25px;
  }
  .surface-car-platform {
    font-size: 18px;
    gap: 4px;
  }
  .surface-car-platform > span {
    font-size: 14px;
  }
  .surface-car-time {
    font-size: 14px;
  }
  .surface-car-time b {
    font-size: 15px;
  }
  .surface-return-counts {
    gap: 10px;
  }
  .surface-return-counts > button {
    padding: 10px;
  }
  .surface-return-counts span {
    font-size: 15px;
  }
  .surface-return-counts strong {
    font-size: 32px;
  }
  .surface-return-counts small {
    font-size: 14px;
  }
  .surface-returns footer > button {
    font-size: 15px;
  }
  .surface-returns footer > small {
    font-size: 14px;
  }
  .surface-modal-order {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .surface-return-detail dl > div {
    display: block;
  }
  .surface-return-detail dd {
    max-width: none;
    margin-top: 5px;
  }
}
.stock-short {
  display: none;
}
@media (max-width: 600px) {
  button.surface-stock {
    width: auto;
    right: 16px;
  }
  .stock-long {
    display: none;
  }
  .stock-short {
    display: inline;
  }
}
@media (min-width: 1900px) {
  .surface-kpi {
    height: 144px;
    min-height: 144px;
  }
  .surface-kpi-icon {
    width: 72px;
    height: 72px;
  }
  .surface-kpi-icon > svg {
    width: 36px;
    height: 36px;
  }
  .surface-bottom-card h2 > svg {
    width: 36px;
    height: 36px;
  }
  .surface-return-list strong {
    font-size: 32px;
  }
  .surface-return-list strong.missing {
    font-size: 14px;
  }
  .global-navigation .navigation-links > a > svg,
  .global-navigation .navigation-task-entry > a > svg,
  .global-navigation .navigation-group-button > svg:first-child {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 1450px) {
  .surface-return-list > button {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    gap: 10px;
  }
  .surface-return-list strong {
    width: 44px;
    font-size: 28px;
  }
  .surface-return-list strong.missing {
    font-size: 14px;
  }
  .surface-return-line-copy > span {
    font-size: 16px;
  }
  .surface-returns {
    height: auto;
    min-height: 260px;
  }
  .surface-return-list {
    min-height: 116px;
  }
}
.navigation-content .director-home > .content {
  max-width: 1900px;
}
.production-surface {
  --surface-body:clamp(18px,1vw,21px);
  --surface-icon:clamp(22px,1.15vw,27px);
  --surface-gap:clamp(16px,1vw,23px);
}
.surface-kpis,
.surface-bottom {
  gap: var(--surface-gap);
}
.surface-table-scroll th:nth-child(1) {
  width: 11%;
}
.surface-table-scroll th:nth-child(2) {
  width: 26%;
}
.surface-table-scroll th:nth-child(3) {
  width: 43%;
}
.surface-table-scroll th:nth-child(4) {
  width: 14%;
}
.surface-table-scroll th:nth-child(5) {
  width: 6%;
}
.surface-table-scroll td {
  height: 104px;
  padding: 10px 12px;
}
.surface-table-scroll th {
  padding: 12px;
}
.overview-product + .overview-product {
  border-top: 1px solid var(--ui-line);
  margin-top: 10px;
  padding-top: 10px;
}
.overview-product-id {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.surface-table-scroll .overview-product-id a {
  font-weight: 650;
  font-size: var(--surface-body);
  overflow-wrap: anywhere;
}
.overview-product-id > span {
  font-size: 14px;
  color: var(--ui-muted);
  white-space: nowrap;
}
.surface-table-scroll .overview-features {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 5px;
  min-height: 44px;
  color: var(--ui-text);
}
.overview-feature {
  height: 39px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: var(--ui-subtle);
  padding: 5px 7px;
}
.overview-feature > svg {
  width: var(--surface-icon);
  height: var(--surface-icon);
  flex: none;
}
.overview-feature.shape {
  height: 48px;
  min-width: 54px;
  padding: 3px 8px;
  background: white;
}
.overview-feature.shape > svg {
  height: 40px;
  width: 35px;
}
.overview-feature.light.confirmed {
  background: var(--ui-warning-bg);
}
.overview-feature.light.confirmed > svg {
  color: var(--ui-warning);
  fill: var(--ui-accent);
}
.overview-feature.light.none {
  color: var(--ui-muted);
}
.overview-feature b {
  font-size: 14px;
  white-space: nowrap;
  font-weight: 550;
}
.overview-feature.unknown {
  border-style: dashed;
  background: white;
  color: var(--ui-muted);
}
.feature-none {
  font-size: 14px;
}
.overview-features:hover .overview-feature {
  border-color: var(--ui-link);
}
.overview-flow {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 320px;
  min-height: 80px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ui-text);
  border-radius: 10px;
}
.overview-flow:hover {
  background: var(--ui-subtle);
}
.flow-branches {
  display: grid;
  gap: 3px;
  flex: none;
  width: 112px;
  position: relative;
  z-index: 1;
}
.flow-node {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: var(--ui-muted);
}
.flow-node.branch {
  flex-direction: row;
  gap: 8px;
  text-align: left;
  min-height: 25px;
}
.flow-node-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border: 1px dashed var(--ui-line);
  border-radius: 9px;
  background: white;
  color: var(--ui-muted);
  flex: none;
}
.flow-node-icon > svg:first-child {
  width: 21px;
  height: 21px;
}
.flow-node.branch .flow-node-icon {
  width: 28px;
  height: 24px;
  border-radius: 5px;
}
.flow-node.branch .flow-node-icon > svg:first-child {
  width: 17px;
  height: 17px;
}
.flow-state-symbol {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  background: white;
  border-radius: 50%;
  padding: 1px;
}
.flow-node.waiting .flow-node-icon {
  border-style: solid;
  background: var(--ui-subtle);
}
.flow-node.working {
  color: var(--ui-info);
}
.flow-node.working .flow-node-icon {
  border-style: solid;
  border-color: var(--ui-info);
  background: var(--ui-info-bg);
  color: var(--ui-info);
}
.flow-node.complete {
  color: var(--ui-success);
}
.flow-node.complete .flow-node-icon {
  border-style: solid;
  border-color: var(--ui-success);
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.flow-node.blocked {
  color: var(--ui-danger);
}
.flow-node.blocked .flow-node-icon {
  border-style: solid;
  border-color: var(--ui-danger);
  background: var(--ui-danger-bg);
  color: var(--ui-danger);
}
.flow-node.not-needed .flow-node-icon {
  border-style: solid;
  background: var(--ui-subtle);
}
.flow-join {
  width: 15px;
  height: 56px;
  border: 1.5px solid var(--ui-line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  position: relative;
  flex: none;
  margin-right: 12px;
}
.flow-join:before {
  content: "";
  height: 1px;
  width: 16px;
  background: var(--ui-line);
  position: absolute;
  top: 50%;
  right: 100%;
}
.flow-join:after {
  content: "";
  height: 1px;
  width: 12px;
  background: var(--ui-line);
  position: absolute;
  top: 50%;
  left: 100%;
}
.flow-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
  max-width: 270px;
}
.flow-chain .flow-node {
  min-width: 44px;
  flex: 1;
}
.flow-chain .flow-node:not(:last-child):after {
  content: "\203a";
  position: absolute;
  left: calc(100% + 2px);
  top: 9px;
  font-size: 18px;
  color: var(--ui-muted);
}
.flow-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.flow-detail > div {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  padding: 16px;
}
.flow-detail dt {
  font-weight: 650;
  font-size: 18px;
}
.flow-detail dd {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.flow-detail dd > .flow-node > span:last-child {
  display: none;
}
.flow-detail small {
  font-size: 14px;
  flex-basis: 100%;
  color: var(--ui-muted);
}
.surface-bottom-card {
  height: 334px;
  padding: 20px 22px;
}
.surface-return-list {
  flex: none;
  min-height: 108px;
}
.surface-return-losses {
  border: 0;
  border-top: 1px solid var(--ui-line);
  border-bottom: 1px solid var(--ui-line);
  padding: 10px 0;
  margin: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 16px;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  color: var(--ui-muted);
  min-height: 62px;
}
.surface-return-losses > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.surface-return-losses small {
  font-size: 14px;
}
.surface-return-losses b {
  font-size: 16px;
  font-weight: 500;
  color: var(--ui-muted);
}
.surface-return-losses:hover {
  background: var(--ui-subtle);
}
.surface-return-losses > svg {
  align-self: center;
}
.surface-return-losses b.has-value {
  color: var(--ui-text);
  font-weight: 650;
  white-space: nowrap;
}
.return-finance-stamp {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.3;
  margin: -4px 0 6px;
}
.return-finance-detail details {
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  margin: 12px 0;
  padding: 0 14px;
}
.return-finance-detail summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 0;
}
.finance-records article {
  border-top: 1px solid var(--ui-line);
  padding: 14px 0;
}
.finance-records header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}
.finance-records p {
  margin: 6px 0;
  font-size: 16px;
}
.finance-records small {
  font-size: 14px;
  color: var(--ui-muted);
  overflow-wrap: anywhere;
}
.surface-car-economy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  text-align: left;
  font-size: 15px;
  min-height: 46px;
  padding: 6px 0;
  margin-bottom: 6px;
}
.surface-car-economy small {
  font-size: 14px;
  color: var(--ui-muted);
}
.surface-car-economy:hover span {
  color: var(--ui-link);
}
.surface-car-load {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: var(--ui-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  color: var(--ui-text);
  margin-bottom: 9px;
  min-height: 70px;
  width: 100%;
}
.surface-car-load > strong {
  font-size: 42px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -1px;
}
.surface-car-load > strong > small {
  font-size: 22px;
  color: var(--ui-muted);
  letter-spacing: 0;
}
.surface-car-load > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.surface-car-load b {
  font-size: 16px;
  font-weight: 600;
}
.surface-car-load small {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ui-muted);
}
.surface-car-load > svg {
  flex: none;
  color: var(--ui-muted);
}
.surface-car > header {
  margin-bottom: 8px;
}
.surface-car .surface-car-platform {
  font-size: 17px;
  margin-bottom: 4px;
}
.surface-car .surface-car-platform > span {
  font-size: 14px;
}
.surface-car .surface-car-time {
  font-size: 14px;
  margin-bottom: 3px;
  line-height: 1.25;
}
.surface-car .surface-car-time b {
  font-size: 15px;
}
.surface-car .surface-car-economy {
  min-height: 27px;
  padding: 2px 0;
  font-size: 14px;
  margin: 1px 0 5px;
}
.surface-car .surface-car-economy small {
  display: none;
}
.surface-car .surface-primary {
  min-height: 44px;
  margin-top: auto;
  font-size: 16px;
}
@media (min-width: 1900px) {
  .surface-kpi-title {
    font-size: 20px;
  }
  .surface-kpi-note {
    font-size: 15px;
  }
  .surface-bottom-card {
    height: 354px;
    padding: 23px 26px;
  }
  .surface-bottom-card h2 {
    font-size: 30px;
    gap: 14px;
  }
  .surface-queue {
    padding: 22px;
  }
  .surface-queue h2 {
    font-size: 30px;
  }
  .surface-table-scroll th {
    font-size: 18px;
  }
  .surface-table-scroll td {
    height: 116px;
    font-size: 20px;
  }
  .surface-table-scroll td > a {
    font-size: 20px;
  }
  .flow-node {
    font-size: 16px;
  }
  .flow-branches {
    width: 128px;
    gap: 5px;
  }
  .flow-node.branch {
    min-height: 28px;
  }
  .flow-node.branch .flow-node-icon {
    width: 32px;
    height: 27px;
  }
  .flow-node.branch .flow-node-icon > svg:first-child {
    width: 20px;
    height: 20px;
  }
  .flow-node-icon {
    width: 46px;
    height: 42px;
  }
  .flow-node-icon > svg:first-child {
    width: 25px;
    height: 25px;
  }
  .flow-state-symbol {
    width: 16px;
    height: 16px;
  }
  .flow-join {
    height: 65px;
  }
  .flow-chain {
    gap: 18px;
    max-width: 330px;
  }
  .surface-return-line-copy > span {
    font-size: 19px;
  }
  .surface-return-line-copy em {
    font-size: 15px;
  }
  .surface-return-losses b {
    font-size: 18px;
  }
  .surface-return-losses small {
    font-size: 15px;
  }
  .surface-tasks h2 {
    font-size: 22px;
  }
  .surface-tasks h2 > svg {
    width: 24px;
    height: 24px;
  }
  .surface-primary {
    font-size: 20px;
    min-height: 54px;
  }
  .surface-car-time {
    font-size: 17px;
  }
  .surface-car-time b {
    font-size: 19px;
  }
  .surface-car-economy {
    font-size: 17px;
  }
  .surface-shift-content > span {
    width: 66px;
    height: 66px;
  }
  .surface-shift-content > span > svg {
    width: 32px;
    height: 32px;
  }
  .surface-shift-content h3 {
    font-size: 22px;
  }
  .surface-shift-content p {
    font-size: 17px;
  }
}
@media (max-width: 1450px) {
  .surface-table-scroll table {
    min-width: 1000px;
  }
  .surface-table-scroll th:nth-child(3) {
    width: 40%;
  }
  .surface-table-scroll th:nth-child(2) {
    width: 28%;
  }
  .surface-bottom-card {
    height: 344px;
  }
  .surface-return-losses {
    gap: 7px;
  }
  .surface-car-economy {
    font-size: 14px;
  }
  .surface-car-platform {
    margin-bottom: 8px;
  }
}
@media (max-width: 1100px) {
  .surface-bottom-card {
    height: auto;
    min-height: 310px;
  }
  .surface-return-list {
    max-width: 500px;
    width: 100%;
  }
  .surface-return-losses {
    max-width: 500px;
    width: 100%;
  }
  .surface-car-economy {
    margin-bottom: 12px;
  }
  .surface-shift-content {
    min-height: 140px;
  }
}
@media (max-width: 600px) {
  .surface-bottom-card {
    padding: 18px;
    min-height: 320px;
  }
  .surface-return-list > button {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 8px;
  }
  .surface-return-list strong {
    width: 42px;
  }
  .surface-return-losses {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .surface-return-losses > svg {
    display: none;
  }
  .surface-return-losses small {
    font-size: 14px;
  }
  .surface-return-losses b {
    font-size: 15px;
  }
  .flow-detail {
    grid-template-columns: 1fr;
  }
  .surface-car-time {
    gap: 6px;
  }
}
.wh-page {
  font-family: var(--ui-font);
  color: var(--ui-text);
  --ink:var(--ui-text);
  --muted:var(--ui-muted);
  --line:var(--ui-line);
  --teal:var(--ui-link);
  --mint:var(--ui-info-bg);
}
.wh-page .ui-page-heading h1 {
  font-size: clamp(32px, 2.6vw, 40px);
  letter-spacing: -.7px;
  color: var(--ui-text);
}
.wh-page > .ui-page-heading {
  margin-bottom: 22px;
  align-items: center;
}
.wh-page .wh-tabs .ui-button {
  border-color: var(--ui-line);
  border-radius: var(--ui-radius);
  font-weight: 600;
}
.wh-page .wh-tabs .ui-button[aria-selected=true] {
  background: var(--ui-accent);
  color: var(--ui-text);
  border-color: var(--ui-accent);
}
.wh-page .ui-page-heading a {
  color: var(--ui-link);
  font-weight: 500;
  border-color: var(--ui-line);
}
.wh-page .stock-category-tabs {
  gap: 10px;
  margin: 18px 0;
}
.wh-page .stock-category-tabs button {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: none;
  font-size: 16px;
  font-weight: 500;
  min-height: 52px;
  padding: 12px 14px;
  line-height: 1.3;
  text-align: left;
}
.wh-page .stock-category-tabs button:hover {
  background: var(--ui-subtle);
}
.wh-page .stock-category-tabs button.active {
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: var(--ui-text);
  font-weight: 600;
  box-shadow: none;
}
.wh-page .stock-category-tabs button svg {
  color: currentColor;
  width: 21px;
  height: 21px;
}
.wh-page .stock-content {
  background: var(--ui-surface);
  border: 0;
  border-radius: var(--ui-radius-lg);
  padding: 24px;
  box-shadow: var(--ui-shadow);
}
.wh-page .stock-section-heading {
  padding: 0 0 18px;
  margin: 0;
  border-bottom: 1px solid var(--ui-line);
  align-items: flex-start;
  gap: 16px;
}
.wh-page .stock-section-heading h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.3px;
  margin: 0;
  color: var(--ui-text);
}
.wh-page .stock-section-heading p {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.wh-page .stock-section-total {
  background: var(--ui-subtle);
  border-radius: var(--ui-radius);
  color: var(--ui-text);
  padding: 10px 14px;
  gap: 8px;
}
.wh-page .stock-section-total b {
  font-size: 28px;
  line-height: 1.1;
}
.wh-page .stock-section-total span {
  font-size: 14px;
  color: var(--ui-muted);
}
.wh-page .stock-value {
  margin: 8px 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.5;
}
.wh-page .stock-value > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ui-link);
  cursor: pointer;
}
.wh-page .stock-value > summary:before {
  content: "\25b8";
  margin-right: 8px;
}
.wh-page .stock-value[open] > summary:before {
  content: "\25be";
}
.wh-page .stock-tools {
  margin: 10px 0;
  gap: 16px;
  align-items: center;
}
.wh-page .stock-search {
  background: var(--ui-surface);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius);
  min-height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
}
.wh-page .stock-search input {
  font-size: 16px;
  color: var(--ui-text);
  min-height: 46px;
  line-height: 1.3;
  padding: 10px 0;
}
.wh-page .stock-search input::placeholder {
  color: var(--ui-muted);
}
.wh-page .stock-known-filter {
  font-size: 14px;
  color: var(--ui-text);
  min-height: 44px;
  gap: 8px;
  white-space: normal;
}
.wh-page input[type=checkbox] {
  accent-color: var(--ui-link);
  width: 20px;
  height: 20px;
}
.wh-page .stock-check-filter > summary,
.wh-page .stock-expand-actions button,
.wh-page .stock-reset {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  font: 500 14px var(--ui-font);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-link);
  background: var(--ui-surface);
}
.wh-page .stock-check-filter > summary b {
  background: var(--ui-subtle);
  color: var(--ui-text);
  font-weight: 500;
}
.wh-page .stock-filter-result,
.wh-page .stock-legend {
  font-size: 14px;
  color: var(--ui-muted);
}
.wh-page .stock-filter-options {
  border-color: var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-modal-shadow);
}
.wh-page .stock-filter-options label {
  font-size: 16px;
  min-height: 44px;
  color: var(--ui-text);
}
.wh-page .stock-filter-done {
  min-height: 44px;
  background: var(--ui-accent);
  color: var(--ui-text);
  border: 0;
  border-radius: var(--ui-radius-sm);
  font-weight: 600;
}
.wh-page .stock-form-group,
.wh-page .stock-material-group,
.wh-page .stock-view-group {
  margin: 16px 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  overflow: hidden;
  background: var(--ui-surface);
}
.wh-page .stock-form-group > summary,
.wh-page .stock-material-group > summary,
.wh-page .stock-view-group > summary {
  min-height: 58px;
  padding: 14px 16px;
  background: var(--ui-subtle);
  color: var(--ui-text);
  gap: 12px;
  font-size: 18px;
}
.wh-page .stock-form-group > summary h4,
.wh-page .stock-material-group > summary h4 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ui-text);
  margin: 0;
}
.wh-page .stock-form-group > summary > span,
.wh-page .stock-material-group > summary > span {
  color: var(--ui-text);
  background: var(--ui-surface);
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--ui-radius-sm);
  padding: 6px 10px;
}
.wh-page .stock-form-group > summary small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ui-muted);
}
.wh-page .stock-shape-icon {
  width: 25px;
  height: 30px;
  color: var(--ui-text);
}
.wh-page .stock-width-group {
  border: 0;
  border-top: 1px solid var(--ui-line);
  background: var(--ui-surface);
  margin: 0;
}
.wh-page .stock-width-group > summary {
  background: var(--ui-surface);
  color: var(--ui-text);
  font-size: 16px;
  padding: 12px 16px;
  min-height: 48px;
}
.wh-page .stock-width-group > summary small {
  font-size: 14px;
  color: var(--ui-muted);
  font-weight: 400;
}
.wh-page .stock-width-group[open] > summary {
  background: var(--ui-selected-soft);
}
.wh-page .stock-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.wh-page .stock-table {
  font-size: 16px;
  line-height: 1.4;
  min-width: 620px;
}
.wh-page .stock-table th {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  padding: 12px 14px;
  background: var(--ui-subtle);
  color: var(--ui-muted);
  border-color: var(--ui-line);
  text-transform: none;
}
.wh-page .stock-table td {
  font-size: 16px;
  padding: 12px 14px;
  border-color: var(--ui-line);
  color: var(--ui-text);
}
.wh-page .stock-table tbody tr:hover {
  background: var(--ui-bg);
}
.wh-page .stock-table small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ui-muted);
}
.wh-page .stock-size {
  font-size: 17px;
  color: var(--ui-link);
  font-weight: 600;
  min-height: 44px;
  background: transparent;
  border: 0;
}
.wh-page .stock-light,
.wh-page .stock-configuration {
  font-size: 16px;
  color: var(--ui-text);
  background: transparent;
  border: 0;
}
.wh-page .stock-light b,
.wh-page .stock-configuration b {
  font-size: 16px;
  font-weight: 500;
}
.wh-page .stock-location {
  font-size: 14px;
  color: var(--ui-muted);
  background: transparent;
}
.wh-page .stock-quantity {
  min-width: 48px;
  min-height: 44px;
  border-radius: var(--ui-radius-sm);
  font-size: 18px;
  font-weight: 600;
  border: 1px solid transparent;
}
.wh-page .stock-quantity.recorded {
  background: var(--ui-info-bg);
  color: var(--ui-link);
}
.wh-page .stock-quantity.unknown,
.wh-page .stock-quantity.zero {
  background: var(--ui-subtle);
  color: var(--ui-muted);
}
.wh-page .stock-info {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  color: var(--ui-link);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
}
.wh-page .stock-stage-tabs button {
  min-height: 48px;
  font-size: 16px;
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 10px 14px;
}
.wh-page .stock-stage-tabs button.active {
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: var(--ui-text);
}
.wh-page .stock-page-footer {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
  margin-top: 16px;
}
.wh-page button:focus-visible,
.wh-page summary:focus-visible,
.wh-page input:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .wh-page {
    padding: 20px 16px;
  }
  .wh-page .stock-content {
    padding: 16px;
  }
  .wh-page .stock-section-heading {
    flex-wrap: wrap;
  }
  .wh-page .stock-tools {
    align-items: stretch;
  }
  .wh-page .stock-search {
    min-width: 0;
    width: 100%;
  }
  .wh-page .stock-category-tabs {
    gap: 8px;
  }
  .wh-page .stock-category-tabs button {
    padding: 10px;
    font-size: 14px;
  }
  .wh-page .stock-expand-actions {
    flex-wrap: wrap;
  }
  .wh-page .stock-filter-row {
    gap: 8px;
  }
  .wh-page .stock-section-heading h3 {
    font-size: 22px;
  }
  .wh-page .stock-form-group > summary {
    flex-wrap: wrap;
  }
}
.wh-operations {
  display: grid;
  gap: var(--ui-space-5);
  min-width: 0;
  color: var(--ui-text);
}
.wh-operations .ui-card {
  min-width: 0;
}
.wh-operations h2 {
  margin: 0 0 var(--ui-space-4);
  font-size: 24px;
  line-height: 1.25;
}
.wh-operations p {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wh-op-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ui-space-5);
  flex-wrap: wrap;
}
.wh-op-heading p {
  margin: 0;
  color: var(--ui-muted);
}
.wh-op-actions {
  display: flex;
  gap: var(--ui-space-3);
  flex-wrap: wrap;
  align-items: center;
}
.wh-op-form-card form {
  display: grid;
  gap: var(--ui-space-5);
}
.wh-op-form-body {
  display: grid;
  gap: var(--ui-space-5);
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wh-op-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-4);
}
.wh-op-field {
  display: grid;
  gap: var(--ui-space-2);
  min-width: 0;
  font-size: var(--ui-text-base);
}
.wh-op-field > span,
.wh-op-field > label,
.wh-op-field > label > span {
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wh-op-field small,
.wh-op-caption {
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  color: var(--ui-muted);
}
.wh-operations input:not([type=checkbox]),
.wh-operations select,
.wh-operations textarea {
  font: inherit;
  min-width: 0;
  width: 100%;
  min-height: var(--ui-control);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  padding: var(--ui-space-3);
  color: var(--ui-text);
  background: var(--ui-surface);
  box-sizing: border-box;
}
.wh-operations textarea {
  resize: vertical;
  line-height: 1.5;
}
.wh-operations input:focus-visible,
.wh-operations select:focus-visible,
.wh-operations textarea:focus-visible,
.wh-op-document summary:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.wh-op-picker {
  display: grid;
  gap: var(--ui-space-3);
}
.wh-op-facts {
  display: flex;
  gap: var(--ui-space-2) var(--ui-space-5);
  flex-wrap: wrap;
  line-height: 1.5;
}
.wh-op-facts > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wh-op-warning {
  color: var(--ui-warning);
  font-weight: 600;
}
.wh-op-lines {
  display: grid;
  gap: var(--ui-space-5);
}
.wh-op-line {
  display: grid;
  gap: var(--ui-space-4);
  margin: 0;
  padding: var(--ui-space-4);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  min-width: 0;
}
.wh-op-line legend {
  padding: 0 var(--ui-space-2);
  font-weight: 700;
}
.wh-op-confirm {
  display: flex;
  gap: var(--ui-space-3);
  align-items: flex-start;
  line-height: 1.5;
  min-height: var(--ui-control);
  cursor: pointer;
}
.wh-op-confirm input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: 0 0 22px;
  accent-color: var(--ui-accent);
}
.wh-op-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ui-text-base);
}
.wh-op-table th,
.wh-op-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ui-line);
  padding: var(--ui-space-3);
  line-height: 1.5;
}
.wh-op-table th {
  font-weight: 600;
  background: var(--ui-subtle);
}
.wh-op-table small {
  display: block;
  color: var(--ui-muted);
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  margin-top: var(--ui-space-1);
}
.wh-op-table td .ui-button {
  margin-top: var(--ui-space-2);
}
.wh-op-table td:last-child {
  min-width: 120px;
}
.wh-op-documents {
  display: grid;
  gap: var(--ui-space-3);
}
.wh-op-document {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  min-width: 0;
}
.wh-op-document summary {
  display: flex;
  gap: var(--ui-space-3) var(--ui-space-5);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--ui-space-4);
  min-height: var(--ui-control);
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.5;
}
.wh-op-document summary::before {
  content: "\203a";
  font-size: 24px;
  line-height: 1;
  flex: none;
}
.wh-op-document[open] summary::before {
  transform: rotate(90deg);
}
.wh-op-document summary span {
  overflow-wrap: anywhere;
}
.wh-op-document summary span:last-child {
  margin-left: auto;
  color: var(--ui-muted);
}
.wh-op-document-body {
  padding: 0 var(--ui-space-4) var(--ui-space-4);
  min-width: 0;
}
@media (max-width: 700px) {
  .wh-op-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-op-heading {
    display: grid;
  }
  .wh-op-heading > .wh-op-actions .ui-button {
    flex: 1 1 170px;
  }
  .wh-op-line {
    padding: var(--ui-space-3);
  }
  .wh-op-document summary {
    align-items: flex-start;
  }
  .wh-op-document summary span:last-child {
    margin-left: 0;
    width: 100%;
  }
  .wh-op-facts {
    display: grid;
    gap: var(--ui-space-2);
  }
  .wh-op-actions > .ui-button {
    max-width: 100%;
  }
}
@media (max-width: 420px) {
  .wh-op-form-card > .wh-op-actions,
  .wh-op-form-card form > .wh-op-actions {
    display: grid;
  }
  .wh-op-form-card form > .wh-op-actions .ui-button {
    width: 100%;
  }
  .wh-op-document-body {
    padding-left: var(--ui-space-3);
    padding-right: var(--ui-space-3);
  }
}
.wh-production-report-lines {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: var(--ui-space-2);
  overflow-wrap: anywhere;
}
.wh-production .wh-op-line p {
  margin: 0;
}
.wh-production .wh-op-confirm > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wh-invoice {
  display: grid;
  gap: var(--ui-space-3);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: var(--ui-space-4);
  margin: var(--ui-space-4) 0;
  min-width: 0;
}
.wh-invoice h3,
.wh-invoice p {
  margin: 0;
  line-height: 1.5;
}
.wh-invoice h3 {
  font-size: 20px;
}
.wh-invoice input[type=file] {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  font-size: var(--ui-text-base);
  min-height: var(--ui-control);
  overflow: hidden;
  box-sizing: border-box;
}
.wh-invoice input::file-selector-button {
  font: inherit;
  color: var(--ui-text);
  padding: var(--ui-space-3);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-subtle);
  margin-right: var(--ui-space-3);
  cursor: pointer;
}
.wh-invoice small,
.wh-invoice-caption {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.5;
}
.wh-invoice-label {
  font-weight: 600;
}
.wh-invoice-list {
  list-style: none;
  padding: 0;
  margin: var(--ui-space-3) 0;
  display: grid;
  gap: var(--ui-space-3);
  min-width: 0;
}
.wh-invoice-list li {
  display: flex;
  align-items: center;
  gap: var(--ui-space-3);
  flex-wrap: wrap;
  min-width: 0;
  line-height: 1.5;
}
.wh-invoice-list a,
.wh-invoice-list strong {
  overflow-wrap: anywhere;
  min-width: 0;
}
.wh-invoice-list span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  overflow-wrap: anywhere;
}
.wr-receipt,
.wr-suppliers {
  color: var(--ui-text);
  min-width: 0;
}
.wr-receipt h2,
.wr-suppliers h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 var(--ui-space-4);
}
.wr-receipt h3,
.wr-suppliers h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: var(--ui-space-4) 0;
}
.wr-receipt p,
.wr-suppliers p {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wr-field {
  display: grid;
  gap: var(--ui-space-2);
  min-width: 0;
  margin: var(--ui-space-3) 0;
  font-size: var(--ui-text-base);
}
.wr-field > label {
  font-weight: 600;
  line-height: 1.4;
}
.wr-field input,
.wr-field select,
.wr-field textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: var(--ui-control);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  padding: var(--ui-space-3);
  background: var(--ui-surface);
  color: var(--ui-text);
}
.wr-field textarea {
  resize: vertical;
}
.wr-field small,
.wr-caption {
  font-size: var(--ui-text-sm);
  line-height: 1.5;
  color: var(--ui-muted);
}
.wr-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-4);
}
.wr-section-heading,
.wr-roster-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ui-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--ui-space-4);
}
.wr-section-heading p {
  margin: 0;
  color: var(--ui-muted);
}
.wr-actions,
.wr-footer-actions {
  display: flex;
  align-items: center;
  gap: var(--ui-space-3);
  flex-wrap: wrap;
}
.wr-footer-actions {
  justify-content: flex-end;
  padding: var(--ui-space-4) 0;
}
.wr-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--ui-space-4) 0 var(--ui-space-5);
  border-bottom: 1px solid var(--ui-line);
}
.wr-steps button {
  font: inherit;
  display: flex;
  gap: var(--ui-space-3);
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: var(--ui-space-4);
  background: transparent;
  color: var(--ui-muted);
  min-height: var(--ui-control);
  cursor: pointer;
  text-align: left;
}
.wr-steps button span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ui-subtle);
  flex: none;
}
.wr-steps button[aria-current=step] {
  border-bottom-color: var(--ui-accent);
  color: var(--ui-text);
}
.wr-steps button[aria-current=step] span {
  background: var(--ui-accent);
}
.wr-receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: var(--ui-space-5);
  align-items: start;
}
.wr-receipt-content {
  display: grid;
  gap: var(--ui-space-5);
  min-width: 0;
}
.wr-receipt .ui-card,
.wr-suppliers .ui-card {
  min-width: 0;
}
.wr-receipt-summary {
  position: sticky;
  top: var(--ui-space-4);
  min-width: 0;
}
.wr-receipt-summary h2 {
  font-size: 20px;
}
.wr-receipt-summary dl {
  margin: 0;
}
.wr-receipt-summary dl > div {
  padding: var(--ui-space-3) 0;
  border-bottom: 1px solid var(--ui-line);
}
.wr-receipt-summary dt,
.wr-receipt-summary li span {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.5;
}
.wr-receipt-summary dd {
  font-weight: 600;
  margin: var(--ui-space-1) 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wr-receipt-summary ul {
  list-style: none;
  padding: 0;
  margin: var(--ui-space-4) 0 0;
  display: grid;
  gap: var(--ui-space-3);
}
.wr-receipt-summary li strong,
.wr-receipt-summary li span {
  display: block;
  overflow-wrap: anywhere;
}
.wr-supplier-cards,
.wr-offer-picker {
  display: grid;
  gap: var(--ui-space-3);
}
.wr-supplier-cards > button,
.wr-offer-picker > button,
.wr-search-results > button,
.wr-supplier-list > button {
  display: flex;
  align-items: center;
  gap: var(--ui-space-4);
  width: 100%;
  font: inherit;
  text-align: left;
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: var(--ui-radius-sm);
  padding: var(--ui-space-4);
  min-height: var(--ui-control);
  color: var(--ui-text);
  cursor: pointer;
  box-sizing: border-box;
}
.wr-supplier-cards > button > span:nth-child(2),
.wr-offer-picker > button > span:first-child,
.wr-search-results > button > span:first-child,
.wr-supplier-list > button > span:first-child {
  flex: 1;
  min-width: 0;
}
.wr-supplier-cards strong,
.wr-offer-picker strong,
.wr-search-results strong,
.wr-supplier-list strong {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wr-supplier-cards small,
.wr-offer-picker small,
.wr-search-results small,
.wr-supplier-list small {
  display: block;
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  margin-top: var(--ui-space-1);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wr-supplier-cards > button.is-selected,
.wr-supplier-list > button.is-selected {
  background: var(--ui-selected-soft);
  border-color: var(--ui-accent);
}
.wr-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ui-radius-sm);
  display: grid;
  place-items: center;
  background: var(--ui-selected-soft);
  flex: none;
}
.wr-offer-picker > button > span:last-child,
.wr-search-results > button > span:last-child {
  color: var(--ui-link);
  font-weight: 600;
  flex: none;
}
.wr-offer-picker > button:disabled,
.wr-search-results > button:disabled {
  cursor: default;
  background: var(--ui-subtle);
}
.wr-count {
  font-size: var(--ui-text-base);
  font-weight: 500;
  color: var(--ui-muted);
}
.wr-check,
.wr-person {
  display: flex;
  gap: var(--ui-space-3);
  align-items: flex-start;
  min-height: var(--ui-control);
  line-height: 1.5;
  cursor: pointer;
}
.wr-check input,
.wr-person input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 2px 0 0;
  flex: 0 0 22px;
  accent-color: var(--ui-accent);
}
.wr-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-3);
}
.wr-person {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  padding: var(--ui-space-3);
}
.wr-person:has(input:checked) {
  background: var(--ui-selected-soft);
  border-color: var(--ui-accent);
}
.wr-person span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wr-person strong,
.wr-person small {
  display: block;
}
.wr-person small {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
  line-height: 1.5;
}
.wr-roster-heading {
  align-items: center;
  margin-top: var(--ui-space-4);
  margin-bottom: 0;
}
.wr-roster-heading h3 {
  margin: 0;
}
.wr-duration {
  padding: var(--ui-space-3) 0;
}
.wr-confirm-heading {
  display: flex;
  gap: var(--ui-space-3);
  align-items: center;
  margin-bottom: var(--ui-space-4);
}
.wr-confirm-heading h2 {
  margin: 0;
}
.wr-logistics-summary {
  margin: var(--ui-space-5) 0;
  padding: var(--ui-space-4) 0;
  border-top: 1px solid var(--ui-line);
  border-bottom: 1px solid var(--ui-line);
}
.wr-suppliers {
  display: grid;
  gap: var(--ui-space-5);
}
.wr-supplier-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: var(--ui-space-5);
  align-items: start;
}
.wr-supplier-list {
  display: grid;
  gap: var(--ui-space-3);
}
.wr-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wr-catalog-form {
  display: grid;
  gap: var(--ui-space-4);
}
.wr-offer-edit,
.wr-new-material {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  padding: var(--ui-space-4);
}
.wr-offer-edit .wr-section-heading {
  align-items: center;
  margin: 0;
}
.wr-catalog-search {
  padding: var(--ui-space-4) 0;
  border-top: 1px solid var(--ui-line);
}
.wr-search-results {
  display: grid;
  gap: var(--ui-space-2);
  max-height: 360px;
  overflow: auto;
  margin: var(--ui-space-4) 0;
}
.wr-search-results > button {
  padding: var(--ui-space-3);
}
.wr-offer-read {
  display: grid;
  gap: var(--ui-space-3);
  margin: var(--ui-space-5) 0;
}
.wr-offer-read > div {
  padding: var(--ui-space-3) 0;
  border-bottom: 1px solid var(--ui-line);
}
.wr-offer-read strong,
.wr-offer-read small,
.wr-offer-read span {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wr-offer-read small {
  font-size: var(--ui-text-sm);
  color: var(--ui-muted);
}
.wr-receipt input:focus-visible,
.wr-receipt select:focus-visible,
.wr-receipt textarea:focus-visible,
.wr-receipt button:focus-visible,
.wr-suppliers input:focus-visible,
.wr-suppliers textarea:focus-visible,
.wr-suppliers button:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .wr-receipt-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .wr-supplier-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .wr-receipt-layout,
  .wr-supplier-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .wr-receipt-summary {
    position: static;
  }
  .wr-roster {
    grid-template-columns: minmax(0, 1fr);
  }
  .wr-supplier-directory {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .wr-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .wr-steps button {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ui-space-2);
    padding: var(--ui-space-3);
    font-size: var(--ui-text-sm);
  }
  .wr-receipt h2,
  .wr-suppliers h2 {
    font-size: 22px;
  }
  .wr-supplier-cards > button,
  .wr-offer-picker > button {
    padding: var(--ui-space-3);
    gap: var(--ui-space-3);
  }
  .wr-offer-picker > button {
    align-items: flex-start;
    flex-direction: column;
  }
  .wr-card-icon {
    display: none;
  }
  .wr-footer-actions > .ui-button {
    flex: 1;
  }
  .wr-offer-edit,
  .wr-new-material {
    padding: var(--ui-space-3);
  }
}
.wr-receipt .wh-field input,
.wr-receipt .wh-field select,
.wr-receipt .wh-field textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: var(--ui-control);
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  padding: var(--ui-space-3);
  background: var(--ui-surface);
  color: var(--ui-text);
}
.wr-receipt fieldset {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  padding: var(--ui-space-4);
  margin: var(--ui-space-5) 0;
  min-width: 0;
}
.wr-receipt legend {
  font-weight: 600;
  padding: 0 var(--ui-space-2);
}
.wr-selected-lines {
  display: grid;
  gap: var(--ui-space-4);
}
.wr-selected-line {
  padding: var(--ui-space-4) 0;
  border-top: 1px solid var(--ui-line);
}
.wr-selected-line .wr-section-heading {
  align-items: flex-start;
  margin-bottom: var(--ui-space-3);
}
.wr-selected-line h3 {
  margin: 0 0 var(--ui-space-1);
}
.wr-selected-line details {
  margin: var(--ui-space-3) 0;
}
.wr-selected-line summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ui-link);
  font-size: var(--ui-text-base);
}
.crm-page .ui-notice {
  margin-bottom: 10px;
}
.crm-has-unread td:first-child {
  box-shadow: inset 3px 0 var(--ui-accent);
}
.crm-unread-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: var(--ui-radius);
  font-size: 14px;
  font-weight: 700;
  background: var(--ui-selected);
  color: var(--ui-text);
  white-space: nowrap;
}
.crm-card.ui-card {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  box-sizing: border-box;
}
.crm-card > header,
.crm-card > footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.crm-card > header {
  border-bottom: 1px solid var(--ui-line);
}
.crm-card > header h1 {
  margin: 0;
  font-size: 22px;
}
.crm-card > header p {
  margin: 4px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
}
.crm-card > footer {
  position: static;
  border-top: 1px solid var(--ui-line);
}
.crm-card > footer > span {
  color: var(--ui-muted);
  font-size: 14px;
}
.crm-card .ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crm-card-status {
  padding: 10px 18px 0;
  display: grid;
  gap: 6px;
}
.crm-status-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.crm-status-flow li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 3px solid var(--ui-line);
  font-size: 14px;
  color: var(--ui-muted);
}
.crm-status-flow li[aria-current=step] {
  color: var(--ui-text);
  border-color: var(--ui-accent);
  font-weight: 600;
  background: var(--ui-selected);
  border-radius: 8px 8px 0 0;
}
.crm-status-flow svg {
  flex-shrink: 0;
}
.crm-card-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
}
.crm-card--new .crm-card-columns {
  grid-template-columns: 1fr 1fr;
}
.crm-task-form,
.crm-task-form > fieldset {
  display: contents;
}
.crm-basics {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ui-line);
}
.crm-title-field,
.crm-performer-field {
  grid-column: span 2;
}
.crm-basics-warning {
  grid-column: 1/-1;
}
.crm-description,
.crm-plan,
.crm-discussion {
  padding: 14px 18px;
  min-width: 0;
  align-self: start;
}
.crm-description,
.crm-plan {
  display: grid;
  gap: 10px;
}
.crm-plan,
.crm-discussion {
  border-left: 1px solid var(--ui-line);
}
.crm-card .ui-field > span {
  font-weight: 600;
}
.crm-card input:not([type=checkbox]),
.crm-card select,
.crm-card textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.crm-card textarea {
  resize: none;
  overflow: hidden;
  line-height: 1.5;
}
.crm-hint {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.45;
  margin: 0;
}
.crm-help summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ui-link);
}
.crm-help summary::before {
  content: "\25b8";
}
.crm-help[open] summary::before {
  content: "\25be";
}
.crm-help p + p {
  margin-top: 8px;
}
.crm-section-title {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 23px;
}
.crm-plan-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--ui-muted);
}
.crm-steps {
  display: grid;
  gap: 6px;
}
.crm-steps:empty {
  display: none;
}
.crm-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 4px;
  align-items: center;
}
.crm-step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ui-subtle);
  border-radius: 50%;
  font-weight: 600;
}
.crm-step-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.crm-step .ui-button {
  padding: 8px;
  justify-content: center;
}
.crm-discussion {
  overflow-wrap: anywhere;
}
.crm-card-heading {
  min-width: 0;
  flex: 1 1 260px;
}
.crm-card-heading h1 {
  overflow-wrap: anywhere;
}
.crm-chat-eyebrow {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  margin-bottom: 4px;
}
.crm-conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crm-conversation > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.crm-conversation h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}
.crm-chat-feed {
  flex: 1;
  min-width: 0;
}
.crm-chat-messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-chat-day {
  text-align: center;
  list-style: none;
  font-size: 14px;
  color: var(--ui-muted);
  padding: 4px 0;
}
.crm-chat-day span {
  display: inline-block;
  background: var(--ui-surface);
  padding: 4px 10px;
  border-radius: var(--ui-radius);
}
.crm-chat-message {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  min-width: 0;
}
.crm-chat-message.is-own {
  justify-content: flex-end;
}
.crm-chat-message article {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  max-width: 88%;
  min-width: 110px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.crm-chat-message.is-own article {
  background: var(--ui-selected-soft);
  border-color: var(--ui-selected);
  border-radius: 16px 16px 4px 16px;
}
.crm-chat-message strong {
  font-size: 14px;
  color: var(--ui-text);
}
.crm-chat-message p {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 4px 0 6px;
  font-size: 16px;
}
.crm-chat-message time {
  display: block;
  text-align: right;
  color: var(--ui-muted);
  font-size: 14px;
}
.crm-chat-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 12px;
  color: var(--ui-muted);
}
.crm-chat-empty strong {
  color: var(--ui-text);
  font-size: 18px;
}
.crm-chat-empty p {
  margin: 0;
  line-height: 1.5;
}
.crm-chat-composer {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  background: var(--ui-surface);
  border-top: 1px solid var(--ui-line);
  padding-top: 12px;
}
.crm-chat-send-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.crm-chat-composer .crm-chat-new {
  justify-self: center;
}
.crm-chat-plan {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.crm-chat-plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ui-line);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.crm-chat-plan svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ui-muted);
}
.crm-chat-plan .is-done svg {
  color: var(--ui-success);
}
.crm-status-history {
  margin-top: 12px;
  border-top: 1px solid var(--ui-line);
  padding-top: 4px;
}
.crm-status-history summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
}
.crm-status-history summary::before {
  content: "\25b8";
}
.crm-status-history[open] summary::before {
  content: "\25be";
}
.crm-status-history ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.crm-status-history li {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.crm-status-history li span {
  color: var(--ui-muted);
}
.crm-feedback:empty {
  display: none;
}
.crm-feedback {
  padding: 10px 18px 0;
}
.crm-feedback .ui-row {
  margin-top: 8px;
}
.crm-confirm {
  padding: 12px 18px;
  background: var(--ui-subtle);
  border-top: 1px solid var(--ui-line);
}
.crm-confirm h3 {
  margin: 0;
}
.crm-confirm p {
  line-height: 1.5;
}
.crm-confirm .ui-row {
  justify-content: flex-end;
}
.crm-table {
  table-layout: auto;
  width: 100%;
  min-width: 960px;
}
.crm-table th:first-child {
  width: 28%;
}
.crm-table th:nth-child(2) {
  width: 24%;
}
.crm-table th:nth-child(3) {
  width: 16%;
}
.crm-table th:nth-child(4) {
  width: 100px;
}
.crm-table th:nth-child(5) {
  width: 145px;
}
.crm-table th:nth-child(6) {
  width: 120px;
}
.crm-table td {
  vertical-align: middle;
  overflow-wrap: break-word;
}
.crm-table td:nth-child(n+3),
.crm-table th {
  white-space: nowrap;
}
.crm-table .crm-title {
  font-weight: 600;
  text-align: left;
  padding-left: 0;
}
.crm-secondary {
  display: block;
  margin-top: 4px;
}
.crm-priority {
  display: block;
  color: var(--ui-warning);
}
.crm-overdue {
  color: var(--ui-danger);
}
.crm-overdue small {
  color: inherit;
}
@media (max-width: 1180px) {
  .crm-card-columns {
    grid-template-columns: 1fr 1fr;
  }
  .crm-discussion {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--ui-line);
  }
  .crm-basics {
    grid-template-columns: 1fr 1fr;
  }
  .crm-title-field,
  .crm-performer-field {
    grid-column: auto;
  }
}
@media (max-width: 1100px) {
  .crm-table {
    table-layout: auto;
  }
  .crm-table th:nth-child(n) {
    width: auto;
  }
  .crm-table td {
    padding: 12px;
  }
}
@media (max-width: 760px) {
  .crm-card-columns,
  .crm-card--new .crm-card-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-basics {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
  .crm-title-field,
  .crm-performer-field {
    grid-column: auto;
  }
  .crm-card-status {
    padding: 10px 12px 0;
  }
  .crm-status-flow {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  }
  .crm-description,
  .crm-plan,
  .crm-discussion {
    padding: 12px;
  }
  .crm-plan,
  .crm-discussion {
    border-left: 0;
    border-top: 1px solid var(--ui-line);
  }
  .crm-card > header,
  .crm-card > footer,
  .crm-confirm {
    padding: 12px;
  }
  .crm-feedback {
    padding: 8px 12px 0;
  }
  .crm-card > footer .ui-row {
    width: 100%;
  }
  .crm-card > footer .ui-button {
    flex: 1 1 145px;
  }
  .crm-table {
    min-width: 0;
  }
  .crm-table,
  .crm-table tbody {
    display: block;
  }
  .crm-table thead {
    display: none;
  }
  .crm-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px 16px;
    gap: 8px 16px;
    border-bottom: 1px solid var(--ui-line);
  }
  .crm-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .crm-table td:first-child,
  .crm-table td:nth-child(2) {
    grid-column: 1/-1;
  }
  .crm-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    color: var(--ui-muted);
    margin-bottom: 4px;
  }
  .crm-table td:nth-child(2) {
    padding-bottom: 8px;
  }
  .crm-table .ui-table-link {
    min-height: 44px;
  }
}
.crm-card--chat > header {
  position: sticky;
  top: 8px;
  z-index: 3;
  background: var(--ui-surface);
  border-radius: var(--ui-radius-lg) var(--ui-radius-lg) 0 0;
}
.crm-card--chat .crm-card-status:empty {
  display: none;
}
.crm-card--chat .crm-card-columns {
  grid-template-columns: minmax(220px, .75fr) minmax(0, 2fr);
}
.crm-card--chat .crm-plan {
  grid-column: 1;
  border-left: 0;
  position: sticky;
  top: calc(var(--crm-chat-header-height,90px) + 16px);
}
.crm-card--chat .crm-discussion {
  grid-column: 2;
  border-left: 1px solid var(--ui-line);
  border-top: 0;
  padding: 18px;
  align-self: stretch;
  background: var(--ui-bg);
  border-radius: 0 0 var(--ui-radius-lg) 0;
}
.crm-card--chat .crm-conversation {
  min-height: min(600px, calc(100dvh - 180px));
}
.crm-card--chat .crm-chat-feed {
  padding: 4px 0 16px;
}
.crm-card--chat .crm-chat-composer {
  position: sticky;
  bottom: 8px;
  border: 1px solid var(--ui-line);
  padding: 12px;
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}
.crm-card--chat .crm-chat-composer .ui-field > span {
  display: none;
}
.crm-card--chat .crm-chat-message article {
  max-width: 78%;
}
@media (max-width: 1000px) {
  .crm-card--chat .crm-card-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-card--chat .crm-plan {
    position: static;
    grid-column: 1;
  }
  .crm-card--chat .crm-discussion {
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid var(--ui-line);
    border-radius: 0 0 var(--ui-radius-lg) var(--ui-radius-lg);
  }
  .crm-card--chat .crm-conversation {
    min-height: 400px;
  }
  .crm-card--chat > header {
    position: static;
  }
}
@media (max-width: 760px) {
  .crm-card--chat .crm-discussion {
    padding: 12px;
  }
  .crm-card--chat .crm-chat-message article {
    max-width: 94%;
  }
  .crm-chat-message article {
    padding: 10px;
  }
  .crm-chat-send-row > .crm-hint {
    display: none;
  }
  .crm-chat-send-row {
    justify-content: flex-end;
  }
  .crm-card--chat .crm-chat-composer {
    bottom: 4px;
  }
}
.crm-card.crm-card--work {
  border: 0;
  box-shadow: none;
  background: transparent;
  outline: none;
}
.crm-card--work > .crm-work-header {
  padding: 22px 24px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-bottom: 0;
  border-radius: var(--ui-radius-lg) var(--ui-radius-lg) 0 0;
  align-items: flex-start;
}
.crm-card--work .crm-card-heading h1 {
  font-size: 28px;
  line-height: 1.3;
  max-width: 1100px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.crm-card--work .crm-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 1 auto;
}
.crm-card--work > .crm-card-status {
  padding: 0 24px 20px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-top: 0;
  border-radius: 0 0 var(--ui-radius-lg) var(--ui-radius-lg);
  margin-bottom: 20px;
  gap: 14px;
}
.crm-card--work .crm-status-flow {
  gap: 10px;
}
.crm-card--work .crm-status-flow li {
  min-height: 44px;
  padding: 8px 10px;
}
.crm-work-summary {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.5;
  align-items: center;
}
.crm-summary-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crm-summary-progress progress {
  width: 120px;
  height: 7px;
  accent-color: var(--ui-accent);
  border: 0;
  border-radius: 99px;
  overflow: hidden;
}
.crm-summary-progress progress::-webkit-progress-bar {
  background: var(--ui-line);
}
.crm-summary-progress progress::-webkit-progress-value {
  background: var(--ui-accent);
}
.crm-work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.crm-work-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.crm-work-description,
.crm-work-general,
.crm-work-aside {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  padding: 22px 24px;
  min-width: 0;
}
.crm-card--work h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 14px;
}
.crm-task-copy {
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crm-task-copy a {
  color: var(--ui-link);
}
.crm-work-plan {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.crm-plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crm-plan-heading h2 {
  margin: 0;
}
.crm-plan-heading > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.crm-plan-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.crm-plan-item {
  list-style: none;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  scroll-margin-top: 20px;
}
.crm-plan-item.is-open {
  border-color: var(--ui-accent);
}
.crm-plan-item-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
}
.crm-plan-ordinal {
  display: grid;
  place-items: center;
  align-self: start;
  width: 32px;
  height: 32px;
  background: var(--ui-selected);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  color: var(--ui-text);
}
.crm-plan-item-content {
  min-width: 0;
}
.crm-plan-step-title {
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 1px 0 14px;
}
.crm-plan-item.is-done .crm-plan-step-title {
  color: var(--ui-muted);
}
.crm-plan-item-tools {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  align-items: center;
}
.crm-plan-item-tools .ui-button {
  min-height: 44px;
  font-size: 14px;
  padding: 8px 12px;
}
.crm-plan-complete {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-right: 8px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.4;
}
.crm-plan-complete input {
  width: 19px;
  height: 19px;
  min-height: 19px;
  margin: 0;
  accent-color: var(--ui-accent);
  flex: 0 0 19px;
}
.crm-plan-complete:has(input:disabled) {
  color: var(--ui-muted);
  cursor: default;
}
.crm-reply-draft {
  color: var(--ui-link);
  font-size: 14px;
}
.crm-plan-thread {
  padding: 18px 24px 22px 68px;
  border-top: 1px solid var(--ui-line);
  background: var(--ui-bg);
  min-width: 0;
}
.crm-plan-thread .crm-conversation > header {
  margin-bottom: 12px;
}
.crm-plan-thread .crm-conversation h3 {
  font-size: 16px;
}
.crm-card--work .crm-chat-messages {
  gap: 10px;
}
.crm-card--work .crm-chat-message article {
  max-width: 92%;
  background: var(--ui-surface);
  min-width: 0;
}
.crm-card--work .crm-chat-message.is-own article {
  background: var(--ui-selected-soft);
}
.crm-card--work .crm-chat-message p {
  font-size: 16px;
}
.crm-message-by {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crm-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ui-accent);
  display: inline-block;
}
.crm-message-context {
  display: block;
  border: 0;
  background: var(--ui-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  margin: 0 0 8px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ui-link);
  max-width: 100%;
}
button.crm-message-context {
  cursor: pointer;
}
button.crm-message-context:hover {
  text-decoration: underline;
}
.crm-thread-empty {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ui-muted);
  margin: 0 0 8px;
}
.crm-card--work .crm-chat-composer {
  margin-top: 14px;
  padding: 14px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.crm-card--work .crm-chat-composer textarea {
  min-height: 94px;
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;
  resize: none;
}
.crm-card--work .crm-chat-composer .ui-field > span {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.crm-card--work .crm-chat-composer .ui-button {
  min-height: 44px;
}
.crm-work-aside {
  position: sticky;
  top: 16px;
  padding: 20px;
  overflow-wrap: anywhere;
}
.crm-work-aside dl {
  display: grid;
  gap: 18px;
  margin: 0;
}
.crm-work-aside dt {
  font-size: 14px;
  color: var(--ui-muted);
  margin-bottom: 5px;
}
.crm-work-aside dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.crm-work-aside > .ui-button {
  margin-top: 16px;
  white-space: normal;
}
.crm-work-aside .crm-status-history {
  margin-top: 20px;
}
.crm-task-editor {
  margin: 0;
  min-width: 0;
}
.crm-task-editor > fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.crm-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
}
.crm-edit-title,
.crm-edit-description {
  grid-column: 1/-1;
}
.crm-edit-fields textarea,
.crm-plan-item textarea {
  font-size: 16px;
  line-height: 1.55;
  resize: none;
  overflow: hidden;
}
.crm-edit-title textarea {
  font-size: 20px;
}
.crm-plan-item textarea {
  min-height: 72px;
}
.crm-plan-empty {
  padding: 28px;
  background: var(--ui-surface);
  border: 1px dashed var(--ui-line);
  border-radius: var(--ui-radius-lg);
}
.crm-plan-empty p {
  margin: 0;
}
.crm-plan-empty p + p {
  margin-top: 8px;
}
.crm-card--work > .crm-work-footer {
  position: sticky;
  bottom: 8px;
  z-index: 4;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  margin-top: 20px;
  padding: 12px 18px;
}
.crm-card--work > .crm-work-footer > span {
  font-size: 14px;
}
.crm-card--work .crm-confirm {
  margin-top: 20px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  padding: 20px;
}
.crm-card--work .crm-feedback {
  padding: 0;
}
.crm-card--work .crm-feedback:focus {
  outline: none;
}
.crm-orphan-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.crm-work-chat {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.crm-work-chat-plan {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  padding: 20px;
  min-width: 0;
  position: sticky;
  top: 16px;
}
.crm-work-chat-plan ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.crm-work-chat-plan li {
  list-style: none;
}
.crm-work-chat-plan button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px 0;
  color: var(--ui-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
  cursor: pointer;
}
.crm-work-chat-plan button:hover {
  background: var(--ui-selected-soft);
}
.crm-work-chat-plan button > span {
  overflow-wrap: anywhere;
}
.crm-work-chat-thread {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  padding: 24px;
  min-width: 0;
}
.crm-card--work.crm-card--chat > .crm-work-header {
  position: static;
}
.crm-card--work.crm-card--chat .crm-chat-composer {
  position: static;
  box-shadow: none;
}
.crm-card--work.crm-card--chat .crm-conversation {
  min-height: 0;
}
.crm-card--new .crm-work-layout {
  grid-template-columns: minmax(0, 1fr);
}
.crm-card--new .crm-work-aside {
  display: none;
}
@media (max-width: 1100px) {
  .crm-work-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }
  .crm-work-aside {
    padding: 16px;
  }
  .crm-plan-item-head {
    padding: 18px;
  }
  .crm-plan-thread {
    padding: 16px 18px 18px 64px;
  }
  .crm-work-chat {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
  }
  .crm-card--work .crm-header-actions {
    width: 100%;
  }
}
@media (max-width: 850px) {
  .crm-work-layout,
  .crm-work-chat {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-work-aside,
  .crm-work-chat-plan {
    position: static;
  }
  .crm-work-aside dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-work-chat-plan ol {
    max-width: none;
  }
  .crm-card--work .crm-card-heading h1 {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .crm-card--work > .crm-work-header {
    padding: 18px 16px;
  }
  .crm-card--work > .crm-card-status {
    padding: 0 16px 16px;
  }
  .crm-card--work .crm-status-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .crm-card--work .crm-status-flow li {
    font-size: 14px;
    padding: 7px;
  }
  .crm-card--work .crm-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-card--work .crm-header-actions > .ui-button {
    white-space: normal;
  }
  .crm-work-summary {
    display: grid;
    gap: 8px;
    font-size: 14px;
  }
  .crm-work-description,
  .crm-work-general,
  .crm-work-chat-thread {
    padding: 18px 16px;
  }
  .crm-plan-item-head {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 12px;
  }
  .crm-plan-ordinal {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .crm-plan-step-title {
    font-size: 16px;
    line-height: 1.6;
  }
  .crm-plan-item-tools {
    gap: 5px 8px;
  }
  .crm-plan-complete {
    width: 100%;
    min-height: 36px;
  }
  .crm-plan-thread {
    padding: 14px 12px;
  }
  .crm-card--work .crm-chat-message article {
    max-width: 98%;
  }
  .crm-card--work .crm-chat-composer {
    padding: 12px;
  }
  .crm-card--work .crm-chat-send-row .crm-hint {
    display: none;
  }
  .crm-edit-fields {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px;
  }
  .crm-card--work > .crm-work-footer {
    position: static;
    margin-top: 16px;
    padding: 12px;
    box-shadow: none;
  }
  .crm-card--work > .crm-work-footer > .ui-row {
    width: 100%;
    gap: 8px;
  }
  .crm-card--work > .crm-work-footer .ui-button {
    flex: 1 1 140px;
  }
  .crm-work-aside dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
.crm-card--work > .crm-work-footer {
  position: static;
  bottom: auto;
  box-shadow: none;
}
.crm-work-description > .ui-button {
  margin-top: 14px;
}
.crm-plan-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.crm-plan-heading-actions > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.crm-plan-heading-actions .ui-button {
  min-height: 44px;
  font-size: 14px;
  padding: 8px 12px;
}
@media (max-width: 600px) {
  .crm-plan-heading {
    align-items: flex-start;
  }
  .crm-plan-heading-actions {
    gap: 8px;
  }
}
.wr-cargo .ui-table-scroll table {
  table-layout: fixed;
  min-width: 620px;
  width: 100%;
  white-space: normal;
}
.wr-cargo .ui-table-scroll td,
.wr-cargo .ui-table-scroll th {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.wr-cargo .ui-table-scroll th:nth-child(1) {
  width: 34%;
}
.wr-cargo .ui-table-scroll th:nth-child(2) {
  width: 18%;
}
.wr-cargo .ui-table-scroll th:nth-child(3) {
  width: 20%;
}
.wr-cargo .ui-table-scroll th:nth-child(4) {
  width: 28%;
}
.wr-cargo .ui-table-scroll .ui-button {
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
.wr-cargo .wr-actions a {
  white-space: normal;
  overflow-wrap: anywhere;
}
.wr-receipt-layout.wr-receipt-review {
  grid-template-columns: minmax(0, 1fr);
}
.wr-receipt-review .wr-receipt-summary {
  display: none;
}
.wr-receipt-review .ui-table-scroll table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
}
.wr-receipt-review .ui-table-scroll th,
.wr-receipt-review .ui-table-scroll td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.wr-receipt-review .ui-table-scroll th:first-child {
  width: 34%;
}
.wh-compact {
  --ui-control:var(--ui-control-compact);
}
.wh-compact .ui-page-heading {
  margin-bottom: 12px;
  gap: 12px;
  align-items: center;
}
.wh-compact .ui-page-heading h1 {
  font-size: 28px;
  letter-spacing: -.3px;
  margin: 0;
}
.wh-compact .ui-page-heading p {
  margin: 4px 0 0;
  font-size: 14px;
}
.wh-compact > .ui-section-tabs {
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
}
.wh-compact > .ui-section-tabs button {
  padding: 8px 12px;
}
.wh-compact > .ui-section-tabs button {
  flex-shrink: 0;
  white-space: nowrap;
}
.wh-compact .ui-card {
  padding: 16px;
  border-radius: 12px;
  box-shadow: none;
}
.wh-compact .ui-card h2 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.wh-compact .ui-card h3 {
  font-size: 18px;
  margin: 10px 0 8px;
  line-height: 1.35;
}
.wh-compact .ui-card p {
  margin: 6px 0;
  line-height: 1.45;
}
.wh-compact .ui-stack,
.wh-compact .wr-receipt-content,
.wh-compact .wr-suppliers {
  gap: 12px;
}
.wh-compact .ui-table-scroll {
  border-radius: 8px;
}
.wh-compact .ui-table-scroll th {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  line-height: 1.4;
}
.wh-compact .ui-table-scroll td {
  font-size: 16px;
  padding: 9px 12px;
  line-height: 1.4;
}
.wh-compact .wr-field {
  gap: 4px;
  margin: 6px 0;
  align-content: start;
}
.wh-compact .wr-field > label {
  font-size: 14px;
  line-height: 1.4;
}
.wh-compact .wr-field input,
.wh-compact .wr-field select,
.wh-compact .wr-field textarea {
  padding: 8px 10px;
  border-radius: 8px;
  min-height: 44px;
}
.wh-compact .wr-fields {
  gap: 12px;
}
.wh-compact .wr-section-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.wh-compact .wr-section-heading h2,
.wh-compact .wr-section-heading h3 {
  margin: 0;
}
.wh-compact .wr-section-heading p {
  font-size: 14px;
  margin: 4px 0 0;
}
.wh-compact .wr-actions {
  gap: 8px;
}
.wh-compact .wr-footer-actions {
  padding: 12px 0;
  gap: 8px;
}
.wh-compact .wr-steps {
  margin: 8px 0 12px;
}
.wh-compact .wr-steps button {
  gap: 8px;
  padding: 8px 12px;
  min-height: 44px;
}
.wh-compact .wr-steps button span {
  height: 26px;
  width: 26px;
  font-size: 14px;
}
.wh-compact .wr-receipt-layout {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 250px;
}
.wh-compact .wr-receipt-summary dl > div {
  padding: 8px 0;
}
.wh-compact .wr-receipt-summary ul {
  margin-top: 10px;
  gap: 8px;
}
.wh-compact .wr-supplier-cards,
.wh-compact .wr-offer-picker,
.wh-compact .wr-supplier-list {
  gap: 8px;
}
.wh-compact .wr-supplier-cards > button,
.wh-compact .wr-offer-picker > button,
.wh-compact .wr-supplier-list > button {
  padding: 10px 12px;
  gap: 12px;
  border-radius: 8px;
}
.wh-compact .wr-card-icon {
  width: 32px;
  height: 32px;
}
.wh-compact .wr-offer-edit,
.wh-compact .wr-new-material {
  padding: 12px;
}
.wh-compact .wr-catalog-form {
  gap: 12px;
}
.wh-compact .wr-cargo-register .wr-section-heading {
  margin-bottom: 12px;
}
.wh-compact .wr-cargo-register .ui-table-scroll {
  margin: 0;
}
.wh-compact .wr-cargo-register .wr-delivery-link {
  display: block;
  min-height: 44px;
  width: 100%;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--ui-link);
  text-align: left;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
.wh-compact .wr-cargo-register tr[aria-selected=true] {
  background: var(--ui-selected-soft);
}
.wh-compact .wr-cargo-register td > div {
  font-size: 14px;
  color: var(--ui-muted);
  margin-top: 2px;
}
.wh-compact .wr-cargo-register th:nth-child(1) {
  width: 32%;
}
.wh-compact .wr-cargo-register th:nth-child(2) {
  width: 24%;
}
.wh-compact .wr-cargo-register th:nth-child(3) {
  width: 20%;
}
.wh-compact .wr-cargo-register th:nth-child(4) {
  width: 24%;
}
.wh-compact .wr-cargo-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ui-line);
}
.wh-compact .wr-cargo-meta > div {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.wh-compact .wr-cargo-meta small {
  display: block;
  color: var(--ui-muted);
  margin-bottom: 3px;
}
.wh-compact .wr-cargo-meta strong {
  font-size: 16px;
  font-weight: 600;
}
.wh-compact .wr-cargo-meta p {
  margin: 0;
}
.wh-compact .wr-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: start;
}
.wh-compact .wr-plan-grid > .wr-field {
  margin: 0;
}
.wh-compact .wr-plan-grid > h3,
.wh-compact .wr-plan-grid > .wr-plan-composition,
.wh-compact .wr-plan-grid > .wr-fieldset {
  grid-column: 1/-1;
}
.wh-compact .wr-plan-grid > .wr-fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}
.wh-compact .wr-plan-grid > .wr-fieldset > .wr-fields {
  display: contents;
}
.wh-compact .wr-plan-composition {
  min-width: 0;
}
.wh-compact .wr-plan-composition > .wr-field {
  max-width: 560px;
  margin: 0;
}
.wh-compact .wr-plan-line {
  display: grid;
  grid-template-columns: minmax(160px, 2fr) minmax(100px, 1fr) minmax(120px, 1fr) minmax(110px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ui-line);
  min-width: 0;
}
.wh-compact .wr-plan-line-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wh-compact .wr-plan-line-name strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}
.wh-compact .wr-plan-line-name small,
.wh-compact .wr-plan-line-total small {
  display: block;
  color: var(--ui-muted);
}
.wh-compact .wr-plan-line .wr-field {
  margin: 0;
}
.wh-compact .wr-plan-line-total {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wh-compact .wr-receipt-layout.wr-receipt-review {
  grid-template-columns: minmax(0, 1fr);
}
.wh-compact .wr-receipt-review .wr-receipt-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.wh-compact .wr-receipt-review .wr-document-card {
  grid-row: span 2;
}
.wh-compact .wr-receipt-review .wr-comparison-card,
.wh-compact .wr-receipt-review .wr-confirm-card,
.wh-compact .wr-receipt-review .ui-notice {
  grid-column: 1/-1;
}
.wh-compact .wr-receipt-review .wr-document-card .wr-fields {
  grid-template-columns: minmax(0, 1fr) 170px;
}
.wh-compact .wh-invoice {
  border: 0;
  border-top: 1px solid var(--ui-line);
  border-radius: 0;
  padding: 12px 0 0;
  margin: 12px 0 0;
  gap: 8px;
}
.wh-compact .wh-invoice h3 {
  font-size: 18px;
  margin: 0;
}
.wh-compact .wh-invoice input[type=file] {
  padding: 0;
  min-height: 44px;
}
.wh-compact .wh-invoice input::file-selector-button {
  padding: 8px 10px;
  min-height: 44px;
}
.wh-compact .wr-receipt fieldset {
  padding: 12px;
  margin: 10px 0;
}
.wh-compact .wr-receipt fieldset.wr-fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
.wh-compact .wr-selected-lines {
  gap: 8px;
}
.wh-compact .wr-selected-line {
  padding: 10px 0;
}
.wh-compact .wr-selected-line .wr-section-heading {
  margin-bottom: 6px;
}
.wh-compact .wr-selected-line .wr-section-heading h3 {
  font-size: 18px;
}
.wh-compact .wr-receipt-line-fields {
  grid-template-columns: minmax(90px, 1fr) minmax(140px, 2fr) minmax(140px, 1fr);
}
.wh-compact .wr-selected-line details {
  margin: 4px 0;
}
.wh-compact .wr-person {
  padding: 8px;
  gap: 8px;
}
.wh-compact .wh-source {
  font-size: 14px;
  margin: 12px 0;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .wh-compact .wr-plan-grid,
  .wh-compact .wr-plan-grid > .wr-fieldset,
  .wh-compact .wr-cargo-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wh-compact .wr-receipt-review .wr-receipt-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-receipt-review .wr-document-card {
    grid-row: auto;
  }
  .wh-compact .wr-plan-line {
    grid-template-columns: minmax(150px, 2fr) minmax(90px, 1fr) minmax(110px, 1fr) auto;
  }
  .wh-compact .wr-plan-line-total {
    grid-column: 1/-1;
    display: flex;
    gap: 8px;
  }
}
@media (max-width: 850px) {
  .wh-compact .wr-receipt-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .wh-compact .ui-card {
    padding: 12px;
    border-radius: 10px;
  }
  .wh-compact .ui-page-heading h1 {
    font-size: 26px;
  }
  .wh-compact .ui-page-heading {
    align-items: flex-start;
  }
  .wh-compact > .ui-section-tabs {
    gap: 0;
  }
  .wh-compact .wr-plan-grid,
  .wh-compact .wr-plan-grid > .wr-fieldset,
  .wh-compact .wr-cargo-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-plan-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .wh-compact .wr-plan-line-name {
    grid-column: 1/-1;
  }
  .wh-compact .wr-plan-line-total {
    grid-column: auto;
    display: block;
  }
  .wh-compact .wr-plan-line > .ui-button {
    justify-self: end;
  }
  .wh-compact .wr-receipt-review .wr-document-card .wr-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-fields {
    gap: 8px;
  }
  .wh-compact .wr-receipt-line-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-steps button {
    padding: 6px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
  }
  .wh-compact .wr-steps button span {
    width: 22px;
    height: 22px;
  }
  .wh-compact .wr-receipt-layout {
    gap: 12px;
  }
  .wh-compact .ui-table-scroll th,
  .wh-compact .ui-table-scroll td {
    padding: 8px 10px;
  }
}
.equipment-simple-editor h2,
.equipment-simple-editor h3,
.equipment-plan-editor h3 {
  margin: 0;
}
.equipment-simple-editor p {
  margin: 0;
}
.equipment-simple-details {
  border-top: 1px solid var(--ui-line);
  padding-top: 8px;
}
.equipment-simple-details > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ui-link);
  font-weight: 600;
}
.equipment-simple-details[open] > summary {
  margin-bottom: 12px;
}
.equipment-simple-editor textarea {
  min-height: 88px;
}
.equipment-plan-editor {
  padding: 18px 0;
  border-top: 1px solid var(--ui-line);
}
.equipment-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  padding: 12px;
  background: var(--ui-surface,#fff);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.equipment-simple-editor fieldset {
  min-width: 0;
}
.equipment-save-bar .ui-row {
  flex-wrap: wrap;
}
.equipment-simple-editor .ui-field {
  min-width: 0;
}
.equipment-simple-editor input,
.equipment-simple-editor select,
.equipment-simple-editor textarea {
  min-width: 0;
  width: 100%;
}
.equipment-simple-editor .equipment-checkbox input {
  width: auto;
}
.equipment-missing {
  gap: 8px;
}
.equipment-missing-groups {
  font-size: 16px;
}
@media (max-width: 650px) {
  .equipment-save-bar {
    bottom: 6px;
    padding: 10px;
  }
  .equipment-save-bar .ui-row .ui-button {
    flex: 1;
  }
  .equipment-simple-editor .equipment-owner-list {
    gap: 10px;
  }
  .equipment-plan-editor {
    padding: 14px 0;
  }
}
.equipment-simple-editor > .ui-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.equipment-simple-editor > .ui-section-tabs > button {
  min-width: 0;
  white-space: normal;
}
.section-screens-page {
  max-width: none;
}
.section-screen-person {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.section-screen-person .ui-field {
  min-width: 220px;
}
.section-screens-page iframe {
  display: block;
  background: var(--ui-bg);
  border-radius: 12px;
}
.section-screens-page .ui-section-tabs {
  flex-wrap: wrap;
}
.section-screens-page .ui-section-tabs button {
  white-space: normal;
}
.wh-compact {
  --ui-control:var(--ui-control-compact);
}
.wh-compact .ui-page-heading {
  margin-bottom: 12px;
  gap: 12px;
  align-items: center;
}
.wh-compact .ui-page-heading h1 {
  font-size: 28px;
  letter-spacing: -.3px;
  margin: 0;
}
.wh-compact .ui-page-heading p {
  margin: 4px 0 0;
  font-size: 14px;
}
.wh-compact > .ui-section-tabs {
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
}
.wh-compact > .ui-section-tabs button {
  padding: 8px 12px;
}
.wh-compact > .ui-section-tabs button {
  flex-shrink: 0;
  white-space: nowrap;
}
.wh-compact .ui-card {
  padding: 16px;
  border-radius: 12px;
  box-shadow: none;
}
.wh-compact .ui-card h2 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.wh-compact .ui-card h3 {
  font-size: 18px;
  margin: 10px 0 8px;
  line-height: 1.35;
}
.wh-compact .ui-card p {
  margin: 6px 0;
  line-height: 1.45;
}
.wh-compact .ui-stack,
.wh-compact .wr-receipt-content,
.wh-compact .wr-suppliers {
  gap: 12px;
}
.wh-compact .ui-table-scroll {
  border-radius: 8px;
}
.wh-compact .ui-table-scroll th {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  line-height: 1.4;
}
.wh-compact .ui-table-scroll td {
  font-size: 16px;
  padding: 9px 12px;
  line-height: 1.4;
}
.wh-compact .wr-field {
  gap: 4px;
  margin: 6px 0;
  align-content: start;
}
.wh-compact .wr-field > label {
  font-size: 14px;
  line-height: 1.4;
}
.wh-compact .wr-field input,
.wh-compact .wr-field select,
.wh-compact .wr-field textarea {
  padding: 8px 10px;
  border-radius: 8px;
  min-height: 44px;
}
.wh-compact .wr-fields {
  gap: 12px;
}
.wh-compact .wr-section-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.wh-compact .wr-section-heading h2,
.wh-compact .wr-section-heading h3 {
  margin: 0;
}
.wh-compact .wr-section-heading p {
  font-size: 14px;
  margin: 4px 0 0;
}
.wh-compact .wr-actions {
  gap: 8px;
}
.wh-compact .wr-footer-actions {
  padding: 12px 0;
  gap: 8px;
}
.wh-compact .wr-steps {
  margin: 8px 0 12px;
}
.wh-compact .wr-steps button {
  gap: 8px;
  padding: 8px 12px;
  min-height: 44px;
}
.wh-compact .wr-steps button span {
  height: 26px;
  width: 26px;
  font-size: 14px;
}
.wh-compact .wr-receipt-layout {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 250px;
}
.wh-compact .wr-receipt-summary dl > div {
  padding: 8px 0;
}
.wh-compact .wr-receipt-summary ul {
  margin-top: 10px;
  gap: 8px;
}
.wh-compact .wr-supplier-cards,
.wh-compact .wr-offer-picker,
.wh-compact .wr-supplier-list {
  gap: 8px;
}
.wh-compact .wr-supplier-cards > button,
.wh-compact .wr-offer-picker > button,
.wh-compact .wr-supplier-list > button {
  padding: 10px 12px;
  gap: 12px;
  border-radius: 8px;
}
.wh-compact .wr-card-icon {
  width: 32px;
  height: 32px;
}
.wh-compact .wr-offer-edit,
.wh-compact .wr-new-material {
  padding: 12px;
}
.wh-compact .wr-catalog-form {
  gap: 12px;
}
.wh-compact .wr-cargo-register .wr-section-heading {
  margin-bottom: 12px;
}
.wh-compact .wr-cargo-register .ui-table-scroll {
  margin: 0;
}
.wh-compact .wr-cargo-register .wr-delivery-link {
  display: block;
  min-height: 44px;
  width: 100%;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--ui-link);
  text-align: left;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
.wh-compact .wr-cargo-register tr[aria-selected=true] {
  background: var(--ui-selected-soft);
}
.wh-compact .wr-cargo-register td > div {
  font-size: 14px;
  color: var(--ui-muted);
  margin-top: 2px;
}
.wh-compact .wr-cargo-register th:nth-child(1) {
  width: 32%;
}
.wh-compact .wr-cargo-register th:nth-child(2) {
  width: 24%;
}
.wh-compact .wr-cargo-register th:nth-child(3) {
  width: 20%;
}
.wh-compact .wr-cargo-register th:nth-child(4) {
  width: 24%;
}
.wh-compact .wr-cargo-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ui-line);
}
.wh-compact .wr-cargo-meta > div {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.wh-compact .wr-cargo-meta small {
  display: block;
  color: var(--ui-muted);
  margin-bottom: 3px;
}
.wh-compact .wr-cargo-meta strong {
  font-size: 16px;
  font-weight: 600;
}
.wh-compact .wr-cargo-meta p {
  margin: 0;
}
.wh-compact .wr-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: start;
}
.wh-compact .wr-plan-grid > .wr-field {
  margin: 0;
}
.wh-compact .wr-plan-grid > h3,
.wh-compact .wr-plan-grid > .wr-plan-composition,
.wh-compact .wr-plan-grid > .wr-fieldset {
  grid-column: 1/-1;
}
.wh-compact .wr-plan-grid > .wr-fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}
.wh-compact .wr-plan-grid > .wr-fieldset > .wr-fields {
  display: contents;
}
.wh-compact .wr-plan-composition {
  min-width: 0;
}
.wh-compact .wr-plan-composition > .wr-field {
  max-width: 560px;
  margin: 0;
}
.wh-compact .wr-plan-line {
  display: grid;
  grid-template-columns: minmax(160px, 2fr) minmax(100px, 1fr) minmax(120px, 1fr) minmax(110px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ui-line);
  min-width: 0;
}
.wh-compact .wr-plan-line-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wh-compact .wr-plan-line-name strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}
.wh-compact .wr-plan-line-name small,
.wh-compact .wr-plan-line-total small {
  display: block;
  color: var(--ui-muted);
}
.wh-compact .wr-plan-line .wr-field {
  margin: 0;
}
.wh-compact .wr-plan-line-total {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wh-compact .wr-receipt-layout.wr-receipt-review {
  grid-template-columns: minmax(0, 1fr);
}
.wh-compact .wr-receipt-review .wr-receipt-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.wh-compact .wr-receipt-review .wr-document-card {
  grid-row: span 2;
}
.wh-compact .wr-receipt-review .wr-comparison-card,
.wh-compact .wr-receipt-review .wr-confirm-card,
.wh-compact .wr-receipt-review .ui-notice {
  grid-column: 1/-1;
}
.wh-compact .wr-receipt-review .wr-document-card .wr-fields {
  grid-template-columns: minmax(0, 1fr) 170px;
}
.wh-compact .wh-invoice {
  border: 0;
  border-top: 1px solid var(--ui-line);
  border-radius: 0;
  padding: 12px 0 0;
  margin: 12px 0 0;
  gap: 8px;
}
.wh-compact .wh-invoice h3 {
  font-size: 18px;
  margin: 0;
}
.wh-compact .wh-invoice input[type=file] {
  padding: 0;
  min-height: 44px;
}
.wh-compact .wh-invoice input::file-selector-button {
  padding: 8px 10px;
  min-height: 44px;
}
.wh-compact .wr-receipt fieldset {
  padding: 12px;
  margin: 10px 0;
}
.wh-compact .wr-receipt fieldset.wr-fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
.wh-compact .wr-selected-lines {
  gap: 8px;
}
.wh-compact .wr-selected-line {
  padding: 10px 0;
}
.wh-compact .wr-selected-line .wr-section-heading {
  margin-bottom: 6px;
}
.wh-compact .wr-selected-line .wr-section-heading h3 {
  font-size: 18px;
}
.wh-compact .wr-receipt-line-fields {
  grid-template-columns: minmax(90px, 1fr) minmax(140px, 2fr) minmax(140px, 1fr);
}
.wh-compact .wr-selected-line details {
  margin: 4px 0;
}
.wh-compact .wr-person {
  padding: 8px;
  gap: 8px;
}
.wh-compact .wh-source {
  font-size: 14px;
  margin: 12px 0;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .wh-compact .wr-plan-grid,
  .wh-compact .wr-plan-grid > .wr-fieldset,
  .wh-compact .wr-cargo-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wh-compact .wr-receipt-review .wr-receipt-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-receipt-review .wr-document-card {
    grid-row: auto;
  }
  .wh-compact .wr-plan-line {
    grid-template-columns: minmax(150px, 2fr) minmax(90px, 1fr) minmax(110px, 1fr) auto;
  }
  .wh-compact .wr-plan-line-total {
    grid-column: 1/-1;
    display: flex;
    gap: 8px;
  }
}
@media (max-width: 850px) {
  .wh-compact .wr-receipt-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .wh-compact .ui-card {
    padding: 12px;
    border-radius: 10px;
  }
  .wh-compact .ui-page-heading h1 {
    font-size: 26px;
  }
  .wh-compact .ui-page-heading {
    align-items: flex-start;
  }
  .wh-compact > .ui-section-tabs {
    gap: 0;
  }
  .wh-compact .wr-plan-grid,
  .wh-compact .wr-plan-grid > .wr-fieldset,
  .wh-compact .wr-cargo-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-plan-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .wh-compact .wr-plan-line-name {
    grid-column: 1/-1;
  }
  .wh-compact .wr-plan-line-total {
    grid-column: auto;
    display: block;
  }
  .wh-compact .wr-plan-line > .ui-button {
    justify-self: end;
  }
  .wh-compact .wr-receipt-review .wr-document-card .wr-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-fields {
    gap: 8px;
  }
  .wh-compact .wr-receipt-line-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact .wr-steps button {
    padding: 6px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
  }
  .wh-compact .wr-steps button span {
    width: 22px;
    height: 22px;
  }
  .wh-compact .wr-receipt-layout {
    gap: 12px;
  }
  .wh-compact .ui-table-scroll th,
  .wh-compact .ui-table-scroll td {
    padding: 8px 10px;
  }
}
.wh-compact .wr-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: start;
}
.wh-compact .wr-simple-grid > .wr-field {
  margin: 0;
}
.wh-compact .wr-simple-plan {
  max-width: 1200px;
}
.wh-compact .wr-simple-routing {
  padding-top: 10px;
  border-top: 1px solid var(--ui-line);
}
.wh-compact .wr-simple-routing .wr-fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}
.wh-compact .wr-simple-routing .wr-fields {
  display: contents;
}
.wh-compact .wr-simple-routing .wr-field {
  margin: 0;
}
.wh-compact .wr-simple-cargo {
  max-width: 1200px;
}
.wh-compact .wr-simple-cargo .wr-cargo-detail > .ui-table-scroll {
  margin: 12px 0;
}
.wh-compact .wr-simple-cargo .wr-cargo-detail > .wr-actions {
  margin: 14px 0;
}
.wh-compact .wr-simple-cargo .wr-cargo-detail > details {
  border-top: 1px solid var(--ui-line);
  margin-top: 10px;
  padding-top: 4px;
}
.wh-compact .wr-simple-action,
.wh-compact .wr-simple-result {
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid var(--ui-line);
}
.wh-compact .wr-simple-work {
  color: var(--ui-muted);
}
.wh-compact details > summary {
  cursor: pointer;
  color: var(--ui-link);
  min-height: 44px;
  display: list-item;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.wh-compact .wr-source-details {
  margin-top: 12px;
}
.wh-compact .wr-source-details > summary {
  font-size: 14px;
  color: var(--ui-muted);
}
.wr-simple-receipt .wr-receipt-layout {
  grid-template-columns: minmax(0, 1fr);
}
.wr-simple-receipt .wr-two-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wr-simple-receipt .wr-add-material {
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-surface);
  padding: 0 16px;
}
.wr-simple-receipt .wr-add-material > .ui-card {
  padding: 0 0 12px;
  border: 0;
}
.wh-compact .wr-simple-comparison > .wr-field {
  max-width: 420px;
}
.wh-compact .wr-simple-comparison > .wr-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
}
.wh-compact .wr-simple-comparison > .wr-fieldset legend {
  width: 100%;
  margin-bottom: 6px;
}
.wr-simple-receipt .wr-confirm-card .wr-check {
  align-items: center;
}
.wr-simple-receipt .wr-receipt-review .wr-receipt-content {
  gap: 12px;
}
@media (max-width: 900px) {
  .wh-compact .wr-simple-grid,
  .wh-compact .wr-simple-routing .wr-fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .wh-compact .wr-simple-grid,
  .wh-compact .wr-simple-routing .wr-fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
  .wh-compact details > summary {
    padding: 10px 0;
  }
  .wr-simple-receipt .wr-add-material {
    padding: 0 12px;
  }
}
.pkb-page {
  min-width: 0;
}
.pkb-page .ui-page-heading {
  margin-bottom: 12px;
}
.pkb-page .ui-page-heading h1 {
  font-size: 28px;
}
.pkb-page h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
.pkb-page .ui-button {
  min-height: 44px;
  font-size: 14px;
  padding: 7px 12px;
}
.pkb-page .ui-card {
  padding: 18px;
}
.pkb-assignment {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 0;
  color: var(--ui-muted);
}
.pkb-assignment > span {
  flex: 1;
  min-width: 200px;
}
.pkb-assignment svg {
  flex: none;
  color: var(--ui-link);
}
.pkb-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.pkb-metrics > button {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  text-align: left;
  padding: 12px 16px;
  color: var(--ui-text);
  font: inherit;
  cursor: pointer;
}
.pkb-metrics > button:hover {
  border-color: var(--ui-accent);
  background: var(--ui-selected-soft);
}
.pkb-metrics strong {
  display: block;
  font-size: 26px;
  line-height: 1.3;
}
.pkb-metrics span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
  margin-top: 4px;
}
.pkb-source-line {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ui-muted);
  margin: 12px 0;
}
.pkb-source-line > details {
  max-width: 100%;
}
.pkb-source-line summary {
  cursor: pointer;
  color: var(--ui-link);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.pkb-source-line p {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pkb-register > .ui-section-tabs {
  padding: 0 18px;
}
.pkb-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 12px 18px;
}
.pkb-toolbar > .ui-field:first-child {
  flex: 1;
}
.pkb-toolbar > .ui-field:last-child {
  min-width: 220px;
}
.pkb-page .ui-field > span {
  font-size: 14px;
  font-weight: 600;
}
.pkb-page input,
.pkb-page select,
.pkb-page textarea {
  font-size: 16px;
  min-height: 44px;
  width: 100%;
  min-width: 0;
}
.pkb-page textarea {
  resize: vertical;
  line-height: 1.5;
}
.pkb-page .ui-table {
  width: 100%;
  min-width: 760px;
}
.pkb-page .ui-table :is(td, th) {
  padding: 10px 14px;
  vertical-align: top;
  white-space: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.pkb-page .ui-table th {
  font-weight: 400;
  text-align: left;
}
.pkb-page .ui-table thead th {
  font-size: 14px;
  font-weight: 600;
  background: var(--ui-bg);
  color: var(--ui-muted);
}
.pkb-page .ui-table small {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.45;
  margin-top: 4px;
}
.pkb-table {
  table-layout: fixed;
}
.pkb-table th:first-child {
  width: 27%;
}
.pkb-table th:nth-child(2) {
  width: 31%;
}
.pkb-table th:nth-child(3) {
  width: 25%;
}
.pkb-table th:nth-child(4) {
  width: 17%;
}
.pkb-link {
  border: 0;
  background: transparent;
  color: var(--ui-link);
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
}
.pkb-link:hover {
  text-decoration: underline;
}
.pkb-table td > .ui-button {
  margin-top: 6px;
}
.pkb-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ui-muted);
  padding: 12px 18px;
}
.pkb-pagination > span:first-child {
  margin-right: auto;
}
.pkb-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pkb-top > .ui-page-heading {
  flex: 1;
  margin: 0;
}
.pkb-top > .ui-page-heading h1 {
  font-size: 26px;
}
.pkb-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.pkb-fields {
  display: grid;
  gap: 14px;
}
.pkb-purchase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.pkb-fields small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.pkb-source p {
  font-size: 16px;
  line-height: 1.6;
}
.pkb-source dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
}
.pkb-source dt {
  color: var(--ui-muted);
}
.pkb-source dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pkb-hash {
  font-size: 14px;
}
.pkb-source > .ui-notice {
  font-size: 14px;
  margin-top: 14px;
}
.pkb-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pkb-questions .ui-field > span {
  font-weight: 400;
  line-height: 1.55;
}
.pkb-claim {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}
.pkb-claim > div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pkb-claim strong {
  font-size: 16px;
}
.pkb-claim span {
  font-size: 14px;
  color: var(--ui-muted);
}
.pkb-claim select {
  width: auto;
  max-width: 300px;
}
.pkb-page .pkb-save {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  margin: 16px 0;
}
.pkb-save > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pkb-save > div > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.pkb-save > .ui-notice,
.pkb-save > div[role=status] {
  grid-column: 1/-1;
}
.pkb-page > .ui-card {
  margin-bottom: 14px;
}
.pkb-history > summary {
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ui-link);
  cursor: pointer;
}
.pkb-history > div {
  border-top: 1px solid var(--ui-line);
  padding: 12px 0;
}
.pkb-history strong {
  font-size: 16px;
  display: block;
}
.pkb-history span {
  font-size: 14px;
  color: var(--ui-muted);
}
.pkb-history p {
  font-size: 14px;
  line-height: 1.5;
}
.pkb-footnote {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
  margin-top: 14px;
}
.pkb-leave .ui-button {
  margin-right: 10px;
}
.pkb-page :is(button, a, summary):focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.pk-scope-links {
  display: flex;
  gap: 8px;
  padding: 8px 20px 0;
  flex-wrap: wrap;
}
.pk-scope-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ui-link);
  text-decoration: none;
}
.pk-scope-links a[aria-current=page] {
  background: var(--ui-selected);
  color: var(--ui-text);
  font-weight: 600;
}
@media (max-width: 900px) {
  .pkb-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pkb-top {
    flex-wrap: wrap;
  }
  .pkb-top > .ui-page-heading {
    flex-basis: 100%;
    order: 2;
  }
  .pkb-page .pkb-save {
    grid-template-columns: minmax(0, 1fr);
  }
  .pkb-save > div {
    flex-wrap: wrap;
  }
  .pkb-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pkb-claim {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .pkb-page .ui-page-heading h1 {
    font-size: 24px;
  }
  .pkb-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pkb-toolbar > .ui-field:last-child {
    min-width: 0;
  }
  .pkb-questions {
    grid-template-columns: minmax(0, 1fr);
  }
  .pkb-source dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .pkb-source dd {
    margin-bottom: 8px;
  }
  .pkb-metrics {
    gap: 8px;
  }
  .pkb-metrics > button {
    padding: 10px;
  }
  .pkb-source-line > .ui-badge {
    max-width: 100%;
    white-space: normal;
  }
  .pkb-purchase {
    grid-template-columns: minmax(0, 1fr);
  }
  .pkb-claim select {
    max-width: 100%;
  }
  .pkb-register > .ui-section-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .pkb-register > .ui-section-tabs button {
    flex: none;
  }
  .pk-scope-links {
    padding: 8px 12px 0;
  }
}
.pkb-curved-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.pkb-curved-sides label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.pkb-curved-sides input {
  min-height: 20px;
  width: 20px;
}
.pkb-page .ui-card {
  border-radius: 9px;
  box-shadow: none;
  padding: 12px;
}
.pkb-page h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.pkb-page h3 {
  font-size: 16px;
  margin: 8px 0;
}
.pkb-page .ui-page-heading h1,
.pkb-top > .ui-page-heading h1 {
  font-size: 24px;
  line-height: 1.25;
}
.pkb-page .ui-page-heading p {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
}
.pkb-assignment {
  padding: 5px 0;
  gap: 6px 10px;
  font-size: 14px;
  line-height: 1.4;
}
.pkb-metrics {
  gap: 8px;
  margin: 8px 0;
}
.pkb-metrics > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
}
.pkb-metrics strong {
  font-size: 21px;
  line-height: 1.2;
}
.pkb-metrics span {
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
}
.pkb-source-line {
  margin: 6px 0;
  font-size: 13px;
  gap: 4px 10px;
}
.pkb-source-line > details {
  position: relative;
}
.pkb-source-line > details[open] > p {
  position: absolute;
  right: 0;
  top: 100%;
  width: min(440px, 75vw);
  z-index: 5;
  background: var(--ui-surface);
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  box-shadow: 0 4px 14px #17213318;
}
.pkb-source summary {
  font-size: 15px;
  color: var(--ui-link);
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.pkb-source summary:before {
  content: "\203a";
  margin-right: 8px;
}
.pkb-source details[open] > summary:before {
  transform: rotate(90deg);
}
.pkb-source-content {
  padding-top: 8px;
}
.pkb-source p {
  font-size: 14px;
  line-height: 1.45;
  margin: 6px 0;
}
.pkb-source dl {
  margin: 10px 0;
  font-size: 13px;
  gap: 4px 10px;
}
.pkb-source .ui-badge {
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pkb-hash {
  font-size: 13px;
}
.pkb-detail-grid {
  display: block;
  margin: 10px 0;
}
.pkb-detail-grid > .pkb-source {
  margin-top: 10px;
}
.pkb-fields {
  gap: 10px;
}
.pkb-purchase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pkb-questions {
  gap: 10px;
}
.pkb-questions .ui-field > span {
  line-height: 1.4;
}
.pkb-claim {
  padding: 10px !important;
  margin: 8px 0;
}
.pkb-claim > div {
  gap: 8px;
}
.pkb-page .pkb-save {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--ui-surface);
  border-color: var(--ui-line);
  margin: 10px 0;
  padding: 10px;
  box-shadow: 0 -3px 14px #1721330c;
}
.pkb-footnote {
  font-size: 13px;
  line-height: 1.35;
  margin: 6px 0;
}
.pkb-empty {
  padding: 22px !important;
  text-align: center !important;
  color: var(--ui-muted);
}
.pkb-register.ui-card {
  padding: 0;
}
.pkb-register > .ui-section-tabs {
  padding: 0 10px;
}
.pkb-toolbar {
  gap: 10px;
  padding: 8px 10px;
}
.pkb-pagination {
  gap: 8px;
  padding: 8px 10px;
}
.pkb-register .ui-table-scroll {
  border-radius: 0;
}
.pkb-page .ui-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ui-bg);
}
.pkb-page .ui-table tbody tr:nth-child(2n) {
  background: var(--ui-subtle);
}
.pkb-page .ui-table :is(th, td) {
  border-bottom: 1px solid var(--ui-line);
}
.pkb-page .ui-button:disabled {
  background: #eef1f5 !important;
  border-color: #dce3ee !important;
  color: #7b8798 !important;
  opacity: 1;
}
.pkb-page input::placeholder,
.pkb-page textarea::placeholder {
  color: var(--ui-muted);
  opacity: 1;
}
@media (min-width: 1101px) {
  .pkb-page .ui-button,
  .pkb-page .pkb-link,
  .pkb-page input,
  .pkb-page select,
  .pkb-source-line summary,
  .pkb-history > summary {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1.3;
  }
  .pkb-page .pkb-link {
    padding: 0;
    min-height: 28px;
    font-size: 15px;
  }
  .pkb-page textarea {
    min-height: 54px;
    padding: 6px 8px;
    font-size: 15px;
    line-height: 1.35;
  }
  .pkb-page .ui-field {
    gap: 4px;
  }
  .pkb-page .ui-field > span {
    font-size: 14px;
  }
  .pkb-register > .ui-section-tabs button {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 14px;
  }
  .pkb-page .ui-table :is(th, td) {
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.35;
  }
  .pkb-page .ui-table small {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 3px;
  }
  .pkb-register .ui-table-scroll {
    max-height: calc(100dvh - 440px);
    min-height: 120px;
    overflow: auto;
    scrollbar-gutter: stable;
  }
  .pkb-register > .ui-notice {
    margin: 0 10px 8px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.3;
  }
  .pkb-register:has(> .ui-notice) .ui-table-scroll {
    max-height: calc(100dvh - 520px);
  }
  .pkb-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .pkb-fields > .pkb-purchase,
  .pkb-fields > .pkb-curved-sides,
  .pkb-fields > .ui-notice,
  .pkb-fields > h3 {
    grid-column: 1/-1;
  }
  .pkb-curved-sides {
    gap: 10px;
    padding: 8px;
  }
  .pkb-curved-sides label {
    min-height: 28px;
  }
  .pkb-curved-sides input {
    min-height: 18px;
    height: 18px;
    width: 18px;
  }
  .pkb-page .pkb-save textarea {
    min-height: 44px;
  }
  .pkb-save > div {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .pkb-page:has(.pkb-register) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-block: 16px 10px;
  }
  .pkb-page:has(.pkb-register) > .ui-page-heading,
  .pkb-page:has(.pkb-register) > .pkb-assignment,
  .pkb-page:has(.pkb-register) > .pkb-metrics,
  .pkb-page:has(.pkb-register) > .pkb-source-line,
  .pkb-page:has(.pkb-register) > .pkb-footnote {
    flex-shrink: 0;
  }
  .pkb-page .pkb-register.ui-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0;
  }
  .pkb-register > .ui-section-tabs,
  .pkb-register > .pkb-toolbar,
  .pkb-register > .ui-notice,
  .pkb-register > .pkb-pagination {
    flex-shrink: 0;
  }
  .pkb-register .ui-table-scroll,
  .pkb-register:has(> .ui-notice) .ui-table-scroll {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
}
@media (max-width: 760px) {
  .pkb-page .ui-page-heading h1,
  .pkb-top > .ui-page-heading h1 {
    font-size: 21px;
  }
  .pkb-top {
    gap: 8px;
  }
  .pkb-top > .ui-page-heading {
    order: 0;
  }
  .pkb-assignment {
    font-size: 13px;
    gap: 4px 8px;
  }
  .pkb-assignment > span {
    min-width: 0;
  }
  .pkb-metrics {
    gap: 6px;
    margin: 6px 0;
  }
  .pkb-metrics > button {
    gap: 7px;
    padding: 7px;
    min-height: 52px;
  }
  .pkb-metrics strong {
    font-size: 19px;
  }
  .pkb-metrics span {
    font-size: 12px;
    line-height: 1.3;
  }
  .pkb-source-line {
    font-size: 12px;
  }
  .pkb-source-line > details[open] > p {
    position: static;
    width: auto;
    margin: 0;
  }
  .pkb-source-line summary,
  .pkb-source summary {
    min-height: 44px;
  }
  .pkb-page .pkb-save {
    position: static;
  }
  .pkb-page .ui-card {
    padding: 10px;
  }
  .pkb-register.ui-card {
    padding: 0;
  }
  .pkb-register > .ui-section-tabs {
    padding: 0 8px;
    gap: 4px;
  }
  .pkb-register > .ui-section-tabs button {
    font-size: 14px;
  }
  .pkb-page .ui-table,
  .pkb-page .ui-table tbody,
  .pkb-page .ui-table tr,
  .pkb-page .ui-table :is(td, th) {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .pkb-page .ui-table thead {
    display: none;
  }
  .pkb-page .ui-table :is(td, th) {
    width: 100% !important;
    padding: 4px 0;
    border: 0;
    text-align: left;
  }
  .pkb-page .ui-table tr {
    padding: 10px;
    border-bottom: 1px solid var(--ui-line);
  }
  .pkb-page .ui-table .pkb-link {
    font-size: 16px;
    min-height: 44px;
  }
  .pkb-page .ui-table-scroll {
    overflow: visible;
  }
  .pkb-table td:nth-child(2):before {
    content: "\41f\43b\430\43d\43e\432\44b\439  \440\430\441\445\43e\434";
    display: block;
    color: var(--ui-muted);
    font-size: 13px;
  }
  .pkb-table td:nth-child(3):before {
    content: "\427\442\43e  \43d\443\436\43d\43e  \437\430\43f\43e\43b\43d\438\442\44c";
    display: block;
    color: var(--ui-muted);
    font-size: 13px;
  }
  .pkb-table td:nth-child(4):before {
    content: "\418\441\43f\43e\43b\43d\438\442\435\43b\44c";
    display: block;
    color: var(--ui-muted);
    font-size: 13px;
  }
  .pkb-page .ui-table td > .ui-button {
    margin-left: 8px;
    min-height: 44px;
  }
  .pkb-purchase {
    grid-template-columns: 1fr;
  }
  .pkb-claim {
    align-items: flex-start;
  }
  .pkb-page input,
  .pkb-page select {
    min-height: 44px;
  }
  .pkb-empty {
    padding: 16px !important;
  }
  .pkb-page .ui-table [data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    color: var(--ui-muted);
    margin: 2px 0;
  }
}
.pkb-article-ownership {
  padding: 8px 14px;
  margin: 6px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pkb-article-ownership > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.pkb-article-ownership summary {
  min-height: 44px;
  cursor: pointer;
}
.pkb-article-tree {
  padding: 18px;
}
.pkb-article-tree ul {
  list-style: none;
  margin: 8px 0;
  padding-left: 18px;
  border-left: 1px solid var(--ui-line);
}
.pkb-article-tree summary {
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.pkb-article-tree details > div {
  padding: 8px 16px;
}
.pkb-article-tree p {
  font-size: 14px;
  line-height: 1.4;
}
.pkb-shared-step {
  margin: 8px 0 0 42px;
  padding: 10px;
  border-top: 1px solid var(--ui-line);
}
.pkb-shared-step > div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pkb-shared-step summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.pkb-shared-step .ui-field {
  margin-block: 10px;
}
.pkb-shared-step select {
  max-width: 100%;
}
@media (max-width: 760px) {
  .pkb-shared-step {
    margin-left: 0;
  }
}
.pkb-consumption {
  padding: 18px;
  min-width: 0;
}
.pkb-consumption small {
  display: block;
  color: var(--ui-muted);
  font-size: 14px;
  margin-top: 4px;
}
.pkb-consumption :is(td, th) {
  border-bottom: 1px solid var(--ui-line);
  padding: 12px;
  vertical-align: top;
}
.pkb-unlinked-consumption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid var(--ui-line);
}
.pk-consumption-readiness {
  font-size: 14px;
  min-width: 0;
}
.pk-consumption-readiness > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pk-consumption-readiness h2 {
  font-size: 20px;
  margin: 0;
}
.pk-consumption-readiness p {
  margin: 8px 0;
  color: var(--ui-muted);
}
.pk-readiness-facts {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  background: var(--ui-subtle);
  padding: 12px;
  border-radius: 8px;
}
.pk-readiness-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
}
.pk-readiness-facts span {
  color: var(--ui-muted);
}
.pk-readiness-facts strong {
  font-size: 15px;
}
.pk-readiness-facts small {
  font-size: 13px;
}
.pk-readiness-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.pk-readiness-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pk-readiness-table {
  max-height: 390px;
  overflow: auto;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
}
.pk-readiness-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 14px;
}
.pk-readiness-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ui-subtle);
  font-weight: 600;
}
.pk-readiness-table td,
.pk-readiness-table th {
  padding: 10px;
  border-bottom: 1px solid var(--ui-line);
  text-align: left;
  vertical-align: top;
}
.pk-readiness-table th:first-child {
  width: 20%;
}
.pk-readiness-table td:nth-child(2) {
  width: 15%;
}
.pk-readiness-table td:nth-child(3) {
  width: 25%;
}
.pk-readiness-table td:last-child {
  width: 29%;
}
.pk-readiness-table tbody tr:nth-child(2n) {
  background: var(--ui-subtle);
}
.pk-readiness-table small {
  display: block;
  margin-top: 5px;
  color: var(--ui-muted);
  font-weight: 400;
}
.pk-readiness-table ul {
  margin: 0 0 6px;
  padding-left: 16px;
}
.pk-readiness-table .ui-button {
  font-size: 14px;
  min-height: 36px;
  padding: 4px 8px;
}
.pk-consumption-readiness > details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ui-link);
}
.pk-consumption-readiness pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 250px;
  overflow: auto;
}
@media (max-width: 760px) {
  .pk-readiness-facts {
    grid-template-columns: 1fr;
  }
  .pk-consumption-readiness > header {
    align-items: flex-start;
  }
  .pk-readiness-toolbar {
    flex-wrap: wrap;
  }
  .pk-readiness-table {
    max-height: 480px;
  }
}
.pk-readiness-warning {
  font-size: 13px;
}
.pk-consumption-readiness > details {
  overflow-wrap: anywhere;
}
.pk-consumption-readiness > details ul {
  padding-left: 20px;
}
.pk-consumption-readiness > details li {
  margin-bottom: 6px;
}
@media (min-width: 1101px) {
  .pk-compact-extra:has(.pk-consumption-readiness) {
    height: clamp(200px, calc(100dvh - 520px), 360px);
    overflow: auto;
    padding: 10px 14px;
  }
  .pk-consumption-readiness h2 {
    font-size: 17px;
  }
  .pk-readiness-facts {
    padding: 8px;
    gap: 10px;
  }
  .pk-readiness-facts strong {
    font-size: 14px;
  }
  .pk-readiness-facts small {
    font-size: 12px;
  }
  .pk-readiness-table {
    max-height: clamp(140px, calc(100dvh - 720px), 260px);
  }
}
.pk-readiness-table table {
  table-layout: fixed;
}
.pk-readiness-table th,
.pk-readiness-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.pk-readiness-table th:nth-child(2) {
  width: 15%;
}
.pk-readiness-table th:nth-child(3) {
  width: 25%;
}
.pk-readiness-table th:nth-child(4) {
  width: 11%;
}
.pk-readiness-table th:nth-child(5) {
  width: 29%;
}
.pk-row-questions {
  margin: 0 0 5px;
}
.pk-row-questions summary {
  cursor: pointer;
  color: var(--ui-link);
  font-size: 13px;
  line-height: 1.3;
  padding: 3px 0;
}
.pk-row-questions ul {
  margin-top: 6px !important;
}
.pk-row-questions[open] summary {
  font-weight: 600;
}
.pk-compact-detail {
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 0 0 var(--ui-radius) var(--ui-radius);
  font: 16px/1.35 var(--ui-font);
  min-width: 0;
  overflow-wrap: anywhere;
}
.pk-compact-detail * {
  box-sizing: border-box;
}
.pk-compact-detail .pk-compact-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px 16px;
  gap: 16px;
  border-bottom: 1px solid var(--ui-line);
}
.pk-compact-detail .pk-compact-overview > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  border-right: 1px solid var(--ui-line);
  padding-right: 12px;
}
.pk-compact-detail .pk-compact-overview > div:last-child {
  border: 0;
  padding-right: 0;
}
.pk-compact-detail .pk-compact-overview strong {
  font-size: 19px;
  line-height: 1.25;
}
.pk-compact-detail small {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ui-muted);
}
.pk-compact-detail .pk-compact-location {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  min-height: 36px;
  padding: 6px 16px;
  background: var(--ui-info-bg);
}
.pk-compact-detail .pk-compact-location > svg {
  color: var(--ui-info);
  flex-shrink: 0;
}
.pk-compact-detail .pk-compact-location > strong {
  font-size: 16px;
}
.pk-compact-detail .pk-compact-storage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--ui-info-bg);
}
.pk-compact-detail .pk-compact-storage-row > .pk-compact-location {
  flex: 1;
}
.pk-compact-detail .pk-compact-storage-row > .pk-compact-field {
  flex: 1;
  min-width: 240px;
  padding: 5px 12px 5px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}
.pk-compact-detail .pk-compact-location details summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
}
.pk-compact-detail .pk-compact-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ui-line);
}
.pk-compact-detail .pk-compact-tabs nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-width: 0;
  width: auto;
  gap: 0;
  flex: 1;
}
.pk-compact-detail .pk-compact-tabs nav button {
  width: auto;
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  padding: 8px 12px 4px;
  font: inherit;
  color: var(--ui-muted);
  cursor: pointer;
  white-space: nowrap;
}
.pk-compact-detail .pk-compact-tabs nav button.is-active {
  color: var(--ui-text);
  border-bottom-color: var(--ui-accent);
  font-weight: 700;
}
.pk-compact-detail button:focus-visible,
.pk-compact-detail input:focus-visible,
.pk-compact-detail select:focus-visible,
.pk-compact-detail summary:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}
.pk-compact-detail .pk-compact-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  min-width: 0;
}
.pk-compact-detail .pk-compact-tree {
  border-right: 1px solid var(--ui-line);
  min-width: 0;
}
.pk-compact-detail .pk-compact-tree > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ui-line);
  min-height: 44px;
}
.pk-compact-detail .pk-compact-tree > header small {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pk-compact-detail .pk-compact-tree-body {
  max-height: 390px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.pk-compact-detail .pk-compact-tree-group,
.pk-compact-detail .pk-compact-tree-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  width: 100%;
  background: transparent;
  color: var(--ui-text);
  border: 0;
  text-align: left;
  font: inherit;
  padding: 6px 12px;
  cursor: pointer;
}
.pk-compact-detail .pk-compact-tree-group > svg,
.pk-compact-detail .pk-compact-tree-row > svg {
  flex-shrink: 0;
}
.pk-compact-detail .pk-compact-tree-group span,
.pk-compact-detail .pk-compact-tree-row span {
  min-width: 0;
  flex: 1;
}
.pk-compact-detail .pk-compact-tree-row small {
  white-space: nowrap;
}
.pk-compact-detail .pk-compact-tree-group:hover,
.pk-compact-detail .pk-compact-tree-row:hover {
  background: var(--ui-subtle);
}
.pk-compact-detail .pk-compact-tree-children {
  border-left: 1px solid var(--ui-line);
  margin-left: 20px;
}
.pk-compact-detail .pk-compact-tree-children p {
  padding: 0 12px;
  font-size: 14px;
  color: var(--ui-muted);
}
.pk-compact-detail .pk-compact-leaf.is-selected {
  background: var(--ui-selected-soft);
  box-shadow: inset 3px 0 0 var(--ui-accent);
}
.pk-compact-detail .pk-compact-parts > .pk-compact-leaf {
  padding-left: 28px;
}
.pk-compact-detail .pk-compact-node {
  padding: 10px 14px;
  min-width: 0;
}
.pk-compact-detail .pk-compact-node > header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.pk-compact-detail h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
.pk-compact-detail .pk-compact-node .pk-compact-location {
  padding: 5px 8px;
  border-radius: var(--ui-radius-sm);
  margin-bottom: 7px;
}
.pk-compact-detail .pk-compact-source {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 8px 10px;
  background: var(--ui-subtle);
  border-radius: var(--ui-radius-sm);
  font-size: 14px;
  color: var(--ui-muted);
}
.pk-compact-detail .pk-compact-source span:last-child {
  max-width: 100%;
}
.pk-compact-detail .pk-compact-formula {
  padding: 7px 10px;
  margin: 6px 0;
  background: var(--ui-info-bg);
  border-radius: var(--ui-radius-sm);
}
.pk-compact-detail .pk-compact-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.pk-compact-detail .pk-compact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  color: var(--ui-text);
}
.pk-compact-detail .pk-compact-field input,
.pk-compact-detail .pk-compact-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  padding: 8px;
  font: 16px var(--ui-font);
  color: var(--ui-text);
  background: var(--ui-surface);
}
.pk-compact-detail .pk-compact-field input:read-only {
  background: var(--ui-subtle);
}
.pk-compact-detail .pk-compact-field input:disabled,
.pk-compact-detail .pk-compact-field select:disabled {
  color: var(--ui-muted);
  opacity: 1;
  background: var(--ui-subtle);
}
.pk-compact-detail .pk-compact-glue-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1.6fr) minmax(70px, .6fr) minmax(90px, .8fr) minmax(95px, .9fr) minmax(130px, 1.2fr);
  gap: 8px;
  margin: 8px 0;
}
.pk-compact-detail .pk-compact-glue-cost,
.pk-compact-detail .pk-compact-measure {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}
.pk-compact-detail .pk-compact-glue-cost {
  padding: 5px 8px;
  background: var(--ui-selected-soft);
  border-radius: var(--ui-radius-sm);
}
.pk-compact-detail .pk-compact-glue-cost strong {
  font-size: 20px;
}
.pk-compact-detail .pk-compact-proposal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
}
.pk-compact-detail .pk-compact-cost-line {
  font-size: 14px;
  margin: 8px 0;
}
.pk-compact-detail .pk-compact-evidence {
  border-top: 1px solid var(--ui-line);
  margin-top: 6px;
}
.pk-compact-detail .pk-compact-evidence > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ui-link);
}
.pk-compact-detail .pk-compact-evidence p,
.pk-compact-detail .pk-compact-evidence li {
  font-size: 14px;
  line-height: 1.4;
}
.pk-compact-detail .pk-compact-works {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}
.pk-compact-detail .pk-compact-works > section {
  border-left: 3px solid var(--ui-line);
  padding-left: 10px;
}
.pk-compact-detail .pk-compact-works p {
  margin: 4px 0;
}
.pk-compact-detail .pk-compact-nested {
  padding-left: 20px;
}
.pk-compact-detail .pk-compact-nested small {
  display: block;
}
.pk-compact-detail .pk-compact-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.pk-compact-detail .pk-compact-secondary button {
  border: 0;
  background: none;
  color: var(--ui-link);
  font: 14px var(--ui-font);
  min-height: 44px;
  padding: 5px 0;
  cursor: pointer;
  text-decoration: underline;
}
.pk-compact-detail .pk-compact-extra {
  padding: 14px;
  min-width: 0;
}
.pk-compact-detail > .pk-compact-field {
  padding: 8px 14px;
}
.pk-compact-detail .pk-compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 14px;
  background: var(--ui-subtle);
  border-top: 1px solid var(--ui-line);
}
.pk-compact-detail .pk-compact-ownership {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  color: var(--ui-muted);
}
.pk-compact-detail .pk-compact-ownership .pkb-article-ownership {
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: none;
  border: 0;
}
.pk-compact-detail .pk-compact-ownership .pkb-article-ownership p {
  margin: 2px 0;
}
@media (min-width: 1100px) and (max-height: 780px) {
  .pk-compact-detail .pk-compact-overview {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .pk-compact-detail .pk-compact-tree-body {
    max-height: 300px;
  }
  .pk-compact-detail .pk-compact-overview strong {
    font-size: 18px;
  }
  .pk-compact-detail .pk-compact-node {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
@media (max-width: 1100px) {
  .pk-compact-detail .pk-compact-glue-fields {
    grid-template-columns: 1.6fr .7fr 1fr;
  }
  .pk-compact-detail .pk-compact-glue-cost {
    grid-column: span 2;
  }
  .pk-compact-detail .pk-compact-tree > header small {
    display: none;
  }
  .pk-compact-detail .pk-compact-tabs nav button {
    padding-inline: 8px;
    font-size: 14px;
  }
}
@media (max-width: 800px) {
  .pk-compact-detail .pk-compact-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .pk-compact-detail .pk-compact-overview > div:nth-child(2) {
    border: 0;
  }
  .pk-compact-detail .pk-compact-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .pk-compact-detail .pk-compact-tree {
    border-right: 0;
    border-bottom: 1px solid var(--ui-line);
  }
  .pk-compact-detail .pk-compact-tree-body {
    max-height: 270px;
  }
  .pk-compact-detail .pk-compact-tabs {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 6px;
  }
  .pk-compact-detail .pk-compact-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .pk-compact-detail .pk-compact-proposal {
    align-items: flex-start;
    flex-direction: column;
  }
  .pk-compact-detail .pk-compact-location,
  .pk-compact-detail .pk-compact-node {
    padding-inline: 10px;
  }
  .pk-compact-detail .pk-compact-glue-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pk-compact-detail .pk-compact-glue-fields > .pk-compact-field:first-child {
    grid-column: 1/-1;
  }
  .pk-compact-detail .pk-compact-tabs > button {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .pk-compact-detail .pk-compact-overview {
    padding: 10px;
    gap: 10px;
  }
  .pk-compact-detail .pk-compact-overview strong {
    font-size: 17px;
  }
  .pk-compact-detail .pk-compact-overview span {
    font-size: 14px;
  }
  .pk-compact-detail .pk-compact-location {
    align-items: flex-start;
  }
  .pk-compact-detail .pk-compact-tree-row {
    font-size: 14px;
  }
  .pk-compact-detail .pk-compact-fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1101px) {
  .pk-compact-detail .pk-compact-overview {
    padding: 8px 14px;
    gap: 12px;
  }
  .pk-compact-detail .pk-compact-storage-row {
    min-height: 36px;
  }
  .pk-compact-detail .pk-compact-location {
    padding-block: 4px;
    min-height: 36px;
  }
  .pk-compact-detail .pk-compact-tabs {
    min-height: 45px;
  }
  .pk-compact-detail .pk-compact-tabs > button {
    min-height: 44px;
  }
  .pk-compact-detail .pk-compact-workspace {
    height: clamp(200px, calc(100dvh - 520px), 360px);
    min-height: 0;
  }
  .pk-compact-detail .pk-compact-tree {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .pk-compact-detail .pk-compact-tree > header {
    flex-shrink: 0;
  }
  .pk-compact-detail .pk-compact-tree-body {
    max-height: none;
    min-height: 0;
    overflow: auto;
    flex: 1;
  }
  .pk-compact-detail .pk-compact-node {
    overflow: auto;
    min-height: 0;
  }
  .pk-compact-detail .pk-compact-footer {
    min-height: 52px;
    padding-block: 4px;
  }
  .pk-compact-detail .pk-compact-source {
    padding-block: 5px;
  }
  .pk-compact-detail .pk-compact-formula {
    margin-block: 4px;
  }
  .pk-compact-detail .pk-compact-node {
    padding-block: 8px;
  }
  .pk-compact-detail .pk-compact-tree-group {
    min-height: 28px;
    padding-block: 3px;
  }
  .pk-compact-detail .pk-compact-tree-row {
    min-height: 32px;
    padding-block: 4px;
  }
}
.pk-packaging-summary {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  padding: 4px 14px;
  font-size: 14px;
  min-width: 0;
}
.pk-packaging-summary > svg {
  flex-shrink: 0;
  color: var(--ui-info);
}
.pk-packaging-summary > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pk-packaging-summary span {
  font-size: 12px;
  color: var(--ui-muted);
}
.pk-packaging-summary strong {
  font-size: 15px;
  white-space: nowrap;
}
.pk-packaging-summary button {
  min-height: 44px;
  padding: 4px 0;
  background: none;
  border: 0;
  font: 14px var(--ui-font);
  color: var(--ui-link);
  cursor: pointer;
}
.pk-packaging-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pk-packaging-panel > p {
  font-size: 13px;
  color: var(--ui-muted);
  margin: 6px 0;
}
.pk-packaging-table {
  overflow: auto;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
}
.pk-packaging-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}
.pk-packaging-table th,
.pk-packaging-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--ui-line);
  white-space: normal;
  overflow-wrap: anywhere;
}
.pk-packaging-table thead th {
  background: var(--ui-subtle);
  font-size: 13px;
  text-align: right;
}
.pk-packaging-table th:first-child {
  text-align: left;
  width: 24%;
}
.pk-packaging-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pk-packaging-table tbody tr:nth-child(2n) {
  background: var(--ui-subtle);
}
.pk-packaging-table .has-conflict {
  background: var(--ui-selected-soft);
  font-weight: 700;
}
.pk-packaging-panel details {
  font-size: 13px;
}
.pk-packaging-panel summary {
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  color: var(--ui-link);
}
.pk-packaging-panel details p {
  overflow-wrap: anywhere;
}
@media (min-width: 1101px) {
  .pk-compact-detail .pk-compact-storage-row > .pk-compact-location {
    flex: 1 1 280px;
  }
  .pk-compact-detail .pk-compact-workspace,
  .pk-compact-detail .pk-packaging-extra {
    height: clamp(180px, calc(100dvh - 540px), 340px);
  }
  .pk-compact-detail .pk-packaging-extra {
    overflow: auto;
    padding: 8px 14px;
  }
  .pk-compact-detail .pk-compact-tabs nav button {
    padding-inline: 10px;
  }
  .pk-compact-detail .pk-compact-extra:has(.pk-consumption-readiness) {
    height: clamp(180px, calc(100dvh - 540px), 340px);
  }
}
@media (max-width: 1100px) {
  .pk-packaging-summary {
    flex: 1 1 100%;
    flex-wrap: wrap;
    border-top: 1px solid var(--ui-line);
    padding: 8px 12px;
  }
  .pk-packaging-summary button {
    margin-left: auto;
  }
  .pk-packaging-summary strong {
    font-size: 14px;
  }
  .pk-packaging-panel header {
    flex-wrap: wrap;
  }
  .pk-packaging-table table {
    min-width: 520px;
  }
}
.pk-packaging-summary button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.pk-packaging-summary button b {
  font-weight: 400;
}
.pk-compact-detail .pk-compact-tabs nav button {
  margin: 0;
  border-radius: 0;
  justify-content: center;
}
.pk-compact-detail .pk-compact-source-link {
  border: 0;
  background: none;
  color: var(--ui-link);
  padding: 0;
  text-decoration: underline;
  font: inherit;
  text-align: left;
  justify-content: flex-start;
  min-height: 0;
}
.pk-compact-detail .pk-compact-original-note {
  margin: 5px 0;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--ui-selected-soft);
  color: #9a4b00;
  font-size: 13px;
  line-height: 18px;
}
.pk-compact-detail .pk-compact-source-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pk-compact-detail .pk-compact-sources details {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.pk-compact-detail .pk-compact-sources summary {
  cursor: pointer;
  color: var(--ui-link);
  min-height: 32px;
  display: flex;
  align-items: center;
}
.pk-compact-detail .pk-compact-sources dl {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 14px;
  margin: 8px 0;
}
.pk-compact-detail .pk-compact-sources dt {
  color: var(--ui-muted);
}
.pk-compact-detail .pk-compact-sources dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pk-compact-detail .pk-compact-footer .ui-button:disabled {
  background: #eef1f5 !important;
  border-color: #dce3ee !important;
  color: #7b8798 !important;
  opacity: 1;
}
.pk-compact-detail .pk-compact-ownership .pkb-article-ownership > .ui-button:not(:disabled) {
  background: var(--ui-accent,#ffdb4d);
  border-color: var(--ui-accent,#ffdb4d);
  color: #172133;
  font-weight: 600;
}
@media (min-width: 1101px) {
  .pk-compact-detail {
    --pk-work-height:clamp(300px, calc(100dvh - 420px) ,460px);
    --ui-control:var(--ui-control-compact);
    font-size: 15px;
    line-height: 1.3;
  }
  .pk-compact-detail .pk-compact-overview {
    padding: 6px 12px;
    gap: 10px;
    min-height: 64px;
  }
  .pk-compact-detail .pk-compact-overview > div {
    gap: 2px;
    padding-right: 10px;
  }
  .pk-compact-detail .pk-compact-overview span {
    font-size: 14px;
    line-height: 18px;
  }
  .pk-compact-detail .pk-compact-overview strong {
    font-size: 18px;
    line-height: 22px;
  }
  .pk-compact-detail .pk-compact-overview small {
    font-size: 13px;
    line-height: 16px;
  }
  .pk-compact-detail .pk-compact-storage-row {
    min-height: 36px;
    gap: 0;
  }
  .pk-compact-detail .pk-compact-storage-row > .pk-compact-location {
    flex: 1 1 260px;
    min-height: 32px;
    padding: 3px 12px;
    font-size: 13px;
    gap: 6px;
  }
  .pk-compact-detail .pk-compact-location > strong {
    font-size: 14px;
  }
  .pk-compact-detail .pk-packaging-summary {
    gap: 8px 12px;
    padding: 2px 12px;
    font-size: 13px;
  }
  .pk-compact-detail .pk-packaging-summary span {
    font-size: 11px;
    line-height: 14px;
  }
  .pk-compact-detail .pk-packaging-summary strong {
    font-size: 14px;
    line-height: 17px;
  }
  .pk-compact-detail .pk-packaging-summary button {
    min-height: 30px;
    padding: 0;
    gap: 0;
    font-size: 12px;
    line-height: 16px;
  }
  .pk-compact-detail .pk-compact-tabs {
    min-height: 34px;
    padding: 0 10px;
    gap: 6px;
  }
  .pk-compact-detail .pk-compact-tabs nav {
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .pk-compact-detail .pk-compact-tabs nav button {
    height: 33px;
    min-height: 33px;
    padding: 3px 8px 1px;
    font-size: 14px;
    line-height: 22px;
    border-bottom-width: 3px;
    white-space: nowrap;
  }
  .pk-compact-detail .pk-compact-tabs > .ui-button {
    min-height: 30px;
    height: 30px;
    padding: 3px 10px;
    font-size: 14px;
  }
  .pk-compact-detail .pk-compact-workspace,
  .pk-compact-detail .pk-packaging-extra {
    height: var(--pk-work-height);
  }
  .pk-compact-detail .pk-compact-workspace {
    grid-template-columns: minmax(330px, 36%) minmax(0, 1fr);
  }
  .pk-compact-detail .pk-compact-tree > header {
    min-height: 30px;
    height: 30px;
    padding: 4px 10px;
    font-size: 15px;
    flex-wrap: nowrap;
  }
  .pk-compact-detail .pk-compact-tree > header small {
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }
  .pk-compact-detail .pk-compact-tree-group {
    min-height: 26px;
    height: auto;
    padding: 3px 10px;
    font-size: 14px;
    line-height: 20px;
  }
  .pk-compact-detail .pk-compact-tree-row {
    min-height: 28px;
    padding: 3px 10px;
    font-size: 14px;
    line-height: 20px;
  }
  .pk-compact-detail .pk-compact-tree-row small {
    font-size: 12px;
    line-height: 18px;
  }
  .pk-compact-detail .pk-compact-tree-children {
    margin-left: 16px;
  }
  .pk-compact-detail .pk-compact-node {
    padding: 6px 12px;
  }
  .pk-compact-detail .pk-compact-node > header {
    gap: 8px;
    min-height: 24px;
    margin-bottom: 4px;
  }
  .pk-compact-detail h3 {
    font-size: 17px;
    line-height: 22px;
  }
  .pk-compact-detail .pk-compact-node .pk-compact-location {
    min-height: 26px;
    padding: 3px 7px;
    margin-bottom: 4px;
    font-size: 13px;
  }
  .pk-compact-detail .pk-compact-node .pk-compact-location > strong {
    font-size: 13px;
  }
  .pk-compact-detail .pk-compact-source {
    padding: 4px 8px;
    gap: 2px 12px;
    font-size: 13px;
    line-height: 17px;
  }
  .pk-compact-detail .pk-compact-glue-source {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 12px;
  }
  .pk-compact-detail .pk-compact-glue-source .pk-compact-source-link {
    grid-column: 1/-1;
    font-size: 13px;
    line-height: 17px;
    min-height: 17px;
    height: auto;
    padding: 0;
  }
  .pk-compact-detail .pk-compact-formula {
    padding: 4px 8px;
    margin: 4px 0;
    font-size: 14px;
    line-height: 20px;
  }
  .pk-compact-detail .pk-compact-glue-fields {
    grid-template-columns: minmax(150px, 1.55fr) minmax(58px, .55fr) minmax(82px, .75fr) minmax(92px, .8fr) minmax(136px, 1.25fr);
    gap: 8px;
    margin: 5px 0;
  }
  .pk-compact-detail .pk-compact-field {
    font-size: 12px;
    line-height: 17px;
    gap: 3px;
  }
  .pk-compact-detail .pk-compact-field :is(input, select) {
    height: 32px;
    min-height: 32px;
    padding: 4px 7px;
    font-size: 14px;
    line-height: 22px;
    border-radius: 5px;
  }
  .pk-compact-detail .pk-compact-glue-cost {
    padding: 2px 7px;
    gap: 1px;
    font-size: 12px;
    line-height: 16px;
  }
  .pk-compact-detail .pk-compact-glue-cost strong {
    font-size: 18px;
    line-height: 22px;
  }
  .pk-compact-detail .pk-compact-glue-cost small {
    font-size: 11px;
    line-height: 14px;
  }
  .pk-compact-detail .pk-compact-node-reason {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 13px;
  }
  .pk-compact-detail .pk-compact-original-note {
    margin: 4px 0;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 17px;
  }
  .pk-compact-detail .pk-compact-proposal {
    gap: 8px;
    margin: 4px 0;
  }
  .pk-compact-detail .pk-compact-proposal .ui-button {
    font-size: 13px;
    min-height: 28px;
    padding: 3px 8px;
  }
  .pk-compact-detail .pk-compact-proposal small {
    font-size: 12px;
  }
  .pk-compact-detail .pk-compact-evidence > summary,
  .pk-compact-detail .pk-compact-secondary button {
    min-height: 28px;
    padding-block: 3px;
    font-size: 13px;
  }
  .pk-compact-detail .pk-compact-secondary {
    gap: 8px 14px;
  }
  .pk-compact-detail .pk-compact-footer {
    min-height: 40px;
    padding: 3px 12px;
    gap: 10px;
  }
  .pk-compact-detail .pk-compact-footer .ui-button {
    min-height: 32px;
    height: 32px;
    padding: 4px 12px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
  }
  .pk-compact-detail .pk-compact-ownership {
    font-size: 12px;
  }
  .pk-compact-detail .pk-compact-ownership .pkb-article-ownership {
    gap: 6px 10px;
  }
  .pk-compact-detail .pk-compact-ownership .pkb-article-ownership > div {
    font-size: 12px;
    gap: 8px;
  }
  .pk-compact-detail .pk-compact-ownership summary {
    min-height: 30px;
    font-size: 12px;
  }
  .pk-compact-detail .pk-compact-ownership .ui-badge {
    font-size: 12px;
    line-height: 18px;
    padding: 2px 6px;
  }
  .pk-compact-detail .pk-packaging-extra {
    padding: 8px 12px;
    overflow: auto;
  }
}
@media (max-width: 1100px) {
  .pk-compact-detail .pk-compact-node-reason {
    margin-block: 10px;
  }
}
@media (max-width: 800px) {
  .pk-compact-detail .pk-compact-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
  }
  .pk-compact-detail .pk-compact-tabs nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    min-width: 0;
    gap: 0;
    scrollbar-width: thin;
  }
  .pk-compact-detail .pk-compact-tabs nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 20px;
  }
  .pk-compact-detail .pk-compact-tabs > .ui-button {
    font-size: 0;
    line-height: 0;
    padding: 0;
    min-width: 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    justify-content: center;
  }
  .pk-compact-detail .pk-compact-tabs > .ui-button svg {
    width: 18px;
    height: 18px;
  }
  .pk-compact-detail .pk-compact-workspace {
    height: auto;
    min-height: 0;
  }
  .pk-compact-detail .pk-compact-field :is(input, select) {
    min-height: 44px;
  }
  .pk-compact-detail .pk-packaging-extra {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 10px;
  }
  .pk-compact-detail .pk-packaging-table {
    overflow: visible;
    border: 0;
  }
  .pk-compact-detail .pk-packaging-table table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }
  .pk-compact-detail .pk-packaging-table thead {
    display: none;
  }
  .pk-compact-detail .pk-packaging-table tbody {
    display: block;
  }
  .pk-compact-detail .pk-packaging-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 10px;
    border: 1px solid var(--ui-line);
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
  }
  .pk-compact-detail .pk-packaging-table tbody th {
    grid-column: 1/-1;
    width: auto;
    display: block;
    padding: 7px 10px;
    background: var(--ui-subtle);
    font-size: 15px;
  }
  .pk-compact-detail .pk-packaging-table tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    padding: 7px 10px;
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
  }
  .pk-compact-detail .pk-packaging-table tbody td:before {
    content: attr(data-label);
    font-size: 12px;
    line-height: 17px;
    font-weight: 400;
    color: var(--ui-muted);
  }
  .pk-compact-detail .pk-compact-source-actions > .ui-button {
    min-height: 44px;
    width: 100%;
  }
  .pk-compact-detail .pk-compact-sources dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .pk-compact-detail .pk-compact-sources dd {
    margin-bottom: 8px;
  }
}
@media (max-width: 800px) {
  .pk-compact-detail .pk-compact-overview {
    padding: 8px;
    gap: 8px;
  }
  .pk-compact-detail .pk-compact-overview > div {
    padding-right: 5px;
    gap: 3px;
  }
  .pk-compact-detail .pk-compact-overview span {
    font-size: 13px;
    line-height: 17px;
  }
  .pk-compact-detail .pk-compact-overview strong {
    font-size: 16px;
    line-height: 20px;
    overflow-wrap: normal;
    word-break: normal;
  }
  .pk-compact-detail .pk-compact-overview small {
    font-size: 13px;
    line-height: 17px;
  }
  .pk-compact-detail .pk-compact-location {
    font-size: 13px;
    line-height: 18px;
    gap: 5px;
    padding: 6px 8px;
    min-height: 36px;
  }
  .pk-compact-detail .pk-compact-location > strong {
    font-size: 14px;
    line-height: 18px;
  }
  .pk-compact-detail .pk-compact-location > svg {
    width: 15px;
    height: 15px;
  }
  .pk-compact-detail .pk-packaging-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 10px;
    padding: 7px 8px;
    width: 100%;
    flex-basis: 100%;
  }
  .pk-compact-detail .pk-packaging-summary > svg {
    display: none;
  }
  .pk-compact-detail .pk-packaging-summary > div {
    min-width: 0;
  }
  .pk-compact-detail .pk-packaging-summary strong {
    font-size: 14px;
    line-height: 19px;
    white-space: normal;
  }
  .pk-compact-detail .pk-packaging-summary span {
    font-size: 12px;
    line-height: 16px;
  }
  .pk-compact-detail .pk-packaging-summary button {
    grid-column: 1/-1;
    justify-self: stretch;
    align-items: flex-start;
    min-height: 44px;
    margin: 0;
    padding: 2px 0;
  }
}
.ar-page {
  min-width: 0;
}
.ar-page .ui-page-heading {
  margin-bottom: 16px;
}
.ar-page .ui-page-heading h1 {
  overflow-wrap: anywhere;
}
.ar-page .ui-page-heading p {
  max-width: 850px;
  line-height: 1.55;
}
.ar-page .ui-badge {
  white-space: normal;
  text-align: left;
}
.ar-local-context {
  display: flex;
  align-items: center;
  gap: 9px 12px;
  flex-wrap: wrap;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 22px;
}
.ar-local-context strong {
  color: var(--ui-info);
  font-size: 14px;
}
.ar-local-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--ui-info);
  flex: 0 0 8px;
}
.ar-registry-meta,
.ar-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.ar-source-info {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ar-source-info svg {
  flex: 0 0 16px;
}
.ar-register {
  min-width: 0;
}
.ar-register .ui-section-tabs {
  margin: 0;
  padding-top: 3px;
}
.ar-register-toolbar {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(240px, .8fr) auto;
  align-items: end;
  gap: 20px;
}
.ar-register-toolbar > .ui-field > span {
  font-size: 14px;
  font-weight: 600;
}
.ar-search {
  position: relative;
  display: flex;
  align-items: center;
}
.ar-search > svg {
  position: absolute;
  left: 14px;
  color: var(--ui-muted);
  pointer-events: none;
}
.ar-search > input {
  width: 100%;
  padding-left: 44px;
  padding-right: 42px;
  min-width: 0;
}
.ar-search > button {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--ui-muted);
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
}
.ar-result-count {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 12px;
  white-space: nowrap;
}
.ar-result-count strong {
  font-size: 22px;
  color: var(--ui-text);
}
.ar-result-count span {
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-filter-summary {
  display: flex;
  gap: 8px 12px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--ui-line);
  padding: 8px 24px 12px;
  font-size: 14px;
  background: var(--ui-selected-soft);
}
.ar-filter-summary > .ui-button {
  margin-left: auto;
  font-size: 14px;
  min-height: 44px;
  padding: 6px 10px;
}
.ar-filter-summary > svg {
  flex-shrink: 0;
  color: var(--ui-muted);
}
.ar-catalog-table {
  min-width: 980px;
  table-layout: fixed;
  width: 100%;
}
.ar-catalog-table th:first-child {
  width: 21%;
}
.ar-catalog-table th:nth-child(2) {
  width: 18%;
}
.ar-catalog-table th:nth-child(3) {
  width: 31%;
}
.ar-catalog-table th:nth-child(4) {
  width: 19%;
}
.ar-catalog-table th:last-child {
  width: 132px;
}
.ar-catalog-table td,
.ar-catalog-table th {
  vertical-align: top;
  overflow-wrap: anywhere;
  padding: 20px 22px;
}
.ar-catalog-table thead th {
  font-size: 14px;
  color: var(--ui-muted);
  font-weight: 600;
  background: var(--ui-bg);
}
.ar-catalog-table tbody th {
  font-weight: 400;
  text-align: left;
}
.ar-article-link {
  font-weight: 700 !important;
  text-align: left;
  padding: 0 !important;
  min-height: 28px !important;
  font-size: 18px !important;
  line-height: 1.5;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.ar-article-name {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  margin-top: 5px;
  line-height: 1.5;
}
.ar-dimensions {
  display: block;
  line-height: 1.5;
}
.ar-secondary {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin-top: 5px;
}
.ar-question-cell > div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ar-question-cell strong {
  font-size: 14px;
  font-weight: 600;
}
.ar-question-cell p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
}
.ar-more-issues {
  color: var(--ui-link);
  border: 0;
  background: transparent;
  padding: 5px 0;
  margin-top: 4px;
  font: inherit;
  font-size: 14px;
  min-height: 32px;
  cursor: pointer;
  text-align: left;
}
.ar-more-issues:hover {
  text-decoration: underline;
}
.ar-row-action .ui-button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
.ar-row-action .ui-button > svg {
  flex-shrink: 0;
}
.ar-local-label {
  display: block;
  color: var(--ui-link);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
}
.ar-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-pagination > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ar-pagination .ui-button {
  min-height: 44px;
  font-size: 14px;
}
.ar-registry-footnote {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin: 16px 0;
}
.ar-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--ui-muted);
  font-size: 14px;
}
.ar-breadcrumb .ui-button {
  min-height: 44px;
  font-size: 14px;
  padding: 8px 12px;
}
.ar-detail .ui-page-actions {
  align-items: center;
}
.ar-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.ar-detail-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.ar-detail-tabs.ui-card {
  padding: 0;
  overflow: hidden;
}
.ar-detail-tabs .ui-section-tabs {
  padding: 0 22px;
  gap: 24px;
  flex-wrap: wrap;
  overflow: visible;
}
.ar-detail-tabs .ui-section-tabs button {
  padding-block: 18px;
  font-size: 14px;
}
.ar-editor-section {
  padding: 26px !important;
  min-width: 0;
}
.ar-editor-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}
.ar-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.ar-section-heading > svg {
  color: var(--ui-muted);
  flex-shrink: 0;
}
.ar-section-heading p,
.ar-section-description {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.6;
  margin: 0;
}
.ar-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.ar-fields .ui-field {
  min-width: 0;
}
.ar-fields .ui-field > span {
  font-size: 14px;
  font-weight: 600;
}
.ar-fields input,
.ar-fields select,
.ar-fields textarea {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
}
.ar-fields textarea {
  resize: vertical;
  min-height: 92px;
}
.ar-fields .ui-field small {
  font-size: 14px;
  line-height: 1.5;
}
.ar-span-full {
  grid-column: 1/-1;
}
.ar-source-value {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--ui-muted);
  line-height: 1.5;
}
.ar-source-comment {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ui-line);
}
.ar-source-comment h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.ar-source-comment p {
  font-size: 14px;
  color: var(--ui-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
  margin: 0 0 8px;
}
.ar-editor-section > .ui-notice {
  margin-top: 20px;
}
.ar-detail-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 16px;
  min-width: 0;
}
.ar-detail-aside .ui-card {
  padding: 22px;
}
.ar-detail-aside h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ar-detail-aside h2 > span {
  background: var(--ui-selected);
  color: var(--ui-text);
  font-size: 16px;
  min-width: 28px;
  height: 28px;
  padding: 2px 6px;
  box-sizing: border-box;
  border-radius: 8px;
  text-align: center;
}
.ar-detail-aside p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ui-muted);
  margin: 12px 0;
}
.ar-detail-aside ul {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ar-detail-aside li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.ar-detail-aside li svg {
  color: var(--ui-warning);
  flex: 0 0 17px;
  margin-top: 2px;
}
.ar-detail-aside .ui-button {
  width: 100%;
  font-size: 14px;
  min-height: 44px;
  padding: 8px;
}
.ar-preservation {
  background: var(--ui-bg) !important;
  box-shadow: none !important;
}
.ar-preservation > svg {
  color: var(--ui-muted);
}
.ar-preservation h3 {
  font-size: 16px;
  margin: 12px 0 8px;
}
.ar-preservation p {
  margin: 0;
}
.ar-small {
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-line-list {
  display: grid;
  gap: 18px;
  margin: 20px 0;
}
.ar-edit-line {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 20px;
  min-width: 0;
}
.ar-edit-line > header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ar-line-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-selected-soft);
  font-size: 14px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: var(--ui-text);
}
.ar-edit-line h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 1px 0 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.ar-edit-line > header > .ui-button {
  min-height: 36px;
  padding: 4px 8px;
  font-size: 14px;
}
.ar-edit-line .ar-fields {
  gap: 16px 20px;
}
.ar-edit-line .ar-fields textarea {
  min-height: 66px;
}
.ar-work-totals {
  background: var(--ui-bg);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 20px;
  margin-bottom: 24px;
}
.ar-issues-list {
  display: grid;
  gap: 16px;
}
.ar-issue-card {
  padding: 24px !important;
}
.ar-issue-card > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ar-issue-card h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 10px 0 0;
}
.ar-issue-card > p {
  font-size: 16px;
  line-height: 1.65;
  margin: 16px 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ar-issue-card .ui-field > span {
  font-size: 14px;
  font-weight: 600;
}
.ar-issue-card textarea {
  width: 100%;
  font-size: 16px;
  line-height: 1.55;
  min-height: 104px;
  resize: vertical;
}
.ar-issue-card.is-resolved {
  border-left: 3px solid var(--ui-info);
}
.ar-resolve {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
}
.ar-resolve input {
  width: 19px;
  height: 19px;
  min-height: 19px;
  flex: 0 0 19px;
  accent-color: var(--ui-accent);
  margin: 0;
}
.ar-history {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 24px;
}
.ar-history > li {
  display: flex;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ui-line);
}
.ar-history > li > svg {
  flex: 0 0 20px;
  color: var(--ui-muted);
  margin-top: 2px;
}
.ar-history > li > div {
  min-width: 0;
}
.ar-history strong {
  display: block;
  font-size: 16px;
}
.ar-history span {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  margin-top: 6px;
}
.ar-history p {
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.ar-history ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.6;
}
.ar-save-panel {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(240px, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  padding: 22px 26px;
  margin-top: 24px;
}
.ar-save-copy h2 {
  font-size: 18px;
  margin: 0 0 7px;
}
.ar-save-copy p {
  font-size: 14px;
  color: var(--ui-muted);
  margin: 0;
  line-height: 1.55;
}
.ar-save-reason > span {
  font-size: 14px;
  font-weight: 600;
}
.ar-save-reason textarea {
  font-size: 14px;
  line-height: 1.5;
  min-height: 72px;
  resize: vertical;
}
.ar-save-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.ar-save-actions > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-save-actions .ui-button {
  white-space: nowrap;
}
.ar-save-error {
  grid-column: 1/-1;
}
.ar-leave {
  border-color: var(--ui-input-line);
  margin-bottom: 20px;
}
.ar-leave h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.ar-leave p {
  line-height: 1.6;
}
.ar-button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 1250px) {
  .ar-register-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, .9fr);
  }
  .ar-result-count {
    grid-column: 1/-1;
    padding: 0;
    justify-content: flex-start;
  }
  .ar-detail-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .ar-editor-section {
    padding: 22px !important;
  }
  .ar-detail-aside .ui-card {
    padding: 18px;
  }
  .ar-detail-tabs .ui-section-tabs {
    gap: 18px;
    padding-inline: 20px;
  }
  .ar-save-panel {
    grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr);
  }
  .ar-save-actions {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .ar-catalog-table td,
  .ar-catalog-table th {
    padding: 18px;
  }
  .ar-catalog-table th:nth-child(3) {
    width: 32%;
  }
}
@media (max-width: 950px) {
  .ar-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ar-detail-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    order: -1;
  }
  .ar-detail-aside ul {
    display: none;
  }
  .ar-detail-aside p {
    margin-block: 10px;
  }
  .ar-preservation {
    display: none;
  }
  .ar-detail-aside > section:first-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 20px;
    align-items: center;
  }
  .ar-detail-aside h2 {
    justify-content: flex-start;
  }
  .ar-detail-aside > section:first-child > p {
    grid-column: 1;
    margin-bottom: 0;
  }
  .ar-detail-aside .ui-button {
    grid-column: 2;
    grid-row: 1/3;
    width: auto;
    max-width: 220px;
  }
  .ar-detail-aside .ar-small {
    display: none;
  }
}
@media (max-width: 760px) {
  .ar-register-toolbar {
    padding: 18px 16px;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .ar-result-count {
    grid-column: 1;
  }
  .ar-filter-summary {
    padding: 10px 16px;
  }
  .ar-catalog-table {
    min-width: 0;
    table-layout: auto;
  }
  .ar-catalog-table,
  .ar-catalog-table tbody {
    display: block;
  }
  .ar-catalog-table thead {
    display: none;
  }
  .ar-catalog-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 12px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--ui-line);
  }
  .ar-catalog-table td,
  .ar-catalog-table th {
    display: block;
    width: auto !important;
    border: 0;
    padding: 0 !important;
    min-width: 0;
  }
  .ar-catalog-table tbody th {
    grid-column: 1/-1;
  }
  .ar-catalog-table td[data-label]:before {
    content: attr(data-label);
    display: block;
    color: var(--ui-muted);
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 400;
  }
  .ar-catalog-table td.ar-question-cell {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .ar-catalog-table .ar-row-action {
    grid-column: 1/-1;
    grid-row: 4;
  }
  .ar-row-action .ui-button {
    width: 100%;
    justify-content: center;
  }
  .ar-catalog-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  .ar-question-cell p,
  .ar-question-cell strong {
    font-size: 16px;
  }
  .ar-article-link {
    font-size: 20px !important;
  }
  .ar-article-name {
    font-size: 14px;
  }
  .ar-pagination {
    align-items: flex-start;
  }
  .ar-pagination > div {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .ar-pagination > div > span {
    order: 3;
    width: 100%;
    text-align: center;
    padding-top: 4px;
  }
  .ar-registry-meta {
    gap: 8px;
    margin-bottom: 16px;
  }
  .ar-local-context {
    gap: 5px 8px;
    margin-bottom: 18px;
  }
  .ar-local-context > span:last-child {
    width: 100%;
  }
  .ar-breadcrumb > span {
    display: none;
  }
  .ar-detail .ui-page-heading h1 {
    font-size: 28px;
  }
  .ar-detail .ui-page-actions {
    justify-content: flex-start;
  }
  .ar-detail-aside > section:first-child {
    display: block;
    padding: 18px;
  }
  .ar-detail-aside .ui-button {
    margin-top: 14px;
    max-width: none;
    width: 100%;
  }
  .ar-detail-layout,
  .ar-detail-main {
    gap: 16px;
  }
  .ar-detail-tabs .ui-section-tabs {
    padding: 0 16px;
    gap: 20px;
  }
  .ar-detail-tabs .ui-section-tabs button {
    padding-block: 15px;
  }
  .ar-editor-section,
  .ar-issue-card {
    padding: 20px 16px !important;
  }
  .ar-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .ar-span-full {
    grid-column: auto;
  }
  .ar-section-heading {
    margin-bottom: 20px;
  }
  .ar-section-heading > svg {
    display: none;
  }
  .ar-editor-section h2 {
    font-size: 21px;
  }
  .ar-edit-line {
    padding: 16px 12px;
  }
  .ar-edit-line > header {
    flex-wrap: wrap;
  }
  .ar-edit-line > header > .ui-button {
    margin-left: 38px;
  }
  .ar-edit-line h3 {
    min-width: 120px;
  }
  .ar-edit-line .ar-fields {
    gap: 16px;
  }
  .ar-work-totals {
    padding: 16px;
  }
  .ar-issue-card h3 {
    font-size: 17px;
  }
  .ar-issue-card > p {
    font-size: 16px;
  }
  .ar-save-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px;
    gap: 18px;
  }
  .ar-save-actions {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
  }
  .ar-save-actions .ui-button {
    width: 100%;
    white-space: normal;
  }
  .ar-save-actions > span {
    text-align: center;
  }
  .ar-save-reason textarea {
    font-size: 16px;
  }
  .ar-save-error {
    grid-column: 1;
  }
  .ar-button-row .ui-button {
    width: 100%;
    justify-content: center;
  }
}
.ar-edit-line {
  padding: 0;
}
.ar-edit-line > summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  min-height: 66px;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
}
.ar-edit-line > summary::-webkit-details-marker {
  display: none;
}
.ar-edit-line > summary:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}
.ar-line-summary-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ar-line-summary-quantity {
  font-size: 16px;
  line-height: 1.5;
  text-align: right;
  color: var(--ui-text);
}
.ar-line-summary-action {
  font-size: 14px;
  color: var(--ui-link);
  padding-left: 6px;
}
.ar-line-summary-action:after {
  content: " \25be";
}
.ar-edit-line[open] > .ar-line-summary-action:after {
  content: " \25b4";
}
.ar-line-editor {
  padding: 20px;
  border-top: 1px solid var(--ui-line);
}
.ar-line-editor > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.ar-line-editor h3 {
  font-size: 16px;
  flex: 1;
  margin: 8px 0 0;
}
.ar-line-editor > header > .ui-button {
  min-height: 36px;
  padding: 4px 8px;
  font-size: 14px;
}
.ar-cut-list {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  margin: 20px 0;
  overflow: hidden;
  background: var(--ui-bg);
}
.ar-cut-list > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  min-height: 48px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.ar-cut-list > summary > span {
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--ui-muted);
}
.ar-cut-list > p {
  padding: 0 18px;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.55;
}
.ar-cut-list .ui-table {
  min-width: 550px;
}
.ar-cut-list th,
.ar-cut-list td {
  font-size: 14px;
}
.ar-ozon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
  background: var(--ui-bg);
  border-radius: var(--ui-radius);
  margin-top: 16px;
}
.ar-ozon-grid dt {
  font-size: 14px;
  color: var(--ui-muted);
  margin-bottom: 7px;
}
.ar-ozon-grid dd {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.ar-ozon-record {
  border-top: 1px solid var(--ui-line);
  padding-top: 24px;
  margin-top: 24px;
}
.ar-ozon-record > h3 {
  font-size: 18px;
  margin: 0;
}
.ar-ozon-record .ar-source-info {
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-ozon-meta {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin-top: 14px;
}
.ar-ozon-summary {
  display: flex;
  gap: 10px 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ui-line);
}
.ar-ozon-summary h3 {
  font-size: 16px;
  margin: 0;
}
.ar-ozon-summary p {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}
.ar-ozon-summary .ui-button {
  margin-left: auto;
  font-size: 14px;
  min-height: 44px;
  padding: 8px 12px;
}
@media (max-width: 760px) {
  .ar-edit-line {
    padding: 0;
  }
  .ar-edit-line > summary {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 14px 12px;
  }
  .ar-line-summary-quantity {
    grid-column: 2;
    text-align: left;
    font-size: 14px;
    color: var(--ui-muted);
  }
  .ar-line-summary-action {
    grid-column: 2;
    padding: 0;
  }
  .ar-line-editor {
    padding: 18px 12px;
  }
  .ar-line-editor > header {
    flex-wrap: wrap;
  }
  .ar-cut-list > summary {
    padding: 14px 12px;
    flex-wrap: wrap;
  }
  .ar-cut-list > summary > span {
    width: 100%;
    margin-left: 27px;
  }
  .ar-ozon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 16px;
  }
  .ar-ozon-grid dd {
    font-size: 18px;
  }
  .ar-ozon-summary .ui-button {
    margin-left: 0;
    width: 100%;
  }
}
.ar-page .ar-catalog-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.ar-page .ar-catalog-table :is(th, td) {
  white-space: normal !important;
  word-break: normal;
  overflow: visible;
  line-height: 1.55;
  padding: 18px;
}
.ar-page .ar-catalog-table thead th:first-child {
  width: 24%;
}
.ar-page .ar-catalog-table thead th:nth-child(2) {
  width: 20%;
}
.ar-page .ar-catalog-table thead th:nth-child(3) {
  width: auto;
}
.ar-page .ar-catalog-table thead th:last-child {
  width: 140px;
}
.ar-page .ar-catalog-table .ar-row-action {
  padding: 18px 12px;
}
.ar-page .ar-article-link {
  display: block;
  font-size: 16px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.5;
  min-height: 28px !important;
}
.ar-card-state {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.ar-card-state > .ui-badge {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
}
.ar-card-state .ar-local-label {
  margin: 0;
}
.ar-page .ar-question-cell p {
  white-space: normal !important;
  line-height: 1.55;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
}
.ar-page .ar-question-cell > div {
  white-space: normal;
  align-items: flex-start;
  gap: 6px;
}
.ar-page .ar-question-cell strong {
  white-space: normal;
  line-height: 1.5;
}
.ar-page .ar-row-action .ui-button {
  white-space: nowrap;
  max-width: 100%;
  padding-inline: 10px;
}
.ar-page .ar-catalog-table .ar-dimensions {
  white-space: normal;
  line-height: 1.5;
}
.ar-page .ar-catalog-table .ar-secondary {
  white-space: normal;
}
@media (max-width: 760px) {
  .ar-page .ar-catalog-table {
    table-layout: auto;
  }
  .ar-page .ar-catalog-table :is(th, td) {
    padding: 0 !important;
  }
  .ar-page .ar-catalog-table tbody th {
    width: auto !important;
  }
  .ar-page .ar-catalog-table td:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .ar-page .ar-catalog-table td.ar-row-action {
    grid-column: 1/-1;
    grid-row: 4;
  }
  .ar-page .ar-article-link {
    font-size: 18px !important;
  }
  .ar-card-state {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
  }
}
.ar-ozon-registry-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: -6px 0 18px;
  padding: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.ar-ozon-registry-summary > svg {
  color: var(--ui-info);
  flex: 0 0 18px;
}
.ar-ozon-registry-summary > strong {
  font-size: 14px;
  color: var(--ui-text);
  font-weight: 600;
}
.ar-ozon-read-date {
  font-size: 14px;
}
.ar-ozon-missing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ui-link);
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 4px 2px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}
.ar-ozon-missing:hover {
  text-decoration: underline;
}
.ar-ozon-missing:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .ar-ozon-registry-summary {
    gap: 4px 8px;
    margin: 0 0 16px;
  }
  .ar-ozon-read-date {
    width: 100%;
    margin-left: 26px;
  }
  .ar-ozon-missing {
    margin-left: 26px;
  }
}
.ar-source-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 24px 0;
  color: var(--ui-muted);
  font-size: 14px;
}
.ar-source-filter > label {
  font-size: 14px;
  flex: 0 0 auto;
}
.ar-source-filter > select {
  min-height: 44px;
  font-size: 14px;
  width: auto;
  max-width: 100%;
  padding-block: 8px;
  min-width: 280px;
}
.ar-ozon-history {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--ui-line);
}
.ar-ozon-history > h3 {
  font-size: 20px;
  margin: 0 0 18px;
  line-height: 1.45;
}
.ar-ozon-history > .ui-notice {
  margin-bottom: 20px;
}
@media (max-width: 760px) {
  .ar-source-filter {
    padding: 16px 16px 0;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .ar-source-filter > select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }
}
.ar-market-counts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding: 3px 0;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--ui-link);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
}
.ar-market-counts > span + span:before {
  content: "\b7";
  margin-right: 8px;
  color: var(--ui-muted);
}
.ar-market-counts:hover {
  text-decoration: underline;
}
.ar-market-counts:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.ar-market-base {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  background: var(--ui-bg);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 20px;
  margin-bottom: 22px;
}
.ar-market-base span {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin-bottom: 7px;
}
.ar-market-base strong {
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ar-market-links {
  display: grid;
  gap: 16px;
}
.ar-market-link {
  padding: 22px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  min-width: 0;
}
.ar-market-link > header {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ar-market-link h3 {
  margin: 0;
  flex: 1;
  font-size: 18px;
  line-height: 1.45;
  min-width: 140px;
  overflow-wrap: anywhere;
}
.ar-market-link dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}
.ar-market-link dt {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin-bottom: 5px;
}
.ar-market-link dd {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}
.ar-market-offer {
  grid-column: 1/-1;
}
.ar-market-offer dd {
  font-weight: 600;
}
.ar-market-source {
  grid-column: 1/-1;
}
.ar-market-source dd {
  font-size: 14px;
  color: var(--ui-muted);
}
@media (max-width: 760px) {
  .ar-market-base {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .ar-market-link {
    padding: 18px 14px;
  }
  .ar-market-link > header {
    gap: 10px;
  }
  .ar-market-link h3 {
    width: 100%;
    flex: 1 1 100%;
    order: 2;
  }
  .ar-market-link dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .ar-market-offer,
  .ar-market-source {
    grid-column: 1;
  }
  .ar-market-counts {
    font-size: 14px;
    min-height: 36px;
  }
}
.ar-market-link--compact {
  padding: 14px 18px;
}
.ar-market-link--compact > header {
  margin-bottom: 10px;
  gap: 6px 10px;
}
.ar-market-link--compact h3 {
  font-size: 16px;
}
.ar-market-link--compact .ui-badge {
  font-size: 14px;
  padding-block: 4px;
}
.ar-market-primary {
  display: flex;
  align-items: baseline;
  gap: 7px 18px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.ar-market-primary > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-market-primary > strong {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ar-market-brief-source {
  display: flex;
  gap: 4px 14px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px;
}
.ar-market-brief-source > time {
  font-size: 14px;
}
.ar-market-evidence {
  margin-top: 4px;
}
.ar-market-evidence > summary {
  font-size: 14px;
  color: var(--ui-link);
  min-height: 36px;
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.ar-market-evidence > summary::-webkit-details-marker {
  display: none;
}
.ar-market-evidence > summary:after {
  content: "\25be";
  font-size: 12px;
}
.ar-market-evidence[open] > summary:after {
  content: "\25b4";
}
.ar-market-evidence > dl {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--ui-line);
}
.ar-market-evidence > summary:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (max-width: 760px) {
  .ar-market-link--compact {
    padding: 14px;
  }
  .ar-market-link--compact > header {
    gap: 6px 8px;
  }
  .ar-market-link--compact h3 {
    flex: 1;
    min-width: 110px;
    width: auto;
    order: 0;
  }
  .ar-market-primary {
    gap: 3px 12px;
  }
  .ar-market-brief-source {
    gap: 2px 10px;
  }
  .ar-market-evidence > summary {
    min-height: 44px;
  }
}
.ar-detail-layout--bom {
  grid-template-columns: minmax(0, 1fr);
}
.ar-detail-layout--bom .ar-detail-aside {
  display: none;
}
.ar-bom-view {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.ar-bom-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px !important;
}
.ar-bom-intro h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.ar-bom-intro p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ui-muted);
  margin: 0;
  max-width: 800px;
}
.ar-bom-intro > .ui-button {
  flex-shrink: 0;
  min-height: 44px;
  font-size: 14px;
  padding: 8px 12px;
}
.ar-bom-group-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}
.ar-bom-group-summary > button {
  position: relative;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  text-align: left;
  min-height: 94px;
  cursor: pointer;
  font: inherit;
}
.ar-bom-group-summary > button:hover {
  background: var(--ui-selected-soft);
  border-color: var(--ui-accent);
}
.ar-bom-group-summary > button strong {
  font-size: 16px;
  line-height: 1.4;
  padding-right: 15px;
}
.ar-bom-group-summary > button span,
.ar-bom-group-summary > button small {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ui-muted);
}
.ar-bom-group-summary > button > svg {
  position: absolute;
  right: 12px;
  top: 16px;
  color: var(--ui-link);
}
.ar-bom-group-summary > button:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.ar-bom-group {
  padding: 0 !important;
  overflow: hidden;
  scroll-margin-top: 16px;
}
.ar-bom-group > header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-line);
}
.ar-bom-group h3 {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}
.ar-bom-group > header > span {
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-bom-group > .ui-table-scroll {
  border: 0;
  border-radius: 0;
}
.ar-page .ar-bom-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}
.ar-page .ar-bom-table :is(th, td) {
  white-space: normal !important;
  vertical-align: top;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 400;
}
.ar-page .ar-bom-table thead th {
  font-size: 14px;
  line-height: 1.4;
  background: var(--ui-bg);
  color: var(--ui-muted);
  font-weight: 600;
}
.ar-bom-table thead th:nth-child(1) {
  width: 24%;
}
.ar-bom-table thead th:nth-child(2) {
  width: 25%;
}
.ar-bom-table thead th:nth-child(3) {
  width: 27%;
}
.ar-bom-table thead th:nth-child(4),
.ar-bom-table thead th:nth-child(5) {
  width: 12%;
}
.ar-bom-table tbody th {
  background: var(--ui-surface);
}
.ar-bom-table tbody th > strong {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  display: block;
}
.ar-bom-purpose {
  display: flex;
  align-items: center;
  gap: 5px 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.ar-bom-purpose .ui-badge {
  font-size: 14px;
  padding: 3px 7px;
  line-height: 1.4;
}
.ar-bom-work-count {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin-top: 7px;
}
.ar-bom-inline-action,
.ar-bom-row-issues > button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ui-link);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 5px 0;
  white-space: normal;
  cursor: pointer;
  max-width: 100%;
}
.ar-bom-inline-action:hover,
.ar-bom-row-issues > button:hover {
  text-decoration: underline;
}
.ar-bom-inline-action:focus-visible,
.ar-bom-row-issues > button:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.ar-bom-physical {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.5;
}
.ar-bom-physical > strong {
  font-size: 16px;
  font-weight: 600;
}
.ar-bom-consumption {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.55;
  margin-top: 5px;
}
.ar-bom-row-issues {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 3px;
}
.ar-bom-row-issues > button {
  color: var(--ui-warning);
  padding-block: 4px;
}
.ar-bom-single-work > span {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}
.ar-bom-single-work > small {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.ar-bom-single-work > .ar-bom-inline-action {
  margin-top: 2px;
}
.ar-bom-amount > strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
}
.ar-bom-amount > small {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.ar-bom-work-subrow > td {
  border-top-style: dashed;
}
.ar-bom-edit-row > td {
  padding: 0 !important;
  background: var(--ui-bg);
}
.ar-bom-edit {
  padding: 22px;
  scroll-margin-top: 20px;
}
.ar-bom-edit-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ar-bom-edit h4 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
.ar-bom-edit-title > .ui-button {
  font-size: 14px;
  min-height: 44px;
  padding: 8px 12px;
}
.ar-bom-part-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ar-bom-source-edit {
  margin-top: 16px;
}
.ar-bom-source-edit > summary {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-link);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ar-bom-source-edit > .ar-fields {
  padding-top: 16px;
}
.ar-bom-work-heading {
  margin-top: 26px !important;
}
.ar-bom-work-edit-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.ar-bom-work-editor {
  padding: 20px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
.ar-bom-work-editor > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ar-bom-work-editor > header > strong {
  font-size: 16px;
  line-height: 1.5;
}
.ar-bom-work-editor > header > .ui-button {
  font-size: 14px;
  min-height: 44px;
  padding: 8px 10px;
}
.ar-bom-work-editor .ar-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ar-bom-unassigned {
  padding: 22px !important;
}
.ar-bom-unassigned h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.ar-bom-unassigned p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ui-muted);
}
.ar-bom-unassigned .ui-table {
  min-width: 600px;
}
.ar-bom-warnings {
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ui-muted);
}
.ar-bom-warnings > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ui-link);
}
.ar-bom-warnings li {
  margin: 6px 0;
}
.ar-bom-new-material {
  padding: 20px;
  margin-bottom: 14px;
}
.ar-bom-new-material h4 {
  font-size: 18px;
  margin: 0 0 18px;
}
.ar-bom-new-material > .ui-button {
  margin-top: 14px;
}
.ar-approval {
  padding: 24px !important;
  margin-top: 20px;
}
.ar-approval > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.ar-approval h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.ar-approval > header p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ui-muted);
  margin: 0;
}
.ar-approval-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 16px;
}
.ar-approval-roles > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--ui-bg);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}
.ar-approval-roles span,
.ar-approval-roles small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-muted);
}
.ar-approval-roles strong {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.ar-approval > .ar-small {
  line-height: 1.6;
  margin: 10px 0;
}
.ar-approval > .ui-field {
  margin: 18px 0;
}
.ar-approval > .ui-field > span {
  font-size: 14px;
  font-weight: 600;
}
.ar-approval textarea {
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
  width: 100%;
  min-height: 74px;
}
.ar-approval-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.ar-approval > .ui-notice {
  margin-top: 16px;
}
.ar-approval-events {
  margin-top: 18px;
  border-top: 1px solid var(--ui-line);
  padding-top: 8px;
}
.ar-approval-events > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--ui-link);
  cursor: pointer;
}
.ar-approval-events ol {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.ar-approval-events li {
  border-top: 1px solid var(--ui-line);
  padding-top: 14px;
}
.ar-approval-events strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}
.ar-approval-events span {
  display: block;
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.ar-approval-events p {
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
@media (max-width: 1100px) {
  .ar-bom-part-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ar-page .ar-bom-table :is(td, th) {
    padding: 10px 8px;
  }
  .ar-bom-table thead th:nth-child(1) {
    width: 23%;
  }
  .ar-bom-table thead th:nth-child(2) {
    width: 25%;
  }
  .ar-bom-table thead th:nth-child(3) {
    width: 27%;
  }
  .ar-bom-table thead th:nth-child(4),
  .ar-bom-table thead th:nth-child(5) {
    width: 12.5%;
  }
}
@media (max-width: 760px) {
  .ar-bom-intro {
    padding: 18px 16px !important;
    flex-direction: column;
    gap: 16px;
  }
  .ar-bom-intro h2 {
    font-size: 21px;
  }
  .ar-bom-intro > .ui-button {
    width: 100%;
    justify-content: center;
  }
  .ar-bom-group-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ar-bom-group-summary > button {
    padding: 12px;
    min-height: 110px;
  }
  .ar-bom-group-summary > button strong {
    font-size: 16px;
  }
  .ar-bom-group-summary > button > svg {
    right: 8px;
    top: 14px;
  }
  .ar-bom-group > header {
    padding: 16px;
  }
  .ar-bom-group > header h3 {
    font-size: 18px;
  }
  .ar-page .ar-bom-table {
    table-layout: auto;
    display: block;
  }
  .ar-bom-table thead {
    display: none;
  }
  .ar-bom-table tbody {
    display: block;
  }
  .ar-bom-table tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--ui-line);
  }
  .ar-page .ar-bom-table :is(td, th) {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .ar-bom-table tbody th {
    grid-column: 1/-1;
    background: transparent;
  }
  .ar-bom-table td[data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    color: var(--ui-muted);
    line-height: 1.5;
    margin-bottom: 7px;
  }
  .ar-bom-table td[data-label="\420\430\437\43c\435\440\44b  \438  \440\430\441\445\43e\434"],
  .ar-bom-table td[data-label="\421\432\44f\437\430\43d\43d\430\44f  \440\430\431\43e\442\430"] {
    grid-column: 1/-1;
  }
  .ar-bom-table .ar-bom-work-subrow {
    padding-left: 28px;
    background: var(--ui-bg);
  }
  .ar-bom-table tbody > .ar-bom-edit-row {
    display: block;
    padding: 0;
  }
  .ar-bom-edit-row > td {
    display: block;
    width: 100%;
  }
  .ar-bom-edit {
    padding: 20px 14px;
  }
  .ar-bom-edit-title {
    gap: 10px;
  }
  .ar-bom-edit-title h4 {
    font-size: 17px;
  }
  .ar-bom-part-fields,
  .ar-bom-work-editor .ar-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .ar-bom-work-editor {
    padding: 16px 12px;
  }
  .ar-bom-work-editor > header {
    flex-direction: column;
  }
  .ar-bom-edit .ar-span-full {
    grid-column: auto;
  }
  .ar-bom-group-summary > button small {
    font-size: 14px;
  }
  .ar-bom-work-count {
    font-size: 14px;
  }
  .ar-bom-unassigned,
  .ar-approval {
    padding: 20px 16px !important;
  }
  .ar-approval > header {
    flex-direction: column;
  }
  .ar-approval h2 {
    font-size: 21px;
  }
  .ar-approval-roles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ar-approval-actions .ui-button {
    width: 100%;
    justify-content: center;
  }
}
.ar-page .ar-bom-group-summary {
  gap: 8px;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ar-page .ar-bom-group-summary > button {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  margin: 0;
}
.ar-page .ar-bom-group-summary > button > span {
  flex: none;
}
@media (max-width: 760px) {
  .ar-page .ar-bom-group-summary {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    padding: 2px 0 8px;
    scrollbar-width: thin;
  }
  .ar-page .ar-bom-group-summary > button {
    flex: 0 0 auto;
  }
}
.ar-bom-intro {
  padding: 14px 18px !important;
  gap: 14px;
  align-items: center;
}
.ar-bom-intro h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
.ar-bom-intro p {
  font-size: 14px;
  line-height: 1.45;
}
.ar-bom-group-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ar-bom-group-summary > button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  min-height: 44px;
  border-radius: 8px;
  position: static;
}
.ar-bom-group-summary > button strong {
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
  white-space: normal;
}
.ar-bom-group-summary > button span {
  font-size: 14px;
  background: var(--ui-subtle);
  border-radius: 5px;
  padding: 1px 5px;
  line-height: 1.4;
  color: var(--ui-text);
}
.ar-bom-group-summary > button small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ui-warning);
}
.ar-bom-group-summary > button > svg {
  position: static;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.ar-bom-group > header {
  padding: 12px 16px;
}
.ar-bom-group h3 {
  font-size: 17px;
}
.ar-bom-view {
  gap: 14px;
}
.ar-detail:has(.ar-bom-view) .ar-local-context {
  margin-bottom: 12px;
}
.ar-detail:has(.ar-bom-view) .ar-breadcrumb {
  margin-bottom: 10px;
}
.ar-detail:has(.ar-bom-view) .ui-page-heading {
  margin-bottom: 8px;
}
.ar-detail:has(.ar-bom-view) .ui-page-heading h1 {
  font-size: 28px;
}
.ar-detail:has(.ar-bom-view) .ui-page-heading p {
  font-size: 14px;
  line-height: 1.45;
  margin-block: 4px;
}
.ar-detail:has(.ar-bom-view) .ar-detail-meta {
  margin-bottom: 12px;
}
.ar-detail-layout--bom .ar-detail-tabs .ui-section-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 18px;
  scrollbar-width: thin;
}
.ar-detail-layout--bom .ar-detail-tabs .ui-section-tabs button {
  flex-shrink: 0;
  padding-block: 11px;
  min-height: 44px;
}
.ar-page .ar-bom-table :is(td, th) {
  padding: 9px 10px;
}
.ar-bom-element-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-height: 35px;
}
.ar-bom-element-title > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.ar-bom-element-title > .ar-bom-edit-action {
  flex: 0 0 auto;
  min-height: 44px;
  margin-top: -8px;
  margin-bottom: -8px;
  padding: 5px 0;
  white-space: nowrap;
  font-size: 14px;
}
.ar-bom-purpose {
  margin-top: 3px;
  gap: 3px 7px;
  font-size: 14px;
  line-height: 1.4;
}
.ar-bom-purpose .ui-badge {
  font-size: 14px;
  padding: 2px 5px;
}
.ar-bom-physical {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
}
.ar-bom-physical > span {
  font-size: 14px;
  white-space: nowrap;
}
.ar-bom-consumption {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.45;
}
.ar-bom-single-work > span {
  font-size: 16px;
  line-height: 1.4;
}
.ar-bom-single-work > small {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.4;
}
.ar-bom-included {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.4;
  display: block;
  padding-top: 2px;
}
@media (max-width: 1100px) {
  .ar-page .ar-bom-table :is(td, th) {
    padding: 9px 8px;
  }
  .ar-bom-element-title {
    flex-wrap: wrap;
    gap: 2px 7px;
  }
  .ar-bom-element-title > strong {
    flex: 1 1 95px;
  }
  .ar-bom-element-title > .ar-bom-edit-action {
    margin-top: -4px;
    margin-bottom: -5px;
    min-height: 44px;
  }
}
@media (max-width: 760px) {
  .ar-bom-intro {
    padding: 14px 16px !important;
    align-items: flex-start;
    gap: 12px;
  }
  .ar-bom-intro > .ui-button {
    width: auto;
  }
  .ar-bom-group-summary {
    display: flex;
    gap: 7px;
  }
  .ar-bom-group-summary > button {
    min-height: 44px;
    padding: 7px 10px;
    gap: 6px;
  }
  .ar-bom-group-summary > button strong {
    font-size: 14px;
  }
  .ar-bom-group-summary > button > svg {
    position: static;
    right: auto;
    top: auto;
  }
  .ar-bom-group > header {
    padding: 12px 16px;
  }
  .ar-page .ar-bom-table :is(td, th) {
    padding: 0;
  }
  .ar-bom-element-title {
    flex-wrap: nowrap;
  }
  .ar-bom-element-title > strong {
    flex: 1;
  }
  .ar-bom-element-title > .ar-bom-edit-action {
    margin-block: -5px;
  }
  .ar-bom-purpose {
    margin-top: 6px;
  }
  .ar-bom-group-summary > button small {
    font-size: 14px;
  }
}
.ui-page.ar-detail--compact {
  padding: 12px 20px;
}
.ar-detail--compact .ar-local-context {
  margin-bottom: 4px;
  gap: 6px 10px;
  line-height: 1.4;
}
.ar-detail-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.ar-detail--compact .ar-breadcrumb {
  margin: 0 !important;
  flex: none;
}
.ar-detail--compact .ar-detail-topline .ui-page-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  margin: 0 !important;
  min-width: 0;
}
.ar-detail--compact .ar-detail-topline .ui-page-heading h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
}
.ar-detail--compact .ar-detail-topline .ui-page-heading p {
  margin: 2px 0 0;
  font-size: 14px;
}
.ar-detail--compact .ui-page-actions {
  gap: 6px;
  flex-wrap: wrap;
}
.ar-detail-source {
  position: relative;
  flex: none;
  font-size: 14px;
  color: var(--ui-muted);
}
.ar-detail-source > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  cursor: pointer;
  color: var(--ui-link);
}
.ar-detail-source > div {
  position: absolute;
  right: 0;
  top: 100%;
  width: 360px;
  max-width: 80vw;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  padding: 14px;
  z-index: 30;
  box-shadow: var(--ui-shadow);
}
.ar-detail-source > div > span {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}
.ar-detail--compact .ar-detail-layout {
  gap: 14px;
}
.ar-detail--compact .ar-detail-main,
.ar-detail--compact .ar-bom-view {
  gap: 8px;
}
.ar-detail--compact .ar-detail-tabs .ui-section-tabs {
  padding: 0 12px;
  gap: 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.ar-detail--compact .ar-detail-tabs .ui-section-tabs button {
  min-height: 44px;
  padding: 8px 0;
  flex: none;
}
.ar-detail--compact .ar-bom-intro {
  min-height: 44px;
  padding: 0 4px !important;
  border: 0;
  box-shadow: none;
  background: transparent;
  gap: 12px;
}
.ar-detail--compact .ar-bom-intro > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.ar-detail--compact .ar-bom-intro h2 {
  font-size: 18px;
  margin: 0;
}
.ar-detail--compact .ar-bom-intro p {
  font-size: 14px;
  margin: 0;
}
.ar-detail--compact .ar-bom-group-summary {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 0 0 4px;
  scrollbar-width: thin;
}
.ar-detail--compact .ar-bom-group-summary > button {
  flex: none;
  padding: 6px 10px;
  gap: 6px;
}
.ar-detail--compact .ar-bom-group-summary > button[aria-pressed=true] {
  background: var(--ui-selected);
  border-color: var(--ui-accent);
}
.ar-detail--compact .ar-bom-group > header {
  padding: 6px 12px;
  min-height: 34px;
}
.ar-detail--compact .ar-bom-group h3 {
  font-size: 16px;
}
.ar-detail--compact .ar-bom-table thead th:nth-child(1) {
  width: 31%;
}
.ar-detail--compact .ar-bom-table thead th:nth-child(2) {
  width: 23%;
}
.ar-detail--compact .ar-bom-table thead th:nth-child(3) {
  width: 30%;
}
.ar-detail--compact .ar-bom-table thead th:nth-child(4),
.ar-detail--compact .ar-bom-table thead th:nth-child(5) {
  width: 8%;
}
.ar-detail--compact .ar-bom-table :is(th, td) {
  padding: 3px 10px;
  line-height: 1.3;
}
.ar-detail--compact .ar-bom-table thead th {
  padding-block: 8px;
}
.ar-detail--compact .ar-bom-element-title {
  align-items: center;
  min-height: 44px;
  gap: 8px;
}
.ar-detail--compact .ar-bom-element-title > strong {
  line-height: 1.3;
}
.ar-detail--compact .ar-bom-element-title .ui-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 5px;
  font-size: 14px;
  white-space: nowrap;
}
.ar-detail--compact .ar-bom-element-title > .ar-bom-edit-action {
  margin: 0;
  padding: 0;
  min-height: 44px;
}
.ar-detail--compact .ar-bom-physical {
  gap: 3px 8px;
  line-height: 1.3;
}
.ar-detail--compact .ar-bom-consumption {
  margin-top: 2px;
  line-height: 1.3;
}
.ar-detail--compact .ar-bom-single-work {
  padding: 4px 0;
}
.ar-detail--compact .ar-bom-single-work > span {
  line-height: 1.3;
}
.ar-bom-work-meta {
  display: flex;
  gap: 3px 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.ar-bom-work-meta small {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ui-muted);
}
.ar-bom-work-meta .ar-bom-work-issue {
  color: var(--ui-warning);
}
.ar-detail--compact .ar-bom-amount {
  vertical-align: middle;
}
.ar-detail--compact .ar-bom-inline-action {
  padding: 0;
  min-height: 44px;
  line-height: 1.3;
}
.ar-bom-part-issues {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-warning);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ar-bom-part-issues:hover {
  text-decoration: underline;
}
.ar-bom-part-issues:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}
.ar-bom-edit-issues {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ui-warning);
  margin: 0 0 12px;
  padding-left: 20px;
}
.ar-detail--compact .ar-bom-edit {
  padding: 14px;
}
.ar-detail--compact .ar-bom-edit-title {
  margin-bottom: 10px;
}
.ar-detail--compact .ar-bom-edit .ar-fields {
  gap: 10px 16px;
}
.ar-detail--compact .ar-bom-work-heading {
  margin-top: 14px !important;
}
.ar-detail--compact .ar-bom-work-edit-list {
  margin: 10px 0;
  gap: 10px;
}
.ar-detail--compact .ar-bom-work-editor {
  padding: 12px;
}
.ar-detail--compact .ar-bom-work-editor > header {
  margin-bottom: 10px;
}
.ar-bom-extra > summary,
.ar-approval-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ui-link);
}
.ar-detail--compact .ar-save-panel {
  padding: 10px 14px;
  margin-top: 8px;
  gap: 10px 16px;
}
.ar-detail--compact .ar-save-panel--clean {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px;
  min-height: 52px;
}
.ar-detail--compact .ar-save-panel--clean .ar-save-reason,
.ar-detail--compact .ar-save-panel--clean .ar-save-copy p,
.ar-detail--compact .ar-save-panel--clean .ar-save-actions > span {
  display: none;
}
.ar-detail--compact .ar-save-copy h2 {
  font-size: 16px;
  margin: 0;
}
.ar-detail--compact .ar-save-actions {
  flex-direction: row;
  align-items: center;
}
.ar-detail--compact .ar-save-actions .ui-button {
  min-height: 44px;
  font-size: 14px;
  padding: 6px 12px;
}
.ar-approval-disclosure {
  margin-top: 6px;
  border-bottom: 1px solid var(--ui-line);
}
.ar-approval-disclosure > .ar-approval {
  margin-top: 4px;
}
@media (max-width: 760px) {
  .ui-page.ar-detail--compact {
    padding: 10px 12px;
  }
  .ar-detail-topline {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .ar-detail-topline .ar-breadcrumb {
    order: 0;
  }
  .ar-detail-topline .ar-detail-source {
    order: 1;
    margin-left: auto;
  }
  .ar-detail--compact .ar-detail-topline .ui-page-heading {
    order: 2;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ar-detail--compact .ar-bom-intro {
    flex-direction: row;
    align-items: center !important;
  }
  .ar-detail--compact .ar-bom-intro > div {
    gap: 3px;
  }
  .ar-detail--compact .ar-bom-table :is(td, th) {
    padding: 0;
  }
  .ar-detail--compact .ar-bom-table tbody > tr {
    gap: 8px;
    padding: 12px;
  }
  .ar-detail--compact .ar-save-panel--clean,
  .ar-detail--compact .ar-save-actions {
    flex-wrap: wrap;
  }
  .ar-detail-source > div {
    width: 280px;
  }
}
.ar-detail--compact .ar-bom-work-subrow > td {
  border-top: 1px dashed var(--ui-line);
}
@media (max-width: 760px) {
  .ar-detail--compact .ar-bom-intro {
    flex-direction: row;
    align-items: center !important;
  }
  .ar-detail--compact .ar-bom-intro > div {
    flex: 1;
    min-width: 0;
    gap: 3px 8px;
  }
  .ar-detail--compact .ar-bom-intro > .ui-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .ar-detail--compact .ar-bom-add-label {
    display: none;
  }
}
.ar-detail--compact .ar-parameters-section {
  padding: 14px 18px !important;
}
.ar-parameters-section .ar-section-heading {
  margin-bottom: 10px;
  align-items: center;
}
.ar-parameters-section .ar-section-heading h2 {
  font-size: 18px;
  margin: 0;
}
.ar-parameters-section .ar-section-heading p {
  display: none;
}
.ar-parameters-section .ar-parameter-fields {
  gap: 8px 16px;
}
.ar-parameters-section .ar-parameter-fields .ui-field {
  gap: 4px;
}
.ar-parameters-section .ar-parameter-fields :is(input, select) {
  min-height: 44px;
  padding-block: 7px;
}
.ar-parameters-section .ar-parameter-fields textarea {
  min-height: 54px;
  padding-block: 6px;
  line-height: 1.3;
}
.ar-parameters-section .ar-parameter-fields small,
.ar-parameters-section .ar-source-value {
  line-height: 1.3;
}
.ar-parameters-section .ar-ozon-summary {
  margin-top: 10px;
  padding-top: 8px;
  gap: 12px;
}
.ar-parameters-section .ar-ozon-summary h3 {
  font-size: 16px;
  margin: 0;
}
.ar-parameters-section .ar-ozon-summary p {
  margin: 2px 0 0;
  line-height: 1.3;
}
.ar-parameters-section .ar-source-comment {
  margin-top: 6px;
  padding-top: 0;
}
.ar-parameters-section .ar-source-comment summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ui-link);
  font-size: 14px;
}
.ar-parameters-section .ar-source-comment summary:before {
  content: "\25b8";
  margin-right: 8px;
}
.ar-parameters-section .ar-source-comment[open] summary:before {
  content: "\25be";
}
@media (min-width: 1050px) {
  .ar-parameters-section .ar-parameter-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ar-parameters-section .ar-parameter-name {
    grid-column: span 2;
  }
  .ar-detail--compact .ar-detail-aside {
    gap: 8px;
  }
  .ar-detail--compact .ar-detail-aside .ui-card {
    padding: 14px;
  }
  .ar-detail--compact .ar-detail-aside p {
    margin: 8px 0;
    line-height: 1.4;
  }
  .ar-detail--compact .ar-detail-aside ul {
    margin: 10px 0;
    gap: 8px;
  }
  .ar-detail--compact .ar-detail-aside li {
    line-height: 1.3;
  }
}
@media (max-width: 1049px) {
  .ar-parameter-name,
  .ar-parameter-state {
    grid-column: 1/-1;
  }
}
@media (min-width: 1050px) {
  .ar-parameter-extras {
    display: flex;
    align-items: start;
    gap: 12px;
    border-top: 1px solid var(--ui-line);
    margin-top: 8px;
    padding-top: 6px;
  }
  .ar-parameters-section .ar-ozon-summary {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    align-items: center;
  }
  .ar-parameters-section .ar-source-comment {
    width: 215px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .ar-parameters-section .ar-source-comment summary {
    min-height: 44px;
  }
  .ar-parameters-section .ar-ozon-summary p {
    display: none;
  }
  .ar-detail--compact .ar-parameters-section {
    padding: 10px 16px !important;
  }
  .ar-parameters-section .ar-section-heading {
    margin-bottom: 6px;
  }
}
@media (min-width: 1050px) {
  .ar-detail--compact .ar-detail-aside .ar-preservation {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 10px 14px;
  }
  .ar-detail--compact .ar-preservation h3 {
    margin: 0;
    font-size: 16px;
  }
  .ar-detail--compact .ar-preservation p {
    grid-column: 2;
    margin: 0;
    line-height: 1.3;
  }
}
.ar-bom-page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.ar-bom-page-controls .ui-button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
}
.ar-detail--compact .ar-bom-group > header {
  padding-block: 0;
}
@media (min-width: 1050px) {
  .ar-detail--compact .ar-bom-view {
    gap: 4px;
  }
  .ar-detail--compact .ar-bom-group-summary {
    padding-bottom: 0;
  }
  .ar-detail--compact .ar-bom-group-summary > button {
    min-height: 44px;
  }
  .ar-detail--compact .ar-bom-element-title {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
  }
  .ar-detail--compact .ar-bom-element-title > strong {
    flex: 1;
  }
}
.ar-detail--compact .ar-bom-view .ar-bom-intro {
  min-height: 44px;
  margin: 0;
}
.ar-detail--compact .ar-bom-view .ar-bom-warnings {
  margin-block: 0;
}
@media (min-width: 1050px) {
  .ar-detail--compact .ar-bom-view {
    gap: 3px;
  }
}
.pk-knowledge {
  font: 16px/1.35 var(--ui-font,Arial,sans-serif);
  color: var(--ui-text,#172133);
  width: 100%;
  min-width: 0;
  max-width: 1800px;
  margin: 0 auto;
  box-sizing: border-box;
}
.pk-knowledge * {
  box-sizing: border-box;
}
.pk-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 52px;
}
.pk-heading h1 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
}
.pk-heading nav {
  display: flex;
  gap: 16px;
  align-self: stretch;
}
.pk-heading nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px;
  color: var(--ui-text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.pk-heading nav a.is-active {
  border-color: var(--ui-accent,#ffdb4d);
  font-weight: 600;
}
.pk-sources {
  margin-left: auto;
  position: relative;
  font-size: 14px;
}
.pk-sources summary {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  min-height: 44px;
  color: var(--ui-link,#1456d9);
}
.pk-sources > div {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--ui-line,#dce3ee);
  border-radius: 8px;
  padding: 14px;
  width: 360px;
  box-shadow: 0 6px 24px #14213c20;
}
.pk-filters {
  display: flex;
  gap: 10px;
  padding: 8px 0 12px;
}
.pk-filters input,
.pk-filters select,
.pk-provider {
  min-height: 44px;
  border: 1px solid var(--ui-line,#dce3ee);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  padding: 8px 12px;
  color: inherit;
}
.pk-search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 120px;
}
.pk-search svg {
  position: absolute;
  left: 12px;
  color: var(--ui-muted,#627084);
}
.pk-search input {
  width: 100%;
  padding-left: 40px;
}
.pk-provider {
  display: flex;
  align-items: center;
  min-width: 120px;
}
.pk-filters select {
  min-width: 150px;
}
.pk-group {
  border: 1px solid var(--ui-line,#dce3ee);
  border-radius: 9px;
  margin-bottom: 8px;
  background: #fff;
  overflow: clip;
}
.pk-group-head {
  display: grid;
  grid-template-columns: 42px minmax(160px, 1fr) 140px 120px 170px 24px;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: #fff;
  color: inherit;
  border: 0;
  text-align: left;
  cursor: pointer;
  min-height: 66px;
  font: inherit;
}
.pk-group.is-open > .pk-group-head {
  background: #fff9e4;
}
.pk-group-head:disabled {
  opacity: 1;
  cursor: default;
}
.pk-group-head img {
  object-fit: contain;
  width: 42px;
  height: 46px;
  border-radius: 4px;
}
.pk-group-title strong {
  font-size: 18px;
}
.pk-group-title small {
  display: block;
  font-size: 14px;
  color: var(--ui-muted,#627084);
}
.pk-question-state {
  color: #a34b00;
}
.pk-article-row {
  display: grid;
  grid-template-columns: minmax(185px, 220px) 1fr 36px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 14px;
  border-top: 1px solid var(--ui-line,#dce3ee);
}
.pk-article-row.is-selected {
  background: #f3f7ff;
}
.pk-article-name {
  font-weight: 600;
  color: var(--ui-link,#1456d9);
  overflow-wrap: anywhere;
}
.pk-question-links {
  display: flex;
  gap: 8px 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}
.pk-question-links a {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  color: var(--ui-link,#1456d9);
}
.pk-question-links svg {
  flex-shrink: 0;
  color: #b47b00;
}
.pk-row-chevron,
.pk-page-button {
  min-width: 36px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.pk-list-footer,
.pk-workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 14px;
  font-size: 14px;
  min-height: 48px;
}
.pk-list-footer > div,
.pk-workspace-footer > div {
  display: flex;
  gap: 8px;
}
.pk-list-footer .ui-button,
.pk-workspace-footer .ui-button {
  padding: 5px 10px;
  min-height: 40px;
}
.pk-page-button {
  border: 1px solid var(--ui-line,#dce3ee);
  border-radius: 7px;
  text-decoration: none;
}
.pk-page-button[aria-disabled=true] {
  opacity: .4;
  pointer-events: none;
}
.pk-workspace-footer {
  padding: 0 4px;
}
.pk-workspace-footer small,
.pk-muted {
  color: var(--ui-muted,#627084);
}
.pk-unlinked {
  padding: 8px 14px;
  background: #fff9e8;
  font-size: 14px;
}
.pk-unlinked button {
  background: none;
  border: 0;
  color: var(--ui-link,#1456d9);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  min-height: 36px;
}
.pk-empty {
  padding: 16px;
}
.pk-knowledge a:focus-visible,
.pk-knowledge button:focus-visible {
  outline: 2px solid var(--ui-link,#1456d9);
  outline-offset: 2px;
}
.pk-compact-detail .pk-legacy-slot :is(.ar-local-context, .ar-detail-topline, .ar-detail-tabs, .ar-detail-aside, .pkb-article-ownership, .ar-save-panel, .ar-approval-disclosure) {
  display: none;
}
.pk-compact-detail .pk-legacy-slot .ar-detail-layout {
  display: block;
}
.pk-compact-detail .pk-legacy-slot .ar-page {
  padding: 0;
  margin: 0;
  max-width: none;
}
.pk-compact-detail .pk-legacy-slot .ar-editor-section {
  padding: 12px;
  border: 0;
}
.pk-compact-guard .ar-page > *:not(.ar-leave) {
  display: none;
}
.pk-compact-guard .ar-page {
  padding: 0;
}
.pk-compact-active .pk-scope-links {
  display: none;
}
@media (max-width: 1100px) {
  .pk-group-head {
    grid-template-columns: 36px minmax(140px, 1fr) 100px 95px 110px 22px;
    gap: 8px;
    font-size: 14px;
  }
  .pk-group-title strong {
    font-size: 16px;
  }
  .pk-heading {
    gap: 16px;
  }
  .pk-article-row {
    grid-template-columns: 180px 1fr 32px;
  }
  .pk-workspace-footer small {
    max-width: 300px;
  }
}
@media (max-width: 760px) {
  .pk-heading {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .pk-heading h1 {
    font-size: 23px;
  }
  .pk-heading nav {
    order: 3;
    width: 100%;
    gap: 16px;
  }
  .pk-heading nav a {
    font-size: 15px;
  }
  .pk-filters {
    flex-wrap: wrap;
  }
  .pk-search {
    flex-basis: 100%;
  }
  .pk-provider {
    min-width: auto;
  }
  .pk-filters select {
    min-width: 0;
    flex: 1;
  }
  .pk-group-head {
    grid-template-columns: 30px 1fr 24px;
    padding: 8px;
  }
  .pk-group-head > span:nth-of-type(2),
  .pk-group-head > span:nth-of-type(3),
  .pk-group-head > span:nth-of-type(4) {
    display: none;
  }
  .pk-group-head img {
    width: 30px;
    height: 38px;
  }
  .pk-article-row {
    grid-template-columns: 1fr 32px;
    gap: 2px 8px;
  }
  .pk-question-links {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .pk-row-chevron {
    grid-column: 2;
    grid-row: 1;
  }
  .pk-workspace-footer {
    flex-wrap: wrap;
  }
  .pk-sources > div {
    width: min(340px, 90vw);
  }
}
@media (min-width: 1101px) {
  .pk-knowledge > .pk-heading {
    min-height: 48px;
    height: 48px;
  }
  .pk-knowledge > .pk-filters {
    padding: 4px 0 8px;
    min-height: 56px;
  }
  .pk-knowledge .pk-group-head {
    min-height: 60px;
    padding-block: 5px;
  }
  .pk-knowledge .pk-article-row,
  .pk-knowledge .pk-list-footer {
    min-height: 44px;
    padding-block: 0;
  }
  .pk-knowledge > .pk-workspace-footer {
    min-height: 28px;
    padding-block: 0;
  }
  .pk-knowledge .pk-group-title {
    overflow: hidden;
  }
  .pk-knowledge .pk-group-title strong {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}
.pk-knowledge .pk-groups {
  border: 1px solid var(--ui-line,#dce3ee);
  border-radius: 8px;
  overflow: clip;
  background: var(--ui-surface,#fff);
}
.pk-knowledge .pk-groups > .pk-group {
  border: 0;
  border-radius: 0;
  margin: 0;
  overflow: visible;
}
.pk-knowledge .pk-groups > .pk-group + .pk-group {
  border-top: 1px solid var(--ui-line,#dce3ee);
}
.pk-knowledge .pk-group-head {
  border-radius: 0;
}
.pk-knowledge .pk-group-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 115px 180px 22px;
  gap: 12px;
  padding: 5px 12px;
  background: var(--ui-subtle,#f4f6fa);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ui-muted,#627084);
}
.pk-knowledge .pk-article-columns {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 28px;
  gap: 12px;
  padding: 4px 12px;
  background: var(--ui-subtle,#f4f6fa);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ui-muted,#627084);
  border-top: 1px solid var(--ui-line,#dce3ee);
}
.pk-knowledge .pk-article-row {
  grid-template-columns: 230px minmax(0, 1fr) 28px;
  padding-inline: 12px;
}
.pk-knowledge .pk-article-row:nth-of-type(2n):not(.is-selected) {
  background: #f8faff;
}
.pk-knowledge .pk-article-name {
  white-space: nowrap;
  font-size: 15px;
}
.pk-knowledge .pk-scope-line {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 26px;
  font-size: 14px;
  padding: 2px 10px 5px;
}
.pk-knowledge .pk-scope-line details {
  position: relative;
  border-left: 1px solid var(--ui-line);
  padding-left: 18px;
}
.pk-knowledge .pk-scope-line summary {
  list-style: none;
  cursor: pointer;
  color: var(--ui-link,#1456d9);
  text-decoration: underline;
}
.pk-knowledge .pk-scope-line details > div {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 8;
  width: min(440px, 80vw);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  box-shadow: 0 6px 20px #1721331a;
}
.pk-knowledge .pk-scope-line p {
  margin: 0 0 6px;
}
.pk-knowledge .pk-unlinked-link {
  border: 0;
  background: none;
  color: var(--ui-link,#1456d9);
  text-decoration: underline;
  font: inherit;
  text-align: left;
  padding: 0;
  flex: 1;
}
.pk-knowledge .pk-list-footer > span {
  margin-left: auto;
}
.pk-knowledge .pk-workspace-footer {
  flex-wrap: wrap;
}
.pk-knowledge .pk-workspace-footer > div {
  align-items: center;
  gap: 8px;
}
.pk-knowledge .pk-workspace-footer > div:first-child {
  margin-right: auto;
}
.pk-knowledge .pk-group-pagination {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pk-knowledge .pk-workspace-footer select {
  font: inherit;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  background: #fff;
  min-width: 80px;
  color: inherit;
}
.pk-knowledge .pk-workspace-footer small {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 16px;
}
.pk-knowledge--inline .pk-workspace-footer small {
  flex: 0 1 auto;
}
@media (min-width: 1101px) {
  .pk-knowledge {
    padding: 6px 10px 4px 8px;
    font-size: 15px;
    line-height: 1.3;
    --ui-control:var(--ui-control-compact);
  }
  .pk-knowledge :where(button, .ui-button, input:not([type=checkbox]):not([type=radio]), select) {
    min-height: 32px;
    font-size: 14px;
    line-height: 20px;
    padding-block: 4px;
  }
  .pk-knowledge > .pk-heading {
    height: 36px;
    min-height: 36px;
    gap: 26px;
  }
  .pk-knowledge .pk-heading h1 {
    font-size: 24px;
    line-height: 30px;
  }
  .pk-knowledge .pk-heading nav {
    gap: 20px;
  }
  .pk-knowledge .pk-heading nav a {
    min-height: 32px;
    padding: 2px 4px;
    font-size: 15px;
  }
  .pk-knowledge .pk-sources summary {
    min-height: 30px;
    font-size: 14px;
  }
  .pk-knowledge > .pk-filters {
    min-height: 42px;
    padding: 4px 0 6px;
    gap: 10px;
  }
  .pk-knowledge .pk-filters :is(input, select, .pk-provider) {
    min-height: 32px;
    height: 32px;
    padding: 4px 10px;
    font-size: 15px;
    border-radius: 6px;
  }
  .pk-knowledge .pk-filters .pk-search input {
    padding-left: 36px;
  }
  .pk-knowledge .pk-search svg {
    left: 10px;
  }
  .pk-knowledge .pk-provider {
    min-width: 100px;
  }
  .pk-knowledge .pk-filters select {
    min-width: 140px;
  }
  .pk-knowledge .pk-filters > .ui-button {
    white-space: nowrap;
    padding-inline: 14px;
  }
  .pk-knowledge .pk-group-head {
    grid-template-columns: 28px minmax(120px, 1fr) 150px 115px 180px 22px;
    gap: 12px;
    min-height: 38px;
    padding: 4px 12px;
    font-size: 15px;
    line-height: 20px;
  }
  .pk-knowledge .pk-group-head img {
    width: 24px;
    height: 28px;
    object-fit: contain;
    border-radius: 3px;
  }
  .pk-knowledge .pk-group-title strong {
    font-size: 16px;
    line-height: 20px;
  }
  .pk-knowledge .pk-article-row {
    min-height: 48px;
    padding-block: 4px;
  }
  .pk-knowledge--inline .pk-article-row {
    min-height: 34px;
    padding-block: 0;
  }
  .pk-knowledge .pk-question-links {
    font-size: 14px;
    line-height: 18px;
    gap: 3px 15px;
  }
  .pk-knowledge .pk-question-links a {
    min-height: 18px;
    gap: 6px;
  }
  .pk-knowledge .pk-question-links svg {
    width: 15px;
    height: 15px;
  }
  .pk-knowledge .pk-row-chevron {
    min-height: 28px;
    min-width: 26px;
  }
  .pk-knowledge .pk-list-footer {
    min-height: 36px;
    padding: 2px 12px;
    font-size: 14px;
    gap: 12px;
  }
  .pk-knowledge .pk-list-footer :is(.ui-button, .pk-page-button),
  .pk-knowledge .pk-workspace-footer .ui-button {
    min-height: 30px;
    height: 30px;
    min-width: 30px;
    padding: 3px 7px;
    border-radius: 6px;
  }
  .pk-knowledge .pk-list-footer svg,
  .pk-knowledge .pk-workspace-footer svg {
    width: 18px;
    height: 18px;
  }
  .pk-knowledge > .pk-workspace-footer {
    min-height: 38px;
    padding: 3px 10px 0;
    gap: 4px 12px;
    font-size: 14px;
  }
  .pk-knowledge--inline > .pk-workspace-footer {
    min-height: 34px;
    flex-wrap: nowrap;
  }
  .pk-knowledge .pk-workspace-footer select {
    height: 30px;
    min-height: 30px;
    padding: 2px 8px;
  }
  .pk-knowledge .pk-group-navigation {
    margin-inline: auto !important;
  }
  .pk-knowledge .pk-unlinked {
    padding: 4px 12px;
    font-size: 14px;
    max-height: 150px;
    overflow: auto;
  }
}
@media (max-width: 1100px) {
  .pk-knowledge .pk-group-columns {
    grid-template-columns: minmax(0, 1fr) 100px 95px 110px 22px;
    gap: 8px;
  }
  .pk-knowledge .pk-article-columns,
  .pk-knowledge .pk-article-row {
    grid-template-columns: 180px minmax(0, 1fr) 28px;
  }
}
@media (max-width: 760px) {
  .pk-knowledge {
    padding: 4px 5px 12px 0;
  }
  .pk-knowledge .pk-group-columns,
  .pk-knowledge .pk-article-columns {
    display: none;
  }
  .pk-knowledge .pk-article-row {
    grid-template-columns: minmax(0, 1fr) 32px;
    min-height: 44px;
  }
  .pk-knowledge .pk-article-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pk-knowledge .pk-question-links a {
    min-height: 44px;
    line-height: 18px;
  }
  .pk-knowledge .pk-scope-line {
    min-height: 44px;
    padding: 2px 4px;
  }
  .pk-knowledge .pk-workspace-footer :is(.ui-button, select, .pk-page-button) {
    min-height: 44px;
    height: auto;
    min-width: 44px;
  }
  .pk-knowledge .pk-workspace-footer {
    padding: 6px 4px;
    gap: 8px;
  }
  .pk-knowledge .pk-workspace-footer > div:first-child {
    flex-wrap: wrap;
  }
  .pk-knowledge .pk-group-pagination {
    justify-content: flex-start;
  }
  .pk-knowledge .pk-list-footer {
    padding: 6px 8px;
    flex-wrap: wrap;
  }
  .pk-knowledge .pk-unlinked-link {
    flex-basis: 100%;
    min-height: 44px;
  }
  .pk-knowledge .pk-filters > .ui-button {
    min-height: 44px;
    flex: 1;
  }
  .pk-knowledge .pk-group-navigation {
    width: 100%;
    justify-content: center;
  }
}
.pk-shared-task-work {
  max-width: 1440px;
  margin: 18px auto;
  padding: 20px;
  background: var(--ui-surface,#fff);
  border: 1px solid var(--ui-line,#dce3ee);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--ui-text,#172133);
}
.pk-shared-task-work h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.pk-shared-task-work h3 {
  margin: 0;
  font-size: 17px;
}
.pk-shared-task-work header p {
  line-height: 1.5;
  color: var(--ui-muted,#627084);
}
.pk-shared-task-step {
  border-top: 1px solid var(--ui-line,#dce3ee);
  padding: 16px 0;
}
.pk-shared-task-step .pkb-shared-step {
  margin-left: 0;
}
.pk-shared-task-work textarea,
.pk-shared-task-work input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
}
.pk-shared-task-work textarea {
  resize: vertical;
}
.pk-shared-task-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pk-shared-task-work .ui-notice {
  margin: 10px 0;
}
@media (max-width: 760px) {
  .pk-shared-task-work {
    padding: 14px;
    margin-inline: 0;
  }
  .pk-shared-task-work .ui-button {
    min-height: 44px;
  }
  .pk-shared-task-work h2 {
    font-size: 20px;
  }
}
.pk-knowledge .pk-compact-extra {
  min-width: 0;
}
.pk-knowledge .pk-legacy-slot .ar-page {
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.pk-knowledge .pk-legacy-slot .ar-editor-section {
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}
.pk-knowledge .pk-legacy-slot :is(.ar-editor-section, .ar-approval, .pkb-consumption) > h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.pk-knowledge .pk-legacy-slot .ui-card {
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.pk-knowledge .pkb-consumption.ui-card {
  padding: 0;
  border: 0;
}
.pk-knowledge .pkb-consumption > header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pk-knowledge .pkb-consumption h2 {
  font-size: 17px;
  margin: 0;
  line-height: 1.3;
}
.pk-knowledge .pkb-consumption h3 {
  font-size: 16px;
  margin: 14px 0 6px;
}
.pk-knowledge .pkb-consumption p {
  font-size: 14px;
  line-height: 1.4;
  margin: 6px 0;
}
.pk-knowledge .pk-calculation-note {
  font-size: 14px;
  color: var(--ui-muted);
}
.pk-knowledge .pk-calculation-note summary,
.pk-knowledge .pk-row-source summary {
  cursor: pointer;
  color: var(--ui-link);
  line-height: 1.35;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.pk-knowledge .pk-row-source {
  font-size: 13px;
  font-weight: 400;
}
.pk-knowledge .pk-total-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.pk-knowledge .pk-total-table :is(th, td) {
  font-size: 14px;
  line-height: 1.4;
  padding: 7px 10px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--ui-line);
}
.pk-knowledge .pk-total-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ui-muted);
  background: var(--ui-subtle);
}
.pk-knowledge .pk-total-table tbody th {
  font-weight: 500;
  text-align: left;
}
.pk-knowledge .pk-total-table th:nth-child(1) {
  width: 23%;
}
.pk-knowledge .pk-total-table th:nth-child(2) {
  width: 15%;
}
.pk-knowledge .pk-total-table th:nth-child(3) {
  width: 25%;
}
.pk-knowledge .pk-total-table th:last-child {
  width: 17%;
}
.pk-knowledge .pk-total-table.has-costs th:nth-child(3) {
  width: 20%;
}
.pk-knowledge .pk-total-table.has-costs th:nth-child(4) {
  width: 25%;
}
.pk-knowledge .pk-total-table td:nth-child(2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pk-knowledge .pk-total-table tbody tr:nth-child(even) {
  background: var(--ui-subtle);
}
.pk-knowledge .pk-total-table .ui-button {
  white-space: normal;
  max-width: 100%;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.2;
}
.pk-knowledge .pk-total-table small {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pk-knowledge .pk-consumption-readiness {
  font-size: 14px;
}
.pk-knowledge .pk-consumption-readiness > header {
  gap: 6px 12px;
}
.pk-knowledge .pk-consumption-readiness h2 {
  font-size: 17px;
  line-height: 1.3;
}
.pk-knowledge .pk-readiness-toolbar {
  min-height: 34px;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
}
.pk-knowledge .pk-readiness-table {
  max-height: none;
}
.pk-knowledge .pk-readiness-table table {
  min-width: 0;
}
.pk-knowledge .pk-readiness-table :is(th, td) {
  font-size: 14px;
  line-height: 1.35;
  padding: 7px 9px;
}
.pk-knowledge .pk-readiness-table small {
  font-size: 13px;
  line-height: 1.35;
}
.pk-knowledge .ar-approval {
  padding: 0;
  border: 0;
}
.pk-knowledge .ar-approval h2 {
  font-size: 17px;
}
.pk-knowledge .ar-approval :is(p, .ar-small) {
  font-size: 14px;
  line-height: 1.4;
}
.pk-knowledge .ar-approval-roles {
  gap: 12px;
}
.pk-knowledge .ar-market-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--ui-subtle);
  border-radius: 6px;
}
.pk-knowledge .ar-market-base > div {
  padding: 0;
  border: 0;
  background: none;
}
.pk-knowledge .ar-market-base strong {
  font-size: 16px;
}
.pk-knowledge .ar-market-source summary {
  cursor: pointer;
  color: var(--ui-link);
  min-height: 28px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.pk-knowledge .ar-market-source > span {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pk-knowledge .ar-market-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pk-knowledge .ar-market-link {
  padding: 8px 10px;
  border-radius: 6px;
}
.pk-knowledge .ar-market-link h3 {
  font-size: 15px;
  margin: 0;
}
.pk-knowledge .ar-market-primary {
  margin: 6px 0;
}
.pk-knowledge .ar-market-primary strong {
  font-size: 15px;
}
.pk-knowledge .ar-market-brief-source,
.pk-knowledge .ar-market-evidence {
  font-size: 13px;
  line-height: 1.4;
}
.pk-knowledge .ar-market-evidence summary {
  min-height: 28px;
  padding: 3px 0;
}
@media (min-width: 1101px) {
  .pk-knowledge .pk-compact-detail > .pk-compact-extra {
    height: var(--pk-work-height,clamp(300px,calc(100dvh - 420px),460px));
    overflow: auto;
    padding: 10px 14px;
    scrollbar-gutter: stable;
  }
  .pk-knowledge .pk-legacy-slot :is(input, select, button, .ui-button) {
    min-height: 32px;
  }
  .pk-knowledge .pk-legacy-slot :is(input, select) {
    padding: 4px 8px;
    font-size: 15px;
    line-height: 1.3;
  }
  .pk-knowledge .pk-legacy-slot input[type=checkbox] {
    min-height: 16px;
    height: 16px;
    width: 16px;
    margin: 0;
    padding: 0;
  }
  .pk-knowledge .pk-legacy-slot .ui-button {
    padding: 4px 10px;
    font-size: 14px;
  }
  .pk-knowledge .pk-legacy-slot textarea {
    min-height: 56px;
    padding: 6px 8px;
    font-size: 15px;
    line-height: 1.35;
  }
  .pk-knowledge .pk-legacy-slot .ar-field {
    gap: 4px;
  }
  .pk-knowledge .pk-legacy-slot .ar-fields {
    gap: 10px;
  }
  .pk-knowledge .pk-legacy-slot .ar-section-heading {
    margin-bottom: 8px;
  }
  .pk-knowledge .pk-readiness-table {
    overflow: visible;
  }
  .pk-knowledge .pk-readiness-table table {
    width: 100%;
  }
  .pk-knowledge .pkb-consumption .ui-table-frame {
    overflow: visible;
    max-height: none;
  }
  .pk-knowledge .pk-consumption-readiness > details > summary {
    min-height: 32px;
  }
}
@media (max-width: 760px) {
  .pk-knowledge .pk-compact-extra {
    padding: 10px;
  }
  .pk-knowledge .pkb-consumption > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .pk-knowledge .pk-total-table,
  .pk-knowledge .pk-total-table tbody,
  .pk-knowledge .pk-total-table tr,
  .pk-knowledge .pk-total-table :is(th, td) {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .pk-knowledge .pk-total-table thead {
    display: none;
  }
  .pk-knowledge .pk-total-table :is(th, td) {
    width: 100% !important;
  }
  .pk-knowledge .pk-total-table tbody tr {
    padding: 10px;
    border-bottom: 1px solid var(--ui-line);
  }
  .pk-knowledge .pk-total-table :is(th, td) {
    padding: 4px 0;
    border: 0;
    text-align: left !important;
  }
  .pk-knowledge .pk-total-table [data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    color: var(--ui-muted);
    font-weight: 400;
    margin-bottom: 2px;
  }
  .pk-knowledge .pk-total-table .ui-button {
    min-height: 44px;
  }
  .pk-knowledge .pk-calculation-note summary,
  .pk-knowledge .pk-row-source summary {
    min-height: 44px;
  }
  .pk-knowledge .pk-readiness-table {
    overflow: visible;
  }
  .pk-knowledge .pk-readiness-table table,
  .pk-knowledge .pk-readiness-table tbody,
  .pk-knowledge .pk-readiness-table tr,
  .pk-knowledge .pk-readiness-table :is(th, td) {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .pk-knowledge .pk-readiness-table thead {
    display: none;
  }
  .pk-knowledge .pk-readiness-table tbody tr {
    border-bottom: 1px solid var(--ui-line);
    padding: 10px;
  }
  .pk-knowledge .pk-readiness-table :is(th, td) {
    border: 0;
    padding: 4px 0;
  }
  .pk-knowledge .pk-readiness-table td:nth-child(2)::before {
    content: "\41d\43e\440\43c\430  \43d\430  \438\437\434\435\43b\438\435";
  }
  .pk-knowledge .pk-readiness-table td:nth-child(3)::before {
    content: "\41e\441\43d\43e\432\430\43d\438\435";
  }
  .pk-knowledge .pk-readiness-table td:nth-child(4)::before {
    content: "\425\440\430\43d\435\43d\438\435";
  }
  .pk-knowledge .pk-readiness-table td:nth-child(5)::before {
    content: "\427\442\43e  \443\442\43e\447\43d\438\442\44c";
  }
  .pk-knowledge .pk-readiness-table td::before {
    display: block;
    font-size: 13px;
    color: var(--ui-muted);
    margin-bottom: 2px;
  }
  .pk-knowledge .pk-readiness-table .ui-button {
    min-height: 44px;
  }
  .pk-knowledge .ar-approval-roles {
    grid-template-columns: 1fr;
  }
  .pk-knowledge .ar-market-links {
    grid-template-columns: 1fr;
  }
  .pk-knowledge .ar-market-evidence summary,
  .pk-knowledge .ar-market-source summary,
  .pk-knowledge .pk-readiness-toolbar label {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .crm-card--work .crm-status-flow li > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .crm-card--work .crm-plan-heading {
    flex-wrap: wrap;
  }
  .crm-card--work .crm-plan-heading h2 {
    flex: 1 1 160px;
  }
  .crm-card--work .crm-plan-heading-actions {
    flex: 1 1 180px;
    justify-content: space-between;
  }
}
@media (max-width: 360px) {
  .crm-card--work .crm-status-flow,
  .crm-card--work .crm-header-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
.navigation-content {
  background: #fff;
}
.pw-receipt {
  max-width: 1480px;
  min-height: 100dvh;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #fff;
  color: var(--ui-text);
  font-size: 18px;
  line-height: 1.35;
  min-width: 0;
}
.pw-receipt h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  font-weight: 750;
  letter-spacing: -.7px;
}
.pw-receipt h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  padding: 6px 18px;
  background: var(--ui-section-bg);
  font-weight: 750;
  letter-spacing: -.4px;
}
.pw-receipt h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 18px;
}
.pw-receipt button,
.pw-receipt input,
.pw-receipt select,
.pw-receipt textarea {
  font: inherit;
}
.pw-receipt input,
.pw-receipt select,
.pw-receipt textarea,
.pw-receipt output {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--ui-input-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ui-text);
}
.pw-receipt input[readonly] {
  background: #f1f2f5;
}
.pw-receipt button:focus-visible,
.pw-receipt input:focus-visible,
.pw-receipt select:focus-visible,
.pw-receipt textarea:focus-visible,
.pw-receipt summary:focus-visible {
  outline: 3px solid #7790c1;
  outline-offset: 2px;
}
.pw-breadcrumb {
  color: var(--ui-muted);
  margin: 8px 0 0;
  font-size: 18px;
}
.pw-link {
  border: 0;
  background: none;
  padding: 0;
  min-height: 26px;
  text-decoration: underline;
  color: var(--ui-link);
  cursor: pointer;
}
.pw-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1060px);
  gap: 0;
  justify-content: center;
  margin: 24px auto 26px;
  padding: 0;
}
.pw-steps li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ui-text);
  font-size: 20px;
}
.pw-steps li:not(:last-child):after {
  content: "";
  position: absolute;
  height: 1px;
  background: #cdd3e6;
  left: calc(50% + 102px);
  right: calc(-50% + 103px);
  top: 17px;
  pointer-events: none;
}
.pw-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eceef2;
  font-weight: 700;
  font-size: 20px;
}
.pw-step-label {
  display: block;
  white-space: nowrap;
}
.pw-steps li.is-current {
  font-weight: 700;
}
.pw-steps li.is-current .pw-step-number {
  background: var(--ui-accent);
  color: #111;
}
.pw-steps li.is-done .pw-step-number {
  background: transparent;
}
.pw-steps li.is-done svg {
  fill: #15c564;
  stroke: #fff;
  flex: 0 0 34px;
}
.pw-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.pw-step[hidden] {
  display: none;
}
.pw-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #f0f2f4;
  padding: 10px 18px;
  margin: 0 0 14px;
  border-radius: 6px;
  min-height: 48px;
  box-sizing: border-box;
}
.pw-context > span:last-child {
  color: #9a5e17;
  background: #fff8e2;
  border-radius: 5px;
  padding: 3px 10px;
}
.pw-location {
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  padding: 10px 18px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
  box-sizing: border-box;
}
.pw-location > span {
  border-left: 1px solid #aab5d1;
  margin-left: 18px;
  padding-left: 30px;
  color: var(--ui-muted);
}
.pw-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(270px, 1fr);
  gap: 20px;
  align-items: start;
}
.pw-panel {
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
  min-width: 0;
  background: #fff;
}
.pw-panel-body {
  padding: 12px 18px 16px;
}
.pw-panel-body > p:first-child {
  margin-top: 0;
}
.pw-panel > summary {
  background: var(--ui-section-bg);
  padding: 9px 18px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
}
.pw-guidance {
  margin: 0 0 16px;
  color: var(--ui-text);
}
.pw-material {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--ui-line);
  margin: 0 0 12px;
  align-items: center;
  line-height: 26px;
}
.pw-material strong {
  font-size: 22px;
  color: var(--ui-text);
}
.pw-two,
.pw-three {
  display: grid;
  gap: 28px;
}
.pw-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 16px;
}
.pw-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ui-line);
  padding-top: 12px;
  margin: 16px 0 8px;
}
.pw-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0;
  min-width: 0;
}
.pw-field label {
  font-size: 18px;
  line-height: 22px;
  color: #111;
}
.pw-two > .pw-field,
.pw-three > .pw-field {
  margin: 0;
}
.pw-field small,
.pw-note {
  font-size: 15px;
  color: var(--ui-muted);
}
.pw-specification {
  font-size: 16px;
  color: var(--ui-muted);
  margin: 6px 0;
}
.pw-three output {
  display: block;
  background: var(--ui-selected-soft);
  border-color: transparent;
  font-size: 20px;
}
.pw-quantity-document,
.pw-quantity-accepted {
  position: relative;
  min-width: 0;
}
.pw-quantity-document input {
  background: var(--ui-selected-soft);
  border-color: transparent;
}
.pw-quantity-document input,
.pw-quantity-accepted input {
  font-size: 20px;
  padding-right: 65px;
}
.pw-quantity-document > span,
.pw-quantity-accepted > span {
  position: absolute;
  right: 12px;
  top: 7px;
  pointer-events: none;
  color: #111;
}
.pw-line-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.pw-remove-line {
  font-size: 14px;
  color: var(--ui-muted);
}
.pw-discrepancy-panel .pw-field {
  margin: 0;
}
.pw-inline-note {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ui-muted);
  margin: 14px 0 0;
}
.pw-inline-note svg {
  flex: 0 0 20px;
}
.pw-advanced-discrepancy {
  border-top: 1px solid var(--ui-line);
  margin-top: 14px;
  padding-top: 12px;
}
.pw-advanced-discrepancy .pw-field {
  margin: 12px 0;
}
.pw-aside .pw-panel-body {
  padding: 14px 20px 18px;
}
.pw-aside h3 {
  font-size: 23px;
  margin: 0 0 18px;
}
.pw-aside p:not(.pw-inline-note) {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0;
  font-size: 20px;
}
.pw-aside strong {
  font-size: 23px;
  color: var(--ui-text);
  white-space: nowrap;
}
.pw-aside hr {
  border: 0;
  border-top: 1px solid var(--ui-line);
  margin: 24px 0 18px;
}
.pw-aside .pw-inline-note {
  font-size: 17px;
}
.pw-suppliers,
.pw-offers {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.pw-suppliers {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.pw-suppliers button,
.pw-offers button {
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--ui-input-line);
  border-radius: 6px;
  min-height: 50px;
  cursor: pointer;
}
.pw-suppliers small {
  display: block;
  color: var(--ui-muted);
  margin-top: 4px;
}
.pw-suppliers button[aria-pressed=true] {
  border: 2px solid #c5a800;
  background: #fffbe7;
}
.pw-empty-search {
  padding: 16px 0;
}
.pw-empty-search p {
  margin: 0 0 12px;
}
.pw-receipt form {
  padding-bottom: 150px;
}
.pw-footer {
  position: fixed;
  bottom: 0;
  left: var(--menu-width,0px);
  right: 0;
  margin: 0;
  background: #fff;
  z-index: 40;
  padding: 10px 20px 16px;
  border-top: 1px solid var(--ui-line);
  box-shadow: 0 -2px 6px #11182705;
}
.pw-footer > p {
  margin: 0 0 12px;
  color: var(--ui-muted);
  font-size: 18px;
}
.pw-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.pw-actions > button {
  min-height: 48px;
  min-width: 210px;
  font-size: 19px;
}
.pw-actions > button[type=submit] {
  min-width: 300px;
}
.pw-back-small {
  display: none;
}
.pw-check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pw-check input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
}
.pw-review-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--ui-line);
}
.pw-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 21px;
}
.pw-add {
  margin: 12px 0;
}
.pw-add > summary,
.pw-panel-body details > summary {
  cursor: pointer;
  color: var(--ui-link);
  text-decoration: underline;
  min-height: 30px;
}
.pw-receipt textarea {
  resize: vertical;
}
.pw-receipt :disabled {
  cursor: default;
}
.pw-receipt p,
.pw-receipt strong,
.pw-receipt label {
  overflow-wrap: anywhere;
}
.pw-error-summary {
  scroll-margin-top: 20px;
  scroll-margin-bottom: 180px;
}
.pw-error-summary:focus {
  outline: 2px solid #b73444;
  outline-offset: 3px;
}
.pw-error-summary button {
  display: block;
  margin-top: 10px;
}
.pw-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: #e4f4e9;
  color: #245c36;
  border: 1px solid #bddbc7;
  border-radius: 6px;
  margin: 20px 0;
}
.pw-success p {
  margin: 5px 0 0;
}
.pw-success svg {
  flex: 0 0 24px;
}
.pw-saved-costs {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.pw-saved-costs > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ui-line);
  padding-bottom: 8px;
}
.pw-saved-costs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.pw-receipt input,
.pw-receipt textarea,
.pw-receipt select {
  scroll-margin-bottom: 180px;
}
@media (max-width: 799px) {
  .pw-receipt {
    padding: 14px 12px;
    font-size: 16px;
  }
  .pw-receipt h1 {
    font-size: 26px;
  }
  .pw-receipt h2 {
    font-size: 20px;
    padding: 8px 14px;
  }
  .pw-breadcrumb {
    font-size: 15px;
  }
  .pw-steps {
    width: 100%;
    margin: 22px 0;
    gap: 8px;
  }
  .pw-steps li {
    gap: 6px;
    flex-direction: column;
    font-size: 13px;
    text-align: center;
  }
  .pw-step-label {
    white-space: normal;
  }
  .pw-steps li:not(:last-child):after {
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    top: 17px;
  }
  .pw-context {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 14px;
  }
  .pw-context > span:last-child {
    padding: 0;
    background: none;
  }
  .pw-location {
    gap: 6px;
    padding: 10px 14px;
  }
  .pw-location > span {
    border: 0;
    margin: 0;
    padding: 0;
    flex-basis: 100%;
    font-size: 14px;
  }
  .pw-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .pw-aside {
    order: 2;
  }
  .pw-panel-body {
    padding: 12px 14px 16px;
  }
  .pw-material {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .pw-material strong {
    font-size: 21px;
  }
  .pw-suppliers {
    grid-template-columns: minmax(0, 1fr);
  }
  .pw-step-label {
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .pw-back-wide {
    display: none;
  }
  .pw-back-small {
    display: inline;
  }
  .pw-footer .pw-actions > button:only-child {
    grid-column: 1/-1;
  }
  .pw-two,
  .pw-three {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pw-field label {
    font-size: 16px;
  }
  .pw-receipt input,
  .pw-receipt select {
    min-height: 44px;
  }
  .pw-three output {
    min-height: 44px;
  }
  .pw-quantity-document > span,
  .pw-quantity-accepted > span {
    top: 10px;
  }
  .pw-inline-note {
    align-items: flex-start;
    font-size: 15px;
  }
  .pw-footer {
    left: var(--menu-width,0px);
    padding: 10px 12px 12px;
  }
  .pw-footer > p {
    font-size: 14px;
  }
  .pw-receipt form {
    padding-bottom: 195px;
  }
  .pw-footer .pw-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
  }
  .pw-actions > button,
  .pw-actions > button[type=submit] {
    min-width: 0;
    font-size: 16px;
  }
  .pw-actions > button {
    width: 100%;
  }
  .pw-receipt input,
  .pw-receipt textarea,
  .pw-receipt select {
    scroll-margin-bottom: 210px;
  }
}
.global-navigation {
  background: var(--ui-nav-surface);
  color: var(--ui-nav-text);
  border-radius: 0;
  inset: 0 auto 0 0;
  height: 100dvh;
  width: var(--menu-width);
  box-shadow: none;
  --ui-text:var(--ui-nav-text);
  --ui-muted:var(--ui-nav-muted);
  --ui-surface:var(--ui-nav-surface);
  --ui-surface-raised:var(--ui-nav-raised);
  --ui-border:var(--ui-nav-line);
  --ui-selected-soft:var(--ui-nav-selected);
  padding: 12px 10px;
}
.global-navigation .navigation-links > a,
.global-navigation .navigation-task-entry > a,
.global-navigation .navigation-group-button,
.global-navigation .navigation-submenu a,
.global-navigation .navigation-footer a,
.global-navigation .navigation-footer button,
.global-navigation .navigation-toggle {
  color: var(--ui-nav-text);
  background: transparent;
}
.global-navigation .navigation-links > a > svg,
.global-navigation .navigation-task-entry > a > svg,
.global-navigation .navigation-group-button > svg:first-child {
  color: var(--ui-nav-text);
}
.global-navigation .navigation-submenu a[aria-current=page],
.global-navigation .is-current > .navigation-group-button,
.global-navigation .navigation-links > a[aria-current=page],
.global-navigation .navigation-task-entry > a[aria-current=page] {
  background: var(--ui-nav-selected);
  color: #fff;
  border-radius: 0;
  box-shadow: inset 4px 0 var(--ui-accent);
}
.global-navigation a:hover,
.global-navigation button:hover {
  background: var(--ui-nav-raised);
}
.global-navigation .navigation-footer {
  border-color: var(--ui-nav-line);
  color: #d6dfe4;
}
.global-navigation .navigation-footer small {
  color: var(--ui-nav-muted);
}
.global-navigation .original-brand-logo {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.global-navigation .navigation-links > a,
.global-navigation .navigation-task-entry > a,
.global-navigation .navigation-group-button {
  font-size: 16px;
  min-height: 46px;
  padding: 9px 12px;
  gap: 12px;
}
.global-navigation .navigation-submenu a {
  font-size: 14px;
  min-height: 42px;
  padding: 9px 12px;
}
.global-navigation a:focus-visible,
.global-navigation button:focus-visible {
  outline: 3px solid var(--ui-accent);
  outline-offset: -3px;
}
.navigation-compact .global-navigation {
  width: var(--menu-width);
  inset: 0;
  height: 100dvh;
}
@media (min-width: 900px) {
  .navigation-shell:not(.navigation-compact) {
    --menu-width:236px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation {
    inset: 0;
    height: 100dvh;
    width: var(--menu-width);
    border-radius: 0;
    box-shadow: none;
  }
}
@media (max-width: 899px) {
  .navigation-shell:not(.navigation-compact) .global-navigation {
    inset: 0 auto 0 0;
    width: min(284px, 90vw);
    height: 100dvh;
    border-radius: 0;
  }
  .navigation-shell.navigation-compact .global-navigation {
    inset: 0 auto 0 0;
    width: var(--menu-width);
    height: 100dvh;
    border-radius: 0;
  }
}
.global-navigation .navigation-task-counts a.navigation-task-count {
  color: #191c24;
}
.navigation-content {
  min-height: 100dvh;
  background: var(--ui-bg);
  font-family: var(--ui-font);
}
.navigation-content .ui-page {
  min-height: 100dvh;
  padding: var(--ui-page-padding);
  background: var(--ui-bg);
  font-size: var(--ui-text-base);
  line-height: var(--ui-line-height);
}
.navigation-content .ui-page-heading {
  margin-bottom: 16px;
  gap: 16px;
}
.navigation-content .ui-page-heading h1 {
  margin: 0;
  font-size: var(--ui-heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.4px;
}
.navigation-content .ui-card {
  padding: var(--ui-panel-padding);
}
.navigation-content .ui-register {
  padding: 0;
}
.navigation-content .ui-table-scroll {
  border-radius: var(--ui-radius);
}
.navigation-content .ui-register > .ui-table-scroll {
  border-inline: 0;
  border-bottom: 0;
  border-radius: 0;
}
.navigation-content .ui-register table {
  font-size: var(--ui-text-sm);
}
.navigation-content .ui-register th {
  padding: var(--ui-table-padding);
  font-size: var(--ui-text-sm);
  line-height: var(--ui-line-height);
  background: var(--ui-subtle);
}
.navigation-content .ui-register td {
  padding: var(--ui-table-padding);
  font-size: var(--ui-text-sm);
  line-height: var(--ui-line-height);
}
.navigation-content .crm-table .crm-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.navigation-content .crm-table td:nth-child(4) .ui-table-link {
  white-space: nowrap;
  min-width: 44px;
}
.navigation-content .pw-receipt :is(input:not([type=checkbox]):not([type=radio]), select, textarea):not([readonly]):not(:disabled):not([aria-invalid=true]) {
  border-color: var(--ui-input-line);
}
@media (max-width: 700px) {
  .navigation-content .ui-page {
    padding: var(--ui-page-padding);
  }
  .navigation-content .ui-page-heading {
    gap: 16px;
  }
  .navigation-content .ui-page-heading h1 {
    font-size: var(--ui-heading);
    overflow-wrap: anywhere;
  }
  .navigation-content .ui-card {
    padding: var(--ui-panel-padding);
  }
  .navigation-content .ui-register {
    padding: 0;
  }
  .navigation-content .ui-register .crm-table td {
    padding: 0;
  }
  .navigation-content .crm-page .ui-section-tabs[aria-label="\41d\430\43f\440\430\432\43b\435\43d\438\435  \437\430\434\430\447"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .navigation-content .crm-page .ui-section-tabs[aria-label="\41d\430\43f\440\430\432\43b\435\43d\438\435  \437\430\434\430\447"] > button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
  }
}
@media (max-width: 380px) {
  .navigation-content .crm-page .ui-section-tabs[aria-label="\41d\430\43f\440\430\432\43b\435\43d\438\435  \437\430\434\430\447"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .navigation-content .crm-page .ui-section-tabs[aria-label="\41d\430\43f\440\430\432\43b\435\43d\438\435  \437\430\434\430\447"] > button {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .navigation-content .crm-table td:nth-child(5),
  .navigation-content .crm-table td:nth-child(6) {
    grid-column: 1 / -1;
  }
  .navigation-content .crm-table td:nth-child(6) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
}
.navigation-content .director-home {
  --surface-body: 14px;
  --surface-icon: 16px;
  --surface-gap: 16px;
  --home-ink: #11152b;
  --home-muted: #526076;
  --home-line: #dde2ec;
  background: #fff;
  color: var(--home-ink);
  font-family: Arial, sans-serif;
}
.navigation-content .director-home > .content {
  max-width: 1480px;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
}
.director-home .production-surface {
  --surface-body: 14px;
  --surface-icon: 16px;
  --surface-gap: 16px;
  font-size: 16px;
  line-height: 1.4;
}
.director-home .surface-heading {
  height: auto;
  gap: 16px;
  margin-bottom: 20px;
}
.director-home .surface-heading h1 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.4px;
}
.director-home .surface-date,
.director-home .surface-search {
  min-height: 42px;
  border-radius: 6px;
  font-size: 16px;
}
.director-home .surface-search input {
  font-size: 16px !important;
  min-height: 40px !important;
}
.director-home .surface-notifications {
  min-height: 42px;
  height: 42px;
}
.director-home .surface-heading svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.director-home .surface-kpis {
  gap: 16px;
  margin-bottom: 16px;
}
.director-home .surface-kpi {
  min-height: 108px;
  height: auto;
  padding: 14px 14px 36px 44px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  box-shadow: none;
  background: #fff;
}
.director-home .surface-kpi-main {
  gap: 8px;
}
.director-home .surface-kpi-main:after {
  border-radius: 6px;
}
.director-home .surface-kpi-icon,
.director-home .surface-kpi.tone-green .surface-kpi-icon,
.director-home .surface-kpi.tone-blue .surface-kpi-icon,
.director-home .surface-kpi.tone-red .surface-kpi-icon,
.director-home .surface-kpi.tone-neutral .surface-kpi-icon {
  left: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
}
.director-home .surface-kpi-icon > svg {
  width: 18px;
  height: 18px;
}
.director-home .surface-kpi-title {
  font-size: 15px;
  font-weight: 600;
  white-space: normal;
}
.director-home .surface-kpi strong,
.director-home .surface-kpi.tone-yellow strong {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}
.director-home .surface-kpi strong small {
  font-size: 14px;
}
.director-home .surface-kpi strong.surface-missing {
  font-size: 18px;
  padding-top: 0;
  white-space: normal;
}
.director-home .surface-kpi-note {
  font-size: 13px;
  left: 14px;
  right: 14px;
  bottom: 10px;
}
.director-home button.surface-stock {
  left: 14px;
  right: 14px;
  bottom: 8px;
  min-width: 0;
  min-height: 28px;
  width: auto;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--ui-link);
  font-size: 13px;
}
.director-home .surface-stock b {
  font-size: 16px;
}
.director-home .surface-tasks {
  min-height: 48px;
  padding: 10px 14px;
  margin-bottom: 16px;
  gap: 16px;
  border-radius: 6px;
  box-shadow: none;
}
.director-home .surface-tasks h2 {
  font-size: 18px;
  letter-spacing: 0;
}
.director-home .surface-tasks h2 > svg {
  width: 18px;
  height: 18px;
}
.director-home .surface-tasks > p,
.director-home .surface-tasks-all {
  font-size: 14px;
}
.director-home .surface-queue {
  padding: 0;
  margin-bottom: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  box-shadow: none;
  overflow: hidden;
}
.director-home .surface-queue > header {
  padding: 8px 16px;
  min-height: 42px;
  box-sizing: border-box;
  background: var(--ui-section-bg);
}
.director-home .surface-queue h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.2px;
}
.director-home .surface-queue header > a {
  min-height: 32px;
  font-size: 14px;
  gap: 6px;
}
.director-home .surface-table-scroll {
  border-radius: 0;
}
.director-home .surface-table-scroll table {
  font-size: 14px;
}
.director-home .surface-table-scroll th {
  height: 40px;
  padding: 8px 12px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.35;
  background: #f5f6f8;
  color: var(--ui-muted);
}
.director-home .surface-table-scroll td {
  height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
}
.director-home .surface-table-scroll td a,
.director-home .surface-table-scroll td > a,
.director-home .surface-table-scroll td .surface-product-name,
.director-home .surface-table-scroll .overview-product-id a {
  font-size: 14px;
  line-height: 1.4;
}
.director-home .surface-table-scroll td small,
.director-home .surface-table-scroll td small.surface-product-meta,
.director-home .overview-product-id > span {
  font-size: 13px;
  line-height: 1.35;
}
.director-home .overview-product + .overview-product {
  margin-top: 8px;
  padding-top: 8px;
}
.director-home .overview-features {
  min-height: 28px !important;
  gap: 6px !important;
}
.director-home .overview-feature {
  height: 26px;
  min-width: 28px;
  padding: 3px 5px;
  border-radius: 4px;
}
.director-home .overview-feature b {
  font-size: 12px;
}
.director-home .overview-feature.shape {
  height: 30px;
  min-width: 30px;
  padding: 2px 4px;
}
.director-home .overview-feature.shape > svg {
  height: 26px;
  width: 22px;
}
.director-home .surface-table-scroll .overview-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
  min-width: 300px;
  min-height: 44px;
  height: auto;
  padding: 4px 0;
  border-radius: 4px;
}
.director-home .surface-table-scroll .flow-branches,
.director-home .surface-table-scroll .flow-chain {
  display: contents;
}
.director-home .surface-table-scroll .flow-join,
.director-home .surface-table-scroll .flow-node::after {
  display: none;
}
.director-home .surface-table-scroll .flow-node,
.director-home .surface-table-scroll .flow-node.branch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: auto;
  min-height: 20px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
}
.director-home .surface-table-scroll .flow-node.unknown {
  color: var(--ui-muted);
}
.director-home .surface-table-scroll .flow-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.director-home .surface-table-scroll .flow-node-icon > svg:not(.flow-state-symbol) {
  display: none;
}
.director-home .surface-table-scroll .flow-state-symbol {
  position: static;
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.director-home .surface-bottom {
  gap: 16px;
  align-items: stretch;
}
.director-home .surface-bottom-card {
  height: auto;
  min-height: 250px;
  padding: 0 14px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 6px;
  box-shadow: none;
  background: #fff;
}
.director-home .surface-bottom-card > header {
  min-height: 42px;
  padding: 6px 14px;
  box-sizing: border-box;
  margin: 0 -14px 12px;
  border-bottom: 1px solid var(--ui-line);
  border-radius: 5px 5px 0 0;
  background: var(--ui-section-bg);
}
.director-home .surface-bottom-card h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
  gap: 8px;
  white-space: normal;
}
.director-home .surface-bottom-card h2 > svg {
  width: 18px;
  height: 18px;
}
.director-home .surface-return-list {
  min-height: 96px;
}
.director-home .surface-return-list > button {
  min-height: 44px;
}
.director-home .surface-return-list strong {
  min-height: 32px;
  font-size: 22px;
  border-radius: 4px;
}
.director-home .surface-return-list strong.missing {
  font-size: 14px;
}
.director-home .surface-return-line-copy > span {
  font-size: 14px;
}
.director-home .surface-return-line-copy em,
.director-home .surface-return-losses small,
.director-home .surface-returns footer > small {
  font-size: 12px;
}
.director-home .surface-return-losses {
  min-height: 48px;
  padding: 8px 0;
  margin: 8px 0;
}
.director-home .surface-return-losses b,
.director-home .surface-returns footer > button {
  font-size: 14px;
}
.director-home .surface-shift-content {
  min-height: 100px;
}
.director-home .surface-shift-content > span {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
}
.director-home .surface-shift-content > span > svg {
  width: 20px;
  height: 20px;
}
.director-home .surface-shift-content h3 {
  font-size: 17px;
}
.director-home .surface-shift-content p {
  font-size: 14px;
}
@media (max-width: 1100px) {
  .director-home .surface-heading {
    flex-wrap: wrap;
  }
  .director-home .surface-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .director-home .surface-bottom {
    grid-template-columns: 1fr;
  }
  .director-home .surface-bottom-card {
    min-height: 0;
  }
}
@media (max-width: 640px) {
  .navigation-content .director-home > .content {
    padding: 16px 12px;
  }
  .director-home .surface-heading h1 {
    font-size: 26px;
  }
  .director-home .surface-kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .director-home .surface-date {
    min-height: 44px;
  }
  .director-home .surface-search input {
    min-height: 44px !important;
  }
  .director-home .surface-bottom-card > header {
    min-height: 44px;
  }
  .director-home .surface-tasks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .director-home .surface-tasks h2 {
    white-space: nowrap;
  }
  .director-home .surface-tasks-all {
    justify-self: start;
  }
  .director-home .surface-queue > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .director-home .surface-queue h2 {
    font-size: 20px;
    word-break: normal;
    overflow-wrap: normal;
  }
  .director-home .surface-queue header > a {
    justify-self: start;
    margin-left: 0;
    white-space: nowrap;
  }
  .director-home .surface-car-platform {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .director-home .surface-car-platform > span {
    min-width: 0;
    flex: 1 1 120px;
  }
  .director-home .surface-car-platform > button {
    flex-shrink: 0;
    margin-left: auto;
  }
  .director-home .surface-table-scroll table {
    min-width: 850px;
  }
  .director-home .surface-table-scroll th:first-child,
  .director-home .surface-table-scroll td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 1px 0 0 var(--ui-line);
  }
  .director-home .surface-table-scroll th:first-child {
    background: #f5f6f8;
  }
}
@media (pointer: coarse) {
  .director-home .surface-date,
  .director-home .surface-notifications,
  .director-home .surface-queue header > a,
  .director-home .surface-return-open,
  .director-home .surface-return-money,
  .director-home .surface-returns footer > button {
    min-height: 44px;
  }
  .director-home .surface-notifications,
  .director-home .surface-return-open {
    min-width: 44px;
  }
}
.stock-workspace details.stock-material-group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  list-style: none;
}
.stock-workspace details.stock-material-group > summary::-webkit-details-marker {
  display: none;
}
.stock-workspace details.stock-material-group > summary .stock-group-chevron {
  flex: 0 0 18px;
}
.stock-workspace details.stock-material-group > summary h4 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.stock-workspace details.stock-material-group > summary > span {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 65%;
  font-size: 14px;
}
.stock-workspace details.stock-material-group > summary > span > br {
  display: none;
}
.stock-workspace details.stock-material-group > summary > span > small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ui-text-muted, #555e6d);
  background: transparent;
}
@media (max-width: 600px) {
  .stock-workspace details.stock-material-group > summary {
    flex-wrap: wrap;
  }
  .stock-workspace details.stock-material-group > summary h4 {
    flex-basis: calc(100% - 28px);
  }
  .stock-workspace details.stock-material-group > summary > span {
    max-width: 100%;
    margin-left: 28px;
    justify-content: flex-start;
  }
}
.pw-stock-structure {
  padding: 20px 24px;
  background: var(--ui-surface,#fff);
  color: var(--ui-text,#191c24);
}
.pw-stock-structure .pw-stock-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.pw-stock-structure h3,
.pw-stock-structure h4 {
  margin: 0;
}
.pw-stock-structure h3 {
  font-size: 24px;
}
.pw-stock-structure p {
  margin: 6px 0 12px;
  color: var(--ui-text-muted,#555e6d);
}
.pw-stock-structure button,
.pw-stock-structure input,
.pw-stock-structure select {
  min-height: 44px;
  border: 1px solid var(--ui-line,#8791a1);
  border-radius: 4px;
  background: var(--ui-surface,#fff);
  color: inherit;
  font: inherit;
}
.pw-stock-structure button {
  padding: 8px 12px;
  cursor: pointer;
}
.pw-stock-structure button[aria-pressed=true] {
  background: var(--ui-accent,#ffe133);
  border-color: var(--ui-accent,#ffe133);
  font-weight: 700;
}
.pw-stock-structure .pw-stock-search {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.pw-stock-structure .pw-stock-search > label:first-child {
  flex: 1;
  min-width: 200px;
}
.pw-stock-structure label {
  font-weight: 600;
  font-size: 14px;
}
.pw-stock-structure input[type=search],
.pw-stock-structure select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px 12px;
}
.pw-stock-structure .pw-stock-known {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.pw-stock-structure input[type=checkbox] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
}
.pw-stock-structure .pw-stock-choice {
  border: 0;
  padding: 0;
  margin: 16px 0;
  min-width: 0;
}
.pw-stock-structure legend {
  font-weight: 700;
  margin-bottom: 8px;
}
.pw-stock-structure .pw-stock-choice > div,
.pw-stock-structure .pw-stock-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pw-stock-structure .pw-stock-choice button span {
  font-size: 13px;
  font-weight: 400;
}
.pw-stock-structure .pw-stock-secondary {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.pw-stock-structure .pw-stock-secondary label {
  min-width: 140px;
  flex: 1;
}
.pw-stock-structure .pw-stock-group {
  margin: 16px 0;
  border: 1px solid var(--ui-line-subtle,#d4d8df);
  border-radius: 6px;
  overflow: hidden;
}
.pw-stock-structure .pw-stock-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  min-height: 48px;
  background: var(--ui-surface-subtle,#f5f6f8);
  cursor: pointer;
  list-style: none;
}
.pw-stock-structure .pw-stock-group > summary .pw-stock-chevron {
  flex: 0 0 18px;
  transform: rotate(-90deg);
}
.pw-stock-structure .pw-stock-group[open] > summary .pw-stock-chevron {
  transform: rotate(0);
}
.pw-stock-structure .pw-stock-group > summary h4 {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 17px;
}
.pw-stock-structure .pw-stock-group > summary > span {
  font-size: 13px;
  color: var(--ui-text-muted,#555e6d);
}
.pw-stock-structure .pw-stock-table-wrap {
  overflow: auto;
}
.pw-stock-structure .pw-stock-table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
}
.pw-stock-structure .pw-stock-table th,
.pw-stock-structure .pw-stock-table td {
  padding: 10px 12px;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid var(--ui-line-subtle,#d4d8df);
  overflow-wrap: anywhere;
}
.pw-stock-structure .pw-stock-table th {
  background: var(--ui-surface-subtle,#f5f6f8);
  font-size: 13px;
}
.pw-stock-structure .pw-stock-table tbody tr:nth-child(2n) {
  background: var(--ui-surface-subtle,#f5f6f8);
}
.pw-stock-structure .pw-stock-table small {
  display: block;
  margin-top: 4px;
  color: var(--ui-text-muted,#555e6d);
  font-size: 12px;
}
.pw-stock-structure .pw-stock-conflict summary {
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.pw-stock-structure .pw-stock-no-rows {
  padding: 12px;
}
.pw-stock-structure .pw-stock-explanation {
  font-size: 13px;
}
@media (max-width: 600px) {
  .pw-stock-structure {
    padding: 16px 8px;
  }
  .pw-stock-structure .pw-stock-heading {
    flex-wrap: wrap;
  }
  .pw-stock-structure .pw-stock-search > label:first-child {
    min-width: 0;
    flex-basis: 100%;
  }
  .pw-stock-structure .pw-stock-secondary label {
    min-width: 0;
    flex-basis: 100%;
  }
  .pw-stock-structure .pw-stock-group > summary {
    flex-wrap: wrap;
  }
  .pw-stock-structure .pw-stock-group > summary > span {
    flex-basis: 100%;
    padding-left: 18px;
  }
  .pw-stock-structure .pw-stock-table,
  .pw-stock-structure .pw-stock-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .pw-stock-structure .pw-stock-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pw-stock-structure .pw-stock-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--ui-line,#8791a1);
  }
  .pw-stock-structure .pw-stock-table td {
    display: block;
    min-width: 0;
    padding: 8px;
    border-bottom: 0;
  }
  .pw-stock-structure .pw-stock-table td:first-child,
  .pw-stock-structure .pw-stock-table td:last-child {
    grid-column: 1/-1;
  }
  .pw-stock-structure .pw-stock-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ui-text-muted,#555e6d);
    margin-bottom: 4px;
  }
  .pw-stock-structure .pw-stock-table td:last-child button {
    width: 100%;
  }
  .pw-stock-structure .pw-stock-choice > div button,
  .pw-stock-structure .pw-stock-type-tabs > button {
    flex: 1;
    min-width: 90px;
  }
}
.pw-stock-structure .pw-stock-table th:last-child,
.pw-stock-structure .pw-stock-table td:last-child {
  width: 110px;
  min-width: 110px;
}
@media (max-width: 600px) {
  .pw-stock-structure .pw-stock-table-wrap {
    overflow: visible;
  }
  .pw-stock-structure .pw-stock-table tbody tr {
    height: auto;
  }
  .pw-stock-structure .pw-stock-table td[data-label] {
    height: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    white-space: normal;
    min-height: 0;
  }
  .pw-stock-structure .pw-stock-table button {
    max-width: 100%;
    white-space: normal;
    padding: 8px 6px;
  }
  .pw-stock-structure .pw-stock-table td:last-child button {
    width: 100%;
  }
}
.pw-stock-structure .pw-stock-blank-choices {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pw-stock-structure .pw-stock-blank-choices button {
  padding: 6px 8px;
  font-size: 13px;
}
.pw-stock-structure .pw-stock-table th {
  word-break: normal;
  overflow-wrap: normal;
}
.pw-stock-structure .pw-stock-mirror-table {
  table-layout: fixed;
  min-width: 1080px;
  width: 100%;
}
.pw-stock-structure .pw-stock-mirror-table .pw-col-item {
  width: 28%;
}
.pw-stock-structure .pw-stock-mirror-table .pw-col-quantity {
  width: 15%;
}
.pw-stock-structure .pw-stock-mirror-table .pw-col-reserve {
  width: 14%;
}
.pw-stock-structure .pw-stock-mirror-table .pw-col-date {
  width: 17%;
}
.pw-stock-structure .pw-stock-mirror-table .pw-col-place {
  width: 14%;
}
.pw-stock-structure .pw-stock-mirror-table .pw-col-action {
  width: 12%;
}
.pw-stock-structure .pw-stock-mirror-table th,
.pw-stock-structure .pw-stock-mirror-table td {
  word-break: normal;
  overflow-wrap: normal;
}
.pw-stock-structure .pw-stock-mirror-table th:last-child,
.pw-stock-structure .pw-stock-mirror-table td:last-child {
  width: auto;
  min-width: 0;
}
.pw-stock-structure .pw-stock-mirror-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pw-stock-structure .pw-stock-mirror-quantity > span {
  font-size: 13px;
}
@media (max-width: 600px) {
  .pw-stock-structure .pw-stock-mirror-table {
    min-width: 0;
    table-layout: auto;
  }
  .pw-stock-structure .pw-stock-mirror-table colgroup {
    display: none;
  }
  .pw-stock-structure .pw-stock-mirror-table td[data-label] {
    width: auto;
    min-width: 0;
    max-width: none;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) {
  .pw-stock-structure .pw-stock-mirror-quantity {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .pw-stock-structure .pw-stock-mirror-quantity .stock-quantity {
    min-width: 44px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .pw-stock-structure .pw-stock-mirror-quantity > span {
    white-space: nowrap;
  }
}
.pw-stock-structure .pw-stock-lot-holds {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--ui-line,#8791a1);
  border-radius: 4px;
}
.pw-stock-structure .pw-stock-lot-holds summary {
  font-weight: 700;
  cursor: pointer;
}
.pw-stock-structure .pw-stock-lot-holds li {
  margin: 8px 0;
}
.pw-stock-structure .pw-stock-lot-holds button {
  margin-left: 8px;
}
.pw-stock-structure .pw-stock-group-facts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.pw-stock-structure .pw-stock-group-area {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 2px;
}
.pw-stock-structure .pw-stock-group-area small {
  font-size: 13px;
  line-height: 1.35;
}
.pw-stock-structure .pw-stock-group-area small:first-child {
  font-weight: 600;
}
@media (max-width: 600px) {
  .pw-stock-structure .pw-stock-group-facts {
    align-items: flex-start;
  }
}
.pw-stock-structure .pw-component-widths {
  padding: 0 12px;
}
.pw-stock-structure .pw-component-width {
  margin: 12px 0;
}
.pw-stock-structure .pw-component-table {
  min-width: 1080px;
  table-layout: fixed;
}
.pw-stock-structure .pw-component-table th,
.pw-stock-structure .pw-component-table td {
  word-break: normal;
  overflow-wrap: normal;
}
.pw-stock-structure .pw-component-item {
  width: 30%;
}
.pw-stock-structure .pw-component-format {
  width: 17%;
}
.pw-stock-structure .pw-component-quantity {
  width: 13%;
}
.pw-stock-structure .pw-component-date {
  width: 17%;
}
.pw-stock-structure .pw-component-place {
  width: 12%;
}
.pw-stock-structure .pw-component-action {
  width: 11%;
}
.pw-stock-structure .pw-component-cut-table {
  min-width: 1200px;
}
.pw-stock-structure .pw-component-cut-table .pw-component-item {
  width: 27%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-format {
  width: 9%;
}
.pw-stock-structure .pw-component-cut {
  width: 17%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-date {
  width: 15%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-place {
  width: 10%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-action {
  width: 11%;
}
.pw-stock-structure .pw-component-table th:last-child,
.pw-stock-structure .pw-component-table td:last-child {
  width: auto;
  min-width: 0;
}
.pw-stock-structure .pw-component-review {
  font-weight: 600;
  color: var(--ui-text,#191c24);
}
@media (max-width: 600px) {
  .pw-stock-structure .pw-component-table,
  .pw-stock-structure .pw-component-cut-table {
    min-width: 0;
    table-layout: auto;
  }
  .pw-stock-structure .pw-component-table colgroup {
    display: none;
  }
  .pw-stock-structure .pw-component-table td[data-label] {
    width: auto;
    min-width: 0;
    max-width: none;
    overflow-wrap: anywhere;
  }
  .pw-stock-structure .pw-component-widths {
    padding: 0 4px;
  }
  .pw-stock-structure .pw-component-widths .pw-component-width {
    margin: 8px 0;
  }
}
.pw-stock-structure .pw-component-table th,
.pw-stock-structure .pw-component-table td,
.pw-stock-structure .pw-component-table td strong {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.pw-power-kit {
  margin-top: 6px;
  white-space: normal;
  max-width: 440px;
}
.pw-power-kit > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
}
.pw-power-kit .pw-stock-chevron {
  flex: 0 0 14px;
  transform: rotate(-90deg);
}
.pw-power-kit[open] .pw-stock-chevron {
  transform: rotate(0);
}
.pw-power-kit p,
.pw-power-kit ul {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}
.pw-power-kit ul {
  padding-left: 20px;
}
.pw-power-kit li {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .pw-power-kit {
    max-width: calc(100vw - 180px);
  }
  .pw-power-kit > summary {
    white-space: normal;
  }
}
.pw-stock-structure .pw-component-table,
.pw-stock-structure .pw-component-cut-table {
  min-width: 900px;
}
.pw-stock-structure .pw-component-table th,
.pw-stock-structure .pw-component-table td {
  padding: 6px 10px;
}
.pw-stock-structure .pw-component-place {
  width: 11%;
}
.pw-stock-structure .pw-component-action {
  width: 12%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-item {
  width: 19%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-format {
  width: 8%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-cut {
  width: 17%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-quantity {
  width: 11%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-date {
  width: 17%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-place {
  width: 15%;
}
.pw-stock-structure .pw-component-cut-table .pw-component-action {
  width: 13%;
}
.pw-stock-structure .pw-component-width .pw-component-table {
  min-width: 860px;
}
@media (max-width: 600px) {
  .pw-stock-structure .pw-component-table,
  .pw-stock-structure .pw-component-cut-table,
  .pw-stock-structure .pw-component-width .pw-component-table {
    min-width: 0;
  }
  .pw-stock-structure .pw-component-table td {
    padding: 8px;
  }
}
@media (min-width: 601px) {
  .pw-stock-structure .pw-component-table td {
    padding-top: 0;
    padding-bottom: 0;
  }
}
@media (min-width: 769px) {
  .pw-stock-structure .pw-component-table tbody tr {
    height: 44px;
  }
  .pw-stock-structure .pw-component-table tbody td {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .pw-stock-structure .pw-component-table tbody button,
  .pw-stock-structure .pw-component-table tbody .stock-quantity {
    min-height: 32px;
    line-height: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: middle;
  }
  .stock-category-tabs[aria-label="\420\430\437\434\435\43b\44b  \441\43a\43b\430\434\430"] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .stock-category-tabs[aria-label="\420\430\437\434\435\43b\44b  \441\43a\43b\430\434\430"] > button {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 8px 10px;
    line-height: 20px;
  }
  .stock-category-tabs[aria-label="\420\430\437\434\435\43b\44b  \441\43a\43b\430\434\430"] > button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}
@media (min-width: 769px) {
  .pw-stock-structure .pw-component-table tbody td {
    height: auto;
  }
}
.pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group > summary {
  flex-wrap: wrap;
}
.pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group > summary h4 {
  min-width: 190px;
  overflow-wrap: normal;
  word-break: normal;
}
.pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group-facts {
  flex: 1 1 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 12px;
  min-width: 0;
}
.pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group-area {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 12px;
}
@media (max-width: 600px) {
  .pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group > summary h4 {
    min-width: 0;
  }
  .pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group-facts,
  .pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group-area {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
  }
}
.pw-stock-structure[aria-label=\417\435\440\43a\430\43b\43e] .pw-stock-group-facts.pw-stock-group-empty {
  flex: 0 1 auto;
}
.navigation-content .pw-native-binding-container {
  padding: 0;
  min-width: 0;
  max-width: none;
}
.pw-native-binding-frame {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  background: var(--ui-surface,#fff);
}
@media (min-width: 900px) {
  .global-navigation .navigation-links > a,
  .global-navigation .navigation-links .navigation-task-entry > a,
  .global-navigation .navigation-links .navigation-group-button {
    min-height: 44px;
    gap: 8px;
    padding: 9px 12px;
  }
  .global-navigation .navigation-links > a > .lucide,
  .global-navigation .navigation-links .navigation-task-entry > a > .lucide,
  .global-navigation .navigation-links .navigation-group-button > .lucide:not(.navigation-chevron) {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .global-navigation .navigation-links .navigation-group-button > .navigation-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
  .global-navigation .navigation-links .navigation-group-button > span {
    overflow-wrap: normal;
    word-break: normal;
  }
  .global-navigation .navigation-links .navigation-submenu a > .lucide {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}
@media (min-width: 900px) {
  .navigation-content .att-page .att-duty-summary {
    padding: 16px;
  }
  .att-page .att-duty-summary-head {
    gap: 12px;
    align-items: start;
  }
  .att-page .att-duty-summary-head h2 {
    margin: 0;
  }
  .att-page .att-duty-summary-head p {
    margin: 4px 0 0;
  }
  .att-page .att-duty-summary-list {
    margin: 12px 0 0;
    gap: 12px 16px;
  }
  .att-page .att-duty-summary-list > div {
    padding-top: 8px;
  }
  .att-page .att-duty-summary-list :is(dt, dd) {
    font-size: 14px;
    line-height: 1.4;
  }
  .att-page .att-duty-summary-list dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
  }
  .navigation-content .att-page .att-month-calendar {
    padding: 12px 16px;
  }
  .navigation-content .att-page .att-month-card {
    padding: 0;
  }
  .att-page .att-month-card .att-list-head {
    padding: 16px;
    gap: 16px;
  }
  .att-page .att-month-legend {
    padding: 0 16px 12px;
    gap: 8px 16px;
  }
  .att-page .att-month-card .att-list-foot {
    padding: 12px 16px;
  }
}
@media (min-width: 900px) {
  .navigation-content .att-page > .ui-page-heading {
    margin-bottom: 12px;
  }
  .navigation-content .att-page .att-duty-summary {
    margin-bottom: 12px;
  }
  .att-page .att-duty-summary-head {
    min-height: 44px;
    margin-bottom: 8px;
  }
  .att-page .att-duty-summary-head > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
  }
  .att-page .att-duty-summary-head p {
    margin: 0;
  }
  .att-page .att-duty-summary-list {
    margin-top: 8px;
    row-gap: 8px;
  }
  .att-page .att-duty-summary-list dt {
    margin-bottom: 0;
  }
  .att-page .att-duty-summary-list dd {
    margin-top: 2px;
  }
  .att-page .att-view-switch {
    margin-bottom: 12px;
  }
  .navigation-content .att-page .att-month-calendar {
    margin-bottom: 12px;
  }
  .navigation-content .att-page .att-month-card {
    margin-top: 12px;
  }
}
.navigation-content .pw-team-page {
  max-width: 1480px;
  padding: 20px;
  background: var(--ui-surface);
  color: var(--ui-text);
  font-family: var(--ui-font);
  font-size: var(--ui-text-sm);
  line-height: 1.4;
  box-sizing: border-box;
}
.pw-team-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.pw-team-heading h1 {
  font-size: var(--ui-heading);
  line-height: 1.15;
  margin: 0 0 6px;
}
.pw-team-heading p,
.pw-team-muted {
  color: var(--ui-muted);
}
.pw-team-heading p {
  margin: 0;
}
.pw-team-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ui-control);
  padding: 8px 12px;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  color: var(--ui-text);
  font: inherit;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}
.pw-team-button:disabled {
  opacity: .6;
  cursor: wait;
}
.pw-team-button:focus-visible,
.pw-team-page summary:focus-visible,
.pw-team-page input:focus-visible {
  outline: 3px solid var(--ui-accent);
  outline-offset: 2px;
}
.pw-team-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pw-team-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 220px;
}
.pw-team-toolbar input {
  min-height: var(--ui-control);
  width: 100%;
  font: inherit;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  padding: 8px;
  box-sizing: border-box;
}
.pw-team-toolbar p {
  margin: 0;
}
.pw-team-notice {
  padding: 10px 12px;
  margin: 12px 0;
  background: var(--ui-subtle);
  border-left: 3px solid var(--ui-accent);
}
.pw-team-held {
  color: var(--ui-danger);
}
.pw-team-person {
  border: 1px solid var(--ui-line);
  margin-bottom: 8px;
  border-radius: var(--ui-radius-sm);
}
.pw-team-person > summary {
  cursor: pointer;
  padding: 12px 14px;
  min-height: var(--ui-control);
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
}
.pw-team-person > summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pw-team-person > summary strong {
  font-size: 16px;
}
.pw-team-person[open] > summary {
  background: var(--ui-selected-soft);
  border-bottom: 1px solid var(--ui-line);
}
.pw-team-person-body {
  padding: 12px 14px;
}
.pw-team-person-body > p {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.pw-team-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pw-team-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--ui-line);
}
.pw-team-task strong,
.pw-team-task p {
  overflow-wrap: anywhere;
}
.pw-team-task p {
  margin: 4px 0 0;
}
.pw-team-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
}
.pw-team-unmapped {
  margin-top: 20px;
}
.pw-team-unmapped h2 {
  font-size: 20px;
  margin: 0 0 6px;
}
.pw-team-unmapped > p {
  margin: 6px 0 12px;
}
.pw-team-sources {
  margin-top: 16px;
  border-top: 1px solid var(--ui-line);
  padding-top: 12px;
}
.pw-team-sources > summary {
  cursor: pointer;
  min-height: var(--ui-control);
}
.pw-team-page li {
  overflow-wrap: anywhere;
}
@media (max-width: 899px) {
  .navigation-content .pw-team-page {
    padding: 12px;
  }
  .pw-team-heading {
    gap: 8px;
  }
  .pw-team-heading h1 {
    font-size: 24px;
  }
  .pw-team-toolbar {
    display: grid;
    gap: 8px;
  }
  .pw-team-toolbar label {
    min-width: 0;
  }
  .pw-team-person > summary {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 8px;
  }
  .pw-team-person-body {
    padding: 10px;
  }
  .pw-team-task {
    grid-template-columns: 1fr;
  }
  .pw-team-task > .pw-team-button {
    justify-self: start;
  }
  .pw-team-heading > .pw-team-button {
    flex-shrink: 0;
  }
}
.pw-team-binding {
  margin: 8px 0;
}
.pw-team-binding > summary {
  cursor: pointer;
  min-height: var(--ui-control);
  display: flex;
  align-items: center;
  color: var(--ui-muted);
}
.pw-team-binding dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin: 8px 0;
}
.pw-team-binding dt {
  color: var(--ui-muted);
}
.pw-team-binding dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pw-team-toolbar {
  flex-wrap: wrap;
}
.pw-team-toolbar label {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 460px;
}
.pw-team-toolbar p {
  flex: 1 1 280px;
  min-width: 0;
}
.pw-team-task {
  align-items: start;
  padding: 8px 0;
}
.pw-team-tasks > .pw-team-task:first-child {
  border-top: 0;
}
.pw-team-binding {
  margin: 4px 0;
}
.pw-team-person-body {
  padding-top: 8px;
  padding-bottom: 8px;
}
@media (min-width: 900px) {
  .pw-team-binding > summary {
    min-height: 32px;
  }
}
.pw-team-person > summary {
  position: relative;
  padding-right: 38px;
}
.pw-team-chevron {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 16px;
  height: 16px;
  line-height: 0;
  color: var(--ui-muted);
}
.pw-team-chevron svg {
  width: 16px;
  height: 16px;
}
.pw-team-person[open] > summary > .pw-team-chevron {
  transform: rotate(90deg);
}
.pw-team-page:focus-visible {
  outline: 2px solid var(--ui-input-line);
  outline-offset: -2px;
}
@media (min-width: 900px) {
  .pw-team-person > summary {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .pw-team-chevron {
    top: 10px;
  }
}
.equipment-simple-editor .equipment-primary {
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ui-surface);
}
.equipment-simple-editor .equipment-primary h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.equipment-simple-editor .equipment-form-error-summary {
  padding: 12px;
  border: 1px solid var(--ui-input-line);
  border-left: 3px solid var(--ui-danger);
  background: var(--ui-surface);
  color: var(--ui-text);
}
.equipment-simple-editor .equipment-form-error-summary h2 {
  font-size: 16px;
  margin: 0 0 4px;
}
.equipment-simple-editor .equipment-form-error-summary p {
  margin: 4px 0;
}
.equipment-simple-editor .equipment-form-error-summary ul {
  margin: 0;
  padding-left: 20px;
}
.equipment-simple-editor .equipment-form-error-summary button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}
.equipment-simple-editor [aria-invalid=true] {
  border-color: var(--ui-danger);
  outline-color: var(--ui-danger);
}
.equipment-simple-editor .equipment-form-error-summary:focus-visible,
.equipment-simple-editor .equipment-form-error-summary button:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}
.equipment-simple-editor input,
.equipment-simple-editor select,
.equipment-simple-editor textarea {
  scroll-margin-bottom: var(--equipment-action-space,112px);
}
@media (max-width: 899px) {
  .equipment-simple-editor .equipment-save-bar {
    margin-top: var(--equipment-action-space,112px);
  }
}
.equipment-primary-photo {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--ui-input-line);
  background: var(--ui-surface);
  border-radius: var(--ui-radius-sm);
  min-width: 0;
}
.equipment-primary-photo input[type=file] {
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font: inherit;
}
.equipment-primary-photo p {
  margin: 6px 0;
}
.equipment-primary-photo img {
  display: block;
  max-width: 100%;
  width: 280px;
  height: 180px;
  object-fit: contain;
  margin-top: 8px;
  background: var(--ui-surface);
}
.equipment-number-choice {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.equipment-number-choice p {
  margin: 0;
}
.equipment-number-choice button {
  justify-self: start;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface);
  color: var(--ui-text);
  font: inherit;
  cursor: pointer;
}
:where(.navigation-shell) .global-navigation {
  background: var(--ui-nav-surface);
  color: var(--ui-nav-text);
  border-radius: 0;
  inset: 0 auto 0 0;
  height: 100dvh;
  width: var(--menu-width);
  box-shadow: none;
  --ui-text:var(--ui-nav-text);
  --ui-muted:var(--ui-nav-muted);
  --ui-surface:var(--ui-nav-surface);
  --ui-surface-raised:var(--ui-nav-raised);
  --ui-border:var(--ui-nav-line);
  --ui-selected-soft:var(--ui-nav-selected);
  padding: 12px 10px;
}
:where(.navigation-shell) .global-navigation .navigation-links > a,
:where(.navigation-shell) .global-navigation .navigation-task-entry > a,
:where(.navigation-shell) .global-navigation .navigation-group-button,
:where(.navigation-shell) .global-navigation .navigation-submenu a,
:where(.navigation-shell) .global-navigation .navigation-footer a,
:where(.navigation-shell) .global-navigation .navigation-footer button,
:where(.navigation-shell) .global-navigation .navigation-toggle {
  color: var(--ui-nav-text);
  background: transparent;
}
:where(.navigation-shell) .global-navigation .navigation-links > a > svg,
:where(.navigation-shell) .global-navigation .navigation-task-entry > a > svg,
:where(.navigation-shell) .global-navigation .navigation-group-button > svg:first-child {
  color: var(--ui-nav-text);
}
:where(.navigation-shell) .global-navigation .navigation-submenu a[aria-current=page],
:where(.navigation-shell) .global-navigation .is-current > .navigation-group-button,
:where(.navigation-shell) .global-navigation .navigation-links > a[aria-current=page],
:where(.navigation-shell) .global-navigation .navigation-task-entry > a[aria-current=page] {
  background: var(--ui-nav-selected);
  color: #fff;
  border-radius: 0;
  box-shadow: inset 4px 0 var(--ui-accent);
}
:where(.navigation-shell) .global-navigation a:hover,
:where(.navigation-shell) .global-navigation button:hover {
  background: var(--ui-nav-raised);
}
:where(.navigation-shell) .global-navigation .navigation-footer {
  border-color: var(--ui-nav-line);
  color: #d6dfe4;
}
:where(.navigation-shell) .global-navigation .navigation-footer small {
  color: var(--ui-nav-muted);
}
:where(.navigation-shell) .global-navigation .original-brand-logo {
  background: white;
  border-radius: 4px;
  overflow: hidden;
}
:where(.navigation-shell) .global-navigation .navigation-links > a,
:where(.navigation-shell) .global-navigation .navigation-task-entry > a,
:where(.navigation-shell) .global-navigation .navigation-group-button {
  font-size: 16px;
  min-height: 46px;
  padding: 9px 12px;
  gap: 12px;
}
:where(.navigation-shell) .global-navigation .navigation-submenu a {
  font-size: 14px;
  min-height: 42px;
  padding: 9px 12px;
}
:where(.navigation-shell) .global-navigation a:focus-visible,
:where(.navigation-shell) .global-navigation button:focus-visible {
  outline: 3px solid var(--ui-accent);
  outline-offset: -3px;
}
:where(.navigation-shell) .navigation-compact .global-navigation {
  width: var(--menu-width);
  inset: 0;
  height: 100dvh;
}
@media (min-width: 900px) {
  .navigation-shell:not(.navigation-compact) {
    --menu-width:236px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation {
    inset: 0;
    height: 100dvh;
    width: var(--menu-width);
    border-radius: 0;
    box-shadow: none;
  }
}
@media (max-width: 899px) {
  .navigation-shell:not(.navigation-compact) .global-navigation {
    inset: 0 auto 0 0;
    width: min(284px, 90vw);
    height: 100dvh;
    border-radius: 0;
  }
  .navigation-shell.navigation-compact .global-navigation {
    inset: 0 auto 0 0;
    width: var(--menu-width);
    height: 100dvh;
    border-radius: 0;
  }
}
:where(.navigation-shell) .global-navigation .navigation-task-counts a.navigation-task-count {
  color: #191c24;
}
@media (min-width: 900px) {
  :where(.navigation-shell) .global-navigation .navigation-links > a,
  :where(.navigation-shell) .global-navigation .navigation-links .navigation-task-entry > a,
  :where(.navigation-shell) .global-navigation .navigation-links .navigation-group-button {
    min-height: 44px;
    gap: 8px;
    padding: 9px 12px;
  }
  :where(.navigation-shell) .global-navigation .navigation-links > a > .lucide,
  :where(.navigation-shell) .global-navigation .navigation-links .navigation-task-entry > a > .lucide,
  :where(.navigation-shell) .global-navigation .navigation-links .navigation-group-button > .lucide:not(.navigation-chevron) {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  :where(.navigation-shell) .global-navigation .navigation-links .navigation-group-button > .navigation-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
  :where(.navigation-shell) .global-navigation .navigation-links .navigation-group-button > span {
    overflow-wrap: normal;
    word-break: normal;
  }
  :where(.navigation-shell) .global-navigation .navigation-links .navigation-submenu a > .lucide {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}
.navigation-shell {
  display: grid;
  grid-template-columns: var(--pw-nav-column, var(--menu-width)) minmax(0, 1fr);
  align-items: start;
}
.navigation-shell > .navigation-content,
.navigation-shell:not(.navigation-compact) > .navigation-content {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
}
:is(.navigation-shell.navigation-compact, .navigation-shell:not(.navigation-compact)) > .global-navigation {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  inset: auto;
  top: min(0px, calc(100dvh - var(--platform-nav-height, 100dvh)));
  min-height: 100dvh;
  height: auto;
  box-sizing: border-box;
  overflow: visible;
}
.navigation-shell > .global-navigation .navigation-links {
  flex: 1 0 auto;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-width: auto;
}
@media (max-width: 899px) {
  .navigation-shell:not(.navigation-compact) {
    --pw-nav-column: 64px;
  }
}
@media (min-width: 900px) {
  .navigation-shell:not(.navigation-compact) {
    --menu-width: 188px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-links > a,
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-task-entry > a,
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-group-button,
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-submenu a {
    padding-inline: 8px;
    gap: 7px;
  }
}
.navigation-shell.navigation-compact .mz-install-entry {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 4px;
  font-size: 0;
  text-align: center;
  white-space: normal;
}
.navigation-shell.navigation-compact .mz-install-entry::after {
  content: "\41d\430  \442\435\43b\435\444\43e\43d" / "";
  font-size: 12px;
  line-height: 1.2;
}
.global-navigation :is(.navigation-links a, .navigation-group-button, .navigation-footer a) svg {
  flex: none;
  stroke-width: 2;
  shape-rendering: geometricPrecision;
}
.navigation-shell > .global-navigation {
  background: var(--ui-nav-surface);
  --ui-surface: var(--ui-nav-surface);
  --ui-selected-soft: var(--ui-nav-selected);
}
.global-navigation .navigation-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 700;
}
.global-navigation .navigation-brand svg {
  flex: none;
}
.navigation-compact .global-navigation .navigation-brand {
  display: inline-flex;
}
.navigation-shell:not(.navigation-compact) .global-navigation .navigation-group-button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
}
.navigation-shell:not(.navigation-compact) .global-navigation .navigation-links :is(a, button) > span {
  word-break: normal;
  overflow-wrap: normal;
}
@media (min-width: 900px) {
  .navigation-shell:not(.navigation-compact) {
    --menu-width: 272px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation {
    padding-top: 8px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-head {
    padding-bottom: 4px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-head > a {
    min-height: 49px;
  }
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-links > a,
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-task-entry > a,
  .navigation-shell:not(.navigation-compact) .global-navigation .navigation-group-button {
    min-height: 42px;
    padding-block: 5px;
    line-height: 1.25;
  }
}
.global-navigation .navigation-order-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navigation-compact .navigation-order-trigger span:last-child {
  display: none;
}
.navigation-compact .global-navigation .navigation-order-trigger > span:first-child {
  display: inline;
}
.navigation-order-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 1px solid var(--ui-border, #d6d9df);
  border-radius: 8px;
  background: #fff;
  color: var(--ui-nav-surface);
}
.navigation-order-dialog::backdrop {
  background: #202c3366;
}
.navigation-order-dialog h2 {
  margin: 0;
}
.navigation-order-dialog label {
  display: grid;
  gap: 6px;
}
.navigation-order-dialog ol {
  padding-inline-start: 24px;
}
.navigation-order-dialog li {
  margin-bottom: 4px;
}
.navigation-order-dialog li span {
  margin-inline-end: 8px;
}
.navigation-order-dialog button,
.navigation-order-dialog select {
  min-height: 44px;
  font: inherit;
}
.navigation-order-dialog li button {
  min-width: 44px;
}
.navigation-order-dialog footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.navigation-order-dialog button[type=submit] {
  background: var(--ui-accent);
  color: var(--ui-nav-surface);
}
.navigation-order-dialog [role=alert] {
  color: #9b1c1c;
}
.navigation-order-announcement {
  min-height: 1.4em;
}
.stock-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 20px 0;
  border-bottom: 1px solid var(--ui-border, #d6d9df);
}
.stock-sections a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.stock-sections a[aria-current=page] {
  box-shadow: inset 0 -3px var(--ui-accent);
  font-weight: 700;
}
.pw-receipt .pw-step-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pw-receipt .pw-step-control:focus-visible {
  outline: 2px solid #806500;
  outline-offset: 2px;
}
.pw-receipt .pw-step-control:disabled {
  cursor: default;
}
.pw-receipt .pw-steps li:not(:last-child)::after {
  top: 22px;
}
.pw-receipt .pw-supplier-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (max-width: 799px) {
  .pw-receipt .pw-step-control {
    flex-direction: column;
    padding-inline: 0;
  }
  .pw-receipt .pw-supplier-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pw-receipt .pw-add {
  margin: 0 0 12px;
}
.pw-receipt .pw-add > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c6cbd3;
  border-radius: 6px;
  font-weight: 600;
  color: #17223a;
  background: #fff;
}
.pw-receipt .pw-add > summary:focus-visible {
  outline: 2px solid #806500;
  outline-offset: 2px;
}
.pw-receipt .pw-offers [role=status] {
  margin: 8px 0;
}
.pw-issue-preview {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 16px 24px 36px;
}
.pw-issue-preview h1 {
  font-size: 40px;
  margin: 0;
}
.pw-issue-preview > p {
  margin: 4px 0;
}
.pw-issue-preview .pw-breadcrumb {
  color: #435269;
}
.pw-issue-tabs {
  display: flex;
  border-bottom: 1px solid #d6d9df;
  margin: 18px 0 22px;
}
.pw-issue-tabs button {
  padding: 10px 26px;
  min-height: 48px;
  background: white;
  border: 0;
  border-radius: 0;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  font: inherit;
  color: #25334a;
}
.pw-issue-tabs button[aria-pressed=true] {
  border-bottom-color: #ffd500;
  font-weight: 700;
}
.pw-issue-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 30px;
}
.pw-issue-search-box {
  display: flex;
  align-items: center;
  width: min(100%, 585px);
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #aab5c6;
  border-radius: 6px;
  color: #435269;
}
.pw-issue-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 46px;
  font: inherit;
  color: #111827;
}
.pw-issue-search-box svg {
  flex: none;
}
.pw-issue-group {
  margin: 0 0 24px;
}
.pw-issue-group header {
  display: grid;
  grid-template-columns: auto 1fr 44px auto;
  gap: 12px 20px;
  align-items: center;
  padding: 7px 14px 7px 20px;
  background: #eef0f3;
}
.pw-issue-group header h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  font-size: 26px;
  background: transparent;
}
.pw-issue-group header h2 svg {
  flex: none;
}
.pw-issue-group-count {
  color: #435269;
}
.pw-issue-group header [type=button]:last-child {
  min-width: 140px;
  font-weight: 700;
}
.pw-issue-fold {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.pw-issue-fold[aria-expanded=false] svg {
  transform: rotate(-90deg);
}
.pw-issue-fold:disabled {
  cursor: default;
  opacity: .55;
}
.pw-issue-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, .55fr) minmax(0, .65fr);
  align-items: baseline;
  gap: 6px 16px;
  padding: 8px 20px;
  border-top: 1px solid #e4e7ec;
}
.pw-issue-row:nth-child(even) {
  background: #f7f8fa;
}
.pw-issue-row > span {
  font-weight: 700;
}
.pw-issue-row small {
  color: #435269;
}
.pw-issue-fact {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #e4e7ec;
}
.pw-issue-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #d6d9df;
  color: #435269;
}
.pw-issue-preview :is(button, input):focus-visible {
  outline: 2px solid #806500;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .pw-issue-preview {
    padding: 12px 10px 20px;
  }
  .pw-issue-preview h1 {
    font-size: 26px;
  }
  .pw-issue-search {
    margin-bottom: 14px;
  }
  .pw-issue-group {
    margin-bottom: 14px;
  }
  .pw-issue-group header {
    grid-template-columns: minmax(0, 1fr) 44px auto;
    gap: 0 3px;
    padding: 6px 7px;
  }
  .pw-issue-group header h2 {
    gap: 5px;
    font-size: 17px;
  }
  .pw-issue-group header h2 svg {
    width: 17px;
  }
  .pw-issue-group-count {
    grid-row: 2;
    font-size: 13px;
  }
  .pw-issue-fold,
  .pw-issue-group header [type=button]:last-child {
    grid-row: 1 / span 2;
  }
  .pw-issue-fold {
    grid-column: 2;
  }
  .pw-issue-group header [type=button]:last-child {
    grid-column: 3;
    min-width: 0;
    padding-inline: 10px;
  }
  .pw-issue-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px;
  }
  .pw-issue-row small {
    grid-column: 1 / -1;
  }
}
@media (max-width: 360px) {
  .pw-issue-tabs button {
    padding-inline: 12px;
    white-space: nowrap;
  }
  .pw-issue-group header {
    grid-template-columns: minmax(0, 1fr) 44px auto;
    padding-inline: 5px;
  }
  .pw-issue-group header h2 {
    font-size: 16px;
    gap: 4px;
    white-space: nowrap;
  }
  .pw-issue-group header h2 svg {
    width: 15px;
  }
  .pw-issue-group header [type=button]:last-child {
    padding-inline: 7px;
    font-size: 14px;
  }
  .pw-issue-search-box {
    padding-inline: 8px;
    gap: 6px;
  }
  .pw-issue-search-box input {
    padding-inline: 2px;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .pw-issue-preview .pw-issue-group header h2 {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.eq-registration {
  max-width: 820px;
  width: 100%;
  margin: 0;
  color: #171b21;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.eq-registration * {
  box-sizing: border-box;
}
.eq-registration .eq-registration-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.eq-registration .eq-registration-card {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #dfe2e7;
  border-radius: 5px;
  background: #fff;
}
.eq-registration .eq-registration-card > label,
.eq-registration .eq-registration-card > h2 {
  display: block;
  margin: 0 0 10px;
  font: 600 20px/1.3 Arial, sans-serif;
}
.eq-registration input:not([type=radio]):not([type=file]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd0d7;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: 400 16px/1.3 Arial, sans-serif;
  white-space: normal;
}
.eq-registration .eq-registration-muted {
  color: #717785;
  font-size: 16px;
  font-weight: 400;
}
.eq-registration .eq-registration-help {
  margin: 8px 0 0;
  color: #656b74;
  font: 400 14px/1.45 Arial, sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
}
.eq-registration .eq-registration-number {
  padding: 0 2px;
}
.eq-registration .eq-registration-number label {
  display: block;
  margin-bottom: 6px;
  color: #656b74;
}
.eq-registration .eq-registration-number input {
  background: #f6f7f8;
  border-color: #e3e5e8;
}
.eq-registration .eq-registration-placement {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.eq-registration .eq-registration-placement > label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccd1d8;
  border-radius: 4px;
  background: #fff;
  font: 600 16px/1.3 Arial, sans-serif;
  white-space: normal;
  cursor: pointer;
}
.eq-registration .eq-registration-placement > label:has(input:checked) {
  border-color: #b79b12;
  background: #fff8d8;
}
.eq-registration .eq-registration-placement input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: #af9000;
}
.eq-registration .eq-registration-picker {
  position: relative;
  min-width: 0;
  margin-top: 12px;
}
.eq-registration .eq-registration-picker > label {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.eq-registration .eq-registration-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd0d7;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  color: inherit;
  font: 400 16px/1.3 Arial, sans-serif;
  white-space: normal;
  cursor: pointer;
}
.eq-registration .eq-registration-select > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.eq-registration .eq-registration-select svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.eq-registration .eq-registration-placeholder {
  color: #858b96;
}
.eq-registration .eq-registration-select:disabled {
  background: #f5f6f7;
  color: #858b96;
  cursor: default;
}
.eq-registration .eq-registration-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  padding: 8px;
  border: 1px solid #d9dde3;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 15px #0000001a;
}
.eq-registration .eq-registration-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0 8px;
  border: 1px solid #e0e3e7;
  border-radius: 4px;
}
.eq-registration .eq-registration-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #757c88;
}
.eq-registration .eq-registration-search input {
  border: 0 !important;
  padding-left: 0 !important;
  background: transparent !important;
}
.eq-registration .eq-registration-picker-menu [role=listbox] {
  max-height: 260px;
  overflow: auto;
}
.eq-registration .eq-registration-picker-menu [role=option] {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: inherit;
  text-align: left;
  font: 400 16px/1.3 Arial, sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.eq-registration .eq-registration-picker-menu [role=option]:hover,
.eq-registration .eq-registration-picker-menu [aria-selected=true] {
  background: #fff8d8;
}
.eq-registration .eq-registration-picker-menu p {
  margin: 6px;
  padding: 8px;
  color: #656b74;
  white-space: normal;
}
.eq-registration .equipment-primary-photo {
  margin: 0;
}
.eq-registration .eq-registration-photo-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.eq-registration .eq-registration-photo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 140px;
  border: 1px dashed #c7cdd6;
  border-radius: 4px;
  background: #f8f9fb;
  color: #777f8c;
  text-align: center;
}
.eq-registration .eq-registration-photo-preview > svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.6;
}
.eq-registration .eq-registration-photo-preview img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 140px;
  max-height: 140px;
  object-fit: contain;
  margin: 0;
}
.eq-registration .eq-registration-photo-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.eq-registration .eq-registration-photo-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #9ca3ae;
  border-radius: 4px;
  background: #fff;
  color: #242b35;
  font: 400 16px/1.3 Arial, sans-serif;
  white-space: normal;
  cursor: pointer;
}
.eq-registration .eq-registration-photo-control > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.eq-registration .eq-registration-photo-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.eq-registration .eq-registration-photo-control:has(input:disabled) {
  opacity: .55;
  cursor: default;
}
.eq-registration .eq-registration-photo-control:focus-within {
  outline: 3px solid #e4c42b;
  outline-offset: 2px;
}
.eq-registration .eq-registration-photo-attach {
  border-color: transparent;
  justify-content: flex-start;
}
.eq-registration .eq-registration-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.eq-registration .eq-registration-link {
  min-height: 38px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #35577d;
  font: 400 15px/1.35 Arial, sans-serif;
  text-decoration: underline;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.eq-registration .eq-registration-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 12px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #e0e3e7;
  background: #fff;
}
.eq-registration .eq-registration-actions > p {
  margin: 0;
  white-space: normal;
}
.eq-registration .eq-registration-submit {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e5c525;
  border-radius: 5px;
  background: #ffdd32;
  color: #191b20;
  font: 600 18px/1.3 Arial, sans-serif;
  white-space: normal;
  cursor: pointer;
}
.eq-registration .eq-registration-submit:disabled {
  opacity: .55;
  cursor: default;
}
.eq-registration button:focus-visible,
.eq-registration input:focus-visible {
  outline: 3px solid #d4b52a;
  outline-offset: 2px;
}
.equipment-reference-legacy > .eq-registration-return {
  min-height: 44px;
  margin-bottom: 12px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #35577d;
  font: 400 15px/1.35 Arial, sans-serif;
  text-decoration: underline;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
@media (max-width: 600px) {
  .eq-registration .eq-registration-card {
    padding: 12px;
  }
  .eq-registration .eq-registration-card > label,
  .eq-registration .eq-registration-card > h2 {
    font-size: 18px;
  }
  .eq-registration input:not([type=radio]):not([type=file]),
  .eq-registration .eq-registration-select,
  .eq-registration .eq-registration-picker-menu [role=option],
  .eq-registration .eq-registration-link {
    min-height: 44px;
  }
  .eq-registration .eq-registration-placement {
    gap: 8px;
  }
  .eq-registration .eq-registration-placement > label {
    gap: 6px;
    padding: 9px 8px;
    font-size: 15px;
  }
  .eq-registration .eq-registration-photo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .eq-registration .eq-registration-photo-preview {
    width: 120px;
    min-height: 100px;
  }
  .eq-registration .eq-registration-photo-preview img {
    height: 100px;
    max-height: 100px;
  }
  .eq-registration .eq-registration-photo-preview > svg {
    width: 32px;
    height: 32px;
  }
  .eq-registration .eq-registration-photo-actions {
    gap: 4px;
  }
  .eq-registration .eq-registration-photo-control {
    font-size: 16px;
  }
  .eq-registration .eq-registration-submit {
    font-size: 17px;
  }
}
.eq-local-equipment.eq-registration {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.eq-local-equipment .eq-registration-card {
  padding: 12px 16px;
}
.eq-local-equipment .eq-registration-card > h2 {
  font: 600 16px/1.35 inherit;
  margin: 0 0 10px;
}
.eq-local-equipment .eq-local-equipment-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.eq-local-equipment .eq-registration-photo-grid {
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  gap: 12px;
}
.eq-local-equipment .eq-registration-photo-preview {
  width: auto;
  min-height: 100px;
}
.eq-local-equipment .eq-registration-photo-preview img {
  height: 100px;
  max-height: 100px;
}
.eq-local-equipment .eq-registration-photo-control {
  justify-content: flex-start;
}
.eq-local-equipment .eq-local-equipment-number > summary {
  min-height: 36px;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 600px) {
  .eq-local-equipment .eq-local-equipment-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .eq-local-equipment .eq-registration-photo-control {
    font-size: 14px;
    padding-inline: 8px;
  }
}
@media (max-width: 360px) {
  .eq-local-equipment .eq-registration-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .eq-local-equipment .eq-registration-photo-preview {
    max-width: 140px;
  }
}
.eq-local-equipment .eq-registration-card > h2 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.eq-local-equipment .eq-registration-photo-control > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .eq-local-equipment .eq-registration-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .eq-local-equipment .eq-registration-photo-preview {
    max-width: 140px;
  }
}
.eq-connected-placement .eq-registration-placement input {
  min-height: 0;
}
.eq-connected-placement .eq-registration-picker-menu {
  position: static;
  margin-top: 4px;
  box-shadow: none;
}
.eq-connected-placement .eq-place-add {
  margin-top: 8px;
}
.eq-connected-placement .eq-registration-link:disabled {
  color: var(--ui-muted);
  cursor: default;
}
@media (max-width: 360px) {
  .eq-connected-placement .eq-registration-placement {
    grid-template-columns: 1fr;
  }
}
.equipment-page .equipment-saved-photo {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.equipment-page .equipment-saved-photo figcaption {
  font-weight: 600;
}
.equipment-page .equipment-saved-photo img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  justify-self: start;
  border: 1px solid var(--ui-input-line);
  border-radius: var(--ui-radius-sm);
}
.eq-registration .eq-nameplate-review {
  margin-top: -6px;
  padding: 0 16px 8px;
  min-width: 0;
}
.eq-nameplate-review p {
  margin: 4px 0 8px;
  color: var(--ui-muted);
}
.eq-nameplate-review [role=alert] {
  color: #a12220;
}
.eq-nameplate-result dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
}
.eq-nameplate-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.eq-nameplate-result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.eq-nameplate-documents ul {
  margin: 4px 0;
  padding-inline-start: 24px;
}
.eq-nameplate-documents a {
  overflow-wrap: anywhere;
}
.eq-nameplate-documents [aria-label="\420\430\431\43e\442\44b  \434\43b\44f  \447\435\440\43d\43e\432\438\43a\430  \422\41e"] {
  margin-top: 10px;
}
.eq-nameplate-documents [aria-label="\420\430\431\43e\442\44b  \434\43b\44f  \447\435\440\43d\43e\432\438\43a\430  \422\41e"] li {
  padding-block: 6px;
}
.eq-nameplate-documents [aria-label="\420\430\431\43e\442\44b  \434\43b\44f  \447\435\440\43d\43e\432\438\43a\430  \422\41e"] p {
  overflow-wrap: anywhere;
}
.eq-check-page {
  max-width: 860px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.eq-check-page h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}
.eq-check-page header p,
.eq-check-panel p,
.eq-check-actions p {
  margin: 4px 0 0;
}
.eq-check-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.eq-check-panel {
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--ui-input-line,#dfe2e7);
  border-radius: 6px;
  background: var(--ui-surface,#fff);
}
.eq-check-panel h2,
.eq-check-panel legend {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
}
.eq-check-panel legend {
  padding: 0 5px;
}
.eq-check-progress,
.eq-check-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.eq-check-panel progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 8px 0;
  accent-color: #e6b800;
}
.eq-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.eq-check-list li + li {
  border-top: 1px solid #e2e5ea;
}
.eq-check-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 48px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.eq-check-list strong,
.eq-check-list small {
  display: block;
  overflow-wrap: anywhere;
}
.eq-check-list small {
  color: #505b69;
}
.eq-check-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 4px;
  background: #eef0f3;
  color: #3f4957;
  font-size: 13px;
  font-weight: 650;
}
.eq-check-status[data-state=partial] {
  background: #fff1c9;
  color: #704a08;
}
.eq-check-status[data-state=checked] {
  background: #e5f2e8;
  color: #1d5c39;
}
.eq-check-options {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.eq-check-options.is-presence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.eq-check-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #cdd2d9;
  border-radius: 5px;
  cursor: pointer;
}
.eq-check-options label:has(input:checked) {
  border-color: #a78400;
  background: #fff7d3;
}
.eq-check-options label[data-condition=broken]:has(input:checked) {
  border-color: #ba4949;
  background: #fff0f0;
}
.eq-check-options input {
  flex: none;
  accent-color: #896900;
}
.eq-check-panel textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
}
.eq-check-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 4px;
  background: #fff;
  padding: 8px 0 10px;
}
.eq-check-primary {
  min-height: 44px;
  width: 100%;
}
.eq-check-link {
  justify-self: start;
  min-height: 44px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: #315681;
  cursor: pointer;
}
.eq-check-page [role=alert] {
  color: #9d2424;
}
.eq-check-page :is(button, input, textarea, select, a):focus-visible {
  outline: 2px solid #9d7c00;
  outline-offset: 2px;
}
@media (max-width: 400px) {
  .eq-check-panel {
    padding: 10px;
  }
  .eq-check-list button {
    gap: 5px;
  }
  .eq-check-status {
    font-size: 12px;
  }
}
.crm-inventory-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0;
}
.crm-inventory-check small {
  color: #5b4b20;
}
.eq-check-add {
  justify-self: start;
}
@media (max-width: 360px) {
  .eq-check-list button {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .eq-check-list button > .eq-check-status {
    grid-column: 1;
    justify-self: start;
  }
  .eq-check-list button > [aria-hidden] {
    grid-column: 2;
    grid-row: 1/span 2;
  }
}
.pw-loading-frame {
  display: block;
  width: 100%;
  height: 100dvh;
  border: 0;
  background: #fff;
}
@media (max-width: 760px) {
  .pk-compact-detail .pk-compact-glue-source .pk-compact-source-link,
  .pk-compact-detail .pk-compact-sources summary {
    min-height: 44px;
    min-width: 0;
    padding-block: 6px;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 420px) {
  .pk-knowledge .pk-heading nav {
    flex-wrap: wrap;
  }
}
.navigation-content .att-page .att-duty-summary {
  padding: 0 14px;
  margin-bottom: 12px;
}
.att-duty-toggle {
  padding: 12px 0;
  min-height: 44px;
  cursor: pointer;
  line-height: 20px;
}
.att-duty-toggle strong {
  margin-inline: 5px 8px;
}
.att-duty-date {
  color: var(--ui-muted);
  font-size: 14px;
}
.att-duty-action {
  margin-bottom: 8px;
}
.att-page .att-duty-summary[open] {
  padding-bottom: 14px;
}
.att-duty-toggle:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: -2px;
}
@media (max-width: 760px) {
  .att-page .att-heading-actions {
    flex-direction: row;
    align-items: stretch;
  }
  .att-page .att-heading-actions > button:first-child {
    width: 44px;
    min-width: 44px;
    padding: 8px;
    font-size: 0;
  }
  .att-page .att-heading-actions > button:last-child {
    min-width: 0;
    white-space: normal;
  }
  .att-page .att-month-calendar {
    gap: 8px;
    padding: 12px;
  }
  .att-page .att-month-calendar .att-day-title p {
    display: none;
  }
  .att-page .att-month-card .att-list-head {
    padding: 12px;
    gap: 8px;
  }
  .att-page .att-month-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 10px;
    gap: 6px 8px;
  }
  .att-page .att-month-legend > span {
    align-items: flex-start;
    gap: 5px;
  }
  .att-page .att-month-legend .att-day-mark {
    width: 18px;
    min-width: 18px;
    height: 18px;
  }
}
@media (max-width: 760px) {
  .att-page .ui-page-heading > .ui-page-actions {
    width: 100%;
  }
  .att-page .att-heading-actions {
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
  }
  .att-page .att-heading-actions > .ui-button {
    grid-column: auto;
  }
  .att-page .att-month-calendar .att-day-title small {
    display: none;
  }
  .att-page .att-month-calendar .att-date-controls {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .att-page .att-month-calendar .att-date-controls > .ui-button:last-child {
    min-width: 0;
    padding-inline: 4px;
    white-space: normal;
  }
  .att-page .att-month-calendar input {
    min-width: 0;
  }
  .att-page .att-month-card .att-search {
    width: 100%;
    min-width: 0;
  }
}
.pw-review .pw-panel {
  margin-bottom: 8px;
}
.pw-review .pw-panel-body {
  padding: 6px 18px 8px;
}
.pw-review .pw-panel h2 {
  font-size: 21px;
}
.pw-review .pw-panel > summary {
  min-height: 36px;
  padding-block: 5px;
  font-size: 19px;
}
.pw-review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--ui-section-bg);
  padding-right: 18px;
}
.pw-review-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  font-size: 16px;
}
.pw-review-table th,
.pw-review-table td {
  border: 1px solid var(--ui-line);
  padding: 2px 8px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}
.pw-review-table th:first-child,
.pw-review-table td[colspan] {
  text-align: left;
}
.pw-review-table thead {
  background: #eceef2;
}
.pw-review-warning {
  background: #fff6d8;
}
.pw-review .pw-note {
  margin: 6px 0;
  font-size: 15px;
}
.pw-review-edit {
  margin: 8px 0 0;
}
.pw-review-summary h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.pw-review-summary dl {
  margin: 0 0 8px;
}
.pw-review-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0;
}
.pw-review-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
.pw-review-total {
  border-top: 1px solid var(--ui-input-line);
  padding-top: 6px;
  font-weight: 700;
}
.pw-review-summary hr {
  border: 0;
  border-top: 1px solid var(--ui-line);
}
.pw-review-footer {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 1.8fr) 1fr;
  gap: 14px;
  align-items: center;
}
.pw-review-footer .pw-actions {
  display: contents;
}
.pw-review-footer .pw-actions > button[type=button] {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.pw-review-footer .pw-actions > button[type=submit] {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.pw-review-footer .pw-actions > button[type=submit] {
  min-width: min(340px, 100%);
}
.pw-review-footer > p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  text-align: center;
}
.pw-review-footer button[type=submit]:disabled {
  background: #e4e6ec !important;
  border-color: #e4e6ec !important;
  color: #52596a !important;
  opacity: 1;
}
@media (max-width: 760px) {
  .pw-review .pw-panel-body {
    padding-inline: 10px;
  }
  .pw-review .pw-panel h2 {
    font-size: 19px;
    padding-inline: 10px;
  }
  .pw-review-heading {
    padding-right: 10px;
  }
  .pw-review-table {
    font-size: 13px;
  }
  .pw-review-table th,
  .pw-review-table td {
    padding-inline: 4px;
  }
  .pw-review-footer {
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
  }
  .pw-review-footer > p {
    grid-column: 1 / -1;
    text-align: left;
  }
  .pw-review-footer .pw-actions > button[type=button] {
    grid-row: 2;
  }
  .pw-review-footer .pw-actions > button[type=submit] {
    grid-column: 2;
    grid-row: 2;
  }
}
.pw-review .pw-review-table thead th {
  white-space: normal;
}
.pw-review-document .pw-two {
  gap: 6px 24px;
  margin-bottom: 5px;
}
.pw-review-document .pw-field {
  gap: 2px;
  margin: 0 0 5px;
}
.pw-review-document .pw-field label {
  font-size: 16px;
  line-height: 20px;
}
.pw-review-document .pw-field input {
  min-height: 31px;
  padding-block: 3px;
}
.pw-review-document-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: start;
  gap: 4px 14px;
}
.pw-review-document-actions .pw-review-edit {
  margin: 0;
}
.pw-review-document-actions:has(.pw-review-edit[open]) {
  grid-template-columns: minmax(0, 1fr);
}
.pw-review-document .wh-invoice {
  position: relative;
  gap: 4px;
  border: 0;
  margin: 0;
  padding: 0;
}
.pw-review-document .wh-invoice > :is(h3, p:first-of-type, label, small) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.pw-review-document .wh-invoice input[type=file] {
  min-height: 35px;
  border: 0;
  padding: 0;
}
.pw-review-document .wh-invoice input::file-selector-button {
  min-height: 34px;
  padding: 4px 10px;
}
@media (min-width: 1150px) {
  .pw-review-footer {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    padding-block: 10px;
  }
  .pw-review-footer .pw-actions > button[type=submit] {
    min-width: 350px;
    white-space: nowrap;
    font-size: 17px;
  }
  .pw-review-footer > p {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .pw-review-document-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .pw-review-document .pw-field input {
    min-height: 38px;
  }
}
.pw-review-cost-notes {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  margin-top: 6px;
}
.pw-review .pw-review-cost-notes > p {
  margin: 0 0 4px;
}
@media (min-width: 1350px) {
  .pw-review-costs {
    position: relative;
  }
  .pw-review .pw-review-costs > h2 {
    padding-right: 218px;
  }
  .pw-review-costs .pw-review-price-source:not([open]) {
    margin: 0;
  }
  .pw-review-costs .pw-review-price-source > summary {
    position: absolute;
    top: 0;
    right: 18px;
    padding: 6px 2px;
    line-height: 25px;
    font-size: 16px;
  }
}
.pw-receipt .pw-step-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pw-receipt .pw-step-control:focus-visible {
  outline: 2px solid #806500;
  outline-offset: 2px;
}
.pw-receipt .pw-step-control:disabled {
  cursor: default;
}
.pw-receipt .pw-steps li:not(:last-child)::after {
  top: 22px;
}
.pw-receipt .pw-supplier-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (max-width: 799px) {
  .pw-receipt .pw-step-control {
    flex-direction: column;
    padding-inline: 0;
  }
  .pw-receipt .pw-supplier-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pw-receipt .pw-logistics-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 8px 16px;
  margin: 0 0 12px;
}
.pw-receipt .pw-logistics-facts dt {
  font-weight: 700;
}
.pw-receipt .pw-logistics-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pw-receipt .pw-review > .pw-review-edit {
  margin: 0 0 12px;
}
.pw-receipt .pw-add-position {
  margin-bottom: 12px;
}
.pw-receipt .pw-add-position button svg {
  flex-shrink: 0;
  vertical-align: text-bottom;
}
.pw-review-summary > .pw-review-edit {
  border-top: 1px solid var(--ui-line);
  margin: 0 16px;
  padding: 0 0 6px;
}
.pw-review-summary > .pw-review-edit > summary {
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}
.pw-review-summary > .pw-review-edit .pw-panel-body {
  padding: 8px 0;
}
.section-queue-page {
  max-width: none;
}
.section-queue-context,
.section-queue-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.section-queue-context {
  margin-block: 12px;
}
.section-queue-tools {
  padding: 12px;
}
.section-queue-tools input {
  max-width: 100%;
}
.section-queue-tools .ui-section-tabs {
  padding-inline: 0;
  gap: 14px;
  max-width: 100%;
}
.section-queue-stats,
.section-queue-card {
  border: 1px solid var(--ui-line, #dce2e8);
  border-radius: 6px;
  background: var(--ui-card, #fff);
  min-width: 0;
}
.section-queue-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  padding: 12px 0;
  margin: 0 0 12px;
}
.section-queue-stats div {
  padding: 0 14px;
  border-inline-end: 1px solid var(--ui-line, #dce2e8);
}
.section-queue-stats div:last-child {
  border-inline-end: 0;
}
.section-queue-stats dt {
  font-size: 13px;
}
.section-queue-stats dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.section-queue-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.section-queue-group {
  margin: 0;
  padding: 10px 14px;
  background: var(--ui-muted-bg, #f4f5f7);
  font-size: 16px;
}
.section-queue-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.section-queue-list button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-align: start;
  border: 0;
  border-bottom: 1px solid var(--ui-line, #dce2e8);
  background: transparent;
  color: inherit;
  overflow-wrap: anywhere;
}
.section-queue-list button:hover,
.section-queue-list button[aria-pressed=true] {
  background: #fff6d3;
}
.section-queue-list button:focus-visible {
  outline-offset: -3px;
}
.section-queue-list small {
  display: block;
  margin-top: 2px;
}
.section-queue-status {
  text-align: end;
  font-size: 13px;
}
.section-queue-empty,
.section-queue-detail {
  padding: 14px;
}
.section-queue-detail :is(h2, h3, p) {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.section-queue-detail h2 {
  font-size: 18px;
}
.section-queue-exit {
  margin-bottom: 0;
}
@media (max-width: 850px) {
  .section-queue-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-queue-stats {
    gap: 10px 0;
  }
  .section-queue-tools .ui-section-tabs {
    gap: 8px;
  }
  .section-queue-tools .ui-section-tabs button {
    font-size: 14px;
  }
}
.section-operation-page {
  max-width: none;
  min-width: 0;
  padding-block: 0;
}
.section-operation-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.section-operation-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 76px);
  min-height: 300px;
  border: 0;
}
.ar-approval-documents h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.ar-approval-documents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ar-approval-documents li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding-block: 6px;
  border-bottom: 1px solid var(--ui-line);
}
.ar-route-attachment {
  display: grid;
  gap: 8px;
  max-width: 540px;
  border-block: 1px solid var(--ui-line);
  padding-block: 10px;
}
.ar-route-attachment :is(h3, p) {
  margin: 0;
  overflow-wrap: anywhere;
}
.ar-route-attachment h3 {
  font-size: 16px;
}
.ar-route-attachment :is(input, select, textarea) {
  min-width: 0;
  width: 100%;
}
.ar-route-attachment button {
  justify-self: start;
}
.mobile-task-shell {
  --mobile-task-bar: 44px;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
}
.mobile-task-shell > .mobile-task-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: var(--mobile-task-bar);
  padding: 0 14px;
  border: 0;
  background: #fff;
  color: #202c33;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.mobile-task-shell > .mobile-task-menu:focus-visible {
  outline: 2px solid #846500;
  outline-offset: -3px;
}
.mobile-task-shell > .navigation-content,
.mobile-task-shell:not(.navigation-compact) > .navigation-content {
  grid-area: 2 / 1;
}
.mobile-task-shell > .global-navigation {
  grid-area: 2 / 1;
  position: static !important;
  width: 100% !important;
  min-height: calc(100dvh - var(--mobile-task-bar));
}
.mobile-task-shell .global-navigation .navigation-toggle,
.mobile-task-shell.navigation-compact > .global-navigation,
.mobile-task-shell:not(.navigation-compact) > :is(.navigation-content, .ui-skip-link) {
  display: none;
}
.mobile-task-shell .pw-loading-frame {
  height: calc(100dvh - var(--mobile-task-bar));
}
.mobile-task-shell > .navigation-content {
  min-height: 0;
}
.navigation-order-dialog > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 66px);
  min-height: 0;
}
.navigation-order-dialog > form > :is(h2, p, label, footer) {
  flex: none;
}
.navigation-order-dialog h2,
.navigation-order-dialog label {
  color: var(--ui-nav-surface);
}
.navigation-order-dialog select {
  width: 100%;
  color: var(--ui-nav-surface);
  background: #fff;
  border: 1px solid #a7b0b9;
}
.navigation-order-dialog ol {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 12px 0 0;
}
.navigation-order-dialog li {
  border-bottom: 1px solid #e3e6eb;
}
.navigation-order-dialog .navigation-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 0;
}
.navigation-order-dialog .navigation-order-row span {
  overflow-wrap: anywhere;
}
.navigation-order-dialog button {
  color: var(--ui-nav-surface);
  background: #f4f5f7;
  border: 1px solid #bac2ca;
  border-radius: 6px;
}
.navigation-order-dialog button:disabled {
  color: #626a73;
  background: #f5f5f5;
}
.navigation-order-dialog :is(button, select):focus-visible {
  outline: 2px solid #846500;
  outline-offset: -3px;
}
.navigation-order-dialog footer {
  justify-content: flex-end;
}
.navigation-order-dialog footer button[type=submit]:not(:disabled) {
  background: var(--ui-accent);
  border-color: #ac8300;
  color: var(--ui-nav-surface);
}
.mobile-equipment-registration .equipment-page {
  min-width: 0;
  gap: 8px;
  padding: 8px 12px 20px;
}
.mobile-equipment-registration .equipment-page h1 {
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.2;
}
.mobile-equipment-registration .equipment-simple-editor {
  min-width: 0;
  padding: 10px;
}
.mobile-equipment-registration .equipment-simple-editor > .ui-section-tabs {
  margin: 0 0 10px;
}
.mobile-equipment-registration .equipment-simple-editor > .ui-section-tabs > button {
  min-height: 44px;
  padding: 6px;
}
.mobile-equipment-registration .eq-local-equipment.eq-registration {
  gap: 8px;
}
.mobile-equipment-registration .eq-local-equipment .eq-registration-card {
  padding: 9px 10px;
}
.mobile-equipment-registration .eq-local-equipment .eq-local-equipment-fields {
  gap: 8px;
}
.mobile-equipment-registration .eq-local-equipment .eq-registration-photo-grid {
  grid-template-columns: minmax(70px, .42fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
.mobile-equipment-registration .eq-local-equipment .eq-registration-photo-preview {
  min-width: 0;
  min-height: 92px;
  max-width: none;
  font-size: 12px;
}
.mobile-equipment-registration .eq-local-equipment .eq-registration-photo-control {
  min-height: 44px;
  padding: 6px;
  gap: 6px;
  font-size: 14px;
}
.mobile-equipment-registration .eq-local-equipment .eq-registration-photo-control > svg {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
}
.mobile-equipment-registration .eq-registration-photo > p {
  font-size: 13px;
  line-height: 1.35;
  margin: 7px 0 0;
}
.mobile-equipment-registration .eq-registration .eq-nameplate-review {
  margin: 0;
  padding: 0 8px;
}
.mobile-equipment-registration .eq-registration .eq-nameplate-review > p {
  font-size: 13px;
  margin: 4px 0;
}
.mobile-equipment-registration .equipment-simple-editor .equipment-save-bar {
  bottom: 0;
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.mobile-equipment-registration .equipment-save-bar > .ui-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 6px;
}
.mobile-equipment-registration .equipment-save-bar > .ui-row > .ui-button {
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  font-size: 14px;
}
.mobile-equipment-registration .eq-registration .eq-nameplate-waiting {
  display: none;
}
.mobile-equipment-registration .eq-local-equipment .eq-registration-card:has(.eq-local-equipment-fields) > h2 {
  display: none;
}
.mobile-equipment-registration .equipment-simple-editor > .ui-section-tabs {
  margin-block-end: 4px;
}
.att-page .att-legend-disclosure {
  padding: 0 14px 4px;
}
.att-page .att-legend-disclosure > summary {
  display: list-item;
  width: fit-content;
  min-height: 44px;
  padding: 10px 6px;
  cursor: pointer;
  color: var(--ui-text);
  font-size: 14px;
}
.att-page .att-legend-disclosure > summary:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: -2px;
}
.att-page .att-legend-disclosure .att-month-legend {
  padding: 2px 6px 8px;
}
.mobile-attendance .att-page {
  padding: 6px 12px 20px;
}
.mobile-attendance .att-page .ui-page-heading {
  gap: 8px;
  margin-bottom: 10px;
}
.mobile-attendance .att-page .ui-page-heading h1 {
  font-size: 26px;
}
.mobile-attendance .att-page .att-duty-summary {
  margin-bottom: 8px;
}
.mobile-attendance .att-page .att-month-calendar .att-day-title {
  display: none;
}
.mobile-attendance .att-page .att-month-calendar {
  padding: 8px;
  margin-bottom: 8px;
}
.mobile-attendance .att-page .att-month-card .att-list-head {
  padding: 8px 10px 4px;
  gap: 5px;
}
.mobile-attendance .att-page .att-month-card .att-list-head h2 {
  font-size: 20px;
  line-height: 1.25;
}
.mobile-attendance .att-page .att-month-card .att-list-head p {
  margin-top: 3px;
}
.mobile-attendance .att-page .att-legend-disclosure {
  padding: 0 10px 2px;
}
.wh-dialog .pw-power-kit-card {
  max-width: none;
  margin: 8px 0 14px;
  padding: 0 12px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
}
@media (min-width: 769px) and (pointer: fine) {
  .stock-material-group .stock-table tr:has(.pw-power-kit) > td {
    padding-block: 4px;
  }
  .stock-material-group .pw-power-kit {
    margin-top: 0;
  }
  .stock-material-group .pw-power-kit > summary {
    display: inline-flex;
    min-height: 26px;
    padding: 2px 0;
  }
}
@media (max-width: 768px) {
  .stock-material-group:has(.pw-power-kit) {
    & .stock-table-scroll {
      max-height: none;
      overflow: visible;
    }
    & .stock-table {
      display: block;
      width: 100%;
      min-width: 0;
    }
    & :is(thead, tbody) {
      display: block;
    }
    & tr {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(56px, auto);
      align-items: start;
    }
    & :is(th, td) {
      width: auto !important;
      min-width: 0;
      height: auto !important;
      padding: 4px 6px !important;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    & th:nth-child(n+3) {
      display: none;
    }
    & td:first-child,
    & td:nth-child(3) {
      grid-column: 1 / -1;
    }
    & td:nth-child(2) {
      grid-column: 1;
      grid-row: 2;
    }
    & td:last-child {
      grid-column: 2;
      grid-row: 2;
      justify-self: end;
    }
    & .stock-quantity-cell {
      flex-wrap: wrap;
      gap: 2px;
    }
    & .pw-power-kit {
      margin-top: 0;
    }
    & .pw-power-kit > summary {
      display: inline-flex;
      font-size: 14px;
      line-height: 1.35;
      min-height: 44px;
      padding: 3px 0;
    }
  }
}
.pw-receipt .pw-logistics-status {
  color: var(--ui-text-secondary, #434d60);
  font-size: .875em;
  font-weight: 400;
}
.pw-review-document .wh-invoice-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}
.pw-review-document .wh-invoice-picker input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  clip-path: inset(50%);
}
.pw-review-document .wh-invoice-picker label {
  min-height: 35px;
  max-width: 100%;
  padding: 4px 10px;
  gap: 6px;
  cursor: pointer;
}
.pw-review-document .wh-invoice-picker input:focus-visible + label {
  outline: 2px solid var(--ui-focus, #125fce);
  outline-offset: 2px;
}
.pw-review-document .wh-invoice-picker input:disabled + label {
  opacity: .6;
  cursor: default;
}
.pw-review-document .wh-invoice-picker span {
  font-size: .875em;
  color: var(--ui-text-secondary, #434d60);
}
.pw-review-document .wh-invoice-list a {
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  .pw-review-document .wh-invoice-picker label {
    min-height: 44px;
  }
}
.pw-saved-quantities th,
.pw-saved-quantities td {
  vertical-align: top;
  padding-block: 6px;
}
.pw-saved-quantities th:first-child {
  width: 38%;
}
.pw-saved-quantities tbody th {
  font-weight: normal;
}
.pw-saved-quantities tbody th span,
.pw-saved-quantities td small {
  display: block;
  margin-top: 3px;
}
.pw-saved-quantities .pw-saved-quantity-discrepancy {
  background: #fff6d6;
}
@media (max-width: 768px) {
  .pw-saved-quantities th:first-child {
    width: 34%;
  }
}
.pw-saved-result .pw-success {
  align-items: center;
}
.pw-saved-result .pw-step-control {
  cursor: default;
}
.pw-saved-document {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}
.pw-saved-document > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.pw-saved-document dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pw-saved-detail {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.pw-saved-result .pw-saved-costs {
  margin-top: 0;
}
.pw-saved-costs > div:last-child {
  font-weight: 700;
}
.pw-saved-result .pw-saved-quantities thead th {
  white-space: normal;
}
.pw-saved-notes p {
  border: 1px solid var(--ui-border, var(--ui-line));
  border-radius: 6px;
  padding: 5px 10px;
  margin: 6px 0;
}
@media (max-width: 768px) {
  .pw-saved-document {
    grid-template-columns: 1fr;
  }
  .pw-saved-result .pw-saved-quantities th:first-child {
    width: 28%;
  }
  .pw-saved-result .pw-saved-quantities th:nth-child(2) {
    width: 28%;
  }
  .pw-saved-result .pw-saved-quantities th,
  .pw-saved-result .pw-saved-quantities td {
    padding-inline: 3px;
    white-space: normal;
  }
  .pw-saved-result .pw-saved-quantities thead th {
    font-size: 12px;
  }
}
.pw-saved-result .pw-saved-quantities th[scope=row] {
  white-space: normal;
}
.pw-saved-result .pw-saved-quantities tbody th small {
  display: block;
  margin-top: 3px;
}
@media (max-width: 768px) {
  .pw-saved-result .pw-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 12px;
  }
  .pw-saved-result .pw-steps li {
    flex: 0 0 auto;
  }
  .pw-saved-result .pw-steps li::after {
    display: none;
  }
  .pw-saved-result .pw-step-control {
    flex-direction: row;
    gap: 4px;
    min-height: 24px;
  }
  .pw-saved-result .pw-step-label {
    flex: none;
    white-space: nowrap;
  }
  .pw-saved-result .pw-saved-quantities,
  .pw-saved-result .pw-saved-quantities > :is(thead, tbody) {
    display: block;
  }
  .pw-saved-result .pw-saved-quantities tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pw-saved-result .pw-saved-quantities thead th:first-child {
    display: none;
  }
  .pw-saved-result .pw-saved-quantities th:is(:first-child, :nth-child(2)) {
    width: auto;
  }
  .pw-saved-result .pw-saved-quantities tbody :is(th, [colspan]) {
    grid-column: 1 / -1;
    text-align: left;
    padding-inline: 8px;
  }
  .pw-saved-result .pw-saved-quantities th[scope=row] {
    padding-block: 8px;
  }
  .pw-saved-result .pw-saved-quantities td:not([colspan]) {
    text-align: right;
    padding-inline: 6px;
  }
}
@media (max-width: 400px) {
  .pw-saved-result .pw-saved-quantities tr {
    grid-template-columns: minmax(0, 1.24fr) repeat(2, minmax(0, 0.88fr));
  }
  .pw-saved-result .pw-saved-quantities thead th {
    overflow-wrap: normal;
    word-break: normal;
  }
}
@media (min-width: 1000px) {
  .pw-saved-result .pw-steps {
    margin-block: 12px 16px;
  }
  .pw-saved-result .pw-success {
    margin-block: 12px;
    padding-block: 10px;
  }
  .pw-saved-result > .pw-panel {
    margin-bottom: 12px;
  }
  .pw-saved-result .pw-panel-body {
    padding-block: 10px;
  }
  .pw-saved-result .pw-saved-costs {
    gap: 4px;
    margin-bottom: 8px;
  }
  .pw-saved-result .pw-saved-costs > div {
    padding-bottom: 4px;
  }
  .pw-saved-result .pw-saved-costs + p {
    margin-block: 8px 0;
  }
  .pw-saved-result .pw-saved-notes p {
    margin-block: 4px;
  }
  .pw-saved-result .pw-actions {
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  .pk-knowledge > .pk-filters:has(> .pk-provider) {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(0, 2fr);
    gap: 6px;
  }
  .pk-knowledge > .pk-filters:has(> .pk-provider) > :is(.pk-search, select ~ select, button) {
    grid-column: 1 / -1;
  }
  .pk-knowledge > .pk-filters:has(> .pk-provider) > :is(.pk-search, select, .pk-provider) {
    min-width: 0;
    width: 100%;
  }
  .pk-knowledge > .pk-filters:has(> .pk-provider) > :is(select, .pk-provider),
  .pk-knowledge > .pk-filters:has(> .pk-provider) .pk-search input {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .pk-knowledge > .pk-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    gap: 4px 8px;
    align-items: center;
  }
  .pk-knowledge > .pk-heading h1 {
    font-size: 21px;
    line-height: 1.2;
  }
  .pk-knowledge > .pk-heading nav {
    grid-column: 1 / -1;
    gap: 0 8px;
  }
  .pk-knowledge > .pk-heading nav a,
  .pk-knowledge > .pk-heading .pk-sources summary {
    min-height: 44px;
  }
  .pk-knowledge .pk-workspace-footer > .pk-group-pagination {
    gap: 4px;
  }
}
@media (max-width: 360px) {
  .pk-knowledge .pk-group-pagination {
    display: grid;
    grid-template-columns: repeat(3, minmax(44px, max-content));
  }
}
@media (min-width: 1101px) {
  .pkb-page:has(.pkb-register) > .pkb-source-line {
    position: relative;
  }
  .pkb-page:has(.pkb-register) > .pkb-source-line > details {
    position: static;
  }
  .pkb-page:has(.pkb-register) > .pkb-source-line > details[open] > p {
    inset-inline: 0 auto;
    width: min(440px, 100%);
    margin-block: 0;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .pkb-page .pkb-register .pkb-table {
    min-width: 500px;
  }
  .pkb-page .pkb-register .pkb-table :is(th, td) {
    padding-inline: 6px;
  }
  .pkb-page .pkb-register .pkb-table th:nth-child(2) {
    width: 27%;
  }
  .pkb-page .pkb-register .pkb-table th:nth-child(4) {
    width: 21%;
  }
  .pkb-page:has(.pkb-register) > .pkb-source-line > details[open] {
    flex-basis: 100%;
  }
}
.production-surface.overview-v10 {
  color: var(--ui-text);
  background: #fff;
  --ov10-line: #dce2ec;
  --ov10-muted: #53627a;
}
.overview-v10 .ov10-heading,
.overview-v10 .ov10-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 14px;
}
.overview-v10 .ov10-heading h1 {
  margin: 0;
  font: 700 clamp(30px, 3vw, 42px)/1.12 Arial, sans-serif;
}
.overview-v10 .ov10-heading p {
  margin: 0;
  color: var(--ov10-muted);
}
.overview-v10 .ov10-status {
  justify-content: space-between;
}
.overview-v10 .ov10-summary,
.overview-v10 .ov10-shortcuts,
.overview-v10 .ov10-shortcuts > *,
.overview-v10 .ov10-filters,
.overview-v10 .ov10-table-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.overview-v10 .ov10-summary {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  min-height: 44px;
  font: 700 22px/1.2 Arial, sans-serif;
  text-align: left;
}
.overview-v10 .ov10-summary svg,
.overview-v10 .ov10-deviations h2 svg {
  flex: none;
  color: #896500;
}
.overview-v10 .ov10-shortcuts > * {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e1c63e;
  border-radius: 5px;
  background: #ffdd32;
  color: #151719;
  font-weight: 700;
  text-decoration: none;
}
.overview-v10 .ov10-shortcuts button {
  width: auto;
  background: #fff;
  border-color: #c8d2e4;
}
.overview-v10 .ov10-summary {
  flex-wrap: nowrap;
}
.overview-v10 .ov10-table-heading,
.overview-v10 .ov10-deviations h2 {
  background: #f3f3f5;
}
.overview-v10 .ov10-stock {
  margin-bottom: 14px;
}
.overview-v10 .ov10-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--ov10-line);
  border-radius: 5px;
  min-height: 108px;
  padding: 12px 0;
  margin-bottom: 14px;
}
.overview-v10 .ov10-metric {
  padding: 0 14px;
  min-width: 0;
  border-right: 1px solid var(--ov10-line);
}
.overview-v10 .ov10-metric:last-child {
  border-right: 0;
}
.overview-v10 .ov10-metric > button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  color: inherit;
}
.overview-v10 .ov10-metric span,
.overview-v10 .ov10-metric small {
  display: block;
  color: var(--ov10-muted);
  font-size: 14px;
  line-height: 1.3;
}
.overview-v10 .ov10-metric strong {
  display: block;
  margin: 5px 0;
  font-size: 21px;
  line-height: 1.18;
}
.overview-v10 .ov10-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}
.overview-v10 .ov10-orders,
.overview-v10 .ov10-aside {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.overview-v10 .ov10-panel,
.overview-v10 .ov10-aside .surface-tasks {
  min-width: 0;
  border: 1px solid var(--ov10-line);
  border-radius: 5px;
  background: #fff;
}
.overview-v10 .ov10-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
}
.overview-v10 .ov10-panel h2,
.overview-v10 .ov10-aside .surface-tasks h2 {
  font: 700 22px/1.2 Arial, sans-serif;
  margin: 0;
}
.overview-v10 .ov10-filters button,
.overview-v10 .ov10-filters label {
  border: 1px solid #d1d9e7;
  border-radius: 4px;
  background: #fff;
  min-height: 40px;
  padding: 6px 8px;
  color: inherit;
}
.overview-v10 .ov10-filters button[aria-pressed=true] {
  background: #fff3c0;
  border-color: #f0dc82;
}
.overview-v10 .ov10-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.overview-v10 .ov10-filters input {
  min-width: 0;
  width: 132px;
  border: 0;
  padding: 0;
  min-height: 26px;
  font: inherit;
}
.overview-v10 .ov10-source-note,
.overview-v10 .ov10-empty {
  margin: 0;
  padding: 12px 14px;
  color: var(--ov10-muted);
}
.overview-v10 .ov10-source-note {
  background: #fff8dd;
}
.overview-v10 .ov10-table-scroll {
  overflow-x: auto;
}
.overview-v10 .ov10-table-scroll table {
  width: 100%;
  min-width: 630px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font: 14px/1.35 Arial, sans-serif;
}
.overview-v10 .ov10-table-scroll th,
.overview-v10 .ov10-table-scroll td {
  padding: 6px 8px;
  border: 1px solid var(--ov10-line);
  border-right: 0;
  vertical-align: middle;
  overflow-wrap: anywhere;
  white-space: normal;
}
.overview-v10 .ov10-table-scroll td {
  font: 14px/1.35 Arial, sans-serif;
}
.overview-v10 .ov10-table-scroll tbody tr {
  height: 74px;
}
.overview-v10 .ov10-table-scroll th:nth-child(1) {
  width: 27%;
}
.overview-v10 .ov10-table-scroll th:nth-child(2) {
  width: 42%;
}
.overview-v10 .ov10-table-scroll th:nth-child(3) {
  width: 15%;
}
.overview-v10 .ov10-table-scroll th:last-child {
  font-size: 12px;
  white-space: nowrap;
}
.overview-v10 .ov10-overdue {
  display: block;
  color: #a21d27;
}
.overview-v10 .ov10-table-scroll .ov10-overdue {
  font-size: 12px;
  white-space: nowrap;
}
.overview-v10 .ov10-table-scroll .overview-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
}
.overview-v10 .ov10-table-scroll .overview-features:not(:has(.overview-feature:not(.unknown))) {
  display: none;
}
.overview-v10 .ov10-table-scroll .overview-product-id {
  display: block;
  font: 13px/1.35 Arial, sans-serif;
}
.overview-v10 .ov10-table-scroll .overview-product-id a {
  overflow-wrap: anywhere;
  white-space: normal;
}
.overview-v10 .ov10-table-scroll .overview-product-id > span {
  margin-inline-start: 5px;
}
.overview-v10 .ov10-table-scroll .overview-feature {
  flex: none;
  min-width: 22px;
  min-height: 22px;
  width: auto;
  height: 22px;
  padding: 2px 4px;
}
.overview-v10 .ov10-table-scroll .overview-feature svg {
  width: 16px;
  height: 16px;
}
.overview-v10 .ov10-table-scroll .overview-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr);
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 1px 0;
  gap: 4px;
  min-height: 44px;
}
.overview-v10 .ov10-table-scroll .flow-branches {
  width: auto;
  min-width: 0;
  gap: 1px;
}
.overview-v10 .ov10-table-scroll .flow-join {
  display: none;
}
.overview-v10 .ov10-table-scroll .flow-chain {
  min-width: 0;
  gap: 6px;
  padding-inline-start: 6px;
  border-inline-start: 1px solid var(--ov10-line);
  flex-wrap: wrap;
}
.overview-v10 .ov10-table-scroll :is(.flow-node, .flow-node.branch) {
  flex-direction: row;
  justify-content: flex-start;
  min-width: 0;
  width: auto;
  min-height: 16px;
  gap: 3px;
  font: 12px/1.3 Arial, sans-serif;
  white-space: normal;
}
.overview-v10 .ov10-table-scroll .flow-node:after {
  display: none;
}
.overview-v10 .ov10-table-scroll .flow-chain .flow-node {
  flex: 0 0 auto;
  white-space: nowrap;
}
.overview-v10 .ov10-table-scroll :is(.flow-node, .flow-node.branch) .flow-node-icon {
  width: 14px;
  min-width: 14px;
  height: 14px;
  border: 0;
  background: transparent;
}
.overview-v10 .ov10-table-scroll .flow-node-icon > svg:not(.flow-state-symbol) {
  display: none;
}
.overview-v10 .ov10-table-scroll .flow-state-symbol {
  position: static;
  width: 14px;
  height: 14px;
  padding: 0;
  background: transparent;
}
.overview-v10 .ov10-table-scroll .flow-node.working,
.overview-v10 .ov10-table-scroll .flow-node.working .flow-node-icon {
  color: #805a00;
}
.overview-v10 .ov10-table-scroll tr > :first-child {
  border-left: 0;
}
.overview-v10 .ov10-table-scroll th {
  background: #f1f4f8;
  color: #263145;
  font-weight: 600;
}
.overview-v10 .ov10-table-scroll a,
.overview-v10 .ov10-table-footer a {
  color: #245394;
}
.overview-v10 .ov10-readiness {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: normal;
}
.overview-v10 .ov10-more {
  flex: none;
  display: inline-flex;
}
.overview-v10 .ov10-table-footer {
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 12px;
  border-top: 1px solid var(--ov10-line);
  color: var(--ov10-muted);
  font-size: 14px;
}
.overview-v10 .ov10-date-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 7px;
}
.overview-v10 .ov10-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.overview-v10 .ov10-legend li {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.overview-v10 .ov10-legend svg {
  width: 14px;
  height: 14px;
}
.overview-v10 .ov10-legend .complete svg {
  color: var(--ui-success);
}
.overview-v10 .ov10-legend .working svg {
  color: #805a00;
}
.overview-v10 .ov10-legend .blocked svg {
  color: var(--ui-danger);
}
.overview-v10 .ov10-deviations h2,
.overview-v10 .ov10-stock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}
.overview-v10 .ov10-deviations h2 {
  flex-wrap: nowrap;
}
.overview-v10 .ov10-tasks h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f3f3f5;
}
.overview-v10 .ov10-tasks h2 svg {
  flex: none;
  color: #896500;
}
.overview-v10 .ov10-tasks > a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-top: 1px solid var(--ov10-line);
  color: inherit;
  overflow-wrap: anywhere;
}
.overview-v10 .ov10-tasks > a:hover {
  background: #fff8dd;
}
.overview-v10 .ov10-tasks > a svg {
  width: 18px;
  height: 18px;
}
.overview-v10 .ov10-tasks > a small {
  display: block;
}
.overview-v10 .ov10-tasks > a small:not(.ov10-overdue),
.overview-v10 .ov10-tasks > p {
  color: var(--ov10-muted);
}
.overview-v10 .ov10-tasks > p {
  padding: 8px 12px;
}
.overview-v10 .ov10-tasks > .ov10-journal {
  display: flex;
  color: #245394;
}
.overview-v10 .ov10-deviations > button,
.overview-v10 .ov10-deviations > a,
.overview-v10 .ov10-deviations > p {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ov10-line);
  background: #fff;
  color: inherit;
  text-align: left;
}
.overview-v10 .ov10-deviations > button span,
.overview-v10 .ov10-deviations > a span,
.overview-v10 .ov10-stock span {
  color: #245394;
}
.overview-v10 .ov10-aside .surface-tasks {
  display: block;
  padding: 12px;
  margin: 0;
}
.overview-v10 .ov10-aside .surface-task-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1150px) {
  .overview-v10 .ov10-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 14px;
  }
  .overview-v10 .ov10-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 799px) {
  .overview-v10 .ov10-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-v10 .ov10-metric strong {
    font-size: 18px;
  }
  .overview-v10 .ov10-filters button,
  .overview-v10 .ov10-filters label,
  .overview-v10 .ov10-deviations > button {
    min-height: 44px;
  }
  .overview-v10 .ov10-filters input {
    font-size: 16px;
  }
}
.task-split {
  font: 15px/1.35 Arial, sans-serif;
  color: #171b21;
}
.task-split .task-split-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
.task-split .task-split-heading h1 {
  margin: 0;
  font: 700 32px/1.2 Arial, sans-serif;
}
.task-split .task-split-heading p {
  margin: 8px 0 0;
  color: #656b74;
  font-size: 14px;
}
.task-split button,
.task-split input,
.task-split select {
  font: inherit;
  color: inherit;
}
.task-split button {
  cursor: pointer;
}
.task-split .task-split-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e6c62b;
  border-radius: 4px;
  background: #ffdd32;
  font-weight: 600;
  white-space: normal;
}
.task-split .task-split-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #e0e3e7;
  border-radius: 4px;
  padding: 14px 10px;
  margin-bottom: 16px;
  background: #fff;
}
.task-split .task-split-metrics > div {
  padding: 0 14px;
  border-right: 1px solid #e0e3e7;
  min-width: 0;
}
.task-split .task-split-metrics > div:last-child {
  border: 0;
}
.task-split .task-split-metrics span {
  display: block;
  font-size: 14px;
  color: #656b74;
}
.task-split .task-split-metrics strong {
  display: block;
  font-size: 23px;
  line-height: 30px;
  margin-top: 4px;
}
.task-split .task-split-metrics .task-split-unknown {
  font-size: 17px;
  font-weight: 400;
}
.task-split .pw-split {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}
.task-split .pw-panel {
  min-width: 0;
  border: 1px solid #e0e3e7;
  border-radius: 5px;
  background: #fff;
}
.task-split .pw-reference-table-wrap {
  overflow-x: auto;
}
.task-split .task-split-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e3e7;
}
.task-split .task-split-toolbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-split .task-split-toolbar nav button {
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: none;
  min-height: 52px;
  padding: 12px 8px 8px;
  font-size: 16px;
}
.task-split .task-split-toolbar nav button[aria-current=page] {
  border-bottom-color: #ffdd32;
  font-weight: 600;
}
.task-split .task-split-search {
  position: relative;
  flex: 1 1 150px;
  max-width: 240px;
  padding: 8px 0;
}
.task-split .task-split-search > svg {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #656b74;
}
.task-split .task-split-search input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 7px 10px 7px 33px;
  border: 1px solid #cbd0d8;
  border-radius: 4px;
}
.task-split .task-split-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #f7f8fa;
  font-size: 13px;
  color: #656b74;
}
.task-split .task-split-filter select {
  max-width: 220px;
  margin-left: 8px;
  min-height: 32px;
  border: 1px solid #d5dae1;
  background: #fff;
  border-radius: 4px;
}
.task-split .task-split-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font: 14px/20px Arial, sans-serif;
  white-space: normal;
}
.task-split .task-split-table th,
.task-split .task-split-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid #e0e3e7;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 20px;
}
.task-split .task-split-table thead th {
  background: #f1f2f4;
  font-size: 13px;
  font-weight: 400;
}
.task-split .task-split-table th:nth-child(1) {
  width: 40%;
}
.task-split .task-split-table th:nth-child(2) {
  width: 21%;
}
.task-split .task-split-table th:nth-child(3) {
  width: 19%;
}
.task-split .task-split-table th:nth-child(4) {
  width: 20%;
}
.task-split .task-split-table tbody tr {
  height: 56px;
}
.task-split .task-split-table .task-split-selected {
  background: #fff9df;
}
.task-split .task-split-select {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 38px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  white-space: normal;
}
.task-split .task-split-select > svg {
  flex: 0 0 20px;
}
.task-split .task-split-select > span {
  flex: 1;
  min-width: 0;
}
.task-split .task-split-urgent {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 7px;
  background: #fee4e4;
  color: #b42318;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.task-split .task-split-state {
  display: flex;
  align-items: center;
  gap: 6px;
}
.task-split .task-split-state svg {
  flex: 0 0 16px;
}
.task-split .task-split-state[data-state=waiting],
.task-split .task-split-state[data-state=doing] {
  color: #805a00;
}
.task-split .task-split-state[data-state=done] {
  color: #126b42;
}
.task-split .task-split-state[data-state=declined] {
  color: #a21d27;
}
.task-split .task-split-overdue {
  color: #b42318;
}
.task-split .task-split-list-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  color: #656b74;
}
.task-split .task-split-list-footer button,
.task-split .task-split-bottom button {
  min-height: 32px;
  border: 0;
  background: none;
  text-decoration: underline;
}
.task-split .task-split-empty {
  padding: 20px 16px;
  margin: 0;
  color: #656b74;
}
.task-split .task-split-register {
  min-height: 560px;
}
.task-split .task-split-aside {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.task-split .task-split-aside h2 {
  font: 700 20px/26px Arial, sans-serif;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.task-split .task-split-selected-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}
.task-split .task-split-facts {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 14px;
}
.task-split .task-split-facts dt {
  color: #656b74;
}
.task-split .task-split-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.task-split .task-split-description {
  border-top: 1px solid #e0e3e7;
  padding-top: 12px;
}
.task-split .task-split-description h3 {
  font-size: 14px;
  font-weight: 400;
  color: #656b74;
  margin: 0 0 8px;
}
.task-split .task-split-description p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 12px;
  font-size: 14px;
}
.task-split .task-split-detail-links button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid #e0e3e7;
  background: none;
  text-align: left;
  white-space: normal;
}
.task-split .task-split-detail-links button span {
  flex: 1;
}
.task-split .task-split-detail-links svg {
  flex: 0 0 18px;
}
.task-split .task-split-open {
  width: 100%;
  margin-top: 12px;
  background: #fff;
  border-color: #cbd0d8;
}
.task-split .task-split-note {
  font-size: 13px;
  line-height: 18px;
  color: #656b74;
  margin: 10px 0 0;
}
.task-split .task-split-outgoing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 13px;
}
.task-split .task-split-outgoing > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.task-split .task-split-outgoing strong {
  font-size: 22px;
}
.task-split .task-split-bottom {
  font-size: 13px;
  color: #656b74;
  margin: 12px 0;
}
.task-split .task-split-feedback {
  border: 1px solid #e0e3e7;
  padding: 12px;
}
.task-split button:focus-visible,
.task-split input:focus-visible,
.task-split select:focus-visible {
  outline: 3px solid #c9a800;
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .task-split .pw-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .task-split .task-split-register {
    min-height: 0;
  }
  .task-split .task-split-toolbar {
    align-items: stretch;
  }
  .task-split .task-split-search {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .task-split .task-split-heading {
    display: block;
  }
  .task-split .task-split-heading h1 {
    font-size: 26px;
  }
  .task-split .task-split-heading > .task-split-primary {
    margin-top: 12px;
    width: 100%;
  }
  .task-split .task-split-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
  }
  .task-split .task-split-metrics > div {
    padding: 8px;
    border: 0;
  }
  .task-split .task-split-metrics span {
    font-size: 13px;
  }
  .task-split .task-split-toolbar {
    padding: 0 8px;
  }
  .task-split .task-split-toolbar nav {
    gap: 0;
  }
  .task-split .task-split-toolbar nav button {
    min-height: 44px;
    font-size: 14px;
    padding: 8px;
  }
  .task-split .task-split-search {
    flex-basis: 100%;
    padding: 4px 0 8px;
  }
  .task-split .task-split-search input,
  .task-split .task-split-filter select {
    min-height: 44px;
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
  }
  .task-split .task-split-filter label {
    width: 100%;
  }
  .task-split .task-split-table {
    min-width: 580px;
  }
  .task-split .task-split-select {
    min-height: 44px;
  }
  .task-split .task-split-list-footer {
    padding: 8px;
  }
  .task-split .task-split-facts {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .task-split .task-split-outgoing > div {
    display: block;
  }
  .task-split .task-split-outgoing span {
    display: block;
  }
  .task-split .task-split-bottom button,
  .task-split .task-split-list-footer button {
    min-height: 44px;
  }
}
.task-split .task-split-toolbar nav {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  flex-direction: row;
}
.task-split .task-split-toolbar nav button {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  font: 400 16px/22px Arial, sans-serif;
  min-height: 54px;
}
.task-split .task-split-toolbar nav button[aria-current=page] {
  font-weight: 600;
}
.task-split .task-split-aside > .pw-panel {
  margin: 0;
}
.task-split .task-split-table tbody td {
  padding: 7px 10px;
}
.task-split .task-split-filter select {
  box-sizing: border-box;
  height: 32px;
  padding: 3px 8px;
  font: 13px/20px Arial, sans-serif;
}
@media (min-width: 1101px) {
  .task-split .task-split-heading {
    min-height: 94px;
    align-items: flex-start;
  }
  .task-split .task-split-heading h1 {
    font: 700 40px/48px Arial, sans-serif;
  }
  .task-split .task-split-heading p {
    font: 18px/24px Arial, sans-serif;
  }
  .task-split .task-split-heading > .task-split-primary {
    align-self: flex-end;
  }
  .task-split .task-split-metrics {
    padding: 13px 10px;
  }
  .task-split .task-split-metrics span {
    line-height: 18px;
  }
  .task-split .task-split-register {
    min-height: 676px;
  }
}
@media (max-width: 600px) {
  .task-split .task-split-toolbar nav button {
    font: 400 14px/20px Arial, sans-serif;
    min-height: 44px;
    padding: 8px;
  }
  .task-split .task-split-toolbar nav button[aria-current=page] {
    font-weight: 600;
  }
}
@media (max-width: 600px) {
  .task-split .task-split-filter select {
    height: 44px;
    font: 16px/22px Arial, sans-serif;
  }
}
@media (min-width: 1101px) {
  .task-split .task-split-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(146px, 28%);
    gap: 8px;
  }
  .task-split .task-split-toolbar nav {
    gap: 4px;
  }
  .task-split .task-split-toolbar nav button {
    padding-inline: 6px;
  }
  .task-split .task-split-search {
    min-width: 0;
    max-width: none;
  }
}
.task-response-actions {
  border-top: 1px solid #e0e3e7;
  padding-top: 12px;
  margin-top: 12px;
  font: 14px/1.4 Arial, sans-serif;
  color: #171b21;
}
.task-response-actions .task-response-buttons {
  display: grid;
  gap: 8px;
}
.task-response-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd0d8;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: 600 15px/1.3 Arial, sans-serif;
  cursor: pointer;
  white-space: normal;
}
.task-response-actions button.task-response-primary {
  background: #ffdd32;
  border-color: #e6c62b;
}
.task-response-actions button:disabled {
  opacity: .55;
  cursor: default;
}
.task-response-actions label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.task-response-actions textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 88px;
  padding: 8px 10px;
  border: 1px solid #cbd0d8;
  border-radius: 4px;
  resize: vertical;
  font: 16px/1.4 Arial, sans-serif;
  color: inherit;
  background: #fff;
}
.task-response-actions .task-response-help {
  margin: 10px 0 0;
  color: #656b74;
  font-size: 13px;
  line-height: 18px;
}
.task-response-actions .task-response-reason {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-response-actions :focus-visible {
  outline: 3px solid #c9a800;
  outline-offset: 2px;
}
.task-response-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff4cb;
  font: 14px/20px Arial, sans-serif;
  color: #171b21;
}
.task-response-view-decline {
  min-height: 44px;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #f3c8c8;
  border-radius: 4px;
  background: #fff1f1;
  color: #b42318;
  font: 14px/20px Arial, sans-serif;
  text-align: left;
}
.section-dispatch {
  align-items: start;
  grid-template-columns: minmax(0, 2.4fr) minmax(270px, 1fr);
}
.section-dispatch h2 {
  margin: 0;
  font-size: 22px;
}
.section-dispatch-page .section-queue-stats dd {
  font-size: 22px;
  line-height: 1.15;
}
.section-dispatch-page .section-dispatch-updated {
  margin: 0 0 12px;
}
.section-dispatch-overview {
  margin: 0 0 12px;
}
.section-dispatch-overview p {
  margin: 0;
  color: #576273;
}
.section-dispatch-overview-button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #d1d5dd;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.section-dispatch-overview-button:hover {
  background: #fff8dd;
}
.section-dispatch-overview-button :is(span, small) {
  overflow-wrap: anywhere;
}
.section-dispatch-overview-button span {
  font-weight: 700;
}
.section-dispatch-overview-button [data-state=late] {
  color: var(--ui-danger, #a21d27);
}
.section-dispatch-overview-button [data-state=held] {
  color: #805a00;
}
.section-dispatch-overview-button small {
  color: #576273;
}
.section-dispatch-overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 16px;
}
.section-dispatch-shipping {
  min-width: 0;
}
.section-dispatch-shipping p {
  overflow-wrap: anywhere;
}
.section-dispatch-shipping p + p {
  margin-top: 3px;
}
.section-dispatch-header,
.section-dispatch-header > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.section-dispatch-header {
  justify-content: space-between;
  padding: 8px 12px;
}
.section-dispatch-header button,
.section-dispatch-header input,
.section-dispatch-history {
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid #d1d5dd;
  border-radius: 4px;
  background: #fff;
  color: inherit;
}
.section-dispatch-header button[aria-pressed=true] {
  background: #fff8dd;
  border-color: #e5ce70;
}
.section-dispatch-header input {
  width: min(140px, 100%);
}
.section-dispatch .section-dispatch-scroll {
  overflow-x: auto;
}
.section-dispatch .section-dispatch-scroll table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  table-layout: fixed;
}
.section-dispatch .section-dispatch-scroll :is(th, td) {
  padding: 7px 10px;
  border-top: 1px solid #e0e3e7;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: middle;
}
.section-dispatch .section-dispatch-scroll thead th {
  background: #f1f4f8;
  font-size: 13px;
}
.section-dispatch-scroll thead th:first-child {
  width: 22%;
}
.section-dispatch-scroll thead th:nth-child(2) {
  width: 25%;
}
.section-dispatch-scroll thead th:nth-child(3) {
  width: 13%;
}
.section-dispatch-scroll thead th:nth-child(4) {
  width: 17%;
}
.section-dispatch .section-dispatch-scroll tbody th {
  background: transparent;
  font-size: inherit;
  color: inherit;
}
.section-dispatch .section-dispatch-scroll tbody tr[data-selected=true] > * {
  background: #fff8dd;
}
.section-dispatch-scroll th button {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.section-dispatch-scroll small,
.section-dispatch-tasks small {
  display: block;
  color: #576273;
  line-height: 1.35;
}
.section-dispatch-status {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.3;
}
.section-dispatch-status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.section-dispatch-status[data-state=late],
.section-dispatch-status[data-state=held] {
  color: #a21d27;
}
.section-dispatch-status[data-state=waiting] {
  color: #805a00;
}
.section-dispatch-status[data-state=unknown] {
  color: #576273;
}
.section-dispatch-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 6px 12px;
  border-top: 1px solid #e0e3e7;
  color: #576273;
}
.section-dispatch-detail-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.section-dispatch-detail-counts {
  padding: 8px 0;
  border-block: 1px solid #e0e3e7;
}
.section-dispatch-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.section-dispatch-actions button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
.section-dispatch-tasks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.section-dispatch-tasks li {
  border-top: 1px solid #e0e3e7;
}
.section-dispatch-tasks a {
  display: block;
  min-height: 44px;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1140px) {
  .section-dispatch {
    grid-template-columns: minmax(0, 1fr);
  }
}
.overview-v10 .ov10-summary.has-problems svg {
  color: var(--ui-danger, #a21d27);
}
.overview-v10 .ov10-table-heading,
.overview-v10 .ov10-deviations h2,
.overview-v10 .ov10-tasks h2 {
  background: #fff;
}
.overview-v10 :is(.ov10-deviations, .ov10-tasks) h2 svg {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 50%;
  background: #fff2ba;
  color: inherit;
}
.overview-v10 .ov10-deviations > .ov10-deviation {
  grid-template-columns: 23px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}
.overview-v10 .ov10-deviation:hover {
  background: #fff8dd;
}
.overview-v10 .ov10-deviation > span {
  color: inherit;
}
.overview-v10 .ov10-deviation small {
  display: block;
  color: #245394;
  margin-top: 4px;
}
.overview-v10 .ov10-deviation-late > svg:first-child {
  color: var(--ui-danger, #a21d27);
}
.overview-v10 .ov10-deviation-held > svg:first-child {
  color: #805a00;
}
.overview-v10 .ov10-stock {
  min-height: 58px;
}
.overview-v10 .ov10-stock strong {
  font-size: 20px;
}
.overview-v10 .ov10-stock span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #805a00;
}
.overview-v10 .ov10-stock > svg:last-child {
  margin-inline-start: auto;
  flex: none;
}
.overview-v10 .ov10-table-scroll th:nth-child(1) {
  width: 22%;
}
.overview-v10 .ov10-table-scroll th:nth-child(2) {
  width: 47%;
}
.overview-v10 .ov10-table-scroll th:nth-child(3) {
  width: 15%;
}
.overview-v10 .ov10-table-scroll td:first-child strong {
  font-size: 16px;
  color: var(--ui-text);
}
.overview-v10 .ov10-table-scroll td:nth-child(3) {
  font-weight: 700;
}
.overview-v10 .ov10-table-scroll .flow-chain {
  gap: 3px;
}
.overview-v10 .ov10-table-scroll .flow-chain .flow-node:not(:last-child) {
  margin-inline-end: 13px;
  position: relative;
}
.overview-v10 .ov10-table-scroll .flow-chain .flow-node:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  inset: 50% -11px auto auto;
  width: 9px;
  height: 7px;
  transform: translateY(-50%);
  background: currentColor;
  clip-path: polygon(0 43%, 72% 43%, 46% 12%, 57% 0, 100% 50%, 57% 100%, 46% 88%, 72% 57%, 0 57%);
  color: #53627a;
}
@media (min-width: 1440px) {
  .overview-v10 .ov10-metrics {
    margin-bottom: 12px;
  }
  .overview-v10 .ov10-metric strong {
    font-size: 26px;
  }
  .overview-v10 .ov10-metric strong:not(:only-child) {
    overflow-wrap: anywhere;
  }
  .overview-v10 .ov10-workspace {
    grid-template-columns: minmax(0, 2.58fr) minmax(0, 1fr);
  }
  .overview-v10 .ov10-table-scroll th {
    height: 40px;
  }
}
.pw-stock-structure.pw-mirror-view {
  padding: 8px 0;
}
.pw-mirror-view .pw-stock-type-tabs {
  border-bottom: 1px solid var(--ui-line-subtle, #d4d8df);
  gap: 4px 12px;
}
.pw-mirror-view .pw-stock-type-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
}
.pw-mirror-view .pw-stock-type-tabs button[aria-pressed=true] {
  border-bottom-color: var(--ui-accent, #ffe133);
}
.pw-mirror-view .pw-stock-group {
  margin: 10px 0;
}
.pw-mirror-view .pw-stock-group > summary {
  padding: 7px 10px;
  justify-content: flex-start;
}
.pw-mirror-view .pw-stock-group > summary h4 {
  flex: 0 1 auto;
}
.pw-mirror-view .pw-stock-group > summary > .pw-stock-group-facts {
  flex: 1 1 auto;
  margin-inline-start: auto;
}
.pw-mirror-view .pw-stock-group > summary > .pw-stock-blank-choices {
  flex: 0 1 auto;
}
.pw-mirror-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0;
}
.pw-mirror-view .pw-mirror-controls > .pw-stock-search {
  flex: 1 1 450px;
  margin: 0;
}
.pw-mirror-view .pw-mirror-controls > .pw-stock-secondary {
  margin: 0;
}
.pw-mirror-view .pw-stock-group-facts,
.pw-mirror-view .pw-stock-group-area {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.pw-mirror-widths {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
}
.pw-mirror-widths button {
  min-width: 44px;
}
.pw-mirror-view .pw-stock-mirror-table {
  min-width: 0;
}
.pw-mirror-view .pw-stock-mirror-table :is(td, th) {
  padding: 4px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pw-mirror-view .pw-stock-mirror-table :is(td, th):first-child {
  width: 22%;
}
.pw-mirror-view .pw-stock-mirror-table .pw-mirror-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pw-mirror-view .pw-stock-mirror-table .pw-mirror-number small {
  display: inline;
  margin: 0;
}
.pw-mirror-view .pw-mirror-item {
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-link, #245394);
  text-align: left;
  text-decoration: underline;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .pw-mirror-view .pw-stock-group > summary > .pw-stock-group-facts {
    flex-basis: 100%;
    margin-inline-start: 0;
  }
  .pw-mirror-view .pw-stock-group > summary > .pw-stock-blank-choices {
    flex-basis: 100%;
  }
  .pw-mirror-view .pw-stock-mirror-table td[data-label] {
    width: auto;
  }
  .pw-mirror-view .pw-stock-mirror-table .pw-mirror-number {
    text-align: left;
  }
}
.pw-stock-structure.pw-finished-view {
  padding: 8px 0;
}
.pw-finished-view .pw-stock-heading {
  align-items: baseline;
  margin-bottom: 4px;
}
.pw-finished-view .pw-stock-search {
  margin: 8px 0;
}
.pw-finished-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.pw-finished-switches {
  display: grid;
  gap: 6px;
  flex: 1 1 490px;
  min-width: 0;
}
.pw-finished-view .pw-stock-choice {
  margin: 0;
}
.pw-finished-view .pw-stock-choice legend {
  margin-bottom: 4px;
}
.pw-finished-view .pw-stock-choice > div {
  gap: 6px;
}
.pw-finished-selects {
  display: flex;
  flex: 1 1 355px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.pw-finished-selects label {
  flex: 1 1 110px;
  min-width: 0;
}
.pw-finished-view .pw-stock-secondary {
  margin: 8px 0;
}
.pw-finished-view .pw-stock-group {
  margin: 8px 0;
}
.pw-finished-view .pw-stock-group > summary {
  justify-content: flex-start;
  padding: 6px 10px;
}
.pw-finished-view .pw-stock-group > summary h4 {
  flex: 0 1 auto;
}
.pw-finished-view .pw-stock-group > summary > span {
  flex: 0 1 auto;
  margin-inline-start: 0;
}
.pw-finished-view .pw-stock-table-wrap.pw-finished-scroll {
  overflow-x: auto;
}
.pw-finished-view .pw-stock-table.pw-finished-table {
  display: table;
  min-width: 730px;
  width: 100%;
  table-layout: fixed;
}
.pw-finished-view .pw-finished-table col:nth-child(1) {
  width: 23%;
}
.pw-finished-view .pw-finished-table col:nth-child(2) {
  width: 10%;
}
.pw-finished-view .pw-finished-table col:nth-child(3) {
  width: 9%;
}
.pw-finished-view .pw-finished-table col:nth-child(4) {
  width: 17%;
}
.pw-finished-view .pw-finished-table col:nth-child(n+5):nth-child(-n+7) {
  width: 9%;
}
.pw-finished-view .pw-finished-table col:last-child {
  width: 14%;
}
.pw-finished-view .pw-finished-table :is(td, th) {
  display: table-cell;
  min-width: 0;
  width: auto;
  padding: 0 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  border-inline-end: 1px solid var(--ui-line-subtle, #d4d8df);
}
.pw-finished-view .pw-finished-table thead th {
  height: 38px;
  background: var(--ui-surface-subtle, #f5f6f8);
}
.pw-finished-view .pw-finished-table tbody th {
  background: inherit;
  font-size: inherit;
}
.pw-finished-view .pw-finished-table :is(td, th):nth-child(n+5):nth-child(-n+7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pw-finished-view .pw-finished-table .pw-finished-article {
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-link, #245394);
  text-align: left;
  text-decoration: underline;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .pw-finished-view .pw-finished-table thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .pw-finished-view .pw-finished-table tbody {
    display: table-row-group;
  }
  .pw-finished-view .pw-finished-table tbody tr {
    display: table-row;
  }
  .pw-finished-view .pw-finished-table td::before {
    content: none;
  }
  .pw-finished-view .pw-finished-table th:first-child {
    position: sticky;
    left: 0;
    background: var(--ui-surface, #fff);
  }
  .pw-finished-view .pw-finished-table tbody tr:nth-child(even) th:first-child {
    background: var(--ui-surface-subtle, #f5f6f8);
  }
}
.wh-stock-categorized .pw-finished-view .pw-stock-heading h3 {
  display: none;
}
.wh-stock-categorized .pw-finished-view .pw-stock-heading {
  justify-content: flex-end;
}
.pw-stock-structure.pw-component-structure {
  padding: 8px 0;
}
.wh-stock-categorized .pw-component-structure .pw-stock-heading h3 {
  display: none;
}
.wh-stock-categorized .pw-component-structure .pw-stock-heading {
  justify-content: flex-end;
  margin-bottom: 4px;
}
.pw-component-structure .pw-component-location-note {
  padding: 8px 10px;
  background: #fff6cf;
  border-radius: 4px;
}
.pw-component-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.pw-component-structure .pw-component-controls > .pw-stock-search {
  flex: 1 1 410px;
  margin: 0;
}
.pw-component-structure .pw-component-controls > .pw-stock-secondary {
  margin: 0;
}
.pw-component-structure .pw-stock-group {
  margin: 8px 0;
}
.pw-component-structure .pw-stock-group > summary {
  padding: 6px 10px;
  justify-content: flex-start;
}
.pw-component-structure .pw-stock-group > summary h4 {
  flex: 0 1 auto;
}
.pw-component-structure .pw-stock-group > summary > .pw-stock-group-facts {
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  margin-inline-start: auto;
  gap: 6px 10px;
}
.pw-component-structure .pw-stock-group-area {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.pw-component-structure .pw-component-scroll {
  overflow-x: auto;
}
.pw-component-structure .pw-component-scroll .pw-component-table {
  display: table;
  min-width: 740px;
  table-layout: fixed;
}
.pw-component-structure .pw-component-scroll .pw-component-table :is(th, td) {
  display: table-cell;
  width: auto;
  min-width: 0;
  padding: 4px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  border-inline-end: 1px solid var(--ui-line-subtle, #d4d8df);
}
.pw-component-structure .pw-component-scroll .pw-component-table th:first-child {
  width: 24%;
}
.pw-component-structure .pw-component-scroll .pw-component-table th:last-child {
  width: 18%;
}
.pw-component-structure .pw-component-table td[data-label="\415\434."] {
  white-space: nowrap;
}
.pw-component-structure .pw-component-scroll .pw-component-dvp-table th:first-child {
  width: 22%;
}
.pw-component-structure .pw-component-scroll .pw-component-dvp-table th:nth-child(3) {
  width: 6%;
}
.pw-component-structure .pw-component-scroll .pw-component-dvp-table th:last-child {
  width: 13%;
}
.pw-component-structure .pw-component-table .pw-component-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pw-component-structure .pw-component-item-link {
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-link, #245394);
  text-align: left;
  text-decoration: underline;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pw-component-issue > summary {
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 0;
}
.pw-component-issue > ul {
  padding-inline-start: 14px;
  margin-block: 4px;
}
@media (max-width: 800px) {
  .pw-component-structure .pw-component-table thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .pw-component-structure .pw-component-table tbody {
    display: table-row-group;
  }
  .pw-component-structure .pw-component-table tbody tr {
    display: table-row;
  }
  .pw-component-structure .pw-component-table td::before {
    content: none;
  }
  .pw-component-structure .pw-component-scroll .pw-component-table th:first-child {
    width: 124px;
  }
  .pw-component-structure .pw-component-table tr > :first-child {
    position: sticky;
    left: 0;
    background: var(--ui-surface, #fff);
  }
  .pw-component-structure .pw-component-table tbody tr:nth-child(even) > :first-child {
    background: var(--ui-surface-subtle, #f5f6f8);
  }
}
.pw-receipt .pw-review-lines-table thead th:first-child {
  width: 42%;
}
.pw-receipt .pw-review-lines-table :is(th, td) {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.pw-receipt .pw-review-lines-table tbody th[scope=row] {
  text-align: left;
}
.pw-receipt .pw-review-lines-table tbody td:not([colspan]) {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .pw-receipt .pw-review-lines-table thead th:first-child {
    width: 35%;
  }
  .pw-receipt .pw-review-lines-table :is(th, td) {
    padding-inline: 4px;
  }
}
@media (1151px <= width < 1440px) {
  .overview-v10 .ov10-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(272px, 27%);
  }
  .overview-v10 :is(.ov10-deviations, .ov10-tasks) h2 {
    font-size: 18px;
  }
  .overview-v10 .ov10-table-heading h2 {
    font-size: 19px;
  }
}
@media (max-width: 799px) {
  .overview-v10 .ov10-heading,
  .overview-v10 .ov10-status {
    gap: 6px 12px;
    margin-bottom: 10px;
  }
  .overview-v10 .ov10-heading h1 {
    font-size: 24px;
  }
  .overview-v10 .ov10-heading p,
  .overview-v10 .ov10-metric span {
    font-size: 13px;
  }
  .overview-v10 .ov10-summary {
    font-size: 16px;
  }
  .overview-v10 .ov10-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }
  .overview-v10 .ov10-shortcuts > * {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    padding-inline: 4px;
    font-size: 13px;
  }
  .overview-v10 .ov10-shortcuts svg {
    flex: none;
    width: 16px;
    height: 16px;
  }
  .overview-v10 .ov10-metrics {
    gap: 0;
    padding: 0;
    margin-bottom: 10px;
  }
  .overview-v10 .ov10-metric {
    padding: 8px;
    border-bottom: 1px solid var(--ov10-line);
  }
  .overview-v10 .ov10-metric:nth-child(even) {
    border-right: 0;
  }
  .overview-v10 .ov10-metric:nth-last-child(-n+2) {
    border-bottom: 0;
  }
  .overview-v10 .ov10-metric strong {
    margin: 3px 0 0;
  }
  .overview-v10 .ov10-metric small {
    font-size: 12px;
  }
  .overview-v10 .ov10-metric > button {
    min-height: 44px;
  }
  .overview-v10 .ov10-table-heading {
    gap: 6px;
    padding: 8px;
  }
  .overview-v10 .ov10-table-heading h2 {
    font-size: 19px;
  }
  .overview-v10 .ov10-filters {
    width: 100%;
    gap: 4px;
  }
  .overview-v10 .ov10-filters button {
    padding-inline: 5px;
    font-size: 12px;
  }
  .overview-v10 .ov10-filters label {
    flex: 1 0 100%;
  }
  .overview-v10 .ov10-filters input {
    width: 100%;
  }
}
.mobile-equipment-registration .equipment-simple-editor form:has(.eq-connected-placement .eq-registration-select[aria-expanded=true]) .equipment-save-bar {
  position: static;
  margin-top: 0;
}
.equipment-regimen {
  gap: 14px;
}
.equipment-regimen .equipment-regimen-intro h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.equipment-regimen .equipment-regimen-intro p {
  margin: 0;
  max-width: 70ch;
}
.equipment-regimen .equipment-plan-editor {
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ui-line, #dce1e7);
  border-radius: 8px;
  background: var(--ui-surface, #fff);
}
.equipment-regimen .equipment-task-heading {
  margin: -14px -14px 0;
  padding: 10px 14px;
  background: #f5f6f8;
  border-bottom: 1px solid var(--ui-line, #dce1e7);
  border-radius: 8px 8px 0 0;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
}
.equipment-regimen .equipment-task-heading h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.equipment-regimen .equipment-regimen-identity {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.equipment-regimen .equipment-regimen-timing {
  padding-top: 10px;
  border-top: 1px solid var(--ui-line, #dce1e7);
}
.equipment-regimen .equipment-regimen-timing h4 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}
.equipment-regimen .equipment-simple-details {
  margin: 0;
  border: 1px solid var(--ui-line, #dce1e7);
  border-radius: 6px;
  padding: 0 12px;
  background: #f8f9fb;
}
.equipment-regimen .equipment-simple-details summary {
  padding: 10px 0;
  color: var(--ui-text, #222);
}
.equipment-regimen .equipment-simple-details[open] {
  padding-bottom: 12px;
}
.equipment-regimen .equipment-regimen-add {
  justify-self: start;
  align-self: flex-start;
}
.equipment-regimen .equipment-save-bar {
  position: static;
}
.equipment-regimen .equipment-plan-editor > .ui-row:last-child {
  gap: 6px 8px;
}
@media (max-width: 650px) {
  .equipment-regimen .equipment-plan-editor {
    padding: 10px;
  }
  .equipment-regimen .equipment-task-heading {
    margin: -10px -10px 0;
    padding: 9px 10px;
  }
  .equipment-regimen .equipment-regimen-identity,
  .equipment-regimen .equipment-regimen-timing {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pw-review-summary dl > div > dt {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pw-review-summary .pw-review-quantity {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (min-width: 1350px) {
  .pw-review > .pw-context {
    margin-bottom: 9px;
  }
  .pw-review > .pw-location {
    margin-bottom: 10px;
  }
  .pw-review .pw-panel {
    margin-bottom: 6px;
  }
  .pw-review .pw-panel-body {
    padding-block: 5px 7px;
  }
}
.ui-table-scroll:has(> .equipment-schedule-table) {
  min-width: 0;
}
.equipment-schedule-table {
  min-width: 640px;
  table-layout: fixed;
  white-space: normal;
}
.equipment-schedule-table th,
.equipment-schedule-table td {
  padding: 12px 16px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.equipment-schedule-table th:nth-child(1) {
  width: 36%;
}
.equipment-schedule-table th:nth-child(2) {
  width: 21%;
}
.equipment-schedule-table th:nth-child(3) {
  width: 23%;
}
.equipment-schedule-table th:nth-child(4) {
  width: 20%;
}
@media (max-width: 650px) {
  .equipment-schedule-table {
    display: table;
  }
  .equipment-schedule-table thead {
    display: table-header-group;
  }
  .equipment-schedule-table tbody {
    display: table-row-group;
    width: auto;
  }
  .equipment-schedule-table tr {
    display: table-row;
    width: auto;
    padding: 0;
    border: 0;
  }
  .equipment-schedule-table td {
    display: table-cell;
    width: auto;
    border-bottom: 1px solid var(--ui-line);
  }
  .equipment-schedule-table td::before {
    content: none;
  }
}
dialog.wh-dialog:has(> .warehouse-receipt-detail) {
  padding-top: 0;
  scroll-padding-top: 80px;
}
dialog.wh-dialog:has(> .warehouse-receipt-detail) > header {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 14px 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--ui-line, #dce1e7);
  background: var(--ui-surface, #fff);
}
.warehouse-receipt-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.warehouse-receipt-detail p,
.warehouse-receipt-detail dl {
  margin: 0;
}
.warehouse-receipt-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 10px 18px;
  padding: 12px;
  border-radius: 6px;
  background: #f4f5f7;
}
.warehouse-receipt-detail__meta dt,
.warehouse-receipt-detail__record,
.warehouse-receipt-detail small {
  color: #505b69;
  font-size: 13px;
}
.warehouse-receipt-detail__meta dd {
  margin: 3px 0 0;
  font-weight: 600;
}
.warehouse-receipt-detail__record {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.warehouse-receipt-detail__panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0 12px 12px;
  border: 1px solid #dce1e7;
  border-radius: 6px;
}
.warehouse-receipt-detail__panel > h3,
.warehouse-receipt-detail__logistics .wr-logistics-summary > h3 {
  margin: 0 -12px;
  padding: 8px 12px;
  border-radius: 5px 5px 0 0;
  background: #eef0f3;
  font-size: 16px;
  line-height: 1.3;
}
.warehouse-receipt-detail__panel > button {
  justify-self: start;
  min-height: 44px;
  white-space: normal;
  text-align: left;
}
.warehouse-receipt-detail__table {
  min-width: 0;
  overflow-x: auto;
}
.warehouse-receipt-detail__table table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  table-layout: auto;
}
.warehouse-receipt-detail__table :is(th, td) {
  padding: 8px 10px;
  border-bottom: 1px solid #dce1e7;
  vertical-align: top;
  font-size: 14px;
  white-space: normal;
}
.warehouse-receipt-detail__table thead {
  background: #f4f5f7;
}
.warehouse-receipt-detail__table tr > :first-child {
  text-align: left;
}
.warehouse-receipt-detail__table tr > :not(:first-child) {
  width: 1%;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.warehouse-receipt-detail__table td.warehouse-receipt-detail__empty {
  color: #505b69;
}
.warehouse-receipt-detail small {
  display: block;
  margin-top: 3px;
  font-weight: 400;
}
.warehouse-receipt-detail__table details {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
}
.warehouse-receipt-detail__table summary {
  display: list-item;
  padding: 4px 0;
  cursor: pointer;
  color: #285680;
}
.warehouse-receipt-detail__table details[open] p {
  margin-bottom: 6px;
}
.warehouse-receipt-detail__difference {
  background: #fff6d8;
}
.warehouse-receipt-detail .wh-invoice-list {
  min-width: 0;
  margin: 0;
}
.warehouse-receipt-detail .wh-invoice-list a {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #285680;
  text-decoration: underline;
}
.warehouse-receipt-detail__logistics .wr-logistics-summary {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.warehouse-receipt-detail .wh-money {
  margin: 0;
  padding: 0;
}
.warehouse-receipt-detail__costs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 8px 16px;
}
.warehouse-receipt-detail__costs dd {
  margin: 3px 0 0;
  font-variant-numeric: tabular-nums;
}
.warehouse-receipt-detail__mobile-label {
  display: none;
}
@media (max-width: 550px) {
  .warehouse-receipt-detail__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .warehouse-receipt-detail__table table,
  .warehouse-receipt-detail__table tbody {
    display: block;
    min-width: 0;
  }
  .warehouse-receipt-detail__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .warehouse-receipt-detail__table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .warehouse-receipt-detail__table tbody tr > :first-child {
    grid-column: 1 / -1;
  }
  .warehouse-receipt-detail__table tbody tr > :not(:first-child) {
    width: auto;
    padding-inline: 6px;
    text-align: left;
    white-space: normal;
  }
  .warehouse-receipt-detail__mobile-label {
    display: block;
    margin-bottom: 4px;
    color: #505b69;
    font-size: 12px;
  }
}
.equipment-notices-page .equipment-notices-list {
  gap: 12px;
}
.equipment-notices-page .equipment-notice-head h2 {
  font-size: 18px;
}
.equipment-notices-page .equipment-notice-body {
  font-size: 16px;
}
.equipment-notices-page .equipment-notice-actions {
  margin-top: 12px;
}
.equipment-notices-page .equipment-telegram-settings {
  padding: 0 16px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
}
.equipment-notices-page .equipment-telegram-settings > summary {
  display: list-item;
  padding: 11px 0;
  font-weight: 600;
  cursor: pointer;
}
.equipment-notices-page .equipment-telegram-settings[open] {
  padding-bottom: 12px;
}
.pw-issue-preview .pw-issue-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pw-issue-preview .pw-issue-check-destination {
  padding: 12px 14px;
  border: 1px solid var(--ui-border, #dce1e7);
  border-radius: 8px;
  background: var(--ui-subtle, #f5f6f8);
}
.pw-issue-preview .pw-issue-check-destination h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.pw-issue-preview .pw-issue-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 8px 16px;
  margin: 0 0 8px;
}
.pw-issue-check-destination .pw-issue-metadata {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
.pw-issue-preview .pw-issue-metadata dt {
  color: var(--ui-muted, #525d6a);
  font-size: 13px;
}
.pw-issue-preview .pw-issue-metadata dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pw-issue-preview .pw-issue-check-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--ui-border, #dce1e7);
}
.pw-issue-preview .pw-issue-excess {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  padding: 8px 10px;
  color: #573b0a;
  background: #fff3ce;
  border-radius: 6px;
}
.pw-issue-preview .pw-issue-excess svg {
  flex: none;
}
@media (max-width: 720px) {
  .pw-issue-preview .pw-issue-check-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .pw-issue-preview .pw-issue-check-actions > .ui-button {
    flex: 1 1 12rem;
    white-space: normal;
  }
}
.pwPage .returns-overview-tabs {
  gap: 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ui-border, #e2e1df);
}
.pwPage .returns-overview-tabs button {
  flex: 0 1 auto;
  min-height: 44px;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
}
.pwPage .returns-overview-tabs button[aria-pressed=true] {
  border-bottom-color: var(--ui-accent, #ffcc00) !important;
  background: transparent !important;
  font-weight: 650;
}
.pwPage .returns-overview-rows {
  gap: 6px;
}
.pwPage .returns-overview-rows .pwRow {
  gap: 8px 16px;
  padding: 10px 14px !important;
  border-radius: 6px !important;
}
.pwPage .returns-overview-rows .pwRow:hover {
  background: var(--ui-subtle, #f6f5f4) !important;
}
.pwPage .returns-overview-rows .pwRow b {
  margin: 3px 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.pwPage .returns-overview-rows .pwRowStatus {
  padding-top: 6px;
}
.warehouse-return-lots {
  margin: 0;
  padding: 0;
  list-style: none;
}
.warehouse-return-lot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 12px;
  overflow-wrap: anywhere;
}
.warehouse-return-lot + .warehouse-return-lot {
  border-top: 1px solid var(--ui-border, #e2e1df);
}
.warehouse-return-lot:nth-child(even) {
  background: var(--ui-subtle, #f6f5f4);
}
.warehouse-return-lot-title small {
  display: block;
  margin-top: 3px;
}
.warehouse-return-lot dl {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.12fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}
.warehouse-return-lot dt,
.warehouse-return-lot-title small {
  color: var(--ui-muted, #656469);
  font-size: 13px;
}
.warehouse-return-lot dd {
  margin: 2px 0 0;
}
.warehouse-return-lot-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
}
@media (max-width: 1120px) {
  .warehouse-return-lot {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 540px) {
  .warehouse-return-lot dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 410px) {
  .warehouse-return-lot dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mk-page .mk-filters {
  gap: 10px 16px;
  margin-bottom: 16px;
}
.mk-page .mk-metrics {
  gap: 12px;
  margin-bottom: 14px;
}
.mk-page .mk-metrics strong {
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.2;
  margin-block: 8px;
}
.mk-page .mk-metrics p {
  margin-block: 5px;
}
.mk-page .mk-metrics progress {
  margin-block: 4px;
}
.mk-page .mk-finance-table thead th:not(:first-child),
.mk-page .mk-finance-table td {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.mk-page .mk-finance-table th[scope=row] {
  background: transparent;
  font-weight: 400;
}
.mk-page .mk-finance-table tbody tr:nth-child(even) {
  background: var(--ui-subtle);
}
.mk-page .mk-finance-table th[scope=row] small {
  margin-block: 3px;
}
.mk-page .mk-finance-table th[scope=row] strong {
  display: block;
  margin-bottom: 4px;
}
.mk-page .mk-source-update {
  margin-top: 12px;
}
.mk-page .mk-table-hint {
  display: none;
}
@media (max-width: 920px) {
  .mk-page .mk-table-hint {
    display: block;
    color: var(--ui-muted);
    font-size: 13px;
    margin-block: 7px;
  }
}
.wr-suppliers .wr-supplier-requisites {
  display: grid;
  gap: 10px;
  min-inline-size: 0;
  margin-block: 12px;
}
.wr-suppliers .wr-supplier-requisites h3,
.wr-suppliers .wr-requisite-preview h4,
.wr-suppliers .wr-requisite-preview p,
.wr-suppliers .wr-requisite-feedback {
  margin: 0;
}
.wr-suppliers .wr-requisite-lookup {
  display: grid;
  gap: 8px;
  min-inline-size: 0;
}
.wr-suppliers .wr-requisite-lookup-input {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}
.wr-suppliers .wr-requisite-lookup-input > :first-child {
  flex: 1 1 10rem;
  min-inline-size: 0;
}
.wr-suppliers .wr-requisite-lookup-input button {
  min-block-size: 44px;
}
.wr-suppliers .wr-requisite-preview {
  display: grid;
  gap: 8px;
  min-inline-size: 0;
  padding: 12px;
  border: 1px solid var(--ui-line, #dce0e7);
  border-radius: 6px;
  background: var(--ui-subtle, #f5f8fc);
  overflow-wrap: anywhere;
}
.wr-suppliers .wr-requisite-preview select {
  max-inline-size: 100%;
  min-inline-size: 0;
}
.wr-suppliers .wr-requisite-facts {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin: 0;
  overflow-wrap: anywhere;
}
.wr-suppliers .wr-requisite-facts dt {
  color: var(--ui-muted, #596273);
}
.wr-suppliers .wr-requisite-facts dd {
  margin: 2px 0 0;
}
.wr-suppliers .wr-requisite-facts small {
  display: block;
}
.pw-receipt .pw-review-mobile-label {
  display: none;
}
@media (max-width: 600px) {
  .pw-receipt .pw-steps:has(.pw-step-control) {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.72fr) minmax(0, 1.33fr);
    gap: 4px;
  }
  .pw-receipt .pw-step-control .pw-step-label {
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .pw-receipt .pw-steps:has(.pw-step-control) li:nth-child(2)::after {
    right: calc(-86% + 18px);
  }
  .pw-receipt .pw-review-mobile-table,
  .pw-receipt .pw-review-mobile-table tbody {
    display: block;
  }
  .pw-receipt .pw-review-mobile-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .pw-receipt .pw-review-mobile-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pw-receipt .pw-review-cost-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pw-receipt .pw-review-mobile-table tbody :is(th, td) {
    width: auto;
    min-width: 0;
    padding: 6px;
    text-align: left;
    line-height: 1.35;
  }
  .pw-receipt .pw-review-mobile-table tbody :is(th, td[colspan]) {
    grid-column: 1 / -1;
  }
  .pw-receipt .pw-review-mobile-table tbody th {
    font-size: 14px;
  }
  .pw-receipt .pw-review-mobile-label {
    display: block;
    margin-bottom: 3px;
    color: var(--ui-muted, #505b69);
    font-size: 12px;
    overflow-wrap: normal;
  }
}
@media (max-width: 365px) {
  .pw-receipt .pw-steps:has(.pw-step-control) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pw-receipt .pw-steps:has(.pw-step-control) li:last-child {
    grid-column: 1 / -1;
  }
  .pw-receipt .pw-steps:has(.pw-step-control) li:nth-child(2)::after {
    display: none;
  }
  .pw-receipt .pw-review-lines-table tbody td:not([colspan]) {
    padding-inline: 4px;
  }
  .pw-receipt .pw-review-lines-table .pw-review-mobile-label {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .pw-receipt .pw-review-cost-table tbody td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pw-receipt .pw-review-cost-table .pw-review-mobile-label {
    overflow-wrap: normal;
  }
}
@media (max-width: 365px) {
  .pw-receipt .pw-review-heading {
    display: grid;
    justify-content: stretch;
    justify-items: start;
    gap: 2px;
  }
  .pw-receipt .pw-review-heading h2 {
    overflow-wrap: normal;
  }
}
.pw-saved-result .pw-saved-result-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pw-saved-result .pw-saved-result-nav .pw-link {
  min-height: 36px;
}
.pw-saved-result .pw-breadcrumb {
  margin: 0;
}
.pw-saved-result h1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pw-saved-result .pw-saved-result-icon {
  flex: none;
  fill: #15c564;
  stroke: #fff;
}
.pw-saved-result .pw-saved-cost-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.pw-saved-result .pw-saved-cost-notes > span:first-child:not(:only-child) {
  color: var(--ui-text-secondary, #434d60);
}
@media (max-width: 600px) {
  .pw-saved-result .pw-saved-result-nav :is(.pw-link, .ir-feedback-button) {
    min-height: 44px;
  }
  .pw-saved-result .pw-saved-result-nav .ir-feedback-button {
    max-width: 132px;
  }
  .pw-saved-result .pw-saved-quantities thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pw-saved-result .pw-saved-quantities thead th:first-child {
    display: table-cell;
  }
  .pw-saved-result .pw-saved-quantities .pw-review-mobile-label {
    font-size: 11px;
    white-space: normal;
  }
}
@media (max-width: 799px) {
  .overview-v10 .ov10-mobile-metrics {
    margin-bottom: 12px;
    border: 1px solid var(--ov10-line);
    border-radius: 5px;
  }
  .overview-v10 :is(.ov10-mobile-metrics, .ov10-mobile-legend) > summary {
    align-content: center;
    min-height: 44px;
    padding: 6px 8px;
    color: #245394;
    cursor: pointer;
  }
  .overview-v10 .ov10-mobile-metrics > summary {
    font-weight: 600;
  }
  .overview-v10 .ov10-mobile-metrics .ov10-metrics {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--ov10-line);
    border-radius: 0;
  }
  .overview-v10 .ov10-mobile-orders {
    container-type: inline-size;
    min-width: 0;
  }
  .overview-v10 .ov10-mobile-queue-hint {
    margin: 0;
    padding: 8px;
    border-top: 1px solid var(--ov10-line);
    color: var(--ov10-muted);
    font-size: 13px;
  }
  .overview-v10 .ov10-mobile-order-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .overview-v10 .ov10-mobile-order {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 8px;
    border-top: 1px solid var(--ov10-line);
  }
  .overview-v10 .ov10-mobile-order:nth-child(even) {
    background: var(--ui-surface-subtle, #f5f6f8);
  }
  .overview-v10 .ov10-mobile-order-link {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 44px;
    min-width: 0;
    padding-block: 3px;
    color: #245394;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-decoration: none;
  }
  .overview-v10 .ov10-mobile-order-link > strong {
    text-decoration: underline;
  }
  .overview-v10 .ov10-mobile-deadline {
    color: var(--ui-text);
    font-weight: 600;
  }
  .overview-v10 .ov10-mobile-readiness {
    color: var(--ov10-muted);
  }
  .overview-v10 .ov10-mobile-order-link > .ov10-overdue {
    font-weight: 600;
  }
  .overview-v10 .ov10-mobile-stage-button {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 0;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 4px 0;
    border: 1px solid var(--ov10-line);
    border-radius: 5px;
    background: #fff;
  }
  .overview-v10 .ov10-mobile-stage {
    display: grid;
    justify-items: center;
    gap: 2px;
    color: var(--ov10-muted);
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .overview-v10 .ov10-mobile-stage > svg {
    width: 16px;
    height: 16px;
  }
  .overview-v10 .ov10-mobile-stage.complete > svg {
    color: var(--ui-success, #23793c);
  }
  .overview-v10 .ov10-mobile-stage.working > svg {
    color: #805a00;
  }
  .overview-v10 .ov10-mobile-stage.blocked > svg {
    color: var(--ui-danger, #a21d27);
  }
  .overview-v10 .ov10-mobile-legend {
    max-width: 100%;
  }
  .overview-v10 .ov10-mobile-legend .ov10-legend {
    padding: 0 8px 8px;
  }
  @container (min-width: 260px) {
    .overview-v10 .ov10-mobile-order {
      grid-template-columns: minmax(77px, .95fr) minmax(161px, 2fr);
    }
    .overview-v10 .ov10-mobile-stage-button {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
}
@media (max-width: 799px) {
  @container (width < 260px) {
    .overview-v10 .ov10-mobile-order {
      grid-template-columns: minmax(86px, .9fr) minmax(0, 1.35fr);
    }
    .overview-v10 .ov10-mobile-order-link > .ov10-overdue {
      white-space: nowrap;
    }
  }
}
@media (max-width: 799px) {
  .navigation-shell.phone-platform-shell {
    --menu-width: 0px;
    display: block;
    min-height: 100dvh;
    background: var(--ui-surface, #fff);
  }
  .phone-platform-shell > .global-navigation,
  .phone-platform-shell > .mobile-task-menu {
    display: none;
  }
  .phone-platform-shell > .navigation-content {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding-left: 0;
    border: 0;
  }
  .platform-phone-header {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: env(safe-area-inset-top, 0px) 16px 0;
    border-bottom: 1px solid var(--ui-line, #e2e5ea);
    background: #fff;
  }
  .platform-phone-header > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--ui-text, #20242b);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }
  .platform-phone-header svg {
    flex: none;
  }
  .platform-phone-menu {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    color: var(--ui-text, #20242b);
    background: #fff;
  }
  .platform-phone-menu__heading h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
  }
  .platform-phone-menu__heading p {
    margin: 7px 0 20px;
    font-size: 14px;
    color: #626b78;
  }
  .platform-phone-menu__search {
    display: grid;
    gap: 7px;
    margin-bottom: 24px;
    font-size: 13px;
  }
  .platform-phone-menu__search input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #bac2ce;
    border-radius: 6px;
    color: #20242b;
    background: #fff;
    font: inherit;
    font-size: 16px;
  }
  .platform-phone-menu__group {
    margin: 0 0 22px;
  }
  .platform-phone-menu__group h2 {
    margin: 0;
    padding: 9px 12px;
    border-radius: 5px 5px 0 0;
    background: #f0f1f3;
    color: #555d69;
    font-size: 13px;
    font-weight: 600;
  }
  .platform-phone-menu__group > div {
    border: 1px solid #e0e4ea;
    border-radius: 0 0 6px 6px;
  }
  .platform-phone-menu :is(.platform-phone-menu__group, .platform-phone-menu__footer) a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-bottom: 1px solid #e6e9ee;
    color: #20242b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
  }
  .platform-phone-menu__group > div > :last-child {
    border-bottom: 0;
  }
  .platform-phone-menu a svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: #676e7b;
  }
  .platform-phone-menu a:hover {
    background: #fff9d9;
  }
  .platform-phone-menu a:focus-visible,
  .platform-phone-header a:focus-visible {
    outline: 2px solid #b68d00;
    outline-offset: -2px;
  }
  .platform-phone-menu .navigation-task-counts {
    display: flex;
    padding: 0 12px 8px;
    gap: 8px;
  }
  .platform-phone-menu .navigation-task-counts a {
    min-height: 44px;
    border: 1px solid #e1d284;
    border-radius: 5px;
    background: #fff9d9;
  }
  .platform-phone-menu__footer {
    border-top: 1px solid #e0e4ea;
  }
}
.pw-receipt .pw-review-footer {
  position: static;
  inset: auto;
  width: 100%;
  margin: 12px 0 0;
  box-sizing: border-box;
  box-shadow: none;
}
.pw-receipt form:has(> .pw-review:not([hidden])) {
  padding-bottom: 16px;
}
.pw-receipt .pw-review-table .pw-review-warning {
  background: transparent;
}
.pw-receipt .pw-review-table .pw-review-warning > td {
  padding: 4px 0 0;
  border: 0;
  background: transparent;
}
.pw-receipt .pw-discrepancy-band {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #fff4cf;
  color: var(--ui-text, #171b24);
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
}
.pw-receipt .pw-discrepancy-icon {
  flex: 0 0 18px;
  margin-top: 1px;
  color: #d48b00;
}
.pw-receipt .pw-review-summary > .pw-review-storage {
  padding-bottom: 10px;
}
.pw-receipt .pw-review-storage > h3 {
  margin: 0;
  padding: 10px 0 7px;
  font-size: 14px;
  line-height: 1.35;
}
.pw-receipt .pw-review-storage input {
  width: 100%;
  min-width: 0;
}
@media (max-width: 760px) {
  .pw-receipt .pw-review-footer {
    padding: 12px 0 8px;
    gap: 10px;
  }
  .pw-receipt .pw-review-footer .pw-actions > button {
    min-height: 44px;
  }
  .pw-receipt .pw-review-storage input {
    min-height: 44px;
    font-size: 16px;
  }
  .pw-receipt .pw-discrepancy-band {
    font-size: 14px;
    padding: 8px 10px;
  }
}
.equipment-registration-editor .eq-registration-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.equipment-registration-editor .eq-registration-identity .ui-field {
  margin: 0;
}
.equipment-registration-editor .eq-registration-identity .ui-field > input {
  margin-top: 8px;
}
.equipment-registration-editor .eq-nameplate-registration {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--ui-line, #dfe2e7);
  border-radius: var(--ui-radius-sm, 6px);
  background: var(--ui-surface, #fff);
}
.equipment-registration-editor .eq-nameplate-registration > h2 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}
.equipment-registration-editor .eq-nameplate-registration h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}
.equipment-registration-editor .eq-nameplate-verification,
.equipment-registration-editor .eq-nameplate-documents {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ui-line, #dfe2e7);
}
.equipment-registration-editor .eq-nameplate-identity-fields {
  margin-top: 10px;
}
.equipment-registration-editor .eq-nameplate-registration p {
  overflow-wrap: anywhere;
}
.equipment-unit-page .equipment-overview-card {
  min-width: 0;
}
.equipment-unit-page .equipment-overview-card .equipment-facts dd {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .equipment-page .equipment-registration-editor {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .equipment-page .equipment-registration-editor > .ui-section-tabs {
    margin: 0 0 12px;
  }
  .equipment-registration-editor .eq-local-equipment.eq-registration {
    max-width: none;
    gap: 12px;
  }
  .equipment-registration-editor .eq-registration-identity {
    grid-template-columns: minmax(0, 1fr);
  }
  .equipment-registration-editor .eq-local-equipment .eq-registration-card,
  .equipment-registration-editor .eq-registration .eq-nameplate-registration {
    padding: 14px;
  }
  .equipment-registration-editor .eq-registration-identity .ui-field {
    font-size: 16px;
    font-weight: 600;
  }
  .equipment-registration-editor .eq-registration input:not([type=radio]):not([type=file]),
  .equipment-registration-editor .eq-registration-select,
  .equipment-registration-editor .eq-registration-link,
  .equipment-registration-editor .equipment-simple-details > summary {
    min-height: 44px;
  }
  .equipment-registration-editor .eq-local-equipment .eq-registration-photo-grid {
    grid-template-columns: minmax(88px, .38fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .equipment-registration-editor .eq-local-equipment .eq-registration-photo-preview {
    width: 100%;
    max-width: none;
    min-height: 104px;
  }
  .equipment-registration-editor .eq-local-equipment .eq-registration-photo-control {
    min-height: 44px;
    gap: 8px;
    padding: 8px;
    font-size: 14px;
  }
  .equipment-registration-editor .eq-nameplate-registration .eq-registration-link {
    width: 100%;
    padding: 10px 0;
    text-underline-offset: 3px;
  }
  .equipment-registration-editor .eq-nameplate-identity-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .equipment-registration-editor .eq-nameplate-registration > h2 {
    font-size: 17px;
  }
  .equipment-registration-editor .eq-nameplate-registration h3 {
    font-size: 16px;
  }
  .equipment-page .equipment-registration-editor .equipment-save-bar {
    position: sticky;
    bottom: 0;
    margin-top: 12px;
    padding: 12px 0 calc(10px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--ui-line, #dfe2e7);
    border-radius: 0;
    box-shadow: none;
    background: var(--ui-surface, #fff);
  }
  .equipment-page .equipment-registration-editor .equipment-save-bar > .ui-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .equipment-page .equipment-registration-editor .equipment-save-bar .ui-button {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }
  .equipment-unit-page .equipment-card-identity {
    align-items: flex-start;
    gap: 12px;
  }
  .equipment-unit-page .equipment-overview-card .equipment-saved-photo {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ui-line, #dfe2e7);
  }
  .equipment-unit-page .equipment-overview-card .equipment-saved-photo img {
    width: 100%;
    max-height: 220px;
  }
  .equipment-unit-page .equipment-overview-card .equipment-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .equipment-unit-page .equipment-overview-card .equipment-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ui-line, #dfe2e7);
  }
  .equipment-unit-page .equipment-overview-card .equipment-facts > div:last-child {
    border-bottom: 0;
  }
  .equipment-unit-page .equipment-overview-card .equipment-facts dt {
    color: var(--ui-muted, #656b74);
    font-size: 13px;
  }
  .equipment-unit-page .equipment-overview-card .equipment-facts dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
  }
}
@media (max-width: 359px) {
  .equipment-registration-editor .eq-local-equipment .eq-registration-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .equipment-registration-editor .eq-local-equipment .eq-registration-photo-preview {
    max-width: 140px;
  }
}
.navigation-content > .section-queue-exit.ui-page {
  min-height: 0;
}
.pw-team-page .pw-team-split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}
.pw-team-page .pw-team-register,
.pw-team-page .pw-team-selected-person {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface, #fff);
}
.pw-team-page .pw-team-register > h2,
.pw-team-page .pw-team-selected-person > h2 {
  margin: 0;
  padding: 16px;
  font-size: 20px;
  line-height: 1.3;
}
.pw-team-page .pw-team-selected-person {
  padding: 16px;
}
.pw-team-page .pw-team-selected-person > h2 {
  padding: 0;
}
.pw-team-page .pw-team-selected-person > p {
  margin: 6px 0 12px;
}
.pw-team-page .pw-team-register-scroll {
  min-width: 0;
  overflow-x: auto;
}
.pw-team-page .pw-team-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 14px;
}
.pw-team-page .pw-team-table th,
.pw-team-page .pw-team-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--ui-line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.pw-team-page .pw-team-table thead th {
  background: var(--ui-surface-muted, #f4f5f6);
  font-weight: 500;
  color: var(--ui-muted);
}
.pw-team-page .pw-team-table th:first-child {
  width: 44%;
}
.pw-team-page .pw-team-table td:last-child {
  width: 19%;
}
.pw-team-page .pw-team-table tbody tr:nth-child(even) {
  background: var(--ui-surface-muted, #fafafa);
}
.pw-team-page .pw-team-table tbody tr.pw-team-selected {
  background: var(--ui-selected-soft, #fff8d8);
}
.pw-team-page .pw-team-select {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  cursor: pointer;
  font: inherit;
}
.pw-team-page .pw-team-select strong {
  font-weight: 600;
}
.pw-team-page .pw-team-select span,
.pw-team-page .pw-team-table td small {
  display: block;
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 400;
}
.pw-team-page .pw-team-select:focus-visible {
  outline: 2px solid var(--ui-focus, #b99d1d);
  outline-offset: 4px;
}
.pw-team-page .pw-team-selected-tasks {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--ui-line);
}
.pw-team-page .pw-team-selected-tasks h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.pw-team-page .pw-team-selected-tasks .pw-team-tasks {
  padding: 0;
  margin: 0;
  list-style: none;
}
.pw-team-page .pw-team-selected-tasks .pw-team-task {
  padding: 12px 0;
}
.pw-team-page .pw-team-selected-tasks .pw-team-task:first-child {
  padding-top: 0;
}
.pw-team-page .pw-team-selected-tasks .pw-team-task:last-child {
  padding-bottom: 0;
}
@media (max-width: 899px) {
  .pw-team-page .pw-team-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .pw-team-page .pw-team-register > h2 {
    padding: 14px;
    font-size: 18px;
  }
  .pw-team-page .pw-team-selected-person {
    padding: 14px;
    scroll-margin-top: 12px;
  }
  .pw-team-page .pw-team-selected-person > h2 {
    font-size: 20px;
  }
  .pw-team-page .pw-team-table th,
  .pw-team-page .pw-team-table td {
    padding: 10px;
  }
}
@media (max-width: 600px) {
  .pw-team-page .pw-team-table,
  .pw-team-page .pw-team-table tbody {
    display: block;
  }
  .pw-team-page .pw-team-table thead {
    display: none;
  }
  .pw-team-page .pw-team-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, .55fr);
    gap: 8px 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--ui-line);
  }
  .pw-team-page .pw-team-table tbody th {
    grid-column: 1 / -1;
  }
  .pw-team-page .pw-team-table tbody th,
  .pw-team-page .pw-team-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .pw-team-page .pw-team-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--ui-muted);
    font-size: 12px;
  }
  .pw-team-page .pw-team-register-scroll {
    overflow: visible;
  }
  .pw-team-page .pw-team-select {
    min-height: 44px;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-scroll-help {
    display: none;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card .ep-table-wrap {
    overflow: visible;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card table,
  .employee-profile.employee-profile.employee-profile .ep-doc-card tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card thead {
    display: none;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    height: auto;
    min-height: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--ep-line, #dededa);
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card tbody th {
    grid-column: 1 / -1;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    white-space: normal;
    background: transparent;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card td {
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--ep-muted, #686868);
    font-size: 13px;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card td input,
  .employee-profile.employee-profile.employee-profile .ep-doc-card td select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    font-size: 16px;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card td .ep-doc-date {
    display: block;
  }
  .employee-profile.employee-profile.employee-profile .ep-doc-card .ep-upload,
  .employee-profile.employee-profile.employee-profile .ep-doc-version-button {
    width: 100%;
    min-height: 44px;
    margin: 0;
  }
}
.pw-team-page.pw-team-single {
  font-family: Arial, sans-serif;
  color: #151b2b;
  background: #fff;
  max-width: 1100px;
  margin: 24px auto;
  padding: 24px 32px;
  border: 1px solid #dce1eb;
  border-radius: 12px;
  box-shadow: none;
}
.pw-team-single * {
  box-sizing: border-box;
}
.pw-team-single :is(button, select, summary, span, small, strong, p, label) {
  font-family: Arial, sans-serif;
}
.pw-team-single .pw-single-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e8ebf1;
}
.pw-team-single .pw-single-heading h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin: 0;
  font-weight: 700;
}
.pw-single-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #68748a;
}
.pw-team-single .pw-team-button {
  min-height: 44px;
  border: 1px solid #cbd4e4;
  border-radius: 7px;
  background: #fff;
  color: #163ee8;
  padding: 8px 16px;
  font: 600 15px Arial, sans-serif;
  box-shadow: none;
  cursor: pointer;
}
.pw-team-single .pw-team-button:disabled {
  color: #7f8795;
  cursor: wait;
}
.pw-single-employee {
  display: flex;
  align-items: end;
  gap: 12px;
}
.pw-single-employee label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.pw-single-label {
  color: #667188;
  font-size: 13px;
  font-weight: 600;
}
.pw-single-employee select {
  width: 100%;
  height: 48px;
  min-width: 0;
  border: 1px solid #bac6db;
  border-radius: 7px;
  background: #fff;
  padding: 8px 34px 8px 12px;
  font: 600 18px Arial, sans-serif;
  color: #17223a;
}
.pw-team-single .pw-single-transfer {
  height: 48px;
}
.pw-single-presence {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pw-team-single .pw-team-presence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #566277;
}
.pw-team-single .pw-team-presence-present {
  color: #087848;
}
.pw-team-single .pw-team-presence-present:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pw-single-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #dbe1ec;
  margin-bottom: 12px;
}
.pw-single-tabs button {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font: 600 16px Arial, sans-serif;
  color: #68748a;
  cursor: pointer;
}
.pw-single-tabs button[aria-pressed=true] {
  color: #163ee8;
  border-bottom-color: #163ee8;
}
.pw-team-single .pw-single-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: 436px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.pw-single-list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pw-single-task {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  width: 100%;
  text-align: left;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  color: #151b2b;
  font: inherit;
}
.pw-single-task-working {
  background: #edf3ff;
  border-color: #b8cdfa;
}
.pw-single-task-held {
  background: #fff0ef;
  border-color: #f4c0ba;
}
.pw-single-task-urgent {
  background: #fff0ef;
  border-color: #f4c0ba;
}
.pw-single-task-urgent .pw-single-status {
  color: #b23129;
}
.pw-single-task-done {
  background: #f1faf5;
  border-color: #c3e4d1;
}
.pw-single-task:focus-visible,
.pw-team-single button:focus-visible,
.pw-team-single select:focus-visible,
.pw-team-single summary:focus-visible {
  outline: 3px solid #2450eb;
  outline-offset: 2px;
}
.pw-single-shape {
  width: 36px;
  flex: none;
  color: #314563;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-single-shape svg {
  width: 34px;
  height: 34px;
}
.pw-single-task-body {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.pw-single-task-body strong {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.3px;
  font-weight: 700;
}
.pw-single-task-body > span {
  font-size: 14px;
  line-height: 1.25;
  color: #5c697e;
  overflow-wrap: anywhere;
}
.pw-single-task-body small {
  font-size: 13px;
  line-height: 1.25;
  color: #a12b22;
}
.pw-single-status {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: #67758b;
}
.pw-single-task-working .pw-single-status {
  color: #1747cb;
}
.pw-single-task-held .pw-single-status {
  color: #b23129;
}
.pw-single-task-done .pw-single-status {
  color: #087848;
}
.pw-single-task .pw-team-chevron {
  position: static;
  inset: auto;
  transform: none;
  width: 16px;
  height: 20px;
  color: #7b879b;
  flex: none;
}
.pw-single-task .pw-team-chevron svg {
  width: 16px;
  height: 20px;
}
.pw-single-details,
.pw-single-exceptions,
.pw-single-provenance {
  margin-top: 12px;
  border-top: 1px solid #e5e9f0;
  padding-top: 0;
}
.pw-single-details > summary,
.pw-single-exceptions > summary,
.pw-single-provenance summary {
  min-height: 44px;
  padding: 13px 0;
  font-size: 14px;
  color: #56637a;
  cursor: pointer;
}
.pw-single-exceptions > summary {
  color: #b23129;
}
.pw-single-provenance {
  margin-top: 0;
}
.pw-team-single .pw-team-sources {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
}
.pw-single-empty {
  padding: 24px 0;
  color: #68748a;
}
.pw-single-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid #cad3e4;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  color: #17223a;
  overflow: auto;
}
.pw-single-dialog::backdrop {
  background: rgba(19, 30, 53, .28);
}
.pw-single-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pw-single-dialog h2 {
  font-size: 20px;
  margin: 0;
}
.pw-single-dialog .pw-team-tasks {
  margin: 16px 0 0;
  padding: 0;
}
@media (max-width: 600px) {
  .pw-team-page.pw-team-single {
    margin: 0;
    padding: 18px 16px;
    border: 0;
    border-radius: 0;
    max-width: 100%;
  }
  .pw-team-single .pw-single-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .pw-team-single .pw-single-heading h1 {
    font-size: 24px;
  }
  .pw-single-heading > div {
    gap: 6px;
  }
  .pw-single-heading small {
    font-size: 12px;
  }
  .pw-team-single .pw-single-heading .pw-team-button {
    padding: 8px;
    font-size: 13px;
  }
  .pw-single-employee {
    gap: 8px;
  }
  .pw-single-employee select {
    font-size: 17px;
  }
  .pw-team-single .pw-single-transfer {
    padding: 8px 10px;
    font-size: 14px;
  }
  .pw-team-single .pw-single-list {
    gap: 7px;
    max-height: calc(100dvh - 365px);
    min-height: 80px;
  }
  .pw-single-task {
    min-height: 76px;
    padding: 11px 10px;
    gap: 9px;
  }
  .pw-single-shape {
    width: 29px;
  }
  .pw-single-shape svg {
    width: 28px;
    height: 32px;
  }
  .pw-single-task-body strong {
    font-size: 19px;
  }
  .pw-single-task-body > span {
    font-size: 12px;
  }
  .pw-single-status {
    font-size: 12px;
  }
  .pw-single-task .pw-team-chevron {
    width: 10px;
  }
  .pw-single-task .pw-team-chevron svg {
    width: 10px;
  }
}
.pw-single-shared-reason {
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 10px;
  padding: 0;
  flex: none;
}
.pw-team-single .pw-single-heading.ir-feedback-heading-host {
  padding-right: 0;
}
.pw-team-single .pw-single-heading {
  flex-wrap: wrap;
  gap: 8px;
}
.pw-team-single .pw-single-heading > h1 {
  margin-right: auto;
}
.pw-team-single .pw-single-heading > .ir-feedback-heading-control {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  flex: none;
}
.pw-team-single .pw-single-heading .ir-feedback-button {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 1px solid #b3212a !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #b3212a !important;
  font-size: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pw-team-single .pw-single-heading .ir-feedback-button::after {
  content: "!";
  font: 700 18px Arial, sans-serif;
}
@media (max-width: 360px) {
  .pw-team-single .pw-single-heading small {
    display: none;
  }
}
.receipt-allocation {
  color: #142034;
  background: #fff;
  border-top: 1px solid #d5dbe5;
  padding-top: 22px;
  margin-top: 22px;
  font: 16px/1.35 Arial, sans-serif;
}
.receipt-allocation * {
  box-sizing: border-box;
}
.receipt-allocation header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.receipt-allocation h2 {
  font-size: 24px !important;
  line-height: 1.2;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
.receipt-allocation button,
.receipt-allocation input,
.receipt-allocation select {
  font: inherit;
}
.receipt-allocation button {
  cursor: pointer;
}
.receipt-allocation button:disabled {
  cursor: default;
  opacity: .55;
}
.receipt-allocation :is(button, input, select):focus-visible {
  outline: 3px solid #1434e8;
  outline-offset: 2px;
}
.ra-refresh,
.ra-add,
.ra-remove {
  border: 0;
  background: #fff;
  color: #1031e5;
  min-height: 44px;
  padding: 8px 0;
}
.ra-refresh {
  font-size: 14px !important;
}
.ra-line {
  border: 0 !important;
  padding: 0 !important;
  margin: 20px 0 0 !important;
  min-width: 0;
}
.ra-line legend {
  font-size: 21px;
  font-weight: 700;
  padding: 0;
}
.ra-accepted {
  margin: 8px 0 0;
  color: #596579;
}
.ra-accepted strong {
  font-size: 22px;
  color: #142034;
}
.ra-part {
  padding: 18px 0;
  border-bottom: 1px solid #d5dbe5;
}
.ra-part-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 12px;
  align-items: end;
}
.receipt-allocation label {
  display: block;
  font-size: 14px;
  color: #536278;
  min-width: 0;
}
.receipt-allocation select,
.receipt-allocation input:not([type=checkbox]) {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid #aab5c9;
  border-radius: 7px;
  background: #fff;
  color: #142034;
  padding: 10px 12px;
}
.ra-quantity {
  position: relative;
}
.ra-quantity input {
  font-size: 22px !important;
  font-weight: 700;
  padding-right: 48px !important;
}
.ra-quantity span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}
.ra-remove {
  min-width: 44px;
  color: #a82636;
}
.ra-recipient {
  margin-top: 12px;
}
.ra-self {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  color: #142034 !important;
  font-size: 16px !important;
}
.ra-self input {
  width: 22px;
  height: 22px;
  accent-color: #1434e8;
}
.ra-recipient-note,
.ra-hint {
  color: #596579;
  font-size: 14px;
  margin: 10px 0 0;
}
.ra-total {
  margin: 8px 0 0;
  border-bottom: 1px solid #d5dbe5;
  padding-bottom: 16px;
}
.ra-total strong {
  font-size: 18px;
}
.ra-total[data-complete=false] strong {
  color: #a32332;
}
.ra-error {
  border-left: 3px solid #bf2031;
  background: #fff0f2;
  padding: 12px;
  color: #8e1825;
}
.ra-saved-part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #d5dbe5;
}
.ra-saved-part > :last-child {
  grid-column: 1/-1;
  color: #596579;
}
.ra-saved-part [data-status=received] {
  color: #12632b;
}
.ra-saved-part [data-status=partial] {
  color: #a32332;
}
@media (max-width: 640px) {
  .receipt-allocation h2 {
    font-size: 22px !important;
  }
  .receipt-allocation header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .ra-part-top {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
  }
  .ra-part-top > label:first-child {
    grid-column: 1/-1;
  }
  .ra-part-top > .ra-remove {
    justify-self: end;
  }
  .ra-line legend {
    font-size: 20px;
  }
  .ra-part {
    padding: 14px 0;
  }
  .ra-refresh {
    min-height: 44px;
  }
  .ra-saved-part {
    font-size: 15px;
  }
}
.pw-receipt .receipt-allocation input[type=checkbox] {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
}
.pw-receipt .receipt-allocation :is(select, input) {
  min-width: 0;
  max-width: 100%;
}
.pw-receipt .receipt-allocation .ra-self {
  justify-content: flex-start;
  width: 100%;
  overflow-wrap: normal;
}
.rr-card {
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #cdd2df;
  border-radius: 14px;
  padding: 28px;
  color: #111820;
  font-family: Arial, sans-serif;
  box-shadow: none;
}
.rr-card * {
  box-sizing: border-box;
}
.rr-card button,
.rr-card input,
.rr-card a {
  font: inherit;
}
.rr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.rr-card button {
  cursor: pointer;
}
.rr-card button:disabled {
  cursor: default;
  opacity: .5;
}
.rr-card :is(button, a, input):focus-visible {
  outline: 3px solid #1434e8;
  outline-offset: 3px;
}
.rr-back {
  background: transparent;
  color: #1031e5;
  border: 0;
  min-height: 44px;
  padding: 0;
  font-weight: 600 !important;
}
.rr-problem {
  color: #cb1823;
  border: 1px solid #cb1823;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.rr-card h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 750;
}
.rr-place {
  font-size: 22px;
  font-weight: 700;
}
.rr-status {
  display: inline-block;
  border-radius: 7px;
  padding: 7px 12px;
  background: #fff1bb;
  color: #594500;
  font-weight: 700;
  font-size: 16px;
  margin: 14px 0 24px;
}
.rr-status--received {
  background: #e0f5e5;
  color: #12632b;
}
.rr-status--shortage {
  background: #ffe3e5;
  color: #a71724;
}
.rr-material {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, .8fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid #cdd2df;
  border-radius: 10px;
  margin-bottom: 24px;
  background: #fff;
}
.rr-material h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}
.rr-amount {
  border-left: 1px solid #cdd2df;
  padding-left: 26px;
}
.rr-amount strong {
  font-size: 52px;
  line-height: 1.15;
  display: block;
  overflow-wrap: anywhere;
}
.rr-amount span {
  display: block;
  font-size: 18px;
  color: #5a6474;
  margin-top: 8px;
}
.rr-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}
.rr-actions button {
  min-height: 60px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  flex: 1;
}
.rr-primary {
  background: #ffcf00;
  color: #151400;
  border: 1px solid #ffcf00;
}
.rr-secondary {
  background: #fff;
  color: #171e29;
  border: 1px solid #aab3c5;
}
.rr-hint {
  font-size: 16px;
  line-height: 1.45;
  color: #586375;
  margin: 20px 0 0;
}
.rr-shortage {
  border-top: 1px solid #d8dce7;
  padding-top: 20px;
}
.rr-shortage label {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.rr-input {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rr-input input {
  width: 180px;
  min-height: 58px;
  border: 2px solid #aab3c5;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 30px;
}
.rr-input span {
  font-size: 22px;
}
.rr-calculation {
  font-size: 22px;
  font-weight: 700;
  margin: 16px 0;
}
.rr-result {
  background: #f7f9fb;
  border: 1px solid #ccd3de;
  border-radius: 10px;
  padding: 20px;
  font-size: 24px;
}
.rr-missing {
  color: #b51a28;
  margin: 12px 0 0;
  font-weight: 700;
}
.rr-error {
  border-left: 4px solid #bd1f2e;
  background: #fff1f2;
  padding: 14px;
  margin: 16px 0;
  color: #841b24;
}
.rr-error p {
  margin: 0 0 12px;
}
.rr-error button,
.rr-recovery button {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.rr-error button {
  background: #fff;
  border: 1px solid #a13843;
  color: #841b24;
}
.rr-recovery {
  margin: 16px 0;
}
.rr-recovery p {
  line-height: 1.45;
}
@media (max-width: 640px) {
  .rr-card {
    padding: 18px 16px;
    border-radius: 10px;
  }
  .rr-header {
    gap: 10px;
    margin-bottom: 20px;
  }
  .rr-back,
  .rr-problem {
    font-size: 15px !important;
  }
  .rr-problem {
    padding: 9px;
  }
  .rr-card h1 {
    font-size: 29px;
    margin-bottom: 20px;
  }
  .rr-place {
    font-size: 22px;
  }
  .rr-status {
    margin: 12px 0 20px;
    font-size: 15px;
  }
  .rr-material {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
    margin-bottom: 20px;
  }
  .rr-material h2 {
    font-size: 28px;
  }
  .rr-amount {
    padding: 0;
    border: 0;
  }
  .rr-amount strong {
    font-size: 48px;
  }
  .rr-amount span {
    font-size: 17px;
  }
  .rr-actions {
    flex-direction: column;
    gap: 12px;
  }
  .rr-actions button {
    width: 100%;
    font-size: 20px;
    min-height: 58px;
    padding: 14px;
  }
  .rr-hint {
    font-size: 15px;
  }
  .rr-shortage label {
    font-size: 21px;
  }
  .rr-calculation,
  .rr-result {
    font-size: 21px;
  }
}
.rr-card .rr-problem {
  background: #fff;
  color: #cb1823;
}
.rr-format {
  font-size: 20px;
  color: #596579;
  margin: 12px 0 0;
}
.rr-card--remainder {
  max-width: 860px;
  padding: 26px 30px;
}
.rr-card--remainder .rr-header {
  border-bottom: 1px solid #d8dce7;
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.rr-card--remainder .rr-problem {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px !important;
  background: transparent;
}
.rr-card--remainder .rr-problem::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid #cb1823;
  border-radius: 50%;
}
.rr-card--remainder h1 {
  font-size: 30px;
  margin: 0 0 10px;
}
.rr-card--remainder .rr-place {
  font-size: 20px;
  font-weight: 400;
}
.rr-card--remainder .rr-material {
  display: block;
  margin: 24px 0 20px;
  padding: 0;
  border: 0;
  background: none;
}
.rr-card--remainder .rr-material h2 {
  font-size: 26px;
}
.rr-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid #d8dce7;
  padding-bottom: 22px;
}
.rr-facts > div {
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid #d8dce7;
}
.rr-facts > div:first-child {
  padding-left: 0;
}
.rr-facts > div:last-child {
  border: 0;
  padding-right: 0;
}
.rr-facts dt {
  font-size: 17px;
  color: #586375;
  margin-bottom: 10px;
}
.rr-facts dd {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}
.rr-fact--missing dd {
  display: inline-block;
  color: #b51a28;
  background: #ffe5e8;
  border-radius: 7px;
  padding: 3px 8px;
  margin-top: -3px;
}
.rr-card--remainder .rr-remainder {
  padding-top: 22px;
}
.rr-card--remainder .rr-remainder label {
  font-size: 23px;
  margin-bottom: 14px;
}
.rr-card--remainder .rr-input {
  position: relative;
  display: block;
}
.rr-card--remainder .rr-remainder .rr-input input {
  width: 100%;
  padding-right: 85px;
  min-height: 58px;
  font-size: 29px;
  border: 2px solid #8b96ad;
  background: #fff;
}
.rr-card--remainder .rr-input input:focus {
  border-color: #1031e5;
  outline: 1px solid #1031e5;
  outline-offset: 0;
}
.rr-card--remainder .rr-input span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  pointer-events: none;
}
.rr-preview {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.rr-card--remainder .rr-remainder .rr-calculation,
.rr-left-preview {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: #586375;
}
.rr-card--remainder .rr-remainder .rr-actions {
  margin-top: 24px;
}
.rr-card--remainder .rr-remainder .rr-primary {
  min-height: 56px;
  font-size: 23px;
  border-radius: 9px;
}
.rr-card--remainder .rr-remainder .rr-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 16px;
}
@media (max-width: 640px) {
  .rr-card--remainder {
    padding: 18px 16px;
  }
  .rr-card--remainder .rr-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
  }
  .rr-card--remainder h1 {
    font-size: 25px;
  }
  .rr-card--remainder .rr-place {
    font-size: 18px;
  }
  .rr-card--remainder .rr-material {
    margin: 24px 0 22px;
  }
  .rr-card--remainder .rr-material h2 {
    font-size: 23px;
  }
  .rr-facts > div {
    padding: 0 12px;
  }
  .rr-facts dt {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .rr-facts dd {
    font-size: 23px;
    white-space: nowrap;
  }
  .rr-fact--missing dd {
    padding: 3px 6px;
  }
  .rr-facts {
    padding-bottom: 24px;
  }
  .rr-card--remainder .rr-remainder {
    padding-top: 22px;
  }
  .rr-card--remainder .rr-remainder label {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .rr-card--remainder .rr-remainder .rr-input input {
    min-height: 56px;
    font-size: 28px;
  }
  .rr-preview {
    display: block;
    margin-top: 14px;
  }
  .rr-card--remainder .rr-remainder .rr-calculation,
  .rr-left-preview {
    font-size: 16px;
    line-height: 1.4;
  }
  .rr-left-preview {
    margin-top: 4px;
  }
  .rr-card--remainder .rr-remainder .rr-primary {
    font-size: 21px;
    min-height: 54px;
  }
  .rr-card--remainder .rr-remainder .rr-hint {
    font-size: 14px;
    margin-top: 14px;
  }
}
.receipt-allocation.ra-compact {
  margin-top: 16px;
  padding-top: 18px;
  color: #142034;
}
.ra-compact .ra-line {
  margin: 0 !important;
  padding: 0 !important;
}
.ra-compact .ra-line + .ra-line {
  margin-top: 24px !important;
}
.ra-compact .ra-line legend {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
}
.ra-compact .ra-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d5dbe5;
  gap: 0;
}
.ra-compact .ra-metrics > div {
  min-width: 0;
  padding: 0 18px;
  border-left: 1px solid #d5dbe5;
}
.ra-compact .ra-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.ra-compact .ra-metrics dt {
  font-size: 14px;
  line-height: 18px;
  color: #596579;
  margin: 0 0 5px;
}
.ra-compact .ra-metrics dd {
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  margin: 0;
  color: #142034;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ra-compact .ra-metrics [data-discrepancy=true] dd {
  color: #bd2637;
}
.ra-compact .ra-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ra-compact .ra-heading h2 {
  font-size: 23px !important;
}
.ra-compact .ra-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #46566f;
  border: 1px solid #d5dbe5;
  border-radius: 6px;
}
.ra-compact .ra-part {
  padding: 14px 0 12px;
}
.ra-compact .ra-part-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 16px;
  align-items: end;
}
.ra-compact label > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #536278;
}
.ra-compact select,
.ra-compact input:not([type=checkbox]) {
  font-size: 16px;
  min-height: 46px;
  margin: 0;
  border-radius: 6px;
  padding: 10px 12px;
}
.ra-compact .ra-quantity input {
  font-size: 23px !important;
}
.ra-compact .ra-quantity > span {
  color: #596579;
}
.ra-compact .ra-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
}
.ra-compact .ra-recipient {
  margin: 0;
}
.ra-compact .ra-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #b6bfd0;
  border-radius: 6px;
  color: #536278;
  background: #fff;
}
.ra-compact .ra-remove:hover {
  color: #b52435;
  background: #fff2f3;
  border-color: #b52435;
}
.ra-compact .ra-recipient-note {
  font-size: 14px;
  margin: 6px 0 0;
  min-height: 22px;
  line-height: 22px;
}
.ra-compact .ra-self {
  min-height: 32px;
  margin-top: 6px;
  font-size: 15px !important;
  gap: 9px;
}
.ra-compact .ra-add {
  font-size: 16px;
  padding: 8px 0;
  min-height: 44px;
}
.ra-compact .ra-total {
  padding: 12px 14px;
  margin: 4px 0 0;
  border: 0;
  border-radius: 6px;
  background: #f1f4fb;
  color: #204575;
  font-size: 16px;
  line-height: 24px;
}
.ra-compact .ra-total strong {
  font-size: 18px;
  color: inherit;
}
.ra-compact .ra-total[data-complete=true] {
  background: #e4f3e8;
  color: #205331;
}
.ra-compact .ra-hint {
  font-size: 14px;
  margin: 8px 0 0;
  line-height: 20px;
}
@media (max-width: 640px) {
  .receipt-allocation.ra-compact {
    padding-top: 14px;
    margin-top: 12px;
  }
  .ra-compact .ra-line legend {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .ra-compact .ra-metrics {
    margin-bottom: 10px;
    padding-bottom: 12px;
  }
  .ra-compact .ra-metrics > div {
    padding: 0 10px;
  }
  .ra-compact .ra-metrics dt {
    font-size: 12px;
    line-height: 16px;
  }
  .ra-compact .ra-metrics dd {
    font-size: 28px;
    line-height: 32px;
  }
  .ra-compact .ra-heading h2 {
    font-size: 21px !important;
  }
  .ra-compact .ra-part {
    padding: 12px 0;
  }
  .ra-compact .ra-part-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .ra-compact .ra-part-top > label:first-child {
    grid-column: auto;
  }
  .ra-compact :is(.ra-place, .ra-amount, .ra-recipient) {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }
  .ra-compact label > span:first-child {
    margin: 0;
  }
  .ra-compact .ra-person-row {
    gap: 8px;
    margin-top: 9px;
  }
  .ra-compact .ra-quantity {
    max-width: 210px;
  }
  .ra-compact .ra-quantity input {
    font-size: 23px !important;
  }
  .ra-compact .ra-remove {
    min-height: 46px;
  }
  .ra-compact .ra-recipient-note {
    margin-top: 6px;
    font-size: 13px;
  }
  .ra-compact .ra-total {
    padding: 10px 12px;
  }
  .ra-compact .ra-total strong {
    font-size: 17px;
  }
}
@media (max-width: 350px) {
  .ra-compact :is(.ra-place, .ra-amount, .ra-recipient) {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 6px;
  }
  .ra-compact .ra-person-row {
    gap: 6px;
  }
  .ra-compact .ra-metrics > div {
    padding: 0 7px;
  }
  .ra-compact .ra-metrics dt {
    font-size: 11px;
  }
}
.el-panel {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #ccd3e1;
  border-radius: 14px;
  color: #131923;
  font-family: Arial, sans-serif;
}
.el-panel * {
  box-sizing: border-box;
}
.el-panel button,
.el-panel input,
.el-panel select,
.el-panel textarea {
  font: inherit;
}
.el-panel button,
.el-panel a {
  cursor: pointer;
}
.el-panel button:disabled {
  opacity: .5;
  cursor: default;
}
.el-panel :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #1539eb;
  outline-offset: 3px;
}
.el-heading {
  border-bottom: 1px solid #dce1eb;
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.el-heading h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 14px 0;
}
.el-heading p {
  color: #536078;
  margin: 0;
}
.el-back {
  border: 0;
  background: #fff;
  color: #1235e6;
  padding: 8px 0;
  min-height: 44px;
  font-weight: 700 !important;
}
.el-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.el-block {
  border: 1px solid #cdd4e3;
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.el-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  margin: 0 0 20px;
}
.el-block h2 > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  height: 32px;
  background: #1539eb;
  color: #fff;
  border-radius: 7px;
  font-size: 21px;
}
.el-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  font-weight: 600;
  min-width: 0;
}
.el-field input,
.el-field select,
.el-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aab5c8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #131923;
  font-weight: 400;
}
.el-field textarea {
  min-height: 80px;
  resize: vertical;
}
.el-field input[readonly] {
  background: #f6f8fb;
}
.el-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  margin: 14px 0;
}
.el-check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: #1539eb;
  margin: 0;
}
.el-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 12px;
}
.el-facts dt,
.el-facts dd {
  margin: 0;
}
.el-facts dd {
  color: #59667a;
  font-size: 15px;
}
.el-note {
  color: #59667a;
  line-height: 1.45;
  font-size: 16px;
}
.el-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.el-actions button,
.el-actions a,
.el-review button,
.el-error button {
  min-height: 50px;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}
.el-primary {
  background: #ffcf00;
  color: #181700;
  border: 1px solid #ffcf00;
}
.el-secondary {
  background: #fff;
  color: #151c28;
  border: 1px solid #aeb9cd;
}
.el-danger {
  background: #e92240;
  color: #fff;
  border: 1px solid #e92240;
}
.el-error {
  padding: 16px;
  background: #fff1f2;
  border-left: 4px solid #ca2541;
  color: #8e1d2c;
  margin: 16px 0;
}
.el-error p {
  margin: 0 0 12px;
}
.el-error button {
  background: #fff;
  border: 1px solid #a33748;
  color: #8e1d2c;
}
.el-review {
  padding: 20px;
  background: #fff9e5;
  border: 1px solid #e7cb76;
  border-radius: 10px;
  margin-top: 20px;
}
.el-review h2 {
  margin: 0 0 12px;
  font-size: 23px;
}
.el-result {
  border: 1px solid #bcdac6;
  border-left: 5px solid #248548;
  padding: 22px;
  border-radius: 10px;
}
.el-result h2 {
  margin: 0 0 18px;
  font-size: 27px;
}
.el-result .el-actions {
  justify-content: flex-start;
}
.el-dismiss-blocks {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.el-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d4dbe6;
  border-radius: 8px;
}
.el-task-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid #d4dbe6;
}
.el-task-list li:last-child {
  border: 0;
}
.el-task-list strong {
  background: #edf0f5;
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
  font-size: 15px;
}
.el-task-list .el-task-doing {
  background: #dcf4e8;
  color: #156740;
}
.el-lifecycle-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.el-lifecycle-actions button {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #aeb9cd;
  font: inherit;
  cursor: pointer;
}
.el-lifecycle-actions button:last-child {
  color: #b61934;
  border-color: #dba5af;
}
.el-employment-readonly {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.el-employment-readonly strong {
  font-weight: 600;
}
.el-employment-readonly small {
  color: #59667a;
  font-size: 14px;
}
@media (max-width: 650px) {
  .el-panel {
    padding: 18px 14px;
    border-radius: 10px;
  }
  .el-heading h1 {
    font-size: 28px;
  }
  .el-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .el-block {
    padding: 16px;
  }
  .el-block h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .el-field input,
  .el-field select,
  .el-field textarea {
    min-height: 48px;
  }
  .el-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .el-actions button,
  .el-actions a {
    width: 100%;
    text-align: center;
    min-height: 54px;
    font-size: 19px;
  }
  .el-result .el-actions {
    flex-direction: column;
  }
  .el-task-list li {
    align-items: center;
  }
  .el-task-list li > span {
    overflow-wrap: anywhere;
  }
  .el-facts {
    grid-template-columns: 1fr;
  }
  .el-facts dd {
    margin-top: -10px;
  }
  .el-heading p {
    font-size: 15px;
  }
  .el-lifecycle-actions {
    flex-direction: column;
  }
}
.el-block--compact > summary {
  cursor: pointer;
  list-style: none;
}
.el-block--compact > summary::-webkit-details-marker {
  display: none;
}
.el-block--compact > summary h2 {
  margin: 0;
  font-size: 21px;
}
.el-block--compact > summary small {
  display: block;
  color: #59667a;
  font-size: 15px;
  margin: 8px 0 0 44px;
}
.el-block--compact[open] > summary {
  margin-bottom: 18px;
}
.el-block--compact > summary::after {
  content: "\2304";
  float: right;
  color: #1235e6;
}
.el-block--compact[open] > summary::after {
  content: "\2303";
}
.el-error .el-access-back {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
}
.el-panel {
  max-width: 960px;
  padding: 22px;
  font-size: 16px;
  border-radius: 12px;
}
.el-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.el-heading h1 {
  grid-column: 2;
  font-size: 28px;
  margin: 0;
}
.el-heading p {
  grid-column: 2;
  font-size: 14px;
  margin: 0;
}
.el-back {
  grid-row: 1/3;
  min-width: 40px;
  min-height: 44px;
  padding: 0;
  font-size: 30px !important;
}
.el-grid {
  gap: 12px 0;
}
.el-block {
  border: 0;
  border-radius: 0;
  padding: 0 18px 12px 0;
}
.el-grid > .el-block:first-child {
  border-right: 1px solid #dce1eb;
}
.el-grid > .el-block:nth-child(2) {
  padding: 0 0 12px 18px;
}
.el-grid > .el-block:nth-child(n+3) {
  grid-column: 1/-1;
  border-top: 1px solid #dce1eb;
  padding: 0;
}
.el-block h2 {
  font-size: 19px;
  gap: 10px;
  margin: 0 0 12px;
}
.el-block h2 > span {
  min-width: 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 16px;
}
.el-field {
  font-size: 14px;
  gap: 6px;
  margin: 10px 0;
}
.el-field input,
.el-field select,
.el-field textarea {
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
  padding: 9px 11px;
  border-radius: 7px;
}
.el-field textarea {
  height: 64px;
  min-height: 60px;
}
.el-field small {
  font-size: 12px;
  font-weight: 400;
  color: #596477;
}
.el-kind {
  border-bottom: 1px solid #dce1eb;
  margin: 0 0 10px;
}
.el-kind > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  font-size: 16px;
  list-style: none;
}
.el-kind > summary::-webkit-details-marker {
  display: none;
}
.el-kind > summary::after {
  content: "\2304";
  color: #1235e6;
  font-size: 21px;
}
.el-kind[open] > summary::after {
  content: "\2303";
}
.el-check {
  font-size: 14px;
  min-height: 44px;
}
.el-facts {
  font-size: 14px;
  gap: 10px;
}
.el-facts dd {
  font-size: 14px;
}
.el-note {
  font-size: 13px;
  margin: 8px 0;
}
.el-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #dce1eb;
  background: #fff;
}
.el-actions > button {
  width: 100%;
  min-height: 50px;
  font-size: 18px;
}
.el-review {
  background: #fff;
  border-color: #b8c7ef;
  padding: 14px;
  font-size: 15px;
}
.el-review h2 {
  font-size: 20px;
}
.el-review button {
  width: 100%;
  font-size: 18px;
  min-height: 48px;
}
.el-error {
  padding: 12px;
  font-size: 14px;
}
.el-error button {
  min-height: 44px;
  font-size: 15px;
}
.el-result {
  padding: 18px;
}
.el-result h2 {
  font-size: 25px;
}
.el-result .el-actions a {
  font-size: 15px;
  min-height: 44px;
  color: #1235e6;
}
.el-dismiss-blocks {
  gap: 14px;
  margin-top: 14px;
}
.el-dismiss-blocks > .el-block {
  padding: 0 0 12px;
  border-bottom: 1px solid #dce1eb;
}
.el-dismiss-blocks .el-block h2 {
  margin-bottom: 8px;
}
.el-dismiss-blocks .el-block > strong {
  font-size: 16px;
}
.el-work-count {
  font-size: 16px;
  margin: 8px 0;
  font-weight: 600;
}
.el-task-disclosure > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #1235e6;
  cursor: pointer;
}
.el-task-list li {
  font-size: 14px;
  padding: 10px;
}
.el-task-list strong {
  font-size: 12px;
  align-self: start;
  padding: 3px 7px;
}
.el-block--compact > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 0;
}
.el-block--compact > summary h2 {
  font-size: 18px;
  margin: 0;
}
.el-block--compact > summary small {
  margin: 0;
  font-size: 14px;
}
.el-block--compact > summary::after {
  float: none;
  font-size: 21px;
}
.el-block--compact[open] > summary {
  margin-bottom: 8px;
}
.el-block--compact[open] {
  padding-bottom: 12px !important;
}
.el-panel :is(summary, button, a, input, select, textarea):focus-visible {
  outline: 3px solid #1235e6;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .el-panel {
    padding: 14px;
  }
  .el-heading {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 3px 7px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }
  .el-heading h1 {
    font-size: 23px;
  }
  .el-heading p {
    font-size: 12px;
  }
  .el-back {
    min-width: 30px;
    font-size: 28px !important;
  }
  .el-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .el-block,
  .el-grid > .el-block:nth-child(2) {
    padding: 0 0 10px;
  }
  .el-grid > .el-block:first-child {
    border-right: 0;
    border-bottom: 1px solid #dce1eb;
  }
  .el-grid > .el-block:nth-child(n+3) {
    grid-column: auto;
  }
  .el-block h2 {
    font-size: 17px;
    gap: 8px;
    margin-bottom: 8px;
  }
  .el-block h2 > span {
    min-width: 23px;
    width: 23px;
    height: 23px;
    font-size: 15px;
  }
  .el-field {
    font-size: 13px;
    margin: 8px 0;
    gap: 5px;
  }
  .el-field input,
  .el-field select {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 16px;
  }
  .el-field textarea {
    height: 60px;
    min-height: 58px;
    padding: 8px 10px;
    font-size: 16px;
  }
  .el-kind {
    margin-bottom: 8px;
  }
  .el-kind > summary {
    font-size: 15px;
  }
  .el-block--compact > summary {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 2px 8px;
    min-height: 56px;
    padding: 8px 0;
  }
  .el-block--compact > summary h2 {
    font-size: 17px;
  }
  .el-block--compact > summary small {
    grid-column: 1;
    margin-left: 31px;
    font-size: 12px;
  }
  .el-block--compact > summary::after {
    grid-column: 2;
    grid-row: 1/3;
  }
  .el-actions {
    margin-top: 10px;
    padding-top: 10px;
    gap: 8px;
  }
  .el-actions button {
    font-size: 18px;
    min-height: 50px;
  }
  .el-dismiss-blocks {
    gap: 10px;
    margin-top: 10px;
  }
  .el-dismiss-blocks .el-grid {
    grid-template-columns: 1fr;
  }
  .el-task-list li {
    font-size: 13px;
  }
  .el-work-count {
    font-size: 15px;
  }
  .el-result h2 {
    font-size: 23px;
  }
}
.roles-accounts-settings:has(> .el-panel) > .ui-page-heading,
.roles-accounts-settings:has(> .el-panel) > .ui-section-tabs {
  display: none;
}
.el-panel {
  line-height: 1.35;
}
.el-panel .el-heading {
  grid-template-columns: 40px minmax(0, 1fr) 44px;
}
.el-panel .el-heading h1 {
  line-height: 1.2;
}
.el-panel .el-heading.ir-feedback-heading-host {
  padding-right: 0;
}
.el-panel .el-heading > .ir-feedback-heading-control {
  position: static !important;
  inset: auto !important;
  grid-column: 3;
  grid-row: 1/3;
  margin: 0 !important;
}
.el-panel .el-heading .ir-feedback-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid #b3212a !important;
  border-radius: 50% !important;
  background: #fff !important;
  font-size: 0 !important;
  color: #b3212a !important;
}
.el-panel .el-heading .ir-feedback-button::after {
  content: "!";
  font: 700 21px Arial, sans-serif;
}
.el-panel:has(.el-heading .ir-feedback-control) form > .ir-feedback-control {
  display: none;
}
.el-panel .el-actions > button {
  padding: 10px 16px;
  line-height: 1.2;
}
.el-panel .el-field input,
.el-panel .el-field select,
.el-panel .el-field textarea {
  line-height: 1.35;
}
@media (max-width: 650px) {
  .el-panel .el-heading {
    grid-template-columns: 30px minmax(0, 1fr) 44px;
  }
  .el-panel .el-heading h1 {
    font-size: 22px;
  }
  .el-panel .el-heading p {
    font-size: 12px;
  }
  .el-panel .el-heading .ir-feedback-button {
    width: 44px !important;
    height: 44px !important;
  }
}
.roles-accounts-settings:has(> .el-panel) {
  position: relative;
}
.roles-accounts-settings:has(> .el-panel) > .ui-page-heading {
  display: contents;
}
.roles-accounts-settings:has(> .el-panel) > .ui-page-heading > :not(.ir-feedback-control) {
  display: none;
}
.roles-accounts-settings:has(> .el-panel) > .ui-page-heading > .ir-feedback-control {
  display: block !important;
  position: absolute !important;
  top: 36px !important;
  right: 38px !important;
  inset-inline-end: 38px;
  margin: 0 !important;
  z-index: 1;
}
.roles-accounts-settings:has(> .el-panel) > .ui-page-heading .ir-feedback-button {
  display: grid;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid #b3212a !important;
  border-radius: 50% !important;
  background: #fff !important;
  font-size: 0 !important;
  color: #b3212a !important;
}
.roles-accounts-settings:has(> .el-panel) > .ui-page-heading .ir-feedback-button::after {
  content: "!";
  font: 700 21px Arial, sans-serif;
}
.el-panel form > .ir-feedback-control {
  display: none;
}
@media (max-width: 650px) {
  .roles-accounts-settings:has(> .el-panel) > .ui-page-heading > .ir-feedback-control {
    top: 32px !important;
    right: 27px !important;
    inset-inline-end: 27px;
  }
  .el-panel .el-heading {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}
@media (min-width: 651px) {
  .roles-accounts-settings:has(> .el-panel) > .ui-page-heading > .ir-feedback-control {
    right: max(38px, calc((100% - 960px)/2 + 22px)) !important;
    inset-inline-end: max(38px, calc((100% - 960px)/2 + 22px));
  }
}
@media (max-width: 650px) {
  .el-panel--dismiss .el-heading h1 {
    font-size: 20px;
  }
  .el-panel--dismiss .el-dismiss-blocks {
    gap: 8px;
  }
  .el-panel--dismiss .el-dismiss-blocks > .el-block {
    padding-bottom: 6px;
  }
  .el-panel--dismiss .el-dismiss-blocks > .el-grid .el-field {
    margin: 4px 0;
  }
}
.el-panel--hire .el-contact-pair,
.el-panel--hire .el-person-photo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}
.el-panel--hire .el-person-photo {
  grid-template-columns: minmax(0, 1fr) auto;
}
.el-panel--hire .el-field {
  min-width: 0;
}
.el-panel--hire .employee-photo {
  display: flex;
  align-items: center;
  gap: 4px;
}
.el-panel--hire .employee-photo img {
  width: 36px;
  height: 36px;
}
.el-panel--hire .employee-photo button {
  min-height: 44px;
  max-width: 105px;
  border: 1px solid #abb8ca;
  border-radius: 6px;
  background: white;
  color: #214ba4;
  font-weight: 650;
}
@media (max-width: 650px) {
  .el-panel--hire .el-contact-pair .el-field,
  .el-panel--hire .el-person-photo .el-field {
    margin: 0;
  }
  .el-panel--hire .el-field input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .el-panel--hire .employee-photo img {
    width: 26px;
    height: 26px;
  }
}
.el-hire-kind {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.el-hire-kind button {
  padding: 4px;
  min-height: 44px;
  background: white;
  border: 1px solid #c5d0df;
  border-radius: 6px;
  font-weight: 650;
}
.el-hire-kind button[aria-pressed=true] {
  background: #ffcb05;
  color: #151515;
  border-color: #ffcb05;
}
.el-panel--hire .el-heading {
  grid-template-columns: minmax(0, 1fr) auto 44px;
}
.el-panel--hire .el-heading h1 {
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}
.el-panel--hire .el-heading .el-back {
  width: auto;
  justify-self: start;
  font-size: 14px;
  font-weight: 650;
}
.el-panel.el-panel--hire .el-heading .el-back {
  font: 650 13px/1.2 Arial, sans-serif !important;
  white-space: nowrap;
  min-width: 0;
  padding: 0 4px;
  line-height: 1.2;
}
.el-panel.el-panel--hire .el-heading {
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 4px;
}
.el-panel.el-panel--hire .el-step-heading {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
  margin: 8px 0;
}
.el-panel.el-panel--hire .el-summary {
  display: block;
  margin: 8px 0;
}
.el-panel.el-panel--hire .el-summary > div {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border-top: 1px solid #d6deea;
  padding: 7px 0;
}
.el-panel.el-panel--hire .el-summary dt,
.el-panel.el-panel--hire .el-summary dd {
  font: 400 14px/1.3 Arial, sans-serif;
  margin: 0;
  overflow-wrap: anywhere;
}
.el-panel.el-panel--hire .el-summary dd {
  font-weight: 650;
}
.el-panel.el-panel--hire .el-step > .employee-photo button,
.el-panel.el-panel--hire .el-step-action {
  width: 100%;
  max-width: none;
  min-height: 44px;
  font-weight: 650;
}
.el-hire-receipt {
  padding: 10px 12px;
  border-radius: 6px;
  background: #e8f4ec;
  color: #155a41;
  display: grid;
  gap: 4px;
}
.el-panel.el-panel--hire .el-note {
  margin: 12px 0;
  font-size: 14px;
}
.el-panel.el-panel--hire .el-step-person {
  font-weight: 650;
  margin: 6px 0;
}
@media (min-width: 651px) {
  .el-panel.el-panel--hire {
    max-width: 720px;
  }
}
@media (max-width: 650px) {
  .el-panel.el-panel--hire {
    padding: 10px;
    margin: 0 auto;
  }
  .el-panel.el-panel--hire .el-field > span {
    font-size: 13px;
  }
  .el-panel.el-panel--hire .el-hire-kind button {
    font-size: 13px;
  }
  .el-panel.el-panel--hire .el-form {
    gap: 6px;
  }
  .el-panel.el-panel--hire .el-summary dt,
  .el-panel.el-panel--hire .el-summary dd {
    font-size: 13px;
  }
}
@media (min-width: 651px) {
  .roles-accounts-settings:has(> .el-panel--hire) > .ui-page-heading > .ir-feedback-control {
    right: max(38px, calc((100% - 720px)/2 + 22px)) !important;
    inset-inline-end: max(38px, calc((100% - 720px)/2 + 22px));
  }
}
.el-panel.el-panel--hire .el-person-photo .employee-photo button {
  font: 650 13px/1.2 Arial, sans-serif;
  padding: 4px 6px;
}
.ed-layout {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: 18px;
  align-items: start;
}
.ed-group {
  border: 0;
  min-width: 0;
  margin: 0 0 8px;
  padding: 0;
}
.ed-group legend {
  font-weight: 650;
  font-size: 13px;
  padding: 0;
  margin-bottom: 4px;
}
.ed-option {
  display: grid;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 10px;
  margin-bottom: 4px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  cursor: pointer;
}
.ed-option img {
  width: 18px;
  height: 18px;
}
.ed-option strong,
.ed-option small {
  display: block;
  line-height: 1.2;
}
.ed-option strong {
  font-size: 14px;
}
.ed-option small {
  font-size: 12px;
}
.ed-option input[type=radio] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #795400;
}
.ed-option:has(input:checked) {
  background: #fff3c6;
  border-color: #bc8a15;
}
.ed-fields {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #f3f4f6;
  margin-top: 20px;
}
.ed-fields .el-field {
  min-width: 0;
  margin: 0;
}
.ed-fields .el-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ed-fields .ed-note {
  font-size: 13px;
  line-height: 1.25;
  margin: 0;
}
.ed-fields .el-primary {
  width: 100%;
}
@media (max-width: 650px) {
  .ed-layout {
    display: block;
  }
  .ed-group {
    margin: 0;
  }
  .ed-group legend {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .ed-option {
    min-height: 37px;
    box-sizing: border-box;
    padding: 3px 6px;
    gap: 5px;
  }
  .ed-option strong,
  .ed-option small {
    font-size: 12px;
  }
  .ed-fields {
    background: none;
    border: 0;
    padding: 0;
    margin: 6px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
  }
  .ed-fields .el-field:has(input[aria-label="\417\430\44f\432\43b\435\43d\438\435  \43e\442"]) {
    grid-row: 2;
  }
  .ed-fields .el-field:has(input[aria-label="\414\430\442\430  \443\432\43e\43b\44c\43d\435\43d\438\44f"]) {
    grid-column: 2;
    grid-row: 1;
  }
  .ed-fields .el-field > span {
    font-size: 12px;
    line-height: 1.2;
  }
  .ed-fields .el-field input {
    min-height: 38px;
    height: 38px;
    padding: 4px;
  }
  .ed-fields .ed-note,
  .ed-fields .el-primary {
    grid-column: 1/-1;
  }
}
.el-panel.el-panel--dismiss:has(.ed-layout) {
  max-width: 720px;
}
.el-panel.el-panel--dismiss:has(.ed-layout) .el-heading {
  grid-template-columns: 1fr auto 44px;
  align-items: center;
}
.el-panel.el-panel--dismiss:has(.ed-layout) .el-back {
  width: auto;
  justify-self: start;
  padding: 0 4px;
  font: 650 13px/1.2 Arial, sans-serif !important;
}
.el-panel.el-panel--dismiss:has(.ed-layout) .el-heading h1 {
  font: 400 13px/1.2 Arial, sans-serif;
}
.el-panel.el-panel--dismiss:has(.ed-layout) .el-step-heading {
  font-size: clamp(20px, 3vw, 28px);
  margin: 8px 0;
}
@media (min-width: 651px) {
  .roles-accounts-settings:has(> .el-panel .ed-layout) > .ui-page-heading > .ir-feedback-control {
    right: max(38px, calc((100% - 720px)/2 + 22px)) !important;
    inset-inline-end: max(38px, calc((100% - 720px)/2 + 22px));
  }
}
.dismiss-review {
  max-width: 712px;
  width: 100%;
  min-width: 0;
  margin: 0 auto 16px;
  box-sizing: border-box;
}
.dismiss-review-card {
  background: #fff;
  color: #152435;
  border: 1px solid #d5deeb;
  border-radius: 14px;
  padding: 16px 24px;
  overflow-wrap: anywhere;
}
.dismiss-review-card h2,
.dismiss-review-card h3 {
  margin: 8px 0;
  line-height: 1.15;
}
.dismiss-review-card dl {
  margin: 10px 0;
}
.dismiss-review-card dt {
  color: #52627b;
  font-size: 14px;
}
.dismiss-review-card dd {
  margin: 0;
  font-weight: 700;
}
.dismiss-review-status {
  text-align: right;
  color: #52627b;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d5deeb;
}
.dismiss-review-identity {
  display: grid;
  gap: 2px;
}
.dismiss-review-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.dismiss-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 5px 8px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
}
.dismiss-metric:first-child {
  background: #fff1b7;
  border-color: #eed67a;
}
.dismiss-metric[data-tone=good] {
  background: #eaf7ef;
  color: #12623e;
  border-color: #b4d6c3;
}
.dismiss-metric[data-tone=warn] {
  background: #fff0ed;
  color: #962e26;
  border-color: #edb6af;
}
.dismiss-review-facts > div {
  display: grid;
  grid-template-columns: minmax(80px, .72fr) 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #d5deeb;
}
.dismiss-review-card button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  background: white;
  color: #152435;
  font-weight: 700;
  cursor: pointer;
}
.dismiss-review-card button.dismiss-primary {
  background: #ffcb05;
  border-color: #ffcb05;
}
.dismiss-review-card > button {
  width: 100%;
}
.dismiss-review-card dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  border: 1px solid #d5deeb;
  border-radius: 12px;
  padding: 14px;
}
.dismiss-review-card dialog::backdrop {
  background: #16243566;
}
.dismiss-review-card dialog > button {
  float: right;
  min-width: 42px;
}
.dismiss-review-card textarea {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #aebdd4;
  border-radius: 6px;
}
.dismiss-review-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
}
@media (max-width: 640px) {
  .dismiss-review-card {
    padding: 10px;
  }
  .dismiss-review-card h2 {
    font-size: 20px;
  }
  .dismiss-review-metrics {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .dismiss-metric {
    min-height: 33px;
  }
  .dismiss-review-facts > div {
    grid-template-columns: minmax(78px, .46fr) 1fr;
  }
  .dismiss-review-actions {
    grid-template-columns: 1fr 1fr;
  }
  .dismiss-review-actions > button:first-child {
    grid-column: 1/-1;
  }
}
.dismiss-review-card .dismiss-review-actions button:not(.dismiss-primary) {
  background: #fff !important;
  color: #152435;
  border: 1px solid #d5deeb;
}
.dismiss-review-card .dismiss-metric dd {
  white-space: nowrap;
}
.dismiss-review-card dialog h3 {
  font-size: 20px;
}
.receipt-allocation.ra-allocation-step .ra-line > .ra-part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px;
  padding: 4px 0;
  border: 0;
}
.receipt-allocation.ra-allocation-step .ra-part-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, 26%);
  gap: 6px;
  align-items: end;
}
.receipt-allocation.ra-allocation-step .ra-part-top label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.receipt-allocation.ra-allocation-step .ra-part + .ra-part .ra-part-top label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.receipt-allocation.ra-allocation-step .ra-part-top select,
.receipt-allocation.ra-allocation-step .ra-part-top input {
  width: 100%;
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  font-size: 15px;
}
.receipt-allocation.ra-allocation-step .ra-remove {
  width: 28px;
  min-width: 28px;
  height: 40px;
  padding: 0;
  border: 0;
}
.receipt-allocation.ra-allocation-step .ra-quantity input {
  padding: 4px 6px !important;
  font-size: 15px !important;
}
.receipt-allocation.ra-allocation-step .ra-quantity > span {
  display: none;
}
.pw-receipt:has(.ra-allocation-step) .pw-review-footer .pw-actions > button[type=submit] {
  grid-column: 1 / -1;
  grid-row: auto;
  width: 100%;
  justify-self: stretch;
}
.receipt-allocation.ra-allocation-step .ra-summary-strip,
.receipt-allocation.ra-allocation-step .ra-distribution-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
}
.receipt-allocation.ra-allocation-step .ra-summary-strip {
  background: #f0f2f4;
  border-radius: .4rem;
  padding: .5rem;
}
.receipt-allocation.ra-allocation-step .ra-summary-strip .ra-total {
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: right;
  max-width: 10em;
}
.receipt-allocation.ra-allocation-step .ra-distribution-actions > details[open] {
  grid-column: 1 / -1;
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) {
  display: flex;
  flex-direction: column;
  max-width: 570px;
  min-height: min(520px, calc(100dvh - 36px));
  padding: 18px 24px 14px;
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-place {
  font-size: 18px;
  font-weight: 700;
  color: #142034;
  margin-bottom: 12px;
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-material {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #f3f4f6;
  border: 1px solid #d6deea;
  border-radius: 9px;
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-material h2 {
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.rr-card--receive .rr-amount {
  border-left: 1px solid #ccd5e3;
  padding-left: 10px;
  white-space: nowrap;
}
.rr-card--receive[data-receipt-view=shortage] .rr-shortage {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-actions {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #d6deea;
  display: flex;
  gap: 7px;
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-actions > button {
  flex: 1;
}
@media (max-width: 640px) {
  .rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) {
    padding: 12px;
    min-height: min(520px, calc(100dvh - 24px));
  }
  .rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) h1 {
    font-size: 22px;
  }
  .rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-actions {
    flex-direction: column;
  }
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-amount strong {
  font-size: 24px;
  line-height: 1.2;
}
.rr-card--receive[data-receipt-view=shortage] .rr-shortage {
  border-top: 0;
  padding-top: 0;
}
.rr-card--receive[data-receipt-view=shortage] .rr-shortage label {
  font-size: 14px;
}
.rr-card--receive[data-receipt-view=shortage] .rr-input input {
  font-size: 16px;
  min-height: 44px;
  width: 100%;
}
.rr-card--receive[data-receipt-view=shortage] .rr-input > span {
  display: none;
}
.rr-card--receive[data-receipt-view=shortage] .rr-calculation {
  font-size: 14px;
  font-weight: 400;
}
@media (max-width: 640px) {
  .rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-amount strong {
    font-size: 22px;
  }
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-actions > button {
  min-height: 47px;
  padding: 9px 10px;
  font-size: 15px;
  line-height: 1.25;
}
.rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) .rr-problem {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
}
.receipt-allocation.ra-invoice {
  --ra-material-column: minmax(0, 38%);
  --ra-destination-column: minmax(0, 1fr);
  --ra-quantity-column: minmax(56px, 22%);
  --ra-action-column: 36px;
  margin: 0;
  padding: 0;
}
.ra-invoice .ra-invoice-head,
.ra-invoice .ra-invoice-line {
  display: grid;
  grid-template-columns: var(--ra-material-column) minmax(0, 1fr);
  gap: 8px;
}
.ra-invoice .ra-invoice-head {
  grid-template-columns: var(--ra-material-column) minmax(0, 1fr) minmax(56px, 13%) var(--ra-action-column);
  color: #42536b;
  font-size: 14px;
  padding: 0 0 6px;
}
.ra-invoice-head > span:first-child {
  grid-column: 2;
}
.receipt-allocation.ra-invoice .ra-line,
.receipt-allocation.ra-invoice .ra-line + .ra-line {
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  padding: 7px 0 !important;
  border: 0;
  border-top: 1px solid #d7deea;
  border-radius: 0;
}
.ra-invoice-material {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 2px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.2;
}
.ra-invoice-material > span,
.ra-invoice-total {
  color: #42536b;
  font-size: 14px;
}
.ra-destinations {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.ra-place-row {
  display: grid;
  grid-template-columns: var(--ra-destination-column) var(--ra-quantity-column) var(--ra-action-column);
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.receipt-allocation.ra-invoice .ra-place-row select,
.receipt-allocation.ra-invoice .ra-place-row input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  color: #142034;
  font-size: 15px !important;
}
.receipt-allocation.ra-invoice .ra-line-action {
  width: 36px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #245090;
  font-size: 20px;
  line-height: 1;
}
.ra-invoice-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  padding-top: 6px;
}
.ra-invoice-footer > details[open] {
  grid-column: 1 / -1;
}
.ra-invoice-footer > details {
  margin: 0;
  color: #245090;
}
.ra-invoice-footer summary {
  min-height: 36px;
  padding: 7px 0;
  cursor: pointer;
}
.ra-invoice-footer > p {
  margin: 0;
}
.ra-recipients {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #142034;
}
.ra-recipient-detail {
  padding: 7px 0;
  border-bottom: 1px solid #d7deea;
}
.ra-recipient-detail label {
  display: grid;
  gap: 3px;
  margin: 3px 0 0;
}
.ra-recipient-detail label.ra-self {
  display: flex;
  align-items: center;
}
.ra-invoice .ra-destinations > .ra-error {
  margin: 0;
  font-size: 14px;
}
.pw-receipt:has(.ra-invoice) {
  position: relative;
}
@media (min-width: 641px) {
  .pw-receipt:has(.ra-invoice) {
    max-width: 570px !important;
    margin-inline: auto !important;
  }
}
.pw-receipt:has(.ra-invoice) > .ir-feedback-receipt-step {
  position: absolute;
  inset: 5px 12px auto auto;
  float: none;
  margin: 0;
}
.pw-receipt:has(.ra-invoice) > .ir-feedback-receipt-step .ir-feedback-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  font-size: 0;
  color: #be1717;
}
.pw-receipt:has(.ra-invoice) > .ir-feedback-receipt-step .ir-feedback-button::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}
.pw-receipt:has(.ra-invoice) .pw-review-storage {
  padding-top: 0;
  margin-top: 0;
}
.pw-receipt:has(.ra-invoice) > .pw-breadcrumb:first-of-type {
  display: none;
}
.pw-receipt:has(.ra-invoice) > h1 + .pw-breadcrumb::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  background:
    linear-gradient(
      to right,
      #17634f 0 65%,
      transparent 65% 67%,
      #ffc400 67% 100%);
}
.pw-receipt:has(.ra-invoice) .pw-review-footer:has(button[type=submit]:not(:disabled)) > p:not(:has(button)) {
  padding: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}
.pw-receipt:has(.ra-invoice) .pw-review-footer {
  margin-top: 4px;
  padding-top: 8px;
  gap: 0;
}
@media (max-width: 640px) {
  .receipt-allocation.ra-invoice {
    --ra-quantity-column: minmax(58px, 24%);
    --ra-action-column: 32px ;
  }
  .ra-invoice .ra-invoice-head,
  .ra-invoice .ra-invoice-line {
    grid-template-columns: minmax(0, 1fr);
  }
  .ra-invoice .ra-invoice-head {
    grid-template-columns: var(--ra-destination-column) var(--ra-quantity-column) var(--ra-action-column);
    gap: 6px;
  }
  .ra-invoice-head > span:first-child {
    grid-column: 1;
  }
  .ra-invoice .ra-invoice-line {
    gap: 5px;
  }
  .ra-invoice-material {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 6px;
  }
  .ra-invoice-material > span {
    white-space: nowrap;
  }
  .receipt-allocation.ra-invoice .ra-line,
  .receipt-allocation.ra-invoice .ra-line + .ra-line {
    padding: 5px 0 !important;
  }
  .receipt-allocation.ra-invoice .ra-place-row :is(select, input, button) {
    height: 38px;
    min-height: 38px;
  }
  .receipt-allocation.ra-invoice .ra-line-action {
    width: 32px;
  }
  .pw-receipt:has(.ra-invoice) > h1 {
    margin-top: 5px;
    margin-bottom: 7px;
    font-size: 23px;
  }
  .pw-receipt:has(.ra-invoice) > h1 + .pw-breadcrumb {
    margin-bottom: 3px;
  }
  .pw-receipt:has(.ra-invoice) .pw-review-footer {
    margin-top: 0;
  }
}
@media (max-width: 640px) and (max-height: 620px) {
  body:has(.rr-card) :is(.navigation-content, .mobile-task-shell, .ui-page):has(.rr-card) {
    min-height: 0;
    padding-bottom: 0;
  }
  body:has(.rr-card .rr-problem) .ir-feedback-control {
    display: none;
  }
  .rr-card[data-receipt-view] {
    padding: 10px 13px;
  }
  .rr-card--receive:is([data-receipt-view=initial], [data-receipt-view=shortage]) {
    min-height: calc(100dvh - 128px);
  }
  .rr-card[data-receipt-view] .rr-header {
    margin-bottom: 8px;
    padding-bottom: 4px;
  }
  .rr-card[data-receipt-view] h1 {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .rr-card[data-receipt-view] .rr-place {
    font-size: 16px;
  }
  .rr-card[data-receipt-view] .rr-material {
    margin: 8px 0;
  }
  .rr-card[data-receipt-view] .rr-material h2 {
    font-size: 19px;
  }
  .rr-card--remainder[data-receipt-view] .rr-actions {
    gap: 6px;
    margin-top: 8px;
  }
  .rr-card[data-receipt-view] .rr-actions button {
    min-height: 46px;
    padding: 8px 12px;
    font-size: 17px;
  }
  .rr-card--remainder[data-receipt-view] .rr-facts {
    padding-bottom: 8px;
  }
  .rr-card--remainder[data-receipt-view] .rr-facts dt {
    margin-bottom: 4px;
  }
  .rr-card--remainder[data-receipt-view] .rr-facts dd {
    font-size: 20px;
  }
  .rr-card--remainder[data-receipt-view] .rr-remainder {
    padding-top: 8px;
  }
  .rr-card--remainder[data-receipt-view] .rr-remainder label {
    margin-bottom: 5px;
    font-size: 17px;
  }
  .rr-card--remainder[data-receipt-view] .rr-input input {
    min-height: 46px;
    font-size: 22px;
  }
  .rr-card--remainder[data-receipt-view] .rr-preview {
    margin-top: 6px;
  }
  .rr-card--remainder[data-receipt-view] .rr-preview p {
    font-size: 15px;
    line-height: 1.3;
  }
  .rr-card--remainder[data-receipt-view] .rr-remainder .rr-hint {
    margin-top: 6px;
  }
}
.personal-work-compact {
  max-width: 1200px;
  margin: 14px 16px;
  padding: 22px 26px 28px;
  border: 1px solid #c6cbd6;
  border-radius: 18px;
  background: #fff;
  color: #14171c;
  font-family: Arial, sans-serif;
  min-width: 0;
}
.personal-work-heading {
  position: relative;
  padding-right: 48px;
  margin-bottom: 22px;
}
.personal-work-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #064cd4;
  text-decoration: none;
  font-size: 20px;
}
.personal-work-heading h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 17px 0 0;
  font-weight: 700;
}
.personal-work-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.personal-work-toolbar select {
  height: 46px;
  min-width: 180px;
  max-width: 270px;
  border: 1px solid #aeb6c6;
  border-radius: 9px;
  background: #fff;
  padding: 8px 12px;
  font: 18px Arial, sans-serif;
  color: inherit;
}
.personal-work-toolbar a,
.personal-work-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #064cd4;
  font-size: 18px;
  text-decoration: none;
}
.personal-work-summary {
  margin: 16px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #d1d5df;
  line-height: 1.4;
  font-size: 18px;
}
.personal-work-group {
  margin-top: 18px;
}
.personal-work-group h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 700;
}
.personal-work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.personal-work-task {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border: 1px solid #c6cbd6;
  border-radius: 10px;
  background: #fff;
  color: #14171c;
  text-align: start;
  cursor: pointer;
  font: inherit;
}
.personal-work-task[data-state=working] {
  background: #eef4ff;
  border-inline-start: 5px solid #155bc7;
}
.personal-work-task[data-urgent=true] {
  background: #ffeded;
  border-inline-start: 5px solid #cc2936;
}
.personal-work-product {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.personal-work-product strong {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.personal-work-product > span {
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.personal-work-state {
  font-size: 17px;
  line-height: 1.25;
  text-align: end;
  max-width: 40%;
  color: #586075;
}
.personal-work-task[data-state=working] .personal-work-state {
  color: #064cd4;
}
.personal-work-task[data-held=true] .personal-work-state,
.personal-work-task[data-urgent=true] .personal-work-state {
  color: #bb1727;
}
.personal-work-chevron {
  font-size: 30px;
  line-height: 1;
  flex: none;
  margin-inline-start: 8px;
}
.personal-work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 26px;
}
.personal-work-message {
  font-size: 18px;
  line-height: 1.4;
  margin: 24px 0;
}
.personal-work-search {
  margin-top: 12px;
  color: #586075;
  font-size: 15px;
}
.personal-work-search summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
.personal-work-search summary::before {
  content: "\2315";
  font-size: 23px;
  margin-inline-end: 8px;
}
.personal-work-search input {
  width: 100%;
  max-width: 480px;
  min-height: 46px;
  margin: 6px 0;
  border: 1px solid #aeb6c6;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: #14171c;
  font: 17px Arial, sans-serif;
}
.personal-work-compact :is(a, button, select, input, summary):focus-visible {
  outline: 3px solid #064cd4;
  outline-offset: 3px;
}
.personal-work-heading .ir-feedback-heading-control,
.personal-work-heading .ir-feedback-in-actions {
  position: absolute !important;
  right: 0;
  top: 2px;
  margin: 0 !important;
}
.personal-work-heading .ir-feedback-button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 2px solid #c21d2d !important;
  border-radius: 50% !important;
  background: #fff !important;
  font-size: 0 !important;
  color: #c21d2d !important;
}
.personal-work-heading .ir-feedback-button::after {
  content: "!";
  font: 700 22px Arial, sans-serif;
}
.personal-work-heading .ir-feedback-button:focus-visible {
  outline: 3px solid #064cd4;
  outline-offset: 3px;
}
body:has(.personal-work-compact) .platform-phone-header {
  display: none;
}
@media (max-width: 600px) {
  .personal-work-compact {
    margin: 8px;
    padding: 14px 16px 20px;
    border-radius: 16px;
  }
  .personal-work-heading {
    margin-bottom: 18px;
  }
  .personal-work-back {
    font-size: 18px;
  }
  .personal-work-heading h1 {
    font-size: 28px;
    margin-top: 16px;
  }
  .personal-work-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .personal-work-toolbar select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
    height: 44px;
    padding-inline: 8px;
  }
  .personal-work-toolbar a {
    font-size: 15px;
    white-space: nowrap;
  }
  .personal-work-summary {
    font-size: 16px;
    padding-bottom: 16px;
    margin-top: 14px;
  }
  .personal-work-group {
    margin-top: 16px;
  }
  .personal-work-group h2 {
    font-size: 19px;
    margin-bottom: 10px;
  }
  .personal-work-task {
    min-height: 72px;
    gap: 8px;
    padding: 10px 12px;
  }
  .personal-work-product {
    gap: 4px;
  }
  .personal-work-product strong {
    font-size: 18px;
  }
  .personal-work-product > span {
    font-size: 15px;
  }
  .personal-work-state {
    font-size: 15px;
    max-width: 43%;
  }
  .personal-work-chevron {
    font-size: 26px;
    margin-inline-start: 0;
  }
  .personal-work-links {
    gap: 0 22px;
    margin-top: 18px;
  }
  .personal-work-links a {
    font-size: 17px;
  }
  .personal-work-search {
    margin-top: 4px;
  }
  .personal-work-heading .ir-feedback-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
  .personal-work-message {
    font-size: 16px;
  }
}
.personal-work-compact {
  max-width: 1000px;
  margin: 20px auto;
  padding: 24px 28px;
  border-radius: 12px;
  box-sizing: border-box;
}
.personal-work-compact .personal-work-heading {
  margin-bottom: 16px;
}
.personal-work-compact .personal-work-back {
  font-size: 17px;
}
.personal-work-compact .personal-work-heading h1 {
  font-size: 32px;
  margin-top: 8px;
}
.personal-work-compact .personal-work-toolbar select {
  max-width: 330px;
  font-size: 16px;
}
.personal-work-compact .personal-work-toolbar a {
  font-size: 16px;
}
.personal-work-compact .personal-work-summary {
  font-size: 15px;
  margin-top: 12px;
  padding-bottom: 12px;
  color: #526074;
}
.personal-work-compact .personal-work-group {
  margin-top: 16px;
}
.personal-work-compact .personal-work-group h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin-bottom: 8px;
}
.personal-work-group h2 > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #f0f3f8;
  color: #526074;
  font-size: 13px;
}
.personal-work-compact .personal-work-list {
  gap: 6px;
}
.personal-work-compact .personal-work-task {
  display: flex;
  min-height: 70px;
  padding: 10px 14px;
  gap: 12px;
  border: 1px solid #d7deea;
  border-radius: 9px;
}
.personal-work-compact .personal-work-task[data-state=working] {
  background: #eaf1ff;
  border-color: #a5bdf5;
}
.personal-work-compact .personal-work-task[data-urgent=true] {
  background: #ffe8e9;
  border-color: #efa7af;
}
.personal-work-compact .personal-work-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex: none;
  color: #273a56;
}
.personal-work-shape .pw-finished-shape-icon {
  display: flex;
  width: 36px;
  height: 34px;
}
.personal-work-shape svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.4;
}
.personal-work-compact .personal-work-product {
  gap: 4px;
}
.personal-work-compact .personal-work-product strong {
  font-size: 23px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.personal-work-compact .personal-work-product > span {
  font-size: 14px;
  line-height: 1.25;
  color: #526074;
}
.personal-work-compact .personal-work-state {
  flex: none;
  max-width: 28%;
  font-size: 15px;
  font-weight: 600;
}
.personal-work-compact .personal-work-chevron {
  font-size: 26px;
  margin: 0;
  color: #526074;
}
.personal-work-compact .personal-work-links {
  border-top: 1px solid #d7deea;
  margin-top: 20px;
  padding-top: 8px;
  gap: 0 24px;
}
.personal-work-compact .personal-work-links a {
  font-size: 16px;
}
@media (max-width: 600px) {
  .personal-work-compact {
    margin: 0;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 12px 16px 20px;
  }
  .personal-work-compact .personal-work-heading {
    margin-bottom: 12px;
  }
  .personal-work-compact .personal-work-heading h1 {
    font-size: 28px;
    margin-top: 4px;
  }
  .personal-work-compact .personal-work-back {
    font-size: 16px;
  }
  .personal-work-compact .personal-work-toolbar {
    gap: 12px;
  }
  .personal-work-compact .personal-work-toolbar select {
    font-size: 15px;
  }
  .personal-work-compact .personal-work-group {
    margin-top: 14px;
  }
  .personal-work-compact .personal-work-group h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .personal-work-compact .personal-work-task {
    min-height: 68px;
    padding: 9px 10px;
    gap: 9px;
  }
  .personal-work-compact .personal-work-shape {
    width: 32px;
  }
  .personal-work-shape .pw-finished-shape-icon {
    width: 29px;
    height: 28px;
  }
  .personal-work-compact .personal-work-product strong {
    font-size: 21px;
  }
  .personal-work-compact .personal-work-product > span {
    font-size: 13px;
  }
  .personal-work-compact .personal-work-state {
    font-size: 13px;
    max-width: 25%;
  }
  .personal-work-compact .personal-work-chevron {
    font-size: 24px;
  }
  .personal-work-compact .personal-work-links {
    margin-top: 16px;
  }
  .personal-work-compact .personal-work-links a {
    font-size: 15px;
  }
}
.personal-work-compact .personal-work-heading .ir-feedback-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
body .personal-work-compact :is(.personal-work-back, .personal-work-toolbar a, .personal-work-links a) {
  color: #064cd4 !important;
}
@media (max-height: 720px) {
  .personal-work-compact {
    margin-block: 0;
    min-height: 0;
    padding-block: 8px 12px;
  }
  .personal-work-compact .personal-work-heading {
    margin-bottom: 8px;
  }
  .personal-work-compact .personal-work-heading h1 {
    margin-top: 0;
    font-size: 26px;
  }
  .personal-work-compact .personal-work-summary {
    margin-top: 6px;
    padding-bottom: 6px;
  }
  .personal-work-compact .personal-work-group {
    margin-top: 8px;
  }
  .personal-work-compact .personal-work-group h2 {
    margin-bottom: 4px;
  }
  .personal-work-compact .personal-work-task {
    min-height: 54px;
    padding-block: 6px;
  }
  .personal-work-compact .personal-work-links {
    margin-top: 8px;
    padding-top: 2px;
  }
  .personal-work-compact .personal-work-search {
    margin-top: 0;
  }
}
@media (max-width: 360px) and (max-height: 620px) {
  .personal-work-compact {
    padding: 4px 10px 8px;
  }
  .personal-work-compact .personal-work-heading {
    margin-bottom: 4px;
  }
  .personal-work-compact .personal-work-summary {
    margin-top: 4px;
    padding-bottom: 4px;
  }
  .personal-work-compact .personal-work-group {
    margin-top: 6px;
  }
  .personal-work-compact .personal-work-task {
    gap: 5px;
    padding: 4px 6px;
  }
  .personal-work-compact .personal-work-shape {
    width: 24px;
  }
  .personal-work-compact .personal-work-shape svg {
    width: 24px;
    height: 24px;
  }
  .personal-work-compact .personal-work-product {
    gap: 2px;
  }
  .personal-work-compact .personal-work-product strong {
    font-size: 17px;
  }
  .personal-work-compact .personal-work-product > span {
    font-size: 13px;
    line-height: 1.2;
  }
  .personal-work-compact .personal-work-state {
    max-width: 34%;
  }
  .personal-work-compact .personal-work-chevron {
    margin-inline-start: 3px;
  }
  .personal-work-compact .personal-work-links {
    gap: 0 12px;
    margin-top: 4px;
  }
}
