/* Six history table headers return to a solid navy background. */
.dashboard-page .history-folders-v1018 .history-panel-v1004 thead{background:#071653!important;background-image:none!important}
.history-folders-v1018 .history-tab-list-v1004{overflow-x:hidden!important}
.history-folders-v1018 .history-tab-list-v1004.has-overflow-v1019{overflow-x:auto!important}
.system-remark-v1019{display:block;width:fit-content;max-width:100%;padding:6px 10px!important;margin:8px 0 0!important;border:1px solid #dce6f6!important;border-radius:7px!important;background:#eef4fc!important;color:#52698f;font-size:11.5px!important;line-height:1.45!important;font-weight:400}
.dashboard-page .history-folders-v1018 .history-note-v1018.system-remark-v1019{padding:6px 10px!important;border:1px solid #dce6f6!important;background:#eef4fc!important;border-radius:7px!important}
.schedule-back-v1019{margin-bottom:12px!important}
/* Excel-style compact timetables. Time rows are no longer stretched by duration. */
.dashboard-page[data-dashboard-role] .schedule-weekly-table-v1018 tbody tr{height:36px!important}
.dashboard-page[data-dashboard-role] .schedule-weekly-table-v1018 tbody td,.dashboard-page[data-dashboard-role] .schedule-weekly-table-v1018 tbody th{padding:7px 8px!important;min-height:36px;height:auto!important;line-height:1.35}
.dashboard-page[data-dashboard-role] .schedule-weekly-table-v1018 thead th{height:38px!important;padding:8px!important}
.dashboard-page[data-dashboard-role] .schedule-weekly-table-v1018.schedule-uniform-v1019 tbody tr:nth-child(even)>td:not(.schedule-break-v1018):not(.schedule-dismissal-v1018){background:#f2f5fc!important}
.dashboard-page[data-dashboard-role] .schedule-weekly-table-v1018.schedule-uneven-v1019 tbody td:not(.schedule-break-v1018):not(.schedule-dismissal-v1018){background:#fff!important}
/* Frequency controls stay one row. Only the row scrolls; tooltips are mounted outside cards. */
.schedule-frequency-form-v1019{padding:14px 16px!important}
.frequency-scroll-v1019{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:2px 0}
.frequency-controls-v1019{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:max-content}
.frequency-controls-v1019 label{margin:0!important;white-space:nowrap;font-weight:700;font-size:12px}
.frequency-controls-v1019 #schedule-frequency{width:68px;min-width:68px;height:34px!important;min-height:34px!important;padding:5px 8px!important;font-size:12px}
.frequency-controls-v1019 #schedule-frequency:disabled{background:#f2f5fc;color:#52698f;opacity:1}
.frequency-controls-v1019 #schedule-frequency::-webkit-inner-spin-button{opacity:1}
.frequency-controls-v1019 .primary{white-space:nowrap;padding:6px 10px!important;min-height:34px!important;height:34px;font-size:12px}
.frequency-slots-v1019{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
.frequency-slots-v1019 select{width:154px;flex:0 0 154px;min-width:154px;height:34px!important;min-height:34px!important;padding:4px 26px 4px 8px!important;font-size:12px}
.frequency-year-label-v1019{font-size:12px;white-space:nowrap;font-weight:600;color:#172b53}
/* Body-level fixed tooltips cannot be cropped by panel/scroll-container overflow. */
.help-bubble-v1018.tooltip-portal-v1019{display:block;position:fixed!important;z-index:100000;inset:auto;width:245px;max-width:calc(100vw - 24px);padding:8px 10px!important;font-size:11.5px!important;line-height:1.45!important;font-weight:400;pointer-events:none;box-shadow:0 4px 14px #07165317}
.help-bubble-v1018.tooltip-portal-v1019[hidden]{display:none!important}
/* Compact account tools, with explanatory remarks outside each card. */
.account-tools-v1008>.account-tool-wrapper-v1019{min-width:0}
.account-tool-wrapper-v1019>.panel>.panelhead{padding:10px 14px!important;min-height:42px!important}
.account-tool-wrapper-v1019>.panel>.panelhead h2{font-size:15px!important;line-height:1.3!important}
.account-tool-wrapper-v1019>.panel>.panelbody{padding:14px!important}
.account-tool-wrapper-v1019 .field{margin-bottom:8px!important}
.account-tool-wrapper-v1019 .field label{margin-bottom:5px!important;font-size:12px}
.account-tool-wrapper-v1019 select{height:36px!important;min-height:36px!important;padding:6px 10px!important;font-size:13px}
.account-tool-wrapper-v1019 .primary,.account-tool-wrapper-v1019 .button{font-size:12px!important;min-height:34px!important;padding:6px 10px!important}
.account-tool-wrapper-v1019 .panelbody>p{font-size:13px;margin-bottom:10px!important}
.account-tool-wrapper-v1019 .check-line{margin:10px 0!important;font-size:12px;line-height:1.4;gap:8px}
.account-tool-wrapper-v1019 .check-line input{width:17px;height:17px;min-height:17px}
.emergency-info-v1013>h3{display:flex!important;align-items:center;justify-content:flex-start;text-align:left;padding:8px 0!important;min-height:36px;margin:0!important;line-height:1.4}
.setup-pagination-v1019{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1px solid #dce3f0}
.setup-pagination-v1019 .button{font-size:12px;min-height:30px;padding:5px 10px}
.setup-pagination-v1019 .button:only-child:last-child{margin-left:auto}
.setup-pagination-v1019 .button:first-child[href*="records_page=1"]{margin-left:0}
@media(max-width:800px){.frequency-controls-v1019{gap:6px}.frequency-slots-v1019{gap:6px}.frequency-slots-v1019 select{width:135px;min-width:135px}.schedule-frequency-form-v1019{padding:12px!important}.account-tools-v1008>.account-tool-wrapper-v1019{width:100%}.system-remark-v1019{font-size:11px!important}}
.setup-pagination-v1019 .button.previous{margin-left:0!important}.setup-pagination-v1019 .button.next{margin-left:auto!important}
.dashboard-page[data-dashboard-role] .account-tool-wrapper-v1019>.panel{border-top:2px solid #071653!important}
