/* startup: tax-statistics-submenu.css */
/* Tax statistics belongs beside the existing rider monthly-history tab. */
.settlement-records-workspace[hidden]{display:none!important}
@media screen{
  #admin #settlement-records-workspace.workspace-card{box-sizing:border-box;width:100%!important;margin:0!important;padding:28px!important;background:#fff!important;border:1px solid #dfe5ee!important;border-radius:20px!important;box-shadow:0 14px 34px rgba(23,42,73,.075)!important}
  #admin #settlement-records-workspace>section.workspace-card{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  #admin #settlement-records-workspace>section[hidden]{display:none!important}
  #admin #settlement-records-workspace>.section-title{min-height:58px!important;margin:0 0 20px!important;padding:0 0 22px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;border-bottom:1px solid #e5eaf2!important}
  #admin #settlement-records-workspace>.section-title>div{min-width:0;display:flex!important;align-items:center!important;gap:14px!important}
  #admin #settlement-records-workspace>.section-title .section-icon{width:42px!important;height:42px!important;flex:0 0 42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:var(--run-section-accent,#2563eb)!important;background:var(--run-section-tint,#eff6ff)!important;box-shadow:inset 0 0 0 1px var(--run-section-line,#c7dcfc)!important;border:1px solid #d5e2f5!important;border-radius:12px!important;font-size:17px!important;font-weight:900!important}
  #admin #settlement-records-workspace>.section-title h2{margin:0 0 4px!important;color:#142a47!important;font-size:19px!important;line-height:1.3!important;letter-spacing:-.035em}
  #admin #settlement-records-workspace>.section-title p{max-width:70ch;margin:0!important;color:#7b879a!important;font-size:11px!important;line-height:1.7!important}
  #admin #settlement-records-workspace>.settlement-history-view-switch{display:inline-flex!important;max-width:100%;box-sizing:border-box;gap:6px!important;margin:0 0 22px!important;padding:5px!important;border:1px solid #dce5ef!important;border-radius:10px!important;background:#f3f6fa!important;box-shadow:none!important}
  #admin #settlement-records-workspace>.settlement-history-view-switch>button{min-width:0!important;min-height:44px!important;margin:0!important;padding:10px 14px!important;white-space:nowrap;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:#60738b!important;font-size:13px!important;font-weight:650!important;line-height:1.45!important;box-shadow:none!important}
  #admin #settlement-records-workspace>.settlement-history-view-switch>button[aria-selected="true"]{background:#fff!important;border-color:#c9d7e6!important;color:#244e79!important;box-shadow:0 1px 3px #183b6010!important}
  #admin #settlement-records-workspace>.settlement-history-view-switch>button:focus-visible{outline:3px solid #afc7e9!important;outline-offset:2px!important}
}
@media screen and (max-width:760px){
  #admin #settlement-records-workspace.workspace-card{padding:22px 16px!important;border-radius:15px!important;box-shadow:0 9px 24px rgba(23,42,73,.06)!important}
  #admin #settlement-records-workspace>.section-title{min-height:52px!important;gap:8px!important;margin-bottom:18px!important}
  #admin #settlement-records-workspace>.section-title .section-icon{width:37px!important;height:37px!important;flex-basis:37px!important;border-radius:10px!important;font-size:15px!important}
  #admin #settlement-records-workspace>.section-title h2{font-size:17px!important}
  #admin #settlement-records-workspace>.section-title p{font-size:10px!important}
  #admin #settlement-records-workspace>.settlement-history-view-switch{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%;gap:5px!important;margin-bottom:20px!important}
  #admin #settlement-records-workspace>.settlement-history-view-switch>button{width:100%;padding:10px 6px!important;font-size:12px!important}
}


/* startup: registration-workspace.css */
/* Navigation/layout only. Existing registration forms and controls stay intact. */
#settlement-registration-workspace {
  min-width: 0;
}
#settlement-registration-workspace > .section-title {
  margin-bottom: 18px;
}
#settlement-registration-workspace > .section-title > .step-badge {
  flex-shrink: 0;
  white-space: nowrap;
}
#settlement-registration-workspace .registration-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}
#settlement-registration-workspace .registration-workspace-tabs > button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid #d7e2f2;
  border-radius: 10px;
  background: #fff;
  color: #506985;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
#settlement-registration-workspace .registration-workspace-tabs > button:hover:not(:disabled) {
  background: #f3f7fd;
  border-color: #b7cce9;
}
#settlement-registration-workspace .registration-workspace-tabs > button[aria-selected="true"],
#settlement-registration-workspace .registration-workspace-tabs > button.active {
  color: #fff;
  background: #1b365b;
  border-color: #1b365b;
}
#settlement-registration-workspace .registration-workspace-tabs > button:focus-visible {
  outline: 3px solid #9fc0ec;
  outline-offset: 3px;
}
#settlement-registration-workspace .registration-workspace-tabs > button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
#settlement-registration-workspace .registration-workspace-tabs > button small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: #edf2f8;
  color: #7890a7;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
#settlement-registration-workspace .registration-workspace-tabs > button[aria-selected="true"] small,
#settlement-registration-workspace .registration-workspace-tabs > button.active small {
  background: #ffffff1f;
  color: #e1ebf9;
}
#settlement-registration-workspace > #settlement-automation-pane,
#settlement-registration-workspace > #upload-pane {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#settlement-registration-workspace > #settlement-automation-pane > .section-title,
#settlement-registration-workspace > #upload-pane > .section-title {
  display: none;
}
#settlement-registration-workspace #raw-settlement-automation .raw-automation-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
#settlement-registration-workspace #raw-settlement-automation .raw-automation-body {
  padding: 0;
}
#settlement-registration-workspace #raw-settlement-automation[data-registration-shared-navigation="true"] [data-raw-work-navigation] {
  display: none !important;
}
#settlement-registration-workspace > #settlement-automation-pane[hidden],
#settlement-registration-workspace > #upload-pane[hidden],
#settlement-registration-workspace[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  #admin #settlement-registration-workspace > .section-title > .step-badge {
    display: none !important;
  }
  #settlement-registration-workspace .registration-workspace-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 17px;
  }
  #settlement-registration-workspace .registration-workspace-tabs > button {
    min-height: 45px;
    padding: 10px 8px;
    font-size: 12px;
  }
  #settlement-registration-workspace .registration-workspace-tabs > button small {
    padding: 1px 5px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #settlement-registration-workspace .registration-workspace-tabs > button {
    transition: none;
  }
}


/* startup: income-reporting-settings.css */
/* Isolated reporting-only controls; existing financial surfaces are unaffected. */
#income-reporting-settings-pane .income-reporting-settings { color: #233c50; }
#income-reporting-settings-pane .income-reporting-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 20px; margin: 22px 0 16px; border: 1px solid #e0e7ee; border-radius: 14px; background: #f5f8fc; }
#income-reporting-settings-pane .income-reporting-scope > span { color: #718294; font-size: 13px; }
#income-reporting-settings-pane .income-reporting-scope strong { flex: 1; }
#income-reporting-settings-pane .income-reporting-notice { padding: 16px 18px; border-left: 3px solid #7da4df; border-radius: 0 10px 10px 0; color: #5b6e7e; background: #f6f9fd; font-size: 14px; line-height: 1.85; }
#income-reporting-settings-pane .income-reporting-message { min-height: 24px; margin: 16px 0; color: #647787; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#income-reporting-settings-pane .income-reporting-message.is-success { color: #2b6a61; }
#income-reporting-settings-pane [data-income-form], #income-reporting-settings-pane .income-reporting-list-section { margin-top: 26px; padding: 24px; border: 1px solid #e2e8ee; border-radius: 18px; background: #fff; }
#income-reporting-settings-pane h3 { margin: 0 0 20px; font-size: 18px; color: #223a50; }
#income-reporting-settings-pane .income-reporting-fields { display: grid; grid-template-columns: 1fr 1.3fr .7fr; gap: 18px; align-items: start; }
#income-reporting-settings-pane .income-reporting-fields label { display: grid; gap: 10px; font-size: 14px; font-weight: 700; }
#income-reporting-settings-pane input, #income-reporting-settings-pane select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfdbe6; border-radius: 12px; background: #fff; color: #213c53; font: inherit; font-size: 16px; }
#income-reporting-settings-pane .income-reporting-fields small { color: #798998; font-size: 12px; font-weight: 400; line-height: 1.6; }
#income-reporting-settings-pane .income-reporting-current { margin: 18px 0; color: #5d7184; font-size: 13px; line-height: 1.65; }
#income-reporting-settings-pane .income-reporting-actions, #income-reporting-settings-pane .income-reporting-person-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#income-reporting-settings-pane .income-reporting-button { appearance: none; min-height: 44px; padding: 11px 18px; border: 1px solid #ccdae5; border-radius: 12px; box-shadow: 0 1px 2px #203d5510; background: #fff; color: #294f70; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer; transition: background .15s, border-color .15s; }
#income-reporting-settings-pane .income-reporting-button:hover:not(:disabled) { background: #f0f5fb; border-color: #9db5ca; }
#income-reporting-settings-pane .income-reporting-button.is-primary { background: #214868; border-color: #214868; color: #fff; box-shadow: 0 3px 8px #1a38521c; }
#income-reporting-settings-pane .income-reporting-button.is-primary:hover:not(:disabled) { background: #193c5a; }
#income-reporting-settings-pane .income-reporting-button.is-reset { color: #956354; border-color: #decfc9; background: #fffdfc; }
#income-reporting-settings-pane .income-reporting-button:disabled { opacity: .5; cursor: default; box-shadow: none; }
#income-reporting-settings-pane :is(button,input,select):focus-visible { outline: 3px solid #9cbeee; outline-offset: 3px; }
#income-reporting-settings-pane .income-reporting-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
#income-reporting-settings-pane .income-reporting-list-heading h3 { margin-bottom: 12px; }
#income-reporting-settings-pane .income-reporting-list-heading > span { color: #728698; font-size: 13px; }
#income-reporting-settings-pane .income-reporting-list-help, #income-reporting-settings-pane .income-reporting-empty { margin: 0 0 18px; color: #7a8c99; font-size: 13px; line-height: 1.75; }
#income-reporting-settings-pane .income-reporting-empty { margin: 22px 0 4px; }
#income-reporting-settings-pane .income-reporting-person { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid #e7edf3; }
#income-reporting-settings-pane .income-reporting-person > div:first-child { display: grid; gap: 5px; overflow-wrap: anywhere; }
#income-reporting-settings-pane .income-reporting-person small { color: #80909f; font-size: 12px; }
#income-reporting-settings-pane .income-reporting-person > b { color: #284c70; font-size: 19px; }
#income-reporting-settings-pane[hidden] { display: none !important; }
#statistics-pane.branch-statistics { margin-top: 0; }
@media (max-width: 760px) {
  /* Use the shared category grid, card sizing, and helper-text ellipsis. */
  #admin-mobile-menu-modal [data-admin-menu-category="tax-reporting"] .admin-mobile-menu-item > b { word-break: keep-all; overflow-wrap: normal; }
  #admin #settlement-records-workspace > .settlement-history-view-switch { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  #admin #settlement-records-workspace > .settlement-history-view-switch > button { white-space: normal; word-break: keep-all; }
  #income-reporting-settings-pane .income-reporting-fields { grid-template-columns: 1fr; gap: 20px; }
  #income-reporting-settings-pane [data-income-form], #income-reporting-settings-pane .income-reporting-list-section { padding: 20px 16px; }
  #income-reporting-settings-pane .income-reporting-person { grid-template-columns: minmax(0,1fr) auto; gap: 14px; }
  #income-reporting-settings-pane .income-reporting-person-actions { grid-column: 1 / -1; }
  #income-reporting-settings-pane .income-reporting-person-actions > button { flex: 1; }
  #income-reporting-settings-pane .income-reporting-actions > button { flex: 1; }
  #income-reporting-settings-pane .income-reporting-scope { padding: 14px 16px; }
  #income-reporting-settings-pane .income-reporting-scope > button { width: 100%; }
}

