/* The backoffice on top of the stylesheets of the old planner (css/legacy, unchanged): the theme of the
   selected location, the logo and location selector in the menu bar, and the parts the old planner drew
   with DevExpress. */

/* The theme of the selected location: App.razor puts these custom properties in the style of the html element,
   built from the colours, logo and watermark of the Location row (LocationPalette). The values here are only the
   fallback (the Ocean Encounters house style); there is no theme class per location. */
:root {
    --oe-menu: #324166;
    --oe-menu-hover: #40538E;
    --oe-header: #222D4F;
    --oe-title: #171E33;
    --oe-accent: #E30613;
    --oe-accent-text: #ffffff;
    --oe-brand: #004896;
}

body::before { background-image: var(--oe-watermark, none); }

.mnu { background-color: var(--oe-menu); border-bottom: 3px solid var(--oe-accent); display: flex; align-items: center; flex-wrap: wrap; }
.mnu > a:hover, .mnu .mnu-drop-head:hover { background-color: var(--oe-menu-hover); }
.mnu .mnu-current { box-shadow: inset 0 -3px 0 var(--oe-accent); }
.hdr { background-color: var(--oe-header); display: flow-root; }
.ttl, .titleBar { background-color: var(--oe-title); }
/* A location may give the Boats item a fixed colour (TUI Blue: red #D30E13); without one it behaves as every item. */
body .mnu .mnu-boats { background-color: var(--oe-boats-menu, transparent); }
body .mnu .mnu-boats:hover { background-color: var(--oe-boats-menu, var(--oe-menu-hover)); }

.mnu-logo { display: inline-flex; align-items: center; height: 28px; padding: 0 10px !important; background: #ffffff; }
.mnu-logo img { max-height: 24px; max-width: 120px; }
/* The Reefaro wordmark (the product name of the planner): text only, no external assets. */
.reefaro-wordmark { font-family: "Segoe UI", tahoma, arial, sans-serif; font-weight: 700; letter-spacing: 0.06em; }
.mnu .mnu-wordmark { color: #ffffff; font-size: 13px; line-height: 28px; padding: 0 12px 0 8px; white-space: nowrap; }
.login-wordmark { text-align: center; font-size: 22pt; color: var(--oe-title); margin: 0 0 10px; }
.mnu .usr { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.mnu-drop { position: relative; display: inline-block; }
.mnu-drop-head { display: inline-block; line-height: 28px; padding: 0 20px; color: #ffffff; font-size: 14px; cursor: default; }
.mnu-drop-list { display: none; position: absolute; top: 28px; left: 0; min-width: 180px; z-index: 100; flex-direction: column; }
.mnu-drop-right .mnu-drop-list { left: auto; right: 0; }
.mnu-drop:hover .mnu-drop-list, .mnu-drop:focus-within .mnu-drop-list { display: flex; visibility: visible; }
.mnu-drop-list a, .mnu-logout button { display: block; padding: 6px 14px; color: #ffffff; text-decoration: none; white-space: nowrap; }
/* The drop-down lines of the old .pmu (1440px): 300px wide, 4px 0 4px 10px, 24px high; the menu bar 28px. */
.mnu .mnu-drop-list { width: 300px; min-width: 0; border-width: 1px; box-sizing: border-box; }
.mnu .mnu-drop-list a, .mnu .mnu-logout button { float: none; height: auto; line-height: 16px; padding: 4px 0 4px 10px; }
.mnu .mnu-location { height: 24px; }
.mnu-logout { margin: 0; }
.mnu-logout button { background: none; border: 0; font: inherit; font-size: 14px; width: 100%; text-align: left; cursor: pointer; }
.mnu-drop-list a:hover, .mnu-logout button:hover { background-color: var(--oe-menu-hover); }

.mnu-locations { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 4px; overflow: hidden; }
.mnu .mnu-location { padding: 0 12px; line-height: 24px; font-size: 13px; color: #ffffff; text-decoration: none; }
.mnu .mnu-location.is-active { background-color: var(--oe-accent); color: var(--oe-accent-text); font-weight: bold; }

.view-only-banner { background: #FFF9C4; border-bottom: 1px solid #C0B060; padding: 4px 12px; font-size: 9.5pt; }

/* Modals above the sticky headers (the 2.04 fix that never reached styles.css). */
.k-window, .k-dialog { z-index: 2000 !important; }
.k-overlay { z-index: 1990 !important; }

/* Pages of the backoffice that the old planner did not have. */
.bo-page { padding: 12px 16px; }
.bo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 12px; align-items: start; }
.bo-tile { background: rgba(255, 255, 255, 0.92); border: 1px solid #767880; border-radius: 4px; min-width: 0; overflow-x: auto; }
.bo-tile h2 { margin: 0; padding: 6px 10px; background: var(--oe-title); color: #ffffff; font-size: 11pt; }
/* A location tile sets --oe-title of its own location inline (LocationPalette.TileStyle). */
.bo-tile table { width: 100%; border-collapse: collapse; }
.bo-tile td, .bo-tile th { padding: 3px 6px; border-bottom: 1px solid #E0E0FF; text-align: left; white-space: nowrap; }
.bo-tile thead th { background: #E8EAF6; }
.bo-tile table + table { margin-top: 6px; }
.bo-tile td.num, .bo-tile th.num { text-align: right; }
.bo-error { background: #FFD6D2; color: #C02020; border: 1px solid #C0475D; padding: 6px 10px; margin: 8px 0; }
.bo-ok { background: #E8F5E9; color: #1B5E20; border: 1px solid #66BB6A; padding: 6px 10px; margin: 8px 0; }
.bo-toolbar { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }

/* Login (mstr_unlogged.Master + unlogged.css): panel #EEEEFF, 35vw, title bar rgba(0,0,0,0.6). */
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11pt; }
.login-panel { width: 35vw; min-width: 320px; background: #EEEEFF; border: 1px solid #767880; padding: 16px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
@media (max-width: 1000px) { .login-panel { width: 96vw; } }
.login-logo { display: block; max-width: 25vw; max-height: 15vh; margin: 0 auto 12px; }
.login-title { background: rgba(0, 0, 0, 0.6); color: #ffffff; padding: 6px 10px; font-weight: bold; margin-bottom: 12px; }
.login-form { display: grid; gap: 6px; }
.login-form input { font-size: 14pt; padding: 4px 6px; }
.login-button { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 11pt; padding: 6px 12px; background: #ADBBFF; border: 1px solid #576380; font-weight: bold; cursor: pointer; }
.login-button img { width: 24px; height: 24px; }
.login-error { margin-top: 12px; }
/* Change your password (changePassword.aspx): the panel in the middle of the window, labels left of the fields (J2). */
.change-password { max-width: 460px; margin: 12vh auto 0 auto; }
.change-password .login-form { grid-template-columns: 160px minmax(0, 1fr); align-items: center; column-gap: 8px; }
.change-password .login-form > div, .change-password .login-form > .vldSP { grid-column: 1 / -1; }
.change-password .login-form label { text-align: right; }

.bo-form { display: grid; gap: 8px; }
.bo-form label { display: grid; gap: 2px; }
.bo-form fieldset { border: 1px solid #B6C0FF; padding: 6px 10px; }
.bo-check { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 6px; margin-right: 12px; }
.k-grid .k-master-row { cursor: pointer; }

/* Employees (users.css): role chips blue, company types yellow. */
.emp-chip { display: inline-block; margin: 0; padding: 0 3px; border-radius: 0; font-size: 9.5pt; }
.emp-chip-role { background: rgba(0, 0, 255, 0.3); }
.emp-chip-type { background: rgba(255, 255, 0, 0.3); }
.emp-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.emp-availability { border-collapse: collapse; }
.emp-availability th, .emp-availability td { padding: 2px 6px; text-align: center; border: 1px solid #E0E0FF; }
.emp-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin-top: 8px; }
.emp-holidays td { padding: 2px 4px; }
.emp-account-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 2px; }
.vld:empty { display: none; }
.vld { color: #C02020; background: #FFD6D2; padding: 1px 4px; font-size: 9pt; }

/* Day header of the trip pages, measured on the old .hdr (1440px): 38px high with 2px on top, 32px icons against
   each other (cal32, prv32, nxt32, add32) at the left, Print all and Refresh 2px apart at the right, TODAY 59 x 26
   (.today32: transparent, white bold text, border #505050), the title in two .top parts. Border-box: no 1456px page. */
.day-hdr { display: flex; align-items: flex-start; gap: 0; padding: 2px 0 0 0; box-sizing: border-box; width: 100%; min-height: 38px; margin-bottom: -2px; color: #ffffff; position: sticky; top: 31px; z-index: 9; }
.day-hdr-icon { background: none; border: 0; padding: 0; margin: 0; width: 32px; height: 32px; cursor: pointer; display: block; flex: 0 0 auto; }
.day-hdr-icon img { width: 32px; height: 32px; display: block; }
.day-hdr-icon:hover { background-color: #8080FF; }
.day-hdr-right { margin-left: auto; display: flex; }
.day-hdr-right .day-hdr-icon { margin-right: 2px; }
.today-button { flex: 0 0 auto; box-sizing: border-box; height: 26px; line-height: 24px; margin: 4px 6px 0 2px; padding: 0 8px; border: 1px solid #505050; border-radius: 3px; font-family: inherit; font-weight: bold; font-size: 12px; color: inherit; background: transparent; cursor: pointer; user-select: none; }
.today-button:hover { background: #D0D8E8; }
.day-hdr .day-hdr-title { float: none; flex: 0 0 auto; font-weight: bold; font-size: 110%; height: 20px; padding: 8px 3px 8px 10px; white-space: nowrap; }
.day-hdr-calendar .k-datepicker { background: #ffffff; }
.mnu { position: sticky; top: 0; z-index: 10; }

/* Trip rows: one horizontal row of cards per section, no wrap, horizontal scrollbar (boats.aspx .mrning/.after):
   cards against the left edge 7px apart, each as high as its content, and an empty section is 0px high (no band). */
.trip-row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 7px; overflow-x: auto; padding: 0; box-sizing: border-box; width: 100%; }
/* A boat card is 628px (the client lines of the old card); a long Additional note wraps inside it (comparison B2). */
.trip-row .boatSpc { flex: 0 0 auto; width: 628px; border: 1px solid #404080; background: #ffffff; }
.trip-row .titleButton { display: inline-block; }
a.titleButton { text-decoration: none; }
.bo-inline { display: flex; gap: 6px; }
.select-list { max-height: 300px; overflow: auto; display: flex; flex-direction: column; margin: 6px 0; }
.select-line { padding: 2px 4px; }
.select-line:hover { background: #A0A0FF; }
.clientFill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media print {
    .mnu, .day-hdr, .view-only-banner, .bo-toolbar, .no-print { display: none !important; }
    body::before { display: none; }
}

/* Print views (replace the DevExpress reports). */
.print-trip { page-break-after: always; margin-bottom: 24px; }
.print-trip h2 { background: #171E33; color: #ffffff; margin: 0; padding: 4px 8px; font-size: 13pt; }
.print-head { display: flex; justify-content: space-between; padding: 4px 0; font-weight: bold; }
.print-table { width: 100%; border-collapse: collapse; margin: 4px 0; }
.print-table th, .print-table td { border: 1px solid #808080; padding: 2px 4px; text-align: left; font-size: 10pt; }
.print-max { background: #FFFF88; }
.print-max-over { background: #FF8888; }
.print-over { color: #800000; }
.print-sign { border: 1px solid #808080; padding: 6px; font-size: 14pt; }

/* Courses (courses.aspx): box 545px plus its border; highlight #1BF259, group of 8 #E0E0FF, max line #FFFF88. */
.trip-row .course-card { width: 547px; }

/* The client lists of Courses, Charters, Shore dives, Animal Encounters and Sunscape as the old grid (clName, clHotel,
   clDep, clBool, clDet, crClRem): white bold centred headings, every cell with a #404080 line on the right and below,
   lines of 18px plus the line, the number small and grey (#9595AA) without a line, the last column without a line. */
.course-clients, .ap-clients { width: 100%; table-layout: fixed; border-collapse: collapse; background: #ffffff; border-top: 1px solid #404080; margin-top: 1px; }
.course-clients th, .ap-clients th { box-sizing: border-box; background: #ffffff; text-align: center; font-weight: bold; height: 18px; line-height: 16px; padding: 1px 0; border-right: 1px solid #404080; border-bottom: 1px solid #404080; white-space: nowrap; overflow: hidden; }
.course-clients td, .ap-clients td { box-sizing: border-box; height: 19px; line-height: 16px; padding: 1px 0 1px 1px; border-right: 1px solid #404080; border-bottom: 1px solid #404080; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-clients tr > :first-child, .ap-clients tr > :first-child { width: 20px; padding-left: 2px; color: #9595AA; border-right: 0; text-align: left; }
.course-clients tr > :last-child, .ap-clients tr > :last-child { border-right: 0; }
.course-clients th:nth-child(2) { width: 111px; }
.course-clients th:nth-child(3) { width: 36px; }
.course-clients th:nth-child(4) { width: 61px; }
.course-clients th:nth-child(5), .course-clients th:nth-child(6) { width: 41px; }
.course-clients th:nth-child(7), .course-clients th:nth-child(8) { width: 46px; }
.course-clients td:nth-child(3), .course-clients td:nth-child(5), .course-clients td:nth-child(6) { text-align: center; }
.course-clients .clNumber { color: #9595AA; }
.course-clients .clientName { cursor: pointer; }
.course-clients .clientName:hover { background: #8080FF; }
.course-high { background: #1BF259; }
.course-group { background: #E0E0FF; }
.course-max td { background: #FFFF88; border: 1px solid #808040; }
.course-comment { max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Monthly planner (planner.aspx at 1440px): the month bar #171E33 of 25px; the heading three dark lines of 20px with
   white text and 1px between them, the buttons (40px icons) in its left part above the column titles; one line of 20px
   per reservation with 1px between the cells on #B6C0FF; left columns ID 54, Name 130, Pax 22, Arrival 43, Hotel 32,
   Operator 151, Rm 22, the days share the rest of the window, the delete cross 20px; totals fixed at the bottom. */
.pl-monthbar { background: #171E33; color: #ffffff; font-weight: bold; height: 25px; line-height: 25px; padding: 0 4px; box-sizing: border-box; position: sticky; top: 31px; z-index: 9; }
.pl-scroll { overflow: auto; height: calc(100vh - 56px); background: rgb(182, 192, 255); }
.pl-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 1px; font-size: 9.5pt; }
.pl-col-id { width: 54px; }
.pl-col-name { width: 130px; }
.pl-col-pax { width: 22px; }
.pl-col-arrival { width: 43px; }
.pl-col-hotel { width: 32px; }
.pl-col-operator { width: 151px; }
.pl-col-rm { width: 22px; }
.pl-col-delete { width: 20px; }
.pl-table th { background: #171E33; color: #ffffff; font-weight: normal; height: 20px; line-height: 20px; padding: 0; position: sticky; z-index: 2; white-space: nowrap; overflow: hidden; }
.pl-table thead tr:nth-child(1) th { top: 0; }
.pl-table thead tr:nth-child(2) th { top: 21px; }
.pl-table thead tr:nth-child(3) th { top: 42px; }
.pl-table td { height: 20px; line-height: 20px; padding: 0 0 0 2px; white-space: nowrap; overflow: hidden; }
.pl-table th.pl-left { text-align: left; padding-left: 2px; }
.pl-table th.pl-tools { padding: 0; vertical-align: top; overflow: visible; z-index: 3; }
.pl-strip { display: flex; align-items: center; gap: 5px; padding: 0 5px 0 10px; height: 41px; }
.pl-strip .day-hdr-icon, .pl-strip .day-hdr-icon img { width: 40px; height: 40px; }
.pl-strip .today-button { margin: 0 6px 0 2px; }
.pl-spacer { flex: 1; }
.pl-excel { display: inline-flex; }
.pl-excel img { width: 24px; height: 24px; }
.pl-excel:hover img { transform: scale(1.25); background: rgb(105, 240, 174); }
.pl-table tfoot td { position: sticky; bottom: 0; z-index: 2; background: #171E33 !important; color: #ffffff; }
.pl-left { text-align: left; white-space: nowrap; }
.pl-id, .pl-rm { text-align: center; padding-left: 0 !important; }
.pl-day { text-align: center; cursor: pointer; position: relative; }
.pl-first { border-left: 2px solid #FFFF00 !important; }
.pl-cell { text-align: center; padding-left: 0 !important; }
.pl-delete-col { text-align: center; padding-left: 0 !important; }
.pl-multi { background: #1BF259 !important; }
.pl-row td { background: rgb(224, 224, 255); }
.pl-row-large td { background: rgb(255, 224, 224); }
.pl-row-single td { background: #ffffff; }
.pl-row-requested td.pl-name { box-shadow: inset 4px 0 0 #FF6700; }
.pl-name { cursor: pointer; }
.pl-name:hover { background: #8080FF; }
.pl-delete { width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
.pl-daymenu { position: absolute; top: 100%; left: 0; z-index: 20; color: #000000; background: #ffffff; border: 1px solid #435789; width: 200px; display: flex; flex-direction: column; text-align: left; }
.pl-daymenu a { padding: 3px 8px; color: #000000; text-decoration: none; }
.pl-daymenu a:hover { background: #B6D3F9; }
.pl-passengers { width: 100%; border-collapse: collapse; }
.pl-passengers th { background: #D1C4E9; text-align: left; padding: 2px 4px; }
.pl-activities { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pl-activity { background: rgb(209, 196, 233); border: 1px solid rgb(149, 117, 205); padding: 4px 6px; }
.pl-activity:hover { background: rgb(187, 222, 251); }
.pl-overloaded { background: rgb(233, 196, 209) !important; }
.pl-pax { font-weight: bold; color: #000088; margin-left: 6px; }
.pl-remaining { font-weight: bold; color: #880000; margin-left: 6px; }
.pl-select { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 10px; }
.pl-select-col { max-height: 68vh; overflow: auto; border: 1px solid #C0C0D0; padding: 4px; }
.pl-select-day { background: rgb(105, 98, 117); color: #ffffff; font-weight: bold; padding: 2px 6px; margin-top: 6px; }
.pl-select-item { padding: 2px 4px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.pl-select-item.is-focused { background: rgb(253, 253, 200); }
.pl-select-hint { background: #C0C0C0; color: #404040; padding: 20px; text-align: center; }
.pl-change { margin-bottom: 6px; }
.pl-added { color: rgb(64, 64, 200); background: rgba(224, 224, 255, 0.7); }
.pl-removed { color: rgb(200, 64, 64); background: rgba(255, 224, 224, 0.7); }
.pl-overload-text { color: #E07000; font-weight: bold; }

/* Daily schedule (daily.aspx), measured on the old page at 1440px: three columns of (100% - 10px) / 3 against the
   edges with 5px between them, blocks 5px apart (.itmGrp #C5CAE9), titles #263238 of 26px exactly as wide as the
   block (text-indent 5px, 26px icons), lines of 24px with 1px between them, the caption 124px bold and right, every
   value and column heading centred, a table heading as one dark bar without lines. */
.daily-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 0; }
.daily-col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.itmGrp { background: #C5CAE9; }
.daily-col > .itmGrp + .itmGrp { margin-top: 5px; }
/* The boat and course schedule keep 35px of the block colour under their lines (as daily.aspx at 1440px). */
.daily-list { padding-bottom: 35px; }
.shopTitle { box-sizing: border-box; width: 100%; background: #263238; color: #ffffff; font-weight: bold; height: 26px; line-height: 26px; padding: 0; text-indent: 5px; display: flex; align-items: center; gap: 0; white-space: nowrap; }
.daily-icon { display: inline-flex; cursor: pointer; margin-left: auto; margin-right: 2px; text-indent: 0; width: 26px; height: 26px; align-items: center; justify-content: center; }
.shopTitle .daily-icon + .daily-icon { margin-left: 0; }
.daily-icon img { width: 22px; height: 22px; transition: transform 0.1s; }
.daily-icon:hover img { transform: scale(1.2); }
.daily-line { display: grid; grid-template-columns: 124px 1fr 1fr 1fr; column-gap: 1px; margin-top: 1px; }
.shopTitle + .daily-line { margin-top: 0; }
.daily-line > span { background: #E8EAF6; line-height: 24px; height: 24px; padding: 0; text-align: center; white-space: nowrap; overflow: hidden; }
.daily-line > .daily-cap { font-weight: bold; text-align: right; }
.daily-wide { grid-column: span 3; }
.daily-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.daily-table th { background: #263238; color: #ffffff; font-weight: bold; text-align: center; height: 26px; line-height: 26px; padding: 0; white-space: nowrap; }
.daily-table td { background: #E8EAF6; background-clip: padding-box; height: 24px; line-height: 24px; padding: 0; text-align: center; white-space: nowrap; border-left: 1px solid transparent; border-top: 1px solid transparent; }
.daily-table tr > td:first-child { border-left: 0; }
.daily-table tr:nth-child(2) > td { border-top: 0; }
.daily-after td { background: #FFE6E6; }
.daily-staff.is-target { cursor: copy; }
.daily-staff:focus { outline: 2px solid #4040FF; }
.btStaffDropOver { background: #90EE90 !important; outline: 2px dashed #228B22; }
.daily-remarks { min-height: 33.33vh; }
/* Remarks as the old .dayRemark: on the block colour, a #404080 line below, text-indent 2px. */
.daily-remark { display: flex; gap: 6px; padding: 1px 0; text-indent: 2px; border-bottom: 1px solid #404080; }
.daily-remark-text { flex: 1; cursor: pointer; white-space: pre-wrap; }
.daily-remark-text:hover { background: #8080FF; }
.daily-holiday { color: #CC0000; font-style: italic; padding: 2px 6px; }
.daily-click { cursor: pointer; }
.daily-click:hover { background: #8080FF !important; }
.daily-confirmed { width: 100px; }
/* Available employees (.availPanel / .avlHeader / .avlRow): the block filled to 66.66vh, a dark heading of 20px,
   lines of 19px alternately the block colour and #E6E6FF with a #B6C0FF line, black ticks, columns 130/90/30/110. */
.daily-available { height: 66.66vh; overflow: auto; }
.daily-available .shopTitle { position: sticky; top: 0; z-index: 1; }
.daily-available table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.daily-available th { background: #171E33; color: #ffffff; font-weight: bold; text-align: left; height: 20px; line-height: 16px; padding: 2px 0; text-indent: 3px; }
.daily-available td { background: transparent; border-left: 0; border-top: 0; height: 19px; line-height: 16px; padding: 1px 0; text-indent: 3px; text-align: left; border-bottom: 1px solid #B6C0FF; white-space: nowrap; overflow: hidden; }
.daily-available tr > :nth-child(1) { width: 130px; }
.daily-available tr > :nth-child(2) { width: 90px; }
.daily-available tr > :nth-child(3), .daily-available tr > :nth-child(4), .daily-available tr > :nth-child(5) { width: 30px; text-align: center; text-indent: 0; }
.daily-available tr > :nth-child(6) { width: 110px; }
.daily-available input[type="checkbox"] { margin: 0; vertical-align: middle; pointer-events: none; accent-color: #333333; }
.daily-employee { cursor: grab; }
.daily-employee:nth-child(odd) td { background: #E6E6FF; }
.daily-employee:hover td { background: #C0C0FF; }
@media (max-width: 1100px) { .daily-columns { grid-template-columns: 1fr; } }

/* Shared popups of the old master page (UiFeedbackHost): "Working..." overlay, Yes / No confirmation, error popup.
   Fixed and above the sticky headers and Telerik windows (the 2.04 z-index fix of the old planner). */
.oe-busy { position: fixed; inset: 0; width: auto; height: auto; z-index: 20000; opacity: 0; animation: oe-busy-show 0s linear 0.15s forwards; cursor: progress; }
.oe-wrk { position: fixed; left: 50%; top: 45%; width: 300px; margin-left: -150px; line-height: 30px; }
@keyframes oe-busy-show { to { opacity: 1; } }
.oe-confirm .k-window-titlebar { background: #171E33; color: #ffffff; }
.oe-confirm-text { white-space: pre-line; padding: 6px 2px 12px 2px; font-size: 11pt; }
.oe-error-window .k-window-titlebar { background: #600808; color: #ffffff; }
.oe-error-window .k-window-content { background: #FFE0E0; }
.oe-error-text { white-space: pre-wrap; font-family: Consolas, monospace; font-size: 9pt; max-height: 50vh; overflow: auto; padding-bottom: 10px; }
.oe-dialog-buttons { display: flex; gap: 8px; justify-content: flex-end; }

/* Tooltip box (backoffice.js, data-tip): .toolTip of the planner, .commentTooltip of the Boats comments. */
#oeTip { position: fixed; display: none; z-index: 30000; pointer-events: none; padding: 3px 5px; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35); white-space: normal; }
#oeTip.commentTooltip { min-width: 250px; max-width: 400px; background-color: #ffffcc; border: 1px solid #999; }
#oeTip.toolTip { width: 350px; background-color: #ffffff; border: 1px solid #435789; font-size: 10pt; }
#oeTip .oe-tip-alert { color: #CC0000; font-weight: bold; }
#oeTip .oe-tip-head { font-weight: bold; border-bottom: 1px solid #B6C0FF; margin-bottom: 2px; }

/* Calendar popup of the day header (calendar.svg, week numbers, Sunday first). */
.day-hdr-calendar-popup { position: absolute; top: 44px; left: 8px; z-index: 600; background: #ffffff; border: 1px solid #435789; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); color: #000000; }
.day-hdr-backdrop { position: fixed; inset: 0; z-index: 599; }

/* Test version banner (old #testMarker). */
#testMarker { left: 50%; transform: translateX(-50%); padding: 2px 12px; pointer-events: none; }

/* Account pages (two-factor setup, forgot password), dashboard links and the audit log filter. */
.login-links { margin-top: 10px; font-size: 10pt; }
.mfa-panel { max-width: 720px; margin-bottom: 12px; }
.mfa-qr { display: block; margin: 8px 0 12px; border: 1px solid #767880; background: #fff; }
.mfa-key { font-size: 12pt; letter-spacing: 1px; }
.mfa-codes { columns: 2; font-size: 12pt; }
.audit-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 0; }
.dash-location-link { color: #ffffff; text-decoration: none; display: block; }
.dash-location-link:hover { text-decoration: underline; }
.dash-total td { border-top: 2px solid #767880; }
.bo-tile td[colspan] { white-space: normal; }

/* Telerik primary colour in the colours of the planner instead of the Kendo default (salmon): navy of the old menu bar
   for Ocean Encounters. Kendo derives hover/active from the primary colour on :root, so every variant is set on :root
   explicitly; the selected location overrides them in the style of the html element (LocationPalette). */
:root {
    --kendo-color-primary: #324166;
    --kendo-color-primary-hover: #40538E;
    --kendo-color-primary-active: #222D4F;
    --kendo-color-primary-emphasis: #7A88B3;
    --kendo-color-primary-subtle: #E6E6FF;
    --kendo-color-primary-subtle-hover: #D6DDFF;
    --kendo-color-primary-subtle-active: #B6C0FF;
    --kendo-color-primary-on-subtle: #222D4F;
    --kendo-color-primary-on-surface: #324166;
    --kendo-color-on-primary: #ffffff;
}

/* Lists > Business locations: colour swatches and the image preview of the edit window. */
.bl-swatch { display: inline-block; width: 18px; height: 18px; border: 1px solid #767880; vertical-align: middle; margin-right: 6px; }
.bl-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bl-preview { max-height: 48px; max-width: 200px; border: 1px solid #C0C0D0; background: #ffffff; padding: 2px; }
.bl-help { font-size: 8.5pt; color: #505080; }

/* Dialogs in the look of the old planner popups (comparison 2026-11-21, I1, I2, I8, I10; the windows stay Telerik
   windows): a dark title bar, labels left of the field (100px, right), compact fields, and Submit / Cancel always at the
   bottom as two buttons over the whole width (#ADBBFF, bold black), the same in every window. */
.k-window-titlebar { background: #171E33; color: #ffffff; padding: 4px 8px; min-height: 26px; box-sizing: border-box; }
.k-window-titlebar .k-button { color: #ffffff; }
.k-window-content { display: flex; flex-direction: column; padding: 8px; }
.k-window-content > .bo-toolbar:has(> .oe-submit), .k-window-content > .bo-toolbar:has(> .oe-cancel), .k-window-content > .oe-dialog-buttons { order: 99; margin: 10px 0 0 0; gap: 2px; justify-content: stretch; }
.k-window .oe-submit, .k-window .oe-cancel, .k-window .oe-dialog-buttons .k-button { flex: 1 1 0; min-height: 23px; padding: 2px 6px; border-radius: 0; border: 1px solid #576380; background: #ADBBFF; color: #000000; font-weight: bold; }
.k-window .oe-submit:hover, .k-window .oe-cancel:hover, .k-window .oe-dialog-buttons .k-button:hover { background: #8C9EFF; }
.k-window .bo-form { gap: 3px; }
.k-window .bo-form > label:not(.bo-check) { grid-template-columns: 100px minmax(0, 1fr); align-items: center; column-gap: 6px; }
.k-window .bo-form > label:not(.bo-check) > :first-child { grid-column: 2; }
.k-window .k-input-md .k-input-inner, .k-window .k-picker-md .k-input-inner { padding-block: 1px; }
.k-window .k-input-md .k-input-button, .k-window .k-picker-md .k-input-button { padding-block: 1px; }

/* Edit client: the check boxes each on their own line (comparison I5); Highlight: the white box clears (I6). */
.bo-check-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.bo-check-lines .bo-check { margin-right: 0; }
.highlightColorSwatch.highlight-clear { background-color: #ffffff; }

/* The calendar popups compact as the old DevExpress calendar, weekend days red (comparison I9). */
.day-hdr-calendar-popup .k-calendar { font-size: 11px; }
.day-hdr-calendar-popup .k-calendar .k-calendar-td, .day-hdr-calendar-popup .k-calendar .k-calendar-th { width: 24px; height: 20px; padding: 0; }
.day-hdr-calendar-popup .k-calendar .k-link { width: 22px; height: 18px; padding: 0; }
.k-calendar .k-weekend .k-link { color: #CC0000; }

/* The notice for a window that is not 1440 pixels wide (backoffice.js): small, at the top in the middle, above the
   sticky headers and below the Telerik windows; a click anywhere on it hides it for the session. */
.oe-width-notice { position: fixed; top: 34px; left: 50%; transform: translateX(-50%); z-index: 1900; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 40px); padding: 6px 8px 6px 12px; background: #FFF9C4; color: #000000; border: 1px solid #C0B060; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); font-size: 9.5pt; cursor: pointer; }
.oe-width-notice-close { background: none; border: 0; padding: 0 4px; font-size: 16px; line-height: 16px; font-weight: bold; color: #404040; cursor: pointer; }
.oe-width-notice-close:hover { color: #C02020; }
