/* Ajustes del backoffice sobre Metronic 8 Demo 6. Los componentes usan el tema nativo. */
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.bo-app { background: var(--bs-page-bg); }
.bo-aside { width: 100px; position: fixed; inset: 0 auto 0 0; z-index: 105; }
.bo-shell { margin-left: 100px; min-width: 0; }
.bo-header { background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); padding: 24px 32px; }
.bo-heading { flex: 1 1 220px; min-width: 0; }
#userName { overflow-wrap: anywhere; }
.course-switch { width: 360px; max-width: 100%; min-width: 0; }
.bo-content { max-width: 1540px; margin: auto; padding: 28px 32px 40px; }
.kpi-value { font-size: 2.5rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .85rem; color: var(--bs-gray-600); margin-top: .35rem; overflow-wrap: anywhere; }
.bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.bar-row .label { width: 90px; color: var(--bs-gray-600); }
.bar-row .progress { flex: 1; }
.bar-row .count { width: 40px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bo-table { min-width: 900px; }
.bo-table td:first-child { min-width: 190px; }
.bo-table .progress { min-width: 90px; }
.bo-table td:last-child { padding-right: 0; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--bs-primary); }
.empty { color: var(--bs-gray-600); text-align: center; padding: 2rem 0 !important; }
dl.ficha dt { font-size: .9rem; font-weight: 500; color: var(--bs-gray-600); margin-bottom: .5rem; }
dl.ficha dd { margin-bottom: 1.25rem; font-weight: 500; overflow-wrap: anywhere; }
.personal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.personal-grid dd { margin-bottom: 0; }
.stat-panel { height: 100%; padding: 1.5rem; background: var(--bs-gray-100); border-radius: var(--bs-border-radius); }
.stat-panel h3 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.stat-panel dl, .stat-panel dd:last-child { margin-bottom: 0; }
.daily-chart { position: relative; height: 340px; }
.daily-chart canvas { max-width: 100%; }
.daily-chart.is-navigable canvas { cursor: grab; touch-action: pan-y !important; }
.daily-chart.is-navigable canvas:active { cursor: grabbing; }
.daily-range-picker .drp-selected { white-space: normal; }
.series-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .5rem; }
.user-topics table { min-width: 760px; }
.user-topics td:first-child { min-width: 16rem; }
.bo-login { min-height: 100vh; background: var(--bs-body-bg); }
.bo-login-form { width: 100%; max-width: 440px; }
.bo-login-art { background: #eef4ff; }
.bo-login-art img { width: 100%; max-width: 450px; height: auto; }
:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 3px; }
@media (min-width: 576px) {
  .personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .personal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .bo-aside { transform: translateX(-100%); visibility: hidden; }
  .bo-aside.drawer-on { transform: translateX(0); visibility: visible; }
  .bo-shell { margin-left: 0; }
  .bo-header { padding: 20px; }
  .bo-content { padding: 24px 20px; }
}
@media (max-width: 575.98px) {
  .bo-header { padding: 16px; }
  .bo-content { padding: 20px 16px; }
  .daily-chart { height: 280px; }
  #dailyRange { width: 100%; white-space: normal; }
  .daily-range-picker { position: fixed; top: 10vh !important; left: 12px !important; right: 12px !important; width: auto; max-height: 80vh; overflow-y: auto; }
  .daily-range-picker .ranges, .daily-range-picker .drp-calendar { float: none; width: 100%; max-width: none; }
  .daily-range-picker .ranges ul { width: 100%; display: flex; flex-wrap: wrap; }
  .daily-range-picker .ranges li { flex: 1 1 50%; }
  .daily-range-picker.show-ranges .drp-calendar.left { border-left: 0; }
  .daily-range-picker .drp-buttons { white-space: normal; }
}
