@font-face {
    font-family: "Calibri";
    src: url('../fonts/calibri.ttf');
}

@font-face {
    font-family: "SukhumvitSetThin";
    src: url('../fonts/sukhumvit_set_thin.ttf');
}

@font-face {
    font-family: "TwCenMtCondensed";
    src: url('../fonts/tw_cen_mt_condensed.ttf');
}

:root {
  --loading-spinner-size: 60px;
  --loading-spinner-border: 6px;
  --loading-spinner-time: 1s;
}

html, body { height: 100%; }

.alert {
    display: none;
    width: 50%;    
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: "Calibri";
    font-weight: bold;
    z-index: 2000;
}

.alert-danger {
    color: #D8000C;
    background-color: #FFD2D2;
}

.alert-warning {
    color: #9F6000;
    background-color: #FEEFB3;
}

.alert-info {
    color: #00529B;
    background-color: #BDE5F8;
}

.alert-success {
    color: #4F8A10;
    background-color: #DFF2BF;
}


.red    { color: firebrick !important;}
.blue   { color: #054d95 !important; }
.green  { color: green; }
.black  { color: black; }
.orange { color: chocolate !important; }

.red.no-hover:hover    { color: firebrick !important;}
.blue.no-hover:hover   { color: #054d95 !important; }
.green.no-hover:hover  { color: green !important; }
.black.no-hover:hover  { color: black !important; }
.orange.no-hover:hover  { color: chocolate !important; }

.show-register-button, .show-register-button:hover {
    color: Blue;
}

.edit-register-button, .approve-button, .edit-register-button:hover,
.approve-register-button, .approve-register-button:hover,
.send-mail-button, .send-mail-button:hover,
.complete-process-button, .complete-process-button:hover{
    color: Green;
}

.delete-register-button, .delete-register-button:hover,
.disapprove-button,
.delete-purchase-item-button, .delete-purchase-item-button:hover,
.cancel-register-button, .cancel-register-button:hover {
    color: Red;
}

.quotation-edit-button, .quotation-edit-button:hover,
.manage-register-button, .manage-register-button:hover,
.allocate-receiving-button, .allocate-receiving-button:hover {
    color: Black;
}
.select-all-button, .select-all-button:hover {
    text-decoration: none !important;
    color: Black;
}

.logout-button, .logout-button:hover {
    text-decoration: none !important;
    color: White;
}

.background-panel {
    min-height: 102%;
    background-color: #f5f4f2;
    padding: 20px 50px 57px 50px;;
}

.system-header {
    background-image: url('../img/header_background.png');
    padding: 10px 10px 10px 35px;
}

.logo-image {
    width: 130px;
}

.all-content {
    padding: 0px 0px 0px 0px;
}


/*********************************************************************** MENU */

#menu-button {
    width: 30px; height: 30px;
    position: absolute; top: 0; left: 0;
    background: #f5f4f2 url('../img/icons/favicon24.png') no-repeat center ;
    border-radius: 2px;
    box-shadow: 2px 2px 2px rgba(0,0,0,.1);
    cursor: pointer;
    z-index: 99;
}

.main-menu {
    padding: 36px 0;
    background: #e6e6e6;
    font-family: Calibri;
    text-transform: uppercase;
}

.main-menu ul { list-style: none; padding: 0; }
.main-menu li { position: relative; }

.main-menu a {
    display: block;
    line-height: 18px;
    padding: 0.5em 1.5em;
    white-space: nowrap;
    color: #666;
}

.main-menu a:hover { text-decoration: none; background: #ccc; color: black; }
.main-menu a:focus { text-decoration: none; background: #ddd; color: black; }

/* current menu item  */
.main-menu > ul > .current > a, .main-menu .current_ancestor > a {
    background: linear-gradient(180deg, #0c3f5c 50%, #0a3852 50%);
    color: white; 
}
.main-menu > ul > .current > a:after, .main-menu .current_ancestor > a:after {
    content: "";
    width: 0; height: 0; 
    position: absolute; top: 0; right: -16px;
    border: 16px solid transparent;
    border-left: 16px solid #0a3852;
    border-right: 0;
}

/* current submenu item */
.main-menu .menu_level_1 .current > a { background: #ddd; color: black; }
.main-menu .menu_level_1 .current > a:after {
    content: "";
    width: 0; height: 0; 
    position: absolute; right: 0; top: 8px;
    border: 7px solid transparent;
    border-right: 7px solid #F4F4F2;
}

.main-menu li li a { text-align: right; padding-right: 2em; font-size: smaller; }

.main-menu .closed:after { content: " \25b8"; }
.main-menu .opened:after { content: " \25be"; }




/***********************************************************************/

#main {
    display: flex;
    min-height: 1400px;
}

#main-content {
    display: flex;
}

.fill-height {
    height: 100%;
}

.page-body {
    background-color: White;
    padding: 0px 0px 20px 0px;
    font-family: Calibri;
}

.title-box {
    margin-top: -20px;
}

.search-box {
    width: 130px;
    background: url('../img/icons/search_icon.png') no-repeat scroll 5px 10px;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
    float: right;
    padding: 0px 0px 0px 30px;
    margin-top: -10px;
    
}

.search-box:focus {
    width: 250%;
}

input[type="text"], select, option, textarea {
    text-transform: uppercase;
    background: #f5f4f2 !important;
}

input[type="email"], input[type="password"] {
    background: #f5f4f2 !important;
}

input[type="search"] {
    text-transform: uppercase;
}

.table-bordered {
    border-collapse: separate;
    border-spacing: 2px;
    border: none;
    white-space: nowrap;
}

.table-bordered:not(.bootstrap-table) {
    margin: 10px 0px 10px 0px;
}

.table-bordered > thead > tr > th, .table-bordered > tbody > tr > td {
    border: none;
    vertical-align: middle;
}

.table > tbody {
    background-color: #f5f4f2;
}

.table > thead > tr > th {
    text-align: center;
    background-color: #0c3f5c;
    color: White;
    font-family: TwCenMtCondensed;
}

tr {
    page-break-inside: avoid;
}

tr.canceled * {
  color: #aaa !important;
}

.table tr:hover {
    background-image: linear-gradient(rgb(0 0 0/7%) 0 0);
}

td.title-cell {
    font-size: medium !important;
    font-family: TwCenMtCondensed;
}


/* table sorter */ 
.tablesorter-header {
    background-image: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAGFBMVEUAAADu7u7u7u7u7u7u7u7u7u7u7u7u7u5jNePWAAAACHRSTlMAMxIHKwEgMWD59H4AAABSSURBVAjXY2BgYFJgAAHzYhDJ6igSAKTYBAUTgJSioKAQAwNzoaCguAFDiCAQuDIkgigxBgiA8cJAVCpQt6AgSL+JoKAzA0gjUBsQqBcBCYhFAAE/CV4zeSzxAAAAAElFTkSuQmCC);
    background-position: right 7px center;
    background-repeat: no-repeat;
    cursor: pointer;
}
.tablesorter-headerAsc {
    background-image: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAADu7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u5meJAOAAAACnRSTlMAMwsqXt+gIBUGxGoDMAAAAFlJREFUCNctzC0SQAAUReEzGNQ3AlHRiSRZFCVZYgeswRL8hLdK7834wj3tAlGP6y7fYHpKS6w6WwbVG0I1NZVnZPG8/DYxOYlnhUYkA06R1s9ESsxR4NIdPhkPFDFYuEnMAAAAAElFTkSuQmCC);
}
.tablesorter-headerDesc {
    background-image: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAALVBMVEUAAADu7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7i0NViAAAADnRSTlMAMiweCQITTvDctZZqaTlM310AAABcSURBVAjXY2BgYEtgAAFHERDJqigUAKSYBQUNgFSioKAYAwOLIBA4MASBKFUGQxAlzAAF+94BwWuGKBC1lIFl3rt3Lx0YGCzevWsGSjK9e6cAUlT3HKyW9wADAwDRrBiDy6bKzwAAAABJRU5ErkJggg==);
}
.sorter-false {
    background-image: none;
    cursor: default;
}



.paginator-box {
    float: none;
    display: table-cell;
    vertical-align: bottom;
}

.table > tbody > tr > td a {
    text-decoration: none;
}

.page-title {
    font-family: SukhumvitSetThin;
    font-size: xx-large;
    padding: 0px 0px 0px 0px;
}
.page-subtitle {
    font-size: large;
    padding: 0px 0px 20px 0px;
}

.system-footer {
    font-family: Calibri;
    font-size: small;
    background-color: #464646;
    color: Grey;
    padding: 10px 0px 0px 0px;
    border: none;
    margin: 0px 0px -15px 0px;
}

.btn-toolbar {
    margin-bottom: 20px;
}

.new-button-box {
    margin-right: 0px;
}

.form-group {
    margin: 0px 0px 5px 0px !important;
}

.btn-primary {
    background-color: #0c3f5c;
}

label.form-control {
    background: #f5f4f2 !important;
    font-weight: normal;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

.modal-footer {
    border: none;
}

.modal-content {
    font-family: "SukhumvitSetThin";
}

input[type="text"].login, input[type="password"].login  {
    text-transform: none;
    background: White !important;
    font-size: 16pt;
}

#body-login {
    background: #053750; /* For browsers that do not support gradients */
    background: -webkit-linear-gradient(#053750, #0e496b); /* For Safari 5.1 to 6.0 */
    background: -moz-linear-gradient(#053750, #0e496b); /* For Firefox 3.6 to 15 */
    background: linear-gradient(#053750, #0e496b); /* Standard syntax */
    text-align: center;
}

.container-auth{
    text-align: center;
    padding-top: 150px;
    width: 320px;
    font-family: "SukhumvitSetThin";
}

.group-top {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

.group-middle {
    border-bottom: 0 none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

.group-bottom {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: 0 !important;
}

img.login{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.lowercase {
    text-transform: lowercase !important;
}

.invisible {
    display: none;
    position: absolute;
}

input[type="text"].file-path {
    text-transform: none;
}

.tab-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

.account-level-1 {
    background-color: #225c6c !important;
    color: white !important;
}

.account-level-2 {
    background-color: #a6a6a6 !important;
    color: black !important;
}

.account-level-3 {
}

.account-level-4 {
}

.account-level-5 {
}

.nav-tabs a {
    outline: none;
}

.btn-selectpicker {
    text-transform: uppercase;
    background: #f5f4f2;
}

.overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 199;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0, 0.7);
    overflow-y: hidden;
    display: none;
}

.loader {
    position: fixed;
    left: calc(50% - var(--loading-spinner-size)/2);
    top: calc(50% - var(--loading-spinner-size)/2);
    height: var(--loading-spinner-size);
    width: var(--loading-spinner-size);
    -webkit-animation: rotation var(--loading-spinner-time) infinite linear;
    -moz-animation: rotation var(--loading-spinner-time) infinite linear;
    -o-animation: rotation var(--loading-spinner-time) infinite linear;
    animation: rotation var(--loading-spinner-time) infinite linear;
    border-left: var(--loading-spinner-border) solid rgba(0,174,239,.15);
    border-right: var(--loading-spinner-border) solid rgba(0,174,239,.15);
    border-bottom: var(--loading-spinner-border) solid rgba(0,174,239,.15);
    border-top: var(--loading-spinner-border) solid rgba(0,174,239,.8);
    border-radius:100%;
}

@-webkit-keyframes rotation {
   from {-webkit-transform: rotate(0deg);}
   to {-webkit-transform: rotate(359deg);}
}

@-moz-keyframes rotation {
   from {-moz-transform: rotate(0deg);}
   to {-moz-transform: rotate(359deg);}
}

@-o-keyframes rotation {
   from {-o-transform: rotate(0deg);}
   to {-o-transform: rotate(359deg);}
}

@keyframes rotation {
   from {transform: rotate(0deg);}
   to {transform: rotate(359deg);}
}

.bootstrap-table .table {
    border-collapse: separate !important;
}

.table-small {
    white-space: nowrap;
    width: 1%;
}

.table.center {
    margin: auto !important;
}

.input-money {
    text-align: right;
}

.no-background {
    background-color: white !important;
}

.best-price {
    background-color: #cdd !important;
}

.default-option {
    background: #cdd;
}

.bad-price {
    color: #c00;
}

.price-radio {
    transform: scale(0.8);
}

.ignore-item, .inactive-offering > td {
    background-color: #f2dede !important;
}

a.disabled {
    pointer-events: none;
}

.not-allowed {
    cursor: not-allowed !important;
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.welcome-message {
    color: White;
    font-family: "SukhumvitSetThin";
}
.wrap {
    white-space: normal !important;
}

.gambi .checkbox { margin: 0; }
.gambi label { display: block; }


/***** page specific stuff *****/

.product-choice .dropdown-menu { max-width: 200%; }

.prev-offering { color: #888; font-style: italic; }

.emphasis { color: #888; font-style: italic; }



#select-too-long .bootstrap-select.fit-width {  }

/* Begin toogle switch */
 /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


/* equipments & events -------------------------------------------------------*/

ul.timeline {
    background: #f5f5f5;
    padding: 20px 0 0 0;
    border-left: 3px solid #ddd;
    border-radius: 0 4px 4px 0; 
    font-size: smaller;
}
ul.timeline > li {
    list-style-type: none;
    margin-left: -3px;
    border-left: 3px solid transparent;
    padding: 0 10px 20px 20px;
}
ul.timeline > li a {
    display: none;
}
ul.timeline > li:hover {
    background: #e9e9e9;
}
ul.timeline > li:hover a {
    display: inline-block;
    margin-top: 10px; 
}
ul.timeline > li::before {
    content: '';
    width: 13px; height: 13px;
    position: absolute;
    margin-left: -28px;
    border-radius: 50%;
    background: dimgray;
}

ul.timeline > li.event1 { border-left: 3px solid dimgray; }
ul.timeline > li.event2 { border-left: 3px dotted firebrick; }
ul.timeline > li.event3 { border-left: 3px solid #dfdfdf; }

ul.timeline > li.EventStart::before      { }
ul.timeline > li.EventPause::before      { background: firebrick; border-radius: 20%; }
ul.timeline > li.EventResume::before     { }
ul.timeline > li.EventExtraHours::before { background: #ddd; border: 3px solid forestgreen; }
ul.timeline > li.EventIndemnity::before  { background: #ddd; border: 3px solid #054d95; }
ul.timeline > li.EventReplace::before    { background: #ddd; border: 3px solid dimgray; border-radius: 20%; }
ul.timeline > li.EventReturn::before     { border-radius: 20%; }
ul.timeline > li.EventComplete::before   { background: #aaa; border: 3px solid dimgray; border-radius: 20%; }

ul.timeline > li > time { font-style: italic; color: grey; }
ul.timeline > li > header { font-weight: bold; font-size: larger; }


.panel-base .panel-heading { background: #0c3f5c !important; color: white; }
.panel-base .panel-body { border: 1px solid #ddd; border-top: 0; border-radius: 0 0 4px 4px; }


/* VL: expand / hide equipment info ----------------------------------*/

.expand-equip-btn:before {
    content: '\002795';
}
.expand-equip-btn.expanded:before {
    content: '\002796';
}

.expand-equip-extra-info hr { border: 0px; border-top: 1px solid transparent; margin: 5px 0 7px 0; }


select > option:disabled {
    color: #ddd;
}




