/* Estilos compartidos por las páginas de Reportes (Ventas.razor, Clientes.razor).
   Overrides específicos de cada página van en su propio <style> local. */

.rpt-wrap { padding: 24px 32px; background: #f6f8f9; min-height: 100%; }
.rpt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rpt-title { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0; }
.rpt-subtitle { font-size: 13px; color: #8a94a6; margin: 2px 0 0; }

.rpt-filterbar { background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(16,24,40,0.06); margin-bottom: 18px; }
.rpt-filterrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.rpt-filterform { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; flex: 1; min-width: 0; }
.rpt-field { display: flex; flex-direction: column; min-width: 150px; }
.rpt-field-grow { flex: 1; min-width: 220px; }
.rpt-field-btn { min-width: unset; }
.rpt-btn-export { flex-shrink: 0; }
.rpt-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #8a94a6; margin-bottom: 6px; }

.rpt-select, .rpt-input {
    border: 1px solid #e5e9ee; border-radius: 10px; padding: 9px 12px; font-size: 14px;
    background: #f9fafb; color: #1f2937; transition: border-color .15s, box-shadow .15s;
}
.rpt-select:focus, .rpt-input:focus {
    outline: none; border-color: #27BDA6; box-shadow: 0 0 0 3px rgba(39,189,166,0.15); background: #fff;
}

.rpt-btn { border: none; border-radius: 10px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .1s, background .15s, opacity .15s; white-space: nowrap; }
.rpt-btn:disabled { opacity: .5; cursor: not-allowed; }
.rpt-btn:not(:disabled):active { transform: scale(0.97); }
.rpt-btn-primary { background: #27BDA6; color: #fff; min-width: 96px; justify-content: center; }
.rpt-btn-primary:not(:disabled):hover { background: #219f8b; }
.rpt-btn-outline { background: #fff; color: #27BDA6; border: 1px solid #27BDA6; }
.rpt-btn-outline:not(:disabled):hover { background: #eafaf7; }
.rpt-btn-ghost { background: transparent; color: #5b6472; border: 1px solid #e5e9ee; }
.rpt-btn-ghost:hover { background: #f2f4f6; }
.rpt-btn-icon { width: 14px; height: 14px; }

.rpt-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: rpt-spin .7s linear infinite; }
@keyframes rpt-spin { to { transform: rotate(360deg); } }

.rpt-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.rpt-card { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(16,24,40,0.06); display: flex; flex-direction: column; gap: 4px; }
.rpt-card-label { font-size: 12px; color: #8a94a6; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.rpt-card-value { font-size: 22px; font-weight: 700; color: #1f2937; }
.rpt-card-highlight { background: linear-gradient(135deg, #27BDA6, #1f9f8a); }
.rpt-card-highlight .rpt-card-label, .rpt-card-highlight .rpt-card-value { color: #fff; }

.rpt-gridcard { background: #fff; border-radius: 14px; padding: 16px 18px 8px; box-shadow: 0 1px 3px rgba(16,24,40,0.06); }
.rpt-gridtoolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.rpt-searchbox { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.rpt-searchbox-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; opacity: .5; }
.rpt-searchbox-input { width: 100%; border: 1px solid #e5e9ee; border-radius: 10px; padding: 8px 12px 8px 34px; font-size: 13px; background: #f9fafb; }
.rpt-searchbox-input:focus { outline: none; border-color: #27BDA6; background: #fff; }

.rpt-count { font-size: 12px; color: #8a94a6; font-weight: 600; white-space: nowrap; }

.rpt-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; cursor: pointer; padding: 9px 4px; white-space: nowrap; }
.rpt-checkbox input { width: 15px; height: 15px; accent-color: #27BDA6; cursor: pointer; }

.rpt-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.rpt-badge-active { background: #e3f9f3; color: #1a9c7f; }
.rpt-badge-inactive { background: #fdeceb; color: #d4443a; }

.rpt-empty { text-align: center; padding: 36px 16px; color: #9aa3b1; }
.rpt-empty-icon { width: 28px; height: 28px; opacity: .3; margin-bottom: 8px; }

.rpt-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.rpt-table thead th {
    background-color: #f6f8f9 !important; color: #6b7280; font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px !important;
    border-bottom: 1px solid #e5e9ee !important; border-top: none !important; white-space: nowrap;
}
.rpt-table tbody td {
    padding: 12px 14px !important; font-size: 13.5px; color: #333d4b;
    border-top: none !important; border-bottom: 1px solid #f0f2f5 !important; vertical-align: middle;
}
.rpt-table tbody tr:last-child td { border-bottom: none !important; }
.rpt-table tbody tr:nth-child(even) { background-color: #fbfcfd; }
.rpt-table tbody tr:hover { background-color: #eafaf7 !important; transition: background-color .12s; }

.rpt-mono { font-family: 'Consolas', 'Courier New', monospace; font-size: 11.5px; color: #6b7280; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.rpt-mono-wrap { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.rpt-copy-btn { border: none; background: transparent; padding: 2px; cursor: pointer; display: inline-flex; flex-shrink: 0; opacity: .55; transition: opacity .12s; }
.rpt-copy-btn:hover { opacity: 1; }
.rpt-copy-icon { width: 12px; height: 12px; }

@media (max-width: 1200px) {
    .rpt-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .rpt-filterrow { justify-content: flex-start; }
    .rpt-btn-export { width: 100%; justify-content: center; }
}
