Files
2026-06-11 01:50:37 +07:00

566 lines
10 KiB
CSS

/* ==================== PAGE-SPECIFIC STYLES ==================== */
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 28px;
gap: 16px;
flex-wrap: wrap;
}
.page-title-group h1 {
font-family: var(--font-head);
font-size: 26px;
font-weight: 800;
letter-spacing: -.04em;
margin: 0 0 4px;
color: #0f172a;
}
.page-title-group p {
margin: 0;
font-size: 13px;
color: #64748b;
}
.page-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
/* Summary stats at top */
.summary-bar {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 14px;
margin-bottom: 28px;
}
.summary-item {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 14px;
padding: 16px 18px;
display: flex;
align-items: center;
gap: 12px;
}
.summary-icon {
width: 40px;
height: 40px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
flex-shrink: 0;
}
.summary-icon.purple {
background: #faf5ff;
}
.summary-icon.green {
background: #f0fdf4;
}
.summary-icon.red {
background: #fff1f2;
}
.summary-icon.blue {
background: #eff6ff;
}
.summary-val {
font-family: var(--font-head);
font-size: 20px;
font-weight: 700;
color: #0f172a;
line-height: 1;
}
.summary-label {
font-size: 11px;
color: #64748b;
font-weight: 600;
margin-top: 3px;
}
/* Filter bar */
.filter-bar {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
flex-wrap: wrap;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 14px;
padding: 12px 16px;
}
.filter-search {
flex: 1;
min-width: 200px;
position: relative;
}
.filter-search input {
width: 100%;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 9px 12px 9px 36px;
font-size: 13px;
outline: none;
font-family: var(--font);
color: #0f172a;
transition: all .15s;
}
.filter-search input:focus {
border-color: #8eb3ff;
box-shadow: 0 0 0 3px rgba(22, 93, 255, .08);
}
.filter-search-icon {
position: absolute;
left: 11px;
top: 50%;
transform: translateY(-50%);
color: #94a3b8;
font-size: 14px;
pointer-events: none;
}
.filter-select {
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 9px 12px;
font-size: 12px;
outline: none;
background: #fff;
cursor: pointer;
font-family: var(--font);
color: #475569;
transition: all .15s;
}
.filter-select:focus {
border-color: #8eb3ff;
}
.filter-count {
font-size: 12px;
font-weight: 600;
color: #64748b;
white-space: nowrap;
margin-left: auto;
}
/* Table container */
.table-container {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 1px 4px rgba(0, 0, 0, .03);
}
.table-scrollwrap {
overflow-x: auto;
}
.pm-table {
width: 100%;
border-collapse: collapse;
text-align: left;
font-size: 13px;
min-width: 780px;
}
.pm-table thead th {
background: #f8fafc;
color: #475569;
font-weight: 700;
font-size: 11px;
text-transform: uppercase;
letter-spacing: .05em;
padding: 12px 16px;
border-bottom: 1px solid #e2e8f0;
white-space: nowrap;
cursor: pointer;
user-select: none;
transition: background .1s;
}
.pm-table thead th:hover {
background: #f1f5f9;
}
.pm-table thead th .sort-icon {
margin-left: 4px;
opacity: 0.4;
}
.pm-table thead th.sort-asc .sort-icon::after {
content: ' ↑';
opacity: 1;
}
.pm-table thead th.sort-desc .sort-icon::after {
content: ' ↓';
opacity: 1;
}
.pm-table tbody tr {
transition: background .1s;
cursor: pointer;
}
.pm-table tbody tr:hover td {
background: #f8fafc;
}
.pm-table tbody td {
padding: 12px 16px;
border-bottom: 1px solid #f8fafc;
color: #334155;
vertical-align: middle;
}
.pm-table tbody tr:last-child td {
border-bottom: none;
}
/* Name cell */
.cell-name {
font-weight: 700;
color: #0f172a;
}
.cell-sub {
font-size: 11px;
color: #94a3b8;
margin-top: 2px;
}
/* Badges */
.badge {
display: inline-flex;
align-items: center;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
padding: 3px 8px;
border-radius: 999px;
white-space: nowrap;
}
.badge-dalam {
background: #f0fdf4;
color: #166534;
border: 1px solid #bbf7d0;
}
.badge-luar {
background: #fff1f2;
color: #9f1239;
border: 1px solid #fecdd3;
}
.badge-pemberdayaan {
background: #eff6ff;
color: #1e40af;
border: 1px solid #bfdbfe;
}
.badge-konsumtif {
background: #fffbeb;
color: #92400e;
border: 1px solid #fde68a;
}
/* Aid count display */
.aid-pills {
display: flex;
gap: 4px;
flex-wrap: wrap;
}
/* Pagination */
.pagination {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
border-top: 1px solid #f1f5f9;
font-size: 12px;
color: #64748b;
flex-wrap: wrap;
gap: 10px;
}
.pagination-info {
font-weight: 500;
}
.pagination-btns {
display: flex;
gap: 4px;
}
.pg-btn {
width: 32px;
height: 32px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #fff;
cursor: pointer;
font-size: 12px;
font-weight: 600;
color: #475569;
display: flex;
align-items: center;
justify-content: center;
transition: all .15s;
}
.pg-btn:hover:not(:disabled) {
border-color: var(--accent);
color: var(--accent);
}
.pg-btn.active {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}
.pg-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
/* Empty state */
.empty-state {
text-align: center;
padding: 60px 24px;
color: #94a3b8;
}
.empty-state-icon {
font-size: 48px;
margin-bottom: 16px;
}
.empty-state h3 {
font-family: var(--font-head);
color: #475569;
margin: 0 0 8px;
}
.empty-state p {
font-size: 13px;
margin: 0;
}
/* Detail drawer */
.detail-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, .45);
z-index: 7000;
display: none;
backdrop-filter: blur(4px);
}
.detail-overlay.open {
display: flex;
align-items: center;
justify-content: flex-end;
}
.detail-drawer {
width: min(520px, 100%);
height: 100vh;
background: #fff;
overflow-y: auto;
box-shadow: -24px 0 60px rgba(15, 23, 42, .18);
animation: drawer-in .25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes drawer-in {
from {
transform: translateX(40px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.drawer-head {
padding: 24px;
border-bottom: 1px solid #f1f5f9;
position: sticky;
top: 0;
background: #fff;
z-index: 10;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.drawer-head h2 {
font-family: var(--font-head);
font-size: 18px;
font-weight: 700;
margin: 0;
color: #0f172a;
}
.drawer-close {
width: 34px;
height: 34px;
border-radius: 10px;
border: 1px solid #e2e8f0;
background: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
transition: all .15s;
}
.drawer-close:hover {
background: #f1f5f9;
}
.drawer-body {
padding: 24px;
}
.section-heading {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: .08em;
color: #94a3b8;
margin: 24px 0 12px;
}
.info-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #f8fafc;
font-size: 13px;
}
.info-row:last-child {
border-bottom: none;
}
.info-label {
color: #64748b;
}
.info-val {
font-weight: 600;
color: #0f172a;
text-align: right;
max-width: 60%;
}
/* Proximity indicator */
.proximity-card {
padding: 14px 16px;
border-radius: 14px;
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 16px;
font-size: 13px;
font-weight: 600;
}
.proximity-card.dalam {
background: #f0fdf4;
color: #166534;
}
.proximity-card.luar {
background: #fff1f2;
color: #9f1239;
}
/* Log list in drawer */
.log-list {
display: grid;
gap: 8px;
}
.log-entry {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
background: #f8fafc;
border: 1px solid #f1f5f9;
border-radius: 12px;
}
.log-type-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.log-type-dot.pem {
background: #2563eb;
}
.log-type-dot.kon {
background: #f59e0b;
}
.log-entry-info {
flex: 1;
min-width: 0;
}
.log-entry-name {
font-size: 12px;
font-weight: 700;
color: #0f172a;
}
.log-entry-detail {
font-size: 11px;
color: #64748b;
margin-top: 2px;
}
.log-entry-date {
font-size: 10px;
color: #94a3b8;
white-space: nowrap;
}
.loading-spinner-wrap {
text-align: center;
padding: 60px;
color: #94a3b8;
}