:root{font-family:Inter,Arial,sans-serif;color:#1f2937;background:#f8fafc}*{box-sizing:border-box}body{margin:0;background:#f8fafc;color:#1f2937}a{color:inherit;text-decoration:none}.layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e5e7eb;padding:24px;display:flex;flex-direction:column;gap:20px}.sidebar nav{display:grid;gap:10px}.sidebar nav a{padding:12px 14px;border-radius:12px;background:#f3f4f6}.content{padding:32px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px;box-shadow:0 6px 18px #0f172a0f;margin-bottom:20px;position:relative;transition:transform .15s ease,box-shadow .15s ease}.card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #0f172a1a}.card h3{font-size:14px;color:#6b7280;margin:0 0 8px}.card strong{font-size:28px;font-weight:700;color:#111827}.stat-card{min-height:118px;display:flex;flex-direction:column;justify-content:center}.card-blue{border-top:4px solid #2563eb}.card-green{border-top:4px solid #10b981}.card-orange{border-top:4px solid #f59e0b}.card-purple{border-top:4px solid #8b5cf6}.card-gray{border-top:4px solid #6b7280}.soft-card{background:#f9fafb}button,input,select{border-radius:12px;border:1px solid #d1d5db;padding:12px 14px;background:#fff;color:#111827}button{cursor:pointer;background:#2563eb;border:none;color:#fff;font-weight:700}button.secondary{background:#6b7280}.success-btn{background:#059669}.link-btn{display:inline-block;padding:8px 12px;border-radius:10px;background:#2563eb;color:#fff}.grid{display:grid;gap:12px}.form-inline{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px;border-bottom:1px solid #e5e7eb;vertical-align:middle}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f8fafc}.auth-card{width:min(580px,100%)}.toggle{display:flex;gap:8px;margin:18px 0}.toggle button{flex:1;background:#e5e7eb;color:#111827}.toggle .active{background:#2563eb;color:#fff}.muted{color:#6b7280}.error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;padding:12px;border-radius:12px}.tip{margin-top:16px;padding:14px;border-radius:12px;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.search-results{display:grid;gap:10px;margin-top:12px}.search-item{text-align:left;display:grid;gap:4px;background:#fff;color:#111827;border:1px solid #dbeafe}.search-item span{font-size:12px;color:#6b7280}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}.badge.orange{background:#fff7ed;color:#c2410c}.badge.blue{background:#eff6ff;color:#1d4ed8}.badge.green{background:#ecfdf5;color:#047857}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media (max-width: 980px){.layout{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}}@media (max-width: 640px){.cards{grid-template-columns:1fr}.content{padding:16px}}.textarea{width:100%;min-height:140px;border-radius:12px;border:1px solid #d1d5db;padding:12px 14px;background:#fff;color:#111827;resize:vertical;font-family:inherit}.user-panel{margin-top:12px;padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #e5e7eb}.user-name{font-size:14px;font-weight:700;color:#111827}.user-meta{font-size:12px;color:#6b7280;margin-top:4px;word-break:break-word}.user-badge{margin-top:8px;display:inline-block;font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8}.badge.red{background:#fef2f2;color:#b91c1c}.badge.gray{background:#f3f4f6;color:#4b5563}.danger-btn{background:#dc2626}.form-subtitle{margin-top:-8px;margin-bottom:16px}.budget-form-card{border-top:4px solid #2563eb}.field-with-help{display:flex;flex-direction:column;gap:6px}.field-with-help small{font-size:12px;color:#6b7280;padding-left:2px;line-height:1.3}.budget-live-summary{border-top:4px solid #10b981;background:#fcfffd}.budget-live-header h3{margin:0 0 4px}.budget-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:12px}.budget-summary-item{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 12px #0f172a0a}.budget-summary-item span{font-size:12px;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.budget-summary-item strong{font-size:20px;color:#111827}.budget-summary-item.total{background:#eff6ff;border-color:#bfdbfe}@media (max-width: 1100px){.budget-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 640px){.budget-summary-grid{grid-template-columns:1fr}}.card-red{background:linear-gradient(135deg,#7f1d1d,#991b1b);color:#fff}.badge{display:inline-flex;align-items:center;padding:.35rem .7rem;border-radius:999px;font-size:.75rem;font-weight:700}.badge-success{background:#dcfce7;color:#166534}.badge-warning{background:#ffedd5;color:#9a3412}.badge-danger{background:#fee2e2;color:#991b1b}.badge-neutral{background:#e5e7eb;color:#374151}.stat-card-clickable{width:100%;text-align:left;align-items:flex-start}.stat-card-clickable h3,.stat-card-clickable strong{width:100%}.stat-card-clickable:hover{transform:translateY(-3px)}.stat-card-link{margin-top:10px;font-size:12px;color:#2563eb;font-weight:600}.budget-summary-list{display:flex;flex-direction:column;width:100%;gap:10px;padding:4px 0}.budget-summary-row{display:flex;align-items:baseline;width:100%;gap:12px;color:#475569;font-size:15px}.budget-summary-row:after{content:"";order:2;flex:1;min-width:20px;border-bottom:1px dotted #cbd5e1;transform:translateY(-4px)}.budget-summary-row span{order:1;white-space:nowrap;font-weight:500}.budget-summary-row strong{order:3;min-width:170px;text-align:right;color:#0f172a;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.budget-summary-divider{width:100%;margin:8px 0 4px;border-top:1px solid #cbd5e1}.budget-summary-row.total{margin-top:2px;padding-top:2px}.budget-summary-row.total span{color:#0f172a;font-size:18px;font-weight:700;text-transform:uppercase}.budget-summary-row.total strong{color:#0f172a;font-size:20px;font-weight:700}.budget-summary-row.total:after{border-bottom-style:solid;border-bottom-color:#94a3b8}@media (max-width: 640px){.budget-summary-row{flex-wrap:wrap;gap:4px 8px}.budget-summary-row:after{display:none}.budget-summary-row span{width:100%}.budget-summary-row strong{min-width:0;width:100%;text-align:left}}
