/* ═══════════════════════════════════════════════════
   DESIGN TOKENS — altere aqui para customizar o sistema
   ═══════════════════════════════════════════════════ */
:root {
  /* Cor primária (sobrescreve Bootstrap) */
  --bs-primary: #092c74;
  --bs-primary-rgb: 23, 46, 115;
  --bs-link-color: #092c74;
  --bs-link-hover-color: #06225a;

  /* Paleta da marca */
  --brand-50: #f3f4f6;
  --brand-100: #e5e7eb;
  --brand-200: #d1d5db;
  --brand-600: #092c74;
  --brand-700: #06225a;
  --brand-800: #03193b;

  /* Layout */
  --sidebar-w: 240px;
  --sidebar-collapsed-w: 64px;
  --header-h: 56px;

  /* Superfícies */
  --bg-page: #F4F6FB;
  --bg-card: #ffffff;
  --border-clr: #e5e7eb;
}

/* ═══ Reset / Base ═══════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-page);
  font-size: .875rem;
}


.row-detail {
  display: none;
  background-color: #f8fafc;
}

.row-detail.open {
  display: table-row;
}

.dp-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #4A39D0;
  margin-bottom: 2px;
}

.dp-value {
  font-size: 12.5px;
  color: #374151;
  font-weight: 500;
}

/* Responsividade da tabela */
@media (max-width: 991.98px) {
  .col-dept {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .col-vagas {
    display: none;
  }

  .col-tipo {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .col-code {
    display: none;
  }

  .detail-dates .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .table-responsive {
    overflow: visible !important;
  }
}

/* ═══ Linhas ════════════════════════════════════════ */
.linha {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.inputPersonalizado {
  border-left-color: transparent !important;
  border-top-color: transparent !important;
  border-right-color: transparent !important;
  border-radius: 0 !important;
}

/* ═══ Sidebar ════════════════════════════════════════ */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-clr);
  display: flex;
  flex-direction: column;
  z-index: 1035;
  transition: width .22s cubic-bezier(.4, 0, .2, 1),
    transform .22s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-w);
}

/* Rótulos que somem quando collapsed */
.sidebar-label {
  white-space: nowrap;
  overflow: hidden;
  max-width: 180px;
  transition: opacity .15s, max-width .2s;
}

.app-sidebar.collapsed .sidebar-label {
  opacity: 0;
  max-width: 0;
}

.app-sidebar.collapsed .sidebar-section-title {
  display: none;
}

.app-sidebar.collapsed .sidebar-search-container {
  display: none;
}

.app-sidebar.collapsed .collapse {
  display: none !important;
}

.app-sidebar.collapsed .collapse-indicator {
  display: none !important;
}

.app-sidebar.collapsed .sidebar-badge {
  display: none;
}

/* Links da sidebar */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: .875rem;
  transition: background .13s, color .13s;
  white-space: nowrap;
}

.sidebar-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.sidebar-link.active {
  background: #fafafa;
  color: var(--brand-600);
  font-weight: 500;
}

.sidebar-link i {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

/* ═══ Main wrapper ═══════════════════════════════════ */
.app-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .22s cubic-bezier(.4, 0, .2, 1);
}

.app-main.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-w);
}

/* ═══ Header ═════════════════════════════════════════ */
.app-header {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-clr);
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: .75rem;
}

/* ═══ Card genérico ══════════════════════════════════ */
.app-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-clr);
}

.app-card .border-0 {
  border: 0px !important;
}

.app-card-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ═══ Tabela ═════════════════════════════════════════ */
.tbl-base thead th {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9ca3af;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  padding: .75rem 1rem;
}

.tbl-base tbody td {
  padding: .875rem 1rem;
  border-bottom: 1px solid #f9fafb;
  vertical-align: middle;
}

.tbl-base tbody tr.data-row {
  cursor: pointer;
}

.tbl-base tbody tr.data-row:hover td {
  background: rgba(0, 0, 0, .015);
}

/* Barra de status */
.td-status {
  width: 4px;
  padding: 0 !important;
  position: relative;
}

.status-bar {
  position: absolute;
  inset: 0;
  /*width: 4px;*/
  width: 6px;
  min-height: 42px;
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
}

.status-bar.ativo {
  background: #22c55e;
}

.status-bar.inativo {
  background: #ef4444;
}

.linha-vermelha {
  background: rgb(250, 137, 107);
}

.linha-verde {
  background: #13deb9;
}

.linha-amarela {
  background: #ffc107;
}

/* Linha expandível */
.row-detail {
  display: none;
}

.row-detail.open {
  display: table-row;
}

.row-detail td {
  background: #fafafa;
  border-top: 1px solid #e0d9fb !important;
  padding: 1rem 1.25rem;
}

/* Data pills no expand */
.dp-label {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-600);
  display: block;
  margin-bottom: 2px;
}

.dp-value {
  font-size: .8125rem;
  font-weight: 500;
  color: #374151;
}

/* Modal tabs */
.modal-tabs {
  border-bottom: none;
  gap: 0;
}

.modal-tabs .nav-link {
  color: #6b7280;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .75rem .25rem;
  margin-right: 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  transition: color .13s, border-color .13s;
}

.modal-tabs .nav-link:hover {
  color: #111827;
  background: transparent;
}

.modal-tabs .nav-link.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
  background: transparent;
}

/* Formulários — override Bootstrap */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-200);
  box-shadow: 0 0 0 3px rgba(74, 57, 208, .1);
}

.form-label-xs {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  margin-bottom: .375rem;
  display: block;
}

.input-group-text {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #6b7280;
  font-size: .8125rem;
}

/* Botões */
.btn-primary {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(74, 57, 208, .25);
}

.btn-outline-primary {
  color: var(--brand-600);
  border-color: var(--brand-600);
}

.btn-outline-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

/* Paginação */
.page-item.active .page-link {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
}

.page-link {
  color: var(--brand-600);
}

.page-link:focus {
  box-shadow: 0 0 0 3px rgba(74, 57, 208, .2);
}

/* Sidebar mobile */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w) !important;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, .15);
  }

  .app-main {
    margin-left: 0 !important;
  }

  .sidebar-backdrop {
    display: block;
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1034;
  cursor: pointer;
}