2026-04-16 16:43:15 +00:00
|
|
|
/* ============================================
|
|
|
|
|
Facturas + Tablas + Paginacion
|
|
|
|
|
============================================ */
|
|
|
|
|
|
|
|
|
|
.facturas-page {
|
|
|
|
|
padding: var(--space-6);
|
|
|
|
|
max-width: 1400px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.facturas-header { margin-bottom: var(--space-5); }
|
|
|
|
|
.facturas-header h1 { font-size: 1.25rem; font-weight: 600; }
|
|
|
|
|
|
|
|
|
|
.btn-new-invoice {
|
|
|
|
|
background-color: var(--primary);
|
|
|
|
|
color: white;
|
|
|
|
|
padding: var(--space-2) var(--space-4);
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
transition: background-color var(--transition-fast);
|
|
|
|
|
height: 36px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-new-invoice:hover { background-color: var(--primary-hover); }
|
|
|
|
|
|
|
|
|
|
.facturas-filters {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--space-3);
|
|
|
|
|
margin-bottom: var(--space-4);
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input,
|
|
|
|
|
.filter-status {
|
|
|
|
|
padding: var(--space-2) var(--space-3);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
background: var(--card-bg);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
height: 36px;
|
|
|
|
|
transition: border-color var(--transition-fast);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input:focus,
|
|
|
|
|
.filter-status:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input { flex: 1; max-width: 320px; }
|
|
|
|
|
.filter-status { min-width: 180px; cursor: pointer; }
|
|
|
|
|
|
|
|
|
|
.invoices-table-container,
|
|
|
|
|
.clients-table-container {
|
|
|
|
|
background: var(--card-bg);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-shadow: var(--shadow-xs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table,
|
|
|
|
|
.clients-table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table thead,
|
|
|
|
|
.clients-table thead {
|
|
|
|
|
background: var(--gray-50);
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table th,
|
|
|
|
|
.clients-table th {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.04em;
|
|
|
|
|
padding: var(--space-3) var(--space-4);
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table tbody tr,
|
|
|
|
|
.clients-table tbody tr {
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
transition: background-color var(--transition-fast);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table tbody tr:hover,
|
|
|
|
|
.clients-table tbody tr:hover { background-color: var(--gray-50); }
|
|
|
|
|
|
|
|
|
|
.invoices-table tbody tr:last-child,
|
|
|
|
|
.clients-table tbody tr:last-child { border-bottom: none; }
|
|
|
|
|
|
|
|
|
|
.invoices-table td,
|
|
|
|
|
.clients-table td { padding: var(--space-3) var(--space-4); font-size: 14px; }
|
|
|
|
|
|
2026-05-08 22:59:54 +00:00
|
|
|
/* Sortable column headers */
|
|
|
|
|
.invoices-table th.sortable {
|
|
|
|
|
user-select: none;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table th.sortable:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
background-color: var(--gray-100);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme='dark'] .invoices-table th.sortable:hover {
|
|
|
|
|
background-color: rgba(30, 58, 110, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table th.sort-active {
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sort-icon {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Totals summary bar */
|
|
|
|
|
.invoices-summary {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--space-5);
|
|
|
|
|
padding: var(--space-3) var(--space-4);
|
|
|
|
|
background: var(--card-bg);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
margin-top: var(--space-3);
|
|
|
|
|
box-shadow: var(--shadow-xs);
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-divider {
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
background: var(--border-color);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-label {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-value {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-item--paid .summary-value { color: var(--success); }
|
|
|
|
|
.summary-item--pending .summary-value { color: var(--primary); }
|
|
|
|
|
|
|
|
|
|
:root[data-theme='dark'] .invoices-summary {
|
|
|
|
|
background: #081226;
|
|
|
|
|
border-color: #1e2f4d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Clickable invoice number */
|
|
|
|
|
.btn-invoice-num {
|
2026-05-13 18:17:20 +00:00
|
|
|
appearance: none;
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
background: none !important;
|
|
|
|
|
border: none !important;
|
|
|
|
|
outline: none !important;
|
|
|
|
|
box-shadow: none !important;
|
2026-05-08 22:59:54 +00:00
|
|
|
cursor: pointer;
|
2026-05-13 18:17:20 +00:00
|
|
|
font-weight: 500;
|
2026-05-08 22:59:54 +00:00
|
|
|
font-size: 13px;
|
2026-05-13 18:17:20 +00:00
|
|
|
color: var(--text-primary);
|
2026-05-08 22:59:54 +00:00
|
|
|
padding: 0;
|
2026-05-13 18:17:20 +00:00
|
|
|
margin: 0;
|
2026-05-08 22:59:54 +00:00
|
|
|
font-family: inherit;
|
2026-05-13 18:17:20 +00:00
|
|
|
line-height: inherit;
|
|
|
|
|
transition: color var(--transition-fast);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-invoice-num:hover,
|
|
|
|
|
.btn-invoice-num:focus,
|
|
|
|
|
.btn-invoice-num:focus-visible,
|
|
|
|
|
.btn-invoice-num:active {
|
|
|
|
|
background: none !important;
|
|
|
|
|
border: none !important;
|
|
|
|
|
outline: none !important;
|
|
|
|
|
box-shadow: none !important;
|
|
|
|
|
color: var(--text-primary);
|
2026-05-08 22:59:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-invoice-num:hover {
|
2026-05-13 18:17:20 +00:00
|
|
|
color: var(--primary) !important;
|
|
|
|
|
text-decoration: underline;
|
2026-05-08 22:59:54 +00:00
|
|
|
text-decoration-color: var(--primary);
|
2026-05-13 18:17:20 +00:00
|
|
|
text-underline-offset: 3px;
|
2026-05-08 22:59:54 +00:00
|
|
|
}
|
|
|
|
|
|
2026-04-16 16:43:15 +00:00
|
|
|
.invoice-number { font-weight: 500; color: var(--text-primary); }
|
|
|
|
|
|
|
|
|
|
.invoice-client {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--space-2);
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.client-icon { display: flex; align-items: center; color: var(--gray-400); }
|
|
|
|
|
.invoice-date { color: var(--text-primary); }
|
|
|
|
|
|
|
|
|
|
.invoice-total,
|
|
|
|
|
.invoice-remain {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoice-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--space-1);
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-view,
|
|
|
|
|
.btn-action {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
padding: var(--space-1);
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: var(--gray-400);
|
|
|
|
|
transition: color var(--transition-fast), background-color var(--transition-fast);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-view:hover { color: var(--primary); background-color: var(--blue-50); }
|
|
|
|
|
.btn-action:hover { background-color: var(--gray-100); color: var(--text-primary); }
|
|
|
|
|
.btn-delete:hover { background-color: var(--red-50); color: var(--danger); }
|
|
|
|
|
|
|
|
|
|
.loading,
|
|
|
|
|
.error,
|
|
|
|
|
.no-invoices,
|
|
|
|
|
.no-clients {
|
|
|
|
|
padding: var(--space-10);
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.error { color: var(--danger); }
|
|
|
|
|
|
|
|
|
|
.pagination {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--space-4);
|
|
|
|
|
margin-top: var(--space-4);
|
|
|
|
|
padding: var(--space-3) var(--space-4);
|
|
|
|
|
background: var(--card-bg);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-info {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--space-1);
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-info .current-page,
|
|
|
|
|
.pagination-info .total-pages {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
min-width: 20px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-pagination {
|
|
|
|
|
padding: var(--space-2) var(--space-3);
|
|
|
|
|
background-color: var(--card-bg);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
transition: background-color var(--transition-fast), border-color var(--transition-fast);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--space-1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-pagination:hover:not(:disabled) {
|
|
|
|
|
background-color: var(--gray-50);
|
|
|
|
|
border-color: var(--gray-300);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-pagination:disabled {
|
|
|
|
|
background-color: var(--gray-50);
|
|
|
|
|
color: var(--gray-300);
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
border-color: var(--gray-200);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dark tune */
|
|
|
|
|
:root[data-theme='dark'] .invoices-table-container,
|
|
|
|
|
:root[data-theme='dark'] .clients-table-container,
|
|
|
|
|
:root[data-theme='dark'] .pagination {
|
|
|
|
|
background: #081226;
|
|
|
|
|
border-color: #1e2f4d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme='dark'] .invoices-table thead,
|
|
|
|
|
:root[data-theme='dark'] .clients-table thead {
|
|
|
|
|
background: rgba(15, 23, 42, 0.95);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme='dark'] .invoices-table tbody tr:hover,
|
|
|
|
|
:root[data-theme='dark'] .clients-table tbody tr:hover,
|
|
|
|
|
:root[data-theme='dark'] .btn-pagination:hover:not(:disabled) {
|
|
|
|
|
background-color: rgba(30, 58, 110, 0.24);
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-08 22:42:33 +00:00
|
|
|
@media (max-width: 1024px) {
|
|
|
|
|
.facturas-page {
|
|
|
|
|
padding: var(--space-4);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-16 16:43:15 +00:00
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.facturas-filters {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input {
|
|
|
|
|
max-width: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination {
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: var(--space-3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-pagination {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-width: 100px;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagination-info {
|
|
|
|
|
order: 3;
|
|
|
|
|
width: 100%;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-08 22:42:33 +00:00
|
|
|
@media (max-width: 640px) {
|
2026-04-16 16:43:15 +00:00
|
|
|
.facturas-page {
|
2026-05-08 22:42:33 +00:00
|
|
|
padding: var(--space-3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Scroll horizontal suave en la tabla */
|
|
|
|
|
.invoices-table-container {
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.invoices-table {
|
|
|
|
|
min-width: 560px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ocultar columnas menos importantes en pantallas pequeñas */
|
|
|
|
|
.invoices-table th.invoice-date,
|
|
|
|
|
.invoices-table td.invoice-date,
|
|
|
|
|
.invoices-table th.invoice-remain,
|
|
|
|
|
.invoices-table td.invoice-remain {
|
|
|
|
|
display: none;
|
2026-04-16 16:43:15 +00:00
|
|
|
}
|
|
|
|
|
}
|