/* Styles of the planners area of the backoffice: Charters, Shore dives, Animal Encounters and Sunscape
   (charters.aspx, shores.aspx, animal.aspx, breezes.aspx). Widths and colours of the old pages (styles.css). */

/* Day pages: charter box 583px, shore box 442px, white with the navy border of the old boxes. */
.trip-row .ap-card { flex: 0 0 auto; border: 1px solid #404080; background: #ffffff; }
.trip-row .ap-card-charter { width: 583px; }
.trip-row .ap-card-shore { width: 444px; }

/* The client lists: the grid itself is shared with Courses (backoffice.css, .ap-clients); here the column widths of
   the old pages (clName 110, clHotel 35, clBool 40, clDet 45, dsdName 107, dsdDep / dsdBool 50, dsdRoom 35). */
.ap-clients .ap-count { color: #9595AA; }
.ap-clients th:nth-child(2) { width: 111px; }
.ap-clients-charter th:nth-child(3), .ap-clients-shore th:nth-child(3), .ap-clients-animal th:nth-child(3) { width: 36px; }
.ap-clients-charter th:nth-child(4), .ap-clients-charter th:nth-child(5) { width: 46px; }
.ap-clients-charter th:nth-child(7) { width: 16px; }
.ap-clients-shore th:nth-child(4) { width: 41px; }
.ap-clients-shore th:nth-child(5), .ap-clients-shore th:nth-child(6) { width: 46px; }
.ap-clients-animal th:nth-child(5) { width: 41px; }
.ap-clients-dsd th:nth-child(2), .ap-clients-gsd th:nth-child(2) { width: 108px; }
.ap-clients-dsd th:nth-child(3), .ap-clients-dsd th:nth-child(4), .ap-clients-gsd th:nth-child(3), .ap-clients-gsd th:nth-child(4) { width: 51px; }
.ap-clients td:nth-child(3) { text-align: center; }
.ap-clients-dsd td, .ap-clients-gsd td { text-align: center; }
.ap-clients-dsd td.ap-name, .ap-clients-gsd td.ap-name, .ap-clients-dsd td.ap-count, .ap-clients-gsd td.ap-count { text-align: left; }
.ap-clients-shore td:nth-child(4), .ap-clients-animal td:nth-child(5) { text-align: center; }
.ap-clients .ap-name.is-editable { cursor: pointer; }
.ap-clients .ap-name.is-editable:hover { background: #8080FF; }
.ap-clients .ap-comment { max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-clients .ap-flag { text-align: center; font-weight: bold; color: #C00000; }
.ap-clients .ap-high td { background: #1BF259; }
.ap-clients .ap-max td { background: #FFFF88; border: 1px solid #808040; color: #000000; }

/* Sign text of a charter (click to edit, 300 characters). */
.ap-sign { min-height: 36px; padding: 3px 4px; white-space: pre-wrap; border-top: 1px solid #404080; }
.ap-sign.is-editable { cursor: pointer; }
.ap-sign.is-editable:hover { background: #E0E0FF; }
.ap-sign-edit { padding: 4px; border-top: 1px solid #404080; }

/* Five-day pages: the browsed day and the four after it, columns against each other, a horizontal scroll. */
.ap-days { display: flex; gap: 0; overflow-x: auto; padding: 0; align-items: stretch; }

/* Animal Encounters (.animalDay): day columns of 330px (the fifth half in view at 1440px), #C0C0E0 (even day code) /
   #C0E0C0 (odd), as high as the window; the day title half transparent (rgba(23,30,51,0.5)). */
.ap-animal-day { flex: 0 0 330px; width: 330px; min-height: calc(100vh - 110px); padding-bottom: 6px; }
.ap-animal-day > .ttl { position: sticky; top: 0; background-color: rgba(23, 30, 51, 0.5); }
.ap-animal-box { margin: 4px; border: 1px solid #404080; background: #ffffff; }
.ap-animal-box .tripVal { width: auto; flex: 1; }

/* Sunscape (breezes.aspx): columns of 287px against each other on #E6E6FF, the day title #171E33 over the whole
   column, the DSD box under it and 5px lower the GSD box (dsdSpc / gsdSpc, 285px plus the border). */
.ap-days-sunscape { background: #E6E6FF; }
.ap-sunscape-day { flex: 0 0 287px; width: 287px; background: transparent; padding-bottom: 0; }
.ap-sunscape-title { background: #171E33; }
.ap-sunscape-boxes { display: flex; gap: 0; padding: 0; }
.ap-sunscape-boxes + .ap-sunscape-boxes { margin-top: 5px; }
.ap-sunscape-box { flex: 1 1 0; min-width: 0; border: 1px solid #404080; background: #ffffff; }
.ap-sunscape-box .ap-clients { margin-top: 20px; }
.ap-sunscape-box .tripVal { width: auto; flex: 1; }

/* The data lines of the Courses, Charters, Shore dives, Animal and Sunscape boxes as the old .line / .lineCap: white,
   a #404080 line below, the caption 100px underlined and right with a line at its right, values bold and centred
   (the grey 1px gaps of the boats card are only on Boats). */
.course-card .tripSpace, .ap-card .tripSpace, .ap-animal-box .tripSpace, .ap-sunscape-box .tripSpace { background-color: #ffffff; }
.course-card .tripLine, .ap-card .tripLine, .ap-animal-box .tripLine, .ap-sunscape-box .tripLine { margin-top: 0; line-height: 20px; border-bottom: 1px solid #404080; }
.course-card .tripCap, .ap-card .tripCap, .ap-animal-box .tripCap, .ap-sunscape-box .tripCap { width: 100px; padding-right: 3px; border-right: 1px solid #404080; }
.course-card .tripVal, .ap-card .tripVal, .ap-animal-box .tripVal, .ap-sunscape-box .tripVal { margin-left: 0; background-color: #ffffff; }
