:root {
  --ink: #171a17;
  --muted: #5f655f;
  --border: #d9ded9;
  --border-strong: #cbd2cb;
  --surface: #ffffff;
  --surface-soft: #f5f7f4;
  --green: #2f704b;
  --green-dark: #245b3c;
  --green-pale: #e4efe4;
  --green-soft: #eef4ee;
  --blue: #438bd3;
  --blue-soft: #e8f3fc;
  --purple: #7957c8;
  --purple-soft: #f0ebfb;
  --ringing: #2f7fd3;
  --ringing-soft: #e4effb;
  --red: #ec6f6b;
  --red-soft: #fce9e7;
  --yellow: #efb84a;
  --yellow-soft: #fff4dc;
  --orange: #d9822b;
  --orange-soft: #fff0df;
  --candidate: #65ad79;
  --candidate-soft: #e5f2e7;
  --gray: #9c9f9c;
  --gray-soft: #f0f1ef;
  --sidebar-width: 178px;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(228, 239, 228, .9), rgba(255, 255, 255, .96) 48%),
    var(--surface-soft);
}

.login-card {
  width: min(100%, 390px);
  padding: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(33, 79, 54, .1);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 42px;
  color: var(--green-dark);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.8px;
  text-decoration: none;
}

.login-copy {
  margin-bottom: 25px;
}

.login-copy h1 {
  margin: 0 0 7px;
  font-size: 25px;
}

.login-copy p,
.employees-list-heading p,
.employee-form-heading p {
  margin: 0;
  color: var(--muted);
}

.login-form,
.employee-form {
  display: grid;
  gap: 18px;
}

.login-form label,
.employee-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.login-form input,
.employee-form input,
.employee-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
}

.login-form input:focus,
.employee-form input:focus,
.employee-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 112, 75, .1);
}

.employee-form label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.form-error {
  margin: -4px 0 0;
  color: #b83f3c;
  font-size: 11px;
}

.login-button {
  width: 100%;
  min-height: 42px;
  margin-top: 3px;
}

.password-reset-success {
  text-align: center;
}

.password-reset-success > .material-symbols-rounded {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 46px;
}

.password-reset-success strong {
  display: block;
  font-size: 17px;
}

.password-reset-success p {
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  outline-color: var(--green);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.material-symbols-rounded {
  font-size: 21px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: #fbfcfa;
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  padding: 23px 28px 20px;
  color: var(--green-dark);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.7px;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-link {
  position: relative;
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}

.nav-link:hover {
  background: #f0f4ef;
}

.nav-link.is-active {
  background: var(--green-pale);
  color: #214f36;
}

.nav-link.is-active::before {
  background: var(--green);
}

.nav-link .material-symbols-rounded {
  width: 22px;
  flex: 0 0 22px;
  color: currentColor;
}

.material-symbols-rounded {
  width: 1em;
  overflow: hidden;
  visibility: hidden;
}

.material-symbols-ready .material-symbols-rounded {
  visibility: visible;
}

.employee-login-control {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.employee-login-control strong {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: #edf3ed;
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

.employee-form .employee-login-control input {
  min-width: 0;
  border-radius: 0 2px 2px 0;
}

.employee-login-control:focus-within strong {
  border-color: var(--green);
}

.nav-link-separated {
  margin-bottom: 14px;
}

.sidebar-company-context {
  min-width: 0;
  margin: -4px 14px 2px 56px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.sidebar-company-context strong {
  display: block;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile {
  width: 100%;
  min-height: 65px;
  margin-top: auto;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  border: 0;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.profile:hover {
  background: var(--surface-soft);
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.profile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-copy strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.profile-chevron {
  font-size: 16px;
}

.workspace {
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.is-visible {
  display: block;
}

.page-header {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px 16px 27px;
  background: #f0f4ef;
}

.page-header h1 {
  margin: 0 0 4px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.page-header p {
  margin: 0;
  font-size: 12px;
}

.quick-day-filter {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.quick-day-filter select {
  min-width: 168px;
  height: 35px;
  padding: 0 32px 0 11px;
  border: 1px solid #b8cfbe;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.button:hover {
  border-color: #9fab9f;
  background: #f8faf8;
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.button-primary .material-symbols-rounded {
  font-size: 18px;
}

.button-secondary {
  min-width: 137px;
}

.button-secondary .material-symbols-rounded {
  font-size: 18px;
}

.page-content {
  padding: 20px 26px 19px;
}

.home-content {
  padding-bottom: 15px;
}

.analytics-content {
  padding-top: 0;
}

.analytics-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.analytics-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 20px 2px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.analytics-tab:hover {
  color: var(--ink);
}

.analytics-tab.is-active {
  border-bottom-color: var(--green);
  color: var(--green-dark);
}

.analytics-panel {
  min-height: 360px;
  margin-top: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

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

.phone-base-panel {
  display: block;
  width: 100%;
  padding: 18px 14px 20px;
}

.phone-base-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f5f7f5;
  width: fit-content;
  margin-bottom: 18px;
}

.phone-base-tab {
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.phone-base-tab:hover {
  color: var(--ink);
}

.phone-base-tab.is-active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 1px 4px rgba(26, 46, 32, .12);
}

.phone-base-section[hidden] {
  display: none;
}

.phone-base-section {
  width: 100%;
}

.phone-base-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}

.phone-base-heading h2,
.phone-base-heading p {
  margin: 0;
}

.phone-base-heading h2 {
  color: var(--ink);
  font-size: 17px;
}

.phone-base-heading p,
.phone-base-heading > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.phone-base-heading > span strong {
  color: var(--ink);
}

.phone-base-table-frame {
  overflow-x: auto;
  background: #fff;
}

.phone-base-table {
  width: 100%;
  min-width: 650px;
}

.phone-base-table th {
  height: 35px;
  padding: 8px 14px;
  font-size: 11px;
}

.phone-base-table td {
  height: 54px;
  padding: 8px 14px;
  font-size: 13px;
}

.phone-base-table th:first-child,
.phone-base-table td:first-child {
  width: 64px;
  text-align: center;
}

.processed-phone-number {
  font-size: 14px !important;
}

.processed-phone-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.processed-phone-date strong,
.processed-phone-date span {
  display: block;
}

.processed-phone-date span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.phone-base-empty {
  min-height: 260px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fafbfa;
}

.phone-base-table-toolbar .page-button:disabled {
  opacity: .38;
  cursor: default;
}

.phone-base-table-toolbar label select {
  width: 52px;
}

.analytics-sources-panel {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
}

.analytics-project-picker {
  padding: 15px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
}

.analytics-project-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 11px;
}

.analytics-project-heading strong {
  font-size: 12px;
}

.analytics-project-heading span,
.analytics-project-empty {
  color: var(--muted);
  font-size: 10px;
}

.analytics-project-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.analytics-project-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.analytics-project-button:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.analytics-project-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.analytics-project-button:disabled {
  cursor: wait;
  opacity: .72;
}

.analytics-source-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(2, minmax(130px, .6fr));
  gap: 10px;
  margin-top: 12px;
}

.analytics-source-summary article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
}

.analytics-source-summary span,
.analytics-source-summary strong {
  display: block;
}

.analytics-source-summary span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.analytics-source-summary strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-source-table-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: start;
}

.analytics-source-controls,
.analytics-source-favorites {
  min-width: 0;
  padding-top: 43px;
}

.source-activity-row,
.source-favorite-row {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-source-table-frame {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #fff;
}

.analytics-source-table {
  min-width: 1210px;
  table-layout: auto;
}

.analytics-source-table th {
  height: 42px;
  font-size: 11px;
  white-space: nowrap;
}

.analytics-source-table th .status-dot {
  display: inline-block;
  margin-right: 6px;
  vertical-align: -1px;
}

.analytics-source-table td {
  height: 52px;
  font-size: 12px;
  white-space: nowrap;
}

.analytics-source-table tbody tr.has-efficiency > td {
  background: #f3faf5;
}

.analytics-source-table th:first-child,
.analytics-source-table td:first-child {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.analytics-source-table th:nth-child(2),
.analytics-source-table td:nth-child(2) {
  min-width: 205px;
}

.analytics-source-index {
  color: var(--muted);
  font-weight: 700;
}

.analytics-source-name {
  font-size: 13px;
  font-weight: 600;
}

.analytics-source-date {
  min-width: 84px;
  color: #4f5550;
  font-weight: 600;
  text-align: center;
}

.analytics-source-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.source-activity-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #c9ceca;
  border-radius: 50%;
  background: #f1f2f1;
  color: #626863;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.source-activity-button:hover {
  border-color: #8d948e;
  background: #e4e7e4;
  color: #343935;
}

.source-activity-button.is-paused {
  border-color: #91c7a1;
  background: #e9f7ed;
  color: var(--green);
}

.source-activity-button.is-paused:hover {
  border-color: var(--green);
  background: #d8efdf;
  color: var(--green-dark);
}

.source-activity-button.is-loading {
  cursor: wait;
  opacity: .7;
}

.source-activity-button .material-symbols-rounded {
  font-size: 20px;
}

.source-activity-button.is-loading .material-symbols-rounded {
  animation: spin .8s linear infinite;
}

.source-favorite-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #a4aaa5;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.source-favorite-button:hover {
  border-color: #d7dad8;
  background: #f3f4f3;
  color: #737a74;
}

.source-favorite-button.is-favorite {
  border-color: #e5bd61;
  background: #fff7df;
  color: #d99a17;
}

.source-favorite-button.is-favorite:hover {
  border-color: #d9a83a;
  background: #ffefbd;
  color: #bd7c00;
}

.source-favorite-button .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.source-favorite-button.is-favorite .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.analytics-source-copy-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.source-copy-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #c6cbc7;
  border-radius: 50%;
  background: #f0f1ef;
  color: #4f5550;
  cursor: pointer;
}

.source-copy-button:hover {
  border-color: #737a74;
  background: #dfe2df;
  color: #2f332f;
}

.source-copy-button .material-symbols-rounded {
  font-size: 16px;
}

.analytics-source-name .phone-chart-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.analytics-status-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analytics-rate {
  min-width: 85px;
}

.analytics-rate strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.analytics-rate > span {
  width: 78px;
  height: 5px;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #e7ece8;
}

.analytics-rate i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--green);
}

.analytics-employees-panel {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.employee-analytics-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.employee-analytics-heading h2 {
  margin-bottom: 5px;
}

.employee-analytics-heading p,
.employee-analytics-heading > span {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.employee-analytics-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.employee-analytics-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: auto auto;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.employee-analytics-person {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 310px;
  padding: 22px;
  border-right: 1px solid var(--border);
  background: var(--surface-soft);
}

.employee-analytics-person > span {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.employee-analytics-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.employee-analytics-person strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-analytics-person small {
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.employee-analytics-person p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.employee-analytics-person p b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 20px;
}

.employee-analytics-chart-wrap {
  min-width: 0;
  overflow-x: auto;
  padding: 10px 14px 0;
}

.employee-line-chart {
  width: 100%;
  min-width: 650px;
  height: auto;
  display: block;
}

.employee-chart-grid {
  stroke: #e2e7e2;
  stroke-width: 1;
}

.employee-chart-y-label,
.employee-chart-date {
  fill: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
}

.employee-chart-area {
  fill: rgba(47, 112, 75, .08);
}

.employee-chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-chart-point circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 2.5;
}

.employee-chart-value {
  fill: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.employee-analytics-statuses {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  border-top: 1px solid var(--border);
}

.employee-analytics-statuses > div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-right: 1px solid var(--border);
}

.employee-analytics-statuses > div:last-child {
  border-right: 0;
}

.employee-analytics-statuses span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.employee-analytics-statuses strong {
  font-size: 12px;
}

.employee-analytics-statuses .status-dot {
  flex: 0 0 auto;
}

.employee-analytics-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}

.employee-analytics-empty {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.phone-chart-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  border: 1px solid #c8d8ce;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  vertical-align: middle;
  cursor: pointer;
}

.phone-chart-button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.phone-chart-button .material-symbols-rounded {
  font-size: 17px;
}

body.has-modal {
  overflow: hidden;
}

.phone-chart-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.password-reset-modal {
  position: fixed;
  z-index: 1010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.company-balance-modal {
  position: fixed;
  z-index: 1020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.password-reset-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(18, 28, 21, .48);
  cursor: default;
}

.password-reset-dialog {
  position: relative;
  width: min(590px, 100%);
  padding: 22px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 45, 29, .22);
}

.password-reset-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.password-reset-dialog header span,
.password-reset-dialog header p {
  color: var(--muted);
  font-size: 10px;
}

.password-reset-dialog h2 {
  margin: 5px 0;
  font-size: 20px;
}

.password-reset-dialog header p {
  margin: 0;
}

.password-reset-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.password-reset-link-field {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.password-reset-link-field textarea {
  width: 100%;
  resize: none;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.password-reset-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.company-balance-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(18, 28, 21, .48);
  cursor: default;
}

.company-balance-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 45, 29, .22);
}

.company-balance-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.company-balance-dialog h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.company-balance-dialog header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.company-balance-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.company-balance-close:hover,
.company-balance-close:focus-visible {
  background: var(--surface-soft);
  color: var(--green);
}

.company-balance-field {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}

.company-balance-field input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.company-balance-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.company-balance-field input[type="number"]::-webkit-inner-spin-button,
.company-balance-field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.company-balance-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.phone-chart-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(18, 28, 21, .48);
  cursor: default;
}

.phone-chart-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 45, 29, .22);
}

.phone-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.phone-chart-header span,
.phone-chart-header p {
  color: var(--muted);
  font-size: 9px;
}

.phone-chart-header h2 {
  margin: 5px 0;
  font-size: 19px;
}

.phone-chart-header p {
  margin: 0;
}

.phone-chart-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.phone-chart-close:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.phone-chart-close .material-symbols-rounded {
  color: inherit;
  font-size: 19px;
}

.phone-chart-content {
  max-height: calc(100vh - 185px);
  overflow: auto;
  padding: 18px 22px 22px;
}

.phone-chart-loading {
  min-height: 300px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.phone-chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.phone-chart-summary strong {
  color: var(--ink);
  font-size: 11px;
}

.phone-chart-canvas {
  overflow-x: auto;
}

.phone-chart-visual {
  min-width: 700px;
}

.phone-efficiency-chart {
  min-width: 0;
}

.phone-chart-breakdown {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0 22px 0 54px;
  border-top: 1px solid var(--border);
}

.phone-chart-day {
  min-width: 0;
  padding: 10px 4px 5px;
  border-right: 1px solid #edf0ed;
  text-align: center;
}

.phone-chart-day:last-child {
  border-right: 0;
}

.phone-chart-day > strong {
  display: block;
  margin-bottom: 9px;
  font-size: 9px;
}

.phone-chart-day > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.phone-chart-day span {
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}

.phone-chart-day .status-dot {
  flex: 0 0 auto;
}

.phone-chart-day b {
  font-size: 9px;
}

.page-content h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.schedule-section h2 {
  margin-bottom: 16px;
}

.schedule-board {
  display: grid;
  gap: 20px;
}

.schedule-group {
  min-width: 0;
}

.schedule-group-heading {
  margin: 0 0 10px 12px;
}

.schedule-group-heading h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 11px;
}

.schedule-group-heading p {
  margin: 4px 0 0 15px;
  color: var(--muted);
  font-size: 10px;
}

.schedule-group-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.schedule-group-dot.is-orange {
  background: var(--orange);
}

.is-carryover-group {
  padding: 13px 15px 10px;
  border: 1px solid #edc89f;
  border-radius: 3px;
  background: #fffaf4;
}

.is-carryover-group .schedule-group-heading {
  margin-left: 0;
}

.is-carryover-group .schedule-group-heading h3 {
  color: #8d4d16;
}

.is-carryover-group .schedule-group-heading p {
  margin-left: 15px;
}

.schedule {
  position: relative;
  display: grid;
  align-items: start;
  padding: 5px 12px 24px;
}

.schedule.is-sync-row {
  grid-template-columns: repeat(6, minmax(100px, 1fr));
}

.schedule.is-carryover-row {
  width: 180px;
  grid-template-columns: 1fr;
  padding: 2px 0 8px;
}

.schedule::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: var(--green);
}

.schedule.is-carryover-row::before {
  display: none;
}

.schedule-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.time-node {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.schedule-step.is-waiting .time-node {
  width: 70px;
  height: 70px;
  margin-top: -4px;
  border: 2px solid var(--green);
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--green);
  font-size: 15px;
  animation: schedule-ring-pulse 1.8s ease-in-out infinite;
}

.schedule-step.is-planned .time-node {
  border-style: dotted;
  border-color: var(--green);
}

.schedule-step.is-failed .time-node {
  border-color: #c65f5f;
  border-style: dotted;
  color: #a33d3d;
}

.schedule-step.is-failed p,
.schedule-step.is-failed strong {
  color: #a33d3d;
}

.schedule-step.is-carryover .time-node {
  border-color: var(--orange);
  color: #a75916;
  background: var(--orange-soft);
}

.schedule-step.is-carryover.is-waiting .time-node {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--orange);
  animation-name: carryover-ring-pulse;
}

.schedule-step.is-carryover .complete-badge {
  background: var(--orange);
}

.schedule-step.is-carryover p,
.schedule-step.is-carryover strong {
  color: #a75916;
}

@keyframes schedule-ring-pulse {
  0%, 100% {
    box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--green), 0 0 0 0 rgba(45, 100, 55, .2);
  }
  50% {
    box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--green), 0 0 0 7px rgba(45, 100, 55, 0);
  }
}

@keyframes carryover-ring-pulse {
  0%, 100% {
    box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--orange), 0 0 0 0 rgba(217, 130, 43, .24);
  }
  50% {
    box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--orange), 0 0 0 7px rgba(217, 130, 43, 0);
  }
}

.complete-badge {
  position: absolute;
  top: 48px;
  left: calc(50% + 20px);
  width: 17px;
  height: 17px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.schedule-step p {
  margin: 14px 0 6px;
  color: #555a55;
  font-size: 11px;
}

.schedule-step.is-waiting p {
  margin-top: 10px;
}

.schedule-step strong,
.schedule-step > span:last-child {
  font-size: 11px;
  line-height: 1.55;
}

.schedule-step strong {
  font-weight: 600;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.metric {
  min-width: 0;
  padding: 18px 20px 28px;
}

.metric + .metric {
  border-left: 1px solid var(--border);
}

.metric-no-status {
  background: #fffaf4;
  box-shadow: inset 0 0 0 1px #edc89f;
}

.app-shell[data-role="employee"] .metrics,
.app-shell[data-role="manager"] .metrics {
  grid-template-columns: minmax(0, 1fr);
}

.metric p {
  margin: 0 0 12px;
  font-size: 11px;
}

.metric div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric strong {
  font-size: 27px;
  line-height: 1;
}

.metric span,
.metric small {
  font-size: 11px;
}

.metric small {
  display: block;
  margin-top: 16px;
}

.metric .metric-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 17px;
}

.metric-distribute-button,
.metric-delete-button {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.metric-delete-button {
  border-color: #c95e5e;
  background: #c95e5e;
}

.metric-distribute-button:hover:not(:disabled) {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.metric-delete-button:hover:not(:disabled) {
  border-color: #a94747;
  background: #a94747;
}

.metric-distribute-button:disabled,
.metric-delete-button:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.metric-distribute-button.is-loading:disabled,
.metric-delete-button.is-loading:disabled {
  cursor: wait;
}

.metric-distribute-button .material-symbols-rounded,
.metric-delete-button .material-symbols-rounded {
  font-size: 16px;
}

.metric-distribute-button.is-loading .material-symbols-rounded,
.metric-delete-button.is-loading .material-symbols-rounded {
  animation: spin 1s linear infinite;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 27px;
}

.source-exclusion-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.source-exclusion-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.source-exclusion-heading h2 {
  margin: 0;
  font-size: 18px;
}

.source-exclusion-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.source-exclusion-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
}

.source-exclusion-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  max-width: 680px;
  margin-top: 20px;
}

.source-exclusion-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.source-exclusion-form input {
  width: 100%;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.source-exclusion-form input:focus {
  border-color: var(--green);
  outline: 3px solid var(--green-soft);
}

.source-exclusion-form button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.source-exclusion-form button:hover {
  background: var(--green-dark);
}

.source-exclusion-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.source-exclusion-form button.is-loading .material-symbols-rounded {
  animation: spin 1s linear infinite;
}

.source-exclusion-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.status-overview {
  padding-right: 0;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 29px;
  margin-top: 23px;
}

.status-line {
  display: grid;
  grid-template-columns: 128px 44px minmax(90px, 1fr) 35px;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}

.status-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.status-purple { background: var(--purple); }
.status-ringing { background: var(--ringing); }
.status-red { background: var(--red); }
.status-yellow { background: var(--yellow); }
.status-green { background: var(--candidate); }
.status-gray { background: var(--gray); }
.status-white {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.status-track {
  height: 6px;
  overflow: hidden;
  border-radius: 5px;
  background: #ecefed;
}

.status-fill {
  height: 100%;
  border-radius: inherit;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}

.section-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.section-link .material-symbols-rounded {
  font-size: 17px;
}

.identifications-content {
  padding: 19px 14px 20px;
}

.filters {
  display: grid;
  grid-template-columns: 155px minmax(250px, 1.45fr) minmax(112px, 1fr) minmax(112px, 1fr) minmax(110px, 1fr) 120px;
  align-items: end;
  gap: 11px;
}

.filters input,
.filters select,
.table-toolbar select {
  width: 100%;
  height: 31px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.filters select,
.table-toolbar select {
  padding: 0 28px 0 10px;
  cursor: pointer;
}

.search-field {
  position: relative;
}

.search-field .material-symbols-rounded {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #5e645e;
  font-size: 17px;
  pointer-events: none;
}

.search-field .material-symbols-rounded { left: 9px; }

.search-field input { padding: 0 9px 0 31px; }

.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.date-field {
  display: grid;
  gap: 4px;
}

.date-field span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.date-field input {
  padding: 0 7px;
  font-size: 9px;
}

.button-reset {
  min-height: 31px;
  border-color: #b8cfbe;
  color: var(--green);
  font-size: 10px;
}

.table-toolbar {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.table-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
}

.table-toolbar label select {
  width: 48px;
  height: 28px;
  padding: 0 4px 0 8px;
  font-weight: 400;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 9px;
}

.pagination strong {
  margin-right: 7px;
}

.page-button {
  min-width: 22px;
  height: 25px;
  padding: 0 6px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.page-button:hover {
  background: var(--green-soft);
}

.page-button.is-current {
  background: var(--green);
  color: #fff;
}

.page-button .material-symbols-rounded {
  font-size: 17px;
}

.identifications-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 12px;
}

.table-frame {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9px;
}

.identifications-table {
  font-size: 13px;
}

th,
td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  height: 31px;
  padding: 0 9px;
  background: #fafbfa;
  font-size: 9px;
  font-weight: 700;
}

td {
  height: 48px;
  padding: 5px 8px;
  line-height: 1.35;
}

.identifications-table th {
  height: 35px;
  font-size: 11px;
}

.identifications-table td {
  height: 54px;
}

.identifications-table th:nth-child(1) { width: 16%; }
.identifications-table th:nth-child(2) { width: 18%; }
.identifications-table th:nth-child(3) { width: 11%; }
.identifications-table th:nth-child(4) { width: 15%; }
.identifications-table th:nth-child(5) { width: 14%; }
.identifications-table th:nth-child(6) { width: 26%; }

.app-shell[data-role="employee"] .confidential-project-column,
.app-shell[data-role="manager"] .confidential-project-column {
  display: none;
}

.app-shell[data-role="employee"] .identifications-table th:nth-child(1),
.app-shell[data-role="manager"] .identifications-table th:nth-child(1) { width: 16%; }
.app-shell[data-role="employee"] .identifications-table th:nth-child(3),
.app-shell[data-role="manager"] .identifications-table th:nth-child(3) { width: 13%; }
.app-shell[data-role="employee"] .identifications-table th:nth-child(4),
.app-shell[data-role="manager"] .identifications-table th:nth-child(4) { width: 19%; }
.app-shell[data-role="employee"] .identifications-table th:nth-child(5),
.app-shell[data-role="manager"] .identifications-table th:nth-child(5) { width: 16%; }
.app-shell[data-role="employee"] .identifications-table th:nth-child(6),
.app-shell[data-role="manager"] .identifications-table th:nth-child(6) { width: 36%; }

.phone-cell {
  font-size: 13px;
  white-space: nowrap;
}

.project-cell strong,
.project-cell span,
.date-cell span {
  display: block;
}

.date-cell {
  font-size: 13px;
  line-height: 1.45;
}

.project-cell strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.row-status-none td { background: var(--surface); }
.row-status-no-answer td { background: var(--purple-soft); }
.row-status-has-rings td { background: var(--ringing-soft); }
.row-status-not-target td { background: var(--red-soft); }
.row-status-in-touch td { background: var(--yellow-soft); }
.row-status-candidate td { background: var(--candidate-soft); }
.row-status-target td { background: var(--gray-soft); }

.status-cell {
  position: relative;
  padding: 0;
}

.status-picker {
  position: relative;
  height: 100%;
}

.status-trigger {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

.status-trigger:hover,
.status-picker.is-open .status-trigger {
  box-shadow: inset 0 0 0 1px #8fb3d2;
  background: rgba(255,255,255,.3);
}

.status-trigger .material-symbols-rounded {
  font-size: 16px;
}

.status-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 50;
  width: 100%;
  display: none;
  overflow: hidden;
  border: 1px solid #b8c2b9;
  border-radius: 0 0 2px 2px;
  box-shadow: 0 7px 15px rgba(40, 49, 41, .16);
}

.status-picker.is-open .status-menu {
  display: block;
}

.status-picker.is-open {
  z-index: 30;
}

.status-option {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-size: 11px;
}

.status-option:hover {
  filter: brightness(.96);
}

.status-option[data-status="no-status"] { background: var(--surface); }
.status-option[data-status="no-answer"] { background: var(--purple-soft); }
.status-option[data-status="has-rings"] { background: var(--ringing-soft); }
.status-option[data-status="not-target"] { background: var(--red-soft); }
.status-option[data-status="in-touch"] { background: var(--yellow-soft); }
.status-option[data-status="candidate"] { background: var(--candidate-soft); }
.status-option[data-status="target"] { background: var(--gray-soft); }

.comment-cell {
  padding: 4px 6px;
}

.comment-wrap {
  position: relative;
}

.comment-input {
  width: 100%;
  height: 31px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: rgba(255,255,255,.62);
  color: var(--ink);
  font-size: 12px;
}

.comment-input:hover {
  border-color: rgba(111, 120, 112, .25);
}

.comment-input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47,112,75,.12);
}

.comment-wrap.is-reference-active .comment-input {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(47,112,75,.12);
}

.comment-counter {
  position: absolute;
  right: 1px;
  bottom: -10px;
  color: #515851;
  font-size: 8px;
}

.save-note {
  position: absolute;
  right: 1px;
  bottom: -11px;
  display: none;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-size: 8px;
}

.save-note .material-symbols-rounded {
  font-size: 12px;
}

.comment-wrap.is-saved .comment-counter { display: none; }
.comment-wrap.is-saved .save-note { display: flex; }

.status-summary {
  border: 1px solid var(--border);
  padding: 13px 12px 0;
}

.status-summary h2 {
  margin-bottom: 20px;
  font-size: 11px;
}

.summary-item {
  margin-bottom: 24px;
}

.summary-item:last-child {
  margin-bottom: 18px;
}

.summary-item p {
  margin: 0 0 8px;
  font-size: 9px;
}

.summary-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-item strong {
  font-size: 16px;
}

.summary-item span {
  font-size: 9px;
}

.summary-item .status-track {
  width: 100%;
  height: 5px;
}

.status-summary footer {
  display: flex;
  justify-content: space-between;
  margin: 0 -12px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  font-size: 9px;
}

.empty-state {
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-state .material-symbols-rounded {
  font-size: 34px;
  color: #7e887e;
}

.empty-state strong {
  color: var(--ink);
  font-size: 13px;
}

.empty-state p {
  margin: 0;
}

.employees-content {
  max-width: 1100px;
}

.employees-view {
  border: 1px solid var(--border);
  background: var(--surface);
}

.employees-list-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}

.employees-list-heading h2,
.employee-form-heading h2 {
  margin-bottom: 5px;
}

.employees-list-heading strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
}

.employees-table-frame {
  position: relative;
  min-height: 155px;
}

.employees-table th:nth-child(1) { width: 18%; }
.employees-table th:nth-child(2) { width: 15%; }
.employees-table th:nth-child(3) { width: 34%; }
.employees-table th:nth-child(4) { width: 15%; }
.employees-table th:nth-child(5) { width: 18%; }

.employees-table td {
  height: 54px;
  padding: 8px 12px;
  font-size: 11px;
}

.account-login {
  display: block;
  font-weight: 700;
}

.account-manager {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.role-badge.is-admin {
  background: var(--blue-soft);
  color: #286aa8;
}

.role-badge.is-manager {
  background: #fff4df;
  color: #9a621f;
}

.employee-workweek {
  display: grid;
  grid-template-columns: repeat(7, 27px);
  gap: 4px;
}

.employee-workday {
  width: 27px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 9px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.employee-workday:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(28, 44, 33, .12);
}

.employee-workday:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.employee-workday.is-working {
  border-color: #79b591;
  background: var(--green-pale);
  color: var(--green-dark);
}

.employee-workday.is-off {
  border-color: #d88e8e;
  background: var(--red-soft);
  color: #a13b3b;
}

.employee-no-schedule {
  color: var(--muted);
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.reset-password-button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #9ab8a5;
  background: #fff;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.reset-password-button:hover {
  background: var(--green-soft);
}

.reset-password-button:disabled {
  color: var(--muted);
  cursor: wait;
}

.delete-employee-button {
  min-width: 78px;
  min-height: 29px;
  border: 1px solid #edc3c1;
  background: #fff;
  color: #b84d49;
  cursor: pointer;
}

.delete-employee-button:hover {
  background: var(--red-soft);
}

.delete-employee-button:disabled {
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.employee-create-card {
  max-width: 610px;
  padding: 24px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.back-button .material-symbols-rounded {
  font-size: 17px;
}

.employee-form-heading {
  margin-bottom: 25px;
}

.employee-form {
  max-width: 430px;
}

.employee-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 7px;
}

.employee-form-actions .button {
  min-width: 145px;
}

.projects-content {
  max-width: 1280px;
}

.companies-content {
  max-width: 760px;
}

.company-create-card {
  border: 1px solid var(--border);
  background: var(--surface);
}

.company-create-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}

.company-create-heading h2 {
  margin-bottom: 5px;
}

.company-create-heading p {
  margin: 0;
  color: var(--muted);
}

.company-card-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  white-space: nowrap;
}

.company-card-balance > span {
  color: var(--muted);
  font-size: 12px;
}

.company-card-balance > strong {
  color: var(--green);
  font-size: 18px;
}

.company-balance-add-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-left: 4px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

.company-balance-add-button:hover,
.company-balance-add-button:focus-visible {
  background: var(--green-dark);
}

.company-balance-add-button .material-symbols-rounded {
  font-size: 19px;
}

.company-form {
  padding: 22px 20px 20px;
}

.company-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.company-form-grid label {
  display: grid;
  gap: 7px;
}

.company-form-grid label > span {
  font-size: 11px;
  font-weight: 700;
}

.company-form-grid input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.company-form-grid input[readonly] {
  background: #f1f5f1;
  color: var(--green);
  font-weight: 700;
  cursor: default;
}

.company-form .employee-form-actions {
  margin-top: 22px;
}

.companies-view {
  border: 1px solid var(--border);
  background: var(--surface);
}

.companies-list-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}

.companies-list-heading h2 {
  margin-bottom: 5px;
}

.companies-list-heading p {
  margin: 0;
  color: var(--muted);
}

.companies-list-heading > strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
}

.companies-list {
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
}

.company-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.company-row.is-selected {
  border-color: var(--green);
  background: var(--green-pale);
}

.company-option {
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.company-row:not(.is-selected):hover {
  background: #f7faf7;
}

.company-option:disabled {
  cursor: default;
}

.company-card-button {
  align-self: stretch;
  min-width: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.company-row.is-selected .company-card-button {
  border-left-color: #a9c8b0;
  background: #fff;
}

.company-row .company-card-button:hover,
.company-row .company-card-button:focus-visible {
  background: #f0f2f0;
  color: var(--green);
}

.company-card-button .material-symbols-rounded {
  font-size: 21px;
}

.company-option > .material-symbols-rounded:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3ed;
  color: var(--green);
}

.company-option-copy {
  display: grid;
  gap: 3px;
}

.company-option-copy small {
  color: var(--muted);
}

.company-option-copy span {
  color: var(--muted);
  font-size: 11px;
}

.company-option-state {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.company-option-state .material-symbols-rounded {
  font-size: 20px;
}

.company-identification-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.company-identification-balance strong {
  color: var(--ink);
  font-size: 13px;
}

.company-row.is-selected .company-identification-balance strong {
  color: var(--green);
}

.projects-view {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.projects-list-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}

.projects-list-heading h2 {
  margin-bottom: 5px;
}

.projects-list-heading p {
  margin: 0;
  color: var(--muted);
}

.projects-list-heading > strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
}

.projects-table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: start;
}

.projects-table-frame {
  min-height: 155px;
  overflow-x: auto;
}

.project-primary-controls {
  min-width: 0;
  padding-top: 119px;
}

.project-primary-row {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-primary-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #a4aaa5;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.project-primary-button:disabled {
  opacity: 1;
  cursor: default;
}

.project-primary-button .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.projects-table {
  min-width: 1020px;
}

.projects-table th:nth-child(1) { width: 22%; }
.projects-table th:nth-child(2) { width: 10%; }
.projects-table th:nth-child(3) { width: 12%; }
.projects-table th:nth-child(4) { width: 13%; }
.projects-table th:nth-child(5) { width: 11%; }
.projects-table th:nth-child(6) { width: 15%; }
.projects-table th:nth-child(7) { width: 17%; }

.projects-table td {
  height: 60px;
  padding: 8px 10px;
  font-size: 11px;
  background: var(--surface);
  transition: background-color 160ms ease;
}

.projects-table .project-row.is-ai-up-active td {
  background: var(--green-pale);
}

.projects-table .project-row.is-ai-up-active td:first-child {
  box-shadow: inset 3px 0 0 var(--green);
}

.projects-table .project-row.is-ai-up-active:hover td {
  background: #dbe9dc;
}

.project-name-cell strong,
.project-stat,
.project-stat-note {
  display: block;
}

.project-name-cell strong {
  font-size: 12px;
}

.project-stat {
  font-size: 12px;
}

.project-stat-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.project-api-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0f1f0;
  color: #686d68;
  font-weight: 700;
}

.project-api-status.is-active {
  background: var(--green-pale);
  color: var(--green-dark);
}

.project-collection-select,
.project-company-select {
  width: 128px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.project-company-select {
  width: 180px;
  border-color: var(--border-strong);
  color: var(--ink);
}

.journal-content {
  max-width: 1100px;
}

.journal-view {
  border: 1px solid var(--border);
  background: var(--surface);
}

.journal-list-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}

.journal-list-heading h2 {
  margin-bottom: 5px;
}

.journal-list-heading p {
  margin: 0;
  color: var(--muted);
}

.journal-list-heading > strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 17px;
  background: var(--green-pale);
  color: var(--green-dark);
}

.journal-table-frame {
  min-height: 155px;
  overflow-x: auto;
}

.journal-table th:nth-child(1) { width: 15%; }
.journal-table th:nth-child(2) { width: 21%; }
.journal-table th:nth-child(3) { width: 64%; }

.journal-table td {
  height: 64px;
  padding: 9px 12px;
  font-size: 11px;
}

.journal-operation-number {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: .2px;
}

.journal-date-cell strong,
.journal-date-cell span,
.journal-operation-copy strong,
.journal-operation-copy small {
  display: block;
}

.journal-date-cell strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.journal-date-cell span {
  color: var(--muted);
}

.journal-operation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journal-operation-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 18px;
}

.journal-operation.is-distributed .journal-operation-icon {
  background: var(--blue-soft);
  color: #286aa8;
}

.journal-operation.is-carried-over .journal-operation-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.journal-operation.is-account .journal-operation-icon,
.journal-operation.is-password .journal-operation-icon {
  background: var(--gray-soft);
  color: #666c66;
}

.journal-operation.is-deleted .journal-operation-icon {
  background: var(--red-soft);
  color: #b94f4b;
}

.journal-operation-copy {
  min-width: 0;
}

.journal-operation-copy strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.journal-operation-copy small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.settings-content {
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.settings-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
}

.settings-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.settings-card-heading > .material-symbols-rounded {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 21px;
}

.settings-card-heading h2 {
  margin: 1px 0 5px;
  font-size: 16px;
}

.settings-card-heading p {
  margin: 0;
  color: var(--muted);
}

.settings-password-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 15px;
}

.settings-password-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.settings-password-form input {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
}

.settings-password-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(47,112,75,.12);
  outline: 0;
}

.settings-password-form .button {
  min-width: 160px;
  margin: 0;
}

.settings-password-form .form-error,
.settings-password-form .settings-success {
  grid-column: 1 / -1;
}

.settings-success {
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.workweek {
  display: grid;
  grid-template-columns: repeat(7, minmax(84px, 1fr));
  gap: 10px;
}

.workday-toggle {
  min-width: 0;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.workday-toggle.is-working {
  border-color: #9dcbb0;
  background: var(--green-pale);
}

.workday-toggle.is-off {
  border-color: #e3aaaa;
  background: var(--red-soft);
}

.workday-toggle strong {
  font-size: 22px;
  letter-spacing: .04em;
}

.workday-state {
  font-size: 9px;
  font-weight: 700;
}

.workday-toggle.is-working .workday-state { color: var(--green-dark); }
.workday-toggle.is-off .workday-state { color: #a13b3b; }
.workday-toggle:disabled { cursor: wait; opacity: .7; }

.schedule-legend {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: -6px 0 17px;
  color: var(--muted);
  font-size: 10px;
}

.schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 13px;
  height: 13px;
  border: 1px solid transparent;
  border-radius: 2px;
}

.legend-swatch.is-working {
  border-color: #79b591;
  background: var(--green-pale);
}

.legend-swatch.is-off {
  border-color: #d88e8e;
  background: var(--red-soft);
}

.schedule-save-status {
  min-height: 16px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 320px;
  padding: 12px 15px;
  border: 1px solid #b9cbbb;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(35, 49, 39, .18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root { --sidebar-width: 72px; }
  .brand { justify-content: center; padding: 24px 10px; font-size: 16px; }
  .sidebar-company-context { display: none; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-link span:last-child { display: none; }
  .profile { grid-template-columns: 1fr; justify-items: center; padding: 10px; }
  .profile-copy, .profile-chevron { display: none; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .date-range { grid-column: span 2; }
  .button-reset { width: 100%; }
  .identifications-layout { grid-template-columns: minmax(720px, 1fr) 126px; }
  .identifications-content { overflow-x: auto; }
  .settings-password-form { grid-template-columns: 1fr 1fr; }
  .settings-password-form .button { justify-self: start; }
  .workweek { grid-template-columns: repeat(4, minmax(82px, 1fr)); }
  .employee-analytics-card { grid-template-columns: 150px minmax(0, 1fr); }
  .employee-analytics-person { padding: 17px; }
}

@media (max-width: 640px) {
  :root { --sidebar-width: 0px; }
  body { padding-bottom: 65px; }
  .sidebar {
    inset: auto 0 0 0;
    width: auto;
    height: 65px;
    display: block;
    border-top: 1px solid var(--border);
    border-right: 0;
  }
  .brand, .profile { display: none; }
  .primary-nav {
    height: 100%;
    display: grid;
    gap: 0;
  }
  .app-shell[data-role="admin"] .primary-nav { grid-template-columns: repeat(9, 1fr); }
  .app-shell[data-role="manager"] .primary-nav { grid-template-columns: repeat(5, 1fr); }
  .app-shell[data-role="employee"] .primary-nav { grid-template-columns: repeat(4, 1fr); }
  .nav-link { min-height: 64px; }
  .nav-link-separated { margin-bottom: 0; }
  .nav-link::before { inset: auto 0 0; width: auto; height: 3px; }
  .nav-link .material-symbols-rounded { width: auto; flex-basis: auto; }
  .workspace { margin-left: 0; }
  .page-header { min-height: 74px; padding: 15px 16px; }
  .page-header h1 { font-size: 22px; }
  .button-secondary { min-width: auto; padding: 0 10px; }
  .button-secondary { font-size: 0; }
  .button-secondary .material-symbols-rounded { font-size: 20px; }
  .page-content { padding: 16px; }
  .schedule.is-sync-row { grid-template-columns: repeat(6, 110px); overflow-x: auto; padding-bottom: 16px; }
  .schedule { scrollbar-width: none; }
  .schedule::-webkit-scrollbar { display: none; }
  .schedule::before { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .metric:nth-child(4) { border-top: 1px solid var(--border); }
  .metric:nth-child(5) { border-left: 0; border-top: 1px solid var(--border); }
  .metric:nth-child(6) { border-top: 1px solid var(--border); }
  .source-exclusion-card { padding: 19px; }
  .source-exclusion-form { grid-template-columns: 1fr; }
  .source-exclusion-form button { width: 100%; }
  .filters { grid-template-columns: 1fr 1fr; }
  .date-range { grid-column: 1 / -1; }
  .quick-day-filter select { min-width: 145px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .pagination { flex-wrap: wrap; gap: 8px; }
  .phone-base-table-toolbar { align-items: flex-start; flex-direction: column; }
  .auth-shell { padding: 14px; }
  .login-card { padding: 26px 22px; }
  .login-brand { margin-bottom: 30px; }
  .employees-content { overflow-x: auto; }
  .employees-view { min-width: 620px; }
  .employee-create-card { min-width: 0; }
  .employee-form-actions { justify-content: stretch; }
  .employee-form-actions .button { min-width: 0; flex: 1; }
  .company-form-grid { grid-template-columns: 1fr; }
  .company-create-heading { flex-wrap: wrap; }
  .company-card-balance { width: 100%; margin-left: 50px; }
  .projects-content { padding-right: 0; }
  .journal-content { padding-right: 0; }
  .journal-table { min-width: 680px; }
  .analytics-tabs { gap: 18px; }
  .analytics-source-summary { grid-template-columns: 1fr; }
  .employee-analytics-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .employee-analytics-card { display: block; }
  .employee-analytics-person {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .employee-analytics-person > span { grid-column: 1 / -1; margin-bottom: 10px; }
  .employee-analytics-avatar { grid-row: 2 / span 2; margin-bottom: 0; }
  .employee-analytics-person p { grid-column: 1 / -1; margin-top: 14px; }
  .employee-analytics-statuses { min-width: 660px; }
  .employee-analytics-card { overflow-x: auto; }
  .phone-chart-modal { padding: 10px; }
  .phone-chart-dialog { max-height: calc(100vh - 20px); }
  .phone-chart-header { padding: 16px; }
  .phone-chart-content { max-height: calc(100vh - 145px); padding: 14px 16px 18px; }
  .phone-chart-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .password-reset-modal { padding: 10px; }
  .password-reset-dialog { padding: 18px; }
  .password-reset-modal-actions { flex-direction: column-reverse; }
  .password-reset-modal-actions .button { width: 100%; }
  .company-balance-modal { padding: 10px; }
  .company-balance-dialog { padding: 18px; }
  .company-balance-modal-actions { flex-direction: column-reverse; }
  .company-balance-modal-actions .button { width: 100%; }
  .settings-content { grid-template-columns: 1fr; }
  .settings-password-form { grid-template-columns: 1fr; }
  .settings-password-form .button { width: 100%; }
  .workweek { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .schedule-step.is-waiting .time-node {
    animation: none;
  }
  .metric-distribute-button.is-loading .material-symbols-rounded {
    animation: none;
  }
  .metric-delete-button.is-loading .material-symbols-rounded {
    animation: none;
  }
  .source-exclusion-form button.is-loading .material-symbols-rounded {
    animation: none;
  }
}
