:root {
    --primary: #0d5c82;
    --primary-dark: #0b3c59;
    --accent: #00bfff;
    --dark: #062635;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gray-100);
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1050;
    transition: margin-left 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.05);
}

#wrapper.toggled .sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4), inset 0 -2px 6px rgba(0,0,0,0.3), inset 0 0 0 2px #0f1928;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f1928;
}
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-icon:hover { transform: scale(1.08); }

.brand-name { font-weight: 700; font-size: 1.1rem; display: block; }
.brand-sub { font-size: 0.7rem; opacity: 0.7; display: block; }

.sidebar-divider {
    margin: 0.5rem 1rem;
    border-color: rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
}
.sidebar-user i { font-size: 2rem; opacity: 0.8; }

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}
.sidebar-nav .nav-link.active {
    color: var(--white);
    background: rgba(0,191,255,0.12);
    border-left-color: var(--accent);
}
.sidebar-nav .nav-link i { width: 20px; text-align: center; font-size: 1rem; }

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .nav-link { padding: 0.7rem 1.25rem; }

/* ===== TOP NAVBAR ===== */
.top-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0.5rem 1rem;
    min-height: 56px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#menu-toggle {
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    border: none;
}

#page-content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
}
.stat-card.primary::before { background: var(--primary); }
.stat-card.success::before { background: #28a745; }
.stat-card.warning::before { background: #ffc107; }
.stat-card.danger::before { background: #dc3545; }
.stat-card.info::before { background: var(--accent); }

.stat-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-icon.primary { background: rgba(13,92,130,0.12); color: var(--primary); }
.stat-icon.success { background: rgba(40,167,69,0.12); color: #28a745; }
.stat-icon.warning { background: rgba(255,193,7,0.12); color: #d39e00; }
.stat-icon.danger { background: rgba(220,53,69,0.12); color: #dc3545; }
.stat-icon.info { background: rgba(0,191,255,0.12); color: var(--accent); }

.stat-info h3 { font-size: 1.75rem; font-weight: 700; margin: 0; }
.stat-info p { margin: 0; color: var(--gray-600); font-size: 0.85rem; }

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    border: 1px solid var(--gray-200);
}
.card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}
.card-body { padding: 1.25rem; }

/* ===== TABLES ===== */
.table-container { overflow-x: auto; }
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}
table.dataTable { border-radius: 12px; }
table.dataTable thead th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: none !important;
    padding: 0.75rem 1rem;
}
table.dataTable tbody td { padding: 0.75rem 1rem; vertical-align: middle; }
table.dataTable tbody tr:hover { background: rgba(13,92,130,0.04); }

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: #0099cc;
    border-color: #0099cc;
    color: var(--white);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== BADGES ===== */
.badge { font-weight: 500; padding: 0.35em 0.65em; border-radius: 6px; }
.bg-soft-success { background: rgba(40,167,69,0.12); color: #28a745; }
.bg-soft-danger { background: rgba(220,53,69,0.12); color: #dc3545; }
.bg-soft-warning { background: rgba(255,193,7,0.12); color: #d39e00; }
.bg-soft-info { background: rgba(0,191,255,0.12); color: var(--accent); }
.bg-soft-secondary { background: rgba(108,117,125,0.12); color: var(--gray-600); }
.bg-soft-primary { background: rgba(13,92,130,0.12); color: var(--primary); }

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 0.75rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(0,191,255,0.15);
}

/* ===== LOGIN PAGE ===== */
.login-body {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-body::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(0,191,255,0.05) 0%, transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}
.login-card {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo .logo-icon {
    width: 58px; height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2), inset 0 -3px 8px rgba(0,0,0,0.1), inset 0 0 0 3px #0f1928;
    overflow: hidden;
    background: #0f1928;
}
.login-logo .logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.login-logo .logo-icon:hover { transform: scale(1.05); }
.login-logo h2 { font-weight: 700; color: var(--dark); font-size: 1.5rem; }
.login-logo p { color: var(--gray-600); font-size: 0.85rem; }

.login-card .form-control {
    border: 2px solid var(--gray-200);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: border-color 0.2s;
}
.login-card .form-control:focus {
    border-color: var(--accent);
}
.login-card .input-group-text {
    border: 2px solid var(--gray-200);
    border-right: none;
    background: var(--white);
    border-radius: 10px 0 0 10px;
    color: var(--gray-600);
}
.login-card .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}
.login-card .btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s;
}
.login-card .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13,92,130,0.4);
}

/* ===== NOTIFICATIONS DROPDOWN ===== */
.notif-dropdown {
    width: 320px;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.notif-dropdown .dropdown-header {
    font-weight: 600;
    color: var(--dark);
}
.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}
.notif-item:hover { background: var(--gray-100); }
.notif-item:last-child { border-bottom: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar { margin-left: calc(-1 * var(--sidebar-width)); }
    #page-content-wrapper { margin-left: 0; }
    #wrapper.toggled .sidebar { margin-left: 0; }
    #wrapper.toggled #page-content-wrapper { margin-left: 0; }
    .stat-card { padding: 1.2rem; }
    .stat-card .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .stat-info h3 { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    .login-container { padding: 1rem; }
    .login-card { padding: 1.5rem; }
    .stat-card { flex-direction: column; text-align: center; }
    .stat-card::before { width: 100%; height: 4px; }
    .sidebar-brand { padding: 1rem; }
    .brand-icon { width: 20px; height: 20px; }
    .sidebar-nav .nav-link { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* ===== MISC ===== */
.search-box { position: relative; }
.search-box .form-control {
    padding-left: 2.5rem;
    border-radius: 50px;
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.action-btns .btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
}

.page-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.page-subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-600);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }

.vehicle-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.notification-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

/* ===== LICENSE VISUAL CARD (LESEN AWAM STYLE) ===== */
.lc-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}
.lc-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid #c8ccd0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.lc-card-topbar {
    height: 8px;
    display: flex;
}
.lc-top-flag {
    width: 28%;
    background: #002244;
}
.lc-top-stripe {
    width: 72%;
    background: linear-gradient(90deg, #002244, #004680, #0066aa);
}
.lc-card-header {
    background: linear-gradient(135deg, #0a3145, #0d5c82);
    color: #fff;
    padding: 0.7rem 1rem;
    text-align: center;
}
.lc-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.lc-crest-sm {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1.5px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.lc-header-text { line-height: 1.25; }
.lc-header-text span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}
.lc-header-text small {
    font-size: 0.55rem;
    opacity: 0.7;
    display: block;
    letter-spacing: 0.3px;
}
.lc-header-text strong {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 2px;
}
.lc-card-main {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}
.lc-main-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.lc-photo-box {
    width: 95px; height: 115px;
    background: #eef2f6;
    border: 1.5px solid #bcc4cc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aab4;
    font-size: 2.5rem;
}
.lc-main-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    justify-content: center;
}
.lc-field {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 0.1rem 0;
}
.lc-f-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: #777;
    letter-spacing: 0.3px;
}
.lc-f-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
}
.lc-f-value.lc-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #003366;
}
.lc-card-divider {
    height: 1px;
    background: #d0d4d8;
    margin: 0 1rem;
}
.lc-card-bottom {
    padding: 0.5rem 1rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.lc-class-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.3rem;
}
.lc-class-boxes {
    display: flex;
    gap: 4px;
}
.lc-class-box {
    width: 24px; height: 24px;
    border: 1.5px solid #c0c8d0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #bbb;
    background: #f5f7f9;
}
.lc-class-box.active {
    background: #0d5c82;
    border-color: #0d5c82;
    color: #fff;
}
.lc-bottom-row {
    display: flex;
    gap: 0.75rem;
}
.lc-b-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.lc-b-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.3px;
}
.lc-b-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1a1a1a;
}
.lc-b-value.lc-expired { color: #dc3545; }
.lc-card-footer {
    background: #f2f4f6;
    padding: 0.4rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.55rem;
    color: #999;
    border-top: 1px solid #dee2e6;
}
.lc-verify {
    font-style: italic;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media print {
    .top-navbar, .sidebar, .sidebar-footer, .footer,
    .btn:not(.lc-card-footer *), .card:not(.lc-card), .d-flex.justify-content-between { display: none !important; }
    #page-content-wrapper { margin-left: 0 !important; }
    .lc-card-wrapper { padding: 0; }
    .lc-card { box-shadow: none; border: 2px solid #333; max-width: 100%; }
    .lc-card-topbar, .lc-card-header, .lc-class-box.active { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body { background: white; }
}

@media (max-width: 480px) {
    .lc-card-main { flex-direction: column; align-items: center; }
    .lc-main-right { width: 100%; }
    .lc-bottom-row { gap: 0.4rem; }
}

/* ===== JPJL6 MALAYSIA LICENSE CARD ===== */
.lc-card-jpjl6 {
    max-width: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    overflow: hidden;
    border: 1px solid #b0b4b8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.lc6-header {
    position: relative;
}
.lc6-flag-stripes {
    display: flex;
    height: 6px;
    overflow: hidden;
}
.lc6-flag-stripes span {
    flex: 1;
}
.lc6-header-main {
    background: linear-gradient(180deg, #1a2744 0%, #0f1a30 100%);
    color: #fff;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lc6-crest {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    overflow: hidden;
}
.lc6-crest img {
    max-height: 36px;
    width: auto;
}
.lc6-title {
    line-height: 1.2;
}
.lc6-title-main {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    display: block;
}
.lc6-title-sub {
    font-size: 0.48rem;
    opacity: 0.65;
    display: block;
    letter-spacing: 0.2px;
}
.lc6-title-lesen {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    display: block;
    margin-top: 2px;
    color: #ffd700;
}
.lc6-title-id {
    font-size: 0.45rem;
    opacity: 0.5;
    display: block;
    letter-spacing: 0.5px;
}
.lc6-body {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
}
.lc6-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}
.lc6-photo {
    width: 90px;
    height: 108px;
    background: #e8ecf0;
    border: 2px solid #1a2744;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa4ae;
    font-size: 2.2rem;
    overflow: hidden;
}
.lc6-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lc6-photo-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: #1a2744;
    background: #e8ecf0;
    padding: 0 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}
.lc6-signature-box {
    width: 90px;
    height: 22px;
    border: 1px dashed #bbb;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lc6-signature-box img {
    max-height: 20px;
    max-width: 86px;
}
.lc6-sig-placeholder {
    font-size: 0.5rem;
    color: #bbb;
    font-style: italic;
}
.lc6-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    justify-content: center;
}
.lc6-row {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    padding: 0.05rem 0;
}
.lc6-row .lc6-label {
    font-size: 0.48rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.2px;
}
.lc6-row .lc6-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #111;
}
.lc6-row .lc6-value.lc6-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a2744;
}
.lc6-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8ccd0, transparent);
    margin: 0 0.9rem;
}
.lc6-class-section {
    padding: 0.35rem 0.9rem 0.2rem;
}
.lc6-class-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.48rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.3px;
    padding-bottom: 0.2rem;
}
.lc6-class-body {
    display: flex;
    gap: 3px;
}
.lc6-class-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1.5px solid #d0d4d8;
    border-radius: 5px;
    padding: 0.2rem 0;
    background: #f8f9fa;
}
.lc6-class-item.active {
    background: #1a2744;
    border-color: #1a2744;
}
.lc6-class-code {
    font-size: 0.7rem;
    font-weight: 800;
    color: #999;
    line-height: 1;
}
.lc6-class-item.active .lc6-class-code {
    color: #fff;
}
.lc6-class-date {
    font-size: 0.4rem;
    font-weight: 600;
    color: #bbb;
    line-height: 1;
    margin-top: 1px;
}
.lc6-class-item.active .lc6-class-date {
    color: rgba(255,255,255,0.8);
}
.lc6-info-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.2rem 0.9rem 0.15rem;
}
.lc6-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.lc6-info-item .lc6-label {
    font-size: 0.45rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.2px;
}
.lc6-info-item .lc6-value {
    font-size: 0.65rem;
    font-weight: 600;
    color: #111;
}
.lc6-approval {
    padding: 0.2rem 0.9rem;
    border-top: 1px dashed #ddd;
    margin: 0.15rem 0.9rem 0;
    padding-top: 0.2rem;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.lc6-approval .lc6-label {
    font-size: 0.45rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.2px;
}
.lc6-approval .lc6-value {
    font-size: 0.6rem;
    font-weight: 600;
    color: #333;
}
.lc6-footer {
    background: #f0f2f4;
    padding: 0.35rem 0.9rem;
    display: flex;
    justify-content: center;
    font-size: 0.5rem;
    color: #999;
    border-top: 1px solid #dee2e6;
    letter-spacing: 0.3px;
}

/* Back side */
.lc6-back-body {
    padding: 0.6rem 0.9rem;
}
.lc6-back-classes {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.lc6-back-class {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0;
    opacity: 0.4;
}
.lc6-back-class.active {
    opacity: 1;
}
.lc6-back-code {
    width: 26px;
    height: 26px;
    border: 1.5px solid #d0d4d8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #bbb;
    background: #f5f7f9;
    flex-shrink: 0;
}
.lc6-back-class.active .lc6-back-code {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}
.lc6-back-desc {
    font-size: 0.65rem;
    font-weight: 500;
    color: #333;
}
.lc6-back-class.active .lc6-back-desc {
    font-weight: 600;
    color: #111;
}
.lc6-back-terms {
    margin-top: 0.3rem;
    font-size: 0.55rem;
    color: #555;
    line-height: 1.3;
}
.lc6-back-terms strong {
    font-size: 0.55rem;
    color: #333;
}
.lc6-back-terms ol {
    margin: 0.2rem 0 0;
    padding-left: 1.2rem;
}
.lc6-back-terms li {
    margin-bottom: 0.1rem;
}

@media print {
    .lc-card-jpjl6 { box-shadow: none; border: 2px solid #000; max-width: 100%; }
    .lc6-flag-stripes span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .lc6-header-main { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .lc6-class-item.active { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 480px) {
    .lc6-body { flex-direction: column; align-items: center; }
    .lc6-details { width: 100%; }
    .lc6-info-row { flex-direction: column; gap: 0.2rem; }
}
