:root {
    --voca-blue: #0f5da8;
    --voca-blue-dark: #083967;
    --voca-blue-soft: #e8f2ff;
    --voca-yellow: #f4bd21;
    --voca-yellow-soft: #fff5cf;
    --voca-green-soft: #e7f7ed;
    --voca-text: #172033;
    --voca-muted: #6b7688;
    --voca-border: #d9e3ef;
    --voca-bg: #f6f9fd;
    --voca-panel: #ffffff;
    --voca-shadow: 0 18px 45px rgba(15, 93, 168, 0.12);
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background: var(--voca-bg);
    color: var(--voca-text);
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    letter-spacing: 0;
}

.app-shell {
    min-height: 100vh;
}

.login-screen {
    background: var(--voca-bg);
}

.login-brand {
    position: relative;
    overflow: hidden;
    background: var(--voca-blue);
    color: #fff;
}

.login-brand::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 44px 44px;
}

.brand-panel {
    position: relative;
    z-index: 1;
    max-width: 460px;
    padding: 48px;
}

.brand-mark-lg {
    width: 96px;
    height: 96px;
    margin-bottom: 36px;
}

.brand-mark-sm,
.navbar-mark {
    width: 42px;
    height: 42px;
}

.brand-title {
    max-width: 390px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    font-weight: 700;
}

.brand-strip {
    width: min(320px, 80%);
    height: 8px;
    margin: 32px 0;
    border-radius: 8px;
    background: var(--voca-yellow);
}

.brand-kpis {
    display: flex;
    gap: 12px;
}

.brand-kpis > div {
    min-width: 132px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.brand-kpi-value,
.brand-kpi-label {
    display: block;
}

.brand-kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-kpi-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

.auth-panel {
    max-width: 460px;
    padding: 32px;
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: var(--voca-panel);
    box-shadow: var(--voca-shadow);
}

.auth-title,
.page-heading h2,
.panel h3 {
    font-weight: 700;
}

.auth-title {
    font-size: 2rem;
}

.eyebrow {
    color: var(--voca-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.form-label {
    color: #354052;
    font-weight: 700;
}

.form-control,
.input-group-text,
.btn {
    border-radius: 8px;
}

.input-group .form-control,
.input-group .input-group-text,
.input-group .btn {
    border-radius: 0;
}

.input-group > :first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-group > :last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.input-group-text {
    background: #f4f8fc;
    color: var(--voca-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    font-weight: 700;
}

.btn-voca-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--voca-blue);
    --bs-btn-border-color: var(--voca-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0c4e8f;
    --bs-btn-hover-border-color: #0c4e8f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--voca-blue-dark);
    --bs-btn-active-border-color: var(--voca-blue-dark);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--voca-border);
    background: #fff;
    color: var(--voca-blue);
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--voca-border);
    color: var(--voca-muted);
    font-size: 0.875rem;
}

.auth-meta strong {
    max-width: 260px;
    overflow: hidden;
    color: var(--voca-blue-dark);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 68px;
    border-bottom: 1px solid var(--voca-border);
    background: rgba(255, 255, 255, 0.96);
}

.navbar-brand span {
    color: var(--voca-blue-dark);
    font-weight: 800;
}

.status-pill,
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: #fff;
    color: var(--voca-blue-dark);
    font-weight: 700;
}

.status-pill.is-on {
    border-color: #b8dfc5;
    background: #ecfbf1;
    color: #1e6b3a;
}

.status-pill.is-off {
    border-color: #ffe1a6;
    background: #fff7df;
    color: #8a5b00;
}

.notification-count-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: var(--voca-yellow);
    color: var(--voca-blue-dark);
    font-size: 0.75rem;
    line-height: 1;
}

.avatar-xs,
.avatar-md,
.avatar-xl {
    display: inline-block;
    object-fit: cover;
    border-radius: 8px;
    background: var(--voca-yellow);
}

.avatar-xs {
    width: 28px;
    height: 28px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-xl {
    width: 92px;
    height: 92px;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 68px);
}

.sidebar {
    position: sticky;
    top: 68px;
    width: 264px;
    height: calc(100vh - 68px);
    flex: 0 0 264px;
    background: var(--voca-blue-dark);
    color: #fff;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 18px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
}

.sidebar-user span:last-child {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
}

.nav-menu {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
}

.sidebar .menu-link {
    color: rgba(255, 255, 255, 0.76);
}

.menu-group {
    display: grid;
    gap: 6px;
}

.menu-children {
    padding-left: 12px;
}

.menu-children .menu-link {
    min-height: 40px;
    font-size: 0.92rem;
}

.menu-link[data-menu-level="1"] {
    padding-left: 18px;
}

.menu-link[data-menu-level="2"] {
    padding-left: 28px;
}

.menu-toggle[aria-expanded="true"] .menu-chevron {
    transform: rotate(180deg);
}

.menu-chevron {
    transition: transform 0.2s ease;
}

.menu-link:hover,
.menu-link.active {
    background: var(--voca-yellow);
    color: var(--voca-blue-dark);
}

.dropdown-item.menu-link {
    border-radius: 0;
}

.btn-sidebar-logout {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-sidebar-logout:hover {
    background: #fff;
    color: var(--voca-blue-dark);
}

.content {
    min-width: 0;
    flex: 1;
    padding: 28px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.panel,
.metric-card {
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: var(--voca-panel);
    box-shadow: 0 8px 24px rgba(15, 93, 168, 0.07);
}

.panel {
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.metric-card {
    display: grid;
    min-height: 144px;
    gap: 8px;
    padding: 18px;
}

.metric-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: var(--voca-blue-dark);
}

.metric-label {
    color: var(--voca-muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.metric-card strong {
    overflow-wrap: anywhere;
    font-size: 1.25rem;
}

.bg-blue-soft {
    background: var(--voca-blue-soft);
}

.bg-yellow-soft {
    background: var(--voca-yellow-soft);
}

.bg-green-soft {
    background: var(--voca-green-soft);
}

.push-status {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--voca-border);
    border-radius: 8px;
    background: #f8fbff;
}

.push-status-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--voca-yellow);
    color: var(--voca-blue-dark);
}

.push-status p {
    color: var(--voca-muted);
}

.notification-message-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--voca-blue);
    border-radius: 8px;
    background: #eff6ff;
}

.notification-message-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notification-message-card p {
    color: var(--voca-muted);
}

.notification-message-card small {
    color: var(--voca-blue-dark);
    font-weight: 700;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--voca-border);
}

.info-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-list span {
    color: var(--voca-muted);
    font-weight: 700;
}

.info-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.info-list-lg > div {
    grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
}

.table thead th {
    color: var(--voca-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.table tbody td {
    vertical-align: middle;
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 42px 16px 28px;
    color: var(--voca-muted);
    text-align: center;
}

.empty-state i {
    color: var(--voca-blue);
    font-size: 2rem;
}

.empty-state strong {
    color: var(--voca-text);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
}

.profile-panel {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 320px;
    gap: 12px;
    text-align: center;
}

.profile-panel h3 {
    margin: 0;
}

.toast {
    border-radius: 8px;
}

.alert {
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .content {
        padding: 18px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        min-height: 240px;
    }
}

@media (max-width: 575.98px) {
    .auth-panel {
        padding: 24px 18px;
    }

    .content {
        padding: 14px;
    }

    .panel {
        padding: 16px;
    }

    .info-list > div,
    .info-list-lg > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .auth-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-meta strong {
        max-width: 100%;
    }
}

.mobile-app-body {
    min-height: 100vh;
    background: #dce8f4;
}

.mobile-shell {
    position: relative;
    width: 100%;
    max-width: 540px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f4f8fd;
    box-shadow: 0 24px 70px rgba(8, 43, 87, 0.2);
}

.mobile-topbar {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1030;
    display: flex;
    width: 100%;
    max-width: 540px;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 18px 12px;
    border-bottom: 1px solid rgba(8, 43, 87, 0.08);
    background: rgba(244, 248, 253, 0.95);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.mobile-topbar-brand,
.mobile-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mobile-topbar-brand {
    min-width: 0;
    color: #082b57;
    font-weight: 800;
    text-decoration: none;
}

.mobile-topbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-topbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.mobile-icon-button {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(8, 43, 87, 0.08);
    border-radius: 8px;
    background: #fff;
    color: #082b57;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(8, 43, 87, 0.08);
}

.mobile-icon-button.is-danger {
    border-color: rgba(220, 38, 38, 0.16);
    color: #dc2626;
}

.mobile-icon-button .notification-count-badge,
.mobile-bottom-link .notification-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

.mobile-content {
    min-height: 100vh;
    padding: calc(env(safe-area-inset-top, 0px) + 88px) 16px calc(env(safe-area-inset-bottom, 0px) + 112px);
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 1030;
    display: grid;
    width: 100%;
    max-width: 540px;
    min-height: 76px;
    grid-template-columns: repeat(var(--mobile-bottom-items, 5), minmax(0, 1fr));
    align-items: end;
    gap: 4px;
    padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
    border-top: 1px solid rgba(8, 43, 87, 0.08);
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -16px 40px rgba(8, 43, 87, 0.13);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.mobile-bottom-link {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    gap: 3px;
    color: #728099;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}

.mobile-bottom-link i {
    font-size: 1.25rem;
}

.mobile-bottom-link.active {
    color: #082b57;
}

.mobile-bottom-link.is-primary {
    color: #082b57;
}

.mobile-bottom-orb {
    display: grid;
    width: 58px;
    height: 58px;
    margin-top: -32px;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #ffd23f;
    box-shadow: 0 16px 30px rgba(244, 189, 33, 0.45);
}

.mobile-bottom-link.is-primary i {
    font-size: 1.6rem;
}

.mobile-dashboard-page,
.mobile-profile-page {
    display: grid;
    gap: 18px;
}

.mobile-hero-card,
.mobile-section,
.mobile-profile-card,
.mobile-menu-modal {
    border: 1px solid rgba(8, 43, 87, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(8, 43, 87, 0.08);
}

.mobile-hero-card {
    display: flex;
    min-height: 168px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    padding: 22px;
    background: #082b57;
    color: #fff;
}

.mobile-hero-card p {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.mobile-hero-card h1 {
    max-width: 270px;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.15;
}

.mobile-user-type {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin-top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffd23f;
    color: #082b57;
    font-size: 0.78rem;
    font-weight: 800;
}

.mobile-hero-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border: 4px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    object-fit: cover;
}

.mobile-section,
.mobile-profile-card {
    padding: 18px;
}

.mobile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-section-header h2 {
    margin: 2px 0 0;
    color: #082b57;
    font-size: 1.05rem;
    font-weight: 800;
}

.mobile-section-kicker {
    color: #7a8798;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-section-link {
    border: 0;
    background: transparent;
    color: #0f5da8;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.mobile-message-card,
.mobile-push-card {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #d9e6f5;
    border-radius: 14px;
    background: #f7fbff;
}

.mobile-message-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    background: #ffd23f;
    color: #082b57;
}

.mobile-message-card span,
.mobile-push-card small {
    color: #0f5da8;
    font-size: 0.78rem;
    font-weight: 800;
}

.mobile-message-card h3 {
    margin: 2px 0 5px;
    color: #10213d;
    font-size: 0.98rem;
    font-weight: 800;
}

.mobile-message-card p,
.mobile-push-card p {
    margin: 0;
    color: #66758a;
    font-size: 0.88rem;
}

.mobile-message-list {
    display: grid;
    gap: 10px;
}

.mobile-notification-item {
    display: flex;
    width: 100%;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d9e6f5;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-align: left;
    text-decoration: none;
}

.mobile-notification-item.is-unread {
    border-color: rgba(255, 210, 63, 0.9);
    background: #fffaf0;
}

.mobile-notification-item-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: #eef5ff;
    color: #0f5da8;
}

.mobile-notification-item.is-unread .mobile-notification-item-icon {
    background: #ffd23f;
    color: #082b57;
}

.mobile-notification-item-body {
    min-width: 0;
    flex: 1;
}

.mobile-notification-item-title {
    display: block;
    color: #10213d;
    font-weight: 800;
}

.mobile-notification-item-text {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 6px;
    color: #66758a;
    font-size: 0.86rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mobile-notification-item-meta {
    color: #7a8798;
    font-size: 0.76rem;
    font-weight: 700;
}

.mobile-notification-read-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    padding: 0;
}

.mobile-empty-card {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 22px 14px;
    border: 1px dashed #cbd9ea;
    border-radius: 14px;
    background: #f8fbff;
    color: #7a8798;
    text-align: center;
}

.mobile-empty-card i {
    color: #0f5da8;
    font-size: 1.6rem;
}

.mobile-empty-card strong {
    color: #10213d;
}

.mobile-attendance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mobile-attendance-card {
    display: grid;
    min-height: 142px;
    align-content: space-between;
    gap: 8px;
    padding: 16px;
    border: 1px solid #d9e6f5;
    border-radius: 16px;
    background: #f7fbff;
    color: #082b57;
    text-decoration: none;
}

.mobile-attendance-card.is-out {
    background: #fffaf0;
}

.mobile-attendance-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #082b57;
    color: #fff;
}

.mobile-attendance-card.is-out .mobile-attendance-icon {
    background: #ffd23f;
    color: #082b57;
}

.mobile-attendance-card span:not(.mobile-attendance-icon) {
    color: #65758b;
    font-size: 0.8rem;
    font-weight: 800;
}

.mobile-attendance-card strong {
    font-size: 1.22rem;
    font-weight: 800;
}

.mobile-attendance-card small {
    color: #8591a3;
    font-weight: 700;
}

.attendance-user-summary-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(8, 43, 87, 0.08);
    border-radius: 18px;
    background: #082b57;
    color: #fff;
    box-shadow: 0 14px 34px rgba(8, 43, 87, 0.16);
}

.attendance-user-summary-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendance-user-summary-head .metric-label {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.attendance-user-summary-head strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 1.12rem;
}

.attendance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.attendance-summary-item {
    display: grid;
    min-width: 0;
    min-height: 94px;
    align-content: space-between;
    justify-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.attendance-summary-item i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffd23f;
    font-size: 1rem;
}

.attendance-summary-item span {
    width: 100%;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
}

.attendance-summary-item strong {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.attendance-summary-item.is-present i {
    background: #e7f7ed;
    color: #1e7a43;
}

.attendance-summary-item.is-late i,
.attendance-summary-item.is-alpha i {
    background: #ffe5e5;
    color: #dc2626;
}

.attendance-summary-item.is-holiday {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(220, 38, 38, 0.16);
}

.attendance-summary-item.is-holiday i {
    background: #fee2e2;
    color: #b91c1c;
}

.attendance-summary-item.is-permission i {
    background: #fff5cf;
    color: #8a5b00;
}

.attendance-summary-item.is-sick i {
    background: #e8f2ff;
    color: #0f5da8;
}

.attendance-row-holiday {
    --bs-table-bg: #fff1f2;
    --bs-table-striped-bg: #ffe4e6;
}

.attendance-row-holiday td:first-child strong {
    color: #b91c1c;
}

.attendance-holiday-note {
    margin-top: 4px;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 800;
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mobile-quick-menu-link {
    display: grid;
    min-width: 0;
    min-height: 92px;
    align-content: start;
    justify-items: center;
    gap: 8px;
    padding: 12px 6px;
    border: 1px solid #dfe9f5;
    border-radius: 16px;
    background: #fbfdff;
    color: #082b57;
    text-align: center;
    text-decoration: none;
}

.mobile-quick-menu-link span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #eef5ff;
    color: #0f5da8;
}

.mobile-quick-menu-link strong {
    width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.mobile-quick-menu-link.active span,
.mobile-quick-menu-link:hover span {
    background: #ffd23f;
    color: #082b57;
}

.mobile-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-action-row .btn {
    flex: 1 1 0;
    min-width: 104px;
}

.mobile-profile-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.mobile-profile-card h1 {
    margin: 0;
    color: #082b57;
    font-size: 1.35rem;
    font-weight: 800;
}

.mobile-menu-modal {
    border-radius: 18px;
}

.student-finance-page {
    display: grid;
    gap: 18px;
}

.finance-identity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce8f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(8, 43, 87, 0.08);
}

.finance-identity-icon,
.finance-record-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 12px;
    background: #eaf3ff;
    color: #0f5da8;
    font-size: 1.2rem;
}

.finance-identity-card div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.finance-identity-card small,
.finance-identity-card div span {
    color: #718096;
    font-size: 0.75rem;
}

.finance-identity-card strong {
    overflow-wrap: anywhere;
    color: #082b57;
    font-size: 1rem;
}

.finance-class-badge {
    max-width: 120px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #fff2b8;
    color: #725300;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.finance-summary-card {
    display: grid;
    min-width: 0;
    min-height: 108px;
    align-content: space-between;
    gap: 5px;
    padding: 14px;
    border: 1px solid #dce8f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(8, 43, 87, 0.07);
}

.finance-summary-card > span {
    color: #607089;
    font-size: 0.75rem;
    font-weight: 800;
}

.finance-summary-card > strong {
    color: #082b57;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.finance-summary-card > small {
    color: #8b98aa;
    font-size: 0.68rem;
}

.finance-summary-card.is-total {
    border-color: #bdd8f5;
    background: #eef6ff;
}

.finance-summary-card.is-paid {
    border-color: #bde8d0;
    background: #effbf4;
}

.finance-summary-card.is-paid > strong {
    color: #147a46;
}

.finance-summary-card.is-outstanding {
    border-color: #f4d2d2;
    background: #fff5f5;
}

.finance-summary-card.is-outstanding > strong {
    color: #b42318;
}

.finance-filter-card .form-label {
    margin-bottom: 6px;
    color: #56667e;
    font-size: 0.76rem;
    font-weight: 800;
}

.finance-filter-card .form-control,
.finance-filter-card .form-select,
.finance-filter-card .btn {
    min-height: 44px;
}

.finance-record-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.finance-record-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dce8f5;
    border-radius: 14px;
    background: #fff;
}

.finance-record-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px;
}

.finance-record-head > div {
    min-width: 0;
}

.finance-record-head small,
.finance-record-head div > span,
.saving-record-content small,
.saving-record-content div > span {
    display: block;
    color: #7a879a;
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.finance-record-head h3,
.saving-record-content h3 {
    margin: 2px 0 3px;
    color: #082b57;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.finance-record-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f4f8fd;
}

.finance-record-amount span {
    color: #66758b;
    font-size: 0.75rem;
}

.finance-record-amount strong {
    color: #082b57;
    font-size: 1rem;
    text-align: right;
}

.finance-record-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 12px 2px;
}

.finance-record-breakdown div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.finance-record-breakdown span {
    color: #7a879a;
    font-size: 0.68rem;
}

.finance-record-breakdown strong {
    color: #33445e;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.finance-record-breakdown .is-emphasis strong {
    color: #b42318;
}

.finance-record-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-top: 10px;
    border-top: 1px solid #e7eef7;
    color: #67768b;
    font-size: 0.68rem;
}

.finance-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.finance-pagination small {
    color: #718096;
    font-size: 0.72rem;
    line-height: 1.4;
}

.finance-pagination > div {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.finance-pagination .btn {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
}

.saving-balance-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #164f89;
    border-radius: 18px;
    background: #082b57;
    color: #fff;
    box-shadow: 0 16px 34px rgba(8, 43, 87, 0.24);
}

.saving-balance-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
}

.saving-balance-head > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #ffd23f;
    color: #082b57;
}

.saving-balance-head small {
    color: #c9d9eb;
    font-weight: 700;
}

.saving-balance-card > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 16px 0 5px;
    font-size: 2rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.saving-student-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1px;
}

.saving-student-meta span:first-child {
    font-size: 0.85rem;
    font-weight: 800;
}

.saving-student-meta span:last-child {
    color: #c9d9eb;
    font-size: 0.68rem;
}

.saving-balance-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.saving-balance-stats div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.saving-balance-stats i {
    color: #ffd23f;
}

.saving-balance-stats span {
    color: #b9cde2;
    font-size: 0.66rem;
}

.saving-balance-stats strong {
    font-size: 0.72rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.saving-record-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saving-record-card.is-credit .finance-record-icon {
    background: #eaf9f0;
    color: #147a46;
}

.saving-record-card.is-debit .finance-record-icon {
    background: #fff0f0;
    color: #b42318;
}

.saving-record-content {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.saving-record-content > div:first-child {
    min-width: 0;
}

.saving-record-value {
    flex: 0 0 auto;
    text-align: right;
}

.saving-record-value strong {
    display: block;
    font-size: 0.86rem;
}

.saving-record-card.is-credit .saving-record-value strong {
    color: #147a46;
}

.saving-record-card.is-debit .saving-record-value strong {
    color: #b42318;
}

.finance-spin {
    animation: finance-spin 0.8s linear infinite;
}

@keyframes finance-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 390px) {
    .mobile-content {
        padding-right: 12px;
        padding-left: 12px;
    }

    .mobile-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .attendance-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-hero-card {
        padding: 18px;
    }

    .mobile-hero-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

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

    .finance-summary-card.is-total {
        grid-column: 1 / -1;
        min-height: 88px;
    }

    .finance-identity-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .finance-class-badge {
        grid-column: 2;
        justify-self: start;
        max-width: 100%;
    }

    .finance-record-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .finance-record-head > .badge {
        grid-column: 2;
        justify-self: start;
    }

    .saving-record-content {
        align-items: flex-start;
    }

    .saving-balance-card > strong {
        font-size: 1.65rem;
    }
}
