/* departments.css -- OCA Team Dashboard v2
   Departments grid: one card per persona.
   References tokens.css variables. No em-dashes.
*/

/* ------------------------------------------------------------------ */
/* Screen container                                                     */
/* ------------------------------------------------------------------ */

.dept-screen {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  padding: 28px 28px 48px;
}

.dept-heading {
  font-family: 'Francois One', sans-serif;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--ink-1);
  margin: 0 0 6px;
}

.dept-subtext {
  font-family: Manrope, sans-serif;
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0 0 24px;
}

/* ------------------------------------------------------------------ */
/* Card grid                                                            */
/* ------------------------------------------------------------------ */

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1080px;
}

/* ------------------------------------------------------------------ */
/* Department card                                                      */
/* ------------------------------------------------------------------ */

.dept-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow .14s;
}

.dept-card:hover {
  box-shadow: var(--shadow-pop);
}

/* ------------------------------------------------------------------ */
/* Card header: avatar + info + pill                                    */
/* ------------------------------------------------------------------ */

.dept-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dept-card__info {
  flex: 1;
  min-width: 0;
}

.dept-card__name {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dept-card__role {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Status pill                                                          */
/* ------------------------------------------------------------------ */

.dept-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.dept-pill--ok {
  background: var(--teal-soft);
  color: var(--teal);
}

.dept-pill--attention {
  background: var(--coral-soft);
  color: var(--coral);
}

.dept-pill--working {
  background: var(--hover-strong);
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ */
/* Now / activity row                                                   */
/* ------------------------------------------------------------------ */

.dept-card__now {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.dept-card__now-label {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
  margin-top: 2px;
}

.dept-card__now-text {
  font-family: Manrope, sans-serif;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/* Blocked badge                                                        */
/* ------------------------------------------------------------------ */

.dept-card__blocked {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(159, 10, 55, .08);
  color: var(--red);
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  width: fit-content;
}

/* ------------------------------------------------------------------ */
/* Separator                                                            */
/* ------------------------------------------------------------------ */

.dept-card__sep {
  height: 1px;
  background: var(--border);
  margin: 10px 0 12px;
}

/* ------------------------------------------------------------------ */
/* Recent reports section                                               */
/* ------------------------------------------------------------------ */

.dept-card__reports-label {
  font-family: 'Francois One', sans-serif;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.dept-card__report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dept-card__report-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.dept-card__report-title {
  font-family: Manrope, sans-serif;
  font-size: 12.5px;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.dept-card__report-ts {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  color: var(--ink-3);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Loading + empty state                                                */
/* ------------------------------------------------------------------ */

.dept-loading,
.dept-empty {
  font-family: Manrope, sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  padding: 24px 0;
}
