:root {
  --navy-950: #003d5d;
  --navy-900: #004868;
  --navy-800: #00517b;
  --teal-700: #00517b;
  --teal-600: #1985b1;
  --teal-100: #e4f2f8;
  --brand-light: #84b4d3;
  --brand-grey: #b3b2b2;
  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --fuchsia-600: #c026d3;
  --fuchsia-100: #fae8ff;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --slate-900: #17242b;
  --slate-700: #44545d;
  --slate-500: #70808a;
  --slate-300: #cdd7dc;
  --slate-200: #e2e9ec;
  --slate-100: #f1f5f6;
  --surface: #ffffff;
  --background: #f4f8fa;
  --shadow: 0 12px 28px rgba(0, 81, 123, 0.07);
  --radius: 16px;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--slate-900);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% -10%, rgba(132, 180, 211, 0.18), transparent 30rem),
    var(--background);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 248px;
  flex-direction: column;
  overflow-y: auto;
  color: var(--slate-700);
  background:
    linear-gradient(165deg, rgba(132, 180, 211, 0.12), transparent 30%),
    #ffffff;
  border-right: 1px solid #dce8ed;
  box-shadow: 6px 0 24px rgba(0, 81, 123, 0.035);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 13px 20px 17px;
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid #edf3f6;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: 91px;
  object-fit: contain;
}

.brand-caption {
  margin-top: -4px;
  color: #758c97;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.nav-groups {
  flex: 1;
  padding: 4px 12px 20px;
}

.nav-groups section + section {
  margin-top: 14px;
}

.nav-label {
  margin: 0 10px 7px;
  color: #8297a0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 9px 11px;
  color: #526b76;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: 150ms ease;
}

.nav-item:hover {
  color: var(--navy-800);
  background: rgba(132, 180, 211, 0.12);
}

.nav-item.active {
  color: var(--navy-800);
  font-weight: 700;
  background: rgba(25, 133, 177, 0.1);
  border-color: rgba(25, 133, 177, 0.13);
  box-shadow: inset 3px 0 var(--teal-600);
}

.nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--teal-600);
  font-size: 14px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 18px;
  padding: 12px;
  color: #708791;
  font-size: 10.5px;
  background: #f5f9fa;
  border: 1px solid #e5eef2;
  border-radius: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.main-column {
  min-height: 100vh;
  margin-left: 248px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(205, 215, 220, 0.72);
  backdrop-filter: blur(18px);
}

.topbar p {
  margin: 0;
}

.topbar-kicker {
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.topbar-title {
  margin-top: 2px !important;
  font-size: 13px;
  font-weight: 650;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.company-switcher-v2 {
  display: grid;
  gap: 2px;
  padding: 4px 9px;
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
}

.company-switcher-v2 select {
  max-width: 170px;
  padding: 0 18px 0 0;
  color: var(--navy-800);
  font: inherit;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: none;
  background: transparent;
  border: 0;
  outline: 0;
}

.live-chip b {
  font-weight: 600;
}

.topbar-export {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--teal-600);
  border: 1px solid var(--teal-600);
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(25, 133, 177, 0.16);
}

.topbar-export:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.topbar-export.dre-export {
  color: var(--teal-700);
  background: white;
  border-color: var(--teal-600);
  box-shadow: none;
}

.topbar-export.dre-export:hover {
  color: white;
  background: var(--teal-700);
}

.topbar-export span {
  font-size: 14px;
  line-height: 1;
}

.live-chip,
.date-chip {
  padding: 7px 10px;
  color: var(--slate-500);
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
}

.live-chip span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--emerald-600);
  border-radius: 50%;
}

.session-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-700);
  font-size: 10.5px;
  font-weight: 650;
}

.session-avatar {
  display: grid;
  overflow: hidden;
  width: 25px;
  height: 25px;
  place-items: center;
  color: white;
  font-size: 10px;
  font-weight: 800;
  background: var(--navy-800);
  border-radius: 50%;
}

.logout-form {
  margin: 0;
}

.logout-button {
  min-height: 31px;
  padding: 6px 10px;
  color: var(--slate-500);
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}

.logout-button:hover {
  color: var(--navy-800);
  border-color: var(--brand-light);
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 12%, rgba(132, 180, 211, 0.32), transparent 28rem),
    radial-gradient(circle at 8% 90%, rgba(25, 133, 177, 0.14), transparent 30rem),
    #eef5f8;
}

.login-shell {
  display: grid;
  width: min(940px, 100%);
  min-height: 560px;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  overflow: hidden;
  background: white;
  border: 1px solid rgba(205, 215, 220, 0.75);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 61, 93, 0.16);
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 48px;
  color: white;
  background:
    linear-gradient(150deg, rgba(0, 61, 93, 0.92), rgba(0, 81, 123, 0.96)),
    var(--navy-800);
}

.login-brand-panel::before,
.login-brand-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(132, 180, 211, 0.2);
  border-radius: 50%;
}

.login-brand-panel::before {
  top: -110px;
  right: -90px;
  width: 330px;
  height: 330px;
}

.login-brand-panel::after {
  top: -42px;
  right: -20px;
  width: 190px;
  height: 190px;
}

.login-logo-card {
  position: absolute;
  top: 38px;
  left: 42px;
  z-index: 1;
  display: grid;
  width: 214px;
  min-height: 104px;
  place-items: center;
  padding: 8px 16px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(0, 33, 51, 0.18);
}

.login-logo-card img {
  width: 188px;
  height: 88px;
  object-fit: contain;
}

.login-group-logo {
  position: absolute;
  top: 30px;
  right: 34px;
  left: 34px;
  z-index: 1;
  display: grid;
  height: 270px;
  place-items: center;
  overflow: hidden;
  padding: 18px 22px;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 33, 51, 0.22);
}

.login-group-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-triangle {
  position: absolute;
  top: 30px;
  right: 34px;
  left: 34px;
  z-index: 1;
  height: 250px;
}

.login-logo-tile {
  position: absolute;
  display: grid;
  width: 188px;
  height: 98px;
  place-items: center;
  overflow: hidden;
  padding: 9px 12px;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(0, 33, 51, 0.22);
}

.login-logo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-logo-caruso {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.login-logo-giscaruso {
  top: 124px;
  left: 0;
}

.login-logo-seacaruso {
  top: 124px;
  right: 0;
}

.login-logo-seacaruso img {
  width: 105%;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
}

.login-brand-copy .eyebrow {
  color: var(--brand-light);
}

.login-brand-copy h1 {
  max-width: 390px;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.05;
}

.login-brand-copy p:last-child {
  max-width: 390px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
}

.login-form-panel h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.login-intro {
  margin: 8px 0 30px;
  color: var(--slate-500);
  font-size: 12.5px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field span {
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  height: 48px;
  padding: 11px 13px;
  color: var(--slate-900);
  background: #fbfdfe;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  outline: none;
  transition: 150ms ease;
}

.login-field input:focus {
  background: white;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(25, 133, 177, 0.1);
}

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  font-size: 12px;
}

.login-error {
  margin: -3px 0 0;
  padding: 11px 12px;
  color: #991b1b;
  font-size: 11.5px;
  line-height: 1.45;
  background: var(--red-100);
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 9px;
}

.login-security-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 26px 0 0;
  color: var(--slate-500);
  font-size: 10.5px;
}

.login-security-note::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--emerald-600);
  border-radius: 50%;
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  color: var(--slate-700);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
}

#app-content {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 28px 32px 46px;
  outline: none;
}

#app-content.wide-data-view {
  width: 100%;
  max-width: none;
  padding-right: 16px;
  padding-left: 16px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.page-heading {
  flex: 1 1 280px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 690;
  letter-spacing: -0.035em;
}

.page-description {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--slate-500);
  font-size: 12.5px;
  line-height: 1.55;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.dashboard-mode-switch {
  display: inline-flex;
  gap: 3px;
  margin: -4px 0 16px;
  padding: 4px;
  background: #f3f7f6;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.dashboard-mode-switch button {
  min-width: 108px;
  min-height: 34px;
  padding: 7px 16px;
  color: var(--slate-600);
  font-size: 10.5px;
  font-weight: 750;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.dashboard-mode-switch button.active {
  color: white;
  background: var(--teal-600);
  box-shadow: 0 3px 10px rgba(25, 133, 177, 0.2);
}

.period-filter {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--slate-200);
  border-radius: 13px;
}

.period-export-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 3px;
  padding-right: 11px;
  border-right: 1px solid var(--slate-200);
}

.period-filter label {
  display: grid;
  gap: 4px;
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.period-filter input {
  width: 128px;
  height: 34px;
  padding: 5px 8px;
  color: var(--slate-900);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--teal-600);
  box-shadow: 0 7px 18px rgba(25, 133, 177, 0.18);
}

.button.primary:hover {
  background: var(--teal-700);
}

.button.secondary {
  color: var(--slate-700);
  background: white;
  border-color: var(--slate-200);
}

.button.danger {
  color: var(--red-600);
  background: var(--red-100);
}

.delete-month-button {
  color: var(--red-600) !important;
}

.delete-origin-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.delete-origin-field legend {
  margin-bottom: 8px;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 700;
}

.delete-origin-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.delete-origin-options .checkbox-field {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
}

.button.small {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 10.5px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.kpi-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-report-filters {
  display: flex;
  flex: 1 1 100%;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 9px;
  margin-left: 0;
}

.project-report-export {
  align-self: center;
  white-space: nowrap;
}

.project-report-selector {
  display: grid;
  min-width: 180px;
  gap: 5px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--slate-200);
  border-radius: 13px;
}

.project-report-selector-wide {
  flex: 1 1 280px;
  min-width: min(280px, 100%);
}

.project-report-manager-selector {
  min-width: 190px;
}

.project-report-status-selector {
  min-width: 155px;
}

.project-report-selector span {
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-report-selector select {
  width: 100%;
  min-width: 0;
  min-height: 35px;
  padding: 5px 9px;
  color: var(--slate-900);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}

.project-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.project-summary-grid > .kpi-card {
  height: 100%;
}

.project-summary-grid > .kpi-card,
.project-details-card,
.project-equation-row .kpi-card {
  height: 144px;
  min-height: 144px;
}

.project-details-card {
  grid-column: span 2;
  min-width: 0;
  padding: 17px 18px 13px;
  background: var(--surface);
  border: 1px solid rgba(205, 215, 220, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-details-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.65fr) repeat(3, minmax(68px, 0.8fr));
  gap: 10px;
  margin-top: 12px;
}

.project-details-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.project-details-grid span {
  color: var(--slate-500);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-details-grid strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-manager-detail strong {
  overflow: visible;
  font-size: 10px;
  text-overflow: clip;
  white-space: normal;
}

.project-kpi-flow {
  margin-bottom: 16px;
}

.project-formula-title {
  margin: 0 0 8px;
  color: var(--slate-500);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-flow-connector {
  --connector-edge: 11.1%;
  position: relative;
  height: 64px;
}

.project-flow-connector::before {
  position: absolute;
  inset: 0 var(--connector-edge) 22px;
  content: "";
  border-right: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  border-bottom-right-radius: 8px;
}

.project-flow-connector > span {
  position: absolute;
  bottom: 25px;
  left: 50%;
  z-index: 1;
  padding: 2px 10px;
  color: var(--slate-500);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--background);
  transform: translateX(-50%);
}

.project-flow-connector > i {
  position: absolute;
  bottom: 12px;
  left: calc(var(--connector-edge) - 1px);
  width: 2px;
  height: 10px;
  background: var(--teal-700);
}

.project-flow-connector > i::after {
  position: absolute;
  bottom: -7px;
  left: -4px;
  width: 0;
  height: 0;
  content: "";
  border-top: 8px solid var(--teal-700);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.project-equation-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 35px;
}

.project-equation-term {
  position: relative;
  min-width: 0;
}

.project-equation-term::after {
  position: absolute;
  top: 50%;
  right: -27px;
  width: 19px;
  color: var(--teal-700);
  content: attr(data-operator);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}

.project-equation-term:not([data-operator])::after {
  content: none;
}

.project-equation-row .kpi-card {
  height: 144px;
}

.project-calculation-flow .kpi-card {
  padding: 15px 16px;
}

.project-calculation-flow .kpi-value {
  margin-top: 11px;
  font-size: clamp(19px, 2vw, 27px);
}

.project-calculation-flow .kpi-meta {
  font-size: 9.5px;
  line-height: 1.35;
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(560px, 1.8fr);
  align-items: center;
  gap: 32px;
  height: 144px;
  min-height: 144px;
  margin-bottom: 13px;
  padding-top: 14px;
  padding-bottom: 14px;
  background:
    radial-gradient(circle at 92% 10%, rgba(132, 180, 211, 0.2), transparent 20rem),
    var(--surface);
}

.project-overview-details {
  margin-top: 9px;
}

.project-overview-info {
  min-width: 0;
}

.project-overview-info > .kpi-label {
  margin: 0;
}

.project-overview-info .project-progress {
  margin-top: 8px;
}

.project-overview-info .project-progress-caption {
  margin-top: 5px;
}

.project-overview-title {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
  gap: 12px;
}

.project-overview-title > div {
  min-width: 0;
}

.project-overview-title h2 {
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: clamp(20px, 2.3vw, 29px);
}

.project-overview-title p:last-child {
  margin: 0;
  color: var(--slate-500);
  font-size: 11.5px;
}

.project-progress {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--slate-200);
  border-radius: 999px;
}

.project-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-600), var(--emerald-500));
  border-radius: inherit;
}

.project-progress-caption {
  margin: 7px 0 0;
  color: var(--slate-500);
  font-size: 9.5px;
}

.project-chart-empty {
  min-height: 280px;
}

.forecast-section {
  margin-bottom: 16px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(25, 133, 177, 0.075), rgba(5, 150, 105, 0.035)),
    var(--surface);
  border: 1px solid rgba(25, 133, 177, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.forecast-heading,
.chart-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.forecast-heading h2 {
  margin: 2px 0 5px;
  color: var(--navy-900);
  font-size: 22px;
}

.forecast-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--slate-500);
  font-size: 11px;
}

.forecast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.forecast-updated {
  color: var(--slate-500);
  font-size: 10px;
}

.forecast-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.forecast-kpis > div,
.forecast-progress-comparison > div {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 5px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 215, 220, 0.76);
  border-radius: 12px;
}

.forecast-kpis span,
.forecast-progress-comparison span {
  color: var(--slate-500);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.forecast-kpis strong {
  color: var(--navy-900);
  font-size: clamp(17px, 1.7vw, 23px);
}

.forecast-kpis small,
.forecast-progress-comparison small {
  color: var(--slate-500);
  font-size: 9px;
  line-height: 1.35;
}

.forecast-trend {
  border-left: 4px solid var(--slate-500) !important;
}

.forecast-trend.trend-healthy {
  border-left-color: var(--emerald-600) !important;
}

.forecast-trend.trend-attention {
  border-left-color: var(--amber-600) !important;
}

.forecast-trend.trend-critical {
  border-left-color: var(--red-600) !important;
}

.forecast-progress-comparison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}

.forecast-progress-comparison strong {
  color: var(--navy-900);
  font-size: 15px;
}

.forecast-comparison {
  border: 1px solid var(--slate-200);
  border-radius: 11px;
}

.forecast-realized {
  background: rgba(112, 128, 138, 0.045);
}

.forecast-future {
  color: var(--teal-700);
  background: rgba(25, 133, 177, 0.055);
}

.forecast-completion {
  color: var(--navy-900);
  font-weight: 760;
  background: rgba(5, 150, 105, 0.055);
}

.forecast-premises {
  margin-top: 14px;
  padding: 0 14px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
}

.forecast-premises summary {
  padding: 12px 0;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}

.forecast-premise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 14px;
}

.forecast-premise {
  padding: 11px;
  background: var(--slate-100);
  border-radius: 9px;
}

.forecast-premise strong {
  color: var(--navy-900);
  font-size: 10px;
}

.forecast-premise p,
.forecast-premise small {
  margin: 4px 0 0;
  color: var(--slate-500);
  font-size: 9px;
  line-height: 1.4;
}

.project-evolution-panel {
  margin-bottom: 16px;
}

.project-hours-panel {
  margin-bottom: 16px;
}

.project-hours-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-hours-total {
  min-width: 132px;
  padding: 9px 12px;
  text-align: right;
  background: rgba(25, 133, 177, 0.07);
  border: 1px solid rgba(25, 133, 177, 0.16);
  border-radius: 10px;
}

.project-hours-total span,
.project-hours-total strong {
  display: block;
}

.project-hours-total span {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 700;
}

.project-hours-total strong {
  margin-top: 2px;
  color: var(--teal-700);
  font-size: 17px;
}

.project-hours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.project-hours-grid > section {
  padding: 14px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 11px;
}

.project-hours-grid h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 12px;
}

.hours-breakdown {
  display: grid;
  gap: 12px;
}

.hours-breakdown-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hours-breakdown-heading > span:last-child {
  text-align: right;
}

.hours-breakdown-heading strong,
.hours-breakdown-heading small {
  display: block;
}

.hours-breakdown-heading strong {
  color: var(--navy-900);
  font-size: 11px;
}

.hours-breakdown-heading small,
.hours-empty {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 9.5px;
}

.hours-progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  appearance: none;
  border: 0;
  background: var(--slate-200);
  border-radius: 999px;
}

.hours-progress::-webkit-progress-bar {
  background: var(--slate-200);
  border-radius: 999px;
}

.hours-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--teal-700), var(--brand-light));
  border-radius: 999px;
}

.hours-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--teal-700), var(--brand-light));
  border-radius: 999px;
}

.chart-wrap-tall {
  min-height: 330px;
}

.forecast-series-legend {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.8fr);
  gap: 12px;
  margin-top: 13px;
}

.forecast-legend-group {
  padding: 11px 13px;
  color: var(--slate-500);
  font-size: 11.5px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}

.forecast-legend-group > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--navy-900);
  font-size: 12px;
}

.forecast-indicator-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.forecast-indicator-list span,
.forecast-line-types span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.forecast-indicator-list i,
.forecast-line-types i {
  flex: 0 0 24px;
  width: 24px;
  height: 0;
  border-top: 3px solid var(--slate-500);
}

.forecast-indicator-list .indicator-revenue {
  border-top-color: #059669;
}

.forecast-indicator-list .indicator-costs {
  border-top-color: #c026d3;
}

.forecast-indicator-list .indicator-result {
  border-top-color: #1985b1;
}

.forecast-indicator-list .indicator-contract {
  border-top-color: #00517b;
}

.forecast-line-types > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.forecast-line-types i {
  border-top-color: #70808a;
}

.forecast-line-types i.line-dashed {
  border-top-style: dashed;
}

.segmented-control {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 9px;
}

.segmented-control button {
  padding: 6px 9px;
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 720;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.segmented-control button.active {
  color: var(--teal-700);
  background: white;
  box-shadow: 0 2px 6px rgba(0, 81, 123, 0.12);
}

@media (max-width: 1100px) {
  .forecast-kpis,
  .forecast-progress-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-premise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-series-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .forecast-heading,
  .chart-panel-heading {
    flex-direction: column;
  }

  .forecast-actions {
    justify-content: flex-start;
  }

  .forecast-kpis,
  .forecast-progress-comparison,
  .forecast-premise-grid {
    grid-template-columns: 1fr;
  }

  .project-hours-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .project-hours-total {
    text-align: left;
  }

  .project-hours-grid,
  .forecast-indicator-list {
    grid-template-columns: 1fr;
  }
}

.cross-filter-bar {
  display: flex;
  align-items: center;
  min-height: 45px;
  gap: 14px;
  margin: -2px 0 14px;
  padding: 9px 12px;
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(25, 133, 177, 0.27);
  border-radius: 11px;
}

.cross-filter-copy,
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cross-filter-copy p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
}

.cross-filter-copy strong {
  display: inline-block;
  margin-right: 5px;
  color: var(--navy-800);
}

.interaction-icon {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 750;
  place-items: center;
  background: var(--teal-100);
  border-radius: 8px;
}

.active-filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.filter-chip {
  padding: 5px 8px;
  color: var(--teal-700);
  font-size: 9.5px;
  background: var(--teal-100);
  border: 1px solid rgba(25, 133, 177, 0.14);
  border-radius: 999px;
}

.filter-chip strong {
  margin-left: 3px;
  color: var(--navy-800);
}

.clear-filter-button {
  padding: 4px 2px;
  color: var(--slate-500);
  font: inherit;
  font-size: 9.5px;
  font-weight: 650;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clear-filter-button:hover {
  color: var(--teal-700);
}

.kpi-card {
  position: relative;
  min-height: 128px;
  padding: 17px 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(205, 215, 220, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kpi-card::after {
  position: absolute;
  inset: auto -22px -34px auto;
  width: 92px;
  height: 92px;
  content: "";
  background: var(--tone-soft, var(--teal-100));
  border-radius: 50%;
  opacity: 0.58;
}

.kpi-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--slate-500);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-value {
  position: relative;
  z-index: 1;
  margin: 15px 0 4px;
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.kpi-meta {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--slate-500);
  font-size: 10.5px;
}

.tone-revenue {
  --tone-soft: var(--emerald-100);
}

.tone-expense {
  --tone-soft: var(--fuchsia-100);
}

.tone-warning {
  --tone-soft: var(--amber-100);
}

.tone-negative {
  --tone-soft: var(--red-100);
}

.tone-profit-danger {
  --tone-soft: #fecaca;
  background: linear-gradient(145deg, #fff 15%, #fff1f2 100%);
  border-color: rgba(220, 38, 38, 0.42);
  box-shadow: 0 7px 20px rgba(220, 38, 38, 0.12);
}

.tone-profit-danger .kpi-label,
.tone-profit-danger .kpi-value {
  color: var(--red-600);
}

.tone-profit-success {
  --tone-soft: var(--emerald-100);
  background: linear-gradient(145deg, #fff 15%, #ecfdf5 100%);
  border-color: rgba(5, 150, 105, 0.38);
  box-shadow: 0 7px 20px rgba(5, 150, 105, 0.11);
}

.tone-profit-success .kpi-label,
.tone-profit-success .kpi-value {
  color: var(--emerald-600);
}

.profit-margin {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 999px;
}

.kpi-meta.profit-margin {
  width: fit-content;
  margin-top: 7px;
}

.profit-margin-excellent {
  color: #fff;
  background: #00b050;
  border-color: #008f40;
}

.profit-margin-good {
  color: #17351f;
  background: #a9d18e;
  border-color: #70ad47;
}

.profit-margin-balanced {
  color: #1f2937;
  background: #fff200;
  border-color: #d6ca00;
}

.profit-margin-poor {
  color: #fff !important;
  background: #ff0000;
  border-color: #cc0000;
}

.profit-margin-neutral {
  color: var(--slate-600);
  background: var(--slate-100);
  border-color: var(--slate-200);
}

.backlog-margin-cell .profit-margin {
  justify-content: center;
  min-width: 58px;
  font-size: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.content-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid rgba(205, 215, 220, 0.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-teams-panel {
  margin-top: 16px;
}

.profit-sharing-chart-panel {
  margin-bottom: 16px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--slate-500);
  font-size: 10.5px;
}

.panel-header .panel-aside {
  margin-left: auto;
}

.chart-wrap {
  position: relative;
  min-height: 280px;
}

.chart-wrap.compact {
  min-height: 230px;
}

canvas {
  display: block;
  width: 100%;
  height: 280px;
}

canvas.interactive-chart {
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}

canvas.interactive-chart:focus-visible {
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(25, 133, 177, 0.17);
}

.chart-tooltip {
  position: absolute;
  z-index: 6;
  min-width: 170px;
  max-width: min(260px, calc(100% - 16px));
  padding: 10px 11px 8px;
  color: white;
  pointer-events: none;
  visibility: hidden;
  background: rgba(6, 34, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(4, 27, 39, 0.24);
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 90ms ease, transform 90ms ease;
}

.chart-tooltip.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chart-tooltip-title {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 750;
}

.chart-tooltip-rows {
  display: grid;
  gap: 5px;
}

.chart-tooltip-rows p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9.5px;
}

.chart-tooltip-rows strong {
  color: white;
  font-size: 10px;
  white-space: nowrap;
}

.tooltip-series {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-series i {
  width: 7px;
  height: 7px;
  background: var(--tooltip-color);
  border-radius: 2px;
}

.chart-tooltip-action {
  margin: 8px -3px 0;
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 8.5px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.compact canvas {
  height: 230px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 10px;
  color: var(--slate-500);
  font-size: 10px;
}

.legend span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  content: "";
  background: var(--legend-color);
  border-radius: 2px;
}

.legend span.trend::before {
  width: 13px;
  height: 0;
  vertical-align: middle;
  background: transparent;
  border-top: 2px dashed var(--legend-color);
  border-radius: 0;
}

.insight-list,
.ranking-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-item,
.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 11px;
  background: var(--slate-100);
  border-radius: 10px;
}

.insight-number,
.ranking-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 800;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}

.insight-item p,
.ranking-item p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
}

.ranking-item strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-panel .panel-header {
  margin: 0;
  padding: 17px 18px 14px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px 14px;
}

.rh-team-toolbar {
  justify-content: space-between;
}

.table-sort-hint {
  color: var(--slate-500);
  font-size: 10px;
}

.search-field {
  position: relative;
  width: min(340px, 100%);
}

.search-field input {
  width: 100%;
  height: 37px;
  padding: 8px 12px 8px 33px;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
}

.search-field::before {
  position: absolute;
  top: 9px;
  left: 12px;
  color: var(--slate-500);
  content: "⌕";
}

.table-scroll {
  width: 100%;
  overflow: auto;
  border-top: 1px solid var(--slate-200);
}

.project-balance-table {
  min-width: 1120px;
  table-layout: fixed;
}

.project-backlog-table {
  width: 100%;
  min-width: 918px;
  table-layout: fixed;
  font-size: 8px;
}

.project-backlog-table th:first-child,
.project-backlog-table td:first-child {
  min-width: 105px;
}

.project-backlog-table td:first-child {
  line-height: 1.3;
  white-space: normal;
}

.project-backlog-table th {
  padding: 6px 4px;
  line-height: 1.2;
  white-space: normal;
}

.project-backlog-table td {
  overflow: hidden;
  padding-right: 5px;
  padding-left: 5px;
  text-overflow: ellipsis;
}

.project-backlog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}

.backlog-status-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #f3f7f6;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.backlog-status-switch button {
  min-width: 86px;
  min-height: 36px;
  padding: 7px 13px;
  color: var(--slate-600);
  font-size: 10.5px;
  font-weight: 750;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.backlog-status-switch button.active {
  color: white;
  background: var(--teal-600);
  box-shadow: 0 3px 10px rgba(25, 133, 177, 0.2);
}

.backlog-manager-filter {
  min-width: 240px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.backlog-sort-button {
  display: inline-flex;
  width: 100%;
  min-height: 25px;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.project-backlog-table th.numeric .backlog-sort-button {
  justify-content: flex-end;
  text-align: right;
}

.backlog-sort-button:hover,
.backlog-sort-button:focus-visible {
  color: var(--teal-700);
  outline: none;
}

.backlog-filter-row th {
  top: 42px;
  padding: 5px;
  background: #f8faf9;
}

.backlog-filter-row input {
  width: 100%;
  min-width: 0;
  height: 29px;
  padding: 4px;
  font-size: 8px;
  color: var(--slate-700);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
}

.backlog-filter-row input[type="date"] {
  min-width: 120px;
}

.project-balance-table col {
  width: 12.5%;
}

.project-balance-table th,
.project-balance-table td {
  padding-right: 14px;
  padding-left: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.7px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #edf1f2;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #5f7079;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  background: #f8faf9;
}

th.sortable-header {
  cursor: pointer;
  user-select: none;
}

th.sortable-header:hover,
th.sortable-header:focus-visible {
  color: var(--teal-700);
  background: var(--teal-100);
  outline: none;
}

.crud-sort-button {
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

th.numeric .crud-sort-button {
  text-align: right;
}

.crud-sort-button:hover,
.crud-sort-button:focus-visible {
  color: var(--teal-700);
  outline: none;
}

.crud-filter-row th {
  position: sticky;
  top: 34px;
  z-index: 2;
  padding: 6px 8px 8px;
  background: #f8faf9;
}

.crud-column-filter input,
.crud-column-filter select {
  width: 100%;
  min-width: 92px;
  height: 30px;
  padding: 4px 7px;
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 7px;
}

.number-filter {
  display: grid;
  min-width: 145px;
  grid-template-columns: 44px minmax(90px, 1fr);
  gap: 5px;
}

.number-filter select {
  min-width: 44px;
}

.clear-crud-filters {
  padding: 4px;
  color: var(--teal-700);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.sort-indicator {
  margin-left: 4px;
  color: var(--teal-700);
}

.crud-sort-button .sort-indicator {
  opacity: 0.45;
}

.crud-sort-button .sort-indicator.active {
  opacity: 1;
}

tbody tr:hover {
  background: #f8fbfb;
}

td.numeric,
th.numeric {
  text-align: right;
}

td.primary-cell {
  color: var(--slate-900);
  font-weight: 640;
}

.pivot-table th:first-child,
.pivot-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 190px;
  background: white;
}

.pivot-table th:first-child {
  background: #f8faf9;
}

.profit-sharing-table th:nth-child(2),
.profit-sharing-table td:nth-child(2) {
  min-width: 190px;
}

.pivot-table .total-row td {
  font-weight: 750;
  background: #edf8fa;
  border-top: 1px solid #b8e8f0;
}

.pivot-table .total-row td:first-child {
  background: #edf8fa;
}

.dre-table .section-row td {
  font-weight: 780;
  background: #ecfdf5;
  border-top: 1px solid #a7f3d0;
}

.dre-table .expense-section td {
  background: #fdf2f8;
  border-top-color: #f5b7e5;
}

.dre-table .result-row td {
  font-weight: 750;
  border-top: 1px solid var(--slate-300);
}

.dre-table .net-row td {
  color: var(--teal-700);
  font-weight: 800;
  background: #ecfeff;
}

.negative {
  color: var(--red-600) !important;
}

.badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 999px;
}

.badge.success {
  color: #047857;
  background: var(--emerald-100);
}

.badge.muted {
  color: var(--slate-500);
  background: var(--slate-100);
}

.badge.info {
  color: var(--teal-700);
  background: var(--teal-100);
}

.badge.warning {
  color: var(--amber-600);
  background: var(--amber-100);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.icon-action {
  min-width: 30px;
  min-height: 28px;
  padding: 4px 8px;
  color: var(--slate-700);
  font-size: 10px;
  cursor: pointer;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 7px;
}

.icon-action:hover {
  color: var(--teal-700);
  border-color: #a5d8e3;
}

.icon-action.danger-text {
  color: var(--red-600);
}

.icon-action.danger-text:hover {
  color: var(--red-600);
  background: var(--red-100);
  border-color: rgba(220, 38, 38, 0.3);
}

.table-footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--slate-500);
  font-size: 10.5px;
}

.rh-team-footer .summary-chip {
  margin-left: auto;
}

.pagination {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.summary-chip {
  padding: 7px 10px;
  color: var(--slate-700);
  font-size: 10px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
}

.summary-chip strong {
  color: var(--teal-700);
}

.modal {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: auto;
  background: white;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(7, 25, 34, 0.28);
}

.modal::backdrop {
  background: rgba(7, 25, 34, 0.58);
  backdrop-filter: blur(3px);
}

.modal form {
  padding: 23px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  margin-left: auto;
  color: var(--slate-500);
  font-size: 22px;
  cursor: pointer;
  background: var(--slate-100);
  border: 0;
  border-radius: 9px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid > .full {
  grid-column: 1 / -1;
  min-width: 0;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.profit-sharing-start-action {
  align-content: end;
  justify-items: start;
}

.form-field > span {
  color: var(--slate-700);
  font-size: 10.5px;
  font-weight: 700;
}

.form-field > small {
  margin-top: -1px;
  color: var(--slate-500);
  font-size: 9px;
  line-height: 1.4;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  color: var(--slate-900);
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: 9px;
  outline: none;
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.checkbox-field {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  background: var(--slate-100);
  border-radius: 10px;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal-700);
}

.checkbox-field span {
  font-size: 10.7px;
  font-weight: 650;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--slate-200);
}

.runrunit-modal {
  width: min(900px, calc(100vw - 28px));
}

.runrunit-modal #runrunit-month {
  max-width: 260px;
}

.runrunit-project-heading,
.runrunit-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 10px;
}

.runrunit-project-heading > div {
  display: grid;
  gap: 3px;
}

.runrunit-project-heading strong,
.runrunit-preview-heading h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 13px;
}

.runrunit-project-heading span {
  color: var(--slate-500);
  font-size: 10.5px;
}

.runrunit-select-all {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-700);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.runrunit-select-all input,
.runrunit-project-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal-700);
}

.runrunit-project-search {
  display: block;
  margin-bottom: 8px;
}

.runrunit-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 310px;
  overflow: auto;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.runrunit-project-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--slate-100);
}

.runrunit-project-option:nth-child(odd) {
  border-right: 1px solid var(--slate-100);
}

.runrunit-project-option:hover {
  background: #f0fdfa;
}

.runrunit-project-option span {
  overflow: hidden;
  color: var(--slate-700);
  font-size: 10.8px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-export-modal {
  width: min(820px, calc(100vw - 28px));
}

.project-export-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 10px;
}

.project-export-heading > div,
.project-export-list .runrunit-project-option > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.project-export-heading strong,
.project-export-list strong {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 11px;
  text-overflow: ellipsis;
}

.project-export-heading span,
.project-export-list small {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.project-export-search {
  display: block;
  margin-bottom: 8px;
}

.project-export-list {
  max-height: 330px;
}

.project-import-intro {
  margin: -2px 0 18px;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1.55;
}

.project-import-list {
  max-height: 360px;
}

.project-import-option > span {
  display: grid;
  flex: 1;
  gap: 3px;
}

.project-import-option strong {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 10.8px;
  text-overflow: ellipsis;
}

.project-import-option small {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 8.8px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.project-import-option.is-imported {
  cursor: default;
  background: var(--slate-100);
  opacity: 0.75;
}

.project-import-option .badge {
  flex: 0 0 auto;
}

.project-name-cell {
  display: block;
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 500;
}

.project-rh-formula {
  margin-top: 14px;
}

#project-rh-import-preview .runrunit-preview-heading {
  display: flex;
  align-items: flex-start;
}

#project-rh-import-preview .runrunit-preview-heading .summary-chip {
  margin-left: auto;
}

.runrunit-loading,
.runrunit-list-empty,
.runrunit-list-error {
  grid-column: 1 / -1;
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--slate-500);
  font-size: 11px;
  text-align: center;
}

.runrunit-loading .spinner {
  width: 22px;
  height: 22px;
}

.runrunit-list-error {
  color: var(--red-600);
}

.runrunit-preview-heading {
  margin-top: 0;
}

.runrunit-preview-heading > div {
  display: grid;
  gap: 5px;
}

.runrunit-log {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.runrunit-log > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: var(--slate-100);
  border-radius: 10px;
}

.runrunit-log span,
.runrunit-log small {
  color: var(--slate-500);
  font-size: 9.5px;
}

.runrunit-log strong {
  color: var(--teal-700);
  font-size: 15px;
}

.runrunit-summary-table {
  max-height: 270px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.runrunit-summary-table table {
  width: 100%;
}

.runrunit-summary-table td {
  vertical-align: top;
}

.runrunit-summary-table td.numeric {
  white-space: nowrap;
}

.runrunit-contributors {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.runrunit-contributor {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 7px;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 400;
}

.runrunit-contributor strong {
  color: var(--slate-700);
  font-size: inherit;
}

.runrunit-contributor small {
  flex-basis: 100%;
  color: var(--slate-500);
  font-size: 9px;
}

.runrunit-alert {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 11px;
}

.runrunit-alert > strong {
  font-size: 11.5px;
}

.runrunit-alert > p {
  margin: 4px 0 0;
  font-size: 10.5px;
}

.runrunit-alert.warning {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.runrunit-alert.duplicate {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.runrunit-alert ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 10.5px;
}

.runrunit-alert li small {
  display: block;
  margin-top: 2px;
  opacity: 0.8;
}

.runrunit-alert .checkbox-field {
  margin-top: 11px;
  color: var(--slate-800);
  background: white;
}

@media (max-width: 700px) {
  .runrunit-project-list,
  .runrunit-log {
    grid-template-columns: 1fr;
  }

  .runrunit-project-option:nth-child(odd) {
    border-right: 0;
  }

  .runrunit-project-heading {
    align-items: flex-start;
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 15px;
  color: white;
  font-size: 11.5px;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(7, 25, 34, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #991b1b;
}

.loading-state,
.empty-state,
.error-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--slate-500);
  text-align: center;
}

.loading-state p,
.empty-state p,
.error-state p {
  margin: 0;
  font-size: 12px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--teal-600);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.spinner.mini {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: white;
}

.people-sync-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.people-sync-actions > span {
  color: var(--slate-500);
  font-size: 10.5px;
  white-space: nowrap;
}

.people-filter-panel {
  display: grid;
  grid-template-columns: minmax(235px, 1.35fr) repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.people-filter-panel label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.people-filter-panel label > span {
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.people-filter-panel input,
.people-filter-panel select {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 7px 10px;
  color: var(--slate-900);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  outline: none;
}

.people-filter-panel input:focus,
.people-filter-panel select:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(25, 133, 177, 0.12);
}

.people-period-control {
  display: grid;
  grid-template-columns: minmax(105px, 0.85fr) minmax(120px, 1fr);
  gap: 6px;
}

.people-period-control.single {
  grid-template-columns: 1fr;
}

.people-kpis {
  margin-bottom: 18px;
}

.people-report-list {
  overflow: hidden;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid rgba(205, 215, 220, 0.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.people-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}

.people-section-heading h2 {
  margin: 0;
  font-size: 14px;
}

.people-section-heading p {
  margin: 4px 0 0;
  color: var(--slate-500);
  font-size: 10.5px;
}

.people-section-heading > span {
  margin-left: auto;
  padding: 5px 9px;
  color: var(--teal-700);
  font-size: 9.5px;
  font-weight: 700;
  background: var(--teal-100);
  border-radius: 999px;
}

.person-hours-item {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
}

.person-hours-item + .person-hours-item {
  margin-top: 8px;
}

.person-hours-item summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  background: #fbfdfe;
  transition: background 140ms ease;
}

.person-hours-item summary::-webkit-details-marker {
  display: none;
}

.person-hours-item summary:hover,
.person-hours-item[open] summary {
  background: #f4f9fb;
}

.person-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 750;
  background: linear-gradient(145deg, var(--teal-600), var(--navy-800));
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(0, 81, 123, 0.18);
}

.person-summary-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.person-summary-copy > strong {
  color: var(--navy-800);
  font-size: 11.5px;
}

.person-summary-copy > span {
  color: var(--slate-500);
  font-size: 9.5px;
}

.person-summary-copy i {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 5px 2px;
  background: var(--slate-300);
  border-radius: 50%;
}

.person-hours-total {
  display: grid;
  margin-left: auto;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.person-hours-total small {
  color: var(--slate-500);
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.person-accordion-chevron {
  color: var(--teal-600);
  font-size: 19px;
  transition: transform 150ms ease;
}

.person-hours-item[open] .person-accordion-chevron {
  transform: rotate(180deg);
}

.person-hours-detail {
  padding: 0 14px 14px 64px;
  background: #f8fbfc;
  border-top: 1px solid var(--slate-200);
}

.person-hours-detail table {
  margin-top: 12px;
}

.person-project-code {
  display: inline-block;
  min-width: 86px;
  margin-right: 9px;
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 750;
}

.person-hours-empty {
  color: var(--slate-500);
  font-style: italic;
}

.people-list-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 13px 15px;
  color: var(--navy-800);
  background: var(--slate-100);
  border-top: 2px solid var(--navy-800);
  border-radius: 0 0 9px 9px;
  font-size: 12px;
}

.people-list-total span {
  font-weight: 760;
}

.people-hours-chart-panel {
  margin-bottom: 16px;
}

.people-chart-wrap {
  min-height: 470px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 7px;
}

.people-chart-wrap canvas {
  max-width: none;
  height: 470px;
}

.people-reference-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #a45105;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  background: #fff7e6;
  border: 1px dashed #d97706;
  border-radius: 999px;
}

.people-no-results {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--slate-500);
  text-align: center;
  border: 1px dashed var(--slate-300);
  border-radius: 11px;
}

.people-no-results > span {
  color: var(--teal-600);
  font-size: 30px;
}

.people-no-results strong {
  color: var(--slate-700);
  font-size: 12px;
}

.people-no-results p {
  margin: 0;
  font-size: 10.5px;
}

.people-report-shell.is-syncing > :not(.page-header) {
  pointer-events: none;
  opacity: 0.62;
  transition: opacity 140ms ease;
}

.people-skeleton {
  display: grid;
  gap: 10px;
}

.people-skeleton span {
  display: block;
  height: 72px;
  background: linear-gradient(90deg, #edf3f5 25%, #f8fbfc 50%, #edf3f5 75%);
  background-size: 200% 100%;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  animation: people-skeleton 1.2s ease-in-out infinite;
}

@keyframes people-skeleton {
  to {
    background-position: -200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .kpi-grid,
  .kpi-grid.three,
  .kpi-grid.five,
  .kpi-grid.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .content-grid.equal {
    grid-template-columns: 1fr;
  }

  .project-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .project-overview {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .project-details-card {
    grid-column: 1 / -1;
  }

  .project-equation-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .project-equation-term::after {
    content: none;
  }

  .project-flow-connector::before {
    --connector-edge: 25%;
    right: 25%;
    left: 25%;
  }

  .project-flow-connector {
    --connector-edge: 25%;
  }
}

@media (max-width: 820px) {
  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 445px;
    padding: 290px 34px 34px;
  }

  .login-group-logo {
    top: 22px;
    right: 28px;
    left: 28px;
    height: 248px;
  }

  .login-brand-triangle {
    top: 22px;
    right: 28px;
    left: 28px;
    height: 226px;
  }

  .login-logo-card {
    top: 20px;
    left: 28px;
    width: 180px;
    min-height: 88px;
  }

  .login-logo-card img {
    width: 158px;
    height: 72px;
  }

  .login-brand-copy h1 {
    font-size: 30px;
  }

  .login-brand-copy p:last-child {
    display: none;
  }

  .login-form-panel {
    padding: 38px 34px 42px;
  }

  .sidebar {
    width: min(286px, 84vw);
    transform: translateX(-102%);
    transition: transform 180ms ease;
    box-shadow: 12px 0 40px rgba(7, 25, 34, 0.2);
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .main-column {
    margin-left: 0;
  }

  .menu-button {
    display: block;
  }

  .topbar {
    padding: 0 16px;
  }

  .live-chip {
    display: none;
  }

  .company-switcher-v2 span {
    display: none;
  }

  #app-content {
    padding: 23px 16px 40px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .period-filter,
  .page-actions {
    width: 100%;
    margin-left: 0;
  }

  .period-filter {
    flex-wrap: wrap;
  }

  .period-export-actions {
    width: 100%;
    margin: 0;
    padding: 0 0 9px;
    border-right: 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .period-filter label {
    flex: 1;
  }

  .period-filter input {
    width: 100%;
  }

  .cross-filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .active-filters {
    justify-content: flex-start;
    margin-left: 33px;
  }
}

@media (max-width: 540px) {
  .login-page {
    padding: 14px;
  }

  .login-shell {
    border-radius: 18px;
  }

  .login-brand-panel {
    min-height: 420px;
    padding: 266px 22px 28px;
  }

  .login-group-logo {
    top: 18px;
    right: 18px;
    left: 18px;
    height: 226px;
    padding: 14px;
    border-radius: 14px;
  }

  .login-brand-triangle {
    right: 18px;
    left: 18px;
    height: 205px;
  }

  .login-logo-tile {
    width: 46%;
    height: 82px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  .login-logo-caruso {
    width: 48%;
  }

  .login-logo-giscaruso,
  .login-logo-seacaruso {
    top: 104px;
  }

  .session-user,
  .live-chip,
  .company-switcher-v2 {
    display: none;
  }

  .date-chip {
    display: none;
  }

  .topbar-export {
    width: 36px;
    padding: 7px;
    font-size: 0;
  }

  .kpi-grid,
  .kpi-grid.three,
  .kpi-grid.five,
  .kpi-grid.six {
    grid-template-columns: 1fr;
  }

  .project-summary-grid,
  .project-equation-row {
    grid-template-columns: 1fr;
  }

  .project-details-card {
    grid-column: auto;
  }

  .project-overview {
    height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-manager-detail {
    grid-column: 1 / -1;
  }

  .project-flow-connector::before {
    inset: 0 50% 22px auto;
    width: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .project-flow-connector {
    --connector-edge: 50%;
  }

  .project-flow-connector > span {
    max-width: calc(100% - 20px);
    white-space: normal;
  }

  .project-report-selector {
    width: 100%;
    min-width: 0;
  }

  .project-report-filters {
    width: 100%;
    flex-direction: column;
    margin-left: 0;
  }

  .kpi-card {
    min-height: 112px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .modal-actions .button {
    flex: 1;
  }
}

.verification-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 12%, rgba(132, 180, 211, 0.32), transparent 28rem),
    radial-gradient(circle at 8% 90%, rgba(25, 133, 177, 0.14), transparent 30rem),
    #eef5f8;
}

.verification-card {
  width: min(560px, 100%);
  padding: 42px;
  text-align: center;
  background: white;
  border: 1px solid rgba(205, 215, 220, 0.75);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 61, 93, 0.16);
}

.verification-logo {
  width: 190px;
  height: 92px;
  margin-bottom: 20px;
  object-fit: contain;
}

.verification-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  place-items: center;
  color: white;
  font-size: 27px;
  font-weight: 800;
  border-radius: 50%;
}

.verification-icon.valid {
  background: var(--emerald-600);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.24);
}

.verification-icon.invalid {
  background: var(--red-600);
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.2);
}

.verification-card h1 {
  margin: 6px 0 0;
  color: var(--navy-800);
  font-size: 30px;
  letter-spacing: -0.025em;
}

.verification-intro {
  max-width: 430px;
  margin: 12px auto 28px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.65;
}

.verification-details {
  display: grid;
  gap: 0;
  margin: 0;
  text-align: left;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
}

.verification-details > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--slate-200);
}

.verification-details > div:last-child {
  border-bottom: 0;
}

.verification-details dt {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verification-details dd {
  margin: 0;
  color: var(--slate-900);
  font-size: 12px;
  font-weight: 650;
}

.verification-code {
  color: var(--navy-800) !important;
  font-family: "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.04em;
}

.verification-note {
  margin: 20px 0 0;
  color: var(--slate-500);
  font-size: 10.5px;
  line-height: 1.55;
}

@media (max-width: 540px) {
  .verification-page {
    padding: 16px;
  }

  .verification-card {
    padding: 30px 20px;
  }

  .verification-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.compact-modal {
  width: min(520px, calc(100vw - 28px));
}

.modal-note {
  margin: 14px 0 0;
  color: var(--slate-500);
  font-size: 11.5px;
  line-height: 1.55;
}

.import-expense-modal {
  width: min(1180px, calc(100vw - 32px));
}

.import-expense-modal form {
  max-height: min(850px, calc(100vh - 32px));
}

.import-preview-table {
  max-height: 520px;
  margin-top: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.import-preview-table select {
  min-width: 220px;
  max-width: 320px;
}

.import-preview-table td small {
  display: block;
  margin-top: 3px;
  color: var(--slate-500);
}

.file-drop-field input[type="file"] {
  padding: 10px;
  border: 1px dashed var(--slate-300);
  border-radius: 10px;
  background: var(--slate-100);
}

.report-analysis-field {
  margin-top: 13px;
}

.modal-warning {
  margin-top: 12px;
  padding: 11px 12px;
  color: #7b5a18;
  font-size: 10.5px;
  line-height: 1.5;
  background: var(--amber-100);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 9px;
}

.danger-warning {
  color: #991b1b;
  background: var(--red-100);
  border-color: rgba(220, 38, 38, 0.18);
}

[hidden] {
  display: none !important;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 5px;
  color: var(--slate-700);
  cursor: pointer;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
  transition: 150ms ease;
}

.user-menu-button:hover,
.user-menu-button[aria-expanded="true"] {
  border-color: var(--brand-light);
  box-shadow: 0 5px 15px rgba(0, 81, 123, 0.08);
}

.user-menu-button .session-avatar {
  width: 31px;
  height: 31px;
}

.session-avatar img,
.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.user-menu-copy {
  display: grid;
  min-width: 96px;
  text-align: left;
}

.user-menu-copy strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--slate-700);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-copy small {
  margin-top: 1px;
  color: var(--slate-500);
  font-size: 8.8px;
}

.user-menu-chevron {
  color: var(--slate-500);
  font-size: 13px;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 244px;
  padding: 7px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
  box-shadow: 0 18px 45px rgba(7, 25, 34, 0.16);
}

.user-menu-panel > button,
.user-menu-panel form button {
  display: grid;
  width: 100%;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: var(--slate-700);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.user-menu-panel > button:hover,
.user-menu-panel form button:hover {
  color: var(--navy-800);
  background: var(--slate-100);
}

.user-menu-panel button > span:first-child {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--teal-700);
  font-weight: 800;
  background: var(--teal-100);
  border-radius: 8px;
}

.user-menu-panel button > span:last-child {
  display: grid;
}

.user-menu-panel button strong {
  font-size: 10.5px;
}

.user-menu-panel button small {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 8.8px;
}

.user-menu-panel form {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--slate-200);
}

.profile-photo-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--slate-100);
  border-radius: 12px;
}

.profile-photo-preview {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: white;
  font-size: 25px;
  font-weight: 800;
  background: var(--navy-800);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 81, 123, 0.15);
}

.profile-photo-editor > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-photo-editor p {
  width: 100%;
  margin: 2px 0 0;
  color: var(--slate-500);
  font-size: 9.5px;
}

.profile-photo-button {
  cursor: pointer;
}

.profile-name-field {
  display: grid;
}

.users-modal {
  width: min(900px, calc(100vw - 28px));
}

.users-dialog-surface {
  min-height: 480px;
  padding: 23px;
}

.users-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 15px;
}

.users-toolbar p {
  max-width: 560px;
  margin: 0;
  color: var(--slate-500);
  font-size: 11.5px;
  line-height: 1.5;
}

.users-toolbar .button {
  margin-left: auto;
}

.users-table-wrap {
  overflow: auto;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.managed-user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.managed-user-cell > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  font-size: 10px;
  font-weight: 800;
  background: var(--navy-800);
  border-radius: 50%;
}

.managed-user-cell div {
  display: grid;
}

.managed-user-cell strong {
  font-size: 10.7px;
}

.managed-user-cell small {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 9px;
}

.company-cell > span {
  border-radius: 10px;
}

.company-cell > span:has(img) {
  overflow: hidden;
  background: white;
  border: 1px solid var(--slate-200);
}

.company-cell > span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.companies-table-wrap code {
  padding: 3px 6px;
  color: var(--teal-700);
  font-size: 9.5px;
  background: var(--teal-100);
  border-radius: 6px;
}

.company-actions {
  white-space: nowrap;
}

.company-actions .icon-action + .icon-action {
  margin-left: 4px;
}

.icon-action.danger-text {
  color: var(--red-600);
}

.icon-action.restore-text {
  color: var(--emerald-600);
}

.company-guidance {
  margin-top: 18px;
}

.company-access-editor {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
}

.company-access-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.company-access-heading h4 {
  margin: 4px 0 0;
  color: var(--navy-900);
  font-size: 15px;
}

.company-access-heading .summary-chip {
  margin-left: auto;
}

.company-access-description,
.company-access-footnote {
  margin: 7px 0 12px;
  color: var(--slate-500);
  font-size: 9.8px;
  line-height: 1.45;
}

.company-access-footnote {
  margin: 9px 0 0;
}

.company-access-table-wrap {
  max-height: 280px;
}

.company-access-table-wrap select {
  min-width: 135px;
  height: 32px;
  padding: 4px 7px;
  color: var(--slate-700);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 7px;
}

.company-member-cell {
  display: grid;
  gap: 2px;
  min-width: 190px;
}

.company-member-cell strong {
  color: var(--slate-900);
  font-size: 10.5px;
}

.company-member-cell small {
  color: var(--slate-500);
  font-size: 8.8px;
}

.access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-600);
  font-size: 9.8px;
}

.access-toggle input {
  accent-color: var(--teal-600);
}

.loading-inline {
  padding: 12px;
  color: var(--slate-500);
  font-size: 10px;
  text-align: center;
}

.company-logo-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.company-logo-preview {
  display: grid;
  width: 150px;
  height: 88px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--slate-400);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: white;
  border: 1px dashed var(--slate-300);
  border-radius: 10px;
}

.company-logo-preview img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.company-logo-controls {
  min-width: 0;
}

.company-logo-controls > strong {
  display: block;
  font-size: 11.5px;
}

.company-logo-controls p {
  margin: 4px 0 9px;
  color: var(--slate-500);
  font-size: 9.8px;
  line-height: 1.45;
}

.company-logo-controls > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.company-logo-controls > small {
  display: block;
  margin-top: 7px;
  color: var(--slate-500);
  font-size: 8.8px;
}

.company-logo-upload {
  cursor: pointer;
}

@media (max-width: 560px) {
  .company-logo-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-logo-preview {
    width: 100%;
  }
}

.user-editor-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.user-editor-heading h3 {
  margin: 0;
  font-size: 18px;
}

.user-editor-heading .button {
  margin-left: auto;
}

.role-guidance {
  margin-top: 15px;
  padding: 11px 12px;
  color: var(--teal-700);
  font-size: 10.5px;
  line-height: 1.45;
  background: var(--teal-100);
  border-radius: 9px;
}

@media (max-width: 1120px) {
  .user-menu-copy,
  .user-menu-chevron {
    display: none;
  }
}

@media (max-width: 620px) {
  .users-dialog-surface {
    min-height: auto;
    padding: 18px;
  }

  .users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .users-toolbar .button {
    margin-left: 0;
  }

  .users-table-wrap th:nth-child(3),
  .users-table-wrap td:nth-child(3) {
    display: none;
  }

  .profile-photo-editor {
    align-items: flex-start;
  }
}

.invitation-result {
  margin-top: 15px;
  padding: 13px;
  color: var(--slate-700);
  background: var(--amber-100);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 10px;
}

.invitation-result > strong {
  font-size: 11px;
}

.invitation-result > p {
  margin: 4px 0 10px;
  color: #7b5a18;
  font-size: 10px;
}

.invitation-result > div {
  display: flex;
  gap: 7px;
}

.invitation-result input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  color: var(--slate-700);
  font-size: 9.5px;
  background: white;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 8px;
}

.invite-card {
  width: min(470px, 100%);
  padding: 42px;
  text-align: center;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 61, 93, 0.15);
}

.invite-card > img {
  width: 190px;
  height: 92px;
  margin-bottom: 25px;
  object-fit: contain;
}

.invite-card h1 {
  font-size: 28px;
}

.invite-card > p:not(.eyebrow) {
  margin: 10px 0 25px;
  color: var(--slate-500);
  font-size: 12.5px;
  line-height: 1.6;
}

.invite-card form {
  display: grid;
  gap: 16px;
  margin-top: 25px;
  text-align: left;
}

@media (max-width: 540px) {
  .invite-card {
    padding: 30px 22px;
  }

  .invitation-result > div {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .people-sync-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column-reverse;
    margin-left: 0;
  }

  .people-sync-actions .button {
    width: 100%;
  }

  .people-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-period-field {
    grid-column: 1 / -1;
  }

  .people-filter-panel .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .people-filter-panel {
    grid-template-columns: 1fr;
  }

  .people-period-field {
    grid-column: auto;
  }

  .people-filter-panel .button {
    grid-column: auto;
  }

  .person-hours-item summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .person-summary-copy {
    flex: 1 1 calc(100% - 54px);
  }

  .person-hours-total {
    margin-left: 50px;
  }

  .person-hours-detail {
    padding-left: 14px;
  }
}
