.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
.notice{
  display: block;
  width: 100%;
  color: white;
  background: var(--primary-color, blue);
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-bottom: 4px solid var(--accent-color, orange);
}

.alert{
  color: black;
  background: var(--accent-color, orange);
  border-bottom: 4px solid var(--primary-color, blue);
}

.field-group{
  max-width: 400px;
  margin: 1rem 0;
  & label{
    width: 100%;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold;
  }
  & input:not([type=checkbox]), & select{
    display: block;
    width: 100%;
    border: 2px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius, 5px);
    background: white;
  }
}

button, .btn{
  display: inline-block;
  border: 2px solid #ddd;
  background: white;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: var(--border-radius, 5px);
  font-size: 1rem;

  margin: 0.5rem 0;
  cursor: pointer;

  &.btn-link{
    border-color: white;
    text-decoration: underline;
  }

  &:hover{
    background: black;
    color: white;
  }
}

.import-contact-form{
  display: flex;
  align-items: center;
  gap: 1rem;

}

.add-or-import-contacts{
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
  & .btn, & .field-group {
    margin: 0;
  }
}
header{
  border-bottom: 4px solid var(--primary-color, blue);
}

.main-header-nav{
  display: flex;
  justify-content: space-between;
  align-items: center;

  & nav{
    & ul{
      display: flex;
      gap: 1rem;
      list-style-type: none;
    }
  }
}

.brand-logo{
  & img {
    height: 4rem;
  }
}

.menu-opener-label, .menu-opener-checkbox{
  display: none;
}

.menu-opener-label{
  font-size: 2rem;
}

@media screen and (max-width: 700px){
  .menu-opener-label{
    display: block;
  }

  .main-header-nav nav{
    & ul {
      display: none;
      background: #eee;
      width: 100%;
      padding: 1rem;
      border-bottom: 4px solid var(--primary-color);

      position: absolute;
      top: calc(4rem + 4px);
      right: 0;
      
      gap: 0.5rem;
      align-items: right;

      & .btn {
        margin: 0;
      }

      & li {
        text-align: right;
      }
    }

    & input:checked + ul {
      display: grid;
    }
  }



  .brand-logo{
    & img {
      height: 2.5rem;
    }
  }

  .main-header-nav{
    min-height: 4rem;
  }

  .main-header-nav h1 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 500px){
  .brand-logo{
    & img {
      height: 2rem;
    }
  }

  .main-header-nav h1 {
    font-size: 1rem;
  }

  .main-header-nav nav{
    & ul {
      top: 3.3rem;
    }
  }
}

table{
  border-collapse: collapse;
  width: 100%;

  & thead {
    display: none;
  }

  & tbody {
    display: grid;
    gap: 1rem;
  }

  & tr {
    display: grid;
    border: 2px solid var(--primary-color, blue);
  }

  & td::before{
    content: attr(data-label)':';
    display: block;
    font-weight: bold;
  }

  & td, & th {
    text-align: left;
    padding: 0.5rem 0.75rem;
  }

  & th {
    background: var(--primary-color, blue);
    border-bottom: 4px solid var(--accent-color, orange);
    color: white;
  }

  & tr:not(:last-child) td {
    border-bottom: 1px solid #ccc;
  }

  & tbody tr:hover td {
    background: #ddd !important;
  }

  
}

@media screen and (min-width: 1000px){
  table {
    display: table;
    & thead {
      display: table-header-group;
    }

    & tbody {
      display: table-row-group;
    }

    & tr{
      display: table-row;
    }

    & td::before {
      display: none;
    }

    &.table-striped{
      & tbody{
        & tr:nth-child(2n) td {
          background: #eee;
        }
      }
    }
  }
}

/* Pagination */
.pagination{
  display: flex;
  margin: 1rem 0;
  & span{
    display: block;
    border-left: 2px solid #ddd;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
    
    &:first-child{
      border-start-start-radius: var(--border-radius, 5px);
      border-end-start-radius: var(--border-radius, 5px);
    }
    &:last-child{
      border-right: 2px solid #ddd;
      border-start-end-radius: var(--border-radius, 5px);
      border-end-end-radius: var(--border-radius, 5px);
    }

    & a, &.current, &.gap {
      display: block;
      padding: 0.5rem 0.75rem;
      text-decoration: none;
    }

    & a:hover{
      background: var(--primary-color, blue);
      color: white;
    }

    &.current{
      background: var(--accent-color, orange);
    }
  }
}

.login-signup-form{
  width: 100%;
  max-width: 500px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* RESET */

:root{
  --primary-color: #0d2c58;
  --accent-color: #f89f3c;
  --border-radius: 5px;
}

*, *::before, *::after{
  box-sizing: border-box;
}

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

  font-family: sans-serif;
}

.container {
  width: 80%;
  margin: auto;
}

@media screen and (max-width: 700px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }
}

hr{
  border: 1px solid #ddd;
}

.hidden{
  display: none;
}
