﻿:root {
  --bg: #eef4fb;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(255, 255, 255, 0.94);
  --text: #13233d;
  --muted: #5c6f89;
  --brand: #154a9f;
  --brand-strong: #0d2d61;
  --export: #0e356f;
  --danger: #8f3d2f;
  --shadow: 0 24px 58px rgba(17, 36, 68, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: var(--text);
  background: #ffffff;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 30;
}

.auth-card {
  width: min(100%, 460px);
  background: #ffffff;
  border: 1px solid #e7e9f0;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: block;
  height: 58px;
  width: auto;
  margin: 0 auto 18px;
  border-radius: 5px;
}

.auth-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-switcher .ghost-button {
  flex: 1;
}

.auth-switcher .ghost-button.is-active {
  background: #f3f2f7;
  color: var(--brand-strong);
}

.app-shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
}

.hero { padding: 8px 6px 4px; }

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 252, 0.94) 62%, rgba(235, 241, 250, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-top::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 74, 159, 0.18) 0%, rgba(21, 74, 159, 0.02) 70%, transparent 72%);
}

.hero-top::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -100px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 162, 222, 0.16) 0%, rgba(27, 162, 222, 0.02) 70%, transparent 72%);
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-menu {
  width: min(280px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.session-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
}

.session-bar .ghost-button {
  padding: 6px 10px;
  font-size: 0.82rem;
  line-height: 1;
}

.session-bar .stamp {
  margin: 0;
  font-size: 0.8rem;
}

.menu-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-menu {
  width: 100%;
  border: 1px solid rgba(19, 35, 61, 0.12);
  border-radius: 16px;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-weight: 600;
}

button, .btn, .nav, .menu {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 6px;
  font-size: 32px;
  line-height: 0.96;
  color: var(--brand);
  letter-spacing: -0.5px;
}

h2 { font-size: 24px; }
h3 { font-size: 18px; }

h2, h3, .field-label, .answer-title strong { color: var(--brand); }

.hero-subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.intro {
  max-width: 760px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.field-label, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  margin-bottom: 10px;
  font-weight: 700;
}

.field-label-row {
  gap: 12px;
}

.field-label-row label {
  font-weight: 700;
}

.query-input {
  width: 100%;
  border: 1px solid rgba(19, 35, 61, 0.12);
  border-radius: 22px;
  padding: 14px 16px;
  resize: vertical;
  font: inherit;
  color: var(--text);
  background: rgba(251, 253, 255, 0.98);
  min-height: 52px;
  line-height: 1.5;
}

.query-input:focus {
  outline: 2px solid rgba(21, 74, 159, 0.18);
  border-color: rgba(21, 74, 159, 0.32);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hidden { display: none !important; }

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 12px 24px rgba(17, 36, 68, 0.08);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 36, 68, 0.12);
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.secondary-button {
  color: white;
  background: linear-gradient(135deg, var(--export) 0%, #183864 100%);
}

.ghost-button {
  color: var(--brand);
  background: rgba(21, 74, 159, 0.06);
  border: 1px solid rgba(21, 74, 159, 0.14);
}

.sky-button {
  color: #0d5c88;
  background: linear-gradient(135deg, #d9f2ff 0%, #bfe8ff 100%);
}

.warning-button {
  color: #855500;
  background: linear-gradient(135deg, #ffe9b5 0%, #ffd86b 100%);
}

.status, .stamp {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(19, 35, 61, 0.05);
  border: 1px solid rgba(19, 35, 61, 0.07);
}

.page-view.hidden { display: none; }

.result {
  min-height: 120px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}
.result.empty { color: var(--muted); }
.answer-title { margin-bottom: 12px; font-size: 1.15rem; }
.module-copy {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.selector-panel {
  padding-top: 16px;
  padding-bottom: 16px;
}

.selector-item {
  max-width: 340px;
}

.movement-target-item {
  min-width: min(100%, 360px);
}

.selector-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.selector-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  gap: 10px;
  flex-wrap: wrap;
}

.movement-subpages {
  display: grid;
  gap: 18px;
}

.movement-subpage {
  display: grid;
  gap: 18px;
}

.movement-layout-name {
  min-width: min(100%, 360px);
}

.movement-alta-actions {
  align-items: center;
}

.movement-payroll-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-width: 0;
}

.movement-payroll-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 0;
  min-width: 0;
}

.attendance-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attendance-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.attendance-checkbox-item {
  justify-content: flex-end;
}

.attendance-table-shell {
  height: min(58vh, 620px);
}

.attendance-inline-actions {
  flex-direction: column;
  margin-top: 0;
}

.movement-history-date {
  min-width: min(100%, 260px);
}

.movement-table-shell {
  overflow: auto;
  margin-top: 16px;
  border: 1px solid rgba(19, 35, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior: contain;
}

.movement-table-shell-fixed {
  height: min(62vh, 680px);
}

.movement-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.movement-table th,
.movement-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(19, 35, 61, 0.08);
  white-space: nowrap;
  text-align: left;
}

.movement-table thead th {
  position: sticky;
  top: 0;
  background: #eef5ff;
  color: var(--brand);
  z-index: 1;
}

.movement-employee-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.movement-employee-inline-input {
  min-width: 220px;
  flex: 1 1 220px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.upload-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.upload-card {
  border: 1px solid rgba(19, 35, 61, 0.08);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(239, 246, 254, 0.92) 100%);
}

.upload-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
  z-index: 25;
}

.modal-card {
  width: min(100%, 680px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  background: rgba(250, 252, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-close {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.answer-block, .list-card {
  border: 1px solid rgba(19, 35, 61, 0.08);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98) 0%, rgba(239, 246, 253, 0.92) 100%);
}

.answer-block + .answer-block, .list-card + .list-card { margin-top: 12px; }

.subtle-block {
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98) 0%, rgba(232, 241, 251, 0.92) 100%);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.kv-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(246, 249, 253, 0.98);
  border: 1px solid rgba(19, 35, 61, 0.06);
}

.kv-item span { display: block; }
.kv-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kv-value { font-weight: 700; color: var(--text); }
.warning { color: var(--danger); font-weight: 700; }

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.salary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 14px;
  justify-content: start;
}

.compensation-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.movement-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calculator-form-grid {
  grid-template-columns: repeat(3, minmax(0, 220px));
  align-items: end;
}

.calculator-form-grid .full-span {
  grid-column: 1 / -1;
}

.calculator-manual-check {
  justify-content: end;
}

.calculator-manual-check .check-item {
  min-height: 44px;
}

.full-span {
  grid-column: 1 / -1;
}

.checkbox-item {
  justify-content: flex-end;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.export-checklist-card {
  width: min(100%, 760px);
}

.export-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.export-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(246, 249, 253, 0.98);
  border: 1px solid rgba(19, 35, 61, 0.06);
}

.export-checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.export-checklist-item span {
  color: var(--text);
  font-weight: 500;
}

.status-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-notifications {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.app-notice {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(17, 36, 68, 0.18);
  color: #fff;
  animation: notice-slide-in 180ms ease-out;
}

.app-notice.is-success {
  background: linear-gradient(135deg, #15925f 0%, #0f7a4f 100%);
}

.app-notice.is-error {
  background: linear-gradient(135deg, #b64242 0%, #943535 100%);
}

.app-notice-title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.app-notice-message {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
}

.app-notice-close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes notice-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-soft-button {
  color: #fff;
  background: linear-gradient(135deg, #57b287 0%, var(--success) 100%);
}

.soft-pink-button {
  color: #7d274b;
  background: linear-gradient(135deg, #ffd7e5 0%, #ffc1d8 100%);
}

.salary-row-full {
  grid-column: 1 / -1;
}

.field-label-inline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-input {
  width: 100%;
  border: 1px solid rgba(19, 35, 61, 0.12);
  border-radius: 16px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: rgba(251, 253, 255, 0.98);
}

.password-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-shell .text-input {
  padding-right: 48px;
}

.password-toggle-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(19, 35, 61, 0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.password-toggle-button:hover {
  background: linear-gradient(180deg, #edf4ff 0%, #e4eeff 100%);
}

.password-toggle-button:focus-visible {
  outline: 2px solid rgba(21, 74, 159, 0.22);
  border-color: rgba(21, 74, 159, 0.35);
}

.text-input:focus,
.page-menu:focus {
  outline: 2px solid rgba(108, 20, 54, 0.22);
  border-color: rgba(108, 20, 54, 0.35);
}

.date-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-input-shell .text-input {
  padding-right: 48px;
}

.date-picker-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(19, 35, 61, 0.12);
  background: linear-gradient(180deg, #fef7cc 0%, #fde68a 100%);
  color: #8a5a00;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.date-picker-button:hover,
.date-picker-button:focus {
  transform: translateY(-50%);
}

.date-picker-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
}

.date-picker-icon::before,
.date-picker-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 2px;
}

.date-picker-icon::before {
  left: 2px;
}

.date-picker-icon::after {
  right: 2px;
}

.native-date-picker {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.salary-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.salary-rules {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.calculator-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.calculator-primary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.calculator-primary-card {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(140deg, rgba(103, 61, 230, 0.08) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(225, 238, 255, 0.92) 100%);
  border: 1px solid rgba(103, 61, 230, 0.12);
}

.calculator-primary-title {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  margin-bottom: 8px;
}

.calculator-primary-value {
  display: block;
  color: var(--brand);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.calculator-primary-subvalue {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 6px;
}

.calculator-detail-card {
  border: 1px solid #ece7fb;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px 18px;
}

.calculator-detail-card p {
  margin: 0 0 8px;
}

.calculator-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.calculator-kv {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98) 0%, rgba(241, 246, 255, 0.9) 100%);
  border: 1px solid rgba(103, 61, 230, 0.08);
  padding: 12px 14px;
}

.calculator-kv-label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calculator-kv-value {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.summary-card {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(21, 74, 159, 0.1) 0%, rgba(255, 255, 255, 0.96) 50%, rgba(228, 240, 253, 0.92) 100%);
  border: 1px solid rgba(21, 74, 159, 0.12);
}

.summary-card-title {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.summary-card-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
}

.salary-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.detail-list li {
  color: var(--text);
  line-height: 1.35;
}

.detail-list strong {
  color: var(--brand);
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100%, calc(100% - 14px));
    padding: 12px 0 28px;
  }

  .panel {
    padding: 14px;
    border-radius: 18px;
  }

  .hero {
    padding: 4px 2px 2px;
  }

  .hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-menu {
    width: 100%;
    align-items: stretch;
  }

  h1 {
    font-size: clamp(1.1rem, 6vw, 1.6rem);
    line-height: 1.1;
    margin-bottom: 6px;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .intro {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .field-label,
  .panel-head {
    align-items: flex-start;
    gap: 8px;
  }

  .field-label-row,
  .selector-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .selector-toolbar-actions {
    margin-left: 0;
    justify-content: stretch;
  }

  .query-input {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.96rem;
  }

  .actions button, .result-actions button {
    width: 100%;
  }

  .kv-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .answer-block, .list-card {
    padding: 14px;
    border-radius: 16px;
  }

  .kv-item {
    padding: 10px;
  }

  .result-actions {
    flex-direction: column;
    gap: 8px;
  }

  .salary-grid,
  .grid-form,
  .attendance-form-grid,
  .attendance-filter-grid,
  .summary-grid,
  .compensation-grid,
  .upload-grid,
  .upload-stack,
  .upload-fields {
    grid-template-columns: 1fr;
  }

  .salary-row-full {
    grid-column: span 1;
  }

  .salary-options {
    align-items: stretch;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 16px;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    width: calc(100% - 10px);
  }

  .panel {
    padding: 12px;
  }

  button {
    padding: 11px 14px;
  }
}

/* Corporate refresh */
:root {
  --bg: #f4f7fb;
  --bg-strong: #e8eff8;
  --panel: rgba(255, 255, 255, 0.98);
  --line: #e7defd;
  --text: #1f1342;
  --muted: #6f6a86;
  --brand: #673de6;
  --brand-strong: #2f1c6a;
  --brand-soft: #f4f1ff;
  --success: #1f9d62;
  --success-strong: #16784a;
  --danger: #c24141;
  --danger-strong: #9f2e2e;
  --special: #00b090;
  --special-strong: #00836c;
  --shadow: 0 28px 64px rgba(47, 28, 106, 0.12);
  --radius: 22px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(103, 61, 230, 0.04), transparent 20%),
    linear-gradient(180deg, #f8f9fb 0%, #f3f4f7 100%);
  font-family: "Segoe UI Variable", "Aptos", "Bahnschrift", sans-serif;
}

.app-shell {
  width: calc(100% - 24px);
  max-width: 1600px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 84px 0 24px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 1fr;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 18;
  background: #ffffff;
  border-bottom: 1px solid #ececf2;
  backdrop-filter: blur(12px);
}

.site-header-inner {
  width: calc(100% - 24px);
  max-width: 1600px;
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 84px;
  min-height: calc(100vh - 98px);
  padding: 0;
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
  border-right: 1px solid #ececf2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  overflow-y: auto;
  will-change: transform;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sidebar-top {
  display: none;
}

.brand-logo-title,
.topbar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo,
.topbar-logo {
  width: auto;
  height: 50px;
  max-width: 720px;
  border-radius: 3px;
  flex: 0 0 auto;
  object-fit: contain;
  transform: translateY(-5px);
}

.brand-kicker,
.sidebar-label,
.topbar-kicker {
  margin: 0 0 6px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--brand);
}

.brand-block h1 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: 0;
}

.brand-block p,
.sidebar-user p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sidebar-user {
  margin: 0 14px 14px;
  margin-top: auto;
  padding: 14px 8px 6px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.sidebar-user-name {
  display: block;
  font-size: 1rem;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.nav-group {
  border-radius: 18px;
  background: #fff;
  border: 1px solid transparent;
  overflow: hidden;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--brand-strong);
  background: #ffffff;
  position: relative;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #5a5670;
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.nav-group[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.nav-submenu {
  padding: 0 10px 12px;
  display: grid;
  gap: 8px;
}

.nav-summary-label,
.nav-link-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  color: #111111;
  font-size: 0.92rem;
  line-height: 1;
}

.nav-icon-blue {
  color: #2b6de5;
}

.nav-icon-green {
  color: #0f9f6e;
}

.nav-icon-amber {
  color: #d97706;
}

.nav-icon-rose {
  color: #db2777;
}

.nav-icon-violet {
  color: #7c3aed;
}

.nav-icon-cyan {
  color: #0891b2;
}

.nav-icon-svg svg {
  width: 16px;
  height: 16px;
  display: block;
}

.nav-link {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: 11px 12px;
  border: 1px solid transparent;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.is-active {
  background: #f3f2f7;
  border-color: transparent;
  color: var(--brand-strong);
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
}

.topbar-menu {
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.05rem;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--brand-strong);
  border: 1px solid #ececf2;
}

.topbar-title {
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  letter-spacing: -0.02em;
  transform: translateX(100px);
}

.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: #111111;
  box-shadow: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.logout-link:hover {
  transform: none;
  box-shadow: none;
  color: var(--brand-strong);
}

.table-sheet {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-sheet th,
.table-sheet td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7e9f0;
  text-align: left;
  vertical-align: top;
}

.table-sheet th {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
  background: #fafbff;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.icon-action-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.icon-action-button:hover {
  transform: translateY(-1px);
  opacity: 0.98;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.icon-action-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
}

.icon-action-glyph svg {
  width: 17px;
  height: 17px;
  display: block;
}

.action-blue {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.action-gray {
  background: linear-gradient(180deg, #7b8391 0%, #626b78 100%);
}

.action-green {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.action-red {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.panel {
  margin-top: 0;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e7e9f0;
  backdrop-filter: none;
  box-shadow: 0 10px 26px rgba(31, 19, 66, 0.05);
  overflow-x: auto;
  overflow-y: visible;
}

.field-label,
.panel-head {
  align-items: center;
}

.panel-head h2,
.field-label label,
.field-label {
  color: var(--brand-strong);
}

.query-input,
.text-input,
.page-menu {
  background: #fff;
  border: 1px solid #ddd5fb;
  border-radius: 18px;
  box-shadow: inset 0 1px 2px rgba(47, 28, 106, 0.03);
}

.query-input:focus,
.text-input:focus,
.page-menu:focus {
  outline: none;
  border-color: rgba(103, 61, 230, 0.45);
  box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.12);
}

.query-input {
  min-height: 56px;
  padding: 14px 16px;
}

.query-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.query-actions {
  margin-top: 14px;
}

.query-actions button {
  min-width: 156px;
}

#exportButton {
  color: #ffffff;
  background: linear-gradient(135deg, #73c8ff 0%, #3f9cff 100%);
}

.query-filter-grid-rebuilt {
  margin-top: 18px;
}

.query-filter-card {
  padding: 14px;
  border: 1px solid #e4defa;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 255, 0.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.query-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: var(--brand);
}

.query-filter-summary::-webkit-details-marker {
  display: none;
}

.query-filter-summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(103, 61, 230, 0.1);
  color: #673de6;
  font-size: 1rem;
  line-height: 1;
}

.query-filter-card[open] .query-filter-summary::after {
  content: "−";
}

.query-filter-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.query-filter-apply-button {
  justify-self: start;
  min-width: 156px;
}

.query-filter-input {
  min-height: 44px;
}

.query-filter-select {
  min-height: 220px;
  height: 220px;
  padding: 8px;
  overflow-y: auto;
  background: #fff;
  appearance: auto;
}

.query-filter-select option {
  padding: 10px 12px;
  border-radius: 12px;
  white-space: normal;
}

.query-filter-select option:checked {
  background: linear-gradient(135deg, #673de6 0%, #2f1c6a 100%);
  color: #fff;
}

.query-filter-checklist {
  display: grid;
  gap: 8px;
  min-height: 220px;
  max-height: 220px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid #ddd5fb;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(47, 28, 106, 0.03);
}

.query-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(103, 61, 230, 0.05);
  color: var(--text);
}

.query-filter-check input {
  margin-top: 2px;
  accent-color: #673de6;
}

.query-filter-check span {
  flex: 1;
  line-height: 1.35;
}

.query-filter-check.is-all {
  background: rgba(47, 28, 106, 0.08);
  font-weight: 600;
}

.query-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.query-highlight-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(103, 61, 230, 0.16);
  background: linear-gradient(180deg, #faf7ff 0%, #f2ecff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.query-highlight-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #685b93;
}

.query-highlight-value {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--brand-strong);
}

.query-highlight-card-spotlight {
  border-color: rgba(214, 171, 33, 0.28);
  background: linear-gradient(180deg, #fff9de 0%, #fff1b8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.query-highlight-card-spotlight .query-highlight-label {
  color: #7a5b08;
}

.query-highlight-card-spotlight .query-highlight-value {
  color: #5f4700;
}

.is-disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

mark {
  padding: 1px 5px;
  border-radius: 6px;
  background: #fff0a8;
  color: inherit;
}

button {
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(47, 28, 106, 0.1);
}

.primary-button {
  background: linear-gradient(135deg, #673de6 0%, #2f1c6a 100%);
  color: #fff;
}

.secondary-button {
  background: linear-gradient(135deg, #1b123b 0%, #4a2db8 100%);
  color: #fff;
}

.ghost-button {
  background: linear-gradient(135deg, #f5f1ff 0%, #ede7ff 100%);
  color: var(--brand-strong);
  border: 1px solid rgba(103, 61, 230, 0.14);
}

#salaryResetButton,
#clearQueryButton,
#benefitResetButton,
#prima1ResetButton,
#prima2ResetButton,
#aguinaldoResetButton,
#vacationResetButton,
#pensionResetButton {
  background: linear-gradient(135deg, #ffd9e6 0%, #f8b9d1 100%);
  color: #8f3657;
  border: 1px solid rgba(143, 54, 87, 0.12);
}

#prima1FindPersonButton,
#prima2FindPersonButton,
#aguinaldoFindPersonButton,
#vacationFindPersonButton,
#pensionFindPersonButton {
  background: linear-gradient(135deg, #dff4ff 0%, #a9e1ff 100%);
  color: #155b85;
  border: 1px solid rgba(21, 91, 133, 0.14);
}

#openPensionsButton {
  background: linear-gradient(135deg, #ffe89a 0%, #ffd24d 100%);
  color: #7b5a00;
  border: 1px solid rgba(123, 90, 0, 0.12);
}

#pensionCalculateButton {
  background: linear-gradient(135deg, #cbeedb 0%, #9fddb9 100%);
  color: #236649;
  border: 1px solid rgba(35, 102, 73, 0.12);
}

#openFiscalModalButton,
#uploadPayrollButton,
#uploadDirectoryButton,
#uploadReportsButton,
#uploadGratificationsButton,
#uploadFiscalButton {
  background: linear-gradient(135deg, #d8fbff 0%, #9cecf4 100%);
  color: #16616b;
  border: 1px solid rgba(22, 97, 107, 0.12);
}

.danger-button {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-strong) 100%);
  color: #fff;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.selector-toolbar,
.selector-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.selector-toolbar {
  justify-content: space-between;
}

.selector-toolbar-actions {
  margin-left: auto;
}

.summary-card {
  background: #ffffff;
  border: 1px solid rgba(103, 61, 230, 0.1);
}

.answer-block,
.list-card {
  background: #ffffff;
  border: 1px solid #ece7fb;
}

.subtle-block {
  background: linear-gradient(180deg, #faf9ff 0%, #f4f0ff 100%);
}

.module-copy,
.status,
.salary-rules,
.hero-subtitle,
.intro {
  color: var(--muted);
}

.page-view {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.page-view.hidden {
  display: none !important;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 24, 39, 0.24);
  z-index: 14;
}

.sidebar-close-mobile {
  display: none;
}

.panel-head {
  gap: 12px;
}

.panel,
.panel-collapse-body,
.answer-block,
.list-card,
#movementPayrollPreviewTable {
  min-width: 0;
  max-width: 100%;
}

#movementPayrollPreviewTable {
  overflow: hidden;
}

.panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.panel-collapse-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff4c7 0%, #ffe18a 100%);
  color: #7f6400;
  border: 1px solid rgba(127, 100, 0, 0.12);
  box-shadow: none;
  font-size: 1rem;
  line-height: 1;
}

.panel-collapse-button:hover {
  transform: translateY(-1px);
}

.panel-collapse-button.is-collapsed {
  transform: rotate(180deg);
}

.panel-collapse-body {
  margin-top: 14px;
}

.panel.is-collapsed .panel-collapse-body {
  display: none;
}

#compensationResult.result.empty {
  padding-top: 16px;
}

.app-shell.sidebar-collapsed .sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-24px);
  padding: 0;
  gap: 0;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 16px);
    padding-top: 124px;
  }

  .sidebar {
    position: fixed;
    top: 118px;
    left: 12px;
    bottom: 12px;
    width: min(320px, calc(100vw - 24px));
    min-height: auto;
    z-index: 16;
    transform: translateX(calc(-100% - 28px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .topbar-menu {
    display: inline-flex;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-close-mobile {
    display: inline-flex;
    position: static;
    align-self: flex-start;
    margin: 0;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7f4ff 0%, #ede7ff 100%);
    color: var(--brand-strong);
    border: 1px solid rgba(103, 61, 230, 0.12);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    width: calc(100% - 16px);
    min-height: 96px;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-menu {
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 12px;
    align-self: center;
    margin-top: 10px;
  }

  .site-header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topbar-logo {
    width: auto;
    height: 50px;
    max-width: 420px;
    border-radius: 3px;
  }

  .topbar-title {
    transform: none;
    margin-left: 0;
  }

  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .selector-toolbar,
  .selector-toolbar-actions,
  .field-label-row,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }
}

.form-actions-inline {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.profile-search-grid,
.profile-report-grid,
.dismissal-filter-grid {
  grid-template-columns: minmax(280px, 1.5fr) minmax(240px, 1fr);
}

.profile-match-list,
.profile-detail-grid,
.profile-report-table-wrap {
  display: grid;
  gap: 14px;
}

.profile-match-card,
.profile-detail-card {
  border: 1px solid #eceaf7;
  border-radius: 18px;
  background: #fff;
  padding: 16px 18px;
}

.profile-match-card p,
.profile-detail-card p {
  margin: 0 0 6px;
}

.profile-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profile-kv {
  border-radius: 14px;
  border: 1px solid #efedf8;
  background: #fbfaff;
  padding: 12px 14px;
}

.profile-kv-label {
  display: block;
  color: #6c2bd9;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-kv-value {
  color: #1d2433;
  font-size: 14px;
  word-break: break-word;
}

.profile-table-scroll {
  overflow: auto;
  border: 1px solid #eceaf7;
  border-radius: 16px;
}

.movement-close-issues-block {
  min-width: 0;
}

.movement-close-issues-scroll {
  max-height: 320px;
  overflow-x: auto;
  overflow-y: auto;
  padding-right: 8px;
  border: 1px solid rgba(103, 61, 230, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.movement-close-issues-list {
  min-width: 720px;
  margin: 0;
  padding: 14px 18px 14px 30px;
}

.profile-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: #fff;
}

.profile-table-scroll th,
.profile-table-scroll td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0eef8;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

.profile-table-scroll th {
  color: #6c2bd9;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  background: #faf8ff;
  position: sticky;
  top: 0;
}

@media (max-width: 900px) {
  .profile-search-grid,
  .profile-report-grid,
  .dismissal-filter-grid,
  .query-filter-grid {
    grid-template-columns: 1fr;
  }

  .workspace,
  .page-view,
  .panel,
  .result {
    scrollbar-width: thin;
  }

  .query-actions button,
  .query-filter-apply-button {
    width: 100%;
    min-width: 0;
  }

  .query-filter-select {
    min-height: 180px;
    height: 180px;
  }

  .query-filter-checklist {
    min-height: 180px;
    max-height: 180px;
  }
}
