/* admin.css - the stylesheet of the admin shell (foundation package T1; DESIGN 9.5).
   1. the rules of the monolith's admin.css;
   2. the identity banner (DESIGN 9.2);
   3. the admin-used rules of site.css: 65 of its rules, the consumer UI classes are not carried;
   4. ui-select 0.19.5 (select.css) and angular-ui-notification, which were loaded as separate files before. */

/* 1. admin.css of the monolith */
.modal-content {
    height: auto;
}

tr.inherited td {
    background-color: #f3f3f3;
    color: var(--ordinary-border);
}

tr.inactive {
    text-decoration: line-through;
}

/* 2. identity banner: a 24 px bar above the navbar (colour from IDENTITY_COLOR, text from IDENTITY_LABEL) */
.identity-banner {
    height: 24px;
    line-height: 24px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.identity-banner .identity-version {
    font-weight: 400;
    opacity: .92;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 3. from site.css */
html.view, body.view {
    font-family: var(--font-body);
    font-size:1rem;
    line-height: 1.3;
    height: 100vh;
}

.form-control {
    font-size:16px;
}

.nav-link {
    color:var(--white) !important;
    font-size:110%;
}

.code {
    font-family: courier, monospace;
    font-size:12px;
    color:var(--white);
    background-color: var(--btn-secondary);
}

.pointer {
    cursor: pointer;
}

.bold {
    font-weight: bold;
}

.loader {

    text-align: center;padding:20px;
    font-size:30px;color:#666;
}

.fillscreen {

    position:fixed;
    padding-top:200px;
    margin:0;

    top:0;
    left:0;

    width: 100%;
    height: 100%;
    background:rgba(255,255,255,0.7);
    z-index:10000;
}

.fillparent {
    position:absolute;
    padding:0;
    margin-top: 0px;

    top:0;
    left:0;

    width: 100%;
    height: 100%;
    background:rgba(255,255,255,0.7);
    z-index:10000;
}

.loader i {
    color: grey;
}

.color .dropdown-menu > li > a {
    padding:2px 4px;
}

/* login */

.loginscreen {
    background-color: var(--btn-secondary);
    color:#ddd;
    font-size:11px;
}

/*
.nav .dropdown-menu {
    background-color: #010101 !important;
    color:#fff;
}

.nav .dropdown-menu > li > a {
    color:#9d9d9d;
}

.nav .dropdown-menu > li > a:hover {
    color:#fff;
    background-color: #3a3a3a;
}

*/

.table-hover tbody tr {
    cursor: pointer;
}

.navbar-brand {
    padding-left:45px;
    font-weight: 200;
}

/*modal*/

.modal-header {

    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 16.42857143px;
    padding: 6px 15px;
    background: #337ab7;
    color: white;

}

.modal-header .close {
        margin-right: -8px;
    padding: 4px 8px;
    color: white;
    font-size: 25px;
    font-weight: 400;
}

.pagination {
    margin:0;
}

.navbar-best .navbar-brand {
    color: var(--white);
}

.navbar-best .nav-link {
    color: var(--white);
}

.navbar {
    margin:0px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background: var(--berry);
}

.nav-link.dropdown:after {
        content: "\f106";
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
    float:right;

}

.btn-primary, btn-best {
        background: var(--orange);
    }

.btn[disabled] {
        background: linear-gradient(5deg, #aaa 0%, #aaa 100%);
    }

.btn-primary:active {
        background: var(--orange) !important;
    }

.btn-secondary {
        background-color:#b4b4b1;
        color: var(--btn-secondary);
    }

div.btn-secondary{
        background-color: #b4b4b1 !important;
        color: var(--btn-secondary) !important;
    }

.btn {
        border:0;
        text-transform: uppercase;
        font-size:16px;
        font-family: var(--font-display) !important;
        font-weight: 900 !important;

    }

.modal {
     z-index:10000;
     height: 95%;
 }

.modal-body {
    min-height: 300px;
    overflow: auto;

}

.modal-header {
    background: white;
    border:0;
    height:50px !important;
}

.close {
    margin-top: 10px !important;
    margin-right: 10px;
    color:var(--orange) !important;
    width:30px;
    height:30px;
    border-radius: 30px;
    border:1px solid var(--orange) !important;
    padding:0;
    opacity: 1 !important;
    background: white !important;
}

.close span {
    position: relative;
    top:-3px;

    left:-1px;

}

.close:hover {
    color:var(--orange);
}

.form-control {
    border:1px solid var(--orange) !important;
}

*:focus, .form-control:focus, .btn:focus {
  outline: none !important;
  outline-style: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.strong, strong {
       font-size:1.1rem;
     font-weight: 600 !important;
}

tr.selected { background-color: #cce5ff !important; }

.table-fixed-head th {position: sticky; top:0; background-color: white;}

td.fixed-left {
    position: sticky;
    left: 0;
    background-color: white;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space:nowrap;
}

th.fixed-left {
    z-index: 1000;
    position: sticky;
    left: 0;
    background-color: white;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space:nowrap;
}

th.month {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space:nowrap;
}

td.month {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space:nowrap;
}

.uib-tab .nav-link {
    color: var(--orange) !important;
}

.nav-pills .nav-link {
    color: var(--orange) !important;
}

.nav-pills .nav-item a {
    color: var(--btn-secondary) !important;
}

.nav-pills .nav-link.active {
    background-color: #b4b4b1;
    color: var(--btn-secondary);
}

.uib-tab .nav-link {
    color: var(--orange) !important;
}

td.ok {
    background-color: var(--alert-success);
}

td.nook {
    background-color: var(--alert-danger);
}

td.warning {
    background-color: var(--alert-warning);
}

.overflow-auto{
    overflow: auto;
}

.total {
    font-weight: bold;
    border-top: 2px solid black;
}

.btn-outline-best {
    text-transform: unset !important;
    color: black;
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--orange) !important;
    font-weight: 600 !important;
}

td.hover:hover {
    background-color:rgba(0,0,0,.075);
}

.ordinary-tabs{
    border-bottom: 1px solid var(--ordinary-border);
}

.ordinary-tabs .nav-link {
    color: black !important;
}

.ordinary-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: var(--form-control);
    background-color: var(--white);
    border-color: var(--ordinary-border) var(--ordinary-border) var(--white);
}

tr.deleted {
    background-color: #f0f0f0;
    text-decoration: line-through;
}

.language-picker {
    position: fixed;
    right: 0px;
    bottom: 100px;
}

.modal-body .language-picker {
    bottom: 50px !important;
}

.language-picker .flag img{
    width: 40px;
    height: auto;
    cursor: pointer;

}

.language-picker .flag+.flag {
    margin-left: 20px;
}

/* 4a. ui-select (select.css 0.19.5) */
@import "variables.css";

/*!
 * ui-select
 * http://github.com/angular-ui/ui-select
 * Version: 0.19.5 - 2016-10-24T23:13:59.551Z
 * License: MIT
 */


/* Style when highlighting a search. */
.ui-select-highlight {
  font-weight: bold;
}


.ui-select-container {
    border:1px solid var(--text);
    border-radius: 6px;
}
/*bootstrap4 ui-select fix*/
.open > .dropdown-menu {
     display: block;
}

.ui-select-offscreen {
  clip: rect(0 0 0 0) !important;
  width: 1px !important;
  height: 1px !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  outline: 0 !important;
  left: 0px !important;
  top: 0px !important;
}


.ui-select-choices-row:hover {
  background-color: var(--cream);
}

/* Select2 theme */

/* Mark invalid Select2 */
.ng-dirty.ng-invalid > a.select2-choice {
    border-color: var(--orange);
}

.select2-result-single {
  padding-left: 0;
}

.select2-locked > .select2-search-choice-close{
  display:none;
}

.select-locked > .ui-select-match-close{
    display:none;
}

body > .select2-container.open {
  z-index: 9999; /* The z-index Select2 applies to the select2-drop */
}

/* Handle up direction Select2 */
.ui-select-container[theme="select2"].direction-up .ui-select-match,
.ui-select-container.select2.direction-up .ui-select-match {
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown,
.ui-select-container.select2.direction-up .ui-select-dropdown {
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    border-top-width: 1px;  /* FIXME hardcoded value :-/ */
    border-top-style: solid;

    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);

    margin-top: -4px; /* FIXME hardcoded value :-/ */
}
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown .select2-search,
.ui-select-container.select2.direction-up .ui-select-dropdown .select2-search {
    margin-top: 4px; /* FIXME hardcoded value :-/ */
}
.ui-select-container[theme="select2"].direction-up.select2-dropdown-open .ui-select-match,
.ui-select-container.select2.direction-up.select2-dropdown-open .ui-select-match {
    border-bottom-color: var(--orange);
}

.ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden,
.ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden input{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
}

/* Selectize theme */

/* Helper class to show styles when focus */
.selectize-input.selectize-focus{
  border-color: var(--orange) !important;
}

/* Fix input width for Selectize theme */
.selectize-control.single > .selectize-input > input {
  width: 100%;
}

/* Fix line break when there's at least one item selected with the Selectize theme */
.selectize-control.multi > .selectize-input > input {
  margin: 0 !important;
}

/* Fix dropdown width for Selectize theme */
.selectize-control > .selectize-dropdown {
  width: 100%;
}

/* Mark invalid Selectize */
.ng-dirty.ng-invalid > div.selectize-input {
    border-color: var(--orange);
}

/* Handle up direction Selectize */
.ui-select-container[theme="selectize"].direction-up .ui-select-dropdown {
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
    margin-top: -2px; /* FIXME hardcoded value :-/ */
}

.ui-select-container[theme="selectize"] input.ui-select-search-hidden{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
    width: 0;
}

/* Bootstrap theme */

/* Helper class to show styles when focus */
.btn-default-focus {
  color: var(--text);
  background-color: var(--cream);
  border-color: var(--text);
  text-decoration: none;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.ui-select-bootstrap .ui-select-toggle {
  position: relative;
}

.ui-select-bootstrap .ui-select-toggle > .caret {
  position: absolute;
  height: 10px;
  top: 50%;
  right: 10px;
  margin-top: -2px;
}

/* Fix Bootstrap dropdown position when inside a input-group */
.input-group > .ui-select-bootstrap.dropdown {
  /* Instead of relative */
  position: static;
}

.input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
  border-radius: 4px; /* FIXME hardcoded value :-/ */
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group > .ui-select-bootstrap > input.ui-select-search.form-control.direction-up {
  border-radius: 4px !important; /* FIXME hardcoded value :-/ */
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ui-select-bootstrap .ui-select-search-hidden{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
}

.ui-select-bootstrap > .ui-select-match > .btn{
  /* Instead of center because of .btn */
  text-align: left !important;
}

.ui-select-bootstrap > .ui-select-match > .caret {
  position: absolute;
  top: 45%;
  right: 15px;
}

/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
.ui-select-bootstrap > .ui-select-choices ,.ui-select-bootstrap > .ui-select-no-choice {
  width: 100%;
  height: auto;
  max-height: 200px;
  overflow-x: hidden;
  margin-top: -1px;
}

body > .ui-select-bootstrap.open {
  z-index: 1000; /* Standard Bootstrap dropdown z-index */
}

.ui-select-multiple.ui-select-bootstrap {
  height: auto;
  padding: 3px 3px 0 3px;
}

.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
  background-color: transparent !important; /* To prevent double background when disabled */
  border: none;
  outline: none;
  height: 1.666666em;
  margin-bottom: 3px;
}

.ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
  font-size: 1.6em;
  line-height: 0.75;
}

.ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
  outline: 0;
  margin: 0 3px 3px 0;
}

.ui-select-multiple .ui-select-match-item {
  position: relative;
}

.ui-select-multiple .ui-select-match-item.dropping .ui-select-match-close {
  pointer-events: none;
}

.ui-select-multiple:hover .ui-select-match-item.dropping-before:before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  height: 100%;
  margin-right: 2px;
  border-left: 1px solid var(--ui-select-bootstrap);
}

.ui-select-multiple:hover .ui-select-match-item.dropping-after:after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  margin-left: 2px;
  border-right: 1px solid var(--ui-select-bootstrap);
}

.ui-select-bootstrap .ui-select-choices-row>span {
    cursor: pointer;
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: var(--btn-secondary);
    white-space: nowrap;
}

.ui-select-bootstrap .ui-select-choices-row>span:hover, .ui-select-bootstrap .ui-select-choices-row>span:focus {
    text-decoration: none;
    color: #262626;
    background-color: #f5f5f5;
}

.ui-select-bootstrap .ui-select-choices-row.active>span {
    color: var(--white);
    text-decoration: none;
    outline: 0;
    background-color: var(--ui-select-choices-row);
}

.ui-select-bootstrap .ui-select-choices-row.disabled>span,
.ui-select-bootstrap .ui-select-choices-row.active.disabled>span {
    color: #777;
    cursor: not-allowed;
    background-color: var(--white);
}

/* fix hide/show angular animation */
.ui-select-match.ng-hide-add,
.ui-select-search.ng-hide-add {
    display: none !important;
}

/* Mark invalid Bootstrap */
.ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
    border-color: #D44950;
}

/* Handle up direction Bootstrap */
.ui-select-container[theme="bootstrap"].direction-up .ui-select-dropdown {
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
}

.ui-select-bootstrap .ui-select-match-text {
    width: 100%;
    padding-right: 1em;
}
.ui-select-bootstrap .ui-select-match-text span {
    display: inline-block;
    width: 100%;
    overflow: hidden;
}
.ui-select-bootstrap .ui-select-toggle > a.btn {
  position: absolute;
  height: 10px;
  right: 10px;
  margin-top: -2px;
}

/* Spinner */
.ui-select-refreshing {
    position: absolute;
    right: 0;
    padding: 8px 27px;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing:antialiased;
 }

@-webkit-keyframes ui-select-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes ui-select-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.ui-select-spin {
  -webkit-animation: ui-select-spin 2s infinite linear;
  animation: ui-select-spin 2s infinite linear;
}

.ui-select-refreshing.ng-animate {
  -webkit-animation: none 0s;
}

/* 4b. angular-ui-notification */
/**
 * angular-ui-notification - Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
 * @author Alex_Crack
 * @version v0.3.6
 * @link https://github.com/alexcrack/angular-ui-notification
 * @license MIT
 */
.ui-notification{position:fixed;z-index:9999;width:300px;-webkit-transition:all ease .5s;-o-transition:all ease .5s;transition:all ease .5s;color:#fff;border-radius:0;background:#337ab7;box-shadow:5px 5px 10px rgba(0,0,0,.3)}.ui-notification.clickable{cursor:pointer}.ui-notification.clickable:hover{opacity:.7}.ui-notification.killed{-webkit-transition:opacity ease 1s;-o-transition:opacity ease 1s;transition:opacity ease 1s;opacity:0}.ui-notification>h3{font-size:14px;font-weight:700;display:block;margin:10px 10px 0;padding:0 0 5px;text-align:left;border-bottom:1px solid rgba(255,255,255,.3)}.ui-notification a{color:#fff}.ui-notification a:hover{text-decoration:underline}.ui-notification>.message{margin:10px}.ui-notification.warning{color:#fff;background:#f0ad4e}.ui-notification.error{color:#fff;background:#d9534f}.ui-notification.success{color:#fff;background:#5cb85c}.ui-notification.info{color:#fff;background:#5bc0de}

/* The presence bubbles of the navbar (static/app/admin/views/presence.js): initials in a circle, a dot for green = active / grey = idle */
.presence-bar { display: flex; align-items: center; padding: 0 12px; }
.presence-avatar {
    position: relative;
    display: grid; place-items: center;
    width: 28px; height: 28px; margin-left: -8px;
    border-radius: 50%; border: 2px solid var(--berry);
    color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: -.02em;
    cursor: default;
}
.presence-avatar:first-child { margin-left: 0; }
.presence-dot {
    position: absolute; right: -2px; bottom: -2px;
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid var(--berry);
    background: #8c8c8c;
}
.presence-avatar.active .presence-dot { background: #46c06b; }
