:root {
    --primary: #31367a;
    --primary-dark: #31367a;
    /* --primary: rgb(44, 138, 204, 1);
    --primary-dark: rgb(37, 89, 128, 1); */
    --primary-70: rgba(44, 138, 204, 0.7);
    --primary-50: rgba(44, 138, 204, 0.5);
    --primary-30: rgba(44, 138, 204, 0.3);
    --primary-10: rgba(44, 138, 204, 0.1);
    /* --logo: rgb(123, 131, 31);
    --sidebar-icon: #dced0e; */

    --menu-toggle: #000;
    --menu-color: #000;

    --bg-default: #eef1f4;

    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgba(59, 130, 246, .5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;

    --search-bg: #fff;
    --search-border: #eef1f4;
}

.whitespace-nowrap {
    white-space: nowrap;
}

table tr.text-red td {
    color: var(--danger);
}

table tr.text-green td {
    color: var(--success-dark);
}

#filemanager-manager-container nav .list-reset.flex{
    flex-direction: row;
}

p, td {
    font-family: "Inter", Nunito, system-ui, BlinkMacSystemFont, -apple-system, sans-serif;
}

.font-sans {
    font-family: "Lexend", Nunito, system-ui, BlinkMacSystemFont, -apple-system, sans-serif;
}

.font-bold {
    font-family: "Lexend", Nunito, system-ui, BlinkMacSystemFont, -apple-system, sans-serif;
    font-weight: 500;
}

#priceCalculateButton {
    display: none;
}

body {
    background: var(--bg-default);
}

button {
    line-height: 1;
}

body.bg-image {
    background-color: var(--bg-default);
    background-image: linear-gradient(hsla(0, 0%, 100%, .5), hsla(0, 0%, 100%, .5)), url(/images/light-bg-mirrored.svg), linear-gradient(90deg, #fff, #d6d6de);
    background-size: 100% auto, 100% auto, 100% auto;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.h-header.bg-image {
    background-color: var(--primary);
    background-image: url(/images/dark-bg.svg);
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
}

.bg-grad-sidebar {
    background: transparent
        /* linear-gradient(220deg, #f8b0a0 0%, #b8f0ff 50%, #9699c8 90%) 0% 0% */
        no-repeat padding-box;
    color: var(--menu-color);
}

.bg-dark-red {
    --bg-opacity: 1;
    background-color: #9d3f40;
    background-color: rgba(157, 63, 64, var(--bg-opacity));
}

.bg-true-black {
    --bg-opacity: 1;
    background-color: #060606;
    background-color: rgba(6, 6, 6, var(--bg-opacity));
}

.bg-jf-green {
    --bg-opacity: 1;
    background-color: #c1d82f;
    background-color: rgba(193, 216, 47, var(--bg-opacity));
}

/* .header-bg {
    background: transparent
        linear-gradient(180deg, #c1d82f 0%, #d6f50c43 65%, #deff0000 100%) 0% 0%
        no-repeat padding-box;
} */

svg.sidebar-icon:not([fill="none"]) path {
    fill: var(--menu-color);
}

svg.sidebar-icon[fill="none"] path,
svg.sidebar-icon[stroke="currentColor"] {
    fill: var(--menu-color);
}

.sidebar .sidebar-label,
.sidebar ul.list-reset li a,
.sidebar ul.list-reset li a.white-text {
    /* text-shadow: 0 0 4px rgba(0, 0, 0, 0.2); */
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    color: var(--menu-color) !important;
}

.scale-up {
    transform: scale(1.2);
}

.btn-primary {
    background-color: var(--primary);
    transition-duration: .2s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.btn-primary:not([disabled]):not(.btn-disabled):hover {
    background-color: var(--primary-dark);
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    --tw-drop-shadow: drop-shadow(0 4px 3px rgba(0, 0, 0, .2));
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

[class*="btn-"] {
    border-radius: 1.5rem;
}

.whitespace-no-wrap {
    white-space: normal;
}

.card h3.mb-3 {
    margin-bottom: 0.5rem;
}
.card .max-h-90px {
    max-height: 6.7rem;
}

.h-100 {
    height: 100%;
}
.h-header + div.py-view {
    height: calc(100% - 3.75rem - 3.125rem);
}

/*.table th {
    padding-left: .25rem;
    padding-right: .25rem;
    border-right: 1px solid #e3e7eb;
    height: 3rem;
}
.table td {
    padding-left: .25rem;
    padding-right: .25rem;
    border-right: 1px solid #e3e7eb;
    height: 3rem;
}
.table td:first-child {
    padding-left: .75rem;
}*/

.tooltip > .tooltip-inner {
    max-width: 500px;
    text-align: left;
}

.tooltip-inner pre {
    text-align: left;
    white-space: pre-wrap;
}

.tab-content li,
.htmlCard__content li {
    margin-bottom: 7px;
}
.tab-content p {
    margin-bottom: 1em;
}

.relationship-tabs-panel.card .flex .items-center .flex-no-shrink.mb-6 {
    margin-bottom: auto !important;
}

.noprint.reverse-impersonate-container {
    top: 80px !important;
}

/* Dashboard Stat */
.card .list-reset {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 90px;
}

.card .ct-chart-donut {
    transform: rotate(90deg);
}

.card .ct-chart.mr-4 {
    margin-right: 0px;
}

/* Search bar */
input[dusk="global-search"] {
    height: 28px;
    background: var(--search-bg) 0% 0% no-repeat padding-box;
    background-color: hsla(0, 0%, 100%, .3);
    border: 2px solid var(--search-border);
    border-radius: 14px;
    outline: none;
}

input[dusk="global-search"]:focus {
    background: var(--search-bg) 0% 0% no-repeat padding-box;
    border: 2px solid var(--search-border);
    outline: none;
    box-shadow: none;
}

[dusk="global-search-component"] svg.search-icon-center {
    color: #333;
    width: 14px;
    top: 50%;
    transform: translateY(-45%);
}

/* Menu toggle */

.menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    left: 13px;
    width: 25px;
    height: 18px;
    transform: translateY(-50%) rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--menu-toggle);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) {
    top: 8px;
}

.menu-toggle span:nth-child(4) {
    top: 16px;
}

.menu-toggle.open span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.menu-toggle.open span:nth-child(2) {
    transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.menu-toggle.open span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.w-sidebar {
    position: absolute;
    left: 0px;
}

.sidebar-hidden {
    left: -15rem;
}

.content {
    transition: all 0.2s ease-in-out 0s;
}

.sidebar-hidden + .content {
    max-width: 100vw;
    width: 100%;
    margin-left: -13.75rem;
}

/* Responsive theme */

.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: -0.75rem;
    position: absolute;
    border-left: 1px solid #eee;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.absolute{
    position: absolute;
}
.relative{
    position: relative;
}
.right-0{
    right: 0px;
}
.bottom-0{
    bottom: 0px;
}

@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%;
    }

    .sidebar-hidden + .content {
        margin-left: -13.75rem;
    }
}

@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: -0.75rem;
        position: absolute;
        border-left: 1px solid #eee;
    }
}

@media (max-width: 992px) {
    /* Sidebar */
    .w-sidebar {
        /* position: fixed; */
        padding-top: 5.5rem !important;
        z-index: 10;
        /* height: 100%; */
        overflow: auto;
    }

    .w-sidebar.pt-header {
        padding-top: 1.75rem;
    }

    .sidebar-hidden + .content {
        width: 100%;
    }

    /* Header */
    .h-header {
        z-index: 11;
        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: 0.5rem;
        padding-bottom: 0;
    }

    .content form .card > .flex > .py-6,
    div[dusk$="detail-component"] .card > .flex.bg-20 > .py-4 {
        padding-bottom: 0.5rem;
    }

    .content form .card > .flex > .py-6 + .py-6,
    div[dusk$="detail-component"] .card > .flex > .py-4 + .py-4 {
        padding-bottom: 0.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: 768px) {
    .hidden-sm {
        display: none;
    }
}

@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;
    }
}
