/* ============================================================================
   08-responsive.css — part 8 of 9 of the former main.css
   Viewport breakpoints, MD/XL overrides and the packs modal

   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.
   ============================================================================ */
/*** Viewport breakpoints ***/

@media (min-width: 576px) {
    /* Size: SM */

    .grid-span-sm-2 {
        grid-column-start: span 2;
    }

    .ec-card {
        background-color: var(--ks-white) !important;
        box-shadow: 0px 0px 10px var(--eC-primary-fade);
        margin-top: 0rem;
    }

    /* ec-card is used in the sale steps*/
    .ec-card > .card-body {
        flex: 1 1 auto;
        padding: 2rem;
    }

    .ec-card hr {
        margin-top: 2rem;
        margin-bottom: 2rem;
        visibility: visible;
    }

    /* fyrir drop down í skrefi 1 */
    .adv-sel .selection-field-wrapper select,
    .adv-sel option {
        font-size: 0.75rem;
    }

    .adv-sel .field-placeholder {
        position: absolute;
        font-size: 0.9rem;
        bottom: 0rem !important;
    }

    .ks-alert-base
    {
        font-size: 0.9rem;
        line-height: 19px;
    }

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

    .button-base
    {
        font-size: 16px;
    }

    .prev-step-button
    {
        padding: 15px 60px 15px 0;
    }

    .col-sm-0-8 {
        flex: 0 0 auto;
        width: 6.6666666%;
    }

    .col-sm-1-3 {
        flex: 0 0 auto;
        width: 10.8%;
    }

    .col-sm-1-5 {
        flex: 0 0 auto;
        width: 12.5%;
    }

    .col-sm-1-7 {
        flex: 0 0 auto;
        width: 14.16666666%;
    }

    .col-sm-2-2
    {
        flex: 0 0 auto;
        width: 18.33333333%;
    }

    .col-sm-2-5
    {
        flex: 0 0 auto;
        width: 20.83333333%;
    }

    .col-sm-2-2
    {
        flex: 0 0 auto;
        width: 18.33333333%;
    }

    .matseiningar-grid
    {
        display: grid;
        width: 100%;
        grid-template-columns: calc(100%/1.5 - 3vw);
        column-gap: 1.5rem;
        row-gap: 0.5rem;
    }

    .matseiningar-grid > div.d-inline-flex span:first-child
    {
        font-size: 16px;
        line-height: 19px;
        color: var(--ks-black-2);
    }

    .matseiningar-grid > div.d-inline-flex span:last-child
    {
        font-size: 16px;
        line-height: 19px;
        color: var(--ks-grey);
    }

    .wb-sm-breakall
    {
        word-break: break-all;
    }

    .pill {
        padding: 0.5rem 1rem;
        gap: 1rem;
        width: unset;
        text-align: unset;
        font-size: 0.9rem;
    }

    .pill svg
    {
        font-size: 0.9rem;
    }

    .pill-button {
        cursor:pointer;
    }

}

@media (min-width: 768px) {
/* Size: MD */

    .sale-card .card-body {
        margin-right:2rem;
    }

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

    .delinquent-payment-grid {
        grid-template-columns: calc(100%/2 - 1rem) calc(100%/2 - 1rem);
    }

    .carousel-inner img {
        height: 400px;
    }

    #outerCarousel-img_files .carousel-control-prev > div,
    #outerCarousel-img_files .carousel-control-next > div {
        width: 3rem;
        height: 3rem;
    }

    #outerCarousel-img_files .carousel-control-prev svg {
        top: 1rem;
        right: 1.2rem;
    }

    #outerCarousel-img_files .carousel-control-next svg {
        top: 1rem;
        left: 1.2rem;
    }

    .grid-span-md-2 {
        grid-column-start: span 2;
    }

    /* mortgages */
    .mort-title-container {
        flex-direction: row;
        align-items: center;
    }

    #ha-included-checkgroup {
        display: grid;
        grid-template-columns: calc(50% - 2vw) calc(50% - 2vw);
        row-gap: 1.5vh;
    }

    .property-contact-grid {
        display: grid;
        width: 100%;
        grid-template-columns: calc(50% - 3vw) calc(50% - 3vw);
    }

    .ks-alert-base
    {
        font-size: 1rem;
        line-height: 19px;
    }

    /* fyrir drop down í skrefi 1 */
    .adv-sel .selection-field-wrapper select,
    .adv-sel option
    {
        font-size: 1rem;
    }
    .adv-sel .field-placeholder {
        font-size: 0.9rem;
        bottom: 0.4rem !important;
    }

    .gap-md-4-3 {
        gap: 2rem;
    }

    .w-md-100 {
        width: auto;
    }

    .h5-style-md
    {
        font-family: 'Work Sans';
        font-size: 1.1rem;
        color: var(--ks-black-2);
        font-weight: 300;
        margin: 0;
    }

    .h4-style-md
    {
        font-family: 'Work Sans';
        font-size: 1.5rem;
        color: var(--ks-black-2);
        font-weight: 300;
        margin: 0;
    }

    .col-md-2-2
    {
        flex: 0 0 auto;
        width: 18.33333333%;
    }

    .col-md-2-5
    {
        flex: 0 0 auto;
        width: 20.83333333%;
    }

    .col-md-5-5
    {
        flex: 0 0 auto;
        width: 45.83333333%;
    }

    .mb-md-4-3
    {
        margin-bottom: 2rem !important;
    }

    .matseiningar-grid
    {
        display: grid;
        width: 100%;
        grid-template-columns: calc(100%/2 - 3vw) calc(100%/2 - 3vw);
        column-gap: 2rem;
        row-gap: 0.5rem;
    }

    .bid-overtake-loan-grid {
        display: grid;
        width: 100%;
        grid-template-columns: calc(100%/2 - 1vw) calc(100%/2 - 1vw);
        column-gap: 2rem;
        row-gap: 0.2rem;
    }

    .matseiningar-grid > div.d-inline-flex span:first-child
    {
        font-size: 16px;
        line-height: 19px;
        color: var(--ks-black-2);
    }

    .matseiningar-grid > div.d-inline-flex span:last-child
    {
        font-size: 16px;
        line-height: 19px;
        color: var(--ks-grey);
    }

    .br-md-end-0
    {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }

    .br-md-start-0
    {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
    }

    .br-md-6px
    {
        border-radius: 6px;
    }

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

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

    .wb-md-breakall
    {
        word-break: break-all;
    }
    .wb-md-normal
    {
        word-break: normal;
    }

    #sale-overview-operation-wrapper {
        grid-template-columns: calc(100%/2 - 2vw) calc(100%/2 - 2vw);
        column-gap: calc(4vw/2);
    }
}

/* Packs Modal (þegar ýtt er á Hefja rafrænan söluferil */
.package-card[data-package] {
    box-shadow: 0px 1px 1px 3px currentColor;
    position: relative;
}

.package-card[data-package].selected {
    box-shadow: 0px 1px 1px 4px currentColor;
}

.responsive-table-flipper:has(thead) {
    display: flex;
    flex-direction: row;
}
.responsive-table-flipper:has(thead) tbody {
    display: flex;
    flex-direction: row;
}
.responsive-table-flipper {
    overflow-x: auto;
}
.responsive-table-flipper tr {
    display: block;
    float: left;
    padding: 1rem;
}
.responsive-table-flipper th, .responsive-table-flipper td {
    display: block;
}

@media (min-width: 992px) {
    /* Size: LG*/

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

    .h5-style-lg {
        font-family: 'Work Sans';
        font-size: 1.1rem;
        color: var(--ks-black-2);
        font-weight: 300;
        margin: 0;
    }

    .bid-overtake-loan-grid {
        grid-template-columns: calc(100%/2 - 1rem) calc(100%/2 - 1rem);
        column-gap: 2rem;
    }

    .border-end-lg {
        border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    }

    .delinquent-payment-grid {
        grid-template-columns: calc(100%/2 - 2rem) calc(100%/2 - 2rem);
        column-gap: 4rem;
    }

    .h3-style-lg {
        font-family: 'Work Sans';
        font-style: normal;
        font-size: 2rem;
        color: var(--ks-black-2);
        font-weight: 300;
        line-height: 28px;
        margin: 0;
    }

    .confirm-info-title-container {
        flex-direction: row;
    }

    .col-lg-2-2
    {
        flex: 0 0 auto;
        width: 18.33333333%;
    }

    .col-lg-2-5
    {
        flex: 0 0 auto;
        width: 20.83333333%;
    }

    .property-contact-grid {
        display: grid;
        width: 100%;
        grid-template-columns: calc(33% - 3vw) calc(33% - 3vw) calc(33% - 3vw);
    }

    .matseiningar-grid
    {
        display: grid;
        width: 100%;
        grid-template-columns: calc(100%/2.5 - 3vw) calc(100%/2.5 - 3vw);
        column-gap: 2rem;
        row-gap: 0.5rem;
    }

    .address-detail-matseiningar-grid
    {
        display: grid;
        width: 100%;
        grid-template-columns: calc(100%/2.2 - 3vw) calc(100%/2.2 - 3vw);
        column-gap: 2rem;
        row-gap: 0.5rem;
    }

    
    .responsive-table-flipper:has(thead) {
        display: table;
        flex-direction: unset;
    }

    .responsive-table-flipper thead {
        display: table-header-group;
    }
    .responsive-table-flipper tbody {
        display: table-row-group !important;
    }

    .responsive-table-flipper tr {
        display: table-row;
        float: unset;
        padding: unset;
    }    
    
    .responsive-table-flipper th,
    .responsive-table-flipper td {
        display: table-cell;
    }    
    
    .address-detail-matseiningar-grid > div.d-inline-flex span:first-child,
    .matseiningar-grid > div.d-inline-flex span:first-child
    {
        font-size: 16px;
        line-height: 19px;
        color: var(--ks-black-2);
    }

    .address-detail-matseiningar-grid > div.d-inline-flex span:last-child,
    .matseiningar-grid > div.d-inline-flex span:last-child
    {
        font-size: 16px;
        line-height: 19px;
        color: var(--ks-grey);
    }

    .bid-overtake-loan-grid {
        display: grid;
        width: 100%;
        grid-template-columns: calc(100%/2.5 - 2vw) calc(100%/2.5 - 2vw);
        column-gap: 2rem;
        row-gap: 0.2rem;
    }

    .gap-lg-4-3
    {
        gap: 2rem !important;
    }

    .br-lg-6px
    {
        border-radius: 6px;
    }

    /* Navbar Media 992px */
    .navbar
    {
        gap: 3rem;
    }
    .navbar-nav
    {
        gap: 1rem;
    }
    .dropdown-item-home
    {
        display: none !important;
    }

}

@media (min-width: 1200px) {
/* Size: XL */

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

    .overview-detail-grid-bidders {
        grid-template-columns: auto calc(100%/3 - 3vw - 10% / 3) calc(100%/3 - 3vw - 10% / 3) fit-content(10%);
        row-gap: 0.5rem;
    }

    .overview-detail-grid-payment {
        grid-template-columns: fit-content(calc(100%/4 - 1.5rem)) calc(100%/4 - 1.5rem) auto auto;
        row-gap: 0.5rem;
    }

    .h3-style-xl {
        font-family: 'Work Sans';
        font-style: normal;
        font-size: 2rem;
        color: var(--ks-black-2);
        font-weight: 300;
        line-height: 28px;
        margin: 0;
    }

    .col-xl-2-2
    {
        flex: 0 0 auto;
        width: 18.33333333%;
    }

    .col-xl-2-5
    {
        flex: 0 0 auto;
        width: 20.83333333%;
    }

    .gap-xl-4-3
    {
        gap: 2rem !important;
    }

    #ha-included-checkgroup {
        display: grid;
        grid-template-columns: calc(33% - 3vw) calc(33% - 3vw) calc(33% - 3vw);
        row-gap: 1.5vh;
    }

}
@media (min-width: 1400px) {
    /* Size: XXL */

    #ha-included-checkgroup {
        display: grid;
        grid-template-columns: 25% 25% 25% 25%;
        row-gap: 1.5vh;
    }

}

.mobile-no-display {
    display:initial;
}
.mobile-display {
    display:none;
}
@media (max-width: 750px) {
    .mobile-no-display{
        display:none !important;
    }
    .mobile-display{
        display:initial !important;
    }
}

@media (max-width: 438px) {
    #navbar-user-dropdown #user-access-menu {
        top: 3rem;
        right: 0;
    }
}

.vanilla-calendar{
    z-index: 200;
    border: solid 1px var(--ks-lightgrey);
    box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
}

.vanilla-calendar:hover, .vanilla-calendar-month:hover, .vanilla-calendar-year:hover, .vanilla-calendar-week > b,
.vanilla-calendar-day__btn_today, .vanilla-calendar-months__month, .vanilla-calendar-years__year, .vanilla-calendar-day__btn_today:hover{
    color: var(--eC-primary);
}

.vanilla-calendar-day__btn_selected, .vanilla-calendar-day__btn_selected:hover{
    background-color: var(--eC-primary);
}

.vanilla-calendar-months__month_selected, .vanilla-calendar-months__month_selected:hover,
.vanilla-calendar-years__year_selected, .vanilla-calendar-years__year_selected:hover{
    background-color: var(--eC-primary);
    color: var(--ks-white);
}

.vanilla-calendar-time__content > * > *{
    padding: 0px ;
    border: 0px ;
}

.vanilla-calendar-day__btn_today.vanilla-calendar-day__btn_selected{
    color: var(--ks-white);
}

/* Same as above, but not restricted to an element with the blob class and does not provide a bg color*/
.pulse-primary:not(:hover) {
    animation: pulse-primary 1.5s infinite;
}

@keyframes pulse-primary {
    0% {
        box-shadow: 0 0 0 0px rgba(var(--eC-primary-rgb), 0.5);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(var(--eC-primary-rgb), 0);
    }
}

/**
*
**/

.sale-files-table td {
    line-height: 1.4;
}

.sale-files-table .sale-file-property {
    white-space: nowrap;
}
.sale-files-table .sale-file-property {
    margin-left: 0.15rem;
}

.sale-files-table .sale-file-property.not-valid {
    color: var(--ks-dark-orange);
}

.sale-file-property.signed {
    color: var(--ks-green);
}

.sale-file-property.needs-signing {
    color: var(--ks-white);
}

.sale-file-property.info {
    color: var(--ks-info-blue);
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    font-size: 0.9rem;
}

#saleFilePrintModal .modal-body {
    max-height: max(55vh, 250px);
    overflow: auto;
}

.sale-file-print-form-set {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
}

.sale-file-print-form-set__row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
}

.sale-file-print-form-set__row.header .sale-file {
    font-weight: bold;
}

.sale-file-print-form-set__row .sale-file.skip {
    flex: 0 0 3.5rem;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.sale-file-print-form-set__row .sale-file.skip .input-data {
    height: unset;
    width: fit-content;
}

.sale-file-print-form-set__row .sale-file.skip .checkbox-widget.checkbox-wrapper .checkbox-label {
    display: none;
}

.sale-file-print-form-set__row .sale-file.name {
    flex-grow: 1;
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sale-file-print-form-set__row .sale-file.name.subheading {
    margin-top: 0.5rem;
}

.sale-file-print-form-set__row .sale-file.copies {
    flex: 0 0 4rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.sale-file-print-form-set__row .sale-file.copies input {
    width: 2rem;
    text-align: center;
    height: 1.7rem;
}
