/* Layout del portal: menú lateral en escritorio, barra superior en celular. */
* { box-sizing: border-box; }
.odr-app { display: flex; min-height: 100vh; background: #F4F5F8; }
.odr-side { flex: none; width: 248px; background: #111735; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 14px 18px; position: sticky; top: 0; height: 100vh; }
.odr-side .marca { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 26px; color: #FFFFFF; margin: 0 0 26px 13px; letter-spacing: 0.5px; }
.odr-side .marca span { color: #32AB96; }
.odr-side .nav { display: flex; flex-direction: column; gap: 4px; }
.odr-side .nav svg { width: 18px; height: 18px; flex: none; }
.odr-user { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 12px; color: #FFFFFF; }
.odr-user b { font-size: 12.5px; display: block; }
.odr-user small { font-size: 10.5px; color: #C4C3E4; }
.odr-user a { margin-left: auto; color: #C4C3E4; font-size: 11px; font-weight: 700; }
.odr-firma { margin: 14px 0 0; text-align: center; font-family: 'Outfit', sans-serif; font-size: 11px; color: rgba(196,195,228,0.55); }
.odr-firma span { color: #32AB96; }
.av { width: 34px; height: 34px; border-radius: 50%; background: #C4C3E4; color: #111735; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.odr-main { flex: 1; min-width: 0; }
.odr-cont { max-width: 1152px; margin: 0 auto; padding: 34px 36px 60px; display: flex; flex-direction: column; gap: 22px; }
.odr-top { display: none; }
.row { display: flex; align-items: center; gap: 12px; }
.row.sp { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.g2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: #FFFFFF; border: 1px solid #E4E6EE; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-size: 26px; font-weight: 800; color: #111735; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: #5D6270; font-weight: 600; }
.kpi.alert { border-color: #F2B8B5; background: #FFF8F7; }
.kpi.alert b { color: #AE2231; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; color: #6B7080; text-transform: uppercase; letter-spacing: 0.6px; padding: 14px 12px 10px; border-bottom: 1px solid #E4E6EE; }
.tbl td { font-size: 12.5px; color: #3C4154; padding: 12px; border-bottom: 1px solid #F0F1F5; vertical-align: middle; }
.tbl td b { color: #111735; }
.tabla-scroll { overflow-x: auto; }
.fl { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fl label, .fl .t { font-size: 13px; font-weight: 700; color: #111735; }
.fl .req { color: #AE2231; }
.fl .ayuda { font-size: 11.5px; color: #6B7080; line-height: 1.5; }
.fl .err { font-size: 11.5px; font-weight: 600; color: #AE2231; line-height: 1.45; }
.inp { box-sizing: border-box; width: 100%; border: 1.5px solid #CFD1DC; border-radius: 10px; padding: 12px 14px; font-family: 'Montserrat', sans-serif; font-size: 14px; color: #111735; background: #FFFFFF; }
.inp:focus { outline: 2px solid #32AB96; outline-offset: 1px; border-color: #111735; }
.inp.mal { border-color: #AE2231; background: #FFF8F7; }
textarea.inp { resize: vertical; min-height: 96px; line-height: 1.5; }
.opciones { display: flex; gap: 10px; flex-wrap: wrap; }
.opciones label { display: flex; align-items: center; gap: 9px; border: 1.5px solid #CFD1DC; border-radius: 10px; padding: 11px 18px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: #5D6270; background: #FFFFFF; }
.opciones input { accent-color: #111735; }
.opciones label:has(input:checked) { border-color: #111735; background: #ECECF6; color: #111735; font-weight: 700; }
.aviso { border-radius: 12px; padding: 12px 16px; font-size: 13px; line-height: 1.55; }
.aviso.ok { background: #E9F6E3; color: #1D5F3F; }
.aviso.error { background: #FCE9E7; color: #AE2231; }
.aviso.info { background: #E5EEF9; color: #1B4F89; }
.aviso.aq { background: #DDF2ED; color: #0C5E4C; }
.caja { background: #F6F6FC; border-radius: 12px; padding: 14px 16px; font-size: 12.5px; color: #3C4154; line-height: 1.55; }
.tipos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tipo { background: #FFFFFF; border: 1.5px solid #E4E6EE; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: inherit; }
.tipo:hover { border-color: #111735; }
.tipo b { font-size: 17px; color: #111735; }
.tipo span { font-size: 12.5px; color: #5D6270; line-height: 1.5; }
.tl { display: flex; flex-direction: column; }
.tl .p { display: flex; gap: 14px; }
.tl .p .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 2px; box-sizing: border-box; }
.tl .p .lin { width: 2px; flex: 1; min-height: 16px; background: #E4E6EE; margin: 3px 0; }
.tl .p .tx { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; }
.tl .p .tx b { font-size: 13.5px; }
.bit { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #F0F1F5; font-size: 12.5px; line-height: 1.55; }
.bit .d { width: 8px; height: 8px; border-radius: 50%; background: #3A3F8F; margin-top: 6px; flex: none; }
.bit .h { margin-left: auto; color: #6B7080; font-size: 11px; white-space: nowrap; }
details.acc { border: 1.5px solid #CFD1DC; border-radius: 12px; background: #FFFFFF; }
details.acc > summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 13.5px; color: #111735; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc[open] > summary { border-bottom: 1px solid #F0F1F5; }
details.acc .cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
details.acc.rojo > summary { color: #AE2231; }
.archivos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.archivo { border: 1px solid #E4E6EE; border-radius: 12px; overflow: hidden; background: #FFFFFF; color: inherit; display: flex; flex-direction: column; }
.archivo .img { height: 120px; background: #ECECF6 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #6B7080; font-size: 11px; font-weight: 700; }
.archivo .n { padding: 9px 12px; font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #111735; padding: 24px; }
.login form { width: 100%; max-width: 400px; background: #FFFFFF; border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.login .marca { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 30px; color: #111735; }
.login .marca span { color: #32AB96; }
.staging { background: #8E401E; color: #FFFFFF; font-size: 11px; font-weight: 700; text-align: center; padding: 4px; letter-spacing: 0.5px; }

@media (max-width: 900px) {
	.odr-app { flex-direction: column; }
	.odr-side { display: none; }
	.odr-top { display: flex; align-items: center; justify-content: space-between; background: #111735; padding: 12px 16px; position: sticky; top: 0; z-index: 5; }
	.odr-top .marca { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 20px; color: #FFFFFF; }
	.odr-top .marca span { color: #32AB96; }
	.odr-top details { position: relative; }
	.odr-top summary { list-style: none; color: #FFFFFF; font-weight: 700; font-size: 13px; cursor: pointer; }
	.odr-top .menu { position: absolute; right: 0; top: 34px; background: #111735; border-radius: 12px; padding: 10px; width: 240px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
	.odr-top .menu a { color: #C4C3E4; font-size: 13.5px; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
	.odr-top .menu a.on { color: #FFFFFF; background: rgba(255,255,255,0.08); }
	.odr-cont { padding: 18px 16px 40px; gap: 16px; }
	.g2, .grid3, .tipos, .archivos { grid-template-columns: minmax(0, 1fr); }
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h1 { font-size: 21px; }
	.card { padding: 18px; }
	.tbl.resp thead { display: none; }
	.tbl.resp tr { display: block; border-bottom: 1px solid #F0F1F5; padding: 10px 0; }
	.tbl.resp td { display: block; border: none; padding: 3px 0; }
}

/* Calendario nativo (iPhone, Mac, Android, Windows): mismo alto y alineación que los demás campos. */
input[type="date"].inp, input[type="time"].inp { -webkit-appearance: none; appearance: none; min-height: 46px; text-align: left; }
input[type="date"].inp::-webkit-date-and-time-value, input[type="time"].inp::-webkit-date-and-time-value { text-align: left; }
input[type="date"].inp::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }

/* Inicio de la JM: cinco indicadores del mes. */
.kpis.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
