/* source: assets/css/tokens.css */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/computer-modern@0.1.3/cmu-typewriter-text-variable-width.css");

:root {
  color-scheme: light;
  --font-ui:
    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-technical:
    "CMU Typewriter Text Variable Width", "Courier New", monospace;
  --font-size-caption: 10px;
  --font-size-label: 11px;
  --font-size-body: 12px;
  --font-size-subtitle: 14px;
  --font-size-title: 16px;
  --font-size-display: 18px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --bg: #f4f6f8;
  --panel: #fff;
  --text: #17212f;
  --text-strong: #1d2939;
  --text-secondary: #475467;
  --muted: #667085;
  --text-disabled: #98a2b3;
  --line: #e4e7ec;
  --line2: #eef1f4;
  --surface-subtle: #f8fafc;
  --surface-hover: #f8fbff;
  --accent: #1f6feb;
  --accent-soft: #edf4ff;
  --accent-border: #9fc1ff;
  --success: #067647;
  --success-bg: #ecfdf3;
  --success-border: #86efac;
  --warning: #9a6700;
  --warning-bg: #fff7e6;
  --warning-strong: #92400e;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdd3;
  --green: #dcfce7;
  --green-border: #86efac;
  --highlight: #ffe66d;
  --cc: #f8fafc;
  --head: #f5f7fb;
  --radius-xs: 2px;
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius-card: 14px;
  --radius-panel: 18px;
  --radius-modal: var(--radius-panel);
  --radius-round: 999px;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
  --shadow-modal: 0 24px 70px rgba(16, 24, 40, 0.24);
  --shadow-color-faint: rgba(16, 24, 40, 0.02);
  --shadow-color-soft: rgba(16, 24, 40, 0.07);
  --shadow-color-medium: rgba(15, 23, 42, 0.12);
  --shadow-color-strong: rgba(16, 24, 40, 0.24);
  --overlay: rgba(15, 23, 42, 0.32);
  --overlay-soft: rgba(15, 23, 42, 0.18);
  --focus-ring: rgba(23, 33, 47, 0.08);
  --accent-tint: rgba(31, 111, 235, 0.08);
  --success-tint: rgba(22, 163, 74, 0.14);
  --danger-tint: rgba(220, 38, 38, 0.16);
  --warning-tint: rgba(245, 158, 11, 0.18);
  --panel-translucent: rgba(255, 255, 255, 0.55);
  --panel-opaque: rgba(255, 255, 255, 0.96);
  --line-translucent: rgba(217, 226, 236, 0.7);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --code-w: 150px;
  --table-name-min: 280px;
  --table-uom-min: 72px;
  --table-uom-max: 104px;
  --table-qty-min: 96px;
  --table-qty-max: 128px;
  --table-price-min: 112px;
  --table-price-max: 144px;
  --table-total-min: 120px;
  --table-total-max: 160px;
  --level-controls-gap: 20px;
  --side-btn-size: 32px;
  --side-icon-size: 20px;
  --action-gap: 10px;
  --action-group-gap: 16px;
  --collapsed-side-offset: 44px;
  --action-rail-width: var(--side-btn-size);
  --brand-red: #b40129;
  --z-header: 20;
  --z-actions: 60;
  --z-popover: 5001;
  --z-modal: 6000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font: inherit;
}
td[data-format="number"],
td[data-format="money"],
.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* source: assets/css/base.css */
/* Ultrabook 38.3 adaptive App Shell and stable action-rail layout. */
body,
.app,
.topbar,
.panel,
.panel-body,
div,
span {
  caret-color: transparent;
}
body input,
body textarea,
body select,
body [contenteditable="true"] {
  caret-color: auto;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--font-size-body);
  line-height: 1.25;
  height: 100vh;
  overflow: hidden;
}
.app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
@supports (height: 100dvh) {
  body,
  .app {
    height: 100dvh;
  }
}
body.estimate-mode .app {
  max-width: none;
  margin: 0;
  padding-inline: var(--space-2);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 52px;
  margin-bottom: 8px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  transition:
    height 0.18s ease,
    margin 0.18s ease,
    opacity 0.18s ease;
}
body.topbar-collapsed .topbar {
  height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.header-logo {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  line-height: 1;
}
.header-logo img {
  height: 28px;
  max-height: 36px;
  width: auto;
  display: block;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--action-rail-width) minmax(0, 1fr) var(--action-rail-width);
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.app-shell[data-has-actions="false"][data-has-end-actions="false"] {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.app-shell[data-has-actions="true"][data-has-end-actions="false"] {
  grid-template-columns: var(--action-rail-width) minmax(0, 1fr);
}
.app-shell[data-has-actions="false"][data-has-end-actions="true"] {
  grid-template-columns: minmax(0, 1fr) var(--action-rail-width);
}
.app-action-rail {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  scrollbar-width: thin;
}
.app-action-rail[aria-hidden="true"] {
  display: none;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel-body {
  padding: 14px;
  height: 100%;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.table-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.table-stage .table-wrap,
.table-stage .simple-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: auto;
}
.side-info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: start;
  padding: 5px 0;
  border-bottom: 1px solid var(--line2);
}
.side-info-row:last-child {
  border-bottom: 0;
}
.side-info-label {
  font-size: var(--font-size-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: var(--weight-heavy);
}
.side-info-value {
  font-size: var(--font-size-body);
  color: var(--text);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}
.app select,
.app input[type="search"] {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
  padding: 0 10px;
  color: var(--text-strong);
  outline: none;
  font: inherit;
  font-size: var(--font-size-body);
}
.app input[type="search"] {
  min-width: 230px;
}
.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius-card);
  font-weight: var(--weight-semibold);
}
.muted {
  color: var(--muted);
}
.empty-state-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 24px;
}
.empty-state {
  max-width: 460px;
  text-align: center;
  color: var(--text-secondary);
}
.empty-state-title {
  font-size: var(--font-size-title);
  font-weight: var(--weight-heavy);
  color: var(--text);
  margin-bottom: 8px;
}
.filter-mark {
  background: var(--highlight);
  color: inherit;
  border-radius: var(--radius-xs);
  padding: 0 1px;
}
.best {
  background: var(--green);
  box-shadow: inset 0 0 0 1px var(--green-border);
}
.empty {
  color: var(--text-disabled);
}
.name-cell {
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.name-cell .id {
  color: var(--text-disabled);
  flex: 0 0 auto;
}
.name-cell .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-weight: var(--weight-bold);
  min-width: 0;
}
@media (max-width: 640px) {
  .app {
    padding: 8px;
  }
  .header-logo {
    display: none;
  }
  .app-shell {
    gap: var(--space-1);
  }
  .app-shell[data-has-actions="false"][data-has-end-actions="false"] {
    gap: 0;
  }
  .panel-body {
    padding: 10px;
  }
}
.create-drop-marker {
  position: fixed;
  z-index: 6000;
  pointer-events: none;
  display: none;
  align-items: center;
  height: 0;
}
.create-drop-marker .dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-round);
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-tint);
  flex: 0 0 auto;
}
.create-drop-marker .line {
  width: 150px;
  height: 2px;
  background: var(--success);
  border-radius: var(--radius-round);
  margin-left: 2px;
  flex: 0 0 auto;
}
.create-drop-marker .label {
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: var(--radius-round);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px var(--shadow-color-medium);
  font-size: var(--font-size-label);
  font-weight: var(--weight-heavy);
  color: var(--success);
  white-space: nowrap;
}
.create-drop-marker.warn .dot,
.create-drop-marker.warn .line {
  background: var(--warning);
}
.create-drop-marker.warn .dot {
  box-shadow: 0 0 0 3px var(--warning-tint);
}
.create-drop-marker.warn .label {
  color: var(--warning);
}
.create-drop-marker.invalid .dot,
.create-drop-marker.invalid .line {
  background: var(--danger);
}
.create-drop-marker.invalid .dot {
  box-shadow: 0 0 0 3px var(--danger-tint);
}
.create-drop-marker.invalid .label {
  color: var(--danger);
}
.detail-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.detail-modal {
  width: min(820px, 100%);
  max-height: min(78vh, 720px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 0 24px 70px var(--shadow-color-strong);
  display: flex;
  flex-direction: column;
}
@supports (height: 100dvh) {
  .detail-modal {
    max-height: min(78dvh, 720px);
  }
}
.detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line2);
  background: var(--surface-subtle);
}
.detail-modal-title {
  font-weight: var(--weight-heavy);
  font-size: var(--font-size-subtitle);
  color: var(--text);
}
.detail-modal-sub {
  font-size: var(--font-size-body);
  color: var(--muted);
  margin-top: 3px;
}
.detail-modal-body {
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--text-secondary);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.qa-role-switch {
  position: fixed;
  right: 58px;
  bottom: 12px;
  z-index: 3400;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-control);
  background: var(--panel-opaque);
  box-shadow: 0 8px 24px var(--shadow-color-medium);
  color: var(--muted);
  font-size: var(--font-size-label);
  font-weight: var(--weight-bold);
}
.qa-role-switch select {
  max-width: 260px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  padding: 0 8px;
}
@media (max-width: 768px) {
  .qa-role-switch {
    left: 8px;
    right: 8px;
    bottom: 8px;
    justify-content: space-between;
  }
  .qa-role-switch select {
    max-width: 70vw;
  }
}

/* source: assets/css/components/actions.css */
/* Ultrabook 35.0 — one App Shell-owned action rail. */
.app-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.action-btn,
.btn,
.row-action,
.detail-btn,
.detail-close,
.topbar-global-toggle,
.level-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-secondary);
  border-radius: var(--radius-control);
  min-height: 32px;
  padding: 0 10px;
  font-size: var(--font-size-body);
  font-weight: var(--weight-bold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.action-btn:hover,
.btn:hover,
.row-action:hover,
.detail-btn:hover,
.detail-close:hover,
.topbar-global-toggle:hover,
.level-btn:hover {
  border-color: var(--text-disabled);
  background: var(--surface-subtle);
  color: var(--text);
}
.action-btn:focus-visible,
.btn:focus-visible,
.row-action:focus-visible,
.detail-btn:focus-visible,
.detail-close:focus-visible,
.topbar-global-toggle:focus-visible,
.level-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.action-btn:disabled,
.btn:disabled,
.row-action:disabled,
.detail-btn:disabled,
.level-btn:disabled,
[aria-busy="true"] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--primary,
.btn.primary,
.row-action--primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--panel);
}
.btn--primary:hover,
.btn.primary:hover,
.row-action--primary:hover {
  border-color: var(--text-strong);
  background: var(--text-strong);
  color: var(--panel);
}
.action-btn--destructive {
  color: var(--danger);
}
.action-btn--icon-only {
  padding: 0;
}
.action-btn--icon-only .app-icon,
.action-btn--icon-text .app-icon,
.btn .app-icon,
.row-action .app-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.action-btn--rail .app-icon {
  width: var(--side-icon-size);
  height: var(--side-icon-size);
  flex-basis: var(--side-icon-size);
}
.app-action-rail > * + * {
  margin-top: var(--action-gap);
}
.app-action-rail > .action-rail-spacer {
  display: block;
  width: 1px;
  height: var(--action-group-gap);
  min-height: var(--action-group-gap);
  margin-top: 0;
}
.app-action-rail > .action-rail-spacer + * {
  margin-top: 0;
}
.rail-action-btn,
.level-btn {
  width: var(--side-btn-size);
  height: var(--side-btn-size);
  min-width: var(--side-btn-size);
  min-height: var(--side-btn-size);
  border-radius: var(--radius-round);
}
.rail-action-btn {
  border-color: transparent;
}
.level-btn {
  padding: 0;
  line-height: 1;
}
.level-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--panel);
}
.detail-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: var(--radius-round);
  flex: 0 0 24px;
}
.detail-btn .app-icon {
  width: 16px;
  height: 16px;
}
.row-action {
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
}
.table-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--action-gap);
}
.topbar-global-toggle {
  position: absolute;
  left: 12px;
  top: 31px;
  z-index: 1700;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-round);
  background: transparent;
}
.topbar-global-toggle .app-icon {
  width: 15px;
  height: 15px;
}
body.topbar-collapsed .topbar-global-toggle .app-icon {
  transform: rotate(180deg);
}
.detail-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: var(--radius-round);
}
.detail-close .app-icon {
  width: 18px;
  height: 18px;
}

/* source: assets/css/components/estimate-context.css */
/* Ultrabook 35.5 — shared Estimate context and independent global logo. */
#globalHeaderLogoWrap {
  position: absolute;
  top: 28px;
  right: 20px;
  z-index: 120;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#globalHeaderLogoWrap[hidden] { display: none; }
#globalHeaderLogoWrap img {
  height: 28px;
  max-height: 28px;
  width: auto;
  display: block;
}
.estimate-viewer-main {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}
.estimate-viewer-main > .tables-style {
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-width: 760px) {
  #globalHeaderLogoWrap { display: none; }
}

/* source: assets/css/components/modal.css */
/* Ultrabook 38.3 — shared modal and drawer layout with one scroll owner. */
.action-modal {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: min(760px, calc(100vh - 32px));
}
.action-modal--wide {
  width: min(1320px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 64px));
}
.action-modal-body {
  white-space: normal;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 12px;
}
.action-modal-body:has(.tables-style) {
  overflow: hidden;
}
.action-modal-body:has(.tables-style) > .tables-style,
.action-modal-body:has(.tables-style) > form,
.action-modal-body:has(.tables-style) .tables-style {
  min-height: 0;
}
.action-modal-body:has(.tables-style) .tables-style-wrap,
.action-modal-body:has(.tables-style) .table-wrap,
.action-modal-body:has(.tables-style) .simple-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}
.action-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px;
  margin-top: 0;
  border-top: 1px solid var(--line2);
  background: var(--panel);
}
.action-modal .tables-style-wrap {
  flex: 1 1 auto;
  min-height: 0;
}
.action-modal .tables-style {
  height: 100%;
  min-height: 0;
}
.action-modal .tables-style-table {
  min-width: max(100%, 620px);
}
.action-modal form {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.action-modal form > .modal-actions:last-child {
  position: sticky;
  bottom: -12px;
  z-index: 2;
  margin: 0 -12px -12px;
  padding: 12px;
  border-top: 1px solid var(--line2);
  background: var(--panel);
}
@supports (height: 100dvh) {
  .action-modal {
    max-height: min(760px, calc(100dvh - 32px));
  }
  .action-modal--wide {
    height: min(820px, calc(100dvh - 64px));
  }
}
@media (max-width: 680px) {
  :is(.modal-backdrop, .detail-backdrop) {
    padding: 10px;
  }
  .action-modal,
  .action-modal--wide {
    width: calc(100vw - 20px);
    height: auto;
    max-height: calc(100vh - 20px);
  }
  @supports (height: 100dvh) {
    .action-modal,
    .action-modal--wide {
      max-height: calc(100dvh - 20px);
    }
  }
  .action-modal .modal-grid {
    grid-template-columns: 1fr;
  }
  .action-modal .tables-style-table {
    min-width: 100%;
  }
  .action-modal-actions,
  .action-modal form > .modal-actions:last-child {
    flex-wrap: wrap;
  }
}

/* source: assets/css/components/tabs.css */
/* Ultrabook 32.3 — shared global and internal tabs. */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding-left: 24px;
  overflow: hidden;
}
.tabs,
.section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0;
  min-width: 0;
}
.tabs {
  overflow: hidden;
}
.tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-body);
  white-space: nowrap;
}
.tab.active,
.view-toggle-btn.active {
  background: var(--text);
  color: var(--panel);
  border-color: var(--text);
}
.tab:hover {
  border-color: var(--line);
}
.cost-database-section {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.section-tabs {
  flex: 0 0 auto;
  padding-bottom: 12px;
  overflow-x: auto;
}
.section-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* source: assets/css/components/forms.css */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.field__label {
  color: var(--muted);
  font-size: var(--font-size-label);
  font-weight: var(--weight-bold);
}
.field__error {
  color: var(--danger);
  font-size: var(--font-size-label);
}
.control {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
  color: var(--text);
  padding: 0 10px;
}
.control:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 36%, transparent);
  outline-offset: 1px;
}
.control[aria-invalid="true"] {
  border-color: var(--danger);
}
.control--table-edit {
  display: block;
  width: 100%;
  min-height: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--panel);
  color: inherit;
  padding: 0 4px;
  font: inherit;
  line-height: 18px;
}
.control--table-edit:hover {
  border-color: var(--text-disabled);
}
.control--table-edit:focus,
.control--table-edit:focus-visible {
  border-color: var(--text-secondary);
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring);
}
.control--table-edit[aria-invalid="true"] {
  border-color: var(--danger);
}
textarea.control--table-edit-multiline {
  min-height: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  line-height: 1.5;
  resize: vertical;
  overflow: auto;
}
.auth-screen {
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-modal);
  padding: 26px;
  display: grid;
  gap: 14px;
}
.auth-heading {
  display: grid;
  gap: 6px;
}
.auth-title {
  font-size: var(--font-size-display);
  font-weight: var(--weight-bold);
  letter-spacing: 0.01em;
}
.auth-control {
  min-height: 40px;
  font: inherit;
}
.auth-submit {
  min-height: 42px;
  border-radius: var(--radius-round);
}
.auth-message {
  min-height: 18px;
}
.auth-company-list {
  display: grid;
  gap: var(--space-2);
}
.auth-company-choice {
  min-height: 44px;
  width: 100%;
  justify-content: flex-start;
}
.ultrabook-auth-mode #resetViewBtn {
  display: none;
}

/* source: assets/css/components/badges.css */
.neutral-chip,
.count-badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: var(--radius-round);
  padding: 2px 8px;
  font-size: var(--font-size-label);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}
.neutral-chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-secondary);
}
.count-badge {
  min-width: 22px;
  border: 1px solid var(--line2);
  background: var(--surface-subtle);
  color: var(--muted);
  padding-inline: 7px;
}
.status-chip {
  gap: 4px;
  border: 1px solid transparent;
}
.status-chip .app-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.status-chip--icon-only {
  width: var(--side-btn-size);
  height: var(--side-btn-size);
  min-width: var(--side-btn-size);
  min-height: var(--side-btn-size);
  padding: 0;
}
.status-chip--success {
  background: var(--success-bg);
  color: var(--success);
}
.status-chip--warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.status-chip--danger {
  background: var(--danger-bg);
  color: var(--danger);
}
button.count-badge,
button.status-chip {
  cursor: pointer;
  font: inherit;
  font-size: var(--font-size-label);
  font-weight: var(--weight-semibold);
}
button.count-badge:hover,
button.status-chip:hover {
  border-color: var(--line);
}
button.count-badge:hover {
  background: var(--panel);
  color: var(--text-secondary);
}
button.count-badge:focus-visible,
button.status-chip:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.count-badge[data-state="idle"],
.count-badge[data-state="loading"] {
  color: var(--text-disabled);
}
.count-badge[data-state="loading"] {
  cursor: progress;
}

/* source: assets/css/components/feedback.css */
.screen-state {
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.screen-state__card {
  max-width: 560px;
  text-align: center;
  color: var(--muted);
}
.screen-state__title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: var(--font-size-title);
  font-weight: var(--weight-heavy);
}
.screen-state__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.shell-loading {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  padding: 4px;
}
.shell-loading__toolbar {
  display: flex;
  gap: 8px;
}
.shell-loading__rows {
  display: grid;
  gap: 12px;
}
.shell-skeleton {
  display: block;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--line2) 20%, var(--surface-subtle) 50%, var(--line2) 80%);
  background-size: 240% 100%;
  animation: shell-skeleton-pulse 1.4s ease-in-out infinite;
}
.shell-skeleton--tab { width: 72px; height: 28px; }
.shell-skeleton--tab-wide { width: 104px; }
.shell-skeleton--control { width: 104px; height: 32px; }
.shell-skeleton--row { width: 100%; height: 42px; }
.shell-skeleton--row-short { width: 76%; }
@keyframes shell-skeleton-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shell-skeleton { animation: none; }
}

/* source: assets/css/components/profile-menu.css */
/* Ultrabook 35.5 — fixed App Shell profile control, independent from section overflow. */
.profile-menu {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 5000;
}
body.estimate-mode .profile-menu {
  right: calc(var(--space-2) + var(--action-rail-width) + var(--space-2));
}
.profile-menu__trigger {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  background: var(--panel-opaque);
  color: var(--text-secondary);
  box-shadow: 0 8px 24px var(--shadow-color-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.profile-menu__trigger:hover,
.profile-menu__trigger[aria-expanded="true"] {
  border-color: var(--text-disabled);
  background: var(--surface-subtle);
  color: var(--text);
}
.profile-menu__trigger:focus-visible,
.profile-menu__item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.profile-menu__trigger .app-icon {
  width: 22px;
  height: 22px;
}
.profile-menu__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--space-2));
  width: min(280px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel-opaque);
  box-shadow: 0 18px 48px var(--shadow-color-strong);
}
.profile-menu__identity {
  padding: 9px 10px 10px;
}
.profile-menu__name {
  color: var(--text-strong);
  font-size: var(--font-size-body);
  font-weight: var(--weight-heavy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu__email,
.profile-menu__role,
.profile-menu__section-label {
  color: var(--muted);
  font-size: var(--font-size-label);
}
.profile-menu__email {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu__role {
  margin-top: 5px;
  font-weight: var(--weight-bold);
}
.profile-menu__section-label {
  padding: 6px 10px 4px;
  font-weight: var(--weight-heavy);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.profile-menu__languages {
  display: grid;
  gap: 2px;
}
.profile-menu__item {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile-menu__item:hover,
.profile-menu__item.is-active {
  background: var(--surface-subtle);
}
.profile-menu__item:disabled {
  opacity: .45;
  cursor: wait;
}
.profile-menu__language {
  justify-content: space-between;
}
.profile-menu__language.is-active {
  color: var(--text-strong);
  font-weight: var(--weight-bold);
}
.profile-menu__check,
.profile-menu__item-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-menu__check .app-icon,
.profile-menu__item-icon .app-icon {
  width: 18px;
  height: 18px;
}
.profile-menu__divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--line2);
}
.profile-menu__logout {
  color: var(--danger);
}
@media (max-width: 640px) {
  .profile-menu {
    right: var(--space-2);
    bottom: var(--space-2);
  }
  body.estimate-mode .profile-menu {
    right: calc(var(--space-2) + var(--action-rail-width) + var(--space-2));
  }
  .profile-menu__panel {
    width: min(280px, calc(100vw - 16px));
  }
}
