/* ============================================================================
   07-flows.css — part 7 of 9 of the former main.css
   Auth form, settlement and the sale progress circle

   LOAD ORDER MATTERS. These files are linked in numeric order from
   shared_elements/main/main.html. They were split by position and never
   reordered, so the cascade is byte-for-byte what the single file produced.
   Moving a rule between them can change which declaration wins.
   ============================================================================ */
/* Login */
.auth-form-errors {
    color: var(--ks-error-red);
    font-size: 0.8rem;
}

.login-switch-btn {
    color: var(--ks-lightgrey);
    border-bottom: 2px solid var(--ks-lightgrey);
    background-color: inherit;
    border:none;
    padding: 1rem 2rem;
}

.tab-selected {
    border-bottom: 2px solid var(--eC-primary);
    color: var(--eC-primary);
}
#loginTitle{
    font-weight: 500;
    font-size: 1.3rem;
    text-align: center;
}

#loginModal{
    border-radius: 50px;
}

.mini-spinner{
    width: 1rem;
    height: 1rem;
    position: absolute;
}

.mini-spinner2{
    width: 1rem;
    height: 1rem;
}

.spinner-login{
    position: relative;
    top: 7px;
    margin-left: 5px;
}

.modal-title
{
    margin-top: 15px;
}

/* login page ending ?  */

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

.btn
{
    border: none;
}

.soft-shadow
{
    box-shadow: 0px 0px 10px rgba(var(--eC-primary-rgb), 0.25);
    transition: all 0.3s ease 0s;
}

.no-shadow
{
    box-shadow: none !important;
}

.me-2-5
{
    margin-right: 0.75rem !important;
}

body
{
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    line-height: 30px;
    height: 100%;
}

span.badge
{
    margin-top: auto;
    margin-bottom: auto;
}

#other-info-dropzone-container > div
{
    margin: 0 !important;
}

.content{
    margin-bottom: 50px;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}

.content
{
    min-height: calc(100vh);
    width: 100%;
}

html
{
    overflow-x: hidden;
    max-width: 100%;
    height: auto;
}

.logo
{
    height: 20px;
    width: 20px;
}

.logo > svg
{
    fill: var(--eC-text-primary);
}

.page
{
    width: 100%;
    margin: 12px 0;
}

.text-mid-higher
{
    font-size: 18px;
    line-height: 21px;
    font-weight: 400;
}

.text-mid-high
{
    font-size: 16px;
    line-height: 19px;
    font-weight: 400;
}

.cookie-banner
{
    position: fixed;
    bottom: 20px;
    opacity: 1;
    color: var(--eC-text-primary);
}

/* Sign */
@media (min-width:1200px) {
    .col-media-minimize {
        display:none;
    }
}

/* Alt test */

.ff-roboto {
    font-family: 'Roboto', sans-serif;
}

.headline {
    margin-bottom: 40px;
}

#auth-form-submit-btn {
    height: 50px;
    font-size: 18px;
}

#globe-icon {
    color: var(--eC-primary);
    font-size: 30px;
}

/*** Settlement ***/

.height-init .input-data {
    height: initial !important;
}

#settlement-container .help-icon {
    margin-left: 0.25em;
}

#settlement-container table > tbody th {
    /* Remove the browser default of increased font weight(bold) on table heading(th) elements */
    font-weight: normal;
}

#settlement-container .table-accounting > tbody tr:nth-last-child(2) > th {
    /* Allow the default browser behaviour on the second to last row */
    font-weight: inherit;
}

#settlement-container table > tbody tr:last-child > th {
    /* Allow the default browser behaviour on the last row */
    font-weight: inherit;
}

#settlement-container table > tbody > tr:last-child {
    /* Make all the text of the last row bold */
    font-weight: bold;
}

#settlement-container .table-summary > tbody tr:last-child > * {
    /* Only way to have a custom border on top of the second to last line of a row
    is to add a border to each cell in the last row. This is a fundimental limitation on tables. */
    border-top: 2px solid var(--ks-black-2); /* 1px solid black; */
    border-bottom: none;
}

#settlement-container .table-accounting > tbody tr:nth-last-child(2) > * {
    /* Only way to have a custom border on top of the second to last line of a row
    is to add a border to each cell in the last row. This is a fundimental limitation on tables. */
    border-top: 2px solid var(--ks-black-2); /* 1px solid black; */
    /* border-bottom: none; */
}

#settlement-container .table-accounting > tbody > tr:nth-last-child(2) {
    /* Make all the text of the second to last row bold */
    font-weight: bold;
}

#settlement-container .table-accounting > tbody tr:last-child > * {
    /* Only way to have a custom border on top of the last line of a row
    is to add a border to each cell in the last row. This is a fundimental limitation on tables. */
    border-bottom: none;
}

#settlement-container table > thead > tr > th {
    /* Reset table header row bottom border to default */
    /* border-bottom: initial; */
}

#settlement-container #buyers-summary {
    margin-bottom: 1em;
}

#settlement-container .fee-category-container {
    padding: 1em;
    margin-bottom: 2rem;
}

#settlement-container .fee-category-title {
    margin-bottom: 1rem;
    line-height: initial;
    border-bottom: 1px solid var(--eC-primary-lighter);
}

#settlement-container .fee-category-title > * {
    display: inline;
    margin-right: 0.25em;
    line-height: 1.3em;
}

#settlement-container .fee-category-title small {
    color: var(--ks-grey);
}

#settlement-container .multi-fee-wrapper {
    padding: 1em;
    border: 1px solid var(--eC-primary-lighter);
    border-radius: 0.375rem;
}

#settlement-container .fee-day-split {
    display: inline-block;
    white-space: nowrap;
}

#settlement-container .form-group > * {
    margin-right: 0.375rem;
}

#settlement-container .field-wrapper {
    margin-bottom: 0 !important;
}

#settlement-container .form-group .charge-type {
    display: flex;
    gap: 0.375rem;
    /* color: white; */
    justify-content: center;
    width: 7em;
    font-size: 0.9em;
}

#settlement-container .form-group .input-group .field-wrapper {
    flex-grow: 1;
}

#settlement-container .form-group .input-group .field-wrapper > input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#settlement-container .form-group label[for$="DELETE"] {
    height: 2.6em;
    display: flex;
    justify-items: left;
}

#settlement-container .form-group .form-delete {
    background-color: var(--ks-soft-red);
    border-radius: 0.375rem !important;
    color: var(--ks-white);
    cursor: pointer;
    display: flex;
    align-items: center;
}

#settlement-container .form-group .form-delete:hover {
    background-color: var(--ks-error-red);
}

#settlement-container #form-submit-wrapper {
    display: flex;
    justify-content: flex-end;
}

#settlement-container #form-submit {
    padding: 0.5rem 1rem;
    display: flex;
    align-self: flex-end;
}

#settlement-pdf-preview {
    box-shadow: 1px 1px 12px var(--ks-black-2);
}

#bid-change-list-table caption
{
    caption-side: top;
}

/* Step 3 BEGINS */

.sign-inspect-button
{
    border-radius: 6px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.sign-signer-details-card
{
    border-radius: 6px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.assetstatus-radio-widget label
{
    font-size: 0.8rem;
}

/* Step 3 ENDS */

#payment-settlement-summary {
    box-shadow: none;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
}

.spin {
    animation: 2s infinite alternate rotate;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 1rem;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 9999px;
    background-color: var(--eC-primary);
}

/*
_   _                 _____          _
| | | |               |_   _|        | |
| | | |___  ___ _ __    | | _ __   __| | _____  __
| | | / __|/ _ \ '__|   | || '_ \ / _` |/ _ \ \/ /
| |_| \__ \  __/ |     _| || | | | (_| |  __/>  <
 \___/|___/\___|_|     \___/_| |_|\__,_|\___/_/\_\
*/

.salecard-icon-box, .salecard-icon-box img {
    width: 4rem;
    height: 4rem;
}
/* Sale progress circle */
.progress-custom {
    background: none;
    box-shadow: none;
    position: relative;
}

.progress-custom:after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid var(--ks-background-primary);
    position: absolute;
    top: 0;
    left: 0;
}

.progress-custom > span {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 1;
}

.progress-custom .progress-left {
    left: 0;
}

.progress-custom .progress-bar {
    width: 100%;
    height: 100%;
    background: none;
    border-width: 6px;
    border-style: solid;
    position: absolute;
    top: 0;
}

.progress-custom .progress-left .progress-bar {
    left: 100%;
    border-top-right-radius: 4rem;
    border-bottom-right-radius: 4rem;
    border-left: 0;
    -webkit-transform-origin: center left;
    transform-origin: center left;
}

.progress-custom .progress-right {
    right: 0;
}

.progress-custom .progress-right .progress-bar {
    left: -100%;
    border-top-left-radius: 4rem;
    border-bottom-left-radius: 4rem;
    border-right: 0;
    -webkit-transform-origin: center right;
    transform-origin: center right;
}

.progress-custom .progress-value {
    border-radius: 50%;
    background: transparent;
    font-size: 1rem;
    color: var(--ks-black-2);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.green {
    color: var(--ks-green);
}

[data-user-index="user-info"] [data-user-index="user-avatar-container"] {
    width: 8rem;
    height: 8rem;
    box-shadow: 2px 3px 5px rgba(var(--eC-primary-darker-rgb), 0.2);
    background-color: rgba(var(--eC-primary-rgb));
}

[data-user-index="user-info"] [data-user-index="user-avatar-container"] img,
[data-user-index="user-info"] [data-user-index="no-user-avatar"] {
    width: 100%;
    height: 100%;
}

[data-user-index="user-info"] [data-user-index="user-initial"] {
    position: absolute;
    top: 49px;
    left: 0;
    width: 100%;
    text-align: center;
    user-select: none;
}

[data-user-index="user-info"] [data-user-index="actions"] svg {
    width: 1.5rem;
    height: 1.5rem;
}

[data-user-index="user-info"] [data-user-index="actions"] button {
    box-shadow: 0px 0px 15px 5px rgba(var(--eC-primary-rgb), 0.25);
}

[data-user-index="signatures"] [data-user-index="table-wrapper"] {
    max-height: 20rem;
    overflow-x: auto;
}

[data-user-index="signatures"] [data-user-index="table-wrapper"] th,
[data-user-index="signatures"] [data-user-index="table-wrapper"] td {
    padding: 0.5rem;
}

[data-user-index="signatures"] [data-user-index="table-wrapper"] table tbody tr:nth-child(odd) {
    background-color: var(--ks-white);
}

[data-user-index="signatures"] [data-user-index="table-wrapper"] table tbody tr:nth-child(even) {
    background-color: var(--ks-white-2);
}

.sale-card .card-package-tab {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--ks-green);
    width: 0.5rem;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* This padding/margin combo allows the box shadow to overflow without having to shrink the child elements */
[data-user-index="sale-list"] {
    padding: 1rem;
    margin: -1rem;
    max-height: 35rem;
}

[data-user-index="bids"] [data-user-index="table-wrapper"] {
    max-height: 20rem;
    overflow: auto;
}

[data-user-index="bids"] table thead {
    position: sticky;
    top: 0;
    left: 0;
    background-color: var(--ks-white);
    box-shadow: -6px -12px 0px 12px var(--ks-white);
}

.unread-bid-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    color: var(--ks-white);
    width: 1.5rem;
    height: 1.5rem;
}

.unread-bid-count svg {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    right: 0;
    top: 0;
}

.unread-bid-count span {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    right: 0;
    top: 0;
}

/*** Animations ***/
@keyframes rotate {
    to { transform: rotate(360deg) }
}

@keyframes draw_line {
    0%
    {
        stroke-dashoffset: 2000;
    }
    100%
    {
        stroke-dashoffset: 1000;
    }
}

@keyframes swirl_files {
    0%
    {
        stroke-dashoffset: 0;
    }
    100%
    {
        stroke-dashoffset: 1000;
    }
}

@keyframes draw_squiggle {
    0%
    {
        stroke-dashoffset: 0;
    }
    100%
    {
        stroke-dashoffset: 1000;
    }
}

@keyframes draw_flow
{
    0%
    {
        stroke-dashoffset: 0;
    }
    100%
    {
        stroke-dashoffset: 1000;
    }
}

.user-card, .user-card card {
    min-height: 111px;
}
