:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --row-separator: #94a3b8;
  --text: #1e293b;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --brand: #849b7e;
  --brand-dark: #6b8268;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body.auth-locked {
  background: #b8d4f0 url('../login-bg.png') center bottom / cover no-repeat fixed;
  min-height: 100vh;
}

body.auth-locked .app-menubar {
  display: none;
}

.app-menubar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
}

.menubar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.menubar-brand:hover .menubar-title {
  color: var(--brand-dark);
}

.menubar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.menubar-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.menubar-tagline {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menubar-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 1rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 14rem;
  max-width: min(92vw, 22rem);
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 101;
}

.app-menubar.nav-open .menubar-nav {
  display: flex;
}

.menubar-link {
  display: block;
  padding: 0.65rem 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.menubar-link:hover {
  color: var(--brand-dark);
  background: rgba(132, 155, 126, 0.1);
}

.menubar-link.active {
  color: #fff;
  background: var(--brand);
}

.menubar-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.menubar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.875rem;
  margin: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.menubar-group-toggle::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.menubar-group.open > .menubar-group-toggle::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.menubar-group-toggle:hover {
  color: var(--brand-dark);
  background: rgba(132, 155, 126, 0.1);
}

.menubar-group.has-active > .menubar-group-toggle {
  color: var(--brand-dark);
}

.menubar-submenu {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem 0.35rem;
}

.menubar-group.open > .menubar-submenu {
  display: flex;
}

.menubar-sublink {
  font-size: 0.85rem;
  font-weight: 500;
  padding-left: 1rem;
}

.menubar-logout {
  margin-top: 0.35rem;
  width: 100%;
}

.menubar-user {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.nav-toggle {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(132, 155, 126, 0.12);
}

.nav-toggle-bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-menubar.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.app-menubar.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.app-menubar.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  z-index: 99;
}

body.nav-menu-open .nav-backdrop {
  display: block;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border, #e2e8f0);
  margin: 1rem 0;
}

.data-table tfoot .table-total-row td {
  font-weight: 700;
  background: #f3f4f6;
  border-top: 2px solid var(--border, #d1d5db);
}

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

.login-content {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  background: transparent;
}

.login-page {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.login-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}

.login-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.login-subtitle {
  margin: 0.35rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-brand {
  margin: 0.35rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.login-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  color: #4a6b8a;
  font-size: 0.75rem;
}

.login-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.login-submit {
  width: 100%;
  padding: 0.625rem 1rem;
  margin-top: 0.25rem;
}

.login-error {
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  color: var(--danger);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: calc(100vh - 72px);
  min-width: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-stat {
  margin-bottom: 0;
  padding: 1rem 1.25rem;
}

.dashboard-stat-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dashboard-stat-value {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.dashboard-stat-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1rem;
}

.dashboard-panel {
  margin-bottom: 0;
  min-width: 0;
}

.dashboard-panel-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-table-wrap,
.table-scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

.dashboard-panel .data-table {
  width: max-content;
  min-width: 100%;
}

.table-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.table-pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-pagination-page {
  min-width: 6rem;
  text-align: center;
  color: var(--text);
}

.btn-pagination {
  padding: 0.35rem 0.5rem;
}

.btn-pagination:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .app-menubar {
    padding: 0.65rem 1rem;
  }

  .menubar-nav {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* Legacy sidebar classes kept for compatibility — menubar is primary nav */
.app-header,
.app-layout,
.sidebar,
.nav-link {
  display: none;
}

.main-content h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.entity-form,
.invoice-form {
  display: grid;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1da851;
}

.btn-sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
}

.btn-icon {
  padding: 0.5rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  line-height: 0;
}

.btn-sm.btn-icon {
  padding: 0.35rem;
  min-width: 1.875rem;
  min-height: 1.875rem;
}

.btn-icon.is-loading {
  opacity: 0.6;
  cursor: wait;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  display: block;
}

.action-cell {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.modal-close.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem;
}

.modal-close.btn-icon:hover {
  color: var(--text);
  background: var(--bg);
}

.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: auto;
}

.data-table th,
.data-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.35;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  max-width: none;
  min-width: 7rem;
}

.data-table .action-cell {
  white-space: nowrap;
  width: 1%;
  max-width: none;
  min-width: 5rem;
  position: sticky;
  right: 0;
  background: var(--surface);
  z-index: 1;
}

.data-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 2;
}

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.th-sort::after {
  content: '↕';
  font-size: 0.7rem;
  opacity: 0.4;
}

.th-sort.is-asc::after {
  content: '↑';
  opacity: 1;
  color: var(--primary);
}

.th-sort.is-desc::after {
  content: '↓';
  opacity: 1;
  color: var(--primary);
}

.th-sort:hover {
  color: var(--text);
}

.data-table th.action-cell,
.data-table thead th:last-child {
  z-index: 3;
  background: var(--bg);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.page-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-header h2 {
  margin: 0;
}

.page-titles {
  flex: 1;
  min-width: 0;
}

.page-header .btn {
  flex-shrink: 0;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: min(520px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-dialog.modal-lg {
  width: 80%;
  max-width: 80vw;
  max-height: 90vh;
}

.modal-dialog.modal-document {
  width: 860px;
  max-width: min(860px, calc(100vw - 2rem));
}

.modal-body-document {
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f0f0f0;
}

.doc-modal-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  bottom: 0;
}

.doc-status-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}

.doc-status-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.doc-status-select {
  min-width: 8rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
}

/* Sales document — Hikari template */
.sales-document-hikari {
  background: #fff;
  color: #222;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 1.25rem 1.5rem 1.5rem;
}

.doc-elec-notice {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  color: #666;
  font-style: italic;
}

.doc-header-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.doc-logo-main {
  height: 72px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  flex-shrink: 0;
}

.doc-company-block {
  flex: 1;
}

.doc-company-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.doc-company-block p {
  margin: 0;
  color: #444;
  font-size: 0.8125rem;
}

.doc-main-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #849b7e;
  padding-bottom: 0.35rem;
}

.doc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.doc-party-heading {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #849b7e;
}

.doc-party-name {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.doc-party-box p {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
}

.doc-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.doc-meta-table td {
  border: 1px solid #ccc;
  padding: 0.3rem 0.5rem;
}

.doc-meta-label-cell {
  background: #f5f5f5;
  font-weight: 600;
  width: 42%;
  white-space: nowrap;
}

.doc-meta-value-cell {
  width: 58%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-gst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

.doc-gst-table th,
.doc-gst-table td {
  border: 1px solid #bbb;
  padding: 0.3rem 0.35rem;
}

.doc-gst-table th {
  background: #e8ede7;
  font-weight: 700;
  text-align: center;
}

.doc-td-center { text-align: center; }
.doc-td-right { text-align: right; }
.doc-td-discount {
  text-align: right;
  color: #b45309;
  white-space: nowrap;
}
.doc-empty-row { text-align: center; color: #888; }

.doc-item-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.doc-item-name {
  font-weight: 600;
}

.doc-item-period {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.doc-line-notes-block {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
}

.doc-line-notes-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--brand);
}

.doc-line-notes-block p {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: #444;
  line-height: 1.45;
}

.doc-summary-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: start;
}

.doc-bank-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #849b7e;
}

.doc-bank-box p {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
}

.doc-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.doc-summary-table td {
  border: 1px solid #ccc;
  padding: 0.35rem 0.5rem;
}

.doc-summary-total-row td {
  background: #849b7e;
  color: #fff;
  font-weight: 700;
}

.doc-summary-yearly-row td {
  background: #6b8268;
  color: #fff;
  font-weight: 700;
}

.doc-td-yearly {
  font-weight: 600;
}

.doc-amount-words {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: italic;
}

.doc-terms-block {
  margin-bottom: 1.25rem;
}

.doc-terms-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #849b7e;
}

.doc-terms-block ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.75rem;
  color: #444;
}

.doc-terms-block li {
  margin-bottom: 0.35rem;
}

.doc-signatures {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.doc-signature-block {
  text-align: center;
  flex: 1;
  max-width: 180px;
}

.doc-signature-img {
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.25rem;
}

.doc-signature-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.8125rem;
  border-top: 1px solid #333;
  padding-top: 0.25rem;
}

.doc-signature-title {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #555;
}

.doc-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #666;
  padding: 1rem 0 0;
  margin: 0;
}

.doc-table-wrap {
  overflow-x: auto;
}

.doc-gst-table thead {
  display: table-header-group;
}

.doc-print-footer {
  page-break-inside: avoid;
}

.document-view-with-history {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-change-history {
  margin: 0;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2, #f7f7f5);
}

.doc-change-history-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.doc-change-history-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.doc-change-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-change-history-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.doc-change-history-meta {
  font-size: 0.8125rem;
  color: var(--text);
}

.doc-change-history-meta span {
  color: var(--text-muted);
  font-weight: normal;
}

.doc-change-history-fields {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.doc-change-history-fields li {
  margin: 0.15rem 0;
}

.no-print {
  /* Excluded from PDF print root; kept for screen */
}

.print-root {
  display: none;
}

@media (max-width: 768px) {
  .doc-info-grid,
  .doc-summary-section {
    grid-template-columns: 1fr;
  }

  .doc-signatures {
    flex-direction: column;
    align-items: center;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    background: #fff !important;
    overflow: visible !important;
  }

  body.printing-document > *:not(#print-root) {
    display: none !important;
  }

  body.printing-document #print-root {
    display: block !important;
    width: var(--print-doc-width, 860px);
    max-width: none;
    margin: 0 auto;
    background: #fff;
    zoom: var(--print-zoom, 1);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-document #print-root,
  body.printing-document #print-root * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.printing-document #print-root .sales-document-hikari {
    width: 100%;
    box-sizing: border-box;
    box-shadow: none;
    padding: 1.25rem 1.5rem 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  body.printing-document #print-root .doc-table-wrap {
    overflow: visible;
  }

  body.printing-document #print-root .doc-gst-table {
    font-size: 0.7rem;
    width: 100%;
  }

  body.printing-document #print-root .doc-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.printing-document #print-root .doc-summary-section {
    grid-template-columns: 1fr 280px;
  }

  body.printing-document #print-root .doc-print-footer,
  body.printing-document #print-root .doc-line-notes-block {
    page-break-inside: avoid;
  }

  body.printing-document #print-root .doc-gst-table tr {
    page-break-inside: avoid;
  }

  @supports not (zoom: 1) {
    body.printing-document #print-root {
      transform: scale(var(--print-zoom, 1));
      transform-origin: top center;
    }
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}

.modal-body .entity-form,
.modal-body .invoice-form {
  min-width: 0;
}

.modal-body .form-control,
.modal-body select.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

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

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

.empty-state,
.loading {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.invoice-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invoice-lines-heading {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.invoice-lines-section {
  margin-bottom: 0.5rem;
}

.invoice-line {
  display: grid;
  grid-template-columns: 1.1fr 1.8fr 0.55fr 0.9fr 0.7fr 0.85fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.invoice-line-field {
  min-width: 0;
}

.invoice-line-label {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.invoice-line-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.25rem;
}

.modal-body .invoice-line-header {
  display: none;
}

.modal-body .invoice-lines {
  gap: 0.75rem;
}

.modal-body .invoice-line {
  grid-template-columns: 1fr;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  align-items: stretch;
}

.modal-body .invoice-line-label {
  display: block;
}

.modal-body .invoice-line .btn-danger {
  justify-self: end;
  width: auto;
  margin-top: 0.25rem;
}

.modal-body .invoice-line-actions {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 1100px) {
  .modal-lg .invoice-line {
    grid-template-columns: 1.1fr 1.8fr 0.55fr 0.9fr 0.7fr 0.85fr 1fr auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    align-items: end;
  }

  .modal-lg .invoice-line-header {
    display: grid;
  }

  .modal-lg .invoice-line-label {
    display: none;
  }

  .modal-lg .invoice-line-actions {
    justify-content: center;
    align-items: end;
  }

  .modal-lg .invoice-line .btn-danger {
    margin-top: 0;
  }
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideIn 0.2s ease;
}

.toast-success { background: #16a34a; }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }

@keyframes slideIn {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .nav-link.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }

  .form-row,
  .invoice-line {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 1rem;
  }

  .menubar-title {
    font-size: 1.05rem;
  }

  .menubar-logo {
    width: 36px;
    height: 36px;
  }

  .menubar-tagline {
    white-space: normal;
  }

  .page-header {
    gap: 0.75rem;
  }

  .page-header h2 {
    font-size: 1.1rem;
  }

  .card {
    padding: 0.9rem;
  }

  .form-control {
    font-size: 1rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .table-scroll-wrap,
  .dashboard-table-wrap {
    overflow: visible;
  }

  .data-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tfoot {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .data-table tbody tr,
  .data-table tfoot tr {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    /* Distinct from field lines inside each entry */
    border-bottom: 2px solid var(--row-separator);
    background: transparent;
  }

  .data-table tbody tr:first-child {
    padding-top: 0;
  }

  .data-table tbody tr:last-child,
  .data-table tfoot tr:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .data-table tfoot tr {
    background: var(--bg);
    margin-top: 0.25rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-bottom: 2px solid var(--row-separator);
    border-radius: var(--radius);
  }

  .data-table tbody td,
  .data-table tfoot td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
  }

  .data-table tbody td:last-child,
  .data-table tfoot td:last-child {
    border-bottom: none;
  }

  .data-table tbody td::before,
  .data-table tfoot td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    flex: 0 0 42%;
    max-width: 10.5rem;
  }

  .data-table tfoot td:not(.table-total-cell) {
    display: none;
  }

  .data-table td.action-cell,
  .data-table th.action-cell {
    position: static;
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 0.65rem;
    background: transparent;
  }

  .data-table td.action-cell::before {
    content: none;
  }

  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .table-pagination-controls {
    justify-content: space-between;
  }

  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal-dialog,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-document {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .login-content {
    padding: 1.5rem 1rem;
  }
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.visit-active-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.visit-badge,
.badge-success,
.badge-danger,
.badge-warning,
.badge-info,
.badge-muted {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success,
.matrix-cell.badge-success { background: #dcfce7; color: #166534; }
.badge-danger,
.matrix-cell.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning,
.matrix-cell.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info,
.matrix-cell.badge-info { background: #dbeafe; color: #1e40af; }
.badge-muted,
.matrix-cell.badge-muted { background: var(--bg); color: var(--text-muted); }

.geo-live {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.visit-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.visit-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}

.visit-metric-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.visit-metric-value {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.visit-start-form {
  gap: 1rem;
}

.visit-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-checkin {
  min-width: 8.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-checkin:disabled {
  opacity: 0.75;
  cursor: wait;
}

.visit-active-card {
  position: relative;
}

.visit-ending-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  pointer-events: all;
}

.visit-ending-overlay[hidden] {
  display: none;
}

.visit-ending-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: visit-spin 0.7s linear infinite;
}

.visit-ending-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

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

.visit-active-card.is-ending .btn-capture,
.visit-active-card.is-ending textarea,
.visit-active-card.is-ending .btn-secondary {
  pointer-events: none;
  opacity: 0.55;
}

.visit-section-title {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.photo-slot {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: var(--bg);
}

.photo-slot-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
}

.photo-preview {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0.5rem 0;
}

.photo-preview-lg {
  max-height: 320px;
  cursor: zoom-in;
}

.visit-photo-review .photo-grid {
  margin-top: 0.75rem;
}

.visit-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.visit-location-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.visit-map-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.visit-map-link:hover {
  text-decoration: underline;
}

.photo-input {
  width: 100%;
  font-size: 0.8125rem;
}

.photo-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-capture {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.75rem;
  font-weight: 600;
}

.matrix-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.visit-matrix {
  width: max-content;
  min-width: 100%;
}

.visit-matrix th,
.visit-matrix td {
  min-width: 5.5rem;
  text-align: center;
  white-space: normal;
}

.visit-matrix tbody th {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  min-width: 8rem;
}

.matrix-cell {
  display: table-cell;
}

.matrix-cell strong {
  display: block;
}

.matrix-cell span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.matrix-empty {
  color: var(--text-muted);
}

.chart-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 8rem) 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.chart-label {
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-track {
  height: 0.7rem;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

.chart-value {
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 2.5rem;
  text-align: right;
}

/* Employee onboarding */
.onboarding-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.onboarding-banner-submitted {
  border-color: #fbbf24;
  background: #fffbeb;
}

.onboarding-banner-pending {
  border-color: #93c5fd;
  background: #eff6ff;
}

.onboarding-banner p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.onboarding-step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.onboarding-step.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.onboarding-step.done:not(.active) {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.onboarding-content {
  padding: 1.25rem;
}

.onboarding-form h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
}

.onboarding-form h3:first-child {
  margin-top: 0;
}

.onboarding-section {
  padding: 1rem;
  margin-bottom: 1rem;
}

.upload-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.upload-hint.upload-ok {
  color: var(--brand-dark);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.review-dl dt {
  font-weight: 600;
  color: var(--text-muted);
}

.review-dl dd {
  margin: 0;
}

.review-block {
  padding: 1rem;
  margin-bottom: 1rem;
}

.review-entry {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.review-entry:last-child {
  border-bottom: none;
}

.review-entry h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
}

.doc-link {
  padding: 0;
  min-height: auto;
}

.onboarding-admin-review .form-actions {
  margin-top: 1rem;
}

/* Leave management */
.leave-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.leave-balance-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #1e3a5f;
}

.leave-balance-summary {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #0d9488;
  font-size: 0.9375rem;
}

.leave-balance-available {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.leave-balance-used,
.leave-balance-rules,
.leave-balance-carry {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.leave-apply-form {
  margin: 1rem 0;
}

.leave-policy-notes {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.leave-policy-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.timesheet-card {
  padding: 1rem 1.25rem;
}

.timesheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timesheet-week-label {
  flex: 1 1 220px;
  font-weight: 600;
  color: var(--text);
}

.timesheet-table-wrap {
  overflow-x: auto;
}

.timesheet-week-table textarea.timesheet-notes-input {
  min-width: 280px;
  min-height: 4.5rem;
  resize: vertical;
}

.timesheet-holiday-row {
  background: #f8fafc;
}

.timesheet-holiday-cell {
  color: var(--text-muted);
  font-style: italic;
}

.timesheet-review-notes {
  white-space: pre-wrap;
  max-width: 28rem;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .timesheet-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .timesheet-week-label {
    text-align: center;
  }
}

.attendance-card,
.attendance-active-card {
  margin-bottom: 1rem;
}

.attendance-status-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.attendance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.attendance-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.attendance-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.attendance-week-card {
  margin-top: 0.5rem;
}

.attendance-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.attendance-week-label {
  flex: 1;
  text-align: center;
  font-weight: 600;
}

.attendance-week-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.attendance-table-wrap {
  overflow-x: auto;
}

.attendance-holiday-row {
  background: var(--bg-muted, rgba(0, 0, 0, 0.03));
}

.attendance-review-filters {
  margin-bottom: 1rem;
  max-width: 320px;
}

.review-filter-actions {
  display: flex;
  align-items: flex-end;
}

.review-custom-dates {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .attendance-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .attendance-week-label {
    text-align: center;
  }
}

.leave-review-filters {
  margin-bottom: 1rem;
}

.opportunity-filters {
  margin-bottom: 1rem;
}

.opportunity-filter-actions {
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.opportunity-tcv-summary {
  margin-bottom: 1rem;
}

.opportunity-tcv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1.25rem;
}

.opportunity-tcv-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.opportunity-tcv-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.opportunity-tcv-value {
  font-size: 1.35rem;
  color: var(--text);
}

.leave-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
}

.leave-review-balances {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
}

.leave-review-balances h4 {
  margin: 0 0 0.5rem;
}

.policy-page-wrap {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
}

.policy-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.policy-pdf-viewer {
  padding: 0;
  overflow: hidden;
  background: #1e293b;
}

.policy-pdf-viewer:fullscreen {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.policy-pdf-viewer:fullscreen .policy-pdf-frame {
  flex: 1;
  min-height: 0;
}

.policy-pdf-frame {
  display: block;
  width: 100%;
  min-height: 75vh;
  border: none;
  background: #f8fafc;
}

.form-static {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
}

.payroll-controls {
  margin-bottom: 1rem;
}
