.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; }
.dash-card { background: linear-gradient(145deg, rgba(30, 41, 59, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 32px; padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.gt-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.gt-value { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; word-break: break-word; }
.line-items { background: rgba(0,0,0,0.3); border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,0.05); }
.item-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-glass); font-size: 1rem; flex-wrap: nowrap; gap: 12px; align-items: center; }
.item-row span:first-child { flex: 1 1 auto; word-break: break-word; }
.item-row span:last-child { flex: 0 0 auto; white-space: nowrap; font-weight: 600; }
.no-border-bottom { border-bottom: none; }
.module-container { display: none; background: linear-gradient(145deg, rgba(30, 41, 59, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; margin-bottom: 25px; animation: fadeIn 0.4s ease; box-shadow: 0 15px 35px rgba(0,0,0,0.4); width: 100%; box-sizing: border-box; }
.module-container.active { display: block; }
.module-header { font-size: 1.15rem; font-weight: 700; color: #38bdf8; padding: 20px 25px; border-bottom: 1px solid var(--border-glass); background: rgba(0,0,0,0.1); border-radius: 24px 24px 0 0; }
.module-content { padding: 25px; width: 100%; box-sizing: border-box; }
.calc-row { background: rgba(255,255,255,0.02); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 15px; width: 100%; box-sizing: border-box; }
.clean-row { background: transparent; border: none; padding: 0; box-shadow: none; }
.chart-container { position: relative; width: 100%; height: 40vh; max-height: 300px; margin-top: 20px; }
.chart-h-300 { height: 40vh; max-height: 300px; }
.chart-container-donut { position: relative; width: 100%; height: 40vh; max-height: 250px; display: flex; align-items: center; justify-content: center; }
.expense-category { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; margin-bottom: 15px; overflow: hidden; }
.category-header { padding: 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); transition: 0.3s; }
.category-header:hover { background: rgba(255,255,255,0.05); }
.category-total { color: #38bdf8; font-weight: 800; font-size: 1.1rem; }
.category-body { padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.1); }
.budget-display { font-size: 3.5rem; font-weight: 800; margin-bottom: 5px; letter-spacing: -2px; text-align: center; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.geo-arbitrage-box { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding: 10px 0 0 0; }
.market-rate-banner { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 16px; padding: 15px; margin-bottom: 15px; display: flex; flex-direction: column; gap: 5px; }
.mr-title { font-size: 0.8rem; font-weight: 700; color: #60a5fa; text-transform: uppercase; letter-spacing: 1px; }
.mr-data { display: flex; align-items: baseline; gap: 10px; font-size: 2rem; font-weight: 800; color: #f8fafc; }
.upload-dropzone { border: 2px dashed var(--border-glass); border-radius: 16px; padding: 40px 20px; text-align: center; background: rgba(0,0,0,0.1); transition: 0.3s; }
.upload-dropzone:hover { border-color: var(--border-highlight); background: rgba(56, 189, 248, 0.05); }
.historical-ledger { display: flex; flex-direction: column; gap: 10px; }
.historical-ledger::-webkit-scrollbar { width: 6px; }
.historical-ledger::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.bg-dark { background: rgba(0,0,0,0.2); }
.active-pane { display: block !important; }
.hidden-pane { display: none !important; }
.category-select { border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); color: #f8fafc; transition: 0.2s; }
.category-select:focus { border-color: #38bdf8; outline: none; }
.delete-tx-btn { background: transparent; border: none; color: #fb7185; cursor: pointer; padding: 4px; border-radius: 4px; opacity: 0; transition: opacity 0.2s; min-height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center; }
.item-row:hover .delete-tx-btn { opacity: 1; }
.delete-tx-btn:hover { background: rgba(251, 113, 133, 0.1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } .gt-value { font-size: 2rem; } .budget-display { font-size: 2.2rem !important; } .dash-card { padding: 20px; border-radius: 24px; } .module-header { padding: 15px 20px; } .module-content { padding: 20px; } .item-row { flex-wrap: nowrap; font-size: 0.95rem; } .item-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .calc-row { padding: 15px; } .market-rate-banner { margin-top: 15px; } .outputs-col { margin-top: 20px; } .layout-grid { grid-template-columns: 1fr; gap: 20px; } .delete-tx-btn { opacity: 1; } }
.budget-cat-row { margin-bottom: 18px; }
.budget-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.budget-cat-name { font-weight: 600; font-size: 0.95rem; }
.budget-cat-amounts { display: flex; align-items: center; gap: 4px; font-size: 0.9rem; }
.budget-cat-actual { font-weight: 700; }
.budget-cat-sep { color: var(--text-muted); }
.budget-bar-track { width: 100%; height: 8px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.budget-bar-fill { height: 100%; border-radius: 10px; transition: width 0.4s ease; }
.budget-cat-footer { display: flex; justify-content: space-between; margin-top: 4px; }
@media (max-width: 600px) { .budget-cat-header { flex-direction: column; align-items: flex-start; } }
#trendsCategoryFilter { display: flex; flex-wrap: wrap; gap: 8px; }
#chartContainerTrends canvas, #chartContainerCompare canvas { width: 100% !important; }
.mtd-panel { border-radius: 16px; }
@media (max-width: 768px) { .mtd-panel > div:first-child { flex-direction: column; } .mtd-panel > div:first-child > div:nth-child(2) { justify-content: space-between; } }
.upload-step { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.upload-step.step-done { color: #34d399; }
.upload-step.step-active { color: #38bdf8; }
.upload-step.step-error { color: #fb7185; }
.step-icon { font-size: 0.9rem; width: 20px; text-align: center; }
.tx-tags-row { min-height: 24px; }
.tag-chip { display: inline-flex; align-items: center; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); color: #38bdf8; border-radius: 12px; padding: 2px 8px; font-size: 0.72rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; user-select: none; min-height: 32px; }
.tag-chip:hover { background: rgba(56, 189, 248, 0.25); border-color: #38bdf8; }
.tag-inline-input:focus { border-color: #38bdf8; }