:root {
  color-scheme: light;
  --ink: #17221c;
  --muted: #5f6f67;
  --line: #d9e1dc;
  --surface: #ffffff;
  --soft: #f3f7f4;
  --brand: #0d6b3c;
  --brand-dark: #074527;
  --accent: #b77a16;
  --danger: #a82424;
  --radius: 8px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.home-top {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.home-brand {
  color: var(--brand-dark);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.home-brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.beta-badge {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.home-nav a,
.lang-switch button,
button,
.choice {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
}

.home-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.secondary-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  padding: 0 10px;
}

.home-nav a:hover,
.choice:hover,
button:hover,
.secondary-button:hover {
  border-color: var(--brand);
}

button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #eef3ef;
  border-color: var(--line);
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button,
button {
  padding: 0 10px;
  cursor: pointer;
}

.home-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 22px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}

.choice-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.choice-secondary {
  border-color: #c9b48e;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.panel h1 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.section-head h1 {
  margin: 0;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-top h1 {
  margin: 0;
}

.admin-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-heading img {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-actions h1 {
  font-size: 14px;
  font-weight: 400;
}

.session-action-stack {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.session-main-row,
.session-tools-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.session-main-row button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 400;
}

.session-user-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
}

.password-change {
  position: relative;
  display: flex;
  justify-items: end;
}

.account-action-buttons {
  display: flex;
  justify-items: end;
  gap: 6px;
}

.account-panel-toggle {
  min-height: 26px;
  padding: 0 8px;
  border-color: #cddbd2;
  background: #f7faf8;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 400;
}

.account-panel-toggle:hover {
  border-color: #9fc2ae;
  background: #edf6f0;
}

.account-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12000;
  display: grid;
  width: 292px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 41, 31, 0.16);
}

.account-popover[hidden] {
  display: none;
}

.account-popover label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-align: left;
}

.account-popover input,
.account-popover textarea {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 12px;
}

.account-popover textarea {
  min-height: 48px;
  resize: vertical;
}

.account-actions-row {
  justify-content: flex-start;
}

.account-actions-row button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 400;
}

.account-message {
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.totp-panel {
  gap: 9px;
}

.totp-setup-box {
  display: grid;
  gap: 8px;
}

.totp-setup-box[hidden],
.totp-disable-form[hidden] {
  display: none;
}

.totp-qr {
  display: flex;
  justify-content: center;
  min-height: 0;
}

.totp-qr canvas,
.totp-qr img,
.totp-qr svg {
  width: 144px !important;
  height: 144px !important;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-menu button {
  border-color: #b9d4c3;
  background: #f7fbf8;
  color: #315b42;
}

.admin-menu button.active {
  background: #d9f0df;
  border-color: #68ad78;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px #8bc897;
}

.admin-menu button:hover {
  border-color: #68ad78;
  background: #edf8f0;
}

.admin-menu button.active:hover {
  background: #d2ecd9;
}

.admin-section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-section + .admin-section {
  margin-top: 22px;
}

.admin-section h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.25;
}

.report-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 8px;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

label {
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

button[type="submit"],
.section-head button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 400;
}

.danger-button,
button.danger-button {
  background: #fff;
  border-color: #d4aaaa;
  color: var(--danger);
}

.danger-button:hover,
button.danger-button:hover {
  background: #fff5f5;
  border-color: var(--danger);
}

.message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
}

.message.error {
  color: var(--danger);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eef4f0;
  color: var(--brand-dark);
  font-weight: 700;
}

.status-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.status-editor select,
.status-editor button {
  min-height: 30px;
}

.inline-maintenance {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.inline-maintenance label {
  display: grid;
  gap: 3px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
}

.inline-maintenance input {
  min-height: 30px;
  padding: 6px 8px;
}

.estimate-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.estimate-document-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-top: 8px;
}

.estimate-document-controls label {
  display: grid;
  gap: 3px;
  min-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.estimate-document-controls select,
.estimate-document-controls button {
  min-height: 30px;
  padding: 6px 8px;
  font-weight: 400;
}

.estimate-document-controls span {
  font-weight: 400;
}

.estimate-panel h3 {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 400;
}

.estimate-toolbar {
  grid-template-columns: 180px 130px 90px 120px minmax(220px, 1fr) auto;
  min-width: 860px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimate-position-toolbar {
  grid-template-columns: 180px 130px minmax(220px, 1fr) 90px 130px auto;
  min-width: 920px;
  margin: 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimate-generate-toolbar {
  grid-template-columns: minmax(280px, 1fr) auto;
  min-width: 520px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimate-norm-selector {
  margin-bottom: 12px;
}

.estimate-norm-selector.norm-window {
  overflow: visible;
}

.estimate-norm-toolbar {
  grid-template-columns: 160px 160px 160px minmax(180px, 1fr) 100px 76px auto;
  min-width: 0;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimate-norm-list-wrap {
  max-height: 260px;
  border: 0;
  border-radius: 0;
}

.estimate-norm-table {
  min-width: 1040px;
}

.estimate-norm-table tbody tr:nth-child(even),
.estimate-position-table tbody tr:nth-child(even),
.estimate-lines-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.estimate-norm-table tbody tr:nth-child(odd),
.estimate-position-table tbody tr:nth-child(odd),
.estimate-lines-table tbody tr:nth-child(odd) {
  background: #fff;
}

.estimate-norm-table td:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.estimate-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.estimate-summary div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  font-size: 12px;
}

.estimate-summary span {
  color: var(--muted);
}

.estimate-summary strong {
  font-weight: 400;
  color: var(--brand-dark);
}

.estimate-summary .estimate-total {
  background: #eef7f1;
  border-color: #b8d7c4;
}

.estimate-summary .estimate-summary-subtotal,
.estimate-summary .estimate-summary-final {
  background: #f0f8f3;
  border-color: #c3dbc9;
}

.estimate-summary .estimate-summary-separator {
  grid-column: 1 / -1;
  min-height: 1px;
  padding: 0;
  border: 0;
  border-top: 1px solid #a8beb1;
  background: transparent;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  width: auto;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

.inline-check input[type="checkbox"] {
  width: auto;
  min-width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border-radius: 2px;
}

.compact-check {
  min-height: 24px;
  padding: 0 6px;
  font-size: 11px;
}

.estimate-lines-table {
  min-width: 1260px;
}

.estimate-positions-wrap {
  margin-top: 8px;
}

.estimate-position-table {
  min-width: 980px;
}

.estimate-position-table input,
.estimate-resource-table input,
.estimate-resource-table select {
  min-height: 30px;
  padding: 7px 8px;
  font-size: 12px;
}

.estimate-position-detail {
  margin-top: 12px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.estimate-resource-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.estimate-resource-toolbar .norm-tabs {
  flex: 1;
  border-top: 0;
}

.estimate-resource-toolbar > button {
  min-height: 30px;
  margin-top: 12px;
  padding: 0 10px;
}

.estimate-extracts {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.estimate-extracts .norm-tabs {
  margin-top: 10px;
}

.estimate-lines-table tfoot td {
  background: #eef7f1;
  border-top: 1px solid #b8d7c4;
  color: var(--brand-dark);
}

.extract-total-row td {
  background: #eef7f1;
  border-top: 1px solid #b8d7c4;
  color: var(--brand-dark);
}

.autocomplete-field {
  position: relative;
}

.autocomplete-menu {
  position: fixed;
  z-index: 10000;
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 41, 31, 0.14);
}

.autocomplete-item {
  display: grid;
  width: 100%;
  min-height: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: #eaf6ee;
}

.autocomplete-main {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 12px;
}

.autocomplete-code {
  color: var(--brand-dark);
  white-space: nowrap;
}

.autocomplete-title {
  min-width: 0;
  line-height: 1.35;
}

.autocomplete-meta,
.autocomplete-empty {
  color: var(--muted);
  font-size: 11px;
}

.autocomplete-empty {
  padding: 9px 10px;
}

.estimate-resource-table {
  min-width: 1180px;
}

.extract-buttons {
  margin-top: 10px;
  justify-content: flex-start;
}

.recap-toolbar {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
}

.recap-main-row,
.recap-apply-row {
  display: grid;
  gap: 8px;
  align-items: end;
}

.recap-main-row {
  grid-template-columns: 110px minmax(190px, 1fr) 130px 120px 130px 130px 84px auto;
}

.recap-apply-row {
  grid-template-columns: repeat(4, minmax(112px, 140px));
}

.recap-toolbar button {
  min-height: 36px;
  align-self: end;
}

.recap-table {
  min-width: 1260px;
}

.stats-toolbar {
  display: grid;
  grid-template-columns: 160px 160px 110px auto;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 10px;
}

.stats-top-pages-wrap,
.stats-events-wrap {
  margin-top: 10px;
}

.stats-top-pages-table {
  min-width: 520px;
}

.stats-events-table {
  min-width: 1120px;
}

.mail-wrap {
  margin-top: 10px;
}

.mail-table {
  min-width: 1120px;
}

.worker-applications-wrap {
  margin-top: 10px;
}

.worker-applications-table {
  min-width: 1120px;
}

.worker-applications-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.worker-applications-table tbody tr:nth-child(odd) {
  background: #fff;
}

.worker-application-detail-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.worker-application-admin-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 12px;
  align-items: start;
}

.worker-application-action-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.worker-application-action-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.worker-application-action-card label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.worker-application-action-card input,
.worker-application-action-card select {
  width: 100%;
}

.worker-application-action-card button {
  justify-self: start;
}

.worker-profiles-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.worker-profiles-wrap {
  margin-top: 4px;
}

.worker-profiles-table {
  min-width: 980px;
}

.worker-profiles-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.worker-profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.worker-profile-form label,
.worker-profile-form fieldset {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
}

.worker-profile-form input,
.worker-profile-form select,
.worker-profile-form textarea {
  width: 100%;
}

.worker-profile-form textarea {
  min-height: 58px;
}

.worker-profile-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}

.worker-profile-form legend {
  padding: 0 4px;
  color: var(--muted);
}

.worker-profile-checks,
.worker-profile-tax-grid,
.worker-profile-form .entry-field-wide,
.worker-profile-actions {
  grid-column: 1 / -1;
}

.worker-profile-checks {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.worker-profile-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px !important;
}

.worker-profile-check input {
  width: auto;
}

.worker-profile-tax-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mail-error-cell {
  max-width: 300px;
  white-space: normal;
  word-break: break-word;
}

.worker-account-message.error {
  color: var(--danger);
}

.recap-table input,
.recap-table select {
  min-height: 30px;
  padding: 7px 8px;
}

.recap-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.recap-table tbody tr:nth-child(odd) {
  background: #fff;
}

.recap-apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 5px;
  min-width: 190px;
}

.recap-apply-grid label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.detail-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compact-form {
  max-width: 960px;
}

.compact-form textarea {
  min-height: 82px;
}

.norm-window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.norm-toolbar {
  display: grid;
  grid-template-columns: 190px 190px 190px minmax(240px, 1fr) 150px 100px;
  gap: 8px;
  min-width: 1080px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
}

.new-norm-panel {
  min-width: 1080px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.compact-head {
  margin-bottom: 8px;
}

.compact-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--brand-dark);
}

.new-norm-form {
  display: grid;
  gap: 8px;
}

.new-norm-form fieldset {
  display: grid;
  grid-template-columns: 150px 170px minmax(260px, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.new-norm-form .new-norm-main {
  grid-template-columns: 140px 120px minmax(320px, 1fr) 80px 100px 80px;
}

.new-norm-form legend {
  padding: 0 4px;
  color: var(--brand-dark);
  font-size: 12px;
}

.new-norm-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.new-norm-form input,
.new-norm-form select {
  min-height: 32px;
  padding: 7px 8px;
}

.form-actions {
  justify-content: flex-start;
}

.estimate-norm-toolbar {
  grid-template-columns: 160px 160px 160px minmax(180px, 1fr) 100px 76px auto;
  min-width: 0;
}

.job-filter-toolbar {
  display: grid;
  grid-template-columns: 130px 130px 100px 130px 150px 190px 90px auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
}

.report-filter label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.report-filter input,
.report-filter select {
  min-height: 36px;
}

.norm-workspace {
  display: block;
  min-width: 1080px;
  min-height: 0;
}

.norm-list-pane {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.norm-list-wrap {
  border: 0;
  border-radius: 0;
  max-height: 430px;
}

.norms-table {
  min-width: 1040px;
}

.norms-table td:first-child {
  width: 160px;
}

.norms-table td:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover,
.selected-row {
  background: #f1f7f3;
}

.norms-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.norms-table tbody tr:nth-child(odd) {
  background: #fff;
}

.norms-table tbody tr:hover,
.norms-table tbody tr.selected-row {
  background: #eaf6ee;
}

.norm-detail-pane {
  min-width: 0;
  padding: 14px;
}

.norm-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.norm-detail-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--brand-dark);
}

.norm-detail-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.norm-form {
  margin-top: 12px;
  max-width: none;
}

.catalog-edit-warning {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #d9c58c;
  border-radius: var(--radius);
  background: #fff8df;
  color: #604a10;
  font-size: 12px;
}

.catalog-edit-warning label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.catalog-edit-warning p {
  margin: 0;
  color: #725a17;
}

.norm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.norm-tab {
  min-height: 30px;
  padding: 0 9px;
  border-color: #b9d4c3;
  background: #f7fbf8;
  color: #315b42;
  box-shadow: none;
}

.norm-tab.active {
  background: #d9f0df;
  border-color: #68ad78;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px #8bc897;
}

.norm-tab:hover {
  border-color: #68ad78;
  background: #edf8f0;
}

.norm-tab.active:hover {
  background: #d2ecd9;
}

.add-line-form {
  display: grid;
  grid-template-columns: 140px 76px minmax(120px, 0.7fr) minmax(240px, 1.3fr) 90px 110px 110px 90px auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
}

.add-line-form input,
.add-line-form select,
.add-line-form button {
  min-height: 30px;
  padding: 7px 8px;
}

.norm-line-group {
  margin-top: 16px;
}

.norm-line-group h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 400;
}

.norm-line-table {
  min-width: 1040px;
}

.norm-line-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.norm-line-table tbody tr:nth-child(odd) {
  background: #fff;
}

.norm-line-table input,
.norm-line-table select {
  min-width: 92px;
  padding: 7px 8px;
}

.norm-line-table [data-line-field="resource_name"] {
  min-width: 260px;
}

.norm-line-table [data-line-field="resource_code"] {
  min-width: 150px;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.row-actions button {
  min-height: 30px;
  padding: 0 8px;
}

.code-cell {
  font-family: Consolas, Menlo, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.job-photos-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
}

.job-photos-panel h3 {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 400;
}

.admin-photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-photo-gallery figure {
  width: 150px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.admin-photo-gallery figcaption {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-detail-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 8px;
}

.job-detail-grid > div {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  font-size: 12px;
}

.job-detail-grid span,
.job-detail-block h4 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.job-detail-grid strong {
  color: var(--ink);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.job-detail-block {
  display: grid;
  gap: 6px;
}

.job-detail-block h4 {
  margin: 0;
}

.job-history-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.job-history-toolbar .button-row {
  margin: 0;
}

.job-history-toolbar button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 400;
}

.job-history-table tfoot td {
  background: #eef7f1;
}

.job-detail-block > div:not(.job-detail-grid) {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.worker-interests-block > div:not(.job-detail-grid) {
  border-color: #b7d9b4;
  background: #f2faf1;
}

.dispute-block > div:not(.job-detail-grid) {
  border-color: #e0b7a1;
  background: #fff7f2;
}

.dispute-block {
  margin-bottom: 12px;
}

.dispute-block .dispute-summary {
  display: grid;
  gap: 6px;
  white-space: normal;
}

.dispute-block .dispute-row {
  display: grid;
  grid-template-columns: minmax(112px, max-content) minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.dispute-block .dispute-row span {
  color: var(--muted);
}

.dispute-block .dispute-row strong {
  color: var(--ink);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.dispute-block .dispute-resolution-toolbar {
  margin-bottom: 12px;
}

.dispute-block .button-row {
  justify-content: flex-start;
}

.line-options-row td {
  background: #fbfcfb;
  padding: 8px;
}

.option-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.option-table {
  min-width: 760px;
}

.option-table th,
.option-table td {
  padding: 7px 8px;
  font-size: 12px;
}

@media print {
  body {
    background: #fff;
    font-size: 11px;
  }

  .home-top,
  .home-footer,
  #loginPanel,
  .admin-top,
  .admin-menu,
  .button-row,
  .norm-toolbar,
  .estimate-toolbar,
  .estimate-position-toolbar,
  .estimate-generate-toolbar,
  .recap-toolbar,
  .norm-tabs,
  .message,
  .row-actions {
    display: none !important;
  }

  .home-shell {
    width: 100%;
    margin: 0;
  }

  .panel,
  .admin-section,
  .norm-window,
  .table-wrap {
    border: 0;
    padding: 0;
  }

  .report-title {
    display: flex !important;
    border-bottom: 1px solid #999;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .norm-workspace {
    display: block;
    min-height: 0;
  }

  .norm-list-pane {
    border: 0;
  }

  .norm-detail-pane {
    padding: 0;
  }

  .data-table {
    min-width: 0;
    font-size: 10px;
  }

  body.print-estimate #jobsSection > .section-head,
  body.print-estimate #jobsSection > .table-wrap {
    display: none !important;
  }
}

.home-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto;
  color: var(--muted);
  font-size: 12px;
}

.page-landing .home-shell,
.page-admin .home-shell {
  margin-bottom: 0;
}

.page-landing .home-footer {
  width: min(900px, calc(100% - 32px));
  margin: 8px auto 18px;
  font-size: 11px;
}

.page-admin.admin-login .home-footer {
  width: min(480px, calc(100% - 32px));
  padding-left: 16px;
  margin-top: 10px;
  font-size: 11px;
}

.page-admin.admin-open .home-footer,
.page-admin:not(.admin-login):not(.admin-open) .home-footer {
  width: min(1120px, calc(100% - 32px));
  padding-left: 18px;
  margin-top: 10px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .home-top {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .home-nav {
    grid-column: 1 / -1;
  }

  .home-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 92px;
    font-size: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .recap-main-row,
  .recap-apply-row {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .norm-toolbar,
  .new-norm-panel,
  .new-norm-form fieldset,
  .new-norm-form .new-norm-main,
  .norm-workspace,
  .worker-application-admin-grid,
  .worker-profile-form,
  .worker-profile-checks,
  .worker-profile-tax-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-row,
  .contact-bank {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .norm-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .norm-detail-head {
    display: block;
  }

  .panel {
    padding: 14px;
  }

  .account-popover {
    position: fixed;
    top: 84px;
    right: 16px;
    width: min(292px, calc(100vw - 32px));
  }
}

.auth-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.auth-panel .form-grid {
  grid-template-columns: 112px minmax(180px, 240px);
  justify-content: center;
  gap: 8px 10px;
}

.auth-panel input {
  max-width: 240px;
}

.auth-panel h1,
.entry-panel h1 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 400;
}

.auth-panel label,
.entry-panel label,
.entry-panel summary {
  font-size: 12px;
  font-weight: 400;
}

.entry-panel .entry-field > span,
.entry-panel .entry-field > label {
  font-size: 12px;
  font-weight: 400;
}

.auth-panel input,
.auth-panel select,
.auth-panel textarea,
.entry-panel input,
.entry-panel select,
.entry-panel textarea {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

.auth-panel textarea,
.entry-panel textarea {
  min-height: 86px;
}

.auth-panel button,
.entry-panel button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 400;
}

.compact-entry .choice {
  min-height: 112px;
  padding: 16px;
  font-size: 14px;
}

.home-landing {
  max-width: 900px;
}

.landing-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px 0 10px;
}

.landing-brand img {
  width: min(320px, 72vw);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.landing-separator {
  height: 1px;
  background: var(--line);
  margin: 0 0 14px;
}

.home-landing .compact-entry .choice {
  min-height: 56px;
  padding: 9px 12px;
  font-size: 13px;
}

.landing-check {
  max-width: 520px;
  margin: 14px auto 0;
  padding: 14px;
}

.landing-check h1 {
  font-size: 14px;
  margin-bottom: 10px;
}

.landing-check .public-check-form {
  justify-content: center;
}

.home-landing .landing-check .public-check-form .entry-field {
  flex: 0 1 300px;
}

.page-brand {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-brand-left {
  justify-content: flex-start;
}

.app-session-header {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.page-brand-session {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.page-brand-session[hidden] {
  display: none;
}

.page-brand-session button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 400;
}

.page-brand img {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.entry-panel {
  max-width: 900px;
}

.page-request .entry-panel {
  max-width: none;
}

.page-request .entry-form,
.page-request #jobMessage {
  max-width: 900px;
}

.page-request #jobMessage {
  font-size: 11px;
  line-height: 1.35;
}

.page-request .entry-panel h1 {
  font-size: 15px;
  margin-bottom: 10px;
}

.page-request .check-panel h1 {
  font-size: 13px;
}

.page-request .check-panel .public-check-form,
.page-request .check-panel .request-check-result {
  max-width: 520px;
}

.entry-form,
.entry-subgrid {
  display: grid;
  gap: 10px;
}

.entry-subgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-field {
  display: grid;
  gap: 4px;
}

.label-help-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.inline-help {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #97ada0;
  border-radius: 50%;
  background: #eef7f1;
  color: #074527;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  cursor: help;
}

.inline-help:hover,
.inline-help:focus {
  border-color: #0d6b3c;
  background: #dcefe4;
}

.entry-check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--muted);
}

.entry-check-field input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.submit-note {
  color: var(--muted);
  font-size: 12px;
}

.contact-preference {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  max-width: 520px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.contact-preference legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.photo-field {
  max-width: 900px;
}

.photo-privacy-note {
  display: block;
  max-width: 760px;
  font-size: 11px;
  line-height: 1.35;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-preview figure {
  width: 92px;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.photo-preview figcaption {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.optional-details {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.optional-details summary {
  cursor: pointer;
  color: var(--brand-dark);
}

.optional-details .entry-subgrid {
  margin-top: 10px;
}

.location-row,
.entry-actions,
.public-check-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.location-row {
  align-items: center;
}

.location-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.location-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.location-results {
  display: grid;
  gap: 4px;
  max-height: 188px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.location-results[hidden] {
  display: none;
}

.location-results button {
  display: grid;
  min-height: 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.location-results button:nth-child(even) {
  background: #f3faf6;
}

.location-results button:hover,
.location-results button:focus {
  background: #dcefe4;
}

.location-results small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-map-box {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.location-map-box[hidden] {
  display: none;
}

.location-map-box iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 6px;
  background: #f6f8f7;
}

.location-map-box.loading::before {
  content: "";
  display: block;
  height: 240px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f4f7f5, #e9f1ec, #f4f7f5);
}

.location-map-box.loading iframe {
  display: none;
}

.location-map-box a {
  justify-self: start;
  color: var(--brand-dark);
  font-size: 11px;
  text-decoration: none;
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.muted-text.error {
  color: var(--danger);
}

.check-panel {
  margin-top: 14px;
}

.public-check-form .entry-field {
  flex: 1 1 260px;
}

.request-check-result {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.request-check-result.error {
  color: var(--danger);
}

.request-check-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
}

.request-check-card b {
  color: var(--brand-dark);
  font-weight: 400;
}

.contact-panel {
  margin-top: 14px;
  max-width: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  padding: 12px;
}

.contact-card h2,
.contact-bank-list h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 400;
}

.contact-lines,
.contact-bank-list {
  display: grid;
  gap: 6px;
}

.contact-bank-list {
  margin-top: 10px;
}

.contact-row,
.contact-bank {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
}

.contact-row span,
.contact-bank span {
  color: var(--muted);
}

.contact-row p,
.contact-bank p {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.contact-links a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
}

.contact-links a:hover {
  border-color: var(--brand);
}

.client-dashboard-result {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.client-dashboard-result.error {
  color: var(--danger);
}

.client-dashboard-card {
  display: grid;
  gap: 12px;
}

.client-estimate-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.client-estimate-card h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 400;
}

.client-estimate-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.client-request-update-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.client-request-update-grid .entry-field-wide {
  grid-column: 1 / -1;
}

.client-estimate-grid {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, auto);
  gap: 6px 12px;
  align-items: center;
}

.client-estimate-grid strong {
  color: var(--ink);
  font-weight: 400;
  text-align: right;
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.client-legal-checks {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  font-size: 12px;
}

.client-legal-checks label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: flex-start;
  max-width: 100%;
  line-height: 1.35;
}

.client-legal-checks input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin: 2px 0 0;
  padding: 0;
}

.client-legal-checks .legal-label-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-legal-checks a {
  color: var(--brand);
  text-decoration: underline;
}

.client-legal-checks .error {
  color: var(--danger);
}

.order-party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.order-party {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.order-party h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--brand-dark);
}

.order-party-name {
  font-weight: 700;
}

.order-total {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #a8beb1;
  border-radius: var(--radius);
  background: #eef7f1;
  color: var(--brand-dark);
}

.client-resource-wrap {
  margin-top: 6px;
}

.client-resource-table,
.client-recap-table {
  min-width: 760px;
}

.client-resource-table tfoot td {
  background: #eef7f1;
}

.client-position {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.client-position + .client-position {
  margin-top: 8px;
}

.client-recap-details {
  margin-top: 0;
}

.client-position summary {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  cursor: pointer;
}

.client-position summary span {
  color: var(--brand-dark);
}

.client-position summary small {
  color: var(--muted);
  font-size: 11px;
}

.client-position-resources {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.client-position-resources h3 {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 400;
}

.worker-entry-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.client-entry-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.worker-entry-left {
  display: grid;
  gap: 14px;
}

.client-entry-left {
  display: grid;
  gap: 14px;
}

.worker-entry-grid .auth-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.client-entry-grid .auth-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.client-register-panel {
  display: grid;
  gap: 10px;
}

.client-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.client-register-form .entry-field-wide,
.client-register-form .client-legal-checks,
.client-register-actions {
  grid-column: 1 / -1;
}

.client-tabs {
  margin: 10px 0 8px;
}

.client-account-section {
  display: grid;
  gap: 8px;
}

.client-account-table tbody tr:nth-child(even),
.client-mail-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.client-account-table tbody tr:nth-child(odd),
.client-mail-table tbody tr:nth-child(odd) {
  background: #fff;
}

.client-stats-content {
  display: grid;
  gap: 12px;
}

.worker-recent-panel {
  display: grid;
  gap: 8px;
}

.worker-recent-panel h1 {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 400;
}

.worker-recent-list {
  display: grid;
  gap: 7px;
}

.worker-recent-item {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  font-size: 12px;
  line-height: 1.35;
}

.worker-recent-item h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 400;
}

.worker-recent-meta {
  color: var(--muted);
  font-size: 11px;
}

.worker-apply-panel {
  display: grid;
  gap: 10px;
}

.entry-motto {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.worker-apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.worker-apply-form .entry-field {
  display: grid;
  gap: 4px;
}

.worker-apply-form .entry-field-wide,
.worker-apply-form .worker-legal-checks,
.worker-apply-actions {
  grid-column: 1 / -1;
}

.worker-apply-form textarea {
  min-height: 68px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.worker-authenticator-note {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.worker-authenticator-note strong {
  color: var(--brand-dark);
  font-weight: 400;
}

.worker-user-label {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  word-break: break-word;
}

.worker-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #cfd8dc;
  border-radius: 12px;
  background: #f5f7f8;
  color: #455a64;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.worker-status-badge.status-active {
  border-color: #9ccc65;
  background: #f1f8e9;
  color: #33691e;
}

.worker-status-badge.status-blocked {
  border-color: #ef9a9a;
  background: #ffebee;
  color: #b71c1c;
}

.worker-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.worker-summary > div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  font-size: 12px;
}

.worker-summary span {
  color: var(--muted);
}

.worker-summary strong {
  color: var(--brand-dark);
  font-weight: 400;
}

.worker-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.worker-tabs {
  margin: 10px 0 8px;
}

.worker-pool-table tbody tr:nth-child(even) {
  background: #f6fbf7;
}

.worker-pool-table tbody tr:nth-child(odd) {
  background: #fff;
}

.worker-job-section {
  display: grid;
  gap: 8px;
}

.worker-job-section h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 400;
}

.worker-detail-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.worker-detail-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.worker-detail-card h3,
.worker-pay-panel h3,
.worker-pay-card h4 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 400;
}

.worker-status-card-prominent {
  border-color: #b7d9b4;
  background: #f2faf1;
}

.worker-status-card-prominent .worker-status-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.worker-status-card-prominent .button-row {
  align-items: center;
}

.worker-interest-panel,
.worker-status-panel,
.worker-schedule-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.worker-schedule-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.schedule-current {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
  font-size: 12px;
}

.schedule-current span {
  color: var(--muted);
}

.schedule-current strong {
  font-size: 13px;
  font-weight: 400;
  color: var(--brand-dark);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
}

.schedule-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-grid input,
.schedule-grid select,
.schedule-grid textarea {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 7px;
  font: inherit;
  font-size: 12px;
  background: #fff;
  color: var(--ink);
}

.schedule-grid textarea {
  min-height: 54px;
  resize: vertical;
}

.schedule-grid .entry-field-wide {
  grid-column: 1 / -1;
}

.worker-interest-panel textarea {
  min-height: 58px;
  resize: vertical;
}

.worker-photo-gallery {
  margin-top: 0;
}

.worker-pay-panel {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf9;
}

.worker-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.worker-pay-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
}

.worker-pay-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.worker-pay-card span {
  color: var(--muted);
}

.worker-pay-card strong {
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
}

.worker-estimate-section {
  padding: 0;
  border: 0;
}

.num-cell {
  text-align: right;
  white-space: nowrap;
}

.price-tabs {
  margin: 8px 0 12px;
}

.price-tab-panel[hidden] {
  display: none !important;
}

.price-tab-panel {
  margin-top: 0;
}

#priceItemForm {
  max-width: none;
}

#priceItemForm .recap-main-row {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

#priceItemForm .recap-main-row > label:nth-child(1),
#priceItemForm .recap-main-row > label:nth-child(2),
#priceItemForm .recap-main-row > label:nth-child(5),
#priceItemForm .recap-main-row > label:nth-child(7),
#priceItemForm .recap-main-row > label:nth-child(8) {
  grid-column: span 2;
}

#priceItemForm .recap-main-row > label:nth-child(3) {
  grid-column: span 4;
}

#priceItemForm .recap-main-row > label:nth-child(4),
#priceItemForm .recap-main-row > label:nth-child(6) {
  grid-column: span 1;
}

#priceItemForm .recap-main-row > button {
  grid-column: span 2;
}

#priceItemForm input,
#priceItemForm select {
  box-sizing: border-box;
  width: 100%;
}

.price-table {
  min-width: 1620px;
}

.price-table input,
.price-table select {
  box-sizing: border-box;
  min-height: 30px;
  font-size: 12px;
  font-weight: 400;
}

.price-table td:nth-child(2) select {
  min-width: 126px;
}

.price-table td:nth-child(4) {
  min-width: 190px;
}

.price-table td:nth-child(5) input {
  min-width: 150px;
}

.price-table td:nth-child(6) input {
  min-width: 340px;
}

.price-table td:nth-child(7) input {
  min-width: 78px;
  text-align: center;
}

.price-table td:nth-child(8) input {
  min-width: 118px;
  text-align: right;
}

.price-table td:nth-child(9) input {
  min-width: 76px;
  text-align: center;
}

.price-table td:nth-child(10) input,
.price-table td:nth-child(11) input {
  min-width: 132px;
}

.price-table td:nth-child(13) select {
  min-width: 74px;
}

.price-table td:nth-child(14) {
  min-width: 126px;
}

.price-table .row-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

@media (max-width: 980px) {
  #priceItemForm .recap-main-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #priceItemForm .recap-main-row > label:nth-child(3) {
    grid-column: span 6;
  }

  #priceItemForm .recap-main-row > label:nth-child(4),
  #priceItemForm .recap-main-row > label:nth-child(6) {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  #priceItemForm .recap-main-row {
    grid-template-columns: 1fr;
  }

  #priceItemForm .recap-main-row > label,
  #priceItemForm .recap-main-row > button {
    grid-column: 1 / -1 !important;
  }
}

.supplier-import-form {
  align-items: stretch;
}

.supplier-import-form .recap-main-row {
  grid-template-columns: 112px minmax(260px, 1.5fr) minmax(160px, .85fr) 120px 120px 84px;
}

.supplier-import-form textarea {
  min-height: 96px;
  resize: vertical;
  font-size: 12px;
}

@media (max-width: 760px) {
  .supplier-import-form .recap-main-row {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

.supplier-items-wrap {
  max-height: 420px;
}

.supplier-preview-wrap {
  max-height: 360px;
}

.supplier-preview-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.supplier-preview-duplicate td {
  background: #fff7e6;
}

.store-tab-panel[hidden] {
  display: none !important;
}

.store-admin-wrap {
  max-height: 520px;
}

.store-admin-form .recap-main-row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.store-product-table input,
.store-product-table select,
.store-admin-form input,
.store-admin-form select {
  min-height: 30px;
  font-size: 12px;
  font-weight: 400;
}

.store-product-table th:nth-child(1),
.store-product-table td:nth-child(1) {
  min-width: 110px;
}

.store-product-table th:nth-child(2),
.store-product-table td:nth-child(2) {
  min-width: 130px;
}

.store-product-table td:nth-child(3) input:first-child {
  min-width: 320px;
}

.store-product-uom-cell input {
  width: 82px;
  text-align: center;
}

.store-product-price-cell {
  min-width: 150px;
}

.store-product-category-cell,
.store-product-brand-cell {
  min-width: 190px;
}

.store-product-category-cell select,
.store-product-brand-cell select {
  width: 186px;
}

.store-product-stock-cell {
  min-width: 132px;
}

.store-product-state-cell {
  min-width: 92px;
}

.store-product-field-stack {
  display: grid;
  gap: 5px;
}

.store-product-field-pair {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) minmax(56px, 0.85fr);
  gap: 5px;
}

.store-product-field {
  display: grid;
  gap: 2px;
  margin: 0;
}

.store-product-field span {
  color: #60756c;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.store-product-field input,
.store-product-field select {
  width: 100%;
  margin: 0;
}

.store-product-field.wide {
  width: 100%;
}

.store-product-table td:nth-child(9) input {
  min-width: 190px;
}

.store-image-upload-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(130px, auto) auto auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

.store-image-upload-form input,
.store-image-upload-form select {
  min-height: 32px;
  font-size: 12px;
  font-weight: 400;
}

.store-image-actions {
  margin-top: 6px;
}

.admin-doc-list {
  display: grid;
  gap: 8px;
}

.admin-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
}

.admin-doc-item a {
  color: var(--brand-dark);
  text-decoration: none;
}

.admin-doc-item a:hover {
  text-decoration: underline;
}

.supplier-items-table input,
.supplier-items-table select {
  min-width: 92px;
  font-size: 12px;
  font-weight: 400;
}

.supplier-items-table td:nth-child(2),
.supplier-items-table td:nth-child(6) {
  min-width: 220px;
}

.store-panel {
  padding: 16px;
}

.page-store .section-head {
  align-items: center;
}

.page-store #storeRefresh {
  min-height: 26px;
  padding: 0 5px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.page-store #storeRefresh:hover,
.page-store #storeRefresh:focus-visible {
  border-color: #dbe8df;
  background: #f8fbf9;
  color: var(--brand-dark);
}

.store-offer-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.store-offer-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #bad8c7;
  border-radius: var(--radius);
  background: #eef8f2;
  color: var(--brand-dark);
}

.store-offer-card > div {
  min-width: 0;
}

.store-offer-card strong {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.store-offer-card span,
.store-offer-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.store-offer-card small {
  text-align: right;
}

.store-offer-text-field {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.store-offer-text-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  resize: vertical;
  font-size: 12px;
  font-weight: 400;
}

.store-filter {
  display: grid;
  grid-template-columns: 180px 180px minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

.store-filter input,
.store-filter select {
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 400;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.store-product-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.store-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 150px;
  max-height: 220px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 36px;
  padding: 12px;
}

.store-product-image.has-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-origin: content-box;
}

.store-product-image img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.store-product-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
}

.store-product-code {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.store-product-card h2 {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.store-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.store-product-price {
  margin-top: 10px;
  color: var(--brand-dark);
}

.store-product-offer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  margin-bottom: 4px;
  border: 1px solid #a6cfb7;
  border-radius: 7px;
  background: #e4f4ea;
  color: var(--brand-dark);
  font-size: 10px;
  line-height: 1;
}

.store-product-price-old {
  color: #7a8a82;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: line-through;
}

.store-product-price-main {
  font-size: 15px;
  line-height: 1.2;
}

.store-product-price-offer {
  color: #07582f;
}

.store-product-price-net {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.store-product-price-save,
.cart-line-offer {
  margin-top: 3px;
  color: #0c6237;
  font-size: 10.5px;
  line-height: 1.25;
}

.store-product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
}

.store-product-details-link {
  color: var(--brand-dark);
  font-size: 11px;
  text-decoration: none;
}

.store-product-details-link:hover {
  text-decoration: underline;
}

.store-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.product-detail-panel .section-head {
  align-items: center;
}

.product-detail-main {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.product-detail-media {
  min-width: 0;
}

.product-detail-image {
  display: grid;
  place-items: start center;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 54px;
  padding: 14px;
}

.product-detail-image img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  object-position: top center;
}

.product-image-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 64px));
  gap: 7px;
  margin-top: 8px;
}

.product-image-thumbs button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  cursor: pointer;
  overflow: hidden;
}

.product-image-thumbs button.selected {
  border-color: var(--brand);
  background: #eaf6ef;
}

.product-image-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info h2 {
  margin: 2px 0 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.product-detail-meta {
  margin-bottom: 12px;
}

.product-detail-description {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
}

.product-detail-price {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-detail-price .store-product-price-main {
  font-size: 18px;
}

.product-detail-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.product-documents {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-documents h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
}

.product-doc-empty {
  color: var(--muted);
  font-size: 12px;
}

.product-doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.product-doc-list a {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 0;
  color: var(--brand-dark);
  text-decoration: none;
}

.product-doc-list a:hover {
  text-decoration: underline;
}

.product-doc-list span {
  color: var(--muted);
  font-size: 11px;
}

.store-cart-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 11px;
  border: 1px solid rgba(13, 107, 60, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 107, 60, 0.06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.store-cart-label-short {
  display: none;
}

.store-cart-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 4px 4px;
  opacity: 0.82;
}

.store-cart-icon::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  width: 8px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: skewX(-18deg);
  border-radius: 2px 0 0 0;
}

.store-cart-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -4px;
  height: 3px;
  background:
    radial-gradient(circle, currentColor 1.5px, transparent 1.8px) left center / 7px 3px no-repeat,
    radial-gradient(circle, currentColor 1.5px, transparent 1.8px) right center / 7px 3px no-repeat;
  opacity: 0.82;
}

.store-cart-status:hover,
.store-cart-status.selected {
  border-color: rgba(13, 107, 60, 0.32);
  background: rgba(13, 107, 60, 0.1);
  color: var(--brand-dark);
}

.store-cart-status #storeCartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(13, 107, 60, 0.14);
  color: var(--brand-dark);
  font-size: 11px;
}

.store-partner-strip {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.store-partner-strip::-webkit-scrollbar {
  display: none;
}

.store-partner-strip a,
.store-partner-strip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  min-width: 100px;
  max-width: 196px;
  padding: 3px 6px;
  /* border: 1px solid #dbe8df; */
  border: 1px solid transparent;
  border-radius: var(--radius);
  /* background: #f8fbf9; */
  background: transparent;
  color: var(--brand-dark);
  text-decoration: none;
}

.store-partner-strip img {
  width: auto;
  height: auto;
  max-width: 176px;
  max-height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.store-banner-text {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand-dark);
  font-size: 12px;
  white-space: nowrap;
}

.cart-table-wrap {
  margin-top: 10px;
}

.cart-table {
  min-width: 900px;
  font-size: 11.5px;
}

.cart-table .cart-shipping-line td {
  background: #f7fbf8;
}

.cart-line-name {
  color: var(--ink);
}

.cart-qty-cell input {
  width: 82px;
  padding: 5px 7px;
  text-align: right;
}

.cart-totals {
  display: grid;
  gap: 5px;
  width: min(420px, 100%);
  margin: 12px 0 0 auto;
  font-size: 12px;
}

.cart-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.cart-total-final {
  color: var(--brand-dark);
  font-size: 13px;
}

.cart-actions,
.cart-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.cart-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cart-checkout {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-checkout h2,
.cart-order-note h2,
.cart-order-note h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-weight: 400;
}

.cart-payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.cart-payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfa;
  font-weight: 400;
}

.cart-payment-option input,
.cart-check input {
  width: auto;
  margin-top: 2px;
}

.cart-payment-option strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
}

.cart-payment-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.cart-checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.cart-checkout-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
}

.cart-checkout-form input,
.cart-checkout-form select {
  padding: 7px 8px;
}

.cart-checkout-form select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.cart-delivery-method select {
  min-height: 36px;
}

.cart-delivery-hint {
  margin-bottom: 8px;
  line-height: 1.4;
}

.cart-checkout-form .required-field > span::after {
  content: " *";
  color: #9a2e25;
}

.cart-check-wide {
  grid-column: 1 / -1;
}

.cart-check {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px !important;
  color: var(--ink);
  line-height: 1.35;
}

.cart-order-note {
  margin-top: 12px;
}

.cart-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.store-order-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.store-order-parties > div,
.store-order-payment,
.store-order-shipping {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfa;
  font-size: 12px;
  line-height: 1.45;
}

.store-total-pay {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #b7d9b4;
  border-radius: var(--radius);
  background: #f2faf1;
  color: var(--brand-dark);
  font-size: 14px;
}

.store-order-payment,
.store-order-shipping {
  margin-top: 12px;
}

.store-order-payment p,
.store-order-shipping p {
  margin: 0 0 8px;
  color: var(--muted);
}

.store-order-banks {
  display: grid;
  gap: 4px;
}

.store-order-banks div {
  display: grid;
  grid-template-columns: minmax(90px, max-content) minmax(0, 1fr);
  gap: 10px;
}

.store-order-banks strong {
  font-weight: 400;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .auth-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel input {
    max-width: none;
  }

  .entry-subgrid,
  .client-request-update-grid,
  .job-detail-grid,
  .public-check-form {
    grid-template-columns: 1fr;
  }

  .worker-summary,
  .worker-pay-grid,
  .worker-entry-grid,
  .client-entry-grid,
  .worker-application-admin-grid,
  .worker-profile-form,
  .worker-profile-checks,
  .worker-profile-tax-grid,
  .worker-apply-form,
  .client-register-form {
    grid-template-columns: 1fr;
  }

  .home-landing .compact-entry .choice {
    min-height: 58px;
    font-size: 14px;
  }

  .page-brand {
    justify-content: center;
  }

  .store-cart-status {
    width: auto;
    margin-left: 0;
    padding: 6px 9px;
    text-align: center;
  }

  .store-cart-label-full {
    display: none;
  }

  .store-cart-label-short {
    display: inline;
  }

  .page-store .section-head {
    flex-wrap: wrap;
  }

  .page-store .section-head h1 {
    flex: 1 1 auto;
  }

  .page-store #storeRefresh {
    min-height: 22px;
    padding: 0 2px;
    font-size: 10.5px;
  }

  .store-partner-strip {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    padding: 3px 10px;
    margin: 0 -10px;
  }

  .store-partner-strip a,
  .store-partner-strip > span {
    min-width: 120px;
    max-width: 176px;
    min-height: 30px;
    padding: 3px 7px;
  }

  .cart-payment-options,
  .cart-checkout-form,
  .store-order-parties {
    grid-template-columns: 1fr;
  }

  .cart-actions,
  .cart-checkout-actions,
  .cart-order-head {
    justify-content: flex-start;
  }

  .cart-order-head {
    flex-direction: column;
  }

  .cart-totals {
    margin-left: 0;
  }

  .store-partner-strip img {
    max-width: 174px;
    max-height: 30px;
  }

  .store-filter {
    grid-template-columns: 1fr;
  }

  .store-offer-strip {
    grid-template-columns: 1fr;
  }

  .store-offer-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .store-image-upload-form {
    grid-template-columns: 1fr;
  }

  .product-detail-main {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    min-height: 210px;
  }

  .home-landing .landing-check .public-check-form .entry-field {
    flex-basis: 100%;
  }

}
