:root { --primary: #2c3e50; --bg-body: #ecf0f1; --border-color: #bdc3c7; }
        body { background-color: var(--bg-body); font-family: 'Roboto', sans-serif; color: #2c3e50; font-size: 0.9rem; }
        .sidebar { width: 250px; height: 100vh; position: fixed; background: #2c3e50; color: white; top: 0; left: 0; z-index: 1000; border-right: 1px solid #1a252f; transition: 0.3s; }
        .sidebar-header { padding: 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); background: #1a252f; }
        .nav-link { color: #bdc3c7; padding: 0.8rem 1rem; border-left: 4px solid transparent; border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 500; cursor: pointer; display: flex; align-items: center; }
        .nav-link:hover { background: #34495e; color: white; }
        .nav-link.active { background: #34495e; color: white; border-left-color: #3498db; }
        .nav-label { font-size: 0.7rem; text-transform: uppercase; color: #7f8c8d; padding: 1rem 1rem 0.5rem; font-weight: bold; letter-spacing: 1px; }
        .main-content { margin-left: 250px; padding: 20px; transition: 0.3s; padding-bottom: 80px; } /* padding-bottom for mobile nav */
        .card-accounting { background: white; border: 1px solid #bdc3c7; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; }
        .card-header-acc { background: #f8f9fa; padding: 12px 20px; border-bottom: 1px solid #bdc3c7; font-weight: 700; color: #2c3e50; display: flex; align-items: center; justify-content: space-between; }
        .card-body-acc { padding: 20px; }
        .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 4px; }
        .table-acc thead th { background: #f1f2f6; border-bottom: 2px solid #bdc3c7; color: #2c3e50; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; vertical-align: middle; white-space: nowrap; }
        .table-acc tbody td { vertical-align: middle; border-bottom: 1px solid #dee2e6; padding: 10px 12px; white-space: nowrap; }
        .form-control, .form-select { border-radius: 2px; border: 1px solid #ced4da; padding: 6px 12px; font-size: 0.9rem; }
        .form-control:focus { border-color: #3498db; box-shadow: none; outline: 2px solid rgba(52, 152, 219, 0.2); }
        .btn-acc { border-radius: 2px; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; text-transform: uppercase; letter-spacing: 0.5px; }
        .btn-primary-acc { background: #2980b9; border: 1px solid #2980b9; color: white; }
        .btn-dark-acc { background: #34495e; color: white; border: none; }
        
        /* LOGIN & LOADER */
        #loader-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(255,255,255,0.95); z-index:9999; display:flex; justify-content:center; align-items:center; flex-direction:column; transition: 0.5s; }
        .spinner-border { width: 3rem; height: 3rem; color: var(--primary); }
        #auth-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #2c3e50; z-index: 9000; display: flex; align-items: center; justify-content: center; }
        .login-box { background: white; padding: 40px; border-radius: 8px; width: 380px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
        .login-error-msg { display: none; color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; padding: 10px; margin-bottom: 15px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; }
        
        .summary-box { padding: 15px; border-radius: 4px; color: white; position: relative; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .bg-gradient-primary { background: linear-gradient(45deg, #2980b9, #2c3e50); }
        .bg-gradient-success { background: linear-gradient(45deg, #27ae60, #16a085); }
        .bg-gradient-warning { background: linear-gradient(45deg, #f39c12, #d35400); }
        .sum-val { font-size: 1.5rem; font-weight: 900; margin-top: 5px; }

        @media print { body * { visibility: hidden; } #modalSlip, #modalSlip * { visibility: visible; } #modalSlip { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; background: #fff; } .modal-footer, .btn-close { display: none !important; } #areaSlip { border: none !important; padding: 20px !important; } }
        
        /* Mobile Specific Overrides */
        @media(max-width: 768px) { 
            .sidebar { display: none !important; } /* Hide sidebar completely on mobile */
            .main-content { margin-left: 0; padding: 15px; padding-bottom: 90px; }
            .mobile-top-bar { display: flex; background: white; color: #2c3e50; padding: 15px; justify-content: space-between; align-items: center; margin: -15px -15px 20px -15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 10; font-weight: 900; letter-spacing: 0.5px; }
            .mobile-top-bar img { width: 24px; margin-right: 10px; }
            
            /* Bottom Navigation Bar */
            .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; border-top: 1px solid #f1f2f6; }
            .bottom-nav-item { flex: 1; text-align: center; padding: 12px 5px; color: #7f8c8d; text-decoration: none; font-size: 0.7rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; }
            .bottom-nav-item i { font-size: 1.4rem; margin-bottom: 3px; }
            .bottom-nav-item.active { color: #2980b9; }
            .bottom-nav-item:hover { color: #34495e; }
        }
        @media(min-width: 769px) {
            .mobile-top-bar, .bottom-nav { display: none !important; }
        }
        
        .page-section { display: none; } .active-section { display: block; }
        
        #areaSlip { font-family: 'Roboto', sans-serif; color: #000; background: #fff; }
        .slip-header { border-bottom: 3px solid #2c3e50; padding-bottom: 15px; margin-bottom: 20px; }
        .company-name { font-size: 1.8rem; font-weight: 900; color: #2c3e50; text-transform: uppercase; letter-spacing: 1px; }
        .employee-info-box { background: #f8f9fa; padding: 15px; border-radius: 4px; border: 1px solid #dee2e6; margin-bottom: 20px; }
        .slip-section-title { font-size: 1rem; font-weight: 700; border-bottom: 2px solid #bdc3c7; padding-bottom: 5px; margin-bottom: 10px; color: #2c3e50; text-transform: uppercase; }
        .slip-table-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted #dee2e6; }
        .total-box { background: #2c3e50; color: white; padding: 15px; border-radius: 4px; margin-top: 20px; }
        .signature-section { margin-top: 40px; display: flex; justify-content: space-between; text-align: center; }
        .sig-line { border-top: 1px solid #000; margin-top: 40px; font-weight: 700; padding-top: 5px; width: 150px; }