330 lines
5.4 KiB
CSS
330 lines
5.4 KiB
CSS
/* Page Layout */
|
|
.page-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
height: 100%;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: flex-end;
|
|
text-align: left;
|
|
/* Explicitly set text align */
|
|
}
|
|
|
|
.page-title-text {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-primary);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.page-subtitle {
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.content-card {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
/* Toolbar */
|
|
.table-toolbar {
|
|
padding: 1.25rem 2rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #fff;
|
|
position: relative;
|
|
/* For z-index context */
|
|
}
|
|
|
|
.search-box {
|
|
width: 400px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.filter-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
position: relative;
|
|
/* For popup positioning */
|
|
}
|
|
|
|
/* Filter Popup */
|
|
.filter-popup {
|
|
position: absolute;
|
|
top: 110%;
|
|
right: 0;
|
|
width: 280px;
|
|
background-color: white;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow-lg);
|
|
z-index: 50;
|
|
padding: 1rem;
|
|
animation: fadeIn 0.15s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.filter-section {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.filter-title {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.filter-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-primary);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.checkbox-label input {
|
|
accent-color: var(--color-brand-primary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.filter-divider {
|
|
height: 1px;
|
|
background-color: #f1f5f9;
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
.filter-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.text-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #64748b;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
padding: 0;
|
|
}
|
|
|
|
.text-btn:hover {
|
|
color: var(--color-brand-primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Table Styles */
|
|
.table-container {
|
|
flex: 1;
|
|
overflow: auto;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.data-table th {
|
|
background-color: #f8fafc;
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
padding: 0.875rem 1rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.data-table td {
|
|
padding: 0.875rem 1rem;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
vertical-align: middle;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.hover-row:hover {
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.font-mono {
|
|
font-family: monospace;
|
|
}
|
|
|
|
.text-slate-600 {
|
|
color: #475569;
|
|
}
|
|
|
|
.text-slate-900 {
|
|
color: #0f172a;
|
|
}
|
|
|
|
.text-slate-500 {
|
|
color: #64748b;
|
|
}
|
|
|
|
.text-sm {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.font-medium {
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Status Badges */
|
|
.data-table td.status-cell {
|
|
text-align: center !important;
|
|
}
|
|
|
|
.data-table td.status-cell>div {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge-success {
|
|
background-color: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.badge-warning {
|
|
background-color: #ffedd5;
|
|
color: #9a3412;
|
|
}
|
|
|
|
.badge-danger {
|
|
background-color: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.badge-neutral {
|
|
background-color: #f1f5f9;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* Pagination */
|
|
.pagination-bar {
|
|
padding: 0.75rem 1.5rem;
|
|
border-top: 1px solid var(--color-border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.pagination-info {
|
|
font-size: 0.875rem;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.pagination-controls {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.page-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
color: #64748b;
|
|
transition: all 0.2s;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.page-btn:hover:not(:disabled) {
|
|
background-color: #f1f5f9;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.page-btn:disabled {
|
|
color: #cbd5e1;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.page-number {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.page-number:hover {
|
|
background-color: #f1f5f9;
|
|
}
|
|
|
|
.page-number.active {
|
|
color: white;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Table Utilities */
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.hover-row:hover td {
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
.hover-row td button {
|
|
white-space: nowrap;
|
|
} |