/* Custom CSS */
.bg-logo {
    background-color: #1F2126;
    padding-left: 70px;
    padding-top: 0;
}

/* Transparent logo background */
.bg-logo {
    background-color: #252d3600;
}

/* Left menu background color */
.bg-grad-sidebar {
    background-image: linear-gradient(0deg,#193159,#193159);
}
/* Main content background */
.content {
    background-color: #F3F6F6;
}

/* Selected item in left menu */
.router-link-active {
    color: #E8540D;
}

/* Main color of links */
.text-primary {
    color: #77BBBD;
}

/* Table header background and text color */
.table th {
    /*color: #29323B;
    background-color: #f1f1f1;*/
}

.table td {
    height: 2.8rem;
}

/* Table footer */
.bg-20 {
    background-color: #f1f1f1;
}
.text-80 {
    color: #29323B;
}

/* Main buttons */
.btn-primary {
    background-color: #E8540D;
}
.btn-primary:not([disabled]):not(.btn-disabled):hover {
    background-color: #E8540D;
    opacity: 0.75;
}

/* Icons */
.text-70 {
    /*color: #29323B;*/
}
.hover\:text-primary:hover {
    /*color: #FFCC34;*/
}

/* Box shadow search fields */
.form-global-search, .form-search {
    border: 2px solid #E8540D ;
}

.form-global-search:active, .form-global-search:focus, .form-search:active, .form-search:focus {
    box-shadow: 0 0 0 1px #FFE8540D;
}

.search-icon-center {
    color: #E8540D;
}

/* Box shadow filters button */
.active\:shadow-outline:active, .focus\:shadow-outline:focus {
    box-shadow: 0 0 0 3px #E8540D7F;
}

/* Form select menu */
.form-select:focus {
    box-shadow: 0 0 0 3px #E8540D7F;
}

/* Custom news notify button */
.text-btn-notify {
    color: #222222;
}
.border-btn-notify {
    border-color: #222222;
}
.btn-notify {
    height: 2.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    line-height: 2.25rem;
    border-radius: .5rem;
}
.btn-notify:not([disabled]):not(.btn-disabled):active, .btn-notify:not([disabled]):not(.btn-disabled):focus {
    box-shadow: 0 0 0 3px #29323B;
}

/* Tables checkboxes */
.checkbox {
    color: #E8540D;
}
.checkbox:active, .checkbox:focus {
    box-shadow: 0 0 0 3px #E8540D7F;
}

/* Global search field */
a.hover\:bg-20:hover {
    background-color: #E8540D7F;
}

a.bg-20 {
    background-color: #FFFFFF;
}

/* Details buttons */
.bg-primary {
    background-color: #E8540D;
}
.bg-primary:hover {
    background-color: #E8540D;
    opacity: 0.75;
}
.btn-default:not([disabled]):not(.btn-disabled):active, .btn-default:not([disabled]):not(.btn-disabled):focus {
    box-shadow: 0 0 0 3px #E8540D7F;
}

/* Relationships buttons */
.btn-outline {
    color: #222222;
    border-color: #222222;
}
.btn-outline:not([disabled]):not(.btn-disabled):hover {
    border-color: #222222;
}
.btn-outline:not([disabled]):not(.btn-disabled):active, .btn-outline:not([disabled]):not(.btn-disabled):focus {
    border-color: #222222;
    box-shadow: 0 0 0 3px #222222;
}

/* Details delete button */
.btn-link:active, .btn-link:focus {
    box-shadow: 0 0 0 3px #E8540D7F;
}

/* Form input */
.form-input:active, .form-input:focus {
    box-shadow: 0 0 0 3px #E8540D7F;
}

/* Badge types styles */
.badge-unknown {
    color: #878787;
    background-color: #e6e5eb;
}

.badge-dark-blue {
    color: #193159;
    background-color: #abc0e4;
}

/* Hide nova home link to APP URL */
.hamburger-menu~a {
    display: none;
}

/* Hide belongsToMany with trashed checkbox */
label[dusk='sites-with-trashed-checkbox'] {
    display: none;
}

/* Hide belongsToMany with trashed checkbox */
label[dusk='suppliers-with-trashed-checkbox'] {
    display: none;
}

/* Hide belongsToMany with trashed checkbox */
label[dusk='anomaly-types-with-trashed-checkbox'] {
    display: none;
}

/* Hide belongsToMany with trashed checkbox */
label[dusk='corrective-action-types-with-trashed-checkbox'] {
    display: none;
}

/* Hide belongsToMany with trashed checkbox */
label[dusk='employees-with-trashed-checkbox'] {
    display: none;
}

/* Hide belongsToMany with trashed checkbox */
label[dusk='template-tasks-with-trashed-checkbox'] {
    display: none;
}

/* Hide softDeletes and perPage filters  */
div[dusk='filter-soft-deletes'], div[dusk='filter-per-page'] {
    display: none;
}


















/* Theme CSS */
.hamburger-menu {
    cursor: pointer;
    position: relative;
    height: 19px;
    display: none;
}
html:not([dir="rtl"]) .hamburger-menu {
    padding-left: 1.25em;
    margin-right: 9px;
}
html[dir="rtl"] .hamburger-menu {
    padding-right: 1.25em;
    margin-left: 9px;
}

.hamburger-menu:before {
    content: "";
    position: absolute;
    top: 0.21em;
    bottom: 0.21em;
    width: 1em;
    background: linear-gradient(
            to bottom,
            black, black 20%,
            white 20%, white 40%,
            black 40%, black 60%,
            white 60%, white 80%,
            black 80%, black 100%
    );
}
html:not([dir="rtl"]) .hamburger-menu:before {
    left: 0;
}
html[dir="rtl"] .hamburger-menu:before {
    right: 0;
}

.content.hide-update-and-continue-editing-button button[dusk$='update-and-continue-editing-button'] {
    display: none;
}

/* Resource tables */
.content.sticky-actions .card table.w-full tbody tr td:last-child, .content.sticky-actions .card table.w-full thead tr th:last-child {
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    right: 0;
}

.content.sticky-actions .card table.w-full tbody tr td:last-child {
    background: white;
}

.content.sticky-actions .card table.w-full tbody tr td:last-child:before {
    content: '';
    height: 100%;
    top: 0;
    margin-left: -.75rem;
    position: absolute;
    border-left: 1px solid #eee;
}

@media (min-width: 992px) {
    body.fixed-sidebar .bg-grad-sidebar {
        position: fixed;
        padding-top: 5.5rem !important;
        overflow: auto;
        height: 100%;
    }

    body.fixed-sidebar .content {
        padding-left: 13.75rem;
        max-width: 100%;
    }
}

@media (max-width: 80rem) {
    .min-w-site {
        min-width: auto;
    }

    .content {
        min-width: auto;
        width: 100%;
    }

    /* Resource tables */
    .content.sticky-actions-on-mobile .card table.w-full tbody tr td:last-child, .content.sticky-actions-on-mobile .card table.w-full thead tr th:last-child {
        position: -webkit-sticky;
        position: -moz-sticky;
        position: -ms-sticky;
        position: -o-sticky;
        position: sticky;
        right: 0;
    }

    .content.sticky-actions-on-mobile .card table.w-full tbody tr td:last-child {
        background: white;
    }

    .content.sticky-actions-on-mobile .card table.w-full tbody tr td:last-child:before {
        content: '';
        height: 100%;
        top: 0;
        margin-left: -.75rem;
        position: absolute;
        border-left: 1px solid #eee;
    }
}

@media (max-width: 992px) {
    /* Sidebar */
    .w-sidebar {
        position: fixed;
        padding-top: 5.5rem !important;
        z-index: 1000;
        height: 100%;
        overflow: auto;
    }

    .w-sidebar.pt-header {
        padding-top: 1.75rem;
    }

    .sidebar-hidden {
        display: none;
    }

    /* Header */
    .h-header {
        z-index: 1000;
        position: fixed;
        width: 100%;
        margin-top: -3.75rem;
    }

    .hamburger-menu {
        display: block;
    }
    html:not([dir="rtl"]) .hamburger-menu {
        margin-right: 1rem;
    }
    html[dir="rtl"] .hamburger-menu {
        margin-left: 1rem;
    }

    .bg-logo {
        display: none !important;
    }

    html:not([dir="rtl"]) .h-header .dropdown-trigger {
        margin-right: -20px;
    }
    html[dir="rtl"] .h-header .dropdown-trigger {
        margin-left: -20px;
    }

    .h-header .dropdown-trigger span, .h-header .dropdown-trigger svg {
        display: none;
    }

    html:not([dir="rtl"]) .h-header .dropdown-trigger img.mr-3 {
        margin-right: 0;
    }
    html[dir="rtl"] .h-header .dropdown-trigger img.mr-3 {
        margin-left: 0;
    }


    span.hamburger-menu + a {
        display: none;
    }

    .h-header .pl-search {
        width: 85%;
    }

    /* Content */
    .content {
        padding-top: 3.75rem;
        max-width: none;
    }

    .content .px-view {
        padding-left: 1.125rem;
        padding-right: 1.125rem;
    }

    .content .py-view {
        padding-top: 1.125rem;
        padding-bottom: 1.125rem;
    }

    /* Forms */
    form .w-1\/2 {
        width: 80%;
    }

    form .w-1\/2 > div.flex {
        display: block;
    }

    form > .flex {
        display: block;
    }

    form > .flex > button {
        margin-bottom: 10px;
    }

    .content.hide-update-and-continue-editing-button-on-mobile button[dusk$='update-and-continue-editing-button'] {
        display: none;
    }

    .content form .card > .flex,
    div[dusk$='detail-component'] .card > .flex{
        display: block;
    }
    .content form .card > .flex > div,
    div[dusk$='detail-component'] .card > .flex > div {
        width: 100%;
    }

    .content form .card > .flex > .py-6,
    div[dusk$='detail-component'] .card > .flex > .py-4 {
        padding-top: .5rem;
        padding-bottom: 0;
    }

    .content form .card > .flex > .py-6,
    div[dusk$='detail-component'] .card > .flex.bg-20 > .py-4 {
        padding-bottom: .5rem;
    }

    .content form .card > .flex > .py-6 + .py-6,
    div[dusk$='detail-component'] .card > .flex > .py-4 + .py-4 {
        padding-bottom: .5rem;
    }

    .card > form > div header.flex {
        display: block;
    }

    .card > form > div header.flex ul:first-child {
        border-bottom: 1px solid var(--60);
    }

    html:not([dir="rtl"]) .card > form > div header.flex ul:nth-child(2) button:first-child {
        border-left: none;
    }
    html[dir="rtl"] .card > form > div header.flex ul:nth-child(2) button:first-child {
        border-right: none;
    }

    html:not([dir="rtl"]) .card > form > div header.flex ul:nth-child(2) button:last-child {
        border-right: 1px solid var(--60);
    }
    html[dir="rtl"] .card > form > div header.flex ul:nth-child(2) button:last-child {
        border-left: 1px solid var(--60);
    }

    .card > form > div div.pin {
        z-index: 2000;
    }

    trix-toolbar .trix-button-row {
        display: inline-block !important;
    }

    html:not([dir="rtl"]) trix-toolbar .trix-button-group {
        float: left !important;
    }
    html[dir="rtl"] trix-toolbar .trix-button-group {
        float: right !important;
    }

    /* Cards */
    .content .flex-wrap > .w-1\/2,
    .content .flex-wrap > .w-1\/3,
    .content .flex-wrap > .w-1\/4,
    .content .flex-wrap > .w-1\/5,
    .content .flex-wrap > .w-1\/6,
    .content .flex-wrap > .w-2\/3,
    .content .flex-wrap > .w-2\/5,
    .content .flex-wrap > .w-3\/4,
    .content .flex-wrap > .w-3\/5,
    .content .flex-wrap > .w-4\/5,
    .content .flex-wrap > .w-5\/6 {
        width: 100%;
    }

    .content .card table td.w-1\/2 {
        display: table-row;
    }

    /* Other */
    .btn {
        white-space: nowrap;
    }

    div[dusk$='index-component'] .pl-search {
        width: auto;
    }

    div[dusk$='index-component'] .btn[dusk='create-button'],
    div[dusk$='index-component'] .btn[dusk='attach-button'] {
        font-weight: bolder;
        font-size: 26px;
        padding: 0 12px;
        width: 39px;
        overflow: hidden;
    }

    div[dusk$='index-component'] .btn[dusk='create-button']::before,
    div[dusk$='index-component'] .btn[dusk='attach-button']::before {
        content: "+";
        position: relative;
    }
    html:not([dir="rtl"]) div[dusk$='index-component'] .btn[dusk='create-button']::before,
    html:not([dir="rtl"]) div[dusk$='index-component'] .btn[dusk='attach-button']::before {
        margin-right: 20px;
    }
    html[dir="rtl"] div[dusk$='index-component'] .btn[dusk='attach-button']::before,
    html[dir="rtl"] div[dusk$='index-component'] .btn[dusk='create-button']::before {
        margin-left: 20px;
    }

    .modal {
        top: auto;
    }

    .modal form {
        width: 100% !important;
    }

    div[dusk$='index-component'] > div.card > div.py-3.flex.items-center.border-b.border-50 {
        padding-bottom: 0.35rem;
    }

    div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 {
        display: block;
    }

    div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > h4 {
        position: absolute;
    }

    div[dusk$='index-component'] > div.card > div.py-3.flex.items-center.border-b.border-50 > div.flex.items-center.ml-auto.px-3,
    div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > div.ml-3.w-full.flex.items-center {
        display: inline-block;
    }

    div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > div.ml-3.w-full.flex.items-center {
        display: inline-block;
        padding-top: 1.5rem
    }

    div[dusk$='index-component'] > div.card > div.py-3.flex.items-center.border-b.border-50 > div.flex.items-center.ml-auto.px-3 > div,
    div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > div.ml-3.w-full.flex.items-center > div,
    div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > div.ml-3.w-full.flex.items-center > button,
    div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > div.ml-3.w-full.flex.items-center > a {
        display: inline-flex;
        vertical-align: top;
        margin-bottom: 0.4rem;
    }

    html:not([dir="rtl"]) div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > div.ml-3.w-full.flex.items-center > div.ml-3 {
        margin-left: 0;
    }
    html[dir="rtl"] div[dusk$='detail-component'] > div > div.flex.items-center.mb-3 > div.ml-3.w-full.flex.items-center > div.ml-3 {
        margin-right: 0;
    }
}

@media (max-width: 500px) {
    select[dusk=action-select] {
        width: 8.9rem;
    }
}

@media (max-width: 310px) {
    select[dusk=action-select] {
        width: 5.6rem;
    }
}

@media (max-height: 610px) {
    .z-50.open .scroll-wrap {
        max-height: 270px !important;
    }
}

@media (max-height: 540px) {
    .z-50.open .scroll-wrap {
        max-height: 180px !important;
    }
}

@media (max-height: 440px) {
    .z-50.open .scroll-wrap {
        max-height: 110px !important;
    }
}
