:root {
    --ink: #182a3a;
    --muted: #617181;
    --navy: #122b40;
    --blue: #17689d;
    --line: #dce4eb;
    --canvas: #f2f5f8;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0; min-width: 300px; background: var(--canvas); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, .ui-widget { font-family: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus, select:focus, .ui-button:focus-visible, .fc-button:focus-visible { outline: 3px solid #91c4e8; outline-offset: 3px; }
[hidden] { display: none !important; }
.topbar { background: var(--navy); color: white; }
.topbar-inner { max-width: 1448px; min-height: 76px; margin: auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; color: white; font-weight: 750; font-size: 24px; text-decoration: none; white-space: nowrap; }
.brand:hover, .brand:focus { color: white; text-decoration: none; }
.brand span { font-size: 16px; font-weight: 400; border-left: 1px solid #668096; margin-left: 15px; padding-left: 15px; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.account-info { display: flex; flex-direction: column; text-align: right; font-size: 13px; }
#account-name { font-weight: 600; }
#account-role { color: #adc2d2; font-size: 11px; margin-top: 2px; }
.topbar-link { color: #deebf5; text-decoration: none; font-size: 13px; }
.topbar-link:hover { color: white; text-decoration: underline; }
.account-button { min-height: 37px; border: 1px solid #7590a5; background: transparent; color: white; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.account-button:hover { background: #244157; }
.account-button:disabled { opacity: .65; cursor: wait; }
#content { max-width: 1448px; margin: auto; padding: 34px 24px 22px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.eyebrow { font-size: 11px; letter-spacing: 1.8px; font-weight: 750; color: #316b8f; margin: 0 0 7px; }
h1 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px; margin: 0 0 10px; }
.page-subtitle { color: #536878; margin: 0; font-size: 14px; }
.primary-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; background: var(--blue); color: white; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 650; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.primary-button:hover { background: #0e527f; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button span { font-size: 19px; font-weight: 400; line-height: 1; }
.calendar-card { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 16px #18394e06; overflow: hidden; }
.fleet-bar { padding: 19px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid #e6ecf1; }
.fleet-heading { display: flex; align-items: center; gap: 8px; }
.section-label { color: #607688; font-size: 10px; letter-spacing: 1.2px; font-weight: 750; }
.count { color: #54697a; background: #edf2f6; font-size: 11px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.vehicle-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.vehicle-chip { border: 1px solid #dfe7ee; border-radius: 5px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #40576a; }
.vehicle-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; border: 1px solid #0002; }
.loading-label { margin-left: auto; color: #6a8091; font-size: 12px; }
.page-notice { margin: 16px 24px 0; padding: 12px 15px; border: 1px solid #c5d8e7; background: #eaf3fa; border-radius: 6px; font-size: 13px; }
.page-notice.error { background: #fff0ee; border-color: #efb8b0; color: #8b291e; }
#calendar { margin: 0; padding: 23px 24px 24px; width: 100%; }
.fc { font-family: inherit; }
.fc-toolbar.fc-header-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.fc-toolbar .fc-left, .fc-toolbar .fc-right { float: none; }
.fc-toolbar .fc-center:empty, .fc-toolbar .fc-clear { display: none; }
.fc-toolbar h2 { color: var(--ink); font-size: 23px; font-weight: 650; letter-spacing: -.35px; margin: 0; text-transform: capitalize; }
.fc button { height: 36px; padding: 0 12px; font-size: 12px; font-weight: 600; }
.fc .fc-state-default { border: 1px solid #c6d2dc; border-radius: 5px; background: white; box-shadow: none; color: #355369; text-shadow: none; }
.fc .fc-button-group .fc-state-default { border-radius: 0; }
.fc .fc-button-group .fc-corner-left { border-radius: 5px 0 0 5px; }
.fc .fc-button-group .fc-corner-right { border-radius: 0 5px 5px 0; }
.fc .fc-state-hover, .fc .fc-state-down { background: #edf4f9; color: var(--blue); }
.fc .fc-state-disabled { opacity: .45; }
.fc .fc-today-button { margin-right: 8px; }
.fc .fc-icon { font-size: 16px; }
.fc th, .fc td, .fc hr, .fc thead, .fc tbody, .fc table { border-color: #e3eaf0; }
.fc .fc-day-header { background: #f5f8fa; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .5px; padding: 11px 3px; }
.fc .fc-day-header a { color: #6a7e8e; text-decoration: none; }
.fc .fc-week-number { background: #f8fafc; color: #9aabb8; font-size: 10px; }
.fc .fc-week-number a { color: inherit; }
.fc .fc-day-number { color: #536a7c; font-size: 12px; font-weight: 500; margin: 5px 6px; padding: 2px 5px; text-decoration: none; }
.fc td.fc-today { background: #eef6fd; }
.fc .fc-today .fc-day-number { background: var(--blue); border-radius: 5px; color: white; font-weight: 700; }
.fc .fc-other-month { background: #fafbfd; }
.fc .fc-other-month .fc-day-number { color: #aab6bf; opacity: 1; }
.fc .fc-sat:not(.fc-today):not(.fc-other-month), .fc .fc-sun:not(.fc-today):not(.fc-other-month) { background: #fbfcfe; }
.fc-basic-view .fc-body .fc-row { min-height: 108px; }
.fc .fc-event { border-radius: 4px; border: none; padding: 3px 5px; font-size: 11px; font-weight: 550; line-height: 1.45; margin-top: 2px; cursor: default; }
.fc .ownerClass { cursor: pointer; }
.fc .fc-content { text-overflow: ellipsis; }
.fc .closeon { float: right; padding: 0 2px 0 7px; opacity: .7; color: inherit !important; font-style: normal; cursor: pointer; }
.fc .closeon:hover { opacity: 1; }
.fc .fc-highlight { background: #c8e0f5; opacity: .55; }
.calendar-help { padding: 15px 24px; display: flex; align-items: center; gap: 10px; background: #fbfcfd; border-top: 1px solid #e6ecf1; color: #6c8091; font-size: 12px; }
.calendar-help p { margin: 0; }
.help-symbol { width: 16px; height: 16px; border: 1px solid #9aafbf; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: 0 0 16px; }
.help-note { margin-left: auto; white-space: nowrap; color: #94a1ad; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; color: #8a9baa; padding: 21px 2px 0; font-size: 11px; }
.page-footer span:first-child { font-weight: 650; color: #60788b; }

/* jQuery UI forms use the same palette and controls as the administration. */
#newres-dialog-form, #log-dialog-form, #maskbtn { display: none; }
.ui-widget { font-size: 14px; }
.ui-widget-overlay { background: #102b40; opacity: .5; }
.ui-dialog { border: 1px solid #d9e4ed !important; border-radius: 12px; padding: 0; box-shadow: 0 18px 65px #0c233540; max-width: calc(100vw - 24px); }
.ui-dialog .ui-dialog-titlebar { padding: 21px 24px 17px; border: 0; border-bottom: 1px solid #e6ecf1; border-radius: 12px 12px 0 0; background: white; color: var(--ink); }
.ui-dialog .ui-dialog-title { font-size: 20px; font-weight: 650; letter-spacing: -.3px; margin: 0; width: calc(100% - 32px); }
.ui-dialog .ui-dialog-titlebar-close { width: 28px; height: 28px; right: 16px; top: 20px; margin: 0; border: 1px solid #dce4eb; border-radius: 5px; background: #f5f8fa; }
.ui-dialog .ui-dialog-content { padding: 20px 24px 12px; background: white; color: var(--ink); }
.dialog-intro { color: #617181; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.dialog-notice { background: #eef5fb; border: 1px solid #c9ddeb; color: #345c78; border-radius: 6px; padding: 10px 12px; font-size: 12px; margin: 0 0 15px; }
.dialog-notice:empty { display: none; }
.ui-dialog fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.ui-dialog label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 650; color: #294052; }
.ui-dialog input.text, .ui-dialog select, .ui-dialog .ui-selectmenu-button, .ui-dialog .scombobox-display { width: 100%; min-height: 42px; border: 1px solid #bdcbd6; border-radius: 6px; padding: 10px 11px; margin: 0; background: white; color: var(--ink); box-shadow: none; font-size: 14px; font-family: inherit; }
.ui-dialog input.text[readonly] { cursor: pointer; background: #f9fbfd; }
.ui-dialog .ui-selectmenu-button { box-sizing: border-box; }
.ui-dialog .ui-selectmenu-text { padding: 0; margin-right: 16px; }
.ui-dialog .scombobox { width: 100% !important; }
.ui-dialog .scombobox-display { padding-right: 30px; }
.ui-dialog .scombobox-list { max-width: 100%; width: 100%; border-radius: 6px; box-shadow: 0 8px 24px #1533491a; border: 1px solid #cbd8e3; }
.ui-dialog .scombobox-list p { font-size: 13px; padding: 9px 12px; white-space: normal; }
.ui-dialog .scombobox-list p:hover { background: #edf5fc; }
.ui-dialog .ui-state-error { border-color: #cc5c5c !important; background: #fff8f7 !important; padding: 10px 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint, .label-note { color: #7c8d9b; font-size: 11px; font-weight: 400; }
.field-hint { margin: 6px 0 0; }
.ui-dialog .ui-dialog-buttonpane { background: #fbfcfd; border-top: 1px solid #e6ecf1; padding: 16px 24px; margin: 0; border-radius: 0 0 12px 12px; }
.ui-dialog .ui-dialog-buttonset { float: none; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.ui-dialog .ui-dialog-buttonpane button { margin: 0; min-height: 40px; border-radius: 6px; background: white; border: 1px solid #bdcbd6; color: #355369; padding: 9px 14px; font-size: 13px; font-weight: 600; box-shadow: none; }
.ui-dialog .ui-dialog-buttonpane button:hover { background: #edf3f7; }
.ui-dialog .ui-dialog-buttonpane #savebtn, .ui-dialog .ui-dialog-buttonpane #createbtn, .ui-dialog .ui-dialog-buttonpane #login-submit { background: var(--blue); border-color: var(--blue); color: white; }
.ui-dialog .ui-dialog-buttonpane #savebtn:hover, .ui-dialog .ui-dialog-buttonpane #createbtn:hover, .ui-dialog .ui-dialog-buttonpane #login-submit:hover { background: #0e527f; }
.ui-dialog .ui-dialog-buttonpane #removebtn { color: #ae3630; border-color: #e6b6b1; margin-right: auto; }
.ui-datepicker { border: 1px solid #c9d6e1; border-radius: 8px; padding: 10px; box-shadow: 0 8px 26px #132d451c; }
.ui-datepicker .ui-datepicker-header { border: 0; background: #edf3f8; border-radius: 5px; font-size: 12px; }
.ui-datepicker .ui-state-default { background: white; border-color: transparent; text-align: center; border-radius: 4px; padding: 5px; color: #355369; }
.ui-datepicker .ui-state-hover { background: #eaf3fa; }
.ui-datepicker .ui-state-active { background: var(--blue); color: white; }
.ui-selectmenu-menu .ui-menu { max-height: 240px; border: 1px solid #c9d6e1; border-radius: 6px; padding: 5px; box-shadow: 0 8px 24px #132d451a; }
.ui-menu .ui-menu-item-wrapper { padding: 9px 11px; font-size: 13px; }
.ui-menu .ui-state-active { background: #edf5fc; border-color: #edf5fc; color: var(--ink); }
.popover { font-family: inherit; border: 1px solid #d4e0e9; border-radius: 8px; box-shadow: 0 5px 20px #17354b19; }
.popover-header { background: #f4f8fb; color: var(--ink); font-size: 13px; }
.popover-body { color: #526a7d; font-size: 12px; line-height: 1.7; }
.mask { display: none; position: absolute; z-index: 1000; inset: 0; background: rgba(255,255,255,.85) url('images/FhHRx.gif') center no-repeat; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
    .topbar-inner { padding: 14px 20px; gap: 18px; }
    .account-actions { gap: 12px; }
    .account-info { max-width: 180px; }
    #content { padding: 26px 16px 18px; }
    .fleet-bar { padding: 16px 18px; }
    #calendar { padding: 20px 18px; }
    .help-note { display: none; }
}
@media (max-width: 620px) {
    .topbar-inner { flex-wrap: wrap; gap: 12px; }
    .brand { font-size: 22px; }
    .brand span { font-size: 14px; }
    .account-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
    .account-info { max-width: none; text-align: left; margin-right: auto; }
    .topbar-link { font-size: 12px; }
    .account-button { font-size: 12px; padding: 6px 11px; min-height: 34px; }
    h1 { font-size: 27px; }
    .page-heading { flex-direction: column; align-items: flex-start; gap: 17px; margin-bottom: 20px; }
    .primary-button { min-height: 40px; }
    .fleet-bar { gap: 10px; padding: 15px; }
    .fleet-heading { width: 100%; }
    .vehicle-legend { gap: 6px; }
    .vehicle-chip { font-size: 10px; padding: 4px 7px; }
    .loading-label { width: 100%; margin-left: 0; }
    #calendar { padding: 18px 10px; }
    .fc-toolbar h2 { font-size: 19px; }
    .fc button { height: 33px; padding: 0 9px; }
    .fc .fc-day-header { font-size: 9px; padding: 9px 1px; }
    .fc .fc-day-number { font-size: 11px; margin: 4px 1px; padding: 2px 3px; }
    .fc .fc-event { font-size: 10px; padding: 2px 3px; }
    .fc-basic-view .fc-body .fc-row { min-height: 84px; }
    .calendar-help { padding: 14px 15px; align-items: flex-start; font-size: 11px; }
    .help-symbol { margin-top: 1px; }
    .page-footer { font-size: 10px; }
    .ui-dialog .ui-dialog-titlebar { padding: 18px 18px 15px; }
    .ui-dialog .ui-dialog-title { font-size: 18px; }
    .ui-dialog .ui-dialog-content { padding: 17px 18px 12px; }
    .ui-dialog .ui-dialog-buttonpane { padding: 14px 18px; }
    .ui-dialog .ui-dialog-buttonpane button { padding: 9px 11px; }
    .form-grid { gap: 10px; }
}
