/* ========================================
   PT ALAM TEKNIK MAKMUR - MANAGEMENT SYSTEM
   Premium Purple Theme with Glassmorphism
   ======================================== */

/* ===== CSS Custom Properties ===== */
:root {
    /* Primary Purple Palette */
    --purple-50: #f5f0ff;
    --purple-100: #ede5ff;
    --purple-200: #ddd0ff;
    --purple-300: #c4a8ff;
    --purple-400: #a875ff;
    --purple-500: #8b3dff;
    --purple-600: #7c22f7;
    --purple-700: #6d14e3;
    --purple-800: #5b11bf;
    --purple-900: #4c0f9c;
    --purple-950: #2e066a;

    /* Accent Colors */
    --accent-magenta: #e040fb;
    --accent-cyan: #00e5ff;
    --accent-pink: #ff4081;
    --accent-gold: #ffd740;

    /* Status Colors */
    --success: #00e676;
    --success-bg: rgba(0, 230, 118, 0.1);
    --warning: #ffab40;
    --warning-bg: rgba(255, 171, 64, 0.1);
    --danger: #ff5252;
    --danger-bg: rgba(255, 82, 82, 0.1);
    --info: #40c4ff;
    --info-bg: rgba(64, 196, 255, 0.1);

    /* Dark Theme Base */
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.7);
    --bg-card-hover: rgba(36, 36, 60, 0.8);
    --bg-sidebar: rgba(12, 12, 22, 0.95);
    --bg-topbar: rgba(10, 10, 20, 0.85);
    --bg-input: rgba(30, 30, 50, 0.6);
    --bg-hover: rgba(139, 61, 255, 0.08);

    /* Glass Effects */
    --glass-bg: rgba(26, 26, 46, 0.6);
    --glass-border: rgba(139, 61, 255, 0.15);
    --glass-blur: 20px;

    /* Text Colors */
    --text-primary: #f0eeff;
    --text-secondary: #a8a3c0;
    --text-muted: #6b6590;
    --text-accent: #c4a8ff;

    /* Borders */
    --border-color: rgba(139, 61, 255, 0.12);
    --border-hover: rgba(139, 61, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 61, 255, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(139, 61, 255, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--purple-600), var(--purple-500));
    --gradient-accent: linear-gradient(135deg, var(--accent-magenta), var(--purple-500));
    --gradient-dark: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    --gradient-card: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(18, 18, 31, 0.6));
    --gradient-sidebar: linear-gradient(180deg, rgba(12, 12, 22, 0.98), rgba(20, 10, 40, 0.98));

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 78px;
    --topbar-height: 70px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 61, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 61, 255, 0.5);
}

/* ===== Background Particles ===== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(139, 61, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(224, 64, 251, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -3%) rotate(3deg); }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(139, 61, 255, 0.4);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--gradient-sidebar);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal), transform var(--transition-normal);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(139, 61, 255, 0.3), transparent);
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(139, 61, 255, 0.03), transparent 30%, transparent 70%, rgba(139, 61, 255, 0.02));
    pointer-events: none;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.logo-container {
    width: 68px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 61, 255, 0.28);
    padding: 3px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), 0 0 16px rgba(139, 61, 255, 0.25);
    transition: var(--transition-normal);
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 61, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 24px rgba(139, 61, 255, 0.5);
    transform: scale(1.04);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.company-info {
    overflow: hidden;
    min-width: 0;
}

.company-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: normal;
}

.company-tagline {
    font-size: 0.65rem;
    color: var(--purple-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 2px;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    margin: 0 1.2rem;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    flex-shrink: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.8rem 0;
    position: relative;
    z-index: 1;
}

.nav-list {
    list-style: none;
    padding: 0 0.6rem;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.15), rgba(224, 64, 251, 0.08));
    box-shadow: inset 0 0 20px rgba(139, 61, 255, 0.05);
}

.nav-link.active .nav-indicator {
    opacity: 1;
    transform: scaleY(1);
}

.nav-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--gradient-primary);
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: all var(--transition-normal);
}

.nav-icon-wrapper {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(139, 61, 255, 0.08);
    color: var(--purple-400);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.nav-link:hover .nav-icon-wrapper,
.nav-link.active .nav-icon-wrapper {
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.2), rgba(224, 64, 251, 0.15));
    color: var(--purple-300);
    box-shadow: 0 0 12px rgba(139, 61, 255, 0.15);
}

.nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submenu Arrow */
.submenu-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
}

.nav-item.has-submenu.open > .nav-link .submenu-arrow {
    transform: rotate(180deg);
    color: var(--purple-400);
}

/* Submenu */
.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding-left: 0;
}

.nav-item.has-submenu.open > .submenu {
    max-height: 300px;
}

.submenu-item {
    margin: 1px 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.9rem 0.55rem 3.2rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    transition: all var(--transition-fast);
    position: relative;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 2.1rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transform: translateY(-50%) scale(0.6);
    transition: all var(--transition-fast);
}

.submenu-link:hover {
    color: var(--text-primary);
    background: rgba(139, 61, 255, 0.05);
}

.submenu-link:hover::before {
    background: var(--purple-400);
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 8px rgba(139, 61, 255, 0.4);
}

.submenu-link.active {
    color: var(--purple-300);
    background: rgba(139, 61, 255, 0.08);
}

.submenu-link.active::before {
    background: var(--purple-400);
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 8px rgba(139, 61, 255, 0.4);
}

.submenu-link i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    color: inherit;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple-600), var(--accent-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(139, 61, 255, 0.3);
}

.user-info {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.user-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-logout {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 82, 82, 0.1);
    color: var(--danger);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.btn-logout:hover {
    background: rgba(255, 82, 82, 0.2);
    transform: scale(1.05);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left var(--transition-normal);
}

/* ===== Top Bar ===== */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: var(--bg-topbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-toggle-sidebar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.btn-toggle-sidebar:hover {
    background: var(--bg-hover);
    color: var(--purple-400);
    border-color: var(--border-hover);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb-icon {
    color: var(--purple-400);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-box {
    position: relative;
    width: 260px;
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    transition: all var(--transition-fast);
    outline: none;
}

.search-input:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.topbar-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    position: relative;
}

.topbar-btn:hover {
    background: var(--bg-hover);
    color: var(--purple-400);
    border-color: var(--border-hover);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 82, 82, 0.5);
}

.topbar-datetime {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-color);
}

/* ===== Notification Dropdown Panel ===== */
.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: rgba(18, 14, 34, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(139, 61, 255, 0.3);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 61, 255, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-dropdown.active {
    display: flex;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-header {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(139, 61, 255, 0.08);
}

.notification-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.notification-item {
    padding: 0.75rem 1.1rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: rgba(139, 61, 255, 0.1);
}

.notification-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-item__icon--warning {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
}

.notification-item__icon--danger {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
}

.notification-item__icon--primary {
    background: rgba(139, 61, 255, 0.15);
    color: var(--purple-400);
}

.notification-item__icon--success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.notification-item__content {
    flex: 1;
}

.notification-item__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-item__desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.notification-item__time {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-footer {
    padding: 0.65rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
}

/* ===== Page Container ===== */
.page-container {
    padding: 1.5rem;
    max-width: 1400px;
}

.page {
    display: none;
    animation: fadeInPage 0.4s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Page Header ===== */
.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.page-title i {
    color: var(--purple-400);
    font-size: 1.3rem;
}

.page-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.stats-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
    background: var(--gradient-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.stat-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card--primary .stat-card__icon {
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.2), rgba(139, 61, 255, 0.05));
    color: var(--purple-400);
}

.stat-card--secondary .stat-card__icon {
    background: linear-gradient(135deg, rgba(224, 64, 251, 0.2), rgba(224, 64, 251, 0.05));
    color: var(--accent-magenta);
}

.stat-card--accent .stat-card__icon {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.05));
    color: var(--accent-cyan);
}

.stat-card--success .stat-card__icon {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.05));
    color: var(--success);
}

.stat-card__content {
    flex: 1;
}

.stat-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.stat-card__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card__trend {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.trend--up {
    background: var(--success-bg);
    color: var(--success);
}

.trend--down {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-card__glow {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    pointer-events: none;
}

.stat-card--primary .stat-card__glow { background: var(--purple-500); }
.stat-card--secondary .stat-card__glow { background: var(--accent-magenta); }
.stat-card--accent .stat-card__glow { background: var(--accent-cyan); }
.stat-card--success .stat-card__glow { background: var(--success); }

/* ===== Cards ===== */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    border-color: rgba(139, 61, 255, 0.2);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.card__header-left,
.card__header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card__title i {
    color: var(--purple-400);
    font-size: 0.85rem;
}

.card__link {
    font-size: 0.78rem;
    color: var(--purple-400);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.card__link:hover {
    color: var(--purple-300);
}

.card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card__body {
    padding: 1.3rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.card--chart .card__body {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Data Table ===== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.data-table thead th {
    padding: 0.75rem 0.9rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    background: rgba(139, 61, 255, 0.03);
}

.th-sortable {
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
}

.th-sortable:hover {
    color: var(--purple-400);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(139, 61, 255, 0.05);
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(139, 61, 255, 0.04);
}

.data-table tbody td {
    padding: 0.7rem 0.9rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Table Search */
.table-search {
    position: relative;
    width: 220px;
}

.table-search i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.table-search-input {
    width: 100%;
    padding: 0.5rem 0.8rem 0.5rem 2.2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    outline: none;
    transition: all var(--transition-fast);
}

.table-search-input:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.08);
}

/* Table Footer */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.table-info {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.pagination-btn:hover {
    background: var(--bg-hover);
    color: var(--purple-400);
    border-color: var(--border-hover);
}

.pagination-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(139, 61, 255, 0.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 12px rgba(139, 61, 255, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 4px 20px rgba(139, 61, 255, 0.5);
    transform: translateY(-1px);
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent-magenta), var(--purple-500));
    color: white;
    box-shadow: 0 2px 12px rgba(224, 64, 251, 0.3);
}

.btn--accent:hover {
    box-shadow: 0 4px 20px rgba(224, 64, 251, 0.5);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn--outline:hover {
    background: var(--bg-hover);
    color: var(--purple-400);
    border-color: var(--border-hover);
}

.btn--sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
}

.btn--block {
    width: 100%;
}

.btn--icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

.btn-group {
    display: flex;
    gap: 0.7rem;
}

/* ===== Form Elements ===== */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.required {
    color: var(--danger);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 70px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    padding: 0 0.8rem;
    display: flex;
    align-items: center;
    background: rgba(139, 61, 255, 0.1);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--purple-400);
    font-size: 0.78rem;
    font-weight: 600;
}

.input-group-btn {
    padding: 0 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 10px 10px 0;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.input-group-btn:hover {
    box-shadow: 0 0 12px rgba(139, 61, 255, 0.4);
}

.inline-input {
    width: 50px;
    padding: 0.15rem 0.3rem;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    text-align: center;
    outline: none;
}

.inline-input:focus {
    border-color: var(--purple-500);
}

.select-mini {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.select-mini:focus {
    border-color: var(--purple-500);
}

.custom-checkbox {
    accent-color: var(--purple-500);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* ===== Summary Box ===== */
.summary-box {
    background: rgba(139, 61, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.2rem;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row--total {
    padding-top: 0.7rem;
}

.summary-value--total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--purple-300);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ===== Config Grid ===== */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.config-item {
    background: rgba(139, 61, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all var(--transition-fast);
}

.config-item:hover {
    border-color: var(--border-hover);
    background: rgba(139, 61, 255, 0.05);
}

.config-item__header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.config-item__header > i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.15), rgba(224, 64, 251, 0.1));
    color: var(--purple-400);
    border-radius: 10px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.config-item__header h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.config-item__header p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.config-input {
    width: 100%;
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge--success {
    background: var(--success-bg);
    color: var(--success);
}

.badge--warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge--danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge--info {
    background: var(--info-bg);
    color: var(--info);
}

.badge--primary {
    background: rgba(139, 61, 255, 0.12);
    color: var(--purple-400);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge--in-stock {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge--in-stock::before {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.status-badge--low-stock {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge--low-stock::before {
    background: var(--warning);
    box-shadow: 0 0 6px var(--warning);
}

.status-badge--out-of-stock {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-badge--out-of-stock::before {
    background: var(--danger);
    box-shadow: 0 0 6px var(--danger);
}

.status-badge--pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge--pending::before {
    background: var(--warning);
}

.status-badge--shipped {
    background: var(--info-bg);
    color: var(--info);
}

.status-badge--shipped::before {
    background: var(--info);
}

.status-badge--delivered {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge--delivered::before {
    background: var(--success);
}

.status-badge--paid {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge--paid::before {
    background: var(--success);
}

.status-badge--unpaid {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge--unpaid::before {
    background: var(--warning);
}

.status-badge--overdue {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-badge--overdue::before {
    background: var(--danger);
}

/* ===== Activity List ===== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 10px;
    transition: background var(--transition-fast);
}

.activity-item:hover {
    background: rgba(139, 61, 255, 0.04);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.activity-icon--quote {
    background: rgba(139, 61, 255, 0.12);
    color: var(--purple-400);
}

.activity-icon--delivery {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
}

.activity-icon--invoice {
    background: rgba(0, 230, 118, 0.12);
    color: var(--success);
}

.activity-icon--stock {
    background: rgba(255, 171, 64, 0.12);
    color: var(--warning);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.activity-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Low Stock List */
.low-stock-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.low-stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 82, 82, 0.04);
    border: 1px solid rgba(255, 82, 82, 0.08);
    transition: all var(--transition-fast);
}

.low-stock-item:hover {
    background: rgba(255, 82, 82, 0.08);
    border-color: rgba(255, 82, 82, 0.15);
}

.low-stock-item__info {
    display: flex;
    flex-direction: column;
}

.low-stock-item__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.low-stock-item__code {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.low-stock-item__qty {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Empty State */
.empty-state-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-state-inline i {
    font-size: 2rem;
    opacity: 0.3;
}

.empty-row td {
    text-align: center;
}

/* ===== Action Buttons (Table) ===== */
.action-btns {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--purple-400);
}

.action-btn--danger:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.action-btn--success:hover {
    background: var(--success-bg);
    color: var(--success);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 420px;
    animation: toastSlideIn 0.4s ease-out;
    transition: all var(--transition-normal);
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.toast--success .toast__icon {
    background: var(--success-bg);
    color: var(--success);
}

.toast--error .toast__icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.toast--warning .toast__icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.toast--info .toast__icon {
    background: var(--info-bg);
    color: var(--info);
}

.toast__content {
    flex: 1;
}

.toast__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toast__message {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.toast__close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.toast__close:hover {
    color: var(--text-primary);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-glow-strong);
    animation: modalPop 0.3s ease-out;
}

.modal:has(#printQuotationArea),
.modal:has(.quotation-paper),
.modal:has(#printRfqArea),
.modal:has(#printSuratJalanArea),
.modal:has(#printInvoiceArea),
.modal:has(#printPOArea) {
    max-width: 920px;
    width: 95%;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===== Canvas Charts ===== */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
    .search-box {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid--3 {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .card__actions {
        width: 100%;
    }
    .topbar {
        padding: 0 1rem;
    }
    .topbar-datetime {
        display: none;
    }
    .page-container {
        padding: 0.8rem;
    }
    .table-container {
        border-radius: 8px;
    }
}

/* ===== Utility animations ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-count {
    animation: countUp 1s ease-out forwards;
}

/* ===== Highlight for margin column ===== */
.margin-positive {
    color: var(--success);
    font-weight: 600;
}

.margin-negative {
    color: var(--danger);
    font-weight: 600;
}

/* ===== Item code styling ===== */
.item-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--purple-400);
    background: rgba(139, 61, 255, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    font-weight: 500;
}

/* ===== Currency styling ===== */
.currency {
    font-variant-numeric: tabular-nums;
}

/* ===== Print & Surat Penawaran Styles ===== */
.quotation-paper {
    background: #ffffff;
    color: #1a1a2e;
    padding: 2.5rem;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 850px;
    margin: 0 auto;
}

.quotation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #5b11bf;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.quotation-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quotation-logo {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
}

.quotation-company h2 {
    font-size: 1.3rem;
    color: #2e066a;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.02em;
}

.quotation-company p {
    font-size: 0.78rem;
    color: #555;
    margin: 2px 0 0;
}

.quotation-doc-title {
    text-align: right;
}

.quotation-doc-title h1 {
    font-size: 1.4rem;
    color: #5b11bf;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.quotation-doc-title .quote-code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    color: #333;
}

.quotation-meta-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.quotation-recipient, .quotation-info {
    background: #f8f6fc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e7e0f5;
}

.quotation-section-title {
    font-weight: 700;
    color: #5b11bf;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.quotation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.84rem;
}

.quotation-table th {
    background: #5b11bf;
    color: white;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
}

.quotation-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e7e0f5;
    color: #222;
}

.quotation-table tr:nth-child(even) {
    background: #faf8fd;
}

.quotation-total-box {
    margin-left: auto;
    width: 280px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.quotation-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    color: #444;
}

.quotation-total-row.grand-total {
    border-top: 2px solid #5b11bf;
    font-weight: 800;
    font-size: 1rem;
    color: #2e066a;
    padding-top: 0.5rem;
    margin-top: 0.3rem;
}

.quotation-terms {
    background: #fcfbfe;
    border-left: 3px solid #7c22f7;
    padding: 0.8rem 1rem;
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 2rem;
    border-radius: 0 6px 6px 0;
}

.quotation-terms h4 {
    color: #2e066a;
    margin-bottom: 0.3rem;
}

.quotation-terms ol {
    margin-left: 1.2rem;
    padding: 0;
}

.quotation-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.82rem;
}

.quotation-signature-box {
    padding-top: 0.5rem;
}

.quotation-signature-space {
    height: 70px;
}

.quotation-signature-name {
    font-weight: 700;
    text-decoration: underline;
    color: #1a1a2e;
}

/* ===== Print Engine Styles ===== */
@media print {
    /* Hide non-printable app UI */
    .sidebar, .topbar, .bg-particles, .toast-container, .btn, .search-box, .modal__header, .modal__footer, .modal__close, .page-header, .stats-grid, .card__header {
        display: none !important;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .modal-overlay {
        position: static !important;
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        backdrop-filter: none !important;
    }

    .modal {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .modal__body {
        padding: 0 !important;
    }

    .quotation-paper, #printQuotationArea {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
        display: block !important;
        visibility: visible !important;
    }

    #printQuotationArea * {
        visibility: visible !important;
    }

    @page {
        size: A4 portrait;
        margin: 15mm 12mm;
    }
}

/* ===== Glassmorphic Login Screen System ===== */
.login-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, rgba(30, 16, 60, 0.96), rgba(8, 5, 18, 0.98));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.login-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 460px;
    animation: loginCardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardPop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-glass-card {
    background: rgba(18, 13, 36, 0.85);
    border: 1px solid rgba(139, 61, 255, 0.35);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 61, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.login-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 61, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-header {
    text-align: center;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.login-logo-glow {
    width: 280px;
    height: 145px;
    margin: 0 auto 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(139, 61, 255, 0.45);
    box-shadow: 0 0 45px rgba(139, 61, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    overflow: hidden;
}

.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}

.login-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #ffffff 40%, var(--purple-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.login-badge-ribbon {
    text-align: center;
    margin-bottom: 1.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple-300);
    background: rgba(139, 61, 255, 0.12);
    border: 1px solid rgba(139, 61, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.login-form {
    position: relative;
    z-index: 1;
}

.login-field {
    margin-bottom: 1.2rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--purple-400);
    font-size: 1rem;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 0.85rem 2.8rem 0.85rem 2.8rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    transition: all var(--transition-fast) !important;
}

.login-input:focus {
    border-color: var(--purple-400) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(139, 61, 255, 0.3) !important;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color var(--transition-fast);
}

.btn-toggle-password:hover {
    color: var(--purple-300);
}

.login-alert {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff8585;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shakeAlert 0.4s ease-in-out;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.btn-login-submit {
    height: 48px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 25px rgba(139, 61, 255, 0.4);
}

.quick-accounts {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.quick-accounts-title {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.quick-pills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quick-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.quick-pill:hover {
    background: rgba(139, 61, 255, 0.15);
    border-color: rgba(139, 61, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quick-pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 61, 255, 0.2);
    color: var(--purple-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.quick-pill-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quick-pill-info strong {
    font-size: 0.8rem;
    color: #ffffff;
    font-family: var(--font-mono);
}

.quick-pill-info small {
    font-size: 0.68rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-footer {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== Quotation Product Image & Upload Styles ===== */
.quote-img-upload-container {
    margin-bottom: 1.2rem;
}

.quote-img-dropzone {
    border: 2px dashed rgba(139, 61, 255, 0.4);
    background: rgba(139, 61, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.quote-img-dropzone:hover,
.quote-img-dropzone.dragover {
    border-color: var(--purple-400);
    background: rgba(139, 61, 255, 0.12);
    transform: translateY(-1px);
}

.quote-img-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.quote-img-dropzone-icon {
    font-size: 1.8rem;
    color: var(--purple-300);
}

.quote-img-dropzone-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.quote-img-dropzone-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.quote-img-preview-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 61, 255, 0.3);
    border-radius: 10px;
}

.quote-img-preview-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.quote-img-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-img-preview-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.quote-img-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #4ade80;
}

.quote-item-thumb-btn {
    width: 95px;
    height: 95px;
    padding: 0;
    border: 2px solid rgba(139, 61, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quote-item-thumb-btn:hover {
    border-color: var(--purple-400);
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(139, 61, 255, 0.5);
}

.quote-item-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
}

.quote-item-no-thumb-btn {
    width: 95px;
    height: 95px;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.quote-item-no-thumb-btn:hover {
    border-color: var(--purple-400);
    color: var(--purple-300);
    background: rgba(139, 61, 255, 0.15);
    transform: scale(1.04);
}

.quote-item-no-thumb-btn i {
    font-size: 1.35rem;
}

.quote-lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.quote-lightbox-card {
    background: var(--card-bg, #1a162b);
    border: 1px solid var(--purple-500, #8b3dff);
    border-radius: 16px;
    padding: 22px;
    max-width: 860px;
    width: 95%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
    text-align: center;
    position: relative;
}

.quote-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

/* ===== Diskon & Promo Styles ===== */
.promo-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 61, 255, 0.15);
    border: 1px dashed rgba(139, 61, 255, 0.45);
    color: #d8b4fe;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-code-pill:hover {
    background: rgba(139, 61, 255, 0.28);
    border-color: var(--purple-400);
    color: #ffffff;
    transform: translateY(-1px);
}

.promo-badge-percent {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.promo-badge-nominal {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.discount-calc-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.5), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(139, 61, 255, 0.3);
    border-radius: 14px;
    padding: 1.5rem;
}

.discount-calc-result-box {
    background: rgba(10, 8, 20, 0.6);
    border: 1px solid rgba(139, 61, 255, 0.25);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discount-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.discount-calc-row strong {
    color: var(--text-primary);
}

.discount-calc-row--highlight {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 8px;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--purple-300);
}

/* ==========================================================================
   QUOTATION PIPELINE & LIVE PROFIT CALCULATOR STYLES
   ========================================================================== */
.pipeline-card {
    background: rgba(22, 17, 43, 0.75);
    border: 1px solid rgba(139, 61, 255, 0.22);
    border-radius: 16px;
    padding: 16px 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pipeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.pipeline-card--draft {
    border-color: rgba(245, 158, 11, 0.35);
}
.pipeline-card--draft:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.18);
}

.pipeline-card--waiting {
    border-color: rgba(59, 130, 246, 0.35);
}
.pipeline-card--waiting:hover {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.18);
}

.pipeline-card--delivered {
    border-color: rgba(34, 197, 94, 0.35);
}
.pipeline-card--delivered:hover {
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.18);
}

.pipeline-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pipeline-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pipeline-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 7px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

.pipeline-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.pipeline-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-doc-count {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.pipeline-margin-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pipeline-card-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.pipeline-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pipeline-stat-row strong {
    color: #ffffff;
    font-weight: 600;
}

.pipeline-stat-row--profit {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 6px;
    margin-top: 2px;
}

.pipeline-stat-row--profit strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.pipeline-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 6px;
}

.live-profit-estimator-box {
    background: rgba(139, 61, 255, 0.08);
    border: 1px solid rgba(139, 61, 255, 0.28);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 12px;
}

.live-profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.live-profit-row:last-child {
    margin-bottom: 0;
}

/* ===== MONITORING ORDER EXCEL / SPREADSHEET STYLES (CLEAN & HIGH CONTRAST) ===== */
.mon-table-wrapper {
    width: 100%;
    max-height: calc(100vh - 270px);
    min-height: 420px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

.mon-sheet-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.76rem;
    white-space: nowrap;
    color: #ffffff;
}

.mon-sheet-table th,
.mon-sheet-table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 6px;
    vertical-align: middle;
}

/* Header Group Colors: Clean, Modern, Bright White High Contrast */
.mon-th-group-po {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-align: center;
    border-bottom: 2px solid #facc15 !important;
}

.mon-th-group-status {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-align: center;
    border-bottom: 2px solid #f97316 !important;
}

.mon-th-group-purchase {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-align: center;
    border-bottom: 2px solid #4ade80 !important;
}

.mon-th-group-delivery {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-align: center;
    border-bottom: 2px solid #f472b6 !important;
}

.mon-th-group-billing {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-align: center;
    border-bottom: 2px solid #38bdf8 !important;
}

.mon-th-group-payment {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-align: center;
    border-bottom: 2px solid #a78bfa !important;
}

.mon-th-group-note {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    text-align: center;
    border-bottom: 2px solid #94a3b8 !important;
}

.mon-th-sub {
    background: #0f172a !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 10px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    letter-spacing: 0.4px;
}

.mon-sheet-table tbody tr:hover {
    background: rgba(139, 61, 255, 0.08);
}

.mon-sheet-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

/* Status Badges */
.status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.3px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.status-pill:hover {
    transform: scale(1.04);
}

.status-pill--receive-po {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.status-pill--ordering {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.status-pill--delivered {
    background: #16a34a !important;
    color: #ffffff !important;
}

.status-pill--billing {
    background: #0284c7 !important;
    color: #ffffff !important;
}

.status-pill--paid {
    background: #09090b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Stock Badges */
.stock-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.stock-pill--lokal {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.stock-pill--indent {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

/* Footer row guide hidden */
.mon-tfoot-guide {
    display: none !important;
}

/* Dynamic Line Items in Modal Monitoring Order */
.mon-line-row {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}
.mon-line-row:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.mon-line-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e3a8a;
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.mon-line-badge i {
    color: #38bdf8;
}

/* Sub-line items in same PO table view */
.mon-sheet-table tbody tr.mon-subline-row {
    background: rgba(15, 23, 42, 0.45);
}
.mon-sheet-table tbody tr.mon-subline-row td {
    border-top: 1px dashed rgba(255, 255, 255, 0.07) !important;
}
.mon-sheet-table tbody tr.mon-subline-row:hover {
    background: rgba(30, 41, 59, 0.7) !important;
}

/* Inline Table Date Badge (Minimized MM/DD/YY e.g. 10/29/26 with click-to-edit) */
.mon-date-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: #e2e8f0;
    min-width: 66px;
    height: 23px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    overflow: hidden;
}
.mon-date-badge:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.mon-date-hidden-inp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: none;
}
.mon-date-hidden-inp::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.mon-table-date-inp {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.72rem;
    font-family: inherit;
    padding: 2px 4px;
    border-radius: 4px;
    width: 100px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mon-table-date-inp:hover,
.mon-table-date-inp:focus {
    background: rgba(30, 41, 59, 0.95);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
    outline: none;
}
.mon-table-date-inp::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    cursor: pointer;
}

.mon-table-num-inp {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #34d399;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    width: 85px;
    text-align: right;
    transition: all 0.2s ease;
}
.mon-table-num-inp:hover,
.mon-table-num-inp:focus {
    background: rgba(30, 41, 59, 0.95);
    border-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
    outline: none;
}

/* Inline Table Document Pill & Upload Button - Minimized */
.mon-table-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px dashed rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.mon-table-upload-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}
.mon-table-doc-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    padding: 1px 4px;
    max-width: 95px;
    transition: all 0.2s ease;
}
.mon-table-doc-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}
.mon-table-doc-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mon-table-doc-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    cursor: pointer;
    padding: 1px 2px;
    line-height: 1;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}
.mon-table-doc-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.mon-table-doc-btn--del:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.2) !important;
}

/* Single Row KPI Bar for Monitoring Order */
.mon-kpi-bar {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(130px, 1fr)) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.85rem !important;
    overflow-x: auto !important;
    padding-bottom: 4px;
}
.mon-kpi-bar .stat-card {
    padding: 0.5rem 0.65rem !important;
    gap: 0.5rem !important;
    min-width: 120px !important;
    border-radius: 8px !important;
}
.mon-kpi-bar .stat-card__icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}
.mon-kpi-bar .stat-card__label {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.mon-kpi-bar .stat-card__value {
    font-size: 1.15rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}

/* Inline Editable Note Input */
.mon-table-note-inp {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-family: inherit;
    padding: 3px 6px;
    border-radius: 4px;
    width: 100%;
    min-width: 100px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.mon-table-note-inp:hover,
.mon-table-note-inp:focus {
    background: rgba(30, 41, 59, 0.95);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
    outline: none;
}

/* Sticky Frozen Columns: NO through PO DATE */
.mon-sticky-col {
    position: sticky !important;
    background: #0f172a;
    z-index: 4;
}
.mon-sheet-table tbody tr:hover .mon-sticky-col {
    background: #1e293b !important;
}
.mon-sheet-table tbody tr.mon-subline-row .mon-sticky-col {
    background: #0f172a !important;
}
.mon-sheet-table tbody tr.mon-subline-row:hover .mon-sticky-col {
    background: #1e293b !important;
}

.mon-sticky-col-1 {
    left: 0 !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
}
.mon-sticky-col-2 {
    left: 36px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
}
.mon-sticky-col-3 {
    left: 94px !important;
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
}
.mon-sticky-col-4 {
    left: 174px !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}
.mon-sticky-col-5 {
    left: 264px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
}
.mon-sticky-col-6 {
    left: 346px !important;
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
}
.mon-sticky-col-last {
    border-right: 2px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.5) !important;
}

/* Sticky Frozen Table Headers (Vertical Scroll) */
.mon-sheet-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}
.mon-sheet-table thead tr:first-child th {
    position: sticky;
    top: 0;
    height: 28px;
    box-sizing: border-box;
    padding: 4px 6px;
    z-index: 10;
}
.mon-sheet-table thead tr:nth-child(2) th {
    position: sticky;
    top: 28px;
    height: 28px;
    box-sizing: border-box;
    padding: 4px 6px !important;
    z-index: 10;
    border-bottom: 2px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.4);
}

/* Intersection Corners (Both Horizontal + Vertical Freeze: Columns 1 to 6 in thead) */
.mon-sheet-table thead tr:first-child th.mon-sticky-th-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 22 !important;
}
.mon-sheet-table thead tr:nth-child(2) th.mon-sticky-th {
    position: sticky !important;
    top: 28px !important;
    z-index: 21 !important;
}

/* Sticky Headers in thead general */
.mon-sticky-th {
    position: sticky !important;
    z-index: 10 !important;
}
.mon-sticky-th-top {
    position: sticky !important;
    z-index: 12 !important;
}

/* ==========================================================================
   GROSS PROFIT & PPN SPREADSHEET (MATCHING EXCEL & MONITORING ORDER)
   ========================================================================== */
.gp-sheet-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.76rem;
    white-space: nowrap;
    color: #ffffff;
}

.gp-sheet-table th,
.gp-sheet-table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 6px;
    vertical-align: middle;
}

/* Excel Style Headers matching Screenshot */
.gp-sheet-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.gp-sheet-table thead th {
    position: sticky;
    top: 0;
    height: 38px;
    box-sizing: border-box;
    padding: 6px 6px !important;
    z-index: 10;
    vertical-align: middle;
    text-align: center;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.4);
}

.gp-th-excel {
    background: #fde047 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.4px;
    border: 1px solid rgba(0, 0, 0, 0.28) !important;
    text-transform: uppercase;
}

.gp-th-excel-orange {
    background: #f97316 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.4px;
    border: 1px solid rgba(0, 0, 0, 0.28) !important;
    text-transform: uppercase;
}

.gp-th-excel-amber {
    background: #eab308 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.4px;
    border: 1px solid rgba(0, 0, 0, 0.28) !important;
    text-transform: uppercase;
}

/* Sticky Columns for Gross Profit Table */
.gp-sheet-table th.gp-sticky-col-1,
.gp-sheet-table td.gp-sticky-col-1 {
    position: sticky !important;
    left: 0 !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    z-index: 5;
    background: #0f172a;
}

.gp-sheet-table th.gp-sticky-col-2,
.gp-sheet-table td.gp-sticky-col-2 {
    position: sticky !important;
    left: 36px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 75px !important;
    z-index: 5;
    background: #0f172a;
}

.gp-sheet-table th.gp-sticky-col-3,
.gp-sheet-table td.gp-sticky-col-3 {
    position: sticky !important;
    left: 96px !important;
    width: 85px !important;
    min-width: 85px !important;
    max-width: 95px !important;
    z-index: 5;
    background: #0f172a;
}

.gp-sheet-table th.gp-sticky-col-1,
.gp-sheet-table th.gp-sticky-col-2,
.gp-sheet-table th.gp-sticky-col-3 {
    z-index: 22 !important;
}

.gp-sheet-table tbody tr:hover td.gp-sticky-col-1,
.gp-sheet-table tbody tr:hover td.gp-sticky-col-2,
.gp-sheet-table tbody tr:hover td.gp-sticky-col-3 {
    background: #1e293b !important;
}

.gp-sheet-table tbody tr.mon-subline-row td.gp-sticky-col-1,
.gp-sheet-table tbody tr.mon-subline-row td.gp-sticky-col-2,
.gp-sheet-table tbody tr.mon-subline-row td.gp-sticky-col-3 {
    background: #0f172a !important;
}

.gp-sheet-table tbody tr.mon-subline-row:hover td.gp-sticky-col-1,
.gp-sheet-table tbody tr.mon-subline-row:hover td.gp-sticky-col-2,
.gp-sheet-table tbody tr.mon-subline-row:hover td.gp-sticky-col-3 {
    background: #1e293b !important;
}

.gp-num-inp {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    width: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #facc15;
    padding: 2px 5px;
    transition: all 0.2s;
}

.gp-num-inp:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.6);
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

/* Gross Profit Buy Price Interactive Badge & Total Amount */
.gp-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}
.gp-price-badge:hover {
    background: rgba(250, 204, 21, 0.22);
    border-color: #facc15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.35);
    transform: translateY(-1px);
}
.gp-price-badge i {
    font-size: 0.68rem;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.gp-price-badge:hover i {
    opacity: 1;
}

.gp-total-amt-cell {
    cursor: pointer;
    transition: all 0.2s ease;
}
.gp-total-amt-cell:hover {
    background: rgba(52, 211, 153, 0.12) !important;
}

/* ===== LIST OF PURCHASE STYLES ===== */
.status-pill--adv-payment {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
}
.status-pill--close {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
}
.purch-highlight-pink {
    background: rgba(244, 114, 182, 0.1) !important;
}
.purch-highlight-green {
    background: rgba(52, 211, 153, 0.1) !important;
}

/* Sticky Frozen Columns for List of Purchase (Balanced Widths & No Overflow) */
.purch-sheet-table thead th {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    vertical-align: middle;
}
.purch-sticky-col {
    position: sticky !important;
    background: #0f172a;
    z-index: 4;
}
.purch-sheet-table tbody tr:hover .purch-sticky-col {
    background: #1e293b !important;
}
.purch-sheet-table tbody tr.mon-subline-row .purch-sticky-col {
    background: #0f172a !important;
}
.purch-sheet-table tbody tr.mon-subline-row:hover .purch-sticky-col {
    background: #1e293b !important;
}
.purch-sheet-table thead th.purch-sticky-col {
    background: #1e293b !important;
    color: #ffffff !important;
    z-index: 22 !important;
}

.purch-sticky-col-1 {
    left: 0 !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    text-align: center;
    box-sizing: border-box;
}
.purch-sticky-col-2 {
    left: 36px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    text-align: center;
    box-sizing: border-box;
}
.purch-sticky-col-3 {
    left: 114px !important; /* 36 + 78 = 114px */
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.purch-sticky-col-4 {
    left: 244px !important; /* 114 + 130 = 244px */
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.purch-sticky-col-last {
    border-right: 2px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.5) !important;
}

/* ==================== MONITORING PPN STYLES ==================== */
.ppn-matrix-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.08);
}

.ppn-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
}

.ppn-matrix-table thead th {
    background: #0f172a;
    color: #e2e8f0;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.ppn-matrix-table thead th.ppn-th-desc {
    background: #1e293b !important;
    color: #38bdf8 !important;
    text-align: left;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 30 !important;
    box-sizing: border-box;
    border-right: 2px solid rgba(56, 189, 248, 0.5) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.6) !important;
}

.ppn-matrix-table thead th.ppn-th-total {
    background: #1e1b4b;
    color: #facc15;
    font-weight: 900;
    min-width: 110px;
}

.ppn-matrix-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
}

.ppn-matrix-table tbody td.ppn-td-desc {
    background: #1e293b !important;
    color: #f8fafc !important;
    font-family: inherit;
    font-weight: 700;
    text-align: left;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 20 !important;
    box-sizing: border-box;
    border-right: 2px solid rgba(56, 189, 248, 0.5) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.6) !important;
}

.ppn-matrix-table tbody tr:hover td {
    background-color: rgba(56, 189, 248, 0.04);
}

.ppn-matrix-table tbody tr:hover td.ppn-td-desc {
    background-color: #273549 !important;
}

.ppn-matrix-table tbody tr.ppn-row-balance td {
    background: rgba(250, 204, 21, 0.12) !important;
    color: #facc15 !important;
    font-weight: 800;
    border-top: 1px solid rgba(250, 204, 21, 0.4);
    border-bottom: 1px solid rgba(250, 204, 21, 0.4);
}

.ppn-matrix-table tbody tr.ppn-row-balance td.ppn-td-desc {
    background: #27281f !important;
    color: #facc15 !important;
    border-right: 2px solid rgba(250, 204, 21, 0.6) !important;
}

.ppn-matrix-table tbody tr.ppn-row-result td {
    background: rgba(15, 23, 42, 0.9) !important;
    text-align: center;
    vertical-align: middle;
}

.ppn-matrix-table tbody tr.ppn-row-result td.ppn-td-desc {
    background: #1e293b !important;
    color: #ffffff !important;
}

.ppn-res-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.ppn-res-lebih {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}

.ppn-res-kurang {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    border: 1px solid rgba(251, 113, 133, 0.4);
    box-shadow: 0 0 10px rgba(251, 113, 133, 0.15);
}

.ppn-res-nihil {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.ppn-info-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.76rem;
    color: #bae6fd;
    line-height: 1.45;
}

.ppn-info-alert i {
    font-size: 1rem;
    color: #38bdf8;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Detail Table Sticky Columns */
.ppn-sheet-table thead th {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    vertical-align: middle;
}

.ppn-sheet-table .ppn-sticky-col {
    position: sticky !important;
    background: #0f172a;
    z-index: 4;
}

.ppn-sheet-table tbody tr:hover .ppn-sticky-col {
    background: #1e293b !important;
}

.ppn-sheet-table thead th.ppn-sticky-col {
    background: #1e293b !important;
    color: #ffffff !important;
    z-index: 22 !important;
}

.ppn-sticky-col-1 {
    left: 0 !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    text-align: center;
    box-sizing: border-box;
}

.ppn-sticky-col-2 {
    left: 36px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    text-align: center;
    box-sizing: border-box;
}

.ppn-sticky-col-3 {
    left: 114px !important; /* 36 + 78 = 114px */
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    box-sizing: border-box;
}

.ppn-sticky-col-4 {
    left: 259px !important; /* 114 + 145 = 259px */
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppn-sticky-col-last {
    border-right: 2px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.5) !important;
}



