/* Turnos y horarios: estilos acotados a rh_shifts.html. */
.rt-page { color: var(--et-ink, #1A2236); font-size: 13px; line-height: 1.5; padding-bottom: 24px; }
.rt-page [hidden], .rt-dialog [hidden] { display: none !important; }
.rt-page > section { padding: 20px; background: #fff; border: 1px solid var(--et-line, #E4E9F2); border-radius: 12px; box-shadow: 0 2px 6px rgb(26 34 54 / 4%); }
.rt-page h3, .rt-dialog h3 { margin: 0 0 12px; color: var(--et-primary, #2A3B6E); font-size: 16px; font-weight: 700; line-height: 1.4; }
.rt-page .rt-muted, .rt-dialog .rt-muted { color: var(--et-ink-soft, #5B667E); font-size: 12px; line-height: 1.6; margin: 8px 0 16px; }
.rt-page #rt-status:not(:empty), .rt-dialog .rt-notice { padding: 12px 16px; margin: 0 0 16px; background: var(--et-primary-50, #EAEEFB); border-left: 3px solid var(--et-primary, #2A3B6E); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.rt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.rt-tabs button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--et-line, #E4E9F2); border-radius: 8px; background: #fff; color: var(--et-primary, #2A3B6E); font: inherit; font-weight: 600; cursor: pointer; }
.rt-tabs button[aria-pressed="true"] { background: var(--et-primary, #2A3B6E); border-color: var(--et-primary, #2A3B6E); color: #fff; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; font-size: 13px; }
.rt-grid > p { grid-column: 1 / -1; margin: 0; padding: 16px; }
.rt-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 20px; border: 1px solid var(--et-line, #E4E9F2); border-top: 3px solid var(--et-primary, #2A3B6E); border-radius: 12px; background: #fff; box-shadow: 0 2px 4px rgb(26 34 54 / 5%); overflow-wrap: anywhere; }
.rt-card:has(button):hover, .rt-card:focus-within { border-color: var(--et-primary, #2A3B6E); }
.rt-card:has(button) { cursor: pointer; }
.rt-card h4 { margin: 0; color: var(--et-primary, #2A3B6E); font-size: 14px; font-weight: 700; line-height: 1.5; }
.rt-card .rt-time { margin: 4px 0; font-size: 22px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-card .rt-muted { margin: 0 0 8px; }
.rt-card .btn { margin-top: auto; }
.rt-tag { padding: 2px 8px; border-radius: 8px; background: var(--et-primary-50, #EAEEFB); color: var(--et-primary, #2A3B6E); font-size: 11px; font-weight: 600; }
.rt-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0; }
.rt-filters label { flex: 1 1 200px; min-width: 0; }
.rt-filters label, .rt-dialog label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: var(--et-primary, #2A3B6E); }
.rt-page .form-control, .rt-dialog .form-control { width: 100%; min-width: 0; min-height: 40px; height: auto; padding: 8px 12px; border: 1px solid var(--et-line, #E4E9F2); border-radius: 8px; background-color: #fff; color: var(--et-ink, #1A2236); font-size: 13px; font-family: inherit; }
.rt-page .btn, .rt-dialog .btn { min-height: 40px; font-size: 12px; white-space: normal; }
.rt-page :is(button, a, input, select):focus-visible, .rt-dialog :is(button, input, select):focus-visible { outline: 2px solid var(--et-primary, #2A3B6E); outline-offset: 3px; }
.rt-page :is(button, input, select):disabled, .rt-dialog :is(button, input, select):disabled { background: var(--et-surface-2, #F9FAFD); color: var(--et-ink-soft, #5B667E); opacity: 1; cursor: not-allowed; }
.rt-page button.btn:disabled, .rt-dialog button.btn:disabled { background: #F9FAFD !important; color: #5B667E !important; opacity: 1 !important; }
.rt-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--et-line, #E4E9F2); border-radius: 12px; }
.rt-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rt-table table thead { background: linear-gradient(135deg, #4E73DF 0%, #17A2B8 100%) !important; }
.rt-table table thead tr, .rt-table table thead th { background: transparent !important; color: #fff; border: 0; }
.rt-table th { padding: 12px; text-align: left; font-size: 11px; font-weight: 700; }
.rt-table td { padding: 12px; vertical-align: middle; border-top: 1px solid var(--et-line, #E4E9F2); overflow-wrap: anywhere; }
.rt-table td:first-child { font-size: 12.5px; font-weight: 600; }
.rt-table tbody tr:nth-child(even) { background: var(--et-surface-2, #F9FAFD); }
.rt-table tbody tr:hover { background: var(--et-primary-50, #EAEEFB); }
.rt-table td[colspan] { text-align: center; font-size: 13px; font-weight: 400; padding: 24px; }
.rt-table td a { color: var(--et-primary, #2A3B6E); text-decoration: underline; }
.rt-pager { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding-top: 16px; font-size: 12px; color: var(--et-ink-soft, #5B667E); }
dialog.rt-dialog { position: fixed; inset: 0; margin: auto; width: min(560px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--et-line, #E4E9F2); border-radius: 16px; background: #fff; color: var(--et-ink, #1A2236); font-family: var(--font, Roboto, Arial, sans-serif); font-size: 13px; line-height: 1.5; overflow-y: auto; box-shadow: 0 16px 48px rgb(26 34 54 / 20%); }
dialog.rt-dialog:not([open]) { display: none; }
.rt-dialog::backdrop { background: rgb(26 34 54 / 45%); }
.rt-dialog form { display: grid; gap: 16px; }
.rt-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--et-line, #E4E9F2); }
.rt-dialog header h3 { margin: 0; }
.rt-dialog header button { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--et-line, #E4E9F2); border-radius: 8px; background: #fff; color: var(--et-primary, #2A3B6E); font-size: 24px; cursor: pointer; }
.rt-dialog p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.rt-dialog .rt-muted, .rt-dialog .rt-notice { margin: 0; }
.rt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rt-dialog fieldset { min-width: 0; padding: 12px; border: 1px solid var(--et-line, #E4E9F2); border-radius: 8px; }
.rt-dialog legend { width: auto; padding: 0 4px; margin: 0; font-size: 12px; font-weight: 600; }
.rt-days { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-days label { flex-direction: row; align-items: center; min-height: 40px; padding: 8px; background: var(--et-surface-2, #F9FAFD); border-radius: 8px; cursor: pointer; }
.rt-days input { width: 16px; height: 16px; accent-color: var(--et-primary, #2A3B6E); }
.rt-dialog .rt-error { color: var(--et-danger, #E0445B); font-size: 13px; }
.rt-dialog .rt-error:empty { display: none; }
.rt-dialog footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--et-line, #E4E9F2); }
@media (max-width: 600px) {
  .rt-page > section { padding: 12px; }
  .rt-card { padding: 16px; }
  .rt-table th, .rt-table td { padding: 8px 4px; }
  .rt-page .rt-table table { table-layout: fixed; min-width: 0 !important; }
  .rt-page .rt-table table th, .rt-page .rt-table table td { position: static !important; min-width: 0 !important; white-space: normal !important; overflow-wrap: anywhere; }
  .rt-table th:first-child { width: 25%; }
  .rt-table .btn { padding: 6px 4px; }
  .rt-pager { justify-content: space-between; gap: 8px; }
  dialog.rt-dialog { padding: 16px; }
  .rt-dialog footer .btn { flex: 1 1 140px; }
}
