@media (min-width: 1600px) {
    .visible-under-1600w {
        display: none !important;
    }
}
@media (max-width: 1600px) {
    .visible-over-1600w {
        display: none !important;
    }
}

@media (min-width: 1366px) {
    .visible-under-1366w {
        display: none !important;
    }
}
@media (max-width: 1366px) {
    .visible-over-1366w {
        display: none !important;
    }
    .form-control-sm-under-1366w {
        padding: 0.35rem 0.75rem;
        font-size: 0.875rem;
        line-height: 1.5;
        border-radius: 0.2rem;
    }
}

@media (min-width: 1200px) {
    .margin-top-0-xl {
        margin-top: 0px !important;
    }
}

@media (max-width: 576px) {
    .text-centered-sm {
        text-align: center !important;
    }
}

.homepage-jumbotron {
    background: #e79c38; /* fallback for old browsers */
    background: -webkit-linear-gradient(to left, #e79c38, #e220fe); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to left, #e79c38, #e220fe); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.google-text {
    font-family: 'Roboto', sans-serif;
}

.errorlist {
    list-style: none;
    -webkit-padding-start: 0;
    -webkit-margin-after: 0.5em;
}

/*
Metronic Portlet customisation
*/

.m-portlet__body.image-portlet {
    padding: 0.5rem;
}

.homepage-portlet, .homepage-jumbotron {
    margin-bottom: 0;
}

.homepage-portlet > .m-portlet .m-portlet__head .m-portlet__head-caption .m-portlet__head-title .m-portlet__head-text {
    font-size: 1.75rem;
}


.m-portlet.portlet__body-compact.m-portlet--head-sm .m-portlet__body {
    padding: 0.5rem;
}

.m-portlet.portlet__body-compact.m-portlet--head-sm .m-portlet__head {
    padding: 1.25rem;
}

.portlet__body-compact .m-portlet__body table.table tr:first-child {
    border-top-style: hidden;
}

/***************
* Metronic 'left-aside' / left menu *
***************/
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav > .m-menu__section .m-menu__section-text {
    color: rgb(171, 177, 215);
}

.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav > .m-menu__item > .m-menu__link .m-menu__link-icon,
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav > .m-menu__item.m-menu__item--expanded > .m-menu__link .m-menu__link-icon,
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav > .m-menu__item > .m-menu__link .m-menu__link-text,
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav > .m-menu__item.m-menu__item--expanded > .m-menu__link .m-menu__link-text {
    color: #dee0e1;
}

.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav > .m-menu__item .m-menu__submenu .m-menu__item > .m-menu__heading .m-menu__link-text,
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav > .m-menu__item .m-menu__submenu .m-menu__item > .m-menu__link .m-menu__link-text {
    color: rgb(171, 177, 215);
}

/***************
* Buttons *
***************/

.btn-outline-primary:focus, .btn-outline-primary.focus {
    background-color: #e79c38
}

.cp-btn-slim {
    padding-top: 0.1rem!important;
    padding-bottom: 0.1rem!important;
}

/***************
* Images *
***************/
.max-w-100 {
    width: 100%;
    max-width: 100px;
}
.max-w-200 {
    width: 100%;
    max-width: 200px;
}
.max-w-250 {
    width: 100%;
    max-width: 250px;
}

/***************
* Links *
***************/
.no-link-decoration {
    color: #575962;
}
.no-link-decoration:hover {
    text-decoration: none !important;
    color: #575962;
}

.welcome-item {
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
}

/***************
* Welcome page flex items *
***************/

@media (min-width: 1024px) { /* Large Screens */
    .welcome-item {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        align-content: start;
    }
    .welcome-item > img {
        flex-shrink: 1;
    }
    .welcome-item > .welcome-item-text {
        flex-shrink: 2;
        margin-left: 1rem;
    }
}

@media (max-width: 1024px) { /* Medium Screens */
    .welcome-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}
/***************
* Forms *
***************/

.cp-invalid-feedback {
    /*display:none;*/
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #f4516c
}

.cp-invalid-feedback-large {
    /*display:none;*/
    width: 100%;
    margin-top: .25rem;
    color: #f4516c
}

.helptext {
    color: #6c757d!important;
    font-size: 75%;
    font-weight: 400;
}

.checkbox-vertical-align {
    vertical-align: middle;
}

/***************
* Headers *
***************/

/* Override/disable Metronics box shadows */
.cp-header {
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
}

.m-portlet .m-portlet__head .m-portlet__head-tools-left {
    text-align: left;
}

.m-brand {
    padding: 0px 20px;
}

/***************
* Footers *
***************/

.cp-footer {
    background-color: #2a2c39;
    padding-top: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 14px;
    color: white;
}

.cp-aside-footer {
    padding: 0 0 0 0!important;
    margin-bottom: 0!important;
}


/***************
* Tabs *
***************/

.nav.cp-tabs {
    border-bottom: none;
    margin-bottom: 0;
}

.nav.cp-tabs .nav-link {
    border: 1px solid #00000021;
    border-bottom: 0;
}

/***************
* Dividers *
***************/

/* hr with text centered */
.hr-wrap {
    display: block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.hr-wrap > span {
    position: relative;
    display: inline-block;
}

.hr-wrap > span:before,
.hr-wrap > span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9999px;
    height: 1px;
    background: gray;
}

.hr-wrap > span:before {
    right: 100%;
    margin-right: 15px;
}

.hr-wrap > span:after {
    left: 100%;
    margin-left: 15px;
}

/***************
* Page specific *
***************/

/* Field Activities Hole List */
td.select-record-depth-column {
    padding: 0.3rem !important;
    vertical-align: middle !important;
}

.select-record-depth-column {
    display: none;
}

.select-record-depth-column.visible {
    display: table-cell;
}

.select-record-depth-column > input[type="number"] {
    width: unset;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.select-record-depth-column > input {
    visibility: hidden;
    opacity: 0;
    transition: opacity 400ms 0ms ease;
}

.select-record-depth-column > input.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 600ms 0ms ease;
}

/* Create Plod For Project page  */
div.row div.col-md-3 input.datepicker {
/* fix width so that it doesn't overflow into the next column div at smaller viewport sizes */
    width: 100%;
}


/* Plod Detail form page */
table tr.cp-no-top-border th, table tr.cp-no-top-border td {
    /* remove the border between table rows */
    border-top: none;
}

/* Specification Prefixes */
ol.cp-spec-prefix {
    counter-reset: item;
    list-style-type: none;
    *list-style-type: decimal; /*Conditional hack for ie7*/
}

ol.cp-spec-prefix li.cp-spec-prefix:before {
    content: 'Spec ' counter(item, decimal) ' ';
    counter-increment: item;
}

/* Plod Specification headers */
.cp-spec-header {
    margin-top: 0.4rem;
    border-bottom: thin solid #7b7e8a;
    margin-bottom: 1rem;
}

@media (min-width: 1200px) { /* Large Screens */
    .cp-lg-spec-toggleswitch {
        margin-top: 2.3rem!important;
    }
}

  /* Vertical line in signup/login page */
.vline {
    border-right: 2px solid orange;
}

.content {
    background: rgba(0, 0, 0, 0.5);
}

/* Front page */

.cp-fullheight {
    height:100vh;
}

.cp-frontpage-header-text {
    font-size: 50px;
    color: #ffffff;
    font-weight: 600;
}

.cp-frontpage-normal-text {
    font-size: 20px;
    color: #ffffff;
    font-weight: 400;
}


#cp-section-1{
    background: linear-gradient(to bottom,
        rgba(231, 156, 56, 0.4) 30%,
        rgba(211,222,225,0.5) 100%
    ),
    url("../images/home-slide1.371e90ead37c.jpg") no-repeat center center;
    background-size: cover;
    position: relative
}

#circle {
    width: 20%;
    min-width: 400px;
    position: absolute;
    right: -100px;
    top: -100px;
    opacity: 0.8;
    animation: spin 12s infinite linear;
    overflow-scrolling: auto;
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

#cp-section-2 {
    background-color: #ffffff;
    padding: 45px 0px;
}

.cp-section-2-header-text {
    font-weight: 700;
    color: #33ace0;
    font-size: 36px;
    line-height: normal;
}

.cp-section-2-normal-text {
    color: #5e5e5e;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
}

#cp-section-3 {
    padding: 45px 45px;
}

.cp-section-3-header-text {
    font-weight: 700;
    color: #5e5e5e;
    font-size: 28px;
}

.cp-section-3-normal-text {
    color: #5e5e5e;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

/***************
* Map box legend *
***************/

.legend {
    background-color: #fff;
    border-radius: 3px;
    bottom: 30px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.10);
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
    padding: 10px;
    right: 10px;
    z-index: 1;
}


.legend h4 {
    margin: 0 0 10px;
}

.legend span.legend-item {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 10px;
}

/**************
Dashboard charts
**************/

.cp-dashboard-chart-portlet {
    min-height: 500px;
}

.cp-dashboard-chart-portlet-thin {
    min-height: 300px;
    max-height: 350px;
}

.cp-portlet-no-padding {
    padding: 0px;
	color: #575962;
}

/**************
Tables
**************/

.table.cp-table__narrow-rows tr th, .table.cp-table__narrow-rows tr td {
    padding: 0.28rem;
}

.table.cp-borderless tr td, .table.cp-borderless tr th {
    border-top: none;
}

.table.cp-expenses-table tr:first-child td, .table.cp-expenses-table tr:first-child th {
    border-bottom: 1px solid lightgrey;
}

.table.cp-expenses-table tr:last-child td, .table.cp-expenses-table tr:last-child th {
    border-top: 1px solid lightgrey;
    border-bottom: 1px solid lightgrey;

}

.table.cp-expenses-table tr.total {
    font-weight: bold;
}

.table.cp-expenses-table tr.total th:first-child {
    font-size: 16px;
}

th.sortable a {
    color: #575962;
}

th.sortable.active a, th.sortable.active::after {
    color: #e79c38;
}

th.sortable a:link {
    text-decoration: none;
}

th.sortable a:hover {
    color: #e79c38;
}

th.sortable::after {
  font-family: FontAwesome;
  content: "\f0dc";
  position: absolute;
  margin-left: 10px;
  color: #999;
}

th.sortable.asc::after {
  content: "\f0d8";
}

th.sortable.desc::after {
  content: "\f0d7";
}

th.sortable:hover::after {
  color: #333;
}

/********
Icons
 ********/
.m-portlet .m-portlet__head .m-portlet__head-tools .m-portlet__nav .m-portlet__nav-item .m-portlet__nav-link.m-portlet__nav-link--icon i.flaticon-edit-1 {
    color: #e79c38;
}

.m-portlet .m-portlet__head .m-portlet__head-tools .m-portlet__nav .m-portlet__nav-item .m-portlet__nav-link.m-portlet__nav-link--icon i.flaticon-edit-1:hover {
    color: #bc7517;
}
.m-header-menu.m-header-menu--skin-light .m-menu__nav > .m-menu__item > .m-menu__link .m-menu__link-icon,
.m-topbar .m-topbar__nav.m-nav > .m-nav__item > .m-nav__link .m-nav__link-icon {
    color: #ad5beb;
}

.m-header-menu.m-header-menu--skin-light .m-menu__nav > .m-menu__item > .m-menu__link .m-menu__hor-arrow,
.m-nav .m-nav__item > .m-nav__link .m-nav__link-text .la {
    font-size: 1rem;
    color: #676c7b;
}

.m-nav .m-nav__item:hover:not(.m-nav__item--disabled) > .m-nav__link .m-nav__link-text .la {
    color: #e79c38;
}

/*********
Text
********/
.numeric-header {
    text-align: right;
}

.numeric {
    font-family: "Inconsolata";
    text-align: right;
}

.numeric-left {
    font-family: "Inconsolata";
    text-align: left;
}

tr.inactive-item > td {
    color: darkgrey;
}

/*********
Forecast Progress Bars
********/
.forecast-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height:60px;
}

.forecast-bar .progress {
    flex: 4;
    height: 40px;
}
.forecast-bar .numeric {
    font-size: 1.2rem;
    z-index: 2;
}
.forecast-bar > .forecast-label {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.bar-step {
    position: absolute;
    z-index: 1;
    font-size: 12px;
    border-left: 4px solid #e7983b;
    padding-left: 5px;
    height: 60px;
    width: 100px;
}

.label-text {
    position: absolute;
    bottom: -15px;
}

.big-circle {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    margin: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.big-circle span.circle-heading {
    font-size: 32px;
    font-weight: bold;
}

.big-circle span.circle-text {
    font-size: 18px;
}

/*
Rig schedule
*/
.schedule-calendar {
    padding-top: 4rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: row;
}

.calendar-column {
    display: flex;
    flex-direction: column;
    align-content: flex-end;
}

.calendar-column.date {
    width: 2.8rem;
}

.calendar-column.meta {
    font-size: 12px;
}

.calendar-column.meta .calendar-meta-header {
    min-width: 5rem;
    max-width: 8rem;
    height: 3rem;
    font-weight: 800;
    font-size: 10px;
}

.calendar-heading {
    flex-grow: 1;
    transform-origin: 50% 0%;
    transform: rotate(-65deg);
    -moz-transform: rotate(-65deg);
    font-weight: 800;
    font-size: 10px;
}

.calendar-cell {
    display: flex;
    border-top: 0.2px solid #dee0e1;
    border-right: 0.2px solid #dee0e1;
    height: 2.8rem;
    padding: 2px;
    align-items: center;
}

.calendar-cell.numeric {
    justify-content: flex-end;
    font-size: 14px;
}

.calendar-column:first-child .calendar-cell {
    border-left: 0.2px solid #dee0e1;
    font-weight: 800;
}

.calendar-column .calendar-cell:last-child {
    border-bottom: 0.2px solid #dee0e1;
}

/* Pagination */
ul.pagination {
    margin-top: auto;
    margin-bottom: auto;
}
