/*
Sailing Admin custom css rules
*/

html {
    text-align: justify;
}

body {
    height: 100%;
    background-color: #f9f9ff;
}

table {
    background: #fcfcfc;
    border: 1px solid #e7e7e7;
}

#wrap {
    min-height: 100%;
    margin-bottom: -60px;
    padding: 25px 0 50px 0;
}

#footer {
    width: 100%;
    height: 60px;
    background: #f5f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand {
    padding: 10px 10px;
}

.asteriskField {
    display: none;
}

.center-block {
    float: none;
}

form {
    margin-bottom: 0;
}

.modal {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .modal:before {
    display: inline-block;
    vertical-align: middle;
    content: " ";
    height: 100%;
  }
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

.officer-tooltip.tooltip {
    font-size: 14px;
}

.officer-tooltip .tooltip-inner {
    background-color: #5bc0de;
    color: black;
    border: 1px solid #e7e7e7;
    min-width: 320px;
    text-align: left;
}
.officer-tooltip.tooltip.in {
    filter: alpha(opacity=100);
    opacity: 100;
    padding: 2px;
}
.officer-tooltip h3 {
    margin-top: 5px;
}

.class-logo {
    max-width: 80px;
    height: 40px;
}

/* enable absolute positioning */
.inner-addon {
    position: relative;
}

/* style icon */
.inner-addon .glyphicon {
  position: absolute;
  padding: 10px;
  pointer-events: none;
}

/* align icon */
.left-addon .glyphicon  { left:  0px;}
.right-addon .glyphicon { right: 10px;}

/* add padding  */
.left-addon input  { padding-left:  30px; }
.right-addon input { padding-right: 30px; }

.no-label input[type="checkbox"] {
    margin-left: 0px;
    position: relative;
}

.inline-file {
    margin-top: 6px;
}

.linked-row {
    cursor: pointer;
}

.row-actions {
    cursor: default;
}

.class-tooltip .tooltip-inner {
    background-color: #e7e7e7;
    color: black;
    border: 1px solid #e7e7e7;
    min-width: 320px;
    text-align: left;
}
.class-tooltip.tooltip.in {
    filter: alpha(opacity=100);
    opacity: 100;
    padding: 2px;
}
.class-tooltip h3 {
    margin-top: 5px;
}

/* Match Select2's stock theme to this app's .form-control: a square-cornered 34px box with a #ccc
   border, and Bootstrap's blue focus glow. Bootstrap here is customised to border-radius: 0, so the
   select2-bootstrap themes — all of which assume the stock 4px — do not fit either.
   The rules below tie Select2's own on specificity, so main.css must load after its stylesheet. */
.select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 0;
}
/* The box is itself a .form-control, so Bootstrap's 6px 12px padding already applies to it: the
   text inside must not add its own, and its line-height is the 20px that leaves in a 34px box.
   padding-right keeps the text from running under the arrow. */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 20px;
    padding-left: 0;
    padding-right: 20px;
    color: #555;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

/* Stock Select2 gives a single selection no focus style at all, which would leave the partner row
   the one field on the form that never lights up. --open covers the click path, --focus the tab. */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

/* Must out-specify DAL's own sheet, which re-asserts the #aaa border on the same element. */
.select2-container--default .select2-dropdown {
    border-color: #ccc;
    border-radius: 0;
}
