:root {
  /* official Southern Shine palette (Brand Colors.docx) */
  --ss-blue: #31a3d4;      /* blue background — links, active states */
  --ss-navy: #001f59;      /* navy blue — primary text, dark backgrounds */
  --ss-light: #88b6e7;     /* light blue (car) */
  --ss-yellow: #fbe247;    /* CTA yellow */
  --bg: #f4f7fa;
  --card: #ffffff;
  --text: #001f59;
  --muted: #565a5b;
  --line: #e2e8f0;          /* matches southernshine.us --ss-line */
  --t1: #1c8a4c;
  --t2: #b07d18;
  --t3: #8a8f98;
}
* { box-sizing: border-box; }
/* same font pairing as southernshine.us: Plus Jakarta Sans body, Space Grotesk headings */
body { margin: 0; font: 15px/1.45 "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
       background: var(--bg); color: var(--text); }
h1, h2, h3, .section-h, .brand-hr, .tile-num {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }

/* ── left sidebar layout, same pattern as southernshine.us ── */
.crm-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.crm-sidebar { background: #f8faff; border-right: 1px solid #dbe3f0; padding: 24px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.crm-sidebar-brand { padding: 0 16px 16px; border-bottom: 1px solid var(--ss-light);
  margin-bottom: 12px; text-align: center; }
.crm-sidebar-logo { display: block; width: 100%; max-width: 150px; margin: 0 auto 10px; height: auto; }
.crm-sidebar-title { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700;
  font-size: 12px; color: var(--ss-navy); letter-spacing: 1.2px; text-transform: uppercase; }
.crm-nav { display: flex; flex-direction: column; }
.crm-nav-group-label { font-family: "Space Grotesk", sans-serif; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #667085;
  padding: 14px 20px 4px; }
.crm-nav-item { font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; font-weight: 500;
  color: #444; text-decoration: none; padding: 9px 20px; transition: all .12s;
  border-left: 3px solid transparent; cursor: pointer; }
.crm-nav-item:hover { background: #e8eef9; color: #1a1818; }
.crm-nav-item.active { color: var(--ss-navy); font-weight: 600; background: #e8f0fe;
  border-left-color: var(--ss-navy); }
.crm-nav-logout { margin-top: 18px; color: #667085; font-size: 13px; }
.crm-content { padding: 24px 32px; overflow-y: auto; background: #f2f5fb; min-width: 0; }
.crm-content main.inner { max-width: 1280px; margin: 0; padding: 0; }
.crm-content .flash { border: 1px solid #e8d98a; border-radius: 8px; margin-bottom: 14px; }
.page-h { margin: 0 0 14px; font-size: 24px; }
@media (max-width: 800px) {
  .crm-layout { grid-template-columns: 1fr; }
  .crm-sidebar { position: static; height: auto; border-right: 0;
    border-bottom: 1px solid #dbe3f0; }
}

.topbar { display: flex; align-items: center; justify-content: space-between;
          background: var(--ss-navy); color: #fff; padding: 6px 16px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
         display: flex; align-items: center; gap: 8px; }
.brand img { height: 40px; width: auto; }
.brand-hr { color: var(--ss-yellow); font-weight: 800; letter-spacing: .5px; }
.topbar nav a { color: #dbe8f5; text-decoration: none; margin-left: 14px; font-size: 14px; }
.topbar nav a:hover { color: #fff; }

.flash { background: #fff7d6; border-bottom: 1px solid #e8d98a; padding: 8px 16px; }
.hint { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--ss-blue); text-decoration: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
        background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; }
.pill.small { font-size: 12px; padding: 3px 10px; }
.pill.on { background: var(--ss-blue); border-color: var(--ss-blue); color: #fff; }
.pill .count { opacity: .7; margin-left: 4px; font-size: 12px; }

.tier-section { margin: 12px 0; }
.tier-section summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 6px 0; }
.tier-section summary .count { color: var(--muted); font-weight: 400; margin-left: 6px; }

.cards { display: grid; gap: 10px; margin-top: 8px; }
.card { display: block; background: var(--card); border: 1px solid var(--line);
        border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--ss-blue); }
.card-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-contact { font-size: 13px; margin-top: 2px; display: flex; gap: 12px; flex-wrap: wrap; }
.card-mid { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-why { margin-top: 6px; font-size: 14px; }
.card-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag { background: #eef3f9; border-radius: 4px; padding: 2px 7px; font-size: 12px; }

.badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge { border-radius: 4px; padding: 1px 7px; font-size: 11px; font-weight: 600;
         text-transform: uppercase; letter-spacing: .3px; }
.badge.loc { background: var(--ss-blue); color: #fff; }
.badge.src { background: #e6ebf2; color: #445; }
.badge.override { background: #fbe9c9; color: #7a5410; }
.badge.muted { background: #eee; color: #888; }
.badge.tier { background: #dbe7f6; color: var(--ss-blue); }

.status { font-weight: 600; }
.s-new { color: var(--ss-blue); }
.s-reviewed { color: #6a4fb3; }
.s-interviewing { color: var(--t2); }
.s-hired { color: var(--t1); }
.s-passed { color: var(--t3); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.panel.narrow { max-width: 720px; margin: 0 auto; }
.panel h1 { margin: 0 0 6px; font-size: 22px; }
.panel h2 { font-size: 15px; margin: 18px 0 6px; text-transform: uppercase;
            letter-spacing: .4px; color: var(--muted); }
.contact a { color: var(--ss-blue); text-decoration: none; font-weight: 600; }

.screen-box { background: #f4f9f4; border: 1px solid #cfe4cf; border-radius: 8px;
              padding: 10px 12px; margin: 10px 0; }
.screen-box.error { background: #fdf1f1; border-color: #e8bcbc; }
.screen-tier { font-weight: 700; margin-bottom: 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: end; }
.inline { display: flex; gap: 6px; align-items: end; }
label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 3px; }
select, input[type=text], input[type=email], input[type=password], textarea {
  font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; width: 100%; }
textarea { resize: vertical; }
.btn { font: inherit; padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px;
       background: #fff; cursor: pointer; }
.btn.primary { background: var(--ss-yellow); border-color: var(--ss-yellow);
               color: var(--ss-navy); font-weight: 800; }
.btn:hover { border-color: var(--ss-blue); }

.note { border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }

/* stat tiles — styled like the CRM's KPI cards */
.tiles { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 20px; min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.tile-num { font-size: 26px; font-weight: 700; color: var(--ss-navy); line-height: 1.1; }
.tile-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); }
.tile-pop { display: none; position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  box-shadow: 0 6px 18px rgba(20, 51, 92, .15); font-size: 13px; white-space: nowrap;
  max-height: 320px; overflow-y: auto; }
.tile-pop div { padding: 1px 0; }
.tile:hover .tile-pop { display: block; }

/* candidate tables — matches the CRM's table treatment */
.table-toolbar { display: flex; gap: 8px; margin: 4px 0 2px; }
.table-toolbar .btn { background: #fff; text-decoration: none; }
.section-h { margin: 22px 0 8px; font-size: 17px; }
.section-h .count { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.table-wrap { overflow-x: auto; }
.cand-table { width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.cand-table th { text-align: left; background: #f0f4fa; color: var(--ss-navy); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  padding: 9px 12px; border-bottom: 2px solid var(--line); }
.cand-table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.cand-table tbody tr:nth-child(even) { background: var(--bg); }
.cand-table tbody tr:hover { background: #eef3fa; }
.name-sub { margin-top: 2px; font-size: 12px; }
.resume-link { color: var(--ss-blue); text-decoration: none; font-weight: 600; }
.resume-link:hover { text-decoration: underline; }
.resume-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.resume-actions .btn { text-decoration: none; }
.row-actions { white-space: nowrap; position: relative; }
.row-actions .inline { display: inline-block; }
.pass-form.pop { position: absolute; right: 0; top: 100%; z-index: 20; width: 250px;
  flex-direction: column; align-items: stretch; box-shadow: 0 6px 18px rgba(20, 51, 92, .15); }
.pass-form.pop input { width: auto; }

/* pipeline / pass controls */
.btn.small { font-size: 12px; padding: 4px 10px; }
.card-actions { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; flex-wrap: wrap; }
.pass-menu summary { cursor: pointer; list-style: none; display: inline-block;
  font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: #a33; }
.pass-menu summary::-webkit-details-marker { display: none; }
.pass-menu[open] summary { border-color: #a33; }
.pass-form { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  background: #fdf3f3; border: 1px solid #eccfcf; border-radius: 8px; padding: 8px; }
.pass-form select, .pass-form input { font: inherit; font-size: 13px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 6px; }
.pass-form input { width: 210px; }
.passed-why { margin-top: 8px; font-size: 13px; background: #fdf3f3; border: 1px solid #eccfcf;
  border-radius: 8px; padding: 6px 10px; color: #7a2727; }
.pipeline { margin: 10px 0 4px; font-size: 13px; }
.pipeline .step { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: #fff; }
.pipeline .step.done { border-color: var(--ss-blue); color: var(--ss-blue); }
.pipeline .step.on { background: var(--ss-blue); border-color: var(--ss-blue); color: #fff; font-weight: 600; }
.pipeline .step-arrow { color: var(--muted); }
.resume { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 6px; }
.apptext { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Menlo, monospace;
           background: #f7f9fb; border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.kv td { padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.kv td:first-child { color: var(--muted); }

.login-box { max-width: 360px; margin: 60px auto; background: var(--card);
             border: 1px solid var(--line); border-radius: 10px; padding: 24px;
             text-align: center; }
.login-logo { width: 180px; margin: 0 auto 6px; }
.login-box h1 { margin-top: 0; font-size: 18px; color: var(--muted); font-weight: 500; }
.login-box form { text-align: left; }
.login-box label { margin-bottom: 12px; }
.login-box .btn { width: 100%; }

/* public application form (/apply — embedded on the careers page) */
.apply-page { background: #f4f7fa; }
.apply-wrap { max-width: 640px; margin: 24px auto; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 30px 32px; }
.apply-logo { display: block; height: 72px; margin: 0 auto 10px; }
.apply-h { text-align: center; margin: 0 0 6px; font-size: 26px; }
.apply-sub { text-align: center; color: var(--muted); margin: 0 0 20px; }
.apply-errors { background: #fdf3f3; border: 1px solid #eccfcf; color: #7a2727;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.apply-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.apply-form input:not(.hp):not([type="file"]), .apply-form select, .apply-form textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.apply-form input[type="file"] { display: block; margin-top: 6px; font: inherit; font-weight: 400; }
.apply-form textarea { resize: vertical; }
.apply-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.apply-filehint { font-weight: 400; color: var(--muted); font-size: 13px; }
.apply-btn { display: block; width: 100%; margin-top: 8px; padding: 13px; border: 0;
  border-radius: 10px; background: var(--ss-yellow); color: var(--ss-navy);
  font: inherit; font-weight: 800; font-size: 16px; letter-spacing: .5px; cursor: pointer; }
.apply-btn:hover { filter: brightness(.96); }
.hp { position: absolute; left: -9999px; height: 1px; width: 1px; opacity: 0; }
.apply-thanks { text-align: center; padding-top: 40px; padding-bottom: 44px; }
@media (max-width: 560px) { .apply-row { grid-template-columns: 1fr; } }
