:root {
    --primary: #0f172a;        /* Deep Navy */
    --accent: #3b82f6;         /* ERP Blue */
    --success: #10b981;
    --danger: #ef4444;
    --bg-main: #f1f5f9;
    --bg-sidebar: #1e293b;
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

body { 
    font-family: 'Arial', serif; 
    background: var(--bg-main); 
    margin: 0; 
    color: var(--text-main); 
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Branding */
.sidebar {
    width: 200px;
    background: var(--bg-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}

.logo { 
    font-weight: 800; 
    font-size: 1.3rem; 
    letter-spacing: -0.5px; 
    margin-bottom: 2rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 1rem;
}

.nav-link {
    padding: 0.7rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.nav-link.active { background: var(--accent); color: white; }

/* Main Stage */
.main-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.top-nav {
    background: white;
    padding: 0rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    height: 64px;
    flex-shrink: 0;
}

.status-bar {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.status-pill {
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 20px;
}

/* ERP Layout Containers */
.action-header {
    background: #e2e8f0;
    padding: 0.25rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-group { display: flex; gap: 0.5rem; }

button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    /*text-transform: uppercase;*/
}

.btn-blue { background: var(--accent); color: white; border: none; }
.btn-white { background: white; color: var(--text-main); }
.btn-white:hover { background: #f8fafc; border-color: #cbd5e1; }

/* The Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: 0rem 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
}

.card-content { padding: 1rem; height: 600px; overflow-y: auto; }

.verify-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.verify-table td { 
    padding: 1rem; 
    font-size: 0.85rem; 
    border-bottom: 1px solid var(--border);
}

#invoice-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #334155;
}

#results-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 3rem;
    text-align: center;
}
#paywall-screen, #results-screen { display: none; padding: 0px 50px; text-align: center; }
        .cta-btn { background: var(--primary); color: white; padding: 15px 30px; font-size: 18px; text-decoration: none; border-radius: 8px; display: inline-block; margin-top: 20px; }
#paywall-screen {
    /* Layout & Positioning */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100000000;

    /* Professional Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);

    /* Center the "Card" */
    align-items: center;
    justify-content: center;
    
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* The Blue Rounded Border Box */
.paywall-container {
    border: 2px solid #00bee7;
    border-radius: 15px;
    padding: 60px 40px;
    max-width: 900px;
    width: 90%;
    background: white;
    text-align: center;
}

/* Typography matching the image */
.paywall-container h2 {
    color: #00bee7;
    font-size: 28px;
    margin-bottom: 20px;
}

.paywall-container p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.paywall-container .highlight {
    color: #00bee7;
    font-weight: bold;
}

/* The Bright Blue Button */
.paywall-btn {
    background-color: #00bee7;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.paywall-btn:hover {
    background-color: #009dbf;
}

/* Footer Link */
.paywall-footer {
    margin-top: 15px;
    font-size: 14px;
}

.paywall-footer a {
    color: blue;
    text-decoration: underline;
}