/* Damaris Solutions — Internal Team Hub shared styles
   Same black/red Nunito theme as the client dashboards. */
:root {
  --bg: #000000;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --text-2: #e5e5e5;
  --text-dim: #b0b0b0;
  --text-dim-2: #7a7a7a;
  --brand: #d62828;
  --brand-2: #ef4444;
  --brand-soft: rgba(214,40,40,0.18);
  --orange: #f59042;
  --gold: #e0b04f;
  --teal: #6db5b5;
  --good: #6cc070;
  --warn: #e8a64a;
  --warn-soft: rgba(232,166,74,0.14);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(1000px 600px at 8% -5%, rgba(245,144,66,0.10), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(214,40,40,0.12), transparent 60%),
    var(--bg);
}
.container { max-width: 1100px; margin: 0 auto; padding: 48px 28px 80px; }

.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; flex-wrap: wrap; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.ds-mark {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px;
  box-shadow: 0 6px 24px rgba(214,40,40,0.30);
  text-decoration: none;
}
.brand h1 { font-size: 22px; margin: 0; font-weight: 900; letter-spacing: -0.01em; }
.brand p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none;
  font-size: 13px; font-weight: 800; transition: all 0.2s;
}
.btn-link:hover { border-color: rgba(214,40,40,0.4); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-2);
  font-size: 12px; font-weight: 800;
  border: 1px solid rgba(214,40,40,0.28);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); }

.intro { margin-bottom: 40px; max-width: 760px; }
.intro h2 { font-size: 38px; line-height: 1.08; margin: 0 0 14px; font-weight: 900; letter-spacing: -0.025em; }
.intro h2 .accent { color: var(--brand-2); }
.intro p { font-size: 15.5px; line-height: 1.6; color: var(--text-dim); font-weight: 500; margin: 0; }

.section-label {
  font-size: 11px; color: var(--text-dim-2);
  text-transform: uppercase; letter-spacing: 0.18em; font-weight: 800;
  margin: 36px 0 18px; display: flex; align-items: center; gap: 14px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-label .count { color: var(--text-dim); font-weight: 700; font-size: 11px; letter-spacing: 0.10em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.grid.tight { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none; color: inherit;
  transition: all 0.2s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
a.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transition: width 0.2s;
}
a.card:hover {
  border-color: rgba(214,40,40,0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(214,40,40,0.12);
}
a.card:hover::before { width: 5px; }
a.card.gold::before { background: var(--warn); }
a.card.gold:hover { border-color: rgba(232,166,74,0.36); box-shadow: 0 10px 30px rgba(232,166,74,0.10); }
.card .icon { font-size: 26px; line-height: 1; }
.card h3 { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.55; font-weight: 500; }

.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px; color: #fff; flex-shrink: 0;
}
.avatar.c1 { background: linear-gradient(135deg, #d62828, #ef4444); }
.avatar.c2 { background: linear-gradient(135deg, #f59042, #e07028); }
.avatar.c3 { background: linear-gradient(135deg, #6db5b5, #4d9999); }
.avatar.c4 { background: linear-gradient(135deg, #9b6dff, #7d49e3); }
.avatar.big { width: 76px; height: 76px; font-size: 28px; border-radius: 18px; }

.tag {
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 5px;
  background: rgba(255,255,255,0.05); color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em; display: inline-block;
}
.tag.red { background: rgba(214,40,40,0.16); color: var(--brand-2); }
.tag.orange { background: rgba(245,144,66,0.16); color: var(--orange); }
.tag.green { background: rgba(108,192,112,0.16); color: var(--good); }
.tag.teal { background: rgba(109,181,181,0.16); color: var(--teal); }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; padding: 10px 12px; color: var(--text-dim-2);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800;
  border-bottom: 1px solid var(--border);
}
td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: none; }
td a { color: var(--teal); text-decoration: none; font-weight: 700; }
td a:hover { text-decoration: underline; }

/* Dashed "fill me in" pill — same convention as the client onboarding hubs */
.todo {
  display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 800;
  color: var(--warn); background: var(--warn-soft); border: 1px dashed rgba(232,166,74,0.55);
  letter-spacing: 0.02em;
}

.note {
  background: linear-gradient(135deg, var(--brand-soft), rgba(245,144,66,0.06));
  border: 1px solid rgba(214,40,40,0.28); border-radius: 12px;
  padding: 14px 18px; font-size: 13px; color: var(--text-2); line-height: 1.6; font-weight: 600;
}
.note b { color: #fff; }

/* Knowledge base articles */
details.kb {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
details.kb summary {
  cursor: pointer; padding: 18px 22px; font-size: 15px; font-weight: 800;
  list-style: none; display: flex; align-items: center; gap: 12px;
  transition: background 0.15s;
}
details.kb summary::-webkit-details-marker { display: none; }
details.kb summary:hover { background: rgba(255,255,255,0.03); }
details.kb summary .chev { margin-left: auto; color: var(--text-dim-2); transition: transform 0.2s; font-size: 12px; }
details.kb[open] summary .chev { transform: rotate(90deg); }
details.kb .body { padding: 4px 22px 22px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
details.kb .body p { margin: 0 0 12px; }
details.kb .body ol, details.kb .body ul { margin: 0 0 12px; padding-left: 22px; }
details.kb .body li { margin-bottom: 7px; }
details.kb .body code {
  background: #0a0a0a; border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 7px; font-size: 12.5px; color: var(--gold);
}
details.kb .body a { color: var(--teal); font-weight: 700; text-decoration: none; }
details.kb .body a:hover { text-decoration: underline; }

/* Task list on employee portals */
.task-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); margin-bottom: 10px; font-size: 13.5px;
}
.task-row .t-name { font-weight: 800; }
.task-row .t-meta { color: var(--text-dim); font-size: 12.5px; }
.task-row .t-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip {
  font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.chip.todo-s { background: rgba(255,255,255,0.07); color: var(--text-2); }
.chip.prog { background: rgba(232,166,74,0.16); color: var(--warn); }
.chip.due { background: rgba(109,181,181,0.14); color: var(--teal); }
.chip.overdue { background: rgba(214,40,40,0.18); color: var(--brand-2); }

.footer {
  margin-top: 64px; padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 12.5px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer b { color: var(--text); font-weight: 800; }
.footer em { font-style: italic; }
