.profit-report-page *{box-sizing:border-box}.profit-report-page{font-family:Inter,sans-serif;color:#1e293b;font-size:13px;line-height:1.5}.report-controls{display:flex;gap:16px;align-items:flex-end;margin-bottom:20px;flex-wrap:wrap}.report-controls label{display:flex;flex-direction:column;font-size:12px;color:#475569;gap:4px}.report-controls input{padding:6px 10px;border:1px solid #cbd5e1;border-radius:6px}.report-controls button{background:#1e40af;color:#fff;border:none;padding:10px 18px;border-radius:8px;font-weight:600;cursor:pointer}.report-controls button.secondary{background:#334155}.report-controls button:disabled{opacity:.6;cursor:not-allowed}.page{width:210mm;min-height:297mm;background:#fff;padding:14mm;margin:0 auto;box-shadow:0 0 12px #00000014}.header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:16px;border-bottom:3px solid #1e40af;margin-bottom:22px}.header-left .company{font-size:20px;font-weight:800;color:#1e40af}.header-left .subtitle{font-size:11px;color:#64748b;margin-top:3px}.header-right{text-align:right}.header-right .report-title{font-size:14px;font-weight:700;color:#1e293b;background:#eff6ff;padding:6px 14px;border-radius:6px;border:1px solid #bfdbfe}.header-right .date-range{font-size:10px;color:#64748b;margin-top:6px}.header-right .generated{font-size:10px;color:#94a3b8;margin-top:2px}.section-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:#64748b;margin-bottom:10px;padding-left:4px;border-left:3px solid #1e40af}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px 12px;position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px}.stat-card.green:before{background:linear-gradient(90deg,#16a34a,#4ade80)}.stat-card.red:before{background:linear-gradient(90deg,#dc2626,#f87171)}.stat-card.yellow:before{background:linear-gradient(90deg,#d97706,#fbbf24)}.stat-card.blue:before{background:linear-gradient(90deg,#1d4ed8,#60a5fa)}.stat-icon{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px;margin-bottom:10px}.stat-card.green .stat-icon{background:#dcfce7}.stat-card.red .stat-icon{background:#fee2e2}.stat-card.yellow .stat-icon{background:#fef3c7}.stat-card.blue .stat-icon{background:#dbeafe}.stat-label{font-size:10.5px;color:#64748b;font-weight:500;margin-bottom:4px}.stat-value{font-size:17px;font-weight:800;letter-spacing:-.5px;line-height:1}.stat-card.green .stat-value{color:#16a34a}.stat-card.red .stat-value{color:#dc2626}.stat-card.yellow .stat-value{color:#d97706}.stat-card.blue .stat-value{color:#1d4ed8}.stat-sub{font-size:10px;color:#94a3b8;margin-top:5px}.two-col{display:grid;grid-template-columns:1fr 280px;gap:14px;margin-bottom:22px}.breakdown-card,.formula-card,.return-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px}.return-card{margin-bottom:22px}.card-title{font-size:12px;font-weight:700;color:#1e293b;margin-bottom:12px;display:flex;align-items:center;gap:6px}.card-title-icon{width:22px;height:22px;background:#eff6ff;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:12px}.breakdown-row{display:flex;align-items:flex-start;padding:10px 0;border-bottom:1px dashed #e2e8f0;gap:10px}.breakdown-row:last-child{border-bottom:none}.br-sign{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;flex-shrink:0;margin-top:1px}.br-sign.plus{background:#dcfce7;color:#16a34a}.br-sign.minus{background:#fee2e2;color:#dc2626}.br-sign.warn{background:#fef3c7;color:#d97706}.br-content{flex:1}.br-label{font-size:12px;font-weight:600;color:#1e293b}.br-detail{font-size:10px;color:#94a3b8;margin-top:2px}.br-value{font-size:13px;font-weight:700;white-space:nowrap}.br-value.positive{color:#16a34a}.br-value.negative{color:#dc2626}.br-value.warning{color:#d97706}.net-profit-row{margin-top:12px;padding:12px 14px;border-radius:8px;display:flex;align-items:center;justify-content:space-between}.net-profit-row.positive{background:#eff6ff;border:1.5px solid #bfdbfe}.net-profit-row.negative{background:#fff1f2;border:1.5px solid #fecdd3}.net-label{font-size:13px;font-weight:700;color:#1e293b}.net-value{font-size:20px;font-weight:800}.net-profit-row.positive .net-value{color:#1d4ed8}.net-profit-row.negative .net-value{color:#dc2626}.formula-line{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #f1f5f9}.formula-line:last-child{border-bottom:none}.f-sign{font-size:16px;font-weight:800;width:20px;text-align:center}.f-label{flex:1;font-size:11.5px;color:#475569}.f-value{font-size:11.5px;font-weight:600}.f-positive{color:#16a34a}.f-negative{color:#dc2626}.f-warning{color:#d97706}.formula-divider{border:none;border-top:2px solid #e2e8f0;margin:8px 0}.formula-result{display:flex;align-items:center;justify-content:space-between;padding-top:8px}.formula-result-label{font-size:12px;font-weight:700;color:#1e293b}.formula-result-value{font-size:16px;font-weight:800}table.detail-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:12px}table.detail-table thead tr{background:linear-gradient(135deg,#1e40af,#2563eb);color:#fff}table.detail-table th{padding:9px 12px;text-align:left;font-weight:600;font-size:11px}table.detail-table th:last-child{text-align:right}table.detail-table td{padding:9px 12px;border-bottom:1px solid #f1f5f9}table.detail-table td:last-child{text-align:right;font-weight:600}table.detail-table tr.even{background:#f8fafc}table.detail-table tr.highlight{background:#fff1f2}table.detail-table tr.highlight td{color:#dc2626;font-weight:700}.info-note{background:#f0f9ff;border:1px solid #bae6fd;border-radius:7px;padding:10px 12px;font-size:11px;color:#0369a1;margin-top:10px;line-height:1.6}.footer{margin-top:28px;padding-top:14px;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}.footer-left,.footer-right{font-size:10px;color:#94a3b8}.footer-right{text-align:right}.footer-brand{font-weight:700;color:#1e40af;font-size:11px}@media print{.no-print{display:none!important}.page{box-shadow:none!important}}*{box-sizing:border-box}body{margin:0;background:#f1f5f9;font-family:Inter,system-ui,sans-serif}.app{max-width:1100px;margin:0 auto;padding:24px}.app-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.app-header h1{font-size:20px;color:#1e293b;margin:0}.app-header nav{display:flex;gap:8px}.app-header nav button{padding:8px 16px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:pointer;font-weight:500;color:#475569}.app-header nav button.active{background:#1e40af;color:#fff;border-color:#1e40af}.orders-toolbar{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}.orders-toolbar input{padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;min-width:260px}.orders-toolbar button{padding:8px 16px;border:none;background:#1e40af;color:#fff;border-radius:6px;cursor:pointer;font-weight:500}.orders-toolbar button:disabled{opacity:.6;cursor:not-allowed}.orders-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #00000014}.orders-table th,.orders-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #eef2f6;font-size:13px}.orders-table th{background:#1e40af;color:#fff;font-weight:600}.orders-table td.actions{display:flex;gap:6px}.orders-table td.actions button{padding:5px 10px;font-size:12px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:5px;cursor:pointer}.orders-table td.actions button:hover{background:#e2e8f0}
