html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    overflow: hidden;
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

main {
    /*display: grid;*/
    grid-template-rows: 1fr auto;
}

h1 {
    color: #29303a;
}

/* Frill hack*/
body > button {
    display: none;
}

.text-info {
    color: #6c757d!important;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--rz-grid-cell-color);
}

a:hover {
    text-decoration: none;
}
.dropdown-item:hover {
    text-decoration: none;
}

.a-current {
    color: #21CD9D;
    text-decoration: underline;
}

::selection {
    background: #BAFFE2;
}

.footer {
    padding: 3px;
    font-size: 0.75rem;
}

.intercom-lightweight-app-launcher.intercom-launcher {
    bottom: 30px !important;
    right: 30px !important;
}

table {
    caption-side: top;
}

.table thead th {
    padding: 1rem 1rem .5 0rem;
}

.table thead tr th:first-child {
    /*border-style: hidden;*/
    border-radius: 0.5rem 0 0 0;
}

.table thead tr th:last-child {
    /*border-style: hidden;*/
    border-radius: 0 0.5rem 0 0;
}

.table tfoot tr td:first-child {
    /*border-style: hidden;*/
    border-radius: 0 0 0 0.5rem;
}

.table tfoot tr td:last-child {
    /*border-style: hidden;*/
    border-radius: 0 0 0.5rem 0;
}

.table tbody tr:last-child td:last-child {
    /*border-style: hidden;*/
}

.table tbody tr:last-child td:first-child {
    /*border-style: hidden;*/
}

.table.noFooter tbody tr:last-child td:first-child {
    border-radius: 0 0 0 0.5rem;
}

.table.noFooter tbody tr:last-child td:last-child {
    border-radius: 0 0 0.5rem 0;
}

.table.noHeader tbody tr:first-child td:first-child {
    border-radius: 0.5rem 0 0 0;
}

.table.noHeader tbody tr:first-child td:last-child {
    border-radius: 0 0.5rem 0 0;
}

table caption {
    font-weight: 600;
    color: inherit;
    padding-top: 0;
    padding-left: 16px;
}

.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background-color: #FEFEFE;
    border-bottom-color: #E8EBF0 !important;
    border-bottom-width: 1px !important;
    font-weight: 400;
    color: #6c757d;
    font-size: small;
}

.table tfoot {
    background-color: #FEFEFE;
    font-weight: bold;
}

.header-row td {
    background-color: #EAECF0;
    font-weight: bold;
}

/*.table tbody tr:nth-child(odd) {
    background-color: #F5F8FA;
}

.table tbody tr:nth-child(even) {
    background-color: white;
}*/

.table > tbody > tr {
    background-color: #FEFEFE;
}

.table > tbody > tr > td {
    border-bottom-color: #F0F3F8 !important;
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
}

.table tfoot tr {
    border-bottom-style: hidden;
}

.table > tbody > tr:hover {
    background-color: #F5F8FA;
}

/*.table tbody, tr, td, th, tfoot, thead {
    border-style: none;
}*/

.table tr td:first-child {
    padding-left: 1rem;
}

.table tr th:first-child {
    padding-left: 1rem;
}

.table tr td:last-child {
    padding-right: 1rem;
}

.table tr th:last-child {
    padding-right: 1rem;
}

.table tr td {
    vertical-align: middle;
}

.form-label {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.form-label-sm {
    font-size: 0.875rem;
}

.body-main {
    overflow: hidden;
    position: absolute;
    height: 100%;
    width: 100%;
}

.topbar {
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

.blade-container {
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.blade-sidebar {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: max-content
}

.blade-content {
    position: relative;
    padding-left: 5px;
    padding-right: 20px;
    padding-top: 10px;
    width: 100%;
    height: 100%;
}



.container-fluid {
    max-width: 1500px;
}

.epoch-green {
    color: #21CD9D;
}

.epoch-anthracite {
    color: #29303A;
}

.epoch-pearl-gray {
    color: #EAECF0;
}

.epoch-lead-gray {
    color: #989CA5;
}

.epoch-granite-gray {
    color: #656971;
}

.epoch-hover-granite-gray:hover {
    color: #656971;
}

.bg-epoch-green {
    background-color: #21CD9D;
}

.bg-epoch-anthracite {
    background-color: #29303A;
}

.bg-epoch-pearl-gray {
    background-color: #EAECF0;
}

.card {
    border: none;
    border-radius: 0.625rem;
    box-shadow: black;
    background-color: white;
    border: 1px solid #E8EBF0;
    transition: all 0.2s ease;
}

.card-outer {
    background-color: #f9f9f9;
    width: auto;
    min-height: 100%;
    overflow-y: auto;
}

.navbar-brand {
    margin: 0;
}

.nav-link {
    color: #AAAAAA;
}

.nav-link:hover {
    color: #656971;
    text-decoration: none;
}

.nav-link:focus {
    color: #656971;
}

.navbar {
    color: #656971;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem #BAFFE2;
}

.accordion-button:not(.collapsed) {
    color: #0c63e4;
    font-weight: bold;
    color: inherit;
    background-color: #EAECF0;
    box-shadow: 0 0 0 0.25rem #BAFFE2;
}

.form-check-input:checked {
    background-color: #656971;
    border-color: #29303a;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem #e1e1e1;
}

.form-control{
    font-size: 14px;
    border: 1px solid #e6e6e6;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem #d8d8d8;
    border-color: #29303a;
}

.form-select{
    font-size: 14px;
    border: 1px solid #e6e6e6;
    padding: .375rem 2.25rem .375rem .75rem;
}

.form-select-sm{
    padding: .25rem .5rem;
    font-size: .875rem;
    min-height: calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));
}

.form-control-sm:disabled {
    background-color: #f5f5f5;
    color: #3a3f46;
    border: 1px solid #e6e6e6;
    padding: .25rem .5rem;
    font-size: .875rem;
    min-height: calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));
    
}


.form-control:disabled {
    background-color: #f5f5f5;
    color: #3a3f46;
    border: 1px solid #e6e6e6;
}

.form-switch .form-check-input:checked {
    background-color: #21CD9D;
    border-color: #21CD9D;
    box-shadow: 0 0 0 0.2rem rgba(33, 205, 157, 0.25);
}

.rankless {
    color: transparent;
}

.rank-0 {
    color: #e8b923;
}

.rank-1 {
    color: #C0C0C0;
}

.rank-2 {
    color: #CD7F32;
}
.nav-link.active {
    color: #21CD9D;
}
.roles-field {
    display: inline-block;
    width: calc(100% - 51px);
    margin-right: 6px;
}

.login-title {
    font-size: 24px;
    font-weight: 130;
    margin-bottom: 20px;
}

.autho-login::before {

    content: '';
    background: radial-gradient(circle at 50% 50%, rgba(101, 105, 113, 0.25), rgba(33, 205, 157, 0.15));
    width: 100%; 
    min-height: 100vh;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -999;
}
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 50px);
}
.header-logo {
    padding: 40px 40px 0;
    position: absolute;
}
.author-user {
    max-width: 480px;
    min-width: 450px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 60px 40px;
    position: relative;
    padding-top: 30px;
    box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

.login-title > span {
    display: block;
    color: #757575;
    font-size: 12px;
    /*text-transform: uppercase;*/
    padding: 7px 0 0;
    width: 100%;
}
.autho-login .extlogin-btn {
    margin: 0 17px;
}
.extlogin-btn button {
    box-shadow: 0px 0px 3px 0px #0000002B;
    background: #fff;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
    font-weight: 450;
    line-height: 19px;
}

@media screen and (max-width: 767px) {
    
    .autho-login .header-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        position: inherit;
        padding: 15% 0 30px;
        text-align: center;
    }
    .autho-login::before {
        clip-path: inherit;
    }
    .author-user {
        max-width: 480px;
        min-width: 400px;
        background: transparent;
        border-radius: 12px;
        padding: 40px 20px;
        box-shadow: none;
    }
    .login-title > span, .autho-login .footer {
        display: none;
    }
    .login-title {
        margin-bottom: 50px;
    }
    .autho-login .login-page {
        height: inherit;
    }
    .autho-login .header-logo a {
        text-align: center;
        display: inline-block;
        border: 1px solid #C1C6CE80;
        border-radius: 10px;
        box-shadow: 0px 4px 4px 0px #00000026;
        padding: 10px 8px;
    }
    .autho-login::before {
        background: radial-gradient(circle at 50% 40%, 
        rgba(101, 105, 113, 0.25), rgba(33, 205, 157, 0.15)); }
    
    }
    .login-page-title {
        position: absolute;
        top: 100px;
        left: 40px;
        width: 100%;
    }

.copy-icon {
    font-size: 10px;
    margin-bottom: 10px;
}

.copied-tooltip {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}
    .copied-tooltip.people-directory {
        top: 27px;
    }

/*Changes regarding DEV-213*/
.toast {
    background-color: #e9f5f2;
    border-radius: 0.25rem;
    border: 1px solid #d1e7dd;
}
    .toast-container {
        z-index: 1951;
    }

    .toast .toast-body {
        display: flex;
        align-items: center;
    }

.toast-body {
    font-size: 12px;
}
.toast-header {
    border-bottom: none !important;
    background-color: rgb(232 245 242);
}

.toast-error {
    background-color: rgb(245 232 232);
    border-radius: 0.25rem;
    border: 1px solid #d1e7dd;
}

.toast-header-error {
    border-bottom: none !important;
    background-color: rgb(245 232 232);
}

.nav-pills .nav-link {
    color: var(--dark-grey);
    background-color: var(--light-grey);
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: var(--medium-grey);
    color: var(--very-dark-grey);
    box-shadow: 0 1px 2px rgba(27, 27, 27, 0.1);
    transform: scale(1.03);
}

.nav-pills .nav-link.active {
    background-color: #29303A;
    color: white;
    box-shadow: 0 1px 2px rgba(27, 27, 27, 0.2);
}

.nav-pills .nav-link.active:hover {
    box-shadow: 0 3px 6px rgba(27, 27, 27, 0.3);
    transform: scale(1.02);
}

/* Tab Styles */

.nav-tabs {
    border-bottom: none;
}

.custom-tabs .nav-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border: .5px solid #F1F2F3;
    border-bottom: none;
    margin-right: 2px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.custom-tabs .nav-link:hover {
    background-color: #e9ecef;
}

.custom-tabs .nav-link.active {
    color: #29303a;
    background-color: #fff;
    border: .5px solid #F1F2F3;
    border-bottom: none;
    font-size: 15px;
    font-weight: bold;
    padding-top: 10px;
    margin-top: -3px;
    border-radius: 6px 6px 0 0;
}

.nav-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: 6px;
}

.nav-tabs .nav-item:last-child .nav-link {
    border-top-right-radius: 6px;
}

.tab-content {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 5px 5px;
    max-width: 1500px;
    height: calc(100vh - 285px);
    min-height: 400px;
    overflow-y: auto;
}

/* Tab Styles */

.nav-tabs {
    border-bottom: none;
    font-size: 14px;
}

.custom-tabs .nav-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border: .5px solid #F1F2F3;
    border-bottom: none;
    margin-right: 2px;
    padding: 7px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.custom-tabs .nav-link:hover {
    background-color: #e9ecef;
}

.custom-tabs .nav-link.active {
    color: #29303a;
    background-color: #fff;
    border: .5px solid #F1F2F3;
    border-bottom: none;
    font-size: 15px;
    font-weight: bold;
    padding-top: 10px;
    margin-top: -3px;
    border-radius: 6px 6px 0 0;
}

.nav-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: 6px;
}

.nav-tabs .nav-item:last-child .nav-link {
    border-top-right-radius: 6px;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

.w-85 {
    width: 85% !important;
}

.form-check-lock {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-check-lock input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}


/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    button.Frill_Trigger.Frill_Trigger_Tab.Frill_Trigger_Tab--center-right {
        display: none !important;
    }
    
    /* Also hide the modal if it appears */
    div.Frill_View.Frill_View_Modal {
        display: none !important;
    }
    
    /* Main container for the menu */
    .blade-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 65%;
        max-width: 360px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
        display: none;
    }

    .blade-sidebar.active {
        transform: translateX(0);
        display: inline-flex;
    }

    /* Header with logo and close button */
    .blade-sidebar > a {
        padding: 2px 16px 2px 64px;
        display: flex;
        align-items: center;
        height: 56px;
        position: relative;
        margin-bottom: auto;
        border-bottom: 1px solid #eaecf0;
    }
    
    .blade-sidebar > a img {
        height: 28px;
        width: auto;
    }


    .blade-content {
        padding: 60px 15px 40px 15px;
    }

    .btn-toggle {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        color: #29303a;
        font-weight: 500;
        border: none;
        background: transparent;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .btn-toggle-nav a {
        padding: 1px 16px 10px 44px;
        display: inline-block;
    }

    /* Hamburger menu button */
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 6px;
        left: 12px;
        z-index: 1001;
        background: white;
        border: 1px solid #eaecf0;
        border-radius: 6px;
        padding: 8px 12px 6px 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin: 16px 8px 8px 8px;
    }

    /* Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .mobile-overlay.active {
        display: block;
    }

    .footer {
        font-size: 12px;
        padding: 8px 10px;
        text-align: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(249, 249, 249, 0.95);
        backdrop-filter: blur(5px);
        border-top: 1px solid #eaecf0;
        z-index: 100;
    }

    .footer > div {
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

.w-90 {
    width: 90% !important;
}

.mb-6 {
    margin-bottom: 2.5rem !important;
}

.commission-card {
    position: relative;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    min-width: 330px;
    overflow-x: auto;
}

/* Commissions subpages specific styles */
.commissions-table-container {
    position: relative;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
    width: 100%;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.commissions-table {
    width: 100%;
    margin-bottom: 0;
}

.commissions-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.commissions-table thead th {
    background-color: white;
}

.commissions-table .sticky-column {
    position: sticky;
    left: 0;
    z-index: 1;
}

.commissions-table tbody tr .sticky-column {
    background-color: white;
}

.commissions-table tbody tr:hover .sticky-column {
    background-color: #F5F8FA;
}

.commissions-table > tbody > tr:hover {
    background-color: #F5F8FA;
}

.commissions-table > tbody > tr:hover,
.commissions-table > tfoot > tr:hover {
    background-color: #F5F8FA;
}

.commissions-table tbody tr:hover .sticky-column,
.commissions-table tfoot tr:hover .sticky-column {
    background-color: #F5F8FA;
}

.commissions-table tbody tr,
.commissions-table tbody tr .sticky-column,
.commissions-table tfoot tr,
.commissions-table tfoot tr .sticky-column {
    transition: background-color 0.15s ease-in-out;
}

.commissions-table tbody tr,
.commissions-table tbody tr .sticky-column {
    transition: background-color 0.15s ease-in-out;
}
.expand-icon {
font-size: 0.75rem;
transition: transform 0.2s ease;
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.card-shadow {
    box-shadow: 0px 0px 8px 0px rgba(193, 198, 206, 0.30);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0px 0px 15px 0px rgba(193, 198, 206, 0.70);
    cursor: pointer;
}

.rotates[aria-expanded="true"] > i {
    transform: rotate(90deg);
}