duimstok.prorail.nl/public/css/overview.css

151 lines
6.0 KiB
CSS

.overview-toolbar {
display: flex; align-items: center; gap: 8px; padding: 10px 16px;
background: var(--prorail-blue); color: #fff; flex-wrap: wrap;
position: sticky; top: 0; z-index: 100;
}
.overview-toolbar h1 {
flex: 1; font-size: 16px; font-weight: 700; letter-spacing: 0.3px;
}
.overview-toolbar button, .overview-toolbar label {
background: #fff; color: var(--prorail-blue); border: none; padding: 6px 14px;
border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer;
display: inline-flex; align-items: center; gap: 4px;
}
.overview-toolbar button:hover, .overview-toolbar label:hover { background: var(--prorail-light); }
.overview-toolbar input[type="file"] { display: none; }
.overview-body { max-width: 1100px; margin: 0 auto; padding: 16px; }
.summary-row {
display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 12px; margin-bottom: 20px;
}
.summary-card {
background: #fff; border-radius: 10px; padding: 16px 20px;
border-left: 5px solid var(--prorail-blue);
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
display: flex; align-items: center; gap: 14px;
}
.summary-card.wissel { border-left-color: #7b1fa2; }
.summary-card.overweg { border-left-color: #0288d1; }
.summary-card.spoor { border-left-color: #e65100; }
.summary-card.totaal { border-left-color: var(--prorail-blue); }
.summary-card .card-icon {
width: 44px; height: 44px; border-radius: 50%; display: flex;
align-items: center; justify-content: center; flex-shrink: 0;
font-size: 20px;
}
.summary-card.wissel .card-icon { background: #f3e5f5; color: #7b1fa2; }
.summary-card.overweg .card-icon { background: #e1f5fe; color: #0288d1; }
.summary-card.spoor .card-icon { background: #fff3e0; color: #e65100; }
.summary-card.totaal .card-icon { background: var(--prorail-light); color: var(--prorail-blue); }
.summary-card .card-info { flex: 1; }
.summary-card .card-value { font-size: 26px; font-weight: 800; color: #222; line-height: 1; }
.summary-card .card-label { font-size: 11px; color: #777; margin-top: 2px; }
.progress-section { margin-bottom: 16px; }
.progress-bar-bg {
height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden;
}
.progress-bar-fill {
height: 100%; width: 0%; background: var(--status-done); border-radius: 4px;
transition: width 0.4s ease;
}
.progress-text { font-size: 11px; color: #666; margin-top: 4px; text-align: right; }
.order-table-wrap {
background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
overflow: visible;
}
.order-table-header {
display: flex; align-items: center; padding: 12px 16px; gap: 10px;
border-bottom: 1px solid #eee;
}
.order-table-header h2 {
flex: 1; font-size: 14px; color: var(--prorail-blue);
}
.filter-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-btn {
border: 1px solid #ccc; background: #fff; padding: 4px 10px;
border-radius: 12px; font-size: 10px; cursor: pointer; font-family: var(--font);
transition: all 0.15s;
}
.filter-btn.active { background: var(--prorail-blue); color: #fff; border-color: var(--prorail-blue); }
.filter-btn:hover:not(.active) { background: #f0f0f0; }
.order-table-scroll { overflow-x: auto; }
.order-table {
width: 100%; border-collapse: collapse; table-layout: fixed;
}
.order-table col.col-order { width: 120px; }
.order-table col.col-type { width: 130px; }
.order-table col.col-omschr { width: auto; }
.order-table col.col-hoevh { width: 110px; }
.order-table col.col-status { width: 130px; }
.order-table th {
background: var(--prorail-light); font-size: 10px; font-weight: 700;
padding: 6px 10px; text-align: left; color: #555;
border-bottom: 1px solid #ddd; white-space: nowrap;
position: relative; user-select: none; overflow: hidden;
}
.order-table th .th-content {
display: flex; align-items: center; gap: 4px;
}
.order-table th .col-resize {
position: absolute; top: 0; right: -3px; width: 6px; height: 100%;
cursor: col-resize; z-index: 2;
}
.order-table th .col-resize::after {
content: ''; position: absolute; top: 25%; bottom: 25%; right: 2px;
width: 2px; background: transparent; border-radius: 1px;
transition: background 0.15s;
}
.order-table th:hover .col-resize::after { background: #bbb; }
.order-table th .col-resize:active::after,
.order-table th .col-resize.dragging::after { background: var(--prorail-blue); }
.order-table thead tr.filter-row th {
background: #fff; padding: 4px 6px; border-bottom: 2px solid #ddd;
font-weight: 400;
}
.order-table .col-filter {
width: 100%; border: 1px solid #ddd; border-radius: 3px;
padding: 4px 6px; font-size: 10px; font-family: var(--font);
background: #fafafa; outline: none; transition: border-color 0.15s;
}
.order-table .col-filter:focus { border-color: var(--prorail-blue); background: #fff; }
.order-table .col-filter::placeholder { color: #bbb; }
.order-table .col-filter.has-value { background: #fffde7; border-color: #f9a825; }
.order-table td {
padding: 10px 10px; font-size: 11px; border-bottom: 1px solid #f0f0f0;
vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-table tbody tr {
cursor: pointer; transition: background 0.1s;
}
.order-table tbody tr:hover { background: #f5f8ff; }
.order-table tbody tr:active { background: #e8edf4; }
.type-badge {
display: inline-block; padding: 2px 8px; border-radius: 10px;
font-size: 10px; font-weight: 600; white-space: nowrap;
}
.type-badge.wissel { background: #f3e5f5; color: #7b1fa2; }
.type-badge.overweg { background: #e1f5fe; color: #0288d1; }
.type-badge.spoor { background: #fff3e0; color: #e65100; }
.status-badge {
display: inline-flex; align-items: center; gap: 4px;
padding: 3px 10px; border-radius: 10px; font-size: 10px; font-weight: 600;
}
.status-badge.open { background: #fff8e1; color: #f57f17; }
.status-badge.done { background: #e8f5e9; color: #2e7d32; }
.status-badge .status-dot {
width: 8px; height: 8px; border-radius: 50%;
}
.status-badge.open .status-dot { background: var(--status-open); }
.status-badge.done .status-dot { background: var(--status-done); }
.order-table .hoevh-cell { text-align: right; font-weight: 600; }