
html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #181818;
    font-size: 16px;
    font-family: system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.btn {
    border-radius: 8px;
}

.btn-success {
    background: #1a8754 !important;
    border-color: #1a8754 !important;
    opacity: 0.9;
    white-space: nowrap;
}

.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.partner-auth {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-auth .login {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.partner-auth .login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.partner-auth .login-logo img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}

.partner-auth form {
    width: 100%;
}

.partner-auth .login-submit {
    margin-top: 14px;
}

.partner-auth .login-submit .btn {
    background: #1a8754;
    border-color: #1a8754;
    min-width: 132px;
    width: auto;
    white-space: nowrap;
    padding: 10px 20px;
}

.partner-auth #message {
    color: #bd2626;
    text-align: center;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.partner-auth .otp-back {
    text-align: center;
    margin-top: 14px;
}

.partner-auth .helper-link {
    text-align: center;
    margin-top: 35px;
    font-size: 90%;
}

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 16px;
}

.login {
    width: 100%;
    max-width: 360px;
}

.login-logo {
    position: absolute;
    top:20px;
    left: 20px;
}

.login-footer {
    position: absolute;
    bottom:20px;
    left: 20px;
    font-size: 80%;
    opacity: 0.5;
}

.login-submit {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.login-submit .btn {
    min-width: 100px;
    padding: 8px;
    background: #1a8754;
    border-color: #1a8754;
    color: white;
}

.message {
    text-align: center;
    color: #ad2424;
    font-weight: bold;
}

.heading-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 15px;
    align-items: center; 
    height: 55px;
}

.partner-identity {
    min-width: 90px;
    font-size: 14px;
    line-height: 1.1rem;
    display: inline-flex
}

.logout-link {
    border: none;
    padding: 10px 15px;
    background: #dfdfdf;
    color: #464646;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
}

.manage-link{
    border: 0;
    padding: 10px 15px;
    background: #2f2c2c;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-right: 10px;    
}

.account-edit{
    padding: 0;
    border:none !important;
    color: #0d6efd !important;
    text-decoration: underline;
    font-size: 14px;
    background: #ffffff !important;
}

.logout-link:hover,.manage-link:hover,.login-submit:hover{
    opacity: 0.9;
} 

.section-title {
    margin: 24px 0 12px;
    font-size: 20px;
    font-weight: 400;
}

.greenbull {
    color: #00a651;
    font-size: 20px;
}

.table {
    margin-bottom: 0;
}

.revenue-table {
    min-width: 800px;
}

.revenue-description {
    text-align: center;
    font-size: 90%;
    margin: 30px;
}

.footer-info {
    display: flex;
    gap: 30px;
    padding-top: 0px;
    padding-bottom: 50px;
}

.info-column {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: anywhere;
    border: solid 1px #e5e7eb;
    padding: 30px 30px 10px;
    border-radius: 8px;    
    font-size: 90%;
}

.info-column h4 {
    margin-bottom: 16px;
}

input:focus {
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #00a651 !important;
    box-shadow: none !important;
    outline: none !important;
}

.onpipeline-login-button{
    background: #408c64 !important;
    border-color: #408c64 !important;
     opacity: 1 !important;
     white-space: nowrap;
     border-radius: 5px;
}
.onpipeline-login-button:hover{
    opacity: 0.9 !important;
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .footer-info {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .footer-info > * {
        height: auto;
        min-height: 0;
        flex: none;
    }

    .heading-row img {
        max-width: 30%;
        height: auto;
    }

    .heading-row {
        gap: 5px;
    }

    .logout-link,
    .manage-link {
        padding: 6px 10px !important;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    body {
        font-size: 15px;
    }

}

/* TABLE */
.tablecont,
.tablecont2 {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: auto;
    background: #fff;
}

.tablecont {
    max-height: 342px;
     overscroll-behavior: none;
}

.tablecont2 {
    max-height: 392px;
    overscroll-behavior: none;
    margin-bottom: 20px;
}

:is(.tablecont, .tablecont2) .table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

:is(.tablecont, .tablecont2) .table > :not(caption) > * > * {
    border: 0;
    box-shadow: none;
    padding: 12px 16px;
}

:is(.tablecont, .tablecont2) .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #1C623D;
    color: #fff;
    font-weight: 500;
    border-bottom: 0;
    white-space: nowrap;
}

:is(.tablecont, .tablecont2) .table tbody td {
    border-bottom: 1px solid #edf0f2;
}

:is(.tablecont, .tablecont2) .table tbody tr:last-child td {
    border-bottom: none;
}

:is(.tablecont, .tablecont2) .table-hover tbody tr:hover td {
    background: #f7faf8;
}

.tablecont2 .table tfoot th {
    position: sticky;
    bottom: 0;
    background: #f3f4f6;
    color: #333;
    font-weight: 600;
    border-top: 1px solid #e5e7eb;
}

.table>:not(:last-child)>:last-child>* {
    border-bottom: none;
}

.btn-light{
    background: #ffffff !important;
    border: solid 1px dimgray !important;
    color: dimgray !important;
}

.account-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.account-heading h4 {
    margin: 0;
}

.account-dialog {
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    border: none;
    border-radius: 12px;
    padding: 25px;
    background: white;
    box-shadow: 0 16px 60px rgba(0,0,0,.18);
}

.account-dialog::backdrop {
    background: rgba(0,0,0,.48);
}

.create-client-error{
    padding-top: 10px;
}

.account-dialog-header,
.account-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-dialog-header h4 {
    margin: 0;
    font-size: 20px;
}


.btn-close {
    font-size: 15px;
    box-shadow: none !important;
}

.account-dialog .form-label {
    font-size: 13px;
    font-weight: 400;
}

.account-dialog .form-control:focus {
    border-color: #00a651 !important;
    box-shadow: 0 0 0 3px rgba(0,166,81,.12) !important;
}

.account-dialog .form-control[readonly] {
    background: #f5f5f5;
    color: #888;
}

.account-dialog-footer {
    justify-content: flex-end;
    margin-top: 24px;
}

/* CLIENTS PAGE */

.clients-table {
    max-height: none;
    overflow: auto;
}

.clients-table .table {
    margin-bottom: 0;
    min-width: 600px;
}

.clients-table .table th,
.clients-table .table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.clients-table .client-name {
    font-weight: 500;
}

.client-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e7f6ed;
    color: #168044;
    font-size: 12px;
    font-weight: 600;
}

.client-status.trial {
    background: #f1e4cd;
    color: #a66a00;
}

/* EXPANDABLE CLIENT USERS */

.client-users-row > td {
    padding: 0 !important;
    border-top: 0 !important;
}

.client-users-panel {
    background: #fff;
    padding: 0;
    text-align: left;
    min-width: 0;
}

.client-users-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    border-bottom: solid 1px #edf0ee; 

}

.client-users-content {
    display: flex;
    flex-direction: column;
    padding-right: 15px !important;
    padding-left: 15px !important;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.client-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #edf0ee;
    padding: 10px 0;
}

.client-user-item:last-child {
    border-bottom: 0;
}

.client-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.client-user-info strong {
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.client-user-info span {
    font-size: 12px;
    color: #777;
}

.client-users-panel .btn-outline-success {
    flex-shrink: 0;
    white-space: nowrap;
}

.clients-table .table tbody tr.client-row:last-of-type td {
    border-bottom: 0 !important;
}

.clients-table .table tbody tr.client-row:has(
    + .client-users-row:last-child[hidden]
) td {
    border-bottom: 0 !important;
}

.clients-table .table tbody tr.client-users-row:last-child td {
    border-bottom: 0 !important;
}



.client-status.trial[aria-label] {
    position: relative;
    cursor: help;
}

.client-status.trial[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 9999;
}

.client-status.trial[aria-label]:hover::after {
    opacity: 1;
    visibility: visible;
}




/* Mobile */
@media (max-width: 600px) {

    .client-users-panel {
        padding: 16px;
    }

    .client-user-item {
        gap: 10px;
        padding: 12px 4px;
    }

    .client-users-content {
        max-height: 280px;
    }
}

