:root {
  --bg: #f5f7f4;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #d9dee7;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --green: #0f8f9f;
  --green-dark: #2563eb;
  --gold: #9ca3af;
  --coral: #ef5b3f;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(90deg, #0f2118 0 280px, #f7f9f7 280px 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.8fr);
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: 54px;
  background:
    linear-gradient(120deg, rgba(18, 63, 43, 0.94), rgba(47, 111, 143, 0.74)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--green), var(--gold));
  color: white;
  font-weight: 900;
}

.brand-lockup strong {
  display: block;
  font-size: 20px;
}

.brand-lockup span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.login-copy {
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 58px;
  max-width: 700px;
}

.login-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.login-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.login-panel {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 48px;
  background: var(--surface);
}

.login-card {
  width: min(100%, 440px);
  margin: 0 auto;
}

.login-card h2 {
  margin: 34px 0 8px;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.atlas-startup-screen {
  align-items: center;
  background: var(--erp-bg, #e9edf2);
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.startup-card {
  max-width: 380px;
  padding: 26px;
  text-align: left;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.login-logo {
  display: block;
  flex: 0 0 auto;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.login-brand span {
  color: var(--erp-blue-dark, #0b1f3f);
  font-size: 14px;
  font-weight: 900;
}

.startup-card h1 {
  color: var(--erp-blue-dark, #0b1f3f);
  font-size: 28px;
  margin: 22px 0 8px;
}

.startup-card p {
  color: var(--muted, #607087);
  margin: 0;
}

.login-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: #34423b;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfa;
  color: var(--ink);
  outline: none;
  padding: 0 15px;
}

.field textarea {
  min-height: 110px;
  padding-top: 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(31, 122, 77, 0.12);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 20px;
  background: var(--green-dark);
  color: white;
  box-shadow: 0 18px 34px rgba(18, 63, 43, 0.22);
}

.secondary-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.ghost-btn,
.icon-btn {
  background: transparent;
  color: var(--muted);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: white;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.hint {
  margin-top: 18px;
  border: 1px solid #e7d5a5;
  border-radius: 16px;
  background: #fff7df;
  padding: 14px;
  color: #634a15;
  font-size: 13px;
  line-height: 1.6;
}

.error {
  display: none;
  margin: 10px 0 16px;
  border: 1px solid #f0b7b0;
  border-radius: 14px;
  background: #fff0ef;
  color: #a23b31;
  padding: 12px 14px;
  font-size: 14px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: linear-gradient(90deg, #0f2118 0 280px, #f7f9f7 280px 100%);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--line);
  background: #0f2118;
  color: white;
  padding: 24px;
}

.sidebar .brand-mark {
  width: 44px;
  height: 44px;
}

.sidebar .brand-lockup {
  flex-shrink: 0;
}

.nav {
  display: grid;
  flex: 1;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.38) transparent;
}

.nav::-webkit-scrollbar {
  width: 6px;
}

.nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 0 13px;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}

.main {
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 24% 8%, rgba(217, 164, 65, 0.16), transparent 24%),
    radial-gradient(circle at 94% 18%, rgba(47, 111, 143, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f9f6 0%, #edf3ee 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.topbar p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  padding: 18px;
  box-shadow: 0 20px 46px rgba(23, 32, 27, 0.06);
}

.kpi.green {
  border-color: #c9dfd1;
  background: linear-gradient(145deg, #f2faf4, #ffffff);
}

.kpi.blue {
  border-color: #c8dce6;
  background: linear-gradient(145deg, #eef7fb, #ffffff);
}

.kpi.gold {
  border-color: #ead9a8;
  background: linear-gradient(145deg, #fff8e3, #ffffff);
}

.kpi.coral {
  border-color: #edc6c0;
  background: linear-gradient(145deg, #fff1ef, #ffffff);
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.kpi strong {
  display: block;
  margin-top: 14px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-body {
  padding: 18px 20px 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  padding: 12px 10px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table td {
  border-top: 1px solid var(--line);
  padding: 14px 10px;
  vertical-align: top;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--green-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.tag.gold {
  background: #fff4d8;
  color: #7c5817;
}

.tag.coral {
  background: #fff0ee;
  color: #9c3c32;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece7;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.stack {
  display: grid;
  gap: 12px;
}

.session-card,
.dossier-card,
.email-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfcfa;
}

.session-card {
  border-color: #c8dce6;
  background: linear-gradient(145deg, #f2f9fc, #ffffff);
}

.session-card.public-card {
  border-color: #c9dfd1;
  background: linear-gradient(145deg, #f2faf4, #ffffff);
}

.session-card.private-card {
  border-color: #ead9a8;
  background: linear-gradient(145deg, #fff8e3, #ffffff);
}

.dossier-card {
  border-color: #ead9a8;
  background: linear-gradient(145deg, #fff9ea, #ffffff);
}

.dossier-card.warning {
  border-color: #edc6c0;
  background: linear-gradient(145deg, #fff1ef, #ffffff);
}

.atlas-page {
  display: grid;
  gap: 22px;
}

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: 24px;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(18, 63, 43, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 33, 24, 0.94), rgba(18, 63, 43, 0.86)),
    radial-gradient(circle at 85% 20%, rgba(217, 164, 65, 0.34), transparent 28%);
  color: #ffffff;
  padding: clamp(28px, 4vw, 54px);
  box-shadow: 0 34px 90px rgba(15, 33, 24, 0.2);
}

.atlas-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 840px;
}

.atlas-brand-mark {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 13px;
  color: #f3d68a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-hero h1 {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.atlas-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.atlas-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.atlas-hero-actions .primary-btn {
  background: #ffffff;
  color: #123f2b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.atlas-hero-actions .secondary-btn {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.atlas-hero-panel {
  display: grid;
  align-content: end;
  gap: 12px;
}

.atlas-score-card,
.atlas-score-grid article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  padding: 18px;
  backdrop-filter: blur(16px);
}

.atlas-score-card span,
.atlas-score-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.atlas-score-card strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 58px;
  line-height: 1;
}

.atlas-score-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

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

.atlas-score-grid strong {
  display: block;
  margin-top: 8px;
  color: #f3d68a;
  font-size: 26px;
}

.atlas-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.atlas-section-head h2,
.atlas-story-panel h2 {
  margin: 0;
  color: #101711;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.atlas-section-head p,
.atlas-story-panel p {
  margin: 7px 0 0;
  color: #66746d;
  line-height: 1.55;
}

.atlas-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.atlas-module-card {
  display: grid;
  min-height: 190px;
  border: 1px solid #dbe5df;
  border-radius: 22px;
  background: #ffffff;
  padding: 17px;
  text-align: left;
  box-shadow: 0 22px 58px rgba(20, 30, 24, 0.08);
}

.atlas-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 66px rgba(20, 30, 24, 0.14);
}

.atlas-module-card span {
  color: #142119;
  font-size: 15px;
  font-weight: 900;
}

.atlas-module-card strong {
  margin-top: 14px;
  color: #142119;
  font-size: 38px;
  line-height: 1;
}

.atlas-module-card em {
  color: #6f7d76;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.atlas-module-card p {
  align-self: end;
  margin: 18px 0 0;
  color: #62706a;
  font-size: 12px;
  line-height: 1.55;
}

.atlas-module-card.green {
  background: linear-gradient(145deg, #f2faf4, #ffffff);
}

.atlas-module-card.blue {
  background: linear-gradient(145deg, #eef7fb, #ffffff);
}

.atlas-module-card.gold {
  background: linear-gradient(145deg, #fff8e3, #ffffff);
}

.atlas-module-card.coral {
  background: linear-gradient(145deg, #fff1ef, #ffffff);
}

.atlas-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 16px;
}

.atlas-story-panel {
  border: 1px solid #dbe5df;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: 22px;
  box-shadow: 0 20px 52px rgba(20, 30, 24, 0.08);
}

.atlas-story-panel.dark {
  border-color: #123f2b;
  background: #123f2b;
  color: #ffffff;
}

.atlas-story-panel.dark h2 {
  color: #ffffff;
}

.atlas-story-panel.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.atlas-story-panel.dark .secondary-btn {
  margin-top: 18px;
  border-color: rgba(255, 255, 255, 0.22);
  background: #ffffff;
  color: #123f2b;
}

.atlas-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.atlas-flow span {
  border-radius: 999px;
  background: #eef5f1;
  color: #123f2b;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 850;
}

/* Atlas Asana-inspired application shell */
:root {
  --bg: #f8f7f5;
  --ink: #1f2329;
  --muted: #6b6f76;
  --line: #e6e3df;
  --surface: #ffffff;
  --surface-2: #f3f2ef;
  --green: #2fb344;
  --green-dark: #1f7a4d;
  --gold: #f2b84b;
  --coral: #ff6b5f;
  --blue: #35b7c6;
  --shadow: 0 18px 48px rgba(31, 35, 41, 0.08);
}

body {
  background: #f8f7f5;
  color: var(--ink);
}

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f8f7f5;
  transition: grid-template-columns 180ms ease;
}

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

.sidebar {
  gap: 16px;
  border-right: 1px solid #ece9e5;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2329;
  padding: 16px 14px;
  box-shadow: 8px 0 26px rgba(31, 35, 41, 0.04);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
}

.sidebar .brand-lockup {
  min-width: 0;
}

.sidebar .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff6b5f, #f2b84b);
  box-shadow: 0 12px 22px rgba(255, 107, 95, 0.24);
}

.sidebar .brand-lockup strong {
  color: #1f2329;
  font-size: 17px;
}

.sidebar .brand-lockup span {
  color: #7b7f86;
  font-size: 12px;
}

.sidebar-toggle {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e5e2dd;
  border-radius: 10px;
  background: #ffffff;
  color: #4f545b;
  font-weight: 900;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #e5e2dd;
  border-radius: 12px;
  background: #fbfaf8;
  padding: 0 10px;
}

.sidebar-search span {
  color: #8b8f96;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #1f2329;
  outline: none;
  font-size: 13px;
}

.nav {
  gap: 4px;
  padding-right: 0;
  scrollbar-color: #cfcac3 transparent;
}

.nav::-webkit-scrollbar-thumb {
  background: #cfcac3;
}

.nav button {
  gap: 10px;
  min-height: 40px;
  border-radius: 11px;
  color: #565b63;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 750;
}

.nav button.active,
.nav button:hover {
  background: #f0efeb;
  color: #1f2329;
}

.nav button.active {
  box-shadow: inset 3px 0 0 #ff6b5f;
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.nav-icon.tone-1 { background: #ff6b5f; }
.nav-icon.tone-2 { background: #35b7c6; }
.nav-icon.tone-3 { background: #8f7cf6; }
.nav-icon.tone-4 { background: #2fb344; }
.nav-icon.tone-5 { background: #f2b84b; }
.nav-icon.tone-6 { background: #3d8bfd; }

.nav-empty {
  margin: 8px 6px;
  color: #8b8f96;
  font-size: 12px;
}

.sidebar-footer {
  border-top: 1px solid #ece9e5;
  padding-top: 12px;
}

.sidebar-footer .muted {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
  color: #1f2329;
  font-size: 12px;
}

.sidebar-footer .muted span {
  color: #8b8f96;
}

.sidebar-footer .secondary-btn {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  font-size: 12px;
}

.sidebar-collapsed .sidebar {
  padding-inline: 12px;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .sidebar-search,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-footer .muted,
.sidebar-collapsed .sidebar-footer .secondary-btn {
  display: none;
}

.sidebar-collapsed .sidebar-head,
.sidebar-collapsed .nav button {
  justify-content: center;
}

.sidebar-collapsed .brand-lockup {
  justify-content: center;
}

.sidebar-collapsed .sidebar-toggle {
  position: absolute;
  top: 58px;
  right: -14px;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(31, 35, 41, 0.12);
}

.main {
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 95, 0.06), transparent 28%),
    linear-gradient(180deg, #fbfaf8 0%, #f3f2ef 100%);
}

.topbar,
.prospect-topbar {
  border: 1px solid rgba(230, 227, 223, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  box-shadow: 0 12px 34px rgba(31, 35, 41, 0.05);
}

.simple-sessions .prospect-topbar {
  margin-bottom: 18px;
}

.topbar h1,
.simple-sessions .prospect-topbar h1,
.simple-prospects .prospect-topbar h1 {
  color: #1f2329;
  letter-spacing: -0.045em;
}

.topbar p,
.simple-sessions .prospect-topbar p,
.simple-prospects .prospect-topbar p {
  color: #6b6f76;
}

.panel,
.kpi,
.accounting-panel,
.settings-panel,
.incomplete-panel,
.employee-card,
.detail-tile {
  border-color: #e6e3df !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 14px 38px rgba(31, 35, 41, 0.06) !important;
}

.prospect-table-wrap,
.accounting-table-wrap,
.simple-sessions .prospect-table-wrap {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 35, 41, 0.04);
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-mini-table th {
  color: #747980;
  background: #fbfaf8;
  font-weight: 760;
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-mini-table td {
  color: #4f545b;
}

.session-table tbody tr:nth-child(4n + 1) td,
.cash-table tbody tr:nth-child(4n + 1) td {
  background: #ffffff;
}

.session-table tbody tr:nth-child(4n + 2) td,
.cash-table tbody tr:nth-child(4n + 2) td {
  background: #fbfaf8;
}

.session-table tbody tr:nth-child(4n + 3) td,
.cash-table tbody tr:nth-child(4n + 3) td {
  background: #ffffff;
}

.primary-btn {
  border-radius: 10px;
  background: #ff6b5f;
  box-shadow: 0 14px 28px rgba(255, 107, 95, 0.22);
}

.secondary-btn {
  border-radius: 10px;
  border-color: #e1ded9;
  background: #ffffff;
}

.field input,
.field select,
.field textarea,
.client-filter-bar input,
.client-filter-bar select {
  border-color: #e1ded9;
  border-radius: 10px;
  background: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #ff6b5f;
  box-shadow: 0 0 0 2px rgba(255, 107, 95, 0.12);
}

.email-card {
  border-color: #d4d1ea;
  background: linear-gradient(145deg, #f6f4ff, #ffffff);
}

.prospect-card {
  border: 1px solid #cbdde0;
  border-radius: 18px;
  background: linear-gradient(145deg, #eef8f7, #ffffff);
  padding: 16px;
}

.prospect-page {
  min-height: calc(100vh - 56px);
  border: 1px solid rgba(219, 226, 220, 0.8);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(31, 122, 77, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 247, 0.9));
  box-shadow: 0 24px 70px rgba(23, 32, 27, 0.08);
  padding: 34px 38px 28px;
}

.prospect-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.prospect-topbar h1 {
  margin: 0;
  color: #101711;
  font-size: clamp(38px, 4.5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.prospect-topbar p {
  max-width: 820px;
  margin: 12px 0 0;
  color: #6d7a74;
  font-size: 14px;
  line-height: 1.5;
}

.prospect-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.prospect-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 22px;
}

.filter-chip {
  min-height: 30px;
  border: 1px solid rgba(188, 199, 193, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #77827c;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 750;
}

.filter-chip.active {
  border-color: rgba(31, 122, 77, 0.5);
  background: #123f2b;
  color: white;
}

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

.prospect-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: separate;
  border-spacing: 0;
}

.prospect-table thead th {
  border-top: 1px solid #bac4bf;
  border-bottom: 1px solid #bac4bf;
  color: #8a928e;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 8px 14px;
  text-align: left;
}

.prospect-table thead th:first-child {
  border-left: 1px solid #bac4bf;
  border-bottom-left-radius: 14px;
  border-top-left-radius: 14px;
}

.prospect-table thead th:last-child {
  border-right: 1px solid #bac4bf;
  border-bottom-right-radius: 14px;
  border-top-right-radius: 14px;
}

.prospect-table tbody td {
  color: #87908b;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 14px;
  vertical-align: middle;
}

.prospect-table tbody tr {
  background: rgba(255, 255, 255, 0.56);
}

.prospect-table tbody tr:nth-child(4n + 1) {
  background: rgba(239, 248, 241, 0.78);
}

.prospect-table tbody tr:nth-child(4n + 2) {
  background: rgba(239, 247, 251, 0.78);
}

.prospect-table tbody tr:nth-child(4n + 3) {
  background: rgba(255, 248, 227, 0.7);
}

.prospect-table tbody tr:hover {
  background: #ffffff;
  box-shadow: inset 4px 0 0 rgba(31, 122, 77, 0.45);
}

.prospect-table tbody tr:first-child td {
  padding-top: 14px;
}

.prospect-name {
  color: #7d8782;
  display: block;
  max-width: 210px;
  font-weight: 500;
}

.prospect-sub {
  display: block;
  max-width: 250px;
  margin-top: 2px;
  color: #a0aaa5;
  font-size: 10px;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 7px;
  padding: 0 7px;
  color: #171b14;
  font-size: 11px;
  font-weight: 650;
}

.status-pill.active {
  background: #ffdd4d;
}

.status-pill.inactive {
  background: #e5e8e5;
  color: #69726d;
}

.temperature {
  display: block;
  max-width: 130px;
  margin-top: 3px;
  font-size: 9px;
  color: #a0aaa5;
}

.action-text {
  display: block;
  max-width: 170px;
  color: #58655f;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.late-text {
  display: block;
  margin-top: 3px;
  color: #a0aaa5;
  font-size: 9px;
}

.score-badge {
  display: inline-grid;
  min-width: 38px;
  min-height: 28px;
  place-items: center;
  border-radius: 10px;
  background: #e8f3ec;
  color: #1f6744;
  font-size: 12px;
  font-weight: 900;
}

.score-badge.medium {
  background: #fff4d8;
  color: #7c5817;
}

.score-badge.low {
  background: #fff0ee;
  color: #9c3c32;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.enroll-zone {
  position: relative;
}

.enroll-btn,
.close-prospect-btn,
.view-prospect-btn {
  min-height: 28px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(20, 30, 24, 0.12);
}

.enroll-btn {
  background: #4d73e7;
}

.close-prospect-btn {
  background: #ff3030;
}

.view-prospect-btn {
  background: #1f7a4d;
}

.edit-prospect-btn {
  background: #2f6f8f;
}

.enroll-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: none;
  width: 250px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 22px 54px rgba(15, 24, 19, 0.18);
  padding: 8px;
}

.enroll-menu.open {
  display: grid;
  gap: 6px;
}

.enroll-menu button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: #f6f8f6;
  color: #4e5a55;
  padding: 10px;
  text-align: left;
  font-size: 11px;
  line-height: 1.35;
}

.enroll-menu button:hover {
  background: #edf4ef;
  color: var(--green-dark);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.pagination span {
  color: #87908b;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: none;
  width: min(420px, calc(100vw - 48px));
  border: 1px solid #bddfc8;
  border-radius: 18px;
  background: #f1fbf3;
  color: #20452e;
  box-shadow: 0 22px 60px rgba(15, 24, 19, 0.2);
  padding: 16px;
}

.toast.show {
  display: block;
}

.toast strong {
  display: block;
  margin-bottom: 5px;
  color: #123f2b;
}

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

.detail-tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #f7faf7, #ffffff);
  min-width: 0;
  overflow: hidden;
  padding: 13px;
}

.detail-tile span {
  display: block;
  margin-bottom: 6px;
  color: #8a928e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-tile strong,
.detail-tile p {
  margin: 0;
  color: #53605a;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-showcase {
  overflow: hidden;
  border: 1px solid #e0e8ee;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(28, 38, 54, 0.08);
}

.profile-cover {
  min-height: 118px;
  background:
    linear-gradient(120deg, rgba(6, 30, 64, 0.88), rgba(16, 129, 135, 0.78)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1400&q=82");
  background-position: center;
  background-size: cover;
}

.profile-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 22px 16px;
  margin-top: -34px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #115d75, #f2b257);
  box-shadow: 0 18px 38px rgba(9, 26, 49, 0.22);
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title {
  min-width: 0;
  align-self: end;
  padding-top: 30px;
}

.profile-title h2 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.profile-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.profile-chip {
  align-self: center;
  border-radius: 999px;
  background: #e8f7f2;
  color: #11694f;
  font-size: 12px;
  font-weight: 850;
  padding: 9px 13px;
}

.profile-info-table-wrap {
  margin: 0 22px 22px;
  overflow: hidden;
  border: 1px solid #dce7ec;
  border-radius: 14px;
}

.profile-info-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.profile-info-table tr {
  border-bottom: 1px solid #e8eef2;
}

.profile-info-table tr:last-child {
  border-bottom: 0;
}

.profile-info-table th,
.profile-info-table td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}

.profile-info-table th {
  width: 30%;
  background: #f4f8fb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-info-table td {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.history-item {
  border-left: 2px solid var(--green);
  background: #f6f9f6;
  border-radius: 0 12px 12px 0;
  padding: 9px 11px;
  color: #68746e;
  font-size: 11px;
  line-height: 1.45;
}

.panel.sessions-panel {
  border-color: #c8dce6;
}

.panel.dossiers-panel {
  border-color: #ead9a8;
}

.panel.public-panel {
  border-color: #c9dfd1;
}

.panel.prospects-panel {
  border-color: #cbdde0;
}

.success {
  display: none;
  margin: 10px 0 16px;
  border: 1px solid #bddfc8;
  border-radius: 14px;
  background: #effaf2;
  color: #20613d;
  padding: 12px 14px;
  font-size: 14px;
}

.session-card h3,
.dossier-card h3,
.email-card h3 {
  margin: 0 0 8px;
}

.syllabus {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(15, 24, 19, 0.54);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(760px, 100%);
  max-height: min(86vh, 840px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: 0 30px 90px rgba(15, 24, 19, 0.28);
}

#billing-detail-modal .modal {
  width: min(1080px, 100%);
}

#billing-detail-modal .modal-header {
  position: static;
  align-items: flex-start;
  flex-wrap: wrap;
}

#billing-detail-modal .modal-header > div:first-child {
  min-width: 260px;
}

#billing-detail-modal .modal-header-actions {
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 320px;
}

.billing-document-view {
  overflow: auto;
  border-radius: 16px;
  background: #f3f5f4;
  padding: 18px;
}

.billing-document-view .billing-print-page {
  box-shadow: 0 18px 50px rgba(15, 24, 19, 0.14);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 18px 20px;
  backdrop-filter: blur(10px);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.modal-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  overflow-x: hidden;
  padding: 20px;
}

.inline-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid #ead9a8;
  border-radius: 14px;
  background: #fff7df;
  color: #4d4934;
  padding: 10px 12px;
  font-size: 12px;
}

.inline-alert strong {
  color: #18221c;
}

.inline-alert span {
  color: #6e6a58;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 1050px) {
  .login-page,
  .app-shell,
  .grid-2,
  .public-layout,
  .employee-layout,
  .employee-detail-grid,
  .employee-subgrid,
  .presence-grid,
  .presence-controls,
  .presence-identity,
  .presence-kpis,
  .payroll-kpis,
  .rh-subnav,
  .settings-subnav,
  .settings-grid,
  .settings-currency-row,
  .accounting-kpis,
  .accounting-grid,
  .accounting-list article,
  .rh-notification-card {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 430px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

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

@media (max-width: 640px) {
  .main,
  .login-panel,
  .login-visual {
    padding: 24px;
  }

  .login-copy {
    left: 24px;
    right: 24px;
    bottom: 28px;
  }

  .kpi-grid,
  .form-grid,
  .employee-kpis,
  .employee-card,
  .employee-metric-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Simplified prospect table */
.prospect-page.simple-prospects {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 30px 34px;
}

.simple-prospects .prospect-topbar {
  margin-bottom: 22px;
}

.simple-prospects .prospect-topbar h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.simple-prospects .prospect-topbar p {
  font-size: 13px;
}

.simple-prospects .prospect-table {
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.simple-prospects .prospect-table th {
  border-top: 1px solid #bac4bf;
  border-bottom: 1px solid #bac4bf;
  color: #7d8882;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  text-align: left;
}

.simple-prospects .prospect-table th:first-child {
  border-left: 1px solid #bac4bf;
  border-bottom-left-radius: 14px;
  border-top-left-radius: 14px;
}

.simple-prospects .prospect-table th:last-child {
  border-right: 1px solid #bac4bf;
  border-bottom-right-radius: 14px;
  border-top-right-radius: 14px;
}

.simple-prospects .prospect-table td {
  border: 0;
  background: transparent;
  color: #8a948f;
  font-size: 11px;
  font-weight: 400;
  padding: 10px 12px;
}

.simple-prospects .prospect-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.38);
}

.simple-prospects .prospect-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.86);
}

/* Prospect visual format inspired by the reference screen */
.main {
  background: #f7f9f7;
}

.prospect-page.simple-prospects {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 28px;
}

.simple-prospects .prospect-topbar {
  align-items: flex-start;
  margin-bottom: 42px;
}

.simple-prospects .prospect-topbar h1 {
  color: #101711;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.simple-prospects .prospect-topbar p {
  max-width: 830px;
  margin-top: 14px;
  color: #6f7d76;
  font-size: 17px;
  line-height: 1.55;
}

.simple-prospects .prospect-actions {
  max-width: 720px;
  padding-top: 6px;
  gap: 8px;
}

.simple-prospects .prospect-actions .primary-btn {
  min-height: 36px;
  border-radius: 11px;
  background: #0f432d;
  padding: 0 16px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(15, 67, 45, 0.16);
}

.simple-prospects .prospect-actions .secondary-btn {
  min-height: 34px;
  border-color: #dde4df;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.74);
  color: #1f2a24;
  padding: 0 12px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: none;
}

.simple-prospects .prospect-table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.simple-prospects .prospect-table th {
  border-top: 1px solid #bac4bf;
  border-bottom: 1px solid #bac4bf;
  background: transparent;
  color: #8a948f;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 22px;
  text-align: left;
}

.simple-prospects .prospect-table th:first-child {
  border-left: 1px solid #bac4bf;
  border-bottom-left-radius: 14px;
  border-top-left-radius: 14px;
}

.simple-prospects .prospect-table th:last-child {
  border-right: 1px solid #bac4bf;
  border-bottom-right-radius: 14px;
  border-top-right-radius: 14px;
}

.simple-prospects .prospect-table td {
  border: 0;
  background: transparent !important;
  color: #89938e;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 22px;
  vertical-align: middle;
}

.simple-prospects .prospect-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.42) !important;
}

.simple-prospects .prospect-name {
  color: #7f8984;
  font-size: 12px;
  font-weight: 500;
}

.simple-prospects .prospect-sub {
  color: #9fa9a4;
  font-size: 10px;
  line-height: 1.35;
}

.simple-prospects .status-pill {
  min-height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 12px;
}

.simple-prospects .row-actions {
  gap: 10px;
}

.simple-prospects .row-actions > span {
  display: none;
}

.simple-prospects .enroll-btn,
.simple-prospects .view-prospect-btn,
.simple-prospects .close-prospect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 32px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 30, 24, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.simple-prospects .enroll-btn {
  background: var(--atlas-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--atlas-bluegreen);
}

.simple-prospects .close-prospect-btn {
  background: var(--atlas-danger);
}

.simple-prospects .enroll-btn:hover,
.simple-prospects .view-prospect-btn:hover,
.simple-prospects .close-prospect-btn:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 14px 26px rgba(20, 30, 24, 0.18);
}

/* Final strict palette guard. */
body {
  background: linear-gradient(90deg, var(--atlas-gray-100) 0 280px, #f7f9f7 280px 100%);
}

.primary-btn,
.session-action-btn.view,
.session-action-btn.edit,
.session-action-btn.report,
.enroll-btn,
.accounting-link-btn,
.atlas-hero-actions .primary-btn {
  border-color: var(--atlas-blue);
  background: var(--atlas-blue);
  color: var(--atlas-white);
}

.secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn.delay,
.view-prospect-btn,
.atlas-hero-actions .secondary-btn,
.atlas-intro-section .secondary-btn,
.atlas-feature-band .secondary-btn {
  border-color: rgba(15, 143, 159, 0.28);
  background: var(--atlas-white);
  color: var(--atlas-bluegreen-dark);
}

.secondary-btn.danger-soft,
.session-action-btn.close,
.close-prospect-btn {
  border-color: rgba(239, 91, 63, 0.24);
  background: var(--atlas-danger);
  color: var(--atlas-white);
}

.cash-status-badge.pending,
.status-pill.pending,
.presence-badge.pending,
.tag.pending {
  border-color: var(--atlas-gray-300);
  background: var(--atlas-gray-100);
  color: var(--atlas-gray-800);
}

.cash-status-badge.paid,
.status-pill.active,
.presence-badge.present,
.tag.active,
.employee-status.active,
.client-state-chip.active {
  border-color: rgba(15, 143, 159, 0.24);
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.cash-status-badge.rejected,
.status-pill.inactive,
.presence-badge.absent {
  border-color: rgba(239, 91, 63, 0.24);
  background: rgba(239, 91, 63, 0.1);
  color: var(--atlas-danger);
}

.atlas-page .atlas-hero::before,
.atlas-page .atlas-product-top,
.atlas-page .atlas-final-cta,
.brand-mark,
.atlas-logo-mark,
.nav-icon,
.commercial-avatar {
  background: linear-gradient(145deg, var(--atlas-blue), var(--atlas-bluegreen));
  color: var(--atlas-white);
}

.atlas-page .atlas-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 143, 159, 0.16), transparent 34%),
    linear-gradient(135deg, var(--atlas-white) 0 38%, var(--atlas-gray-100) 38% 100%);
}

.atlas-page .atlas-module-card,
.atlas-page .atlas-intro-section,
.atlas-page .atlas-showcase-section,
.atlas-page .atlas-feature-band {
  border-color: var(--atlas-gray-200);
  background: var(--atlas-white);
}

.atlas-page .atlas-module-card span {
  background: var(--atlas-blue-soft);
  color: var(--atlas-blue-dark);
}

.atlas-page .atlas-module-card.cyan span,
.atlas-page .atlas-module-card.mint span {
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.atlas-page .atlas-final-cta h2,
.atlas-page .atlas-final-cta p {
  color: var(--atlas-white);
}

.atlas-page .atlas-final-cta .primary-btn {
  border-color: var(--atlas-white);
  background: var(--atlas-white);
  color: var(--atlas-blue);
}

.simple-prospects .enroll-btn {
  background: var(--atlas-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--atlas-bluegreen);
}

.simple-prospects .close-prospect-btn {
  background: var(--atlas-danger);
}

/* Keep the Atlas marketing page immune from older app-page overrides below the fold. */
.atlas-page .atlas-hero {
  border-radius: 0 0 42px 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 143, 159, 0.16), transparent 34%),
    linear-gradient(135deg, var(--atlas-white) 0 38%, var(--atlas-gray-100) 38% 100%);
}

.atlas-page .atlas-hero h1,
.atlas-page .atlas-intro-section h2,
.atlas-page .atlas-showcase-copy h2,
.atlas-page .atlas-feature-band h2 {
  color: #122033;
}

.atlas-page .atlas-hero p,
.atlas-page .atlas-intro-section p,
.atlas-page .atlas-showcase-copy p,
.atlas-page .atlas-feature-band p,
.atlas-page .atlas-module-card p {
  color: #66758a;
}

.atlas-page .atlas-module-card {
  background: #ffffff;
  color: #122033;
}

.atlas-page .atlas-final-cta {
  background: linear-gradient(135deg, var(--atlas-blue), var(--atlas-bluegreen));
}

.atlas-page .atlas-final-cta h2,
.atlas-page .atlas-final-cta p {
  color: #ffffff;
}

.atlas-page .atlas-final-cta .primary-btn {
  border-color: var(--atlas-white);
  background: var(--atlas-white);
  color: var(--atlas-blue);
}

@media (max-width: 720px) {
  .atlas-page .atlas-hero {
    border-radius: 0 0 28px 0;
    padding: 0;
  }

  .atlas-page .atlas-brand-lockup {
    color: var(--atlas-blue);
  }
}

/* ERP global palette guard: modules, sidebar search, buttons and status colors. */
:root {
  --erp-blue: #2563eb;
  --erp-blue-dark: #1d4ed8;
  --erp-blue-soft: #eff6ff;
  --erp-teal: #0f8f9f;
  --erp-teal-dark: #0f766e;
  --erp-teal-soft: #e9fbfd;
  --erp-gray-950: #111827;
  --erp-gray-800: #1f2937;
  --erp-gray-700: #374151;
  --erp-gray-600: #6b7280;
  --erp-gray-400: #9ca3af;
  --erp-gray-300: #d1d5db;
  --erp-gray-200: #e5e7eb;
  --erp-gray-100: #f3f4f6;
  --erp-bg: #f8f7f5;
  --erp-white: #ffffff;
  --erp-danger: #ef5b3f;
  --atlas-blue: var(--erp-blue);
  --atlas-blue-dark: var(--erp-blue-dark);
  --atlas-bluegreen: var(--erp-teal);
  --atlas-bluegreen-dark: var(--erp-teal-dark);
  --atlas-danger: var(--erp-danger);
}

body,
.app-shell,
.main {
  background: var(--erp-bg);
}

.sidebar,
.sidebar-search,
.sidebar-toggle,
.nav button,
.topbar,
.prospect-topbar,
.rh-shell-topbar,
.settings-topbar,
.accounting-topbar,
.panel,
.settings-panel,
.employee-panel,
.employee-card,
.client-card,
.dossier-card,
.email-card,
.detail-tile,
.accounting-panel,
.modal,
.prospect-table-wrap,
.presence-table-wrap,
.accounting-table-wrap {
  border-color: var(--erp-gray-200);
}

.sidebar {
  background: rgba(255, 255, 255, 0.96);
  color: var(--erp-gray-800);
}

.sidebar-search {
  background: var(--erp-white);
}

.sidebar-search:focus-within {
  border-color: var(--erp-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* Compact table headers across ERP modules. */
.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th,
.billing-print-table th {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.billing-print-table td {
  padding: 10px 12px;
}

/* Forecast page: keep the status column visible in the card. */
.accounting-table-wrap .forecast-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.accounting-table-wrap .forecast-table th,
.accounting-table-wrap .forecast-table td {
  padding: 9px 10px;
  white-space: normal;
}

.forecast-table th:nth-child(1),
.forecast-table td:nth-child(1) {
  width: 9%;
}

.forecast-table th:nth-child(2),
.forecast-table td:nth-child(2) {
  width: 21%;
}

.forecast-table th:nth-child(3),
.forecast-table td:nth-child(3) {
  width: 13%;
}

.forecast-table th:nth-child(4),
.forecast-table td:nth-child(4),
.forecast-table th:nth-child(5),
.forecast-table td:nth-child(5) {
  width: 10%;
}

.forecast-table th:nth-child(6),
.forecast-table td:nth-child(6) {
  width: 12%;
}

.forecast-table th:nth-child(7),
.forecast-table td:nth-child(7) {
  width: 13%;
}

.forecast-table th:nth-child(8),
.forecast-table td:nth-child(8) {
  width: 12%;
  text-align: center;
}

.forecast-status-btn {
  min-width: 88px;
  padding-inline: 8px;
}

/* Final forecast slider: keep extra columns accessible to the right. */
.forecast-page .accounting-panel {
  overflow: hidden;
}

.forecast-page .accounting-table-wrap {
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 12px;
  scrollbar-color: var(--erp-gray-400) var(--erp-gray-100);
  scrollbar-width: auto;
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar {
  height: 13px;
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--erp-gray-100);
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid var(--erp-gray-100);
  border-radius: 999px;
  background: var(--erp-gray-400);
}

.forecast-page .accounting-table-wrap .forecast-table {
  width: 1280px;
  min-width: 1280px;
  table-layout: auto;
}

.forecast-page .forecast-table th,
.forecast-page .forecast-table td {
  white-space: nowrap;
}

.forecast-page .forecast-table td:nth-child(2) {
  min-width: 230px;
  white-space: normal;
}

.forecast-page .forecast-table th:nth-child(8),
.forecast-page .forecast-table td:nth-child(8) {
  min-width: 150px;
}

.accounting-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.accounting-head-actions strong {
  white-space: nowrap;
}

/* Final forecast slider: keep extra columns accessible to the right. */
.forecast-page .accounting-panel {
  overflow: hidden;
}

.forecast-page .accounting-table-wrap {
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 12px;
  scrollbar-color: var(--erp-gray-400) var(--erp-gray-100);
  scrollbar-width: auto;
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar {
  height: 13px;
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--erp-gray-100);
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid var(--erp-gray-100);
  border-radius: 999px;
  background: var(--erp-gray-400);
}

.forecast-page .accounting-table-wrap .forecast-table {
  width: 1280px;
  min-width: 1280px;
  table-layout: auto;
}

.forecast-page .forecast-table th,
.forecast-page .forecast-table td {
  white-space: nowrap;
}

.forecast-page .forecast-table td:nth-child(2) {
  min-width: 230px;
  white-space: normal;
}

.forecast-page .forecast-table th:nth-child(8),
.forecast-page .forecast-table td:nth-child(8) {
  min-width: 150px;
}

/* Compact table headers across ERP modules. */
.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th,
.billing-print-table th {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.billing-print-table td {
  padding: 10px 12px;
}

.sidebar-search span,
.sidebar-search input::placeholder,
.muted,
.hint {
  color: var(--erp-gray-600);
}

.sidebar-search input,
.sidebar .brand-lockup strong,
.nav button,
.prospect-topbar h1,
.topbar h1,
.rh-shell-topbar h1,
.settings-topbar h1 {
  color: var(--erp-gray-800);
}

.brand-mark,
.sidebar .brand-mark,
.nav-icon,
.commercial-avatar,
.employee-photo-frame,
.atlas-logo-mark {
  background: linear-gradient(145deg, var(--erp-blue), var(--erp-teal));
  color: var(--erp-white);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.nav button.active,
.rh-subnav button.active,
.settings-subnav button.active,
.accounting-subnav button.active,
.presence-tabs button.active {
  background: var(--erp-blue-soft);
  color: var(--erp-blue-dark);
}

.primary-btn,
.prospect-actions .primary-btn,
.simple-sessions .prospect-actions .primary-btn,
.accounting-controls .primary-btn,
.session-action-btn.view,
.session-action-btn.edit,
.session-action-btn.report,
.enroll-btn,
.accounting-link-btn {
  border-color: var(--erp-blue);
  background: var(--erp-blue);
  color: var(--erp-white);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.secondary-btn,
.prospect-actions .secondary-btn,
.accounting-controls .secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn.delay,
.view-prospect-btn {
  border-color: rgba(15, 143, 159, 0.28);
  background: var(--erp-white);
  color: var(--erp-teal-dark);
  box-shadow: none;
}

.secondary-btn:hover,
.prospect-actions .secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.session-action-btn.delay:hover,
.view-prospect-btn:hover {
  border-color: var(--erp-teal);
  color: var(--erp-teal-dark);
}

.secondary-btn.danger-soft,
.session-action-btn.close,
.close-prospect-btn {
  border-color: rgba(239, 91, 63, 0.28);
  background: var(--erp-danger);
  color: var(--erp-white);
}

.status-pill,
.cash-status-badge,
.tag,
.presence-badge,
.presence-doc-status,
.client-state-chip,
.analysis-badge,
.employee-status,
.rh-lock-badge {
  border-color: transparent;
}

.cash-status-badge.pending,
.status-pill.pending,
.presence-badge.pending,
.tag.pending,
.presence-doc-status.pending {
  background: var(--erp-gray-100);
  color: var(--erp-gray-700);
}

.cash-status-badge.paid,
.status-pill.active,
.presence-badge.present,
.tag.active,
.employee-status.active,
.client-state-chip.active,
.presence-doc-status.ready {
  background: var(--erp-teal-soft);
  color: var(--erp-teal-dark);
}

.cash-status-badge.rejected,
.status-pill.inactive,
.presence-badge.absent,
.analysis-badge.high {
  background: rgba(239, 91, 63, 0.1);
  color: var(--erp-danger);
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th {
  background: var(--erp-gray-100);
  color: var(--erp-gray-600);
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td {
  color: var(--erp-gray-700);
}

.simple-prospects .enroll-btn {
  background: var(--erp-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--erp-teal);
}

.simple-prospects .close-prospect-btn {
  background: var(--erp-danger);
}

.atlas-page .atlas-hero::before,
.atlas-page .atlas-product-top,
.atlas-page .atlas-final-cta {
  background: linear-gradient(135deg, var(--erp-blue), var(--erp-teal));
}

.sidebar-search:focus-within {
  border-color: var(--erp-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* Final strict palette guard. */
body {
  background: linear-gradient(90deg, var(--atlas-gray-100) 0 280px, #f7f9f7 280px 100%);
}

.primary-btn,
.session-action-btn.view,
.session-action-btn.edit,
.session-action-btn.report,
.enroll-btn,
.accounting-link-btn,
.atlas-hero-actions .primary-btn {
  border-color: var(--atlas-blue);
  background: var(--atlas-blue);
  color: var(--atlas-white);
}

.secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn.delay,
.view-prospect-btn,
.atlas-hero-actions .secondary-btn,
.atlas-intro-section .secondary-btn,
.atlas-feature-band .secondary-btn {
  border-color: rgba(15, 143, 159, 0.28);
  background: var(--atlas-white);
  color: var(--atlas-bluegreen-dark);
}

.secondary-btn.danger-soft,
.session-action-btn.close,
.close-prospect-btn {
  border-color: rgba(239, 91, 63, 0.24);
  background: var(--atlas-danger);
  color: var(--atlas-white);
}

.cash-status-badge.pending,
.status-pill.pending,
.presence-badge.pending,
.tag.pending {
  border-color: var(--atlas-gray-300);
  background: var(--atlas-gray-100);
  color: var(--atlas-gray-800);
}

.cash-status-badge.paid,
.status-pill.active,
.presence-badge.present,
.tag.active,
.employee-status.active,
.client-state-chip.active {
  border-color: rgba(15, 143, 159, 0.24);
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.cash-status-badge.rejected,
.status-pill.inactive,
.presence-badge.absent {
  border-color: rgba(239, 91, 63, 0.24);
  background: rgba(239, 91, 63, 0.1);
  color: var(--atlas-danger);
}

.atlas-page .atlas-hero::before,
.atlas-page .atlas-product-top,
.atlas-page .atlas-final-cta,
.brand-mark,
.atlas-logo-mark,
.nav-icon,
.commercial-avatar {
  background: linear-gradient(145deg, var(--atlas-blue), var(--atlas-bluegreen));
  color: var(--atlas-white);
}

.atlas-page .atlas-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 143, 159, 0.16), transparent 34%),
    linear-gradient(135deg, var(--atlas-white) 0 38%, var(--atlas-gray-100) 38% 100%);
}

.atlas-page .atlas-module-card,
.atlas-page .atlas-intro-section,
.atlas-page .atlas-showcase-section,
.atlas-page .atlas-feature-band {
  border-color: var(--atlas-gray-200);
  background: var(--atlas-white);
}

.atlas-page .atlas-module-card span {
  background: var(--atlas-blue-soft);
  color: var(--atlas-blue-dark);
}

.atlas-page .atlas-module-card.cyan span,
.atlas-page .atlas-module-card.mint span {
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.atlas-page .atlas-final-cta h2,
.atlas-page .atlas-final-cta p {
  color: var(--atlas-white);
}

.atlas-page .atlas-final-cta .primary-btn {
  border-color: var(--atlas-white);
  background: var(--atlas-white);
  color: var(--atlas-blue);
}

.simple-prospects .enroll-btn {
  background: var(--atlas-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--atlas-bluegreen);
}

.simple-prospects .close-prospect-btn {
  background: var(--atlas-danger);
}

/* Final strict palette guard. */
body {
  background: linear-gradient(90deg, var(--atlas-gray-100) 0 280px, #f7f9f7 280px 100%);
}

.primary-btn,
.session-action-btn.view,
.session-action-btn.edit,
.session-action-btn.report,
.enroll-btn,
.accounting-link-btn,
.atlas-hero-actions .primary-btn {
  border-color: var(--atlas-blue);
  background: var(--atlas-blue);
  color: var(--atlas-white);
}

.secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn.delay,
.view-prospect-btn,
.atlas-hero-actions .secondary-btn,
.atlas-intro-section .secondary-btn,
.atlas-feature-band .secondary-btn {
  border-color: rgba(15, 143, 159, 0.28);
  background: var(--atlas-white);
  color: var(--atlas-bluegreen-dark);
}

.secondary-btn.danger-soft,
.session-action-btn.close,
.close-prospect-btn {
  border-color: rgba(239, 91, 63, 0.24);
  background: var(--atlas-danger);
  color: var(--atlas-white);
}

.cash-status-badge.pending,
.status-pill.pending,
.presence-badge.pending,
.tag.pending {
  border-color: var(--atlas-gray-300);
  background: var(--atlas-gray-100);
  color: var(--atlas-gray-800);
}

.cash-status-badge.paid,
.status-pill.active,
.presence-badge.present,
.tag.active,
.employee-status.active,
.client-state-chip.active {
  border-color: rgba(15, 143, 159, 0.24);
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.cash-status-badge.rejected,
.status-pill.inactive,
.presence-badge.absent {
  border-color: rgba(239, 91, 63, 0.24);
  background: rgba(239, 91, 63, 0.1);
  color: var(--atlas-danger);
}

.atlas-page .atlas-hero::before,
.atlas-page .atlas-product-top,
.atlas-page .atlas-final-cta,
.brand-mark,
.atlas-logo-mark,
.nav-icon,
.commercial-avatar {
  background: linear-gradient(145deg, var(--atlas-blue), var(--atlas-bluegreen));
  color: var(--atlas-white);
}

.atlas-page .atlas-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 143, 159, 0.16), transparent 34%),
    linear-gradient(135deg, var(--atlas-white) 0 38%, var(--atlas-gray-100) 38% 100%);
}

.atlas-page .atlas-module-card,
.atlas-page .atlas-intro-section,
.atlas-page .atlas-showcase-section,
.atlas-page .atlas-feature-band {
  border-color: var(--atlas-gray-200);
  background: var(--atlas-white);
}

.atlas-page .atlas-module-card span {
  background: var(--atlas-blue-soft);
  color: var(--atlas-blue-dark);
}

.atlas-page .atlas-module-card.cyan span,
.atlas-page .atlas-module-card.mint span {
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.atlas-page .atlas-final-cta h2,
.atlas-page .atlas-final-cta p {
  color: var(--atlas-white);
}

.atlas-page .atlas-final-cta .primary-btn {
  border-color: var(--atlas-white);
  background: var(--atlas-white);
  color: var(--atlas-blue);
}

.simple-prospects .enroll-btn {
  background: var(--atlas-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--atlas-bluegreen);
}

.simple-prospects .close-prospect-btn {
  background: var(--atlas-danger);
}

/* Strict product palette: blue, blue-green, gray, white, red-orange only. */
:root {
  --atlas-blue: #2563eb;
  --atlas-blue-dark: #1d4ed8;
  --atlas-blue-soft: #eff6ff;
  --atlas-bluegreen: #0f8f9f;
  --atlas-bluegreen-dark: #0f766e;
  --atlas-gray-950: #111827;
  --atlas-gray-800: #1f2937;
  --atlas-gray-600: #6b7280;
  --atlas-gray-300: #d1d5db;
  --atlas-gray-200: #e5e7eb;
  --atlas-gray-100: #f3f4f6;
  --atlas-white: #ffffff;
  --atlas-danger: #ef5b3f;
}

body {
  background: linear-gradient(90deg, var(--atlas-gray-100) 0 280px, #f7f9f7 280px 100%);
}

.brand-mark,
.atlas-logo-mark,
.nav-icon,
.commercial-avatar,
.employee-photo-frame,
.atlas-brand-lockup .atlas-logo-mark {
  background: linear-gradient(145deg, var(--atlas-blue), var(--atlas-bluegreen));
  color: var(--atlas-white);
}

.primary-btn,
.session-action-btn.view,
.session-action-btn.edit,
.session-action-btn.report,
.enroll-btn,
.accounting-link-btn,
.atlas-hero-actions .primary-btn {
  border-color: var(--atlas-blue);
  background: var(--atlas-blue);
  color: var(--atlas-white);
}

.secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn.delay,
.view-prospect-btn,
.atlas-hero-actions .secondary-btn,
.atlas-intro-section .secondary-btn,
.atlas-feature-band .secondary-btn {
  border-color: rgba(15, 143, 159, 0.28);
  background: var(--atlas-white);
  color: var(--atlas-bluegreen-dark);
}

.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.session-action-btn.delay:hover,
.view-prospect-btn:hover {
  border-color: var(--atlas-bluegreen);
  color: var(--atlas-bluegreen-dark);
}

.secondary-btn.danger-soft,
.session-action-btn.close,
.close-prospect-btn,
.cash-status-badge.rejected,
.status-pill.inactive,
.presence-badge.absent {
  border-color: rgba(239, 91, 63, 0.24);
  background: rgba(239, 91, 63, 0.1);
  color: var(--atlas-danger);
}

.cash-status-badge.pending,
.status-pill.pending,
.presence-badge.pending,
.tag.pending {
  border-color: var(--atlas-gray-300);
  background: var(--atlas-gray-100);
  color: var(--atlas-gray-800);
}

.cash-status-badge.paid,
.status-pill.active,
.presence-badge.present,
.tag.active,
.employee-status.active,
.client-state-chip.active {
  border-color: rgba(15, 143, 159, 0.24);
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.rh-subnav button.active,
.settings-subnav button.active,
.accounting-subnav button.active,
.presence-tabs button.active,
.primary-btn.active {
  background: var(--atlas-blue-soft);
  color: var(--atlas-blue-dark);
}

.sidebar,
.panel,
.settings-panel,
.employee-panel,
.employee-card,
.client-card,
.dossier-card,
.email-card,
.detail-tile,
.accounting-panel,
.rh-notification-card,
.currency-card,
.modal,
.atlas-intro-section,
.atlas-showcase-section,
.atlas-feature-band,
.atlas-module-card {
  border-color: var(--atlas-gray-200);
  background: var(--atlas-white);
  color: var(--atlas-gray-800);
}

.prospect-topbar,
.topbar,
.rh-shell-topbar,
.settings-topbar,
.accounting-topbar,
.rh-subnav,
.settings-subnav,
.accounting-subnav,
.presence-tabs,
.prospect-table-wrap,
.presence-table-wrap,
.accounting-table-wrap {
  border-color: var(--atlas-gray-200);
  background: var(--atlas-white);
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th {
  background: var(--atlas-gray-100);
  color: var(--atlas-gray-600);
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.muted,
.hint,
.field label {
  color: var(--atlas-gray-600);
}

.atlas-page {
  --atlas-blue: #2563eb;
  --atlas-blue-dark: #1d4ed8;
  --atlas-blue-soft: #eff6ff;
  --atlas-cyan: #0f8f9f;
  --atlas-mint: #0f8f9f;
  --atlas-ink: #111827;
  --atlas-muted: #6b7280;
  --atlas-line: #e5e7eb;
}

.atlas-page .atlas-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 143, 159, 0.16), transparent 34%),
    linear-gradient(135deg, var(--atlas-white) 0 38%, var(--atlas-gray-100) 38% 100%);
}

.atlas-page .atlas-hero::before,
.atlas-page .atlas-product-top,
.atlas-page .atlas-final-cta {
  background: linear-gradient(135deg, var(--atlas-blue), var(--atlas-bluegreen));
}

.atlas-page .atlas-module-card span {
  background: var(--atlas-blue-soft);
  color: var(--atlas-blue-dark);
}

.atlas-page .atlas-module-card.cyan span,
.atlas-page .atlas-module-card.mint span {
  background: rgba(15, 143, 159, 0.1);
  color: var(--atlas-bluegreen-dark);
}

.atlas-page .atlas-final-cta h2,
.atlas-page .atlas-final-cta p {
  color: var(--atlas-white);
}

.atlas-page .atlas-final-cta .primary-btn {
  border-color: var(--atlas-white);
  background: var(--atlas-white);
  color: var(--atlas-blue);
}

.simple-prospects .enroll-btn {
  background: var(--atlas-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--atlas-bluegreen);
}

.simple-prospects .close-prospect-btn {
  background: var(--atlas-danger);
}

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

.session-gallery-card {
  background: #ffffff;
  border: 1px solid #ece9e5;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(31, 35, 41, 0.04);
  display: grid;
  gap: 10px;
  min-height: 250px;
  padding: 12px;
}

.session-gallery-top,
.session-gallery-foot {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.session-status-stack {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.session-gallery-top h2 {
  color: #1f2329;
  font-size: 17px;
  line-height: 1.2;
  margin: 4px 0 2px;
}

.session-gallery-top p,
.session-gallery-foot,
.session-comment-card p,
.session-progress-card p {
  color: #6b6f76;
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.session-reference,
.session-gallery-meta span,
.session-comment-card span,
.session-progress-card span {
  color: #7a8088;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.session-gallery-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.session-gallery-meta div,
.session-progress-card,
.session-comment-card {
  background: #f8fbfd;
  border: 1px solid #dbe7f0;
  border-radius: 8px;
  padding: 9px;
}

.session-gallery-meta strong {
  align-items: center;
  color: #1f2329;
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-top: 4px;
}

.session-billing-stamp {
  background: #fff0ef;
  border: 1px solid #ffb4ab;
  border-radius: 999px;
  color: #b42318;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-billing-stamp.complete {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff;
}

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

.session-billing-client-row {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid #dbe7f0;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.session-billing-client-row strong,
.session-billing-client-row span {
  display: block;
}

.session-billing-client-row span {
  color: #6b6f76;
  font-size: 12px;
  margin-top: 3px;
}

.commercial-avatar.small {
  height: 24px;
  min-width: 24px;
  width: 24px;
}

.session-progress-card > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.session-progress-card strong {
  color: #0b6380;
  font-size: 18px;
}

.session-progress-bar {
  background: #e7eef4;
  border-radius: 999px;
  height: 7px;
  margin: 7px 0 6px;
  overflow: hidden;
}

.session-progress-bar span {
  background: linear-gradient(90deg, #0b6380, #15a3b8);
  display: block;
  height: 100%;
}

.session-comment-card p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.session-gallery-foot {
  align-items: center;
  border-top: 1px solid #eef2f7;
  margin-top: auto;
  padding-top: 9px;
}

.session-gallery-foot .row-actions {
  justify-content: flex-end;
}

.session-gallery-foot .session-action-btn {
  min-height: 28px;
  padding: 6px 10px;
}

@media (max-width: 1220px) {
  .session-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Atlas final page polish: keeps every existing page in the same Asana-like language. */
.prospect-page,
.simple-sessions,
.inscriptions-page,
.caisse-page,
.accounting-dashboard,
.accounting-shell,
.accounting-page,
.employee-page,
.presence-page,
.rh-shell,
.settings-shell,
.public-layout {
  max-width: 1480px;
  margin: 0 auto;
}

.prospect-page,
.simple-sessions,
.inscriptions-page,
.caisse-page,
.employee-page,
.presence-page,
.rh-shell,
.settings-shell {
  padding: 0;
  background: transparent;
}

.prospect-topbar,
.topbar,
.rh-shell-topbar,
.settings-topbar,
.accounting-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: auto;
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid #ece9e5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 35, 41, 0.05);
}

.prospect-topbar h1,
.topbar h1,
.rh-shell-topbar h1,
.settings-topbar h1,
.accounting-page-head h2 {
  margin: 0;
  color: #1f2329;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.prospect-topbar p,
.topbar p,
.rh-shell-topbar p,
.settings-topbar p,
.accounting-page-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #6b6f76;
  font-size: 15px;
  line-height: 1.55;
}

.toolbar,
.prospect-actions,
.cash-actions,
.modal-actions,
.modal-header-actions,
.certification-actions,
.accounting-controls,
.presence-controls,
.client-filter-bar,
.prospect-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rh-subnav,
.settings-subnav,
.accounting-subnav,
.presence-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid #ece9e5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 35, 41, 0.04);
}

.rh-subnav button,
.settings-subnav button,
.accounting-subnav button,
.presence-tabs button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn,
.favorite-btn,
.accounting-link-btn,
.enroll-btn,
.view-prospect-btn,
.close-prospect-btn {
  min-height: 34px;
  border-radius: 10px;
  letter-spacing: 0;
  box-shadow: none;
}

.rh-subnav button,
.settings-subnav button,
.accounting-subnav button,
.presence-tabs button {
  border: 0;
  background: transparent;
  color: #5d626b;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
}

.rh-subnav button.active,
.settings-subnav button.active,
.accounting-subnav button.active,
.presence-tabs button.active,
.primary-btn.active {
  background: #fff1ea;
  color: #1f2329;
}

.primary-btn {
  background: #ff6f61;
  color: #ffffff;
}

.session-action-btn.primary {
  background: #0b1f3f;
  color: #ffffff;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.session-action-btn:hover,
.accounting-link-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 1px solid #e3e0da;
  background: #ffffff;
  color: #343942;
}

.secondary-btn.danger-soft,
.session-action-btn.close,
.close-prospect-btn {
  background: #fff0ef;
  color: #b42318;
}

button:disabled,
.primary-btn:disabled,
.secondary-btn:disabled,
.session-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.field input,
.field select,
.field textarea,
.client-filter-bar input,
.client-filter-bar select,
.accounting-controls select,
.presence-controls select,
.presence-controls input,
.toolbar input,
.toolbar select,
.prospect-actions input,
.prospect-actions select {
  min-height: 38px;
  border: 1px solid #dedbd6;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2329;
  padding: 0 12px;
  box-shadow: none;
}

.field textarea {
  min-height: 96px;
  padding-top: 10px;
}

.field label,
.form-section-title {
  color: #5f646d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.panel,
.settings-panel,
.employee-panel,
.employee-card,
.client-card,
.dossier-card,
.email-card,
.detail-tile,
.accounting-panel,
.atlas-story-panel,
.atlas-score-card,
.rh-notification-card,
.currency-card,
.complete-client-alert,
.missing-client-alert,
.inline-alert,
.company-participant-box,
.enroll-zone {
  border: 1px solid #ece9e5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 35, 41, 0.05);
}

.panel-header,
.accounting-page-head,
.presence-section-head,
.participant-import-head,
.employee-card-head,
.client-card-head {
  border-bottom: 1px solid #f0eee9;
}

.panel,
.settings-panel,
.employee-panel,
.accounting-panel {
  padding: 18px;
}

.detail-grid,
.settings-grid,
.employee-layout,
.accounting-overview-layout,
.accounting-detail-grid,
.inscriptions-layout,
.client-state-summary,
.employee-kpis,
.presence-kpis,
.accounting-overview-kpis,
.forecast-kpis {
  gap: 14px;
}

.prospect-table-wrap,
.presence-table-wrap,
.accounting-table-wrap,
.billing-print-table-wrap {
  overflow: auto;
  border: 1px solid #ece9e5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 35, 41, 0.04);
}

.prospect-table,
.session-table,
.cash-table,
.accounting-table,
.accounting-mini-table,
.presence-table,
.billing-print-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th,
.billing-print-table th {
  border: 0;
  border-bottom: 1px solid #ece9e5;
  background: #fbfaf8;
  color: #7b8088;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.billing-print-table td {
  border: 0;
  border-top: 1px solid #f2f0ec;
  color: #3d424a;
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}

.prospect-table tbody tr:nth-child(even),
.session-table tbody tr:nth-child(even),
.cash-table tbody tr:nth-child(even),
.accounting-table tbody tr:nth-child(even),
.presence-table tbody tr:nth-child(even) {
  background: #fffdfb;
}

.prospect-table tbody tr:hover,
.session-table tbody tr:hover,
.cash-table tbody tr:hover,
.accounting-table tbody tr:hover,
.presence-table tbody tr:hover {
  background: #f7fbff;
}

.status-pill,
.cash-status-badge,
.tag,
.presence-badge,
.presence-doc-status,
.client-state-chip,
.analysis-badge,
.employee-status,
.rh-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.cash-status-badge.pending,
.status-pill.pending,
.presence-badge.pending {
  background: #fff4d8;
  color: #8a5a00;
}

.cash-status-badge.paid,
.status-pill.active,
.presence-badge.present {
  background: #e7f6ed;
  color: #147a42;
}

.cash-status-badge.rejected,
.status-pill.inactive {
  background: #ffefef;
  color: #b42318;
}

.employee-card,
.client-card,
.dossier-card,
.email-card,
.rh-notification-card {
  padding: 16px;
}

.employee-list,
.client-gallery,
.settings-access-grid,
.forecast-category-grid,
.atlas-module-grid {
  gap: 14px;
}

.employee-card:hover,
.client-card:hover,
.dossier-card:hover,
.atlas-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 35, 41, 0.08);
}

.empty-state,
.empty-state.compact {
  border: 1px dashed #d8d5cf;
  border-radius: 16px;
  background: #fffdfb;
  color: #747982;
  padding: 22px;
}

.modal-backdrop {
  background: rgba(31, 35, 41, 0.34);
  backdrop-filter: blur(10px);
}

.modal,
.employee-modal,
.employee-small-modal {
  border: 1px solid #ece9e5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(31, 35, 41, 0.24);
}

.modal-header {
  border-bottom: 1px solid #f0eee9;
  background: #ffffff;
  padding: 18px 20px;
}

.modal-body {
  padding: 18px 20px 20px;
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  color: #1f2329;
  font-size: 22px;
  letter-spacing: 0;
}

.history-list,
.employee-timeline,
.settings-list,
.absence-request-list,
.incomplete-list,
.employee-document-list,
.employee-payroll-list,
.company-participant-list {
  display: grid;
  gap: 10px;
}

.history-item,
.employee-field,
.employee-metric-row,
.participant-choice,
.settings-currency-row,
.role-access-list,
.correction-history,
.cert-history {
  border: 1px solid #f0eee9;
  border-radius: 12px;
  background: #fffdfb;
}

.certification-process,
.certification-summary {
  gap: 12px;
}

.cert-score-input {
  min-width: 84px;
  max-width: 104px;
  min-height: 34px;
  border-radius: 9px;
  text-align: center;
}

.atlas-hero,
.atlas-module-card {
  border: 1px solid #ece9e5;
  box-shadow: 0 18px 46px rgba(31, 35, 41, 0.08);
}

@media (max-width: 960px) {
  .prospect-topbar,
  .topbar,
  .rh-shell-topbar,
  .settings-topbar,
  .accounting-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar,
  .prospect-actions,
  .cash-actions,
  .accounting-controls,
  .presence-controls,
  .client-filter-bar {
    width: 100%;
  }
}

/* Atlas product website page: blue/white brand guideline treatment. */
.atlas-page {
  --atlas-blue: #2f84ec;
  --atlas-blue-dark: #1559c7;
  --atlas-blue-soft: #eaf4ff;
  --atlas-cyan: #34bfd1;
  --atlas-mint: #58d99d;
  --atlas-ink: #122033;
  --atlas-muted: #66758a;
  --atlas-line: #dce7f4;
  --atlas-shadow: 0 26px 70px rgba(25, 92, 180, 0.14);
  display: grid;
  gap: 24px;
  max-width: 1480px;
  color: var(--atlas-ink);
}

.atlas-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: 30px;
  min-height: 520px;
  border: 1px solid #cfe1f8;
  border-radius: 0 0 42px 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 200, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #ffffff 0 38%, #f3f8ff 38% 100%);
  box-shadow: var(--atlas-shadow);
}

.atlas-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(42%, 560px);
  height: 156px;
  border-bottom-right-radius: 150px;
  background: linear-gradient(135deg, var(--atlas-blue), #4ba4ff);
}

.atlas-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -92px;
  width: 360px;
  height: 230px;
  border: 2px solid rgba(47, 132, 236, 0.18);
  border-radius: 120px 0 0 0;
}

.atlas-hero-copy,
.atlas-hero-panel {
  position: relative;
  z-index: 1;
}

.atlas-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  padding: 92px 0 72px 70px;
}

.atlas-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 34px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.atlas-logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: var(--atlas-blue);
  box-shadow: 0 12px 28px rgba(15, 78, 154, 0.2);
}

.atlas-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--atlas-ink);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.atlas-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--atlas-muted);
  font-size: 18px;
  line-height: 1.65;
}

.atlas-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.atlas-hero-actions .primary-btn,
.atlas-final-cta .primary-btn {
  border: 1px solid var(--atlas-blue);
  background: var(--atlas-blue);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(47, 132, 236, 0.26);
}

.atlas-hero-actions .secondary-btn,
.atlas-intro-section .secondary-btn,
.atlas-feature-band .secondary-btn {
  border: 1px solid #b9d7fb;
  background: #ffffff;
  color: var(--atlas-blue-dark);
}

.atlas-hero-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 74px 70px 64px 0;
}

.atlas-product-card {
  overflow: hidden;
  border: 1px solid #d6e6f8;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(25, 92, 180, 0.18);
}

.atlas-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--atlas-blue), #5eb2ff);
  color: #ffffff;
}

.atlas-product-top span {
  font-size: 12px;
  font-weight: 850;
  opacity: 0.9;
  text-transform: uppercase;
}

.atlas-product-top strong {
  font-size: 20px;
}

.atlas-product-window {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 24px;
}

.atlas-product-window span {
  display: block;
  min-height: 96px;
  border: 1px solid #dce9f8;
  border-radius: 18px;
  background: #f6fbff;
}

.atlas-product-window span:first-child {
  grid-row: span 2;
  min-height: 210px;
  background:
    linear-gradient(90deg, rgba(47, 132, 236, 0.12) 0 16%, transparent 16%),
    repeating-linear-gradient(180deg, #ffffff 0 30px, #f2f8ff 30px 31px);
}

.atlas-product-lines {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.atlas-product-lines i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #dce9f8;
}

.atlas-product-lines i:nth-child(1) {
  width: 84%;
}

.atlas-product-lines i:nth-child(2) {
  width: 68%;
}

.atlas-product-lines i:nth-child(3) {
  width: 76%;
}

.atlas-product-lines i:nth-child(4) {
  width: 52%;
}

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

.atlas-capability-row article {
  display: grid;
  gap: 8px;
  min-height: 92px;
  border: 1px solid #d6e6f8;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  color: var(--atlas-ink);
}

.atlas-capability-row span {
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.atlas-capability-row strong {
  color: var(--atlas-blue-dark);
  font-size: 24px;
}

.atlas-intro-section,
.atlas-showcase-section,
.atlas-feature-band,
.atlas-final-cta {
  border: 1px solid var(--atlas-line);
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(25, 92, 180, 0.08);
}

.atlas-intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 28px 28px 28px 0;
}

.atlas-intro-section h2,
.atlas-showcase-copy h2,
.atlas-feature-band h2,
.atlas-final-cta h2 {
  margin: 0;
  color: var(--atlas-ink);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.atlas-intro-section p,
.atlas-showcase-copy p,
.atlas-feature-band p,
.atlas-final-cta p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--atlas-muted);
  font-size: 15px;
  line-height: 1.65;
}

.atlas-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.atlas-module-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 218px;
  border: 1px solid var(--atlas-line);
  border-radius: 24px 24px 24px 0;
  background: #ffffff;
  color: var(--atlas-ink);
  padding: 22px;
  text-align: left;
  box-shadow: 0 14px 38px rgba(25, 92, 180, 0.08);
}

.atlas-module-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -36px;
  width: 126px;
  height: 96px;
  border-bottom-left-radius: 80px;
  opacity: 0.16;
}

.atlas-module-card.blue::after {
  background: var(--atlas-blue);
}

.atlas-module-card.cyan::after {
  background: var(--atlas-cyan);
}

.atlas-module-card.mint::after {
  background: var(--atlas-mint);
}

.atlas-module-card small {
  color: var(--atlas-blue);
  font-size: 12px;
  font-weight: 900;
}

.atlas-module-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--atlas-blue-soft);
  color: var(--atlas-blue-dark);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.atlas-module-card strong {
  margin-top: 6px;
  color: var(--atlas-ink);
  font-size: 24px;
  line-height: 1.1;
}

.atlas-module-card p {
  align-self: end;
  margin: 0;
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.55;
}

.atlas-module-card:hover {
  transform: translateY(-3px);
  border-color: #b9d7fb;
  box-shadow: 0 24px 58px rgba(25, 92, 180, 0.14);
}

.atlas-module-card.blue,
.atlas-module-card.cyan,
.atlas-module-card.mint {
  background: #ffffff;
}

.atlas-module-card.cyan span {
  background: #e8fbfe;
  color: #087f91;
}

.atlas-module-card.mint span {
  background: #ebfbf2;
  color: #147a46;
}

.atlas-showcase-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px;
  border-radius: 0 34px 34px 34px;
}

.atlas-showcase-copy {
  align-self: center;
}

.atlas-flow-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.atlas-flow-step {
  display: grid;
  align-content: space-between;
  min-height: 150px;
  border: 1px solid #d6e6f8;
  border-radius: 22px 22px 22px 0;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  padding: 16px;
}

.atlas-flow-step span {
  color: var(--atlas-blue);
  font-size: 12px;
  font-weight: 900;
}

.atlas-flow-step strong {
  color: var(--atlas-ink);
  font-size: 16px;
  line-height: 1.2;
}

.atlas-feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--atlas-line);
}

.atlas-feature-band article {
  display: grid;
  align-content: space-between;
  min-height: 250px;
  background: #ffffff;
  padding: 28px;
}

.atlas-feature-band h2 {
  font-size: 26px;
}

.atlas-feature-band .secondary-btn {
  width: fit-content;
  margin-top: 24px;
}

.atlas-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-color: #2f84ec;
  border-radius: 34px 34px 0 34px;
  background: linear-gradient(135deg, #2f84ec, #1559c7);
}

.atlas-final-cta h2,
.atlas-final-cta p {
  color: #ffffff;
}

.atlas-final-cta p {
  opacity: 0.86;
}

.atlas-final-cta .primary-btn {
  flex: 0 0 auto;
  border-color: #ffffff;
  background: #ffffff;
  color: var(--atlas-blue-dark);
}

@media (max-width: 1180px) {
  .atlas-hero,
  .atlas-showcase-section,
  .atlas-feature-band {
    grid-template-columns: 1fr;
  }

  .atlas-hero-copy,
  .atlas-hero-panel {
    padding-right: 34px;
    padding-left: 34px;
  }

  .atlas-hero-panel {
    padding-top: 0;
  }

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

@media (max-width: 760px) {
  .atlas-hero {
    min-height: auto;
    border-radius: 0 0 28px 0;
  }

  .atlas-hero::before {
    width: 100%;
    height: 84px;
    border-bottom-right-radius: 80px;
  }

  .atlas-brand-lockup {
    margin-bottom: 42px;
    color: var(--atlas-blue-dark);
  }

  .atlas-logo-mark {
    background: var(--atlas-blue);
    color: #ffffff;
  }

  .atlas-hero-copy {
    padding-top: 116px;
  }

  .atlas-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .atlas-capability-row,
  .atlas-module-grid {
    grid-template-columns: 1fr;
  }

  .atlas-intro-section,
  .atlas-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.simple-prospects .prospect-name {
  max-width: 210px;
  color: #7f8984;
  font-size: 11px;
  font-weight: 500;
}

.simple-prospects .prospect-sub {
  max-width: 240px;
  color: #a0aaa5;
  font-size: 9px;
}

.simple-prospects .status-pill {
  min-height: 20px;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 10px;
}

.simple-prospects .row-actions {
  gap: 4px;
}

.simple-prospects .enroll-btn,
.simple-prospects .view-prospect-btn,
.simple-prospects .close-prospect-btn {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #64716b;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
}

.simple-prospects .enroll-btn:hover,
.simple-prospects .view-prospect-btn:hover,
.simple-prospects .close-prospect-btn:hover {
  color: #123f2b;
  text-decoration: underline;
}

.commercial-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.commercial-avatar {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #1f7a4d, #d9a441);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.simple-sessions {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 12px;
}

.simple-sessions .prospect-topbar {
  align-items: flex-start;
  margin-bottom: 28px;
}

.simple-sessions .prospect-topbar h1 {
  color: #101711;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.simple-sessions .prospect-topbar p {
  max-width: 830px;
  margin-top: 14px;
  color: #6f7d76;
  font-size: 17px;
  line-height: 1.55;
}

.simple-sessions .prospect-actions .primary-btn {
  min-height: 52px;
  border-radius: 15px;
  background: #0f432d;
  padding: 0 24px;
  font-size: 15px;
  box-shadow: 0 26px 52px rgba(15, 67, 45, 0.22);
}

.session-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.simple-sessions .prospect-table-wrap {
  margin-bottom: 0;
}

.session-table th {
  border-top: 1px solid #bac4bf;
  border-bottom: 1px solid #bac4bf;
  color: #8a948f;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  text-align: left;
}

.session-table th:first-child {
  border-left: 1px solid #bac4bf;
  border-bottom-left-radius: 14px;
  border-top-left-radius: 14px;
}

.session-table th:last-child {
  border-right: 1px solid #bac4bf;
  border-bottom-right-radius: 14px;
  border-top-right-radius: 14px;
}

.session-table td {
  color: #89938e;
  font-size: 12px;
  padding: 10px 18px;
  vertical-align: middle;
}

.session-table tbody tr:nth-child(4n + 1) td {
  background: rgba(239, 248, 241, 0.78);
}

.session-table tbody tr:nth-child(4n + 2) td {
  background: rgba(239, 247, 251, 0.78);
}

.session-table tbody tr:nth-child(4n + 3) td {
  background: rgba(255, 248, 227, 0.7);
}

.session-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.86);
}

.session-title {
  display: block;
  max-width: 240px;
  color: #7f8984;
  font-weight: 500;
}

.client-warning-mini {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  background: #ffe6e6;
  color: #c42626;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 850;
}

.missing-client-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  border: 1px solid #ffb8b8;
  border-radius: 14px;
  background: #fff0f0;
  padding: 10px 12px;
}

.missing-client-alert strong {
  width: 100%;
  color: #bc1f1f;
  font-size: 12px;
}

.missing-client-alert span {
  border-radius: 999px;
  background: #ff3030;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
}

.complete-client-alert {
  margin-bottom: 14px;
  border: 1px solid #bddfc8;
  border-radius: 14px;
  background: #effaf2;
  color: #20613d;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
}

.session-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 26px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(20, 30, 24, 0.12);
}

.session-action-btn.view {
  background: #1f7a4d;
}

.session-action-btn.edit {
  background: #2f6f8f;
}

.session-action-btn.delay {
  background: #d9a441;
}

.session-action-btn.close {
  background: #ff3030;
}

.session-action-btn.report {
  background: #4d73e7;
}

.cash-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.cash-table th {
  border-top: 1px solid #bac4bf;
  border-bottom: 1px solid #bac4bf;
  color: #8a948f;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  text-align: left;
}

.cash-table th:first-child {
  border-left: 1px solid #bac4bf;
  border-bottom-left-radius: 14px;
  border-top-left-radius: 14px;
}

.cash-table th:last-child {
  border-right: 1px solid #bac4bf;
  border-bottom-right-radius: 14px;
  border-top-right-radius: 14px;
}

.cash-table td {
  color: #89938e;
  font-size: 11px;
  padding: 9px 12px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.cash-table th:nth-child(1),
.cash-table td:nth-child(1) {
  width: 9%;
}

.cash-table th:nth-child(2),
.cash-table td:nth-child(2) {
  width: 12%;
}

.cash-table th:nth-child(3),
.cash-table td:nth-child(3) {
  width: 12%;
}

.cash-table th:nth-child(4),
.cash-table td:nth-child(4) {
  width: 18%;
}

.cash-table th:nth-child(5),
.cash-table td:nth-child(5) {
  width: 16%;
}

.cash-table th:nth-child(6),
.cash-table td:nth-child(6) {
  width: 13%;
}

.cash-table th:nth-child(7),
.cash-table td:nth-child(7) {
  width: 10%;
}

.cash-table th:nth-child(8),
.cash-table td:nth-child(8) {
  width: 10%;
}

.cash-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.cash-actions .session-action-btn {
  min-width: 52px;
  min-height: 24px;
  padding: 0 8px;
  font-size: 9px;
}

.cash-actions .prospect-sub {
  width: 100%;
  margin-top: 2px;
}

.cash-analysis-panel {
  margin: 18px 0;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
}

.cash-analysis-head,
.cash-analysis-grid,
.analysis-row {
  display: grid;
  gap: 12px;
}

.cash-analysis-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 14px;
}

.cash-analysis-head h2,
.cash-analysis-card h3 {
  margin: 0;
  color: #0b1f3f;
}

.cash-analysis-head p {
  margin: 4px 0 0;
  color: #66758b;
}

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

.cash-analysis-card {
  border: 1px solid #edf1f5;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.analysis-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f5f9fb;
}

.analysis-row span,
.analysis-row strong {
  position: relative;
  z-index: 1;
}

.analysis-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 999px;
  background: #2f6f8f;
}

.cash-month-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 170px;
}

.cash-month-chart div {
  display: grid;
  flex: 1;
  gap: 5px;
  justify-items: center;
  min-width: 0;
}

.cash-month-chart b {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, #0b1f3f, #2f6f8f);
}

.cash-month-chart span,
.cash-month-chart small {
  max-width: 100%;
  overflow: hidden;
  color: #66758b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .cash-analysis-grid,
  .cash-analysis-head {
    grid-template-columns: 1fr;
  }
}

.cash-table tbody tr:nth-child(4n + 1) td {
  background: rgba(239, 248, 241, 0.78);
}

.cash-table tbody tr:nth-child(4n + 2) td {
  background: rgba(239, 247, 251, 0.78);
}

.cash-table tbody tr:nth-child(4n + 3) td {
  background: rgba(255, 248, 227, 0.7);
}

.cash-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 26px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(20, 30, 24, 0.12);
}

.cash-status-badge.paid {
  background: #1f7a4d;
}

.cash-status-badge.pending {
  background: #d9a441;
}

.cash-status-badge.validated {
  background: #2f6f8f;
}

.cash-status-badge.rejected {
  background: #ce5b4d;
}

.cash-category {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eef5f1;
  color: #1f7a4d;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
}

.employee-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.employee-kpis article,
.employee-card,
.employee-guide,
.employee-field {
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 52px rgba(20, 30, 24, 0.08);
}

.employee-kpis article {
  min-height: 126px;
  padding: 18px;
}

.employee-kpis span {
  display: block;
  color: #7c8781;
  font-size: 11px;
  font-weight: 850;
}

.employee-kpis strong {
  display: block;
  margin-top: 18px;
  color: #111b14;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.employee-kpis p {
  margin: 10px 0 0;
  color: #83908a;
  font-size: 11px;
  line-height: 1.45;
}

.employee-layout {
  display: block;
}

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

.employee-gallery {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.employee-card {
  display: grid;
  grid-template-rows: 152px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.employee-photo-frame,
.employee-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #1f7a4d, #d9a441);
  color: #ffffff;
  font-weight: 900;
}

.employee-photo-frame {
  min-height: 152px;
  font-size: 34px;
}

.employee-photo-frame img,
.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-card-body {
  min-width: 0;
}

.employee-card-head,
.employee-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.employee-card-head span:first-child,
.employee-tags span {
  color: #8a948f;
  font-size: 10px;
  font-weight: 850;
}

.employee-card h2 {
  margin: 5px 0 4px;
  color: #162019;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.employee-card p {
  margin: 0 0 8px;
  color: #78847e;
  font-size: 12px;
}

.employee-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  color: #ffffff;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 900;
}

.employee-status.active {
  background: #1f7a4d;
}

.employee-status.trial {
  background: #d9a441;
}

.employee-status.pending {
  background: #2f6f8f;
}

.employee-guide {
  padding: 18px;
}

.employee-structure-compact {
  align-self: stretch;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0 12px;
}

.employee-structure-compact summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  cursor: pointer;
  color: #102018;
  font-size: 12px;
  font-weight: 900;
}

.employee-structure-compact div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid #e0e8e3;
  padding: 8px 0 12px;
}

.employee-structure-compact span {
  border-radius: 999px;
  background: #eef5f1;
  color: #547064;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
}

.employee-guide h2,
.employee-detail-grid h3,
.form-section-title {
  margin: 0 0 14px;
  color: #142119;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.employee-guide-block {
  display: grid;
  gap: 6px;
  border-top: 1px solid #e0e8e3;
  padding: 13px 0;
}

.employee-guide-block strong {
  color: #18231d;
  font-size: 13px;
}

.employee-guide-block span {
  color: #7a867f;
  font-size: 11px;
  line-height: 1.45;
}

.employee-modal {
  width: min(1040px, 100%);
}

.employee-small-modal {
  width: min(720px, 100%);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.employee-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.employee-detail-grid section {
  display: grid;
  gap: 9px;
}

.employee-field {
  padding: 11px 12px;
  box-shadow: none;
}

.employee-field span {
  display: block;
  color: #8a928e;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.employee-field strong {
  display: block;
  margin-top: 5px;
  color: #39453f;
  font-size: 12px;
  line-height: 1.45;
}

.employee-photo-detail {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: #fbfdfb;
  padding: 10px;
}

.employee-photo-detail img,
.employee-photo-detail > span:first-child {
  display: grid;
  width: 100%;
  min-height: 220px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #1f7a4d, #d9a441);
  color: #ffffff;
  object-fit: cover;
  font-size: 42px;
  font-weight: 900;
}

.employee-photo-detail > span:last-child,
.employee-photo-edit-preview p {
  margin: 0;
  color: #7b8781;
  font-size: 11px;
  font-weight: 800;
}

.rh-table td strong {
  display: block;
  color: var(--atlas-ink);
  font-size: 13px;
}

.rh-table .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rh-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.rh-balance-grid article {
  border: 1px solid var(--atlas-border);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.rh-balance-grid span {
  display: block;
  color: var(--atlas-muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rh-balance-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--atlas-ink);
  font-size: 17px;
  font-weight: 900;
}

.rh-balance-grid strong.danger {
  color: #b13a3a;
}

.leave-management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.leave-management-page .inline-alert {
  margin-top: 10px;
}

.leave-management-page .employee-panel {
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .leave-management-layout {
    grid-template-columns: 1fr;
  }
}

.contract-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.cash-status-badge.waiting {
  background: rgba(196, 143, 54, 0.16);
  color: #8a5a06;
}

.employee-photo-edit-preview {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: #fbfdfb;
  padding: 10px;
  margin-bottom: 14px;
}

#employee-photo-preview {
  display: grid;
  width: 140px;
  height: 110px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #1f7a4d, #d9a441);
  color: #ffffff;
  font-weight: 900;
}

#employee-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-documents-box {
  display: grid;
  gap: 8px;
}

.employee-document-list {
  display: grid;
  gap: 7px;
}

.employee-document-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
}

.employee-document-list strong {
  margin: 0;
  color: #26332b;
  font-size: 12px;
}

.employee-document-list em {
  color: #2f6f8f;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.employee-doc-history {
  display: grid;
  gap: 4px;
  border-top: 1px solid #e0e8e3;
  padding-top: 8px;
}

.employee-doc-history small {
  color: #7b6b3c;
  font-size: 10px;
  line-height: 1.35;
}

.employee-subgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.employee-panel {
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 16px;
}

.employee-panel h3 {
  margin: 0 0 12px;
  color: #142119;
  font-size: 16px;
}

.employee-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.employee-metric-row span,
.employee-timeline span,
.employee-payroll-list span,
.employee-payroll-list em {
  color: #7b8781;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.employee-metric-row strong {
  color: #1f7a4d;
  font-size: 22px;
  line-height: 1;
}

.employee-timeline,
.employee-payroll-list {
  display: grid;
  gap: 10px;
}

.employee-timeline article,
.employee-payroll-list article {
  display: grid;
  gap: 5px;
  border: 1px solid #e0e8e3;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 11px;
}

.employee-timeline strong,
.employee-payroll-list strong {
  color: #26332b;
  font-size: 12px;
  line-height: 1.45;
}

.employee-timeline em {
  color: #2f6f8f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.empty-state.compact {
  min-height: auto;
  padding: 14px;
  font-size: 12px;
}

.rh-notification-list,
.presence-list {
  display: grid;
  gap: 12px;
}

.rh-notification-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 16px;
  box-shadow: 0 22px 52px rgba(20, 30, 24, 0.08);
}

.rh-notification-card span,
.presence-list span {
  color: #7b8781;
  font-size: 10px;
  font-weight: 850;
}

.rh-notification-card h2 {
  margin: 4px 0;
  color: #142119;
  font-size: 18px;
}

.rh-notification-card p {
  margin: 0;
  color: #69756f;
  font-size: 12px;
}

.rh-notification-card strong,
.presence-list strong {
  display: block;
  color: #26332b;
  font-size: 13px;
  line-height: 1.45;
}

.rh-notification-card em,
.presence-list em {
  display: block;
  margin-top: 4px;
  color: #2f6f8f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.presence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.presence-list article {
  display: grid;
  gap: 5px;
  border: 1px solid #e0e8e3;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 12px;
}

.presence-controls {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 10px;
  align-items: stretch;
  justify-content: end;
  width: min(420px, 100%);
}

.presence-page .prospect-topbar {
  gap: 18px;
  margin-bottom: 18px;
  min-width: 0;
  max-width: 100%;
}

.presence-page .prospect-topbar h1 {
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 0.95;
}

.presence-page .prospect-topbar p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.45;
}

.presence-page .field label {
  margin-bottom: 7px;
  font-size: 12px;
}

.presence-page input,
.presence-page select,
.presence-page textarea {
  min-height: 44px;
  font-size: 14px;
}

.presence-controls input,
.presence-controls select {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence-identity {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  min-width: 0;
  max-width: 100%;
}

.presence-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}

.presence-kpis article {
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  padding: 12px;
}

.presence-kpis span {
  display: block;
  color: #7b8781;
  font-size: 9px;
  font-weight: 850;
}

.presence-kpis strong {
  display: block;
  margin-top: 7px;
  color: #142119;
  font-size: 22px;
  line-height: 1;
}

.presence-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: #f6faf8;
  padding: 6px;
  margin-bottom: 16px;
}

.presence-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64726a;
  cursor: pointer;
  font-weight: 850;
}

.presence-tabs button.active {
  background: #ffffff;
  color: #10462f;
  box-shadow: 0 8px 20px rgba(20, 30, 24, 0.08);
}

.presence-entry-panel {
  margin-bottom: 14px;
}

.presence-entry-panel h3,
.presence-section-head h3,
.presence-page .employee-panel h3 {
  font-size: 18px;
}

.presence-entry-panel .muted,
.presence-section-head .muted {
  font-size: 13px;
}

.presence-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.presence-info-row span {
  border: 1px solid #d8e6de;
  border-radius: 12px;
  background: #f6faf8;
  color: #31523f;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
}

.presence-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.presence-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #dbe5df;
  border-radius: 14px;
}

.presence-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 11px;
}

.presence-table th,
.presence-table td {
  border-bottom: 1px solid #e3ebe6;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  max-width: 180px;
  overflow-wrap: anywhere;
}

.presence-table th {
  background: #f5faf7;
  color: #617168;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.presence-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #dbe5df;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 900;
}

.presence-badge.present {
  background: #edf8f1;
  color: #1f7a4d;
}

.presence-badge.late {
  background: #fff7df;
  color: #a06a00;
}

.presence-badge.absence {
  background: #f2f4f3;
  color: #66736b;
}

.presence-badge.leave,
.presence-badge.training {
  background: #eaf4ff;
  color: #2f6f8f;
}

.presence-badge.sick {
  background: #fff0f0;
  color: #b13c3c;
}

.presence-badge.permission {
  background: #f4edff;
  color: #7050a8;
}

.presence-badge.corrected {
  display: flex;
  margin-top: 5px;
  background: #fff4e5;
  color: #9a5c00;
}

.presence-doc-status {
  display: block;
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 900;
}

.presence-doc-status.valid {
  background: #edf8f1;
  color: #1f7a4d;
}

.presence-doc-status.pending {
  background: #fff7df;
  color: #9a5c00;
}

.presence-doc-status.rejected {
  background: #fff0f0;
  color: #b13c3c;
}

.presence-doc-status.muted-doc {
  background: #f2f4f3;
  color: #7b8781;
}

.document-preview-panel {
  gap: 5px;
  margin-bottom: 12px;
}

.document-preview-panel span,
.document-preview-panel em {
  color: #7b8781;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.document-preview-panel strong {
  color: #142119;
  font-size: 13px;
}

.danger-soft {
  border-color: #ffd1d1;
  background: #fff0f0;
  color: #a83434;
}

.archive-notice {
  margin-bottom: 14px;
  background: #f7faf8;
}

.correction-history {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.correction-history span {
  display: block;
  border-left: 2px solid var(--erp-gray-400);
  color: #6b5b36;
  font-size: 9px;
  line-height: 1.35;
  padding-left: 6px;
}

.absence-request-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.absence-request-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.absence-request-list p,
.absence-request-list em {
  margin: 0;
  color: #69756f;
  font-size: 12px;
  font-style: normal;
}

.payroll-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rh-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.rh-shell-topbar {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  align-items: flex-start;
}

.rh-lock-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  border: 1px solid #dbe5df;
  border-radius: 999px;
  background: #eef5f1;
  color: #10462f;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.rh-subnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: rgba(246, 250, 248, 0.9);
  padding: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.rh-subnav button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64726a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.rh-subnav button.active {
  background: #ffffff;
  color: #10462f;
  box-shadow: 0 10px 22px rgba(20, 30, 24, 0.08);
}

#rh-page-content .simple-sessions {
  padding-top: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#rh-page-content,
.presence-page,
.employee-page,
.rh-page {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.settings-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.settings-subnav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: rgba(246, 250, 248, 0.9);
  padding: 6px;
}

.settings-subnav button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64726a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.settings-subnav button.active {
  background: #ffffff;
  color: #10462f;
  box-shadow: 0 10px 22px rgba(20, 30, 24, 0.08);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.settings-users-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.settings-users-panel {
  min-width: 0;
}

.settings-panel {
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
  box-shadow: 0 22px 52px rgba(20, 30, 24, 0.08);
}

.settings-panel h2 {
  margin: 0 0 14px;
  color: #142119;
  font-size: 20px;
}

.settings-list,
.role-access-list {
  display: grid;
  gap: 10px;
}

.settings-list article,
.role-access-list article {
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  background: #fbfdfb;
  padding: 12px;
}

.settings-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-list .settings-user-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, auto);
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}

.settings-user-identity {
  min-width: 0;
}

.settings-user-identity strong,
.settings-user-identity span {
  overflow-wrap: anywhere;
}

.settings-list strong,
.role-access-list strong {
  display: block;
  color: #142119;
}

.settings-list span,
.settings-list em,
.role-access-list span {
  color: #78847e;
  font-size: 12px;
  font-style: normal;
}

.role-access-list header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.settings-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.settings-access-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #39453f;
  font-size: 12px;
  font-weight: 800;
}

.permission-hint {
  border: 1px solid #d8e4ee;
  border-radius: 10px;
  background: #f6fafc;
  color: #536981;
  font-weight: 800;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.rich-permissions article {
  border-radius: 12px;
}

.role-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.role-picker-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbe7ef;
  border-radius: 10px;
  background: #ffffff;
  color: #12284a;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}

.role-picker-list button.active {
  border-color: #0b1f3f;
  background: #edf5fb;
  box-shadow: inset 4px 0 0 #0b1f3f;
}

.role-picker-list strong {
  color: #0b1f3f;
}

.role-picker-list span {
  color: #61748a;
  font-size: 12px;
  font-weight: 900;
}

.selected-role-access {
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}

.selected-role-access > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e6eef5;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.selected-role-access h3 {
  margin: 0;
  color: #0b1f3f;
  font-size: 22px;
}

.selected-role-access p {
  margin: 4px 0 0;
  color: #61748a;
  font-weight: 800;
}

.selected-role-access > header > span {
  color: #61748a;
  font-weight: 900;
  white-space: nowrap;
}

.permission-module-list {
  display: grid;
  gap: 8px;
}

.permission-module-row {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5edf2;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.permission-module-row small {
  display: block;
  color: #7c8a98;
  font-weight: 800;
  margin-top: 2px;
}

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

.permission-actions label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d9e5ee;
  border-radius: 999px;
  background: #f8fbfd;
  color: #20344f;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.permission-actions select {
  width: auto;
  min-width: 145px;
  padding: 7px 10px;
}

.settings-currency-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.currency-card {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: #fbfdfb;
  padding: 12px;
  cursor: pointer;
}

.currency-card strong {
  color: #142119;
}

.currency-card span {
  color: #7b8781;
  font-size: 11px;
  font-weight: 850;
}

.company-settings-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: #fbfdfb;
  padding: 12px;
  margin-bottom: 14px;
}

.company-logo-preview {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #eef5f1;
  color: #10462f;
  font-size: 11px;
  font-weight: 900;
}

.company-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accounting-month-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.accounting-month-card {
  display: grid;
  gap: 7px;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 44px rgba(20, 30, 24, 0.08);
}

.accounting-month-card.active {
  border-color: #1f7a4d;
  box-shadow: 0 18px 44px rgba(31, 122, 77, 0.14);
}

.accounting-month-card span,
.accounting-month-card small,
.accounting-list span,
.accounting-list small {
  color: #7b8781;
  font-size: 11px;
  font-weight: 850;
}

.accounting-month-card strong {
  color: #142119;
  font-size: 24px;
}

.accounting-month-card em {
  color: #46584d;
  font-size: 12px;
  font-style: normal;
}

.accounting-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.accounting-kpis article,
.accounting-panel {
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
  box-shadow: 0 22px 52px rgba(20, 30, 24, 0.08);
}

.accounting-kpis span {
  color: #7b8781;
  font-size: 10px;
  font-weight: 900;
}

.accounting-kpis strong {
  display: block;
  margin-top: 8px;
  color: #142119;
  font-size: 24px;
}

.accounting-kpis strong.positive {
  color: #1f7a4d;
}

.accounting-kpis strong.negative {
  color: #b13c3c;
}

.accounting-kpis p {
  margin: 8px 0 0;
  color: #7b8781;
  font-size: 11px;
}

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

.accounting-panel h2 {
  margin: 0 0 12px;
  color: #142119;
  font-size: 20px;
}

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

.accounting-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  background: #fbfdfb;
  padding: 12px;
}

.accounting-list strong {
  display: block;
  color: #142119;
}

.accounting-list em {
  color: #10462f;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.accounting-expense-zone {
  margin-top: 16px;
  margin-bottom: 16px;
}

.expense-category-list,
.expense-analysis-list {
  display: grid;
  gap: 10px;
}

.expense-category-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  background: #fbfdfb;
  padding: 12px;
}

.expense-category-list strong,
.expense-analysis-list strong {
  display: block;
  color: #142119;
}

.expense-category-list span,
.expense-analysis-list span {
  color: #6f7d75;
  font-size: 12px;
}

.expense-category-list em {
  color: #10462f;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.expense-bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0eb;
}

.expense-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1f7a4d;
}

.expense-analysis-list article {
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  background: #fbfdfb;
  padding: 12px;
}

.expense-analysis-list article.warning {
  border-color: #f2d184;
  background: #fff8e7;
}

.expense-analysis-list article.info {
  border-color: #c8ddec;
  background: #eef7fb;
}

.expense-analysis-list article.ok {
  border-color: #c9e4d3;
  background: #eff8f2;
}

.accounting-shell {
  padding-top: 0;
}

.accounting-topbar {
  margin-bottom: 14px !important;
}

.accounting-topbar h1 {
  font-size: clamp(38px, 4vw, 54px) !important;
}

.accounting-topbar p {
  max-width: 760px !important;
  font-size: 15px !important;
}

.accounting-controls {
  align-items: end;
}

.accounting-controls .field {
  min-width: 170px;
  margin-bottom: 0;
}

.accounting-controls .field input {
  min-height: 40px;
  border-radius: 10px;
}

.accounting-controls .secondary-btn,
.accounting-controls .primary-btn {
  min-height: 40px;
  border-radius: 10px;
}

.accounting-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 12px;
}

.accounting-subnav button {
  min-height: 30px;
  border: 1px solid #cfd9d2;
  border-radius: 8px;
  background: #ffffff;
  color: #596760;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.accounting-subnav button.active {
  border-color: #103f2b;
  background: #103f2b;
  color: #ffffff;
}

.accounting-workboard {
  border: 1px solid #c8d2cb;
  background: #ffffff;
}

.accounting-board-title {
  border-bottom: 1px solid #c8d2cb;
  color: #0f1712;
  font-size: 16px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
  text-transform: uppercase;
}

.accounting-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(280px, 0.82fr);
}

.accounting-brief-cell {
  min-width: 0;
  border-right: 1px solid #c8d2cb;
  padding: 10px 12px 12px;
}

.accounting-brief-cell:last-child {
  border-right: 0;
}

.accounting-brief-cell h2,
.compact-panel h2 {
  margin: 0 0 8px;
  color: #111a14;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.accounting-metric-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d1dbd4;
  background: #d1dbd4;
}

.accounting-metric-table div {
  min-height: 54px;
  background: #ffffff;
  padding: 7px 8px;
}

.accounting-metric-table span {
  display: block;
  color: #67736d;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.accounting-metric-table strong {
  display: block;
  margin-top: 5px;
  color: #111a14;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.positive-text {
  color: #157246 !important;
}

.negative-text {
  color: #bd3d3d !important;
}

.accounting-note-list {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.accounting-note-list li {
  color: #25322b;
  font-size: 12px;
  line-height: 1.45;
}

.accounting-note-list li::before {
  content: "- ";
  font-weight: 900;
}

.accounting-alert-intro {
  margin: 0 0 8px;
  color: #25322b;
  font-size: 12px;
  line-height: 1.45;
}

.accounting-alert-list {
  display: grid;
  gap: 6px;
}

.accounting-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  border: 1px solid #d5ded7;
  background: #f8faf8;
  padding: 7px 8px;
  color: #26332b;
  font-size: 11px;
  line-height: 1.35;
}

.accounting-alert strong {
  color: #111a14;
  font-size: 11px;
}

.accounting-alert em {
  color: #111a14;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.accounting-alert span {
  grid-column: 1 / -1;
}

.accounting-alert.danger {
  border-color: #efb8b8;
  background: #fff1f1;
  color: #8a2d2d;
}

.accounting-alert.warning {
  border-color: #efd28e;
  background: #fff8e8;
  color: #76551a;
}

.accounting-alert.info {
  border-color: #bcd7e6;
  background: #eef7fb;
  color: #315a70;
}

.accounting-alert.ok {
  border-color: #bfdfca;
  background: #eff8f2;
  color: #1f5f3c;
}

.accounting-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #c8d2cb;
  background: #f7f9f7;
  padding: 12px;
}

.accounting-panel.compact-panel {
  border-radius: 0;
  padding: 10px;
  box-shadow: none;
}

.accounting-page-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.accounting-page-head p {
  margin: 2px 0 0;
  color: #6d7972;
  font-size: 11px;
}

.accounting-page-head > strong {
  color: #0f432d;
  font-size: 14px;
  white-space: nowrap;
}

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

.accounting-table-wrap.compact {
  border: 1px solid #c8d2cb;
  background: #ffffff;
}

.accounting-mini-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: auto;
}

.accounting-mini-table th,
.accounting-mini-table td {
  border: 1px solid #d1dbd4;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.accounting-mini-table th {
  background: #f4f7f5;
  color: #54615a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.accounting-mini-table td {
  color: #52605a;
  font-size: 11px;
  line-height: 1.35;
}

.accounting-mini-table tbody tr:nth-child(even) td {
  background: #f7fbfd;
}

.accounting-mini-table tbody tr.selected td {
  background: #eef8f1;
}

.accounting-mini-table strong {
  color: #18221c;
}

.accounting-link-btn {
  border: 0;
  background: transparent;
  color: #145b39;
  padding: 0;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.accounting-dashboard {
  display: grid;
  gap: 16px;
}

.accounting-overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.accounting-overview-kpis article {
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 15px;
  box-shadow: 0 18px 44px rgba(20, 30, 24, 0.08);
}

.accounting-overview-kpis span {
  color: #7b8781;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.accounting-overview-kpis strong {
  display: block;
  margin-top: 8px;
  color: #142119;
  font-size: 23px;
  line-height: 1.1;
}

.accounting-overview-kpis strong.positive {
  color: #1f7a4d;
}

.accounting-overview-kpis strong.negative {
  color: #b13c3c;
}

.accounting-overview-kpis p {
  margin: 8px 0 0;
  color: #7b8781;
  font-size: 11px;
}

.accounting-panel .accounting-overview-kpis {
  margin-bottom: 22px;
}

.accounting-overview-kpis + .accounting-table-wrap,
.accounting-overview-kpis + .accounting-statement-grid {
  margin-top: 18px;
}

.accounting-filter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.accounting-filter-line select,
.accounting-search-field input {
  border: 1px solid var(--erp-gray-200);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--erp-blue-dark);
}

.accounting-search-field {
  min-width: 260px;
}

.accounting-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--erp-gray-700);
  font-size: 12px;
  font-weight: 800;
}

.accounting-pagination > div {
  display: flex;
  gap: 8px;
}

.accounting-pagination .session-action-btn {
  min-width: 82px;
  padding: 7px 12px;
}

.accounting-pagination .session-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.accounting-insight {
  margin-top: 18px;
  border-left: 4px solid var(--erp-teal);
  background: linear-gradient(90deg, rgba(15, 143, 159, 0.12), rgba(255, 255, 255, 0.72));
  padding: 13px 16px;
  color: var(--erp-gray-800);
}

.accounting-insight strong {
  display: block;
  margin-bottom: 7px;
  color: var(--erp-blue-dark);
  font-size: 13px;
}

.accounting-insight p {
  margin: 4px 0;
  color: var(--erp-gray-700);
  font-size: 12px;
  line-height: 1.5;
}

.accounting-total-row td {
  border-top: 1px solid var(--erp-gray-300);
  background: rgba(11, 31, 63, 0.06) !important;
  color: var(--erp-blue-dark);
  font-weight: 900;
}

.accounting-overview-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.accounting-priority-panel {
  background: rgba(255, 255, 255, 0.92);
}

.accounting-priority-list {
  display: grid;
  gap: 9px;
}

.accounting-priority-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  border: 1px solid #e0e8e3;
  border-radius: 13px;
  background: #fbfdfb;
  padding: 11px 12px;
  text-align: left;
}

.accounting-priority-list button:hover {
  border-color: #b8d8c4;
  background: #f3faf5;
}

.accounting-priority-list span {
  color: #263329;
  font-size: 12px;
  font-weight: 850;
}

.accounting-priority-list strong {
  color: #0f432d;
  font-size: 20px;
  line-height: 1;
}

.accounting-priority-list em {
  grid-column: 1 / -1;
  color: #7b8781;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.accounting-mini-table.relaxed {
  min-width: 560px;
}

.accounting-mini-table.relaxed th,
.accounting-mini-table.relaxed td {
  padding: 9px 10px;
}

.accounting-alert-list.relaxed {
  gap: 9px;
}

.accounting-alert-list.relaxed .accounting-alert {
  border-radius: 13px;
  padding: 10px 11px;
  font-size: 12px;
}

.forecast-page {
  display: grid;
  gap: 16px;
}

.forecast-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forecast-table th:nth-child(1),
.forecast-table td:nth-child(1) {
  width: 10%;
}

.forecast-table th:nth-child(2),
.forecast-table td:nth-child(2) {
  width: 22%;
}

.forecast-table th:nth-child(7),
.forecast-table td:nth-child(7) {
  width: 12%;
}

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

.forecast-category-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  background: #fbfdfb;
  padding: 12px;
}

.forecast-category-grid strong,
.forecast-category-grid span {
  display: block;
}

.forecast-category-grid strong {
  color: #142119;
  font-size: 13px;
}

.forecast-category-grid span {
  color: #6f7d75;
  font-size: 11px;
}

.forecast-category-grid em {
  color: #10462f;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.accounting-print-sheet {
  page-break-inside: avoid;
}

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

.accounting-statement-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accounting-statement-grid article {
  border: 1px solid #cdd8df;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

.accounting-statement-grid h3 {
  margin: 0 0 10px;
  color: #061a3b;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.accounting-statement-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(93, 119, 139, 0.18);
  padding: 9px 0;
  color: #53667a;
  font-size: 12px;
}

.accounting-statement-line.subtle {
  color: #748394;
  font-size: 11px;
}

.accounting-statement-line strong {
  color: #061a3b;
  white-space: nowrap;
}

.accounting-statement-line.total {
  margin-top: 4px;
  border-bottom: 0;
  border-top: 2px solid rgba(15, 151, 170, 0.38);
  color: #061a3b;
  font-weight: 950;
}

.accounting-footnote {
  margin: 14px 0 0;
  color: #66798b;
  font-size: 11px;
}

.accounting-ledger-table th:nth-child(5),
.accounting-ledger-table td:nth-child(5) {
  min-width: 230px;
}

@media print {
  .accounting-subnav,
  .accounting-controls,
  .sidebar,
  .right-dock {
    display: none !important;
  }

  .accounting-page,
  .accounting-panel {
    box-shadow: none !important;
    background: #fff !important;
  }
}

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

.certification-panel {
  overflow: hidden;
}

.certification-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.certification-process strong {
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #fbfdfb;
  color: #123f2b;
  padding: 10px;
  font-size: 12px;
  text-align: center;
}

.certification-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.certification-guard {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  border: 1px solid #efd28e;
  border-radius: 12px;
  background: #fff8e8;
  color: #76551a;
  padding: 10px 12px;
}

.certification-guard strong {
  font-size: 12px;
}

.certification-guard span {
  font-size: 11px;
  line-height: 1.45;
}

.certification-summary article {
  border: 1px solid #e0e8e3;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px;
}

.certification-summary span {
  display: block;
  color: #7b8781;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.certification-summary strong {
  display: block;
  margin-top: 4px;
  color: #142119;
  font-size: 20px;
}

.certification-table {
  min-width: 900px;
}

.cert-score-input {
  width: 76px;
  min-height: 30px;
  border: 1px solid #d1dbd4;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 8px;
  font-size: 12px;
}

.cert-history {
  display: grid;
  gap: 3px;
  max-width: 260px;
}

.cert-history span {
  color: #6f7d75;
  font-size: 10px;
  line-height: 1.35;
}

.certification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.inscriptions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.incomplete-panel {
  border: 1px solid #dde6df;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  box-shadow: 0 24px 54px rgba(20, 34, 27, 0.08);
}

.incomplete-panel h2 {
  margin: 0;
  color: #142119;
  font-size: 18px;
}

.incomplete-panel > p {
  margin: 6px 0 16px;
  color: #7e8a84;
  font-size: 12px;
}

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

.incomplete-list article {
  border-radius: 12px;
  background: #fff8e7;
  padding: 12px;
}

.incomplete-list strong,
.incomplete-list span,
.incomplete-list p {
  display: block;
}

.incomplete-list strong {
  color: #263329;
  font-size: 12px;
}

.incomplete-list span,
.incomplete-list p {
  color: #8b958f;
  font-size: 10px;
  line-height: 1.45;
}

.file-current {
  display: block;
  margin: 0 0 8px;
  color: #7f8984;
  font-size: 11px;
  line-height: 1.4;
}

.company-participant-box {
  border: 1px solid #dde6df;
  border-radius: 16px;
  background: rgba(246, 249, 247, 0.76);
  padding: 14px;
}

.participant-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.participant-import-head strong,
.participant-import-head span {
  display: block;
}

.participant-import-head strong {
  color: #263329;
  font-size: 13px;
}

.participant-import-head span {
  color: #7f8984;
  font-size: 11px;
  line-height: 1.45;
}

.company-participant-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.company-participant-list p,
.participant-choice {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #7f8984;
  font-size: 11px;
  line-height: 1.45;
  padding: 10px;
}

.company-participant-list button {
  border: 0;
  background: transparent;
  color: #ff3030;
  font-size: 10px;
  font-weight: 700;
}

.participant-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.participant-choice input {
  width: auto;
  min-height: 0;
  margin-top: 2px;
}

.public-registration-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.public-registration-tabs button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.public-registration-tabs button.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.public-person-fields.hidden,
.public-file-grid.hidden {
  display: none;
}

.public-company-doc-instructions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid #d9e5ef;
  border-radius: 14px;
  background: #f5faff;
  padding: 14px;
}

.public-company-doc-instructions strong {
  font-size: 15px;
}

.public-company-doc-instructions span {
  color: var(--muted);
  line-height: 1.5;
}

.client-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -18px 0 28px;
}

.client-filter {
  min-height: 32px;
  border: 1px solid #dbe5df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #69766f;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.client-filter.active {
  border-color: #0f432d;
  background: #0f432d;
  color: #ffffff;
}

.crm-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.crm-subnav button {
  border: 1px solid #d3dbe7;
  background: #ffffff;
  color: #263d5d;
  font-weight: 800;
  padding: 10px 14px;
}

.crm-subnav button.active,
.crm-subnav button:hover {
  background: #0b1f3f;
  border-color: #0b1f3f;
  color: #ffffff;
}

.client-filter-bar input {
  min-height: 34px;
  max-width: 420px;
  border-radius: 999px;
  font-size: 12px;
}

.client-filter-bar .compact-filter-input {
  width: min(260px, 100%);
  min-height: 32px;
  max-width: 280px;
  padding: 0 13px;
}

.client-filter-bar select {
  min-height: 34px;
  border: 1px solid #dbe5df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #69766f;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 750;
}

.client-state-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 22px;
}

.client-section {
  margin-top: 26px;
}

.client-section h2 {
  margin: 0 0 12px;
  color: #17241b;
  font-size: 18px;
}

.client-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.client-card {
  display: grid;
  gap: 10px;
  min-height: 250px;
  border: 1px solid #dbe5df;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 16px;
  box-shadow: 0 22px 52px rgba(20, 30, 24, 0.08);
}

.client-card.favori {
  border-color: #e2c26a;
  background: #fff8e7;
}

.client-card.actif {
  border-color: #b9dfca;
  background: #effaf2;
}

.client-card.inactif {
  border-color: #cfe3ec;
  background: #eef8fb;
}

.client-card.mort {
  border-color: #ffd1d1;
  background: #fff1f1;
}

.client-card-head,
.client-card-badges,
.client-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-card-head span {
  color: #8a948f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.favorite-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d8e1dc;
  border-radius: 50%;
  background: #ffffff;
  color: #a0aaa5;
  font-size: 14px;
  font-weight: 900;
}

.favorite-btn.active {
  border-color: #d9a441;
  background: #d9a441;
  color: #ffffff;
}

.client-card h3 {
  margin: 0;
  color: #162019;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.client-card-type {
  margin: -2px 0 0;
  color: #5d6b7d;
  font-size: 12px;
  font-weight: 800;
}

.client-card-address,
.client-card-history {
  margin: 0;
  color: #78847e;
  font-size: 11px;
  line-height: 1.45;
}

.client-card-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.client-card-stats span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #6f7d76;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
}

.client-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
}

.client-state-chip.favori {
  background: #d9a441;
  color: #ffffff;
}

.client-state-chip.actif {
  background: #1f7a4d;
  color: #ffffff;
}

.client-state-chip.inactif {
  background: #2f6f8f;
  color: #ffffff;
}

.client-state-chip.mort {
  background: #ff3030;
  color: #ffffff;
}

@media (max-width: 1280px) {
  .prospect-actions {
    flex-wrap: wrap;
  }

  .simple-prospects .prospect-actions {
    max-width: 520px;
  }
}

.empty-state {
  border: 1px solid #dbe5df;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #7f8984;
  font-size: 12px;
  padding: 16px;
}

input[type="file"] {
  padding-top: 12px;
}

@media (max-width: 1100px) {
  .inscriptions-layout {
    grid-template-columns: 1fr;
  }

  .atlas-hero,
  .atlas-story-grid {
    grid-template-columns: 1fr;
  }

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

  .accounting-brief-grid,
  .accounting-detail-grid,
  .accounting-overview-kpis,
  .accounting-overview-layout,
  .forecast-kpis,
  .forecast-category-grid {
    grid-template-columns: 1fr;
  }

  .accounting-brief-cell {
    border-right: 0;
    border-bottom: 1px solid #c8d2cb;
  }

  .accounting-brief-cell:last-child {
    border-bottom: 0;
  }

  .accounting-controls {
    width: 100%;
  }

  .certification-process,
  .certification-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .atlas-module-grid,
  .atlas-score-grid {
    grid-template-columns: 1fr;
  }

  .atlas-hero {
    border-radius: 22px;
    padding: 24px;
  }
}

/* Final action button override: keep the image-2 pill button model. */
.simple-prospects .prospect-table th:last-child,
.simple-prospects .prospect-table td:last-child {
  min-width: 210px;
}

.simple-prospects .row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
}

.simple-prospects .enroll-btn,
.simple-prospects .view-prospect-btn,
.simple-prospects .close-prospect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 26px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 30, 24, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.simple-prospects .enroll-btn {
  background: var(--atlas-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--atlas-bluegreen);
}

.simple-prospects .close-prospect-btn {
  background: var(--atlas-danger);
}

.simple-prospects .enroll-btn:hover,
.simple-prospects .view-prospect-btn:hover,
.simple-prospects .close-prospect-btn:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 14px 26px rgba(20, 30, 24, 0.18);
}

/* Keep the Atlas marketing page immune from older app-page overrides below the fold. */
.atlas-page .atlas-hero {
  border-radius: 0 0 42px 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 143, 159, 0.16), transparent 34%),
    linear-gradient(135deg, var(--atlas-white) 0 38%, var(--atlas-gray-100) 38% 100%);
}

.atlas-page .atlas-hero h1,
.atlas-page .atlas-intro-section h2,
.atlas-page .atlas-showcase-copy h2,
.atlas-page .atlas-feature-band h2 {
  color: #122033;
}

.atlas-page .atlas-hero p,
.atlas-page .atlas-intro-section p,
.atlas-page .atlas-showcase-copy p,
.atlas-page .atlas-feature-band p,
.atlas-page .atlas-module-card p {
  color: #66758a;
}

.atlas-page .atlas-module-card {
  background: #ffffff;
  color: #122033;
}

.atlas-page .atlas-final-cta {
  background: linear-gradient(135deg, var(--atlas-blue), var(--atlas-bluegreen));
}

.atlas-page .atlas-final-cta h2,
.atlas-page .atlas-final-cta p {
  color: #ffffff;
}

.atlas-page .atlas-final-cta .primary-btn {
  border-color: var(--atlas-white);
  background: var(--atlas-white);
  color: var(--atlas-blue);
}

@media (max-width: 720px) {
  .atlas-page .atlas-hero {
    border-radius: 0 0 28px 0;
    padding: 0;
  }

  .atlas-page .atlas-brand-lockup {
    color: var(--atlas-blue);
  }
}

/* ERP global palette guard: modules, sidebar search, buttons and status colors. */
:root {
  --erp-blue: #2563eb;
  --erp-blue-dark: #1d4ed8;
  --erp-blue-soft: #eff6ff;
  --erp-teal: #0f8f9f;
  --erp-teal-dark: #0f766e;
  --erp-teal-soft: #e9fbfd;
  --erp-gray-950: #111827;
  --erp-gray-800: #1f2937;
  --erp-gray-700: #374151;
  --erp-gray-600: #6b7280;
  --erp-gray-400: #9ca3af;
  --erp-gray-300: #d1d5db;
  --erp-gray-200: #e5e7eb;
  --erp-gray-100: #f3f4f6;
  --erp-bg: #f8f7f5;
  --erp-white: #ffffff;
  --erp-danger: #ef5b3f;
  --atlas-blue: var(--erp-blue);
  --atlas-blue-dark: var(--erp-blue-dark);
  --atlas-bluegreen: var(--erp-teal);
  --atlas-bluegreen-dark: var(--erp-teal-dark);
  --atlas-danger: var(--erp-danger);
}

body,
.app-shell,
.main {
  background: var(--erp-bg);
}

.sidebar {
  background: rgba(255, 255, 255, 0.96);
  color: var(--erp-gray-800);
}

.sidebar,
.sidebar-search,
.sidebar-toggle,
.nav button,
.topbar,
.prospect-topbar,
.rh-shell-topbar,
.settings-topbar,
.accounting-topbar,
.panel,
.settings-panel,
.employee-panel,
.employee-card,
.client-card,
.dossier-card,
.email-card,
.detail-tile,
.accounting-panel,
.modal,
.prospect-table-wrap,
.presence-table-wrap,
.accounting-table-wrap {
  border-color: var(--erp-gray-200);
}

.sidebar-search {
  background: var(--erp-white);
}

.sidebar-search span,
.sidebar-search input::placeholder,
.muted,
.hint {
  color: var(--erp-gray-600);
}

.sidebar-search input,
.sidebar .brand-lockup strong,
.nav button {
  color: var(--erp-gray-800);
}

.brand-mark,
.sidebar .brand-mark,
.nav-icon,
.commercial-avatar,
.employee-photo-frame,
.atlas-logo-mark {
  background: linear-gradient(145deg, var(--erp-blue), var(--erp-teal));
  color: var(--erp-white);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.nav button.active,
.rh-subnav button.active,
.settings-subnav button.active,
.accounting-subnav button.active,
.presence-tabs button.active {
  background: var(--erp-blue-soft);
  color: var(--erp-blue-dark);
}

.primary-btn,
.prospect-actions .primary-btn,
.simple-sessions .prospect-actions .primary-btn,
.accounting-controls .primary-btn,
.session-action-btn.view,
.session-action-btn.edit,
.session-action-btn.report,
.enroll-btn,
.accounting-link-btn {
  border-color: var(--erp-blue);
  background: var(--erp-blue);
  color: var(--erp-white);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.secondary-btn,
.prospect-actions .secondary-btn,
.accounting-controls .secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn.delay,
.view-prospect-btn {
  border-color: rgba(15, 143, 159, 0.28);
  background: var(--erp-white);
  color: var(--erp-teal-dark);
  box-shadow: none;
}

.secondary-btn.danger-soft,
.session-action-btn.close,
.close-prospect-btn {
  border-color: rgba(239, 91, 63, 0.28);
  background: var(--erp-danger);
  color: var(--erp-white);
}

.cash-status-badge.pending,
.status-pill.pending,
.presence-badge.pending,
.tag.pending,
.presence-doc-status.pending {
  background: var(--erp-gray-100);
  color: var(--erp-gray-700);
}

.cash-status-badge.paid,
.status-pill.active,
.presence-badge.present,
.tag.active,
.employee-status.active,
.client-state-chip.active,
.presence-doc-status.ready {
  background: var(--erp-teal-soft);
  color: var(--erp-teal-dark);
}

.cash-status-badge.rejected,
.status-pill.inactive,
.presence-badge.absent,
.analysis-badge.high {
  background: rgba(239, 91, 63, 0.1);
  color: var(--erp-danger);
}

.client-state-chip.favori,
.client-state-chip.actif {
  background: var(--erp-teal);
  color: var(--erp-white);
}

.client-state-chip.inactif {
  background: var(--erp-gray-400);
  color: var(--erp-white);
}

.client-state-chip.mort {
  background: var(--erp-danger);
  color: var(--erp-white);
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th {
  background: var(--erp-gray-100);
  color: var(--erp-gray-600);
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td {
  color: var(--erp-gray-700);
}

.simple-prospects .enroll-btn {
  background: var(--erp-blue);
}

.simple-prospects .view-prospect-btn {
  background: var(--erp-teal);
}

.simple-prospects .close-prospect-btn {
  background: var(--erp-danger);
}

.atlas-page .atlas-hero::before,
.atlas-page .atlas-product-top,
.atlas-page .atlas-final-cta {
  background: linear-gradient(135deg, var(--erp-blue), var(--erp-teal));
}

/* Final sidebar search focus guard. */
.sidebar-search:focus-within {
  border-color: var(--erp-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* Final compact table headers guard. */
.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th,
.billing-print-table th {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.billing-print-table td {
  padding: 10px 12px;
}

/* Forecast table interaction and horizontal scroll stability. */
.forecast-table {
  min-width: 1120px;
  table-layout: fixed;
}

.forecast-table th,
.forecast-table td {
  background-clip: padding-box;
  vertical-align: middle;
}

.forecast-table th:nth-child(1),
.forecast-table td:nth-child(1) {
  width: 120px;
}

.forecast-table th:nth-child(2),
.forecast-table td:nth-child(2) {
  width: 230px;
}

.forecast-table th:nth-child(8),
.forecast-table td:nth-child(8) {
  width: 150px;
  text-align: center;
}

.forecast-status-btn {
  border: 1px solid currentColor;
  cursor: pointer;
  min-width: 104px;
}

.forecast-status-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

/* Keep forecast tables horizontally scrollable instead of locking the slide. */
.accounting-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.forecast-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

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

.forecast-table td:nth-child(2) {
  min-width: 240px;
  white-space: normal;
}

.forecast-table td:nth-child(8),
.forecast-table th:nth-child(8) {
  min-width: 140px;
}

/* Accounting tables must scroll horizontally instead of squeezing/fixing columns. */
.accounting-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.accounting-table-wrap .accounting-table,
.accounting-table-wrap .cash-table,
.accounting-table-wrap .accounting-mini-table {
  width: max-content;
  min-width: 100%;
}

.accounting-table-wrap .cash-table.accounting-table {
  min-width: 1040px;
}

.accounting-table-wrap .forecast-table {
  min-width: 1120px;
}

.accounting-table-wrap .analysis-table,
.accounting-table-wrap.compact .accounting-mini-table {
  min-width: 720px;
}

.accounting-table-wrap .accounting-table th,
.accounting-table-wrap .accounting-table td,
.accounting-table-wrap .accounting-mini-table th,
.accounting-table-wrap .accounting-mini-table td {
  white-space: nowrap;
}

.accounting-table-wrap .accounting-table td:nth-child(2),
.accounting-table-wrap .accounting-table td:nth-child(5) {
  white-space: normal;
}

/* Final forecast page fit: keep Statut visible without horizontal locking. */
.accounting-table-wrap .forecast-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.accounting-table-wrap .forecast-table th,
.accounting-table-wrap .forecast-table td {
  padding: 9px 10px;
  white-space: normal;
}

.forecast-table th:nth-child(1),
.forecast-table td:nth-child(1) {
  width: 9%;
}

.forecast-table th:nth-child(2),
.forecast-table td:nth-child(2) {
  width: 21%;
}

.forecast-table th:nth-child(3),
.forecast-table td:nth-child(3) {
  width: 13%;
}

.forecast-table th:nth-child(4),
.forecast-table td:nth-child(4),
.forecast-table th:nth-child(5),
.forecast-table td:nth-child(5) {
  width: 10%;
}

.forecast-table th:nth-child(6),
.forecast-table td:nth-child(6) {
  width: 12%;
}

.forecast-table th:nth-child(7),
.forecast-table td:nth-child(7) {
  width: 13%;
}

.forecast-table th:nth-child(8),
.forecast-table td:nth-child(8) {
  width: 12%;
  text-align: center;
}

.forecast-status-btn {
  min-width: 88px;
  padding-inline: 8px;
}

/* Absolute final forecast slider guard. */
.forecast-page .accounting-panel {
  overflow: hidden;
}

.forecast-page .accounting-table-wrap {
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 12px;
  scrollbar-color: var(--erp-gray-400) var(--erp-gray-100);
  scrollbar-width: auto;
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar {
  height: 13px;
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--erp-gray-100);
}

.forecast-page .accounting-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid var(--erp-gray-100);
  border-radius: 999px;
  background: var(--erp-gray-400);
}

.forecast-page .accounting-table-wrap .forecast-table {
  width: 1280px;
  min-width: 1280px;
  table-layout: auto;
}

.forecast-page .forecast-table th,
.forecast-page .forecast-table td {
  white-space: nowrap;
}

.forecast-page .forecast-table td:nth-child(2) {
  min-width: 230px;
  white-space: normal;
}

.forecast-page .forecast-table th:nth-child(8),
.forecast-page .forecast-table td:nth-child(8) {
  min-width: 150px;
}

/* Atlas site redesign - SaaS/product landing page with photography. */
.atlas-site {
  --site-blue: var(--erp-blue);
  --site-teal: var(--erp-teal);
  --site-ink: #111827;
  --site-muted: #667085;
  --site-line: #e5e7eb;
  display: grid;
  gap: 26px;
  max-width: 1500px;
  margin: 0 auto;
  color: var(--site-ink);
}

.atlas-site button {
  font: inherit;
}

.atlas-site-hero {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.08);
}

.atlas-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--site-line);
}

.atlas-site-brand,
.atlas-site-nav div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.atlas-site-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--site-blue), var(--site-teal));
  color: #ffffff;
  font-weight: 900;
}

.atlas-site-brand strong {
  font-size: 20px;
}

.atlas-site-nav button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--site-muted);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.atlas-site-nav button:hover {
  border-color: var(--site-line);
  color: var(--site-blue);
}

.atlas-site-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.78fr);
  gap: 34px;
  align-items: center;
  padding: 58px;
  background: linear-gradient(135deg, #ffffff 0 58%, #eff6ff 58% 100%);
}

.atlas-site-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--site-ink);
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.atlas-site-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--site-muted);
  font-size: 18px;
  line-height: 1.65;
}

.atlas-site .atlas-hero-actions {
  margin-top: 30px;
}

.atlas-hero-media {
  position: relative;
  min-height: 520px;
}

.atlas-hero-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.18);
}

.atlas-floating-ui {
  position: absolute;
  left: -28px;
  bottom: 34px;
  width: 220px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  padding: 18px;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(10px);
}

.atlas-floating-ui span,
.atlas-logo-strip span,
.atlas-photo-stack article span,
.atlas-flow-line em,
.atlas-module-card span {
  color: var(--site-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.atlas-floating-ui strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
  line-height: 1;
}

.atlas-floating-ui p {
  margin: 8px 0 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.4;
}

.atlas-logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 22px;
  background: var(--site-line);
}

.atlas-logo-strip span {
  display: grid;
  min-height: 78px;
  place-items: center;
  background: #ffffff;
  color: var(--site-muted);
}

.atlas-split-section,
.atlas-product-section,
.atlas-editorial-grid,
.atlas-site-cta {
  border: 1px solid var(--site-line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 20px 58px rgba(17, 24, 39, 0.06);
}

.atlas-split-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.7fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 36px;
}

.atlas-photo-stack {
  position: relative;
}

.atlas-photo-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 26px;
}

.atlas-photo-stack article {
  position: absolute;
  right: 22px;
  bottom: 22px;
  min-width: 180px;
  border-radius: 20px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.16);
}

.atlas-photo-stack article strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.atlas-split-copy h2,
.atlas-section-title h2,
.atlas-editorial-card h2,
.atlas-site-cta h2 {
  margin: 0;
  color: var(--site-ink);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.atlas-split-copy p,
.atlas-section-title p,
.atlas-editorial-card p,
.atlas-site-cta p {
  margin: 14px 0 0;
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.65;
}

.atlas-flow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.atlas-flow-line span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--site-ink);
  padding: 9px 12px;
  font-weight: 800;
}

.atlas-product-section {
  padding: 36px;
}

.atlas-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.atlas-section-title p {
  max-width: 520px;
}

.atlas-site .atlas-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.atlas-site .atlas-module-card {
  min-height: 180px;
  border: 1px solid var(--site-line);
  border-radius: 22px;
  background: #ffffff;
  color: var(--site-ink);
  padding: 20px;
  text-align: left;
  box-shadow: none;
}

.atlas-site .atlas-module-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.1);
}

.atlas-site .atlas-module-card strong {
  margin-top: 18px;
  color: var(--site-ink);
  font-size: 24px;
}

.atlas-site .atlas-module-card p {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.55;
}

.atlas-editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1px;
  overflow: hidden;
  background: var(--site-line);
}

.atlas-editorial-card {
  display: grid;
  align-content: space-between;
  min-height: 330px;
  background: #ffffff;
  padding: 30px;
}

.atlas-editorial-card.large {
  grid-row: span 2;
  gap: 24px;
}

.atlas-editorial-card.large img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 24px;
}

.atlas-editorial-card.dark {
  background: linear-gradient(145deg, var(--site-blue), var(--site-teal));
}

.atlas-editorial-card.dark h2,
.atlas-editorial-card.dark p {
  color: #ffffff;
}

.atlas-editorial-card.dark .secondary-btn {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--site-blue);
}

.atlas-site-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.atlas-site-cta p {
  max-width: 760px;
}

@media (max-width: 1180px) {
  .atlas-site-hero-grid,
  .atlas-split-section,
  .atlas-editorial-grid,
  .atlas-site-cta {
    grid-template-columns: 1fr;
  }

  .atlas-site .atlas-module-grid,
  .atlas-logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-floating-ui {
    left: 22px;
  }
}

@media (max-width: 760px) {
  .atlas-site-hero-grid,
  .atlas-split-section,
  .atlas-product-section,
  .atlas-site-cta {
    padding: 22px;
  }

  .atlas-site-nav,
  .atlas-section-title,
  .atlas-site-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-hero-media,
  .atlas-hero-media img {
    min-height: 320px;
    height: 320px;
  }

  .atlas-site .atlas-module-grid,
  .atlas-logo-strip {
    grid-template-columns: 1fr;
  }
}

/* Sidebar module pictograms. */
.nav-icon {
  font-size: 0;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-collapsed .nav-icon svg {
  width: 20px;
  height: 20px;
}

/* Atlas neutral redesign guard. Keep the ERP palette limited to dark blue, red, and light grays. */
:root {
  --bg: #e9edf2;
  --ink: #0b1f3f;
  --muted: #607087;
  --line: #cfd6df;
  --surface: #f4f6f8;
  --surface-2: #e1e7ee;
  --green: #163d73;
  --green-dark: #0b1f3f;
  --gold: #aeb8c5;
  --coral: #b4232a;
  --blue: #163d73;
  --shadow: 0 18px 46px rgba(11, 31, 63, 0.12);
  --erp-blue: #163d73;
  --erp-blue-dark: #0b1f3f;
  --erp-blue-soft: #dce4ee;
  --erp-teal: #263d5d;
  --erp-teal-dark: #0b1f3f;
  --erp-teal-soft: #e4e9ef;
  --erp-gray-950: #07162d;
  --erp-gray-800: #0b1f3f;
  --erp-gray-700: #263d5d;
  --erp-gray-600: #607087;
  --erp-gray-400: #9aa6b5;
  --erp-gray-300: #c7d0da;
  --erp-gray-200: #dbe1e8;
  --erp-gray-100: #edf1f5;
  --erp-bg: #e9edf2;
  --erp-white: #f4f6f8;
  --erp-danger: #b4232a;
  --atlas-blue: #163d73;
  --atlas-blue-dark: #0b1f3f;
  --atlas-bluegreen: #263d5d;
  --atlas-bluegreen-dark: #0b1f3f;
  --atlas-danger: #b4232a;
  --atlas-white: #f4f6f8;
  --atlas-gray-100: #e9edf2;
  --site-blue: #163d73;
  --site-teal: #263d5d;
  --site-ink: #0b1f3f;
  --site-muted: #607087;
  --site-line: #cfd6df;
}

html,
body {
  background: var(--erp-bg) !important;
  color: var(--ink);
}

.login-page {
  background: var(--erp-bg);
}

.login-visual {
  background:
    linear-gradient(135deg, rgba(11, 31, 63, 0.96), rgba(22, 61, 115, 0.88)),
    linear-gradient(160deg, #0b1f3f 0%, #263d5d 52%, #e9edf2 52%, #e9edf2 100%) !important;
  color: #f4f6f8;
}

.login-panel,
.main,
.atlas-site,
.atlas-page {
  background: var(--erp-bg) !important;
}

.brand-mark,
.sidebar .brand-mark,
.atlas-brand-mark,
.atlas-logo-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(207, 214, 223, 0.95);
  border-radius: 12px;
  background: var(--surface) !important;
  color: var(--erp-blue-dark) !important;
  box-shadow: 0 12px 26px rgba(11, 31, 63, 0.12) !important;
}

.brand-mark img,
.sidebar .brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
}

.login-card h2,
.topbar h1,
.prospect-topbar h1,
.rh-shell-topbar h1,
.settings-topbar h1,
.accounting-topbar h1,
.panel-header h2,
.settings-panel h2,
.employee-panel h3,
.accounting-panel h2,
.modal-header h2,
.modal-header h3 {
  color: var(--ink) !important;
  letter-spacing: 0 !important;
}

.login-card > p,
.topbar p,
.prospect-topbar p,
.rh-shell-topbar p,
.settings-topbar p,
.accounting-topbar p,
.panel-header p,
.muted,
.prospect-sub,
.client-card-address,
.client-card-history {
  color: var(--muted) !important;
}

.app-shell {
  background: linear-gradient(90deg, var(--erp-blue-dark) 0 280px, var(--erp-bg) 280px 100%) !important;
}

.sidebar {
  background: var(--erp-blue-dark) !important;
  color: #f4f6f8 !important;
  border-right: 1px solid rgba(207, 214, 223, 0.16) !important;
  box-shadow: none !important;
}

.sidebar .brand-lockup strong,
.sidebar-footer .muted strong {
  color: #f4f6f8 !important;
}

.sidebar .brand-lockup span,
.sidebar-footer .muted span {
  color: #c7d0da !important;
}

.sidebar-search,
.sidebar-toggle {
  border: 1px solid rgba(207, 214, 223, 0.22) !important;
  background: rgba(244, 246, 248, 0.08) !important;
  color: #e9edf2 !important;
}

.sidebar-search input,
.sidebar-search input::placeholder,
.sidebar-search span {
  color: #c7d0da !important;
}

.sidebar-search:focus-within {
  border-color: #e9edf2 !important;
  box-shadow: 0 0 0 2px rgba(233, 237, 242, 0.14) !important;
}

.nav button {
  color: #c7d0da !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.nav button:hover,
.nav button.active {
  color: #f4f6f8 !important;
  background: rgba(244, 246, 248, 0.12) !important;
  border-color: rgba(244, 246, 248, 0.14) !important;
  box-shadow: inset 3px 0 0 var(--erp-danger) !important;
}

.nav-icon,
.nav-icon.tone-1,
.nav-icon.tone-2,
.nav-icon.tone-3,
.nav-icon.tone-4,
.nav-icon.tone-5,
.nav-icon.tone-6 {
  background: rgba(244, 246, 248, 0.12) !important;
  color: #e9edf2 !important;
}

.nav button.active .nav-icon {
  background: var(--erp-danger) !important;
  color: #f4f6f8 !important;
}

.topbar,
.prospect-topbar,
.rh-shell-topbar,
.settings-topbar,
.accounting-topbar,
.panel,
.settings-panel,
.employee-panel,
.employee-card,
.client-card,
.dossier-card,
.email-card,
.session-card,
.accounting-panel,
.currency-card,
.rh-notification-card,
.presence-entry-panel,
.document-preview-panel,
.modal,
.prospect-table-wrap,
.presence-table-wrap,
.accounting-table-wrap,
.billing-print-table-wrap,
.atlas-story-panel,
.atlas-score-card,
.atlas-module-card,
.atlas-product-card,
.atlas-site .atlas-module-card,
.atlas-split-section,
.atlas-product-section,
.atlas-editorial-grid,
.atlas-site-cta,
.empty-state,
.empty-state.compact {
  border-color: var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: 0 14px 34px rgba(11, 31, 63, 0.07) !important;
}

.panel:hover,
.employee-card:hover,
.client-card:hover,
.dossier-card:hover,
.email-card:hover,
.atlas-module-card:hover {
  border-color: #9aa6b5 !important;
  box-shadow: 0 20px 44px rgba(11, 31, 63, 0.12) !important;
}

.field label,
.filter-group label,
.billing-print-label {
  color: var(--erp-gray-700) !important;
}

.field input,
.field select,
.field textarea,
.sidebar-search input,
input,
select,
textarea {
  border-color: var(--line) !important;
  background: #eef2f6 !important;
  color: var(--ink) !important;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--erp-blue) !important;
  box-shadow: 0 0 0 2px rgba(22, 61, 115, 0.14) !important;
}

.billing-live-summary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--erp-blue-dark);
  font-weight: 700;
  padding: 12px 14px;
  font-size: 13px;
}

.billing-form-modal {
  width: min(1240px, calc(100vw - 36px));
  max-height: min(92vh, 860px);
}

.billing-form-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.billing-form-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  gap: 14px;
  align-items: stretch;
}

.billing-form-card {
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(11, 31, 63, 0.06);
}

.billing-form-wide {
  grid-column: 1 / -1;
}

.billing-form-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.billing-form-card-head > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cbd5e1;
  background: #e8eef5;
  color: var(--erp-blue-dark);
  font-weight: 800;
  font-size: 12px;
}

.billing-form-card-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.billing-form-card-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.billing-form-card .form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-client-status {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 11px 12px;
  color: var(--erp-blue-dark);
  font-size: 12px;
}

.billing-client-status strong {
  font-size: 13px;
}

.billing-client-status span,
.billing-client-status em {
  color: var(--muted);
  font-style: normal;
}

.billing-client-status.complete {
  border-color: #86efac;
  background: #f0fdf4;
}

.billing-client-status.warning {
  border-color: #facc15;
  background: #fffbeb;
}

.billing-line-editor {
  display: grid;
  gap: 10px;
}

.billing-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 110px) minmax(116px, 150px) minmax(102px, 124px) 38px;
  gap: 8px;
  align-items: end;
  border: 1px solid #dbe3ec;
  background: #ffffff;
  padding: 10px;
  max-width: 100%;
  overflow: hidden;
}

.billing-line-row > * {
  min-width: 0;
}

.billing-line-session {
  min-width: 0;
}

.billing-line-total {
  display: grid;
  gap: 4px;
  min-height: 44px;
  align-content: center;
  border: 1px solid #cbd5e1;
  background: #eef4fb;
  color: var(--erp-blue-dark);
  padding: 8px;
}

.billing-line-total small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: normal;
}

.billing-line-total strong {
  font-size: 13px;
}

.billing-line-remove {
  width: 38px;
  height: 42px;
}

.client-legal-fields.is-hidden {
  display: none;
}

.billing-add-line {
  justify-self: start;
  margin-top: 10px;
}

.billing-form-footer {
  position: sticky;
  bottom: -1px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, .96);
  padding-top: 12px;
}

.billing-form-footer .billing-live-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.billing-live-summary span {
  display: grid;
  gap: 2px;
  min-width: 92px;
}

.billing-live-summary small {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
}

.billing-live-summary strong {
  color: var(--erp-blue-dark);
}

@media (max-width: 860px) {
  .billing-form-grid,
  .billing-form-footer {
    grid-template-columns: 1fr;
  }

  .billing-form-card .form-grid.compact {
    grid-template-columns: 1fr;
  }

  .billing-line-row {
    grid-template-columns: 1fr;
  }

  .billing-line-remove,
  .billing-add-line {
    width: 100%;
  }
}

.primary-btn,
.atlas-hero-actions .primary-btn,
.session-action-btn.edit,
.session-action-btn.view,
.forecast-status-btn.paid {
  background: var(--erp-blue-dark) !important;
  color: #f4f6f8 !important;
  border-color: var(--erp-blue-dark) !important;
  box-shadow: 0 12px 24px rgba(11, 31, 63, 0.18) !important;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn,
.ghost-btn,
.icon-btn,
.atlas-hero-actions .secondary-btn,
.session-action-btn,
.session-action-btn.close {
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  color: var(--erp-blue-dark) !important;
  box-shadow: none !important;
}

.session-action-btn.close,
.danger-btn,
.delete-btn,
.cash-status-badge.rejected,
.status-pill.inactive,
.tag.coral,
.tag.rejected,
.presence-doc-status.rejected,
.analysis-badge.warning,
.error {
  border-color: rgba(180, 35, 42, 0.32) !important;
  background: rgba(180, 35, 42, 0.10) !important;
  color: var(--erp-danger) !important;
}

.hint,
.inline-alert,
.missing-client-alert {
  border-color: rgba(22, 61, 115, 0.24) !important;
  background: #e1e7ee !important;
  color: var(--erp-blue-dark) !important;
}

.status-pill,
.cash-status-badge,
.tag,
.employee-status,
.presence-badge,
.presence-doc-status,
.client-state-chip,
.temperature,
.analysis-badge {
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  color: var(--erp-gray-700) !important;
}

.status-pill.active,
.cash-status-badge.paid,
.cash-status-badge.validated,
.tag.active,
.employee-status.active,
.presence-badge.present,
.presence-doc-status.valid,
.client-state-chip.actif,
.client-state-chip.favori,
.analysis-badge.info {
  border-color: rgba(22, 61, 115, 0.26) !important;
  background: var(--erp-blue-soft) !important;
  color: var(--erp-blue-dark) !important;
}

.cash-status-badge.pending,
.status-pill.pending,
.tag.pending,
.employee-status.pending,
.employee-status.trial,
.presence-badge.late,
.presence-badge.leave,
.presence-badge.sick,
.presence-badge.permission,
.presence-badge.training,
.presence-doc-status.pending,
.client-state-chip.inactif {
  border-color: var(--line) !important;
  background: #edf1f5 !important;
  color: var(--erp-gray-700) !important;
}

.presence-badge.absence,
.client-state-chip.mort,
.employee-status.archive {
  border-color: rgba(180, 35, 42, 0.30) !important;
  background: rgba(180, 35, 42, 0.10) !important;
  color: var(--erp-danger) !important;
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th,
.billing-print-table th,
.table th {
  background: #dce2ea !important;
  color: var(--erp-blue-dark) !important;
  border-color: var(--line) !important;
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.billing-print-table td,
.table td {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.prospect-table tbody tr:nth-child(even) td,
.session-table tbody tr:nth-child(even) td,
.cash-table tbody tr:nth-child(even) td,
.accounting-table tbody tr:nth-child(even) td,
.presence-table tbody tr:nth-child(even) td,
.table tbody tr:nth-child(even) td {
  background: #edf1f5 !important;
}

.prospect-table tbody tr:hover td,
.session-table tbody tr:hover td,
.cash-table tbody tr:hover td,
.accounting-table tbody tr:hover td,
.presence-table tbody tr:hover td,
.table tbody tr:hover td {
  background: #e1e7ee !important;
}

.atlas-hero,
.atlas-page .atlas-hero,
.atlas-editorial-card.dark {
  background:
    linear-gradient(135deg, rgba(11, 31, 63, 0.96), rgba(22, 61, 115, 0.88)) !important;
  color: #f4f6f8 !important;
}

.atlas-hero h1,
.atlas-hero p,
.atlas-page .atlas-hero h1,
.atlas-page .atlas-hero p,
.atlas-editorial-card.dark h2,
.atlas-editorial-card.dark p {
  color: #f4f6f8 !important;
}

.atlas-module-card.green,
.atlas-module-card.blue,
.atlas-module-card.gold,
.atlas-module-card.coral,
.atlas-site .atlas-module-card,
.client-card.favori,
.client-card.actif,
.client-card.inactif,
.client-card.mort,
.session-card.public-card,
.session-card.private-card,
.dossier-card.warning {
  border-color: var(--line) !important;
  background: var(--surface) !important;
}

.atlas-module-card span,
.atlas-module-card small,
.atlas-floating-ui span,
.atlas-logo-strip span,
.atlas-photo-stack article span,
.atlas-flow-line em {
  color: var(--erp-blue) !important;
}

.atlas-module-card.coral span,
.atlas-module-card.mint span,
.atlas-module-card.cyan span,
.atlas-module-card.blue span,
.atlas-module-card.green span,
.atlas-module-card.gold span {
  color: var(--erp-blue) !important;
}

.atlas-flow-line span,
.accounting-month-card,
.detail-tile,
.employee-metric-row span,
.client-card-stats span,
.document-preview-panel,
.company-logo-preview {
  border-color: var(--line) !important;
  background: var(--surface-2) !important;
  color: var(--ink) !important;
}

.accounting-month-card.active,
.forecast-status-btn.paid {
  border-color: var(--erp-blue) !important;
  background: var(--erp-blue-soft) !important;
  color: var(--erp-blue-dark) !important;
}

.company-logo-preview img,
.billing-print-logo {
  object-fit: contain;
}

.modal-backdrop {
  background: rgba(7, 22, 45, 0.58) !important;
}

::-webkit-scrollbar-thumb {
  background: #9aa6b5 !important;
}

::-webkit-scrollbar-track {
  background: #e1e7ee !important;
}

/* Atlas neutral redesign final pass: visibly gray surfaces and desaturated media. */
:root {
  --bg: #e3e8ef;
  --surface: #eef2f6;
  --surface-2: #dbe2ea;
  --erp-bg: #e3e8ef;
  --erp-white: #eef2f6;
  --erp-gray-100: #e8edf3;
  --atlas-white: #eef2f6;
  --atlas-gray-100: #e3e8ef;
}

.login-panel,
.main,
.atlas-site,
.atlas-page {
  background: #e3e8ef !important;
}

.login-card,
.topbar,
.prospect-topbar,
.rh-shell-topbar,
.settings-topbar,
.accounting-topbar,
.panel,
.settings-panel,
.employee-panel,
.employee-card,
.client-card,
.dossier-card,
.email-card,
.session-card,
.accounting-panel,
.currency-card,
.rh-notification-card,
.presence-entry-panel,
.document-preview-panel,
.modal,
.prospect-table-wrap,
.presence-table-wrap,
.accounting-table-wrap,
.billing-print-table-wrap,
.atlas-site-hero,
.atlas-site-nav,
.atlas-site-hero-grid,
.atlas-story-panel,
.atlas-score-card,
.atlas-module-card,
.atlas-product-card,
.atlas-site .atlas-module-card,
.atlas-split-section,
.atlas-product-section,
.atlas-editorial-grid,
.atlas-editorial-card,
.atlas-site-cta,
.empty-state,
.empty-state.compact {
  background: #eef2f6 !important;
}

.field input,
.field select,
.field textarea,
input,
select,
textarea,
.hint,
.inline-alert,
.missing-client-alert,
.atlas-flow-line span,
.accounting-month-card,
.detail-tile,
.employee-metric-row span,
.client-card-stats span,
.company-logo-preview {
  background: #dfe6ee !important;
}

.atlas-site-hero-grid {
  background:
    linear-gradient(135deg, #eef2f6 0 58%, #dbe2ea 58% 100%) !important;
}

.atlas-site-brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef2f6;
}

.atlas-site-brand span img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
}

.atlas-site-brand span {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.atlas-site-brand span img {
  width: 100%;
  height: 100%;
}

.atlas-hero-media img,
.atlas-photo-stack img,
.atlas-editorial-card.large img,
.atlas-product-card img,
.atlas-site img:not(.brand-mark img):not(.atlas-site-brand img) {
  filter: grayscale(1) saturate(0) contrast(0.96) !important;
}

.atlas-logo-strip {
  border-color: var(--line) !important;
  background: var(--line) !important;
}

.atlas-logo-strip span {
  background: #e8edf3 !important;
  color: var(--erp-blue-dark) !important;
}

/* Public Atlas page: sections sit directly on the page, without oversized cards. */
.atlas-site {
  max-width: 1440px;
  gap: 44px;
  padding: 20px 28px 54px;
}

.atlas-site-hero,
.atlas-site-hero-grid,
.atlas-split-section,
.atlas-product-section,
.atlas-editorial-grid,
.atlas-site-cta {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.atlas-site-hero {
  overflow: visible;
}

.atlas-site-nav {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 4px 28px;
}

.atlas-site-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: 54px;
  align-items: center;
  padding: 44px 0 62px !important;
}

.atlas-site-copy h1 {
  max-width: 760px;
  font-size: 62px !important;
  line-height: 1.03;
  letter-spacing: 0;
}

.atlas-site-copy p {
  max-width: 720px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.58;
}

.atlas-hero-media {
  min-height: 420px;
}

.atlas-hero-media img {
  height: 420px;
  border-radius: 8px !important;
  box-shadow: 0 18px 44px rgba(11, 31, 63, 0.12) !important;
}

.atlas-floating-ui {
  left: -18px;
  bottom: 22px;
  border-radius: 8px;
}

.atlas-logo-strip {
  border-radius: 8px;
}

.atlas-split-section,
.atlas-product-section,
.atlas-site-cta {
  padding: 0 !important;
}

.atlas-editorial-grid {
  overflow: visible;
  gap: 18px;
}

.atlas-editorial-card {
  border: 1px solid var(--site-line);
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .atlas-site-hero-grid {
    grid-template-columns: 1fr;
  }

  .atlas-site-copy h1 {
    font-size: 48px !important;
  }
}

@media (max-width: 760px) {
  .atlas-site {
    padding: 14px 18px 40px;
    gap: 32px;
  }

  .atlas-site-hero-grid {
    padding: 26px 0 42px !important;
  }

  .atlas-site-copy h1 {
    font-size: 34px !important;
    line-height: 1.08;
  }

  .atlas-site-copy p {
    font-size: 16px;
  }

  .atlas-hero-media,
  .atlas-hero-media img {
    min-height: 300px;
    height: 300px;
  }
}

/* Atlas palette lock: blue, blue-gray and blue-green only. */
:root {
  --atlas-brand-blue: #0b1f3f;
  --atlas-brand-gray: #66758a;
  --atlas-brand-bluegreen: #0f8f9f;
  --atlas-blue: #0b1f3f;
  --atlas-blue-dark: #07162d;
  --atlas-bluegreen: #0f8f9f;
  --atlas-bluegreen-dark: #0b6876;
  --atlas-danger: #66758a;
  --atlas-white: #eef2f6;
  --atlas-gray-100: #e3e8ef;
  --bg: #e3e8ef;
  --ink: #0b1f3f;
  --muted: #66758a;
  --line: #c7d0da;
  --surface: #eef2f6;
  --surface-2: #dbe2ea;
  --green: #0f8f9f;
  --green-dark: #0b1f3f;
  --gold: #66758a;
  --coral: #66758a;
  --blue: #0b1f3f;
  --erp-blue: #0b1f3f;
  --erp-blue-dark: #07162d;
  --erp-blue-soft: #dbe2ea;
  --erp-teal: #0f8f9f;
  --erp-teal-dark: #0b6876;
  --erp-teal-soft: #d8edf1;
  --erp-gray-950: #07162d;
  --erp-gray-800: #0b1f3f;
  --erp-gray-700: #263d5d;
  --erp-gray-600: #66758a;
  --erp-gray-400: #9aa6b5;
  --erp-gray-300: #c7d0da;
  --erp-gray-200: #dbe2ea;
  --erp-gray-100: #e8edf3;
  --erp-bg: #e3e8ef;
  --erp-white: #eef2f6;
  --erp-danger: #66758a;
  --site-blue: #0b1f3f;
  --site-teal: #0f8f9f;
  --site-ink: #0b1f3f;
  --site-muted: #66758a;
  --site-line: #c7d0da;
  --shadow: 0 18px 46px rgba(11, 31, 63, 0.12);
}

html,
body,
.login-panel,
.main,
.atlas-site,
.atlas-page {
  background: var(--erp-bg) !important;
  color: var(--ink) !important;
}

body.has-sidebar,
.app-shell {
  background: linear-gradient(90deg, var(--atlas-brand-blue) 0 280px, var(--erp-bg) 280px 100%) !important;
}

.sidebar,
.login-visual,
.atlas-hero,
.atlas-page .atlas-hero,
.atlas-editorial-card.dark {
  background:
    linear-gradient(135deg, rgba(7, 22, 45, 0.98), rgba(11, 31, 63, 0.92) 55%, rgba(15, 143, 159, 0.62)) !important;
  color: var(--erp-white) !important;
}

.brand-mark,
.logo-box,
.settings-logo-mark,
.nav-icon,
.user-avatar,
.cashier-avatar,
.commercial-avatar,
.created-by-avatar {
  background:
    linear-gradient(145deg, var(--atlas-brand-blue), var(--atlas-brand-bluegreen)) !important;
  color: var(--erp-white) !important;
  border-color: rgba(199, 208, 218, 0.38) !important;
}

.atlas-site .atlas-site-brand span {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.atlas-site .atlas-site-brand span img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
}

.sidebar,
.sidebar .brand-text h1,
.sidebar .brand-text p,
.sidebar .session-card,
.sidebar .session-card strong,
.sidebar-footer,
.login-visual *,
.atlas-hero *,
.atlas-editorial-card.dark * {
  color: var(--erp-white) !important;
}

.sidebar .muted,
.sidebar .nav-section-title,
.sidebar-footer small,
.login-visual p,
.atlas-hero p {
  color: var(--erp-gray-300) !important;
}

.nav button.active,
.nav button:hover {
  background: rgba(15, 143, 159, 0.16) !important;
  color: var(--erp-white) !important;
  box-shadow: inset 3px 0 0 var(--atlas-brand-bluegreen) !important;
}

.login-card,
.topbar,
.prospect-topbar,
.rh-shell-topbar,
.settings-topbar,
.accounting-topbar,
.panel,
.settings-panel,
.employee-panel,
.employee-card,
.client-card,
.dossier-card,
.email-card,
.session-card,
.accounting-panel,
.currency-card,
.rh-notification-card,
.presence-entry-panel,
.document-preview-panel,
.modal,
.prospect-table-wrap,
.session-table-wrap,
.presence-table-wrap,
.cash-table-wrap,
.accounting-table-wrap,
.billing-print-table-wrap,
.atlas-site-hero,
.atlas-site-nav,
.atlas-site-hero-grid,
.atlas-story-panel,
.atlas-score-card,
.atlas-module-card,
.atlas-product-card,
.atlas-split-section,
.atlas-product-section,
.atlas-editorial-grid,
.atlas-editorial-card,
.atlas-site-cta,
.empty-state,
.empty-state.compact {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
  box-shadow: 0 18px 46px rgba(11, 31, 63, 0.08) !important;
}

.field input,
.field select,
.field textarea,
input,
select,
textarea,
.hint,
.inline-alert,
.missing-client-alert,
.atlas-flow-line span,
.accounting-month-card,
.detail-tile,
.employee-metric-row span,
.client-card-stats span,
.company-logo-preview {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.primary-btn,
.dark-btn,
.login-submit,
.new-prospect-btn,
.new-session-btn,
.new-billing-btn,
.new-cash-btn,
.request-cash-btn,
.session-action-btn.view,
.session-action-btn.report,
.session-action-btn.modify,
.session-action-btn.add,
.session-action-btn.open,
.session-action-btn.pay,
.session-action-btn.validate,
.btn-primary,
.button-primary {
  background: var(--atlas-brand-blue) !important;
  border-color: var(--atlas-brand-blue) !important;
  color: var(--erp-white) !important;
  box-shadow: 0 12px 24px rgba(11, 31, 63, 0.18) !important;
}

.secondary-btn,
.ghost-btn,
.outline-btn,
.light-btn,
.session-action-btn,
.pagination button,
.tab-btn,
.filter-chip,
.toolbar-btn {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--atlas-brand-blue) !important;
}

.session-action-btn.enroll,
.enroll-btn,
.session-action-btn.see,
.session-action-btn.print,
.cash-status-badge.paid,
.billing-status-badge.paid,
.status-pill.active,
.client-state-chip.actif,
.client-state-chip.favori,
.tag.green,
.tag.blue,
.tag.mint,
.presence-badge.present {
  background: var(--atlas-brand-bluegreen) !important;
  border-color: var(--atlas-brand-bluegreen) !important;
  color: var(--erp-white) !important;
}

.session-action-btn.close,
.close-prospect-btn,
.archive-btn,
.delete-btn,
.danger-btn,
.cash-status-badge.pending,
.cash-status-badge.validated,
.billing-status-badge.pending,
.billing-status-badge.overdue,
.billing-status-badge.waiting,
.status-pill.inactive,
.client-state-chip.inactif,
.client-state-chip.mort,
.employee-status.archive,
.presence-badge.absence,
.tag.gold,
.tag.coral,
.tag.red,
.missing-client-alert span,
.inline-alert.warning,
.inline-alert.error {
  background: var(--erp-gray-200) !important;
  border-color: var(--erp-gray-300) !important;
  color: var(--atlas-brand-blue) !important;
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th,
.table th {
  background: var(--surface-2) !important;
  color: var(--atlas-brand-gray) !important;
  border-color: var(--line) !important;
}

.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.table td {
  background: var(--surface) !important;
  color: var(--atlas-brand-gray) !important;
  border-color: var(--line) !important;
}

.prospect-table tbody tr:nth-child(even) td,
.session-table tbody tr:nth-child(even) td,
.cash-table tbody tr:nth-child(even) td,
.accounting-table tbody tr:nth-child(even) td,
.presence-table tbody tr:nth-child(even) td,
.table tbody tr:nth-child(even) td {
  background: var(--erp-gray-100) !important;
}

.prospect-table tbody tr:hover td,
.session-table tbody tr:hover td,
.cash-table tbody tr:hover td,
.accounting-table tbody tr:hover td,
.presence-table tbody tr:hover td,
.table tbody tr:hover td {
  background: var(--erp-teal-soft) !important;
}

.prospect-table .actions,
.session-table .actions,
.cash-table .actions,
.accounting-table .actions,
.table .actions {
  background: inherit !important;
}

.row-success,
.row-info,
.row-warning,
.row-danger,
.prospect-row-active,
.prospect-row-inactive,
.session-row-open,
.session-row-closed,
.cash-row-pending,
.cash-row-paid {
  background: transparent !important;
}

.badge,
.pill,
.status-pill,
.billing-status-badge,
.cash-status-badge,
.category-badge,
.client-state-chip {
  box-shadow: none !important;
}

.stat-card.green,
.stat-card.blue,
.stat-card.gold,
.stat-card.coral,
.atlas-module-card.green,
.atlas-module-card.blue,
.atlas-module-card.gold,
.atlas-module-card.coral,
.atlas-module-card.mint,
.atlas-module-card.cyan,
.client-card.favori,
.client-card.actif,
.client-card.inactif,
.client-card.mort {
  border-color: var(--line) !important;
  background: linear-gradient(145deg, var(--surface), var(--surface-2)) !important;
}

.accent,
.link,
a,
.module-count,
.atlas-module-card span,
.atlas-module-card small,
.atlas-floating-ui span,
.atlas-logo-strip span,
.atlas-photo-stack article span,
.atlas-flow-line em {
  color: var(--atlas-brand-bluegreen) !important;
}

.modal-backdrop {
  background: rgba(7, 22, 45, 0.62) !important;
}

::-webkit-scrollbar-thumb {
  background: var(--atlas-brand-gray) !important;
}

::-webkit-scrollbar-track {
  background: var(--surface-2) !important;
}

/* Tighter ERP tables: no rounded header gaps. */
.prospect-table-wrap,
.session-table-wrap,
.presence-table-wrap,
.cash-table-wrap,
.accounting-table-wrap,
.billing-print-table-wrap,
.table-wrap {
  border-radius: 3px !important;
  overflow: auto !important;
  background: var(--surface-2) !important;
}

.prospect-table,
.session-table,
.cash-table,
.accounting-table,
.accounting-mini-table,
.presence-table,
.table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: var(--surface) !important;
}

.prospect-table thead,
.session-table thead,
.cash-table thead,
.accounting-table thead,
.accounting-mini-table thead,
.presence-table thead,
.table thead,
.prospect-table thead tr,
.session-table thead tr,
.cash-table thead tr,
.accounting-table thead tr,
.accounting-mini-table thead tr,
.presence-table thead tr,
.table thead tr {
  background: var(--surface-2) !important;
}

.prospect-table th,
.session-table th,
.cash-table th,
.accounting-table th,
.accounting-mini-table th,
.presence-table th,
.table th,
.prospect-table th:first-child,
.session-table th:first-child,
.cash-table th:first-child,
.accounting-table th:first-child,
.accounting-mini-table th:first-child,
.presence-table th:first-child,
.table th:first-child,
.prospect-table th:last-child,
.session-table th:last-child,
.cash-table th:last-child,
.accounting-table th:last-child,
.accounting-mini-table th:last-child,
.presence-table th:last-child,
.table th:last-child {
  border-radius: 0 !important;
  background: var(--surface-2) !important;
}

.prospect-table tr,
.session-table tr,
.cash-table tr,
.accounting-table tr,
.accounting-mini-table tr,
.presence-table tr,
.table tr,
.prospect-table td,
.session-table td,
.cash-table td,
.accounting-table td,
.accounting-mini-table td,
.presence-table td,
.table td {
  border-radius: 0 !important;
}

/* Sidebar search: integrated Atlas style. */
.sidebar-search {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(199, 208, 218, 0.20) !important;
  border-radius: 8px !important;
  background: rgba(7, 22, 45, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(238, 242, 246, 0.06) !important;
}

.sidebar-search span {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(238, 242, 246, 0.58) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.sidebar-search input {
  width: 100% !important;
  min-width: 0 !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--erp-white) !important;
  font-size: 12px !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.sidebar-search input::placeholder {
  color: rgba(238, 242, 246, 0.44) !important;
}

/* Compact operational rows for caisse and presence. */
.caisse-page .prospect-table-wrap,
.presence-page .presence-table-wrap {
  border-radius: 4px !important;
}

.caisse-page .cash-table th,
.presence-page .presence-table th {
  padding: 7px 10px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.caisse-page .cash-table td,
.presence-page .presence-table td {
  padding: 7px 10px !important;
  font-size: 11px !important;
  line-height: 1.22 !important;
  vertical-align: middle !important;
}

.caisse-page .cash-table td strong,
.presence-page .presence-table td strong {
  line-height: 1.15 !important;
}

.caisse-page .cash-table .prospect-sub {
  margin-top: 2px !important;
  font-size: 10px !important;
  line-height: 1.18 !important;
}

.caisse-page .cash-actions {
  gap: 4px !important;
}

.caisse-page .cash-actions .session-action-btn,
.presence-page .presence-table .session-action-btn {
  min-height: 22px !important;
  min-width: 46px !important;
  padding: 2px 7px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

.caisse-page .commercial-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 11px !important;
}

.caisse-page .cash-category,
.caisse-page .cash-status-badge,
.presence-page .presence-badge,
.presence-page .presence-doc-status {
  min-height: 20px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

.sidebar-search:focus-within {
  border-color: rgba(15, 143, 159, 0.62) !important;
  background: rgba(15, 143, 159, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(238, 242, 246, 0.08),
    0 0 0 2px rgba(15, 143, 159, 0.12) !important;
}

.settings-user-controls {
  display: grid !important;
  grid-template-columns: minmax(150px, 210px) 72px 126px !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 10px !important;
}

.settings-user-controls select {
  width: 100% !important;
  height: 36px !important;
  padding: 0 10px !important;
  font-size: 14px !important;
}

.settings-user-controls .session-action-btn {
  min-width: 118px !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

@media (max-width: 920px) {
  .settings-list .settings-user-row {
    grid-template-columns: 1fr;
  }

  .settings-user-controls {
    grid-template-columns: 1fr auto auto !important;
    justify-content: stretch !important;
  }
}

/* Final light sidebar polish. */
body.has-sidebar,
.app-shell {
  background: linear-gradient(90deg, #f7f9fc 0 280px, var(--erp-bg) 280px 100%) !important;
}

.app-shell.sidebar-collapsed {
  background: linear-gradient(90deg, #f7f9fc 0 84px, var(--erp-bg) 84px 100%) !important;
}

.sidebar {
  position: sticky !important;
  overflow: visible !important;
  border-right: 1px solid #d3dbe7 !important;
  background: linear-gradient(180deg, #fbfcff 0%, #eef3f8 100%) !important;
  color: #0b1f3f !important;
  box-shadow: 8px 0 28px rgba(11, 31, 63, 0.06) !important;
}

.sidebar .brand-text h1,
.sidebar .brand-text p,
.sidebar .brand-lockup strong,
.sidebar-footer .muted strong,
.sidebar-footer,
.sidebar .session-card,
.sidebar .session-card strong {
  color: #0b1f3f !important;
}

.sidebar .brand-lockup span,
.sidebar-footer .muted span,
.sidebar .muted,
.sidebar .nav-section-title,
.sidebar-footer small {
  color: #607087 !important;
}

.sidebar .brand-mark {
  background: #ffffff !important;
  border: 1px solid #d3dbe7 !important;
  box-shadow: 0 12px 24px rgba(11, 31, 63, 0.10) !important;
}

.sidebar-head {
  position: relative;
}

.sidebar-toggle,
.sidebar-collapsed .sidebar-toggle {
  position: absolute !important;
  top: 50vh !important;
  right: -18px !important;
  z-index: 30 !important;
  display: grid !important;
  width: 38px !important;
  height: 58px !important;
  place-items: center !important;
  border: 1px solid #d3dbe7 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #0b1f3f !important;
  box-shadow: 0 16px 32px rgba(11, 31, 63, 0.16) !important;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease !important;
}

.sidebar-toggle:hover {
  transform: translateX(2px) !important;
  background: #edf2f7 !important;
  box-shadow: 0 18px 36px rgba(11, 31, 63, 0.20) !important;
}

.sidebar-collapsed .sidebar-toggle {
  right: -10px !important;
  width: 18px !important;
  height: 30px !important;
  border-radius: 10px !important;
  border-color: rgba(199, 211, 223, 0.36) !important;
  background: rgba(255, 255, 255, 0.42) !important;
  color: rgba(11, 31, 63, 0.48) !important;
  font-size: 11px !important;
  box-shadow: 0 8px 18px rgba(11, 31, 63, 0.06) !important;
  opacity: 0.42 !important;
}

.sidebar-collapsed .sidebar-toggle:hover {
  transform: translateX(1px) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #0b1f3f !important;
  opacity: 0.9 !important;
  box-shadow: 0 10px 20px rgba(11, 31, 63, 0.12) !important;
}

.sidebar-search {
  border: 1px solid #d3dbe7 !important;
  background: #ffffff !important;
  color: #0b1f3f !important;
  box-shadow: 0 10px 22px rgba(11, 31, 63, 0.05) !important;
}

.sidebar-search span {
  color: #263d5d !important;
}

.sidebar-search input,
.sidebar-search input::placeholder {
  color: #607087 !important;
}

.sidebar-search input {
  color: #0b1f3f !important;
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext !important;
}

.sidebar-search:focus-within {
  border-color: #0f8f9f !important;
  background: #fbfdff !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 159, 0.12) !important;
}

.nav {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(96, 112, 135, 0.22) transparent !important;
}

.nav::-webkit-scrollbar {
  width: 4px !important;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(96, 112, 135, 0.24) !important;
  border-radius: 999px !important;
}

.nav::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 112, 135, 0.42) !important;
}

.nav::-webkit-scrollbar-track {
  background: transparent !important;
}

.nav button {
  position: relative;
  overflow: hidden;
  color: #263d5d !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition:
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
  border-color 150ms ease !important;
}

.nav-section {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}

.nav-section-title {
  margin: 10px 8px 4px;
  color: #7a8aa0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-collapsed .nav-section-title {
  display: none;
}

.nav button::before {
  content: none !important;
}

.nav button:hover {
  transform: translateX(4px) !important;
  background: #e3e9f1 !important;
  border-color: #d3dbe7 !important;
  color: #0b1f3f !important;
  box-shadow: 0 8px 18px rgba(11, 31, 63, 0.08) !important;
}

.nav button.active {
  transform: translateX(2px) !important;
  background: #dbe4ee !important;
  border-color: #c7d3df !important;
  color: #0b1f3f !important;
  box-shadow: 0 10px 22px rgba(11, 31, 63, 0.10) !important;
}

.nav button.active:hover {
  transform: translateX(5px) !important;
}

.nav-icon,
.nav-icon.tone-1,
.nav-icon.tone-2,
.nav-icon.tone-3,
.nav-icon.tone-4,
.nav-icon.tone-5,
.nav-icon.tone-6 {
  background: #d6e0eb !important;
  color: #0b1f3f !important;
  border: 1px solid #c7d3df !important;
}

.nav button.active .nav-icon,
.nav button:hover .nav-icon {
  background: #263d5d !important;
  color: #ffffff !important;
  border-color: #263d5d !important;
}

.sidebar-footer {
  border-top: 1px solid #d3dbe7 !important;
}

.sidebar-footer .secondary-btn {
  background: #ffffff !important;
  border-color: #d3dbe7 !important;
  color: #0b1f3f !important;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.session-action-btn,
.new-prospect-btn,
.new-session-btn,
.new-billing-btn,
.new-cash-btn,
.request-cash-btn,
.dark-btn,
.btn-primary,
.button-primary,
.pagination button,
.tab-btn,
.filter-chip,
.toolbar-btn {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease !important;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.session-action-btn:hover,
.new-prospect-btn:hover,
.new-session-btn:hover,
.new-billing-btn:hover,
.new-cash-btn:hover,
.request-cash-btn:hover,
.dark-btn:hover,
.btn-primary:hover,
.button-primary:hover,
.pagination button:hover,
.tab-btn:hover,
.filter-chip:hover,
.toolbar-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px rgba(11, 31, 63, 0.14) !important;
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.icon-btn:active,
.session-action-btn:active,
.new-prospect-btn:active,
.new-session-btn:active,
.new-billing-btn:active,
.new-cash-btn:active,
.request-cash-btn:active,
.dark-btn:active,
.btn-primary:active,
.button-primary:active,
.pagination button:active,
.tab-btn:active,
.filter-chip:active,
.toolbar-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

.product-summary-row,
.marketing-grid,
.marketing-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.product-summary-row article,
.product-card,
.marketing-card,
.empty-panel,
.table-panel {
  border: 1px solid #c7d3df;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(11, 31, 63, 0.08);
}

.requests-page .product-summary-row {
  gap: 18px;
  margin: 22px 0 16px;
}

.requests-page .client-filter-bar {
  margin: 8px 0 22px;
  gap: 10px;
}

.product-page-tabs {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #c7d3df;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  padding: 8px;
}

.product-page-tabs button {
  background: transparent;
  border: 0;
  color: #607087;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 14px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.product-page-tabs button:hover,
.product-page-tabs button.active {
  background: rgba(11, 31, 63, 0.1);
  color: #0b1f3f;
  transform: translateY(-1px);
}

.requests-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.requests-table th,
.requests-table td {
  padding: 12px 16px !important;
  vertical-align: middle;
}

.requests-table th:nth-child(1),
.requests-table td:nth-child(1) {
  width: 125px;
}

.requests-table th:nth-child(2),
.requests-table td:nth-child(2) {
  width: 250px;
}

.requests-table th:nth-child(3),
.requests-table td:nth-child(3) {
  width: 105px;
}

.requests-table th:nth-child(4),
.requests-table td:nth-child(4) {
  width: 150px;
}

.requests-table th:nth-child(5),
.requests-table td:nth-child(5) {
  width: 155px;
}

.requests-table th:nth-child(6),
.requests-table td:nth-child(6) {
  width: 115px;
}

.requests-table th:nth-child(7),
.requests-table td:nth-child(7) {
  width: 135px;
}

.requests-table th:nth-child(8),
.requests-table td:nth-child(8) {
  width: 220px;
}

.requests-table .row-actions {
  justify-content: flex-start;
  gap: 6px;
}

.requests-table .session-action-btn {
  min-width: 70px !important;
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

.requests-table .cash-category,
.requests-table .cash-status-badge {
  min-width: 0;
  white-space: nowrap;
}

.request-type-editor article {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  align-items: center;
  gap: 10px;
}

.request-type-editor input,
.request-type-editor select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}

.request-type-editor .session-action-btn {
  min-width: 72px !important;
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

.product-summary-row article {
  padding: 22px;
}

.product-summary-row span,
.product-card-top span,
.marketing-card > span {
  color: #607087;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-summary-row strong {
  display: block;
  margin-top: 10px;
  color: #0b1f3f;
  font-size: 32px;
  line-height: 1;
}

.product-summary-row p,
.product-card p,
.marketing-card p,
.empty-panel p,
.table-panel p {
  color: #607087;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.product-card,
.marketing-card,
.empty-panel,
.table-panel {
  padding: 22px;
}

.product-card-image {
  min-height: 150px;
  margin: -22px -22px 18px;
  background: #dbe4ee center / cover no-repeat;
  border-bottom: 1px solid #c7d3df;
  position: relative;
  overflow: hidden;
}

.product-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 29, 61, 0.08), rgba(6, 29, 61, 0.42));
}

.product-card-image span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.88);
  color: #0b1f3f;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.product-card-top em {
  border: 1px solid #c7d3df;
  background: #edf2f7;
  color: #263d5d;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.product-card h2,
.marketing-card h2,
.empty-panel h2,
.table-panel h2 {
  color: #0b1f3f;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.product-detail-photo {
  grid-column: span 2;
}

.product-detail-photo img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  margin-top: 10px;
  border: 1px solid #c7d3df;
}

.product-meta span {
  background: #edf2f7;
  color: #607087;
  font-size: 12px;
  padding: 10px;
}

.product-meta strong {
  display: block;
  color: #0b1f3f;
  font-size: 14px;
  margin-top: 4px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.product-tags span {
  background: rgba(15, 143, 159, 0.10);
  color: #0f8f9f;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.product-tdr-wrap {
  margin-top: 18px;
}

.product-tdr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.product-tdr-toolbar h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 24px;
}

.product-tdr-toolbar p {
  margin: 0;
  color: var(--muted);
}

.product-tdr-chip {
  background: rgba(15, 143, 159, 0.1);
  color: #0f8f9f;
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  margin: 3px 5px 3px 0;
  padding: 6px 9px;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.marketing-grid,
.marketing-content-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.marketing-card {
  background:
    linear-gradient(135deg, rgba(237, 242, 247, 0.92), rgba(255, 255, 255, 0.82)),
    #ffffff;
}

.marketing-visual-suggestion {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #c7d3df;
  background: rgba(15, 143, 159, 0.08);
}

.marketing-visual-suggestion strong {
  display: block;
  color: #0b1f3f;
  font-size: 12px;
  text-transform: uppercase;
}

.marketing-checklist {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.marketing-checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid #d3dbe7;
  background: #ffffff;
  color: #263d5d;
  font-size: 12px;
  font-weight: 750;
}

.marketing-checklist label.done {
  border-color: rgba(15, 143, 159, 0.28);
  background: rgba(15, 143, 159, 0.10);
  color: #0f8f9f;
}

.marketing-performance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 8px;
}

.marketing-performance article {
  padding: 10px;
  border: 1px solid #d3dbe7;
  background: #ffffff;
}

.marketing-performance span {
  display: block;
  color: #607087;
  font-size: 11px;
  font-weight: 800;
}

.marketing-performance strong {
  display: block;
  margin-top: 5px;
  color: #0b1f3f;
  font-size: 22px;
  line-height: 1;
}

.marketing-performance-note {
  margin: 0 0 10px !important;
  color: #263d5d !important;
  font-size: 12px;
  font-weight: 750;
}

.marketing-workflow-note {
  margin: 10px 0 12px !important;
  padding: 10px 12px;
  border: 1px solid #c7d3df;
  background: rgba(15, 143, 159, 0.08);
  color: #263d5d !important;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.marketing-lead-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #d3dbe7;
  background: rgba(255, 255, 255, 0.72);
}

.marketing-lead-list > strong {
  color: #0b1f3f;
  font-size: 12px;
  text-transform: uppercase;
}

.marketing-lead-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #d3dbe7;
}

.marketing-lead-row span {
  color: #0f8f9f;
  font-size: 12px;
  font-weight: 900;
}

.marketing-lead-row p {
  margin: 0 !important;
  color: #0b1f3f !important;
  font-size: 13px;
  font-weight: 800;
}

.marketing-lead-row small {
  display: block;
  margin-top: 2px;
  color: #607087;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .product-summary-row,
  .marketing-grid,
  .marketing-content-grid,
  .product-meta {
    grid-template-columns: 1fr;
  }
}

/* Final public website cleanup: remove section backplates and calm the first viewport. */
.atlas-site,
.atlas-site *,
.atlas-site *::before,
.atlas-site *::after {
  letter-spacing: 0 !important;
}

.atlas-site {
  max-width: 1420px !important;
  padding: 18px 32px 64px !important;
  gap: 46px !important;
  background: transparent !important;
}

.atlas-site-hero,
.atlas-site-nav,
.atlas-site-hero-grid,
.atlas-split-section,
.atlas-product-section,
.atlas-editorial-grid,
.atlas-site-cta {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.atlas-site-hero {
  overflow: visible !important;
}

.atlas-site-nav {
  padding: 8px 0 30px !important;
}

.atlas-site-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.78fr) !important;
  gap: 54px !important;
  padding: 34px 0 56px !important;
  align-items: center !important;
}

.atlas-site-copy h1 {
  max-width: 680px !important;
  font-size: 52px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

.atlas-site-copy p {
  max-width: 700px !important;
  margin-top: 18px !important;
  font-size: 17px !important;
  line-height: 1.58 !important;
}

.atlas-site .atlas-hero-actions {
  margin-top: 24px !important;
}

.atlas-hero-media {
  min-height: 380px !important;
}

.atlas-hero-media img {
  height: 380px !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 36px rgba(11, 31, 63, 0.1) !important;
}

.atlas-floating-ui {
  left: -12px !important;
  bottom: 18px !important;
  width: 190px !important;
  border-radius: 8px !important;
  padding: 14px !important;
  box-shadow: 0 14px 34px rgba(11, 31, 63, 0.12) !important;
}

.atlas-floating-ui strong {
  font-size: 34px !important;
}

.atlas-split-section,
.atlas-product-section,
.atlas-site-cta {
  padding: 0 !important;
}

.atlas-editorial-grid {
  overflow: visible !important;
  gap: 18px !important;
}

.atlas-editorial-card {
  border-radius: 8px !important;
}

@media (max-width: 1180px) {
  .atlas-site-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .atlas-site-copy h1 {
    font-size: 40px !important;
  }
}

@media (max-width: 760px) {
  .atlas-site {
    padding: 14px 18px 44px !important;
    gap: 34px !important;
  }

  .atlas-site-nav {
    padding-bottom: 20px !important;
  }

  .atlas-site-hero-grid {
    padding: 22px 0 38px !important;
    gap: 28px !important;
  }

  .atlas-site-copy h1 {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  .atlas-site-copy p {
    font-size: 15px !important;
  }

.atlas-hero-media,
  .atlas-hero-media img {
    min-height: 280px !important;
    height: 280px !important;
  }
}

.public-site {
  color: var(--ink);
  padding: 0 0 54px;
}

.public-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(8, 142, 155, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(245, 249, 252, 0.96), rgba(222, 231, 240, 0.82));
  border-bottom: 1px solid rgba(40, 68, 96, 0.14);
  overflow: hidden;
  padding: 24px clamp(22px, 5vw, 72px) 54px;
  position: relative;
}

.public-hero::after {
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  content: "";
  height: 160%;
  left: -42%;
  pointer-events: none;
  position: absolute;
  top: -28%;
  transform: rotate(12deg);
  width: 22%;
  animation: publicSheen 7s ease-in-out infinite;
}

.public-site-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.public-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 950;
}

.public-brand img {
  background: white;
  border: 1px solid rgba(40, 68, 96, 0.12);
  height: 54px;
  object-fit: contain;
  padding: 7px;
  width: 54px;
}

.public-nav-links {
  align-items: center;
  display: flex;
  gap: 10px;
}

.public-nav-links button,
.public-secondary-link {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(42, 63, 84, 0.14);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 14px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.public-nav-links button:hover,
.public-secondary-link:hover {
  background: white;
  color: var(--ink);
  transform: translateY(-2px);
}

.public-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(30px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.82fr);
  position: relative;
  z-index: 1;
}

.public-hero-copy h1 {
  font-size: clamp(42px, 6.3vw, 86px);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 820px;
}

.public-hero-copy p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.55;
  margin: 26px 0 0;
  max-width: 720px;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.public-primary-link,
.public-register-btn,
.public-submit-btn,
.session-action-btn.public-process {
  background: #c62828;
  border: 0;
  color: white;
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(198, 40, 40, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.public-primary-link {
  padding: 14px 22px;
}

.public-primary-link:hover,
.public-register-btn:hover,
.public-submit-btn:hover,
.session-action-btn.public-process:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(198, 40, 40, 0.28);
}

.public-secondary-link {
  padding: 14px 22px;
}

.public-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.public-proof-row span {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(42, 63, 84, 0.12);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  padding: 10px 13px;
}

.public-proof-row strong {
  color: var(--ink);
  margin-right: 4px;
}

.public-hero-visual {
  min-height: 460px;
  position: relative;
}

.public-hero-visual img {
  border: 1px solid rgba(42, 63, 84, 0.18);
  box-shadow: 0 34px 72px rgba(13, 36, 61, 0.2);
  filter: grayscale(0.12) saturate(0.9);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.public-float-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 63, 84, 0.13);
  box-shadow: 0 18px 40px rgba(13, 36, 61, 0.12);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  padding: 14px 16px;
  position: absolute;
  z-index: 1;
  animation: publicFloat 4.6s ease-in-out infinite;
}

.public-float-card.top {
  right: -18px;
  top: 26px;
}

.public-float-card.bottom {
  bottom: 34px;
  left: -22px;
  animation-delay: 1.1s;
}

.public-section {
  padding: 52px clamp(22px, 5vw, 72px) 0;
}

.public-section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.public-section h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  margin: 0;
}

.public-section-head p,
.public-doc-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 680px;
}

.public-process-grid,
.public-summary-grid,
.public-session-grid {
  display: grid;
  gap: 18px;
}

.public-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-process-grid article,
.public-summary-grid article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 63, 84, 0.13);
  box-shadow: 0 18px 42px rgba(13, 36, 61, 0.07);
}

.public-process-grid article {
  min-height: 0;
  padding: 18px;
}

.public-process-grid span {
  color: #078e9b;
  display: block;
  font-weight: 950;
  margin-bottom: 14px;
}

.public-process-grid h3 {
  font-size: 1.08rem;
  margin: 0 0 12px;
}

.public-process-grid p,
.public-session-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.public-documents {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 244, 249, 0.78));
  border-top: 1px solid rgba(42, 63, 84, 0.12);
  border-bottom: 1px solid rgba(42, 63, 84, 0.12);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin-top: 58px;
  padding: 46px clamp(22px, 5vw, 72px);
}

.public-doc-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-doc-list span {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 142, 155, 0.14);
  color: var(--ink);
  font-weight: 900;
  min-height: 62px;
  padding: 13px 15px;
}

.public-registration-block {
  scroll-margin-top: 22px;
}

.public-registration-layout {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 63, 84, 0.14);
  box-shadow: 0 22px 52px rgba(13, 36, 61, 0.08);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  padding: 28px;
}

.public-form-intro {
  background:
    linear-gradient(160deg, rgba(9, 80, 111, 0.1), rgba(8, 142, 155, 0.08)),
    rgba(246, 250, 253, 0.9);
  border: 1px solid rgba(42, 63, 84, 0.12);
  padding: 24px;
}

.public-form-intro > span {
  color: #078e9b;
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-form-intro h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  margin: 16px 0 14px;
}

.public-form-intro p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.public-form-note {
  background: white;
  border-left: 4px solid #c62828;
  margin-top: 24px;
  padding: 14px;
}

.public-form-note strong,
.public-form-note small {
  display: block;
}

.public-form-note small {
  color: var(--muted);
  margin-top: 4px;
}

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

.public-inline-form .field {
  margin: 0;
}

.public-inline-form input,
.public-inline-form select,
.public-inline-form textarea {
  min-height: 48px;
}

.public-inline-form textarea {
  min-height: 112px;
}

.public-client-lookup {
  align-items: end;
  background: rgba(235, 241, 247, 0.76);
  border: 1px solid rgba(42, 63, 84, 0.14);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.public-client-lookup .field {
  margin: 0;
}

.public-lookup-btn {
  background: var(--ink);
  border: 0;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.public-lookup-btn:hover {
  box-shadow: 0 12px 24px rgba(5, 17, 34, 0.14);
  transform: translateY(-1px);
}

.public-client-lookup-status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  grid-column: 1 / -1;
  margin: 0;
}

.public-client-lookup-status.success {
  color: var(--accent);
}

.public-client-lookup-status.error {
  color: #b63a3a;
}

.public-file-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
}

.public-summary-grid article {
  padding: 18px 20px;
}

.public-summary-grid span,
.public-session-ref {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-summary-grid strong {
  color: var(--ink);
  display: block;
  font-size: 2rem;
  margin: 10px 0 4px;
}

.public-summary-grid small {
  color: var(--muted);
}

.public-summary-grid .urgent strong {
  color: #c62828;
}

.public-session-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.public-session-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 63, 84, 0.14);
  box-shadow: 0 20px 42px rgba(13, 36, 61, 0.08);
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.public-session-card:hover {
  box-shadow: 0 24px 52px rgba(13, 36, 61, 0.13);
  transform: translateY(-4px);
}

.public-session-image {
  background-color: #0d314d;
  background-position: center;
  background-size: cover;
  height: 188px;
  position: relative;
}

.public-session-image::after {
  background: linear-gradient(180deg, rgba(6, 20, 38, 0.05), rgba(6, 20, 38, 0.66));
  content: "";
  inset: 0;
  position: absolute;
}

.public-session-image span {
  background: rgba(255, 255, 255, 0.9);
  bottom: 14px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  left: 14px;
  padding: 7px 10px;
  position: absolute;
  z-index: 1;
}

.public-session-content {
  padding: 22px;
}

.public-session-card h3 {
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1.1;
  margin: 9px 0 10px;
}

.public-session-meta,
.public-session-leads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-session-meta {
  margin: 16px 0;
}

.public-session-meta span,
.public-session-leads span,
.public-alert-badge {
  background: rgba(9, 80, 111, 0.08);
  color: var(--muted);
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.public-syllabus-link {
  color: #078e9b;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 950;
  margin: 16px 0 0;
  text-decoration: none;
}

.public-syllabus-link:hover {
  text-decoration: underline;
}

.public-progress {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
}

.public-progress div {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.public-progress strong {
  color: var(--ink);
}

.public-progress > span {
  background: rgba(6, 20, 38, 0.1);
  display: block;
  height: 8px;
  overflow: hidden;
}

.public-progress i {
  background: linear-gradient(90deg, #078e9b, #0b2749);
  display: block;
  height: 100%;
}

.public-session-docs {
  border-left: 3px solid #c62828;
  padding-left: 12px;
}

.public-session-leads {
  margin: 18px 0;
}

.public-session-leads strong {
  color: var(--ink);
  flex-basis: 100%;
  font-size: 0.9rem;
}

.public-register-btn,
.public-submit-btn {
  padding: 12px 16px;
  width: 100%;
}

.public-company-area {
  display: none;
  gap: 14px;
}

.public-company-area.show {
  display: grid;
}

.field-help,
.public-alert-badge {
  margin-top: 6px;
}

.public-alert-badge {
  background: rgba(198, 40, 40, 0.1);
  color: #c62828;
}

.public-urgent-row {
  box-shadow: inset 4px 0 0 #c62828;
}

@media (max-width: 900px) {
  .public-hero-grid,
  .public-process-grid,
  .public-summary-grid,
  .public-documents,
  .public-registration-layout,
  .public-client-lookup,
  .public-file-grid {
    grid-template-columns: 1fr;
  }

  .public-site-nav,
  .public-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-hero-visual {
    min-height: 340px;
  }

  .public-doc-list {
    grid-template-columns: 1fr;
  }
}

@keyframes publicFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes publicSheen {
  0%, 38% {
    left: -42%;
    opacity: 0;
  }

  52% {
    opacity: 1;
  }

  74%, 100% {
    left: 118%;
    opacity: 0;
  }
}

.todo-page .product-summary-row,
.messages-page .product-summary-row {
  margin: 26px 0 24px;
}

.todo-table th,
.todo-table td {
  min-width: 130px;
}

.todo-table th:nth-child(2),
.todo-table td:nth-child(2) {
  min-width: 230px;
}

.todo-follow-form {
  margin-top: 14px;
}

.todo-status-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.todo-status-btn:hover {
  transform: translateY(-1px);
}

.messages-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
  margin-top: 28px;
}

.message-threads,
.message-panel {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(42, 63, 84, 0.14);
  box-shadow: 0 18px 44px rgba(13, 36, 61, 0.08);
}

.message-threads {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.message-threads h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.message-threads-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.message-threads-head .secondary-btn {
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 8px 12px;
}

.message-threads button {
  align-items: center;
  background: rgba(238, 244, 249, 0.78);
  border: 1px solid rgba(42, 63, 84, 0.12);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 38px 1fr;
  padding: 10px;
  text-align: left;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.message-threads button:hover,
.message-threads button.active {
  background: rgba(214, 226, 236, 0.96);
  box-shadow: 0 12px 26px rgba(13, 36, 61, 0.08);
  transform: translateX(3px);
}

.message-threads button span {
  align-items: center;
  background: linear-gradient(135deg, #0b2749, #078e9b);
  color: #fff;
  display: flex;
  font-weight: 950;
  grid-row: span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.message-threads button strong {
  font-size: 0.92rem;
}

.message-threads button small {
  color: var(--muted);
}

.message-member-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
  max-height: 280px;
  overflow: auto;
}

.message-member-grid label {
  align-items: center;
  background: rgba(238, 244, 249, 0.78);
  border: 1px solid rgba(42, 63, 84, 0.14);
  color: var(--ink);
  display: flex;
  font-weight: 850;
  gap: 10px;
  padding: 10px;
}

.message-member-grid input {
  width: auto;
}

.message-panel {
  display: grid;
  min-height: 620px;
}

.message-panel-head {
  border-bottom: 1px solid rgba(42, 63, 84, 0.12);
  padding: 18px 20px;
}

.message-panel-head h2 {
  color: var(--ink);
  font-size: 1.4rem;
  margin: 0;
}

.message-panel-head p {
  color: var(--muted);
  margin: 4px 0 0;
}

.message-list {
  align-content: start;
  display: grid;
  gap: 12px;
  max-height: 470px;
  overflow: auto;
  padding: 20px;
}

.message-bubble {
  background: rgba(238, 244, 249, 0.95);
  border: 1px solid rgba(42, 63, 84, 0.12);
  color: var(--ink);
  max-width: min(680px, 86%);
  padding: 12px 14px;
}

.message-bubble.mine {
  background: rgba(7, 142, 155, 0.12);
  justify-self: end;
}

.message-bubble strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.message-bubble p {
  color: var(--muted);
  margin: 0;
  white-space: pre-wrap;
}

.message-bubble small,
.message-file {
  display: block;
  font-size: 0.72rem;
  margin-top: 8px;
}

.message-file {
  background: rgba(11, 39, 73, 0.08);
  color: var(--ink);
  font-weight: 850;
  padding: 6px 8px;
  width: fit-content;
}

.message-bubble small {
  color: rgba(91, 111, 133, 0.78);
}

.message-compose {
  border-top: 1px solid rgba(42, 63, 84, 0.12);
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
}

.message-compose textarea {
  min-height: 86px;
}

.message-compose-actions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px 1fr auto;
}

@media (max-width: 920px) {
  .messages-layout,
  .message-compose-actions {
    grid-template-columns: 1fr;
  }
}

.subscriptions-page .product-summary-row {
  margin: 28px 0 14px;
}

.compact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.session-action-btn.green,
.session-action-btn.blue {
  background: var(--atlas-teal, #0f8b99);
  color: #ffffff;
  border-color: transparent;
}

.session-action-btn.muted-action {
  background: #e8edf3;
  color: var(--atlas-ink, #071f3f);
  border-color: #c6d2df;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 139, 153, 0.12);
  color: var(--atlas-teal, #0f8b99);
  font-size: 12px;
  font-weight: 800;
}

.table-note {
  margin-top: 10px;
  text-align: right;
}

.product-library-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 18px;
}

.product-library-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 63, 84, 0.14);
  box-shadow: 0 18px 42px rgba(13, 36, 61, 0.07);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.product-library-card > div:first-child span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-library-card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin: 6px 0;
}

.product-library-card p {
  color: var(--muted);
  margin: 0;
}

.library-support-pills,
.library-evaluation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-support-pills span,
.library-evaluation-row button {
  background: #e8edf3;
  border: 1px solid #c8d3df;
  color: #53677d;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 30px;
  padding: 6px 9px;
}

.library-support-pills span.complete,
.library-evaluation-row button.complete {
  background: rgba(15, 139, 153, 0.14);
  border-color: rgba(15, 139, 153, 0.34);
  color: #075f6a;
}

.library-evaluation-row button {
  cursor: pointer;
}

.brand-mark:has(img),
.sidebar .brand-mark:has(img),
.atlas-brand-mark:has(img),
.atlas-logo-mark:has(img),
.atlas-site-brand span:has(img) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.brand-mark:has(img) img,
.sidebar .brand-mark:has(img) img,
.atlas-brand-mark:has(img) img,
.atlas-logo-mark:has(img) img,
.atlas-site-brand span:has(img) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.login-visual {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #edf3f8 54%, #dfeaf2 100%) !important;
  color: #0b1f3f !important;
}

.login-visual *,
.login-visual .brand-lockup strong,
.login-copy h1 {
  color: #0b1f3f !important;
}

.login-visual p,
.login-visual .brand-lockup span {
  color: #53677d !important;
}

.login-link-btn {
  margin-top: 10px !important;
  width: 100% !important;
}

.login-success {
  margin: 10px 0 0 !important;
}

.products-page {
  background: linear-gradient(180deg, #f7faff 0%, #eef4f9 100%) !important;
  padding: 22px !important;
}

.products-page .prospect-topbar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: #d7e1eb !important;
  box-shadow: 0 10px 26px rgba(11, 31, 63, 0.05) !important;
}

.products-page .product-page-tabs {
  width: fit-content !important;
  grid-template-columns: repeat(2, auto) !important;
  background: #ffffff !important;
  border-color: #d7e1eb !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(11, 31, 63, 0.05) !important;
}

.products-page .product-page-tabs button {
  border-radius: 6px !important;
  min-width: 150px !important;
  padding: 10px 14px !important;
}

.products-page .product-page-tabs button.active {
  background: #0b1f3f !important;
  color: #ffffff !important;
}

.products-page .product-summary-row {
  gap: 12px !important;
  margin: 16px 0 20px !important;
}

.products-page .product-summary-row article {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: #d7e1eb !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
}

.products-page .product-tdr-toolbar {
  align-items: end !important;
  background: transparent !important;
  border: 0 !important;
  margin: 4px 0 16px !important;
}

.products-page .product-tdr-toolbar h2 {
  font-size: 28px !important;
  letter-spacing: 0 !important;
  margin-bottom: 8px !important;
}

.products-page .product-tdr-toolbar p {
  max-width: 900px !important;
  color: #63758b !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.products-page .product-tdr-toolbar .primary-btn {
  width: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  padding: 0 18px !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 20px rgba(11, 31, 63, 0.12) !important;
}

.product-library-grid {
  gap: 16px !important;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important;
  margin-bottom: 22px !important;
}

.product-library-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #d8e3ed !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(11, 31, 63, 0.06) !important;
  gap: 16px !important;
  padding: 20px !important;
}

.product-library-card > div:first-child span {
  color: #6a7b90 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
}

.product-library-card h3 {
  color: #0b1f3f !important;
  font-size: 19px !important;
  line-height: 1.18 !important;
  margin: 8px 0 !important;
}

.product-library-card p {
  color: #63758b !important;
  font-size: 14px !important;
}

.library-support-pills,
.library-evaluation-row {
  gap: 7px !important;
}

.library-support-pills span,
.library-evaluation-row button {
  background: #f2f6fa !important;
  border-color: #d8e3ed !important;
  border-radius: 8px !important;
  color: #52657b !important;
  font-size: 12px !important;
  min-height: 32px !important;
  padding: 7px 10px !important;
}

.library-support-pills span.complete,
.library-evaluation-row button.complete {
  background: #e8f6f8 !important;
  border-color: #acdbe2 !important;
  color: #075f6a !important;
}

.library-evaluation-row button:hover {
  background: #ffffff !important;
  border-color: #9fb4c9 !important;
  color: #0b1f3f !important;
  transform: translateY(-1px);
}

.products-page .product-tdr-wrap {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #d8e3ed !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(11, 31, 63, 0.05) !important;
}

.products-page .session-table th {
  background: #f5f8fb !important;
  color: #63758b !important;
}

.products-page .product-tdr-chip {
  background: #eef6f8 !important;
  border-radius: 999px !important;
  color: #075f6a !important;
  padding: 5px 9px !important;
}

.public-only-shell {
  min-height: 100vh;
  background: #f7faff;
}

.public-only-shell .public-site {
  min-height: 100vh;
}

.public-submit-success {
  align-content: center;
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: 32px;
  text-align: center;
}

.public-submit-success img {
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.public-submit-success h1 {
  color: #0b1f3f;
  font-size: clamp(34px, 5vw, 58px);
  margin: 22px 0 10px;
}

.public-submit-success p {
  color: #63758b;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}

.public-submit-success a {
  background: #0b1f3f;
  color: #ffffff;
  font-weight: 900;
  margin-top: 26px;
  padding: 12px 18px;
  text-decoration: none;
}

/* erp-responsive-final: compact product cards and tablet/mobile layout polish. */
.products-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 14px !important;
}

.products-page .product-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 16px !important;
}

.products-page .product-card-image {
  height: 122px !important;
  min-height: 0 !important;
  margin: -16px -16px 12px !important;
}

.products-page .product-card-top {
  gap: 10px !important;
  margin-bottom: 0 !important;
}

.products-page .product-card-top span {
  font-size: 12px !important;
}

.products-page .product-card-top em {
  max-width: 58% !important;
  overflow: hidden !important;
  padding: 5px 8px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.products-page .product-card h2 {
  font-size: 22px !important;
  line-height: 1.12 !important;
  margin: 0 !important;
}

.products-page .product-card p {
  display: -webkit-box !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  max-height: 38px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.products-page .product-card .product-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 4px 0 !important;
}

.products-page .product-card .product-meta span {
  min-height: 58px !important;
  padding: 8px 9px !important;
}

.products-page .product-card .product-meta strong {
  font-size: 13px !important;
}

.products-page .product-tags {
  min-height: 0 !important;
}

.products-page .product-card-actions {
  margin-top: auto !important;
  padding-top: 4px !important;
}

.marketing-checklist > strong {
  color: #0b1f3f !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.marketing-checklist label span {
  display: grid !important;
  gap: 2px !important;
}

.marketing-checklist label em {
  color: #6b7b8f !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.marketing-checklist label.done em {
  color: #0f8f9f !important;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .sidebar {
    padding: 16px 12px !important;
  }

  .sidebar .brand-lockup,
  .sidebar-search,
  .sidebar-footer .muted,
  .sidebar-footer .secondary-btn,
  .nav-label {
    display: none !important;
  }

  .sidebar-head,
  .nav button {
    justify-content: center !important;
  }

  .main {
    padding: 18px !important;
  }

  .product-summary-row,
  .employee-kpis,
  .leave-management-layout,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block !important;
  }

  .sidebar {
    border-bottom: 1px solid #d8e3ed !important;
    border-right: 0 !important;
    display: grid !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px !important;
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 40 !important;
  }

  .sidebar-head {
    justify-content: space-between !important;
  }

  .sidebar .brand-lockup {
    display: flex !important;
  }

  .sidebar .brand-lockup span,
  .sidebar-toggle,
  .sidebar-footer {
    display: none !important;
  }

  .nav {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 3px !important;
  }

  .nav button {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    width: auto !important;
  }

  .nav-label {
    display: inline !important;
    font-size: 12px !important;
  }

  .main,
  .products-page {
    padding: 12px !important;
  }

  .prospect-topbar,
  .product-tdr-toolbar,
  .simple-sessions .prospect-topbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .prospect-topbar-actions,
  .simple-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  .products-page .product-grid,
  .marketing-grid,
  .marketing-content-grid,
  .form-grid,
  .detail-grid,
  .employee-kpis,
  .product-summary-row,
  .public-registration-layout,
  .leave-management-layout {
    grid-template-columns: 1fr !important;
  }

  .products-page .product-card .product-meta,
  .product-meta,
  .marketing-performance {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .products-page .product-card-image {
    height: 112px !important;
  }

  .product-page-tabs {
    width: 100% !important;
  }

  .product-page-tabs button {
    min-width: 0 !important;
  }

  .prospect-table-wrap,
  .table-panel,
  .product-tdr-wrap {
    overflow-x: auto !important;
  }

  .modal-card,
  .product-detail-modal,
  .request-modal,
  .profile-modal {
    max-height: 90vh !important;
    overflow: auto !important;
    width: calc(100vw - 24px) !important;
  }
}

@media (max-width: 520px) {
  .sidebar .brand-lockup strong {
    font-size: 16px !important;
  }

  .nav-label {
    display: none !important;
  }

  .nav button {
    aspect-ratio: 1 !important;
    padding: 0 !important;
    width: 42px !important;
  }

  .products-page .product-card .product-meta,
  .product-meta,
  .marketing-performance {
    grid-template-columns: 1fr 1fr !important;
  }

  .products-page .product-card-actions .session-action-btn {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0 !important;
  }

  .products-page .product-card-actions .session-action-btn.primary {
    flex-basis: 100% !important;
  }
}

/* messages-refresh-final: brighter inbox, unread badges and read receipts. */
.nav button {
  position: relative !important;
}

.nav-unread-badge {
  align-items: center !important;
  background: #ff5c7a !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(255, 92, 122, 0.35) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  height: 22px !important;
  justify-content: center !important;
  min-width: 22px !important;
  padding: 0 6px !important;
  position: absolute !important;
  right: 10px !important;
  top: 8px !important;
}

.nav-unread-badge[hidden] {
  display: none !important;
}

.messages-page {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(241, 250, 255, 0.9) 46%, rgba(246, 244, 255, 0.92)),
    #f7fbff !important;
}

.message-hero {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 18px 0 20px !important;
}

.message-hero article {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(143, 124, 246, 0.18) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 30px rgba(34, 56, 91, 0.08) !important;
  padding: 16px !important;
}

.message-hero span {
  color: #6b6f85 !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.message-hero strong {
  color: #172852 !important;
  display: block !important;
  font-size: 30px !important;
  line-height: 1 !important;
  margin: 8px 0 !important;
}

.message-hero p {
  color: #68758b !important;
  margin: 0 !important;
}

.messages-layout {
  grid-template-columns: 320px minmax(0, 1fr) !important;
}

.message-threads,
.message-panel {
  backdrop-filter: blur(10px) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(159, 179, 203, 0.36) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(35, 55, 86, 0.1) !important;
}

.message-threads {
  gap: 10px !important;
}

.message-threads-head h3 {
  color: #172852 !important;
  margin: 0 !important;
}

.message-threads button {
  background: #ffffff !important;
  border: 1px solid #e2e9f2 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 18px rgba(23, 40, 82, 0.04) !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  min-height: 66px !important;
  overflow: hidden !important;
  position: relative !important;
}

.message-threads button:hover,
.message-threads button.active {
  background: linear-gradient(135deg, #fff8e8, #eef9ff) !important;
  border-color: #bcd7eb !important;
  transform: translateX(2px) !important;
}

.message-threads button.has-unread {
  border-color: rgba(255, 92, 122, 0.42) !important;
}

.message-threads button.has-unread::before {
  background: #ff5c7a !important;
  border-radius: 999px !important;
  content: "" !important;
  height: 9px !important;
  position: absolute !important;
  right: 10px !important;
  top: 10px !important;
  width: 9px !important;
}

.message-threads button span {
  background: linear-gradient(135deg, #ff8a5c, #36bfd1) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 20px rgba(54, 191, 209, 0.22) !important;
}

.message-threads button strong {
  align-items: center !important;
  color: #172852 !important;
  display: flex !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.message-threads button strong em {
  align-items: center !important;
  background: #ff5c7a !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 11px !important;
  font-style: normal !important;
  height: 20px !important;
  justify-content: center !important;
  min-width: 20px !important;
  padding: 0 6px !important;
}

.message-threads button small {
  color: #6e7b91 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.message-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 255, 0.9)),
    #ffffff !important;
  min-height: 640px !important;
  overflow: hidden !important;
}

.message-panel-head {
  align-items: center !important;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.92), rgba(235, 249, 252, 0.92)) !important;
  display: flex !important;
  justify-content: space-between !important;
}

.message-live-pill {
  background: #172852 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 8px 12px !important;
  white-space: nowrap !important;
}

.message-list {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
}

.message-bubble {
  border-radius: 14px 14px 14px 4px !important;
  box-shadow: 0 10px 24px rgba(35, 55, 86, 0.08) !important;
  position: relative !important;
}

.message-bubble.mine {
  background: linear-gradient(135deg, #dff9f3, #e9f4ff) !important;
  border-color: rgba(54, 191, 209, 0.34) !important;
  border-radius: 14px 14px 4px 14px !important;
}

.message-bubble.unread {
  background: #fff8e8 !important;
  border-color: rgba(255, 138, 92, 0.36) !important;
}

.message-bubble strong {
  align-items: center !important;
  color: #172852 !important;
  display: flex !important;
  gap: 8px !important;
}

.message-bubble strong em {
  background: #ff5c7a !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 950 !important;
  padding: 3px 7px !important;
  text-transform: uppercase !important;
}

.message-bubble p {
  color: #33445f !important;
}

.message-bubble small {
  color: #718097 !important;
  font-weight: 800 !important;
}

.message-compose {
  background: rgba(255, 255, 255, 0.9) !important;
}

.message-compose textarea,
.message-compose select,
.message-compose input[type="file"] {
  border-color: #d9e4ef !important;
  border-radius: 8px !important;
}

@media (max-width: 920px) {
  .message-hero,
  .messages-layout,
  .message-compose-actions {
    grid-template-columns: 1fr !important;
  }

  .message-panel {
    min-height: 520px !important;
  }

  .message-panel-head {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* messages-compact-final: denser operational view. */
.messages-page {
  padding: 16px !important;
}

.messages-page .prospect-topbar {
  margin-bottom: 12px !important;
  min-height: 0 !important;
  padding: 14px 18px !important;
}

.messages-page .prospect-topbar h1 {
  font-size: 28px !important;
  line-height: 1.05 !important;
}

.messages-page .prospect-topbar p {
  font-size: 14px !important;
  margin-top: 4px !important;
}

.message-hero {
  gap: 10px !important;
  margin: 10px 0 12px !important;
}

.message-hero article {
  align-items: center !important;
  display: grid !important;
  gap: 2px 12px !important;
  grid-template-columns: auto 1fr !important;
  min-height: 74px !important;
  padding: 12px 14px !important;
}

.message-hero span {
  font-size: 11px !important;
  grid-column: 2 !important;
}

.message-hero strong {
  font-size: 30px !important;
  grid-row: 1 / span 2 !important;
  margin: 0 !important;
  min-width: 44px !important;
}

.message-hero p {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.messages-layout {
  gap: 14px !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  margin-top: 12px !important;
}

.message-threads {
  max-height: calc(100vh - 250px) !important;
  overflow: auto !important;
  padding: 12px !important;
}

.message-threads-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.message-threads-head .secondary-btn {
  min-height: 36px !important;
  padding: 7px 11px !important;
}

.message-threads button {
  gap: 1px 9px !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  min-height: 56px !important;
  padding: 8px !important;
}

.message-threads button span {
  border-radius: 10px !important;
  font-size: 14px !important;
  height: 36px !important;
  width: 36px !important;
}

.message-threads button strong {
  font-size: 15px !important;
}

.message-threads button small {
  font-size: 13px !important;
}

.message-panel {
  display: grid !important;
  grid-template-rows: auto minmax(260px, 1fr) auto !important;
  min-height: calc(100vh - 250px) !important;
}

.message-panel-head {
  min-height: 86px !important;
  padding: 16px 18px !important;
}

.message-panel-head h2 {
  font-size: 26px !important;
  line-height: 1.08 !important;
}

.message-panel-head p {
  font-size: 15px !important;
}

.message-live-pill {
  font-size: 12px !important;
  padding: 7px 11px !important;
}

.message-list {
  align-content: end !important;
  gap: 10px !important;
  max-height: none !important;
  min-height: 260px !important;
  overflow: auto !important;
  padding: 16px !important;
}

.message-bubble {
  max-width: min(560px, 78%) !important;
  padding: 10px 12px !important;
}

.message-bubble strong {
  font-size: 13px !important;
  margin-bottom: 4px !important;
}

.message-bubble p {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.message-bubble small,
.message-file {
  font-size: 11px !important;
  margin-top: 6px !important;
}

.message-compose {
  gap: 8px !important;
  padding: 12px 16px 14px !important;
}

.message-compose textarea {
  min-height: 58px !important;
}

.message-compose-actions {
  grid-template-columns: 110px minmax(0, 1fr) auto !important;
}

@media (max-width: 1180px) {
  .messages-layout {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }

  .message-hero article {
    grid-template-columns: 38px 1fr !important;
  }
}

@media (max-width: 920px) {
  .messages-page {
    padding: 12px !important;
  }

  .message-hero article {
    min-height: 64px !important;
  }

  .message-threads,
  .message-panel {
    max-height: none !important;
    min-height: 0 !important;
  }

  .message-panel {
    grid-template-rows: auto minmax(240px, 1fr) auto !important;
  }
}

/* messages-simple-list-final: remove report cards and restore recipient list density. */
.message-hero {
  display: none !important;
}

.messages-layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
  margin-top: 10px !important;
}

.message-threads {
  align-content: start !important;
  display: grid !important;
  gap: 8px !important;
  max-height: calc(100vh - 190px) !important;
  overflow: auto !important;
  padding: 14px !important;
}

.message-threads-head {
  background: transparent !important;
  border-bottom: 0 !important;
  margin-bottom: 4px !important;
  padding: 0 !important;
  position: static !important;
}

.message-threads-head h3 {
  font-size: 20px !important;
}

.message-threads button {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(42, 63, 84, 0.12) !important;
  box-shadow: none !important;
  gap: 2px 10px !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  min-height: 62px !important;
  padding: 10px !important;
}

.message-threads button:hover,
.message-threads button.active {
  background: rgba(238, 248, 251, 0.92) !important;
  border-color: rgba(54, 191, 209, 0.34) !important;
  transform: none !important;
}

.message-threads button span {
  border-radius: 12px !important;
  font-size: 15px !important;
  height: 38px !important;
  width: 38px !important;
}

.message-threads button strong {
  font-size: 15px !important;
  line-height: 1.12 !important;
}

.message-threads button small {
  color: #6b7b91 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.message-panel {
  min-height: calc(100vh - 190px) !important;
}

.payroll-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.payroll-table-wrap table {
  min-width: 980px;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.notification-card.urgent {
  background: #fff6f5;
  border-color: #f2b6b0;
}

.marketing-card.urgent {
  background: #fff8f6;
  border-color: #f2b6b0;
}

.notification-card h3 {
  font-size: 18px;
  margin: 8px 0 4px;
}

.notification-card p,
.notification-card small {
  color: #5f7088;
  margin: 0;
}

.compact-notifications-page,
.rh-notifications-page {
  gap: 10px;
}

.compact-notifications-page .prospect-topbar,
.rh-notifications-page .prospect-topbar {
  padding: 18px 22px;
}

.compact-notifications-page .prospect-topbar h1,
.rh-notifications-page .prospect-topbar h1 {
  font-size: 26px;
  line-height: 1.05;
  margin: 0 0 4px;
}

.compact-notifications-page .prospect-topbar p,
.rh-notifications-page .prospect-topbar p {
  font-size: 11px;
  line-height: 1.25;
  max-width: 720px;
}

.compact-notifications-page .product-page-tabs {
  gap: 6px;
  margin-top: 6px;
}

.compact-notifications-page .product-page-tabs button,
.compact-notifications-page .pagination,
.compact-notifications-page .pagination button,
.rh-notifications-page .primary-btn {
  font-size: 10px;
}

.compact-notifications-page .product-summary-row,
.rh-notifications-page .employee-kpis {
  gap: 8px;
}

.compact-notifications-page .product-summary-row article,
.rh-notifications-page .employee-kpis article {
  min-height: 0;
  padding: 10px 12px;
}

.compact-notifications-page .product-summary-row span,
.rh-notifications-page .employee-kpis span {
  font-size: 9px;
}

.compact-notifications-page .product-summary-row strong,
.rh-notifications-page .employee-kpis strong {
  font-size: 22px;
  line-height: 1;
}

.compact-notifications-page .product-summary-row p,
.rh-notifications-page .employee-kpis p {
  font-size: 10px;
  line-height: 1.2;
  margin-top: 4px;
}

.compact-notifications-page .employee-panel {
  padding: 10px;
}

.compact-notifications-page .notification-list,
.rh-notifications-page .rh-notification-list {
  gap: 7px;
}

.compact-notifications-page .notification-card {
  border-radius: 6px;
  gap: 10px;
  min-height: 0;
  padding: 8px 10px;
}

.compact-notifications-page .notification-card .cash-status-badge,
.rh-notifications-page .rh-notification-card .cash-status-badge {
  font-size: 9px;
  min-height: 0;
  padding: 5px 8px;
}

.compact-notifications-page .notification-card h3 {
  font-size: 12px;
  line-height: 1.15;
  margin: 4px 0 2px;
}

.compact-notifications-page .notification-card p,
.compact-notifications-page .notification-card small {
  font-size: 10px;
  line-height: 1.2;
}

.compact-notifications-page .notification-card .row-actions {
  gap: 5px;
}

.compact-notifications-page .notification-card .session-action-btn,
.rh-notifications-page .session-action-btn {
  font-size: 9px;
  min-height: 0;
  padding: 6px 10px;
}

.rh-notifications-page .rh-notification-card {
  border-radius: 8px;
  box-shadow: none;
  gap: 8px;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.rh-notifications-page .rh-notification-card span {
  font-size: 9px;
  line-height: 1.2;
}

.rh-notifications-page .rh-notification-card h2 {
  font-size: 12px;
  line-height: 1.12;
  margin: 2px 0;
}

.rh-notifications-page .rh-notification-card p,
.rh-notifications-page .rh-notification-card strong,
.rh-notifications-page .rh-notification-card em {
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 780px) {
  .compact-notifications-page .notification-card,
  .rh-notifications-page .rh-notification-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .compact-notifications-page .notification-card {
    display: grid;
  }
}

.editorial-calendar-page {
  display: grid;
  gap: 10px;
}

.editorial-week-toolbar {
  align-items: center;
  background: #f7fbfd;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.editorial-sheet-shell {
  background: #ffffff;
  border: 1px solid #d7e3ee;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.editorial-sheet-toolbar {
  padding: 8px;
}

.editorial-sheet-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.editorial-sheet-legend small {
  color: #52667e;
  font-size: 10px;
  font-weight: 800;
  margin-right: 10px;
}

.legend-swatch {
  border: 1px solid rgba(11, 33, 69, .12);
  display: inline-block;
  height: 12px;
  width: 18px;
}

.editorial-sheet-wrap {
  border: 1px solid #d7e3ee;
  border-radius: 8px;
  max-height: 560px;
  overflow: auto;
}

.editorial-sheet-table {
  border-collapse: collapse;
  color: #0b2145;
  font-size: 10px;
  min-width: 3300px;
  table-layout: fixed;
  width: max-content;
}

.editorial-row-col {
  width: 90px;
}

.editorial-main-col {
  width: 360px;
}

.editorial-side-col {
  width: 160px;
}

.editorial-sheet-table th,
.editorial-sheet-table td {
  border: 1px solid #e0e7ef;
  height: auto;
  min-height: 28px;
  padding: 0;
  vertical-align: middle;
}

.editorial-sheet-table thead th {
  background: #edf2f7;
  color: #42566f;
  font-size: 10px;
  font-weight: 900;
  height: 30px;
  position: sticky;
  text-align: center;
  top: 0;
  z-index: 4;
}

.editorial-sheet-row-head {
  background: #f8fbfd !important;
  color: #0b2145;
  font-size: 11px;
  font-weight: 900;
  left: 0;
  min-width: 90px;
  position: sticky;
  text-align: center;
  width: 90px;
  z-index: 7 !important;
}

.editorial-pub-1 {
  --editorial-pub-bg: #eef8ff;
  --editorial-pub-border: #58aee6;
}

.editorial-pub-2 {
  --editorial-pub-bg: #fff6e7;
  --editorial-pub-border: #f0a429;
}

.editorial-pub-3 {
  --editorial-pub-bg: #f2f8ec;
  --editorial-pub-border: #7bbf4d;
}

.editorial-pub-4 {
  --editorial-pub-bg: #f5f0ff;
  --editorial-pub-border: #8b6bd6;
}

.editorial-pub-row td {
  background: var(--editorial-pub-bg, #ffffff);
}

.editorial-pub-row .editorial-sheet-row-head {
  background: var(--editorial-pub-bg, #f8fbfd) !important;
  border-left: 4px solid var(--editorial-pub-border, #d7e3ee);
}

.editorial-pub-row .editorial-sheet-input {
  box-shadow: inset 3px 0 0 var(--editorial-pub-border, transparent);
}

.editorial-pub-start td,
.editorial-pub-start .editorial-sheet-row-head {
  border-top-color: var(--editorial-pub-border, #d7e3ee);
}

.editorial-sheet-table td {
  width: 130px;
}

.editorial-sheet-table td.editorial-sheet-main-cell {
  width: 360px;
}

.editorial-sheet-table td.editorial-sheet-side-cell {
  width: 160px;
}

.editorial-sheet-status-label {
  background: #ffffff;
  color: #42566f;
  font-size: 10px;
  font-style: italic;
  font-weight: 650;
  padding: 4px 8px !important;
  text-align: right;
}

.editorial-sheet-input {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #10233e;
  display: block;
  font-size: 10px;
  font-weight: 750;
  height: auto;
  line-height: 1.2;
  min-height: 28px;
  outline: none;
  overflow: visible;
  padding: 3px 5px;
  text-overflow: clip;
  white-space: normal;
  width: 100%;
}

.editorial-sheet-select-wrap {
  color: #10233e;
  display: block;
  min-height: 28px;
  position: relative;
  width: 100%;
}

.editorial-select-value {
  display: block;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.18;
  min-height: 28px;
  overflow-wrap: anywhere;
  padding: 3px 24px 3px 5px;
  white-space: normal;
}

.editorial-sheet-select {
  appearance: auto;
  cursor: pointer;
  inset: 0;
  opacity: .01;
  position: absolute;
  z-index: 3;
}

.editorial-sheet-select-wrap::after {
  color: #0b2145;
  content: "⌄";
  font-size: 14px;
  font-weight: 900;
  position: absolute;
  right: 7px;
  top: 3px;
  z-index: 2;
}

.editorial-sheet-textarea {
  min-height: 28px;
  overflow: hidden;
  resize: none;
}

.editorial-sheet-input:focus {
  box-shadow: inset 0 0 0 2px #0b6380;
  position: relative;
  z-index: 8;
}

.editorial-pub-row .editorial-sheet-input:focus {
  box-shadow: inset 3px 0 0 var(--editorial-pub-border, transparent), inset 0 0 0 2px #0b6380;
}

.editorial-sheet-select-wrap.sheet-formation,
.editorial-sheet-input.sheet-formation,
.legend-swatch.sheet-formation {
  background: #fff600;
}

.editorial-sheet-select-wrap.sheet-category,
.editorial-sheet-input.sheet-category,
.legend-swatch.sheet-category {
  background: #92d050;
}

.editorial-sheet-select-wrap.sheet-type,
.editorial-sheet-input.sheet-type,
.legend-swatch.sheet-type {
  background: #ffc000;
}

.editorial-sheet-input.sheet-note,
.legend-swatch.sheet-note {
  background: #ffffff;
  color: #43546b;
  font-style: italic;
  font-weight: 650;
}

.editorial-sheet-select-wrap.sheet-status,
.editorial-sheet-input.sheet-status,
.legend-swatch.sheet-status {
  background: #a6a6a6;
  color: #ffffff;
}

.editorial-sheet-select-wrap.sheet-status::after {
  color: #ffffff;
}

.editorial-sheet-select-wrap.editorial-type-reel,
.editorial-sheet-input.editorial-type-reel { background: #fdeaf3; color: #9b174d; }
.editorial-sheet-select-wrap.editorial-type-story,
.editorial-sheet-input.editorial-type-story { background: #e5f7f6; color: #0f6d70; }
.editorial-sheet-select-wrap.editorial-type-video,
.editorial-sheet-input.editorial-type-video { background: #feeceb; color: #9b1c1c; }
.editorial-sheet-select-wrap.editorial-type-carousel,
.editorial-sheet-input.editorial-type-carousel { background: #f1eafe; color: #5b2bb8; }
.editorial-sheet-select-wrap.editorial-type-live,
.editorial-sheet-input.editorial-type-live { background: #fff7d8; color: #805500; }
.editorial-sheet-select-wrap.editorial-status-published,
.editorial-sheet-input.editorial-status-published { background: #8f8f8f; color: #ffffff; }
.editorial-sheet-select-wrap.editorial-status-scheduled,
.editorial-sheet-input.editorial-status-scheduled { background: #dff5ff; color: #075985; }
.editorial-sheet-select-wrap.editorial-status-todo,
.editorial-sheet-input.editorial-status-todo { background: #fff7df; color: #9a5a00; }
.editorial-sheet-select-wrap.editorial-status-delayed,
.editorial-sheet-input.editorial-status-delayed { background: #ffe8e8; color: #962222; }

.editorial-sheet-select-wrap.editorial-status-published::after {
  color: #ffffff;
}

.editorial-lists-modal {
  max-width: 900px;
}

.editorial-lists-modal textarea {
  min-height: 180px;
}

.editorial-content-list-page,
.training-calendar-list {
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.editorial-content-groups {
  display: grid;
  gap: 10px;
}

.editorial-content-table-wrap {
  max-height: 620px;
}

.editorial-content-table {
  font-size: 9px;
  min-width: 1380px;
}

.editorial-content-table th,
.editorial-content-table td {
  line-height: 1.15;
  padding: 5px 6px;
  vertical-align: top;
}

.editorial-content-table th {
  font-size: 9px;
}

.editorial-content-table strong {
  display: block;
  font-size: 9px;
  line-height: 1.15;
}

.editorial-content-table-row {
  border-left: 4px solid var(--editorial-type-color, #7f8ea3);
}

.editorial-content-text-cell {
  max-width: 360px;
  min-width: 320px;
}

.editorial-content-text-cell p {
  color: #42566f;
  font-size: 9px;
  line-height: 1.18;
  margin: 0 0 4px;
  white-space: pre-wrap;
}

.editorial-content-text-cell a,
.editorial-content-text-cell small {
  display: block;
  font-size: 9px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.editorial-content-table .editorial-discussion-lines em {
  font-size: 9px;
  line-height: 1.15;
}

.editorial-content-table .editorial-list-comment {
  min-height: 34px;
}

.editorial-content-table .session-action-btn {
  font-size: 9px;
  min-height: 24px;
  padding: 4px 7px;
}

.editorial-content-group {
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  overflow: hidden;
}

.editorial-content-group header {
  align-items: center;
  background: #edf4f8;
  color: #0b2145;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
  padding: 7px 9px;
}

.editorial-content-group header span {
  background: #ffffff;
  border-radius: 999px;
  color: #52667e;
  font-size: 10px;
  padding: 3px 8px;
}

.editorial-content-list {
  display: grid;
}

.editorial-content-row {
  align-items: start;
  border-left: 5px solid var(--editorial-type-color, #7f8ea3);
  border-top: 1px solid #edf2f7;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  padding: 8px;
}

.editorial-content-main span,
.editorial-content-main p,
.editorial-content-main em,
.editorial-content-controls textarea,
.editorial-content-controls select {
  font-size: 10px;
}

.editorial-content-main strong {
  color: #0b2145;
  display: block;
  font-size: 12px;
  line-height: 1.2;
  margin: 2px 0;
}

.editorial-content-main p {
  color: #52667e;
  line-height: 1.25;
  margin: 0 0 5px;
}

.editorial-discussion-lines {
  display: grid;
  gap: 3px;
}

.editorial-discussion-lines em {
  background: #f8fbfd;
  border: 1px solid #e2ebf2;
  border-radius: 5px;
  color: #53657c;
  font-style: normal;
  line-height: 1.2;
  padding: 4px 6px;
}

.editorial-content-controls {
  display: grid;
  gap: 5px;
}

.editorial-content-controls select,
.editorial-content-controls textarea {
  border: 1px solid #c9d8e6;
  border-radius: 6px;
  color: #0b2145;
  min-height: 30px;
  padding: 5px 7px;
}

.editorial-content-controls textarea {
  min-height: 54px;
  resize: vertical;
}

.training-calendar-page {
  gap: 10px;
}

.training-calendar-input {
  border: 0;
  color: #0b2145;
  display: block;
  font-size: 10px;
  font-weight: 750;
  height: auto;
  min-height: 28px;
  outline: none;
  padding: 3px 5px;
  width: 100%;
}

.training-calendar-input:focus {
  box-shadow: inset 0 0 0 2px #0b6380;
}

.training-calendar-formation {
  background: #fff600;
}

.training-calendar-trainer {
  background: #dff5ff;
  color: #075985;
}

.training-calendar-status {
  background: #a6a6a6;
  color: #ffffff;
}

.training-calendar-comment-input {
  background: #ffffff;
  color: #52667e;
  font-style: italic;
  overflow: hidden;
  resize: none;
}

.training-calendar-table {
  min-width: 4600px;
}

.training-calendar-table td {
  width: 150px;
}

.training-row-col {
  width: 90px;
}

.training-formation-col {
  width: 260px;
}

.training-trainer-col {
  width: 200px;
}

.training-status-col {
  width: 150px;
}

.training-comment-col {
  width: 260px;
}

.training-calendar-line-1 {
  --training-line-bg: #eef8ff;
  --training-line-border: #58aee6;
}

.training-calendar-line-2 {
  --training-line-bg: #fff6e7;
  --training-line-border: #f0a429;
}

.training-calendar-line-3 {
  --training-line-bg: #f2f8ec;
  --training-line-border: #7bbf4d;
}

.training-calendar-line-4 {
  --training-line-bg: #f5f0ff;
  --training-line-border: #8b6bd6;
}

.training-calendar-line td {
  background: var(--training-line-bg, #ffffff);
}

.training-calendar-line .editorial-sheet-row-head {
  background: var(--training-line-bg, #f8fbfd) !important;
  border-left: 4px solid var(--training-line-border, #d7e3ee);
}

.training-calendar-line .training-calendar-input,
.training-calendar-line .training-calendar-select-wrap {
  box-shadow: inset 3px 0 0 var(--training-line-border, transparent);
}

.training-calendar-select-wrap {
  color: #10233e;
  display: block;
  min-height: 28px;
  position: relative;
  width: 100%;
}

.training-calendar-select-value {
  display: block;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.18;
  min-height: 28px;
  overflow-wrap: anywhere;
  padding: 3px 24px 3px 5px;
  white-space: normal;
}

.training-calendar-select {
  cursor: pointer;
  inset: 0;
  opacity: .01;
  position: absolute;
  z-index: 3;
}

.training-calendar-select-wrap::after {
  color: #0b2145;
  content: "⌄";
  font-size: 14px;
  font-weight: 900;
  position: absolute;
  right: 7px;
  top: 3px;
  z-index: 2;
}

.training-calendar-select-wrap.training-calendar-formation {
  background: #fff600;
}

.training-calendar-select-wrap.training-calendar-trainer {
  background: #dff5ff;
  color: #075985;
}

.training-calendar-select-wrap.training-calendar-status {
  background: #a6a6a6;
  color: #ffffff;
}

.training-calendar-select-wrap.training-calendar-status::after {
  color: #ffffff;
}

.training-calendar-list .session-action-btn {
  margin: 2px 0;
}

@media (max-width: 900px) {
  .editorial-content-row {
    grid-template-columns: 1fr;
  }
}

.editorial-upcoming-panel {
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  padding: 12px;
}

.editorial-sync-chip {
  align-items: center;
  background: #e8f7ef;
  border-radius: 999px;
  color: #117045;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  min-height: 26px;
  padding: 5px 10px;
}

.editorial-upcoming-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 10px;
}

.editorial-upcoming-item {
  align-items: start;
  background: linear-gradient(180deg, var(--editorial-type-bg, #f8fbfd), #ffffff 76%);
  border: 1px solid #dbe7f0;
  border-left: 6px solid var(--editorial-type-color, #7f8ea3);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px;
}

.editorial-upcoming-item strong {
  color: #0b2145;
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.editorial-upcoming-item small {
  color: #5f7088;
  display: block;
  font-size: 11px;
  margin: 3px 0 6px;
}

.editorial-week-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

.editorial-day-column {
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  min-height: 360px;
  min-width: 170px;
  overflow: hidden;
}

.editorial-day-column header {
  align-items: center;
  background: #edf4f8;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.editorial-day-column header span {
  color: #0b2145;
  font-weight: 800;
  text-transform: capitalize;
}

.editorial-post-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.editorial-post-card {
  background: #f8fbfd;
  border: 1px solid #dbe7f0;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border-left: 6px solid #7f8ea3;
  box-shadow: 0 8px 18px rgba(11, 33, 69, 0.06);
}

.editorial-post-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.editorial-post-top span,
.editorial-post-top em {
  color: #5f7088;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.editorial-post-card strong {
  color: #0b2145;
  font-size: 15px;
}

.editorial-post-card p,
.editorial-post-card small {
  color: #5f7088;
  line-height: 1.35;
  margin: 0;
}

.editorial-post-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.editorial-post-badges span,
.editorial-post-chip {
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  color: #0b2145;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.editorial-post-badges .ref {
  background: #0b2145;
  color: #ffffff;
}

.editorial-post-badges .channel {
  background: #e8edf4;
  color: #334b6d;
}

.editorial-post-badges .type.post,
.editorial-post-chip.post,
.editorial-type-post {
  --editorial-type-color: #2563eb;
  --editorial-type-bg: #eaf1ff;
}

.editorial-post-badges .type.carousel,
.editorial-post-chip.carousel,
.editorial-type-carousel {
  --editorial-type-color: #7c3aed;
  --editorial-type-bg: #f1eafe;
}

.editorial-post-badges .type.story,
.editorial-post-chip.story,
.editorial-type-story {
  --editorial-type-color: #0f8b8d;
  --editorial-type-bg: #e5f7f6;
}

.editorial-post-badges .type.reel,
.editorial-post-chip.reel,
.editorial-type-reel {
  --editorial-type-color: #be185d;
  --editorial-type-bg: #fdeaf3;
}

.editorial-post-badges .type.video,
.editorial-post-chip.video,
.editorial-type-video {
  --editorial-type-color: #dc2626;
  --editorial-type-bg: #feeceb;
}

.editorial-post-badges .type.photo,
.editorial-post-chip.photo,
.editorial-type-photo {
  --editorial-type-color: #15803d;
  --editorial-type-bg: #e9f8ee;
}

.editorial-post-badges .type.poster,
.editorial-post-chip.poster,
.editorial-type-poster {
  --editorial-type-color: #c2410c;
  --editorial-type-bg: #fff0e7;
}

.editorial-post-badges .type.email,
.editorial-post-chip.email,
.editorial-type-email {
  --editorial-type-color: #0369a1;
  --editorial-type-bg: #e8f6ff;
}

.editorial-post-badges .type.live,
.editorial-post-chip.live,
.editorial-type-live {
  --editorial-type-color: #854d0e;
  --editorial-type-bg: #fff7d8;
}

.editorial-post-badges .type.article,
.editorial-post-badges .type.text,
.editorial-post-chip.article,
.editorial-post-chip.text,
.editorial-type-article,
.editorial-type-text {
  --editorial-type-color: #475569;
  --editorial-type-bg: #eef2f7;
}

.editorial-post-card {
  background: linear-gradient(180deg, var(--editorial-type-bg, #f8fbfd), #ffffff 72%);
  border-left-color: var(--editorial-type-color, #7f8ea3);
}

.editorial-post-badges .type,
.editorial-post-chip {
  background: var(--editorial-type-bg, #eef2f7);
  color: var(--editorial-type-color, #475569);
}

.editorial-post-badges .status.idea,
.editorial-post-chip.status.idea {
  background: #f1f5f9;
  color: #475569;
}

.editorial-post-badges .status.todo,
.editorial-post-chip.status.todo {
  background: #fff7df;
  color: #9a5a00;
}

.editorial-post-badges .status.scheduled,
.editorial-post-chip.status.scheduled {
  background: #e8f7ef;
  color: #117045;
}

.editorial-post-badges .status.published,
.editorial-post-chip.status.published {
  background: #dff5ff;
  color: #075985;
}

.editorial-post-badges .status.delayed,
.editorial-post-chip.status.delayed {
  background: #ffe8e8;
  color: #b42318;
}

.editorial-media-hover {
  position: relative;
}

.editorial-media-link {
  color: #5f7088;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}

a.editorial-media-link:hover {
  color: #0b6380;
  text-decoration: underline;
}

.editorial-floating-preview {
  background: #ffffff;
  border: 1px solid #c8d7e4;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(15, 35, 60, .28);
  display: none;
  max-height: min(380px, calc(100vh - 36px));
  max-width: min(520px, calc(100vw - 36px));
  padding: 10px;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}

.editorial-floating-preview.show {
  display: block;
}

.editorial-floating-preview img {
  border-radius: 8px;
  display: block;
  max-height: min(360px, calc(100vh - 56px));
  max-width: min(500px, calc(100vw - 56px));
  object-fit: contain;
  width: auto;
}

.editorial-preview-modal {
  max-width: 760px;
}

.editorial-preview-card {
  display: grid;
  gap: 14px;
}

.editorial-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editorial-preview-meta span {
  background: #edf4f8;
  border: 1px solid #d9e5ef;
  border-radius: 999px;
  color: #0b2145;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.editorial-preview-card h3 {
  color: #0b2145;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.editorial-preview-content {
  background: #f8fbfd;
  border: 1px solid #dbe7f0;
  border-radius: 8px;
  color: #25364d;
  line-height: 1.55;
  padding: 14px;
}

.editorial-preview-content p {
  margin: 0 0 10px;
}

.editorial-preview-content p:last-child {
  margin-bottom: 0;
}

.editorial-preview-image {
  border: 1px solid #d9e5ef;
  border-radius: 10px;
  display: block;
  max-height: 440px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.editorial-archive-table td:nth-child(6) {
  max-width: 320px;
}

.editorial-archive-table td:nth-child(6),
.editorial-archive-table td:nth-child(7) {
  overflow-wrap: anywhere;
}

.editorial-archive-compact .prospect-table th,
.editorial-archive-compact .prospect-table td {
  font-size: 10px;
  line-height: 1.15;
  padding-bottom: 5px;
  padding-top: 5px;
}

.editorial-archive-compact .prospect-table strong,
.editorial-archive-compact .prospect-table span,
.editorial-archive-compact .prospect-table button {
  font-size: 10px;
}

.editorial-planning-shell,
.editorial-planning-empty {
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.editorial-planning-table-wrap {
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  max-height: 640px;
  overflow: auto;
}

.editorial-planning-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #0b2145;
  font-size: 11px;
  min-width: 1600px;
  width: 100%;
}

.editorial-planning-table th,
.editorial-planning-table td {
  background: #ffffff;
  border-bottom: 1px solid #e2ebf2;
  border-right: 1px solid #e8eff5;
  height: 44px;
  max-width: 130px;
  padding: 6px;
  position: relative;
  text-align: left;
  vertical-align: middle;
}

.editorial-planning-table th {
  background: #edf4f8;
  color: #5f7088;
  font-size: 10px;
  font-weight: 900;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 4;
}

.editorial-planning-table .sticky-planning-col {
  left: 0;
  min-width: 190px;
  position: sticky;
  z-index: 5;
}

.editorial-planning-table .sticky-planning-code {
  left: 190px;
  min-width: 76px;
  position: sticky;
  z-index: 5;
}

.editorial-planning-table td.sticky-planning-col,
.editorial-planning-table td.sticky-planning-code {
  background: #f8fbfd;
}

.planning-cell-chip {
  align-items: center;
  background: var(--planning-tone-bg, #eaf1ff);
  border: 1px solid var(--planning-tone-border, #b8cff8);
  border-radius: 6px;
  color: var(--planning-tone-text, #123d7a);
  cursor: pointer;
  display: grid;
  gap: 1px;
  min-height: 32px;
  min-width: 58px;
  padding: 4px 6px;
  text-align: left;
  width: 100%;
}

.planning-cell-chip span {
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.planning-cell-chip small {
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  opacity: .78;
}

.planning-code-badge {
  align-items: center;
  background: var(--planning-tone-bg, #eaf1ff);
  border: 1px solid var(--planning-tone-border, #b8cff8);
  border-radius: 5px;
  color: var(--planning-tone-text, #123d7a);
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  justify-content: center;
  min-height: 22px;
  min-width: 32px;
  padding: 3px 7px;
}

.planning-tooltip {
  display: inline-block;
  position: relative;
}

.planning-tooltip:hover::after,
.planning-tooltip:focus-within::after {
  background: rgba(11, 33, 69, .94);
  border-radius: 7px;
  bottom: calc(100% + 8px);
  box-shadow: 0 16px 38px rgba(11, 33, 69, .18);
  color: #ffffff;
  content: attr(data-planning-tooltip);
  font-size: 11px;
  font-weight: 750;
  left: 0;
  line-height: 1.35;
  max-width: 340px;
  min-width: 180px;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-transform: none;
  white-space: normal;
  z-index: 20;
}

.editorial-planning-legend {
  background: #f8fbfd;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
}

.editorial-planning-legend h4 {
  color: #0b2145;
  font-size: 13px;
  margin: 0 0 8px;
}

.planning-legend-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.planning-legend-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e8f0;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  min-height: 34px;
  padding: 6px;
}

.planning-legend-item strong {
  color: #31455f;
  font-size: 11px;
  line-height: 1.2;
}

.planning-cell-chip.tone-1,
.planning-code-badge.tone-1 { --planning-tone-bg: #eaf1ff; --planning-tone-border: #b9cdf7; --planning-tone-text: #1d4b91; }
.planning-cell-chip.tone-2,
.planning-code-badge.tone-2 { --planning-tone-bg: #e5f7f6; --planning-tone-border: #a9dad6; --planning-tone-text: #0f6d70; }
.planning-cell-chip.tone-3,
.planning-code-badge.tone-3 { --planning-tone-bg: #f1eafe; --planning-tone-border: #d2b9fa; --planning-tone-text: #5b2bb8; }
.planning-cell-chip.tone-4,
.planning-code-badge.tone-4 { --planning-tone-bg: #fff0e7; --planning-tone-border: #f5c3a8; --planning-tone-text: #9a4314; }
.planning-cell-chip.tone-5,
.planning-code-badge.tone-5 { --planning-tone-bg: #e9f8ee; --planning-tone-border: #b9dfc4; --planning-tone-text: #236c38; }
.planning-cell-chip.tone-6,
.planning-code-badge.tone-6 { --planning-tone-bg: #fdeaf3; --planning-tone-border: #f5b7d1; --planning-tone-text: #9b174d; }
.planning-cell-chip.tone-7,
.planning-code-badge.tone-7 { --planning-tone-bg: #fff7d8; --planning-tone-border: #ead189; --planning-tone-text: #805500; }
.planning-cell-chip.tone-8,
.planning-code-badge.tone-8 { --planning-tone-bg: #eef2f7; --planning-tone-border: #c9d4e1; --planning-tone-text: #3d4f65; }
.planning-cell-chip.tone-9,
.planning-code-badge.tone-9 { --planning-tone-bg: #e8f6ff; --planning-tone-border: #aed7ef; --planning-tone-text: #0d5b7c; }
.planning-cell-chip.tone-10,
.planning-code-badge.tone-10 { --planning-tone-bg: #ffe8e8; --planning-tone-border: #f3b7b7; --planning-tone-text: #962222; }

.email-preview-shell {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  color: #172033;
  overflow: hidden;
}

.email-preview-header {
  align-items: center;
  background: #f7fafc;
  border-bottom: 1px solid #e4ebf3;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.email-preview-header span,
.email-preview-text,
.email-preview-footer {
  color: #64748b;
  font-size: 12px;
}

.email-preview-subject {
  font-size: 18px;
  font-weight: 800;
  padding: 16px 16px 4px;
}

.email-preview-text {
  padding: 0 16px 14px;
}

.email-preview-body {
  border-top: 1px solid #eef2f7;
  line-height: 1.7;
  min-height: 180px;
  padding: 18px 16px;
}

.email-preview-body.rich {
  display: grid;
  gap: 16px;
}

.email-hero-block {
  background: #f5f9fc;
  border: 1px solid #dce8f2;
  border-radius: 10px;
  overflow: hidden;
  padding: 18px;
  text-align: center;
}

.email-hero-block img,
.email-image-block img {
  border-radius: 8px;
  display: block;
  margin: 0 auto 14px;
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
}

.email-hero-block h2 {
  color: #0b2145;
  font-size: 24px;
  margin: 0 0 8px;
}

.email-hero-block p,
.email-text-block {
  color: #25364d;
  font-size: 15px;
  line-height: 1.65;
}

.email-button-block {
  text-align: center;
}

.email-button-block a {
  background: #0b6380;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  padding: 12px 20px;
  text-decoration: none;
}

.email-divider-block {
  border: 0;
  border-top: 1px solid #e4ebf3;
  width: 100%;
}

.emailing-builder,
.emailing-group-form {
  background: #f8fbfd;
  border: 1px solid #dbe7f0;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.emailing-builder-head,
.emailing-block-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.emailing-builder-head p {
  margin: 4px 0 0;
}

#emailing-blocks {
  display: grid;
  gap: 10px;
}

.emailing-block-editor {
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.emailing-block-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emailing-block-editor[data-block-type="text"] .block-field-image,
.emailing-block-editor[data-block-type="text"] .block-field-button,
.emailing-block-editor[data-block-type="image"] .block-field-text,
.emailing-block-editor[data-block-type="image"] .block-field-button,
.emailing-block-editor[data-block-type="button"] .block-field-text,
.emailing-block-editor[data-block-type="button"] .block-field-hero,
.emailing-block-editor[data-block-type="button"] .block-field-image,
.emailing-block-editor[data-block-type="divider"] .emailing-block-fields {
  display: none;
}

.emailing-tracking p {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
  padding: 8px 0;
}

.danger-text {
  color: #b42318;
}

.email-preview-footer {
  background: #f8fafc;
  border-top: 1px solid #e4ebf3;
  padding: 12px 16px;
}

@media (max-width: 920px) {
  .profile-cover {
    min-height: 104px;
  }

  .profile-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 0;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
  }

  .profile-chip {
    justify-self: center;
  }

  .profile-title {
    padding-top: 0;
  }

  .profile-info-table-wrap {
    margin: 0 14px 16px;
  }

  .profile-info-table th,
  .profile-info-table td {
    display: block;
    width: 100%;
    padding: 9px 12px;
  }

  .profile-info-table th {
    padding-bottom: 3px;
  }

  .profile-info-table td {
    padding-top: 3px;
  }

  .messages-layout {
    grid-template-columns: 1fr !important;
  }

  .message-threads,
  .message-panel {
    max-height: none !important;
    min-height: 0 !important;
  }
}

/* notification-compact-final: keep Notification and Notifications RH deliberately dense. */
.compact-notifications-page,
.rh-notifications-page {
  gap: 10px !important;
}

.compact-notifications-page .prospect-topbar,
.rh-notifications-page .prospect-topbar {
  padding: 16px 20px !important;
}

.compact-notifications-page .prospect-topbar h1,
.rh-notifications-page .prospect-topbar h1 {
  font-size: 24px !important;
  line-height: 1.05 !important;
  margin: 0 0 3px !important;
}

.compact-notifications-page .prospect-topbar p,
.rh-notifications-page .prospect-topbar p {
  font-size: 10px !important;
  line-height: 1.22 !important;
}

.compact-notifications-page .product-page-tabs button,
.compact-notifications-page .pagination,
.compact-notifications-page .pagination button,
.rh-notifications-page .primary-btn {
  font-size: 10px !important;
}

.compact-notifications-page .product-summary-row,
.rh-notifications-page .employee-kpis {
  gap: 8px !important;
}

.compact-notifications-page .product-summary-row article,
.rh-notifications-page .employee-kpis article {
  min-height: 0 !important;
  padding: 9px 11px !important;
}

.compact-notifications-page .product-summary-row span,
.rh-notifications-page .employee-kpis span {
  font-size: 9px !important;
}

.compact-notifications-page .product-summary-row strong,
.rh-notifications-page .employee-kpis strong {
  font-size: 21px !important;
  line-height: 1 !important;
}

.compact-notifications-page .product-summary-row p,
.rh-notifications-page .employee-kpis p {
  font-size: 10px !important;
  line-height: 1.18 !important;
  margin-top: 3px !important;
}

.compact-notifications-page .employee-panel {
  padding: 9px !important;
}

.compact-notifications-page .notification-list,
.rh-notifications-page .rh-notification-list {
  gap: 6px !important;
}

.compact-notifications-page .notification-card {
  border-radius: 6px !important;
  gap: 9px !important;
  min-height: 0 !important;
  padding: 7px 9px !important;
}

.compact-notifications-page .notification-card .cash-status-badge,
.rh-notifications-page .rh-notification-card .cash-status-badge {
  font-size: 9px !important;
  min-height: 0 !important;
  padding: 4px 7px !important;
}

.compact-notifications-page .notification-card h3 {
  font-size: 12px !important;
  line-height: 1.12 !important;
  margin: 3px 0 2px !important;
}

.compact-notifications-page .notification-card p,
.compact-notifications-page .notification-card small {
  font-size: 10px !important;
  line-height: 1.18 !important;
}

.compact-notifications-page .notification-card .row-actions {
  gap: 4px !important;
}

.compact-notifications-page .notification-card .session-action-btn,
.rh-notifications-page .session-action-btn {
  font-size: 9px !important;
  min-height: 0 !important;
  padding: 5px 9px !important;
}

.rh-notifications-page .rh-notification-card {
  border-radius: 8px !important;
  box-shadow: none !important;
  gap: 7px !important;
  grid-template-columns: 160px minmax(0, 1fr) auto !important;
  padding: 7px 9px !important;
}

.rh-notifications-page .rh-notification-card span {
  font-size: 9px !important;
  line-height: 1.16 !important;
}

.rh-notifications-page .rh-notification-card h2 {
  font-size: 12px !important;
  line-height: 1.1 !important;
  margin: 2px 0 !important;
}

.rh-notifications-page .rh-notification-card p,
.rh-notifications-page .rh-notification-card strong,
.rh-notifications-page .rh-notification-card em {
  font-size: 10px !important;
  line-height: 1.18 !important;
}

.trainers-page .trainer-module-note {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
}

.trainers-page .trainer-module-note h3 {
  font-size: 15px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.trainers-page .trainer-module-note p {
  margin: 0 !important;
}

.atlas-startup-screen {
  align-items: center !important;
  background: var(--erp-bg, #e9edf2) !important;
  display: grid !important;
  min-height: 100vh !important;
  padding: 24px !important;
}

.atlas-startup-screen .startup-card {
  max-width: 380px !important;
  padding: 26px !important;
}

.atlas-startup-screen .login-logo {
  height: 42px !important;
  max-height: 42px !important;
  max-width: 42px !important;
  object-fit: contain !important;
  width: 42px !important;
}

/* INFINITY brand refresh: compact internal ERP, public pages keep their editorial scale. */
:root {
  --infinity-indigo: #29266f;
  --infinity-navy: #11194b;
  --infinity-teal: #08aaa2;
  --infinity-cyan: #27c2bd;
  --infinity-blue: #1f5f86;
  --infinity-ink: #071833;
  --infinity-muted: #58708d;
  --infinity-line: #d8e3ee;
  --infinity-surface: #ffffff;
  --infinity-soft: #eef7f9;
  --erp-blue: var(--infinity-indigo);
  --erp-blue-dark: var(--infinity-navy);
  --erp-blue-soft: #f0f3ff;
  --erp-teal: var(--infinity-teal);
  --erp-teal-dark: #087a78;
  --erp-teal-soft: #e9fbfa;
  --erp-bg: #f5f8fb;
  --green: var(--infinity-teal);
  --green-dark: var(--infinity-indigo);
  --blue: var(--infinity-blue);
  --ink: var(--infinity-ink);
  --muted: var(--infinity-muted);
  --line: var(--infinity-line);
}

body {
  color: var(--infinity-ink) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

.app-shell,
.login-page,
.atlas-startup-screen {
  background:
    linear-gradient(135deg, rgba(8, 170, 162, .08), rgba(41, 38, 111, .05)),
    var(--erp-bg) !important;
}

.sidebar {
  background: #ffffff !important;
  border-right-color: rgba(17, 25, 75, .12) !important;
}

.brand-mark,
.sidebar .brand-mark,
.login-card .brand-mark,
.login-brand .login-logo,
.atlas-site-brand span {
  background: #020617 !important;
  border: 1px solid rgba(8, 170, 162, .24) !important;
  box-shadow: 0 10px 26px rgba(17, 25, 75, .12) !important;
}

.brand-mark img,
.sidebar .brand-mark img,
.login-card .brand-mark img,
.atlas-site-brand img,
.login-logo {
  object-fit: contain !important;
  padding: 4px !important;
}

.sidebar .brand-lockup strong,
.login-brand span,
.atlas-site-brand strong {
  color: var(--infinity-indigo) !important;
  font-weight: 800 !important;
}

.nav button.active,
.product-page-tabs button.active,
.crm-subnav button.active {
  background: linear-gradient(135deg, rgba(8, 170, 162, .14), rgba(41, 38, 111, .12)) !important;
  border-color: rgba(8, 170, 162, .5) !important;
  color: var(--infinity-navy) !important;
}

.primary-btn,
.prospect-actions .primary-btn,
.accounting-controls .primary-btn {
  background: linear-gradient(135deg, var(--infinity-teal), var(--infinity-indigo)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.secondary-btn,
.prospect-actions .secondary-btn,
.accounting-controls .secondary-btn {
  background: #ffffff !important;
  border-color: rgba(31, 95, 134, .24) !important;
  color: var(--infinity-navy) !important;
}

.prospect-topbar,
.employee-panel,
.modal,
.billing-form-card,
.billing-line-row,
.product-summary-row article {
  border-color: rgba(31, 95, 134, .16) !important;
  box-shadow: 0 16px 42px rgba(17, 25, 75, .07) !important;
}

.app-shell .main {
  font-size: 13px !important;
}

.app-shell .prospect-topbar {
  padding: 18px 22px !important;
}

.app-shell .prospect-topbar h1,
.app-shell .modal-header h2,
.app-shell .modal-header h3 {
  font-size: clamp(20px, 1.8vw, 28px) !important;
  line-height: 1.12 !important;
}

.app-shell .prospect-topbar p,
.app-shell .modal-header p,
.app-shell .employee-panel p,
.app-shell .muted {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.app-shell .employee-panel,
.app-shell .modal-body,
.app-shell .billing-form-card {
  padding: 16px !important;
}

.app-shell .field label,
.app-shell table th,
.app-shell .billing-line-total small,
.app-shell .nav-section-title {
  font-size: 11px !important;
}

.app-shell .field input,
.app-shell .field select,
.app-shell .field textarea,
.app-shell .primary-btn,
.app-shell .secondary-btn,
.app-shell table td,
.app-shell .nav button,
.app-shell .crm-subnav button {
  font-size: 13px !important;
}

.app-shell .field input,
.app-shell .field select {
  min-height: 40px !important;
}

.app-shell .product-summary-row strong {
  font-size: 24px !important;
}

.billing-form-modal {
  max-width: calc(100vw - 56px) !important;
  width: min(1360px, calc(100vw - 56px)) !important;
}

.billing-form-grid {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.25fr) !important;
}

.billing-line-row {
  align-items: end !important;
  grid-template-columns: minmax(230px, 1.3fr) minmax(82px, .42fr) minmax(120px, .55fr) minmax(118px, .55fr) 38px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.billing-line-row > *,
.billing-line-total {
  min-width: 0 !important;
}

.billing-line-total {
  padding: 10px 12px !important;
}

.billing-line-total strong {
  font-size: 13px !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1180px) {
  .billing-form-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .billing-form-modal {
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
  }

  .billing-line-row {
    grid-template-columns: 1fr !important;
  }
}

/* INFINITY logo display: keep the logo unboxed on auth and loading screens. */
.login-card .brand-mark,
.login-brand .login-logo {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.login-card .brand-mark {
  height: 76px !important;
  width: 76px !important;
}

.login-card .brand-mark img,
.login-brand .login-logo {
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  padding: 0 !important;
  width: 100% !important;
}

.startup-card .login-brand {
  align-items: center !important;
  gap: 16px !important;
}

.startup-card .login-logo {
  height: 64px !important;
  width: 64px !important;
}

/* INFINITY sidebar: light brand tint for readable menus and logo. */
.app-shell .sidebar {
  background:
    linear-gradient(180deg, rgba(8, 170, 162, .08), rgba(41, 38, 111, .045)),
    #f8fcfd !important;
  border-right: 1px solid rgba(31, 95, 134, .18) !important;
  color: var(--infinity-ink) !important;
}

.app-shell .sidebar .brand-mark {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.app-shell .sidebar .brand-mark img {
  padding: 0 !important;
}

.app-shell .sidebar .brand-lockup strong,
.app-shell .sidebar .nav button,
.app-shell .sidebar .sidebar-search input,
.app-shell .sidebar-footer .muted {
  color: var(--infinity-ink) !important;
}

.app-shell .sidebar .brand-lockup span,
.app-shell .sidebar .sidebar-search span,
.app-shell .sidebar .sidebar-search input::placeholder,
.app-shell .sidebar-footer .muted span,
.app-shell .nav-section-title {
  color: #5b6e89 !important;
}

.app-shell .sidebar-search,
.app-shell .sidebar-toggle,
.app-shell .sidebar-footer .secondary-btn {
  background: rgba(255, 255, 255, .82) !important;
  border-color: rgba(31, 95, 134, .18) !important;
}

.app-shell .nav button {
  background: transparent !important;
}

.app-shell .nav button:hover {
  background: rgba(8, 170, 162, .09) !important;
  color: var(--infinity-navy) !important;
}

.app-shell .nav button.active {
  background: linear-gradient(135deg, rgba(8, 170, 162, .16), rgba(41, 38, 111, .10)) !important;
  border: 1px solid rgba(8, 170, 162, .34) !important;
  box-shadow: none !important;
  color: var(--infinity-navy) !important;
}

.app-shell .nav-icon {
  background: rgba(41, 38, 111, .10) !important;
  color: var(--infinity-navy) !important;
}

.app-shell .nav button.active .nav-icon,
.app-shell .nav button:hover .nav-icon {
  background: linear-gradient(135deg, var(--infinity-teal), var(--infinity-indigo)) !important;
  color: #ffffff !important;
}

.app-shell .sidebar-footer {
  border-top-color: rgba(31, 95, 134, .16) !important;
}
