:root {
  --black: #0D0D0D;
  --nav-bg: #0D0D0D;
  --card-bg: #F6F4EF;
  --elevated-card: #FFFFFF;
  --surface-2: #ECE7DE;
  --border: #E5DED2;
  --text: #1E1E1E;
  --text-muted: #6B675F;
  --text-faint: #A8A092;
  --gold: #9C7C4A;
  --gold-light: #D6CDB8;
  --gold-pale: #ECE7DE;
  --gold-bg: #F6F4EF;
  --platinum: #CFC8BA;
  --green: #5E6F63;
  --red: #6B3A3A;
  --red-light: #f5eeee;
  --blue: #2A3A4A;
  --radius: 8px;
  --card-radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #FDFCF9;
  min-height: 100vh;
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.gold { color: var(--gold); }
.red { color: var(--red); }
.green { color: var(--green); }

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}

.login-box {
  background: #1A1A1A;
  border: 1px solid #2E2E2E;
  border-radius: var(--card-radius);
  padding: 72px 64px;
  width: 520px;
  text-align: center;
}

.login-logo {
  margin-bottom: 4px;
}

.login-logo-img {
  height: 240px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 24px;
}


.login-subtitle {
  color: #6B675F;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 1em;
  margin-bottom: 40px;
}

.login-box .input-field {
  background: #111111;
  border-color: #2E2E2E;
  color: #E7E1D3;
  margin-bottom: 12px;
}
.login-box .input-field::placeholder { color: #6B675F; }
.login-box .input-field:focus { border-color: #E7E1D3; }
.login-box .btn-gold {
  background: #E7E1D3;
  color: #0D0D0D;
  border-color: #E7E1D3;
}
.login-box .btn-gold:hover { background: #D6CDB8; border-color: #D6CDB8; }
.login-forgot-link { color: #6B675F; font-size: 0.8em; text-decoration: none; letter-spacing: 0.04em; }
.login-forgot-link:hover { color: #A8A092; }
.login-form-hint { color: #6B675F; font-size: 0.82em; line-height: 1.55; }

.pw-wrap { position: relative; display: block; }
.pw-wrap .input-field { padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #6B675F;
  padding: 4px; display: flex; align-items: center; line-height: 1;
}
.pw-toggle:hover { color: #A8A092; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 80px;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid #1A1A1A;
  gap: 0;
}

.nav-brand {
  margin-right: 32px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.nav-link {
  color: #A8A092;
  text-decoration: none;
  padding: 0 16px;
  height: 56px;
  display: flex; align-items: center;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
}

.nav-link:hover { color: #F6F4EF; }
.nav-link.active { color: #E7E1D3; border-bottom-color: #E7E1D3; }

.nav-user {
  display: flex; align-items: center; gap: 12px;
  margin-left: 16px;
  white-space: nowrap;
}

#nav-user-name { color: #6B675F; font-size: 0.8em; }

/* ===== NAVBAR REMINDER BADGE ===== */
.nav-reminders {
  position: relative;
  cursor: pointer;
  padding: 0 12px;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.nav-reminders:hover { opacity: 1; }

.bell-icon { font-size: 1.1em; }

.reminder-badge {
  position: absolute;
  top: 8px;
  right: 4px;
  background: #C0392B;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.65em;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Jost', sans-serif;
}

.reminder-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 308px;
  background: #141414;
  border: 1px solid #2E2E2E;
  border-radius: 8px;
  z-index: 10000;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  text-align: left;
}
.rp-header { padding: 10px 14px 4px; font-size: 0.68em; letter-spacing: 0.1em; text-transform: uppercase; color: #6B675F; font-family: 'Jost', sans-serif; border-top: 1px solid #222; }
.rp-header:first-child { border-top: none; }
.rp-item { padding: 8px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid #1a1a1a; transition: background 0.12s; }
.rp-item:hover { background: #1c1c1c; }
.rp-item-title { font-size: 0.83em; color: #e8e4dc; font-family: 'Jost', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-item-sub { font-size: 0.72em; color: #6B675F; }
.rp-empty { padding: 10px 14px; font-size: 0.82em; color: #6B675F; font-style: italic; }
.rp-footer { padding: 8px 14px; border-top: 1px solid #222; text-align: center; font-size: 0.75em; color: var(--gold); cursor: pointer; letter-spacing: 0.03em; font-family: 'Jost', sans-serif; }
.rp-footer:hover { color: #e8cb7a; }

/* ===== GLOBAL SEARCH ===== */
.nav-search {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.nav-search-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.nav-search-input {
  width: 100%;
  background: #1A1A1A;
  border: 1px solid #2E2E2E;
  border-radius: 6px;
  color: #F6F4EF;
  font-family: 'Jost', sans-serif;
  font-size: 0.82em;
  padding: 8px 14px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.nav-search-input::placeholder { color: #3E3E3E; }
.nav-search-input:focus { border-color: #5A5550; }

.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 380px;
  background: #141414;
  border: 1px solid #2E2E2E;
  border-radius: 8px;
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.sr-section-header {
  padding: 10px 14px 4px;
  font-size: 0.68em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B675F;
  font-family: 'Jost', sans-serif;
  border-top: 1px solid #222;
}
.sr-section-header:first-child { border-top: none; }

.sr-item {
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.1s;
}
.sr-item:hover { background: #1E1E1E; }

.sr-item-name {
  color: #E7E1D3;
  font-size: 0.84em;
  font-family: 'Jost', sans-serif;
}

.sr-item-meta {
  color: #6B675F;
  font-size: 0.74em;
}

.sr-view-all {
  padding: 8px 14px;
  font-size: 0.75em;
  color: #A8A092;
  cursor: pointer;
  border-top: 1px solid #1E1E1E;
  transition: color 0.1s;
}
.sr-view-all:hover { color: #E7E1D3; }

.sr-empty, .sr-loading {
  padding: 20px 14px;
  color: #4A4A4A;
  font-size: 0.82em;
  text-align: center;
}

.navbar .btn-outline-gold {
  color: #A8A092;
  border-color: #3A3A3A;
  background: transparent;
}
.navbar .btn-outline-gold:hover {
  color: #F6F4EF;
  border-color: #6B675F;
  background: rgba(255,255,255,0.05);
}

/* ===== MAIN ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px;
}

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}

.page-header h1 {
  font-family: 'Jost', sans-serif;
  font-size: 1.9em;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--text);
}

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

.view-toggle-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.view-toggle {
  padding: 7px 16px;
  font-size: 0.82em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.view-toggle + .view-toggle { border-left: 1px solid var(--border); }
.view-toggle.active { background: #E7E1D3; color: var(--text); font-weight: 600; }
.view-toggle:hover:not(.active) { background: var(--surface-2); color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.15s;
  text-decoration: none;
  gap: 6px;
}

.btn-gold { background: #E7E1D3; color: #0D0D0D; border-color: #E7E1D3; }
.btn-gold:hover { background: #D6CDB8; border-color: #D6CDB8; }
.btn-outline-gold { background: #FFFFFF; color: var(--text); border-color: var(--border); }
.btn-outline-gold:hover { background: var(--gold-pale); }
.btn-red { background: var(--red); color: #F6F4EF; border-color: var(--red); }
.btn-red:hover { background: #7a4040; border-color: #7a4040; }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red-light); }
.btn-sm { padding: 5px 12px; font-size: 0.8em; }
.btn-full { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--gold-pale); }

/* ===== INPUTS ===== */
.input-field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  color: var(--text);
  background: #FFFFFF;
  transition: border-color 0.15s;
  outline: none;
}
.input-field:focus { border-color: var(--gold); }
.input-field::placeholder { color: var(--text-faint); }
.input-field.select-sm { width: auto; min-width: 130px; }
select.input-field {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B675F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
textarea.input-field { resize: vertical; min-height: 80px; }
input[type="date"].input-field {
  cursor: pointer;
  color-scheme: light;
}
input[type="number"].input-field {
  -moz-appearance: textfield;
}
input[type="number"].input-field::-webkit-outer-spin-button,
input[type="number"].input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="date"].input-field::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  filter: invert(40%) sepia(10%) saturate(400%) hue-rotate(10deg);
}
input[type="file"].input-field {
  cursor: pointer;
  padding: 7px 12px;
  color: var(--text-muted);
}
input[type="file"].input-field::file-selector-button {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.82em;
  font-weight: 500;
  padding: 4px 10px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
input[type="file"].input-field::file-selector-button:hover {
  background: #D6CDB8;
}
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid #C8C0B4;
  border-radius: 4px;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  vertical-align: middle;
}
input[type="checkbox"]:hover { border-color: var(--gold); }
input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #FFFFFF;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-input { min-width: 260px; max-width: 320px; }

/* ===== SECTION CARDS ===== */
.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.on-assignment-card { border-left: 4px solid #0D3B6E; background: #FFFFFF; }
.upcoming-card      { border-left: 4px solid #9C7C4A; background: #FFFFFF; }
.alert-red-card     { border-left: 4px solid #C0392B; background: #FFFFFF; }
.alert-gold-card    { border-left: 4px solid #E67E22; background: #FFFFFF; }
.followup-card      { border-left: 4px solid #9C7C4A; }

.on-assignment-card .section-title { color: #0D3B6E; }
.upcoming-card .section-title      { color: #9C7C4A; }
.alert-red-card .section-title     { color: #C0392B; }
.alert-gold-card .section-title    { color: #E67E22; }
.followup-title                    { color: #9C7C4A; }

/* ===== COMMUNICATION LOGS ===== */
.log-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72em;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.log-badge-phone   { background: #D0E4F7; color: #0D3B6E; }
.log-badge-email   { background: #D4EDDA; color: #1A5C32; }
.log-badge-text    { background: #FDE8C8; color: #7A4A0D; }
.log-badge-meeting { background: #EDE0F7; color: #4A1A7A; }
.log-badge-note    { background: #ECE7DE; color: #4A4540; }

.comm-log-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comm-log-entry:last-child { border-bottom: none; }

.comm-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comm-log-subject {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.9em;
  color: var(--text);
}

.comm-log-meta {
  font-size: 0.75em;
  color: var(--text-muted);
}

.comm-log-notes {
  font-size: 0.85em;
  color: var(--text);
  margin-top: 2px;
}

.comm-log-followup {
  font-size: 0.78em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-light);
  display: inline-block;
  margin-top: 4px;
}

.followup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.followup-row:last-child { border-bottom: none; }

.followup-date { font-family: 'Jost', sans-serif; font-size: 0.85em; font-weight: 600; min-width: 90px; }
.followup-date.overdue { color: #C0392B; }
.followup-date.today   { color: #9C7C4A; }

.followup-contact { font-size: 0.88em; cursor: pointer; color: var(--text); font-weight: 500; }
.followup-contact:hover { text-decoration: underline; }

.followup-detail { font-size: 0.8em; color: var(--text-muted); flex: 1; }
.followup-assignee { margin-left: 8px; color: var(--gold); font-size: 0.9em; white-space: nowrap; }

#table-starting-soon tbody tr { background-color: #EEF5F0; }
#table-rolling-7     tbody tr { background-color: #FDF0EE; }
#table-rolling-14    tbody tr { background-color: #FDF5E8; }

#table-starting-soon tbody tr:hover td { background-color: #D8EDE0; }
#table-rolling-7     tbody tr:hover td { background-color: #F8D8D4; }
#table-rolling-14    tbody tr:hover td { background-color: #F5E0C8; }

#table-placements tr.pl-row-active    { background-color: #EEF5F0; }
#table-placements tr.pl-row-upcoming  { background-color: #FDF5E8; }
#table-placements tr.pl-row-completed { background-color: #F4F4F2; }
#table-placements tr.pl-row-cancelled { background-color: #F9F4F4; }
#table-placements tr.pl-row-active:hover    td { background-color: #D8EDE0; }
#table-placements tr.pl-row-upcoming:hover  td { background-color: #F5E0C8; }
#table-placements tr.pl-row-completed:hover td { background-color: #E8E8E6; }
#table-placements tr.pl-row-cancelled:hover td { background-color: #F0E8E8; }

.section-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* ===== METRICS ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.metric-label {
  font-size: 0.7em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.metric-value {
  font-family: 'Jost', sans-serif;
  font-size: 2.2em;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}

.metric-card.gold-metric { border-top: 3px solid var(--gold); }
.metric-card.gold-metric .metric-value { color: var(--gold); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }

table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875em;
}
th {
  background: var(--gold-pale);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.7em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gold-bg); }

.tbl-link { cursor: pointer; color: inherit; }
.tbl-link:hover { color: var(--gold); text-decoration: underline; }

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 40px;
  font-style: italic;
  font-size: 0.9em;
}

/* ===== TALENT GRID ===== */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.candidate-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: var(--shadow);
}
.candidate-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.10); border-color: var(--platinum); transform: translateY(-2px); }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.card-name {
  font-family: 'Jost', sans-serif;
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}
.card-location { color: var(--text-muted); font-size: 0.8em; margin-bottom: 12px; }

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-available    { background: #D4EDDA; color: #1A5C32; border: 1px solid #A3D4B0; }
.badge-on-assignment{ background: #D0E4F7; color: #0D3B6E; border: 1px solid #90BDE8; }
.badge-inactive     { background: #E8E5E0; color: #4A4540; border: 1px solid #C4BDB4; }
.badge-gold         { background: #FDE8C8; color: #7A4A0D; border: 1px solid #EDAA60; }
.badge-accord       { background: linear-gradient(135deg, var(--gold-pale), #fff7dc); color: var(--gold); border: 1px solid var(--gold); font-family: 'Cormorant Garamond', serif; }
.badge-accord-affiliate { background: #FDF0D0; color: #6E4A0D; border: 1px solid #E8C870; font-family: 'Jost', sans-serif; }
.badge-accord-member    { background: #FDE8C8; color: #7A4A0D; border: 1px solid #EDAA60; font-family: 'Jost', sans-serif; }
.badge-accord-fellow    { background: #F5E0C0; color: #7A3A0D; border: 1px solid #E8A850; font-family: 'Jost', sans-serif; }
.badge-accord-luminary  { background: #EED0A8; color: #5A2A0D; border: 1px solid #D89040; font-family: 'Jost', sans-serif; }
.badge-type         { background: #D0D8F0; color: #0D1E6E; border: 1px solid #8A9ADE; }

.tags-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag {
  background: #E8E2D8;
  color: #2A2520;
  border: 1px solid #C8C0B4;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75em;
  font-weight: 500;
}

.card-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.8em; color: var(--text-muted); }

/* ===== ACCORD BADGES ===== */
.accord-stars { color: var(--gold); letter-spacing: 0; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border);
}

.modal-lg { max-width: 960px; }

.modal-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.3em;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}

.modal-close {
  background: none; border: none;
  font-size: 1.4em; cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--gold-pale); color: var(--text); }

.modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: #FAFAF7;
  border-radius: 0 0 16px 16px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}

.tab {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FORM SECTION LABELS ===== */
.form-section-label {
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 6px 0 4px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

/* ===== FORM ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== PROPERTIES GRID ===== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.property-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: var(--shadow);
}
.property-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.10); border-color: var(--platinum); transform: translateY(-2px); }
.property-card h3 { font-family: 'Jost', sans-serif; font-size: 1.05em; font-weight: 500; letter-spacing: 0.03em; margin: 0 0 4px; color: var(--text); }
.property-card .prop-meta { color: var(--text-muted); font-size: 0.82em; }

/* ===== MGMT GRID ===== */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.mgmt-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: var(--shadow);
}
.mgmt-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.10); border-color: var(--platinum); transform: translateY(-2px); }
.mgmt-card h3 { font-family: 'Jost', sans-serif; font-size: 1.05em; font-weight: 500; letter-spacing: 0.03em; margin: 0 0 4px; color: var(--text); }

/* ===== BRANDS ===== */
.brand-group { margin-bottom: 24px; }
.brand-group-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82em;
  color: var(--text-muted);
}
.brand-chip.custom { border-color: var(--gold-light); color: var(--gold); }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.team-card h3 { margin: 0 0 4px; font-family: 'Jost', sans-serif; font-size: 1.05em; font-weight: 500; letter-spacing: 0.03em; color: var(--text); }
.role-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75em; font-weight: 600; }
.role-admin { background: #fdeaea; color: #7a3030; }
.role-senior { background: #f5f0e8; color: var(--gold); }
.role-recruiter { background: #eeedf5; color: #3A3A6B; }

/* ===== EXPORTS ===== */
.exports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.export-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.export-icon { font-size: 2.5em; margin-bottom: 12px; }
.export-card h3 { font-family: 'Jost', sans-serif; font-size: 1.1em; font-weight: 500; letter-spacing: 0.05em; margin: 0 0 8px; color: var(--text); }
.export-card p { color: var(--text-muted); font-size: 0.85em; margin-bottom: 16px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #1E1E1E;
  color: #E7E1D3;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875em;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
.toast.success { background: var(--green); color: #fff; }
.toast.error { background: var(--red); color: #F6F4EF; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* ===== ERROR ===== */
.error-msg {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #e8c8c8;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.875em;
}

/* ===== DIVIDERS ===== */
.detail-row { display: flex; gap: 24px; margin-bottom: 12px; flex-wrap: wrap; }
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: 0.7em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.detail-value { font-size: 0.95em; color: var(--text); }

/* ===== RATING STARS ===== */
.rating-stars { color: var(--gold); letter-spacing: 2px; }

/* ===== ACCORDION / CONTACTS ===== */
.contacts-list { display: flex; flex-direction: column; gap: 10px; }
.contact-row {
  background: var(--elevated-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-row-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ===== IMPORT MODAL ===== */
.import-preview { max-height: 300px; overflow-y: auto; }
.import-preview table { font-size: 0.8em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid.cols-3 { grid-template-columns: 1fr; }
  .navbar { padding: 0 12px; }
  .nav-brand { margin-right: 12px; }
  .nav-logo { height: 26px; }
  .main-content { padding: 20px 16px; }
  .modal { max-width: 100%; margin: 0; border-radius: 12px 12px 0 0; }
  .modal-overlay { padding: 0; align-items: flex-end; }
}

/* ===== ACCORD TIER COLORS ===== */
.accord-affiliate { color: #6E4A0D; }
.accord-member    { color: #7A4A0D; }
.accord-fellow    { color: #7A3A0D; }
.accord-luminary  { color: #5A2A0D; }

/* ===== STATUS DOT ===== */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.dot-available { background: var(--green); }
.dot-on-assignment { background: #4a4a8a; }
.dot-inactive { background: var(--gold-light); }

/* ===== CONFIDENTIAL BADGE ===== */
.badge-confidential { background: var(--red-light); color: var(--red); border: 1px solid #e8c8c8; }

/* ===== MULTI-SELECT TAGS INPUT ===== */
.tags-input-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  min-height: 42px;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  cursor: text;
  background: #FFFFFF;
  transition: border-color 0.15s;
}
.tags-input-wrap:focus-within { border-color: var(--gold); }
.tags-input-wrap .tag {
  background: #E8E2D8;
  color: #2A2520;
  border: 1px solid #C8C0B4;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8em;
  font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.tags-input-wrap .tag button {
  background: none; border: none; cursor: pointer;
  color: #6B675F; font-size: 0.9em; padding: 0; line-height: 1;
}
.tags-input-wrap input {
  border: none; outline: none; font-size: 0.875em;
  flex: 1; min-width: 100px; background: transparent;
  color: var(--text);
}

/* ===== DROPDOWN ===== */
.dropdown-list {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  z-index: 9999;
  min-width: 200px;
}
.dropdown-list .dropdown-item {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.875em;
  color: var(--text);
  transition: background 0.1s;
}
.dropdown-list .dropdown-item:hover { background: var(--gold-bg); }
.dropdown-list .dropdown-add-new {
  border-top: 1px solid var(--border);
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.dropdown-list .dropdown-add-new:hover { background: var(--gold-pale); color: var(--gold); }

.pos-rel { position: relative; }

/* ===== FINANCIALS ===== */
.fin-chart-wrap { margin-top: 20px; position: relative; }
.fin-chart-label {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}
.trend-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.trend-toggles { display: flex; gap: 14px; align-items: center; }
.trend-toggle-group { display: flex; align-items: center; gap: 3px; }
.trend-toggle-label {
  font-size: 0.65em;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 4px;
}
.trend-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.7em;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.trend-btn:hover { color: var(--text); border-color: #A8A092; }
.trend-btn.active { border-color: var(--gold); color: var(--gold); }
.fin-charts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.fin-chart-col { min-width: 0; }
@media (max-width: 960px) { .fin-charts-row { grid-template-columns: 1fr; } }

/* ===== PIPELINE TIMELINE ===== */
.pipeline-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pipeline-item:last-child { border-bottom: none; }
.pipeline-bar-wrap {
  background: var(--border);
  border-radius: 4px;
  height: 22px;
  position: relative;
  overflow: hidden;
}
.pipeline-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  min-width: 4px;
}

#page-financials .section-title {
  border-left: 3px solid #9C7C4A;
  padding-left: 12px;
}
.pipeline-meta { font-size: 0.8em; color: var(--text-muted); white-space: nowrap; }

/* ===== AMENDMENT HISTORY ===== */
.amend-history { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.amend-row {
  display: flex;
  gap: 12px;
  font-size: 0.8em;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.amend-row:last-child { border-bottom: none; }
.amend-field { font-weight: 600; color: var(--text); min-width: 100px; }
.amend-arrow { color: var(--gold); }
.amend-who { margin-left: auto; white-space: nowrap; }

/* ===== PIPELINE STAGE BADGES ===== */
.stage-lead        { background: #EDE0F7; color: #4A1A7A; border: 1px solid #C9A8E8; }
.stage-discovery   { background: #E8E0F5; color: #3D1A6E; border: 1px solid #BFA8E0; }
.stage-matched     { background: #D0EEF0; color: #0D4A50; border: 1px solid #8ED4DA; }
.stage-proposal    { background: #FDECD5; color: #7A3A0D; border: 1px solid #F0BC80; }
.stage-offer       { background: #FDE8C8; color: #7A4A0D; border: 1px solid #EDAA60; }
.stage-contracting { background: #D0D8F0; color: #0D1E6E; border: 1px solid #8A9ADE; }
.stage-prestart    { background: #FDF0D0; color: #6E4A0D; border: 1px solid #E8C870; }
.stage-active      { background: #C8EDDA; color: #0D4A28; border: 1px solid #70C898; }
.stage-extending   { background: #C8EDE8; color: #0D3E3A; border: 1px solid #70C8BC; }
.stage-closing     { background: #F7D8D8; color: #6E0D0D; border: 1px solid #E89090; }
.stage-completed   { background: #E0DDD8; color: #2A2520; border: 1px solid #B8B0A8; }
.stage-cancelled   { background: #F0D0D0; color: #5A0D0D; border: 1px solid #D89090; }

/* ===== KANBAN BOARD ===== */
.pipeline-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 24px;
  align-items: flex-start;
  min-height: 60vh;
}

.kanban-col {
  flex: 0 0 220px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  transition: background 0.15s, border-color 0.15s;
}
.kanban-col.drag-over {
  background: #EDE8DF;
  border-color: var(--gold);
}

.kanban-col-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.kanban-count {
  background: var(--border);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.8em;
  color: var(--text-muted);
}

.kanban-cards {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.kanban-empty {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.78em;
  font-style: italic;
  padding: 16px 8px;
}

.kanban-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s, border-color 0.15s;
  user-select: none;
}
.kanban-card:hover { box-shadow: var(--shadow); border-color: var(--platinum); }
.kanban-card.dragging { opacity: 0.5; cursor: grabbing; }

.kanban-name { font-family: 'Jost', sans-serif; font-size: 0.95em; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 3px; color: var(--text); }
.kanban-meta { font-size: 0.76em; color: var(--text-muted); }
.kanban-dates { font-size: 0.72em; color: var(--text-muted); margin-top: 6px; border-top: 1px solid var(--border); padding-top: 5px; }
.kanban-rate { font-size: 0.78em; color: var(--gold); font-weight: 600; margin-top: 3px; }

/* ===== PLACEMENT DETAIL MODAL XL ===== */
.modal-xl { max-width: 900px; }

/* ===== CHECKLIST ===== */
.checklist-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9em;
  color: var(--text);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item label { flex: 1; cursor: pointer; }
.checklist-date {
  width: 140px !important;
  padding: 5px 8px !important;
  font-size: 0.8em !important;
  color-scheme: light;
}
.checklist-date::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  filter: invert(40%) sepia(10%) saturate(400%) hue-rotate(10deg);
}

.auto-item { color: var(--text-muted); }
.auto-icon { font-size: 1em; width: 20px; text-align: center; }
.auto-met .auto-icon { color: var(--green); }
.auto-pending .auto-icon { color: var(--text-faint); }
.auto-note { font-size: 0.75em; color: var(--text-faint); margin-left: auto; font-style: italic; }

/* ===== DOCUMENT GENERATION ===== */
.doc-gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.doc-gen-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-gen-icon { font-size: 2em; }
.doc-gen-title { font-family: 'Jost', sans-serif; font-size: 1.05em; font-weight: 500; letter-spacing: 0.03em; color: var(--text); }
.doc-gen-desc { font-size: 0.8em; color: var(--text-muted); flex: 1; line-height: 1.5; }
.doc-gen-card .btn { margin-top: 4px; }

/* ===== WEEKLY CHECK-INS ===== */
.checkin-entry {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.checkin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.checkin-date { font-weight: 600; font-size: 0.9em; color: var(--text); }
.checkin-who { margin-left: auto; font-size: 0.78em; color: var(--text-muted); }
.checkin-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.ci-on-track { background: #eef4ef; color: var(--green); }
.ci-concern { background: #f5f0e8; color: var(--gold); }
.ci-at-risk { background: var(--red-light); color: var(--red); }
.checkin-meta { font-size: 0.8em; color: var(--text-muted); margin-bottom: 4px; }
.checkin-notes { font-size: 0.88em; margin-top: 6px; white-space: pre-wrap; line-height: 1.5; color: var(--text); }
.checkin-flags { font-size: 0.82em; color: var(--red); margin-top: 6px; }

/* ===== INVOICES ===== */
.outstanding-inv-card { border-left: 3px solid var(--danger); }

.inv-status-draft  { background:#242220;color:#888;padding:3px 10px;border-radius:12px;font-size:0.75em;font-weight:600;letter-spacing:0.05em }
.inv-status-sent   { background:#1A2A3A;color:#4A9EDE;padding:3px 10px;border-radius:12px;font-size:0.75em;font-weight:600;letter-spacing:0.05em }
.inv-status-paid   { background:#1A2E1A;color:#5CB85C;padding:3px 10px;border-radius:12px;font-size:0.75em;font-weight:600;letter-spacing:0.05em }
.inv-status-overdue{ background:#2E1A1A;color:var(--danger);padding:3px 10px;border-radius:12px;font-size:0.75em;font-weight:600;letter-spacing:0.05em }

.inv-line-row {
  display: grid;
  grid-template-columns: 1fr 64px 72px 96px 88px 34px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

/* Invoice preview inside modal */
.invoice-preview {
  background: #fff;
  color: #1a1a1a;
  border-radius: 6px;
  padding: 40px 48px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9em;
  max-width: 760px;
  margin: 0 auto;
}
.inv-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.inv-from-address { font-size: 0.82em; color: #555; margin-top: 10px; line-height: 1.7; }
.inv-header-right { text-align: right; }
.inv-title { font-size: 2em; font-weight: 700; color: #C9A96E; letter-spacing: 0.06em; margin-bottom: 12px; }
.inv-meta-row { display: flex; justify-content: flex-end; gap: 20px; font-size: 0.85em; margin-bottom: 4px; color: #333; }
.inv-meta-row span { color: #888; }
.inv-bill-to {
  background: #f8f7f5;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.88em;
  line-height: 1.75;
  border-left: 3px solid #C9A96E;
  color: #333;
}
.inv-section-label {
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 8px;
}
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.inv-table th {
  background: #1a1a1a;
  color: #C9A96E;
  padding: 9px 12px;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.inv-table th.inv-num, .inv-table td.inv-num { text-align: right; }
.inv-table td { padding: 9px 12px; font-size: 0.86em; border-bottom: 1px solid #eee; color: #1a1a1a; }
.inv-subtotal-row td { padding: 9px 12px; font-size: 0.86em; border-top: 2px solid #eee; color: #555; }
.inv-deposit-row td { padding: 5px 12px; font-size: 0.86em; color: #888; }
.inv-balance-row td { padding: 12px 12px; font-size: 0.98em; border-top: 2px solid #C9A96E; color: #C9A96E; font-weight: 600; }
.inv-payment-terms {
  background: #f8f7f5;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.84em;
}
.inv-terms-row { margin-bottom: 5px; line-height: 1.6; color: #333; }
.inv-footer { text-align: center; border-top: 1px solid #ddd; padding-top: 18px; margin-top: 4px; }
.inv-footer-text { font-size: 0.8em; color: #888; margin-top: 8px; letter-spacing: 0.06em; }
.inv-schedule-summary { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.inv-sch-label { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.inv-sch-stats { font-size: 0.88em; color: var(--text-muted); }
.inv-tag-action { display: inline-block; background: rgba(220,53,69,0.18); color: #ff6b7a; font-size: 0.72em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.inv-tag-soon { display: inline-block; background: rgba(212,175,55,0.18); color: var(--gold); font-size: 0.72em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
#inv-summary-bar { margin-bottom: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.inv-summary-chip { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 0.8em; font-weight: 600; letter-spacing: 0.04em; font-family: 'Jost', sans-serif; cursor: pointer; transition: opacity 0.15s; }
.inv-summary-chip:hover { opacity: 0.8; }
.inv-summary-overdue { background: rgba(220,53,69,0.15); color: #ff6b7a; border: 1px solid rgba(220,53,69,0.3); }
.inv-summary-soon { background: rgba(212,175,55,0.12); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }

/* ===== FIN COL / ADMIN COL VISIBILITY ===== */
.fin-col {}
.admin-col {}

/* ===== SPLASH SCREEN ===== */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #0D0D0D;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  gap: 20px;
}

#splash-screen.fading {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.splash-monogram {
  width: 260px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.splash-wordmark {
  opacity: 0;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #E7E1D3;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.4em;
  transition: opacity 0.7s ease-out;
  margin-top: 4px;
}

.splash-tagline {
  opacity: 0;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #A8A092;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72em;
  transition: opacity 0.6s ease-out;
}
