@jackiemacklein/nettz-utils
Version:
Serviços de imagem, e-mail, códigos de barras, utilitários numéricos e componentes React para apps Node.js com TypeScript
547 lines (462 loc) • 9.08 kB
CSS
.on-table-container {
font-family: "Inter", sans-serif;
}
.table-loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
border-radius: 8px;
}
.sticky-top {
position: sticky;
top: 0;
z-index: 1;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.sticky-top th {
font-weight: 600;
color: #555;
text-transform: uppercase;
font-size: 12px;
letter-spacing: 0.5px;
padding: 12px 16px;
background-color: #f8f9fa;
border-bottom: 2px solid #e9ecef;
}
.hover-row:hover {
background-color: #f8f9ff ;
}
.empty-state {
padding: 40px 0;
}
.pagination-modern .page-item .page-link {
border-radius: 4px;
margin: 0 2px;
color: #555;
}
.pagination-modern .active-page .page-link {
background-color: #4361ee;
border-color: #4361ee;
color: white;
box-shadow: 0 2px 5px rgba(67, 97, 238, 0.3);
}
.form-select-sm.rounded-pill {
padding-left: 15px;
padding-right: 30px;
}
.nettz-table-container {
font-family: "Inter", sans-serif;
border-radius: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
border: 1px solid #eaeaea;
background-color: #fff;
padding: 30px;
}
.nettz-table-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.nettz-selection-info {
display: flex;
align-items: center;
}
.nettz-selection-badge {
background-color: #4361ee;
color: white;
padding: 8px 16px;
border-radius: 50px;
font-size: 14px;
font-weight: 500;
}
.nettz-table-actions {
display: flex;
align-items: center;
gap: 12px;
}
.nettz-table-wrapper {
overflow-x: auto;
min-height: 400px;
max-height: calc(100vh - 250px);
overflow-y: auto;
position: relative;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.nettz-table-loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 10;
border-radius: 8px;
}
.nettz-spinner {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.nettz-spinner::before {
content: "";
width: 40px;
height: 40px;
border: 4px solid #e9ecef;
border-top: 4px solid #4361ee;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.nettz-spinner-text {
font-size: 14px;
color: #6c757d;
}
.nettz-table {
width: 100%;
border-collapse: collapse;
margin: 0;
}
.nettz-table-header-row {
background-color: #f8f9fa;
border-bottom: 2px solid #e9ecef;
}
.nettz-table-header-cell {
padding: 16px 12px;
font-weight: 600;
color: #495057;
text-transform: uppercase;
font-size: 12px;
letter-spacing: 0.5px;
border-bottom: 2px solid #e9ecef;
position: sticky;
top: 0;
background-color: #f8f9fa;
z-index: 1;
}
.nettz-header-content {
display: flex;
align-items: center;
gap: 8px;
}
.nettz-header-label {
flex: 1;
}
.nettz-filter-icon {
cursor: pointer;
color: #6c757d;
transition: color 0.2s;
}
.nettz-filter-icon:hover {
color: #4361ee;
}
.nettz-sort-icon {
cursor: pointer;
color: #6c757d;
transition: color 0.2s;
margin-left: 8px;
}
.nettz-sort-icon:hover {
color: #4361ee;
}
.nettz-checkbox-header,
.nettz-checkbox-cell {
width: 80px;
text-align: center;
vertical-align: middle;
}
.nettz-table-row {
border-bottom: 1px solid #e9ecef;
transition: background-color 0.2s ease;
}
.nettz-table-row:hover {
background-color: #f8f9ff;
}
.nettz-clickable-row {
cursor: pointer;
}
.nettz-table-cell {
padding: 12px 16px;
vertical-align: middle;
font-size: 14px;
color: #495057;
}
.nettz-clickable-cell {
cursor: pointer;
text-decoration: underline;
color: #4361ee;
}
.nettz-clickable-cell:hover {
color: #3a56d4;
}
.nettz-empty-state {
text-align: center;
padding: 60px 20px;
}
.nettz-empty-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
color: #6c757d;
}
.nettz-empty-content i {
color: #dee2e6;
}
.nettz-table-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 24px;
}
.nettz-table-info {
font-size: 14px;
color: #6c757d;
}
.nettz-bold {
font-weight: 600;
color: #495057;
}
.nettz-table-controls {
display: flex;
align-items: center;
gap: 24px;
}
.nettz-items-per-page {
display: flex;
align-items: center;
gap: 8px;
justify-content: center;
}
.nettz-items-per-page-label {
font-size: 14px;
color: #6c757d;
font-weight: 500;
white-space: nowrap;
margin-bottom: 0px;
}
.nettz-items-per-page-select {
padding: 6px 12px;
border: 1px solid #e9ecef;
border-radius: 6px;
font-size: 14px;
color: #495057;
background-color: white;
cursor: pointer;
transition: border-color 0.2s, box-shadow 0.2s;
min-width: 80px;
}
.nettz-items-per-page-select:focus {
outline: none;
border-color: #4361ee;
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.nettz-items-per-page-select:hover {
border-color: #4361ee;
}
.nettz-pagination-wrapper {
display: flex;
align-items: center;
gap: 12px;
}
/* Responsividade */
@media (max-width: 768px) {
.nettz-table-container {
padding: 20px;
}
.nettz-table-header {
flex-direction: column;
gap: 16px;
align-items: stretch;
}
.nettz-table-actions {
justify-content: center;
}
.nettz-table-footer {
flex-direction: column;
gap: 16px;
text-align: center;
}
.nettz-table-controls {
flex-direction: column;
gap: 16px;
align-items: center;
}
.nettz-items-per-page {
flex-direction: column;
gap: 8px;
}
}
@media (max-width: 480px) {
.nettz-items-per-page {
flex-direction: column;
gap: 6px;
}
.nettz-items-per-page-label {
font-size: 13px;
}
.nettz-items-per-page-select {
font-size: 13px;
padding: 5px 10px;
}
}
/* Modal Moderno */
.nettz-modal-content {
display: flex;
flex-direction: column;
height: 100%;
max-height: 80vh;
}
.nettz-modal-body {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
}
.nettz-filter-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1rem 2rem;
margin-bottom: 0.5rem;
width: 100%;
}
/* Ajuste para campos de data que ocupam mais espaço */
.nettz-filter-item:has(.nettz-date-range) {
grid-column: span 2;
}
.nettz-filter-item .nettz-date-range {
width: 100%;
}
.nettz-filter-item {
margin-bottom: 0.5rem;
}
.nettz-filter-label {
font-weight: 600;
color: #374151;
font-size: 0.875rem;
margin-bottom: 0.25rem;
}
.nettz-input-field,
.nettz-select-field .react-select__control {
min-height: 40px;
font-size: 1rem;
}
.nettz-input-field::placeholder {
color: #7b809a;
opacity: 1;
}
.nettz-select-field {
min-height: 42px;
}
.nettz-select-field .react-select__control {
border: 2px solid #e5e7eb;
border-radius: 0.5rem;
min-height: 42px;
transition: all 0.2s ease;
background-color: #ffffff;
}
.nettz-select-field .react-select__control:hover {
border-color: #d1d5db;
}
.nettz-select-field .react-select__control--is-focused {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.nettz-select-field .react-select__placeholder {
color: #9ca3af;
}
.nettz-select-field .react-select__option {
padding: 0.75rem 1rem;
cursor: pointer;
}
.nettz-select-field .react-select__option--is-focused {
background-color: #f3f4f6;
}
.nettz-select-field .react-select__option--is-selected {
background-color: #3b82f6;
color: white;
}
/* Modal Footer */
.nettz-modal-footer {
border-top: 1px solid #e5e7eb;
padding: 1.2rem 1.5rem 1.2rem 1.5rem;
background-color: #f9fafb;
border-radius: 0 0 0.5rem 0.5rem;
}
.nettz-modal-actions {
display: flex;
justify-content: flex-end;
gap: 1rem;
align-items: center;
}
.nettz-modal-actions button {
min-width: 130px;
font-size: 1rem;
}
.nettz-btn-apply {
background-color: #4361ee;
border-color: #4361ee;
color: #fff;
font-weight: 600;
}
.nettz-btn-apply:hover {
background-color: #2746b6;
border-color: #2746b6;
}
.nettz-btn-cancel,
.nettz-btn-clear {
color: #4361ee;
border-color: #4361ee;
background: #fff;
font-weight: 500;
}
.nettz-btn-cancel:hover,
.nettz-btn-clear:hover {
background: #f3f4f6;
color: #2746b6;
border-color: #2746b6;
}
@media (max-width: 600px) {
.nettz-modal-body {
padding: 0rem;
}
.nettz-modal-footer {
padding: 1rem;
}
.nettz-modal-actions {
flex-direction: column;
gap: 0.5rem;
}
.nettz-modal-actions button {
width: 100%;
min-width: unset;
}
}
/* Responsividade para campos de data */
@media (max-width: 768px) {
.nettz-filter-item:has(.nettz-date-range) {
grid-column: span 1;
}
.nettz-filter-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
}