/* Styles of the KAUST Search Results widget, for both languages. Load after flatpickr.min.css: some rules override it at equal strength. */
[data-kd-search-url] { cursor: pointer; }
/* A term with no matches in the current results stays listed, gray, and not clickable.
   Child text and the checkbox set their own colors, so the row itself is faded. */
.pp-filter-item--disabled { opacity: 0.4; pointer-events: none; }
.pp-filter-item--disabled .pp-filter-item__link { cursor: default; }
/* The mobile drawer's footer: Reset and See results at equal widths, with their padding inside the half each one gets.
   See results needs the id: the site forces the gray with !important and "#s4-workspace button" resets the font size. */
.pp-filters__footer .pp-filters__button { box-sizing: border-box; align-items: center; }
#s4-workspace .pp-filters__button--primary { background-color: #3d3d3d !important; color: #fff !important; font-size: 0.8rem; line-height: inherit; }
/* On phones 100vh can reach under the browser's toolbar and hide the footer. A browser without dvh keeps the 100vh. */
@media (max-width: 899px) { .pp-search .pp-filters { height: 100dvh; } }
/* Date filter: one field in the sidebar's own colors and sizes, the calendar icon as its background.
   The id outranks the site's "#s4-workspace input[type=text]", which pads text inputs unevenly. */
.pp-filter-dates { padding: 4px 0 8px; }
#s4-workspace .pp-filter-dates input[type=text] { width: 100%; height: 36px; padding: 0 34px 0 10px; box-sizing: border-box; border: 1px solid #d5d6dc; border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 10px center; color: #414247; font: inherit; font-size: 0.875rem; text-overflow: ellipsis; cursor: pointer; }
.pp-filter-dates input::placeholder { color: #777; opacity: 1; }
#s4-workspace .pp-filter-dates input[type=text]:hover { border-color: #999; }
#s4-workspace .pp-filter-dates input[type=text]:focus { outline: none; border-color: #006daa; box-shadow: 0 0 0 3px rgba(0, 109, 170, 0.15); }
[dir="rtl"] #s4-workspace .pp-filter-dates input[type=text] { padding: 0 10px 0 34px; background-position: left 10px center; }
/* The calendar is on body, outside the region: these only restyle flatpickr's own stylesheet.
   It is also outside #s4-workspace, which sets the page font, so the font is repeated here. */
.pp-date-calendar, .pp-date-calendar button { font-family: Raleway-Light, Arial, Helvetica, sans-serif; }
[dir="rtl"] .pp-date-calendar, [dir="rtl"] .pp-date-calendar button { font-family: NeueLTArabic-Light, Arial, Helvetica, sans-serif; }
.pp-date-calendar .flatpickr-day { border-radius: 4px; }
.pp-date-calendar .flatpickr-day.today { border-color: #006daa; }
.pp-date-calendar .flatpickr-day.today:hover,
.pp-date-calendar .flatpickr-day.today:focus { background: #e1eff6; border-color: #006daa; color: #21243d; }
.pp-date-calendar .flatpickr-day.inRange { background: #e1eff6; border-color: #e1eff6; border-radius: 0; box-shadow: -5px 0 0 #e1eff6, 5px 0 0 #e1eff6; }
.pp-date-calendar .flatpickr-day.selected,
.pp-date-calendar .flatpickr-day.startRange,
.pp-date-calendar .flatpickr-day.endRange,
.pp-date-calendar .flatpickr-day.selected:hover,
.pp-date-calendar .flatpickr-day.startRange:hover,
.pp-date-calendar .flatpickr-day.endRange:hover,
.pp-date-calendar .flatpickr-day.selected:focus,
.pp-date-calendar .flatpickr-day.startRange:focus,
.pp-date-calendar .flatpickr-day.endRange:focus,
.pp-date-calendar .flatpickr-day.startRange.inRange,
.pp-date-calendar .flatpickr-day.endRange.inRange { background: #006daa; border-color: #006daa; border-radius: 4px; box-shadow: none; color: #fff; }
.pp-date-calendar .flatpickr-day.startRange.endRange { border-radius: 4px; }
.pp-date-calendar .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: none; }
.pp-date-calendar__footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-top: 1px solid #ebecf3; }
.pp-date-calendar .pp-date-calendar__clear { padding: 0 8px; height: 32px; border: 0; background: none; color: #414247; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.pp-date-calendar .pp-date-calendar__clear:hover,
.pp-date-calendar .pp-date-calendar__clear:focus-visible { color: #006daa; }
.pp-date-calendar .pp-date-calendar__apply { padding: 0 16px; height: 32px; border: 0; border-radius: 4px; background-color: #21243d; color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; transition: background-color 0.15s ease; }
.pp-date-calendar .pp-date-calendar__apply:hover,
.pp-date-calendar .pp-date-calendar__apply:focus-visible { background-color: #14152a; }
/* flatpickr forces left to right and fixes its month arrows left and right, so Arabic pages undo both. */
[dir="rtl"] .pp-date-calendar { direction: rtl; }
[dir="rtl"] .pp-date-calendar .flatpickr-months .flatpickr-prev-month { left: auto; right: 0; }
[dir="rtl"] .pp-date-calendar .flatpickr-months .flatpickr-next-month { right: auto; left: 0; }
[dir="rtl"] .pp-date-calendar .flatpickr-months svg { transform: scaleX(-1); }
/* The Arabic font makes the year field taller than flatpickr's 34px header, which pushed the month and year
   below its edge, so they are centered in it instead. The year keeps its digits clear of its up and down arrows. */
[dir="rtl"] .pp-date-calendar .flatpickr-current-month { display: flex; align-items: center; justify-content: center; padding: 0; }
[dir="rtl"] .pp-date-calendar .flatpickr-current-month .numInputWrapper { direction: ltr; }
[dir="rtl"] .pp-date-calendar .flatpickr-current-month input.cur-year { height: 34px; }
