:root {
  color-scheme: light;
  --ink: #000000;
  --muted: #808579;
  --line: #DDE1DE;
  --panel: #ffffff;
  --soft: #F4F3EF;
  --accent: #6e834e;
  --accent-dark: #576a3d;
  --accent-soft: #f1f6eb;
  --subtext: #647477;
  --success: #99a36f;
  --danger: #96543A;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(203, 213, 225, 0.55), transparent 36rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 52%, #f6f8fb 100%);
  color: var(--ink);
  font-size: 13.5px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a,
.topnav button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.messages {
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 0;
}

.message {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.message.success {
  border-color: #b9e7cc;
  color: var(--success);
}

.message.error {
  border-color: #efb8af;
  color: var(--danger);
}

.message.info,
.message.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #96543A;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 18px;
}

.hero h1,
.auth-panel h1,
.narrow h1 {
  margin: 8px 0 0;
  max-width: 720px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 24px;
  line-height: 1.18;
}

.dashboard-title {
  max-width: 520px;
  font-size: 24px !important;
  line-height: 1.18 !important;
  font-weight: 720;
}

@media (max-width: 520px) {
  .dashboard-title {
    font-size: 20px !important;
  }
}

.eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted,
.hint {
  color: var(--muted);
}

.hint {
  margin-bottom: 0;
  font-size: 13px;
}

.clinic-switcher {
  display: flex;
  gap: 8px;
}

.page-clinic-switcher {
  width: fit-content;
  margin: 0 0 24px auto;
}

.page-clinic-switcher select {
  min-width: 300px;
}

.clinic-switcher select,
.clinic-switcher button,
.stack-form input,
.stack-form select,
.stack-form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
}

.clinic-switcher button,
.primary-button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 720;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
}

.primary-button:hover,
.clinic-switcher button:hover {
  background: var(--accent-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.tabs {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f5;
  overflow-x: auto;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.tab-link.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 24, 38, 0.1);
}

.tab-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.8fr);
  gap: 16px;
}

.import-panel-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.tab-panel {
  align-items: start;
}

.mobile-section-nav {
  display: none;
}

.panel-heading.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 24, 38, 0.05);
}

.panel h2 {
  margin: 6px 0 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  font-size: 20px;
}

.stat-row span {
  color: var(--muted);
  font-size: 13px;
}

.drop-form,
.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.file-input {
  width: 100%;
  min-height: 112px;
  border: 1px dashed #9aa4ad;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 34px 16px;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

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

.payroll-entry-table-wrap {
  max-width: 100%;
  min-width: 0;
  position: relative;
  scrollbar-width: none;
  width: 100%;
  -ms-overflow-style: none;
}

.payroll-entry-table-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.payroll-form {
  display: grid;
  gap: 14px;
}

.payroll-table {
  min-width: 920px;
}

.payroll-table td {
  vertical-align: top;
}

.compact-input,
.notes-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.compact-input {
  max-width: 120px;
}

.notes-input {
  min-width: 220px;
  resize: vertical;
}

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

.payroll-page {
  display: grid;
  gap: 24px;
  max-width: 1090px;
  margin: 0 auto;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.page-heading .add-payroll-button {
  justify-self: end;
}

.page-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.1;
  font-weight: 800;
}

.page-heading p {
  margin: 5px 0 0;
  color: var(--subtext);
  font-size: 14px;
}

.add-payroll-button {
  min-width: 182px;
  min-height: 44px;
  border-radius: 5px;
  background: var(--accent);
}

.payroll-filters {
  display: flex;
  gap: 12px;
  min-height: 74px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.payroll-filters input,
.payroll-filters select {
  min-width: 260px;
  min-height: 40px;
  border: 1px solid #dce3eb;
  border-radius: 5px;
  background: #f8fafc;
  padding: 0 12px;
}

.payroll-filters input {
  flex: 1 1 320px;
}

.new-payroll-panel[hidden] {
  display: none;
}

.new-payroll-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
}

.period-select-field {
  display: grid;
  gap: 6px;
  color: #73855a;
  font-size: 12px;
  font-weight: 760;
}

.period-select-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0 12px;
}

.recommended-period-option {
  font-weight: 800;
}

.period-proposal {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: #76885b;
  font-size: 12px;
}

.period-proposal strong {
  color: #354226;
  font-weight: 800;
}

.payroll-list-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.payroll-overview-table {
  min-width: 960px;
}

.payroll-overview-table th,
.payroll-overview-table td {
  padding: 18px 16px;
}

.payroll-overview-table th {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
  background: #fff;
}

.payroll-overview-table td {
  height: 69px;
  color: var(--ink);
}

.date-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  background: #84956d;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 16px 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 16px 16px;
}

.treatment-table tbody td:nth-child(3),
.treatment-table tbody td:nth-child(4) {
  color: #000000;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
}

.status-pill.in-progress {
  background: #dbeafe;
  color: #7a9357;
}

.status-pill.closed,
.status-pill.draft {
  background: #f1f5f9;
  color: #728359;
}

.status-pill.client-approved {
  background: #dcfce7;
  color: #7a9357;
}

.status-pill.cpa-treated {
  background: #dcfce7;
  color: #7a9357;
}

.status-pill.cpa-validated {
  background: #bbf7d0;
  color: #7a9357;
}

.yes-no-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 760;
}

.yes-no-pill.yes {
  background: #dcfce7;
  color: #728a51;
}

.yes-no-pill.no {
  background: #f1f5f9;
  color: #4A4A4A;
}

.treatment-table td strong,
.treatment-table td small {
  display: block;
}

.treatment-table td small {
  margin-top: 3px;
  color: var(--subtext);
  font-size: 12px;
}

.treatment-filter-form {
  display: none;
}

.treatment-filter-row th {
  padding-top: 0;
}

.treatment-filter-row input,
.treatment-filter-row select {
  width: 100%;
  min-width: 96px;
  min-height: 34px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 12px;
}

.treatment-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.treatment-filter-actions .secondary-button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
}

.payroll-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-wrap: wrap;
}

.payroll-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #303a22;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.payroll-pagination-link.active {
  border-color: #303a22;
  background: #333c24;
  color: #ffffff;
}

.payroll-pagination-link.previous,
.payroll-pagination-link.next {
  min-width: 78px;
}

.payroll-pagination-link:not(.active):hover,
.payroll-pagination-link:not(.active):focus-visible {
  background: #eef6ff;
  border-color: #bedc92;
}

.empty-treatment-state {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.validation-page > .empty-treatment-state,
.payroll-entry-page > .empty-treatment-state {
  width: min(680px, 100%);
  justify-self: center;
}

.empty-treatment-state h2 {
  margin: 0;
}

.empty-treatment-state p {
  margin: 0;
  color: #52647c;
}

.empty-treatment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.open-link {
  color: #273513;
  font-weight: 760;
  text-decoration: none;
}

.open-link:hover {
  color: #56673d;
}

.treatment-action-button {
  width: auto;
  min-width: 104px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 5px;
  background: var(--accent);
}

.treatment-action-button:hover,
.treatment-action-button:focus-visible {
  background: var(--accent-dark);
}

.payroll-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.locked-action {
  color: #b9c6a6;
  font-size: 13px;
  font-weight: 760;
}

.treated-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px 14px;
  color: #84936f;
}

.clinic-open-link {
  color: inherit;
  text-decoration: none;
}

.clinic-open-link:hover {
  color: #445131;
  text-decoration: underline;
}

.payroll-dashboard-page {
  display: grid;
  gap: 24px;
  width: min(1232px, 100%);
  max-width: none;
  margin: 0 auto;
}

.dashboard-heading {
  margin-bottom: 0;
}

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.status-summary-card {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.status-summary-card strong {
  color: #303a22;
  font-size: 24px;
  line-height: 1;
}

.status-summary-card span {
  color: #6a7a54;
  font-size: 12px;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 260px 220px;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.dashboard-filters input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dce3eb;
  border-radius: 5px;
  background: #f8fafc;
  padding: 0 14px;
}

.dashboard-filters select {
  width: 100%;
  min-width: 0;
}

.payroll-dashboard-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.payroll-dashboard-table th,
.payroll-dashboard-table td {
  padding: 12px 10px;
  vertical-align: middle;
}

.payroll-dashboard-table th:nth-child(1),
.payroll-dashboard-table td:nth-child(1) {
  width: 230px;
}

.payroll-dashboard-table th:nth-child(2),
.payroll-dashboard-table td:nth-child(2) {
  width: 110px;
}

.payroll-dashboard-table th:nth-child(n+3):nth-child(-n+5),
.payroll-dashboard-table td:nth-child(n+3):nth-child(-n+5) {
  width: 118px;
  text-align: center;
}

.payroll-dashboard-table th:nth-child(5),
.payroll-dashboard-table td:nth-child(5) {
  width: 160px;
}

.payroll-dashboard-table th:nth-child(6),
.payroll-dashboard-table td:nth-child(6) {
  width: 140px;
}

.payroll-dashboard-table th:nth-child(7),
.payroll-dashboard-table td:nth-child(7) {
  width: 150px;
}

.payroll-dashboard-table th {
  color: #697853;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.progress-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-dot.done {
  background: #9cbc70;
}

.check-box {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
}

.check-box.checked {
  background: var(--accent);
}

.check-box.checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.validation-page {
  display: grid;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.modification-validation-page {
  display: grid;
  gap: 18px;
  width: 100%;
  margin: 0;
}

.modification-payroll-entry {
  justify-self: stretch;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.modification-payroll-entry > * {
  justify-self: stretch;
}

.modification-payroll-entry .payroll-entry-toolbar {
  justify-self: start;
  width: min(320px, 100%);
  max-width: none;
}

.validation-heading h2 {
  margin: 0;
  color: #303a22;
  font-size: 23px;
  line-height: 1.1;
}

.validation-heading p {
  margin: 5px 0 0;
  color: #76885b;
}

.validation-heading-with-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.validation-heading-with-action > div {
  min-width: 0;
}

.validation-toggle-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 38px;
  white-space: nowrap;
}

.validation-toggle-button::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 15px 15px;
  transform: rotate(180deg);
  transition: transform 0.16s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 15px 15px;
}

.validation-toggle-button[aria-expanded="false"]::before {
  transform: rotate(0);
}

.validation-toggle-content {
  display: grid;
  gap: 18px;
}

.validation-toggle-content[hidden] {
  display: none;
}

.validation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.validation-stat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  min-height: 94px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  padding: 14px 16px;
}

.validation-stat-icon {
  grid-row: span 3;
  display: inline-grid;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: #a0c171;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 17px 17px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 17px 17px;
}

.validation-stat.warning .validation-stat-icon {
  background-color: #f59e0b;
}

.time-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.calendar-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3C/svg%3E");
}

.warning-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}

.validation-stat strong {
  color: #303a22;
  font-size: 22px;
  line-height: 1;
}

.validation-stat small {
  color: #738559;
}

.validation-stat-comparison {
  color: #798867;
  font-size: 12px;
  line-height: 1.25;
}

.validation-stat-comparison.positive,
.validation-delta.positive {
  color: #819c5c;
}

.validation-stat-comparison.negative,
.validation-delta.negative {
  color: #96543A;
}

.validation-stat-comparison.neutral,
.validation-delta.neutral {
  color: #72815c;
}

.validation-period-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.validation-period-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  color: #677751;
  font-size: 13px;
}

.validation-period-strip strong {
  color: #303a22;
}

.validation-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 180px)) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.validation-filters input,
.validation-filters select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #dce3eb;
  border-radius: 5px;
  background: #f8fafc;
  padding: 0 12px;
}

.validation-filters .secondary-button {
  min-height: 40px;
}

.validation-filter-count {
  justify-self: end;
  color: #728358;
  font-size: 12px;
  white-space: nowrap;
}

.validation-alerts {
  border: 1px solid #f4c27a;
  border-radius: 6px;
  background: #fff8ed;
  padding: 14px 16px;
}

.validation-alerts h3 {
  margin: 0 0 10px;
  color: #96543A;
  font-size: 14px;
}

.validation-alerts p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
  color: #96543A;
}

.validation-alerts p span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #ac6449;
  font-size: 12px;
  font-weight: 760;
}

.validation-alerts p span.alert {
  background: #fee2e2;
  color: #96543A;
}

.validation-alerts p span.warning {
  background: #fef3c7;
  color: #b1955e;
}

.validation-table-panel {
  padding: 0;
  overflow: hidden;
}

.validation-table {
  min-width: 860px;
}

.validation-table th,
.validation-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.validation-table th {
  color: #70805a;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.validation-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.validation-status.ok {
  background: #dcfce7;
  color: #16a34a;
}

.validation-status.alert {
  background: #ffedd5;
  color: #96543A;
}

.validation-status.warning {
  background: #fef3c7;
  color: #b1955e;
}

.validation-week-label,
.validation-delta {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-weight: 760;
}

.validation-alert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}

.validation-alert-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #5a6c40;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.validation-alert-tag.ok {
  background: #dcfce7;
  color: #88a65d;
}

.validation-alert-tag.warning {
  background: #fef3c7;
  color: #b1955e;
}

.validation-alert-tag.alert {
  background: #F0E3D8;
  color: #96543A;
}

.validation-row-warning td {
  background: #fffbeb;
}

.validation-row-alert td {
  background: #fff7ed;
}

.validation-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payroll-entry-page {
  display: grid;
  gap: 16px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.payroll-entry-fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.payroll-entry-page form {
  min-width: 0;
}

.payroll-entry-fieldset:disabled {
  opacity: 1;
}

.payroll-entry-fieldset:disabled input,
.payroll-entry-fieldset:disabled textarea {
  background: #f8fafc;
  color: #2a351d;
  cursor: not-allowed;
  -webkit-text-fill-color: #2a351d;
}

.main-tab-saisie .payroll-entry-page,
.main-tab-modification-validation .payroll-entry-page {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.payroll-entry-top-grid {
  display: grid;
  grid-template-columns: fit-content(620px) minmax(300px, 1fr);
  justify-content: start;
  gap: 16px;
  align-items: start;
}

.payroll-entry-top-grid > .payroll-entry-heading {
  margin-top: 20px;
}

.payroll-entry-heading {
  display: block;
}

.payroll-entry-heading h2 {
  margin: 0;
  color: #2a351d;
  font-size: 23px;
  line-height: 1.1;
}

.payroll-entry-period {
  display: block;
  margin-top: 4px;
  color: #52647c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.payroll-entry-period strong {
  color: #2a351d;
  font-weight: 750;
}

.payroll-entry-heading p {
  margin: 5px 0 0;
  color: #52647c;
}

.payroll-entry-import-panel {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas:
    "copy form"
    "hint hint";
  align-items: center;
  gap: 8px 12px;
  align-self: start;
  justify-self: stretch;
  padding: 14px 16px;
}

.payroll-entry-import-copy {
  grid-area: copy;
  min-width: 0;
}

.payroll-entry-import-hint {
  grid-area: hint;
  min-width: 0;
}

.payroll-entry-import-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.15;
}

.payroll-entry-import-panel .hint {
  margin: 0;
}

.payroll-entry-import-panel .drop-form {
  grid-area: form;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.payroll-entry-import-panel .drop-form .primary-button {
  align-self: stretch;
  width: auto;
  white-space: nowrap;
}

.french-file-upload {
  position: relative;
  min-width: 0;
  height: 100%;
}

.french-file-upload .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.french-file-upload-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 100%;
  min-height: 44px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 5px 16px;
  color: #0f172a;
  cursor: pointer;
}

.french-file-upload-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  border: 1px solid #9aa4ad;
  border-radius: 4px;
  background: #fff;
  padding: 4px 12px;
  font-weight: 650;
}

.french-file-upload-name {
  min-width: 0;
  overflow: hidden;
  color: #52647c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payroll-entry-validation {
  width: 100%;
  margin: 0;
}

.payroll-entry-validation-empty h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.payroll-entry-validation-empty p {
  margin: 5px 0 0;
  color: #52647c;
}

.payroll-entry-toolbar {
  max-width: 320px;
}

.payroll-entry-toolbar input,
.payroll-note-input,
.payroll-number-input {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px 10px;
}

.payroll-entry-toolbar input {
  min-height: 40px;
}

.payroll-entry-panel {
  padding: 0;
  overflow: visible;
}

.payroll-entry-table {
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}

.payroll-entry-table th,
.payroll-entry-table td {
  padding: 10px 7px;
  vertical-align: middle;
}

.payroll-entry-table th {
  color: #52647c;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.payroll-entry-table-head th {
  background: #ffffff;
  box-shadow: inset 0 -1px 0 var(--line), 0 3px 10px rgba(15, 23, 42, 0.08);
}

.payroll-entry-table.sticky-header-active .payroll-entry-table-head {
  visibility: hidden;
}

.payroll-entry-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: none;
  overflow: hidden;
  background: #ffffff;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.payroll-entry-sticky-header.visible {
  display: block;
}

.payroll-entry-sticky-header-inner {
  will-change: transform;
}

.payroll-entry-sticky-table {
  font-size: 11px;
  margin: 0;
}

.payroll-entry-sticky-table th {
  padding: 8px 4px;
}

.payroll-entry-sticky-table .payroll-col-employee {
  position: relative;
  left: auto;
  z-index: 8;
}

.payroll-entry-horizontal-scrollbar {
  position: fixed;
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 42;
  display: none;
  align-items: center;
  height: 18px;
  background: transparent;
  gap: 10px;
  padding: 0;
  pointer-events: auto;
}

.payroll-entry-horizontal-scrollbar.visible {
  display: flex;
}

.payroll-entry-horizontal-step {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.payroll-entry-horizontal-step::before {
  content: "";
  width: 0;
  height: 0;
}

.payroll-entry-horizontal-step.previous::before {
  border-top: 4px solid transparent;
  border-right: 6px solid #8b949e;
  border-bottom: 4px solid transparent;
}

.payroll-entry-horizontal-step.next::before {
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #8b949e;
}

.payroll-entry-horizontal-step:hover::before,
.payroll-entry-horizontal-step:focus-visible::before {
  filter: brightness(0.75);
}

.payroll-entry-horizontal-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: ew-resize;
}

.payroll-entry-horizontal-range::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 0;
  background: #d1d5db;
}

.payroll-entry-horizontal-range::-webkit-slider-thumb {
  width: 90px;
  height: 9px;
  margin-top: 0;
  border: 0;
  border-radius: 4px;
  background: #8b949e;
  cursor: ew-resize;
  -webkit-appearance: none;
}

.payroll-entry-horizontal-range::-moz-range-track {
  height: 9px;
  border-radius: 0;
  background: #d1d5db;
}

.payroll-entry-horizontal-range::-moz-range-thumb {
  width: 90px;
  height: 9px;
  border: 0;
  border-radius: 4px;
  background: #8b949e;
  cursor: ew-resize;
}

@media (max-width: 760px) {
  .main-tab-saisie .payroll-entry-panel,
  .main-tab-modification-validation .payroll-entry-panel {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .payroll-entry-horizontal-scrollbar {
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 28px;
    gap: 8px;
    padding: 0;
  }

  .payroll-entry-horizontal-step {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .payroll-entry-horizontal-step.previous::before {
    border-top-width: 5px;
    border-right-width: 8px;
    border-bottom-width: 5px;
  }

  .payroll-entry-horizontal-step.next::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
  }

  .payroll-entry-horizontal-range::-webkit-slider-runnable-track {
    height: 12px;
  }

  .payroll-entry-horizontal-range::-webkit-slider-thumb {
    width: 70px;
    height: 12px;
    margin-top: 0;
  }

  .payroll-entry-horizontal-range::-moz-range-track {
    height: 12px;
  }

  .payroll-entry-horizontal-range::-moz-range-thumb {
    width: 70px;
    height: 12px;
  }
}

.payroll-entry-table th span {
  color: #718096;
  font-size: 10px;
  font-weight: 650;
}

.payroll-entry-table th:nth-child(n+2):nth-child(-n+11),
.payroll-entry-table td:nth-child(n+2):nth-child(-n+11) {
  text-align: center;
}

.payroll-entry-table th:nth-child(1),
.payroll-entry-table td:nth-child(1) {
  width: 170px;
  text-align: left;
}

.payroll-entry-table th:nth-child(2),
.payroll-entry-table td:nth-child(2),
.payroll-entry-table th:nth-child(3),
.payroll-entry-table td:nth-child(3) {
  width: 80px;
}

.payroll-entry-table th:nth-child(n+4):nth-child(-n+10),
.payroll-entry-table td:nth-child(n+4):nth-child(-n+10) {
  width: 72px;
}

.payroll-entry-table th:nth-child(11),
.payroll-entry-table td:nth-child(11) {
  width: 84px;
}

.payroll-entry-table th:nth-child(12),
.payroll-entry-table td:nth-child(12) {
  width: 175px;
  text-align: left;
}

.payroll-number-input {
  min-width: 62px;
  max-width: 78px;
  height: 30px;
  padding: 4px 7px;
  text-align: center;
}

.payroll-note-input {
  min-width: 150px;
  min-height: 30px;
  font: inherit;
  line-height: 1.25;
  overflow: hidden;
  resize: vertical;
}

.payroll-entry-total-row td {
  background: #f8fafc;
  font-weight: 700;
}

.payroll-entry-actions {
  display: grid;
  grid-template-columns: auto auto minmax(220px, auto);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.payroll-entry-actions .primary-button {
  justify-self: end;
}

.payroll-entry-actions.modification-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, auto));
  justify-content: start;
}

.payroll-entry-actions.modification-actions .primary-button {
  justify-self: start;
}

.payroll-entry-actions.saisie-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.payroll-entry-actions.saisie-actions .primary-button,
.payroll-entry-actions.saisie-actions .secondary-button,
.payroll-entry-actions.saisie-actions .locked-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.compact-entry {
  width: 100%;
  gap: 14px;
}

.modification-entry-table {
  min-width: 1320px;
  font-size: 11px;
}

.modification-entry-table th,
.modification-entry-table td {
  padding: 8px 5px;
  white-space: nowrap;
}

.modification-entry-table th:nth-child(1),
.modification-entry-table td:nth-child(1) {
  width: 150px;
  text-align: left;
}

.modification-entry-table th:nth-child(2),
.modification-entry-table td:nth-child(2),
.modification-entry-table th:nth-child(3),
.modification-entry-table td:nth-child(3),
.modification-entry-table th:nth-child(4),
.modification-entry-table td:nth-child(4) {
  width: 54px;
  text-align: center;
}

.modification-entry-table th:nth-child(n+5):nth-child(-n+15),
.modification-entry-table td:nth-child(n+5):nth-child(-n+15) {
  text-align: center;
}

.modification-entry-table th:nth-child(n+5):nth-child(-n+13),
.modification-entry-table td:nth-child(n+5):nth-child(-n+13) {
  width: 68px;
}

.modification-entry-table th:nth-child(11),
.modification-entry-table td:nth-child(11) {
  width: 130px;
}

.modification-entry-table th:nth-child(14),
.modification-entry-table td:nth-child(14),
.modification-entry-table th:nth-child(15),
.modification-entry-table td:nth-child(15) {
  width: 84px;
}

.modification-entry-table th:nth-child(16),
.modification-entry-table td:nth-child(16) {
  width: 130px;
  text-align: left;
}

.modification-entry-table td:first-child strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modification-entry-table .payroll-number-input,
.modification-entry-table .payroll-note-input {
  min-width: 0;
  height: 28px;
  font-size: 11px;
}

.modification-entry-table .payroll-number-input {
  padding: 3px 1px;
  font-variant-numeric: tabular-nums;
}

.modification-entry-table .payroll-note-input {
  min-height: 28px;
  padding: 5px;
  line-height: 1.25;
}

.modification-entry-table .payroll-number-input::-webkit-outer-spin-button,
.modification-entry-table .payroll-number-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.modification-entry-table .payroll-number-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.payroll-row-gross,
.payroll-total-gross {
  color: #0f172a;
  font-weight: 760;
}

.modification-actions {
  grid-template-columns: repeat(2, minmax(170px, auto)) minmax(120px, auto);
  justify-content: end;
}

.clinic-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf2f7;
  color: #7e875b;
  font-size: 12px;
  font-weight: 800;
}

.secondary-button {
  min-height: 40px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.employees-page {
  display: grid;
  gap: 20px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.employee-add-panel {
  padding: 16px;
}

.employee-add-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) repeat(3, minmax(70px, 0.55fr)) auto;
  gap: 12px;
  align-items: end;
}

.employee-add-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.employee-add-field input,
.employee-add-field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
}

.employee-add-field.tiny-field {
  min-width: 70px;
}

.employee-add-field.short-field {
  min-width: 96px;
}

.employee-add-complete-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.employee-add-complete-field input {
  width: 17px;
  height: 17px;
  accent-color: #939e60;
}

.employee-add-form .primary-button {
  min-height: 38px;
  white-space: nowrap;
}

@media (max-width: 1260px) {
  .employee-add-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .employee-add-form .primary-button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .employee-add-form {
    grid-template-columns: 1fr;
  }
}

.employee-list-panel {
  padding: 0;
  overflow: hidden;
}

.employee-notice {
  padding: 14px 16px;
  border-bottom: 1px solid #fde68a;
  background: #F0E3D8;
  color: #96543A;
  font-weight: 680;
}

.employees-table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
}

.employees-table th,
.employees-table td {
  padding: 13px 10px;
  vertical-align: middle;
  color: #000000;
}

.employees-table th {
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.employees-table th:nth-child(1),
.employees-table td:nth-of-type(1) {
  width: 11%;
}

.employees-table th:nth-child(2),
.employees-table td:nth-of-type(2) {
  width: 10%;
}

.employees-table th:nth-child(3),
.employees-table td:nth-of-type(3) {
  width: 11%;
}

.employees-table th:nth-child(4),
.employees-table td:nth-of-type(4),
.employees-table th:nth-child(5),
.employees-table td:nth-of-type(5) {
  width: 8%;
}

.employees-table th:nth-child(6),
.employees-table td:nth-of-type(6) {
  width: 10%;
}

.employees-table th:nth-child(7),
.employees-table td:nth-of-type(7),
.employees-table th:nth-child(8),
.employees-table td:nth-of-type(8) {
  width: 7%;
}

.employees-table th:nth-child(9),
.employees-table td:nth-of-type(9),
.employees-table th:nth-child(10),
.employees-table td:nth-of-type(10) {
  width: 9%;
}

.employees-table th:nth-child(11),
.employees-table td:nth-of-type(11) {
  width: 7%;
}

.employees-table th:last-child,
.employees-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding-right: 6px;
  padding-left: 6px;
  background: #fff;
  box-shadow: -10px 0 14px -14px rgba(15, 23, 42, 0.34);
  text-align: center;
}

.employees-table thead th:last-child {
  z-index: 3;
}

.employee-filter-row th {
  padding-top: 0;
}

.employee-filter-row input,
.employee-filter-row select {
  width: 100%;
  min-width: 52px;
  min-height: 30px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 4px 7px;
  color: var(--ink);
  font-size: 12px;
}

.employees-table code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.missing-field {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #F0E3D8;
  color: #96543A;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.employee-complete-cell {
  text-align: center;
}

.employee-complete-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.employee-complete-input {
  display: none;
  justify-content: center;
}

.employee-row.editing .employee-complete-input {
  display: inline-flex;
}

.employee-complete-checkbox {
  width: 17px;
  height: 17px;
  accent-color: #5B6E3F;
  cursor: pointer;
}

.employee-complete-checkbox:disabled {
  cursor: default;
}

.edit-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.employee-input {
  display: none;
  width: 96px;
  min-height: 30px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #000000;
  padding: 5px 8px;
  font: inherit;
}

.employee-row.editing .employee-input {
  display: inline-block;
}

.employee-row.editing select.employee-input {
  display: inline-block;
}

.employee-row.editing .employee-value,
.employee-row.editing .edit-button {
  display: none;
}

.employee-row .save-row-button {
  display: none;
}

.employee-row.editing .save-row-button {
  display: inline-block;
}

.employee-input.tiny {
  width: 58px;
  text-align: center;
}

.employee-input.short {
  width: 74px;
  text-align: center;
}

.employee-input.rate-input {
  width: 86px;
  text-align: center;
}

.employee-input.status-input {
  width: 96px;
}

.employee-input.pill-input {
  width: 52px;
  border-radius: 999px;
  color: #7C8459;
  font-weight: 800;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #4b5a33;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.status-actif {
  background: #d2edaa;
  color: #5B6E3F;
}

.status-inactif {
  background: #F0E3D8;
  color: #96543A;
}

.status-termine {
  background: #e2e8f0;
  color: #475569;
}

.status-exclure {
  background: #fee2e2;
  color: #991b1b;
}

.save-row-button {
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5B6E3F;
  cursor: pointer;
  padding: 0;
}

.save-row-button:hover {
  background: #eaf1f8;
}

.save-icon {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 18px 18px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 18px 18px;
}

.payroll-page .panel {
  box-shadow: none;
}

.payroll-page .table-wrap {
  overflow-x: auto;
}

.payroll-page tr:hover td {
  background: #fbfdff;
}

.payroll-page .status-pill.in-progress {
  background: #dbeafe;
  color: #5B6E3F;
}

.doc-list {
  display: grid;
  gap: 10px;
}

.doc-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
}

.doc-item span {
  color: var(--muted);
  font-size: 13px;
}

.auth-shell,
.narrow,
.empty-state {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
}

.auth-panel,
.narrow,
.empty-state {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(22px, 5vw, 36px);
}

.inline {
  margin-top: 12px;
}

@media (max-width: 880px) {
  .hero,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav,
  .clinic-switcher {
    flex-wrap: wrap;
  }

  .grid,
  .content-split,
  .tab-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main,
  .messages {
    width: min(100% - 20px, 1180px);
  }

  .brand-text {
    display: none;
  }

  .clinic-switcher select,
  .clinic-switcher button {
    width: 100%;
  }
}

/* App style inspired by modern builder dashboards: sidebar, soft canvas, compact cards. */
.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 74px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px 14px;
  border-right: 1px solid rgba(24, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  overflow: visible;
}

.workspace {
  min-width: 0;
  padding: 18px 10px 18px 18px;
}

.workspace.workspace-tab-saisie,
.workspace.workspace-tab-modification-validation,
.workspace.workspace-tab-employes {
  padding-left: 24px;
  padding-right: 20px;
}

.workspace main {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 8px 0 48px;
}

.workspace main.main-tab-saisie,
.workspace main.main-tab-modification-validation,
.workspace main.main-tab-employes {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.mobile-topbar {
  display: none;
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.public-topbar {
  justify-content: center;
}

.sidebar-brand {
  align-items: center;
  padding: 4px 4px 8px;
  border-radius: 8px;
  min-width: 0;
}

.sidebar .brand-logo {
  width: 48px;
  height: 48px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 14px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11.5px;
}

.sidebar-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  top: 20px;
  right: -17px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 18, 20, 0.12);
}

.sidebar-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #64748b;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M9 4v16'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 18px 18px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M9 4v16'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 18px 18px;
}

.sidebar-toggle:hover::before {
  background: #a7ad8a;
}

.side-nav {
  display: grid;
  gap: 3px;
  margin-top: 14px;
}

.side-group {
  display: grid;
  gap: 6px;
  margin: 2px 0 8px;
}

.side-group p {
  margin: 0 4px;
  color: #000;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.side-group p.active {
  color: #5B6E3F;
}

.side-subnav {
  display: grid;
  gap: 1px;
  margin: 0;
  padding-left: 0;
  border-left: 0;
}

.side-nav-divider {
  display: block;
  height: 1px;
  margin: 5px 12px;
  background: #e2e8f0;
}

.employee-nav-warning {
  display: inline;
  width: auto;
  margin: 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.employee-nav-warning.mobile {
  margin: 0;
}

.side-subnav a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #000;
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.side-subnav a:hover,
.side-subnav a.active,
.side-subnav a.parent-active {
  background: #f1f5f9;
  color: var(--ink);
}

.side-subnav a:hover,
.side-subnav a.active,
.side-subnav a.parent-active {
  color: #5B6E3F;
  font-weight: 720;
  box-shadow: inset 0 0 0 1px rgba(49, 91, 131, 0.08);
}


.side-nested {
  display: grid;
  margin: -1px 0 1px 38px;
  padding-left: 12px;
  border-left: 1px solid #dbe3ec;
}

.side-nested a {
  min-height: 26px;
  padding: 3px 10px;
  grid-template-columns: 1fr;
  color: #64748b;
  font-size: 12px;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #64748b;
  line-height: 1;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 19px 19px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 19px 19px;
}

.app-shell.sidebar-collapsed .sidebar {
  padding: 14px 10px;
}

.app-shell.sidebar-collapsed .sidebar-brand {
  width: 46px;
  height: 46px;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  background: transparent;
}

.app-shell.sidebar-collapsed .sidebar .brand-logo {
  width: 42px;
  height: 42px;
}

.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .side-group p,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .side-nested,
.app-shell.sidebar-collapsed .user-chip div,
.app-shell.sidebar-collapsed .ghost-button {
  display: none;
}

.app-shell.sidebar-collapsed .side-nav {
  margin-top: 18px;
  justify-items: center;
}

.app-shell.sidebar-collapsed .side-group {
  margin: 0 0 16px;
}

.app-shell.sidebar-collapsed .side-subnav a {
  grid-template-columns: 1fr;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.app-shell.sidebar-collapsed .side-nav-divider {
  width: 26px;
  margin: 8px auto;
}

.app-shell.sidebar-collapsed .nav-icon {
  width: 22px;
  height: 22px;
  mask-size: 18px 18px;
  -webkit-mask-size: 18px 18px;
}

.app-shell.sidebar-collapsed .sidebar-footer {
  justify-items: center;
}

.app-shell.sidebar-collapsed .user-chip {
  grid-template-columns: 1fr;
  width: 44px;
  padding: 3px;
  border: 0;
  background: transparent;
}

.side-subnav a:hover .nav-icon,
.side-subnav a.active .nav-icon,
.side-subnav a.parent-active .nav-icon {
  color: #5B6E3F;
}

.users-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.clinic-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M9 21V9h6v12M9 13h6M7 6h.01M12 6h.01M17 6h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M9 21V9h6v12M9 13h6M7 6h.01M12 6h.01M17 6h.01'/%3E%3C/svg%3E");
}

.reports-icon,
.dashboard-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9M13 17V5M8 17v-3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9M13 17V5M8 17v-3'/%3E%3C/svg%3E");
}

.payroll-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

.import-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3Cpath d='M4 4 2 6M20 4l2 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3Cpath d='M4 4 2 6M20 4l2 2'/%3E%3C/svg%3E");
}

.employees-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.59 13.51 15.42 17.49M15.41 6.51 8.59 10.49'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.59 13.51 15.42 17.49M15.41 6.51 8.59 10.49'/%3E%3C/svg%3E");
}

.document-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
}

.import-backup-icon {
  background-color: transparent;
  mask-image: none;
  -webkit-mask-image: none;
}

.import-backup-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 1 1 5.83 1c0 2-3 2-3 4M12 17h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 1 1 5.83 1c0 2-3 2-3 4M12 17h.01'/%3E%3C/svg%3E");
}

.database-icon,
.data-emoji {
  background-color: transparent;
  color: inherit;
  font-size: 17px;
  line-height: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.database-icon::before {
  content: "📊";
  display: block;
  line-height: 1;
}

.data-emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.duckdb-page {
  display: grid;
  gap: 18px;
  width: min(1360px, 100%);
  margin: 0 auto;
}

.duckdb-toolbar-panel {
  padding: 16px;
}

.duckdb-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.duckdb-toolbar label {
  display: grid;
  gap: 6px;
  color: #52647c;
  font-size: 12px;
  font-weight: 760;
}

.duckdb-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0 12px;
}

.duckdb-summary-panel,
.duckdb-schema-panel,
.duckdb-data-panel {
  overflow: hidden;
}

.duckdb-summary-panel {
  padding: 0;
}

.duckdb-summary-panel h2 {
  margin: 0;
  padding: 16px 18px 0;
}

.duckdb-summary-table,
.duckdb-data-table {
  min-width: 980px;
}

.duckdb-summary-table code,
.duckdb-schema-table code,
.duckdb-data-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.duckdb-summary-table td:nth-child(2) code {
  overflow-wrap: anywhere;
}

.duckdb-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px;
  align-items: start;
}

.duckdb-schema-table {
  min-width: 520px;
}

.duckdb-data-table th,
.duckdb-data-table td {
  white-space: nowrap;
}

.duckdb-data-table td {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duckdb-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.duckdb-pagination .secondary-button {
  text-decoration: none;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.user-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.user-chip > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 780;
  text-transform: uppercase;
}

.user-chip strong,
.user-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip strong {
  font-size: 12.5px;
}

.user-chip small {
  color: var(--muted);
  font-size: 11.5px;
}

.ghost-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.ghost-button:hover {
  background: #fff;
}

.messages {
  width: min(1360px, 100%);
  margin: 0 auto 14px;
}

.message {
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 18, 20, 0.06);
}

.hero {
  align-items: center;
  margin: 0 0 32px;
  padding: 18px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(18, 18, 20, 0.06);
}

.dashboard-title,
.hero h1 {
  font-size: 23px !important;
  line-height: 1.08 !important;
  font-weight: 800;
}

.eyebrow {
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.clinic-switcher {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.clinic-switcher select {
  min-width: 250px;
  border: 0;
  background: transparent;
}

.clinic-switcher button,
.primary-button {
  border-radius: 8px;
  background: var(--accent);
}

.clinic-switcher button:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.dashboard-summary .panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 18px;
  align-items: end;
}

.stat-row {
  margin-top: 0;
}

.stat-row div {
  background: #f8fafc;
}

.tabs {
  display: flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 5px;
  border-color: rgba(24, 24, 27, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 22px rgba(18, 18, 20, 0.05);
}

.tab-link {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
}

.tab-link.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(51, 65, 85, 0.2);
}

.panel {
  border-color: rgba(24, 24, 27, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(18, 18, 20, 0.07);
}

.panel h2 {
  font-size: 17px;
  font-weight: 780;
}

.file-input {
  border-color: #c9bfae;
  background: #f8fafc;
}

th {
  color: #78736b;
  font-size: 11px;
}

tr:hover td {
  background: rgba(247, 245, 241, 0.56);
}

.doc-item {
  background: #f8fafc;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.doc-item:hover {
  border-color: #CBA686;
  background: #fff;
  transform: translateY(-1px);
}

.auth-shell {
  min-height: calc(100vh - 82px);
}

.auth-panel {
  box-shadow: 0 24px 50px rgba(18, 18, 20, 0.1);
}

.oauth-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
}

.oauth-button {
  display: inline-grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  color: #5B6E3F;
  cursor: pointer;
  font-weight: 760;
}

.oauth-button:hover {
  background: #f8fafc;
}

.oauth-icon {
  justify-self: end;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.microsoft-icon {
  background:
    linear-gradient(#f25022, #f25022) left top / 8px 8px no-repeat,
    linear-gradient(#7fba00, #7fba00) right top / 8px 8px no-repeat,
    linear-gradient(#00a4ef, #00a4ef) left bottom / 8px 8px no-repeat,
    linear-gradient(#ffb900, #ffb900) right bottom / 8px 8px no-repeat;
}

.google-icon {
  border: 3px solid #4285f4;
  border-top-color: #ea4335;
  border-right-color: #4285f4;
  border-bottom-color: #34a853;
  border-left-color: #fbbc05;
  border-radius: 999px;
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #525a45;
  font-size: 12px;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  height: 1px;
  background: #dbe3ec;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 0 14px 24px;
  }

  .mobile-topbar {
    display: flex;
    margin: 0 -14px 14px;
  }

  .dashboard-summary .panel,
  .tab-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .workspace main {
    padding-top: 0;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .dashboard-title,
  .hero h1 {
    font-size: 22px !important;
  }

  .tabs {
    width: 100%;
  }

  .tab-link {
    flex: 1;
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .workspace {
    padding: 0 12px 24px;
  }

  .mobile-topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: calc(100% + 24px);
    min-height: 64px;
    margin: 0 -12px 12px;
    padding: 10px 14px;
  }

  .mobile-menu-toggle {
    display: grid;
    gap: 4px;
    place-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #303a22;
  }

  .mobile-menu {
    display: none;
    width: 100%;
    margin: -4px 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  }

  .mobile-menu.open {
    display: grid;
    gap: 5px;
  }

  .mobile-menu p {
    margin: 10px 4px 4px;
    color: #76855e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .mobile-menu p:first-child {
    margin-top: 0;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #445131;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu a:hover {
    background: #f1f5f9;
  }

  .mobile-menu .mobile-subitem {
    min-height: 34px;
    margin-top: -4px;
    padding-left: 24px;
    color: #859173;
    font-size: 13px;
  }

  .mobile-topbar .brand {
    min-width: 0;
  }

  .mobile-topbar .brand-logo {
    width: 38px;
    height: 38px;
  }

  .mobile-topbar .brand-text {
    display: inline;
    font-size: 14px;
  }

  .workspace main,
  main,
  .messages {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    display: grid;
    gap: 14px;
    width: 100%;
    padding: 16px;
  }

  .hero > div,
  .clinic-switcher,
  .clinic-switcher select,
  .clinic-switcher button {
    width: 100%;
    max-width: 100%;
  }

  .page-clinic-switcher {
    width: 100%;
    margin: 0 0 18px;
  }

  .clinic-switcher {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .clinic-switcher select {
    min-width: 0;
    min-height: 42px;
  }

  .clinic-switcher button {
    min-height: 42px;
  }

  .dashboard-summary .panel {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .panel {
    width: 100%;
    padding: 16px;
  }

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

  .stat-row div {
    min-width: 0;
  }

  .stat-row span {
    overflow-wrap: anywhere;
  }

  .tab-layout {
    grid-template-columns: 1fr;
  }

  .mobile-section-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
  }

  .mobile-section-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-section-nav a.active {
    background: var(--accent);
    color: #fff;
  }

  .stack-form input,
  .stack-form select,
  .stack-form textarea,
  .file-input,
  .primary-button {
    width: 100%;
  }

  .payroll-entry-import-panel .drop-form {
    grid-template-columns: 1fr;
  }

  .payroll-entry-import-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "form"
      "hint";
  }

  .payroll-entry-import-panel .drop-form .primary-button {
    width: 100%;
  }

  .page-heading {
    display: grid;
  }

  .page-heading h2 {
    font-size: 22px;
  }

  .page-heading p {
    font-size: 14px;
  }

  .payroll-entry-top-grid {
    grid-template-columns: 1fr;
  }

  .payroll-entry-period {
    white-space: normal;
  }

  .validation-heading-with-action {
    display: grid;
  }

  .validation-toggle-button {
    justify-self: start;
  }

  .add-payroll-button {
    width: 100%;
  }

  .payroll-filters,
  .validation-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payroll-filters input,
  .payroll-filters select,
  .validation-filters input,
  .validation-filters select {
    width: 100%;
    min-width: 0;
  }

  .validation-filters .secondary-button,
  .validation-filters .open-link {
    justify-self: stretch;
  }

  .validation-filter-count {
    justify-self: start;
  }

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

  .modification-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .modification-actions .primary-button,
  .modification-actions .secondary-button {
    width: 100%;
  }

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

  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .employees-page {
    width: 100%;
  }

}

body {
  background: linear-gradient(135deg, #fbfcfe 0%, #f4f7fb 48%, #fbfcfe 100%) !important;
}

.eyebrow {
  color: #7C8459 !important;
}

.side-group p {
  color: #000 !important;
}

.side-group p.active {
  color: #5B6E3F !important;
}

.hero,
.panel,
.auth-panel,
.narrow,
.empty-state,
.clinic-switcher,
.payroll-filters,
.validation-filters,
.payroll-list-panel,
.message {
  border-color: #dbe3ec !important;
  background: #ffffff !important;
}

.stat-row div,
.doc-item,
.file-input,
.stack-form input,
.stack-form select,
.stack-form textarea,
.compact-input,
.notes-input {
  border-color: #dbe3ec !important;
  background: #f8fafc !important;
}

.dashboard-filters.payroll-filters {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px 200px !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.dashboard-filters.payroll-filters input,
.dashboard-filters.payroll-filters select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 701px) and (max-width: 980px) {
  .workspace main,
  main,
  .messages {
    width: min(760px, 100%) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .page-clinic-switcher {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .tab-layout,
  .content-split,
  .dashboard-summary .panel {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .workspace {
    padding: 0 8px 24px !important;
  }

  .mobile-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    align-items: center !important;
    gap: 10px !important;
    width: calc(100% + 16px) !important;
    min-height: 62px !important;
    margin: 0 -8px 14px !important;
    padding: 10px 12px !important;
  }

  .mobile-topbar .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .mobile-topbar .brand-logo {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .mobile-topbar .brand-text {
    display: inline-block !important;
    overflow: hidden !important;
    max-width: 100% !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-menu-toggle {
    position: static !important;
    justify-self: end !important;
    flex: 0 0 40px !important;
  }

  .mobile-menu {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .page-clinic-switcher {
    width: min(100%, 420px) !important;
    margin: 0 auto 20px !important;
  }

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

  .duckdb-toolbar .primary-button {
    width: 100%;
  }

  .duckdb-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .duckdb-pagination {
    justify-content: stretch;
  }

  .duckdb-pagination .secondary-button {
    flex: 1;
  }
}

.clinic-profile-page {
  display: grid;
  gap: 18px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.clinic-profile-form {
  display: grid;
  gap: 16px;
}

.clinic-profile-panel {
  display: grid;
  gap: 14px;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.profile-field-grid > label {
  grid-column: span 2;
}

.pay-period-range-field,
.overtime-settings-field {
  grid-column: span 3;
}

.profile-field-grid label,
.pay-period-range-field,
.overtime-settings-field {
  display: grid;
  gap: 6px;
  color: #76885d;
  font-size: 12px;
  font-weight: 760;
}

.overtime-settings-field {
  grid-template-columns: minmax(124px, 0.9fr) minmax(120px, 0.8fr) minmax(132px, 1fr);
  gap: 6px 8px;
  align-items: end;
}

.overtime-settings-field > span,
.overtime-settings-field .field-errors {
  grid-column: 1 / -1;
}

.overtime-toggle {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0 12px;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

.profile-field-grid .overtime-toggle input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.overtime-period-field,
.overtime-threshold-field {
  display: grid;
  gap: 4px;
}

.overtime-period-field small,
.overtime-threshold-field small {
  color: #728063;
  font-size: 11px;
  font-weight: 700;
}

.overtime-period-field.disabled,
.overtime-threshold-field.disabled {
  opacity: 0.55;
}

.input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
}

.input-with-suffix input {
  border: 0 !important;
  background: transparent !important;
}

.input-with-suffix > span {
  padding: 0 10px 0 4px;
  color: #6d7e56;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.date-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.date-range-inputs label {
  gap: 4px;
}

.date-range-inputs small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.profile-field-grid input,
.profile-field-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 0 12px;
  color: #2d3c16;
}

.field-errors {
  color: var(--danger);
  font-size: 12px;
  font-weight: 650;
}

.field-errors ul {
  margin: 0;
  padding-left: 16px;
}

.column-choice-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #ffffff;
}

.column-choice-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.column-choice-table th,
.column-choice-table td {
  padding: 0;
  border-right: 1px solid #dbe3ec;
  border-bottom: 1px solid #e6edf5;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  vertical-align: middle;
}

.column-choice-table th:last-child,
.column-choice-table td:last-child {
  border-right: 0;
}

.column-choice-table tbody tr:last-child th,
.column-choice-table tbody tr:last-child td {
  border-bottom: 0;
}

.column-choice-table thead th {
  background: #f8fafc;
  color: #6f8057;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.column-choice-table tbody th {
  font-size: 13.5px;
  text-transform: none;
}

.column-choice-name-column {
  width: 44%;
}

.column-choice-source-column {
  width: 40%;
}

.column-choice-visible-column,
.column-choice-table td:last-child {
  width: 16%;
  min-width: 86px;
  text-align: center;
}

.column-choice-table tbody td:nth-child(2) {
  background: #f8fafc;
}

.column-choice-label,
.column-choice-hint,
.column-choice-toggle {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  cursor: pointer;
  line-height: 1.2;
}

.column-choice-label {
  min-height: 38px;
  color: #263714;
  font-size: 14px;
  font-weight: 760;
}

.column-choice-hint {
  min-height: 38px;
  color: #728359;
  font-size: 12px;
  font-weight: 760;
}

.column-choice-toggle {
  justify-content: center;
  min-height: 38px;
}

.column-choice-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.clinic-profile-page .profile-field-grid label,
.clinic-profile-page .pay-period-range-field,
.clinic-profile-page .overtime-settings-field,
.clinic-profile-page .date-range-inputs small,
.clinic-profile-page .overtime-period-field small,
.clinic-profile-page .overtime-threshold-field small,
.clinic-profile-page .input-with-suffix > span,
.clinic-profile-page .profile-field-grid input,
.clinic-profile-page .profile-field-grid select,
.clinic-profile-page .column-choice-table th,
.clinic-profile-page .column-choice-table td,
.clinic-profile-page .column-choice-label,
.clinic-profile-page .column-choice-hint {
  color: var(--ink);
}

.clinic-profile-page .overtime-toggle {
  color: var(--ink) !important;
}

.clinic-profile-page input[type="checkbox"] {
  accent-color: var(--accent);
}

.clinic-profile-page input::placeholder {
  color: var(--ink);
  opacity: 1;
}

.clinic-profile-actions {
  display: flex;
  justify-content: flex-end;
}

.clinic-profile-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l8-4v18'/%3E%3Cpath d='M19 21V11l-6-4'/%3E%3Cpath d='M9 9h.01M9 13h.01M9 17h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l8-4v18'/%3E%3Cpath d='M19 21V11l-6-4'/%3E%3Cpath d='M9 9h.01M9 13h.01M9 17h.01'/%3E%3C/svg%3E");
}

.payroll-entry-table {
  min-width: max(1180px, calc(190px + (var(--payroll-visible-columns, 20) * 92px)));
}

.payroll-entry-table .payroll-col-employee {
  width: 190px;
  text-align: left;
}

.payroll-entry-table-head .payroll-col-employee {
  position: sticky;
  left: 0;
  z-index: 12;
  background: #ffffff;
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 var(--line), 8px 0 14px rgba(15, 23, 42, 0.08);
}

.payroll-entry-table tbody .payroll-col-employee {
  position: sticky;
  left: 0;
  z-index: 8;
  background: #ffffff;
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 var(--line), 8px 0 14px rgba(15, 23, 42, 0.08);
}

.payroll-entry-table .payroll-entry-total-row .payroll-col-employee {
  background: #f8fafc;
}

.payroll-entry-table .payroll-col-week {
  width: 74px;
  text-align: center;
}

.payroll-entry-table .payroll-col-regular_hours,
.payroll-entry-table .payroll-col-modified_hours,
.payroll-entry-table .payroll-col-overtime_hours,
.payroll-entry-table .payroll-col-double_rate_hours,
.payroll-entry-table .payroll-col-third_rate_hours {
  width: 84px;
}

.payroll-entry-table .payroll-col-bank_plus,
.payroll-entry-table .payroll-col-bank_minus,
.payroll-entry-table .payroll-col-bank_hours,
.payroll-entry-table .payroll-col-vacation_hours,
.payroll-entry-table .payroll-col-vacation_amount,
.payroll-entry-table .payroll-col-transport,
.payroll-entry-table .payroll-col-mobile_days,
.payroll-entry-table .payroll-col-mobile,
.payroll-entry-table .payroll-col-mobile_custom,
.payroll-entry-table .payroll-col-holiday,
.payroll-entry-table .payroll-col-holiday_days {
  width: 78px;
  text-align: center;
}

.payroll-entry-table .payroll-col-regular_hours_payable,
.payroll-entry-table .payroll-col-overtime_hours_payable,
.payroll-entry-table .payroll-col-double_rate_hours_payable,
.payroll-entry-table .payroll-col-third_rate_hours_payable {
  width: 76px;
  text-align: center;
}

.payroll-entry-table .payroll-col-all_hours_payable,
.payroll-entry-table .payroll-col-total_payable_amount {
  width: 104px;
  text-align: center;
}

.payroll-entry-table .payroll-col-notes {
  width: 180px;
  text-align: left;
}

.payroll-entry-table .payroll-col-expense_reimbursements {
  width: 220px;
  text-align: left;
}

.payroll-entry-table th span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
}

.payroll-entry-table .payroll-col-highlight {
  background: #f1f7fb;
}

.payroll-entry-table td.payroll-col-highlight {
  color: #2d3c17;
  font-weight: 760;
}

.payroll-entry-table td.payroll-approved-change {
  background: #eaf7ee;
  box-shadow: inset 0 0 0 1px rgba(45, 143, 83, 0.18);
}

.payroll-entry-table td.payroll-approved-change.payroll-col-highlight {
  background: #dff2e6;
}

.payroll-entry-table td.payroll-approved-change .payroll-number-input,
.payroll-entry-table td.payroll-approved-change .payroll-note-input {
  background: #f6fcf7;
  border-color: rgba(45, 143, 83, 0.34);
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table {
  min-width: max(1360px, calc(118px + (var(--payroll-visible-columns, 20) * 64px)));
  font-size: 11px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table th,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table td {
  padding: 8px 4px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-employee {
  width: 118px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table td.payroll-col-employee strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-week {
  width: 46px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-regular_hours,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-overtime_hours {
  width: 64px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-modified_hours,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-double_rate_hours,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-third_rate_hours {
  width: 64px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-bank_plus,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-bank_minus,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-bank_hours {
  width: 68px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-regular_hours_payable,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-overtime_hours_payable,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-double_rate_hours_payable,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-third_rate_hours_payable {
  width: 54px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-all_hours_payable,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-total_payable_amount {
  width: 68px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-vacation_hours,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-mobile,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-holiday {
  width: 64px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-vacation_amount,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-transport,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-mobile_custom {
  width: 66px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-mobile_days,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-holiday_days {
  width: 42px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-notes {
  width: 104px;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-expense_reimbursements {
  width: 132px;
}
.payroll-entry-table .payroll-col-custom_export_1,
.payroll-entry-table .payroll-col-custom_export_2,
.payroll-entry-table .payroll-col-custom_export_3 {
  width: 122px;
  text-align: center;
}

.payroll-custom-export-title {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.payroll-custom-export-title::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-custom_export_1,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-custom_export_2,
.payroll-entry-page:not(.compact-entry) .payroll-entry-table .payroll-col-custom_export_3 {
  width: 88px;
}

.payroll-entry-page:not(.compact-entry) .payroll-custom-export-title {
  height: 28px;
  padding: 3px 4px;
  font-size: 10px;
}

.payroll-entry-page:not(.compact-entry) .payroll-number-input,
.payroll-entry-page:not(.compact-entry) .payroll-note-input {
  min-width: 0;
  height: 28px;
  font-size: 11px;
}

.payroll-entry-page:not(.compact-entry) .payroll-number-input {
  padding: 3px 1px;
  font-variant-numeric: tabular-nums;
}

.payroll-entry-page:not(.compact-entry) .payroll-note-input {
  min-height: 28px;
  padding: 5px 5px;
  line-height: 1.25;
}

.payroll-entry-page:not(.compact-entry) .payroll-number-input::-webkit-outer-spin-button,
.payroll-entry-page:not(.compact-entry) .payroll-number-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.payroll-entry-page:not(.compact-entry) .payroll-number-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.compact-entry .modification-entry-table {
  min-width: 1120px;
  width: 100%;
  table-layout: fixed;
  font-size: 11px;
}

.compact-entry .modification-entry-table th,
.compact-entry .modification-entry-table td {
  padding: 7px 3px;
}

.compact-entry .modification-entry-table th:nth-child(1),
.compact-entry .modification-entry-table td:nth-child(1) {
  width: 118px;
}

.compact-entry .modification-entry-table th:nth-child(2),
.compact-entry .modification-entry-table td:nth-child(2) {
  width: 38px;
}

.compact-entry .modification-entry-table th:nth-child(3),
.compact-entry .modification-entry-table td:nth-child(3) {
  width: 42px;
}

.compact-entry .modification-entry-table th:nth-child(4),
.compact-entry .modification-entry-table td:nth-child(4) {
  width: 44px;
}

.compact-entry .modification-entry-table th:nth-child(n+5):nth-child(-n+10),
.compact-entry .modification-entry-table td:nth-child(n+5):nth-child(-n+10),
.compact-entry .modification-entry-table th:nth-child(12),
.compact-entry .modification-entry-table td:nth-child(12),
.compact-entry .modification-entry-table th:nth-child(13),
.compact-entry .modification-entry-table td:nth-child(13),
.compact-entry .modification-entry-table th:nth-child(14),
.compact-entry .modification-entry-table td:nth-child(14) {
  width: 64px;
}

.compact-entry .modification-entry-table th:nth-child(11),
.compact-entry .modification-entry-table td:nth-child(11) {
  width: 112px;
}

.compact-entry .modification-entry-table th:nth-child(15),
.compact-entry .modification-entry-table td:nth-child(15) {
  width: 70px;
}

.compact-entry .modification-entry-table th:nth-child(16),
.compact-entry .modification-entry-table td:nth-child(16) {
  width: 100px;
}

.compact-entry .modification-entry-table .payroll-number-input {
  padding-right: 1px;
  padding-left: 1px;
}

.payroll-readonly-value {
  color: #283714;
  font-weight: 720;
}

@media (max-width: 760px) {
  .profile-field-grid {
    grid-template-columns: 1fr;
  }

  .profile-field-grid > label,
  .pay-period-range-field,
  .overtime-settings-field {
    grid-column: auto;
  }

  .overtime-settings-field {
    grid-template-columns: 1fr;
  }

  .clinic-profile-actions {
    justify-content: stretch;
  }

  .column-choice-table {
    min-width: 500px;
  }

  .column-choice-visible-column,
  .column-choice-table td:last-child {
    min-width: 80px;
  }
}

@media (max-width: 520px) {
  .date-range-inputs {
    grid-template-columns: 1fr;
  }
}
