.form-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--prorail-blue); color: #fff; flex-wrap: wrap; position: sticky; top: 0; z-index: 100; } .form-toolbar button, .form-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; } .form-toolbar button:hover, .form-toolbar label:hover { background: var(--prorail-light); } .form-toolbar .title { flex: 1; font-size: 11px; opacity: 0.8; } .form-toolbar input[type="file"] { display: none; } .btn-back { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.4) !important; font-size: 13px !important; } .btn-back:hover { background: rgba(255,255,255,0.15) !important; } .btn-opname-gereed { background: var(--status-done) !important; color: #fff !important; font-size: 13px !important; padding: 8px 18px !important; border-radius: 6px !important; font-weight: 700 !important; box-shadow: 0 2px 6px rgba(76,175,80,0.4); transition: transform 0.1s, box-shadow 0.1s; } .btn-opname-gereed:hover { background: #43a047 !important; transform: scale(1.02); box-shadow: 0 3px 10px rgba(76,175,80,0.5); } .btn-opname-gereed:active { transform: scale(0.98); } .tab-bar { display: flex; background: #e0e7f0; border-bottom: 2px solid var(--prorail-blue); } .tab-btn { flex: 1; padding: 12px 20px; border: none; background: #d0d8e4; color: #555; font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; border-right: 1px solid #bbb; transition: background 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; } .tab-btn:last-child { border-right: none; } .tab-btn.active { background: #fff; color: var(--prorail-blue); border-bottom: 3px solid var(--prorail-blue); margin-bottom: -2px; } .tab-btn:not(.active):hover { background: #c8d2e0; } .tab-btn .tab-badge { background: var(--prorail-blue); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 10px; min-width: 18px; text-align: center; display: none; } .tab-btn .tab-badge.visible { display: inline-block; } .tab-btn.active .tab-badge { background: var(--score-green); color: #000; } .tab-panel { display: none; } .tab-panel.active { display: block; } .form-container { max-width: 1100px; margin: 0 auto; background: #fff; border: 2px solid var(--prorail-blue); border-top: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); } .form-title { background: var(--prorail-blue); color: #fff; text-align: center; font-size: 16px; font-weight: 700; padding: 10px; letter-spacing: 0.5px; } .header-grid { display: grid; grid-template-columns: 180px 1fr 180px 1fr; border-bottom: 1px solid var(--border); } .header-grid .cell { padding: 3px 6px; border: 1px solid #ccc; font-size: 10.5px; min-height: 22px; display: flex; align-items: center; } .header-grid .label { background: var(--header-bg); font-weight: 600; color: #333; } .header-grid .value { background: #fff; color: #000; } /* Type-based visibility: hide type-specific sections by default */ .header-grid.wissel-only, .header-grid.overweg-only, .header-grid.spoor-only { display: none; } body.type-wissel .header-grid.wissel-only, body.type-engelsman .header-grid.wissel-only, body.type-kruising .header-grid.wissel-only { display: grid; } body.type-overweg .header-grid.overweg-only { display: grid; } body.type-spoor .header-grid.spoor-only { display: grid; } .wissel-overview, .engelsman-overview, .kruising-overview { display: none; } body.type-wissel .wissel-overview { display: grid; } body.type-engelsman .engelsman-overview { display: grid; } body.type-kruising .kruising-overview { display: grid; } .overweg-overview { display: none; } body.type-overweg .overweg-overview { display: block; } .spoor-overview { display: none; } body.type-spoor .spoor-overview { display: block; } .instruction-box.wissel-only, .instruction-box.overweg-only, .instruction-box.spoor-only, .instruction-box.engelsman-only, .instruction-box.kruising-only { display: none; } body.type-wissel .instruction-box.wissel-only { display: block; } body.type-overweg .instruction-box.overweg-only { display: block; } body.type-spoor .instruction-box.spoor-only { display: block; } body.type-engelsman .instruction-box.engelsman-only { display: block; } body.type-kruising .instruction-box.kruising-only { display: block; } .svg-link-row { display: none; } body.type-wissel .svg-link-row { display: block; } /* Overwegbevloering spatial diagram */ .ow-special-row { display: flex; justify-content: center; gap: 24px; padding: 12px 0; border-bottom: 1px solid #ddd; margin-bottom: 8px; } .ow-diagram { display: grid; grid-template-columns: 100px 1fr 100px; gap: 0; max-width: 700px; margin: 0 auto; min-height: 320px; } .ow-side { display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding: 4px 0; } .ow-km-label { font-size: 10px; font-weight: 700; color: var(--prorail-blue); writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.5px; margin-bottom: 8px; } .ow-center { position: relative; display: flex; align-items: center; justify-content: center; } .ow-crossing-svg { width: 100%; height: 100%; max-height: 360px; } .ow-weg-label { position: absolute; font-size: 11px; font-weight: 700; color: #666; left: 50%; transform: translateX(-50%); } .ow-weg-top { top: 4px; } .ow-weg-bottom { bottom: 4px; } /* Generic photo grid for spoor overview */ .ov-photo-grid { display: flex; justify-content: center; gap: 24px; padding: 16px 0; } .ov-photo-grid .capture-label { padding: 12px 8px; } .task-section { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--border); } .task-section .label { background: var(--header-bg); font-weight: 600; padding: 3px 6px; border: 1px solid #ccc; font-size: 10.5px; } .task-section .value { padding: 3px 6px; border: 1px solid #ccc; font-size: 10.5px; } .inspecteur-grid { display: grid; grid-template-columns: 180px 1fr 180px 1fr; border-bottom: 1px solid var(--border); } .inspecteur-grid .cell { padding: 3px 6px; border: 1px solid #ccc; font-size: 10.5px; min-height: 24px; display: flex; align-items: center; } .inspecteur-grid .label { background: var(--header-bg); font-weight: 600; } .inspecteur-grid .editable { background: var(--editable-bg); } .inspecteur-grid input { width: 100%; border: none; background: transparent; font-family: var(--font); font-size: 10.5px; outline: none; padding: 2px 0; } .warning { background: #fff3cd; color: #856404; font-size: 10px; font-style: italic; padding: 3px 6px; text-align: center; border-bottom: 1px solid var(--border); } .totaal-grid { display: grid; grid-template-columns: 180px 1fr 180px 1fr; border-bottom: 2px solid var(--prorail-blue); } .totaal-grid .cell { padding: 4px 6px; border: 1px solid #ccc; font-size: 11px; min-height: 26px; display: flex; align-items: center; } .totaal-grid .label { background: var(--section-header); font-weight: 700; } .totaal-grid .score-cell { background: var(--editable-bg); font-weight: 700; font-size: 14px; justify-content: center; } .totaal-grid .fotonummers-cell { font-size: 9px; } .assessment-table { width: 100%; border-collapse: collapse; } .assessment-table th { background: var(--section-header); font-weight: 700; font-size: 10.5px; padding: 5px 4px; border: 1px solid var(--border); text-align: center; position: sticky; top: 44px; z-index: 2; } .assessment-table td { border: 1px solid #ccc; padding: 3px 4px; font-size: 10.5px; vertical-align: middle; } .assessment-table .nr-col { width: 35px; text-align: center; font-weight: 600; } .assessment-table .loc-col { min-width: 200px; } .assessment-table .score-col { width: 80px; text-align: center; } .assessment-table .foto-col { width: 80px; text-align: center; } .assessment-table .opm-col { min-width: 180px; } .assessment-table .section-row td { background: var(--prorail-light); font-weight: 700; font-size: 11px; color: var(--prorail-blue); padding: 6px 4px; } .assessment-table .editable-cell { background: var(--editable-bg); } .assessment-table select { width: 100%; border: 1px solid #ccc; background: #fff; font-family: var(--font); font-size: 10.5px; padding: 2px; border-radius: 2px; text-align: center; cursor: pointer; } .assessment-table input[type="text"] { width: 100%; border: none; background: transparent; font-family: var(--font); font-size: 10px; outline: none; padding: 1px 2px; } .foto-btn { display: inline-flex; align-items: center; justify-content: center; gap: 3px; background: var(--prorail-blue); color: #fff; border: none; padding: 4px 8px; border-radius: 3px; font-size: 10px; cursor: pointer; width: 100%; position: relative; } .foto-btn:hover { background: #004db3; } .foto-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--score-red); color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; } .foto-btn .badge:empty { display: none; } .score-b1,.score-b2,.score-b3 { background-color: var(--score-green) !important; color: #000; } .score-g1,.score-g2 { background-color: var(--score-green) !important; color: #000; } .score-g3,.score-g4 { background-color: var(--score-yellow) !important; color: #000; } .score-e3,.score-e4 { background-color: var(--score-yellow) !important; color: #000; } .score-e5,.score-e6 { background-color: var(--score-red) !important; color: #fff; } .opmerkingen-section { border-top: 2px solid var(--prorail-blue); } .opmerkingen-section .section-label { background: var(--section-header); font-weight: 700; padding: 5px 6px; font-size: 11px; border-bottom: 1px solid var(--border); } .opmerkingen-section textarea { width: 100%; min-height: 80px; border: none; background: var(--editable-bg); font-family: var(--font); font-size: 10.5px; padding: 6px; resize: vertical; outline: none; } .status-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px; background: var(--prorail-light); font-size: 10px; color: #555; border-top: 1px solid #ccc; } .overview-container { max-width: 800px; margin: 0 auto; padding: 16px 8px; background: #fff; } .overview-title { text-align: center; font-size: 18px; font-weight: 700; color: var(--prorail-blue); margin-bottom: 12px; } .instruction-box { background: #fff; border: 2px solid #333; border-radius: 8px; padding: 12px 16px; margin: 0 auto 20px auto; max-width: 500px; font-size: 11px; line-height: 1.5; color: #333; } .instruction-box strong { color: var(--prorail-blue); } .wissel-overview { display: grid; grid-template-columns: 110px 1fr 110px; grid-template-rows: auto auto auto auto auto; gap: 0; max-width: 700px; margin: 0 auto 16px auto; align-items: stretch; } .ovz-row { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 8px 0; } .side-labels { display: flex; flex-direction: column; justify-content: space-around; padding: 4px 0; } .section-strip { position: relative; border: 1px solid #aaa; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 140px; overflow: hidden; } .section-strip.puntstuk { background: var(--section-punt); } .section-strip.midden { background: var(--section-midden); } .section-strip.tong { background: var(--section-tong); } .section-strip.kruisstuk { background: #80deea; } .eng-nr-label { font-size: 11px; font-weight: 700; color: var(--prorail-blue); text-align: center; align-self: center; } .engelsman-overview, .kruising-overview { grid-template-columns: 110px 1fr 110px; grid-template-rows: auto; gap: 0; max-width: 700px; margin: 0 auto 16px auto; align-items: stretch; } .section-strip .section-name { font-size: 13px; font-weight: 700; color: var(--prorail-blue); text-align: center; z-index: 1; text-shadow: 0 0 4px rgba(255,255,255,0.8); } .section-strip .section-sub { font-size: 10px; color: #444; text-align: center; z-index: 1; } .section-strip .section-sub.sm { font-size: 9px; margin-top: 4px; color: #666; } .track-overlay { position: absolute; inset: 0; pointer-events: none; } .capture-label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 8px 4px; border-radius: 6px; transition: background 0.15s, transform 0.1s; position: relative; user-select: none; -webkit-tap-highlight-color: transparent; } .capture-label:hover { background: rgba(0,48,130,0.08); } .capture-label:active { transform: scale(0.95); background: rgba(0,48,130,0.15); } .capture-label input[type="file"] { display: none; } .capture-label .cap-icon { width: 44px; height: 44px; background: var(--prorail-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 2px 6px rgba(0,48,130,0.4); position: relative; } .capture-label .cap-icon .cap-badge { position: absolute; top: -3px; right: -3px; background: var(--score-green); color: #000; border-radius: 50%; min-width: 18px; height: 18px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; } .capture-label .cap-icon .cap-badge:empty { display: none; } .capture-label .cap-text { font-size: 10px; font-weight: 600; color: var(--prorail-blue); text-align: center; } .capture-label .cap-arrow { font-size: 16px; color: var(--prorail-blue); line-height: 1; } .capture-label .cap-arrow.lg { font-size: 14px; } .side-labels.left .capture-label .cap-arrow::after { content: "\2192"; } .side-labels.right .capture-label .cap-arrow::after { content: "\2190"; } .overview-thumbs { max-width: 700px; margin: 10px auto; padding: 8px; background: var(--prorail-light); border-radius: 6px; min-height: 40px; } .overview-thumbs h4 { font-size: 11px; color: var(--prorail-blue); margin-bottom: 6px; } .overview-thumbs .thumb-grid { display: flex; flex-wrap: wrap; gap: 6px; } .overview-thumbs .thumb-item { width: 72px; position: relative; } .overview-thumbs .thumb-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; border: 2px solid #ccc; cursor: pointer; } .overview-thumbs .thumb-item img:hover { border-color: var(--prorail-blue); } .overview-thumbs .thumb-item .thumb-label { font-size: 8px; text-align: center; color: #555; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .overview-thumbs .thumb-item .thumb-del { position: absolute; top: -4px; right: -4px; background: rgba(255,0,0,0.85); color: #fff; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .overview-thumbs .no-photos { font-size: 11px; color: #888; font-style: italic; padding: 4px 0; } .svg-link-row { text-align: center; margin: 12px 0; } .svg-link-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--prorail-blue); color: #fff; border: none; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); } .svg-link-btn:hover { background: #004db3; }