/* Adaptación de co-shell, co-side y co-work de Control Operativo. */
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 5; padding: 10px 14px; transform: translateY(-150%); background: white; }
.skip-link:focus { transform: none; }
.co-shell { display: grid; grid-template: 48px 1fr / 224px minmax(0, 1fr); min-height: 100dvh; }
.co-side { grid-area: 1 / 1 / 3; background: var(--rd-navy); border-right: 1px solid #253e5a; padding: 16px 12px 24px; }
.co-live-side-brand { display: flex; align-items: center; gap: 11px; color: #f5f9ff; text-decoration: none; padding: 8px 8px 24px; font-size: 16px; font-weight: 750; line-height: 1.25; }
.co-live-side-brand img, .co-mobile-brand img { border-radius: 10px; object-fit: contain; flex: none; }
.co-live-side-brand strong { display: block; font-size: 14px; color: #adc6dc; font-weight: 500; }
.co-nav-group { padding: 10px 0 12px; }
.co-nav-group p { padding: 0 10px; margin: 0 0 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #b4c7dc; text-transform: uppercase; }
.co-nav-group a { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 9px 10px; border: 1px solid transparent; border-left-width: 3px; border-radius: 8px; color: #f5f9ff; text-decoration: none; font-weight: 650; }
.co-nav-group a svg { color: #a0b9d1; }
.co-nav-group a:hover { background: #223c59; }
.co-nav-group a[aria-current=page] { background: #294461; border-color: #3c5570; border-left-color: var(--rd-amber); }
.co-nav-group a[aria-current=page] svg { color: var(--rd-amber); }
.co-side a:focus-visible { outline-color: var(--rd-amber); }
.co-top { grid-area: 1 / 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; background: white; border-bottom: 1px solid var(--rd-line); box-shadow: 0 1px 5px #10243e08; }
.co-header-context, .co-mobile-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--rd-navy); font-weight: 650; }
.co-header-context:hover, .co-mobile-brand:hover { text-decoration: underline; }
.co-mobile-brand { display: none; }
.co-work { grid-area: 2 / 2; min-width: 0; padding: 14px 24px 36px; }
.skip-link:focus, .co-work:focus { outline: 3px solid var(--rd-cyan); }

.files-toolbar { position: relative; }
.file-filters { position: relative; }
.file-filters summary { list-style: none; cursor: pointer; }
.file-filters summary::-webkit-details-marker { display: none; }
.file-filter-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 285px; }
.files-table { border-radius: 0 0 var(--rd-radius) var(--rd-radius); }
.files-table:focus-visible { outline: 3px solid var(--rd-cyan); outline-offset: -3px; }
.files-table .rd-table td { padding-block: 5px; }
.files-table .rd-table th:last-child, .files-table .rd-table td:last-child { padding-right: 18px; }
.files-table .rd-table td { overflow-wrap: anywhere; }
.files-table .rd-table th:first-child { width: 36%; }
.file-name { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 4px; color: var(--rd-ink); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.file-name svg { color: #66829d; }
.file-name:hover { color: var(--rd-cyan); text-decoration: underline; }
.date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-cell .rd-empty { padding: 38px 14px 35px; }
.rd-footer-row, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rd-footer-row { padding-inline: 16px; }

.entry-panel { max-width: 860px; }
.entry-form { display: grid; gap: 18px; padding: 18px; }
.file-field { grid-column: 1 / -1; min-width: 0; }
.file-field input::file-selector-button { border: 1px solid var(--rd-line); border-radius: 6px; padding: 6px 9px; background: var(--rd-soft); margin-right: 8px; color: var(--rd-ink); cursor: pointer; }
.drop-files-ready .drop-files-zone { position: relative; border: 1px dashed #71859b; border-radius: 8px; background: var(--rd-soft); }
.drop-files-ready .drop-files-zone:focus-within { outline: 3px solid var(--rd-cyan); outline-offset: 2px; }
.drop-files-ready .drop-files-zone.is-dragging { background: #e3f3f6; border-color: var(--rd-cyan); }
.drop-files-ready .drop-files-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3em; min-height: 78px; padding: 12px; cursor: pointer; }
.drop-files-ready .drop-files-label > span:last-child { color: var(--rd-cyan); text-decoration: underline; text-underline-offset: 3px; }
.drop-files-instruction:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; }
.drop-files-ready .drop-files-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.drop-files-ready .drop-files-input input { position: absolute; inset: 0; height: 1px !important; min-height: 0 !important; padding: 0 !important; }
.rd-field-hint, .selection-info { color: var(--rd-muted); }
.selection-info { margin: 8px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rd-popover .form-actions { margin-top: 14px; }
.file-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; }
.file-facts div { border: 1px solid var(--rd-line); border-radius: 8px; padding: 10px; background: var(--rd-soft); }
.file-facts dt { font-size: 13px; color: var(--rd-muted); }
.file-facts dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.long-text { overflow-wrap: anywhere; }
.notice { padding: 9px 12px; margin: 0 0 14px; border: 1px solid; border-radius: 8px; overflow-wrap: anywhere; }
.notice-success { color: #1c6041; background: #e8f5ed; border-color: #b4d8c2; }
.notice-error { color: #932237; background: #fbe7ea; border-color: #e6b3be; }
.entry-form .notice { margin: 0; }
.errorlist { color: #932237; list-style: none; margin: 0; padding: 0; }
.rd-field [aria-invalid=true] { border-color: #b32642 !important; }
.co-access-password button[hidden] { display: none; }
.co-codigo-activacion:not([hidden]) { display: grid; gap: 9px; }
.co-profile { position: relative; flex: none; }
.co-profile summary { list-style: none; cursor: pointer; background: #edf2f7; border-color: var(--rd-line); }
.co-profile summary::-webkit-details-marker { display: none; }
.co-profile-trigger span { max-width: 20vw; overflow: hidden; text-overflow: ellipsis; }
.co-profile-panel { position: absolute; top: calc(100% + 6px); right: 0; min-width: 190px; padding: 4px; }
.co-profile-panel a, .co-profile-panel button { display: flex; gap: 8px; align-items: center; width: 100%; min-height: 34px; text-align: left; border: 0; background: #fff; text-decoration: none; padding: 5px 9px; border-radius: 6px; }
.co-profile-panel a:hover, .co-profile-panel button:hover, .co-profile-panel a[aria-current=page] { background: var(--rd-soft); }
.co-profile-panel form { border-top: 1px solid var(--rd-line); padding-top: 3px; margin-top: 3px; }
.co-account-id { margin: 0; color: var(--rd-muted); }
.co-access-choices { min-width: 0; margin: 0; padding: 8px 12px; border: 1px solid var(--rd-line); border-radius: 8px; }
.co-access-choices label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.co-heading-compact { margin-bottom: 10px; }
.co-heading-compact h1 { margin: 0; font-size: 25px; }
.co-users-list { margin-bottom: 12px; }
[data-copiar-enlace] [hidden] { display: none; }
.co-nav-group a + a { margin-top: 3px; }
.dte-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dte-switch summary { white-space: normal; overflow-wrap: anywhere; }
.dte-switch .dte-companies { left: 0; right: auto; display: grid; max-height: 44vh; overflow: auto; }
.dte-companies a { display: block; padding: 8px; overflow-wrap: anywhere; }
.dte-companies a[aria-current=page] { background: var(--rd-soft); font-weight: 700; }
.dte-toolbar { align-items: end; }
.dte-toolbar .rd-field:has(input[type=search]) { flex: 1 1 220px; max-width: 360px; }
.dte-toolbar input[type=month] { min-width: 160px; }
.dte-toolbar .rd-button { min-height: 38px; }
.dte-export { margin-inline-start: auto; }
.dte-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rd-line); background: var(--rd-soft); }
.dte-totals div { padding: 7px 12px; border-right: 1px solid var(--rd-line); min-width: 0; }
.dte-totals div:last-child { border-right: 0; }
.dte-totals dt { color: var(--rd-muted); }
.dte-totals dd { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dte-note { margin: 0; padding: 4px 12px; color: var(--rd-muted); font-size: 13px; }
.files-table .dte-table th:first-child { width: auto; }
.dte-recent { margin: 14px 0 0; }
.dte-recent summary { padding: 12px 16px; cursor: pointer; font-weight: 650; }
.dte-recent ul { margin: 0 0 12px; }
.dte-recent li { padding-block: 4px; }

@media (min-width: 768px) and (pointer: fine) {
  .co-nav-group a { min-height: 36px; padding-block: 6px; }
  .files-table .rd-compact-table :is(th, tbody tr) { height: 36px; }
  .files-table .rd-compact-table td { padding-block: 3px; }
  .rd-compact-table .file-name, .rd-compact-table .rd-button { min-height: 30px; padding-block: 2px; }
  .rd-compact-table .file-name small { margin: 0; }
}

@media (max-width: 1179px) {
  .co-shell { grid-template: 56px 1fr / minmax(0, 1fr); }
  .co-side, .co-header-context { display: none; }
  .co-mobile-brand { display: flex; }
  .co-top, .co-work { grid-column: 1; }
}
@media (max-width: 767px) {
  .co-top { padding-inline: 12px; }
  .co-work { padding: 14px 12px 36px; }
  .co-profile-trigger span { display: none; }
  .co-profile-panel a, .co-profile-panel button { min-height: 44px; }
  .rd-toolbar-spacer { display: none; }
  .files-toolbar > .rd-search { min-width: 0; flex: 1 1 50%; }
  .file-filters { position: static; }
  .file-filter-panel { top: calc(100% + 2px); right: 10px; width: min(285px, calc(100% - 20px)); }
  .files-table .rd-table { min-width: 650px; }
  .files-table:has(.empty-cell) .rd-table { min-width: 0; }
  .files-table:has(.empty-cell) thead { display: none; }
  .file-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .entry-form { padding: 14px; }
}
