/* ------------------ */
/*  	GENERAL		  */
/* ------------------ */
@charset 'UTF-8';

[ng-cloak] { display: none; }

@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Italic-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

html,
body,
body *:not([class^="icon-"]):not([class*=" icon-"]):not(pre):not(code):not(kbd):not(samp) {
	font-family: "Albert Sans", sans-serif !important;
}

body {
	outline: none !important;
	background: white;
	font-size: 10pt;
	font-family: "Albert Sans", sans-serif;
	background: #d5daed;
	margin: 0;
	padding: 0;
	color: #6b6d77;
}

a {
	text-decoration: none;
}

.a_document {
	color: #666 !important;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0em 0.3em;
}

em {
	padding-bottom: 1em;
}

input:not([type="checkbox"]):not([type="radio"]), select {
	background: #ffffff;
	width: 100%;
	margin: 0.2em 0 0.85em 0;
	padding: 0 0.9em;
	height: 2.3em;
	border: 1px solid #9fc5cf;
	border-radius: 8px;
	text-align: left;
	text-indent: 0;
	color: #003b4c;
	font-family: "Albert Sans", sans-serif;
	font-size: 10pt;
	outline: 0;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not(:disabled):hover,
select:not(:disabled):hover,
textarea:not(:disabled):hover {
	border-color: #59b6b1;
	box-shadow: 0 0 0 3px rgba(89, 182, 177, 0.14);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
	border-color: #59b6b1;
	box-shadow: 0 0 0 3px rgba(89, 182, 177, 0.2);
	background: #ffffff;
}


input[type="text"]:disabled {
	background: #f1f5f7;
    color: #8b9aa3;
	border-color: #cbd8de;
    transition: 0.25s;
    cursor: not-allowed;
}

input[type="password"]:disabled {
	background: #f1f5f7;
    color: #8b9aa3;
	border-color: #cbd8de;
    transition: 0.25s;
    cursor: not-allowed;
}

input[type="date"]:disabled {
	background: #f1f5f7;
    color: #8b9aa3;
	border-color: #cbd8de;
    transition: 0.25s;
    cursor: not-allowed;
}


select:disabled {
	background: #f1f5f7;
    color: #8b9aa3;
	border-color: #cbd8de;
    transition: 0.25s;
    cursor: not-allowed;
}

label:has(+ input:required)::after,
label:has(+ select:required)::after,
label:has(+ textarea:required)::after,
label:has(+ .du-auto-wrap:has(input:required))::after {
    content: "*";
    color: #e11d48;
    font-weight: bold;
	font-size: inherit;
	line-height: inherit;
	margin-left: 3px;
	vertical-align: baseline;
}

#home-slider {
	width:100%;
	height:425px;
	border-radius: 5px;
	cursor: pointer
}

.big-filter {
	width: 210px;
}

.small-filter {
	width: 152px;
}

.dropdown-check-list {
  display: inline-block;
}

.dropdown-check-list .anchor {
  position: relative;
  display: inline-block;
  margin: 0.25em 0.25em;
  padding-top: 0.5em;
  height: 1.55em;
  border: 1px solid #003b4c;
  text-indent: 1.2em;
  color: #003b4c;
  font-family: "Albert Sans", sans-serif;
  font-size: 10pt;
  border-radius: 5px;
}

.dropdown-check-list .anchor:after {
  position: absolute;
  content: "";
  border-left: 1px solid #666;
  border-top: 1px solid #666;
  padding: 2.2px;
  right: 5px;
  top: 38%;
  -moz-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.dropdown-check-list ul.items {
  margin: -4px 0 0 5px;
  position: absolute;
  font-size: 10pt;
  min-width: 200px;
  padding-bottom: 5px;
  padding-right: 5px;
  border-top: none;
  font-family: "Albert Sans", sans-serif;
  color: #003b4c;
  border-radius: 5px;
  text-indent: 0.5em;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(133, 133, 133);
  background: white;
}

.dropdown-check-list ul.items li {
  list-style: none;
  height: 1.5em;
  padding-bottom: 2px;
}

.dropdown-check-list ul.items li:hover {
  list-style: none;
  background: #1E90FF;
  color: white;
  cursor: default;
}

.dropdown-check-list.no-visible .items {
  display: none;
}

input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    width: 12px;
    height: 12px;
    margin: -2px 6px 0 0;
    padding: 0;
    text-indent: 0;
    border: 1px solid #9ca3af;
    box-shadow: none;
    vertical-align: middle;
    accent-color: #59b6b1;
}

textarea {
	width: 98.5%;
	border: 1px solid #9fc5cf;
	margin: 0.45em 0 0.85em 0;
	height: 12em;
	padding: 0.75em 0.9em;
	resize: none;
	border-radius: 8px;
	color: #003b4c;
	font-family: "Albert Sans", sans-serif;
	font-size: 10pt;
	outline: 0;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea[maxlength="140"] {
	height: 4.6em;
}

textarea[maxlength="500"] {
	height: 9.2em !important;
}

textarea[maxlength="1000"] {
	height: 9.2em !important;
}

.small-textarea {
	height: 6em !important;
}

.smaller-textarea {
	height: 3em !important;
}

button {
	font-family: "Albert Sans", sans-serif;
	border: none;
}

button:disabled {
	background: #d1d5db !important;
    color: #7b8790 !important;
    border: 2px solid #d1d5db !important;
    transition: 0.25s !important;
    cursor: not-allowed !important;
	box-shadow: none !important;
}

.doc-buttons{
    display:flex;
    align-items:center;
}

label {
	margin-top: 0.75em;
	margin-bottom: 0.25em;
	font-weight: 700;
	font-size: 9pt;
	line-height: 1.2;
	color: #41566b;
	display: inline-block;
}

/* Label apoyado en el borde superior del control */
label:has(+ :is(input, select, textarea, .dudu-input-with-icon, .lectionary-date-field, .du-auto-wrap)) {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	display: inline-block;
	width: fit-content;
	max-width: calc(100% - 1.6em);
	margin: 0.7em 0 -0.5em 0.7em;
	padding: 0 0.35em;
	background: #fff;
	color: #7d8d98;
	font-size: 8pt;
	font-weight: 600;
	line-height: 1;
	vertical-align: top;
	pointer-events: none;
}

label:has(+ input:is([type="hidden"], [type="checkbox"], [type="radio"], [type="button"], [type="file"], [type="submit"])) {
	position: static;
	z-index: auto;
	align-self: auto;
	width: auto;
	max-width: none;
	margin: 0.75em 0 0.25em;
	padding: 0;
	background: transparent;
	color: #41566b;
	font-size: 9pt;
	font-weight: 700;
	line-height: 1.2;
	pointer-events: auto;
}

label:has(+ :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="file"]):not([type="submit"]), select, textarea)) + :is(input, select, textarea),
label:has(+ .du-auto-wrap) + .du-auto-wrap {
	margin-top: 0;
}

label:has(+ :is(input:focus, select:focus, textarea:focus, .dudu-input-with-icon:focus-within, .lectionary-date-field:focus-within, .du-auto-wrap:focus-within)) {
	color: #2f7f7a;
}

label:has(+ :is(input:disabled, select:disabled, textarea:disabled)) {
	color: #a3b0b8;
}

.center_label {
	text-align: center;
}

img {
	width: 100%;
}

.small-img {
	width: 50% !important;
	border-radius: 5px !important;
}

.small-img.student-avatar-edit {
	width: 50% !important;
	aspect-ratio: 1 / 1;
	height: auto !important;
	object-fit: cover;
	object-position: center;
	cursor: pointer;
}

.medium-img {
	width: 75% !important;
	border-radius: 5px !important;
}

.large-img {
	width: 100% !important;
	border-radius: 5px !important;
}

hr {
	width: 99.5%;
    margin: 0.5em 0.3em;
	border: 0;
	height: 1px;
	background: linear-gradient(to right, #003b4c, #59b6b1);
	border-radius: 3px;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
}

p {
	margin-top: 0;
}

.dudu-legend-row{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:0.4em;
	margin:0.15em 0 0.9em;
}
.dudu-legend-row .dudu-estado-badge{
	display:inline-flex;
	align-items:center;
	gap:0.35em;
	white-space:normal;
	max-width:100%;
}
.dudu-legend-row .dudu-estado-badge i{
	font-size:1.05em;
	line-height:1;
}
.dudu-grid{
	display:flex;
	flex-direction:column;
	align-items:stretch;
	margin:0.15em 0 1em;
	background:transparent;
	border:0;
	overflow:visible;
	box-shadow:none;
}
.dudu-grid-head{
	position:relative;
	right:auto;
	top:auto;
	transform:none;
	align-self:flex-end;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:0.75em;
	box-sizing:border-box;
	width:max-content;
	min-width:33.333%;
	max-width:100%;
	margin:0 0 -1px;
	padding:0.45em 0.85em;
	border:1px solid #dbe8ec;
	border-bottom-color:#fff;
	border-radius:10px 10px 0 0;
	background:linear-gradient(90deg, rgba(15, 143, 135, 0.12) 0%, rgba(89, 182, 177, 0.05) 72%, #fff 100%);
	white-space:nowrap;
	z-index:1;
}
.dudu-grid-actions{
	display:flex;
	align-items:center;
	gap:0.4em;
	flex:0 0 auto;
}
.dudu-grid .overx{
	background:#fff;
	border:1px solid #dbe8ec;
	border-radius:12px 0 12px 12px;
	box-shadow:0 8px 18px rgba(0, 59, 76, 0.06);
	overflow:auto;
}
.dudu-grid .tabla{
	margin:0;
	border:0;
	border-radius:0;
	box-shadow:none;
}
.dudu-grid thead th{
	background:linear-gradient(180deg, rgba(89, 182, 177, 0.09) 0%, rgba(15, 143, 135, 0.027) 100%);
}
.dudu-grid-head h2,
.dudu-grid-head h3,
.dudu-grid-head h4,
.dudu-grid-head h5{
	display:inline-flex;
	align-items:center;
	gap:0.4em;
	margin:0;
	font-size:1.05em;
	line-height:1.2;
	color:#003b4c;
	min-width:0;
}
.dudu-grid-head h2 i,
.dudu-grid-head h3 i,
.dudu-grid-head h4 i,
.dudu-grid-head h5 i{
	color:#59b6b1;
	font-size:1.05em;
	line-height:1;
}
.dudu-grid-head .btn{
	margin:0;
	padding:0.4em 0.95em;
	border-radius:999px;
	font-size:0.88em;
	line-height:1.2;
	white-space:nowrap;
}
.dudu-grid-note{
	margin:0 0 0.45em;
}
.dudu-legend-extras p {
	margin-bottom: 0.5em;
}

.dudu-legend-extras p:last-child {
	margin-bottom: 1em;
}

table {
	font-size: 10pt;
	border-collapse: separate;
  	border-spacing: 0;
  	width: 100%;
  	margin: 1em 0;
	background: white;
	border: 1px solid #dbe8ec;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(0, 59, 76, 0.06);
}

.tabla_lateral {
	font-size: 10pt;
	border-collapse: separate;
  	border-spacing: 0;
  	width: 100%;
  	margin: 1em 0;
	background: white;
	border: 1px solid #dbe8ec;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 14px rgba(0, 59, 76, 0.05);
}

.tabla_lateral .icon_lateral {
	font-size: 0.62em;
	color: #59b6b1;
}

table tbody tr {
	border-bottom: 1px solid #e7eef2;
	transition: none;
	animation: none;
}

table tbody tr:hover {
	background: rgba(89, 182, 177, 0.12);
	border-bottom: 1px solid rgba(89, 182, 177, 0.45);
	box-shadow: inset 3px 0 0 #59b6b1;
}

table tbody tr.ng-enter,
table tbody tr.ng-enter-active,
table tbody tr.ng-leave,
table tbody tr.ng-leave-active,
table tbody tr.ng-move,
table tbody tr.ng-move-active,
table tbody tr.ng-animate {
	transition: none !important;
	animation: none !important;
	transform: none !important;
}

table tbody tr.ng-leave,
table tbody tr.ng-leave-active {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

thead th {
	border-bottom: 2px solid #0f8f87;
	font-size: 10pt;
	font-weight: 800;
	color: #003b4c;
	background: #ffffff;
	letter-spacing: 0.01em;
}

tbody .btn {
	padding: 0.35em 0.40em;
	margin: 0;
	border-radius: 5px;
	border: 2px solid transparent;
	box-shadow: 0 4px 10px rgba(0, 59, 76, 0.08);
	display: inline-block;
	white-space: nowrap;
	vertical-align: middle;
}

th, td {
  	text-align: left;
  	padding: 0.78em 0.75em;
	border-bottom: 1px solid #e7eef2;
	color: #41566b;
	vertical-align: middle;
}

td > a {
	color: #00796f;
	text-decoration: none;
	font-weight: 700;
}

tbody tr:nth-child(even) {
	background-color: rgba(213, 218, 237, 0.42);
}

.tr_complaint td {
	padding-bottom: 20px !important;
}

.detail_name {
	position: absolute;
	font-weight: bold;
	font-size: 0.9em;
}

.special-padding td {
	padding: 0.30em !important;
}

fieldset {
	border: none;
	margin-left: -8px;
	width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #59b6b1;
}

::-webkit-scrollbar-thumb {
  background: #003b4c;
}

.hide {
    display: none;
}

.minimal {
	font-size: 0.8em;
}

.maximal {
	font-size: 2em;
}

.bold {
	font-weight: bold;
}

.center {
	display: flex;
	justify-content: center;
	text-align: center; 
}

.center-text {
	text-align: center; 
}

.space-between {
	display: flex;
	justify-content: space-between;
}

.column {
	display: flex;
	flex-direction: column;
}

.row {
	display: flex;
	flex-direction: row;
}

.height-max {
	max-height: 75vh;
	overflow: auto;
}

.pointer {
	cursor: pointer;
}

.input-error {
	border: 2px solid #e24e42 !important;
	box-shadow: 0 0 0 3px rgba(226, 78, 66, 0.12) !important;
}

.icon-search {
	font-size: 1.1em;
	margin-top: 0;
	align-self: center;
	flex: 0 0 auto;
	line-height: 1.2;
}

/* Barra de búsqueda de listados – mismo porte que dudu-page-header-filters */
.row:has(> .icon-search) {
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
}
.row:has(> .icon-search) > input.inner,
.row:has(> .icon-search) > input[type="search"],
.row:has(> .icon-search) > input[type="number"] {
	width: auto;
	flex: 1 1 180px;
	min-width: 160px;
	max-width: 320px;
	height: 2.1em;
	margin: 0;
	padding: 0 0.75em;
}
.row:has(> .icon-search) > .btn {
	flex: 0 0 auto;
	margin: 0;
	height: 2.1em;
	padding: 0 1.25em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.contaniner_field_form {
	margin-top: 5px;
}

.field_add {
	width: 195px !important;
}

.max-character {
	text-align: right;
	margin-right: 8px;
}

.principal table {
  margin: 0em 0em 2em 0em;
}

.color-one {
  color: #59b6b1;
  font-weight: bold;
  border-bottom: 3px solid #59b6b1;
}

.color-two {
  color: #e11d48;
  font-weight: bold;
  border-bottom: 3px solid #e11d48;
}

.color-three {
  color: #003b4c;
  font-weight: bold;
  border-bottom: 3px solid #003b4c;
}

.textarea-agreement {
	height: 5em !important;
}

.profile-circle {
   width: 40px;
   height: 40px;
   border-radius: 50px; 
   margin: -3px 10px 0 0;
   object-fit: cover;
   object-position: center;
}

.broadcast-form {
	width: 100%;
    height: 300px;
    background: url('../images/broadcast/286e18ee6617beaf7cfd0cb74b4b7824.jpg') no-repeat;
    margin-top: 30px;
    border-radius: 5px;
}

.broadcast-list {
	width: 100px;;
    height: 70px;
    border-radius: 5px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.imagen-difuminada {
  filter: blur(5px);
  pointer-events: none;
}

.attendance-present {
	color: #16803c;
}

.attendance-absent {
	color: #c62828;
}

.attendance-late {
	color: #d97706;
}

.attendance-retired {
	color: #6d28d9;
}

.attendance-empty {
	color: #999;
}

/* ------------------ */
/*  	 HEADER		  */
/* ------------------ */
header {
	width: 100%;
	height: 3em;
	display: flex;
	color: #003b4c;
	background: white;
	flex-direction: row;
	position: fixed;
	top: 0;
	z-index: 2;
}

.perfil {
	margin: 0;
	padding: 0.4em;
	position: absolute;
	z-index: 2;
	background: #59b6b1;
	color: white;
}

.perfil i {
	font-size: 2em;
	padding: 0 0.5em;
}

.title {
	font-size: 1em;
}

.btn {
	padding: 0.6em 2em;
	margin: 1em auto;
	font-size: 0.8em;
	width: auto;
	border-radius: 25px;
	border: 3px solid transparent;
	cursor: pointer;
	outline: none !important;
}

.btn-pulse {
	animation: btn-pulse 0.8s infinite;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 59, 76, 1);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(0, 59, 76, 0);
    }
}

.plus {
	border-radius: 5px;
	border: 3px solid transparent;
	cursor: pointer;
	font-size: 1.5em;
	width: 24px;
	height: 21px;
	margin: 0.4em;
	padding: 2px 0 0 3px;
}

.icons {
	display: flex;
	justify-content: center;
	align-items: center;
	border: 3px solid transparent;
}

.icons i {
	font-size: 2.5em;
	margin: 0 0.25em;
	padding: 0.25em;
	height: 1em;
}

.phone-nav {
	padding: 0.6em;
	margin: 0;
	font-size: 1.25em;
	position: absolute;
	display: none;
	top: 0;
	right: 1.8em;
	z-index: 2;
}

.close {
	padding: 0.43em;
	margin: 0;
	font-size: 1.25em;
	position: absolute;
	border: 3px solid transparent;
	cursor: pointer;
	z-index: 2;
	top: 0;
	right: 0;
}

/* ------------------ */
/*  	 MAIN		  */
/* ------------------ */
main {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	overflow-y: auto;
	overflow-x: hidden;
}



.container, .container2 {
	/*margin: 0.2em 0em 0 0.2em;*/
	margin-left: var(--side-w);
	font-size: 0.8em;
}

/* Título / stacks / filas de página a ancho completo.
   Columnas .one/.two/.three quedan en la misma fila (no se bajan por márgenes). */
.container.row{
	flex-wrap:wrap;
	align-items:flex-start;
}
.container.row > section:has(> .dudu-page-title),
.container.row > .box:has(> .dudu-page-title),
.container.row > [role="form"]:has(.dudu-page-title),
.container.row > .sections-stack,
.container.row > .sections-row,
.container.row > .four,
.container.row > .box.four,
.container.row > section.four{
	/* .box tiene margin 0.5em L+R: 100% + márgenes desborda el container */
	flex:0 0 auto;
	width:calc(100% - 1em) !important;
	max-width:calc(100% - 1em);
	box-sizing:border-box;
	min-width:0;
}
.container.row > .sections-stack,
.container.row > .sections-row{
	/* stacks/rows no llevan margin de .box */
	flex:0 0 auto;
	width:100% !important;
	max-width:100%;
	min-width:0;
	box-sizing:border-box;
}
.container.row > .one,
.container.row > .box.one,
.container.row > section.one{
	flex:1 1 calc(25% - 1.25em);
	width:auto !important;
	max-width:calc(25% - 0.25em);
	box-sizing:border-box;
}
.container.row > .two,
.container.row > .box.two,
.container.row > section.two{
	flex:1 1 calc(50% - 1.25em);
	width:auto !important;
	max-width:calc(50% - 0.25em);
	box-sizing:border-box;
}
.container.row > .three,
.container.row > .box.three,
.container.row > section.three,
.container.row > [role="form"].three{
	flex:1 1 calc(75% - 1.25em);
	width:auto !important;
	max-width:calc(75% - 0.25em);
	box-sizing:border-box;
}

@media print {
  .container, .container2 {
	margin: 0.2em 0em 0 0.2em;
	font-size: 0.8em;
  }
}

.container2 {
	background: white;
	padding: 1em;
	font-size: 12px;
}

.wrap-container {
	display: flex;
	flex-wrap: wrap;
}

.sections-stack{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sections-row{
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: flex-start;
  box-sizing: border-box;
}

/* .four = 100% + margin .box (0.5em L+R) = desborde */
.sections-stack > .box,
.sections-stack > section.box,
.sections-stack > [role="form"].box{
  width: calc(100% - 1em) !important;
  max-width: calc(100% - 1em);
  min-width: 0;
  box-sizing: border-box;
}

.sections-stack > .sections-stack,
.sections-stack > .sections-row{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Título/filtros a ancho completo dentro de una fila de un solo hijo */
.sections-row > .box.four:only-child,
.sections-row > section.box.four:only-child,
.sections-row > section.four:only-child,
.sections-row > .four:only-child,
.sections-row > .box:only-child,
.sections-row > section.box:only-child{
  width: calc(100% - 1em) !important;
  max-width: calc(100% - 1em);
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

/* Columnas deliberadas 25/50/75 dentro de sections-row (p. ej. años académicos 50/50) */
.sections-row > .one,
.sections-row > .box.one,
.sections-row > section.one,
.sections-row > section.box.one{
  flex:1 1 calc(25% - 1.25em);
  width:auto !important;
  max-width:calc(25% - 0.25em);
  min-width:0;
  box-sizing:border-box;
}
.sections-row > .two,
.sections-row > .box.two,
.sections-row > section.two,
.sections-row > section.box.two{
  flex:1 1 calc(50% - 1.25em);
  width:auto !important;
  max-width:calc(50% - 0.25em);
  min-width:0;
  box-sizing:border-box;
}
.sections-row > .three,
.sections-row > .box.three,
.sections-row > section.three,
.sections-row > section.box.three,
.sections-row > [role="form"].three{
  flex:1 1 calc(75% - 1.25em);
  width:auto !important;
  max-width:calc(75% - 0.25em);
  min-width:0;
  box-sizing:border-box;
}

/* Listados (filtros + tabla) dentro de una fila horizontal: apilar a ancho completo */
.sections-row > .sections-stack{
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.box {
	background: white;
	border: 2px solid transparent;
	border-radius: 10px;
	padding: 0.5em 1em;
	margin: 0.5em;
	height: fit-content;
}

.box:not(:hover) {
	transition: 0.3s;
}

.box:hover {
	box-shadow: 1px 1px grey;
	transition: 0.3s;
}

.box-info {
	margin: 0 auto;
}

.circle {
	background-color: #e11d48;
    font-size: 10px !important;
    color: white;
    font: bold 15px/13px "Albert Sans", sans-serif;
    padding: 2px 2.2px 2px 2px;
    text-align: center;
    border-radius: 100%;
    min-width: 12px;
    cursor: pointer;
    display: inline-table;
	animation: pulse 0.8s infinite;
	z-index: 3;
}

.circle > i {
	font-size: 12px !important;
}

.circle-sub {
	background-color: #e11d48;
	font-size: 10px !important;
	color: white;
    font: bold 15px/13px "Albert Sans", sans-serif;
	padding: 2px;
	text-align: center;
	border-radius: 100%;
	min-width: 14px;
	height: 14px;
	margin: auto 0.1em;
	animation: pulse 0.8s infinite;
	z-index: 3;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 1);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(255, 99, 71, 0);
    }
}

.banner {
	width: 100%;
}

.line div {
   margin: 0 0.25em;
   text-align: center;
   padding: 0.25em;
   border-radius: 3px;
   cursor: pointer;
}

.pad-small {
	padding: 0em 0.25em 0em 0.25em;
	border-radius: 25px;
	border: 3px solid transparent;
	cursor: pointer;
}

.pad {
	padding: 0.5em;
	border-radius: 25px;
	border: 3px solid transparent;
	margin: 0 0.75em;
	cursor: pointer;
}

.inner {
	margin: 0.5em 0.3em;
}

.menulist {
	font-size: 1.25em;
}

.menulist i {
	font-size: 1.5em;
	margin-right: 0.5em;
}

.menulist li {
	margin: 0.5em 0;
	padding: 0.5em 0.5em 0.5em 0.6em;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.menulist li:hover {
	background: rgba(15, 71, 87, 0.9); /*#0f4757*/
    color: white;
	border-radius: 10px;
	border-left: 4px solid #59b6b1;
	transition: 0.5s;
}

.menulist li.active_sub_menu {
    background: rgba(15, 71, 87, 0.9); /*#0f4757*/
    color: white;
	border-radius: 10px;
	border-left: 4px solid #59b6b1;
}

.file {
	border: 2px solid #0f4757;
	background: white;
	border-radius: 25px;
	padding: 0.25em 1em;
	margin: 0.25em 0em;
	outline: none !important;
} 

.file:hover {
	background: #003b4c;
	color: white;
	border: 2px solid white;
	transition: 0.5s;
	cursor: pointer;
}

.scrolling {
	overflow: auto;
	overflow-x: hidden;
    max-height: 32vh;
}

.banner {
	width: 100%;
	border-radius: 5px;
	padding: 0.5em 0;
	border: 3px solid transparent;
}

.advance {
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-around;
	margin: 0 2em;
}

.advance-info {
	margin: 1em;
}

.advance-info .icons {
	margin: 0 1em;
	border-radius: 5px;
}

.notification-info {
	border-bottom: 1px solid grey;
	padding: 0.75em 0;
	font-size: 1em;
}

.notification-info:last-child {
	border-bottom: none;
}

.notification-info .icons {
	margin: 0 0.5em;
	border-radius: 5px;
	height: 4.6em;
}

.notification-info .btn {
     margin: 0.25em auto;
}

.stage {
	width: 100%;
}

.stage i {
	border-radius: 3px;
	height: 1px;
	border: 2px solid #59b6b1;
	padding: 0.1em;
	color: #003b4c;
	font-size: 3em;
	margin: 0.25em auto;
	width: 85%;
}

.now i {
	background: #59b6b1;
	border: 2px solid transparent;
	color: #59b6b1;
}

.notyet i {
	border: 2px solid grey;
	color: grey;
}

.round {
	padding: 0.5em;
	font-size: 1.25em;
	border-radius: 5px;
}

.one {
	width: 25%;
}

.two {
	width: 50%;
}

.three {
	width: 75%;
}

.four {
	width: 100% !important;
}

.five {
	width: 5%;
}

.six {
	width: 15%;
}

.seven {
	width: 10%;
}

.eight {
	width: 20%;
}

.nine {
	width: 30%;
}

.btn-row .btn {
	margin: 2em 0.5em;
}

.btn-search-rut {
	margin-top: 30px !important;
}

.course-tp-offer {
	align-items: flex-end;
	flex-wrap: wrap;
	overflow: visible;
}

.course-tp-field {
	width: 40%;
	flex: 0 0 40%;
	min-width: 0;
	overflow: visible;
}

.course-tp-field > label:has(+ select) {
	position: relative;
	z-index: 3;
	display: inline-block;
	width: fit-content;
	max-width: calc(100% - 1.6em);
	margin: 0.7em 0 -0.5em 0.7em;
	padding: 0 0.35em;
	background: #fff;
	color: #7d8d98;
	font-size: 8pt;
	font-weight: 600;
	line-height: 1;
}

.course-tp-field > select {
	position: relative;
	z-index: 1;
}

.course-tp-save {
	width: auto;
	flex: 0 0 auto;
}

.course-tp-save .btn {
	margin: 0 0 0.85em 0.4em;
}

@media screen and (max-width: 1024px) {
	.course-tp-field {
		width: 100%;
		flex-basis: 100%;
	}
}

.btn-finder {
	padding: 0.3em 1em;
	margin: 0.5em 0.5em;
	font-size: 0.8em;
	width: auto;
	border-radius: 25px;
	border: 3px solid transparent;
	cursor: pointer;
	outline: none !important;
}

.attendance-legend {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 8px 12px;
	border: 1px solid #d7e6ef;
	border-radius: 10px;
	background: #fff;
	font-size: 12px;
	color: #506070;
}

.attendance-legend-title {
	font-weight: 600;
	color: #00445c;
}

.attendance-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.attendance-present {
	color: #16803c;
}

.attendance-absent {
	color: #c62828;
}

.attendance-late {
	color: #d97706;
}

.attendance-retired {
	color: #6d28d9;
}

.attendance-justified {
	color: #2563eb;
}

/* ------------------ */
/*  	 COLOR		  */
/* ------------------ */
.bg-light-primary-color {
	background: rgba(89, 182, 177, 0.3);
}

.color-primary {
	background: #003b4c;
	color: white;
}

.color-primary-alone {
	color: #003b4c;
}

.color-tomato-alone {
	color: #e11d48;
}

.color-primary:hover {
	background: white;
	color: #003b4c;
	transition: 0.5s; 
	border: 3px solid #003b4c;
}

.color-secundary {
	background: #59b6b1;
	color: white;
}

.color-secundary:hover {
	background: white;
	color: #59b6b1;
	transition: 0.5s;
	border: 3px solid #59b6b1;
}

.color-alert {
	background: #e11d48;
	color: white;
}

.color-alert:hover {
	background: white;
	color: #e11d48;
	transition: 0.5s;
	border: 3px solid #e11d48;
}

.color-ok {
	background: #28B463;
	color: white;
}

.color-ok:hover {
	background: white;
	color: #28B463;
	transition: 0.5s;
	border: 3px solid #28B463;
}

.color-caution {
	background: goldenrod;
	color: white;
}

.color-caution:hover {
	background: white;
	color: goldenrod;
	transition: 0.5s;
	border: 3px solid goldenrod;
}

.color-file {
	background: white;
	border: 3px solid #003b4c;
}

.color-file:hover {
	transition: 0.5s;
	background: #003b4c;
	color: white;
}

.color-text-primary {
	color: #003b4c;
}

.color-text-ok {
	color: #28B463;
}

.color-text-caution {
	color: goldenrod;
}

.color-text-alert {
	color: #e11d48;
}

.color-text-grey {
	color: grey;
}

.color-text-lightblue {
	color: #2E9AFE;
}

.color-neutral {
	background: white;
}

/* -------------------------- */
 /*      PRELOADER LOAD       */
 /* ------------------------- */

.preloader-interior {
	visibility: hidden;
    display: block;
    float: right;
    user-select: none;
    text-align: right;
    width: 40px;
    height: 40px;
    animation: rotate 1s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@keyframes rotate {
    from {
    	-moz-transform: rotateY(0deg);
      	-ms-transform: rotateY(0deg);
      	transform: rotateY(0deg);
    }
    to {
      	-moz-transform: rotateY(-360deg);
      	-ms-transform: rotateY(-360deg);
      	transform: rotateY(-360deg);
    }
}

/* ------------------ */
/*  	 LOGIN		  */
/* ------------------ */
.login-bg {
	--login-navy: #003b4c;
	--login-teal: #59b6b1;
	--login-muted: #5b6b73;
	--login-card: rgba(255, 255, 255, 0.92);
	--login-glow: rgba(89, 182, 177, 0.28);
	position: relative;
	min-height: 100vh;
	background: var(--login-navy);
	overflow: hidden;
}

.login-bg-media {
	position: absolute;
	inset: -8%;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(135deg, rgba(0, 59, 76, 0.55) 0%, rgba(0, 59, 76, 0.28) 42%, rgba(89, 182, 177, 0.18) 100%),
		url("../images/bg.png") center center / cover no-repeat;
	filter: blur(7px);
	image-rendering: auto;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
	will-change: transform;
	animation: login-kenburns 60s linear infinite;
}

.login-bg::before {
	content: "";
	position: absolute;
	inset: -20% auto auto -10%;
	z-index: 0;
	width: 55vw;
	height: 55vw;
	max-width: 640px;
	max-height: 640px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--login-glow) 0%, transparent 70%);
	pointer-events: none;
	animation: login-drift 12s ease-in-out infinite alternate;
}

.login-bg::after {
	content: "";
	position: absolute;
	inset: auto -15% -25% auto;
	z-index: 0;
	width: 48vw;
	height: 48vw;
	max-width: 520px;
	max-height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 59, 76, 0.35) 0%, transparent 68%);
	pointer-events: none;
	animation: login-drift 14s ease-in-out infinite alternate-reverse;
}

@keyframes login-kenburns {
	0% {
		transform: scale(1) translate(0, 0);
		animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
	}
	50% {
		transform: scale(1.1) translate(-4%, -3%);
		animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
	}
	100% {
		transform: scale(1) translate(0, 0);
	}
}

@keyframes login-drift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(3%, 4%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
	.login-bg-media,
	.login-bg::before,
	.login-bg::after {
		animation: none !important;
	}
}

.login {
	position: relative;
	z-index: 1;
	background: transparent;
	margin: 0;
	font-size: 1em;
	color: #494e68;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	padding: 1.5rem;
	box-sizing: border-box;
}

.login section {
	width: min(100%, 400px);
	background: var(--login-card);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 18px;
	box-shadow:
		0 24px 60px rgba(0, 30, 40, 0.28),
		0 0 0 1px rgba(0, 59, 76, 0.04);
	padding: 2rem 1.75rem 1.35rem;
	animation: login-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes login-rise {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.login-brand {
	text-align: center;
	margin-bottom: 0.35rem;
}

.login-brand img {
	width: min(72%, 220px);
	margin: 0.25rem auto 0.75rem;
	display: block;
	filter: drop-shadow(0 8px 18px rgba(0, 59, 76, 0.12));
}

.login-kicker {
	margin: 0 0 1.25rem;
	text-align: center;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--login-muted);
	font-weight: 600;
}

.login-form {
	width: 100%;
}

.login-form form {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	position: relative;
}

.login-form .preloader-interior {
	position: absolute;
	right: 0;
	bottom: 2.4em;
	float: none;
	margin: 0;
	width: 28px;
	height: 28px;
	z-index: 2;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	width: 100%;
	margin: 0;
	height: 2.7em;
	border: 1px solid #b7d0d8;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
}

/* Hover/focus: hereda el anillo teal general de inputs */

.login .input-pass_visible > span {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	color: var(--login-teal);
	font-size: 11px;
	letter-spacing: 0.02em;
}

.login .btn.color-primary {
	width: 100%;
	margin: 0.35rem 0 0;
	height: auto;
	min-height: 2.7em;
	padding: 0.6em 2em;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.03em;
	border-radius: 25px;
	border: 3px solid transparent;
	background: #003b4c;
	color: #fff;
	box-shadow: 0 8px 18px rgba(0, 59, 76, 0.22);
	transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.25s ease, transform 0.18s ease;
}

.login .btn.color-primary:hover:not(:disabled) {
	background: #fff;
	color: #003b4c;
	border: 3px solid #003b4c;
	box-shadow: 0 10px 22px rgba(89, 182, 177, 0.28);
	transform: translateY(-1px);
	filter: none;
}

.login .btn.color-primary:disabled {
	opacity: 0.55;
	box-shadow: none;
	transform: none;
	cursor: not-allowed;
}

.login .color-text-alert.minimal,
.login .minimal.pointer {
	margin-top: 0.35rem;
	text-align: center;
	font-size: 0.9rem;
	transition: color 0.18s ease;
}

.login .color-text-alert.minimal:hover {
	color: #be123c;
}

.login hr {
	border: 0;
	border-top: 1px solid rgba(0, 59, 76, 0.1);
	margin: 1.1rem 0 0.85rem;
}

.login-form > .minimal.pointer {
	color: var(--login-navy);
	font-weight: 600;
}

.login-form > .minimal.pointer:hover {
	color: var(--login-teal);
}

.ft-login {
	margin-top: 1.15rem;
	opacity: 0.85;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	cursor: pointer;
}

.ft-login img {
	width: 78%;
	max-width: 120px;
	margin: 0.35rem auto;
	display: block;
	opacity: 0.9;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ft-login img:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.input-pass_visible {
  position: relative;
}

.input-pass_visible > span {
  position: absolute;
  top: 15px;
  right: 5px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.input-pass_visible > input {
  padding-right: 36px !important;
}

@media (max-width: 520px) {
	.login {
		padding: 1rem;
	}

	.login section {
		padding: 1.5rem 1.2rem 1.1rem;
		border-radius: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.login-bg::before,
	.login-bg::after,
	.login section {
		animation: none;
	}
}
/* ------------------ */
/*     ANIMATION	  */
/* ------------------ */
/*.fade-in-top {
	 animation: fade-in-top 0.75s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.fade-in-top-fast {
	 animation: fade-in-top-fast 0.75s cubic-bezier(0, 0.6, 0.75, 1.000) both;
}*/

/* --------------------------- 	*/
/* animation fade-in-top		*/
/* ---------------------------- */
@keyframes fade-in-top {
  0% {
    -webkit-transform: translateY(-50px);
            transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in-top-fast {
  0% {
    -webkit-transform: translateY(-500px);
            transform: translateY(-500px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

.student-retired-row td {
	position: relative;
	color: rgba(107, 109, 119, 0.7) !important;
}

/* SOLO columnas normales */
.student-retired-row td:not(.action-column)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: #e11d48;
	transform: translateY(-50%);
	transform-origin: center;
	pointer-events: none;
	z-index: 2;
}

/* --------------------------- 	*/
/* 			TABLETS 1024		*/
/* ---------------------------- */
@media screen and (max-width:1024px)
{
	.perfil span {
		display: none;
	}

	.container {
		margin: 0.5em;
	}

	.scrolling {
    	max-height: 23vh;
	}

	.stage i {
		width: 60%;
	}

	.overx {
		overflow-x:auto;
	}

	.phone-nav {
		display: block;
	}

	.mobile {
		display: none;
		position: fixed;
		z-index: 1;
	}

	.mobile.move {
		display: block;
    	transition: 0.5s;
    	width: 100%;
    	background: white;
    	height: 100vh;
	}

	.container {
		margin: 0.5em;
		display: flex;
		flex-wrap: wrap;
	}

	main {
		margin-top: 3em;
	}

	.scrolling {
    	max-height: 40vh;
	}

	.stage p {
		display: none;
	}

	.column {
		width: 100%;
	}
	
	.advance-info {
		margin: 1em 0;
	}

	.one {
		width: 100%;
	}

	.two {
		width: 100%;
	}

	.three {
		width: 100%;
	}
}


/* --------------------------- 	*/
/* 			TABLETS 640 		*/
/* ---------------------------- */
@media screen and (max-width:640px)
{
	/*.phone-nav {
		display: block;
	}

	.mobile {
		display: none;
		position: fixed;
		z-index: 1;
	}

	.mobile.move {
		display: block;
    	transition: 0.5s;
    	width: 100%;
    	background: white;
    	height: 100vh;
	}

	.container {
		margin: 0.5em;
		display: flex;
		flex-wrap: wrap;
	}

	main {
		margin-top: 3em;
	}

	.scrolling {
    	max-height: 40vh;
	}

	.stage p {
		display: none;
	}

	.column {
		width: 100%;
	}
	
	.advance-info {
		margin: 1em 0;
	}

	.one {
		width: 100%;
	}

	.two {
		width: 100%;
	}

	.three {
		width: 100%;
	}*/
}

/*********************************************************************************/
/* Paginación de listados                                                        */
/*********************************************************************************/
.pagination {
  display: inline-flex;
  margin: 1em 0;
}

.pagination a {
  color: black;
  padding: 0.75em;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
}

.pagination li {
  text-decoration: none;
  transition: background-color .3s;
  padding: 8px 0;
}

.pagination li:hover {
  background-color: #E0E0E0;
  transition: background-color .3s;
}

.pagination li a.active {
  background-color: #59b6b1;
  color: white;
  border: 1px solid #59b6b1;
}

.pagination li a {
	padding: 8px 16px;
    color: #666;
}

.active {
    background-color: #59b6b1 !important;
  	color: white;
  	height: auto;
  	transition: background-color .2s ease-in-out;
}

.active a {
	color: #fff !important;
}

.active:hover {
	background: #59b6b1 !important;
	cursor: pointer;
}

.disabled {
	background: #E0E0E0 !important;
    color: grey !important;
    transition: 0.25s !important;
    cursor: not-allowed !important;
	opacity: 0.65;
	pointer-events: none !important;
}

.disabled a:hover {
	cursor: not-allowed !important;
	font-weight: normal;
}

.extreme_links_left_disabled {
	background: #E0E0E0 !important;
    color: grey;
    transition: 0.25s;
    cursor: not-allowed;
}

.extreme_links_left_disabled a:hover {
	cursor: not-allowed !important;
	font-weight: normal;
}

.extreme_links_right_disabled {
	background: #E0E0E0 !important;
    color: grey;
    transition: 0.25s;
    cursor: not-allowed;
}

.extreme_links_right_disabled a:hover {
	cursor: not-allowed !important;
	font-weight: normal;
}

.extreme_links:hover, .extreme_links_left:hover, .extreme_links_right:hover {
	background-color: #E0E0E0 !important;
  	transition: background-color .3s !important;
}

.option_active {
	text-decoration: underline !important;
}

.sort {
	width: 16px;
	height: 16px;
	display: inline-flex;
}

.sort:hover {
	cursor: pointer;
}

.sort_asc {
	background: url('../images/sort_down.png') no-repeat;
}

.sort_desc {
	background: url('../images/sort_up.png') no-repeat;
}

/* --------------------------------------------	*/
/* 			Animación de páginas Angular 		*/
/* -------------------------------------------- */
[ui-view].ng-enter, [ui-view].ng-leave {
	position: absolute;
	left: 0;
	right: 0;
	-webkit-transition: all .7s ease-in-out;
	transition: all .7s ease-in-out;
}

[ui-view].ng-enter {
	opacity: 0;
}

[ui-view].ng-enter-active {
	opacity: 1;
}

[ui-view].ng-leave {
	opacity: 1;
}

[ui-view].ng-leave-active {
	opacity: 0;
}

/* ------------------------------------ */
/* 			Efecto IF Angular 			*/
/* ------------------------------------ */
.fade-element-in.ng-enter {
  transition: 0.6s linear all;
  opacity: 0;
}

.fade-element-in-init .fade-element-in.ng-enter {
  opacity: 1;
}

.fade-element-in.ng-enter.ng-enter-active {
  opacity: 1;
}

.fade-element-in.ng-leave {
  display: none !important;
}

/* ------------------------------------ */
/*        Efecto SHOW Angular           */
/* ------------------------------------ */
.fade-element-in.ng-hide-add {
	display: none !important;
}

.fade-element-in.ng-hide-remove {
	opacity: 0;
	display: block !important;
}

.fade-element-in.ng-hide-remove.ng-hide-remove-active {
	opacity: 1;
	transition: 0.6s linear all;
}

/* ------------------------------------ */
/* 			Sidebar vertical 			*/
/* ------------------------------------ */
:root{
  --side-w:220px; --side-bg:#003b4c; --side-fg:#e5e7eb; --side-fg-dim:#9ca3af;
  --side-accent:#59b6b1; --side-hover:rgba(255,255,255,.06); --side-border:rgba(255,255,255,.08);
  --menu-item-h:36px; --submenu-indent:12px;
  --r10:10px; --r8:8px; --accent-tab:#59b6b1;; /* pestañita */
  --fs:10pt; --fs-sub:10pt; --fs-badge:11pt;
}

html,body{overflow-x:hidden}

.side-nav{
  position:fixed; inset:0 auto 0 0; width:var(--side-w); background:var(--side-bg); color:var(--side-fg);
  border-right:1px solid var(--side-border); display:flex; flex-direction:column; z-index:1000;
}
@media(max-width:1024px){.side-nav{transform:translateX(-100%);transition:transform .2s ease}.side-nav.is-open{transform:translateX(0)}}

/* Header/burger del sidebar */
.side-brand{display:flex;align-items:center;gap:.75rem;height:56px;padding:0 12px;border-bottom:1px solid var(--side-border)}
.side-burger{all:unset;cursor:pointer;padding:6px;border-radius:8px}
.side-burger:hover{background:var(--side-hover)}
.side-title{font-weight:600;letter-spacing:.4px}

/* Usuario */
.side-user{display:flex;align-items:center;gap:.75rem;padding:12px;border-bottom:1px solid var(--side-border)}
.side-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#fff1;border:1px solid rgba(255,255,255,.12)}
.side-user .name{color:#fff;font-weight:600;font-size:14px;line-height:1.2}
.side-user .role{color:#9ca3af;font-size:14px;line-height:1.2}

/* Menú principal */
.menu-vertical{flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#59b6b1 #003b4c}
.menu-vertical::-webkit-scrollbar{width:10px}
.menu-vertical::-webkit-scrollbar-track{background:#003b4c}
.menu-vertical::-webkit-scrollbar-thumb{background:#59b6b1}
.menu-vertical::-webkit-scrollbar-thumb:hover{background:#7ec9c5}
.menu-level1{list-style:none;margin:8px 0;padding:0}
.menu-level1>li{margin:4px 8px}
.menu-level1>li>a,.menu-level1>li>.item-toggle{
  display:flex;align-items:center;gap:.75rem;width:100%;min-height:var(--menu-item-h);padding:0 12px;border-radius:var(--r10);
  color:var(--side-fg);text-decoration:none;background:transparent;border:0;cursor:pointer;text-align:left;font-size:var(--fs);
  transition:background .3s ease, color .3s ease, box-shadow .3s ease;
}
.menu-level1>li>a:hover,.menu-level1>li>.item-toggle:hover{background:var(--side-hover)}
.menu-level1>li.active>a{background:var(--side-hover);color:#fff}
.menu-level1 i{font-size:18px;width:22px;text-align:center}
.badge{margin-left:auto;display:inline-flex;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--side-accent);color:#001018;font-weight:600;align-items:center;justify-content:center;font-size:var(--fs-badge)}
.badge-icon{margin-left:auto;display:inline-flex}.badge-icon i{font-size:16px;color:var(--side-accent)}

/* Flecha */
.menu .chev{margin-left:auto;width:10px;height:10px;border-right:2px solid var(--side-fg-dim);border-bottom:2px solid var(--side-fg-dim);transform:rotate(-45deg);transition:transform .35s cubic-bezier(.22,.61,.36,1)}
.menu.open .chev{transform:rotate(45deg)}

/* Submenú: mismo ancho derecho que el menú, indentado a la izquierda + pestañita #59b6b1 */
.submenu{
  list-style:none;
  margin:4px 0 8px var(--submenu-indent);
  width:calc(100% - var(--submenu-indent));
  padding:0;
  position:relative;
  border-radius:var(--r10);
  overflow:hidden;
  opacity:1;
  max-height:520px;
  transition:
    max-height .4s cubic-bezier(.22,.61,.36,1),
    opacity .35s ease,
    margin .35s cubic-bezier(.22,.61,.36,1);
}
.submenu::before{
  content:"";position:absolute;left:calc(-1 * var(--submenu-indent));top:6px;bottom:6px;width:3px;background:var(--accent-tab);border-radius:3px;
  opacity:1;transition:opacity .3s ease, top .35s ease, bottom .35s ease;
}
.submenu>li{
  list-style:none;
  cursor:pointer;
  opacity:1;
  transform:translateX(0);
  transition:opacity .3s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.submenu>li+li{margin-top:3px}
.submenu>li>a,.submenu>li>button{
  display:flex;align-items:center;gap:8px;height:var(--menu-item-h);line-height:calc(var(--menu-item-h) - 2px);
  padding:0 10px;border-radius:var(--r8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--side-fg-dim);text-decoration:none;font-size:var(--fs-sub);
  transition:background .25s ease, color .25s ease, box-shadow .25s ease;
}
.submenu>li>a:hover{background:var(--side-hover);color:#fff}

/* Aparición / desaparición suave del submenú lateral (ng-if + ngAnimate) */
.submenu.ng-enter{
  opacity:0;
  max-height:0;
  margin-top:0;
  margin-bottom:0;
}
.submenu.ng-enter.ng-enter-active{
  opacity:1;
  max-height:520px;
  margin-top:4px;
  margin-bottom:8px;
}
.submenu.ng-leave{
  opacity:1;
  max-height:520px;
}
.submenu.ng-leave.ng-leave-active{
  opacity:0;
  max-height:0;
  margin-top:0;
  margin-bottom:0;
}
.submenu.ng-enter::before,
.submenu.ng-leave.ng-leave-active::before{
  opacity:0;
}
.submenu.ng-enter > li{
  opacity:0;
  transform:translateX(-8px);
}
.submenu.ng-enter.ng-enter-active > li{
  opacity:1;
  transform:translateX(0);
}
.submenu.ng-enter.ng-enter-active > li:nth-child(1){ transition-delay:.04s }
.submenu.ng-enter.ng-enter-active > li:nth-child(2){ transition-delay:.08s }
.submenu.ng-enter.ng-enter-active > li:nth-child(3){ transition-delay:.12s }
.submenu.ng-enter.ng-enter-active > li:nth-child(4){ transition-delay:.16s }
.submenu.ng-enter.ng-enter-active > li:nth-child(5){ transition-delay:.2s }
.submenu.ng-enter.ng-enter-active > li:nth-child(6){ transition-delay:.24s }
.submenu.ng-enter.ng-enter-active > li:nth-child(7){ transition-delay:.28s }
.submenu.ng-enter.ng-enter-active > li:nth-child(8){ transition-delay:.32s }
.submenu.ng-enter.ng-enter-active > li:nth-child(9){ transition-delay:.36s }
.submenu.ng-enter.ng-enter-active > li:nth-child(n+10){ transition-delay:.4s }
.submenu.ng-leave > li{
  opacity:0;
  transform:translateX(-6px);
  transition-duration:.2s;
}

/* Actives */
.menu.open>.item-toggle,.menu.active>.item-toggle{
  background:rgba(89,182,177,.18);box-shadow:inset 3px 0 0 var(--side-accent),inset 0 0 0 1px rgba(0,0,0,.06);border-radius:var(--r10);
}
.submenu>li.active>a,.submenu>li>a.active{
  background:rgba(89,182,177,.22);font-weight:600;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
}

/* Footer del sidebar */
.side-footer{border-top:1px solid var(--side-border);padding:10px}
.side-footer .logout{all:unset;display:flex;align-items:center;gap:.5rem;width:100%;padding:10px 12px;border-radius:var(--r10);cursor:pointer}
.side-footer .logout:hover{background:var(--side-hover)}

/* Asegura color de pestañita */
:root{ --accent-tab:#59b6b1;; }

/* MENÚ (nivel 1) activo */
.menu-level1 > li.active_menu > .item-toggle,
.menu-level1 > li > .item-toggle.active_menu,
.menu-level1 > li.active_menu > a,
.menu-level1 > li > a.active_menu{
  background: var(--side-hover);
  color: #fff;
  border-radius: var(--r10);
  /* barrita izquierda como en la imagen */
  box-shadow:
    inset 3px 0 0 var(--accent-tab),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Chevron mirando abajo cuando está activo */
.menu-level1 > li.active_menu .chev{ transform: rotate(45deg); }

/* SUBMENÚ (nivel 2) activo */
.submenu > li.active_submenu > a,
.submenu > li > a.active_submenu{
  background: var(--side-hover);
  color: #fff;
  border-radius: var(--r8);
  /* contorno sutil tipo “pastilla” */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

/* ------------------------------------ */
/* 			 Input búsqueda 			*/
/* ------------------------------------ */
/* Contenedor */
.du-auto-wrap { position: relative; display: block; width: 100%; margin: 0.2em 0 0.85em 0; }
.du-auto-wrap > input:not([type="checkbox"]):not([type="radio"]) { margin: 0; }
.du-autocomplete {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 9999;
  background: #fff; border: 1px solid #9fc5cf; border-radius: 8px;
  margin: 0; max-height: 260px; overflow: auto;
  box-shadow: 0 6px 20px rgba(0, 59, 76, 0.08);
  font-family: "Albert Sans", sans-serif; font-size: 10pt; font-weight: 400; color: #003b4c; line-height: 1.3;
}
.du-item {
  padding: 0.55em 0.9em; cursor: pointer; display: block;
  font-family: "Albert Sans", sans-serif; font-size: 10pt; font-weight: 400; color: #003b4c; line-height: 1.3;
}
.du-item:hover, .du-item.active { background: rgba(89, 182, 177, 0.12); }
.du-item .du-main { display: flex; flex-direction: column; }
.du-item .du-title { font-family: "Albert Sans", sans-serif; font-weight: 400; font-size: 10pt; line-height: 1.3; color: #003b4c; }
.du-item .du-sub { font-family: "Albert Sans", sans-serif; font-size: 10pt; font-weight: 400; color: #003b4c; }
.du-badge { font-size: 10pt; padding: 2px 6px; border-radius: 999px; background: #eef2ff; font-weight: 400; }
.plan-group-tag { margin: 0 4px 0 0; cursor: pointer; }
.du-loading, .du-empty { padding: 0.55em 0.9em; color: #003b4c; font-family: "Albert Sans", sans-serif; font-size: 10pt; font-weight: 400; }
.du-item mark { font-weight: 400; background: transparent; color: inherit; }

/* ------------------------------------
   DUDU Wizard / Stepper
------------------------------------ */
.dudu-wizard-steps{
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

/* Paso */
.dudu-step{
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 90px;
	position: relative;
	text-align: center;
	color: #6b7280; /* gris DUDU */
}

/* Círculo del paso */
.dudu-step-circle{
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	font-weight: 600;
}

/* Número */
.dudu-step-number{
	position: absolute;
}

/* Check (oculto por defecto) */
.dudu-step-check{
	display: none;
	color: #0ea5e9; /* azul DUDU */
}

/* Título */
.dudu-step-title{
	margin-top: 6px;
	white-space: nowrap;
	font-size: 11px;
    font-weight: 600;
    color: #003b4c;
}

/* Línea entre pasos */
.dudu-step-line{
	flex: 1;
	height: 2px;
	background: #cbd5e1;
	margin: 0 6px;
}

/* --------------------
   ESTADOS
-------------------- */

/* Activo */
.dudu-step.live .dudu-step-circle{
	border-color: #59b6b1;
	background: #e0f2fe;
}
.dudu-step.live{
	color: #0f172a;
}

/* Completado */
.dudu-step.done .dudu-step-circle{
	border-color: #59b6b1;
	background: #28B463;
}
.dudu-step.done .dudu-step-number{
	display: none;
}
.dudu-step.done .dudu-step-check{
	display: block;
	color: #ffffff;
}

/* Línea completada */
.dudu-step-line.done{
	background: #59b6b1;
}

/* --------------------
   Responsive
-------------------- */
@media screen and (max-width: 768px){
	.dudu-wizard-steps{
		flex-wrap: wrap;
		justify-content: center;
	}

	.dudu-step-line{
		display: none;
	}

	.dudu-step{
		margin: 8px 12px;
	}
}

/* =========================================================
   GRID
========================================================= */

/* --------------------
   GRILLA
-------------------- */
.courses-grid{
	width:100%;
	display:grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap:12px;
	box-sizing:border-box;
	overflow:visible;
	align-items:start;
}

.course-card.ng-enter {
	opacity: 0;
	transform: translateY(5px) scale(0.992);
	transition: opacity .18s ease-out, transform .18s ease-out;
}

.course-card.ng-enter.ng-enter-active {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* mata el tiritón de salida */
.course-card.ng-leave {
	display: none !important;
}

/* Responsive */
@media (max-width: 1180px){
	.courses-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
	.courses-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
	.courses-grid{ grid-template-columns: 1fr; }
}

/* --------------------
   TARJETAS
-------------------- */
.course-card{
	margin:0;
	background:#ffffff;
	border-radius:14px;
	border:1px solid #dbe8ec;
	box-shadow:0 8px 18px rgba(0, 59, 76, .08);
	cursor:pointer;
	padding:0;
	overflow:hidden;
	box-sizing:border-box;
	min-width:0;
	color:#0f172a;
	transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}

.course-card:hover{
	transform:translateY(-1px);
	box-shadow:0 12px 24px rgba(0, 59, 76, .13);
	border-color:rgba(89, 182, 177, .55);
}

.course-card.active{
	background:#ffffff !important;
	color:#0f172a !important;
	box-shadow:0 8px 18px rgba(0, 59, 76, .08);
}

/* --------------------
   CABECERA
-------------------- */
.course-card-head{
	display:grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items:start;
	column-gap:8px;
	padding:10px 12px 12px 12px;
	background:linear-gradient(135deg, #59b6b1 0%, #59b6b1 52%, #43B8B0 100%);
	color:#ffffff;
}

.course-card-head-split{
	grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-rows:auto auto;
	align-items:center;
	column-gap:0;
	row-gap:0;
	background:#59b6b1;
}

.course-card-head-split .course-name{
	grid-column:1;
	grid-row:1;
	min-width:0;
	max-width:100%;
	padding-right:8px;
	overflow:hidden;
	text-overflow:ellipsis;
	background:transparent;
	border:0;
}

.course-card-head-split .badge-jec{
	grid-column:2;
	grid-row:1;
	justify-self:center;
	align-self:center;
	position:relative;
	z-index:2;
	margin:0 8px;
	min-width:max-content;
	white-space:nowrap;
}

.course-card-head-split .course-jornada{
	grid-column:3;
	grid-row:1;
	justify-self:end;
	align-self:center;
	min-width:0;
	max-width:100%;
	margin:0 0 0 8px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}

.course-card-head-split .course-year{
	grid-column:1;
	grid-row:2;
	margin-top:6px;
	padding-right:10px;
	min-width:0;
	white-space:nowrap;
	display:block;
	background:transparent;
	border:0;
	box-shadow:none;
}

.course-card-head-split .badge{
	margin-left:0;
	height:auto;
	min-width:0;
	font-size:10.5px;
	font-weight:800;
	padding:5px 9px;
	border-radius:999px;
	line-height:1;
	box-sizing:border-box;
	border:0;
}

.course-card-head-split .badge-primary{
	background:#85dce3;
	color:#003b4c;
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
}

.course-card-head-split .badge-soft{
	background:rgba(0, 59, 76, .26);
	color:#ffffff;
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}

.course-card-head-split .badge-plan{
	grid-column:3;
	grid-row:2;
	justify-self:end;
	align-self:center;
	display:block;
	width:fit-content;
	max-width:100%;
	min-width:0;
	margin:6px 0 0 10px;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

.course-card-head-main{
	min-width:0;
}

/* Título */
.course-name{
	font-size:1.2em;
	line-height:1.08;
	font-weight:800;
	color:#fff;
	display:block;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

.course-card-head > div:first-child{
	min-width:0;
}

.course-year{
	font-size:11px;
	line-height:1.15;
	font-weight:600;
	opacity:.76;
	color:#e6f6f5;
	display:block;
	margin-top:3px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}

.course-subject{
	font-size:11px;
	line-height:1.15;
	font-weight:600;
	opacity:.76;
	color:#e6f6f5;
	display:block;
	margin-top:2px;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

/* --------------------
   BADGES
-------------------- */
.course-badges{
	display:flex;
	gap:6px;
	align-items:flex-start;
	justify-content:flex-end;
	padding-right:0;
	min-width:104px;
}

.course-badges .badge{
	font-size:10.5px;
	font-weight:800;
	padding:5px 9px;
	border-radius:999px;
	white-space:nowrap;
	line-height:1;
	box-sizing:border-box;
}

.course-badges .badge-soft{
	background:rgba(0, 59, 76, .26);
	color:#ffffff;
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}

.course-badges .badge-primary{
	background:#85dce3;
	color:#003b4c;
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
}

.course-badges .badge-plan{
	max-width:118px;
	overflow:hidden;
	text-overflow:ellipsis;
	flex:0 0 auto;
}

/* --------------------
   MÉTRICAS
-------------------- */
.course-metrics{
	display:grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap:8px;
	padding:11px 16px 10px 16px;
	background:#ffffff;
	color:#0f172a;
	border-bottom:1px solid #e7eef2;
}

/* Mis clases: Docente|Estudiantes / OA|Actividades */
.lectionary-session-card .course-metrics{
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:10px 16px;
}

.lectionary-session-card .course-status-grid{
	grid-template-columns: 1fr 1fr;
}

.lectionary-attendance-work{
	box-sizing:border-box;
}
.lectionary-attendance-filters{
	margin-bottom:10px;
}
.lectionary-attendance-grid{
	margin-bottom:0;
}
.lectionary-attendance-grid .overx.lectionary-attendance-scroll{
	overflow:visible;
}
.lectionary-attendance-dock{
	position:fixed;
	/* centrado en el contenido: sidebar + margen y padding del .box */
	left:calc(var(--side-w) + 1.5em);
	right:1.5em;
	width:auto;
	bottom:0.5em;
	z-index:40;
	margin:0;
	padding:0.5em 1em;
	border:1px solid #dbe8ec;
	border-radius:12px;
	background:#fff;
	box-shadow:0 -6px 20px rgba(0, 59, 76, 0.12);
	box-sizing:border-box;
}
@media(max-width:1024px){
	.lectionary-attendance-dock{
		left:1.5em;
	}
}
.lectionary-attendance-dock-fields{
	display:flex;
	flex-wrap:wrap;
	gap:10px 14px;
	align-items:flex-end;
}
.lectionary-attendance-dock-field{
	flex:1 1 220px;
	min-width:180px;
}
.lectionary-attendance-dock-field textarea,
.lectionary-attendance-dock-field input[type="password"]{
	width:100%;
	margin:0;
	box-sizing:border-box;
}
.lectionary-attendance-dock-field textarea{
	min-height:2.6em;
	max-height:5.2em;
	resize:vertical;
}
.lectionary-attendance-dock-pass{
	flex:0 1 220px;
}
.lectionary-attendance-dock-hint{
	margin:8px 0 0;
}
.dudu-content-filters .lectionary-attendance-marked{
	display:inline-flex;
	align-items:center;
	min-height:2.35em;
	height:2.35em;
	padding:0;
	margin:0;
	font-size:12px;
	line-height:1;
	color:#0f2a3d;
	white-space:nowrap;
}
.dudu-content-filters .lectionary-attendance-marked b{
	margin-left:0.35em;
	font-weight:800;
	color:#0f172a;
}
.dudu-content-filters .lectionary-attendance-marked .dot{
	width:8px;
	height:8px;
	border-radius:50%;
	display:inline-block;
	margin-right:5px;
	box-shadow:0 0 0 3px rgba(0,0,0,.035);
}
.dudu-content-filters .lectionary-attendance-marked .dot.gray{
	background:#b7d4d3;
}

.course-metrics .label{
	font-size:11px;
	line-height:1.15;
	font-weight:600;
	color:#587286;
	opacity:1;
	display:block;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}

.course-metrics .value{
	font-size:12px;
	line-height:1.12;
	font-weight:800;
	color:#06162b;
	display:block;
	margin-top:5px;
}

.curricular-course-card .course-card-head:not(.course-card-head-split) .course-year{
	white-space:normal;
	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	line-height:1.25;
}

.curricular-course-card .course-metrics .value{
	font-size:18px;
	letter-spacing:-0.02em;
	margin-top:3px;
}

.curricular-course-card .course-status-grid{
	grid-template-columns:1fr 1fr;
}

/* --------------------
   ESTADOS
-------------------- */
.course-status-grid{
	display:grid;
	grid-template-columns: max-content max-content;
	justify-content:space-between;
	align-items:start;
	gap:7px 14px;
	padding:12px 16px 13px 16px;
	background:#ffffff;
	font-size:11px;
	line-height:1.1;
	color:#0f2a3d;
	border-bottom:1px solid #e7eef2;
}

.course-status-grid > div{
	min-width:0;
	white-space:nowrap;
}

.course-status-grid b{
	font-weight:800;
	color:#0f172a;
}

/* Dots */
.course-status-grid .dot{
	width:8px;
	height:8px;
	border-radius:50%;
	display:inline-block;
	margin-right:5px;
	vertical-align:middle;
	box-shadow:0 0 0 3px rgba(0,0,0,.035);
}

.course-status-grid .dot.gray{ background:#b7d4d3; }
.course-status-grid .dot.blue{ background:#3b82f6; }
.course-status-grid .dot.amber{ background:#f59e0b; }
.course-status-grid .dot.green{ background:#22c55e; }
.course-status-grid .dot.purple{ background:#a855f7; }
.course-status-grid .dot.orange{ background:#f97316; }

/* --------------------
   FOOTER
-------------------- */
.course-card-foot{
	padding:11px 16px 12px 16px;
	background:#f4faf9;
	border-top:0;
	font-size:12px;
	font-weight:800;
	color:#00796f;
	opacity:1;
	display:flex;
	align-items:center;
	justify-content:space-between;
}

.course-card-foot::after{
	content:"›";
	width:22px;
	height:22px;
	border-radius:50%;
	background:#dff7f5;
	color:#00796f;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:18px;
	font-weight:900;
	line-height:1;
}

.course-card-foot .hint{
	color:#00796f;
}

/* --------------------
   SKELETON / SHIMMER
-------------------- */
@keyframes dudu-shimmer{
	0%{ background-position:200% 0; }
	100%{ background-position:-200% 0; }
}

.course-card.dudu-skeleton{
	pointer-events:none;
	cursor:default;
	animation:none;
}

.course-card.dudu-skeleton:hover,
.course-card.dudu-skeleton.active:hover{
	transform:none;
	box-shadow:0 8px 18px rgba(0, 59, 76, .08);
	border-color:#dbe8ec;
}

.course-card.dudu-skeleton .course-card-foot::after{
	content:none;
}

.dudu-skel{
	display:block;
	border-radius:6px;
	background-color:rgba(255,255,255,.28);
	background-image:linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.55) 46%, rgba(255,255,255,.18) 100%);
	background-size:200% 100%;
	animation:dudu-shimmer 1.25s ease-in-out infinite;
}

.dudu-skel.title{ width:72%; height:14px; margin-top:2px; }
.dudu-skel.sub{ width:48%; height:8px; margin-top:8px; }
.dudu-skel.badge{ width:54px; height:22px; border-radius:999px; }
.course-card-head-split > .dudu-skel.title{ grid-column:1; grid-row:1; width:78%; margin-top:0; }
.course-card-head-split > .dudu-skel.skel-jornada{ grid-column:3; grid-row:1; justify-self:end; width:72px; }
.course-card-head-split > .dudu-skel.sub{ grid-column:1; grid-row:2; width:92%; margin-top:0; }
.course-card-head-split > .dudu-skel.skel-plan{ grid-column:3; grid-row:2; justify-self:end; width:88px; }
.dudu-skel.label,
.dudu-skel.value,
.dudu-skel.row,
.dudu-skel.foot{
	background-color:#e8f3f3;
	background-image:linear-gradient(90deg, #e8f3f3 0%, #d4ecea 46%, #e8f3f3 100%);
}
.dudu-skel.label{ width:58%; height:8px; }
.dudu-skel.value{ width:36%; height:16px; margin-top:6px; }
.dudu-skel.row{ width:88%; height:8px; }
.dudu-skel.foot{
	width:44%;
	height:10px;
	background-color:#dceeee;
	background-image:linear-gradient(90deg, #dceeee 0%, #c5e4e1 46%, #dceeee 100%);
}

tr.dudu-skeleton-row{
	pointer-events:none;
}
tr.dudu-skeleton-row td{
	padding:12px 10px;
}
tr.dudu-skeleton-row .dudu-skel.row{
	width:78%;
	height:10px;
	margin:0;
}
tr.dudu-skeleton-row td:nth-child(odd) .dudu-skel.row{ width:64%; }
tr.dudu-skeleton-row td:nth-child(3n) .dudu-skel.row{ width:48%; }

@media (prefers-reduced-motion: reduce){
	.dudu-skel{ animation:none; }
}

/* =========================================================
   DUDU TABS – MATRÍCULA (FINAL)
   - sin .active
   - underline activo + hover
   - pipe separador
   - oculta scrollbar feo (rectángulo)
   ========================================================= */

/* Wrapper por si quieres controlar padding/clip */
.dudu-tabs-wrap{
  border-bottom: 1px solid #e7f0f4;
}

/* Contenedor tabs */
.dudu-tabs{
  display:flex;
  align-items:center;
  gap:0;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  background:transparent;

  /* ✅ mata el “rectángulo” (scrollbar visible) */
  scrollbar-width: none;          /* Firefox */
}
.dudu-tabs::-webkit-scrollbar{    /* Chrome/Edge */
  height:0;
}

/* Tab */
.dudu-tabs .dudu-tab{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  background:transparent;
  border:0;
  cursor:pointer;
  white-space:nowrap;
  user-select:none;
  box-shadow:none;

  /* ✅ evita “outline” raro al focus */
  outline:none;
  flex:1 1 0;
  justify-content:center; /* centra label + badge */
  transition:
    padding .35s cubic-bezier(.22,.61,.36,1),
    opacity .3s ease;
}
.dudu-tabs .dudu-tab:focus{
  outline:none;
}

/* Label */
.dudu-tab-label{
  font-size:11px;
  font-weight:600;
  color:#003b4c;
  transition: color .25s ease, font-size .35s cubic-bezier(.22,.61,.36,1);
}

/* Color y leve énfasis al hover/activo (equivalente al ícono en dudu-tabs-menu) */
.dudu-tabs .dudu-tab:hover .dudu-tab-label,
.dudu-tabs .dudu-tab.tab-active .dudu-tab-label{
  color:#59b6b1;
}
.dudu-tabs .dudu-tab.tab-active .dudu-tab-label{
  font-size:12px;
}

/* Estado */
.dudu-tab-status{
  font-size:11px;
  font-weight:600;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.dudu-tab-status.ok{
  background:#e9fbf0;
  color:#28B463;
  border-color:#c9f0d7;
}
.dudu-tab-status.ok::before{
  content:"Ok";
}
.dudu-tab-status.pending{
  background:#fff7e6;
  color:goldenrod;
  border-color:#ffe1a6;
}
.dudu-tab-status.pending::before{
  content:"Pendiente";
}
.dudu-tab-status.edited{
  background:#e0f2fe;
  color:#0369a1;
  border-color:#a5e4fc;
}
.dudu-tab-status.edited::before{
  content:"Editado";
}
.dudu-tab-status.err{
  background:#ffecec;
  color:#e11d48;
  border-color:#ffd0d0;
}
.dudu-tab-status.err::before{
  content:"Error";
}

/* ===== Underline (default apagado) ===== */
.dudu-tabs .dudu-tab::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:-1px;
  height:3px;
  border-radius:999px;
  background:transparent;
  transition: background .25s ease, transform .35s cubic-bezier(.22,.61,.36,1);
  transform: scaleX(.85);
  transform-origin: center;
}

/* ✅ Activo */
.dudu-tabs .dudu-tab.tab-active::after{
  background:#59b6b1;
  transform: scaleX(1);
}

/* ✅ Hover igual que activo (sin pintar fondo) */
.dudu-tabs .dudu-tab:hover::after{
  background:#59b6b1;
  transform: scaleX(1);
}

/* ===== Pipe bonito entre tabs ===== */
.dudu-tabs .dudu-tab + .dudu-tab{
  padding-left:22px;
}
.dudu-tabs .dudu-tab + .dudu-tab::before{
  content:"";
  position:absolute;
  left:10px;
  top:50%;
  width:1px;               /* antes 1px */
  height:22px;             /* antes 18px */
  transform:translateY(-50%);
  border-radius:999px;
  background: linear-gradient(
    to bottom,
    rgba(190,210,220,0),
    rgba(160,185,200,.95),
    rgba(190,210,220,0)
  );
}

/* Responsive */
@media (max-width:520px){
  .dudu-tabs .dudu-tab{ padding:9px 12px; }
  .dudu-tab-label{ font-size:12px; }
  .dudu-tabs .dudu-tab + .dudu-tab{ padding-left:20px; }
  .dudu-tabs .dudu-tab + .dudu-tab::before{ height:16px; left:9px; }
}

/* =========================================================
   DUDU TABS – variante navegación de módulo (ícono + label)
   Reemplaza al dudu-sidemenu conservando el crecimiento del
   ícono al activar y el colapso animado de las opciones que
   aparecen o desaparecen según permisos.
   ========================================================= */
.dudu-tabs-menu{
  justify-content:flex-start;
}

.dudu-tabs-menu .dudu-tab{
  flex:0 0 auto;
  gap:8px;
  overflow:hidden;
  max-width:100%;
  opacity:1;
  transition:
    padding .35s cubic-bezier(.22,.61,.36,1),
    max-width .35s cubic-bezier(.22,.61,.36,1),
    opacity .3s ease;
}

.dudu-tabs-menu .dudu-tab i{
  font-size:1.15em;
  color:#6b6d77;
  flex-shrink:0;
  transition: font-size .35s cubic-bezier(.22,.61,.36,1), color .25s ease;
}

.dudu-tabs-menu .dudu-tab.tab-active i,
.dudu-tabs-menu .dudu-tab:hover i{
  color:#59b6b1;
}

.dudu-tabs-menu .dudu-tab.tab-active i{
  font-size:1.35em;
}

.dudu-tabs-menu .dudu-tab-label{
  font-size:12px;
  white-space:nowrap;
}

.dudu-tabs-menu .dudu-tab.ng-enter{
  opacity:0;
  max-width:0;
  padding-left:0;
  padding-right:0;
}

.dudu-tabs-menu .dudu-tab.ng-enter.ng-enter-active{
  opacity:1;
  max-width:100%;
}

.dudu-tabs-menu .dudu-tab.ng-leave{
  opacity:1;
  max-width:100%;
}

.dudu-tabs-menu .dudu-tab.ng-leave.ng-leave-active{
  opacity:0;
  max-width:0;
  padding-left:0;
  padding-right:0;
}

.dudu-tabs-menu .dudu-tab.ng-enter::before,
.dudu-tabs-menu .dudu-tab.ng-leave::before{
  opacity:0;
}

/* =========================================================
   DUDU SIDEMENU – menú lateral al estilo dudu-tabs
   ========================================================= */
.dudu-sidemenu{
  align-self: flex-start;
}

.dudu-sidemenu-nav{
  display:flex;
  flex-direction:column;
  padding:8px 6px;
  gap:0;
  list-style:none;
  margin:0;
}

.dudu-sidemenu-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin:3px 0;
  padding:8px 10px 8px 14px;
  background:transparent;
  border:0;
  cursor:pointer;
  text-align:left;
  user-select:none;
  box-shadow:none;
  outline:none;
  border-radius:0;
  box-sizing:border-box;
  font-size: 1.3em;
  overflow:hidden;
  max-height:72px;
  opacity:1;
  transition:
    padding .35s cubic-bezier(.22,.61,.36,1),
    max-height .35s cubic-bezier(.22,.61,.36,1),
    opacity .3s ease,
    margin .35s cubic-bezier(.22,.61,.36,1);
}

.dudu-sidemenu-item:focus{
  outline:none;
}

.dudu-sidemenu-item.tab-active{
  padding:14px 10px 14px 14px;
}

.dudu-sidemenu-item i{
  font-size:1.3em;
  color:#6b6d77;
  flex-shrink:0;
  transition: font-size .35s cubic-bezier(.22,.61,.36,1), color .25s ease;
}

.dudu-sidemenu-item.tab-active i{
  font-size:1.45em;
}

.dudu-sidemenu-item span{
  white-space:normal;
  color:#6b6d77;
  transition: color .25s ease, opacity .3s ease;
}

.dudu-sidemenu-item::after{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:999px;
  background:transparent;
  transition: background .3s ease, top .35s cubic-bezier(.22,.61,.36,1), bottom .35s cubic-bezier(.22,.61,.36,1);
}

.dudu-sidemenu-item.tab-active::after{
  top:10px;
  bottom:10px;
  background:#59b6b1;
}

.dudu-sidemenu-item:hover::after{
  background:#59b6b1;
}

.dudu-sidemenu-item + .dudu-sidemenu-item::before{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  top:-3px;
  height:1px;
  border-radius:999px;
  background: linear-gradient(
    to right,
    rgba(190,210,220,0),
    rgba(160,185,200,.95),
    rgba(190,210,220,0)
  );
  transition: opacity .3s ease;
}

/* Aparición / desaparición suave de submenús (ng-if + ngAnimate) */
.dudu-sidemenu-item.ng-enter{
  opacity:0;
  max-height:0;
  padding-top:0;
  padding-bottom:0;
  margin-top:0;
  margin-bottom:0;
}

.dudu-sidemenu-item.ng-enter.ng-enter-active{
  opacity:1;
  max-height:72px;
  padding-top:8px;
  padding-bottom:8px;
  margin-top:3px;
  margin-bottom:3px;
}

.dudu-sidemenu-item.ng-leave{
  opacity:1;
  max-height:72px;
}

.dudu-sidemenu-item.ng-leave.ng-leave-active{
  opacity:0;
  max-height:0;
  padding-top:0;
  padding-bottom:0;
  margin-top:0;
  margin-bottom:0;
}

.dudu-sidemenu-item.ng-enter::before,
.dudu-sidemenu-item.ng-leave::before{
  opacity:0;
}

/* DUDU PAGE TITLE – encabezado con ícono + título + meta */
.dudu-page-title{
	display:flex;
	flex-direction:row;
	align-items:center;
	justify-content:flex-start;
	gap:0.85em;
	padding:0.35em 0.15em;
	width:100%;
	box-sizing:border-box;
}
.dudu-page-title:has(.dudu-page-title-aside){
	align-items:stretch;
}
.dudu-page-title-main{
	display:flex;
	align-items:center;
	gap:0.85em;
	min-width:0;
	flex:1 1 auto;
}
.dudu-page-title-icon{
	flex:0 0 auto;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:2.75em;
	height:2.75em;
	border-radius:50%;
	background:#59b6b1;
	color:#fff;
}
.dudu-page-title-icon i{
	font-size:1.5em;
	line-height:1;
	display:block;
	width:1em;
	height:1em;
}
.dudu-page-title-icon i:before{
	display:block;
	line-height:1;
	transform:translateY(-1px);
}
.dudu-page-title-body{
	display:flex;
	flex-direction:column;
	gap:0.15em;
	min-width:0;
	text-transform:uppercase;
}
.dudu-page-title-heading{
	margin:0;
	font-size:1.35em;
	font-weight:700;
	color:#003b4c;
	line-height:1.2;
}
.dudu-page-title-meta{
	margin:0;
	font-size:1em;
	font-weight:500;
	color:#59b6b1;
	letter-spacing:0.02em;
	line-height:1.35em;
	word-break:break-word;
}

/* DUDU BREADCRUMB – miga de pan completa, debajo del título */
.dudu-breadcrumb{
	flex:1 0 100%;
	box-sizing:border-box;
	width:100%;
	max-width:none;
	min-width:0;
	margin-left:0;
	padding-left:calc(2.75em + 0.85em);
	text-align:left;
}
.dudu-breadcrumb-list{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	justify-content:flex-start;
	gap:0.2em 0;
	list-style:none;
	margin:0;
	padding:0;
}
.dudu-breadcrumb-list > li{
	display:inline-flex;
	align-items:center;
	max-width:none;
	font-size:0.78em;
	font-weight:600;
	letter-spacing:0.03em;
	text-transform:uppercase;
	line-height:1.3;
	color:#9bb0bc;
}
.dudu-breadcrumb-list > li:not(:last-child)::after{
	content:"";
	display:inline-block;
	width:0.35em;
	height:0.35em;
	margin:0 0.55em;
	border-right:2px solid #59b6b1;
	border-top:2px solid #59b6b1;
	transform:rotate(45deg);
	opacity:0.7;
	flex:0 0 auto;
}
.dudu-breadcrumb-list a{
	color:#59b6b1;
	text-decoration:underline;
	cursor:pointer;
	white-space:nowrap;
	overflow:visible;
	text-overflow:clip;
	max-width:none;
	border-radius:4px;
	padding:0.1em 0.2em;
	transition:color .2s ease, background-color .2s ease;
}
.dudu-breadcrumb-list a:hover{
	color:#003b4c;
	background:rgba(89,182,177,0.12);
}
.dudu-breadcrumb-list > li.is-current > span{
	color:#003b4c;
	font-weight:700;
	white-space:nowrap;
	overflow:visible;
	text-overflow:clip;
	max-width:none;
}

.dudu-page-title-aside{
	flex:0 0 auto;
	margin-left:auto;
	display:flex;
	flex-direction:column;
	align-items:flex-end;
	justify-content:flex-end;
	align-self:stretch;
	gap:0.2em;
	min-width:0;
}
.dudu-page-title-aside .dudu-breadcrumb{
	margin-left:0;
	margin-bottom:0;
	padding-left:0;
	width:100%;
}
.dudu-page-title-aside .dudu-page-help{
	flex:0 0 auto;
	margin-left:0;
	align-self:flex-end;
}
.dudu-page-title > .dudu-page-help{
	flex:0 0 auto;
	align-self:flex-start;
	margin-left:auto;
}
.dudu-page-title:has(> .dudu-breadcrumb){
	flex-wrap:wrap;
	align-items:flex-start;
}
.dudu-page-title > .dudu-breadcrumb{
	flex:1 0 100%;
}
/* La barra de progreso no debe bajar la miga: queda a la derecha y la miga sigue bajo el subtítulo. */
.dudu-page-title:has(> .dudu-breadcrumb):has(.st-progress){
	position:relative;
	padding-right:calc(280px + 1.4em);
}
.dudu-page-title:has(> .dudu-breadcrumb):has(.st-progress) > .dudu-page-title-aside{
	position:absolute;
	top:0.35em;
	right:0.15em;
	margin-left:0;
	height:auto;
	align-self:auto;
}
.dudu-page-title > .dudu-breadcrumb .dudu-breadcrumb-list{
	justify-content:flex-start;
}

@media screen and (max-width:720px){
	.dudu-page-title{
		flex-wrap:wrap;
		align-items:flex-start;
	}
	.dudu-breadcrumb{
		max-width:none;
		width:100%;
		margin-left:0;
		padding-left:0;
		text-align:left;
	}
	.dudu-breadcrumb-list{
		justify-content:flex-start;
	}
	.dudu-page-title-aside{
		width:100%;
		margin-left:0;
		align-items:flex-end;
	}
	.dudu-page-title:has(> .dudu-breadcrumb):has(.st-progress){
		padding-right:0.15em;
	}
	.dudu-page-title:has(> .dudu-breadcrumb):has(.st-progress) > .dudu-breadcrumb{
		order:2;
	}
	.dudu-page-title:has(> .dudu-breadcrumb):has(.st-progress) > .dudu-page-title-aside{
		position:static;
		order:3;
		width:100%;
		top:auto;
		right:auto;
	}
}

/* Variante con filtro: título + separador + controles en la misma tarjeta (legacy) */
.dudu-page-header > .dudu-page-title{
	padding-bottom:0.15em;
}
.dudu-page-header > hr{
	margin:0.55em 0.15em 0.65em;
}
.dudu-page-header-filters{
	padding:0 0.15em 0.15em;
}
.dudu-page-header-filters .column,
.dudu-page-header-filters .column.inner{
	margin-bottom:0;
}
.dudu-page-header-filters label{
	margin-top:0;
}

/* Box de filtros (debajo del título / pestañas) */
.dudu-content-filters{
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	align-items:flex-end;
	gap:12px 16px;
	padding:0.35em 0.15em 0.15em;
	margin:0;
	border-bottom:none;
	width:100%;
	box-sizing:border-box;
	overflow:visible;
}
.dudu-content-filters .column,
.dudu-content-filters .column.inner,
.dudu-content-filters .column.one,
.dudu-content-filters .column.two,
.dudu-content-filters .column.four{
	display:flex;
	flex-direction:column;
	justify-content:flex-end;
	flex:1 1 180px;
	width:auto !important;
	min-width:160px;
	max-width:320px;
	margin:0;
	padding:0;
	box-sizing:border-box;
}
.dudu-content-filters .column.dudu-filter-actions{
	flex:0 0 auto;
	min-width:auto;
	max-width:none;
	align-self:flex-end;
}
.dudu-content-filters label{
	margin-top:0.15em;
	margin-bottom:-0.5em;
	min-height:0;
}
.dudu-content-filters select,
.dudu-content-filters input[type="text"],
.dudu-content-filters input[type="search"],
.dudu-content-filters input[type="number"],
.dudu-content-filters input[type="date"],
.dudu-content-filters .dudu-input-with-icon > input{
	width:100%;
	height:2.35em;
	min-height:2.35em;
	margin:0;
	box-sizing:border-box;
	vertical-align:middle;
}
.dudu-content-filters .btn,
.dudu-content-filters button.btn{
	height:2.35em;
	min-height:2.35em;
	margin:0;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	box-sizing:border-box;
	white-space:nowrap;
}
.dudu-content-filters .dudu-filter-meta{
	display:flex;
	align-items:center;
	min-height:2.35em;
	color:#5a6b73;
	font-style:italic;
	white-space:nowrap;
}

/* Input de búsqueda con lupa interna */
.dudu-input-with-icon{
	position:relative;
	display:block;
	width:100%;
}
.dudu-input-with-icon > i{
	position:absolute;
	left:0.7em;
	top:50%;
	transform:translateY(-50%);
	font-size:1em;
	line-height:1;
	color:#59b6b1;
	pointer-events:none;
	z-index:1;
}
.dudu-input-with-icon > input,
.dudu-input-with-icon > input[type="search"],
.dudu-input-with-icon > input[type="text"],
.dudu-input-with-icon > input[type="number"],
.dudu-input-with-icon > select{
	width:100%;
	box-sizing:border-box;
	padding-left:2.15em;
	margin:0;
}

.lectionary-filters-row{
	/* alias: usa las mismas reglas que .dudu-content-filters */
}
.lectionary-date-field{
	display:flex;
	flex-direction:row;
	align-items:center;
	gap:8px;
	width:100%;
}
.lectionary-date-field input[type="date"]{
	flex:1 1 auto;
	min-width:0;
	width:auto;
	height:2.35em;
	min-height:2.35em;
	margin:0;
	box-sizing:border-box;
}
.lectionary-date-field .btn{
	flex:0 0 auto;
	height:2.35em;
	min-height:2.35em;
	margin:0;
	white-space:nowrap;
}

@media (max-width: 720px){
	.dudu-content-filters .column,
	.dudu-content-filters .column.inner,
	.dudu-content-filters .column.one,
	.dudu-content-filters .column.two,
	.dudu-content-filters .column.four{
		flex:1 1 100%;
		max-width:none;
	}
}

#modal-lectionary-catalog .dm-modal{
	overflow:hidden;
}
#modal-lectionary-catalog .dm-body{
	padding:12px 16px;
	overflow-x:hidden;
}
#modal-lectionary-catalog .box{
	margin:0;
	width:100%;
	max-width:100%;
	box-sizing:border-box;
}
#modal-lectionary-catalog .btn-row .btn{
	margin:1em 0.5em 0.5em 0;
}
.lectionary-catalog-item{
	display:block;
	margin-bottom:6px;
}
.lectionary-catalog-section{
	margin-top:16px;
}

.dudu-stack-list.lectionary-pick-list > li{
	display:flex;
	flex-direction:row;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	padding:8px 10px;
}

.lectionary-pick-text{
	flex:1 1 auto;
	min-width:0;
	line-height:1.35;
	color:#334155;
	text-align:left;
}

.lectionary-pick-actions{
	display:flex;
	flex-direction:row;
	align-items:center;
	justify-content:flex-end;
	gap:6px;
	flex:0 0 auto;
	margin-left:auto;
}

.lectionary-pick-actions .btn{
	margin:0;
	padding:0.35em 0.9em;
	width:auto;
}

.lectionary-pick-actions .icon-icons-48.btn{
	padding:0.35em 0.45em;
	margin:0;
	border-radius:5px;
	border:2px solid transparent;
	display:inline-block;
	line-height:1;
	box-shadow:0 4px 10px rgba(0, 59, 76, 0.08);
}

.print-source-hidden {
	position: fixed;
	left: -99999px;
	top: 0;
	width: 210mm;
	background: #fff;
	z-index: -1;
}

.print-frame-hidden {
	position: fixed;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
	border: 0;
}

/* =========================================================
   PLANIFICACIÓN – observación UTP y listados de revisión
   ========================================================= */
.dudu-observation{
	border-left:4px solid #f59e0b;
	background:#fffaf0;
}

.dudu-observation-head{
	display:flex;
	align-items:flex-start;
	gap:10px;
	margin-bottom:10px;
}

.dudu-observation-icon{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:28px;
	height:28px;
	flex:0 0 auto;
}

.dudu-observation-icon i{
	font-size:18px;
}

.dudu-observation-title{
	display:flex;
	flex-direction:column;
	gap:4px;
	min-width:0;
}

.dudu-observation-title label{
	margin:0;
	font-weight:700;
	color:#003b4c;
}

.dudu-observation-meta{
	font-size:12px;
	line-height:1.3;
	color:#587286;
}

.dudu-observation-body{
	margin:0;
	padding:10px 12px;
	border-radius:8px;
	background:#ffffff;
	border:1px solid #f1e4c8;
	color:#0f172a;
	line-height:1.45;
}

.dudu-approval-unit{
	width:100%;
}

.dudu-approval-unit > summary{
	cursor:pointer;
	list-style:none;
	display:flex;
	flex-direction:column;
	gap:4px;
	padding:0;
	margin:0;
	color:#003b4c;
}

.dudu-approval-unit > summary::-webkit-details-marker{
	display:none;
}

.dudu-approval-unit-meta{
	font-size:12px;
	font-weight:500;
	color:#587286;
}

.dudu-soft-hr{
	width:100%;
	margin:0.35em 0;
	border:0;
	height:1px;
	background:linear-gradient(to right, #003b4c, #59b6b1);
	border-radius:3px;
	transform:scaleY(0.5);
	opacity:0.75;
}

.dudu-stack-list{
	list-style:none;
	margin:8px 0 0 0;
	padding:0;
	display:flex;
	flex-direction:column;
	gap:8px;
}

.dudu-stack-list > li{
	display:flex;
	flex-direction:column;
	gap:3px;
	padding:0px 2px;
	border:1px solid #e7eef2;
	border-radius:8px;
	background:#f8fbfb;
}

.dudu-stack-list-code{
	font-weight:700;
	color:#003b4c;
	line-height:1.3;
}

.dudu-stack-list-text{
	color:#334155;
	line-height:1.4;
}

.dudu-stack-list-empty{
	border-style:dashed;
	background:#ffffff;
	color:#587286;
}

.dudu-estado-badge{
	display:inline-block;
	font-size:11px;
	font-weight:700;
	line-height:1.2;
	padding:4px 10px;
	border-radius:999px;
	border:1px solid transparent;
	white-space:nowrap;
	vertical-align:middle;
}

.dudu-estado-badge.estado-borrador{
	background:#eef6f6;
	color:#5f7f7e;
	border-color:#d5e6e5;
}

.dudu-estado-badge.estado-revision{
	background:#e8f1ff;
	color:#2563eb;
	border-color:#bfdbfe;
}

.dudu-estado-badge.estado-observada{
	background:#fff7e6;
	color:#d97706;
	border-color:#fde68a;
}

.dudu-estado-badge.estado-alerta{
	background:#fff1f2;
	color:#e11d48;
	border-color:#fecdd3;
}

.dudu-estado-badge.estado-aprobada{
	background:#e9fbf0;
	color:#16a34a;
	border-color:#bbf7d0;
}

.dudu-estado-badge.estado-cerrada{
	background:#f3e8ff;
	color:#9333ea;
	border-color:#e9d5ff;
}

.dudu-estado-badge.estado-planificada{
	background:#e8f1ff;
	color:#2563eb;
	border-color:#bfdbfe;
}

.dudu-estado-badge.estado-en-desarrollo{
	background:#fff7e6;
	color:#d97706;
	border-color:#fde68a;
}

.dudu-estado-badge.estado-finalizada{
	background:#e9fbf0;
	color:#16a34a;
	border-color:#bbf7d0;
}

.dudu-page-title-meta .dudu-estado-badge{
	margin-left:8px;
}

.dudu-page-title-hint{
	margin:6px 0 0;
	font-size:12px;
	line-height:1.35;
	color:#7a8f9c;
}

.dudu-cycle-empty{
	display:inline-block;
	min-width:28px;
	color:#9bb0bc;
	font-weight:600;
	letter-spacing:0.02em;
}

.dudu-kv-list{
	margin:0;
	padding:0;
}

.dudu-kv-row{
	display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 2px;
    border-bottom: 1px solid #e7eef2;
}

.dudu-kv-row:last-child{
	border-bottom:0;
}

.dudu-kv-row dt{
	margin:0;
	font-size:12px;
	font-weight:600;
	color:#587286;
}

.dudu-kv-row dd{
	margin:0;
	text-align:right;
	font-size:12px;
	font-weight:700;
	color:#003b4c;
}

.dudu-summary-metrics{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-direction:column;
	gap:10px;
}

.dudu-summary-metrics > li{
	display:flex;
	align-items:center;
	gap:12px;
	border:1px solid #e7eef2;
	border-radius:10px;
	background:#f8fbfb;
}

.dudu-summary-metric-icon{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:34px;
	height:30px;
	border-radius:50%;
	background:#e6f7f5;
	color:#00796f;
	flex:0 0 auto;
}

.dudu-summary-metric-body{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	width:100%;
	min-width:0;
}

.dudu-summary-metric-label{
	font-size:12px;
	font-weight:600;
	color:#334155;
}

.dudu-summary-metric-value{
	font-size:12px;
	font-weight:800;
	color:#003b4c;
}

.dudu-plain-text{
	margin:0;
	color:#334155;
	line-height:1.45;
}

.dudu-table-foot{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:10px;
	margin-top:10px;
	padding-top:10px;
	border-top:1px solid #e7eef2;
	font-size:13px;
	color:#587286;
}

.dudu-table-foot b{
	color:#003b4c;
	font-size:15px;
}

.dudu-ficha-list{
	list-style:none;
	margin:0;
	padding:0;
}

.dudu-ficha-list > li{
	display:flex;
	flex-direction:column;
	gap:4px;
	padding:12px 2px;
	border-bottom:1px solid #e7eef2;
}

.dudu-ficha-list > li:last-child{
	border-bottom:0;
}

.dudu-ficha-list-label{
	font-size:13px;
	font-weight:700;
	color:#003b4c;
}

.dudu-ficha-list-text{
	color:#334155;
	line-height:1.45;
}

.dudu-timeline{
	list-style:none;
	margin:8px 0 0 0;
	padding:0 0 0 18px;
	position:relative;
}

.dudu-timeline::before{
	content:"";
	position:absolute;
	left:5px;
	top:6px;
	bottom:6px;
	width:2px;
	background:#e7eef2;
}

.dudu-timeline > li{
	position:relative;
	padding:0 0 18px 18px;
}

.dudu-timeline > li:last-child{
	padding-bottom:0;
}

.dudu-timeline-dot{
	position:absolute;
	left:-18px;
	top:4px;
	width:12px;
	height:12px;
	border-radius:50%;
	background:#b7d4d3;
	box-shadow:0 0 0 3px #fff;
	border:2px solid #fff;
}

.dudu-timeline-dot.estado-revision{ background:#3b82f6; }
.dudu-timeline-dot.estado-observada{ background:#f59e0b; }
.dudu-timeline-dot.estado-aprobada{ background:#22c55e; }
.dudu-timeline-dot.estado-cerrada{ background:#a855f7; }
.dudu-timeline-dot.estado-borrador{ background:#b7d4d3; }

.dudu-timeline-meta{
	font-size:12px;
	font-weight:600;
	color:#587286;
	margin-bottom:6px;
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:8px;
}

.dudu-timeline-role{
	display:inline-block;
	font-size:10px;
	font-weight:700;
	padding:2px 8px;
	border-radius:999px;
	background:#eef6f6;
	color:#5f7f7e;
}

.dudu-timeline-role.utp{
	background:#e8f1ff;
	color:#2563eb;
}

.dudu-timeline-states{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:6px;
	margin-bottom:6px;
}

.dudu-timeline-arrow{
	color:#94a3b8;
	font-weight:700;
}

.dudu-timeline-comment{
	margin:0;
	padding:10px 12px;
	border-radius:8px;
	background:#f8fbfb;
	border:1px solid #e7eef2;
	color:#0f172a;
	line-height:1.45;
}

/* =========================================================
   HORARIOS – matriz pastel
========================================================= */
.schedule-layout{
	display:grid;
	grid-template-columns: 280px 1fr;
	gap:16px;
	align-items:start;
}
@media (max-width: 980px){
	.schedule-layout{ grid-template-columns: 1fr; }
}
.schedule-versions h2,
.schedule-matrix-wrap h2{
	margin:0 0 12px 0;
}
.schedule-version-item{
	border:1px solid #E5E8E8;
	border-radius:10px;
	padding:12px;
	margin-bottom:10px;
	cursor:pointer;
	background:#fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.schedule-version-item:hover,
.schedule-version-item.is-active{
	border-color:#7FB3D5;
	box-shadow:0 0 0 2px rgba(127,179,213,.15);
}
.schedule-version-title{
	font-weight:700;
	color:#2C3E50;
}
.schedule-version-meta{
	font-size:12px;
	color:#7F8C8D;
	margin:4px 0 8px;
}
.schedule-badge{
	display:inline-block;
	padding:3px 8px;
	border-radius:999px;
	font-size:11px;
	font-weight:700;
	background:#F2F3F4;
	color:#566573;
}
.schedule-badge.state-1{ background:#FCF3CF; color:#7D6608; }
.schedule-badge.state-2{ background:#D5F5E3; color:#196F3D; }
.schedule-badge.state-3{ background:#D6EAF8; color:#1A5276; }
.schedule-badge.state-4{ background:#FADBD8; color:#922B21; }
.schedule-matrix-header{
	display:flex;
	justify-content:space-between;
	gap:12px;
	flex-wrap:wrap;
	align-items:flex-start;
	margin-bottom:12px;
}
.schedule-matrix-meta{
	margin:0;
	color:#7F8C8D;
	font-size:13px;
}
.schedule-matrix-table{
	width:100%;
	border-collapse:separate;
	border-spacing:0;
	table-layout:fixed;
	min-width:720px;
}
.schedule-matrix-table th,
.schedule-matrix-table td{
	border:1px solid #D5DBDB;
	padding:8px;
	vertical-align:middle;
	box-sizing:border-box;
}
.schedule-matrix-table th{
	background:#F4F6F7;
	color:#2C3E50;
	font-weight:700;
	text-align:center;
	height:36px;
}
.schedule-matrix-table th:not(.schedule-block-col){
	width:calc((100% - 120px) / 5);
}
.schedule-block-col{
	width:120px;
	background:#FAFAFA;
	text-align:left;
	vertical-align:middle;
}
.schedule-block-col strong{
	display:block;
	font-size:12px;
	line-height:1.2;
}
.schedule-block-col small{
	display:block;
	color:#7F8C8D;
	margin-top:2px;
	font-size:11px;
}
.schedule-break{
	background:#F2F3F4 !important;
	color:#7F8C8D;
	text-align:center;
	font-weight:600;
	height:36px;
	padding:6px 10px;
}
.schedule-cell{
	min-height:64px;
	height:auto;
	text-align:center;
	overflow:visible;
	vertical-align:middle;
}
.schedule-cell-content{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:2px;
	height:100%;
	min-height:0;
	overflow:visible;
	padding:4px 2px;
}
.schedule-cell strong,
.schedule-cell small{
	display:block;
	width:100%;
	max-width:100%;
	margin:0;
	line-height:1.25;
}
.schedule-cell strong{
	color:#2C3E50;
	font-size:12px;
	font-weight:700;
	overflow:visible;
	white-space:normal;
	overflow-wrap:anywhere;
	word-break:break-word;
}
.schedule-cell small{
	color:#566573;
	font-size:11px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.schedule-groups-label{
	cursor:help;
	border-bottom:1px dotted rgba(86,101,115,.55);
	outline:none;
}
.schedule-groups-label:focus{
	color:#003b4c;
	border-bottom-color:#59b6b1;
}
.schedule-cell-editable{
	cursor:pointer;
	transition: box-shadow .15s ease, outline .15s ease;
}
.schedule-cell-editable:hover{
	outline:2px solid #59b6b1;
	outline-offset:-2px;
	box-shadow: inset 0 0 0 1px rgba(89,182,177,.25);
}
.schedule-cell-empty{
	height:100%;
	display:flex;
	align-items:center;
	justify-content:center;
}
.schedule-cell-empty small{
	color:#AAB7B8;
	font-style:italic;
	white-space:nowrap;
}
.schedule-cell-multi .schedule-cell-content{
	justify-content:flex-start;
	gap:4px;
}
.schedule-cell-multi .schedule-cell-activity{
	border-radius:4px;
	padding:4px 4px 2px;
}
.schedule-cell-activity-list{
	margin:0 0 8px;
}
.schedule-cell-activity-item{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:12px;
	padding:8px 0;
	border-bottom:1px solid #E5E8E8;
}
.schedule-cell-activity-item strong{
	display:block;
	color:#2C3E50;
}
.schedule-cell-activity-item small{
	color:#566573;
}
.schedule-cell-activity-actions{
	display:flex;
	align-items:center;
	gap:8px;
	flex-shrink:0;
}
.schedule-cell-activity-actions .btn{
	margin:0;
	padding:0.35em 0.45em;
	border-radius:5px;
	border:3px solid transparent;
	box-sizing:border-box;
	display:inline-block;
	line-height:1;
	cursor:pointer;
	box-shadow:0 4px 10px rgba(0, 59, 76, 0.08);
}
.schedule-cell-activity-actions .color-secundary:hover{
	background:#fff;
	color:#59b6b1;
	border-color:#59b6b1;
}
.schedule-cell-activity-actions .color-alert:hover{
	background:#fff;
	color:#e11d48;
	border-color:#e11d48;
}
.schedule-cell-activity-actions .btn:hover:before{
	color:inherit;
}
.schedule-cell-popup-meta{
	margin:0 0 12px;
	color:#566573;
}
.schedule-cell-popup-meta small{
	display:inline;
	margin-left:4px;
}
#modal-schedule-cell .dm-modal{
	overflow:hidden;
}
#modal-schedule-cell .dm-body{
	padding:12px;
	overflow-x:hidden;
	max-height:none;
}
#modal-schedule-cell .box{
	margin:0;
	width:100%;
	max-width:100%;
	box-sizing:border-box;
}
#modal-schedule-cell .box .row.four{
	gap:16px;
}
#modal-schedule-cell .box .column.inner,
#modal-schedule-cell .box .column.four{
	width:100% !important;
	max-width:100%;
	box-sizing:border-box;
	margin-left:0;
	margin-right:0;
	min-width:0;
}
#modal-schedule-cell .box hr{
	width:100%;
	margin:0.5em 0;
}
#modal-schedule-cell .btn-row .btn{
	margin:1em 0.5em 0.5em 0;
}

body.dudu-nav-busy #side-nav li.menu,
body.dudu-nav-busy #side-nav .submenu li,
body.dudu-nav-busy .dudu-tab,
body.dudu-nav-busy .dudu-breadcrumb a{
	pointer-events:none;
	cursor:wait;
}

/* Controles bloqueados: cursor de prohibido en todo el sistema */
:disabled,
[disabled],
[aria-disabled="true"],
.disabled,
.btn:disabled,
.btn[disabled],
.btn.disabled,
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
input[type="checkbox"]:disabled,
input[type="radio"]:disabled,
input[type="checkbox"][disabled],
input[type="radio"][disabled],
fieldset:disabled,
fieldset:disabled *,
.select2-container--disabled,
.select2-container--disabled .select2-selection,
.select2-container--disabled .select2-selection--single,
.select2-container--disabled .select2-selection--multiple,
.select2-container--disabled .select2-selection__rendered,
.select2-container--disabled .select2-selection__arrow,
.select2-container--disabled .select2-selection__choice,
.extreme_links_left_disabled,
.extreme_links_right_disabled,
.extreme_links_left_disabled a,
.extreme_links_right_disabled a,
label:has(> :disabled),
label:has(> [disabled]),
label:has(> [aria-disabled="true"]),
*:has(> .disabled),
td:has(> .disabled),
th:has(> .disabled) {
	cursor: not-allowed !important;
}

/* Asignaturas por profesor — layout Por profesor */
/* Título/subtítulo + i: misma separación (pipe) que entre pestañas */
.dudu-page-title-line{
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
}
.dudu-page-title-line .dudu-page-title-heading,
.dudu-page-title-line .dudu-page-title-meta{
	margin: 0;
	flex: 0 1 auto;
	min-width: 0;
}
.dudu-page-title-sep{
	position: relative;
	flex: 0 0 22px;
	align-self: stretch;
	min-height: 1.15em;
}
.dudu-page-title-sep::before{
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1px;
	height: 22px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: linear-gradient(
		to bottom,
		rgba(190,210,220,0),
		rgba(160,185,200,.95),
		rgba(190,210,220,0)
	);
}
/* Pelotita alineada al porte de las letras de la línea */
.dudu-title-help-btn.dudu-page-help-btn{
	flex: 0 0 auto;
	width: 1.28em;
	height: 1.28em;
	font-size: 1.12em;
	line-height: 1;
	align-self: center;
	transform: none;
}
.dudu-page-title-line.is-meta .dudu-title-help-btn.dudu-page-help-btn{
	width: 1.1em;
	height: 1.1em;
	font-size: 0.95em;
}
.dudu-title-help-btn.dudu-page-help-btn:hover,
.dudu-title-help-btn.dudu-page-help-btn:focus{
	transform: none;
}
.st-progress{
	min-width: 220px;
	max-width: 280px;
	text-align: right;
	user-select: none;
}
.st-progress-top{
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 4px;
}
.st-progress-label{
	font-size: 12px;
	font-weight: 600;
	color: #003b4c;
	text-transform: none;
	letter-spacing: 0;
}
.st-progress-label.is-done{
	color: #0a6d75;
}
.st-progress-pct{
	font-size: 12px;
	font-weight: 700;
	color: #59b6b1;
}
.st-progress-track{
	height: 8px;
	border-radius: 999px;
	background: #e4eef0;
	overflow: hidden;
}
.st-progress-fill{
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #59b6b1, #0a6d75);
	transition: width .35s ease;
}
.st-progress-fill.is-done{
	background: #28B463;
}
.st-progress-meta{
	margin: 4px 0 0;
	font-size: 11px;
	color: #607078;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.3;
}
.dudu-page-title-aside:has(.st-progress),
.st-page .dudu-page-title-aside{
	flex-direction: row;
	align-items: center;
	gap: 14px;
}
.st-progress{
	cursor: default;
}
.st-progress.is-clickable{
	cursor: pointer;
}
@media (max-width: 720px){
	.st-progress{
		min-width: 0;
		max-width: none;
		width: 100%;
		text-align: left;
	}
	.st-progress-top{
		justify-content: space-between;
	}
	.dudu-page-title-aside:has(.st-progress),
	.st-page .dudu-page-title-aside{
		width: 100%;
		align-items: stretch;
	}
}

/* Página: ocupa el viewport; el panel (.st-shell) toma el alto restante (% del padre).
   .box { height: fit-content } impide estirar sin override explícito. */
.container.row > .sections-stack.st-page{
	height: 100vh;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding-bottom: 0;
}
.st-page > .sections-stack{
	flex: 0 0 auto;
}
.st-page > .sections-stack:has(.st-shell){
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.box.st-shell,
section.box.st-shell{
	padding: 0 !important;
	overflow: hidden;
	flex: 1 1 auto !important;
	/* auto (no fit-content): el flex del padre define el alto real */
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	display: flex !important;
	flex-direction: column;
	margin-top: 0.25em !important;
	margin-bottom: 0.35em !important;
	box-sizing: border-box;
}
.st-layout{
	display: flex;
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
	align-items: stretch;
}
.st-sidebar{
	width: 340px;
	max-width: 40%;
	border-right: 1px solid rgba(0,0,0,.08);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #f7fafb;
	min-height: 0;
}
.st-sidebar .dudu-content-filters{
	margin: 0;
}
.st-sidebar .dudu-content-filters .column.inner{
	width: 100%;
}
.st-side-tabs .dudu-tabs,
.st-modal-tabs .dudu-tabs{
	flex-wrap: wrap;
}
.st-side-tabs .dudu-tab,
.st-modal-tabs .dudu-tab{
	padding: 8px 10px;
}
.st-side-tabs .dudu-tab-status,
.st-modal-tabs .dudu-tab-status{
	margin-left: 4px;
	opacity: .75;
	font-size: 11px;
}
.st-teacher-list{
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-right: 2px;
	-webkit-overflow-scrolling: touch;
}
.st-teacher-card{
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: 1px solid transparent;
	background: #fff;
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
}
.st-teacher-card:hover{
	border-color: rgba(0,150,160,.25);
}
.st-teacher-card.is-active{
	background: rgba(0,150,160,.1);
	border-color: rgba(0,150,160,.35);
}
.st-avatar{
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #d9eef0;
	color: #0a6d75;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex: 0 0 auto;
}
.st-avatar.lg{
	width: 52px;
	height: 52px;
	font-size: 16px;
}
.st-teacher-main{
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.st-teacher-name{
	font-weight: 600;
	color: #24343a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.st-teacher-subjects{
	font-size: 12px;
	color: #607078;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.st-teacher-subjects.muted,
.st-empty-panel .muted,
.st-catalog-name em{
	opacity: .7;
	font-style: normal;
}
.st-count{
	min-width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #e8f4f5;
	color: #0a6d75;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.st-pager{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #607078;
	padding-top: 4px;
}
.st-pager-actions{
	display: flex;
	gap: 4px;
}
.st-detail{
	flex: 1;
	padding: 20px 22px;
	min-width: 0;
	min-height: 0;
	overflow: auto;
}
.st-detail-empty,
.st-empty-panel{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #607078;
	min-height: 0;
	height: 100%;
	text-align: center;
}
.st-detail-head{
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}
.st-detail-title-row{
	display: flex;
	align-items: center;
	gap: 8px;
}
.st-detail-title-row h4{
	margin: 0;
}
.st-detail-meta{
	margin: 4px 0 0;
	color: #607078;
	font-size: 13px;
}
.st-detail-section-head{
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}
.st-detail-section-head h5{
	margin: 0 0 4px;
}
.st-detail-section-head p{
	margin: 0;
	color: #607078;
	font-size: 13px;
}
.st-tag{
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef5f6;
	color: #345;
	font-size: 11px;
}
#modal-schedule-block .dm-modal{
	max-width: 640px;
	width: clamp(280px, 92vw, 640px);
}
.st-block-form{
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.st-block-form h5{
	margin: 0 0 12px;
}
.st-block-form .btn-row{
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}
.tabla tbody tr.is-editing td{
	background: rgba(0,150,160,.08);
}
.st-teacher-card.st-skeleton,
.st-catalog-item.st-skeleton{
	min-height: 58px;
	background: linear-gradient(90deg, #eef2f3 25%, #f7fafa 50%, #eef2f3 75%);
	background-size: 200% 100%;
	animation: stPulse 1.2s infinite linear;
}
@keyframes stPulse{
	0%{ background-position: 200% 0; }
	100%{ background-position: -200% 0; }
}
/* Overlay sólo sobre el contenido; no tapa el menú lateral */
#modal-subject-teacher-add.dm-overlay{
	left: var(--side-w);
	right: 0;
	width: auto;
	z-index: 990;
}
#modal-subject-teacher-add.dm-lg .dm-modal,
#modal-subject-teacher-add .dm-modal{
	max-width: none;
	width: calc(100% - 48px);
	margin: 4vh auto;
}
#modal-subject-teacher-add .dm-body{
	max-height: calc(92vh - 90px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
#modal-subject-teacher-add .dm-body > .box{
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: 100%;
	flex: 1;
}
#modal-subject-teacher-add .st-modal-help{
	margin: 0 0 12px;
	color: #607078;
	font-size: 13px;
	flex: 0 0 auto;
}
#modal-subject-teacher-add .dudu-content-filters,
#modal-subject-teacher-add .st-modal-tabs{
	flex: 0 0 auto;
}
#modal-subject-teacher-add .st-modal-tabs{
	margin: 8px 0 14px;
}
#modal-subject-teacher-add .st-catalog-list{
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
	padding-right: 12px;
	flex: 1 1 auto;
	min-height: 180px;
	max-height: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
}
#modal-subject-teacher-add .st-catalog-item{
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
}
#modal-subject-teacher-add .st-catalog-item:hover{
	border-color: rgba(0,150,160,.35);
}
#modal-subject-teacher-add .st-catalog-main{
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}
#modal-subject-teacher-add .st-catalog-name{
	font-weight: 600;
	color: #24343a;
}
#modal-subject-teacher-add .st-catalog-meta{
	font-size: 12px;
	color: #607078;
}
#modal-subject-teacher-add .st-catalog-teachers{
	flex: 0 1 42%;
	max-width: 280px;
	margin-left: auto;
	text-align: right;
	font-size: 12px;
	line-height: 1.35;
	color: #8a9aa1;
	align-self: center;
}
#modal-subject-teacher-add .st-catalog-teachers.has-teachers{
	color: #0a6d75;
	font-weight: 600;
}
@media (max-width: 720px){
	#modal-subject-teacher-add .st-catalog-item{
		flex-wrap: wrap;
	}
	#modal-subject-teacher-add .st-catalog-teachers{
		flex: 1 1 100%;
		max-width: none;
		margin-left: 28px;
		text-align: left;
	}
}
#modal-subject-teacher-add .btn-row{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}
#modal-subject-teacher-add .st-modal-count{
	margin-right: auto;
	color: #607078;
	font-size: 13px;
}
.st-empty{
	padding: 18px 8px;
	color: #607078;
}
/* Evita flash de enter/leave al reasignar filtros del modal (ngAnimate + transition de .dudu-tab) */
#modal-subject-teacher-add .st-modal-tabs .dudu-tab.ng-enter,
#modal-subject-teacher-add .st-modal-tabs .dudu-tab.ng-leave,
#modal-subject-teacher-add .st-modal-tabs .dudu-tab.ng-enter-active,
#modal-subject-teacher-add .st-modal-tabs .dudu-tab.ng-leave-active{
	transition: none !important;
	animation: none !important;
	opacity: 1 !important;
	max-width: none !important;
}
@media (max-width: 900px){
	.container.row > .sections-stack.st-page{
		height: auto;
		min-height: 0;
	}
	.st-page > .sections-stack:has(.st-shell){
		flex: 0 0 auto;
	}
	.box.st-shell,
	section.box.st-shell{
		height: auto !important;
		max-height: none !important;
		flex: 0 0 auto !important;
	}
	.st-layout{
		flex-direction: column;
		height: auto;
		min-height: 0;
		max-height: none;
	}
	.st-sidebar{
		width: 100%;
		max-width: none;
		border-right: 0;
		border-bottom: 1px solid rgba(0,0,0,.08);
		max-height: 360px;
	}
	.st-teacher-list{
		max-height: 240px;
	}
	#modal-subject-teacher-add.dm-overlay{
		left: 0;
	}
	#modal-subject-teacher-add.dm-lg .dm-modal,
	#modal-subject-teacher-add .dm-modal{
		width: calc(100% - 24px);
		margin: 2vh auto;
	}
}

@media (max-width: 1024px){
	#modal-subject-teacher-add.dm-overlay{
		left: 0;
	}
}

/* Cursos anuales: bloques del formulario */
.annual-course-group + .annual-course-group{
	margin-top: 1.25em;
	padding-top: 1.15em;
	border-top: 1px solid #e3e8ee;
}

/* Cursos anuales: Curso + plan (mensaje o selector) en la misma fila */
.annual-course-plan-row{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75em;
	width: 100%;
}
.annual-course-plan-course{
	flex: 1 1 100%;
	min-width: 0;
}
.annual-course-plan-row.has-plan-side .annual-course-plan-course,
.annual-course-plan-row.has-plan-side .annual-course-plan-side{
	flex: 0 0 calc(50% - 0.375em);
	max-width: calc(50% - 0.375em);
	min-width: 0;
	box-sizing: border-box;
}
.annual-course-plan-side{
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 2.75em;
}
.annual-course-plan-msg{
	margin: 0.55em 0 0;
	line-height: 1.35;
}

