:root {
    --bg-primary: #f8f9fa;
    --panel-side: #1e293b;
    --accent: #2563eb;
    --success: #16a34a;
    --border: #e2e8f0;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-primary); margin:0; display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--panel-side); color: #fff; padding: 20px; box-sizing: border-box; }
.sidebar .logo { font-size: 22px; font-weight: bold; margin-bottom: 30px; color: #60a5fa; }
.sidebar ul { list-style: none; padding:0; margin:0; }
.sidebar ul li a { color: #cbd5e1; text-decoration: none; display: block; padding: 12px; border-radius: 6px; margin-bottom: 5px; }
.sidebar ul li a:hover { background: #334155; color: #fff; }
.content-area { flex-grow: 1; padding: 40px; box-sizing: border-box; width: calc(100% - 240px); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.row { display: flex; }
.header-row { justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.card { background: #fff; border-radius: 8px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.data-table, .minimal-table { width: 100%; border-collapse: collapse; background: #fff; margin-top: 15px; }
.data-table th, .data-table td, .minimal-table th, .minimal-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table th, .minimal-table th { background: #f1f5f9; font-weight: 600; color: #475569; }
.btn { border: none; padding: 10px 18px; border-radius: 6px; cursor: pointer; font-weight: 500; text-decoration: none; display: inline-block; font-size: 14px; }
.btn-primary { background: var(--accent); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-secondary { background: #64748b; color: white; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.badge { padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: bold; display: inline-block; }
.status-start { background: #eff6ff; color: #1d4ed8; }
.status-followup { background: #fef3c7; color: #b45309; }
.status-proposal-sent { background: #faf5ff; color: #6b21a8; }
.status-deal-done { background: #dcfce7; color: #15803d; }
.text-muted { color: #64748b; }
.text-accent { color: var(--accent); }
.text-right { text-align: right; }
.domain-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.domain-link:hover { text-decoration: underline; }
.hosting-snippet { font-family: monospace; font-size: 12px; color: #475569; background: #f8f9fa; padding: 8px; border-radius: 4px; line-height: 1.4; }
.stack-form label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.stack-form input, .stack-form select, .stack-form textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 15px; box-sizing: border-box; font-family: inherit; font-size: 14px; }
.alert-banner { padding: 15px; border-radius: 6px; margin-bottom: 25px; border-left: 4px solid; }
.alert-banner.warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.alert-banner.warning ul { margin: 10px 0 0 0; padding-left: 20px; }
.status-select { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); font-size: 13px; }

/* --- Report & Print Architecture --- */
.report-filter-form { margin: 15px 0 0 0; }
.form-group-row { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.input-wrap { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.print-document-body { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-top: 30px; width: 100%; box-sizing: border-box; }
.report-header-sheet { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.meta-brand-block h1 { margin:0; font-size: 26px; color: #0f172a; letter-spacing: -0.5px; }
.meta-brand-block .subtitle { margin: 4px 0 0 0; color: #64748b; font-size: 14px; }
.meta-client-block h2 { margin:0; font-size: 18px; color: #1e293b; }
.meta-client-block p { margin: 4px 0 0 0; font-size: 13px; color: #475569; }
.separator-bar { border: 0; height: 2px; background: #e2e8f0; margin: 25px 0; }
.section-title { font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; color: #334155; margin-bottom: 15px; }
.report-display-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.report-display-table th { background: #f8fafc; border-bottom: 2px solid #cbd5e1; padding: 12px; text-align: left; font-size: 12px; text-transform: uppercase; color: #64748b; font-weight: 700; }
.report-display-table td { padding: 14px 12px; border-bottom: 1px solid #e2e8f0; font-size: 14px; vertical-align: top; }
.custom-item-tag { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #475569; font-weight: bold; border: 1px solid #cbd5e1; }
.desc-text { color: #64748b; line-height: 1.4; display: inline-block; margin-top: 4px; }
.report-footer-sheet { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #e2e8f0; padding-top: 20px; font-size: 12px; color: #94a3b8; }

/* Modal Architecture */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; padding: 35px; border-radius: 12px; width: 100%; max-width: 500px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.modal-content h3 { margin-top: 0; margin-bottom: 20px; color: #0f172a; }

@media print {
    .no-print, .sidebar, .modal, form.no-print, button.no-print, a.no-print { display: none !important; }
    body { background: #fff; color: #000; padding: 0; margin: 0; display: block; }
    .content-area { padding: 0; width: 100%; margin: 0; }
    .print-document-body { box-shadow: none; padding: 0; margin: 0; border: none; width: 100%; }
    .report-display-table th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}