/* Shared styles for the dental accountant report pages (dashboard + statements).
   Sits on top of accounting-shell.css (which provides .app/.sidebar/.main/.topbar
   /.content/.page-header). Purple dental accent (#a855f7). */

.filter-bar {
    background: #fff; border-radius: 12px; padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 22px;
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filter-bar .grow { flex: 1; }
.date-btn {
    padding: 8px 15px; border: none; border-radius: 7px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; background: #eef2f7; color: #475569;
    transition: all .15s;
}
.date-btn:hover { background: #e2e8f0; }
.date-btn.active { background: #a855f7; color: #fff; }
.acct-input {
    padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; background: #fff; color: #0f172a; min-width: 180px;
}
.acct-input:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.15); }

.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.stat-card {
    background: #fff; padding: 18px 20px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid #f1f5f9;
}
.stat-label {
    font-size: 11px; color: #64748b; margin-bottom: 7px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px;
}
.stat-value { font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.stat-value.pos { color: #10b981; }
.stat-value.neg { color: #ef4444; }
.stat-value.warn { color: #b45309; }
.stat-sub { font-size: 12.5px; color: #94a3b8; margin-top: 4px; }

.section-card {
    background: #fff; padding: 22px 24px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 22px; border: 1px solid #f1f5f9;
}
.section-title {
    font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: space-between;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #eef2f7; }
.data-table th {
    background: #f8fafc; font-weight: 700; color: #475569; font-size: 11px;
    text-transform: uppercase; letter-spacing: .5px;
}
.data-table tbody tr:hover { background: #faf5ff; }
.data-table td.r, .data-table th.r { text-align: right; }
.data-table .mono { font-family: 'Consolas','Courier New',monospace; font-weight: 700; color: #a855f7; }
.pos-amt { color: #10b981; font-weight: 700; }
.neg-amt { color: #b45309; font-weight: 700; }

.badge {
    display: inline-block; padding: 3px 11px; border-radius: 11px; font-size: 12px; font-weight: 600;
}
.badge.on { background: #f1f5f9; color: #334155; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.amber { background: #fef3c7; color: #92400e; }
.badge.blue { background: #e0f2fe; color: #0369a1; }
.badge.grey { background: #f1f5f9; color: #64748b; }

.no-data { text-align: center; color: #94a3b8; padding: 40px; font-size: 15px; }
.btn-export {
    padding: 9px 16px; background: linear-gradient(135deg,#a855f7,#7e22ce); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600;
}
.btn-export:hover { filter: brightness(1.05); }

/* simple horizontal bar list (revenue by month / method) */
.barlist { display: flex; flex-direction: column; gap: 9px; }
.barlist .row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; font-size: 13px; }
.barlist .track { background: #f1f5f9; border-radius: 6px; height: 11px; overflow: hidden; }
.barlist .fill { height: 100%; background: linear-gradient(90deg,#a855f7,#c084fc); border-radius: 6px; }
.barlist .amt { text-align: right; font-weight: 700; color: #0f172a; }