.ne-nbs-viewer { display: inline; }
.ne-nbs-launch { margin: .25rem; background: #303641 !important; border-color: #303641 !important; white-space: nowrap; }
.ne-nbs-backdrop { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; background: rgba(20, 28, 42, .62); text-align: left; color: #303641; font: 14px/1.5 Arial, sans-serif; cursor: default; }
.ne-nbs-dialog { width: 1380px; max-width: 100%; height: 94vh; display: flex; flex-direction: column; border-radius: 8px; background: #fff; box-shadow: 0 18px 70px #0005; overflow: hidden; }
.ne-nbs-dialog *, .ne-nbs-dialog *::before, .ne-nbs-dialog *::after { box-sizing: border-box; }
.ne-nbs-dialog h2, .ne-nbs-dialog h3, .ne-nbs-dialog p { margin: 0 0 .65rem; line-height: 1.45; }
.ne-nbs-dialog h2 { font-size: 21px; font-weight: 600; }
.ne-nbs-dialog h3 { font-size: 16px; font-weight: 600; }
.ne-nbs-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 22px; border-bottom: 1px solid #e5e8ee; flex-shrink: 0; background: #f9fafc; }
.ne-nbs-dialog-header h2 { margin: 0; }
.ne-nbs-readonly { display: inline-block; margin-top: 4px; border-radius: 20px; padding: 2px 10px; background: #e8f5ef; color: #246547; font-size: 12px; font-weight: 600; }
.ne-nbs-dialog-body { padding: 20px 24px 30px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.ne-nbs-context { color: #637087; overflow-wrap: anywhere; }
.ne-nbs-error { padding: 12px 16px; background: #fff0f0; color: #8e2626; border-left: 4px solid #bb4040; border-radius: 4px; margin-bottom: 14px; }
.ne-nbs-duplicate-note { padding: 12px 16px; background: #fff8e8; border-left: 4px solid #e6a23c; color: #765416; border-radius: 4px; }
.ne-nbs-contract-select { display: flex; flex-direction: column; gap: 5px; max-width: 850px; margin: 15px 0 8px; }
.ne-nbs-contract-select label { font-weight: 600; }
.ne-nbs-contract-select select { width: 100%; padding: 11px 12px; border: 1px solid #bdc5d2; background: #fff; color: #303641; font: inherit; border-radius: 4px; }
.ne-nbs-contract-summary { font-size: 13px; color: #637087; }
.ne-nbs-button, .ne-nbs-tab, .ne-nbs-student-tab { font: inherit; cursor: pointer; border: 1px solid #cbd2dd; border-radius: 4px; padding: 8px 14px; background: #fff; color: #303641; line-height: 1.4; }
.ne-nbs-button:hover, .ne-nbs-tab:hover, .ne-nbs-student-tab:hover { background: #f1f5fa; }
.ne-nbs-dialog button:focus-visible, .ne-nbs-dialog select:focus-visible { outline: 3px solid #4f84d8; outline-offset: 2px; }
.ne-nbs-dialog button:disabled { opacity: .55; cursor: wait; }
.ne-nbs-student-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 0; margin-bottom: 12px; border-bottom: 1px solid #d9dfe8; }
.ne-nbs-student-tab { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ne-nbs-student-tab small { font-size: 11px; font-weight: 400; border-radius: 12px; background: #edf0f5; padding: 2px 7px; }
.ne-nbs-student-tab.is-active { background: #303641; color: #fff; border-color: #303641; }
.ne-nbs-student-tab.is-active small { color: #303641; }
.ne-nbs-profile { border: 1px solid #e4e8ee; border-radius: 5px; overflow: hidden; }
.ne-nbs-profile-header { display: flex; align-items: center; gap: 20px; padding: 25px; background: #f7f9fc; }
.ne-nbs-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 78px; width: 78px; height: 78px; border-radius: 50%; background: #3872ad; color: #fff; font-size: 36px; }
.ne-nbs-person { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ne-nbs-person p { margin-bottom: 3px; color: #566479; }
.ne-nbs-validity { min-width: 180px; display: flex; flex-direction: column; padding: 15px 18px; border-left: 3px solid #366ba5; background: #eaf0f8; border-radius: 3px; }
.ne-nbs-validity strong { font-size: 17px; }
.ne-nbs-validity small { color: #66758a; }
.ne-nbs-progress { display: flex; flex-wrap: wrap; gap: 10px 25px; padding: 12px 25px; border-top: 1px solid #e7ebf0; border-bottom: 1px solid #e7ebf0; }
.ne-nbs-progress small { margin-left: auto; color: #68768b; }
.ne-nbs-tabs, .ne-nbs-subtabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 12px 20px 0; border-bottom: 1px solid #dce1e9; }
.ne-nbs-tab { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 11px 14px; }
.ne-nbs-tab.is-active { border-bottom-color: #337ab7; color: #245783; background: #f1f6fc; font-weight: 600; }
.ne-nbs-subtabs { padding: 0; margin: 24px 0 12px; }
.ne-nbs-profile-content { padding: 22px; }
.ne-nbs-profile-content > div > section { margin: 20px 0; }
.ne-nbs-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ne-nbs-metric { display: flex; flex-direction: column; border: 1px solid #e0e6ef; border-top: 3px solid #397eb6; padding: 14px 12px; border-radius: 4px; background: #fafcfe; }
.ne-nbs-metric strong { font-size: 22px; font-weight: 600; }
.ne-nbs-metric span { color: #68768b; font-size: 12px; }
.ne-nbs-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.ne-nbs-skill { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid #e4e8ef; border-radius: 4px; }
.ne-nbs-skill small { color: #68768b; }
.ne-nbs-skill-track { height: 7px; background: #e8eef5; border-radius: 7px; overflow: hidden; margin: 5px 0; }
.ne-nbs-skill-track span { display: block; height: 100%; background: #4b90bc; }
.ne-nbs-ranking { background: #f6f8fc; border: 1px solid #e3e9f2; border-radius: 4px; padding: 16px; }
.ne-nbs-note { display: block; color: #68768b; font-size: 12px; }
.ne-nbs-empty { color: #68768b; padding: 16px 0; }
.ne-nbs-table-scroll { overflow-x: auto; width: 100%; margin-bottom: 14px; }
.ne-nbs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ne-nbs-table th, .ne-nbs-table td { border: 1px solid #e0e5ed; padding: 9px 10px; vertical-align: top; text-align: left; white-space: normal; min-width: 85px; overflow-wrap: anywhere; }
.ne-nbs-table th { background: #f2f5f9; color: #43536a; font-weight: 600; }
.ne-nbs-table tbody tr:nth-child(even) { background: #fafbfd; }
.ne-nbs-table td:last-child { min-width: 130px; }
.ne-nbs-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.ne-nbs-fields > div { padding: 13px 0; border-bottom: 1px solid #e6eaf1; min-width: 0; }
.ne-nbs-fields dt { font-size: 12px; color: #6a778b; font-weight: 600; margin-bottom: 4px; }
.ne-nbs-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ne-nbs-timeline { list-style: none; padding: 0; margin: 0 0 18px; }
.ne-nbs-timeline > li { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 18px; margin-bottom: 16px; }
.ne-nbs-timeline-time { display: flex; flex-direction: column; color: #68768b; font-size: 12px; padding-top: 12px; }
.ne-nbs-timeline-event { border-left: 4px solid #4f85bb; padding: 13px 17px; background: #f3f7fc; border-radius: 3px; }
.ne-nbs-timeline-event h3 { margin: 0 0 4px; }
.ne-nbs-timeline-event strong { font-size: 12px; color: #6b7c91; }
.ne-nbs-timeline-event p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .ne-nbs-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ne-nbs-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ne-nbs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .ne-nbs-backdrop { padding: 0; }
  .ne-nbs-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ne-nbs-dialog-header { padding: 12px; }
  .ne-nbs-dialog-header h2 { font-size: 17px; }
  .ne-nbs-dialog-body { padding: 14px 10px 24px; }
  .ne-nbs-profile-header { flex-wrap: wrap; padding: 16px 12px; gap: 12px; }
  .ne-nbs-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 25px; }
  .ne-nbs-person h2 { font-size: 18px; }
  .ne-nbs-validity { width: 100%; }
  .ne-nbs-progress { padding: 10px 12px; }
  .ne-nbs-progress small { width: 100%; margin: 0; }
  .ne-nbs-tabs { padding: 5px 5px 0; }
  .ne-nbs-tab { padding: 9px 10px; font-size: 12px; }
  .ne-nbs-student-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .ne-nbs-student-tab { min-width: 185px; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
  .ne-nbs-profile-content { padding: 14px 10px; }
  .ne-nbs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ne-nbs-metric strong { font-size: 18px; }
  .ne-nbs-fields { grid-template-columns: 1fr; }
  .ne-nbs-timeline > li { grid-template-columns: 1fr; gap: 5px; }
  .ne-nbs-timeline-time { padding: 0; }
  .ne-nbs-table-scroll { overflow: visible; }
  .ne-nbs-table thead { display: none; }
  .ne-nbs-table tr { display: block; border: 1px solid #dbe2ed; border-radius: 4px; margin-bottom: 12px; }
  .ne-nbs-table td { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr); gap: 10px; border: 0; border-bottom: 1px solid #edf0f5; min-width: 0; padding: 7px 10px; }
  .ne-nbs-table td::before { content: attr(data-label); color: #68768b; font-weight: 600; }
}

.ne-nbs-page { min-width: 0; color: #303641; font: 14px/1.5 Arial, sans-serif; text-align: left; background: #fff; border: 1px solid #e2e6ee; border-radius: 8px; }
.ne-nbs-page *, .ne-nbs-page *::before, .ne-nbs-page *::after { box-sizing: border-box; }
.ne-nbs-page h1, .ne-nbs-page h2, .ne-nbs-page h3, .ne-nbs-page p { margin: 0 0 .65rem; line-height: 1.45; }
.ne-nbs-page h1 { font-size: 21px; font-weight: 600; margin: 0; }
.ne-nbs-page h2 { font-size: 21px; font-weight: 600; }
.ne-nbs-page h3 { font-size: 16px; font-weight: 600; }
.ne-nbs-page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 22px; border-bottom: 1px solid #e5e8ee; background: #f9fafc; border-radius: 8px 8px 0 0; }
.ne-nbs-page .ne-nbs-dialog-body { overflow: visible; }
.ne-nbs-return { flex: 0 0 auto; }
.collection-actions-grid .ne-nbs-nav-button { margin: 0; width: 100%; min-height: 32px; }
@media (max-width: 650px) { .ne-nbs-page-header { padding: 12px; align-items: flex-start; flex-wrap: wrap; } .ne-nbs-page h1 { font-size: 19px; } .ne-nbs-page h2 { font-size: 18px; } }

/* NBS3 schedule: its original FullCalendar styling, within the Core student profile. */
.ne-schedule { min-width:0; }
.ne-schedule-actions,.ne-schedule-legends,.ne-schedule-dates,.ne-schedule-filter { display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0; }
.ne-schedule-mode { font-size:16px;padding:10px 16px;border-radius:4px;border:1px solid transparent;color:white; }
.ne-schedule-mode.btn-primary { background:#337ab7;color:#fff; }
.ne-schedule-mode.btn-success { background:#5cb85c;color:#fff; }
.ne-schedule-mode.btn-info { background:#5bc0de;color:#fff; }
.ne-schedule-mode.is-selected { outline:3px solid #9cb4d0;outline-offset:2px; }
.ne-schedule-zone { margin-left:12px;font-size:12px;color:#68768b; }
.ne-schedule-filter select { max-width:430px;min-width:180px;padding:8px; }
.ne-schedule-legend { display:inline-block;padding:6px 10px;border-radius:4px;color:#fff; }
.ne-schedule-legend.is-reserved { background:black; }
.ne-schedule-legend.is-full { background:red; }
.ne-schedule-legend.is-group { border:3px solid #111;color:#111;background:#fff; }
.ne-nbs-schedule-calendar .fc-event.sesion-grupal { border-width:3px!important;box-shadow:0 0 0 2px rgba(0,0,0,.65)!important; }
.ne-nbs-schedule-calendar .fc-event { cursor:pointer; }
.ne-nbs-schedule-calendar .ne-schedule-cupo { float:right;background:#fff;color:#333;padding:1px 4px;border-radius:8px;font-size:10px; }
.ne-nbs-schedule-calendar .fc-toolbar h2 { font-size:20px;margin:0; }
.ne-schedule-detail { margin-top:14px;padding:16px;border:1px solid #cbd2dd;border-radius:4px;background:#fafcfe; }
.ne-schedule-detail-head { display:flex;justify-content:space-between;gap:8px;align-items:center; }
.ne-schedule-reservation-summary { margin-top:16px; }
.ne-schedule-reservation-row { display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:8px;width:100%;text-align:left;border:1px solid #e1e5ea;background:#fff;padding:8px;margin-top:4px; }
@media(max-width:767px){.ne-schedule-mode{font-size:14px;padding:8px 10px}.ne-schedule-zone{display:block;margin:4px 0}.ne-nbs-schedule-calendar{overflow-x:auto}.ne-nbs-schedule-calendar .fc-toolbar .fc-left,.ne-nbs-schedule-calendar .fc-toolbar .fc-right{float:none;display:inline-block;margin-bottom:5px}.ne-nbs-schedule-calendar .fc-toolbar h2{font-size:16px}.ne-schedule-reservation-row{grid-template-columns:1fr 1fr}}

/* Prevent Core's other FullCalendar/theme rules from restyling the native NBS3 toolbar. */
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar { display:block!important; text-align:center!important; }
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-left { float:left!important; display:block!important; }
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-right { float:right!important; display:block!important; }
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-center { display:inline-block!important; float:none!important; }
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-state-default {
  background-color:#f5f5f5!important; background-image:linear-gradient(to bottom,#fff,#e6e6e6)!important;
  background-repeat:repeat-x!important; border:1px solid rgba(0,0,0,.1)!important; border-bottom-color:rgba(0,0,0,.25)!important;
  color:#333!important; text-shadow:0 1px 1px rgba(255,255,255,.75)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)!important;
}
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-state-hover { background-position:0 -15px!important; }
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-state-active,.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-state-down {background-color:#ccc!important;background-image:none!important;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)!important;}
.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-state-disabled {background-image:none!important;opacity:.65!important;box-shadow:none!important;cursor:default!important;}
@media(max-width:767px){
 .ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-left,.ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-right{float:none!important;display:inline-block!important;}
 .ne-schedule .ne-nbs-schedule-calendar .fc-toolbar .fc-center{display:block!important;clear:both;}
}

/* Mis reservas: native NBS3 table, read-only in Core. */
.ne-reservas-filtros{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}
.ne-reservas-filter{min-width:120px;border:1px solid #ccc;background:#fff;color:#333;padding:7px 10px;border-radius:3px}
.ne-reservas-filter.is-active{background:#337ab7;border-color:#2e6da4;color:#fff}
.ne-reservas-panel{border:1px solid #ddd;border-radius:4px;background:#fff}
.ne-reservas-panel-heading{background:#f5f5f5;border-bottom:1px solid #ddd;padding:10px 15px;font-weight:600;color:#333}
.ne-reservas-panel-body{padding:15px}
.ne-reservas-responsive{overflow-x:auto}
.ne-reservas-table{width:100%;border-collapse:collapse;margin:0;font-size:13px}
.ne-reservas-table th,.ne-reservas-table td{padding:8px;border:1px solid #ddd;text-align:left;vertical-align:middle}
.ne-reservas-table th{background:#f5f5f5;font-weight:600;white-space:nowrap}
.ne-reservas-table tbody tr:nth-child(odd){background:#f9f9f9}
.ne-reservas-table .ne-reservas-badge,.ne-reservas-ver{display:inline-block;padding:3px 6px;border-radius:3px;font-size:12px;line-height:1.4;white-space:nowrap}
.ne-reservas-badge.success{background:#5cb85c;color:#fff}.ne-reservas-badge.danger{background:#d9534f;color:#fff}
.ne-reservas-badge.warning{background:#f0ad4e;color:#fff}.ne-reservas-badge.primary{background:#337ab7;color:#fff}
.ne-reservas-badge.default{background:#eee;color:#333;border:1px solid #ddd}
.ne-reservas-ver{background:#5bc0de;color:#fff;border:1px solid #46b8da;cursor:pointer}
.ne-reservas-empty{padding:12px;text-align:center;color:#777;font-weight:400}
.ne-reservas-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:14px}
@media(max-width:767px){
 .ne-reservas-responsive{overflow-x:visible}.ne-reservas-filter{flex:1 1 calc(50% - 8px);min-width:0}
 .ne-reservas-table thead{display:none}.ne-reservas-table,.ne-reservas-table tbody,.ne-reservas-table tr{display:block;width:100%}
 .ne-reservas-table tr{border:1px solid #d9d9d9;border-radius:6px;background:#fff!important;margin-bottom:12px;padding:8px 10px}
 .ne-reservas-table>tbody>tr>td{display:block!important;width:100%!important;box-sizing:border-box;border:0!important;border-bottom:1px solid #efefef!important;text-align:left;padding:10px 10px 10px 48%!important;min-height:44px;position:relative;white-space:normal;word-break:break-word;font-size:15px;line-height:1.35;color:#4a4a4a}
 .ne-reservas-table>tbody>tr>td:last-child{border-bottom:0!important}
 .ne-reservas-table>tbody>tr>td:before{content:attr(data-label);position:absolute;left:10px;top:10px;width:44%;font-weight:700;font-size:14px;line-height:1.25;color:#2b2b2b;white-space:normal}
 .ne-reservas-table>tbody>tr>td.reserva-actions{padding:10px!important}.ne-reservas-table>tbody>tr>td.reserva-actions:before{position:static;display:block;width:100%;margin-bottom:8px}
 .ne-reservas-ver{width:100%}
}

/* NBS3 campus filter: do not depend on Core's Bootstrap button classes. */
.ne-schedule .ne-schedule-filter select {height:34px;padding:6px 12px;border:1px solid #ccc;border-radius:4px;background:#fff;color:#555;font-size:14px;line-height:20px;box-sizing:border-box}
.ne-schedule .ne-schedule-filter-button {display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:6px 12px;background:#337ab7;color:#fff;border:1px solid #2e6da4;border-radius:4px;font-size:14px;font-weight:400;line-height:20px;white-space:nowrap;cursor:pointer;box-sizing:border-box}
.ne-schedule .ne-schedule-filter-button:not(:disabled):hover,.ne-schedule .ne-schedule-filter-button:not(:disabled):focus {background:#286090;border-color:#204d74;color:#fff}
.ne-schedule .ne-schedule-filter-button:disabled {opacity:.65;cursor:not-allowed}

/* Icons for the eight main NBS3 profile tabs. */
.ne-nbs-tabs .ne-nbs-tab{display:inline-flex;align-items:center;gap:7px}
.ne-nbs-tabs .ne-nbs-tab-icon{font-size:15px;line-height:1;flex:none}
