/* ============================================================
   GF Colaborador Drawer — painel lateral com detalhes do colaborador
   Aparece ao clicar em card de 1:1
   ============================================================ */

.gf-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 39, 61, 0.45);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gf-drawer-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.gf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(560px, 96vw);
  background: var(--gf-branco);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0, 39, 61, 0.18);
}

.gf-drawer--open {
  transform: translateX(0);
}

/* === Header === */
.gf-drawer__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 3px solid var(--gf-ouro);
  background: linear-gradient(135deg, #FAFBFC 0%, var(--gf-branco) 100%);
}

.gf-drawer__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gf-azul-medio) 0%, var(--gf-azul-escuro) 100%);
  color: var(--gf-branco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--gf-weight-bold);
  font-size: 20px;
  flex-shrink: 0;
}

.gf-drawer__person {
  flex: 1;
  min-width: 0;
}

.gf-drawer__person h2 {
  font-size: 18px;
  color: var(--gf-azul-escuro);
  margin: 0 0 4px;
  font-weight: var(--gf-weight-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-drawer__meta {
  font-size: 12px;
  color: var(--gf-cinza-600);
  line-height: 1.5;
}

.gf-drawer__meta strong {
  color: var(--gf-azul-escuro);
}

.gf-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gf-cinza-600);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.gf-drawer__close:hover {
  background: var(--gf-cinza-100);
  color: var(--gf-vermelho, #DC3545);
}

/* === Actions === */
.gf-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px;
  background: var(--gf-cinza-50, #FAFBFC);
  border-bottom: 1px solid var(--gf-cinza-200);
}

.gf-drawer__action {
  padding: 8px 14px;
  background: var(--gf-branco);
  color: var(--gf-azul-escuro);
  border: 1px solid var(--gf-cinza-300);
  border-radius: var(--gf-radius-md);
  font-size: 13px;
  font-weight: var(--gf-weight-medium);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.gf-drawer__action:hover {
  border-color: var(--gf-ouro);
  background: rgba(231, 184, 70, 0.06);
  text-decoration: none;
  color: var(--gf-azul-escuro);
}

.gf-drawer__action--primary {
  background: var(--gf-ouro);
  border-color: var(--gf-ouro);
  color: var(--gf-azul-escuro);
}

.gf-drawer__action--primary:hover {
  background: var(--gf-azul-escuro);
  color: var(--gf-ouro);
  border-color: var(--gf-azul-escuro);
}

.gf-drawer__action--ghost {
  color: var(--gf-cinza-600);
}

/* === Tabs === */
.gf-drawer__tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--gf-cinza-200);
  background: var(--gf-branco);
}

.gf-drawer__tab {
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: var(--gf-weight-medium);
  color: var(--gf-cinza-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}

.gf-drawer__tab:hover {
  color: var(--gf-azul-escuro);
}

.gf-drawer__tab--active {
  color: var(--gf-azul-escuro);
  border-bottom-color: var(--gf-ouro);
  font-weight: var(--gf-weight-semibold);
}

/* === Content === */
.gf-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 32px;
  background: var(--gf-cinza-50, #FAFBFC);
}

.gf-drawer__pane {
  display: none;
}

.gf-drawer__pane--active {
  display: block;
}

/* === Items === */
.gf-drawer-item {
  background: var(--gf-branco);
  border: 1px solid var(--gf-cinza-200);
  border-left: 4px solid var(--gf-cinza-300);
  border-radius: var(--gf-radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
}

.gf-drawer-item--ok      { border-left-color: var(--gf-verde, #28A745); }
.gf-drawer-item--danger  { border-left-color: var(--gf-vermelho, #DC3545); }
.gf-drawer-item--warning { border-left-color: var(--gf-ouro); }
.gf-drawer-item--info    { border-left-color: var(--gf-azul-claro, #5BB3D6); }
.gf-drawer-item--neutral { border-left-color: var(--gf-cinza-400); }

.gf-drawer-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--gf-cinza-600);
}

.gf-drawer-item__seq {
  font-family: var(--gf-font-mono, monospace);
  color: var(--gf-cinza-500);
}

.gf-drawer-item__date {
  margin-left: auto;
}

.gf-drawer-item__dur {
  background: var(--gf-cinza-100);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
}

.gf-drawer-item__edit {
  margin-left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gf-cinza-600);
  text-decoration: none;
  background: var(--gf-cinza-100);
  transition: all 0.15s;
}

.gf-drawer-item__edit:hover {
  background: var(--gf-ouro);
  color: var(--gf-azul-escuro);
  text-decoration: none;
}

.gf-drawer-item__themes,
.gf-drawer-item__notes,
.gf-drawer-item__tasks {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--gf-radius-sm);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gf-cinza-700);
}

.gf-drawer-item__themes { background: rgba(38, 130, 166, 0.06); }
.gf-drawer-item__notes  { background: var(--gf-cinza-50, #FAFBFC); border-left: 2px solid var(--gf-cinza-300); }
.gf-drawer-item__tasks  { background: rgba(40, 167, 69, 0.08); }

.gf-drawer-item__themes strong,
.gf-drawer-item__notes strong,
.gf-drawer-item__tasks strong {
  color: var(--gf-azul-escuro);
}

.gf-drawer-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--gf-cinza-500);
  font-size: 13px;
  font-style: italic;
}

.gf-drawer-section-label {
  font-size: 11px;
  font-weight: var(--gf-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gf-cinza-500);
  margin: 16px 0 8px;
  padding-left: 4px;
}

.gf-drawer-section-label:first-child {
  margin-top: 0;
}

@media (max-width: 600px) {
  .gf-drawer {
    width: 100vw;
  }
  .gf-drawer__actions {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
