/*
 * application.css
 */

/* open-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url("/webfonts/open-sans-v44-latin-300.woff2") format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url("/webfonts/open-sans-v44-latin-regular.woff2") format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url("/webfonts/open-sans-v44-latin-600.woff2") format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/*
 * Variables
 */

:root {

  --font_family_serif: Georgia, serif;
  --font_family_sans_serif: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --font_weight_light: 300;
  --font_weight_regular: 400;
  --font_weight_normal: var(--font_weight_regular);
  --font_weight_medium: 600;
  --font_weight_bold: 600;


  --color_128: rgb(128,128,128);
  --color_200: rgb(200,200,200);
  --color_gray_235: rgb(235,235,235);
  --color_235: var(--color_gray_235);
  --color_black: #000;
  --color_blue: #007bff; /* original Bootstrap color */
  --color_danger: #dc3545; /* original Bootstrap 4.5.2 danger color */
  --color_green: #28a745; /* original Bootstrap 4.5.2 green color */
  --color_muted: rgb(119,119,119);
  --color_secondary: #6c757d; /* original Bootstrap color */
  --color_white: #fff;

  --primary_color: #1e275e;  /* rgb(30,39,94); values from the logo */
  --primary: var(--primary_color);
  --color_primary: var(--primary_color);
  --color_primary_darkened_10: #121737;

  --navigation_top_padding: 57px;
  --sticky_menu_top_padding: 54px;
}


/*
 *  General
 */

html,
body
{
  margin: 0;
  padding: 0;

  cursor: default;

  background-color: var(--color_white);

  font-family: var(--font_family_sans_serif);
  font-weight: var(--font_weight_normal);
}

body
{
  padding-top: 56px;
}



/* Typography */

strong a,
strong a:link,
strong a:visited,
strong span
{
  font-weight: var(--font_weight_bold);
  font-size: 15px;
  color: var(--color_black);
}


/* Alerts */

.notification
{
  position: absolute;
  position: fixed;
  z-index: 10;
  bottom: 2%;
  left: 77.5%;
  right: 2.5%;
}

.alert-wrapper
{
  margin-top: 96px;
}



/*
 *  Actions Menu
 */

.header-fixed
{
  position: absolute;
  position: fixed;
  top: 0;
  left: 320px;
  right: 0;
  z-index: 5;

  border-bottom: 1px solid #ddd;

  background: #fff;

  h2
  {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.header-fixed-padding
{
  margin-top: 70px;
  margin-top: 67px;
  margin-top: 65px;
}

.header-fixed-padding-extended
{
  margin-top: 97px;
}

.actions-menu
{
  padding: 16px;
  padding-right: 0;
  text-align: right;
}

h2 i
{
  font-size: 90%;
}






/*
 *  Search
 */

.search_form
{
  margin-top: 32px;

  .search_input
  {
    width: 480px;
    height: auto;
    padding: 8px;
    font-size: 2.8rem;

    &:focus,
    &:active
    {
      outline: none;
      box-shadow: none;
      -webkit-box-shadow: none;
      border-color: #aaa;
    }
  }

  .search_submit
  {
    height: auto;
    padding: 14px;
    font-size: 2.2rem;
  }
}


/*
 *  Sidebar
 */

.sidebar
{
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;

  overflow-x: hidden;
  overflow-y: auto;

  width: 319px;

  padding: 8px;

  box-sizing: border-box;

  border-right: 1px solid #ddd;

  font-weight: 600;

  h1
  {
    display: none;
  }

  ul li ul
  {
    margin-left: 8px;
    margin-left: 16px;

    opacity: .9;

    li.active
    {
      a,
      a:link,
      a:visited
      {
        background: transparent;
        /* background: rgb(245,245,245); */
        color: var(--primary_color);
        text-decoration: underline;
      }
    }

    li.divider
    {
      margin: 7px 8px 8px;
      height: 1px;
      border-top: 1px solid #eee;
    }

    a,
    a:link,
    a:visited
    {
      padding: 6px 10px;
      font-weight: 400;
    }
  }
}


/* In-Nav search */
.search
{
  margin: -8px;
  margin-bottom: 8px;

  padding: 8px;

  box-sizing: border-box;

  font-size: 0;


  .form-group
  {
    display: block;
  }

  input[type=search]
  {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 12px 8px;

    border: none;
    border-radius: 4px;

    box-shadow: none;
    -webkit-box-shadow: none;

    background-color: #eee;

    transition: background-color ease-out .3s;
    -webkit-transition: background-color ease-out .3s;

    font-size: 14px;
    font-weight: 600;
    line-height: auto;
    color: #000;


    &:active,
    &:focus
    {
      background-color: #dedede;
    }
  }

  button
  {
    display: none;
    width: 48px;
    font-size: 14px;

    span
    {
      display: none;
    }
  }
}


/*
 *  Content Area
 */

@media screen and (min-width: 768px) {
  .three-columns,
  .genres-multicolumn {
    -webkit-column-count: 3; /* Chrome, Safari, Opera */
    -moz-column-count: 3; /* Firefox */
    column-count: 3;
  }

  .four-columns {
    -webkit-column-count: 4; /* Chrome, Safari, Opera */
    -moz-column-count: 4; /* Firefox */
    column-count: 4;
  }
}

.glyphicon-reduced
{
  font-size: 75%;
}

dl.dl-horizontal
{
  dt,
  dd
  {
    margin-bottom: 4px;

    p
    {
      margin: 0;
      padding: 0;
    }
  }
}

.money
{
  text-align: right;
  font-family: monospace;
}

.money-contract
{
  text-align: right;
  max-width: 96px;
}

.no-bold
{
  font-weight: normal;
}

.no-bottom-margin
{
  margin-bottom: 0;
}

.underlined
{
  text-decoration: underline;
}


label.required:after
{
  content: '*';
  margin-left: 1px;
  color: var(--color_muted);
}

label small
{
  display: block;
  font-weight: normal;
}


#contracts-books ol li:last-of-type hr
{
  display: none;
}


.contracts_publication_date_spring,
.contracts_publication_date_fall,
.book_shipment_date_today
{
  cursor: pointer;
  text-decoration: underline;
  color: var(--primary_color);
}

.container-padding-simulation
{
  padding-left: 21px;
  padding-right: 21px;
}

.form-control-static-half
{
  padding-top: 4px;
  padding-bottom: 4px;
}

.form-control-static-three-quarter
{
  padding-top: 6px;
  padding-bottom: 6px;
}

.form-control-static-full
{
  padding-top: 8px;
  padding-bottom: 8px;
}

textarea
{
  resize: vertical;
}



.card-page-element
{
  margin-bottom: 32px;

  &.card-faded
  {
    opacity: .6;
  }

  .card-header
  {
    position: relative;
    .badge
    {
      position: relative;
      top: -2px;
    }
  }
}
