
:root {
  color: #172033;
  background: #fafafa;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  --fpbs-ink: #1f2937;
  --fpbs-primary: #6324c5;
  --fpbs-surface: #fafafa;
  --fpbs-line: #e5e7eb;
  --fpbs-muted: #667085;
  --fpbs-danger: #d64b73;
  --fpbs-bg: #fafafa;
}

html {
  color-scheme: light;
  font-size: 90%;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--fpbs-bg);
  color: var(--fpbs-ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fafafa;
  color: var(--fpbs-muted);
  text-align: center;
}

.startup-splash img { display: block; width: min(15rem, 72vw); height: auto; object-fit: contain; }
.startup-spinner {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--fpbs-line);
  border-top-color: var(--fpbs-primary);
  border-radius: 50%;
  animation: auth-spin 0.9s linear infinite;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--fpbs-line);
  background: #fff;
  color: var(--fpbs-ink);
  padding: 0 1rem;
}

textarea {
  padding: 0.75rem 1rem;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid rgba(99, 36, 197, 0.2);
  outline-offset: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 0.5rem;
  min-height: 100vh;
  padding: 0.5rem;
  transition: grid-template-columns 160ms ease;
}

.app-shell.is-collapsed {
  grid-template-columns: 4.5rem minmax(0, 1fr);
}

.auth-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(23, 32, 51, 0.18);
  border-top-color: var(--fpbs-ink);
  border-radius: 999px !important;
  animation: auth-spin 0.9s linear infinite;
}

.sidebar {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fpbs-line);
  background: #fff;
  min-height: calc(100vh - 1rem);
  padding: 0.5rem;
  transition: padding 160ms ease;
}

.sidebar.is-collapsed {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.brand {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.5rem;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.brand-eyebrow,
.section-kicker {
  margin: 0 0 0.2rem;
  color: var(--fpbs-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand h1,
.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.sidebar.is-collapsed .brand-copy,
.sidebar.is-collapsed .sidebar-text {
  display: none;
}

.sidebar.is-collapsed .brand-logo {
  display: none;
}

.side-nav {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.side-link,
.side-footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  border: 0;
  background: #fff;
  color: var(--fpbs-ink);
  padding: 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}

.side-link:hover,
.side-footer-link:hover:not(:disabled) {
  background: var(--fpbs-surface);
}

#app-shell.is-bast-only .side-link:not([data-menu="bast"]) { display: none; }

.nav-icon,
.button-icon,
.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-icon svg,
.button-icon svg,
.search-icon svg,
.square-action svg {
  width: 1rem;
  height: 1rem;
}

.side-link.is-active {
  background: var(--fpbs-primary);
  color: #fff;
}

.side-footer {
  margin-top: auto;
  display: grid;
  gap: 0.25rem;
  padding-top: 0.5rem;
}

.sidebar.is-collapsed .side-link,
.sidebar.is-collapsed .side-footer-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.main-shell {
  min-width: 0;
}

.content-card {
  height: calc(100vh - 1rem);
  border: 1px solid var(--fpbs-line);
  background: #fff;
}

.scroll-shell {
  height: 100%;
  overflow-y: auto;
}

.content-stack {
  display: grid;
  gap: 0;
}

.content-pad {
  padding: 1rem;
}

.page-section {
  display: grid;
  gap: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--fpbs-line);
  background: var(--fpbs-line);
}

.dashboard-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--fpbs-line);
  background: rgba(250, 250, 250, 0.55);
  color: var(--fpbs-ink);
  font-size: 0.84rem;
}

.dashboard-year-badge strong {
  font-size: 0.98rem;
}

.stat-box {
  border: 0;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

.stat-label {
  display: block;
  color: var(--fpbs-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-box strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.125rem;
}

.section-block {
  display: grid;
  gap: 0.625rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.section-head h2 {
  font-size: 1.18rem;
  font-weight: 700;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) minmax(14rem, 1.4fr) auto;
  gap: 0.5rem;
  align-items: end;
}

.purchase-toolbar {
  grid-template-columns: minmax(16rem, 22rem) minmax(9rem, 12rem) minmax(6rem, 8rem) 2.25rem auto;
  justify-content: start;
}

.purchase-toolbar .toolbar-action-group { grid-column: 5; }

.purchase-filter-menu { position: relative; }

.purchase-filter-menu summary {
  display: grid;
  place-items: center;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--fpbs-line);
  color: var(--fpbs-ink);
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.purchase-filter-menu summary::-webkit-details-marker { display: none; }
.purchase-filter-menu summary:hover { background: var(--fpbs-surface); }
.purchase-filter-menu summary:focus-visible { outline: 2px solid var(--fpbs-ink); outline-offset: 2px; }

.filter-active-dot {
  display: none;
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: #c83345;
}

.purchase-filter-menu.is-active .filter-active-dot { display: block; }

.purchase-filter-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.3rem);
  right: 0;
  width: 12.5rem;
  padding: 0.45rem;
  border: 1px solid var(--fpbs-line);
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 32, 51, 0.12);
}

.purchase-filter-popover strong {
  display: block;
  padding: 0.35rem 0.5rem 0.45rem;
  font-size: 0.78rem;
}

.purchase-filter-popover button {
  display: block;
  width: 100%;
  padding: 0.42rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--fpbs-ink);
  text-align: left;
  cursor: pointer;
}

.purchase-filter-popover button:hover,
.purchase-filter-popover button[aria-pressed="true"] { background: #f3f4f6; }

.purchase-extension-hint {
  margin: 0.5rem 0;
  color: var(--fpbs-muted);
  font-size: 0.8rem;
}

.simsarpras-send-button:disabled { opacity: 0.45; cursor: not-allowed; }
.simsarpras-send-button[aria-busy="true"] { opacity: 1; }
.simsarpras-send-button .auth-spinner { display: block; }

.toolbar-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.toolbar-field span,
.field span {
  color: var(--fpbs-muted);
}

.toolbar-fill {
  min-width: 0;
}

.search-box {
  position: relative;
}

.search-box input {
  padding-left: 0.7rem;
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fpbs-muted);
  pointer-events: none;
}

.month-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.25rem;
  gap: 0.35rem;
}

.toolbar-chip {
  display: flex;
  align-items: center;
  height: 3.05rem;
  border: 1px solid var(--fpbs-line);
  background: rgba(250, 250, 250, 0.55);
  padding: 0 1rem;
  color: var(--fpbs-ink);
}

.toolbar-field input,
.toolbar-field select {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.toolbar-field select {
  background: rgba(250, 250, 250, 0.5);
}

.toolbar-search {
  min-width: 0;
}

.toolbar-action {
  justify-self: end;
  width: auto;
  min-width: 0;
}

.toolbar-action-group {
  grid-column: 3;
  display: inline-flex;
  justify-self: end;
  gap: 0.5rem;
}

.toolbar-action-secondary {
  min-width: 0;
}

.report-shell {
  display: grid;
  gap: 0.55rem;
}

#export-excel-shell {
  width: min(100%, 42rem);
  gap: 0.75rem;
  align-content: start;
}

#import-page .report-shell {
  width: min(100%, 42rem);
}

#import-page .toolbar-action-group {
  grid-column: 1;
  justify-content: flex-start;
  justify-self: start;
}

#export-excel-shell .report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}

#export-excel-shell .report-actions {
  justify-content: flex-start;
}

#stockopname-shell {
  width: min(100%, 68rem);
  gap: 0.85rem;
  align-content: start;
}

.report-section-title {
  margin: 0;
  border-bottom: 1px solid var(--fpbs-line);
  padding: 0.35rem 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.report-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.stockopname-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stockopname-number-field {
  grid-column: 1 / -1;
  max-width: 42rem;
}

.stockopname-officer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stockopname-officer-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  border: 1px solid var(--fpbs-line);
  background: var(--fpbs-surface);
  padding: 0.85rem;
}

.stockopname-officer-card h3 {
  margin: 0 0 0.1rem;
  font-size: 0.95rem;
}

#stockopname-shell .report-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.check-sintag-shell {
  gap: 0;
}

.simsarpras-filter {
  width: min(100%, 13rem);
  margin: 0.2rem 0 0.35rem;
}

.simsarpras-controls {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) auto;
  align-items: end;
  gap: 0.65rem;
}

.simsarpras-controls > button { justify-self: start; }
.simsarpras-manual { margin: 0.65rem 0 1rem; }
.simsarpras-manual > summary { color: var(--fpbs-muted); cursor: pointer; font-size: 0.84rem; }
.simsarpras-manual .simsarpras-controls { grid-template-columns: repeat(2, minmax(12rem, 1fr)) auto; margin-top: 0.75rem; }

.simsarpras-controls input[type="file"] {
  min-width: 0;
  padding: 0.35rem;
}

#simsarpras-message {
  min-height: 1.3rem;
  color: var(--fpbs-muted);
  font-size: 0.84rem;
}

.simsarpras-summary {
  border-top: 1px solid var(--fpbs-line);
}

.simsarpras-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--fpbs-line);
}

.simsarpras-summary-row > strong { min-width: 3rem; }

.simsarpras-audit-title { font-size: .95rem; font-weight: 700; white-space: nowrap; }
.simsarpras-audit-brief { color: var(--fpbs-muted); font-size: .79rem; font-weight: 500; overflow-wrap: anywhere; }
#simsarpras-audit-content > .simsarpras-feedback { margin: 0 0 .5rem; }
.simsarpras-audit-description { margin: .45rem 0 0; color: var(--fpbs-muted); font-size: .79rem; }
#simsarpras-audit-button { width: auto; min-height: 2.25rem; margin: 0; }
.simsarpras-audit-results { margin-top: .65rem; overflow-x: auto; border: 1px solid var(--fpbs-line); border-radius: .5rem; }
.simsarpras-audit-results table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.simsarpras-audit-results th, .simsarpras-audit-results td { padding: .6rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fpbs-line); }
.simsarpras-audit-results th { color: var(--fpbs-muted); white-space: nowrap; }
.simsarpras-audit-results tr:last-child td { border-bottom: 0; }
.simsarpras-audit-results td:last-child { min-width: 15rem; overflow-wrap: anywhere; }
.simsarpras-audit-results td:last-child { width: 58%; }

.simsarpras-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border: 1px solid #d8dde8;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.76rem;
}

.simsarpras-badge.is-valid { color: #087342; background: #edf9f2; border-color: #b9e7cb; }
.simsarpras-badge.is-missing { color: #a32937; background: #fff1f1; border-color: #f1c6cb; }
.simsarpras-badge.is-review { color: #805700; background: #fff9e9; border-color: #ebd69e; }
.simsarpras-badge.is-unchecked { color: #586376; background: #f6f8fa; }

.simsarpras-badge-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.12rem; }
.simsarpras-input-time { color: #047857; font-size: 0.76rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.simsarpras-batch-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; margin: .45rem 0 .75rem; min-height: 2.25rem; }
.simsarpras-batch-toolbar [role="status"] { margin-right: auto; color: var(--fpbs-muted); font-size: .78rem; }
.purchase-sintag-cell { display: inline-flex; align-items: center; gap: .45rem; }
.purchase-sintag-cell input { margin: 0; flex: none; }
.data-table.stockopname-history-table td.stockopname-history-empty { text-align: center !important; }

.check-sintag-controls {
  display: grid;
  gap: 1.35rem;
  width: min(100%, 48rem);
  padding-top: 0.25rem;
}

.check-sintag-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 10rem;
  align-items: end;
  gap: 1.25rem;
  max-width: 100%;
}

.check-method-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.check-control-label {
  color: var(--fpbs-muted);
  font-size: 0.82rem;
}

.check-method-field .segmented-tabs {
  flex-wrap: nowrap;
}

.check-sintag-toolbar > .toolbar-field {
  width: 10rem;
}

.check-sintag-panel {
  display: grid;
  gap: 0.8rem;
  width: min(100%, 48rem);
  border-top: 1px solid var(--fpbs-line);
  padding-top: 1.15rem;
}

.check-sintag-panel .toolbar-field {
  min-width: 0;
}

.check-sintag-panel input[type="file"] {
  height: auto;
  min-width: 0;
  padding: 0.35rem 0.5rem;
}

#check-file-status {
  color: var(--fpbs-muted);
  font-size: 0.875rem;
}

.check-sintag-panel .report-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.check-sintag-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  margin-top: 2.25rem;
}

.check-results-head {
  display: grid;
  gap: 0.7rem;
}

.check-results-head h3,
.check-error-block h4 {
  margin: 0;
  font-size: 1rem;
}

.check-sintag-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--fpbs-line);
  border-bottom: 1px solid var(--fpbs-line);
}

.check-summary-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0 1rem;
  border-right: 1px solid var(--fpbs-line);
  font-size: 0.875rem;
}

.check-summary-item:first-child {
  padding-left: 0;
}

.check-summary-item:last-child {
  border-right: 0;
}

.check-summary-item span {
  color: var(--fpbs-muted);
}

.check-summary-item strong {
  font-weight: 700;
}

.check-summary-item.is-valid strong,
.check-status.is-valid {
  color: #087954;
}

.check-summary-item.is-invalid strong,
.check-status.is-invalid {
  color: #b73558;
}

.check-empty-message {
  padding: 0.9rem 1rem;
  border: 1px solid var(--fpbs-line);
  background: var(--fpbs-surface);
}

.check-sintag-table {
  min-width: 44rem;
  table-layout: fixed;
}

.check-sintag-table th,
.check-sintag-table td {
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.check-sintag-table th:first-child { width: 22%; }
.check-sintag-table th:nth-child(2),
.check-sintag-table th:nth-child(3) { width: 20%; }

.check-status {
  display: block;
  font-weight: 600;
}

.check-status-detail {
  display: block;
  margin-top: 0.15rem;
  color: var(--fpbs-muted);
  font-size: 0.79rem;
}

.check-error-block {
  display: grid;
  gap: 0.65rem;
}

.check-error-block .data-table {
  min-width: 0;
  table-layout: fixed;
}

.check-error-block .data-table th:first-child {
  width: 5rem;
}

.check-error-block .data-table td {
  overflow-wrap: anywhere;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 78rem;
  gap: 0.75rem;
}

.settings-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  border: 1px solid var(--fpbs-line);
  background: var(--fpbs-surface);
  padding: 0.9rem;
}

.settings-card h3 {
  margin: 0 0 0.1rem;
  border-bottom: 1px solid var(--fpbs-line);
  padding-bottom: 0.55rem;
  font-size: 0.95rem;
}

#settings-page .field input,
#stockopname-shell .field input {
  border-color: var(--fpbs-line);
  background: #fff;
}

#settings-page > .section-block > .report-actions {
  max-width: 78rem;
}

.primary-action,
.secondary-action,
.ghost-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  border: 1px solid var(--fpbs-line);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.primary-action {
  border-color: transparent;
  background: var(--fpbs-primary);
  color: #fff;
}

.primary-action:hover:not(:disabled) {
  background: var(--fpbs-primary);
}

.secondary-action,
.ghost-action,
.icon-button {
  background: #fff;
  color: var(--fpbs-ink);
}

.secondary-action:hover:not(:disabled),
.ghost-action:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  background: var(--fpbs-surface);
}

#submit-button,
#save-metadata,
#save-detail-item,
#save-settings-button,
#finance-import-commit,
#commit-import-button,
#process-smart-input {
  border-color: var(--fpbs-ink);
  background: var(--fpbs-ink);
  color: #fff;
}

#submit-button:hover:not(:disabled),
#save-metadata:hover:not(:disabled),
#save-detail-item:hover:not(:disabled),
#save-settings-button:hover:not(:disabled),
#finance-import-commit:hover:not(:disabled),
#commit-import-button:hover:not(:disabled),
#process-smart-input:hover:not(:disabled) {
  background: var(--fpbs-ink);
}

#discard-create-draft,
#invoice-delete-source {
  border-color: #fecdd3;
  background: #fff;
  color: #e11d48;
}

#discard-create-draft:hover:not(:disabled),
#invoice-delete-source:hover:not(:disabled) {
  background: #fff1f2;
}

.text-right {
  text-align: right !important;
}

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

.data-table {
  width: 100%;
  min-width: 64rem;
  border-collapse: collapse;
}

.data-table thead {
  background: rgba(250, 250, 250, 0.95);
}

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

.data-table th {
  padding: 0.5rem 0.75rem;
  color: var(--fpbs-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.data-table td {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.data-table:not(.create-items-table) tbody tr:hover {
  background: rgba(250, 250, 250, 0.3);
}

.empty-cell,
.detail-placeholder {
  padding: 2.5rem 0.75rem !important;
  color: var(--fpbs-muted);
  text-align: center;
  font-weight: 600;
}

.detail-placeholder.detail-error,
.flash.flash-error {
  color: #be123c;
}

.flash-stack {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 120;
  display: grid;
  gap: 0.5rem;
  width: min(20rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.flash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.7rem 0.65rem 0.7rem 0.85rem;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  animation: toast-in 160ms ease-out;
  pointer-events: none;
}

.flash-message {
  min-width: 0;
  max-height: min(16rem, 50vh);
  overflow-y: auto;
  overflow-wrap: anywhere;
  white-space: normal;
}

.flash-close {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.2rem -0.15rem 0 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.flash-close:hover,
.flash-close:focus-visible {
  background: rgba(31, 41, 55, 0.08);
}

.flash-success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.flash-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.flash-loading {
  border-color: var(--fpbs-line);
  background: #fafafa;
  color: var(--fpbs-ink);
}

.flash-loading .flash-message::before {
  content: '';
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.45rem;
  vertical-align: -0.1rem;
  border: 2px solid var(--fpbs-line);
  border-top-color: var(--fpbs-primary);
  border-radius: 50%;
  animation: auth-spin 0.9s linear infinite;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, -0.35rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.action-stack {
  display: inline-flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.square-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--fpbs-line);
  background: #fff;
  color: var(--fpbs-ink);
  font-weight: 600;
}

.square-action-folder {
  border-color: var(--fpbs-line);
  color: var(--fpbs-ink);
  background: #fff;
}

.square-action-folder.is-valid {
  border-color: #a7f3d0;
  color: #047857;
  background: #ecfdf5;
}

.square-action-folder.is-invalid {
  border-color: #fecdd3;
  color: #be123c;
  background: #fff1f2;
}

.square-action-edit {
  border-color: var(--fpbs-line);
  color: var(--fpbs-ink);
  background: #fff;
}

.square-action-danger {
  border-color: #fecdd3;
  color: #e11d48;
  background: #fff;
}

.square-action-edit:hover,
.square-action-folder:hover {
  background: var(--fpbs-surface);
}

.square-action-folder.is-valid:hover {
  background: #d1fae5;
}

.square-action-folder.is-invalid:hover,
.square-action-danger:hover {
  background: #fff1f2;
}

.data-table .cell-date {
  white-space: nowrap;
}

.data-table .cell-summary {
  max-width: 34rem;
}

.detail-card {
  display: grid;
  gap: 0.7rem;
}

.detail-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: start;
}

.detail-summary-card {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--fpbs-line);
  background: rgba(250, 250, 250, 0.45);
  padding: 0.5rem 0.625rem;
}

.detail-summary-card span {
  color: var(--fpbs-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-summary-card strong {
  font-size: 0.875rem;
}

.detail-item-form {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--fpbs-line);
  padding: 0.6rem;
  background: rgba(250, 250, 250, 0.28);
}

.detail-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.detail-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.detail-save-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  color: var(--fpbs-muted);
  font-size: 0.85rem;
}

.detail-save-progress .auth-spinner {
  width: 0.9rem;
  height: 0.9rem;
}

.detail-head-compact {
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.detail-head-compact h2,
.detail-table-head h2 {
  font-size: 1rem;
}

.detail-head-compact h2 {
  font-size: 1.18rem;
  text-align: left;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  border: 0;
  background: transparent;
  color: var(--fpbs-ink);
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.modal-backdrop:has(.create-workspace-card) {
  align-items: stretch;
  padding: 0;
}

.create-workspace-card {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.create-workspace-form {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
}

.create-workspace-card .modal-head {
  min-height: 46px;
  margin: 0;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid var(--fpbs-line);
}

.create-workspace-card .modal-title {
  font-size: 17px;
}

.create-workspace-card .modal-close {
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.procurement-panel {
  border: 0;
  border-bottom: 1px solid var(--fpbs-line);
  background: rgba(250, 250, 250, 0.45);
}

.procurement-summary {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--fpbs-ink);
  padding: 6px 12px;
  text-align: left;
  font-weight: 800;
  font-size: 13px;
}

.procurement-summary strong {
  min-width: 0;
  justify-self: end;
  color: var(--fpbs-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-grid.procurement-grid {
  width: min(100%, 48rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-inline: auto;
  padding: 0 12px 10px;
}

.procurement-summary-field {
  grid-column: 1 / -1;
}

.review-workspace {
  --left-pane: 60%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--left-pane)) 4px minmax(0, 1fr);
  gap: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
}

.review-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px;
}

.review-pane-head {
  align-items: center;
  margin-bottom: 6px;
}

.review-pane-head h4 {
  margin: 0;
  font-size: 14px;
}

.workspace-divider {
  background: linear-gradient(90deg, transparent, var(--fpbs-line), transparent);
  cursor: col-resize;
  touch-action: none;
}

.workspace-divider:hover,
.workspace-divider:focus {
  background: var(--fpbs-primary);
}

.create-items-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.create-items-assistant {
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--fpbs-line);
  padding-top: 0.65rem;
}

.create-items-assistant h4 {
  margin: 0;
  font-size: 0.95rem;
}

.muted-inline {
  margin: 1px 0 0;
  color: var(--fpbs-muted);
  font-size: 12px;
  font-weight: 600;
}

.assistant-warning {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #b45309;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 12px;
}

.inline-invoice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
}

.inline-invoice-dropzone {
  min-height: 5.5rem;
  padding: 0.7rem;
}

.create-items-table {
  width: 100%;
  min-width: 42rem;
  table-layout: fixed;
  font-size: 12px;
}

.create-items-table th,
.create-items-table td {
  padding: 4px 5px;
}

.create-items-table th:nth-child(1),
.create-items-table td:nth-child(1) {
  width: 24%;
}

.create-items-table th:nth-child(2),
.create-items-table td:nth-child(2) {
  width: 18%;
}

.create-items-table th:nth-child(3),
.create-items-table td:nth-child(3) {
  width: 15%;
}

.create-items-table th:nth-child(4),
.create-items-table td:nth-child(4) {
  width: 10%;
}

.create-items-table th:nth-child(5),
.create-items-table td:nth-child(5) {
  width: 10%;
}

.create-items-table th:nth-child(6),
.create-items-table td:nth-child(6) {
  width: 20%;
}

.create-items-table th:nth-child(7),
.create-items-table td:nth-child(7) {
  width: 3%;
}

.create-items-table input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  font-size: 12px;
}

.create-items-table input.review-missing {
  border-color: #e0b74e;
  background: #fff9e8;
}

.create-items-table input.ai-review-field {
  border-color: #d9a72d;
  background: #fffaf0;
}

.source-highlight {
  background: #eef7f1;
  box-shadow: inset 0.25rem 0 0 #2f7b48;
}

.invoice-toolbar,
.invoice-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 34px;
  margin-bottom: 6px;
  font-size: 12px;
}

.invoice-toolbar {
  gap: 10px;
}

.invoice-source-actions,
.invoice-toolbar .invoice-source-switcher,
.invoice-toolbar .invoice-control-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 2px;
  border: 1px solid var(--fpbs-line);
  background: #fff;
}

.invoice-toolbar .invoice-source-actions .ghost-action,
.invoice-toolbar .invoice-source-switcher .ghost-action,
.invoice-toolbar .invoice-control-group .ghost-action {
  border: 0;
}

.invoice-toolbar #invoice-source-label,
.invoice-toolbar #smart-doc-page-label,
.invoice-toolbar #invoice-zoom-label {
  min-width: 32px;
  text-align: center;
  white-space: nowrap;
}

.invoice-source-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.invoice-control-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.invoice-upload-action {
  cursor: pointer;
}

.invoice-upload-action input {
  display: none;
}

.invoice-viewer {
  min-width: 0;
  min-height: 0;
  width: 100%;
  flex: 1;
  max-height: none;
  overflow: auto;
  position: relative;
  border: 0;
  background: #f7f8fb;
}

.pdf-viewer-scroll {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 0;
}

.pdfViewer {
  --scale-factor: 1;
  position: relative;
}

.pdfViewer .page {
  direction: ltr;
  position: relative;
  overflow: visible;
  border: 0;
  margin: 0 auto 8px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(23, 32, 51, 0.18);
}

.pdfViewer .canvasWrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.pdfViewer .page canvas {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.invoice-preview-image {
  display: block;
  width: auto;
  max-width: 100%;
  transform-origin: top center;
}

.create-workspace-footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--fpbs-line);
  background: #fff;
  min-height: 42px;
  padding: 5px 10px;
  font-size: 13px;
}

.create-workspace-footer .detail-summary-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-summary-item {
  color: var(--fpbs-muted);
}

.footer-summary-item + .footer-summary-item::before {
  content: "·";
  margin-right: 8px;
  color: var(--fpbs-muted);
}

.footer-summary-item strong {
  color: var(--fpbs-ink);
}

.invoice-reconcile {
  color: #8a6415;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.compact-action,
.compact-primary,
.compact-icon-action {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.compact-icon-action {
  width: 30px;
  justify-content: center;
  padding: 0;
}

.segmented-tabs,
.finance-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented-tabs .is-active {
  border-color: var(--fpbs-ink);
  color: #fff;
  background: var(--fpbs-ink);
}

.segmented-tabs .is-active:hover:not(:disabled) {
  background: var(--fpbs-ink);
  color: #fff;
}

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

.finance-search-field {
  min-width: min(100%, 16rem);
  flex: 0 1 20rem;
}

.finance-toolbar #finance-year {
  min-width: 8.5rem;
}

.finance-toolbar #finance-import-open {
  margin-left: auto;
}

.finance-table th:nth-child(5),
.finance-table td:nth-child(5) {
  min-width: 18rem;
}

.ts-wrapper {
  min-height: 36px;
  font-size: 13px;
}

.ts-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  white-space: nowrap !important;
}

.ts-control {
  min-height: 36px;
  border: 1px solid var(--fpbs-line);
  border-radius: 6px !important;
  padding: 5px 10px;
  box-shadow: none;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.single.input-active .ts-control {
  background: #fff;
}

.ts-dropdown {
  border: 1px solid var(--fpbs-line);
  border-radius: 6px !important;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.12);
  font-size: 13px;
}

.ts-dropdown .option {
  padding: 9px 11px;
}

.ts-dropdown .active {
  background: var(--fpbs-surface);
  color: var(--fpbs-ink);
}

.ts-finance-option {
  display: grid;
  gap: 3px;
}

.ts-finance-option strong {
  font-size: 13px;
}

.ts-finance-option span {
  color: var(--fpbs-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-finance-option em {
  color: var(--fpbs-ink);
  font-style: normal;
  font-weight: 700;
}

.sintag-search-hint {
  color: var(--fpbs-muted);
  font-size: 11px;
  line-height: 1.35;
}

.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--fpbs-line);
  color: var(--fpbs-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.info-tip:hover::after,
.info-tip:focus::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  width: max-content;
  max-width: 16rem;
  padding: 5px 7px;
  border: 1px solid var(--fpbs-line);
  background: #fff;
  color: var(--fpbs-ink);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.12);
  font-size: 12px;
  font-weight: 600;
}

.create-workspace-card .field {
  gap: 2px;
  font-size: 12px;
}

.create-workspace-card .field input,
.create-workspace-card .field textarea,
.create-workspace-card .field select {
  min-height: 32px;
  padding: 0 8px;
  font-size: 13px;
}

.procurement-grid .field > input,
.procurement-grid .field > textarea {
  border: 1px solid var(--fpbs-line);
  border-radius: 6px !important;
  background: #fff;
}

.procurement-grid .ts-control input {
  width: auto;
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: 0;
}

.procurement-grid .field > input:focus,
.procurement-grid .field > textarea:focus,
.procurement-grid .ts-wrapper.focus .ts-control {
  border-color: var(--fpbs-primary);
}

.create-workspace-card .field textarea {
  min-height: 48px;
  max-height: 96px;
  padding: 7px 8px;
  resize: vertical;
}

.import-actions-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35rem;
  align-items: end;
}

.import-file-field input[type="file"] {
  height: auto;
  padding: 0.35rem 0.55rem;
}

.import-drop-zone {
  min-width: 0;
  padding: 0.4rem;
  border: 1px dashed var(--fpbs-line);
}

.import-drop-zone.detail-items {
  padding: 0;
  border: 0;
}

.import-drop-zone.drag-over {
  border-color: var(--fpbs-primary);
  background: var(--fpbs-surface);
}

#import-drop-hint {
  display: block;
  margin-top: 0.25rem;
  color: var(--fpbs-muted);
  font-size: 0.75rem;
}

.import-empty {
  border: 1px solid var(--fpbs-line);
  padding: 0.55rem 0.65rem;
  color: var(--fpbs-muted);
  font-weight: 600;
}

.smart-input-dropzone {
  border: 1px dashed var(--fpbs-line);
  min-height: 9rem;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 1rem;
  color: var(--fpbs-muted);
  text-align: center;
}

.smart-input-dropzone strong {
  color: var(--fpbs-ink);
}

.smart-input-dropzone input[type="file"] {
  width: min(100%, 22rem);
}

.smart-input-actions {
  display: flex;
  justify-content: flex-end;
}

.smart-input-review {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 0.75rem;
}

.smart-input-editor,
.smart-input-document {
  min-width: 0;
}

.smart-input-section {
  border-top: 1px solid var(--fpbs-line);
  padding-top: 0.65rem;
}

.smart-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.smart-input-warning-list {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #b45309;
  padding: 0.55rem 0.65rem;
  font-weight: 600;
}

.smart-items-table {
  min-width: 48rem;
}

.smart-items-table input {
  width: 100%;
  min-width: 0;
}

.smart-doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.smart-doc-preview {
  border: 1px solid var(--fpbs-line);
  min-height: 28rem;
  max-height: 65vh;
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 0.5rem;
  background: #f7f8fb;
}

.smart-doc-preview img,
.smart-doc-preview embed {
  max-width: 100%;
  width: 100%;
}

.smart-doc-preview embed {
  min-height: 60vh;
}

.create-workspace-card .smart-doc-preview {
  min-height: 0;
  max-height: none;
  flex: 1;
  border: 0;
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 0;
  background: #f7f8fb;
}

.create-workspace-card .smart-doc-preview img {
  width: auto;
  max-width: 100%;
}

.invoice-empty-state {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 1px dashed var(--fpbs-line);
  background: var(--fpbs-surface);
  cursor: pointer;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 16px;
}

.invoice-empty-state strong {
  font-size: 14px;
}

.invoice-empty-state span,
.invoice-empty-state small {
  font-size: 12px;
  color: var(--fpbs-muted);
}

.smart-doc-preview.is-dragging::after {
  content: "Lepas untuk tambah invoice";
  position: absolute;
  inset: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px dashed var(--fpbs-primary);
  background: rgba(250, 250, 250, 0.92);
  color: var(--fpbs-ink);
  font-size: 14px;
  font-weight: 800;
}

.create-workspace-card .ghost-action,
.create-workspace-card .primary-action,
.create-workspace-card .icon-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.create-workspace-card #create-add-item {
  border-color: transparent;
  background: var(--fpbs-primary);
  color: var(--fpbs-ink);
}

.create-workspace-card #create-add-item:hover:not(:disabled) {
  background: var(--fpbs-primary);
}

.create-workspace-card .icon-button {
  width: 30px;
  padding: 0;
}

.import-preview-table,
.import-error-table {
  min-width: 100%;
}

.finance-import-preview-table,
.import-preview-table.bulk-preview-table {
  table-layout: fixed;
}

.finance-import-preview-table { min-width: 64rem; }
.import-preview-table.bulk-preview-table { min-width: 80rem; }
.import-preview-table:not(.bulk-preview-table) { min-width: 48rem; }

.finance-import-preview-table th,
.finance-import-preview-table td,
.import-preview-table th,
.import-preview-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.finance-import-preview-table th,
.import-preview-table th { overflow-wrap: normal; }

.finance-import-preview-table th:nth-child(1) { width: 12%; }
.finance-import-preview-table th:nth-child(2),
.finance-import-preview-table th:nth-child(3) { width: 10%; }
.finance-import-preview-table th:nth-child(4) { width: 17%; }
.finance-import-preview-table th:nth-child(5) { width: 21%; }
.finance-import-preview-table th:nth-child(6) { width: 12%; }
.finance-import-preview-table th:nth-child(7) { width: 10%; }
.finance-import-preview-table th:nth-child(8) { width: 8%; }

.import-preview-table.batch-preview-table th:nth-child(1),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(1) { width: 9%; }
.import-preview-table.batch-preview-table th:nth-child(2) { width: 5%; }
.import-preview-table.batch-preview-table th:nth-child(3) { width: 11%; }
.import-preview-table.batch-preview-table th:nth-child(4),
.import-preview-table.batch-preview-table th:nth-child(5),
.import-preview-table.batch-preview-table th:nth-child(6),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(3),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(4),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(5) { width: 8%; }
.import-preview-table.batch-preview-table th:nth-child(7) { width: 14%; }
.import-preview-table.batch-preview-table th:nth-child(8),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(7) { width: 6%; }
.import-preview-table.batch-preview-table th:nth-child(9),
.import-preview-table.batch-preview-table th:nth-child(10),
.import-preview-table.batch-preview-table th:nth-child(11),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(8),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(9),
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(10) { width: 7%; }
.import-preview-table.batch-preview-table th:nth-child(12) { width: 10%; }
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(2) { width: 12%; }
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(6) { width: 15%; }
.import-preview-table.bulk-preview-table:not(.batch-preview-table) th:nth-child(11) { width: 13%; }

.detail-table-head {
  align-items: center;
}

.detail-table-head .toolbar-action-group {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-add-button {
  min-height: 2.2rem;
  padding: 0 0.75rem;
}

.detail-delete-selected {
  min-height: 2.2rem;
  border-color: #fecdd3;
  color: #be123c;
}

.detail-delete-selected:hover:not(:disabled) {
  background: #fff1f2;
}

.detail-delete-message {
  margin: 0.4rem 0 0.65rem;
  color: #047857;
  font-size: 0.875rem;
  font-weight: 600;
}

.detail-delete-message.detail-delete-error,
.detail-delete-dialog-error {
  color: #be123c;
}

.detail-delete-modal {
  width: min(calc(100vw - 1.5rem), 26rem);
}

.detail-delete-modal > p {
  margin: 0.75rem 0;
  line-height: 1.5;
}

#detail-page .data-table .detail-select-cell {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0.6rem;
  text-align: center;
  vertical-align: middle;
}

.detail-select-cell input {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: auto;
  padding: 0;
  accent-color: var(--fpbs-ink);
  cursor: pointer;
}

#detail-page .data-table tbody tr.detail-item-selected,
#detail-page .data-table tbody tr.detail-item-selected:hover {
  background: #eef7f4;
}

.detail-item-form .field {
  gap: 0.15rem;
}

.report-form-grid .field,
.report-grid .toolbar-field {
  gap: 0.15rem;
}

.detail-item-form .field input,
.detail-item-form .field select {
  height: 2.1rem;
  padding: 0 0.6rem;
}

.detail-item-form .ghost-action,
.detail-item-form .primary-action {
  min-height: 2.2rem;
  padding: 0 0.75rem;
}

.field.checkbox-inline {
  display: flex;
  align-items: center;
  align-self: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 2.2rem;
  cursor: pointer;
}

.field.checkbox-inline input[type="checkbox"] {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  accent-color: var(--fpbs-primary);
}

.detail-status-valid {
  color: #047857;
}

.detail-status-invalid {
  color: #be123c;
}

.finance-table .detail-status-valid,
.finance-table .detail-status-invalid {
  display: inline-flex;
  border: 1px solid;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.finance-table .detail-status-valid {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.finance-table .detail-status-invalid {
  border-color: #fecdd3;
  background: #fff1f2;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.detail-meta-grid > div {
  border: 1px solid var(--fpbs-line);
  padding: 0.8rem 0.9rem;
  background: rgba(250, 250, 250, 0.45);
}

.detail-meta-grid span {
  display: block;
  color: var(--fpbs-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
}

.detail-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.detail-total {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.75rem;
}

.modal-card {
  width: min(calc(100vw - 1.5rem), 42rem);
  border: 1px solid var(--fpbs-line);
  background: #fff;
  padding: 1rem;
}

.modal-card:not(.create-workspace-card) {
  max-height: calc(100dvh - 1.5rem);
  margin-block: auto;
  overflow: auto;
}

.modal-card.metadata-modal-card {
  width: min(calc(100vw - 1.5rem), 36rem);
}

.modal-card.import-modal-card {
  width: min(calc(100vw - 1.5rem), 90rem);
  min-width: 0;
  overflow-x: hidden;
}

.bast-list-wrap { margin-top: 1.25rem; }
.bast-list-table { min-width: 56rem; }
.bast-list-table td { vertical-align: middle; }
.bast-list-table th:first-child, .bast-list-table td:first-child { white-space: nowrap; }
.bast-list-table td:nth-child(2) { overflow-wrap: anywhere; }
.bast-list-table th:nth-child(7), .bast-list-table td:nth-child(7) { white-space: nowrap; }
.bast-list-actions { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.bast-list-actions .ghost-action { white-space: nowrap; }
.bast-download-action { display: inline-flex; align-items: center; gap: .3rem; }
.bast-delete-action { color: #b91c1c; }
.modal-card.bast-modal-card { width: min(calc(100vw - 1.5rem), 76rem); min-width: 0; }
.bast-form-body { display: grid; gap: .85rem; padding-top: 1rem; }
.bast-form-body > .modal-actions { padding-top: 1.25rem; }
.bast-source-switch { display: inline-flex; gap: .15rem; padding: .2rem; background: #f3f4f6; border-radius: .55rem; justify-self: start; }
.bast-source-switch button { border: 0; border-radius: .4rem; background: transparent; color: var(--fpbs-muted); padding: .45rem .85rem; cursor: pointer; }
.bast-source-switch button.is-active { background: white; color: var(--fpbs-ink); font-weight: 700; box-shadow: 0 1px 3px #0001; }
.bast-source-panel { display: grid; grid-template-columns: minmax(14rem, 36rem); gap: .75rem; }
.bast-source-switch[hidden], .bast-source-panel[hidden], #bast-items-section[hidden], #bast-items-wrap[hidden], #bast-form-actions[hidden], .bast-items-head[hidden], .bast-pdf-drop[hidden], .bast-pdf-picked[hidden], #bast-pdf-reading[hidden], .bast-purchase-options[hidden] { display: none; }
#bast-purchase-source, #bast-pdf-source { min-height: 10rem; align-content: start; }
.bast-meta-grid { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(20rem, 28rem); gap: .75rem; }
.bast-purchase-field { align-self: start; }
.bast-purchase-options { max-height: min(14rem, 30dvh); overflow: auto; border: 1px solid var(--fpbs-line); border-radius: .5rem; background: #fff; box-shadow: 0 12px 25px #1118271a; }
.bast-purchase-option { display: block; width: 100%; padding: .65rem .75rem; border: 0; border-bottom: 1px solid var(--fpbs-line); background: #fff; color: var(--fpbs-ink); text-align: left; cursor: pointer; }
.bast-purchase-option:last-child { border-bottom: 0; }
.bast-purchase-option:hover, .bast-purchase-option:focus-visible { background: #f3f0fb; }
.bast-purchase-empty { margin: 0; padding: .7rem .75rem; color: var(--fpbs-muted); }
.bast-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bast-pdf-source { position: relative; grid-template-columns: minmax(0, 1fr); }
.bast-pdf-drop { display: flex; min-height: 9rem; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1rem; border: 1px dashed #c7ccd7; border-radius: .65rem; background: #fafafa; color: var(--fpbs-ink); text-align: center; cursor: pointer; }
.bast-pdf-drop span, .bast-pdf-drop small { color: var(--fpbs-muted); }
.bast-pdf-drop:hover, .bast-pdf-drop.is-dragging { border-color: #6b21c9; background: #f7f2ff; }
.bast-pdf-drop:focus-visible { outline: 2px solid #6b21c9; outline-offset: 3px; }
.bast-pdf-picked { display: flex; width: min(100%, 36rem); min-width: 0; min-height: 2.5rem; align-items: center; gap: .55rem; }
.bast-pdf-picked-icon { flex: none; color: #6b21c9; font-size: .75rem; font-weight: 700; }
.bast-pdf-filename { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; padding: .3rem 0; background: transparent; color: var(--fpbs-ink); text-align: left; cursor: pointer; }
.bast-pdf-filename:hover { color: #6b21c9; text-decoration: underline; }
.bast-pdf-filename:focus-visible { outline: 2px solid #6b21c9; outline-offset: 2px; }
.bast-pdf-reading { flex: none; color: var(--fpbs-muted); font-size: .8rem; }
.bast-pdf-picked .ghost-action, .bast-pdf-picked .icon-button { flex: none; border: 0; background: transparent; box-shadow: none; }
.bast-pdf-picked .ghost-action:hover, .bast-pdf-picked .icon-button:hover { background: #f3f4f6; }
.bast-party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.bast-party { min-width: 0; border: 1px solid var(--fpbs-line); border-radius: .55rem; padding: .9rem; display: grid; align-content: start; gap: .55rem; }
.bast-party legend { font-weight: 700; padding: 0 .25rem; }
.bast-party-small { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(12rem, 1.7fr); gap: .55rem; }
.bast-staff-input { position: relative; min-width: 0; }
.bast-staff-field { position: relative; }
#bast-backdrop .bast-staff-input input { width: 100%; padding-right: 2.4rem; }
.bast-staff-clear { position: absolute; top: .2rem; right: .25rem; width: 1.8rem; height: 1.8rem; border: 0; border-radius: .35rem; background: transparent; color: var(--fpbs-muted); cursor: pointer; }
.bast-staff-clear:hover, .bast-staff-clear:focus-visible { background: #f3f4f6; color: var(--fpbs-ink); }
.bast-staff-clear[hidden] { display: none; }
.bast-items-section { display: grid; gap: .75rem; }
.bast-items-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.bast-preview-dialog { width: min(calc(100vw - 1.5rem), 78rem); height: min(calc(100dvh - 2rem), 64rem); max-width: none; max-height: none; border: 0; border-radius: .65rem; padding: 0; overflow: hidden; background: #e9edf4; }
.bast-preview-dialog::backdrop { background: rgba(2, 6, 23, .68); }
.bast-preview-close { position: absolute; top: .75rem; right: .75rem; z-index: 1; background: #fff; }
.bast-preview-scroll { position: absolute; inset: 0; width: 100%; height: 100%; overflow: auto; padding: 3.5rem 1rem 1rem; box-sizing: border-box; }
.bast-preview-pages { display: block; }
.bast-items-table { min-width: 40rem; }
.bast-items-table td { vertical-align: middle; }
.bast-items-table .bast-item-no { width: 3rem; text-align: center; }
.bast-items-table input { width: 100%; min-width: 0; border: 1px solid var(--fpbs-line); border-radius: .45rem; padding: .45rem .55rem; background: #fff; }
.bast-items-table textarea { display: block; width: 100%; min-width: 0; min-height: 2.4rem; max-height: 12rem; border: 1px solid var(--fpbs-line); border-radius: .45rem; padding: .45rem .55rem; background: #fff; line-height: 1.45; field-sizing: content; resize: vertical; overflow-wrap: anywhere; }
#bast-backdrop .modal-card.bast-modal-card .bast-form-body input:disabled:not([type="file"]):not([type="checkbox"]) {
  background: #dce2eb; border-color: #aeb9ca; color: #334155;
  -webkit-text-fill-color: #475569; opacity: 1; cursor: not-allowed; caret-color: transparent;
}
#bast-backdrop .bast-form-body .bast-items-table textarea:disabled { background: #dce2eb; border-color: #aeb9ca; color: #334155; opacity: 1; cursor: not-allowed; }
.bast-items-table .bast-item-quantity { width: 7rem; }
.bast-items-table .bast-item-unit { width: 8rem; }
#bast-date { cursor: pointer; }
.bast-staff-matches { max-height: 11rem; overflow: auto; border: 1px solid var(--fpbs-line); border-radius: .45rem; background: #fff; box-shadow: 0 12px 25px #1118271a; }
.bast-staff-matches[popover], .bast-purchase-options[popover] { position: fixed; inset: auto; margin: 0; padding: 0; box-sizing: border-box; }
.bast-staff-matches button { display: block; width: 100%; padding: .45rem .55rem; background: #fff; border: 0; text-align: left; cursor: pointer; }
.bast-staff-matches button:hover, .bast-staff-matches button:focus-visible { background: #f3f0fb; }
#bast-form-error { margin: 0; color: #b42318; }
@media (max-width: 720px) {
  .bast-source-panel, .bast-meta-grid, .bast-party-grid, .bast-party-small { grid-template-columns: minmax(0, 1fr); }
  .modal-card.bast-modal-card { width: calc(100vw - 1.5rem); }
  .bast-items-head { align-items: stretch; flex-direction: column; }
  .bast-items-head > button { align-self: flex-end; }
}

.import-modal-card .data-table th { letter-spacing: 0; }

.import-modal-card .modal-form {
  grid-template-columns: minmax(0, 1fr);
}

.import-modal-card #import-preview-shell,
.import-modal-card .table-wrap {
  min-width: 0;
  max-width: 100%;
}

.import-modal-card .table-wrap {
  max-height: min(46dvh, 28rem);
  overflow: auto;
  scrollbar-color: #a08abb #fafafa;
}

.import-modal-card .table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.import-modal-card .table-wrap::-webkit-scrollbar-thumb {
  background: #a08abb;
}

.import-modal-card .table-wrap::-webkit-scrollbar-track {
  background: #fafafa;
}

.import-modal-card .table-wrap thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-card.smart-input-modal-card {
  width: min(calc(100vw - 1.5rem), 78rem);
}

.modal-backdrop:has(.create-workspace-card) {
  inset: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.modal-card.create-workspace-card {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-form {
  display: grid;
  gap: 0.4rem;
}

.modal-form:not(.create-workspace-form) {
  gap: 0.75rem;
}

.metadata-modal-card .modal-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metadata-modal-card .modal-form > .field:nth-child(-n+2),
.metadata-modal-card .modal-form > #metadata-total-field,
.metadata-modal-card .detail-form-actions {
  grid-column: 1 / -1;
}

.classification-field {
  grid-column: 1 / -1;
  min-width: 0;
}

.classification-combobox {
  position: relative;
  min-width: 0;
}

.classification-combobox > #detailClassificationSearch {
  width: 100%;
  box-sizing: border-box;
}

.classification-results {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 3;
  max-height: 13rem;
  overflow-y: auto;
  border: 1px solid var(--fpbs-line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
}

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

.classification-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--fpbs-line);
  background: #fff;
  color: var(--fpbs-ink);
  text-align: left;
  cursor: pointer;
}

.classification-result:last-child { border-bottom: 0; }
.classification-result:hover, .classification-result:focus-visible { background: var(--fpbs-surface); }
.classification-result span { min-width: 0; overflow-wrap: anywhere; }
.classification-result small { flex: 0 0 auto; }
.classification-result small, .classification-inline { color: var(--fpbs-muted); }
.classification-inline { display: block; font-size: 0.75rem; }
.classification-select-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fpbs-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.classification-select-button:hover, .classification-select-button:focus-visible { color: var(--fpbs-ink); }
.classification-clear {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fpbs-muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.classification-clear:hover { color: var(--fpbs-ink); }
.classification-more {
  width: 100%;
  padding: 0.65rem;
  border: 0;
  background: var(--fpbs-surface);
  color: var(--fpbs-ink);
  font: inherit;
  cursor: pointer;
}
.classification-more:hover { background: #ededf0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.field input,
.field select {
  height: 2.2rem;
  padding: 0 0.65rem;
}

.modal-card:not(.create-workspace-card) .field input:not([type="file"]):not([type="checkbox"]),
.modal-card:not(.create-workspace-card) .field select:not(.ts-hidden-accessible),
.content-card .field input:not([type="file"]):not([type="checkbox"]),
.content-card .field select:not(.ts-hidden-accessible) {
  height: 2.25rem;
  background: rgba(250, 250, 250, 0.35);
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.field textarea {
  min-height: 7rem;
  padding: 0.55rem 0.65rem;
  resize: vertical;
}

.modal-card:not(.create-workspace-card) .field textarea,
.content-card .field textarea {
  background: rgba(250, 250, 250, 0.35);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.metadata-modal-card .field textarea {
  min-height: 5rem;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fpbs-ink);
}

.helper-text {
  margin: 0.2rem 0 0;
  color: var(--fpbs-muted);
  font-size: 0.75rem;
}

.item-rows {
  display: grid;
  gap: 0.45rem;
}

.item-row {
  border: 1px solid var(--fpbs-line);
  padding: 0.55rem;
  background: #fff;
}

.item-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.checkbox-field input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.modal-close {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  color: var(--fpbs-ink);
  border-color: var(--fpbs-line);
  background: #fff;
}

.modal-form .row-remove {
  min-height: 2.25rem;
  padding: 0 0.75rem;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--fpbs-line);
}

::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .toolbar-grid {
    grid-template-columns: minmax(12rem, 1.5fr) minmax(12rem, 1fr) auto;
  }

  .purchase-toolbar {
    grid-template-columns: minmax(12rem, 22rem) minmax(8rem, 12rem) minmax(6rem, 8rem) 2.25rem auto;
  }

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

  .dashboard-grid,
  .detail-meta-grid,
  .detail-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .simsarpras-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell,
  .app-shell.is-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

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

  .purchase-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.25rem;
  }

  .purchase-toolbar .toolbar-search { grid-column: 1 / -1; }
  .purchase-toolbar .purchase-filter-menu { grid-column: 3; grid-row: 2; }
  .purchase-toolbar .toolbar-action-group { grid-column: 1 / -1; }

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

  .stockopname-meta-grid,
  .stockopname-officer-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-action {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .toolbar-action-group {
    grid-column: auto;
    justify-self: stretch;
    display: grid;
  }

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

  .import-actions-top {
    grid-template-columns: 1fr;
  }

  .create-workspace-card {
    height: 100dvh;
  }

  .create-workspace-form {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .procurement-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .procurement-summary strong {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .review-workspace,
  .create-workspace-footer {
    grid-template-columns: 1fr;
  }

  .review-workspace {
    overflow: auto;
  }

  .review-pane {
    min-height: 26rem;
  }

  .workspace-divider {
    display: none;
  }

  .smart-input-review,
  .smart-input-grid,
  .inline-invoice-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .item-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    height: auto;
  }

  .item-row-head,
  .detail-headline,
  .section-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .check-sintag-table {
    min-width: 0;
    table-layout: auto;
  }

  .check-sintag-table thead {
    display: none;
  }

  .check-sintag-table tbody {
    display: block;
  }

  .check-sintag-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--fpbs-line);
  }

  .check-sintag-table tbody tr:last-child {
    border-bottom: 0;
  }

  .check-sintag-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .check-sintag-table td:first-child { grid-column: 1; grid-row: 1; }
  .check-sintag-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .check-sintag-table td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .check-sintag-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }

  .check-sintag-table td:nth-child(2)::before,
  .check-sintag-table td:nth-child(3)::before {
    display: block;
    color: var(--fpbs-muted);
    font-size: 0.72rem;
  }

  .check-sintag-table td:nth-child(2)::before { content: "Kredit dicek"; }
  .check-sintag-table td:nth-child(3)::before { content: "Nilai pengadaan"; }

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

  .detail-form-grid,
  .metadata-modal-card .modal-form {
    grid-template-columns: 1fr;
  }

  .finance-toolbar #finance-import-open {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .simsarpras-controls { grid-template-columns: minmax(0, 1fr); }
  .check-sintag-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .check-sintag-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.75rem;
  }

  .check-summary-item {
    padding: 0;
    border-right: 0;
  }
}

.sticker-toolbar {
  display: grid;
  grid-template-columns: auto 9rem minmax(14rem, 23rem);
  align-items: end;
  justify-content: start;
  gap: 1rem;
  margin: 1rem 0;
}

.sticker-source { min-width: 0; margin: 0; border: 0; padding: 0; }
.sticker-source legend { margin-bottom: 0.25rem; color: var(--fpbs-muted); font-size: 0.82rem; }
.sticker-source .segmented-tabs { gap: 0; flex-wrap: nowrap; }
.sticker-source .segmented-tabs button {
  height: 2.25rem;
  border: 1px solid var(--fpbs-line);
  background: #fff;
  color: var(--fpbs-ink);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.sticker-source .segmented-tabs button + button { border-left: 0; }
.sticker-source .segmented-tabs button.is-active { background: var(--fpbs-ink); color: #fff; }
.sticker-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--fpbs-line);
}
.sticker-selection-count { margin-right: auto; font-size: 0.85rem; font-weight: 600; }
.sticker-message { min-height: 1.5rem; margin-bottom: 0.45rem; color: var(--fpbs-muted); font-size: 0.82rem; }
.sticker-message.is-error { color: #b4233c; }
.sticker-table { min-width: 72rem; }
.sticker-table th { letter-spacing: 0; }
.sticker-table th:first-child, .sticker-table td:first-child { width: 2.5rem; text-align: center; }
.sticker-table input[type="checkbox"], #sticker-select-page { width: 1rem; height: 1rem; accent-color: #305b75; cursor: pointer; }
.sticker-table input:not([type="checkbox"]) { height: 2rem; min-width: 0; padding: 0 0.4rem; font-size: 0.82rem; }
.sticker-table td:nth-child(2) { min-width: 7.5rem; }
.sticker-table td:nth-child(3) { min-width: 12rem; max-width: 18rem; overflow-wrap: anywhere; }
.sticker-table td:nth-child(4) { width: 5rem; }
.sticker-table td:nth-child(5) { width: 4rem; }
.sticker-table td:nth-child(6) { width: 8.5rem; }
.sticker-table td:nth-child(7) { width: 6rem; min-width: 6rem; }
.sticker-table td:nth-child(8) { min-width: 11.5rem; }
.sticker-classification { display: block; color: var(--fpbs-muted); font-size: 0.75rem; }
.sticker-code-preview { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 0.78rem !important; }
.sticker-row-actions { white-space: nowrap; }
.sticker-row-actions .square-action { vertical-align: middle; margin-left: 0.25rem; }
.sticker-status { color: var(--fpbs-muted); white-space: nowrap; font-size: 0.78rem; }
.sticker-status.is-exported { color: #176d56; }
.sticker-table tbody tr.sticker-exported { background: #f0f8f4; }
.sticker-table tbody tr.sticker-exported:hover { background: #e8f4ed; }
.sticker-table tbody tr.sticker-draft { background: var(--fpbs-surface); }
.sticker-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.65rem; color: var(--fpbs-muted); font-size: 0.8rem; }
.sticker-pager > div { display: flex; gap: 0.35rem; }
.sticker-pager button { width: 2.25rem; font-size: 1.2rem; }
.sticker-code-modal { width: min(calc(100vw - 1.5rem), 34rem); }
.sticker-code-modal .field { margin: 0.8rem 0; }
.sticker-code-results { display: grid; gap: 0; max-height: min(50vh, 24rem); overflow-y: auto; border: 1px solid var(--fpbs-line); }
.sticker-candidate { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; min-height: 2.65rem; border: 0; border-bottom: 1px solid var(--fpbs-line); background: #fff; color: var(--fpbs-ink); padding: 0.55rem 0.7rem; text-align: left; }
.sticker-candidate:last-child { border-bottom: 0; }
.sticker-candidate:hover { background: #f1f7f5; }
.sticker-candidate strong { font-size: 0.85rem; font-weight: 600; }
.sticker-candidate span { flex: 0 0 auto; color: var(--fpbs-muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.sticker-no-candidate { padding: 0.6rem 0.7rem; color: var(--fpbs-muted); font-size: 0.82rem; }

@media (max-width: 800px) {
  .sticker-toolbar { grid-template-columns: minmax(0, 1fr) 8rem; }
  .sticker-search { grid-column: 1 / -1; }
  .sticker-actions { flex-wrap: wrap; }
  .sticker-selection-count { width: 100%; }
}

@media (max-width: 420px) {
  .sticker-toolbar { grid-template-columns: minmax(0, 1fr); }
  .sticker-search { grid-column: auto; }
  .sticker-actions .primary-action { flex: 1; }
}

.distribution-head { align-items: center; }
.distribution-count { margin-left: .45rem; color: var(--fpbs-muted); font-size: .76rem; font-weight: 500; white-space: nowrap; }
.distribution-head-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.distribution-queue-status { margin: .75rem 0; padding: .75rem; border-radius: .5rem; background: #f4f0fc; color: var(--fpbs-ink); font-size: .85rem; }
.distribution-table { min-width: 70rem; table-layout: fixed; }
.distribution-table th:nth-child(1) { width: 29%; }
.distribution-table th:nth-child(2) { width: 12%; }
.distribution-table th:nth-child(3) { width: 17%; }
.distribution-table th:nth-child(4) { width: 23%; }
.distribution-table th:nth-child(5) { width: 7%; }
.distribution-table th:nth-child(6) { width: 12%; }
.distribution-table td { vertical-align: middle; }
.distribution-table td small { display: block; color: var(--fpbs-muted); }
.distribution-table td:nth-child(2), .distribution-table td:nth-child(5), .distribution-table td:nth-child(6) { white-space: nowrap; }
.distribution-table td:nth-child(3), .distribution-table td:nth-child(4) { overflow-wrap: anywhere; }
.distribution-table td.cell-summary { max-width: none; white-space: normal; }
.distribution-sintag-control { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.distribution-sintag-control strong { white-space: nowrap; }
.distribution-state { color: var(--fpbs-muted); font-size: .78rem; white-space: nowrap; }
.distribution-sintag-control input[type='checkbox'] { flex: 0 0 auto; accent-color: #6324c5; }
.distribution-sintag-control textarea[data-distribution-destination] { box-sizing: border-box; width: 100%; min-width: 0; flex: 1 1 auto; min-height: 2.2rem; padding: .4rem .55rem; border: 1px solid var(--fpbs-line); border-radius: .4rem; font: inherit; line-height: 1.25rem; overflow: hidden; overflow-wrap: anywhere; resize: none; }
@media (max-width: 700px) { .distribution-head-actions { width: 100%; } .distribution-head-actions #distribution-queue-button { flex: 1; } }

.warehouse-shell { gap: 1.1rem; }
.warehouse-tab-panel { display: grid; gap: 1rem; }
.warehouse-tab-panel[hidden] { display: none !important; }
#warehouse-comparison { display: grid; gap: .7rem; padding: 1rem; border: 1px solid var(--fpbs-line); border-radius: .65rem; }
#warehouse-comparison[hidden] { display: none !important; }
.warehouse-head { align-items: center; flex-wrap: wrap; }
.warehouse-head .stock-report-actions { margin-left: auto; justify-content: flex-end; }
@media (max-width: 700px) { .warehouse-head .stock-report-actions { width: 100%; justify-content: flex-start; } }
.warehouse-muted { color: var(--fpbs-muted); font-size: .8rem; }
.warehouse-empty { display: grid; gap: .85rem; padding: 1.25rem; border: 1px solid var(--fpbs-line); border-radius: .65rem; color: var(--fpbs-muted); }
.warehouse-empty[hidden] { display: none; }
.warehouse-opening-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.warehouse-opening-actions > span { flex: 1 1 18rem; }
.warehouse-opening-table { min-width: 50rem; }
#warehouse-opening-preview .table-wrap { max-height: 28rem; overflow: auto; }
.warehouse-opening-table td { overflow-wrap: anywhere; }
#warehouse-main { display: grid; gap: 1rem; }
#warehouse-main[hidden], #warehouse-scanner[hidden] { display: none !important; }
.warehouse-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.warehouse-dialog-head h3 { font-size: 1rem; font-weight: 700; }
.warehouse-request-dialog, .warehouse-quantity-dialog { width: min(72rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.25rem; border: 1px solid var(--fpbs-line); border-radius: .75rem; background: #fff; color: var(--fpbs-ink); box-shadow: 0 1rem 3rem #11182733; overflow: auto; }
.warehouse-quantity-dialog { width: min(28rem, calc(100vw - 2rem)); }
.warehouse-request-dialog::backdrop, .warehouse-quantity-dialog::backdrop { background: #11182780; }
.warehouse-dialog-head { margin-bottom: 1rem; }
.warehouse-dialog-head button { font-size: 1.5rem; line-height: 1; }
.warehouse-request-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(10rem, .6fr); gap: .75rem; margin-bottom: 1rem; }
.warehouse-request-fields .field, .warehouse-request-fields input, .warehouse-request-fields select { min-width: 0; width: 100%; }
@media (max-width: 700px) { .warehouse-request-fields { grid-template-columns: 1fr; } }
.warehouse-form-actions { display: flex; justify-content: flex-end; gap: .5rem; align-items: end; }
.warehouse-request-divider { border: 0; border-top: 1px solid var(--fpbs-line); margin: 0 0 1rem; }
.warehouse-request-dialog .warehouse-form-actions { margin-top: 1rem; }
.warehouse-quantity-dialog form { display: grid; gap: 1rem; }
.warehouse-catalog-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.warehouse-catalog-head h3, #warehouse-main > h3 { font-size: 1rem; font-weight: 700; }
.warehouse-search-row { display: flex; align-items: end; gap: .75rem; }
.warehouse-search-row .warehouse-search { flex: 1 1 auto; min-width: 0; max-width: 32rem; }
.warehouse-search-row #warehouse-scan { flex: none; margin-left: auto; }
.warehouse-results { display: grid; gap: .25rem; max-width: 42rem; max-height: 18rem; margin-top: .5rem; overflow-y: auto; }
.warehouse-results[hidden] { display: none; }
.warehouse-result { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 2.5rem; padding: .5rem .7rem; background: white; border: 1px solid var(--fpbs-line); border-radius: .35rem; text-align: left; color: var(--fpbs-ink); }
.warehouse-result:hover { background: #f5f3ff; }
.warehouse-result small { white-space: nowrap; color: var(--fpbs-muted); }
.warehouse-request-dialog .table-wrap { margin-top: 1rem; }
.warehouse-issue-table { min-width: 34rem; }
.warehouse-issue-table td { vertical-align: middle; }
.warehouse-edit-quantity { padding: .3rem .6rem; border: 1px solid var(--fpbs-line); border-radius: .4rem; background: #fff; color: var(--fpbs-ink); cursor: pointer; }
.warehouse-catalog-table { min-width: 70rem; }
.warehouse-catalog-table thead th:first-child, .warehouse-catalog-table tbody td:first-child { width: 3rem; text-align: center; }
.warehouse-catalog-table td { vertical-align: middle; }
.warehouse-catalog-table td:nth-child(3), .warehouse-catalog-table td:nth-child(5) { overflow-wrap: anywhere; }
.warehouse-catalog-table .warehouse-money { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.warehouse-catalog-table tfoot th { border-top: 1px solid var(--fpbs-line); color: var(--fpbs-ink); font-weight: 700; }
.warehouse-history-table { min-width: 44rem; }
.warehouse-card-year select { min-width: 6rem; }
.warehouse-card-search { width: min(100%, 25rem); padding: .6rem .75rem; border: 1px solid var(--fpbs-line); border-radius: .45rem; font: inherit; color: var(--fpbs-ink); }
.warehouse-card-list { min-width: 48rem; }
.warehouse-card-list thead th:first-child, .warehouse-card-list tbody td:first-child { width: 3rem; text-align: center; }
.warehouse-card-list td { vertical-align: middle; }
.warehouse-card-list td:nth-child(2), .warehouse-card-list td:nth-child(4) { overflow-wrap: anywhere; }
.warehouse-scanner { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.warehouse-scanner video { width: min(100%, 22rem); max-height: 17rem; background: #111; border-radius: .5rem; }
/* Match the chatbot admin's shell, table, form and action components. */
:root { --admin-line-soft: rgb(227 220 240 / 70%); --admin-row-line: rgb(227 220 240 / 60%); --bmn-control-height: 2.25rem; --bmn-section-gap: 1rem; }
button, input:not([type='checkbox']):not([type='radio']), select, textarea { border-radius: .65rem; }
button { transition: background-color 150ms ease, color 150ms ease; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--fpbs-primary); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fpbs-primary); box-shadow: none; }
input[type='checkbox'], input[type='radio'] { width: auto; accent-color: var(--fpbs-primary); }
textarea { min-height: 4.5rem; max-height: min(20rem, 35vh); resize: vertical; overflow-wrap: anywhere; }
#root select:not(.ts-hidden-accessible) { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); background-position: right .5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; }
.app-shell { grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; }
.app-shell.is-collapsed { grid-template-columns: 4.5rem minmax(0, 1fr); }
.sidebar { position: relative; min-height: 0; height: calc(100dvh - 2.5rem); padding: .75rem; border-color: var(--fpbs-line); border-radius: 1rem; }
.sidebar-header { display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0; gap: .5rem; }
.brand { min-width: 0; padding-bottom: .5rem; }
.brand-logo { max-width: 100%; height: 2rem; align-self: flex-start; margin: 0; }
.brand-copy h1 { margin: .75rem 0 0; color: var(--fpbs-ink); font-size: .875rem; font-weight: 600; line-height: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .65rem; background: #fff; color: var(--fpbs-ink); }
.sidebar-toggle:hover { background: #f1f5f9; }
.sidebar.is-collapsed .sidebar-header { justify-content: center; padding-bottom: .5rem; }
.sidebar.is-collapsed .brand { display: none; }
.sidebar.is-collapsed .sidebar-toggle { width: 2.25rem; height: 2.25rem; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; align-content: start; margin-top: .5rem; padding-right: .125rem; gap: .25rem; }
.side-link, .side-footer-link { width: 100%; border-radius: .65rem; font-weight: 600; }
.side-link { height: 2.25rem; min-height: 2.25rem; padding: 0 .625rem; gap: .5rem; font-size: .875rem; line-height: 1.25rem; }
.side-link:hover { background: var(--fpbs-surface); }
.side-link.is-active, .side-link.is-active:hover { background: var(--fpbs-primary); color: #fff; }
.side-footer { flex-shrink: 0; margin-top: .5rem; padding-top: .5rem; }
.side-account { display: flex; align-items: center; gap: .5rem; padding: .5rem; min-width: 0; }
.side-account-icon { display: grid; width: 2rem; height: 2rem; place-items: center; flex-shrink: 0; border-radius: 50%; color: var(--fpbs-primary); background: var(--fpbs-surface); }
.side-account-copy { display: grid; flex: 1; min-width: 0; }
.side-account-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; line-height: 1.25rem; }
.side-account-copy > span { color: var(--fpbs-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.side-account #logout-button { width: 2.25rem; height: 2.25rem; min-height: 0; justify-content: center; padding: 0; border-left: 1px solid var(--fpbs-line); }
.sidebar.is-collapsed .side-account-copy, .sidebar.is-collapsed .side-account-icon { display: none; }
.sidebar.is-collapsed .side-account { justify-content: center; padding-inline: 0; }
.sidebar.is-collapsed #logout-button { border-left: 0; }
.content-card { display: flex; flex-direction: column; height: calc(100dvh - 2.5rem); min-width: 0; border-color: var(--fpbs-line); border-radius: 1rem; overflow: hidden; }
.scroll-shell { flex: 1; min-height: 0; height: auto; }
.content-pad { padding: 2rem; }
.section-block { gap: var(--bmn-section-gap); min-width: 0; }
.section-head { position: relative; align-items: center; flex-direction: row; flex-wrap: wrap; gap: .75rem; }
.section-head h2 { font-size: 1.18rem; line-height: 1.3; }
.dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; border: 0; background: transparent; }
.stat-box { min-width: 0; border: 1px solid var(--fpbs-line); border-radius: .75rem; padding: 1rem; }
.stat-box strong { overflow-wrap: anywhere; font-size: 1.35rem; }
.stat-label { font-size: .82rem; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.dashboard-year-badge { border-radius: .65rem; background: var(--fpbs-surface); }
.toolbar-field, .field { min-width: 0; font-size: .92rem; font-weight: 500; gap: .25rem; }
.field > span { color: var(--fpbs-ink); line-height: 1; }
.field :is(input:not([type='checkbox']):not([type='radio']), select), .content-card .field select:not(.ts-hidden-accessible) { min-height: 2.25rem; border-color: var(--fpbs-line); }
.field :is(input:not([type='checkbox']), select, textarea) { font-size: .875rem; }
.primary-action, .secondary-action, .ghost-action, .icon-button, .danger-action { min-height: 2.75rem; border-radius: .75rem; font-size: .875rem; font-weight: 600; padding-inline: 1rem; line-height: 1.25rem; }
.primary-action { border: 0 solid #e5e7eb; background: var(--fpbs-primary); color: #fff; }
.primary-action:hover:not(:disabled) { background: var(--fpbs-ink); }
:is(#submit-button, #save-metadata, #save-detail-item, #save-settings-button, #finance-import-commit, #commit-import-button, #process-smart-input) { border-color: transparent; background: var(--fpbs-primary); }
:is(#submit-button, #save-metadata, #save-detail-item, #save-settings-button, #finance-import-commit, #commit-import-button, #process-smart-input):hover:not(:disabled) { background: var(--fpbs-ink); }
.create-workspace-card #create-add-item { background: var(--fpbs-primary); color: #fff; }
.create-workspace-card #create-add-item:hover:not(:disabled) { background: var(--fpbs-ink); }
.segmented-tabs button.is-active, .sticker-source .segmented-tabs button.is-active { background: var(--fpbs-primary); color: #fff; }
.sticker-table input[type='checkbox'], #sticker-select-page { accent-color: var(--fpbs-primary); }
.sticker-candidate:hover { background: var(--fpbs-surface); }
.section-head .purchase-toolbar, .page-toolbar .purchase-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; gap: .5rem; max-width: 100%; }
.purchase-toolbar .toolbar-field > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.purchase-toolbar .toolbar-field select { width: auto; min-width: 6rem; max-width: 100%; height: 2.25rem; padding: 0 2.75rem 0 .75rem; border-radius: .65rem; background-color: #fafafa; font-weight: 400; line-height: 1; }
.purchase-toolbar .toolbar-action-group { display: flex; width: auto; }
.purchase-toolbar .toolbar-action { width: auto; height: 2.25rem; min-height: 2.25rem; padding: 0 .75rem; gap: .5rem; border: 0; border-radius: .65rem; line-height: 1; }
.purchase-toolbar .toolbar-action:hover { background: var(--fpbs-primary); }
.toolbar-icon { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 2.25rem; height: 2.25rem; min-height: 0; padding: 0; border: 1px solid var(--fpbs-line); border-radius: .65rem; color: var(--fpbs-ink); background: #fff; }
.toolbar-icon:hover { background: var(--fpbs-surface); }
.toolbar-icon.has-query::after { content: ''; position: absolute; right: .25rem; top: .25rem; width: .375rem; height: .375rem; border-radius: 50%; background: var(--fpbs-primary); }
.purchase-search-panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; display: flex; align-items: center; gap: .5rem; width: min(40rem, 100%); padding: .5rem; border: 1px solid var(--fpbs-line); border-radius: .75rem; background: #fff; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.purchase-search-panel > svg { margin-left: .25rem; flex-shrink: 0; color: var(--fpbs-muted); }
.purchase-search-panel input, .purchase-search-panel input:focus { flex: 1; min-width: 0; width: 100%; height: 2.25rem; padding: 0 .5rem; border: 0; outline: 0; box-shadow: none; background: #fff; font-size: .875rem; }
.purchase-search-panel .toolbar-icon { flex-shrink: 0; border: 0; color: var(--fpbs-muted); }
.purchase-item-suggestions { position: absolute; top: calc(100% + .25rem); right: 0; z-index: 31; width: 100%; max-height: min(22rem, 45vh); overflow-y: auto; padding: .25rem; border: 1px solid var(--fpbs-line); border-radius: .75rem; background: #fff; box-shadow: 0 10px 20px #0000001a; }
.purchase-item-suggestions[hidden] { display: none; }
.purchase-item-suggestion { display: grid; gap: .125rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: .5rem; background: transparent; color: var(--fpbs-ink); text-align: left; cursor: pointer; }
.purchase-item-suggestion:hover, .purchase-item-suggestion:focus-visible { background: var(--fpbs-surface); }
.purchase-item-suggestion strong { font-size: .875rem; font-weight: 600; }
.purchase-item-suggestion small { color: var(--fpbs-muted); font-size: .75rem; }
#detail-items-body tr.detail-search-match { background: #f3eaff; outline: 2px solid var(--fpbs-primary); outline-offset: -2px; }
.purchase-toolbar .toolbar-field input { width: 7rem; height: 2.25rem; padding: 0 .75rem; font-size: .875rem; }
.purchase-toolbar .toolbar-field.is-active select { border-color: var(--fpbs-primary); color: var(--fpbs-primary); }
.purchase-extension-hint { display: flex; align-items: flex-start; gap: .75rem; margin: 0 0 1.25rem; padding: 1rem; border: 0; border-radius: .75rem; background: #fff5d6; color: #754509; font-size: .95rem; line-height: 1.5; }
.purchase-extension-hint > svg { flex-shrink: 0; margin-top: .125rem; }
.purchase-extension-hint strong { display: block; font-weight: 700; }
.purchase-extension-hint p { margin: .25rem 0 0; }
.source-switcher, .check-method-field { display: grid; justify-items: start; gap: .5rem; }
.section-head > .segmented-tabs { margin-left: auto; }
.section-head:has(> .segmented-tabs) > :first-child { flex-basis: auto; }
.segmented-tabs, .sticker-source .segmented-tabs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .25rem; border-radius: .75rem; background: #f3f4f6; }
.segmented-tabs button, .sticker-source .segmented-tabs button { display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; min-height: 2.25rem; padding: 0 .875rem; border: 0; border-radius: .5rem; background: transparent; color: var(--fpbs-muted); font-size: .875rem; font-weight: 600; line-height: 1.25rem; }
.segmented-tabs button.is-active, .segmented-tabs button.is-active:hover:not(:disabled) { background: #fff; color: var(--fpbs-primary); box-shadow: 0 1px 4px #29164416; }
.segmented-tabs button:hover:not(.is-active):not(:disabled) { background: #e5e7eb; }
.page-toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.page-toolbar .purchase-toolbar :is(select, input), .page-toolbar .toolbar-icon { height: 2.75rem; }
.page-toolbar .toolbar-icon { width: 2.75rem; }
.sticker-data-panel { display: grid; gap: .75rem; min-width: 0; }
.sticker-data-panel > .sticker-actions { margin: 0; }
#check-sintag-page .section-head { width: min(100%, 48rem); }
.check-sintag-toolbar { display: flex; justify-content: flex-start; }
.sticker-source .segmented-tabs button + button { border-left: 1px solid var(--fpbs-line); }
.segmented-tabs button.is-active { border-color: var(--fpbs-primary); }
.finance-panel, #import-page .report-shell { gap: 1.25rem; }
#import-page .section-head { width: min(100%, 42rem); align-items: center; }
#import-page .section-head > h2 { flex-basis: auto; }
#import-page .section-head .toolbar-action-group { margin-left: auto; justify-content: flex-end; }
#import-page .section-head > .download-feedback { flex-basis: 100%; }
#download-batch-import-template { height: 2.25rem; min-height: 2.25rem; padding: 0 .75rem; border-radius: .5rem; }
.section-head + :is(.report-shell, .sticker-toolbar, .simsarpras-controls) { margin-top: 0; }
.sticker-toolbar { display: flex; margin: 1rem 0 .75rem; }
.sticker-source legend { margin-bottom: .5rem; }
.sticker-actions { flex-wrap: wrap; justify-content: flex-start; border: 0; gap: .75rem; padding: 0; margin: 0 0 1rem; }
.sticker-actions .primary-action { flex: 0 1 auto; }
.sticker-selection-count { width: auto; margin: 0; color: var(--fpbs-muted); font-weight: 400; }
.sticker-message:empty { display: none; }
.report-actions { justify-content: flex-start; flex-wrap: wrap; gap: .5rem; }
#export-excel-shell { width: min(100%, 48rem); gap: 1rem; }
#export-excel-shell .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
#export-excel-shell .export-date-start { grid-column: 1; }
#export-excel-shell .toolbar-field :is(input, select) { width: 100%; min-width: 0; height: 2.75rem; }
#export-excel-shell .report-actions { justify-content: flex-end; }
.report-section-title, .settings-card h3 { border: 0; padding: 0; margin: .75rem 0 .25rem; }
#stockopname-shell { gap: 1rem; }
.stockopname-modal-card { width: min(calc(100vw - 1.5rem), 68rem) !important; }
.stockopname-page-controls { display: flex; align-items: flex-end; gap: .6rem; margin-left: auto; }
#stock-report-page { gap: 1rem; min-width: 0; grid-template-columns: minmax(0, 1fr); }
#stock-report-result { min-width: 0; }
#stock-report-upload { max-width: 54rem; }
.stock-report-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.stock-report-meta { display: flex; align-items: center; gap: .4rem .8rem; min-width: 0; flex: 1 1 auto; }
.stock-report-file { display: inline-flex; align-items: center; gap: .2rem; min-width: 0; }
#stock-report-filename { color: var(--fpbs-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#stock-report-summary { white-space: nowrap; }
.stock-report-warning { margin: -.15rem 0 .75rem; color: var(--fpbs-danger); font-size: .85rem; }
.stock-negative-row { background: #fff1f2; }
.stock-negative-row td:nth-child(4), .stock-negative-row td:nth-child(7) { color: var(--fpbs-danger); font-weight: 700; }
.stock-report-clear-file { flex: none; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: .35rem; background: transparent; color: var(--fpbs-muted); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.stock-report-clear-file:hover, .stock-report-clear-file:focus-visible { background: var(--fpbs-surface); color: var(--fpbs-ink); }
.stock-report-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 1100px) { .stock-report-meta { flex-wrap: wrap; } #stock-report-summary { white-space: normal; } }
.stock-report-wrap { width: 100%; min-width: 0; height: calc(100dvh - 11rem); min-height: 24rem; max-height: none; border-radius: .65rem; }
.stock-report-table { min-width: 54rem; }
.stock-report-table th, .stock-report-table td { padding: .55rem .65rem; }
.stock-report-table th:nth-child(1), .stock-report-table td:nth-child(1),
.stock-report-table th:nth-child(4), .stock-report-table td:nth-child(4) { text-align: center; }
.stock-report-table th:nth-child(6), .stock-report-table td:nth-child(6),
.stock-report-table th:nth-child(7), .stock-report-table td:nth-child(7),
.stock-report-table tfoot th:last-child { text-align: right; white-space: nowrap; }
.stock-report-table td:nth-child(3) { max-width: 31rem; overflow-wrap: anywhere; }
.stock-report-table .stock-unit { width: 7rem; min-height: 2rem; padding: .3rem .45rem; }
.stock-report-table .stock-unit[aria-invalid="true"] { border-color: var(--fpbs-danger); }
.stock-report-table tfoot { position: sticky; bottom: 0; background: #fff; }
.stock-report-table tfoot th { color: #111827; font-weight: 700; }
.stockopname-page-controls .toolbar-field { width: 7rem; }
.stockopname-page-controls input { width: 100%; min-height: 2.25rem; }
.stockopname-page-controls .primary-action { min-height: 2.25rem; white-space: nowrap; }
#stockopname-history-status { margin: .5rem 0 .75rem; color: var(--fpbs-muted); font-size: .85rem; }
#stockopname-page, .stockopname-history-wrap { width: 100%; min-width: 0; }
.stockopname-history-table { width: 100%; table-layout: fixed; }
.stockopname-history-table th:nth-child(1) { width: 20%; }
.stockopname-history-table th:nth-child(2) { width: 16%; }
.stockopname-history-table th:nth-child(3) { width: 14%; }
.stockopname-history-table th:nth-child(4) { width: 24%; }
.stockopname-history-table th:nth-child(5) { width: 14%; }
.stockopname-history-table th:nth-child(6) { width: 12%; }
.stockopname-history-table td { vertical-align: top; overflow-wrap: anywhere; }
.stockopname-history-table td > div > span, .stockopname-officer-summary > :is(span, small) { display: block; }
.stockopname-officer-summary + .stockopname-officer-summary { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--fpbs-line); }
.stockopname-officer-summary small { color: var(--fpbs-muted); }
.stockopname-history-table .ghost-action { display: inline-flex; white-space: nowrap; text-decoration: none; }
.stockopname-history-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.report-form-card, .stockopname-data-card { display: grid; gap: .75rem; padding: .75rem; border: 1px solid var(--fpbs-line); border-radius: .5rem; background: #fff; }
.stockopname-data-card .report-section-title { margin: 0; }
.stockopname-number-field { grid-column: auto; max-width: none; }
#stockopname-shell > .report-actions { justify-content: flex-end; }
.download-feedback { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .75rem; padding: 1rem; border-radius: .75rem; background: var(--fpbs-surface); font-size: .875rem; }
.download-feedback[data-state='ready'] { background: #ecfdf5; color: #047857; }
.download-feedback[data-state='error'] { background: #fff1f2; color: #be123c; }
.download-feedback-copy { flex: 1; min-width: 0; display: grid; gap: .25rem; overflow-wrap: anywhere; }
.download-feedback-copy p { margin: 0; }
.download-feedback a { align-self: center; color: inherit; font-weight: 600; text-underline-offset: .2em; }
.download-feedback .download-again { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1rem; margin-left: auto; border-radius: .75rem; background: var(--fpbs-primary); color: #fff; text-decoration: none; }
.download-feedback .download-again:hover { background: var(--fpbs-ink); }
.download-feedback button { align-self: center; }
.download-feedback .auth-spinner { width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin-top: .125rem; border-color: var(--fpbs-line); border-top-color: var(--fpbs-primary); }
.download-ready-hint { align-self: center; color: #047857; font-size: .875rem; }
.check-sintag-panel { border: 0; padding-top: .5rem; gap: 1rem; }
.check-sintag-controls, .check-sintag-toolbar { gap: 1.5rem; }
.simsarpras-summary { display: grid; gap: .125rem; padding: .625rem .75rem; border: 0; border-radius: .75rem; background: var(--fpbs-surface); margin: 0; }
.simsarpras-summary-head, .simsarpras-summary-row { display: grid; grid-template-columns: 2.75rem repeat(3, minmax(0, 1fr)); align-items: center; gap: .5rem; }
.simsarpras-summary-head { color: var(--fpbs-muted); font-size: .75rem; line-height: 1.3; margin-bottom: .25rem; }
.simsarpras-summary-row { border: 0; padding: .375rem 0; background: transparent; font-size: .875rem; }
.check-sintag-summary { border: 0; gap: .75rem 1.5rem; }
.check-summary-item { border: 0; padding: 0; }
.simsarpras-workspace { display: grid; gap: 1rem; width: 100%; min-width: 0; }
.simsarpras-workspace .section-head { align-items: center; }
.simsarpras-workspace .section-head > .simsarpras-heading { flex: 1 1 12rem; min-width: 0; }
.simsarpras-header-actions, .simsarpras-audit-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-left: auto; min-width: 0; }
.simsarpras-heading { display: grid; gap: .375rem; }
.simsarpras-workspace #simsarpras-message { margin: 0; color: var(--fpbs-muted); font-size: .8rem; text-align: left; overflow-wrap: anywhere; }
.simsarpras-intro { margin: 0; color: var(--fpbs-muted); font-size: .875rem; line-height: 1.5; }
.simsarpras-panel { display: grid; gap: .75rem; min-width: 0; }
.simsarpras-main-tabs { justify-self: stretch; border-bottom: 1px solid var(--fpbs-line); border-radius: 0; background: transparent; padding: 0; gap: .25rem; }
.simsarpras-main-tabs button { min-height: 2.75rem; border-radius: .5rem .5rem 0 0; padding-inline: 1.25rem; }
.simsarpras-main-tabs button.is-active, .simsarpras-main-tabs button.is-active:hover:not(:disabled) { box-shadow: inset 0 -3px 0 var(--fpbs-primary); background: #f7f5ff; }
.simsarpras-workspace .hidden-by-tab { display: none !important; }
.simsarpras-audit-section { min-width: 0; }
.simsarpras-audit-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; min-width: 0; }
.simsarpras-audit-heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.simsarpras-audit-heading h3 { margin: 0; }
.simsarpras-audit-info { position: relative; }
.simsarpras-audit-info > button { display: inline-flex; align-items: center; justify-content: center; width: .95rem; height: .95rem; min-height: 0; padding: 0; border: 1px solid var(--fpbs-muted); border-radius: 50%; background: #fff; color: var(--fpbs-muted); font-size: .625rem; font-weight: 700; line-height: 1; cursor: pointer; }
.simsarpras-audit-info > button:focus-visible { outline: 2px solid var(--fpbs-primary); outline-offset: 2px; }
.simsarpras-audit-info > .simsarpras-audit-description { position: absolute; z-index: 5; top: calc(100% + .5rem); left: 0; width: min(22rem, calc(100vw - 3rem)); margin: 0; padding: .7rem .8rem; border: 1px solid var(--fpbs-line); border-radius: .5rem; background: #fff; box-shadow: 0 .4rem 1.2rem #1118271c; line-height: 1.5; }
#simsarpras-audit-content { min-width: 0; padding-top: .65rem; }
.simsarpras-audit-exclusions { margin-top: .75rem; font-size: .82rem; color: var(--fpbs-muted); }
.simsarpras-audit-exclusions summary { cursor: pointer; }
.simsarpras-audit-exclusions ul { max-height: 12rem; overflow: auto; margin: .5rem 0 0; padding-left: 1.25rem; }
.simsarpras-findings summary { cursor: pointer; font-weight: 600; }
.simsarpras-findings ul { margin: .5rem 0 0; padding-left: 1.15rem; }
.simsarpras-findings li + li { margin-top: .35rem; }
.simsarpras-workspace .simsarpras-controls { display: flex; align-items: flex-end; justify-content: flex-start; flex-wrap: wrap; gap: .5rem; }
.simsarpras-workspace .simsarpras-year { width: 8rem; }
.simsarpras-workspace .simsarpras-header-year { flex: 0 0 7rem; margin: 0; }
.simsarpras-workspace .simsarpras-year input { width: 100%; height: 2.25rem; min-height: 2.25rem; padding: 0 .75rem; font-size: .875rem; }
#simsarpras-auto-button { width: auto; height: 2.25rem; min-height: 2.25rem; padding: 0 1rem; border-radius: .5rem; white-space: nowrap; }
#simsarpras-audit-brief { font-size: .72rem; line-height: 1rem; font-weight: 400; }
#simsarpras-file-panel { margin-top: .75rem; }
@media (max-width: 639px) {
  .simsarpras-audit-toolbar { align-items: flex-start; }
  .simsarpras-audit-info > .simsarpras-audit-description { left: 0; width: calc(100vw - 4rem); }
  .simsarpras-workspace .section-head { flex-wrap: wrap; }
  .simsarpras-header-actions, .simsarpras-audit-actions { width: 100%; }
  #simsarpras-audit-button { flex: none; white-space: normal; }
}
.simsarpras-feedback { padding: .625rem .75rem; border-radius: .5rem; background: var(--fpbs-surface); color: var(--fpbs-muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.simsarpras-feedback[data-state='error'] { background: #fff1f2; color: #be123c; }
.simsarpras-feedback[data-state='success'] { background: #ecfdf5; color: #047857; }
.simsarpras-upload-field { display: grid; align-content: start; gap: .5rem; min-width: 0; }
.simsarpras-upload-field .file-drop-zone { height: 100%; min-height: 12rem; padding: 1.5rem 1rem; }
.simsarpras-upload-field [aria-busy='true'] { border-color: var(--fpbs-primary); }
.simsarpras-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.import-actions-top { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.import-actions-top > :is(.file-drop-zone, .import-drop-zone) { flex-basis: 100%; }
.import-selected-file { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .65rem .8rem; border: 1px solid var(--fpbs-line); border-radius: .6rem; background: #fafafa; }
.import-selected-file > div:first-child { display: grid; gap: .1rem; min-width: 0; }
.import-selected-file span { color: var(--fpbs-muted); font-size: .75rem; }
.import-selected-file strong { overflow-wrap: anywhere; color: var(--fpbs-ink); font-size: .875rem; }
.import-commit-progress { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 10.5rem; min-height: 2.25rem; padding-inline: .75rem; color: var(--fpbs-muted); font-size: .875rem; }
.import-commit-progress .auth-spinner { flex: 0 0 auto; border-top-color: var(--fpbs-primary); }
.import-selected-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.import-preview-order { margin: .25rem 0 .5rem; color: var(--fpbs-muted); font-size: .8rem; }
.import-drop-zone, .import-drop-zone.detail-items { padding: 0; border: 0; }
.file-drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; width: 100%; min-width: 0; padding: 1.5rem 1rem; border: 1px dashed var(--fpbs-line); border-radius: .75rem; background: var(--fpbs-surface); color: var(--fpbs-muted); text-align: center; font-size: .875rem; cursor: pointer; }
.file-drop-zone:hover, .file-drop-zone.is-dragging { border-color: var(--fpbs-primary); background: #f3f4f6; }
.file-drop-zone:focus-within { outline: 2px solid var(--fpbs-primary); outline-offset: 3px; }
.file-drop-zone > svg { margin-bottom: .375rem; color: var(--fpbs-primary); }
.file-drop-zone strong { color: var(--fpbs-ink); font-size: 1rem; font-weight: 600; }
.file-drop-types { font-size: .8rem; }
.file-drop-name, #import-drop-hint { max-width: 100%; margin-top: .5rem; overflow-wrap: anywhere; color: var(--fpbs-primary); font-size: .875rem; }
.file-drop-error { color: #be123c; }
.file-drop-zone .file-drop-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); }
.record-status-badge.detail-status-valid { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.record-status-badge.detail-status-invalid { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.table-wrap { max-width: 100%; border-radius: .75rem; border-color: var(--admin-line-soft); }
.data-table thead { border-bottom: 1px solid var(--admin-line-soft); background: #fafafa; }
.data-table th, .data-table td { border: 0; }
.data-table th { font-size: .72rem; line-height: 1.25rem; letter-spacing: .16em; padding: .5rem .75rem; }
.data-table td { font-size: .875rem; line-height: 1.25rem; padding: .625rem .75rem; }
.data-table tbody tr + tr { border-top: 1px solid var(--admin-row-line); }
.data-table:not(.create-items-table) tbody tr:hover { background: #f3f4f6; }
.data-table th:last-child, .data-table td:last-child { text-align: left !important; }
.data-table td.empty-cell { text-align: center !important; vertical-align: middle; }
.page-section.is-page-loading { position: relative; min-height: 27rem; }
.page-section.is-page-loading > :not(.page-skeleton) { visibility: hidden; }
.page-skeleton { position: absolute; inset: 0; z-index: 1; display: grid; align-content: start; gap: 1rem;
  padding: 1.5rem; background: var(--fpbs-surface); pointer-events: none; }
.page-section:not(.is-page-loading) > .page-skeleton { display: none; }
.page-skeleton-status { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
.page-skeleton-bar { display: block; height: 1.25rem; border-radius: .5rem;
  background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%);
  background-size: 200% 100%; animation: page-skeleton-shift 1.5s ease-in-out infinite; }
.page-skeleton-title { width: min(16rem, 60%); height: 1.75rem; }
.page-skeleton-subtitle { width: min(10rem, 38%); height: .75rem; }
.page-skeleton-controls { width: 100%; height: 3.5rem; margin: .5rem 0; }
.page-skeleton-row { width: 100%; height: 2.75rem; }
.page-skeleton-row:nth-last-child(2n) { width: 94%; }
@keyframes page-skeleton-shift { to { background-position-x: -200%; } }
@media (prefers-reduced-motion: reduce) { .page-skeleton-bar { animation: none; } }
.action-stack { justify-content: flex-start; gap: .375rem; }
.square-action { width: 2.25rem; height: 2.25rem; flex-shrink: 0; padding: 0; border-radius: 9999px; font-size: 1rem; font-weight: 400; line-height: 1.5rem; }
.record-status-badge, .simsarpras-badge, .sticker-status, .detail-status-badge { display: inline-flex; align-items: center; justify-self: start; flex-shrink: 0; border: 1px solid var(--fpbs-line); border-radius: 9999px; padding: .25rem .625rem; font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--fpbs-muted); background: var(--fpbs-surface); }
:is(.record-status-badge, .simsarpras-badge).is-valid { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
:is(.record-status-badge, .simsarpras-badge).is-missing { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.simsarpras-badge.is-review { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.simsarpras-badge.is-unchecked { border-color: var(--fpbs-line); background: var(--fpbs-surface); color: var(--fpbs-muted); }
.settings-card, .stockopname-officer-card, .detail-summary-card, .detail-item-form, .check-empty-message { border-color: var(--fpbs-line); border-radius: .5rem; background: #fff; }
.detail-summary-grid > #detail-summary-cards { display: contents; }
.detail-spj { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; max-width: 100%; min-height: 2.25rem; padding: .35rem .625rem; border: 1px solid var(--fpbs-line); border-radius: .5rem; background: #fff; font-size: .8125rem; }
.detail-spj-label, #detail-spj-status { color: var(--fpbs-muted); }
.detail-spj a { color: var(--fpbs-ink); font-weight: 600; overflow-wrap: anywhere; }
.detail-spj-action { border: 0; border-radius: .3rem; padding: .2rem .3rem; background: transparent; color: var(--fpbs-muted); font: inherit; cursor: pointer; }
.detail-spj-action:hover { background: #f3f4f6; color: var(--fpbs-ink); }
.detail-spj-upload { cursor: pointer; }
.detail-simsarpras-warning { margin: 0 0 .75rem; padding: .5rem .625rem; border: 1px solid #fde68a; border-radius: .5rem; background: #fffbeb; color: #92400e; font-size: .8125rem; }
.settings-card, .stockopname-officer-card { padding: .75rem; gap: .625rem; }
.settings-card h3, .report-section-title { border-color: var(--fpbs-line); }
.detail-summary-card span { letter-spacing: 0; text-transform: none; }
.modal-backdrop { background: rgb(2 6 23 / 25%); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 1.25rem .75rem; }
.modal-card:not(.create-workspace-card) { max-width: 100%; max-height: calc(100dvh - 2.5rem); margin-block: 0 auto; border-radius: 1rem; border-color: var(--fpbs-line); padding: 1rem; box-shadow: 0 20px 70px #17203318; }
.modal-card.metadata-modal-card, .modal-card.detail-modal-card { width: min(48rem, 100%); }
.modal-head { align-items: flex-start; gap: .75rem; margin-bottom: .625rem; }
.modal-title { margin: 0; font-size: 1rem; line-height: 1.5rem; color: var(--fpbs-primary); }
.modal-form:not(.create-workspace-form) { margin-top: .625rem; gap: .625rem; }
.modal-form:not(.create-workspace-form) :is(input:not([type='checkbox']), select, textarea, button) { border-radius: .5rem; }
.modal-close, .create-workspace-card .modal-close { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; min-width: 0; height: 2rem; min-height: 0; padding: 0; border: 1px solid var(--fpbs-line); border-radius: .5rem; font-size: 1rem; font-weight: 400; line-height: 1.5rem; color: var(--fpbs-primary); background: transparent; }
.modal-close svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.modal-actions, .detail-form-actions { gap: .5rem; flex-wrap: wrap; }
.modal-form :is(.modal-actions, .detail-form-actions) > button { height: 2.25rem; min-height: 2.25rem; padding-inline: 1rem; border-radius: 9999px; }
#root .modal-card:not(.create-workspace-card) .field input:not([type='checkbox']):not([type='file']), #root .content-card .field input:not([type='checkbox']):not([type='file']) { height: 2.25rem; min-height: 2.25rem; background: #fafafa; font-size: .875rem; font-weight: 500; line-height: 1.25rem; padding: .5rem .75rem; }
.ts-wrapper .ts-control { border-color: var(--fpbs-line); border-radius: .5rem; box-shadow: none; }
.ts-wrapper.focus .ts-control { border-color: var(--fpbs-primary); box-shadow: none; }
.ts-dropdown { border-color: var(--fpbs-line); border-radius: .5rem; }
.ts-dropdown .active { background: #f3f4f6; color: var(--fpbs-ink); }
.flash { border-radius: .65rem; }
.bmn-mobile-header, .bmn-mobile-close { display: none; }
.bmn-mobile-menu { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(18rem, 85vw); max-width: none; height: 100dvh; max-height: none; overflow: hidden; padding: .75rem; border: 0; border-right: 1px solid var(--fpbs-line); border-radius: 0; color: var(--fpbs-ink); background: #fff; box-shadow: 0 20px 25px -5px #0000001a; }
.bmn-mobile-menu::backdrop { background: rgb(2 6 23 / 40%); }
.bmn-mobile-menu .sidebar { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; }
.bmn-mobile-menu .sidebar-header { align-items: center; padding-bottom: .5rem; border-bottom: 1px solid var(--fpbs-line); }
.bmn-mobile-menu .brand { padding-bottom: 0; }
.bmn-mobile-menu .brand-copy { display: none !important; }
.bmn-mobile-menu .side-nav { overflow-y: auto; }
.bmn-mobile-menu .bmn-mobile-close { display: inline-flex; flex-shrink: 0; width: 44px; height: 44px; padding: 0; }
.bmn-mobile-menu .sidebar.is-collapsed .sidebar-header { justify-content: space-between; }
.bmn-mobile-menu .sidebar.is-collapsed .brand { display: flex; }
.bmn-mobile-menu .sidebar.is-collapsed :is(.brand-logo, .sidebar-text, .side-account-copy, .side-account-icon) { display: revert; }
.bmn-mobile-menu .sidebar.is-collapsed .side-link { justify-content: flex-start; padding-inline: .625rem; }
.bmn-mobile-menu .sidebar.is-collapsed .side-account { padding-inline: .5rem; }
.bmn-mobile-menu .side-account #logout-button { border-left: 1px solid var(--fpbs-line); }
.bmn-mobile-menu #toggle-sidebar { display: none; }
.bmn-confirm-dialog { width: min(28rem, calc(100vw - 2rem)); padding: 1.5rem; border: 1px solid var(--fpbs-line); border-radius: 1rem; background: #fff; color: var(--fpbs-ink); box-shadow: 0 10px 22px rgb(23 32 51 / 8%); }
.bmn-confirm-dialog::backdrop { background: rgb(2 6 23 / 35%); backdrop-filter: blur(4px); }
.bmn-confirm-dialog h2 { margin: 0; font-size: 1.25rem; line-height: 1.75rem; }
.bmn-confirm-dialog p { margin: .75rem 0 1.5rem; font-size: .875rem; line-height: 1.625; color: var(--fpbs-muted); }
.bmn-confirm-dialog .modal-actions { gap: .75rem; }
.danger-action { border: 0; color: #fff; background: #e11d48; }
.danger-action:hover { background: #be123c; }
/* Shared control sizes and vertical rhythm; each form keeps its existing width. */
#root :is(.content-card, .modal-card, .bmn-confirm-dialog) :is(.primary-action, .secondary-action, .ghost-action, .danger-action, .toolbar-action, .download-again) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: auto; min-height: var(--bmn-control-height); padding: 0 .75rem; border-radius: .5rem; font-size: .875rem; font-weight: 600; line-height: 1.25rem; }
#root :is(.content-card, .modal-card) :is(.icon-button, .square-action, .toolbar-icon) { width: var(--bmn-control-height); height: var(--bmn-control-height); min-height: var(--bmn-control-height); padding: 0; border-radius: .5rem; }
#root :is(.content-card, .modal-card) :is(.field, .toolbar-field) > input:not([type='checkbox']):not([type='radio']):not([type='file']),
#root :is(.content-card, .modal-card) :is(.field, .toolbar-field) > select:not(.ts-hidden-accessible) { height: var(--bmn-control-height); min-height: var(--bmn-control-height); padding: 0 .75rem; border-radius: .5rem; font-size: .875rem; line-height: 1.25rem; }
#root :is(.content-card, .modal-card) :is(.field, .toolbar-field) > select:not(.ts-hidden-accessible) { padding-right: 2.75rem; }
#root :is(.field, .toolbar-field) { gap: .25rem; }
#root :is(.field, .toolbar-field) > span { line-height: 1.25rem; }
#root .purchase-search-panel input { height: var(--bmn-control-height); font-size: .875rem; }
#root .ts-control { min-height: var(--bmn-control-height); font-size: .875rem; }
#root .ts-control input { height: auto; min-height: 0; padding: 0; }
#root :is(.button-icon, .toolbar-icon > svg, .toolbar-action > svg, .square-action > svg, .icon-button > svg) { width: 16px; height: 16px; flex-shrink: 0; }
.settings-card, .stockopname-officer-card, #export-excel-shell .report-grid { gap: .75rem; }
.settings-card h3, .stockopname-officer-card h3 { margin: 0; }
#settings-page .report-actions { width: min(100%, 78rem); justify-content: flex-end; }
.sticker-table-wrap { border: 0; border-radius: 0; }
#sticker-list :is(input:not([type='checkbox']), textarea) { width: 100%; border: 0; border-radius: .125rem; background: #fafafa; box-shadow: none; color: var(--fpbs-ink); font-size: .875rem; }
#sticker-list input:not([type='checkbox']) { height: var(--bmn-control-height); min-height: var(--bmn-control-height); padding: 0 .375rem; }
#sticker-list textarea { display: block; min-height: calc(2.8em + .625rem); max-height: 12rem; padding: .3125rem .375rem; line-height: 1.4; overflow-wrap: anywhere; resize: vertical; }
#sticker-list :is(input:not([type='checkbox']), textarea):hover { background: #f3f4f6; }
#sticker-list :is(input:not([type='checkbox']), textarea):focus { outline: 2px solid var(--fpbs-primary); outline-offset: 1px; background: #fff; }
.sticker-status { border: 0; border-radius: .25rem; padding: .25rem .375rem; }
.sticker-help { margin: 0; color: var(--fpbs-muted); font-size: .875rem; }
.batch-spj-shell { margin-top: .5rem; }
#import-page .report-shell.batch-spj-shell { width: 100%; }
.import-excel-alternative { width: min(100%, 42rem); margin-top: 1.25rem; }
.import-excel-alternative > summary { width: fit-content; padding: .4rem .65rem; border-radius: .5rem; color: var(--fpbs-muted); cursor: pointer; }
.import-excel-alternative > summary:hover, .import-excel-alternative > summary:focus-visible { background: #f5f5f5; color: var(--fpbs-ink); }
.import-excel-alternative #import-excel-shell { margin-top: .6rem; }
.import-excel-alternative #download-batch-import-template { justify-self: start; }
.batch-spj-shell > :is(.section-head, .batch-spj-drop, .batch-spj-actions, #batch-spj-status) { width: min(100%, 42rem); }
.batch-spj-shell .section-head h3 { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.batch-spj-shell .section-head { justify-content: space-between; }
.batch-spj-add { min-height: 2.25rem; padding: .35rem .75rem; }
.batch-spj-actions { justify-content: flex-start; flex-wrap: wrap; }
#batch-spj-status { margin: 0; color: var(--fpbs-muted); }
.batch-spj-workspace { width: 100%; min-width: 0; }
.batch-spj-list-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.batch-spj-list-head button { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .4rem; border: 0; border-radius: .35rem; background: transparent; color: var(--fpbs-ink); font: inherit; font-weight: 600; cursor: pointer; }
.batch-spj-list-head button:hover, .batch-spj-list-head button:focus-visible { background: #f5f5f5; }
.batch-spj-list-head span { color: var(--fpbs-muted); font-size: .8rem; }
.batch-spj-list-head button span { color: inherit; font-size: 1rem; line-height: 1; }
.batch-spj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); align-content: start; gap: .5rem; width: 100%; min-width: 0; max-height: 13rem; overflow-x: hidden; overflow-y: auto; padding: .25rem .25rem .5rem 0; }
.batch-spj-list[hidden] { display: none; }
.batch-spj-card { position: relative; min-width: 0; border: 1px solid var(--fpbs-line); border-radius: .6rem; background: #fff; }
.batch-spj-card.is-active { border-color: var(--fpbs-primary); background: #f5efff; }
.batch-spj-card-select { display: block; width: 100%; min-height: 5.3rem; padding: .5rem .7rem; border: 0; border-radius: .6rem; background: transparent; color: var(--fpbs-ink); text-align: left; cursor: pointer; }
.batch-spj-card-select strong { display: block; padding-right: 1.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.batch-spj-list .batch-spj-card-credit { overflow-wrap: anywhere; font-weight: 600; color: var(--fpbs-ink); }
.batch-spj-card-status { line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.batch-spj-card-status.is-valid { color: #166534; }
.batch-spj-card-status.is-blocked { color: #92400e; }
.batch-spj-card-remove { position: absolute; top: .3rem; right: .3rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; padding: 0; border: 0; border-radius: .4rem; background: transparent; color: var(--fpbs-muted); font-size: 1.2rem; line-height: 1; }
.batch-spj-card-remove:hover { background: #fee2e2; color: #b91c1c; }
.batch-spj-list small { display: block; color: var(--fpbs-muted); }
.batch-spj-review { --batch-left-pane: 50%; display: grid; grid-template-columns: minmax(0, var(--batch-left-pane)) 8px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: min(78vh, 52rem); min-height: min(32rem, 78vh); border: 1px solid var(--fpbs-line); border-radius: .75rem; overflow: clip; }
.batch-spj-view-tabs { display: none; }
.batch-spj-divider { display: grid; place-items: center; min-height: 0; background: #f3f4f6; border-inline: 1px solid var(--fpbs-line); cursor: col-resize; touch-action: none; }
.batch-spj-divider:hover, .batch-spj-divider:focus-visible { background: #e5e7eb; }
.batch-spj-divider span { width: 2px; height: 2.5rem; border-radius: 2px; background: #9ca3af; }
.batch-spj-data { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 1rem; }
.batch-spj-data h4 { margin: 0 0 .75rem; }
.batch-spj-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.batch-spj-fields label { display: grid; gap: .25rem; min-width: 0; }
.batch-spj-fields input, .batch-spj-fields select, .batch-spj-item-table input, .batch-spj-item-table textarea { width: 100%; min-width: 0; min-height: 2.25rem; padding: .4rem .55rem; border: 1px solid var(--fpbs-line); border-radius: .4rem; background: #fff; color: var(--fpbs-ink); }
.batch-spj-note { margin: .75rem 0; color: var(--fpbs-muted); }
.batch-spj-finance-summary { margin-top: .5rem; }
.batch-spj-finance-summary:empty { display: none; }
.batch-spj-finance-summary > button { min-height: 2rem; }
.batch-spj-warning { margin: .5rem 0; padding: .5rem .625rem; border: 1px solid #fcd34d; border-radius: .4rem; background: #fffbeb; color: #92400e; font-size: .82rem; }
.batch-spj-form-error { margin: .65rem 0 0; color: #92400e; font-size: .82rem; line-height: 1.35; }
.batch-spj-form-error[hidden] { display: none; }
.batch-spj-items-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .65rem; }
.batch-spj-items-head h5 { margin: 0; font-size: .92rem; }
.batch-spj-items-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .45rem .8rem; min-width: 0; margin-left: auto; }
.batch-spj-item-balance { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .2rem .7rem; color: var(--fpbs-muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.batch-spj-item-balance strong { color: var(--fpbs-ink); font-weight: 600; }
.batch-spj-adjustment { display: inline-grid; gap: .15rem; color: var(--fpbs-muted); font-size: .75rem; }
.batch-spj-adjustment input { width: 8.5rem; min-height: 2rem; padding: .3rem .5rem; border: 1px solid var(--fpbs-line); border-radius: .4rem; background: #fff; color: var(--fpbs-ink); font: inherit; font-size: .85rem; }
.batch-spj-items-head button { min-height: 2.1rem; }
.batch-spj-item-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--fpbs-line); border-radius: .5rem; }
.batch-spj-item-table { min-width: 780px; width: 100%; border: 0; border-radius: 0; }
.batch-spj-item-table th, .batch-spj-item-table td { padding: .35rem; vertical-align: middle; }
.batch-spj-item-table th { white-space: nowrap; }
.batch-spj-item-table td[data-field="jenis_barang"], .batch-spj-item-table td[data-field="type_barang"] { min-width: 10rem; }
.batch-spj-item-table td[data-field="harga_satuan"], .batch-spj-item-table td[data-field="jumlah_barang"], .batch-spj-item-table td[data-field="satuan"] { min-width: 5rem; }
.batch-spj-item-table td[data-field="keterangan"] { min-width: 9rem; }
.batch-spj-item-table textarea { display: block; max-height: 9rem; resize: none; overflow-y: auto; overflow-wrap: anywhere; line-height: 1.35; }
.batch-spj-item-table input[aria-invalid="true"], .batch-spj-item-table textarea[aria-invalid="true"] { border-color: #fbbf24; background: #fffdf5; }
.batch-spj-item-error { display: block; margin-top: .2rem; color: #92400e; font-size: .7rem; line-height: 1.2; }
.batch-spj-item-error[hidden] { display: none; }
.batch-spj-item-table .batch-spj-item-total { white-space: nowrap; font-weight: 600; }
.batch-spj-item-table button { width: 1.8rem; min-height: 1.8rem; padding: 0; font-size: 1.1rem; }
.batch-spj-item-empty { margin: 0; padding: 1rem; border: 1px dashed var(--fpbs-line); border-radius: .6rem; color: var(--fpbs-muted); font-size: .85rem; }
.batch-spj-pdf { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--fpbs-line); background: #f3f4f6; }
.batch-spj-pdf-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--fpbs-line); background: #fff; color: var(--fpbs-ink); font-size: .82rem; font-weight: 600; }
.batch-spj-pdf-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .35rem .6rem; border-bottom: 1px solid var(--fpbs-line); background: #fff; }
.batch-spj-pdf-nav, .batch-spj-pdf-zoom { display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; }
.batch-spj-pdf-toolbar button { min-width: 1.9rem; min-height: 1.9rem; padding: .2rem .45rem; border: 1px solid var(--fpbs-line); border-radius: .4rem; background: #fafafa; color: var(--fpbs-ink); font-size: .82rem; }
.batch-spj-pdf-toolbar button:hover:not(:disabled) { background: #f3f4f6; }
.batch-spj-pdf-toolbar button:disabled { opacity: .4; }
.batch-spj-pdf-toolbar #batch-spj-pdf-hand { display: inline-flex; align-items: center; justify-content: center; }
.batch-spj-pdf-toolbar #batch-spj-pdf-hand[aria-pressed="true"] { background: #e9eaed; border-color: #d3d6dc; }
.batch-spj-pdf-toolbar :is(#batch-spj-pdf-page, #batch-spj-pdf-zoom-label) { min-width: 2.6rem; text-align: center; font-size: .78rem; }
.batch-spj-pdf-stage { position: relative; flex: 1; min-height: 0; }
.batch-spj-pdf-view { position: absolute; inset: 0; width: 100%; height: 100%; overflow: auto; background: #f3f4f6; }
.batch-spj-pdf-view.is-hand { cursor: grab; }
.batch-spj-pdf-view.is-hand.is-panning { cursor: grabbing; user-select: none; }
.batch-spj-pdf-view.is-hand .pdfViewer { user-select: none; }
.batch-spj-pdf-view .pdfViewer { padding: .5rem 0; }
.batch-spj-pdf-view > p { margin: 1rem; color: var(--fpbs-muted); font-size: .85rem; text-align: center; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(99 36 197 / 25%); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1180px) { .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .stockopname-page-controls { width: 100%; justify-content: space-between; margin-left: 0; }
  .stockopname-history-table, .stockopname-history-table tbody, .stockopname-history-table tr, .stockopname-history-table td { display: block; width: 100%; min-width: 0; }
  .stockopname-history-table thead { display: none; }
  .stockopname-history-table tr { margin-bottom: .7rem; border: 1px solid var(--fpbs-line); border-radius: .65rem; padding: .45rem .75rem; }
  .stockopname-history-table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .5rem; border: 0; padding: .35rem 0; }
  .stockopname-history-table td::before { content: attr(data-label); color: var(--fpbs-muted); font-size: .8rem; }
  .stockopname-history-table td.empty-cell { display: block; }
  .stockopname-history-table td.empty-cell::before { content: none; }
}
@media (min-width: 768px) {
  .stockopname-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #export-excel-shell .report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .simsarpras-workspace { width: 100%; }
  .app-shell, .app-shell.is-collapsed { display: block; }
  .app-shell > .sidebar { display: none; }
  .bmn-mobile-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: .75rem; height: 56px; padding: 0 .75rem; border: 0 solid var(--fpbs-line); border-bottom-width: 1px; background: transparent; }
  .bmn-mobile-header img { width: auto; max-width: calc(100% - 60px); height: 1.75rem; }
  .bmn-mobile-header button { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: .65rem; }
}
@media (max-width: 767px) {
  .batch-spj-view-tabs { display: inline-flex; gap: .2rem; margin-bottom: .65rem; padding: .2rem; border: 1px solid var(--fpbs-line); border-radius: .6rem; background: #f3f4f6; }
  .batch-spj-view-tabs button { min-height: 2.25rem; padding: .35rem .75rem; border: 0; border-radius: .4rem; background: transparent; color: var(--fpbs-muted); font-weight: 600; }
  .batch-spj-view-tabs button[aria-selected='true'] { background: #fff; color: var(--fpbs-ink); box-shadow: 0 1px 3px rgb(17 24 39 / 8%); }
  .batch-spj-review { display: block; height: auto; min-height: 0; }
  .batch-spj-divider { display: none; }
  .batch-spj-review .batch-spj-data, .batch-spj-review .batch-spj-pdf { height: min(72vh, 44rem); min-height: 28rem; }
  .batch-spj-review:not(.show-pdf) .batch-spj-pdf, .batch-spj-review.show-pdf .batch-spj-data { display: none; }
  .batch-spj-pdf { border-left: 0; }
  .section-head h2 { font-size: 1.08rem; }
  .section-head { align-items: flex-start; }
  .purchase-toolbar .toolbar-field select { height: 44px; font-size: 16px; padding-right: 2.75rem; }
  .toolbar-icon { width: 44px; height: 44px; min-height: 44px; padding-inline: 0; }
  .purchase-toolbar .toolbar-action { width: auto; height: 44px; min-height: 44px; padding-inline: .75rem; }
  .purchase-toolbar .toolbar-field input { height: 44px; font-size: 16px; }
  .purchase-search-panel input { min-height: 44px; font-size: 16px; }
  .square-action { width: 44px; height: 44px; }
  .sticker-toolbar { gap: .75rem; }
  .sticker-actions { flex-wrap: wrap; }
  .simsarpras-upload-grid { grid-template-columns: minmax(0, 1fr); }
  .segmented-tabs button, .sticker-source .segmented-tabs button { min-height: 44px; }
  .sticker-table input:not([type='checkbox']) { min-height: 44px; }
  .bmn-record-table, .bmn-record-table tbody { display: block; min-width: 0; }
  .bmn-record-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .bmn-record-table tbody tr { display: grid; padding: .75rem; gap: .375rem; border-bottom: 0; }
  .bmn-record-table tbody td { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .5rem; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .bmn-record-table td[data-cell-label]::before { content: attr(data-cell-label); color: var(--fpbs-muted); font-size: .875rem; }
  .bmn-record-table tbody td:first-child { display: block; font-size: 1rem; font-weight: 600; }
  .bmn-record-table tbody td:first-child::before { display: none; }
  .bmn-record-table tbody td:last-child { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .375rem; }
  .bmn-record-table tbody td:last-child::before { display: none; }
  .bmn-record-table td.empty-cell { display: block; }
}
@media (max-width: 639px) {
  .batch-spj-fields { grid-template-columns: minmax(0, 1fr); }
  :root { --bmn-control-height: 44px; }
  #root :is(.content-card, .modal-card) :is(.field, .toolbar-field) > :is(input:not([type='checkbox']):not([type='radio']):not([type='file']), select:not(.ts-hidden-accessible)) { font-size: 16px; }
  #download-batch-import-template { min-height: 44px; }
  #simsarpras-auto-button, .simsarpras-workspace .simsarpras-year input { min-height: 44px; }
  #export-excel-shell .toolbar-field :is(input, select) { height: 44px; font-size: 16px; }
  .download-feedback:not([data-state='pending']) .download-feedback-copy { flex-basis: 100%; }
  .app-shell, .app-shell.is-collapsed { padding: .75rem; }
  .content-card { height: calc(100dvh - 1.5rem); }
  .content-pad { padding: 1.5rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .field :is(input:not([type='checkbox']), select, textarea), .modal-card:not(.create-workspace-card) .field :is(input:not([type='checkbox']), select, textarea), .content-card .field :is(input:not([type='checkbox']), select, textarea) { font-size: 16px; }
  .field :is(input:not([type='checkbox']), select), .modal-form :is(button, select) { min-height: 44px; }
  #root .modal-card:not(.create-workspace-card) .field input:not([type='checkbox']):not([type='file']), #root .content-card .field input:not([type='checkbox']):not([type='file']) { font-size: 16px; height: 44px; min-height: 44px; }
  .modal-form :is(.modal-actions, .detail-form-actions) > button { min-height: 44px; }
  .modal-close::after { content: ''; position: absolute; inset: -8px; }
}
@media (max-width: 479px) {
  #export-excel-shell .report-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head > :first-child { flex-basis: 100%; }
  .section-head .purchase-toolbar { margin-left: 0; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } .auth-spinner, .startup-spinner { animation: none; } }

/* Export Pengadaan uses the dashboard's compact tabs and date range control. */
#export-excel-shell { width: 100%; max-width: none; gap: 1rem; }
.export-section-head { align-items: center; }
.export-range-control { position: relative; margin-left: auto; }
.export-range-trigger { display: flex; align-items: center; gap: .65rem; min-height: 2.5rem; padding: .4rem .75rem; border: 1px solid var(--fpbs-line); border-radius: .65rem; background: #fafafa; color: var(--fpbs-ink); font-size: .875rem; font-weight: 600; }
.export-range-trigger:hover, .export-range-trigger[aria-expanded='true'] { border-color: var(--fpbs-primary); background: var(--fpbs-surface); }
#export-range-dates { color: var(--fpbs-muted); font-weight: 400; }
.export-range-popover { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 40; width: min(22rem, calc(100vw - 3rem)); padding: .75rem; border: 1px solid var(--fpbs-line); border-radius: .75rem; background: #fff; box-shadow: 0 12px 28px #1f12301f; }
.export-range-popover[hidden], .export-custom-range[hidden] { display: none; }
.export-range-presets { display: grid; gap: .25rem; }
.export-range-presets button { width: 100%; min-height: 2.25rem; padding: .5rem .625rem; border: 0; border-radius: .5rem; background: transparent; color: var(--fpbs-ink); text-align: left; font-size: .875rem; }
.export-range-presets button:hover { background: var(--fpbs-surface); color: var(--fpbs-primary); }
.export-custom-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--fpbs-line); }
.export-custom-range label { display: grid; gap: .25rem; min-width: 0; color: var(--fpbs-muted); font-size: .8rem; }
.export-custom-range input { min-width: 0; width: 100%; min-height: 2.5rem; padding: .45rem; border: 1px solid var(--fpbs-line); background: #fff; color: var(--fpbs-ink); }
.export-custom-range .primary-action { grid-column: 1 / -1; justify-self: end; min-height: 2.25rem; }
.export-tabs { display: inline-flex; justify-self: start; gap: .25rem; padding: .25rem; border: 1px solid var(--fpbs-line); border-radius: .75rem; background: #f3f4f6; }
.export-tabs button { min-width: 7rem; min-height: 2.25rem; padding: .4rem .75rem; border: 0; border-radius: .55rem; background: transparent; color: var(--fpbs-muted); font-size: .875rem; font-weight: 600; }
.export-tabs button[aria-selected='true'] { background: var(--fpbs-primary); color: #fff; box-shadow: 0 1px 3px #20142c26; }
.export-tabs button span { margin-left: .3rem; opacity: .75; font-variant-numeric: tabular-nums; }
#export-records-panel { display: grid; gap: .75rem; min-width: 0; }
.export-table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.export-table-toolbar p { margin: 0; color: var(--fpbs-muted); font-size: .875rem; }
#export-selection-total { color: var(--fpbs-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.export-search-label { width: min(100%, 20rem); }
.export-search-label input { width: 100%; min-height: 2.4rem; padding: .5rem .75rem; border: 1px solid var(--fpbs-line); background: #fafafa; font-size: .875rem; }
.export-table-wrap { overflow-x: auto; }
.export-table { min-width: 52rem; width: 100%; }
.export-table th:first-child, .export-table td:first-child { width: 3rem; text-align: center; }
.export-table th:last-child, .export-table td:last-child { text-align: right !important; white-space: nowrap; }
.export-table tbody tr.is-selected { background: #faf7fd; }
.export-table tbody tr:hover { background: #f3f4f6; }
.export-table td strong { color: var(--fpbs-ink); }
.export-summary-cell { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-table-message { margin: .25rem 0; padding: .75rem 1rem; border: 1px solid var(--fpbs-line); border-radius: .65rem; background: #fafafa; color: var(--fpbs-muted); font-size: .875rem; }
#export-excel-shell .export-actions { justify-content: flex-end; }
@media (max-width: 639px) {
  .export-range-control { width: 100%; margin-left: 0; }
  .export-range-trigger { width: 100%; justify-content: space-between; }
  .export-range-popover { left: 0; right: auto; width: min(100%, 22rem); }
  .export-search-label { width: 100%; }
  #export-excel-shell .export-actions .primary-action { width: 100%; }
}
.admin-login {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  color: #172033;
  background: #fafafa;
}

.admin-matched-login {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  padding: 0;
}

.admin-matched-login-photo {
  min-height: 100vh;
  min-height: 100dvh;
  background: url('/gedung-fpbs.webp') 42% center / cover no-repeat;
}

.admin-matched-login .admin-login-card {
  width: calc(100% - 64px);
  margin: auto;
}

.admin-login-card {
  width: 100%;
  max-width: 28rem;
  margin: auto;
  padding: 28px 24px;
  border: 1px solid #e3dcf0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgb(23 32 51 / 6%);
}

.admin-login-header {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.admin-login-header img { width: auto; height: 36px; max-width: 100%; object-fit: contain; }
.admin-login-header h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.admin-login-header p { margin: 4px 0 0; color: #626b7d; font-size: 14px; line-height: 1.5; }
.admin-login-form { display: grid; width: 100%; gap: 12px; text-align: left; }
.admin-login-field { display: grid; min-width: 0; gap: 6px; font-size: 14px; font-weight: 600; }

#root .admin-login input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e3dcf0;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  box-shadow: none;
}

#root .admin-login input:focus { border-color: #6324c5; }
#root .admin-login input[aria-invalid='true'] { border-color: #be123c; }
.admin-login-password { position: relative; }
#root .admin-login-password input { padding-right: 52px; }
.admin-login .admin-login-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #626b7d;
}
.admin-login .admin-login-toggle:hover { color: #6324c5; }
.admin-login .admin-login-toggle:focus-visible { outline: 2px solid #6324c5; outline-offset: -4px; }
.admin-login .admin-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #6324c5;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}
.admin-login .admin-login-submit:hover:not(:disabled) { background: #5720b0; }
.admin-login .admin-login-submit:focus-visible { outline: 2px solid #6324c5; outline-offset: 3px; }
.admin-login .admin-login-submit:disabled { cursor: not-allowed; opacity: .6; }
.admin-login-help { margin: 0; color: #626b7d; font-size: 12px; font-weight: 400; text-align: center; }
.admin-login-error { color: #be123c; font-size: 12px; font-weight: 600; }
.admin-login-status { display: grid; justify-items: center; gap: 12px; color: #626b7d; font-size: 14px; text-align: center; }

@media (min-width: 640px) { .admin-login-card { padding-inline: 32px; } }
@media (max-width: 639px) { #root .admin-login input { font-size: 16px; } }
@media (min-width: 768px) and (max-width: 1199px) {
  .admin-matched-login { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
}
@media (max-width: 767px) {
  .admin-matched-login { display: flex; flex-direction: column; }
  .admin-matched-login-photo {
    width: 100%;
    min-height: 0;
    height: clamp(160px, 25vh, 240px);
    background-position: center 38%;
  }
  .admin-matched-login .admin-login-card {
    width: calc(100% - 32px);
    margin: 24px auto;
  }
}
/* Soft gray interaction states with purple primary actions. */
:root { --admin-line-soft: #e5e7eb; --admin-row-line: #eef0f2; }
button:focus-visible, a:focus-visible, summary:focus-visible,
.file-drop-zone:focus-within, #sticker-list :is(input:not([type='checkbox']), textarea):focus {
  outline: 2px solid #aeb6c2; outline-offset: 2px;
}
input:focus, select:focus, textarea:focus, .ts-wrapper.focus .ts-control,
#root .admin-login input:focus {
  border-color: #b8c0cb; box-shadow: none;
}
.side-link.is-active, .side-link.is-active:hover,
.segmented-tabs button.is-active, .segmented-tabs button.is-active:hover:not(:disabled),
.sticker-source .segmented-tabs button.is-active,
.export-tabs button[aria-selected='true'] {
  border-color: transparent; background: #e7e9ed; color: #1f2937; box-shadow: none;
}
.side-link:hover, .side-footer-link:hover:not(:disabled),
.segmented-tabs button:hover:not(.is-active):not(:disabled),
.export-tabs button:hover:not([aria-selected='true']),
.toolbar-icon:hover, .purchase-toolbar .toolbar-action:hover,
.export-range-presets button:hover, .batch-spj-card-remove:hover {
  background: #eef0f2; color: #1f2937;
}
.batch-spj-card.is-active { border-color: #cbd1d9; background: #f8f9fa; }
.export-range-trigger:hover, .export-range-trigger[aria-expanded='true'] { border-color: #cbd1d9; background: #f3f4f6; }
.export-table tbody tr.is-selected { background: #f8f9fa; }
.export-table tbody tr:hover { background: #eef0f2; }
.purchase-toolbar .toolbar-field.is-active select { border-color: #cbd1d9; color: #1f2937; }
.file-drop-zone:hover, .file-drop-zone.is-dragging { border-color: #cbd1d9; background: #f3f4f6; }
.file-drop-zone > svg, .file-drop-name, #import-drop-hint, .modal-title, .modal-close,
.create-workspace-card .modal-close { color: #4b5563; }
.primary-action, .create-workspace-card #create-add-item,
:is(#submit-button, #save-metadata, #save-detail-item, #save-settings-button,
  #finance-import-commit, #commit-import-button, #process-smart-input),
.admin-login .admin-login-submit { border-color: #6324c5; background: #6324c5; color: #fff; }
.primary-action:hover:not(:disabled), .create-workspace-card #create-add-item:hover:not(:disabled),
:is(#submit-button, #save-metadata, #save-detail-item, #save-settings-button,
  #finance-import-commit, #commit-import-button, #process-smart-input):hover:not(:disabled),
.admin-login .admin-login-submit:hover:not(:disabled) { background: #5720b0; color: #fff; }
.admin-login .admin-login-toggle:hover { color: #374151; }
.admin-login .admin-login-toggle:focus-visible,
.admin-login .admin-login-submit:focus-visible { outline: 2px solid #aeb6c2; outline-offset: 2px; }
.purchase-toolbar .toolbar-icon.has-query::after { background: #6b7280; }
::-webkit-scrollbar-thumb { background: #d1d5db; }
.import-modal-card .table-wrap { scrollbar-color: #d1d5db #fafafa; }
.import-modal-card .table-wrap::-webkit-scrollbar-thumb { background: #d1d5db; }
#import-page.has-batch > .content-pad > .section-head { width: 100%; }
#import-page.has-batch .batch-spj-shell { margin-top: 0; }
.app-shell { min-height: var(--app-zoomed-vh, 100dvh); }
.app-shell > .sidebar, .app-shell .content-card { height: calc(var(--app-zoomed-vh, 100dvh) - 2.5rem); }
.app-zoom-control { position: fixed; right: .5rem; bottom: .5rem; z-index: 40; }
.app-zoom-trigger { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: .45rem; border: 1px solid #e5e7eb; border-radius: .6rem; background: #fff; color: #6b7280; box-shadow: 0 2px 8px rgb(17 24 39 / 9%); cursor: pointer; }
.app-zoom-trigger:hover, .app-zoom-trigger[aria-expanded='true'] { background: #f3f4f6; color: #374151; }
.app-zoom-trigger svg { width: 1.25rem; height: 1.25rem; }
.app-zoom-panel { position: absolute; right: 0; bottom: calc(100% + .5rem); width: 12.25rem; padding: .75rem; border: 1px solid #e5e7eb; border-radius: .75rem; background: #fff; box-shadow: 0 10px 28px rgb(17 24 39 / 12%); color: #374151; font-size: .8rem; }
.app-zoom-steps { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .5rem; }
.app-zoom-steps button { width: 2rem; height: 2rem; padding: 0; border: 1px solid #e5e7eb; border-radius: .5rem; background: #fafafa; color: #374151; font-size: 1.1rem; cursor: pointer; }
.app-zoom-steps button:hover:not(:disabled), #app-zoom-reset:hover { background: #f3f4f6; }
.app-zoom-steps button:disabled { opacity: .45; cursor: default; }
#app-zoom-reset { width: 100%; margin-top: .5rem; padding: .35rem; border: 0; border-radius: .4rem; background: transparent; color: #4b5563; font-size: .75rem; cursor: pointer; }
@media (max-width: 1023px) { .app-shell > .sidebar { height: auto; } }
@media (min-width: 480px) { #import-page > .content-pad > .section-head { flex-direction: row; align-items: center; } }
@media (max-width: 639px) { .app-shell .content-card { height: calc(var(--app-zoomed-vh, 100dvh) - 1.5rem); } }
