feat: frontend alumnos sam-pruebas (RUT+clave, rendir y mis resultados)

This commit is contained in:
Nurfog committed 2026-09-28 10:58:45 -03:00
commit e6d283e184
26 files changed
+2555

No files matched your search

+402
View File
@@ -0,0 +1,402 @@
/* SAM Pruebas — tema portado de sam-portal (Portal IT / inventario.sam) */
:root {
--primary: #00285d;
--card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
--radius: 12px;
--transition: 0.25s ease;
}
body {
font-family: "Fira Sans", sans-serif;
background-color: #f0f2f5;
min-height: 100vh;
}
/* ============ Login legacy (sidenav sólido #00285d) ============ */
.login-page .sidenav {
background: #00285d;
overflow-x: hidden;
padding-top: 20px;
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
.login-page .login-main-text {
padding: 60px;
}
.login-page .login-main-text img {
width: 80px;
height: 80px;
object-fit: contain;
}
.login-page .main {
padding: 0 24px;
}
@media screen and (max-width: 767px) {
.login-page .login-main-text {
padding: 20px;
}
.login-page .login-main-text h1 {
font-size: 1.5rem;
}
.login-page .main {
padding: 0 12px;
}
}
@media screen and (min-width: 768px) {
.login-page .main {
margin-left: 40%;
}
.login-page .sidenav {
width: 40%;
position: fixed;
z-index: 1;
top: 0;
left: 0;
height: 100vh;
}
}
/* ============ SamShell: sidebar colapsable + contenido ============ */
.sam-shell {
--inv-navy: #16243d;
--inv-blue: #015fc9;
--inv-bg: #f2f5f9;
--inv-muted: #6c788b;
font-family: var(--font-work-sans), system-ui, sans-serif;
color: var(--inv-navy);
}
.sam-shell .sam-sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 78px;
background: linear-gradient(180deg, #16243d 0%, #015fc9 150%);
z-index: 100;
transition: width var(--transition);
display: flex;
flex-direction: column;
overflow-x: hidden;
}
.sam-shell.open .sam-sidebar {
width: 250px;
}
.sam-sidebar .logo-details {
height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 14px;
color: #fff;
white-space: nowrap;
}
.sam-sidebar .logo-details .logo_name {
display: flex;
align-items: center;
gap: 8px;
font-weight: 700;
font-size: 1.1rem;
opacity: 0;
transition: opacity var(--transition);
}
.sam-shell.open .logo-details .logo_name {
opacity: 1;
}
.sam-sidebar .logo-details #btn {
font-size: 1.5rem;
cursor: pointer;
min-width: 50px;
text-align: center;
}
.sam-sidebar .nav-list {
list-style: none;
padding: 8px;
margin: 0;
overflow-y: auto;
flex: 1;
}
.sam-sidebar .nav-list li {
position: relative;
margin: 4px 0;
}
.sam-sidebar .nav-list li a {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: 8px;
color: #dbe4f3;
text-decoration: none;
white-space: nowrap;
}
.sam-sidebar .nav-list li a i {
font-size: 1.4rem;
min-width: 30px;
text-align: center;
}
.sam-sidebar .nav-list li a:hover {
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
.sam-sidebar .nav-list li a.active {
background: #fff;
color: #00285d;
font-weight: 600;
}
.sam-sidebar .links_name {
opacity: 0;
transition: opacity var(--transition);
white-space: nowrap;
}
.sam-shell.open .links_name {
opacity: 1;
}
.sam-shell:not(.open) .links_name,
.sam-shell:not(.open) .name_job,
.sam-shell:not(.open) .logo-details .logo_name .brand-text {
display: none;
}
.sam-shell:not(.open) .logo-details {
justify-content: center;
padding: 0;
}
.sam-shell:not(.open) .profile-details {
justify-content: center;
}
.sam-shell:not(.open) .profile-details .bx-log-out {
margin-left: 0 !important;
}
.sam-sidebar .tooltip {
position: absolute;
left: calc(100% + 12px);
top: 50%;
transform: translateY(-50%);
background: #fff;
color: #00285d;
padding: 4px 10px;
border-radius: 6px;
font-size: 0.85rem;
white-space: nowrap;
opacity: 0;
pointer-events: none;
box-shadow: var(--card-shadow);
}
.sam-shell:not(.open) .nav-list li:hover .tooltip {
opacity: 1;
}
.sam-shell.open .tooltip {
display: none;
}
.sam-sidebar .profile {
padding: 12px;
border-top: 1px solid rgba(255, 255, 255, 0.15);
color: #dbe4f3;
}
.sam-sidebar .profile-details {
display: flex;
align-items: center;
gap: 10px;
white-space: nowrap;
}
.sam-sidebar .profile-details > i {
font-size: 1.8rem;
}
.sam-sidebar .name_job {
opacity: 0;
}
.sam-shell.open .name_job {
opacity: 1;
}
.sam-sidebar .name_job .name {
font-size: 0.9rem;
font-weight: 600;
color: #fff;
}
.sam-sidebar .name_job .job {
font-size: 0.75rem;
opacity: 0.7;
}
.sam-shell .home-section {
margin-left: 78px;
background: var(--inv-bg);
min-height: 100vh;
padding: 16px 20px 40px;
transition: margin-left var(--transition);
}
.sam-shell.open .home-section {
margin-left: 250px;
}
@media screen and (max-width: 767px) {
.sam-shell .home-section,
.sam-shell.open .home-section {
margin-left: 0;
padding: 12px 12px 40px;
}
.sam-shell .sam-sidebar {
transform: translateX(-100%);
width: 250px;
}
.sam-shell.open .sam-sidebar {
transform: translateX(0);
}
.sam-shell .links_name,
.sam-shell .name_job,
.sam-shell .logo-details .logo_name {
opacity: 1;
}
}
/* ============ Hero superior ============ */
.sam-shell .sam-toolbar.sam-hero {
position: relative;
overflow: hidden;
align-items: center;
padding: 1rem 1.25rem;
color: #fff;
border: none;
border-radius: 16px;
background: linear-gradient(135deg, #16243d 0%, #015fc9 100%);
box-shadow: 0 0.5rem 1.25rem rgba(22, 36, 61, 0.13);
}
.sam-shell .sam-hero::after {
content: "";
position: absolute;
width: 240px;
height: 240px;
right: -75px;
bottom: -145px;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 50%;
box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.04),
0 0 0 56px rgba(255, 255, 255, 0.03);
pointer-events: none;
}
.sam-shell .sam-hero-main {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
}
.sam-shell .sam-hero-icon {
display: inline-flex;
flex: 0 0 44px;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
background: rgba(255, 255, 255, 0.14);
font-size: 1.45rem;
}
.sam-shell .sam-eyebrow {
display: block;
margin-bottom: 0.2rem;
color: rgba(255, 255, 255, 0.7);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.sam-shell .sam-hero h5 {
color: #fff;
font-size: clamp(1.15rem, 2vw, 1.4rem);
}
.sam-shell .sam-hero-sub {
color: rgba(255, 255, 255, 0.78);
font-size: 0.82rem;
}
.sam-shell .sam-hero-side {
position: relative;
z-index: 1;
display: inline-flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.4rem 1rem;
padding: 0.55rem 0.7rem;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 12px;
background: rgba(255, 255, 255, 0.1);
font-size: 0.82rem;
}
.sam-shell .sam-hero-side i {
color: #9ed0ff;
}
@media (max-width: 575.98px) {
.sam-shell .sam-toolbar.sam-hero {
flex-direction: column;
align-items: stretch;
}
.sam-shell .sam-hero-side {
justify-content: flex-start;
margin-top: 0.6rem;
}
}
/* ============ Tarjetas, encabezados, tablas y botones ============ */
.sam-shell .section-header {
display: flex;
align-items: center;
gap: 0.8rem;
padding: 0.9rem 1.25rem;
border: none;
border-radius: 14px;
color: #fff;
background: linear-gradient(135deg, #16243d 0%, #015fc9 100%);
box-shadow: 0 0.35rem 1rem rgba(22, 36, 61, 0.12);
font-weight: 600;
font-size: 1.1rem;
}
.sam-shell .section-header .badge {
margin-left: auto;
}
.sam-shell .app-card {
background: #fff;
border: 1px solid rgba(22, 36, 61, 0.09);
border-radius: 16px;
box-shadow: 0 0.35rem 1rem rgba(22, 36, 61, 0.055);
transition: transform var(--transition), box-shadow var(--transition);
}
.sam-shell .app-card:hover {
transform: translateY(-2px);
box-shadow: 0 0.6rem 1.4rem rgba(22, 36, 61, 0.1);
}
.sam-shell .btn-primary {
background-color: var(--inv-blue);
border-color: var(--inv-blue);
}
.sam-shell .btn-primary:hover {
background-color: #014fa8;
border-color: #014fa8;
}
.sam-shell .btn-outline-primary {
color: var(--inv-blue);
border-color: var(--inv-blue);
}
.sam-shell .btn-outline-primary:hover {
background-color: var(--inv-blue);
border-color: var(--inv-blue);
color: #fff;
}
.sam-shell .table thead th {
color: var(--inv-muted);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.sam-shell .text-muted {
color: var(--inv-muted) !important;
}
.row-cards > [class*="col-"] {
margin-bottom: 16px;
}
.sam-shell .bx-border {
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}