/* Estilos específicos para repositorio */
.collapsible {
   cursor: pointer;
   user-select: none;
   display: flex;
   align-items: center;
   transition: color 0.3s ease;
   padding: 8px 0;
   margin-top: 20px;
}

.collapsible:hover {
   color: #0066cc;
}

.collapsible--tight {
   margin-top: 5px;
}

.collapse-icon {
   display: inline-block;
   width: 20px;
   text-align: center;
   margin-right: 10px;
   font-size: 16px;
   transition: transform 0.3s ease;
   font-weight: bold;
}

.collapse-content {
   overflow: hidden;
   transition: max-height 0.3s ease, opacity 0.3s ease;
   display: none;
}

.collapse-content.is-open {
   display: block;
}

.repo-download {
   font-size: 18px;
   text-decoration: none;
   cursor: pointer;
}

.status-link {
   font-weight: bold;
}

.status-link--inactive {
   color: #555;
}

.status-link--active {
   color: var(--azul1);
}

.repo-table .doc-status-vigente {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 8px 12px;
   border-radius: 8px;
   text-decoration: none;
   color: #fff;
   background: linear-gradient(135deg, var(--azul2) 0%, var(--azul1) 100%);
   font-weight: 600;
   box-shadow: 0 2px 8px rgba(0, 51, 94, 0.2);
}

.repo-table .doc-status-vigente:hover {
   color: #fff;
   transform: translateY(-1px);
}

.repo-subtitle {
   margin-top: 20px;
}

.doc-status-actions {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap;
}

.historico-btn {
   background: linear-gradient(135deg, var(--azul2) 0%, var(--azul1) 100%);
   color: #fff;
   border: none;
   padding: 10px 16px;
   border-radius: 8px;
   cursor: pointer;
   font-weight: 600;
   font-size: 13px;
   transition: all 0.2s ease;
   white-space: nowrap;
   box-shadow: 0 2px 8px rgba(54, 110, 175, 0.15);
}

.historico-btn:hover {
   background: linear-gradient(135deg, var(--azul1) 0%, #001f3f 100%);
   box-shadow: 0 6px 16px rgba(0, 51, 94, 0.25);
   transform: translateY(-2px);
}

.historico-btn:active {
   transform: translateY(0);
}

.historical-modal-body {
   padding: 12px;
   overflow: auto;
}

.historical-table-wrap {
   width: 100%;
}

.historico-footer-actions {
   margin-top: 10px;
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
}

.r2-hierarchy-table .r2-main-row td:first-child {
   font-weight: 700;
   color: var(--azul1);
}

.r2-hierarchy-table .r2-child-row td:first-child {
   color: var(--muted);
}

.r2-hierarchy-table .r2-child-row td:nth-child(2) {
   padding-left: 34px;
   position: relative;
}

.r2-hierarchy-table .r2-child-row td:nth-child(2)::before {
   content: "↳";
   position: absolute;
   left: 14px;
   color: var(--azul2);
   font-weight: 700;
}
