/* ============================================================================
   09-overview.css — part 9 of 9 of the former main.css
   Loader, overview tables, zebra striping and misc inputs

   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.
   ============================================================================ */
/**
* Styles for 'shared_elements/loader/loader.html'
**/
.ks-loader {
    height: 0.7rem;
}

.ks-loader circle.loading-dot {
    fill: var(--ks-black-2);
}

.ks-loader.invert circle.loading-dot {
    fill: var(--ks-white);
}

/**
*
**/
#agreement-form > .field-wrapper.time-input {
    display: inline-block;
    width: 40%;
}

#agreement-form .helper-text-grid > div {
    display: inline-block;
    width: 40%;
}

#agreement-form .helper-text-grid > p {
    display: inline-block;
    width: 50%;
    margin-left: 1rem;
}
#agreement-form > .field-wrapper.time-input {
    display: inline-block;
    width: 40%;
}

#agreement-form .helper-text-grid > div {
    display: inline-block;
    width: 40%;
}

#agreement-form .helper-text-grid > p {
    display: inline-block;
    width: 50%;
    margin-left: 1rem;
}

.modal-dialog-scrollable>.modal-body {
    overflow-y: auto !important;
}

.notif-message {
    box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
}

.notif-message {
    box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
}

.service-contract-info {
    display: flex;
    justify-content: space-between;
    gap: 15rem;
}

.service-contract-info > .info {
    display: flex;
    width: auto;
    justify-content: space-between;
    flex-grow: 1;
}

.service-contract-info > .info > .grey {
    color: var(--ks-grey);
}

@media (width < 992px) {
    .service-contract-info {
        gap: 5rem;
    }
}

@media (width < 768px) {
    .service-contract-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .visibility-lg {
        display: none !important;
    }
}

/* Overview */

.container {
    max-width: 70% !important;
    padding: 0;
}

/*
    The page column: the one container main.html wraps every page in, and the footer's,
    which lines up with it.

    From 1920px up it is 70% wide, like every .container. Below that a plain percentage
    kept handing a fifth of the screen to the margins - 155px a side at 1560px, while
    the agency board next to them was already scrolling sideways. So here the column
    holds --page-column for as long as it fits and the margins give way first, down to
    --page-gutter a side. It never gets narrower than the 80% it had before.

    Containers nested inside a page keep the percentages, so they grow with the column
    instead of changing shape.
*/
:root {
    --page-column: 1344px;                     /* what 70% of a 1920px screen comes to */
    --page-gutter: clamp(1rem, 3vw, 4.5rem);   /* least free space on each side */
}

.tab-content {
    border-radius: 8px;
}

.overview-info-header {
    margin-bottom: 2rem;
    color: var(--ks-black-2);
    font-weight: 300;
    text-wrap: nowrap;
}

.header-upper {
    display: flex;
    margin-bottom: 0.5rem;
}
.header-lower {
    color: var(--ks-grey);
}

.header-address {
    display: flex;
    margin-right: 3rem;
}

.header-address-1 {
    font-size: 2rem;
    margin-right: 0.5rem;
    align-self: flex-end;
}

.header-address-2 {
    font-size: 1.5rem;
    line-height: 1.5rem;
    align-self: flex-end;
}

.header-status-green, .header-status-red {
    color: var(--ks-white);
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    line-height: 0.75rem;
    align-self: center;
    border-radius: 1rem;
    margin-right: 1rem;
}

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

.header-status-red {
    background-color: var(--ks-danger);
}

.day-pill-active {
    background-color: var(--ks-green);
    padding-left: 0.05rem;
    padding-right: 0.05rem;
    font-size: 10px;
}

.day-pill-inactive {
    background-color: var(--ks-soft-red);
    padding-left: 0.05rem;
    padding-right: 0.05rem;
    font-size: 10px;
}

.tutorials-button-container {
    align-self: center;
}

.overview-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    /*overflow-x: auto;*/
}

.overview-actions {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    min-width: 260px;
}

.overview-actions button, .overview-actions a {
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--ks-black-2);
    text-decoration: none;
    border-radius: 6px;
    width: 95%;
}

.overview-actions button:hover, .overview-actions a:hover {
    background-color: rgba(var(--eC-primary-rgb), 0.2);
}

.overview-actions button svg, .overview-actions a svg {
    width: 2.5rem;
    color: var(--eC-primary);
    padding-right: 1rem;
}

.overview-tabs {
    display: flex;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(var(--eC-primary-lighter-rgb), 0.3);
    padding: 0.2rem;
}

.overview-tabs .overview-tab {
    padding: 1rem 0;
    border: none;
    background-color: transparent;
    border-radius: 6px;
    outline: none;
    color: var(--eC-text-primary);
    font-size: 1.25rem;
    flex: 1 1 0;
    transition: 0.25s;
}

.overview-tabs .overview-tab.active {
    background-color: rgba(var(--eC-primary-rgb), 0.85);
    color: var(--ks-white);
    box-shadow: 0 0 10px rgba(var(--eC-primary-rgb), 0.25);
}

.overview-tabs .overview-tab.active:hover {
    background-color: rgba(var(--eC-primary-rgb), 0.85);
    color: var(--ks-white);
}

.overview-tabs .overview-tab:hover {
    background-color: rgba(var(--eC-primary-rgb), 0.25);
    border: none;
}

/* Zebra striping */

.overview-sorting-menu {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.overview-sorting-button {
    border: none;
    background-color: var(--eC-primary);
    color: var(--ks-white);
    padding: 0rem 1rem;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(var(--eC-primary-rgb), 0.25);
    transition: 0.25s ease-out;
}

.overview-sorting-button:hover {
    background-color: var(--ks-white);
    color: var(--eC-primary);
}

.overview-select svg {
    z-index: 3;
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    right:1rem;
    background-color: var(--ks-white);
    pointer-events: none;
}

.overview-select {
    position: relative;
}

.overview-select select {
    width: 220px;
    height: 42px;
    border-radius: 6px;
    border: none;
    background-color: var(--ks-white);
    color: var(--ks-black-2);
    box-shadow: 0 0 10px rgba(var(--eC-primary-darker-rgb), 0.2);
    cursor: pointer;
    transition: 0.5s ease-out;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    align-items: center;
}

.overview-bid-card {
        display: flex;
        flex-direction: column;
        background-color: var(--ks-white);
        box-shadow: 2px 3px 5px rgba(var(--eC-primary-darker-rgb), 0.2);
        border-radius: 6px;
        padding: 1rem;
}

.overview-bid-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overview-bid-card-info button {
    border: none;
    background-color: transparent;
}

.overview-bid-card-action {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overview-bid-extra-info {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.extra-info-bidders, .extra-info-payments {
    border-top: 1px rgba(var(--eC-primary-rgb), 0.25) solid;
    padding: 1rem 0;
}

.info-header {
    font-size: 1.5rem;
    font-weight: 300;
}

@media (width < 1920px) {
    .container {
        max-width: 80% !important;
    }

    main > #wrapper > .container,
    footer .container {
        max-width: max(80%, min(100% - 2 * var(--page-gutter), var(--page-column))) !important;
    }

    .overview-tabs .overview-tab {
        font-size: 1rem;
    }
}

@media (width < 1440px) {
    .overview-tabs {
        flex-wrap: wrap;
    }

    .overview-tabs .overview-tab {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    table.overview-collapsed-table tr{
        display: inline-flex;
        flex-direction: column;
        width: 100%;
    }

    table.overview-collapsed-table td {
        border-bottom: 1px solid rgba(var(--eC-primary-rgb), 0.25);
    }

    .info-header {
        font-size: 1rem;
    }
}

@media (width < 1024px) {

    .container {
        max-width: 85% !important;
    }

    .overview-info {
        flex: none;
    }

    .overview-content {
        flex-direction: column;
        margin-bottom: 8rem;
    }

    .overview-actions {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 2px rgba(var(--eC-primary-rgb), 0.2) solid;
        padding-top: 2rem;
        border-top: 2px rgba(var(--eC-primary-rgb), 0.2) solid;
    }

}

@media (width < 768px) {
    .overview-tabs {
        flex-direction: column;
    }

    .header-upper {
        flex-wrap: wrap;
    }

    .header-status-green, .header-status-red, .tutorials-button-container {
        margin-top: 1rem;
    }

    .overview-sorting-menu  {
        flex-direction: column;
    }

    .overview-sorting-menu select {
        width: 100%;
    }

    .overview-sorting-menu button  {
        padding: 0.5rem 0 ;
    }

    .overview-bid-card-info {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .overview-bid-card-action {
        width: 100%;
    }

    .overview-bid-card-action a {
        text-align: center;
    }
}

@media (width < 425px) {
    .header-address {
        flex-direction: column;
    }
    .header-address-1, .header-address-2 {
        align-self: flex-start;
    }
    .header-address-2 {
        margin-top: 0.25rem;
    }
}

.pointer{
    cursor:pointer;
}

.watch-button.transition {
    animation: pulse 0.3s;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.box-red{
    background-color: var(--ks-soft-red);
    color: var(--ks-white);
    border: 0.5px solid var(--ks-soft-red);
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
}

.lykilord-modal{
    min-width: 30rem;
}

.nowrap {
    white-space:nowrap
}

.cut-text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: break-word;
}

.overflow-y-auto {
    overflow-y: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.sale-event-list {
    height: 240px;
    padding-bottom: 0.5rem;
}

/* from styles */
.thumbnail-card {
  object-fit: cover;
  width: 10rem;
}

.card-deck {
  overflow:auto;
  white-space: nowrap;
}

.scroll-card {
  width:10rem;
  display:inline-block;
}
.dropzone_file {
  max-width:25%;
  max-height:25%;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
