/* ================================================================
   DIGITAL INDIA ONLINE SOLUTION - CYBER-FINTECH ENTERPRISE BILLING SUITE
   Proprietary Glassmorphism, Hologram Security Engine & Print Architecture
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================
   THEME DESIGN TOKENS
   ========================================== */
:root {
    /* Base Fonts */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Theme 1: Midnight Cyberpunk (Default) */
    --bg-workspace: #070b14;
    --bg-header: rgba(11, 19, 38, 0.95);
    --bg-editor: #0c1427;
    --bg-card: rgba(16, 26, 51, 0.75);
    --border-card: rgba(0, 242, 254, 0.15);
    --border-card-hover: rgba(0, 242, 254, 0.45);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --input-bg: rgba(9, 16, 32, 0.85);
    --input-border: rgba(148, 163, 184, 0.2);
    --input-focus: #00f2fe;
    
    /* Neon Accents */
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-amber: #f59e0b;
    --neon-emerald: #10b981;
    --neon-rose: #f43f5e;
    --neon-purple: #8b5cf6;
    
    --accent-glow: 0 0 25px rgba(0, 242, 254, 0.25);
    --amber-glow: 0 0 25px rgba(245, 158, 11, 0.25);
    --emerald-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    
    --cyber-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --sms-cyber-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --card-gradient: linear-gradient(145deg, rgba(20, 32, 60, 0.85) 0%, rgba(13, 22, 43, 0.9) 100%);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Theme 2: Titanium Glass (Silicon Valley Clean) */
body.theme-titanium {
    --bg-workspace: #0f172a;
    --bg-header: rgba(30, 41, 59, 0.95);
    --bg-editor: #1e293b;
    --bg-card: rgba(51, 65, 85, 0.65);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-card-hover: rgba(56, 189, 248, 0.5);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.8);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus: #38bdf8;
    --cyber-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    --sms-cyber-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Theme 3: Imperial Navy & Royal Gold */
body.theme-imperial {
    --bg-workspace: #06101e;
    --bg-header: rgba(10, 25, 47, 0.98);
    --bg-editor: #0c1b33;
    --bg-card: rgba(18, 38, 71, 0.7);
    --border-card: rgba(229, 184, 105, 0.25);
    --border-card-hover: rgba(229, 184, 105, 0.6);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #8892b0;
    --input-bg: rgba(6, 16, 30, 0.85);
    --input-border: rgba(229, 184, 105, 0.25);
    --input-focus: #e5b869;
    --cyber-gradient: linear-gradient(135deg, #e5b869 0%, #c9933b 100%);
    --sms-cyber-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ==========================================
   GLOBAL RESET & CYBER BACKDROP
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-workspace);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Futuristic Ambient Mesh Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 15% 25%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
    background-size: 40px 40px, 40px 40px, auto, auto;
    pointer-events: none;
    z-index: 0;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ================================================================
   TOP COMMAND BAR (COMMAND CENTER NAVIGATION)
   ================================================================ */
.app-header {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 242, 254, 0.15);
    padding: 0.75rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: max-content;
}

.brand-logo-frame {
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.5), rgba(79, 172, 254, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-meta h1 {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0;
}

.brand-meta h1 .badge-tech {
    font-size: 0.62rem;
    background: var(--cyber-gradient);
    color: #070b14;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.brand-meta p {
    font-size: 0.72rem;
    color: var(--neon-cyan);
    opacity: 0.85;
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.brand-meta p i {
    font-size: 0.62rem;
    color: #10b981;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Document Suite Selector (Invoices + HR Letters + Certificates) */
.doc-suite-picker {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(11, 19, 38, 0.85);
    border: 1.5px solid rgba(0, 242, 254, 0.4);
    border-radius: 999px;
    padding: 2px 10px 2px 12px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    transition: all 0.25s;
}

.doc-suite-picker:hover, .doc-suite-picker:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.doc-suite-picker .suite-icon {
    color: var(--neon-cyan);
    font-size: 0.82rem;
    margin-right: 6px;
}

.doc-suite-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
    padding: 5px 2px;
}

.doc-suite-select option, .doc-suite-select optgroup {
    background: #0f172a;
    color: #f8fafc;
    font-weight: 600;
}

/* Theme Switcher Pills */
.theme-selector-group {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 2px;
    display: flex;
    gap: 2px;
}

.theme-pill-btn {
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-pill-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-secondary-dark {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-secondary-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: var(--accent-glow);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 2px 14px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
}

.btn-print {
    background: var(--cyber-gradient);
    color: #070b14;
    font-weight: 800;
    box-shadow: 0 2px 14px rgba(0, 242, 254, 0.35);
}
.btn-print:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.55);
}

/* Audio Toggle Button */
.btn-sound-toggle {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--neon-cyan);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-sound-toggle.muted {
    color: var(--text-dim);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ================================================================
   MAIN SPLIT WORKSPACE
   ================================================================ */
.app-container {
    display: flex;
    min-height: calc(100vh - 65px);
    position: relative;
    z-index: 1;
}

/* Left Editor Pane */
.editor-pane {
    width: 48%;
    max-width: 690px;
    min-width: 490px;
    background: var(--bg-editor);
    border-right: 1px solid rgba(0, 242, 254, 0.12);
    padding: 1.5rem;
    overflow-y: auto;
    height: calc(100vh - 65px);
}

/* Right Document Preview Pane */
.preview-pane {
    flex: 1;
    background: #050811;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    padding: 2.25rem 1.75rem;
    overflow-y: auto;
    height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================================================================
   CYBER GLASS CARDS & FORM CONTROLS
   ================================================================ */
.editor-card {
    background: var(--card-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-card:hover {
    border-color: var(--border-card-hover);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.08);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-title i {
    color: var(--neon-cyan);
    font-size: 1.05rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-main);
    background: var(--input-bg);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
    background: rgba(12, 22, 44, 0.95);
}

.form-control::placeholder {
    color: var(--text-dim);
}

/* ================================================================
   1-CLICK CYBER SERVICE CATALOG
   ================================================================ */
.service-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.service-card-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 11px 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: flex-start;
    gap: 11px;
    position: relative;
    overflow: hidden;
}

.service-card-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-cyan);
    opacity: 0;
    transition: opacity 0.2s;
}

.service-card-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 242, 254, 0.15);
}

.service-card-btn:hover::after {
    opacity: 1;
}

.service-icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.1);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.service-card-btn.sms-card .service-icon-box {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.service-card-btn.sms-card {
    border-color: rgba(245, 158, 11, 0.25);
}
.service-card-btn.sms-card::after {
    background: #f59e0b;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 0.83rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 2px;
}

.service-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.service-rate-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.1);
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 5px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.service-card-btn.sms-card .service-rate-badge {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

/* ================================================================
   THE TELECOM TELEMETRY MATRIX (ADVANCED SMS COMMAND CENTER)
   ================================================================ */
.sms-calculator-card {
    background: linear-gradient(145deg, rgba(28, 20, 11, 0.9) 0%, rgba(18, 14, 8, 0.95) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.12);
    position: relative;
    overflow: hidden;
}

.sms-calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sms-cyber-gradient);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.7);
}

.sms-header-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sms-badge-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sms-badge-title i {
    color: #f59e0b;
    font-size: 1.15rem;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

.sms-route-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Telecom Telemetry Gauges Strip */
.telecom-telemetry-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 14px;
}

.telemetry-cell {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.telemetry-cell:last-child {
    border-right: none;
}

.telemetry-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.telemetry-value {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.telemetry-value.accent-green { color: #34d399; }
.telemetry-value.accent-amber { color: #fbbf24; }
.telemetry-value.accent-cyan { color: #00f2fe; }

/* Rate quick chips */
.rate-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.rate-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.rate-chip:hover, .rate-chip.active {
    background: #f59e0b;
    color: #070b14;
    border-color: #f59e0b;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Volume presets */
.volume-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.vol-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.vol-chip:hover, .vol-chip.active {
    background: var(--neon-cyan);
    color: #070b14;
    border-color: var(--neon-cyan);
    font-weight: 800;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.sms-slider {
    width: 100%;
    margin: 8px 0;
    accent-color: #f59e0b;
    cursor: pointer;
}

/* SMS breakdown output box */
.sms-breakdown-box {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 14px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.sms-stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 8px;
}
.sms-stat-item:last-child {
    border-right: none;
}

.sms-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.sms-stat-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fbbf24;
    font-family: var(--font-mono);
    margin-top: 2px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.btn-add-sms-package {
    width: 100%;
    background: var(--sms-cyber-gradient);
    color: #070b14;
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-add-sms-package:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

/* ================================================================
   ITEMS TABLE IN EDITOR
   ================================================================ */
.editor-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.editor-items-table th {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--neon-cyan);
    padding: 8px 6px;
    border-bottom: 1.5px solid rgba(0, 242, 254, 0.2);
    text-align: left;
}

.editor-items-table td {
    padding: 7px 4px;
    vertical-align: middle;
}

.editor-items-table .item-row-amt {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    text-align: right;
}

.btn-icon-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-danger:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.btn-add-item {
    background: rgba(0, 242, 254, 0.06);
    color: var(--neon-cyan);
    border: 1.5px dashed var(--neon-cyan);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
}

.btn-add-item:hover {
    background: rgba(0, 242, 254, 0.15);
    box-shadow: var(--accent-glow);
}

/* ================================================================
   CALCULATIONS SUMMARY IN EDITOR
   ================================================================ */
.calc-summary-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-top: 12px;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.calc-row.grand-calc {
    border-top: 2px solid rgba(0, 242, 254, 0.25);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--neon-cyan);
}

.calc-row.grand-calc span:last-child {
    font-family: var(--font-mono);
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

/* ================================================================
   RIGHT PANE: LIVE A4 DOCUMENT PREVIEW & SECURITY SEALS
   ================================================================ */
.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 820px;
    margin-bottom: 16px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.preview-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 242, 254, 0.12);
    color: var(--neon-cyan);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(0, 242, 254, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(0, 242, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

/* REAL A4 SHEET WITH EXCLUSIVE GUILLOCHÉ BORDER & WATERMARK */
.a4-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    min-height: 1120px;
    padding: 42px 48px;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    font-size: 13px;
    color: #1e293b;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Security Guilloché Pattern Accent on A4 Sheet */
.a4-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 25%, #06b6d4 50%, #2563eb 75%, #1e3a8a 100%);
}

/* Subtle Security Watermark */
.doc-security-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 42px;
    font-weight: 900;
    color: rgba(30, 41, 59, 0.035);
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* ================================================================
   IRIDESCENT HOLOGRAM SECURITY BADGE (UNCOPYABLE PROPRIETARY SEAL)
   ================================================================ */
.hologram-seal-wrapper {
    position: absolute;
    top: 36px;
    right: 48px;
    z-index: 10;
}

.hologram-badge {
    position: relative;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0f172a;
    font-weight: 900;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 20%, #fbc2eb 40%, #a6c1ee 60%, #84fab0 80%, #f6d365 100%);
    background-size: 300% 300%;
    animation: hologramShimmer 4s ease infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: default;
}

@keyframes hologramShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hologram-badge i {
    font-size: 20px;
    color: #1e3a8a;
    margin-bottom: 2px;
}

.hologram-badge span {
    line-height: 1.1;
    font-size: 7.5px;
    font-weight: 800;
}

.hologram-hash-code {
    font-family: var(--font-mono);
    font-size: 6.5px;
    background: rgba(0, 0, 0, 0.7);
    color: #38bdf8;
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 3px;
}

/* Header */
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2.5px solid #1e3a8a;
    padding-bottom: 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.doc-logo-area img {
    max-height: 65px;
    max-width: 230px;
    object-fit: contain;
    margin-bottom: 8px;
}

.doc-company-details {
    font-size: 11.5px;
    color: #475569;
    line-height: 1.5;
    max-width: 380px;
}

.doc-company-details strong {
    color: #0f172a;
    font-size: 12.5px;
}

.doc-meta-area {
    text-align: right;
    padding-top: 15px; /* Leave space for hologram */
}

.doc-main-title {
    font-size: 24px;
    font-weight: 900;
    color: #1e3a8a;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.doc-sub-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 10px;
}

.doc-meta-table {
    margin-left: auto;
    font-size: 12px;
}

.doc-meta-table td {
    padding: 3px 6px;
    text-align: right;
}

.doc-meta-table td.meta-label {
    color: #64748b;
    font-weight: 700;
}

.doc-meta-table td.meta-val {
    font-weight: 800;
    color: #0f172a;
}

/* Status badge */
.badge-doc-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-paid {
    background: #dcfce7;
    color: #15803d;
}
.badge-pending {
    background: #fee2e2;
    color: #b91c1c;
}
.badge-partially-paid {
    background: #fef3c7;
    color: #b45309;
}
.badge-quotation {
    background: #e0e7ff;
    color: #3730a3;
}

/* Bill To & Info Strip */
.doc-info-strip {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.info-col {
    width: 48%;
}

.info-col h6 {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-col .client-name-display {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}

.info-col p {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* Items table on document */
.doc-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.doc-items-table th {
    background: #1e293b;
    color: white;
    padding: 9px 12px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-items-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12.5px;
    color: #1e293b;
}

.doc-items-table tr:nth-child(even) td {
    background-color: #fafbfc;
}

.doc-items-table .text-center { text-align: center; }
.doc-items-table .text-right { text-align: right; }

/* Totals & Banking split */
.doc-bottom-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.doc-banking-box {
    width: 52%;
}

.bank-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 11.5px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bank-card h6 {
    font-size: 11.5px;
    font-weight: 800;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upi-box-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
}

.upi-qr-img {
    width: 82px;
    height: 82px;
    border: 1px solid #86efac;
    border-radius: 6px;
    background: white;
    padding: 3px;
}

.upi-text h6 {
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 2px;
}

.upi-text p {
    font-size: 11px;
    color: #166534;
    line-height: 1.4;
    margin: 0;
}

.doc-totals-box {
    width: 44%;
}

.doc-calc-table {
    width: 100%;
    font-size: 12.5px;
}

.doc-calc-table td {
    padding: 5px 8px;
}

.doc-calc-table tr.grand-total-row td {
    border-top: 2px solid #1e3a8a;
    border-bottom: 2px solid #1e3a8a;
    font-size: 15.5px;
    font-weight: 900;
    color: #1e3a8a;
    padding: 8px;
}

/* Words box */
.doc-words-strip {
    background: #f1f5f9;
    border-left: 4px solid #1e3a8a;
    border-radius: 4px;
    padding: 9px 14px;
    font-size: 12px;
    margin-bottom: 18px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.doc-words-strip strong {
    color: #0f172a;
}

/* Footer terms & signatory */
.doc-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.terms-section {
    width: 60%;
    font-size: 10px;
    color: #64748b;
    line-height: 1.5;
}

.terms-section strong {
    color: #334155;
    font-size: 10.5px;
}

.signatory-section {
    width: 35%;
    text-align: right;
}

.sign-for-text {
    font-size: 11px;
    color: #475569;
    margin-bottom: 45px;
}

.sign-line {
    border-top: 1px solid #94a3b8;
    display: inline-block;
    width: 170px;
    padding-top: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

/* Anti-counterfeit micro-print */
.micro-security-strip {
    text-align: center;
    font-size: 8px;
    color: #94a3b8;
    font-family: var(--font-mono);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* ================================================================
   MODAL DIALOGS (SETTINGS & SAVED INVOICES)
   ================================================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-backdrop.open {
    display: flex;
}

.modal-box {
    background: #0f172a;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    padding: 1.75rem;
    animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: var(--neon-cyan);
}

.modal-close-btn {
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
}
.modal-close-btn:hover {
    color: var(--neon-cyan);
}

/* ================================================================
   MOBILE RESPONSIVE ARCHITECTURE & TOUCH OPTIMIZATION (<= 900px)
   ================================================================ */

.mobile-tab-bar {
    display: none;
}

.mobile-bottom-dock {
    display: none;
}

@media (max-width: 900px) {
    /* Header optimization */
    .app-header {
        padding: 0.6rem 0.85rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand-wrapper {
        gap: 8px;
    }

    .brand-meta h1 {
        font-size: 0.92rem;
    }
    .brand-meta p {
        display: none;
    }
    .brand-logo-img {
        height: 32px;
        padding: 2px 6px;
    }

    .header-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .header-btn {
        padding: 6px 9px;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .theme-pill-btn {
        padding: 4px 7px;
        font-size: 0.65rem;
    }

    .doc-type-btn {
        padding: 5px 9px;
        font-size: 0.72rem;
    }

    /* Mobile Sticky View Switcher Tabs */
    .mobile-tab-bar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 999;
        background: rgba(11, 19, 38, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1.5px solid rgba(0, 242, 254, 0.3);
        padding: 8px 10px;
        gap: 8px;
    }

    .mobile-tab-btn {
        flex: 1;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--text-muted);
        padding: 10px 8px;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.2s;
    }

    .mobile-tab-btn.active {
        background: var(--cyber-gradient);
        color: #070b14;
        border-color: var(--neon-cyan);
        box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
    }

    /* Workspace container */
    .app-container {
        display: block;
        min-height: auto;
        padding-bottom: 80px; /* Space for mobile floating dock */
    }

    .editor-pane {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        padding: 1rem 0.65rem;
        border-right: none;
    }

    .preview-pane {
        width: 100%;
        height: auto;
        padding: 1rem 0.4rem;
        display: none; /* Controlled by mobile tab buttons */
    }

    /* Mobile Floating Bottom Dock */
    .mobile-bottom-dock {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 10px;
        right: 10px;
        z-index: 1001;
        background: rgba(11, 19, 38, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1.5px solid rgba(0, 242, 254, 0.35);
        border-radius: 999px;
        padding: 6px 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
        justify-content: space-around;
        gap: 6px;
    }

    .dock-btn {
        flex: 1;
        padding: 10px 8px;
        border-radius: 999px;
        border: none;
        font-size: 0.78rem;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .dock-btn-toggle {
        background: rgba(0, 242, 254, 0.15);
        color: var(--neon-cyan);
        border: 1px solid rgba(0, 242, 254, 0.4);
    }

    .dock-btn-wa {
        background: #25d366;
        color: white;
    }

    .dock-btn-print {
        background: var(--cyber-gradient);
        color: #070b14;
    }

    /* Form Grids on Mobile */
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Service Catalog on Mobile */
    .service-catalog-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Telemetry Strip on Mobile */
    .telecom-telemetry-strip {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .telemetry-cell {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 6px;
    }

    /* SMS Breakdown Box */
    .sms-breakdown-box {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .sms-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 6px;
    }
    .sms-stat-item:last-child {
        border-bottom: none;
    }

    /* A4 Document Canvas on Mobile */
    .a4-sheet {
        padding: 24px 14px;
        min-height: auto;
        border-radius: var(--radius-sm);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .hologram-seal-wrapper {
        position: static;
        margin-bottom: 12px;
        display: flex;
        justify-content: flex-end;
    }
    .hologram-badge {
        width: 68px;
        height: 68px;
        font-size: 6.8px;
    }
    .hologram-badge i {
        font-size: 16px;
    }

    .doc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .doc-meta-area {
        text-align: left;
        padding-top: 0;
        width: 100%;
    }

    .doc-meta-table {
        margin-left: 0;
        width: 100%;
    }
    .doc-meta-table td.meta-label {
        text-align: left;
    }
    .doc-meta-table td.meta-val {
        text-align: right;
    }

    .doc-info-strip {
        flex-direction: column;
        gap: 14px;
        padding: 12px 14px;
    }

    .info-col {
        width: 100%;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .doc-items-table {
        font-size: 11px;
    }
    .doc-items-table th, .doc-items-table td {
        padding: 8px 5px;
    }

    .doc-bottom-row {
        flex-direction: column;
        gap: 18px;
    }

    .doc-banking-box, .doc-totals-box {
        width: 100%;
    }

    .upi-box-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .doc-footer-row {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .terms-section {
        width: 100%;
    }

    .signatory-section {
        width: 100%;
        text-align: right;
    }

    .sign-line {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .editor-items-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .editor-items-table th, .editor-items-table td {
        padding: 6px 4px;
    }

    .rate-presets, .volume-presets {
        gap: 4px;
    }
    .rate-chip, .vol-chip {
        font-size: 0.68rem;
        padding: 2px 7px;
    }
}

/* ================================================================
   CORPORATE HR DOCUMENT SUITE & CERTIFICATE ENGINE
   ================================================================ */
.hr-preset-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.hr-preset-btn {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--neon-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hr-preset-btn:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--neon-cyan);
    transform: translateY(-1px);
}

/* HR Document Canvas Styles */
.hr-doc-wrapper {
    color: #1e293b;
    font-family: var(--font-sans);
    line-height: 1.75;
    position: relative;
    padding: 6px 2px;
}

.hr-letterhead-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 2.5px solid #0f172a;
    padding-bottom: 14px;
    margin-bottom: 20px;
    gap: 16px;
}

.hr-letterhead-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hr-letterhead-logo img {
    height: 52px;
    max-height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.hr-company-title {
    font-size: 1.22rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hr-company-sub {
    font-size: 0.73rem;
    color: #1e3a8a;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hr-letterhead-contact {
    text-align: right;
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.5;
    max-width: 58%;
}

.hr-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}

.hr-meta-ref strong {
    color: #0f172a;
    font-family: var(--font-mono);
}

.hr-doc-title-box {
    text-align: center;
    margin: 20px 0 24px 0;
}

.hr-doc-title {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 24px;
    border-bottom: 2.5px solid #1e3a8a;
    position: relative;
}

.hr-doc-salutation {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.hr-doc-body {
    font-size: 0.88rem;
    color: #334155;
    text-align: justify;
    margin-bottom: 28px;
}

.hr-doc-body p {
    margin-bottom: 16px;
    line-height: 1.85;
}

.hr-highlight {
    font-weight: 800;
    color: #0f172a;
}

/* Salary Payslip Table */
.hr-salary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.82rem;
}

.hr-salary-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 8px 12px;
    text-align: left;
    font-weight: 800;
    font-size: 0.8rem;
}

.hr-salary-table td {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.hr-salary-table tr:nth-child(even) {
    background: #f8fafc;
}

.hr-salary-total-row td {
    font-weight: 900;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.86rem;
}

/* Signatory & Official Seal Box */
.hr-signatory-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 36px;
    padding-top: 15px;
}

.hr-stamp-seal {
    width: 90px;
    height: 90px;
    border: 2px dashed #1e3a8a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e3a8a;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 6px;
    background: rgba(30, 58, 138, 0.04);
    box-shadow: inset 0 0 12px rgba(30, 58, 138, 0.08);
}

.hr-stamp-seal i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.hr-sign-block {
    text-align: right;
}

.hr-sign-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}

.hr-sign-company {
    font-size: 0.78rem;
    color: #334155;
    font-weight: 700;
    margin-top: 2px;
}

.hr-sign-line {
    width: 170px;
    height: 1.5px;
    background: #0f172a;
    margin: 45px 0 6px auto;
}

.hr-footer-strip {
    margin-top: 36px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: #64748b;
}

/* ================================================================
   PRINT STYLESHEET: CLEAN HIGH-FASHION EXECUTIVE A4 PAPER
   ================================================================ */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
    }

    body::before {
        display: none !important;
    }

    .app-header, 
    .editor-pane, 
    .preview-toolbar,
    .modal-backdrop,
    button, 
    .header-actions,
    .mobile-tab-bar,
    .mobile-bottom-dock {
        display: none !important;
    }

    .app-container {
        display: block !important;
        min-height: auto !important;
    }

    .preview-pane {
        background: transparent !important;
        background-image: none !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    .a4-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        border-radius: 0 !important;
    }

    /* Print Hologram Badge in High Contrast */
    .hologram-badge {
        border: 2px solid #1e3a8a !important;
        background: #f8fafc !important;
        color: #1e3a8a !important;
        box-shadow: none !important;
    }

    .hologram-badge i {
        color: #1e3a8a !important;
    }

    @page {
        size: A4;
        margin: 10mm;
    }
}
