:root {
    --tmj-ink: #182230;
    --tmj-muted: #667085;
    --tmj-soft: #eef3f6;
    --tmj-border: #d6dde8;
    --tmj-surface: #ffffff;
    --tmj-page: #f4f7fb;
    --tmj-primary: #155d70;
    --tmj-primary-dark: #0c3f4d;
    --tmj-primary-soft: #e6f1f4;
    --tmj-accent: #c29136;
    --tmj-accent-soft: #fff7e6;
    --tmj-success: #1f7a55;
    --tmj-danger: #b42318;
    --tmj-shadow: 0 22px 58px rgba(16, 24, 40, 0.16);
    --tmj-shadow-soft: 0 12px 32px rgba(16, 24, 40, 0.09);
}

body {
    min-height: 100vh;
    color: var(--tmj-ink);
    background:
        linear-gradient(180deg, rgba(22, 79, 99, 0.08), rgba(245, 247, 251, 0) 280px),
        var(--tmj-page);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.system-bg {
    background:
        linear-gradient(135deg, rgba(12, 63, 77, 0.86), rgba(24, 34, 48, 0.68)),
        url("../../img/mobo.jpg") center / cover fixed no-repeat;
}

.navbar-corporate {
    background: rgba(12, 63, 77, 0.96);
    border-bottom: 3px solid var(--tmj-accent);
    box-shadow: 0 8px 28px rgba(12, 63, 77, 0.24);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.navbar .nav-link {
    font-weight: 600;
}

.navbar-text {
    font-size: 0.9rem;
}

.page-shell {
    max-width: 1120px;
}

.auth-panel {
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    box-shadow: var(--tmj-shadow);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.auth-panel > .card-body {
    padding: 1.5rem;
}

.auth-heading {
    border-bottom: 1px solid var(--tmj-border);
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 1.25rem;
    background:
        linear-gradient(90deg, rgba(21, 93, 112, 0.08), rgba(194, 145, 54, 0.1)),
        #ffffff;
}

.visitor-register-card {
    background: rgba(255, 255, 255, 0.97);
}

.visitor-register-card > .card-body {
    padding: 1.5rem;
}

.register-heading {
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 1.35rem 1.5rem;
}

.register-heading-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: left;
}

.register-logo-group .home-logo {
    width: 84px;
    max-width: 24vw;
    object-fit: contain;
}

.register-heading-brand .panel-kicker {
    margin-top: 0.75rem;
}

.register-heading h1 {
    color: var(--tmj-primary-dark);
    font-weight: 900;
}

.visitor-register-card .alert {
    margin-bottom: 1rem;
}

.auth-logo {
    display: inline-block;
    width: 112px;
    max-width: 34vw;
    height: auto;
}

.auth-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.auth-logo-row .auth-logo {
    width: 96px;
    max-width: 32%;
}

.auth-logo-row .auth-logo-imigresen {
    width: 82px;
}

.login-title-nowrap {
    white-space: nowrap;
    font-size: clamp(1.05rem, 3.6vw, 1.5rem);
}

.visitor-register-logo {
    width: 104px;
    object-fit: contain;
}

.home-logo {
    display: inline-block;
    width: 132px;
    max-width: 34vw;
    height: auto;
}

.home-panel {
    max-width: 1040px;
    margin: 0 auto;
}

.home-hero {
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--tmj-shadow);
    padding: 2rem;
}

.home-header {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(214, 221, 232, 0.9);
}

.home-kicker,
.panel-kicker {
    color: var(--tmj-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.display-title {
    color: var(--tmj-ink);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.14;
}

.home-lead {
    max-width: 680px;
    color: var(--tmj-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.qr-focus,
.dress-code-panel {
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--tmj-shadow-soft);
}

.qr-focus {
    border-color: rgba(21, 93, 112, 0.26);
    background:
        linear-gradient(180deg, rgba(230, 241, 244, 0.85), rgba(255, 255, 255, 0.96) 42%),
        #ffffff;
}

.qr-code-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 320px);
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 1rem;
    box-shadow: inset 0 0 0 8px rgba(21, 93, 112, 0.04);
}

.qr-code-img {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.home-side-stack {
    display: grid;
    gap: 1rem;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.support-links a {
    color: var(--tmj-primary);
    font-weight: 600;
    text-decoration: none;
}

.support-links a:hover,
.support-links a:focus {
    color: var(--tmj-primary-dark);
    text-decoration: underline;
}

.pending-link {
    color: var(--tmj-primary);
    font-weight: 600;
}

.home-access-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(22, 79, 99, 0.16);
    border-radius: 8px;
    background: linear-gradient(90deg, var(--tmj-primary-soft), #fffaf0);
    padding: 0.85rem 1rem;
}

.home-access-strip a {
    color: var(--tmj-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.home-access-strip a:hover,
.home-access-strip a:focus {
    color: var(--tmj-primary-dark);
    text-decoration: underline;
}

.support-divider {
    color: var(--tmj-border);
}

.dress-code-list {
    display: grid;
    gap: 0.8rem;
    padding-left: 1.2rem;
    color: var(--tmj-ink);
}

.dress-code-list li::marker {
    color: var(--tmj-accent);
}

.visitor-note {
    border-left: 4px solid var(--tmj-accent);
    background: var(--tmj-accent-soft);
    border-radius: 8px;
    padding: 1rem;
}

.visitor-note strong {
    display: block;
    margin-bottom: 0.35rem;
}

.home-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f7fbfc 0%, #ffffff 42%, #f6f8fb 100%);
}

.home-page .page-shell {
    max-width: 1180px;
}

.home-page .home-hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(230, 241, 244, 0.85), rgba(255, 255, 255, 0.92) 36%, rgba(246, 248, 251, 0.98));
    box-shadow: none;
    padding: 1rem 0 2.15rem;
}

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto 0.85rem;
    border: 1px solid rgba(214, 221, 232, 0.8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.7rem 0.8rem;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
    backdrop-filter: blur(8px);
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--tmj-ink);
}

.home-logo-group {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.home-brand strong,
.home-brand span {
    display: block;
}

.home-brand strong {
    color: var(--tmj-primary-dark);
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.15;
}

.home-brand span {
    color: var(--tmj-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.home-page .home-logo {
    width: 88px;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.home-page .home-logo-imigresen {
    width: 78px;
}

.home-staff-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.home-staff-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid rgba(21, 93, 112, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.38);
    color: rgba(12, 63, 77, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.42rem 0.62rem;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.home-staff-links a:hover,
.home-staff-links a:focus {
    border-color: rgba(21, 93, 112, 0.28);
    background: rgba(230, 241, 244, 0.62);
    color: var(--tmj-primary-dark);
}

.home-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.82rem;
}

.home-header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    color: var(--tmj-primary);
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.48rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-header-icon-link:hover,
.home-header-icon-link:focus {
    color: var(--tmj-primary-dark);
    background: rgba(21, 93, 112, 0.09);
    outline: 0;
    transform: translateY(-1px);
}

.home-header-icon-link:focus-visible {
    box-shadow: 0 0 0 0.18rem rgba(21, 93, 112, 0.18);
}

.home-header-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 2.65rem;
    border-color: rgba(21, 93, 112, 0.22);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
    padding-inline: 0.95rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.home-header-actions .btn-outline-primary {
    background: rgba(255, 255, 255, 0.82);
}

.home-page .home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: var(--tmj-primary);
    border: 1px solid rgba(21, 93, 112, 0.18);
    border-radius: 999px;
    background: rgba(230, 241, 244, 0.78);
    padding: 0.48rem 0.72rem;
}

.home-page .display-title {
    max-width: 520px;
    color: var(--tmj-ink);
    font-size: 1.38rem;
    font-weight: 500;
    line-height: 1.18;
    white-space: nowrap;
}

.home-page .home-lead {
    max-width: 520px;
    color: var(--tmj-muted);
    font-size: 0.98rem;
    line-height: 1.75;
    text-align: justify;
    text-align-last: left;
}

.home-portal-panel {
    max-width: 1320px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(190, 209, 216, 0.95);
    border-radius: 8px;
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.96), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 253, 0.97) 56%, rgba(229, 241, 244, 0.92)),
        #ffffff;
    box-shadow: 0 30px 76px rgba(12, 63, 77, 0.2), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
    backdrop-filter: blur(10px);
}

.home-portal-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    border-bottom: 1px solid rgba(21, 93, 112, 0.16);
    background:
        linear-gradient(90deg, rgba(249, 252, 253, 0.99), rgba(255, 255, 255, 0.98) 50%, rgba(229, 241, 244, 0.9));
    padding: 1.45rem 2.2rem;
    box-shadow: 0 12px 32px rgba(12, 63, 77, 0.09);
    backdrop-filter: blur(6px);
}

.home-portal-header .home-brand {
    gap: 0.95rem;
    min-width: 0;
}

.home-portal-header .home-logo-group {
    border-right: 1px solid rgba(21, 93, 112, 0.18);
    padding-right: 1.25rem;
}

.home-portal-header .home-brand > div:last-child {
    min-width: 0;
}

.home-portal-header .home-brand strong {
    color: var(--tmj-primary-dark);
    font-size: 2.55rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-portal-header .home-brand span {
    color: var(--tmj-ink);
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.22;
    opacity: 0.86;
}

.home-portal-header .home-header-actions {
    flex: 0 0 auto;
}

.home-portal-header .home-header-actions .btn {
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.07);
}

.home-portal-section {
    min-height: 620px;
    padding: 3.8rem 4.25rem;
}

.home-portal-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 620px;
    padding: 4.2rem 5.9rem;
    background:
        radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(160deg, #0c3f4d 0%, #155d70 58%, #1f7684 100%);
}

.home-portal-left {
    border-right: 1px solid rgba(214, 221, 232, 0.84);
    background: rgba(255, 255, 255, 0.82);
}

.home-visual-panel {
    display: grid;
    gap: 0.9rem;
    width: 100%;
}

.home-visual-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem;
    box-shadow: 0 14px 32px rgba(8, 35, 43, 0.16);
}

.home-visual-card-primary {
    background: rgba(255, 255, 255, 0.18);
}

.home-visual-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.45rem;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 8px;
    background: rgba(255, 247, 230, 0.96);
    color: var(--tmj-primary-dark);
    font-size: 1.2rem;
}

.home-visual-card strong,
.home-visual-card span,
.home-mini-panel span,
.home-mini-panel strong,
.home-mini-panel small {
    display: block;
}

.home-visual-card strong {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}

.home-visual-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.55;
    margin-top: 0.22rem;
}

.home-mini-panel {
    border: 1px solid rgba(194, 145, 54, 0.38);
    border-radius: 8px;
    background: rgba(255, 247, 230, 0.96);
    padding: 1rem;
}

.home-mini-panel span {
    color: var(--tmj-accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-mini-panel strong {
    color: var(--tmj-primary-dark);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.25;
    margin-top: 0.2rem;
}

.home-mini-panel small {
    color: var(--tmj-muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.55;
    margin-top: 0.4rem;
}

.home-qr-panel {
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-qr-card {
    width: min(100%, 360px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.35rem;
    box-shadow: 0 18px 46px rgba(8, 35, 43, 0.24);
    text-align: center;
}

.home-qr-card .home-kicker {
    justify-content: center;
}

.home-qr-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 292px);
    aspect-ratio: 1;
    margin: 0 auto 1rem;
    border: 1px solid rgba(214, 221, 232, 0.95);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.8rem;
    box-shadow: inset 0 0 0 8px rgba(21, 93, 112, 0.04);
}

.home-qr-img {
    display: block;
    width: 100%;
    height: auto;
}

.home-qr-caption {
    color: var(--tmj-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.55;
}

.home-action-card-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    width: min(100%, 520px);
    margin-top: 1.2rem;
}

.home-action-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(21, 93, 112, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--tmj-ink);
    padding: 0.48rem 0.58rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.home-action-card:hover,
.home-action-card:focus {
    border-color: rgba(21, 93, 112, 0.35);
    color: var(--tmj-primary-dark);
    outline: 0;
    box-shadow: 0 16px 34px rgba(8, 35, 43, 0.18);
    transform: translateY(-1px);
}

.home-action-card:focus-visible {
    box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.25), 0 16px 34px rgba(8, 35, 43, 0.18);
}

.home-action-card-primary {
    border-color: rgba(194, 145, 54, 0.86);
    box-shadow: inset 4px 0 0 var(--tmj-accent), 0 12px 28px rgba(8, 35, 43, 0.13);
}

.home-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(230, 241, 244, 0.95);
    color: var(--tmj-primary);
    font-size: 0.95rem;
}

.home-action-card-primary .home-action-icon {
    background: rgba(255, 247, 230, 0.96);
    color: var(--tmj-accent);
}

.home-action-card span:last-child {
    color: var(--tmj-ink);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 520px;
}

.home-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-height: 4.25rem;
    border: 1px solid rgba(21, 93, 112, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    padding: 0.85rem;
}

.home-feature-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary);
    font-size: 1rem;
}

.home-feature-item span {
    color: var(--tmj-ink);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.home-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.home-action-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.8rem;
    padding-inline: 1.05rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.home-action-row .btn-outline-primary {
    background: rgba(255, 255, 255, 0.72);
}

.home-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 520px;
    color: var(--tmj-muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.55;
    padding: 0 0.35rem;
}

.home-note span {
    text-align: justify;
    text-align-last: left;
}

.home-note-stack {
    display: grid;
    gap: 0.62rem;
    max-width: 520px;
    margin: 1rem 0 1.1rem;
}

.home-portal-qr-card {
    width: min(100%, 360px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    padding: 1.2rem;
    box-shadow: 0 20px 44px rgba(8, 35, 43, 0.24);
}

.home-portal-qr-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.home-portal-qr-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary);
    font-size: 1.35rem;
}

.home-portal-qr-head strong,
.home-portal-qr-head small {
    display: block;
}

.home-portal-qr-head strong {
    color: var(--tmj-ink);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
}

.home-portal-qr-head small {
    color: var(--tmj-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0.1rem;
}

.home-portal-qr-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 280px);
    aspect-ratio: 1;
    margin: 0 auto 0.9rem;
    border: 1px solid rgba(214, 221, 232, 0.95);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.8rem;
    box-shadow: inset 0 0 0 8px rgba(21, 93, 112, 0.04);
}

.home-portal-qr-img {
    display: block;
    width: 100%;
    height: auto;
}

.home-portal-qr-caption {
    color: var(--tmj-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.home-page .qr-focus {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(21, 93, 112, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(230, 241, 244, 0.8), rgba(255, 255, 255, 0.98) 56%),
        #ffffff;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
    padding: 1.4rem;
    backdrop-filter: none;
}

.home-page .qr-focus::before {
    display: none;
}

.qr-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.qr-panel-head > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary);
    font-size: 1.1rem;
}

.qr-panel-head h2 {
    color: var(--tmj-ink);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-page .qr-code-frame {
    width: min(100%, 238px);
    border-color: rgba(21, 93, 112, 0.18);
    background: #ffffff;
    box-shadow:
        inset 0 0 0 8px rgba(21, 93, 112, 0.05),
        0 14px 30px rgba(16, 24, 40, 0.08);
}

.home-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(194, 145, 54, 0.26);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 247, 230, 0.92), rgba(255, 255, 255, 0.86));
    padding: 1rem;
}

.home-service-card strong,
.home-service-card span {
    display: block;
}

.home-service-card strong {
    color: var(--tmj-primary-dark);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.home-service-card span {
    color: var(--tmj-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.55;
}

.home-service-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: var(--tmj-accent-soft);
    color: var(--tmj-accent);
    font-size: 1.25rem;
}

.home-guide-band {
    border-top: 1px solid rgba(214, 221, 232, 0.78);
    background: linear-gradient(180deg, #ffffff, #f6f8fb);
    padding: 2.35rem 0 2.8rem;
}

.home-guide-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.home-guide-copy {
    max-width: 430px;
    color: var(--tmj-muted);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.55;
}

.home-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.guide-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-height: 116px;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.guide-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.15rem;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary);
    font-size: 1.1rem;
}

.guide-item span {
    color: var(--tmj-ink);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.55;
}

.guide-page {
    min-height: 100vh;
}

.guide-hero {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.34)),
        url("../../img/mobo.jpg") center right / cover no-repeat;
    padding: 1.35rem 0 3rem;
}

.guide-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(21, 93, 112, 0.18);
    border-radius: 8px;
    border-left: 5px solid var(--tmj-accent);
    background:
        linear-gradient(90deg, rgba(255, 247, 230, 0.9), rgba(255, 255, 255, 0.96) 34%, rgba(230, 241, 244, 0.86)),
        #ffffff;
    padding: 1rem 1.1rem;
    box-shadow: 0 20px 48px rgba(12, 63, 77, 0.14);
    backdrop-filter: blur(10px);
}

.guide-brand {
    gap: 1.2rem;
}

.guide-brand .home-logo {
    width: 92px;
    max-width: 22vw;
}

.guide-brand strong {
    color: var(--tmj-primary-dark);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.1;
}

.guide-brand span {
    color: var(--tmj-ink);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.3;
}

.guide-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(21, 93, 112, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--tmj-primary-dark);
    font-size: 1.22rem;
    padding: 0;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.guide-back-link:hover,
.guide-back-link:focus {
    background: #ffffff;
    color: var(--tmj-primary-dark);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.14);
    transform: translateX(-2px);
}

.guide-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(214, 221, 232, 0.84);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 70px rgba(16, 24, 40, 0.12);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.guide-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--tmj-primary), var(--tmj-accent));
    content: "";
}

.guide-heading {
    max-width: 760px;
    margin-bottom: 1.6rem;
}

.guide-title {
    color: var(--tmj-primary-dark);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.22;
}

.guide-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.guide-detail-item {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    min-height: 132px;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.15rem;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.guide-detail-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.55rem;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 8px;
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary);
    font-size: 1.25rem;
}

.guide-detail-item h2 {
    color: var(--tmj-ink);
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.guide-detail-item p {
    color: var(--tmj-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.faq-accordion {
    display: grid;
    gap: 0.65rem;
}

.faq-ai-panel {
    border: 1px solid rgba(21, 93, 112, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(238, 249, 252, 0.92), rgba(255, 255, 255, 0.96));
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.07);
    margin-bottom: 1.3rem;
    padding: 1rem;
}

.faq-ai-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.faq-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 8px;
    background: #ffffff;
    color: var(--tmj-primary);
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(21, 93, 112, 0.12);
}

.faq-ai-heading h2 {
    color: var(--tmj-ink);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.18rem;
}

.faq-ai-heading p {
    color: var(--tmj-muted);
    font-size: 0.84rem;
    font-weight: 600;
    margin: 0;
}

.faq-ai-chat {
    display: grid;
    gap: 0.72rem;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(214, 221, 232, 0.8);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.8rem;
}

.faq-ai-message {
    max-width: min(88%, 620px);
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    color: var(--tmj-ink);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.55;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
    overflow-wrap: anywhere;
}

.faq-ai-message-bot {
    justify-self: start;
    border: 1px solid rgba(214, 221, 232, 0.92);
    border-bottom-left-radius: 5px;
    background: #f7fafc;
}

.faq-ai-message-user {
    justify-self: end;
    border-bottom-right-radius: 5px;
    background: linear-gradient(135deg, var(--tmj-primary), var(--tmj-primary-dark));
    color: #ffffff;
}

.faq-ai-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.faq-ai-form .form-control {
    min-height: 2.85rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

.faq-ai-form .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 8px;
    font-weight: 700;
}

.ai-chatbot-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    max-width: calc(100vw - 2rem);
}

.ai-chatbot-panel {
    width: min(390px, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid rgba(21, 93, 112, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 28px 70px rgba(12, 63, 77, 0.26);
}

.ai-chatbot-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.72rem;
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, var(--tmj-primary-dark), var(--tmj-primary));
    color: #ffffff;
    padding: 0.95rem;
}

.ai-chatbot-avatar,
.ai-chatbot-toggle-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: var(--tmj-primary);
}

.ai-chatbot-avatar {
    width: 2.65rem;
    height: 2.65rem;
    color: var(--tmj-primary-dark);
    font-size: 1.22rem;
    box-shadow: 0 10px 24px rgba(12, 63, 77, 0.18);
}

.ai-chatbot-header h2 {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.ai-chatbot-header p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0.12rem 0 0;
}

.ai-chatbot-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.ai-chatbot-close:hover,
.ai-chatbot-close:focus {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.ai-chatbot-messages {
    max-height: min(380px, calc(100vh - 260px));
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(246, 248, 251, 0.96), rgba(255, 255, 255, 0.98));
    padding: 0.95rem;
    box-shadow: none;
}

.ai-chatbot-form {
    grid-template-columns: minmax(0, 1fr) 2.85rem;
    border-top: 1px solid rgba(214, 221, 232, 0.8);
    background: rgba(255, 255, 255, 0.98);
    margin: 0;
    padding: 0.78rem;
}

.ai-chatbot-form .form-control {
    border-color: rgba(214, 221, 232, 0.98);
    border-radius: 999px;
    background: #f8fafc;
    padding-left: 1rem;
}

.ai-chatbot-form .form-control:focus {
    border-color: rgba(21, 93, 112, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 0.18rem rgba(21, 93, 112, 0.12);
}

.ai-chatbot-form .btn {
    justify-content: center;
    min-width: 0;
    border-radius: 999px;
    padding-left: 0;
    padding-right: 0;
}

.ai-chatbot-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tmj-primary), var(--tmj-primary-dark));
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(21, 93, 112, 0.34);
    padding: 0.46rem 1rem 0.46rem 0.46rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ai-chatbot-toggle-avatar {
    width: 2.42rem;
    height: 2.42rem;
    color: var(--tmj-primary-dark);
    font-size: 1.15rem;
}

.ai-chatbot-toggle:hover,
.ai-chatbot-toggle:focus {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(21, 93, 112, 0.4);
    color: #ffffff;
}

.ai-chatbot-widget.is-open .ai-chatbot-toggle {
    padding-right: 0.42rem;
}

.ai-chatbot-widget.is-open .ai-chatbot-toggle-text {
    display: none;
}

.faq-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.faq-accordion .accordion-button {
    gap: 0.75rem;
    color: var(--tmj-ink);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.45;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary-dark);
}

.faq-accordion .accordion-button:focus {
    border-color: rgba(21, 93, 112, 0.32);
    box-shadow: 0 0 0 0.2rem rgba(21, 93, 112, 0.12);
}

.faq-accordion .accordion-body {
    color: var(--tmj-muted);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.65;
}

.faq-accordion .accordion-body ul {
    padding-left: 1.2rem;
}

.faq-accordion .accordion-body li + li {
    margin-top: 0.35rem;
}

.guide-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.guide-action-row .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    font-size: 0.95rem;
}

.dashboard-panel {
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--tmj-shadow);
}

.dashboard-main-panel {
    overflow: hidden;
    padding: 0;
    position: relative;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(214, 221, 232, 0.82);
    background:
        linear-gradient(135deg, rgba(230, 241, 244, 0.96), rgba(255, 247, 230, 0.72)),
        #ffffff;
    padding: 1.45rem 4.45rem 1.45rem 1.45rem;
}

.dashboard-hero-copy {
    max-width: 720px;
    color: var(--tmj-muted);
    font-weight: 600;
    line-height: 1.6;
}

.dashboard-report-modal-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    width: 2.45rem;
    height: 2.45rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.dashboard-report-modal .modal-dialog {
    max-width: 520px;
}

.dashboard-report-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 28px 72px rgba(16, 24, 40, 0.24);
}

.dashboard-report-modal-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(214, 221, 232, 0.9);
    background:
        linear-gradient(135deg, rgba(230, 241, 244, 0.98), rgba(255, 247, 230, 0.76)),
        #ffffff;
    padding: 1rem 1.1rem;
}

.dashboard-report-modal-body {
    padding: 1rem 1.1rem;
}

.dashboard-report-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.dashboard-report-fields > div {
    min-width: 0;
}

.dashboard-report-fields .form-label {
    color: var(--tmj-muted);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.dashboard-report-fields .form-control,
.dashboard-report-fields .form-select {
    border-color: rgba(214, 221, 232, 0.95);
    min-height: 2.75rem;
    font-weight: 700;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.dashboard-report-modal-footer {
    flex-wrap: wrap;
    gap: 0.45rem;
    border-top: 1px solid rgba(214, 221, 232, 0.9);
    background: #f8fafc;
    padding: 0.85rem 1.1rem;
}

.dashboard-report-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    white-space: nowrap;
}

.report-icon-btn {
    display: inline-flex;
    flex: 0 0 2.35rem;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    font-size: 0.96rem;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.report-icon-btn:hover,
.report-icon-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 9px 18px rgba(16, 24, 40, 0.12);
}

.dashboard-urd-filter-toggle {
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.dashboard-urd-filter-toggle.active {
    background: var(--tmj-primary);
    border-color: var(--tmj-primary);
    color: #ffffff;
}

.dashboard-urd-calendar-wrap {
    position: relative;
}

.dashboard-urd-calendar-popover {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 20;
    width: min(16.25rem, calc(100vw - 1.5rem));
    border: 1px solid rgba(214, 221, 232, 0.95);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc),
        #ffffff;
    padding: 0.55rem;
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.12);
}

.dashboard-urd-calendar-head,
.dashboard-urd-calendar-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.dashboard-urd-calendar-head .btn-icon {
    width: 1.7rem;
    height: 1.7rem;
    border-color: rgba(214, 221, 232, 0.95);
    background: #ffffff;
    color: var(--tmj-primary-dark);
}

.dashboard-urd-calendar-head .btn-icon:hover,
.dashboard-urd-calendar-head .btn-icon:focus {
    border-color: rgba(21, 93, 112, 0.28);
    background: rgba(21, 93, 112, 0.08);
}

.dashboard-urd-calendar-head strong {
    color: var(--tmj-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.dashboard-urd-calendar-status {
    margin: 0.42rem 0;
    border: 1px solid rgba(214, 221, 232, 0.95);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--tmj-muted);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.45;
    min-height: 1.75rem;
    padding: 0.34rem 0.42rem;
}

.dashboard-urd-calendar-grid {
    width: 100%;
}

.dashboard-urd-calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0.15rem;
}

.dashboard-urd-calendar-table th {
    color: var(--tmj-muted);
    font-size: 0.56rem;
    font-weight: 800;
    padding: 0 0 0.08rem;
    text-align: center;
    text-transform: uppercase;
}

.dashboard-urd-calendar-table td {
    padding: 0;
    text-align: center;
}

.dashboard-urd-calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--tmj-primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    min-height: 1.65rem;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.75);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-urd-calendar-day:hover,
.dashboard-urd-calendar-day:focus {
    border-color: rgba(21, 93, 112, 0.22);
    background: rgba(21, 93, 112, 0.1);
    box-shadow: inset 0 0 0 1px rgba(21, 93, 112, 0.22), 0 4px 8px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
    outline: 0;
}

.dashboard-urd-calendar-day.is-today {
    border-color: rgba(21, 93, 112, 0.32);
    box-shadow: inset 0 0 0 2px rgba(21, 93, 112, 0.22);
}

.dashboard-urd-calendar-day.is-outside-month {
    background: rgba(248, 250, 252, 0.74);
    color: #94a3b8;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.52);
}

.dashboard-urd-calendar-day.is-outside-month:hover,
.dashboard-urd-calendar-day.is-outside-month:focus {
    background: rgba(21, 93, 112, 0.08);
    color: var(--tmj-primary-dark);
}

.dashboard-urd-calendar-day.is-in-range {
    background: rgba(21, 93, 112, 0.14);
    color: var(--tmj-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(21, 93, 112, 0.12);
}

.dashboard-urd-calendar-day.is-start,
.dashboard-urd-calendar-day.is-end {
    border-color: var(--tmj-primary);
    background: var(--tmj-primary);
    color: #ffffff;
    box-shadow: 0 6px 10px rgba(21, 93, 112, 0.2);
    transform: none;
}

.dashboard-urd-calendar-foot {
    justify-content: flex-end;
    margin-top: 0.42rem;
}

.dashboard-urd-calendar-foot .btn {
    min-height: 1.75rem;
    padding: 0.18rem 0.42rem;
    font-size: 0.72rem;
}

.dashboard-main-panel > .row,
.dashboard-role-panel,
.dashboard-action-row,
.dashboard-section {
    margin-inline: 1.45rem;
}

#dashboardTapisanUrd {
    scroll-margin-top: 1rem;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    padding: 1.15rem;
    border-color: rgba(226, 232, 240, 0.98);
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.07);
}

.dashboard-stat-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    margin-bottom: 0.85rem;
    border-radius: 8px;
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary);
    font-size: 1.08rem;
}

.dashboard-stat-card small {
    display: block;
    color: var(--tmj-muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.dashboard-stat-card.stat-success {
    border-top-color: var(--tmj-success);
}

.dashboard-stat-card.stat-success > i {
    background: rgba(31, 122, 85, 0.1);
    color: var(--tmj-success);
}

.dashboard-stat-card.stat-warning {
    border-top-color: var(--tmj-accent);
}

.dashboard-stat-card.stat-warning > i {
    background: rgba(194, 145, 54, 0.13);
    color: #8a5e16;
}

.dashboard-stat-card.stat-info {
    border-top-color: #0c7a9b;
}

.dashboard-stat-card.stat-info > i {
    background: rgba(12, 122, 155, 0.1);
    color: #0c7a9b;
}

.dashboard-stat-card.stat-danger {
    border-top-color: var(--tmj-danger);
}

.dashboard-stat-card.stat-danger > i {
    background: rgba(180, 35, 24, 0.1);
    color: var(--tmj-danger);
}

.dashboard-stat-card.dashboard-urd-blue-card {
    border-color: rgba(12, 122, 155, 0.28);
    border-top-color: #0c7a9b;
    background: #d6f0f7;
}

.dashboard-role-panel {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    border: 1px solid rgba(21, 93, 112, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(230, 241, 244, 0.82), rgba(255, 255, 255, 0.98)),
        #ffffff;
    padding: 1rem;
}

.dashboard-role-panel p {
    color: var(--tmj-muted);
}

.dashboard-role-panel .fw-semibold {
    color: var(--tmj-ink);
}

.dashboard-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: #ffffff;
    color: var(--tmj-primary);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.dashboard-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.dashboard-action-row .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.85rem;
}

.dashboard-section {
    border: 1px solid rgba(214, 221, 232, 0.9);
    border-radius: 8px;
    background: #ffffff;
    margin-top: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.dashboard-section:last-child {
    margin-bottom: 1.45rem;
}

.dashboard-section-head {
    border-bottom: 1px solid rgba(214, 221, 232, 0.9);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.dashboard-collapse-toggle .bi {
    transition: transform 0.2s ease;
}

.dashboard-collapse-toggle[aria-expanded="false"] .bi {
    transform: rotate(-90deg);
}

.dashboard-section .table-responsive {
    margin: 0;
}

.dashboard-section .table {
    margin-bottom: 0;
}

.dashboard-ai-report {
    border-color: rgba(21, 93, 112, 0.16);
    background:
        linear-gradient(135deg, rgba(230, 241, 244, 0.92), rgba(255, 255, 255, 0.98)),
        #ffffff;
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
    padding: 1.2rem;
}

.dashboard-ai-report-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.dashboard-ai-report-head > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-ai-report-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: var(--tmj-primary);
    color: #ffffff;
    font-size: 1.2rem;
}

.dashboard-ai-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 2rem;
    border: 1px solid rgba(21, 93, 112, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tmj-primary-dark);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-ai-status-success {
    border-color: rgba(31, 122, 85, 0.22);
    background: rgba(31, 122, 85, 0.09);
    color: var(--tmj-success);
}

.dashboard-ai-status-warning {
    border-color: rgba(194, 145, 54, 0.28);
    background: rgba(194, 145, 54, 0.12);
    color: #7a5312;
}

.dashboard-ai-status-danger {
    border-color: rgba(180, 35, 24, 0.22);
    background: rgba(180, 35, 24, 0.09);
    color: var(--tmj-danger);
}

.dashboard-ai-status-muted {
    border-color: rgba(102, 112, 133, 0.22);
    background: rgba(102, 112, 133, 0.08);
    color: var(--tmj-muted);
}

.dashboard-ai-report-body {
    display: grid;
    gap: 0.75rem;
    color: var(--tmj-ink);
    font-size: 0.9rem;
    line-height: 1.62;
}

.dashboard-ai-report-body p {
    margin: 0;
}

.dashboard-ai-indicators {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-ai-indicator {
    border: 1px solid rgba(21, 93, 112, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 1rem;
}

.dashboard-ai-indicator span,
.dashboard-ai-indicator small {
    display: block;
    color: var(--tmj-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-ai-indicator strong {
    display: block;
    color: var(--tmj-primary-dark);
    font-size: 1.65rem;
    line-height: 1.15;
    margin: 0.28rem 0;
}

.dashboard-impact-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.dashboard-impact-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    border: 1px solid rgba(214, 221, 232, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    padding: 0.55rem 0.65rem;
}

.dashboard-impact-pill i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(31, 122, 85, 0.1);
    color: var(--tmj-success);
}

.dashboard-impact-pill div {
    min-width: 0;
}

.dashboard-impact-pill span {
    display: block;
    color: var(--tmj-muted);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-impact-pill strong {
    display: block;
    color: var(--tmj-primary-dark);
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-ai-executive {
    border-left: 4px solid var(--tmj-primary);
    background: rgba(255, 255, 255, 0.62);
    padding: 0.85rem 0.95rem;
}

.dashboard-ai-executive strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--tmj-primary-dark);
}

.dashboard-ai-executive p + p {
    margin-top: 0.4rem;
}

.dashboard-ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-ai-suggestion {
    border: 1px solid rgba(214, 221, 232, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.85rem;
}

.dashboard-ai-suggestion strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--tmj-primary-dark);
}

.dashboard-ai-suggestion ul {
    margin: 0;
    padding-left: 1.1rem;
}

.dashboard-ai-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--tmj-muted);
    font-weight: 700;
}

.dashboard-ai-page {
    position: relative;
    max-width: 1040px;
    margin-inline: auto;
}

.dashboard-ai-filter-toggle {
    flex: 0 0 auto;
}

.dashboard-ai-filter-toggle.active {
    border-color: var(--tmj-primary);
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary-dark);
}

.dashboard-ai-page [data-ai-page-card] {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition:
        opacity 260ms ease,
        transform 260ms ease;
}

.dashboard-ai-page [data-ai-page-card].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dashboard-ai-typing::after {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 1em;
    margin-left: 0.15rem;
    border-right: 2px solid var(--tmj-primary);
    vertical-align: -0.12em;
    animation: dashboardTypingCursor 0.75s steps(1, end) infinite;
}

@keyframes dashboardTypingCursor {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

.dashboard-table thead th {
    border-bottom: 1px solid rgba(226, 232, 240, 0.98);
    background: #f8fafc;
    color: #475467;
}

.dashboard-table tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    vertical-align: middle;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 1.25rem;
    margin-inline: 1.45rem;
    margin-bottom: 1.25rem;
}

.dashboard-insight-grid .dashboard-section {
    margin: 0;
}

.dashboard-chart-card {
    min-height: 100%;
}

.dashboard-chart-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(21, 93, 112, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tmj-primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.48rem 0.72rem;
    white-space: nowrap;
}

.dashboard-chart-badge i {
    color: var(--tmj-primary);
}

.dashboard-chart-body {
    display: grid;
    gap: 0.88rem;
    padding: 1.1rem;
}

.dashboard-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(140px, 1fr) 58px;
    gap: 0.82rem;
    align-items: center;
}

.dashboard-bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.dashboard-bar-meta span {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bar-meta strong {
    color: var(--tmj-primary-dark);
    font-size: 1rem;
    font-weight: 900;
}

.dashboard-bar-track {
    position: relative;
    height: 0.86rem;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.dashboard-bar-fill {
    display: block;
    height: 100%;
    min-width: 0.35rem;
    border-radius: inherit;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}

.dashboard-bar-fill-1 {
    background: linear-gradient(90deg, #155d70, #1f7a55);
}

.dashboard-bar-fill-2 {
    background: linear-gradient(90deg, #0c7a9b, #41a7c4);
}

.dashboard-bar-fill-3 {
    background: linear-gradient(90deg, #8a5e16, #c29136);
}

.dashboard-bar-fill-4 {
    background: linear-gradient(90deg, #5b6b7f, #98a2b3);
}

.dashboard-bar-fill-5 {
    background: linear-gradient(90deg, #7a3b12, #d0782f);
}

.dashboard-bar-fill-6 {
    background: linear-gradient(90deg, #344054, #667085);
}

.dashboard-bar-row small {
    color: var(--tmj-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.dashboard-urd-status-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(320px, 1fr);
    gap: 1rem;
    padding: 1.1rem;
}

.dashboard-urd-reject-tile,
.dashboard-urd-attendance-card {
    border: 1px solid rgba(21, 93, 112, 0.16);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-urd-reject-tile {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.95rem;
    min-height: 236px;
    background:
        linear-gradient(135deg, rgba(180, 35, 24, 0.1), rgba(255, 255, 255, 0.96)),
        #ffffff;
    padding: 1.05rem;
}

.dashboard-urd-reject-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 8px;
    background: rgba(180, 35, 24, 0.1);
    color: var(--tmj-danger);
    font-size: 1.18rem;
}

.dashboard-urd-reject-content {
    display: grid;
    align-content: end;
    gap: 0.35rem;
}

.dashboard-urd-reject-content span {
    color: #344054;
    font-size: 0.86rem;
    font-weight: 900;
}

.dashboard-urd-reject-content strong {
    color: var(--tmj-danger);
    font-size: clamp(2.25rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 0.95;
}

.dashboard-urd-reject-content small {
    color: var(--tmj-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-urd-reject-meter {
    height: 0.76rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(180, 35, 24, 0.12);
}

.dashboard-urd-reject-meter span {
    display: block;
    height: 100%;
    min-width: 0.35rem;
    border-radius: inherit;
    background: linear-gradient(90deg, #b42318, #d92d20);
}

.dashboard-urd-attendance-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(220px, 1fr);
    gap: 1rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(230, 241, 244, 0.72), rgba(255, 255, 255, 0.96)),
        #ffffff;
    padding: 1.05rem;
}

.dashboard-urd-attendance-ring-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-urd-attendance-ring {
    --attendance-present: 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 9.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(var(--tmj-success) var(--attendance-present), #d92d20 0);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.dashboard-urd-attendance-ring span {
    color: var(--tmj-primary-dark);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-urd-attendance-ring small {
    color: var(--tmj-muted);
    font-size: 0.74rem;
    font-weight: 800;
    margin-top: 0.24rem;
}

.dashboard-urd-attendance-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-urd-attendance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.82rem;
}

.dashboard-urd-attendance-item div {
    display: grid;
    gap: 0.18rem;
}

.dashboard-urd-attendance-item span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #344054;
    font-size: 0.82rem;
    font-weight: 900;
}

.dashboard-urd-attendance-item strong {
    color: var(--tmj-primary-dark);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-urd-attendance-item small {
    color: var(--tmj-muted);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-urd-attendance-item.is-present i {
    color: var(--tmj-success);
}

.dashboard-urd-attendance-item.is-absent i {
    color: var(--tmj-danger);
}

.dashboard-gender-chart {
    gap: 1rem;
}

.dashboard-gender-vertical {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
    min-height: 252px;
}

.dashboard-gender-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.dashboard-gender-column-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 8px;
    font-size: 1.28rem;
}

.dashboard-gender-column.is-male .dashboard-gender-column-icon {
    background: rgba(12, 122, 155, 0.1);
    color: #0c7a9b;
}

.dashboard-gender-column.is-female .dashboard-gender-column-icon {
    background: rgba(194, 145, 54, 0.14);
    color: #8a5e16;
}

.dashboard-gender-column-plot {
    display: flex;
    align-items: end;
    justify-content: center;
    width: min(5.6rem, 100%);
    height: 8.8rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.94)),
        #ffffff;
    padding: 0.45rem;
}

.dashboard-gender-column-plot > span {
    display: block;
    width: 100%;
    min-height: 0.4rem;
    border-radius: 6px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.34);
}

.dashboard-gender-column.is-male .dashboard-gender-column-plot > span {
    background: linear-gradient(180deg, #41a7c4, #0c7a9b);
}

.dashboard-gender-column.is-female .dashboard-gender-column-plot > span {
    background: linear-gradient(180deg, #d5aa56, #8a5e16);
}

.dashboard-gender-column-meta {
    display: grid;
    justify-items: center;
    gap: 0.16rem;
    text-align: center;
}

.dashboard-gender-column-meta strong {
    color: var(--tmj-primary-dark);
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-gender-column-meta span {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 900;
}

.dashboard-gender-column-meta small {
    color: var(--tmj-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 116px;
    border: 1px dashed rgba(152, 162, 179, 0.8);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--tmj-muted);
    font-weight: 800;
    text-align: center;
}

.dashboard-empty-state i {
    color: var(--tmj-primary);
    font-size: 1.25rem;
}

.dashboard-chart-note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(12, 122, 155, 0.18);
    border-radius: 8px;
    background: rgba(12, 122, 155, 0.06);
    color: #344054;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.72rem 0.82rem;
}

.dashboard-chart-note i {
    color: #0c7a9b;
}

.dashboard-attendance-card {
    margin-inline: 1.45rem;
    margin-bottom: 1.25rem;
}

.dashboard-attendance-body {
    display: grid;
    grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: center;
    padding: 1.15rem;
}

.dashboard-attendance-ring-wrap {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.dashboard-attendance-ring {
    --attendance-present: 0%;
    display: grid;
    place-items: center;
    align-content: center;
    width: 11.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
        conic-gradient(#1f7a55 0 var(--attendance-present), #b42318 var(--attendance-present) 100%);
    border: 1px solid rgba(214, 221, 232, 0.95);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
    color: #1f2937;
    text-align: center;
}

.dashboard-attendance-ring span {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-attendance-ring small {
    color: var(--tmj-muted);
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 0.28rem;
    text-transform: uppercase;
}

.dashboard-attendance-metrics {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.dashboard-attendance-row {
    display: grid;
    gap: 0.48rem;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 0.92rem;
}

.dashboard-attendance-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-width: 0;
}

.dashboard-attendance-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #344054;
    font-size: 0.92rem;
    font-weight: 900;
    min-width: 0;
}

.dashboard-attendance-meta i {
    font-size: 1.08rem;
}

.dashboard-attendance-meta strong {
    color: var(--tmj-primary-dark);
    font-size: 1.35rem;
    font-weight: 900;
}

.dashboard-attendance-track {
    height: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.dashboard-attendance-track span {
    display: block;
    height: 100%;
    min-width: 0.35rem;
    border-radius: inherit;
}

.dashboard-attendance-row.is-present .dashboard-attendance-meta i {
    color: #1f7a55;
}

.dashboard-attendance-row.is-present .dashboard-attendance-track span {
    background: linear-gradient(90deg, #1f7a55, #3fa66c);
}

.dashboard-attendance-row.is-absent .dashboard-attendance-meta i {
    color: #b42318;
}

.dashboard-attendance-row.is-absent .dashboard-attendance-track span {
    background: linear-gradient(90deg, #b42318, #e06458);
}

.dashboard-attendance-row small {
    color: var(--tmj-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-attendance-empty {
    grid-column: 1 / -1;
}

.session-select {
    min-width: 220px;
}

.stat-card,
.detail-item {
    height: 100%;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.stat-card {
    border-top: 4px solid var(--tmj-primary);
}

.stat-card span,
.detail-item span {
    display: block;
    color: var(--tmj-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.stat-card strong {
    display: block;
    color: var(--tmj-primary-dark);
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
}

.detail-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    white-space: normal;
}

.detail-section {
    position: relative;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(214, 221, 232, 0.95);
    border-left: 5px solid var(--tmj-primary);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.15rem;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: rgba(12, 122, 155, 0.12);
}

.detail-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(214, 221, 232, 0.82);
}

.detail-section-head h2 {
    margin: 0;
    color: var(--tmj-primary-dark);
    font-size: 1rem;
    font-weight: 800;
}

.detail-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    background: rgba(12, 122, 155, 0.1);
    color: var(--tmj-primary);
}

.detail-section-pelawat {
    border-left-color: #0c7a9b;
    background: linear-gradient(180deg, rgba(238, 249, 252, 0.82), #ffffff 42%);
}

.detail-section-pelawat .detail-section-icon {
    background: rgba(12, 122, 155, 0.12);
    color: #0c7a9b;
}

.detail-section-tahanan {
    border-left-color: #8b5e00;
    background: linear-gradient(180deg, rgba(255, 247, 230, 0.86), #ffffff 42%);
}

.detail-section-tahanan::before {
    background: rgba(139, 94, 0, 0.13);
}

.detail-section-tahanan .detail-section-icon {
    background: rgba(139, 94, 0, 0.12);
    color: #8b5e00;
}

.detail-section-status {
    border-left-color: #157347;
    background: linear-gradient(180deg, rgba(235, 249, 241, 0.86), #ffffff 42%);
}

.detail-section-status::before {
    background: rgba(21, 115, 71, 0.13);
}

.detail-section-status .detail-section-icon {
    background: rgba(21, 115, 71, 0.12);
    color: #157347;
}

.visitor-photo-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.visitor-photo-detail img {
    width: 118px;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    object-fit: cover;
}

.visitor-photo-detail span {
    display: block;
    color: var(--tmj-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.visitor-photo-detail strong {
    color: var(--tmj-ink);
    font-size: 1.1rem;
}

.section-title {
    color: var(--tmj-ink);
    font-size: 1.45rem;
    font-weight: 800;
}

.text-muted {
    color: var(--tmj-muted) !important;
}

.btn-primary {
    background-color: var(--tmj-primary);
    border-color: var(--tmj-primary);
    box-shadow: 0 8px 18px rgba(21, 93, 112, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tmj-primary-dark);
    border-color: var(--tmj-primary-dark);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.pelawat-search-form .form-control {
    min-height: 2.75rem;
}

.pelawat-search-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(21, 93, 112, 0.18);
    font-size: 1rem;
}

.pelawat-search-btn:hover,
.pelawat-search-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(21, 93, 112, 0.24);
}

.attendance-action {
    vertical-align: middle;
}

.attendance-icon-btn {
    border-color: rgba(21, 93, 112, 0.22);
    background: #ffffff;
    color: var(--tmj-muted);
}

.attendance-icon-btn:hover,
.attendance-icon-btn:focus {
    border-color: var(--tmj-primary);
    color: var(--tmj-primary);
}

.attendance-icon-btn.is-hadir {
    border-color: var(--tmj-success);
    background: var(--tmj-success);
    color: #ffffff;
}

.attendance-complete-btn,
.attendance-complete-btn:hover,
.attendance-complete-btn:focus {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.attendance-complete-icon {
    display: block;
    width: 1.85rem;
    height: 1.85rem;
    object-fit: contain;
}

.attendance-icon-btn.is-tidak-hadir {
    border-color: var(--tmj-danger);
    background: var(--tmj-danger);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--tmj-primary);
    border-color: rgba(21, 93, 112, 0.42);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--tmj-primary);
    border-color: var(--tmj-primary);
}

.form-label {
    color: var(--tmj-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.form-control,
.form-select {
    border-color: var(--tmj-border);
    border-radius: 8px;
    padding: 0.72rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tmj-primary);
    box-shadow: 0 0 0 0.2rem rgba(22, 79, 99, 0.18);
}

.visitor-form {
    display: grid;
    gap: 1rem;
}

.form-section {
    border: 1px solid rgba(214, 221, 232, 0.92);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.76)),
        #ffffff;
    padding: 1.15rem;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.form-section-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(214, 221, 232, 0.78);
}

.form-section-head h2 {
    color: var(--tmj-ink);
    font-weight: 800;
}

.form-section-head p {
    font-size: 0.86rem;
    line-height: 1.5;
}

.form-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.45rem;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 8px;
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary);
    font-size: 1.12rem;
}

.required-mark {
    color: var(--tmj-danger);
    font-weight: 900;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(214, 221, 232, 0.86);
    padding-top: 1rem;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
}

.form-actions .btn-back-icon {
    flex: 0 0 3rem;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    padding: 0;
    border-color: rgba(21, 93, 112, 0.28);
    color: var(--tmj-primary-dark);
}

.form-actions .btn-back-icon:hover,
.form-actions .btn-back-icon:focus {
    border-color: rgba(21, 93, 112, 0.42);
    background: var(--tmj-primary-soft);
    color: var(--tmj-primary-dark);
}

.citizenship-panel {
    height: 100%;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 0.72rem 0.85rem;
}

.citizenship-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.citizenship-options .form-check {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    margin: 0;
    border: 1px solid rgba(21, 93, 112, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.45rem 0.75rem 0.45rem 2.1rem;
}

.citizenship-panel .form-check-label {
    color: var(--tmj-ink);
    font-weight: 700;
}

.calendar-panel {
    border: 1px solid rgba(21, 93, 112, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(230, 241, 244, 0.92), rgba(255, 247, 230, 0.82)),
        #ffffff;
    padding: 1rem;
}

.calendar-limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    border: 1px solid rgba(194, 145, 54, 0.42);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tmj-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.48rem 0.7rem;
}

.calendar-input-wrap {
    position: relative;
}

.calendar-input-icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: var(--tmj-primary);
    transform: translateY(-50%);
    pointer-events: none;
}

.calendar-input {
    min-height: 3rem;
    padding-left: 2.6rem;
    background-color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
}

.calendar-slot-info {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--tmj-muted);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.72rem 0.85rem;
}

.calendar-slot-info.is-available {
    background: rgba(31, 122, 85, 0.1);
    color: var(--tmj-success);
}

.calendar-slot-info.is-full {
    background: rgba(180, 35, 24, 0.1);
    color: var(--tmj-danger);
}

.weekday-date-picker {
    border: 1px solid rgba(21, 93, 112, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.85rem;
}

.weekday-picker-days,
.weekday-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.weekday-picker-days {
    margin-bottom: 0.35rem;
    color: var(--tmj-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.weekday-picker-empty {
    min-height: 2.15rem;
}

.weekday-picker-date {
    min-height: 2.15rem;
    border: 1px solid rgba(21, 93, 112, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: var(--tmj-primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.weekday-picker-date:hover,
.weekday-picker-date:focus {
    border-color: var(--tmj-primary);
    background: rgba(21, 93, 112, 0.08);
}

.weekday-picker-date.is-selected {
    border-color: var(--tmj-primary);
    background: var(--tmj-primary);
    color: #ffffff;
}

.weekday-picker-date.is-disabled-weekend,
.weekday-picker-date.is-disabled-before-min,
.weekday-picker-date:disabled {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.12);
    color: rgba(100, 116, 139, 0.7);
    cursor: not-allowed;
    text-decoration: line-through;
}

.visitor-photo-panel {
    border: 1px solid rgba(21, 93, 112, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(230, 241, 244, 0.9), rgba(255, 255, 255, 0.96)),
        #ffffff;
    padding: 1rem;
}

.visitor-photo-capture {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 1rem;
    align-items: center;
}

.visitor-photo-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    white-space: nowrap;
}

.visitor-photo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px dashed rgba(21, 93, 112, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.visitor-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitor-camera-video {
    width: 100%;
    height: 100%;
    background: #101828;
    object-fit: cover;
}

.visitor-photo-placeholder {
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    color: var(--tmj-muted);
    padding: 1rem;
    text-align: center;
}

.visitor-photo-placeholder i {
    color: var(--tmj-primary);
    font-size: 2rem;
}

.visitor-photo-placeholder span {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

.visitor-photo-control {
    display: grid;
    gap: 0.65rem;
}

.visitor-file-fallback {
    color: var(--tmj-primary);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.visitor-file-fallback:hover,
.visitor-file-fallback:focus {
    color: var(--tmj-primary-dark);
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    border: 0;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.table {
    --bs-table-hover-bg: rgba(21, 93, 112, 0.06);
}

.table tbody tr.pelawat-belum-daftar-keluar-row > * {
    --bs-table-bg: #fff7e6;
    background-color: #fff7e6 !important;
    --bs-table-color-state: var(--tmj-ink);
}

.table tbody tr.pelawat-belum-daftar-keluar-row > *:first-child {
    box-shadow: inset 4px 0 0 var(--tmj-accent);
}

.table-hover tbody tr.pelawat-belum-daftar-keluar-row:hover > * {
    --bs-table-bg: #fff0cc;
    background-color: #fff0cc !important;
}

.table thead th {
    color: var(--tmj-muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--tmj-border);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tbody td {
    border-color: #edf1f6;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.45em 0.7em;
}

.maintenance-backup-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.maintenance-backup-meta {
    min-width: 0;
}

.maintenance-backup-meta strong {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.maintenance-backup-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.maintenance-backup-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.maintenance-backup-summary > div {
    min-width: 0;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.75rem;
}

.maintenance-backup-summary span,
.maintenance-backup-summary strong {
    display: block;
}

.maintenance-backup-summary span {
    color: var(--tmj-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.maintenance-backup-summary strong {
    overflow-wrap: anywhere;
    color: var(--tmj-primary-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.maintenance-danger-action {
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 8px;
    background: rgba(180, 35, 24, 0.04);
    padding: 0.9rem;
}

.maintenance-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    font-size: 0.88rem;
}

.maintenance-warning-list .alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.55;
}

.maintenance-warning-list .alert i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.bg-light {
    background-color: #f8fafc !important;
}

.border.rounded.bg-light,
#okt-fields {
    border-color: var(--tmj-border) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc) !important;
}

.print-bg {
    background: #f3f4f6;
}

.print-shell {
    max-width: 860px;
}

.print-document {
    background: #ffffff;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    padding: 2rem;
}

.print-logo {
    width: 112px;
    height: auto;
}

.print-visitor-photo {
    width: 130px;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--tmj-border);
    border-radius: 8px;
    object-fit: cover;
}

.signature-line {
    border-top: 1px solid var(--tmj-ink);
    margin: 3rem 1rem 0.75rem;
}

.visit-form-document {
    position: relative;
    min-height: 1120px;
    color: #202020;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    padding: 2.2rem 3.25rem;
}

.visit-form-top,
.visit-form-footer {
    display: flex;
    justify-content: space-between;
    color: #4b4b4b;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.visit-form-top {
    justify-content: flex-end;
    padding-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.visit-form-top strong:first-child,
.visit-form-footer strong {
    font-size: 1.18rem;
}

.visit-form-heading {
    margin: 4.2rem 0 1.35rem;
    text-align: center;
}

.visit-form-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    background-color: #ffffff;
    margin-bottom: 0.75rem;
}

.visit-form-logo {
    width: 116px;
    height: auto;
    background: #ffffff;
    background-color: #ffffff;
    display: block;
}

.visit-form-heading h1 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.visit-form-body {
    max-width: 680px;
    margin: 0 auto;
}

.visit-form-command {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.visit-form-command > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem;
    align-items: end;
}

.visit-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem;
    align-items: end;
    margin-bottom: 0.7rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.visit-field.short {
    max-width: 330px;
}

.visit-field.stacked {
    align-items: start;
}

.visit-field > span:first-child,
.visit-field > strong:first-child {
    font-weight: 700;
    white-space: nowrap;
}

.visit-line {
    display: block;
    min-height: 1.25rem;
    border-bottom: 2px dotted #b8b8b8;
    padding: 0 0.25rem 0.05rem;
}

.visit-line-empty {
    margin: -0.3rem 0 0.7rem;
}

.visit-two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.4rem;
}

.visit-signatures {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.6rem;
    margin: 1.35rem 0 1rem;
    text-align: center;
}

.visit-signatures > div {
    min-width: 0;
}

.visit-signatures p {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.visit-sign-line {
    width: 135px;
    margin: 0 auto 0.25rem;
    border-bottom: 2px dotted #b8b8b8;
}

.visit-signatures span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.visit-signatures small {
    display: block;
    width: 230px;
    max-width: 100%;
    margin: 0.3rem auto 0;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.28;
    text-align: left;
}

.visit-signatures .visit-manual-line {
    display: inline-block;
    width: 86px;
    border-bottom: 1px dotted #777777;
    vertical-align: baseline;
}

.visit-signatures .visit-officer-details {
    width: 230px;
    max-width: none;
    font-size: 0.68rem;
}

.visit-signatures .visit-officer-row {
    display: block;
    white-space: nowrap;
}

.visit-signatures .visit-signature-row {
    display: block;
    white-space: nowrap;
}

.visit-signatures .visit-officer-value,
.visit-signatures .visit-signature-value {
    display: inline;
    white-space: nowrap;
}

.visit-applicant-signature small,
.visit-signatures .visit-applicant-details {
    width: 230px;
    padding-left: 47px;
    text-align: left;
}

.visit-divider {
    width: 88%;
    margin: 1rem 0 0.75rem;
    border-top: 1px solid #555555;
}

.visit-decision {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.visit-decision-strike {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.command-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 1.35rem;
}

.command-row .visit-field:first-child {
    grid-template-columns: auto minmax(100px, 1fr);
}

.command-row .visit-field:last-child {
    padding-left: 0.35rem;
}

.visit-form-footer {
    position: absolute;
    right: 3.25rem;
    bottom: 2.1rem;
    left: 3.25rem;
    align-items: end;
}

.visit-form-footer span {
    position: absolute;
    left: 50%;
    font-weight: 700;
    transform: translateX(-50%);
}

@media print {
    body {
        background: #ffffff !important;
    }

    .navbar,
    .no-print {
        display: none !important;
    }

    .container,
    .page-shell,
    .print-shell {
        max-width: none;
        width: 100%;
        padding: 0 !important;
    }

    .dashboard-panel,
    .print-document {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .visit-form-document {
        min-height: 100vh;
        padding: 0.35in 0.55in;
    }

    .visit-form-footer {
        right: 0.55in;
        bottom: 0.35in;
        left: 0.55in;
    }
}

@media (max-width: 575.98px) {
    .home-header {
        align-items: flex-start;
    }

    .home-hero {
        padding: 1.25rem;
    }

    .home-logo {
        width: 96px;
    }

    .display-title {
        font-size: 1.55rem;
    }

    .qr-focus,
    .dress-code-panel {
        padding: 1.25rem;
    }

    .pelawat-search-form .col-md-auto {
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .dashboard-report-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .home-hero {
        min-height: auto;
        padding: 1rem 0 2rem;
        background:
            linear-gradient(180deg, rgba(230, 241, 244, 0.9), rgba(255, 255, 255, 0.95));
    }

    .home-topbar {
        margin-bottom: 0.85rem;
    }

    .home-page .display-title {
        font-size: 1.16rem;
    }

    .home-portal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-portal-header .home-brand strong {
        font-size: 2.05rem;
    }

    .home-portal-header .home-brand span {
        font-size: 1.05rem;
    }

    .home-portal-header .home-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .home-header-icon-link {
        width: 2.65rem;
        height: 2.65rem;
        font-size: 1.38rem;
    }

    .home-portal-section {
        min-height: auto;
        padding: 2.15rem;
    }

    .home-portal-visual {
        min-height: auto;
        padding: 2.15rem;
    }

    .home-portal-panel {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.95) 58%, rgba(230, 241, 244, 0.9)),
            #ffffff;
    }

    .home-portal-left {
        min-height: 310px;
        border-right: 0;
        border-bottom: 1px solid rgba(214, 221, 232, 0.9);
    }

    .home-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-hero {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.72)),
            url("../../img/mobo.jpg") center / cover no-repeat;
    }

    .guide-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dashboard-hero {
        flex-direction: column;
        padding: 1.15rem 4rem 1.15rem 1.15rem;
    }

    .dashboard-report-modal-toggle {
        top: 0.85rem;
        right: 0.85rem;
    }

    .dashboard-report-fields {
        grid-template-columns: 1fr;
    }

    .dashboard-report-modal-footer {
        justify-content: flex-start;
    }

    .dashboard-urd-calendar-popover {
        position: fixed;
        top: 4.75rem;
        right: 50%;
        left: auto;
        width: min(16.75rem, calc(100vw - 1.5rem));
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        transform: translateX(50%);
        z-index: 1050;
    }

    .dashboard-urd-calendar-day {
        min-height: 1.75rem;
    }

    .report-icon-btn {
        width: 2.35rem;
    }

    .dashboard-main-panel > .row,
    .dashboard-role-panel,
    .dashboard-action-row,
    .dashboard-section {
        margin-inline: 1rem;
    }

    .dashboard-ai-report-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-ai-status {
        margin-left: 3.7rem;
    }

    .dashboard-ai-indicators,
    .dashboard-ai-grid,
    .dashboard-impact-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-insight-grid {
        grid-template-columns: 1fr;
        margin-inline: 1rem;
    }

    .dashboard-attendance-card {
        margin-inline: 1rem;
    }

    .dashboard-attendance-body {
        grid-template-columns: 1fr;
    }

    .dashboard-attendance-ring {
        width: min(11rem, 78vw);
    }

    .dashboard-bar-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .dashboard-bar-row small {
        text-align: left;
    }

    .dashboard-urd-status-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-urd-attendance-card {
        grid-template-columns: 1fr;
    }

    .dashboard-urd-attendance-ring {
        width: min(9.5rem, 72vw);
    }

    .dashboard-gender-vertical {
        min-height: 232px;
    }

    .dashboard-gender-column-plot {
        height: 7.8rem;
    }

    .dashboard-action-row .btn {
        justify-content: center;
        width: 100%;
    }

    .dashboard-section:last-child {
        margin-bottom: 1rem;
    }

    .maintenance-backup-item {
        grid-template-columns: 1fr;
    }

    .maintenance-backup-download {
        width: 100%;
    }

    .maintenance-backup-summary {
        grid-template-columns: 1fr;
    }

    .home-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.78rem;
    }

    .home-portal-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 0.95rem;
    }

    .home-header-actions {
        grid-column: 2;
        grid-row: 1;
        position: static;
        align-self: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        margin-left: 0;
        width: auto;
        z-index: 2;
    }

    .home-header-icon-link {
        width: 2.2rem;
        height: 2.2rem;
        border: 1px solid rgba(21, 93, 112, 0.16);
        background: rgba(255, 255, 255, 0.82);
        font-size: 1.05rem;
        box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
    }

    .home-header-actions .btn {
        flex: 1 1 150px;
    }

    .home-staff-links {
        justify-content: flex-start;
        width: 100%;
    }

    .home-staff-links a {
        flex: 1 1 140px;
        justify-content: center;
    }

    .home-portal-header .home-staff-links {
        width: auto;
    }

    .home-portal-header .home-staff-links a {
        flex: 0 0 auto;
    }

    .home-page .home-logo {
        width: 86px;
    }

    .home-logo-group {
        gap: 0.72rem;
    }

    .home-page .home-logo-imigresen {
        width: 76px;
    }

    .home-portal-header .home-brand {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        padding-right: 0;
    }

    .home-portal-header .home-logo-group {
        padding-right: 0;
        border-right: 0;
    }

    .home-portal-header .home-brand strong {
        font-size: 1.7rem;
        line-height: 1.04;
    }

    .home-portal-header .home-brand span {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.18;
    }

    .home-page .display-title {
        font-size: 1.02rem;
        white-space: normal;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-page .home-lead {
        font-size: 0.88rem;
        line-height: 1.7;
        text-align: left;
    }

    .home-note span {
        text-align: left;
    }

    .home-action-card-stack {
        flex-wrap: nowrap;
        gap: 0.4rem;
        width: 100%;
    }

    .home-action-card {
        gap: 0.32rem;
        min-height: 40px;
        padding: 0.38rem 0.4rem;
    }

    .home-action-icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        font-size: 0.82rem;
    }

    .home-action-card span:last-child {
        font-size: 0.76rem;
    }

    .home-action-row .btn {
        width: 100%;
        justify-content: center;
    }

    .home-note {
        align-items: flex-start;
    }

    .home-portal-section {
        padding: 1.25rem;
    }

    .home-portal-visual {
        min-height: auto;
        padding: 1.25rem;
    }

    .home-portal-qr-card {
        width: 100%;
        padding: 1rem;
    }

    .home-portal-qr-frame {
        width: min(100%, 238px);
    }

    .home-portal-panel {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.95) 58%, rgba(230, 241, 244, 0.9)),
            #ffffff;
    }

    .home-portal-left {
        min-height: 250px;
    }

    .qr-panel-head {
        align-items: flex-start;
    }

    .visitor-photo-capture {
        grid-template-columns: 1fr;
    }

    .visitor-photo-preview {
        max-width: 220px;
        margin: 0 auto;
    }

    .home-page .qr-focus {
        padding: 1.15rem;
    }

    .home-guide-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-item {
        min-height: 0;
    }

    .guide-topbar {
        align-items: flex-start;
        padding: 0.78rem;
    }

    .guide-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .guide-brand .home-logo {
        width: 74px;
    }

    .guide-brand strong {
        font-size: 1.48rem;
    }

    .guide-brand span {
        font-size: 1rem;
    }

    .guide-title {
        font-size: 1.25rem;
    }

    .guide-action-row .btn {
        justify-content: center;
        width: 100%;
    }

    .faq-ai-panel {
        padding: 0.85rem;
    }

    .faq-ai-heading {
        align-items: flex-start;
    }

    .faq-ai-chat {
        max-height: 320px;
    }

    .faq-ai-message {
        max-width: 100%;
        font-size: 0.84rem;
    }

    .faq-ai-form {
        grid-template-columns: 1fr;
    }

    .faq-ai-form .btn {
        justify-content: center;
        width: 100%;
    }

    .ai-chatbot-widget {
        right: 0.85rem;
        bottom: 0.85rem;
        max-width: calc(100vw - 1.7rem);
    }

    .ai-chatbot-panel {
        width: calc(100vw - 1.7rem);
    }

    .ai-chatbot-messages {
        max-height: min(320px, calc(100vh - 245px));
    }

    .ai-chatbot-form {
        grid-template-columns: minmax(0, 1fr) 2.75rem;
    }

    .ai-chatbot-form .btn {
        width: auto;
    }

    .guide-panel {
        padding: 1.25rem;
    }

    .guide-detail-item {
        min-height: 0;
        padding: 1rem;
    }

    .visitor-register-card > .card-body {
        padding: 1rem;
    }

    .register-heading {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }

    .register-heading-brand {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .register-logo-group .home-logo {
        width: 74px;
        max-width: 38vw;
    }

    .form-section {
        padding: 1rem;
    }

    .form-section-head {
        gap: 0.7rem;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: row;
    }

    .form-actions .btn {
        flex: 1 1 auto;
        width: auto;
    }

    .form-actions .btn-back-icon {
        flex: 0 0 3rem;
        width: 3rem;
    }
}
