.workbench-view{display:grid;gap:22px;min-width:0}.workbench-view[hidden]{display:none}.wb-card,.wb-guide-card,.wb-contact-panel{padding:22px;min-width:0}.wb-card h2,.wb-guide-card h2,.wb-contact-panel h3{margin:0 0 12px}.wb-note{font-size:.84rem;line-height:1.65;color:var(--muted);margin:8px 0 16px}.wb-guide-card .wb-note{max-width:85ch}.wb-presets,.wb-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.wb-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:.83rem}.wb-field>span{font-weight:600}.wb-field input,.wb-field select,.wb-field textarea{width:100%;min-width:0;border:1px solid #d6dfd2;border-radius:9px;padding:10px 12px;background:#fff;font:inherit;color:#203d2d;min-height:42px}.wb-field textarea{resize:vertical}.wb-field input:focus,.wb-field select:focus,.wb-field textarea:focus{outline:2px solid #98b68b;outline-offset:1px}.wb-saved-controls{display:flex;gap:16px;flex-wrap:wrap;align-items:end;margin:20px 0}.wb-saved-controls>.wb-field{flex:1;min-width:180px}.wb-check{display:flex;align-items:center;gap:8px;font-size:.82rem}.wb-check input{height:18px;width:18px;accent-color:#4d783b}.wb-feedback{min-height:1.3em;font-size:.83rem;color:#315b3b}.wb-feedback.is-error{color:#a53b31}.wb-saved-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-top:1px solid #e0e8dc}.wb-saved-row>div:first-child{min-width:0;overflow-wrap:anywhere}.wb-saved-row small{display:block;color:var(--muted);font-size:.75rem;margin-top:4px}.wb-saved-row strong{font-size:.9rem}.wb-saved-row .button{font-size:.78rem;padding:8px 12px;min-height:40px}.wb-metric-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:end;gap:14px;margin:20px 0}.wb-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.wb-metric{display:flex;align-items:center;flex-direction:column;text-align:center;gap:10px;background:#f6f9f2;border:1px solid #dce5d7;border-radius:14px;padding:20px 14px;min-width:0}.wb-metric>span{font-size:.8rem;color:var(--muted)}.wb-metric strong{font-size:1.5rem;color:#26442e;overflow-wrap:anywhere}.wb-metric small{font-size:.72rem;color:var(--muted)}.wb-dialog{width:min(580px,calc(100vw - 28px));max-height:90dvh;border:1px solid #d2dec9;border-radius:18px;padding:0;color:var(--ink)}.wb-dialog::backdrop{background:#14251ba6}.wb-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px;border-bottom:1px solid var(--line)}.wb-dialog-head h2{margin:0;font-size:1.15rem}.wb-dialog-body{padding:20px}.wb-form,.wb-contact-form{display:grid;gap:16px}.wb-form>.button{justify-self:end}.wb-contact-row{border-top:1px solid var(--line);padding:13px 0;text-align:left;overflow-wrap:anywhere}.wb-contact-row small{display:block;font-size:.74rem;color:var(--muted);margin-top:4px}.wb-contact-row p{white-space:pre-wrap;margin:8px 0;font-size:.84rem}.wb-pagination{gap:12px;flex-wrap:wrap}.ops-queue-card .stat-description{font-size:.71rem;color:var(--muted)}
@media(max-width:1100px){.wb-metric-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-saved-row{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.wb-card,.wb-guide-card,.wb-contact-panel{padding:18px 14px}.wb-metric-filters{grid-template-columns:1fr}.wb-metrics{gap:10px}.wb-metric{padding:14px 10px}.wb-metric strong{font-size:1.2rem}.wb-presets>.button{width:100%}.wb-saved-controls{align-items:stretch;flex-direction:column}.wb-saved-controls>.wb-field{min-width:0}.wb-form>.button,.wb-contact-submit>.button{width:100%}.wb-dialog-head,.wb-dialog-body{padding:16px}}

/* Personal shortcuts share the page heading; saved views keep the full content width. */
.page-heading.wb-work-heading {
  display: grid;
  /* Leave room for all four translated shortcuts and their action icons. */
  grid-template-columns: minmax(0, 1fr) minmax(0, min(780px, 74%));
  align-items: start;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading.wb-work-heading > :first-child { min-width: 0; }
.wb-quick-card { display: grid; gap: 9px; padding: 20px; text-align: left; }
.wb-quick-card h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; text-align: left; }
.page-heading .wb-quick-card .wb-note { margin: 0; font-size: .86rem; line-height: 1.5; text-align: left; }
.wb-quick-card .wb-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
.wb-quick-card .wb-presets > .button { width: 100%; min-width: 0; min-height: 44px; padding: 9px 8px; font-size: .72rem; line-height: 1.35; white-space: normal; }
.wb-saved-card { display: grid; gap: 14px; }
.wb-saved-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
.wb-saved-heading { min-width: 0; }
.wb-saved-heading > h2 { margin: 0 0 7px; }
.wb-saved-heading > .wb-note { margin: 0; }
.wb-saved-header > .wb-open-lists { justify-content: flex-end; }
.wb-saved-card > .wb-saved-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 18px; align-items: end; margin: 6px 0 0; }
.wb-saved-card .wb-saved-controls > .wb-field { min-width: 0; }
.wb-saved-card .wb-saved-controls .wb-check { min-height: 44px; margin: 0; }
.wb-saved-card .wb-saved-controls input[type="search"],
.wb-saved-card .wb-open-lists > .button { min-height: 44px; }
/* Both refresh controls use the shared button sizing and align to the row bottom. */
.wb-saved-card .wb-saved-controls > .button,
.wb-metric-filters > .button { align-self: end; }
.wb-saved-card > .wb-feedback { min-height: 0; margin: 0; }
.wb-saved-card > .wb-feedback:empty { display: none; }
.wb-saved-list > .wb-note { margin: 4px 0; }
.wb-saved-card > .wb-pagination { margin-top: 0; }
@media(max-width:1300px) {
  .page-heading.wb-work-heading { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .page-heading.wb-work-heading > .wb-quick-card { width: 100%; }
}
@media(max-width:800px) {
  .wb-saved-header { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wb-saved-header > .wb-open-lists { justify-content: flex-start; }
  .wb-saved-card > .wb-saved-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .wb-saved-card .wb-saved-controls > .wb-field { grid-column: 1 / -1; }
  .wb-saved-card .wb-saved-controls .wb-check { overflow-wrap: anywhere; }
}
@media(max-width:650px) {
  .page-heading.wb-work-heading { gap: 18px; margin-bottom: 24px; }
  .wb-quick-card { padding: 16px 14px; }
  .wb-quick-card .wb-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-saved-card { gap: 12px; }
  .wb-saved-card > .wb-saved-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wb-saved-card .wb-open-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-saved-card .wb-open-lists > .button { padding-inline: 10px; white-space: normal; }
}

.wb-contact-form { gap: 14px; margin-block-end: 10px; }
.wb-contact-form .wb-field > textarea { min-height: 7.2rem; }
.wb-contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.wb-contact-submit > .wb-note { margin: 0; }
.wb-contact-submit > .button { margin-inline-start: auto; }
.wb-contact-panel > .wb-feedback { min-height: 0; margin: 0; }
.wb-contact-panel > .wb-feedback:not(:empty) { margin-block-end: 8px; }
.wb-contact-history > .wb-note { margin: 0 0 12px; }

/* Keep contact columns legible; the existing keyboard-focusable table wrapper owns horizontal scroll. */
.ops-table:has(.ops-contact-cell){min-width:1000px}.ops-contact-phone{white-space:nowrap}.ops-contact-email{min-width:170px;overflow-wrap:anywhere}

/* The guide follows available content width, including when the sidebar is open. */
#workbench-view:has(> .wb-guide-card) {
  container: employee-guide / inline-size;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
#workbench-view > .wb-guide-card {
  grid-column: 1 / -1;
  padding: clamp(15px, 1.7vw, 22px) clamp(14px, 1.5vw, 20px);
  text-align: center;
}
#workbench-view > .wb-guide-card h2 {
  max-width: 28ch;
  margin: 0 auto 10px;
  font-size: 1.05rem;
  line-height: 1.4;
  text-align: center;
}
#workbench-view > .wb-guide-card .wb-note {
  max-width: none;
  margin: 0;
  line-height: 1.7;
  text-align: center;
}
@container employee-guide (min-width: 560px) {
  #workbench-view > .wb-guide-card { grid-column: span 6; }
  #workbench-view > .wb-guide-card:nth-child(5):last-child { grid-column: 4 / span 6; }
}
@container employee-guide (min-width: 960px) {
  #workbench-view > .wb-guide-card { grid-column: span 4; }
  #workbench-view > .wb-guide-card:nth-child(4):nth-last-child(2) { grid-column: 3 / span 4; }
  #workbench-view > .wb-guide-card:nth-child(5):last-child { grid-column: 7 / span 4; }
}
.wb-metric > strong.is-text-value{font-size:1rem;font-weight:600;line-height:1.45;max-width:28ch}
/* Only the two handling-metrics dates match the adjacent company selector. */
.wb-metric-filters .wb-field input[type="date"] { height:38px; min-height:38px; margin-top:0; padding-block:8px; }
