html { --bg-color: white; --text-color: black; --table-bg: #f9f9f9; --border-color: #ddd; --header-bg: #e0e0e0; --highlight-color: #ffff99; --worker-bg: #f0f0f0; } html.dark-mode { --bg-color: #121212; --text-color: #e0e0e0; --table-bg: #1e1e1e; --border-color: #333; --header-bg: #2a2a2a; --highlight-color: #333300; --worker-bg: #2a2a2a; } body { background-color: var(--bg-color); color: var(--text-color); } table { /* margin-top: 50px; */ text-align: center; /* table-layout : fixed; */ /* width:150px */ /* width: 200%; */ /* overflow-x: auto; display: block; position: relative; */ border-collapse: separate; border-spacing: 0; background-color: var(--table-bg); border: 1px solid var(--border-color); } #main-table { padding-top: 100px; } .shift-table { padding-top: 10px; } .shift-table thead { font-weight: bold; } .table-div { /* overflow-x: auto; */ /* width: 80%; */ overflow-x: scroll; margin-left: 200px; overflow-y: visible; padding: 0; } #main-table th { text-align: center; white-space: nowrap; transform: rotate(90deg) translateX(-100px); position: sticky; top: 0; } #main-table th p { margin: 0 -100%; display: inline-block; } #main-table th p:before { content: ''; width: 0; padding-top: 110%; /* takes width as reference, + 10% for faking some extra padding */ display: inline-block; vertical-align: middle; } #main-table td, th { max-width: 10px; padding: 0px; } #main-table tr { padding: 0px; } #main-table tr:hover { background-color: var(--highlight-color); } #main-table tr:hover .unavailable { background-color: var(--worker-bg); } .Sat { /* opacity: 30%; */ /* background-color: lightsteelblue; */ border-left: solid 1px lightsteelblue; } .Sun { border-right: solid 1px lightsteelblue; } .bank-holiday { border-bottom: dotted 1px blue; } #main-table th.bank-holiday { color: darkblue; } /* th.worker { max-width: 100%; width: 200px; } */ .plymouth { color: #9169FF; } .exeter { color: #5F60E8; } .truro { color: #0074D9; } .torquay, .torbay { color: #5FA8E8; } .taunton { color: #e85fdf; } .unavailable { color: lightgray; } .shift-requested { color: green; } .worker-summary { position: absolute; display: none; overflow-x: visible; width: 100%; text-align: left; } .site-summary { display: inline-flex; } .site-summary .site { border: 1px solid black; padding: 5px; margin: 20px; } .site-name { font-weight: bold; } .worker-summary span { min-width: 160px; display: inline-flex; } .training-days-lost { padding-top: 5px; } .tdl-settings { padding: 2px; } .table-div+pre { display: none; } .shift-breakdown-button+pre { display: none; } .shift-breakdown-button { display: block; } .nwd { color: lightcoral; } #main-table th.worker, #main-table td.worker { position: absolute; width: 200px; max-width: 200px; left: 0; top: auto; border-top-width: 1px; /*only relevant for first row*/ margin-top: -1px; /*compensate for top border*/ } .hidden { opacity: 0%; } .tsummary { max-width: auto; } #main-table.header th { max-width: 200px; } /* [data-night-at-derriford="0"] { border: 1px dotted orange; } */ #main-table th.site-title { transform: unset; } .name { max-width: 90px; display: inline-flex; white-space: nowrap; overflow: hidden; /*text-overflow: ellipsis;*/ } .shift-highlight { background-color: palegreen; } .pair-match { background-color: red; } summary h2 { display: inline; } .remote-site-match.shift-highlight { background-color: yellow; } td.large-shift-diff-pos::before { content: "*"; color: red; } td.large-shift-diff-neg::before { content: "*"; color: green; } tr.large-shift-diff-pos td { border-bottom: solid 1px red; border-top: solid 1px red; } tr.large-shift-diff-neg td { border-bottom: solid 1px green; border-top: solid 1px green; } /* table.transposed { border-collapse: collapse; } table.transposed tr { display: block; float: left; } table.transposed th, table.transposed td { display: block; border: 1px solid black; max-width: 100px; } */ table.transposed {} table.transposed tr {} table.transposed th, table.transposed td { width: fit-content; max-width: unset; position: relative; border-top: solid 0.5px black; border-right: solid 0.5px black; } table.transposed .Sat { /* opacity: 30%; */ /* background-color: lightsteelblue; */ border-top: solid 2px lightsteelblue !important; } table.transposed .Sun { border-bottom: solid 2px lightsteelblue !important; } table.transposed .bank-holiday { border-bottom: dotted 2px blue !important; } table.transposed th.bank-holiday { color: darkblue; } .target-assigned.no-colour { background-color: white !important; } .locum-shift { background-color: lightgreen; } .multi-shift { line-height: 1; } button.selected { background: #0074d9; color: #fff; } #main-table th.col-hover { background: #ffe066 !important; color: #222 !important; } .highlight-day-btn.highlighted { background: #ffe066 !important; color: #222 !important; border: 2px solid #bfa600 !important; } .highlight-day-btn.highlighted { background: #ffe066 !important; color: #222 !important; border: 2px solid #bfa600 !important; } #main-table td.day-highlighted, #main-table th.day-highlighted { /* background is set inline for custom color */ } #display-settings-modal { transition: box-shadow 0.2s; } #main-table td.force-assigned.force-assigned-highlight { background-color: #ffe066 !important; border: 2px solid #ff8800 !important; } #linear-shift-timetable td, #linear-shift-timetable th { max-width: unset; }