/* QWEK-230 (AC13). The base look of every dashboard page, loaded by
   `home_car_partner/base.html` after the `dashboard` bundle.

   Remark's page styles (`site.scss`, `bootstrap-extend.scss`) are no longer
   in the bundle. Pages nobody restyled still took a few things from them
   without saying so: the grey page, its padding, the page title, the
   footer, the white panel and the look of a modal. Those few are here, in
   plain CSS on the tokens of `qwekee_v2.css`; the screenshot comparison of
   AC19 (`docs/scripts/qwek230_screens.py`) found what is listed. Bootstrap
   itself (`classic/scss/bootstrap.scss`) still gives the reboot, the grid,
   the form fields, the modal and the utilities. */

/* Remark's reboot: the 14 px root the bundle's rem sizes are counted on,
   buttons that take their text colour, and the heading margins. */
html { font-size: 14px; }
/* Bootstrap's reboot says the same; repeated so a page is laid out the
   same where the SCSS is not compiled (the test settings). */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html, body { height: 100%; }
button { color: inherit; }
a:active, a:hover, a:focus { outline: 0; }
h1, h2, h3, .h1, .h2, .h3 { margin-top: 22px; margin-bottom: 11px; }
h4, h5, h6, .h4, .h5, .h6 { margin-top: 11px; margin-bottom: 11px; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { text-shadow: rgba(0, 0, 0, .15) 0 0 1px; }
/* Remark's font weights: light text, normal headers, medium bold. */
body, label { font-weight: 300; }
th { font-weight: 400; }
b, strong, dt, .badge { font-weight: 500; }
/* Remark's table and alert. */
.table { color: #76838f; }
.table thead th, .table tfoot th { font-weight: 400; color: #526069; border-bottom-width: 1px; }
.table thead:first-child th { border-top: none; }
.alert { padding-right: 20px; padding-left: 20px; }

/* Remark's form fields (bootstrap-extend `_forms`): the lighter text, the
   pale border, no inner shadow, the drawn arrow of a select. Copied from
   its compiled output, so no field changes. */
.form-control {
  box-sizing: border-box;
  height: 2.573rem;
  font-weight: 100;
  border-color: #e4eaec;
  box-shadow: none;
  transition: box-shadow 0.25s linear, border 0.25s linear, color 0.25s linear, background-color 0.25s linear;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.form-control::placeholder {
  font-weight: 100;
}
select.form-control {
  padding-right: 30px;
  background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAFCAYAAABB9hwOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpiNWZkMzNlMC0zNTcxLTI4NDgtYjA3NC01ZTRhN2RjMWVmNjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTUxRUI3MDdEQjk4MTFFNUI1NDA5QTcyNTlFQzRERTYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTUxRUI3MDZEQjk4MTFFNUI1NDA5QTcyNTlFQzRERTYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ZWNiNjQzMjYtNDc1Yi01OTQxLWIxYjItNDVkZjU5YjZlODA2IiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6N2RlYzI2YWMtZGI5OC0xMWU1LWIwMjgtY2ZhNDhhOGNjNWY1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+AXTIGgAAAFRJREFUeNpidI1KSWFgYDBlwASngXjOrqWzGcgBTEC8DIjfo4m/h4qTDUAGfwPi+UD8Hyr2H8r/RqnBIHATiPdC2XuhfIoACxJ7PRDzQmmKAUCAAQDxOxHyb4DjOAAAAABJRU5ErkJggg==) no-repeat center right;
}
select[multiple].form-control {
  padding-right: 1rem;
  background-image: none;
}
.form-control.focus, .form-control:focus {
  outline: 0;
}
.form-control-sm, .input-group-sm > .form-control,
.input-group-sm > .input-group-prepend,
.input-group-sm > .input-group-append,
.input-group-sm > .input-group-prepend > .btn,
.input-group-sm > .input-group-append > .btn,
.input-group-sm > .input-group-prepend > .input-group-text,
.input-group-sm > .input-group-append > .input-group-text {
  height: 2.288rem;
}
.form-control-lg, .input-group-lg > .form-control,
.input-group-lg > .input-group-prepend,
.input-group-lg > .input-group-append,
.input-group-lg > .input-group-prepend > .btn,
.input-group-lg > .input-group-append > .btn,
.input-group-lg > .input-group-prepend > .input-group-text,
.input-group-lg > .input-group-append > .input-group-text {
  height: 3.2876666667rem;
}
select.form-control[size], select.form-control[multiple] {
  height: auto;
}
textarea.form-control {
  height: auto;
}
.form-group { margin-bottom: 1.429rem; }

/* The page and its content, as site.scss drew them. */
/* Remark's page grey, a shade off the shell's paper: kept, so no page
   changes colour. */
.page { position: relative; min-height: calc(100% - 44px); background: #f1f4f5; }
.page-content { padding: 30px; }
.page-header { position: relative; padding: 30px; margin: 0; background: transparent; border-bottom: 0; }
.page-header + .page-content { padding-top: 0; }
.page-title { margin: 0; font-size: 26px; color: var(--ink); }

/* The footer under every shell page. */
.site-footer { height: 44px; padding: 10px 30px; background-color: rgba(0, 0, 0, .02);
	border-top: 1px solid #e4eaec; }
.site-footer-legal { float: left; }

/* A white panel: the popup forms opened as a page of their own. */
.panel { position: relative; margin-bottom: 30px; background: var(--card); border-radius: 10px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.panel-heading { position: relative; padding: 0; }
.panel-title { display: block; margin: 0; padding: 20px 30px; font-size: 18px; color: var(--ink); }
.panel-body { position: relative; padding: 30px; }
.panel-heading + .panel-body { padding-top: 0; }

/* Bootstrap's modal as Remark drew it: no border, roomier head and foot.
   The question boxes of the new screens (`st-ask`) restyle it again. */
.modal-content { border: none; }
.modal-header { padding: 15px 20px; padding-right: 40px; border-bottom: none; }
.modal-header .modal-title { order: 1; margin-top: 0; }
.modal-header .close { order: 2; padding: 0; margin-top: 1px; }
.modal-footer { padding: 6px 20px 20px; border-top: none; }
@media (min-width: 480px) { .modal-dialog { margin: 30px; } }
@media (min-width: 768px) { .modal-dialog { width: auto; margin: 30px auto; } }

/* The button of every redesigned screen (QWEK-216, QWEK-223), and its
   main variant. The ladder's sheet adds the rest of the `lg-btn-` family. */
.lg-btn { height: 34px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: 8px; background: var(--card); cursor: pointer;
  font-weight: 500; display: inline-flex; align-items: center;
  text-decoration: none; color: var(--ink) }
.lg-btn:hover { border-color: var(--teal); color: var(--teal-d);
  text-decoration: none }
.lg-btn-main { border-color: var(--teal); background: var(--teal);
  color: #fff; font-weight: 600 }

/* QWEK-230 amendment 1 (AC41, AC42): the shared look of the images on
   every partner page. The font, the page grey, the title with its icon,
   round pills and tabs, the card corners and shadow, the text sizes and
   row heights. A page's own sheet may refine these; it does not repeat
   them. */
body { font-family: var(--qw-font); color: var(--qw-ink); }
/* Inter everywhere (comparison E): the theme gives headings, form controls
   and buttons a font of their own. */
body h1, body h2, body h3, body h4, body h5, body h6, body .h1, body .h2,
body .h3, body .h4, body .h5, body .h6, body button, body input, body select,
body textarea, body .btn, body .popover, body .tooltip, body .modal-title {
  font-family: var(--qw-font); }
body, label { font-weight: 400; }
body.qs-body, .page { background: var(--qw-bg); }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.3px; color: var(--qw-ink); }
.qs-title { display: flex; align-items: center; gap: 12px; }
.qs-title-icon { flex: 0 0 auto; color: var(--qw-green); }

.qs-pills { display: inline-flex; gap: 4px; padding: 3px; background: var(--card);
  border: 1px solid var(--qw-line); border-radius: 999px; }
.qs-pill { display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--qw-ink); font-weight: 600; font-size: 15px;
  white-space: nowrap; text-decoration: none; cursor: pointer; }
.qs-pill:hover, .qs-pill:focus { color: var(--qw-ink); text-decoration: none; background: var(--qw-green-pale); }
.qs-pill.is-on, .qs-pill[aria-pressed="true"], .qs-pill[aria-selected="true"] { background: var(--qw-green-soft); }
.qs-pill:focus-visible { outline: 3px solid #22C55E; outline-offset: 2px; }

/* Tabs and switches are round (pill) as in the images. */
.nav-tabs { border-bottom: 0; gap: 6px; }
.nav-tabs > li > a, .nav-tabs .nav-link { border: 1px solid var(--qw-line); border-radius: 999px;
  padding: 7px 18px; color: var(--qw-ink); font-weight: 600; background: var(--card); }
.nav-tabs > li.active > a, .nav-tabs .nav-link.active,
.nav-tabs > li > a:hover, .nav-tabs .nav-link:hover { border-color: var(--qw-green-line);
  background: var(--qw-green-soft); color: var(--qw-ink); }
.custom-switch .custom-control-label::before { border-radius: 999px; }
.custom-control-input:checked ~ .custom-control-label::before { border-color: var(--qw-green); background: var(--qw-green); }

/* Cards: the images' corners, line and shadow. */
.panel, .st-card, .lg-card, .fl-card, .pa-card, .ps-card {
  border: 1px solid var(--qw-line); border-radius: var(--qw-radius); box-shadow: var(--qw-shadow); }
.lg-card-head .lg-h2, .st-card > h2, .panel-title { font-size: 18px; font-weight: 700; color: var(--qw-ink); }

/* Density: the images' text size and row height. */
.table { color: var(--qw-ink-2); font-size: 14px; }
.table > tbody > tr > td, .table > tbody > tr > th { height: var(--qw-row); vertical-align: middle; }
.table thead th { color: var(--qw-muted); font-size: 12px; font-weight: 600; }
.lg-btn { height: 40px; padding: 0 16px; border-radius: var(--qw-radius-sm); border-color: var(--qw-field-line);
  font-weight: 600; white-space: nowrap; }
.lg-btn-main { box-shadow: 0 1px 2px rgba(22, 163, 74, .3); }
.form-control { border-color: var(--qw-field-line); border-radius: var(--qw-radius-sm); font-weight: 400; color: var(--qw-ink); }
.form-control:focus { border-color: var(--qw-green); }

/* The taller buttons of the images: a row of them wraps instead of
   pushing the page sideways on a phone (AC42). */
.lg-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.os-search { min-width: 0; max-width: 100%; }
.os-search-input { min-width: 0; flex: 1 1 auto; }

@media (max-width: 575.98px) {
	.page-content, .page-header { padding: 10px; }
	.site-footer { height: auto; }
	.site-footer-legal { float: none; display: block; text-align: center; }
}

/* QWEK-230 amendment 1 (AC41): the icon in front of every card title,
   chosen in `home_car_partner/card_icons.py`. */
.qs-card-icon { flex: 0 0 auto; margin-right: 10px; vertical-align: -4px; color: var(--qw-ink); }

/* The footer stays (comparison G), small and muted in the new style. */
body.qs-body .site-footer { background: transparent; border-top: 1px solid var(--qw-line, #E5E9F0);
  font-size: 12px; color: #64748B; padding: 12px 24px; }
body.qs-body .site-footer a { color: #64748B; }
