/* Work Sans */
/*@font-face {*/
/*  font-family: "WorkSans-Light";*/
/*  font-style: normal;*/
/*  font-weight: 300;*/
/*  src: local("Work Sans Light"), local("WorkSans-Light"), url(./fonts/WorkSans/WorkSans-Light.woff2) format("woff2"),*/
/*    url(./fonts/WorkSans-Light.ttf) format("truetype");*/
/*}*/
/*@font-face {*/
/*  font-family: "WorkSans";*/
/*  font-style: normal;*/
/*  font-weight: 400;*/
/*  src: local("Work Sans Regular"), local("WorkSans-Regular"), url(./fonts/WorkSans/WorkSans-Regular.woff2) format("woff2"),*/
/*    url(./fonts/WorkSans-Regular.ttf) format("truetype");*/
/*}*/
/*@font-face {*/
/*  font-family: "WorkSansMedium";*/
/*  font-style: normal;*/
/*  font-weight: 500;*/
/*  src: local("Work Sans Medium"), local("WorkSans-Medium"), url(./fonts/WorkSans/WorkSans-Medium.woff2) format("woff2"),*/
/*    url(./fonts/WorkSans/WorkSans-Medium.ttf) format("truetype");*/
/*}*/
/*@font-face {*/
/*  font-family: "WorkSansSemibold";*/
/*  font-style: normal;*/
/*  font-weight: 600;*/
/*  src: local("Work Sans Semibold"), local("WorkSans-Semibold"), url(./fonts/WorkSans/WorkSans-SemiBold.woff2) format("woff2"),*/
/*    url(./fonts/WorkSans/WorkSans-SemiBold.ttf) format("truetype");*/
/*}*/
/*@font-face {*/
/*  font-family: "WorkSansBold";*/
/*  font-style: normal;*/
/*  font-weight: 700;*/
/*  src: local("Work Sans Bold"), local("WorkSans-Bold"), url(./fonts/WorkSans/WorkSans-Bold.woff2) format("woff2"),*/
/*    url(./fonts/WorkSans/WorkSans-Bold.ttf) format("truetype");*/
/*}*/
/* Perk Sans */
@font-face {
  font-family: "PerkSansLight";
  src:
    url("./fonts/PerkSans-Light.woff2") format("woff2"),
    url("./fonts/PerkSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "PerkSans";
  src:
    url("./fonts/PerkSans-Regular.woff2") format("woff2"),
    url("./fonts/PerkSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "PerkSansMedium";
  src:
    url("./fonts/PerkSans-Medium.woff2") format("woff2"),
    url("./fonts/PerkSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "PerkSansBold";
  src:
    url("./fonts/PerkSans-Bold.woff2") format("woff2"),
    url("./fonts/PerkSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

/* Bootstrap 3 compatibility: Override Bootstrap 5's default 16px font-size with 14px */
:root {
  --bs-body-font-size: 14px;
}

html,
body {
  font-family: PerkSans, sans-serif;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
}

/* Stop vertical sliding on iOS */
#root {
  overflow-x: hidden;
}

/* Keep scroll bar on the side at all times, stops jumping of ui when scroll bar disappears */
body,
.modal-open .modal {
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Modal backdrop - B3 compatibility
   These rules MUST stay in global CSS because the backdrop is rendered
   as a sibling element outside the modal's DOM tree, so it cannot be
   targeted from within a styled component. */
.modal-backdrop {
  z-index: 1040 !important;
}

.modal-backdrop.show {
  opacity: 0.5 !important;
}

/* Full bleed (created for mobile) */
.modal-full-screen {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.modal-full-screen .modal-dialog {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.modal-full-screen .modal-content {
  height: auto;
  min-height: 100%;
  border-radius: 0;
  border: 0;
}

.modal-full-screen .modal-header {
  border: none;
}

.modal-full-screen .card {
  border: none;
}

/* Slide-up: default fades in (created for mobile) */
.modal-slide-up.fade {
  top: 100%;
  -webkit-transition: top 0.25s linear;
  -o-transition: top 0.25s linear;
  transition: top 0.25s linear;
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* Bootstrap 5 uses .show instead of .in for visible state */
.modal-slide-up.fade.show {
  top: 0;
}

/* Keep .in for backwards compatibility */
.modal-slide-up.fade.in {
  top: 0;
}

.center {
  text-align: center;
}

[data-is-loading] * {
  color: transparent !important;
  border-top-color: transparent !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
}

.nav a:not(.btn),
.navbar a:not(.btn) {
  text-decoration: none !important;
}

.text-helper {
  color: #bbb;
  line-height: 15px !important;
}

/* SPACING HELPERS */
.push {
  margin: 20px !important;
}

.push--top {
  margin-top: 20px !important;
}

.push--bottom {
  margin-bottom: 20px !important;
}

.push--left {
  margin-left: 20px !important;
}

.push--right {
  margin-right: 20px !important;
}

.flush {
  margin: 0 !important;
}

.flush--top {
  margin-top: 0 !important;
}

.flush--bottom {
  margin-bottom: 0 !important;
}

.flush--left {
  margin-left: 0 !important;
}

.flush--right {
  margin-right: 0 !important;
}

.soft {
  padding: 20px !important;
}

.soft--top {
  padding-top: 20px !important;
}

.soft--bottom {
  padding-bottom: 20px !important;
}

.soft--left {
  padding-left: 20px !important;
}

.soft--right {
  padding-right: 20px !important;
}

.hard {
  padding: 0 !important;
}

.hard--top {
  padding-top: 0 !important;
}

.hard--bottom {
  padding-bottom: 0 !important;
}

.hard--left {
  padding-left: 0 !important;
}

.hard--right {
  padding-right: 0 !important;
}

.cf {
  clear: both;
}

/*
  Best practice for readability
  Also 16px avoids zoom on iOS devices
*/
@media (max-width: 780px) {
  input[type="color"],
  input[type="date"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="email"],
  input[type="month"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="time"],
  input[type="url"],
  input[type="week"],
  select:focus,
  textarea {
    font-size: 16px;
  }
}

/*
  I hate bootstrap sometimes. Only way to apply custom styling to tooltip is via global styling.
*/
.tooltip-inner {
  text-align: left;
}

/* ============================================
   Form: Bootstrap 3 Compatibility
   ============================================
   BS3's .form-horizontal added negative margins on .form-group
   to counteract column padding, keeping content flush with the
   form container. BS5 dropped .form-horizontal entirely.        */
/* B5 adds padding to all .row children via .row > *
   Remove it from .form-group to avoid double padding (columns inside already have it) */
.form-group {
  margin-bottom: 15px;
  font-size: 14px;
  padding-right: unset !important;
  padding-left: unset !important;
}

/* Clearfix: floated col-* children collapse the parent height without this */
.form-group::before,
.form-group::after {
  display: table;
  content: " ";
}

.form-group::after {
  clear: both;
}

.form-horizontal .form-group {
  margin-right: -16px;
  margin-left: -16px;
}

/* Bootstrap 3 form label styles */
label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 14px;
}

.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 2px;
  margin: 8px 0;
}

/* Override height for textarea */
textarea.form-control {
  height: auto;
  padding: 16px;
}

.form-control:focus {
  box-shadow: 0 0 4px 0 #1200b8;
}

.form-control::-webkit-input-placeholder {
  color: #73727c;
}

.has-error .form-control {
  box-shadow: 0 0 2px 0 rgba(222, 52, 52, 0.5);
  border-color: #de3434;
}

.has-error .form-control:focus {
  border-color: #de3434;
  box-shadow: 0 0 4px 0 rgba(222, 52, 52, 0.5);
}

a {
  color: #000;
  text-decoration: none;
}

a:hover,
a:focus {
  outline: none;
  text-decoration: none;
}

a:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: 1px;
}

label {
  width: 100%;
  font-weight: 400;
}

/* override blue background when using autofill on inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 48px white inset !important;
}

/* Check apps/web/app/src/index.tsx for usage */
.no-focus-outline a:focus,
.no-focus-outline button:focus {
  outline: none;
}

/*
  Bootstrap 3 to Bootstrap 5 compatibility — Columns
  Row compat is handled by CompatRow in ui/src/Layout/Row.tsx.
  Column padding and responsive float rules are kept global since
  Col is still imported directly from react-bootstrap in many places.
*/

/* Restore B3 column padding & float
   In B3, padding was on ALL columns, but float was only active at
   the column's own breakpoint:
     col-xs-* (now col-*)  → always
     col-sm-*              → >= 768px
     col-md-*              → >= 992px   (B3 used 992px for md)
     col-lg-*              → >= 1200px
     col-xl-*              → >= 1200px  (B3 didn't have xl, treat like lg)
*/

/* Padding applies to ALL columns at ALL sizes (same as B3) */
.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-xl,
.col-xl-1,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-10,
.col-xl-11,
.col-xl-12 {
  position: relative;
  padding-right: 16px;
  padding-left: 16px;
  min-height: 1px;
}

/* Float: col-* (B3 col-xs-*) — always active */
.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  float: left;
}

/* Float: col-sm-* — active at >= 768px */
@media (min-width: 768px) {
  .col-sm,
  .col-sm-1,
  .col-sm-2,
  .col-sm-3,
  .col-sm-4,
  .col-sm-5,
  .col-sm-6,
  .col-sm-7,
  .col-sm-8,
  .col-sm-9,
  .col-sm-10,
  .col-sm-11,
  .col-sm-12 {
    float: left;
  }
}

/* Float: col-md-* — active at >= 992px (B3 md breakpoint) */
@media (min-width: 992px) {
  .col-md,
  .col-md-1,
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7,
  .col-md-8,
  .col-md-9,
  .col-md-10,
  .col-md-11,
  .col-md-12 {
    float: left;
  }
}

/* Float: col-lg-* and col-xl-* — active at >= 1200px */
@media (min-width: 1200px) {
  .col-lg,
  .col-lg-1,
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10,
  .col-lg-11,
  .col-lg-12,
  .col-xl,
  .col-xl-1,
  .col-xl-2,
  .col-xl-3,
  .col-xl-4,
  .col-xl-5,
  .col-xl-6,
  .col-xl-7,
  .col-xl-8,
  .col-xl-9,
  .col-xl-10,
  .col-xl-11,
  .col-xl-12 {
    float: left;
  }
}
