:root {
  --brand-orange: #ff6b00;
  --brand-orange-dark: #e85f00;
  --brand-orange-darker: #cc5200;
  --brand-graphite: #171a1f;
  --brand-steel: #2c3440;
  --brand-concrete: #f5f2ec;
  --brand-sand: #e8ded0;
  --brand-success: #19a974;
  --brand-success-dark: #12845b;
  --brand-orange-tint: rgba(255, 107, 0, 0.16);
  --brand-success-tint: rgba(25, 169, 116, 0.14);

  --app-bg: var(--brand-concrete);
  --app-surface: #ffffff;
  --app-surface-muted: #fbf8f3;
  --app-border: var(--brand-sand);
  --app-border-strong: #d8cbbb;
  --app-ink: var(--brand-graphite);
  --app-muted: var(--brand-steel);
  --app-sidebar: var(--brand-graphite);
  --app-sidebar-strong: var(--brand-steel);
  --app-sidebar-line: rgba(232, 222, 208, 0.18);
  --app-sidebar-text: #ffffff;
  --app-sidebar-muted: rgba(255, 255, 255, 0.72);
  --app-orange: var(--brand-orange);
  --app-orange-dark: var(--brand-orange-dark);
  --app-orange-darker: var(--brand-orange-darker);
  --app-sidebar-expanded-width: 11.75rem;
  --app-sidebar-collapsed-width: 4.75rem;
  --app-sidebar-width: var(--app-sidebar-expanded-width);
  --app-tabs-height: 2.55rem;
  --font-title: "Manrope", Inter, Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

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

body {
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0;
}

code,
kbd,
pre,
samp,
.font-monospace {
  font-family: var(--font-mono);
}

a {
  color: var(--brand-graphite);
}

a:hover {
  color: var(--brand-orange-dark);
}

.btn-primary {
  --bs-btn-bg: var(--app-orange);
  --bs-btn-border-color: var(--app-orange);
  --bs-btn-hover-bg: var(--app-orange-dark);
  --bs-btn-hover-border-color: var(--app-orange-dark);
  --bs-btn-active-bg: var(--app-orange-darker);
  --bs-btn-active-border-color: var(--app-orange-darker);
  --bs-btn-disabled-bg: #d99a65;
  --bs-btn-disabled-border-color: #d99a65;
  font-family: var(--font-body);
  font-weight: 700;
}

.btn-success {
  --bs-btn-bg: var(--brand-success);
  --bs-btn-border-color: var(--brand-success);
  --bs-btn-hover-bg: var(--brand-success-dark);
  --bs-btn-hover-border-color: var(--brand-success-dark);
  --bs-btn-active-bg: var(--brand-success-dark);
  --bs-btn-active-border-color: var(--brand-success-dark);
  font-weight: 700;
}

.btn-outline-primary {
  --bs-btn-color: var(--app-orange-dark);
  --bs-btn-border-color: var(--app-orange);
  --bs-btn-hover-bg: var(--app-orange);
  --bs-btn-hover-border-color: var(--app-orange);
  --bs-btn-active-bg: var(--app-orange-dark);
  --bs-btn-active-border-color: var(--app-orange-dark);
  font-family: var(--font-body);
  font-weight: 700;
}

.btn-icon-action {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.action-icon {
  background-color: currentColor;
  display: inline-block;
  height: 1.05rem;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  width: 1.05rem;
}

.action-icon-liquidate {
  -webkit-mask-image: url("../img/icons/finance-liquidate.714baf947232.svg");
  mask-image: url("../img/icons/finance-liquidate.714baf947232.svg");
}

.action-icon-reverse {
  -webkit-mask-image: url("../img/icons/finance-reverse.319a8cf1cde5.svg");
  mask-image: url("../img/icons/finance-reverse.319a8cf1cde5.svg");
}

.action-icon-bank-slip-edit {
  -webkit-mask-image: url("../img/icons/finance-bank-slip-edit.4dc23c846a00.svg");
  mask-image: url("../img/icons/finance-bank-slip-edit.4dc23c846a00.svg");
}

.form-control,
.form-select,
.btn,
.badge,
.alert {
  border-radius: 0.375rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 0.18rem rgba(255, 107, 0, 0.2);
}

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 160ms ease;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--app-sidebar), var(--app-sidebar-strong));
  color: var(--app-ink);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 100vh;
  padding: 1rem 0.8rem;
  transition:
    padding 160ms ease,
    width 160ms ease;
}

.app-sidebar-backdrop {
  background: rgba(23, 26, 31, 0.48);
  border: 0;
  display: block;
  inset: 0;
  opacity: 0;
  padding: 0;
  position: fixed;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
  visibility: hidden;
  z-index: 1085;
}

.app-sidebar-backdrop[hidden] {
  display: none;
}

html.sidebar-drawer-open .app-sidebar-backdrop {
  opacity: 1;
  visibility: visible;
}

.app-brand {
  color: inherit;
  text-decoration: none;
}

.app-brand:hover {
  color: inherit;
}

.app-sidebar .app-brand {
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem 0 0.55rem;
}

.app-brand-text {
  min-width: 0;
}

.app-brand-kicker {
  color: var(--app-sidebar-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-sidebar .app-brand strong {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.app-sidebar .app-brand small {
  color: var(--app-sidebar-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.app-brand-logo {
  background: #ffffff;
  border-radius: 0.45rem;
  display: block;
  max-width: 9.4rem;
  padding: 0.35rem 0.45rem;
  width: 100%;
}

.app-brand-logo-compact {
  background: #ffffff;
  border-radius: 0.55rem;
  display: none;
  height: 2.55rem;
  padding: 0.34rem;
  width: 2.55rem;
}

.app-brand-mark {
  align-items: center;
  background: var(--app-orange);
  border-radius: 0.45rem;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 2.15rem;
  justify-content: center;
  width: 2.15rem;
}

.auth-panel .app-brand {
  align-items: center;
  color: var(--app-ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-brand-logo {
  display: block;
  max-width: 11rem;
  width: 100%;
}

.auth-panel .app-brand small {
  color: var(--app-muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-sidebar-nav {
  display: grid;
  gap: 0.54rem;
}

.app-sidebar-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-sidebar-line);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  gap: 0.45rem;
  line-height: 1.1;
  min-height: 3.45rem;
  min-width: 0;
  padding: 0.58rem 0.45rem;
  text-decoration: none;
}

.app-sidebar-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-link-label,
.app-sidebar-logout-label,
.app-sidebar-toggle-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-link:hover,
.app-sidebar-link.active {
  background: rgba(255, 107, 0, 0.16);
  border-color: rgba(255, 107, 0, 0.45);
  color: #ffffff;
}

.app-sidebar-link.active {
  box-shadow: inset 4px 0 0 var(--brand-orange);
}

.app-sidebar-link.disabled {
  color: rgba(255, 255, 255, 0.42);
}

.app-sidebar-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--app-sidebar-line);
  border-radius: 0.45rem;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.82rem;
  justify-content: center;
  width: 1.82rem;
}

.app-sidebar-svg {
  fill: none;
  height: 1.2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 1.2rem;
}

.app-sidebar-link.active .app-sidebar-icon {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.app-sidebar-footer {
  border-top: 1px solid var(--app-sidebar-line);
  display: grid;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
}

.app-sidebar-user {
  display: grid;
  gap: 0.1rem;
}

.app-sidebar-user span {
  font-family: var(--font-title);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-user small {
  color: var(--app-sidebar-muted);
  font-size: 0.76rem;
}

.app-sidebar-logout {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-sidebar-line);
  border-radius: 0.5rem;
  color: var(--app-sidebar-text);
  display: flex;
  font-family: var(--font-body);
  font-weight: 800;
  gap: 0.48rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  text-align: left;
  width: 100%;
}

.app-sidebar-logout:hover {
  background: rgba(255, 107, 0, 0.16);
  border-color: rgba(255, 107, 0, 0.45);
  color: #ffffff;
}

.app-sidebar-footer-icon,
.app-sidebar-toggle-icon {
  fill: none;
  flex: 0 0 auto;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.15rem;
}

.app-sidebar-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--app-sidebar-line);
  border-radius: 0.5rem;
  color: var(--app-sidebar-text);
  display: flex;
  font-family: var(--font-body);
  font-weight: 800;
  gap: 0.48rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  text-align: left;
  width: 100%;
}

.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus-visible {
  background: rgba(255, 107, 0, 0.16);
  border-color: rgba(255, 107, 0, 0.45);
  color: #ffffff;
}

.app-main {
  display: grid;
  grid-template-rows: var(--app-tabs-height) minmax(0, 1fr);
  min-width: 0;
}

.workspace-tab-strip {
  align-items: flex-end;
  background: var(--brand-sand);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  gap: 0.55rem;
  min-width: 0;
  overflow: visible;
  padding: 0.35rem 0.75rem 0;
  position: relative;
  z-index: 20;
}

.workspace-sidebar-open {
  align-items: center;
  background: var(--brand-graphite);
  border: 1px solid rgba(23, 26, 31, 0.18);
  border-radius: 0.45rem;
  color: #ffffff;
  display: none;
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.42rem;
  height: 2.25rem;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0.18rem;
  padding: 0 0.7rem;
  white-space: nowrap;
}

.workspace-sidebar-open:hover,
.workspace-sidebar-open:focus-visible {
  background: var(--brand-steel);
  color: #ffffff;
}

.workspace-sidebar-open-icon {
  fill: none;
  flex: 0 0 auto;
  height: 1.1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 1.1rem;
}

.workspace-current-title {
  color: var(--brand-graphite);
  display: none;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-tabs-viewport,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-tab-add,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-favorite-form,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .system-notifications,
.workspace-tab-strip[data-workspace-tabs-hydrating="true"] .workspace-search {
  pointer-events: none;
  visibility: hidden;
}

.workspace-tabs-viewport {
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.workspace-tabs {
  align-items: flex-end;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  width: 100%;
}

.workspace-tab-item {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
}

.workspace-tab-item.dirty .workspace-tab-label::before {
  color: var(--brand-orange-dark);
  content: "* ";
  font-family: var(--font-mono);
}

.workspace-tab-item.dragging {
  opacity: 0.55;
}

.workspace-tab-item.drop-before::before,
.workspace-tab-item.drop-after::after {
  background: var(--brand-orange);
  border-radius: 999px;
  content: "";
  height: 1.75rem;
  position: absolute;
  top: 0.28rem;
  width: 0.18rem;
  z-index: 2;
}

.workspace-tab-item.drop-before::before {
  left: -0.24rem;
}

.workspace-tab-item.drop-after::after {
  right: -0.24rem;
}

.workspace-tab {
  align-items: center;
  background: #f1e9de;
  border: 1px solid var(--app-border);
  border-bottom: 0;
  border-radius: 0.45rem 0.45rem 0 0;
  color: var(--brand-steel);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  height: 2.18rem;
  max-width: 12rem;
  min-width: 6.4rem;
  padding: 0 1.9rem 0 0.7rem;
  text-decoration: none;
  user-select: none;
}

.workspace-tab.active {
  background: var(--app-surface);
  border-color: var(--app-border-strong);
  box-shadow: inset 0 3px 0 var(--brand-orange);
  color: var(--app-ink);
}

.workspace-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #6a7484;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  height: 1.35rem;
  justify-content: center;
  position: absolute;
  right: 0.28rem;
  top: 0.38rem;
  width: 1.35rem;
}

.workspace-tab-close:hover {
  background: var(--brand-orange-tint);
  color: var(--brand-graphite);
}

.workspace-tab-add {
  align-items: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--brand-graphite);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  height: 2.1rem;
  justify-content: center;
  margin-bottom: 0.18rem;
  text-decoration: none;
  width: 2.1rem;
}

.workspace-tab-add:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

.workspace-favorite-form {
  flex: 0 0 auto;
  margin-bottom: 0.18rem;
}

.workspace-favorite-toggle {
  align-items: center;
  background: #f1e9de;
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--brand-steel);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  height: 2.1rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2.1rem;
}

.workspace-favorite-toggle:hover,
.workspace-favorite-toggle:focus-visible {
  background: var(--brand-orange-tint);
  border-color: var(--brand-orange);
  color: var(--brand-graphite);
}

.workspace-favorite-toggle.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

.system-notifications {
  flex: 0 0 auto;
  margin-bottom: 0.18rem;
  position: relative;
}

.system-notifications-toggle {
  align-items: center;
  background: #f1e9de;
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--brand-steel);
  display: inline-flex;
  height: 2.1rem;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 2.1rem;
}

.system-notifications-toggle:hover,
.system-notifications-toggle:focus-visible,
.system-notifications-toggle.show {
  background: var(--brand-orange-tint);
  border-color: var(--brand-orange);
  color: var(--brand-graphite);
}

.system-notifications-icon {
  fill: currentColor;
  height: 1.2rem;
  width: 1.2rem;
}

.system-notifications-badge {
  align-items: center;
  background: var(--brand-orange);
  border: 2px solid var(--brand-sand);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-width: 1.1rem;
  padding: 0.12rem 0.25rem;
  position: absolute;
  right: -0.34rem;
  top: -0.34rem;
}

.system-notifications-panel {
  border: 1px solid var(--app-border-strong);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2.5rem rgba(23, 26, 31, 0.18);
  min-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0;
  z-index: 1080;
}

.system-notifications-header {
  align-items: center;
  background: var(--app-surface-muted);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
}

.system-notifications-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.system-notifications-header strong,
.system-notification-title {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
}

.system-notifications-pwa-status {
  align-items: center;
  background: rgba(25, 169, 116, 0.12);
  border: 1px solid rgba(25, 169, 116, 0.24);
  border-radius: 999px;
  color: #0f6f4d;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 0.32rem;
  line-height: 1.2;
  max-width: 100%;
  padding: 0.16rem 0.45rem;
  white-space: nowrap;
}

.system-notifications-pwa-status [data-pwa-status-text] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-notifications-pwa-dot {
  background: var(--brand-success);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 0.42rem;
  width: 0.42rem;
}

.system-notifications-pwa-status.is-offline {
  background: rgba(255, 107, 0, 0.12);
  border-color: rgba(255, 107, 0, 0.26);
  color: #8a3d00;
}

.system-notifications-pwa-status.is-offline .system-notifications-pwa-dot {
  background: var(--brand-orange);
}

.system-notifications-pwa-status.has-error {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.24);
  color: #a71d2a;
}

.system-notifications-pwa-status.has-error .system-notifications-pwa-dot {
  background: #dc3545;
}

.system-notification-sound-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(106, 116, 132, 0.28);
  border-radius: 999px;
  color: #6a7484;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.45rem;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  width: 1.45rem;
}

.system-notification-sound-toggle svg {
  fill: currentColor;
  height: 0.9rem;
  width: 0.9rem;
}

.system-notification-sound-toggle::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 0.1rem;
  position: absolute;
  transform: rotate(-42deg);
  width: 0.96rem;
}

.system-notification-sound-toggle:hover,
.system-notification-sound-toggle:focus-visible {
  background: rgba(106, 116, 132, 0.08);
  border-color: rgba(106, 116, 132, 0.44);
}

.system-notification-sound-toggle.is-enabled {
  background: rgba(25, 169, 116, 0.16);
  border-color: rgba(25, 169, 116, 0.45);
  color: #0b6b4a;
}

.system-notification-sound-toggle.is-enabled::after {
  content: none;
}

.system-notifications-header small {
  color: var(--app-muted);
  display: block;
  font-size: 0.74rem;
}

.system-notifications-clear {
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  color: var(--brand-orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.4rem;
  white-space: nowrap;
}

.system-notifications-clear:hover,
.system-notifications-clear:focus-visible {
  background: var(--brand-orange-tint);
  color: var(--brand-graphite);
}

.system-notifications-list {
  max-height: min(26rem, calc(100vh - 7rem));
  overflow-y: auto;
}

.system-notification-form {
  margin: 0;
}

.system-notification-item {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--app-border);
  border-left: 0.22rem solid var(--brand-orange);
  color: var(--app-ink);
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.85rem;
  text-align: left;
  width: 100%;
}

.system-notification-item:hover,
.system-notification-item:focus-visible {
  background: rgba(255, 107, 0, 0.08);
}

.system-notification-item.level-success {
  border-left-color: var(--brand-success);
}

.system-notification-item.level-warning {
  border-left-color: #d98c00;
}

.system-notification-item.level-danger {
  border-left-color: #c03221;
}

.system-notification-title {
  font-size: 0.88rem;
  line-height: 1.2;
}

.system-notification-message {
  color: var(--app-muted);
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
}

.system-notification-meta {
  color: #6a7484;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.system-notifications-empty {
  color: var(--app-muted);
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.workspace-search {
  flex: 0 1 18rem;
  margin-bottom: 0.18rem;
  max-width: 20rem;
  min-width: 11rem;
  position: relative;
  z-index: 1090;
}

.workspace-search-control {
  align-items: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  cursor: text;
  display: flex;
  height: 2.1rem;
  min-width: 0;
  padding: 0 0.55rem;
}

.workspace-search-control:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 0.16rem rgba(255, 107, 0, 0.16);
}

.workspace-search-icon {
  color: #6a7484;
  fill: currentColor;
  flex: 0 0 auto;
  height: 1rem;
  margin-right: 0.38rem;
  width: 1rem;
}

.workspace-search-input {
  background: transparent;
  border: 0;
  color: var(--app-ink);
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 650;
  min-width: 0;
  outline: 0;
  padding: 0;
}

.workspace-search-input::placeholder {
  color: #6a7484;
}

.workspace-search-results {
  background: var(--app-surface);
  border: 1px solid var(--app-border-strong);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2.5rem rgba(23, 26, 31, 0.18);
  max-height: min(24rem, calc(100vh - 6rem));
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.38rem);
  width: min(24rem, calc(100vw - 1.5rem));
}

.workspace-search-result {
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  color: var(--app-ink);
  display: grid;
  gap: 0.12rem 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.66rem 0.75rem;
  text-decoration: none;
}

.workspace-search-result:hover,
.workspace-search-result:focus-visible,
.workspace-search-result.active {
  background: rgba(255, 107, 0, 0.08);
  color: var(--app-ink);
}

.workspace-search-result-title {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-search-result-module {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-search-result-action {
  align-self: center;
  color: var(--brand-orange-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  grid-row: 1 / span 2;
  text-transform: lowercase;
  white-space: nowrap;
}

.workspace-search-empty {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 650;
  margin: 0;
  padding: 0.85rem;
  text-align: center;
}

.app-content {
  min-width: 0;
  overflow: auto;
  padding: 1.35rem;
}

.app-page-title-row {
  align-items: center;
  display: flex;
  gap: 0.72rem;
  min-width: 0;
}

.app-page-title-row h1 {
  min-width: 0;
}

.app-page-title-row .workspace-favorite-form {
  margin-bottom: 0;
}

.app-page-back {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.45rem;
  color: var(--brand-graphite);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.35rem;
  justify-content: center;
  text-decoration: none;
  width: 2.35rem;
}

.app-page-back-icon {
  background-color: currentColor;
  display: block;
  height: 2rem;
  mask: url("../img/ui/mundoloc-back-arrow.c9d8a18f9ecd.png") center / contain no-repeat;
  width: 2rem;
  -webkit-mask: url("../img/ui/mundoloc-back-arrow.c9d8a18f9ecd.png") center / contain no-repeat;
}

.app-page-back:hover,
.app-page-back:focus-visible {
  background: var(--brand-orange-tint);
  color: var(--brand-graphite);
}

.home-empty {
  min-height: calc(100vh - var(--app-tabs-height) - 2.7rem);
}

.home-menu-panel {
  max-width: 68rem;
}

.home-menu-heading {
  margin-bottom: 1rem;
}

.home-menu-heading h1 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.home-menu-heading p {
  color: var(--app-muted);
  margin: 0;
}

.home-submenu-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}

.home-favorite-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}

.home-submenu-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  color: var(--app-ink);
  display: grid;
  gap: 0.25rem;
  min-height: 5.35rem;
  padding: 0.9rem;
  text-decoration: none;
}

.home-submenu-card:hover {
  border-color: var(--brand-orange);
  color: var(--app-ink);
  box-shadow: 0 0.6rem 1.35rem rgba(55, 55, 55, 0.08);
}

.home-submenu-card.disabled {
  color: var(--app-muted);
  opacity: 0.7;
}

.home-submenu-card strong {
  font-family: var(--font-title);
  font-size: 0.96rem;
  font-weight: 800;
}

.home-submenu-card small {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.home-favorite-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  color: var(--app-ink);
  display: grid;
  gap: 0.25rem;
  min-height: 5.35rem;
  padding: 0.9rem 0.9rem 0.9rem 2.55rem;
  position: relative;
  text-decoration: none;
}

.home-favorite-card::before {
  color: var(--brand-orange);
  content: "\2605";
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  left: 0.9rem;
  position: absolute;
  top: 0.95rem;
}

.home-favorite-card:hover {
  border-color: var(--brand-orange);
  color: var(--app-ink);
  box-shadow: 0 0.6rem 1.35rem rgba(55, 55, 55, 0.08);
}

.home-favorite-card strong {
  font-family: var(--font-title);
  font-size: 0.96rem;
  font-weight: 800;
}

.home-favorite-card small {
  color: var(--app-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.queue-tile,
.work-panel,
.auth-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
}

.queue-tile {
  display: grid;
  gap: 0.65rem;
  min-height: 8.25rem;
  padding: 0.9rem;
}

.queue-tile strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 800;
}

.queue-tile small {
  color: var(--app-muted);
}

.queue-list {
  --bs-list-group-bg: transparent;
  --bs-list-group-border-color: var(--app-border);
  font-size: 0.86rem;
}

.list-group-item.active {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.text-bg-success {
  background-color: var(--brand-success) !important;
}

.alert-success {
  --bs-alert-color: var(--brand-graphite);
  --bs-alert-bg: var(--brand-success-tint);
  --bs-alert-border-color: rgba(25, 169, 116, 0.35);
}

.work-panel {
  padding: 0.9rem;
}

.time-clock-stat {
  color: var(--brand-graphite);
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1;
}

.time-clock-qr-card {
  background: #ffffff;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.5rem;
  display: inline-grid;
  gap: 0.45rem;
  justify-items: center;
  max-width: 20rem;
  padding: 1.1rem;
  width: 100%;
}

.time-clock-qr-brand {
  color: var(--brand-orange-dark);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.time-clock-qr-name {
  color: var(--brand-graphite);
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.15;
}

.time-clock-qr-sector,
.time-clock-qr-caption {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.time-clock-qr-svg svg {
  display: block;
  height: auto;
  max-width: 14rem;
  width: 100%;
}

.time-clock-kiosk {
  background: var(--app-bg);
  display: grid;
  grid-template-rows: minmax(0, 70%) minmax(0, 30%);
  height: 100vh;
  height: 100dvh;
  inset: 0;
  min-height: 0;
  overflow: hidden;
  position: fixed;
}

.time-clock-kiosk-camera {
  background: #111827;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.time-clock-reader {
  height: 100% !important;
  inset: 0;
  overflow: hidden;
  position: absolute !important;
  width: 100% !important;
}

.time-clock-reader > div,
#timeClockQrReader__scan_region,
#timeClockQrReader__scan_region > video,
.time-clock-reader video {
  height: 100% !important;
  width: 100% !important;
}

.time-clock-reader video {
  object-fit: cover;
}

#timeClockQrReader__dashboard {
  display: none !important;
}

#timeClockQrReader__status_span,
.time-clock-reader [id$="__status_span"] {
  display: none !important;
}

.time-clock-camera-overlay {
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.72));
  color: #ffffff;
  display: flex;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  position: absolute;
  text-align: center;
}

.time-clock-camera-overlay span {
  background: rgba(23, 26, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  padding: 0.55rem 0.8rem;
}

.time-clock-camera-reactivate {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 1rem;
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.28);
  color: #30343a;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  left: 50%;
  min-height: 10rem;
  padding: 1.05rem 1.25rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(15rem, calc(100vw - 2rem));
  z-index: 4;
}

.time-clock-camera-reactivate[hidden] {
  display: none !important;
}

.time-clock-camera-reactivate:focus-visible {
  box-shadow:
    0 0 0 0.25rem rgba(255, 106, 0, 0.28),
    0 1.2rem 3.5rem rgba(0, 0, 0, 0.28);
  outline: 0;
}

.time-clock-camera-reactivate svg {
  display: block;
  fill: currentColor;
  height: 6.5rem;
  width: 6.5rem;
}

.time-clock-camera-reactivate span {
  font-size: 1rem;
  font-weight: 900;
}

.time-clock-kiosk-identify-toast {
  background: rgba(237, 251, 244, 0.97);
  border: 1px solid rgba(25, 169, 116, 0.32);
  border-radius: 0.55rem;
  box-shadow: 0 0.9rem 2.4rem rgba(15, 23, 42, 0.22);
  color: var(--brand-success-dark);
  display: grid;
  gap: 0.18rem;
  left: 50%;
  line-height: 1.2;
  max-width: min(32rem, calc(100vw - 1.5rem));
  padding: 0.65rem 0.85rem;
  position: fixed;
  text-align: center;
  top: 0.85rem;
  transform: translateX(-50%);
  width: max-content;
  z-index: 1050;
}

.time-clock-kiosk-identify-toast[hidden] {
  display: none !important;
}

.time-clock-kiosk-identify-toast strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.time-clock-kiosk-identify-toast span {
  color: var(--app-text);
  font-size: 0.9rem;
  font-weight: 900;
}

.time-clock-kiosk-identify-toast small {
  color: var(--app-muted);
  font-weight: 700;
}

.time-clock-kiosk-actions {
  background: #ffffff;
  border-top: 1px solid var(--app-border);
  display: grid;
  gap: 0.55rem;
  grid-auto-rows: min-content;
  min-height: 0;
  overflow: hidden;
  padding: 0.7rem;
}

.time-clock-kiosk-status {
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  color: var(--app-muted);
  font-weight: 800;
  line-height: 1.2;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  text-align: center;
}

.time-clock-kiosk-status[data-tone="success"] {
  background: var(--brand-success-tint);
  border-color: rgba(25, 169, 116, 0.28);
  color: var(--brand-success-dark);
}

.time-clock-kiosk-status[data-tone="danger"] {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.25);
  color: #a61e2d;
}

.time-clock-last-punch {
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  display: flex;
  gap: 0.65rem;
  min-height: 3.4rem;
  padding: 0.55rem 0.65rem;
}

.time-clock-kiosk-current-time {
  color: var(--app-text);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.time-clock-kiosk-buttons {
  align-items: stretch;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.time-clock-kiosk-buttons .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 3.1rem;
  white-space: nowrap;
}

.time-clock-last-punch img {
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  height: 3.5rem;
  object-fit: cover;
  width: 4.8rem;
}

@media (max-height: 680px) {
  .time-clock-camera-overlay {
    padding: 0.6rem;
  }

  .time-clock-camera-overlay span {
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
  }

  .time-clock-camera-reactivate {
    min-height: 8.2rem;
    padding: 0.85rem 1rem;
    width: min(12.5rem, calc(100vw - 2rem));
  }

  .time-clock-camera-reactivate svg {
    height: 5rem;
    width: 5rem;
  }

  .time-clock-camera-reactivate span {
    font-size: 0.92rem;
  }

  .time-clock-kiosk-actions {
    gap: 0.4rem;
    padding: 0.5rem;
  }

  .time-clock-kiosk-status {
    min-height: 2.3rem;
    padding: 0.45rem 0.6rem;
  }

  .time-clock-last-punch {
    min-height: 3rem;
    padding: 0.45rem 0.55rem;
  }

  .time-clock-kiosk-current-time {
    font-size: 0.98rem;
  }

  .time-clock-kiosk-buttons .btn {
    min-height: 2.7rem;
  }

  .time-clock-last-punch img {
    height: 3rem;
    width: 4.1rem;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .app-shell,
  .app-main,
  .app-content {
    display: block;
    min-height: auto;
    overflow: visible;
    padding: 0;
  }

  .app-sidebar,
  .workspace-tab-strip,
  .app-content > .d-flex,
  .work-panel:not(:has(.time-clock-qr-print-area)) {
    display: none !important;
  }

  .work-panel {
    border: 0;
    box-shadow: none;
  }

  .time-clock-qr-card {
    border: 1px solid #111827;
    max-width: 9cm;
  }
}

.contract-step-tools {
  flex: 0 0 auto;
}

.contract-utility-tabs .badge {
  border: 1px solid var(--app-border);
}

.contract-title-field {
  flex: 0 0 auto;
  width: 8.75rem;
}

.contract-title-field .form-control {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.table {
  --bs-table-hover-bg: rgba(255, 107, 0, 0.08);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.table thead th {
  background: var(--app-surface-muted);
  border-bottom-color: var(--app-border-strong);
  color: var(--brand-graphite);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.table-sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.28rem;
  min-height: 1.5rem;
  text-decoration: none;
}

.table-sort-link:hover,
.table-sort-link.active {
  color: var(--brand-orange-dark);
}

.table-sort-link span {
  display: inline-block;
  min-width: 0.7rem;
}

.badge {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
}

.form-label,
.form-check-label {
  font-family: var(--font-body);
  font-weight: 600;
}

.table > :not(caption) > * > * {
  padding: 0.58rem 0.65rem;
}

.table-action-group {
  display: inline-flex;
  gap: 0.25rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.icon-action {
  align-items: center;
  border-radius: 0.35rem;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.icon-action svg {
  flex: 0 0 auto;
  height: 1.05rem;
  stroke-width: 2.35;
  width: 1.05rem;
}

.min-w-0 {
  min-width: 0;
}

.logistics-board {
  min-width: 0;
}

.logistics-kanban {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(18rem, 1fr));
}

.logistics-column {
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  min-width: 0;
  padding: 0.75rem;
}

.logistics-column-route {
  background: #ffffff;
  border-color: rgba(255, 107, 0, 0.36);
}

.logistics-column-done {
  background: rgba(25, 169, 116, 0.08);
}

.logistics-column-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.logistics-column-header h3 {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0;
}

.logistics-column-header small {
  color: var(--app-muted);
  display: block;
  font-size: 0.74rem;
  margin-top: 0.15rem;
}

.logistics-card-list {
  display: grid;
  gap: 0.65rem;
}

.logistics-card {
  background: #ffffff;
  border: 1px solid rgba(216, 203, 187, 0.82);
  border-radius: 0.5rem;
  box-shadow: 0 0.45rem 1rem rgba(23, 26, 31, 0.08);
  display: grid;
  gap: 0.65rem;
  padding: 0.72rem;
}

.logistics-card.is-dragging {
  opacity: 0.72;
  outline: 2px solid rgba(255, 107, 0, 0.45);
  outline-offset: 2px;
}

.logistics-card-top {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
  min-width: 0;
}

.logistics-card-handle {
  align-items: center;
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  border-radius: 0.4rem;
  color: var(--app-muted);
  cursor: grab;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  touch-action: none;
  width: 2rem;
}

.logistics-card-handle:active {
  cursor: grabbing;
}

.logistics-card-body {
  display: grid;
  gap: 0.48rem;
}

.logistics-card-summary {
  align-items: start;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.logistics-card-address {
  color: inherit;
  display: -webkit-box;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.logistics-card-address:hover,
.logistics-card-address:focus {
  color: var(--brand-orange-dark);
  text-decoration: underline;
}

.service-order-execute-summary {
  align-items: start;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.logistics-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.logistics-column-empty {
  color: var(--app-muted);
  font-size: 0.86rem;
  margin: 0;
  padding: 1rem 0.5rem;
  text-align: center;
}

.offline-context-status {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-left: 0.28rem solid var(--brand-success);
  border-radius: 0.5rem;
  color: var(--app-muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.65rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.65rem;
}

.offline-context-status[hidden] {
  display: none !important;
}

.offline-context-status[data-tone="success"] {
  border-left-color: var(--brand-success);
  color: var(--brand-success-dark);
}

.offline-context-status[data-tone="warning"] {
  border-left-color: var(--brand-orange);
  color: #8a3d00;
}

.offline-context-status[data-tone="danger"] {
  border-left-color: #dc3545;
  color: #a71d2a;
}

.offline-route-shell[hidden] {
  display: none !important;
}

.offline-route-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.offline-order-list,
.offline-line-list {
  display: grid;
  gap: 0.65rem;
}

.offline-order-card,
.offline-line-card {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
}

.offline-order-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.offline-line-card strong,
.offline-line-card span,
.offline-line-card small {
  display: block;
}

.offline-line-card small {
  color: var(--app-muted);
}

.signature-pad {
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  height: 180px;
  touch-action: none;
  width: 100%;
}

.service-order-photo-preview {
  aspect-ratio: 4 / 3;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  object-fit: cover;
  width: min(100%, 220px);
}

.service-order-camera-video,
.service-order-camera-preview {
  aspect-ratio: 4 / 3;
  background: #111111;
  border-radius: 0.5rem;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 767.98px) {
  .service-order-execute-header {
    align-items: flex-start;
    flex-direction: row !important;
  }

  .offline-order-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .logistics-kanban {
    grid-auto-columns: calc(100% - 2.25rem);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 0.65rem;
    scroll-snap-type: x mandatory;
  }

  .logistics-column {
    scroll-snap-align: start;
  }
}

.auth-page {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent 36%),
    var(--brand-concrete);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem;
}

.auth-panel {
  box-shadow: 0 1.4rem 3rem rgba(55, 55, 55, 0.08);
  max-width: 26rem;
  padding: 1.5rem;
  width: 100%;
}

.customer-intake-page {
  background:
    linear-gradient(90deg, rgba(255, 107, 0, 0.08), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #ffffff 0%, #f8f4ed 100%);
  color: var(--brand-graphite);
}

.customer-intake-shell {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 100svh;
  padding: 1.5rem;
}

.customer-intake-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 203, 187, 0.52);
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 4rem rgba(23, 26, 31, 0.09);
  max-width: 31.25rem;
  padding: 1.35rem;
  width: 100%;
}

.customer-intake-card,
.customer-intake-card * {
  box-sizing: border-box;
}

.customer-intake-brand {
  align-items: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin-bottom: 1rem;
  text-align: center;
}

.customer-intake-logo {
  height: auto;
  max-width: 14.5rem;
  width: 62%;
}

.customer-intake-card h1,
.customer-intake-card h2 {
  color: var(--brand-graphite);
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  text-align: center;
}

.customer-intake-step {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.customer-intake-step[hidden] {
  display: none !important;
}

.customer-intake-page .d-none {
  display: none !important;
}

.customer-intake-page .visually-hidden {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.customer-intake-step + .customer-intake-step {
  margin-top: 1.4rem;
}

.customer-intake-card[data-js-ready="true"] .customer-intake-step + .customer-intake-step {
  margin-top: 0;
}

.customer-intake-step-subtitle {
  font-size: 1.05rem;
  margin: -0.35rem 0 0.2rem;
  text-align: center;
}

.customer-intake-success-message {
  color: rgba(44, 52, 64, 0.76);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  margin: -0.2rem 0 0;
  text-align: center;
}

.customer-intake-field {
  min-width: 0;
}

.customer-intake-card [data-customer-fields] {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.customer-intake-card .form-control,
.customer-intake-card .form-select {
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid #c9c4bc;
  border-radius: 0.35rem;
  color: var(--brand-graphite);
  font-size: 0.98rem;
  font-weight: 650;
  min-height: 3rem;
  padding: 0.55rem 0.72rem;
  width: 100%;
}

.customer-intake-card textarea.form-control {
  min-height: 5.8rem;
}

.customer-intake-card .form-control::placeholder {
  color: rgba(44, 52, 64, 0.46);
  font-weight: 650;
}

.customer-intake-card .form-control:focus,
.customer-intake-card .form-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.16);
}

.customer-intake-radio-group {
  display: grid;
  gap: 0.45rem;
  margin: 1.15rem 0 1.55rem;
  padding-left: 2.35rem;
}

.customer-intake-radio {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.customer-intake-radio input {
  accent-color: var(--brand-orange);
  height: 1rem;
  width: 1rem;
}

.customer-intake-actions {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 0.25rem;
}

.customer-intake-actions-single {
  grid-template-columns: 1fr;
}

.customer-intake-button {
  align-items: center;
  border: 0;
  border-radius: 0.35rem;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  min-height: 3.2rem;
  padding: 0.62rem 0.95rem;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.customer-intake-button:hover {
  box-shadow: 0 0.75rem 1.45rem rgba(23, 26, 31, 0.12);
  transform: translateY(-1px);
}

.customer-intake-button:focus-visible {
  outline: 0.18rem solid rgba(255, 107, 0, 0.35);
  outline-offset: 0.12rem;
}

.customer-intake-button-primary {
  background: var(--brand-orange);
  color: #ffffff;
}

.customer-intake-button-primary:hover,
.customer-intake-button-primary:disabled {
  background: var(--brand-orange-dark);
  color: #ffffff;
}

.customer-intake-button-back {
  background: var(--brand-graphite);
  color: #ffffff;
}

.customer-intake-button-back:hover {
  background: var(--brand-steel);
  color: #ffffff;
}

.customer-intake-lookup {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) 9.8rem;
}

.customer-intake-button-lookup {
  min-height: 3rem;
}

.customer-intake-lookup-message {
  color: var(--brand-success-dark);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 1rem;
}

.customer-intake-lookup-message.is-error {
  color: #b42318;
}

.customer-intake-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(5.4rem, 0.38fr) minmax(0, 1fr);
}

.customer-intake-checkbox {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0.05rem 0 0.3rem;
}

.customer-intake-checkbox input {
  accent-color: var(--brand-orange);
}

.customer-intake-inline-worksite {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  margin-top: 0.35rem;
}

.customer-intake-inline-worksite[hidden] {
  display: none !important;
}

.customer-intake-inline-worksite h2 {
  margin-top: 0.3rem;
}

.customer-intake-document-field {
  margin-bottom: 0.75rem;
  position: relative;
}

.customer-intake-document-input {
  border: 0;
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.customer-intake-document-input:focus-visible + .customer-intake-document-button {
  outline: 0.18rem solid rgba(255, 107, 0, 0.35);
  outline-offset: 0.12rem;
}

.customer-intake-document-input:disabled {
  pointer-events: none;
}

.customer-intake-document-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(44, 52, 64, 0.24);
  border-radius: 0.5rem;
  color: var(--brand-graphite);
  cursor: pointer;
  display: grid;
  gap: 0.22rem;
  justify-items: center;
  min-height: 3.55rem;
  padding: 0.62rem 0.75rem;
  text-align: center;
}

.customer-intake-document-button:hover {
  border-color: var(--brand-orange);
}

.customer-intake-document-button span {
  font-weight: 750;
}

.customer-intake-document-button small {
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 650;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 992px) {
  html.sidebar-collapsed {
    --app-sidebar-width: var(--app-sidebar-collapsed-width);
  }

  html.sidebar-collapsed .app-sidebar {
    align-items: center;
    gap: 1rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  html.sidebar-collapsed .app-sidebar .app-brand {
    justify-items: center;
    padding-bottom: 0.25rem;
    width: 100%;
  }

  html.sidebar-collapsed .app-brand-logo-full,
  html.sidebar-collapsed .app-brand-text,
  html.sidebar-collapsed .app-sidebar-link-label,
  html.sidebar-collapsed .app-sidebar-user,
  html.sidebar-collapsed .app-sidebar-logout-label,
  html.sidebar-collapsed .app-sidebar-toggle-label {
    display: none;
  }

  html.sidebar-collapsed .app-brand-logo-compact {
    display: block;
  }

  html.sidebar-collapsed .app-sidebar-nav,
  html.sidebar-collapsed .app-sidebar-footer,
  html.sidebar-collapsed .app-sidebar-footer form {
    width: 100%;
  }

  html.sidebar-collapsed .app-sidebar-link {
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.48rem;
  }

  html.sidebar-collapsed .app-sidebar-link.active {
    box-shadow: inset 3px 0 0 var(--brand-orange);
  }

  html.sidebar-collapsed .app-sidebar-icon {
    height: 2.15rem;
    width: 2.15rem;
  }

  html.sidebar-collapsed .app-sidebar-svg {
    height: 1.32rem;
    width: 1.32rem;
  }

  html.sidebar-collapsed .app-sidebar-logout,
  html.sidebar-collapsed .app-sidebar-toggle {
    justify-content: center;
    padding: 0.45rem;
  }

  html.sidebar-collapsed .app-sidebar-toggle-icon {
    transform: rotate(180deg);
  }
}

@media (max-width: 991.98px) {
  html.sidebar-drawer-open,
  html.sidebar-drawer-open body {
    overflow: hidden;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .app-sidebar {
    box-shadow: 1.25rem 0 2.5rem rgba(23, 26, 31, 0.24);
    inset: 0 auto 0 0;
    max-height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    position: fixed;
    transform: translateX(-105%);
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
    width: min(19.5rem, 86vw);
    z-index: 1090;
  }

  html.sidebar-drawer-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar-link {
    min-height: 3.35rem;
  }

  .app-sidebar-footer {
    margin-top: auto;
  }

  .app-sidebar-toggle {
    display: flex;
  }

  .app-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
  }

  .workspace-tab-strip {
    align-items: center;
    display: grid;
    gap: 0.45rem;
    grid-template-areas:
      "menu title add favorite notifications search"
      "tabs tabs tabs tabs tabs tabs";
    grid-template-columns: auto minmax(0, 1fr) auto auto auto minmax(11rem, 15rem);
    padding: 0.45rem 0.75rem 0.3rem;
  }

  .workspace-sidebar-open {
    display: inline-flex;
    grid-area: menu;
    margin-bottom: 0;
  }

  .workspace-current-title {
    display: block;
    grid-area: title;
  }

  .workspace-tabs-viewport {
    grid-area: tabs;
  }

  .workspace-tab-add {
    grid-area: add;
    margin-bottom: 0;
  }

  .workspace-favorite-form {
    grid-area: favorite;
    margin-bottom: 0;
  }

  .system-notifications {
    grid-area: notifications;
    margin-bottom: 0;
  }

  .workspace-search {
    flex: 0 0 auto;
    grid-area: search;
    margin-bottom: 0;
    max-width: 15rem;
    min-width: 11rem;
  }

  .app-content {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  .customer-intake-shell {
    align-items: start;
    padding: 1rem;
  }

  .customer-intake-card {
    padding: 1.15rem;
  }

  .customer-intake-lookup,
  .customer-intake-actions {
    grid-template-columns: 1fr;
  }

  .customer-intake-logo {
    width: 70%;
  }
}

@media (max-width: 575.98px) {
  .workspace-tab-strip {
    gap: 0.35rem;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
    padding: 0.4rem 0.5rem 0.25rem;
  }

  .workspace-sidebar-open {
    padding: 0;
    width: 2.25rem;
  }

  .workspace-sidebar-open-label {
    display: none;
  }

  .workspace-current-title {
    font-size: 0.84rem;
  }

  .workspace-tab {
    font-size: 0.78rem;
    height: 2.05rem;
    max-width: 10rem;
    min-width: 5.8rem;
  }

  .workspace-tab-close {
    top: 0.34rem;
  }

  .workspace-search {
    max-width: 2.15rem;
    min-width: 2.15rem;
  }

  .workspace-search:not(:focus-within) .workspace-search-control {
    cursor: pointer;
    justify-content: center;
    padding: 0;
  }

  .workspace-search:not(:focus-within) .workspace-search-icon {
    margin-right: 0;
  }

  .workspace-search:not(:focus-within) .workspace-search-input {
    flex: 0 0 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    width: 0;
  }

  .workspace-search:focus-within {
    max-width: none;
    min-width: 0;
    position: absolute;
    right: 0.5rem;
    top: 0.4rem;
    width: calc(100vw - 1rem);
  }

  .workspace-search:focus-within .workspace-search-control {
    height: 2.25rem;
  }

  .workspace-search:focus-within .workspace-search-input {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace-search-results {
    width: min(24rem, calc(100vw - 1rem));
  }
}
.internal-assistant {
  bottom: 1rem;
  position: fixed;
  right: 1rem;
  z-index: 1080;
}

.internal-assistant-launcher {
  align-items: center;
  background: #14532d;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.24);
  color: #fff;
  display: none;
  font-weight: 700;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.internal-assistant.is-minimized .internal-assistant-launcher {
  display: flex;
}

.internal-assistant-minimized .internal-assistant-launcher {
  display: flex;
}

.internal-assistant-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  max-height: min(42rem, calc(100vh - 2rem));
  overflow: hidden;
  width: min(27rem, calc(100vw - 2rem));
}

.internal-assistant.is-minimized .internal-assistant-panel {
  display: none;
}

.internal-assistant-minimized .internal-assistant-panel {
  display: none;
}

.internal-assistant-header {
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.875rem;
}

.internal-assistant-header span {
  color: #64748b;
  display: block;
  font-size: 0.78rem;
}

.internal-assistant-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.75rem 0.875rem 0;
}

.internal-assistant-quick-actions button,
.internal-assistant-feedback button {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.internal-assistant-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 14rem;
  overflow-y: auto;
  padding: 0.875rem;
}

.internal-assistant-empty {
  color: #64748b;
  font-size: 0.875rem;
  padding: 2rem 0.75rem;
  text-align: center;
}

.internal-assistant-message {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.internal-assistant-message.is-user {
  align-self: flex-end;
}

.internal-assistant-message.is-assistant {
  align-self: flex-start;
}

.internal-assistant-message-body {
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.625rem 0.75rem;
  white-space: pre-wrap;
}

.internal-assistant-message.is-status .internal-assistant-message-body {
  color: #475569;
  font-style: italic;
}

.internal-assistant-message.is-user .internal-assistant-message-body {
  background: #14532d;
  color: #fff;
}

.internal-assistant-message.is-assistant .internal-assistant-message-body {
  background: #f1f5f9;
  color: #0f172a;
}

.internal-assistant-answer {
  white-space: pre-wrap;
}

.internal-assistant-section,
.internal-assistant-recommendations,
.internal-assistant-table-section,
.internal-assistant-suggestions {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 0.625rem;
  padding-top: 0.5rem;
  white-space: normal;
}

.internal-assistant-section strong,
.internal-assistant-recommendations > strong,
.internal-assistant-table-section strong,
.internal-assistant-suggestions strong {
  display: block;
  font-size: 0.76rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.internal-assistant-recommendations {
  display: grid;
  gap: 0.5rem;
}

.internal-assistant-recommendation {
  background: #ffffff;
  border: 1px solid rgba(20, 83, 45, 0.18);
  border-left: 3px solid #14532d;
  border-radius: 0.4rem;
  padding: 0.5rem;
}

.internal-assistant-recommendation-title {
  font-weight: 700;
}

.internal-assistant-recommendation-meta {
  color: #64748b;
  font-size: 0.74rem;
  margin-top: 0.1rem;
  text-transform: capitalize;
}

.internal-assistant-recommendation p {
  margin: 0.35rem 0 0;
}

.internal-assistant-recommendation-list {
  margin-top: 0.35rem;
}

.internal-assistant-recommendation-list span {
  color: #475569;
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
}

.internal-assistant-recommendation-list ul {
  margin: 0.1rem 0 0;
  padding-left: 1rem;
}

.internal-assistant-section ul {
  margin: 0;
  padding-left: 1rem;
}

.internal-assistant-section.is-warning {
  color: #92400e;
}

.internal-assistant-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.internal-assistant-table-wrap table {
  border-collapse: collapse;
  font-size: 0.75rem;
  min-width: 100%;
}

.internal-assistant-table-wrap th,
.internal-assistant-table-wrap td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.25rem 0.375rem;
  text-align: left;
  vertical-align: top;
}

.internal-assistant-suggestions div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.internal-assistant-suggestions button {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 999px;
  color: #14532d;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.internal-assistant-feedback {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.internal-assistant-form {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr auto;
  padding: 0.75rem;
}

.internal-assistant-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.625rem;
  resize: vertical;
}

.assistant-audit-pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  margin: 0.375rem 0 0;
  max-height: 14rem;
  max-width: 28rem;
  overflow: auto;
  padding: 0.5rem;
  white-space: pre-wrap;
}

@media (max-width: 575.98px) {
  .internal-assistant {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .internal-assistant-panel {
    max-height: calc(100vh - 1.5rem);
  }
}

.supplier-type-results {
  left: 0;
  max-height: 14rem;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 1020;
}

.supplier-type-chip-remove {
  font-size: 0.6rem;
  height: 0.7rem;
  width: 0.7rem;
}

.offline-page {
  align-items: center;
  background: var(--app-bg);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.offline-panel {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  max-width: 34rem;
  padding: 2rem;
}

.offline-logo {
  display: block;
  height: auto;
  margin-bottom: 1.5rem;
  max-width: 12rem;
}

.offline-panel h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.offline-panel p {
  color: var(--app-muted);
  margin-bottom: 1.5rem;
}
