/* Student entrance / access monitor — complements auth.css variables */

html.access-monitor-page {
    height: 100%;
    --am-topbar-h: var(--utb-bar-height, 56px);
    --am-footer-h: 3rem;
}

html.access-monitor-page,
body.access-monitor-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body.access-monitor-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Large screens: lock to viewport height; scroll inside columns/cards only */
@media (min-width: 992px) {
    html.access-monitor-page,
    body.access-monitor-page {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    body.access-monitor-page main.auth-main.access-monitor-main {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
    }

    body.access-monitor-page .access-monitor-main-inner {
        flex: 1 1 0;
        min-height: 0;
        max-height: calc(100dvh - var(--am-topbar-h) - var(--am-footer-h));
    }

    /* Readable base size on kiosk desktops (no global zoom) */
    body.access-monitor-page .access-monitor-main-inner {
        font-size: clamp(14px, 0.32vw + 12px, 16px);
    }
}

/* Small / tablet: natural vertical scroll */
@media (max-width: 991.98px) {
    body.access-monitor-page {
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.access-monitor-gutter {
    --am-gutter-x: clamp(0.75rem, 1.25vw, 2.75rem);
    padding-left: var(--am-gutter-x) !important;
    padding-right: var(--am-gutter-x) !important;
    max-width: none;
}

.utb-topbar-access-monitor {
    flex-shrink: 0;
}


.utb-topbar-access-monitor .navbar {
    max-width: none;
}

#am-kiosk-app {
    min-height: 0;
}

.access-monitor-main {
    flex: 1 1 auto;
    min-height: 0;
    background: #e8ebf0;
    padding: 0.4rem 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .access-monitor-main {
        overflow: visible;
        flex: 1 0 auto;
    }
}

.access-monitor-main-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#am-kiosk-app {
    min-height: 120px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.am-kiosk-lock {
    --am-kiosk-maroon: #6f1418;
    --am-kiosk-maroon-dark: #4a0e11;
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    background: #e8ebf0;
    border-radius: 10px;
}

.am-kiosk-lock.d-none {
    display: none !important;
}

.am-kiosk-landing {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(0.35rem, 1vw, 0.75rem) 0.35rem;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.am-kiosk-lock-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(90deg, var(--am-kiosk-maroon-dark), var(--am-kiosk-maroon));
    color: #fff;
    border-radius: 0 0 10px 10px;
    margin-bottom: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(74, 14, 17, 0.25);
}

.am-kiosk-lock-toolbar-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.am-kiosk-lock-toolbar-text {
    font-size: clamp(0.8rem, 1.2vw, 0.92rem);
    line-height: 1.45;
}

.am-kiosk-lock-toolbar-text kbd {
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

/* Hero carousel */
.am-kiosk-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    margin-bottom: 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

body.kiosk-locked-mode .access-monitor-columns {
    visibility: hidden;
    pointer-events: none;
}

.am-kiosk-hero-track {
    display: flex;
    flex-direction: row;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.am-kiosk-hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    background-color: #2a1214;
    box-sizing: border-box;
    overflow: hidden;
}

.am-kiosk-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.am-kiosk-hero-slide--gradient.am-kiosk-hero-slide--tone-0 {
    background-image: linear-gradient(135deg, #3d1518 0%, var(--am-kiosk-maroon) 45%, #8b2630 100%);
}

.am-kiosk-hero-slide--gradient.am-kiosk-hero-slide--tone-1 {
    background-image: linear-gradient(135deg, #1a2a3a 0%, #2c4a62 50%, #1e3344 100%);
}

.am-kiosk-hero-slide--gradient.am-kiosk-hero-slide--tone-2 {
    background-image: linear-gradient(135deg, #2d1f3d 0%, #4a3060 55%, #352448 100%);
}

.am-kiosk-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.am-kiosk-hero-slide--photo .am-kiosk-hero-overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(74, 14, 17, 0.55) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.2) 100%);
}

.am-kiosk-hero-slide--gradient .am-kiosk-hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 70%);
}

.am-kiosk-hero-inner {
    position: relative;
    z-index: 2;
    padding: clamp(0.65rem, 1.8vh, 1.35rem) clamp(0.75rem, 2vw, 1.75rem);
    max-width: min(760px, 94%);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.am-kiosk-hero-eyebrow {
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.am-kiosk-hero-headline {
    font-size: clamp(1.05rem, 2.4vh, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.am-kiosk-hero-sub {
    font-size: clamp(0.82rem, 1.25vw, 1rem);
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: clamp(0.8rem, 2vh, 1.25rem);
    max-width: 42em;
}

.am-kiosk-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.am-kiosk-btn {
    font-weight: 700;
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.am-kiosk-btn-primary {
    background: var(--am-kiosk-maroon);
    border-color: var(--am-kiosk-maroon);
    color: #fff;
}

.am-kiosk-btn-primary:hover {
    background: var(--am-kiosk-maroon-dark);
    border-color: var(--am-kiosk-maroon-dark);
    color: #fff;
}

.am-kiosk-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.am-kiosk-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.am-kiosk-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--am-kiosk-maroon);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.am-kiosk-hero-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.04);
}

.am-kiosk-hero-nav--prev {
    left: clamp(0.35rem, 1.5vw, 1rem);
}

.am-kiosk-hero-nav--next {
    right: clamp(0.35rem, 1.5vw, 1rem);
}

.am-kiosk-hero-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.4rem;
}

.am-kiosk-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.am-kiosk-hero-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

/* Ribbon: features + stats */
.am-kiosk-ribbon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
    .am-kiosk-ribbon {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.am-kiosk-ribbon-features {
    background: #fff;
    padding: clamp(0.85rem, 2vw, 1.35rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.5vw, 1rem);
}

@media (min-width: 768px) {
    .am-kiosk-ribbon-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.am-kiosk-feature {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.am-kiosk-feature-icon {
    flex-shrink: 0;
    color: var(--am-kiosk-maroon);
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.am-kiosk-feature-title {
    font-size: clamp(0.72rem, 1.05vw, 0.82rem);
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: #1a1a1a;
}

.am-kiosk-feature-body {
    font-size: clamp(0.65rem, 0.95vw, 0.74rem);
    color: #555;
    line-height: 1.35;
}

.am-kiosk-ribbon-stats {
    background: linear-gradient(160deg, var(--am-kiosk-maroon-dark), var(--am-kiosk-maroon));
    color: #fff;
    padding: clamp(0.85rem, 2vw, 1.25rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-content: center;
}

@media (min-width: 576px) {
    .am-kiosk-ribbon-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.am-kiosk-stat {
    text-align: center;
}

.am-kiosk-stat-icon {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.am-kiosk-stat-value {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.1;
}

.am-kiosk-stat-label {
    font-size: clamp(0.58rem, 0.85vw, 0.68rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

/* Programs row */
.am-kiosk-programs {
    margin-top: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .am-kiosk-programs {
        grid-template-columns: minmax(200px, 280px) 1fr;
    }
}

.am-kiosk-programs-eyebrow {
    color: var(--am-kiosk-maroon);
    font-size: clamp(0.65rem, 1vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.am-kiosk-programs-title {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.am-kiosk-programs-desc {
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    color: #555;
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.am-kiosk-programs-cta {
    margin-top: 0.25rem;
}

.am-kiosk-programs-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.am-kiosk-program-card {
    flex: 0 0 min(220px, 72vw);
    scroll-snap-align: start;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.am-kiosk-program-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e0e0e0;
}

.am-kiosk-program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.am-kiosk-program-ph {
    width: 100%;
    height: 100%;
}

.am-kiosk-program-ph--0 {
    background: linear-gradient(135deg, #5d4037, #8d6e63);
}

.am-kiosk-program-ph--1 {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
}

.am-kiosk-program-ph--2 {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
}

.am-kiosk-program-ph--3 {
    background: linear-gradient(135deg, #6a1b9a, #ab47bc);
}

.am-kiosk-program-fab {
    position: absolute;
    left: 0.65rem;
    bottom: -0.85rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--am-kiosk-maroon);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(74, 14, 17, 0.35);
}

.am-kiosk-program-card-title {
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    font-weight: 800;
    color: #111;
    margin: 1.1rem 0.75rem 0.35rem;
    line-height: 1.25;
}

.am-kiosk-program-link {
    display: inline-block;
    margin: 0 0.75rem 0.85rem;
    font-size: clamp(0.68rem, 0.95vw, 0.76rem);
    font-weight: 700;
    color: var(--am-kiosk-maroon);
    text-decoration: none;
}

.am-kiosk-program-link:hover {
    text-decoration: underline;
    color: var(--am-kiosk-maroon-dark);
}

.am-end-shift-btn {
    flex-shrink: 0;
    font-weight: 600;
    border-width: 2px;
}

.access-monitor-columns {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

@media (min-width: 992px) {
    .access-monitor-columns {
        height: 100%;
        align-items: stretch;
    }

    .access-monitor-columns > .access-monitor-col {
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .access-monitor-col .am-card-actions {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .access-monitor-col .am-card-actions .am-actions-grid {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        align-content: stretch;
    }

    .access-monitor-col .am-card-actions .am-action-btn {
        min-height: 0;
        height: 100%;
        font-size: clamp(0.78rem, 1.15vw, 0.9rem);
    }
}

.ums-footer-access-monitor {
    flex-shrink: 0;
    min-height: auto;
    padding: 0.3rem 0;
}

.ums-footer-access-monitor .container-fluid {
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
}

.ums-footer-access-monitor .footer-item {
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    gap: 0.5rem;
}

.ums-footer-access-monitor .row {
    --bs-gutter-y: 0.2rem;
}

.access-monitor-main .section-title {
    font-size: clamp(0.72rem, 1.1vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1565c0;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.am-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: clamp(0.65rem, 1.2vh, 1rem) clamp(0.75rem, 1.3vw, 1.1rem);
    flex-shrink: 0;
}

.access-monitor-page .am-scan-card .section-title {
    margin-bottom: 0.5rem;
}

.access-monitor-page .am-scan-card #am-scan-hint {
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .am-card--fill {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .am-card--fill > *:not(.am-card-scroll) {
        flex-shrink: 0;
    }

    .am-card--fill > .am-card-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }
}

@media (max-width: 991.98px) {
    .am-card--fill {
        flex: none;
        min-height: auto;
    }

    .am-card--fill > .am-card-scroll {
        overflow: visible;
    }
}

.am-scan-input .input-group-text,
.am-scan-input .form-control {
    border-color: rgba(111, 20, 24, 0.2);
}

.am-scan-input .form-control {
    min-height: clamp(44px, 5vh, 52px);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.am-scan-input .form-control:focus {
    border-color: #6f1418;
    box-shadow: 0 0 0 0.15rem rgba(111, 20, 24, 0.12);
}

.am-access-banner {
    border-radius: 10px;
    padding: clamp(0.65rem, 1.5vh, 1rem) clamp(0.75rem, 1.5vw, 1.25rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 1rem);
    flex-shrink: 0;
}

.am-access-banner--waiting {
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
    border: 1px solid #b0bec5;
}

.am-access-banner--denied {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #ef9a9a;
}

.am-access-banner--granted {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
}

.am-access-banner .access-banner-icon {
    width: clamp(44px, 5vh, 56px);
    height: clamp(44px, 5vh, 56px);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.am-access-banner--waiting .access-banner-icon {
    background: #546e7a;
}

.am-access-banner--denied .access-banner-icon {
    background: #c62828;
}

.am-access-banner--granted .access-banner-icon {
    background: #2e7d32;
}

.am-access-banner h3 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    margin: 0;
}

.am-access-banner--waiting h3 {
    color: #37474f;
}

.am-access-banner--denied h3 {
    color: #b71c1c;
}

.am-access-banner--granted h3 {
    color: #1b5e20;
}

.am-access-banner .access-banner-sub {
    font-weight: 700;
    color: #212121;
    font-size: 0.95rem;
}

.am-access-banner .access-banner-msg {
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

.am-access-banner--waiting .access-banner-msg {
    color: #455a64;
}

.am-access-banner--denied .access-banner-msg {
    color: #c62828;
}

.am-access-banner--granted .access-banner-msg {
    color: #2e7d32;
}

.am-meta {
    font-size: 0.8rem;
    color: #424242;
    width: 100%;
    text-align: left;
    margin-left: 0;
    margin-top: 0.5rem;
}

.am-meta strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #757575;
    font-weight: 600;
}

@media (min-width: 768px) {
    .am-access-banner .am-meta {
        width: auto;
        margin-left: auto;
        margin-top: 0;
        text-align: right;
    }
}

.am-profile-photo {
    width: 100%;
    max-width: min(130px, 30vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.am-badge-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.am-badge-active {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.am-badge-granted {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.am-badge-sponsored {
    border: 2px solid #ff9800;
    color: #e65100;
    background: #fff8e1;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.am-badge-program-line {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.am-badge-program-line--utb {
    color: #1565c0;
    background: #e3f2fd;
    border-color: #90caf9;
}

.am-badge-program-line--vtp {
    color: #6a1b9a;
    background: #f3e5f5;
    border-color: #ce93d8;
}

.am-kv dt {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #757575;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.am-kv dd {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #212121;
}

.am-alert-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.84rem;
}

.am-alert-item:last-child {
    border-bottom: 0;
}

.am-alert-item i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.am-hold-table {
    font-size: 0.82rem;
}

.am-hold-table th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #757575;
    font-weight: 700;
    border-bottom-width: 1px;
}

.am-status-blocked {
    background: #ffebee;
    color: #b71c1c;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.am-status-clear {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.am-status-warning {
    background: #fff8e1;
    color: #f57f17;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.am-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.45rem, 0.8vw, 0.65rem);
}

@media (max-width: 991px) {
    .am-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .am-actions-grid {
        grid-template-columns: 1fr;
    }
}

.am-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: clamp(58px, 8vh, 76px);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.72rem, 1.1vw, 0.82rem);
    text-align: center;
    line-height: 1.25;
    padding: 0.5rem;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.am-action-btn:hover {
    filter: brightness(1.06);
    color: #fff;
    transform: translateY(-1px);
}

.am-action-btn i {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    opacity: 0.95;
}

.am-action-finance {
    background: #c62828;
}
.am-action-print {
    background: #2e7d32;
}
.am-action-registry {
    background: #1565c0;
}
.am-action-history {
    background: #f9a825;
    color: #333;
}
.am-action-discipline {
    background: #6a1b9a;
}
.am-action-security {
    background: #b71c1c;
}

/* Action buttons — under construction modal */
.am-construction-modal {
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.am-construction-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #6f1418;
    line-height: 1.35;
}

.am-construction-modal .modal-body {
    font-size: 1rem;
    line-height: 1.55;
    color: #333;
}

.am-construction-modal .am-construction-lead {
    font-size: 1.02rem;
    color: #212121;
}

.am-construction-btn-ok {
    background: #6f1418;
    border-color: #6f1418;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1.75rem;
    border-radius: 8px;
}

.am-construction-btn-ok:hover,
.am-construction-btn-ok:focus {
    background: #4a0e11;
    border-color: #4a0e11;
    color: #fff;
}

.am-scan-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.am-scan-status .scan-visual {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    font-size: 1.5rem;
}

.am-signal {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.35);
    margin-left: auto;
    flex-shrink: 0;
}

.am-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.am-summary-tile {
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.am-summary-tile .num {
    font-size: clamp(1.1rem, 2.2vh, 1.4rem);
    font-weight: 800;
    line-height: 1.1;
}

.am-summary-tile .lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

.am-tile-indigo {
    background: #e8eaf6;
    color: #283593;
}
.am-tile-blue {
    background: #e3f2fd;
    color: #1565c0;
}
.am-tile-green {
    background: #e8f5e9;
    color: #2e7d32;
}
.am-tile-red {
    background: #ffebee;
    color: #c62828;
}
.am-tile-orange {
    background: #fff3e0;
    color: #e65100;
}
.am-tile-purple {
    background: #f3e5f5;
    color: #6a1b9a;
}
.am-tile-teal {
    background: #e0f2f1;
    color: #00695c;
}

.am-logs-table {
    font-size: 0.78rem;
}

.am-logs-table .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.dot-granted {
    background: #43a047;
}
.dot-denied {
    background: #c62828;
}

.am-log-row-duplicate td {
    opacity: 0.82;
}

.am-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 20, 24, 0.25);
    background: #fff;
    color: #4a0e11;
    white-space: nowrap;
}

.am-session-badge--morning {
    background: #fff8e1;
    border-color: #ffcc80;
    color: #e65100;
}

.am-session-badge--afternoon {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.am-session-badge--evening {
    background: #ede7f6;
    border-color: #b39ddb;
    color: #4527a0;
}

.am-summary-session-hint {
    font-weight: 600;
    color: #6f1418;
    text-transform: none;
    letter-spacing: 0;
}

.am-receipt-print-frame {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 0;
    height: 0;
    border: 0;
    visibility: hidden;
}

.am-log-dup-badge {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #757575;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    vertical-align: middle;
}

.topbar-brand-long span.title-full {
    display: none;
}

.topbar-brand-long span.title-short {
    display: inline;
}

@media (min-width: 992px) {
    .topbar-brand-long span.title-full {
        display: inline;
    }

    .topbar-brand-long span.title-short {
        display: none;
    }
}

.utb-topbar .topbar-link.active {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.access-monitor-nav {
    flex-grow: 1;
}

@media (min-width: 992px) {
    .access-monitor-nav > ul:first-of-type {
        justify-content: center;
        flex: 1 1 auto;
    }
}
