@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --tte-primary: #1565c0;
    --tte-primary-light: #42a5f5;
    --tte-primary-dark: #0d47a1;
    --tte-accent: #7c4dff;
    --tte-success: #2e7d32;
    --tte-danger: #c62828;
    --tte-gradient: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #5e35b1 100%);
    --tte-gradient-soft: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    --tte-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --tte-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --tte-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --tte-radius: 14px;
    --tte-radius-sm: 10px;
    --tte-text: #1e293b;
    --tte-text-muted: #64748b;
    --tte-border: rgba(148, 163, 184, 0.22);
    --tte-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tte-fs-base: 0.9375rem;
    --tte-fs-sm: 0.8125rem;
    --tte-fs-lg: 1.0625rem;
    --tte-fs-xl: 1.375rem;
    --tte-fs-2xl: 1.75rem;
    --tte-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
.content-wrapper,
.tte-auth-body,
.wrapper {
    font-family: var(--tte-font);
    font-size: var(--tte-fs-base);
    color: var(--tte-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================== AUTH ===================== */
.tte-auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a3d91 0%, #1565c0 40%, #4527a0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.tte-auth-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.tte-auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 920px;
    min-height: 560px;
    border-radius: calc(var(--tte-radius) + 4px);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tte-auth-brand {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(160deg, rgba(13, 71, 161, 0.95) 0%, rgba(94, 53, 177, 0.92) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tte-auth-brand__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tte-auth-brand__orb-1 {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -60px;
    background: rgba(255, 255, 255, 0.1);
}

.tte-auth-brand__orb-2 {
    width: 140px;
    height: 140px;
    bottom: -40px;
    left: -30px;
    background: rgba(255, 255, 255, 0.08);
}

.tte-auth-brand__orb-3 {
    width: 80px;
    height: 80px;
    top: 45%;
    left: 55%;
    background: rgba(255, 255, 255, 0.06);
}

.tte-auth-brand__content {
    position: relative;
    z-index: 1;
}

.tte-auth-brand__logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    padding: 0.55rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: var(--tte-transition);
}

.tte-auth-brand__logo:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.tte-auth-brand__logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.08));
}

.tte-auth-brand__title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.tte-auth-brand__tagline {
    font-size: 0.9375rem;
    opacity: 0.88;
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

.tte-auth-brand__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tte-auth-brand__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    opacity: 0.92;
    margin-bottom: 0.75rem;
}

.tte-auth-brand__features li i {
    color: #81d4fa;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.tte-auth-partner-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.tte-auth-partner-logos__img {
    height: 44px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    padding: 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: var(--tte-transition);
}

.tte-auth-partner-logos__img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.tte-auth-partner-logos--mobile {
    display: none;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-top: 0;
    border-top: none;
    justify-content: center;
}

.tte-auth-partner-logos--mobile .tte-auth-partner-logos__img {
    height: 38px;
    max-width: 115px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.tte-auth-panel {
    background: #fff;
    padding: 2rem 2.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tte-auth-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.tte-auth-card__head {
    margin-bottom: 1.5rem;
}

.tte-auth-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--tte-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.tte-auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--tte-text-muted);
    margin: 0;
}

.tte-auth-alert {
    border-radius: var(--tte-radius-sm);
    font-size: var(--tte-fs-sm);
    margin-bottom: 1rem;
}

.tte-auth-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tte-text);
    margin-bottom: 0.4rem;
}

.tte-auth-input-wrap {
    position: relative;
}

.tte-auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    z-index: 2;
    pointer-events: none;
}

.tte-auth-input-wrap .form-control {
    padding: 0.65rem 0.9rem 0.65rem 2.5rem;
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: var(--tte-radius-sm);
    font-size: var(--tte-fs-sm);
    transition: var(--tte-transition);
    background: #f8fafc;
}

.tte-auth-input-wrap .form-control:focus {
    background: #fff;
    border-color: var(--tte-primary-light);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.tte-auth-input-wrap .form-control.is-invalid {
    border-color: #ef5350;
    background: #fff5f5;
}

.tte-auth-input-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
    transition: var(--tte-transition);
}

.tte-auth-input-toggle:hover {
    color: var(--tte-primary);
    background: rgba(21, 101, 192, 0.08);
}

.tte-auth-input-wrap:has(.tte-auth-input-toggle) .form-control {
    padding-right: 2.75rem;
}

.tte-auth-captcha {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--tte-radius-sm);
}

.tte-auth-captcha .captcha-image {
    border-radius: 6px;
    height: 50px;
}

.tte-auth-submit {
    margin-top: 1.35rem;
    min-height: 48px;
    border: none;
    border-radius: var(--tte-radius-sm);
    background: var(--tte-gradient);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.35);
    transition: var(--tte-transition);
}

.tte-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(21, 101, 192, 0.42);
    background: var(--tte-gradient);
}

.tte-auth-submit i {
    font-size: 0.8125rem;
    transition: transform 0.2s ease;
}

.tte-auth-submit:hover i {
    transform: translateX(3px);
}

.tte-auth-footer {
    text-align: center;
    margin-top: 1.25rem;
}

.tte-auth-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tte-primary);
    text-decoration: none;
    transition: var(--tte-transition);
}

.tte-auth-link:hover {
    color: var(--tte-primary-dark);
    text-decoration: none;
}

.tte-auth-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.15rem;
    background: #eef4fc;
    border: 1px solid #d6e4f5;
    border-radius: var(--tte-radius-sm);
    font-size: 0.75rem;
    line-height: 1.45;
    color: #475569;
}

.tte-auth-info-box i {
    color: var(--tte-primary);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.tte-auth-brand__logo--forgot,
.tte-auth-mobile-brand__logo--forgot {
    background: rgba(255, 255, 255, 0.22);
}

.tte-auth-submit--forgot:hover i {
    transform: translateX(0) translateY(-2px);
}

.tte-auth-copy {
    text-align: center;
    font-size: 0.6875rem;
    color: #94a3b8;
    margin: 1.5rem 0 0;
}

.tte-auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.tte-auth-mobile-brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tte-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tte-auth-mobile-brand strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--tte-text);
    line-height: 1.2;
}

.tte-auth-mobile-brand span {
    display: block;
    font-size: 0.6875rem;
    color: var(--tte-text-muted);
    margin-top: 0.1rem;
}

.tte-auth-wrapper {
    width: 100%;
    max-width: 440px;
}

.tte-logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--tte-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
}

.tte-auth-header h1 {
    font-size: var(--tte-fs-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tte-btn-primary {
    background: var(--tte-gradient);
    border: none;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--tte-transition);
}

.tte-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.35);
}

.captcha-image {
    border-radius: var(--tte-radius-sm);
    height: 50px;
}

/* ===================== NAVBAR ===================== */
.main-header.navbar.tte-navbar {
    background: var(--tte-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(13, 71, 161, 0.25);
    min-height: 64px;
    padding: 0.35rem 0;
    backdrop-filter: blur(12px);
}

.main-header .container,
.main-header .container-fluid {
    max-width: 1400px;
}

.main-header .brand-link {
    color: #fff !important;
    font-size: var(--tte-fs-lg);
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.65rem 0.85rem;
    border-radius: var(--tte-radius-sm);
    transition: var(--tte-transition);
}

.main-header .brand-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.main-header .brand-link .brand-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.main-header .brand-link .tte-brand-logo {
    width: 36px;
    height: 36px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    object-fit: contain;
    object-position: center;
}

.main-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: var(--tte-fs-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.95rem !important;
    margin: 0.15rem 0.2rem;
    border-radius: 999px;
    transition: var(--tte-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.main-header .navbar-nav .nav-link i {
    font-size: 0.9rem;
    opacity: 0.95;
}

.main-header .navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.main-header .navbar-nav .nav-link.active,
.main-header .navbar-nav .nav-item.active > .nav-link {
    color: var(--tte-primary-dark) !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.main-header .navbar-nav .nav-link.active i,
.main-header .navbar-nav .nav-item.active > .nav-link i {
    color: var(--tte-primary);
}

.main-header .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--tte-radius-sm);
    padding: 0.4rem 0.55rem;
    transition: var(--tte-transition);
}

.main-header .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.12);
}

.main-header .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ===================== CONTENT ===================== */
.tte-content-wrapper,
.content-wrapper {
    background: var(--tte-gradient-soft);
    min-height: calc(100vh - 64px);
}

.tte-content-header.content-header,
.content-header.tte-content-header {
    background: transparent;
    padding: 1.35rem 0 0.75rem;
    border-bottom: none;
}

.tte-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.tte-page-title {
    font-size: var(--tte-fs-2xl);
    font-weight: 700;
    color: var(--tte-text);
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
}

.tte-page-subtitle {
    font-size: var(--tte-fs-sm);
    color: var(--tte-text-muted);
    margin: 0.35rem 0 0;
    font-weight: 400;
}

.tte-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: #fff;
    border: 1px solid var(--tte-border);
    border-radius: 999px;
    font-size: var(--tte-fs-sm);
    color: var(--tte-text-muted);
    box-shadow: var(--tte-shadow-sm);
}

.tte-page-badge--surat {
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffcc80;
    color: #e65100;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.15);
}

.tte-page-badge--surat-warn {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ffb74d;
    color: #ef6c00;
}

.tte-page-badge--surat-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #ef5350;
    color: #c62828;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.18);
}

.tte-page-badge--surat-danger .tte-page-badge__icon {
    background: #c62828;
}

.tte-page-badge--surat-alarm {
    animation: tte-surat-alarm-pulse 0.55s ease-in-out 3;
}

@keyframes tte-surat-alarm-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(245, 124, 0, 0.15); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(245, 124, 0, 0.25), 0 8px 24px rgba(198, 40, 40, 0.35); }
}

.tte-page-badge--laporan {
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    color: #2e7d32;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.12);
}

.tte-page-badge--laporan .tte-page-badge__icon {
    background: #2e7d32;
    animation: none;
}

.tte-page-badge--datalog {
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
    border: 1px solid #b39ddb;
    color: #4527a0;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(69, 39, 160, 0.12);
}

.tte-page-badge--datalog .tte-page-badge__icon {
    background: #4527a0;
    animation: none;
}

.tte-page-badge--infografik {
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #64b5f6;
    color: #1565c0;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.12);
}

.tte-page-badge--infografik .tte-page-badge__icon {
    background: #1565c0;
    animation: none;
}

.tte-page-badge--infografik.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.tte-year-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: #fff;
    border-radius: 999px;
    padding: 0.28rem 1.75rem 0.28rem 0.65rem;
    font-family: var(--tte-font);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1565c0;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(21, 101, 192, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231565c0' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    min-width: 4.5rem;
    transition: var(--tte-transition);
}

.tte-year-select:hover,
.tte-year-select:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(21, 101, 192, 0.28), 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.tte-page-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f57c00;
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
    animation: tte-bell-pulse 2s ease-in-out infinite;
}

.tte-page-badge__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    background: #fff;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: inherit;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tte-page-badge__label {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes tte-bell-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.tte-content,
.content.tte-content {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

/* ===================== CARDS ===================== */
.card {
    border: 1px solid var(--tte-border);
    border-radius: var(--tte-radius);
    box-shadow: var(--tte-shadow-sm);
    transition: var(--tte-transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--tte-shadow-md);
}

.tte-profile-card {
    border: none;
    background: #fff;
    overflow: hidden;
    transition: var(--tte-transition);
}

.tte-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tte-shadow-lg) !important;
}

.tte-profile-card__header {
    position: relative;
    height: 88px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #5e35b1 100%);
    overflow: hidden;
}

.tte-profile-card__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tte-profile-card__orb-1 {
    width: 100px;
    height: 100px;
    top: -30px;
    right: -20px;
    background: rgba(255, 255, 255, 0.12);
}

.tte-profile-card__orb-2 {
    width: 60px;
    height: 60px;
    bottom: -20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.tte-profile-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tte-profile-card__body {
    padding: 0 1.35rem 1.5rem !important;
    text-align: center;
}

.tte-profile-card__avatar-wrap {
    position: relative;
    display: inline-block;
    margin-top: -52px;
    margin-bottom: 0.85rem;
}

.tte-profile-card__avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0, #7c4dff);
    z-index: 0;
}

.tte-profile-card__avatar-wrap .tte-avatar,
.tte-profile-card__avatar-wrap .tte-avatar-placeholder {
    position: relative;
    z-index: 1;
}

.tte-profile-card__status {
    position: absolute;
    bottom: 4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: #fff;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #2e7d32;
    box-shadow: var(--tte-shadow-sm);
    border: 1px solid #e8f5e9;
}

.tte-profile-card__status i {
    font-size: 0.45rem;
    color: #43a047;
}

.tte-profile-card .card-body,
.tte-profile-card__body {
    padding-top: 0;
}

.tte-avatar,
.tte-avatar-placeholder {
    width: 104px;
    height: 104px;
}

.tte-avatar img {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--tte-shadow-md);
}

.tte-avatar-placeholder {
    border-radius: 50%;
    background: linear-gradient(145deg, #e3f2fd, #ede7f6);
    color: var(--tte-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.15rem;
    border: 4px solid #fff;
    box-shadow: var(--tte-shadow-md);
}

.tte-avatar-placeholder.large {
    width: 132px;
    height: 132px;
    font-size: 2.75rem;
}

.tte-profile-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--tte-text);
    margin-bottom: 0.2rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.tte-profile-role {
    font-size: 0.8125rem;
    color: var(--tte-text-muted);
    margin-bottom: 1.15rem;
    font-weight: 400;
}

.tte-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
}

.tte-profile-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: var(--tte-radius-sm);
    transition: var(--tte-transition);
}

.tte-profile-info__item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    transform: translateX(3px);
}

.tte-profile-info__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.95rem;
}

.tte-profile-info__icon-nip {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.tte-profile-info__icon-unit {
    background: linear-gradient(135deg, #ede7f6, #d1c4e9);
    color: #5e35b1;
}

.tte-profile-info__icon-email {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.tte-profile-info__text {
    flex: 1;
    min-width: 0;
}

.tte-profile-info__text span {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tte-text-muted);
    margin-bottom: 0.15rem;
}

.tte-profile-info__text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tte-text);
    line-height: 1.45;
    word-break: break-word;
}

/* Legacy profile list (profil page) */
.tte-profile-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.tte-profile-list li:last-child {
    border-bottom: none;
}

.tte-profile-list span {
    color: var(--tte-text-muted);
    font-size: var(--tte-fs-sm);
    font-weight: 400;
    min-width: 90px;
}

.tte-profile-list strong {
    font-size: var(--tte-fs-sm);
    font-weight: 500;
    color: var(--tte-text);
    text-align: right;
    line-height: 1.45;
}

/* ===================== STAT CARDS ===================== */
.tte-stat-row {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
    display: flex;
    flex-wrap: wrap;
}

.tte-stat-row > [class*='col-'] {
    display: flex;
}

.tte-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 178px;
    border-radius: var(--tte-radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none !important;
    box-shadow: var(--tte-shadow-md);
    transition: var(--tte-transition);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tte-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tte-shadow-lg);
    color: #fff;
}

.tte-stat-card__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tte-stat-card__orb-1 {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -30px;
    background: rgba(255, 255, 255, 0.12);
}

.tte-stat-card__orb-2 {
    width: 70px;
    height: 70px;
    bottom: 36px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.tte-stat-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.85rem;
    flex: 1 1 auto;
}

.tte-stat-card__icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: var(--tte-transition);
    align-self: flex-start;
    margin-top: 0.15rem;
}

.tte-stat-card__icon-ring {
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    opacity: 0;
    transform: scale(0.85);
    transition: var(--tte-transition);
}

.tte-stat-card:hover .tte-stat-card__icon-wrap {
    transform: scale(1.08) rotate(-4deg);
    background: rgba(255, 255, 255, 0.28);
}

.tte-stat-card:hover .tte-stat-card__icon-ring {
    opacity: 1;
    transform: scale(1);
}

.tte-stat-card__icon-wrap i {
    font-size: 1.45rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.tte-stat-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tte-stat-card__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.92;
    margin-bottom: 0.2rem;
    min-height: 2.4em;
    line-height: 1.2;
}

.tte-stat-label-short {
    display: none;
}

.tte-stat-label-full {
    display: inline;
}

.tte-stat-card__value {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 0.35rem;
    color: #fff;
}

.tte-stat-card__hint {
    display: block;
    font-size: 0.75rem;
    opacity: 0.82;
    font-weight: 400;
    min-height: 1.125rem;
    line-height: 1.3;
}

.tte-stat-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    background: rgba(0, 0, 0, 0.14);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--tte-transition);
    margin-top: auto;
    min-height: 42px;
}

.tte-stat-card__footer i {
    transition: transform 0.25s ease;
}

.tte-stat-card:hover .tte-stat-card__footer {
    background: rgba(0, 0, 0, 0.22);
}

.tte-stat-card:hover .tte-stat-card__footer i {
    transform: translateX(4px);
}

.tte-stat-card-new {
    background: linear-gradient(145deg, #0d47a1 0%, #1976d2 55%, #42a5f5 100%);
}

.tte-stat-card-approved {
    background: linear-gradient(145deg, #1b5e20 0%, #388e3c 55%, #66bb6a 100%);
}

.tte-stat-card-rejected {
    background: linear-gradient(145deg, #b71c1c 0%, #e53935 55%, #ff7043 100%);
}

.tte-log-table tbody td {
    font-size: var(--tte-fs-sm);
    vertical-align: middle;
}

.tte-log-table tbody td strong {
    font-weight: 500;
}

/* ===================== BOOTSTRAP TABLE (SURAT BARU) ===================== */
.tte-surat-card {
    border: none;
    overflow: hidden;
}

.tte-surat-card .card-body {
    padding: 1.15rem 1.25rem 1.25rem;
}

.tte-surat-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fc 100%);
    border: 1px solid #e2eaf4;
    border-radius: var(--tte-radius-sm);
}

.tte-surat-controls__left {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.tte-surat-controls__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.tte-search-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.tte-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tte-primary);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.tte-search-input {
    width: 100%;
    height: 42px;
    padding: 0 2.5rem 0 2.65rem;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #fff;
    font-family: var(--tte-font);
    font-size: var(--tte-fs-sm);
    color: var(--tte-text);
    box-shadow: var(--tte-shadow-sm);
    transition: var(--tte-transition);
    line-height: 42px;
}

.tte-search-input::placeholder {
    color: #94a3b8;
}

.tte-search-input:focus {
    outline: none;
    border-color: var(--tte-primary);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.tte-search-clear {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--tte-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tte-transition);
    padding: 0;
}

.tte-search-clear:hover {
    background: #e2e8f0;
    color: var(--tte-text);
}

.tte-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 42px;
    padding: 0 0.85rem;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #fff;
    color: var(--tte-primary);
    box-shadow: var(--tte-shadow-sm);
    cursor: pointer;
    transition: var(--tte-transition);
    flex-shrink: 0;
    font-family: var(--tte-font);
    font-size: var(--tte-fs-sm);
    font-weight: 500;
    line-height: 1;
}

.tte-refresh-btn:hover {
    background: #e3f2fd;
    border-color: #bfd7f5;
}

.tte-refresh-btn.is-spinning i {
    animation: tte-spin 0.6s linear;
}

@keyframes tte-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tte-surat-card .fixed-table-toolbar {
    display: none !important;
}

.tte-surat-card .fixed-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.85rem;
}

.tte-surat-card .fixed-table-pagination .btn {
    border-radius: 8px;
    font-size: var(--tte-fs-sm);
    font-family: var(--tte-font);
}

.tte-surat-card .fixed-table-container {
    border: 1px solid #e8eef5;
    border-radius: var(--tte-radius-sm);
    overflow: hidden;
    box-shadow: var(--tte-shadow-sm);
}

.tte-surat-card .bootstrap-table .table {
    margin-bottom: 0;
    font-family: var(--tte-font);
    table-layout: fixed;
    width: 100%;
}

.tte-surat-card .bootstrap-table thead th {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
    border-top: none;
    border-bottom: 2px solid #dce6f2;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.85rem 0.65rem;
    vertical-align: middle !important;
}

.tte-surat-card .bootstrap-table thead th .th-inner {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.25rem;
}

.tte-surat-card .bootstrap-table thead th[data-field="nomor_surat"] .th-inner {
    justify-content: center;
}

.tte-surat-card .bootstrap-table thead th[data-field="tgl_approval"] .th-inner,
.tte-surat-card .bootstrap-table thead th[data-field="status_surat"] .th-inner {
    justify-content: center;
}

.tte-surat-card .bootstrap-table thead th[data-field="dokumen"] .th-inner,
.tte-surat-card .bootstrap-table thead th[data-field="pemohon"] .th-inner,
.tte-surat-card .bootstrap-table thead th[data-field="keterangan"] .th-inner {
    justify-content: flex-start;
}

.tte-surat-card .bootstrap-table tbody td {
    font-size: var(--tte-fs-sm);
    padding: 0.75rem 0.65rem;
    vertical-align: middle !important;
    border-color: #f1f5f9;
    color: var(--tte-text);
}

.tte-surat-card .bootstrap-table tbody tr:hover td {
    background-color: #f8fbff;
}

.tte-cell-nomor {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tte-primary-dark);
    white-space: nowrap;
}

.tte-cell-dokumen,
.tte-cell-date,
.tte-cell-pemohon,
.tte-cell-tlp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.35;
    vertical-align: middle;
    max-width: 100%;
}

.tte-cell-dokumen {
    font-weight: 500;
    color: var(--tte-text);
    justify-content: flex-start;
    width: 100%;
}

.tte-cell-dokumen i {
    color: var(--tte-primary);
    flex-shrink: 0;
}

.tte-cell-dokumen span,
.tte-cell-pemohon span,
.tte-cell-keterangan {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tte-cell-pemohon {
    justify-content: flex-start;
    width: 100%;
}

.tte-cell-pemohon--stacked {
    align-items: flex-start;
}

.tte-cell-pemohon--stacked span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.45;
}

.tte-cell-pemohon--stacked i {
    margin-top: 0.15rem;
}

.tte-cell-date,
.tte-cell-tlp {
    justify-content: center;
    width: 100%;
}

.tte-cell-date i,
.tte-cell-pemohon i,
.tte-cell-tlp i {
    color: #94a3b8;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.tte-cell-date--approval i {
    color: #43a047;
}

.tte-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.tte-status-badge--disetujui {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.tte-status-badge--ditolak {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.tte-cell-keterangan {
    display: block;
    line-height: 1.4;
    color: var(--tte-text-muted);
    text-align: left;
}

.tte-cell-datetime,
.tte-cell-ip,
.tte-cell-device {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.35;
    vertical-align: middle;
    max-width: 100%;
}

.tte-cell-datetime {
    justify-content: center;
    width: 100%;
    font-family: 'Roboto Mono', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--tte-text);
}

.tte-cell-datetime i {
    color: #7c4dff;
    flex-shrink: 0;
}

.tte-cell-kode {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tte-primary-dark);
    white-space: nowrap;
}

.tte-cell-kode--empty {
    color: var(--tte-text-muted);
    font-weight: 400;
}

.tte-cell-ip {
    justify-content: center;
    width: 100%;
    font-family: 'Roboto Mono', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--tte-text);
}

.tte-cell-ip i {
    color: #00838f;
    flex-shrink: 0;
}

.tte-cell-device {
    justify-content: flex-start;
    width: 100%;
    font-size: 0.8125rem;
    color: var(--tte-text-muted);
}

.tte-cell-device i {
    color: #64748b;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.tte-cell-device span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tte-surat-card .bootstrap-table thead th[data-field="tanggal"] .th-inner,
.tte-surat-card .bootstrap-table thead th[data-field="kode_dokumen"] .th-inner,
.tte-surat-card .bootstrap-table thead th[data-field="ip_user"] .th-inner {
    justify-content: center;
}

.tte-op-btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.tte-op-btn-group .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    line-height: 1;
}

.tte-op-btn-group .btn-primary {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    border: none;
}

.tte-op-btn-group .btn-outline-primary {
    border-color: #bfd7f5;
    color: var(--tte-primary);
}

.tte-op-btn-group .btn-outline-primary:hover {
    background: #e3f2fd;
}

.tte-surat-card .page-item.active .page-link {
    background: var(--tte-primary);
    border-color: var(--tte-primary);
}

.tte-surat-card .page-link {
    color: var(--tte-primary);
    border-radius: 8px;
    margin: 0 2px;
}

.tte-surat-card .fixed-table-loading {
    background: rgba(255, 255, 255, 0.88);
}

.tte-surat-card .pagination-detail {
    font-size: var(--tte-fs-sm);
    color: var(--tte-text-muted);
    margin: 0;
    line-height: 42px;
}

@media (max-width: 767.98px) {
    .tte-surat-card .card-body {
        padding: 0.85rem;
    }

    .tte-surat-controls {
        flex-wrap: nowrap;
        padding: 0.75rem;
        gap: 0.65rem;
    }

    .tte-surat-controls__left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .tte-surat-controls__right {
        flex: 0 0 auto;
    }

    .tte-search-wrap {
        max-width: none;
    }

    .tte-search-input {
        height: 40px;
        line-height: 40px;
        font-size: 0.8125rem;
    }

    .tte-refresh-btn {
        height: 40px;
        min-width: 40px;
        padding: 0;
    }

    .tte-surat-card .bootstrap-table .table {
        table-layout: auto;
    }
}

@media (max-width: 767.98px) {
    .tte-log-table thead th:nth-child(4),
    .tte-log-table thead th:nth-child(6),
    .tte-log-table tbody td:nth-child(4),
    .tte-log-table tbody td:nth-child(6) {
        display: none;
    }
}

/* Legacy stat boxes (other pages) */
.tte-stat {
    border-radius: var(--tte-radius);
    overflow: hidden;
    box-shadow: var(--tte-shadow-md);
    transition: var(--tte-transition);
    border: none;
}

.tte-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--tte-shadow-lg);
}

.tte-stat .inner {
    padding: 1.25rem 1.25rem 0.75rem;
}

.tte-stat .inner h3 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.25rem;
}

.tte-stat .inner p {
    font-size: var(--tte-fs-sm);
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.95;
    margin: 0;
}

.tte-stat .icon {
    font-size: 4.5rem;
    top: 0.75rem;
    opacity: 0.18;
    transition: var(--tte-transition);
}

.tte-stat:hover .icon {
    opacity: 0.28;
    transform: scale(1.05);
}

.tte-stat-new {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
}

.tte-stat-approved {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
}

.tte-stat-rejected {
    background: linear-gradient(135deg, #c62828 0%, #ef5350 100%);
}

.tte-stat .small-box-footer {
    background: rgba(0, 0, 0, 0.12);
    font-size: var(--tte-fs-sm);
    font-weight: 500;
    padding: 0.55rem 0;
    transition: var(--tte-transition);
}

.tte-stat .small-box-footer:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ===================== CHART CARD ===================== */
.tte-chart-card .card-header {
    background: #fff;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid #f1f5f9;
}

.tte-chart-card .card-title {
    font-size: var(--tte-fs-lg);
    font-weight: 600;
    color: var(--tte-text);
    margin: 0;
}

.tte-chart-card .card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    background: #fff;
}

#suratChart {
    min-height: 300px;
}

/* ===================== INFOGRAFIK ===================== */
.tte-infografik-row {
    align-items: stretch;
}

.tte-infografik-card {
    border: none;
    border-radius: var(--tte-radius);
    overflow: hidden;
    transition: var(--tte-transition);
}

.tte-infografik-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tte-shadow-lg) !important;
}

.tte-infografik-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.tte-infografik-card__header--pie {
    background: linear-gradient(135deg, #1565c0 0%, #5e35b1 100%);
}

.tte-infografik-card__header--bar {
    background: linear-gradient(135deg, #0d47a1 0%, #00838f 100%);
}

.tte-infografik-card__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.2rem;
}

.tte-infografik-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.tte-infografik-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.tte-infografik-card__body {
    padding: 1.35rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tte-infografik-pie-wrap {
    position: relative;
    height: 260px;
    margin-bottom: 1.25rem;
}

.tte-infografik-pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.tte-infografik-pie-center__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tte-primary-dark);
    line-height: 1;
}

.tte-infografik-pie-center__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tte-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tte-infografik-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.tte-infografik-legend__item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.65rem;
    background: #fff;
    border: 1px solid var(--tte-border);
    border-radius: var(--tte-radius-sm);
    box-shadow: var(--tte-shadow-sm);
    transition: var(--tte-transition);
}

.tte-infografik-legend__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--tte-shadow-md);
}

.tte-infografik-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.tte-infografik-legend__item--masuk .tte-infografik-legend__dot {
    background: linear-gradient(135deg, #42a5f5, #1565c0);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.tte-infografik-legend__item--disetujui .tte-infografik-legend__dot {
    background: linear-gradient(135deg, #66bb6a, #2e7d32);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.tte-infografik-legend__item--ditolak .tte-infografik-legend__dot {
    background: linear-gradient(135deg, #ef5350, #c62828);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.tte-infografik-legend__text {
    min-width: 0;
}

.tte-infografik-legend__text span {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--tte-text-muted);
    line-height: 1.3;
}

.tte-infografik-legend__text strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tte-text);
    line-height: 1.2;
}

.tte-infografik-bar-wrap {
    position: relative;
    height: 380px;
}

/* ===================== PROFIL PAGE ===================== */
.tte-profil-row {
    align-items: stretch;
}

.tte-profil-stat-row {
    align-items: stretch;
}

.tte-profil-stat-row > [class*='col-'] {
    display: flex;
}

.tte-profil-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 168px;
    border-radius: var(--tte-radius);
    overflow: hidden;
    color: #fff;
    box-shadow: var(--tte-shadow-md);
    transition: var(--tte-transition);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tte-profil-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--tte-shadow-lg);
}

.tte-profil-stat--total {
    background: linear-gradient(145deg, #0d47a1 0%, #1976d2 55%, #42a5f5 100%);
}

.tte-profil-stat--approved {
    background: linear-gradient(145deg, #1b5e20 0%, #388e3c 55%, #66bb6a 100%);
}

.tte-profil-stat--rejected {
    background: linear-gradient(145deg, #b71c1c 0%, #e53935 55%, #ff7043 100%);
}

.tte-profil-stat__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tte-profil-stat__orb-1 {
    width: 110px;
    height: 110px;
    top: -38px;
    right: -28px;
    background: rgba(255, 255, 255, 0.12);
}

.tte-profil-stat__orb-2 {
    width: 64px;
    height: 64px;
    bottom: 42px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.tte-profil-stat__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.15rem 0.65rem;
    flex: 1 1 auto;
}

.tte-profil-stat__icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: var(--tte-transition);
}

.tte-profil-stat__icon-ring {
    position: absolute;
    inset: -4px;
    border-radius: 17px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    opacity: 0;
    transform: scale(0.85);
    transition: var(--tte-transition);
}

.tte-profil-stat:hover .tte-profil-stat__icon-wrap {
    transform: scale(1.07) rotate(-4deg);
    background: rgba(255, 255, 255, 0.28);
}

.tte-profil-stat:hover .tte-profil-stat__icon-ring {
    opacity: 1;
    transform: scale(1);
}

.tte-profil-stat__icon-wrap i {
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.tte-profil-stat__content {
    flex: 1;
    min-width: 0;
}

.tte-profil-stat__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1.3;
}

.tte-profil-stat__value {
    margin: 0.2rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tte-profil-stat__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 400;
    opacity: 0.82;
    line-height: 1.35;
}

.tte-profil-stat__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.6875rem;
    font-weight: 500;
}

.tte-profil-stat__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.92;
}

.tte-profil-stat__badge i {
    font-size: 0.75rem;
}

.tte-profil-stat__pct {
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    line-height: 1.2;
}

.tte-profil-stat__progress {
    position: relative;
    z-index: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
}

.tte-profil-stat__progress-bar {
    display: block;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0 2px 2px 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tte-btn-ubah-password {
    border-radius: var(--tte-radius-sm);
    font-weight: 600;
    padding: 0.65rem 1rem;
    background: var(--tte-gradient);
    border: none;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.25);
}

.tte-btn-ubah-password:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(21, 101, 192, 0.32);
}

.tte-profil-chart-card {
    margin-bottom: 0;
}

.tte-profil-chart-wrap {
    position: relative;
    height: 260px;
}

.tte-modal-password {
    border: none;
    border-radius: var(--tte-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.tte-modal-password__header {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    color: #fff;
    overflow: hidden;
}

.tte-modal-password__header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #5e35b1 100%);
}

.tte-modal-password__header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2rem;
}

.tte-modal-password__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tte-modal-password__header .modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.tte-modal-password__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    opacity: 0.88;
    color: #fff;
}

.tte-modal-password__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    color: #fff;
    opacity: 0.85;
    text-shadow: none;
}

.tte-modal-password__close:hover {
    opacity: 1;
    color: #fff;
}

.tte-modal-password .modal-body {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tte-modal-password .modal-footer {
    padding: 0.85rem 1.5rem 1.35rem;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.tte-password-rules {
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    background: #eef4fc;
    border: 1px solid #d6e4f5;
    border-radius: var(--tte-radius-sm);
}

.tte-password-rules__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 0.5rem;
}

.tte-password-rules__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
}

.tte-password-rules__list li {
    font-size: 0.6875rem;
    color: var(--tte-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.tte-password-rules__list li i {
    font-size: 0.625rem;
    width: 12px;
    text-align: center;
}

.tte-password-rules__list li.is-valid {
    color: #2e7d32;
    font-weight: 500;
}

.tte-password-rules__list li.is-invalid {
    color: #c62828;
}

.tte-form-field label {
    font-size: var(--tte-fs-sm);
    font-weight: 600;
    color: var(--tte-text);
    margin-bottom: 0.35rem;
}

.tte-input-password {
    position: relative;
}

.tte-input-password .form-control {
    padding-right: 2.75rem;
}

.tte-input-password__toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--tte-transition);
}

.tte-input-password__toggle:hover {
    color: var(--tte-primary);
    background: rgba(21, 101, 192, 0.08);
}

.tte-captcha-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid var(--tte-border);
    border-radius: var(--tte-radius-sm);
}

.tte-captcha-box .captcha-image {
    border-radius: 6px;
    height: 50px;
}

.tte-modal-password .form-control {
    border-radius: var(--tte-radius-sm);
    border-color: var(--tte-border);
    font-size: var(--tte-fs-sm);
    min-height: 42px;
}

.tte-modal-password .form-control:focus {
    border-color: var(--tte-primary-light);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.tte-modal-btn-save {
    border-radius: var(--tte-radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    background: var(--tte-gradient);
    border: none;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

.tte-modal-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.32);
}

.tte-modal-btn-cancel {
    border-radius: var(--tte-radius-sm);
    font-weight: 500;
}

.tte-swal-popup {
    font-family: var(--tte-font) !important;
    border-radius: var(--tte-radius) !important;
}

/* Login SweetAlert loader */
.tte-swal-loader-popup {
    padding: 1.75rem 1.5rem 1.5rem !important;
    overflow: hidden;
}

.tte-swal-loader-title {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 0.25rem !important;
}

.tte-login-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0 0.25rem;
}

.tte-login-loader__orbit {
    position: relative;
    width: 108px;
    height: 108px;
}

.tte-login-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.tte-login-loader__ring--1 {
    border-top-color: #1565c0;
    border-right-color: rgba(21, 101, 192, 0.25);
    animation: tte-login-spin 1.1s linear infinite;
}

.tte-login-loader__ring--2 {
    inset: 12px;
    border-bottom-color: #42a5f5;
    border-left-color: rgba(66, 165, 245, 0.2);
    animation: tte-login-spin 1.5s linear infinite reverse;
}

.tte-login-loader__ring--3 {
    inset: 24px;
    border-top-color: #0d47a1;
    border-right-color: rgba(13, 71, 161, 0.15);
    animation: tte-login-spin 0.9s linear infinite;
}

.tte-login-loader__core {
    position: absolute;
    inset: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
    animation: tte-login-pulse 1.6s ease-in-out infinite;
}

.tte-login-loader__text {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.tte-login-loader__dots::after {
    content: '';
    animation: tte-login-dots 1.4s steps(4, end) infinite;
}

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

@keyframes tte-login-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35); }
    50% { transform: scale(1.06); box-shadow: 0 12px 32px rgba(21, 101, 192, 0.45); }
}

@keyframes tte-login-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.tte-login-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.tte-login-success i {
    font-size: 3rem;
    color: #2e7d32;
    animation: tte-login-success-pop 0.5s ease-out;
}

.tte-login-success p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.tte-swal-success-popup .swal2-title {
    color: #2e7d32 !important;
}

@keyframes tte-login-success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 575.98px) {
    .tte-password-rules__list {
        grid-template-columns: 1fr;
    }

    .tte-profil-stat {
        min-height: 152px;
    }

    .tte-profil-stat__body {
        padding: 1rem;
    }

    .tte-profil-stat__value {
        font-size: 1.5rem;
    }

    .tte-profil-stat__hint {
        display: none;
    }

    .tte-profil-chart-wrap {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .tte-infografik-legend {
        grid-template-columns: 1fr;
    }

    .tte-infografik-pie-wrap {
        height: 220px;
    }

    .tte-infografik-bar-wrap {
        height: 320px;
    }
}

/* ===================== INFO & TABLE ===================== */
.tte-info-box {
    border-radius: var(--tte-radius);
    min-height: 100px;
    box-shadow: var(--tte-shadow-sm);
    transition: var(--tte-transition);
}

.tte-info-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--tte-shadow-md);
}

.tte-table thead th {
    border-top: none;
    background: #f8fafc;
    font-weight: 600;
    font-size: var(--tte-fs-sm);
    color: var(--tte-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
}

.tte-table tbody td {
    font-size: var(--tte-fs-sm);
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* ===================== RESPONSIVE NAV ===================== */
@media (max-width: 991.98px) {
    .main-header.navbar.tte-navbar {
        padding: 0;
    }

    .main-header.navbar .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 0.65rem 1rem;
        gap: 0.35rem;
    }

    .main-header .brand-link {
        order: 1;
        flex: 1 1 auto;
        padding: 0.4rem 0;
        margin-right: 0.5rem;
        max-width: calc(100% - 56px);
    }

    .main-header .brand-link .brand-image {
        width: 32px;
        height: 32px;
    }

    .main-header .brand-link .tte-brand-logo {
        width: 30px;
        height: 30px;
        padding: 2px;
    }

    .main-header .navbar-toggler {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .main-header .navbar-nav.ml-auto {
        display: none !important;
    }

    .main-header .navbar-collapse {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        background: rgba(13, 71, 161, 0.97);
        border-radius: var(--tte-radius);
        margin-top: 0.25rem;
        padding: 0.5rem 0.35rem 0.65rem;
        box-shadow: var(--tte-shadow-lg);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-header .navbar-collapse .navbar-nav {
        width: 100%;
    }

    .main-header .navbar-nav .nav-link {
        margin: 0.15rem 0;
        padding: 0.75rem 1rem !important;
        font-size: var(--tte-fs-base);
        border-radius: var(--tte-radius-sm);
        width: 100%;
    }

    .main-header .navbar-nav .nav-item {
        width: 100%;
    }

    .main-header .navbar-nav .nav-link.active,
    .main-header .navbar-nav .nav-item.active > .nav-link {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .main-header .nav-link.tte-logout-mobile {
        margin-top: 0.5rem;
        padding-top: 0.85rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.1);
        justify-content: center;
        font-weight: 600;
    }

    .main-header .nav-link.tte-logout-mobile:hover {
        background: rgba(255, 255, 255, 0.18) !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .tte-stat-row {
        margin-left: -0.35rem;
        margin-right: -0.35rem;
    }

    .tte-stat-card {
        min-height: 160px;
    }

    .tte-stat-card__body {
        padding: 1rem 0.75rem 0.75rem;
        gap: 0.75rem;
    }

    .tte-stat-card__icon-wrap {
        width: 48px;
        height: 48px;
    }

    .tte-stat-card__value {
        font-size: 1.65rem;
    }

    .tte-stat-card__label {
        font-size: 0.75rem;
        min-height: 2.2em;
    }

    .tte-stat-card__hint {
        font-size: 0.6875rem;
    }

    .tte-stat-card__footer {
        padding: 0.55rem 0.85rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .main-header .nav-item:has(.tte-logout-mobile) {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    body,
    .content-wrapper {
        font-size: 0.875rem;
    }

    .tte-auth-mobile-brand {
        display: flex;
    }

    .tte-auth-partner-logos--mobile {
        display: flex;
    }

    .tte-auth-shell {
        grid-template-columns: 1fr;
        max-width: 440px;
        min-height: auto;
    }

    .tte-auth-brand {
        display: none;
    }

    .tte-auth-panel {
        padding: 1.75rem 1.5rem 1.25rem;
    }

    .tte-auth-card {
        padding: 0;
    }

    .content-header {
        padding-top: 0.75rem !important;
        padding-bottom: 0.25rem !important;
    }

    .content-header .container,
    .content .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .content {
        padding-top: 0.25rem !important;
        padding-bottom: 1rem !important;
    }

    .tte-page-title {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .tte-page-subtitle {
        font-size: 0.75rem;
        line-height: 1.5;
        color: var(--tte-text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tte-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tte-page-badge {
        width: 100%;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .tte-stat-row {
        margin-left: -0.15rem;
        margin-right: -0.15rem;
    }

    .tte-stat-row > [class*='col-'] {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        margin-bottom: 0.5rem !important;
    }

    .tte-stat-card {
        min-height: auto;
        border-radius: 11px;
    }

    .tte-stat-card:hover {
        transform: translateY(-2px);
    }

    .tte-stat-card__orb {
        display: none;
    }

    .tte-stat-card__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.65rem 0.25rem 0.55rem;
        gap: 0.35rem;
    }

    .tte-stat-card__icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        align-self: center;
        margin-top: 0;
    }

    .tte-stat-card__icon-wrap i {
        font-size: 1.05rem;
    }

    .tte-stat-card__icon-ring {
        display: none;
    }

    .tte-stat-card__content {
        align-items: center;
        width: 100%;
    }

    .tte-stat-label-short {
        display: inline;
    }

    .tte-stat-label-full {
        display: none;
    }

    .tte-stat-card__label {
        font-size: 0.6875rem;
        font-weight: 600;
        min-height: auto;
        line-height: 1.2;
        letter-spacing: 0.04em;
        margin-bottom: 0.1rem;
        opacity: 1;
    }

    .tte-stat-card__value {
        font-size: clamp(1.2rem, 5.2vw, 1.5rem);
        font-weight: 700;
        margin-bottom: 0;
        line-height: 1;
        letter-spacing: -0.02em;
    }

    .tte-stat-card__hint,
    .tte-stat-card__footer {
        display: none;
    }

    .tte-chart-card .card-header {
        padding: 0.85rem 0.85rem 0.65rem;
    }

    .tte-chart-card .card-title {
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .tte-chart-card .card-body {
        padding: 0.75rem 0.85rem 1rem;
    }

    .tte-profile-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.65rem 0;
    }

    .tte-profile-list strong {
        text-align: left;
        word-break: break-word;
        line-height: 1.4;
        font-size: 0.8125rem;
    }

    #suratChart {
        min-height: 220px;
    }
}

@media (max-width: 380px) {
    .tte-page-title {
        font-size: 1.125rem;
    }

    .tte-page-subtitle {
        font-size: 0.6875rem;
        -webkit-line-clamp: 3;
    }

    .tte-stat-card__body {
        padding: 0.55rem 0.2rem 0.5rem;
    }

    .tte-stat-card__icon-wrap {
        width: 36px;
        height: 36px;
    }

    .tte-stat-card__icon-wrap i {
        font-size: 0.95rem;
    }

    .tte-stat-card__label {
        font-size: 0.625rem;
    }

    .tte-stat-card__value {
        font-size: clamp(1.1rem, 4.8vw, 1.3rem);
    }
}

.main-header .navbar-nav.ml-auto .nav-link.tte-logout-link {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-left: 0.35rem;
}

.main-header .navbar-nav.ml-auto .nav-link.tte-logout-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}

.main-header .navbar-nav.ml-auto .nav-link.tte-logout-link.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

@media (min-width: 992px) {
    .main-header .navbar-nav {
        align-items: center;
    }

    .main-header .navbar-nav.ml-auto {
        margin-left: auto !important;
    }

    .main-header .navbar-nav.ml-auto .nav-item:last-child .tte-logout-link {
        margin-right: 0;
    }
}

/* Surat TTE / Tolak modals */
.tte-surat-modal .modal-dialog {
    max-width: 480px;
}

.tte-modal-surat {
    border: none;
    border-radius: var(--tte-radius);
    overflow: hidden;
    box-shadow: var(--tte-shadow-lg);
}

.tte-modal-surat__header {
    position: relative;
    padding: 1.35rem 1.25rem 1.1rem;
    border-bottom: none;
}

.tte-modal-surat__header-bg {
    position: absolute;
    inset: 0;
    opacity: 0.95;
}

.tte-modal-surat--tolak .tte-modal-surat__header-bg {
    background: linear-gradient(135deg, #b71c1c 0%, #e53935 45%, #ff7043 100%);
}

.tte-modal-surat--tte .tte-modal-surat__header-bg {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #5e35b1 100%);
}

.tte-modal-surat__header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    padding-right: 2rem;
}

.tte-modal-surat__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tte-modal-surat__header .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.tte-modal-surat__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.88);
}

.tte-modal-surat__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
    font-size: 1.35rem;
}

.tte-modal-surat__close:hover {
    color: #fff;
    opacity: 1;
}

.tte-modal-surat .modal-body {
    padding: 1.25rem 1.35rem 0.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.tte-modal-surat .modal-footer {
    border-top: 1px solid var(--tte-border);
    padding: 0.85rem 1.35rem 1.15rem;
    background: #fff;
}

.tte-textarea-surat {
    border-radius: var(--tte-radius-sm);
    border-color: var(--tte-border);
    font-size: var(--tte-fs-sm);
    min-height: 110px;
    resize: vertical;
}

.tte-textarea-surat:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.tte-modal-surat--tte .form-control:focus {
    border-color: var(--tte-primary-light);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.tte-surat-info-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: var(--tte-radius-sm);
    background: rgba(21, 101, 192, 0.07);
    border: 1px solid rgba(21, 101, 192, 0.12);
    color: #334155;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.tte-surat-info-chip i {
    color: var(--tte-primary);
    margin-top: 0.1rem;
}

.tte-modal-btn-danger {
    border-radius: var(--tte-radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: none;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.28);
}

.tte-modal-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(198, 40, 40, 0.35);
}

.tte-swal-perhatian .swal2-title {
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    color: #b45309 !important;
}

.tte-swal-perhatian .swal2-html-container {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: #334155 !important;
}

.tte-swal-btn-confirm,
.tte-swal-btn-deny,
.tte-swal-btn-cancel {
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 0.55rem 1.1rem !important;
}

/* Modal Proses TTE — enhanced */
.tte-modal-proses-tte .modal-dialog {
    max-width: 520px;
}

.tte-modal-proses-tte .tte-modal-surat--tte {
    border: 1px solid rgba(21, 101, 192, 0.12);
    box-shadow:
        0 24px 48px rgba(13, 71, 161, 0.18),
        0 8px 20px rgba(15, 23, 42, 0.08);
}

.tte-modal-proses-tte .tte-modal-surat--tte .tte-modal-surat__header {
    padding: 1.5rem 1.35rem 1.25rem;
    overflow: hidden;
}

.tte-modal-tte-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tte-modal-tte-orb--1 {
    width: 140px;
    height: 140px;
    top: -50px;
    right: -30px;
    background: rgba(255, 255, 255, 0.12);
}

.tte-modal-tte-orb--2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 35%;
    background: rgba(255, 255, 255, 0.08);
}

.tte-modal-tte-orb--3 {
    width: 50px;
    height: 50px;
    top: 20px;
    left: 55%;
    background: rgba(126, 87, 194, 0.25);
}

.tte-modal-tte-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
}

.tte-modal-tte-icon {
    position: relative;
}

.tte-modal-tte-icon__ring {
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    animation: tte-modal-tte-pulse 2.4s ease-in-out infinite;
}

@keyframes tte-modal-tte-pulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.08); opacity: 0.15; }
}

.tte-modal-tte-body {
    padding: 1.35rem 1.4rem 0.75rem !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(21, 101, 192, 0.06) 0%, transparent 42%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.tte-modal-tte-doc-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid rgba(21, 101, 192, 0.14);
    box-shadow: 0 10px 24px rgba(21, 101, 192, 0.08);
    overflow: hidden;
}

.tte-modal-tte-doc-card__glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.22) 0%, transparent 70%);
}

.tte-modal-tte-doc-card__icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1565c0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.12) 0%, rgba(94, 53, 177, 0.1) 100%);
    border: 1px solid rgba(21, 101, 192, 0.15);
    flex-shrink: 0;
}

.tte-modal-tte-doc-card__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tte-modal-tte-doc-card__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.tte-modal-tte-doc-card__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

.tte-modal-tte-doc-card__meta {
    display: block;
    font-size: 0.75rem;
    color: #1565c0;
    font-weight: 600;
}

.tte-modal-tte-security {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tte-modal-tte-security__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.35rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.625rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
}

.tte-modal-tte-security__item i {
    font-size: 0.875rem;
    color: #1565c0;
}

.tte-modal-tte-info {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08) 0%, rgba(94, 53, 177, 0.06) 100%) !important;
    border-color: rgba(21, 101, 192, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tte-modal-tte-field label {
    display: flex;
    align-items: center;
    color: #1e293b;
}

.tte-modal-tte-field label i {
    color: #1565c0;
}

.tte-modal-tte-password .form-control {
    padding-left: 2.65rem;
    min-height: 46px;
    border-radius: 12px;
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    background: #fff;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tte-modal-tte-password .form-control:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.15);
}

.tte-modal-tte-password__prefix {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    z-index: 2;
    pointer-events: none;
}

.tte-modal-tte-password .tte-input-password__toggle {
    right: 0.65rem;
}

.tte-modal-tte-footer {
    gap: 0.65rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.tte-modal-tte-btn-cancel {
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    color: #64748b;
    background: #fff;
}

.tte-modal-tte-btn-cancel:hover {
    background: #f1f5f9;
    color: #334155;
}

.tte-modal-tte-btn-proses {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 0.6rem 1.35rem;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #5e35b1 100%);
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tte-modal-tte-btn-proses:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(21, 101, 192, 0.42);
}

.tte-modal-tte-btn-proses__shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: tte-modal-tte-shine 3s ease-in-out infinite;
}

@keyframes tte-modal-tte-shine {
    0% { left: -120%; }
    45%, 100% { left: 140%; }
}

@media (max-width: 480px) {
    .tte-modal-proses-tte .modal-dialog {
        margin: 0.75rem;
    }

    .tte-modal-tte-security {
        grid-template-columns: 1fr;
    }

    .tte-modal-tte-security__item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        font-size: 0.6875rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Process loader (tolak / proses surat) */
.tte-swal-loader-popup--tolak {
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.08) 0%, transparent 55%),
        #fff !important;
}

.tte-process-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0 0.25rem;
}

.tte-process-loader__orbit {
    position: relative;
    width: 108px;
    height: 108px;
}

.tte-process-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.tte-process-loader--tolak .tte-process-loader__ring--1 {
    border-top-color: #c62828;
    border-right-color: rgba(198, 40, 40, 0.25);
    animation: tte-login-spin 1.1s linear infinite;
}

.tte-process-loader--tolak .tte-process-loader__ring--2 {
    inset: 12px;
    border-bottom-color: #ef5350;
    border-left-color: rgba(239, 83, 80, 0.2);
    animation: tte-login-spin 1.5s linear infinite reverse;
}

.tte-process-loader--tolak .tte-process-loader__ring--3 {
    inset: 24px;
    border-top-color: #b71c1c;
    border-right-color: rgba(183, 28, 28, 0.15);
    animation: tte-login-spin 0.9s linear infinite;
}

.tte-process-loader__core {
    position: absolute;
    inset: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    animation: tte-process-pulse 1.6s ease-in-out infinite;
}

.tte-process-loader--tolak .tte-process-loader__core {
    background: linear-gradient(135deg, #b71c1c 0%, #ef5350 100%);
    box-shadow: 0 8px 24px rgba(198, 40, 40, 0.35);
}

.tte-process-loader__text {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.tte-process-loader__dots::after {
    content: '';
    animation: tte-login-dots 1.4s steps(4, end) infinite;
}

@keyframes tte-process-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.tte-swal-loader-popup--tte {
    background:
        radial-gradient(circle at 50% 0%, rgba(21, 101, 192, 0.08) 0%, transparent 55%),
        #fff !important;
}

.tte-process-loader--tte .tte-process-loader__ring--1 {
    border-top-color: #1565c0;
    border-right-color: rgba(21, 101, 192, 0.25);
    animation: tte-login-spin 1.1s linear infinite;
}

.tte-process-loader--tte .tte-process-loader__ring--2 {
    inset: 12px;
    border-bottom-color: #42a5f5;
    border-left-color: rgba(66, 165, 245, 0.2);
    animation: tte-login-spin 1.5s linear infinite reverse;
}

.tte-process-loader--tte .tte-process-loader__ring--3 {
    inset: 24px;
    border-top-color: #0d47a1;
    border-right-color: rgba(13, 71, 161, 0.15);
    animation: tte-login-spin 0.9s linear infinite;
}

.tte-process-loader--tte .tte-process-loader__core {
    background: linear-gradient(135deg, #0d47a1 0%, #42a5f5 100%);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
}

/* Process loader (ubah password) */
.tte-swal-loader-popup--password {
    background:
        radial-gradient(circle at 50% 0%, rgba(94, 53, 177, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(21, 101, 192, 0.06) 0%, transparent 45%),
        #fff !important;
}

.tte-process-loader--password .tte-process-loader__ring--1 {
    border-top-color: #5e35b1;
    border-right-color: rgba(94, 53, 177, 0.28);
    animation: tte-login-spin 1.1s linear infinite;
}

.tte-process-loader--password .tte-process-loader__ring--2 {
    inset: 12px;
    border-bottom-color: #1565c0;
    border-left-color: rgba(21, 101, 192, 0.22);
    animation: tte-login-spin 1.45s linear infinite reverse;
}

.tte-process-loader--password .tte-process-loader__ring--3 {
    inset: 24px;
    border-top-color: #7c4dff;
    border-right-color: rgba(124, 77, 255, 0.18);
    animation: tte-login-spin 0.95s linear infinite;
}

.tte-process-loader--password .tte-process-loader__core {
    background: linear-gradient(135deg, #0d47a1 0%, #5e35b1 55%, #7c4dff 100%);
    box-shadow: 0 8px 28px rgba(94, 53, 177, 0.38);
}
