/*******************************
****** SELECCION SERVICIOS *****
********************************/

.padding-title {
    padding-top: 30px;
    padding-left: 30px;
}

.section-service {
    display: flex;
    flex-flow: column nowrap;
}

.selector-header {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin-bottom: 3em;
}

.summary-title-container {
    flex: 1 1 auto;

    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.section-service-title-icon {
    max-width: 5em;
    max-height: 5em;
}

.selector-header-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "label group add-btn"
        "label service add-btn";
    grid-gap: 1em;
    gap: 1em;
    min-height: 0;
    min-width: 0;
}

.selector-header-grid.etxetic{
    grid-template-areas:
    "label price-type add-btn"
    "label group add-btn"
    "label service add-btn";}

.selector-header-grid > * {
    min-width: 0;
}

.selector-header-grid-item {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.selector-header-grid-item.selector-header-grid-item-label {
    grid-area: label;
}

.selector-header-grid-item.selector-header-grid-item-price-type {
    grid-area: price-type;
}

.selector-header-grid-item.selector-header-grid-item-group {
    grid-area: group;
}

.selector-header-grid-item.selector-header-grid-item-service {
    grid-area: service;
}

.selector-header-btns {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
}

.section-service-body {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-rows: auto;

    min-height: 0;
    min-width: 0;

    margin-top: 1em;
}

.section-service-body > * {
    min-width: 0;
}

.section-service-group > *:first-child {
    margin-top: 1em;
}

.section-service-group {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: 3fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    /*grid-gap: 0.5em;
    gap: 0.5em;*/
    min-height: 0;
    min-width: 0;
}

.section-service-group:not(:last-child) {
    border-bottom: medium dotted var(--ubk-blue);
}

.section-service-group > * {
    min-width: 0;
}

#section-service-sub-group {
    grid-column: 1 / -1;
}

#section-service {
    grid-column: 2 / 2;

    display: grid;
    grid-template-columns: 3fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    grid-row-gap: 0.75em;
    row-gap: 0.75em;
    min-height: 0;
    min-width: 0;
    align-items: center;
}

#etxetic-user-story .section-service-body,
#etxetic-user-story .section-service-group,
#etxetic-user-story #section-service {
    grid-template-columns: 3fr 1fr 1fr 1fr 2fr 1fr 1fr 1fr;
}

#section-service:not(last-child) {
    margin-bottom: 2em;
}

#section-service > * {
    min-width: 0;
}

.section-service-actions {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.section-service-actions > * {
    flex: 1 1 0;
}

.services-icon-expanded {
    transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
}

.section-service-expanded-body {
    grid-column: 1 / -1;
}

#section-service-expanded-container {
    /*display: flex;
    flex-flow: row nowrap;*/
    display: grid;
    grid-template-columns: 4fr 20fr;
    grid-template-rows: auto;
    min-height: 0;
    min-width: 0;

    margin-top: 1.5em;
}

#section-service-expanded-container > * {
    min-width: 0;
}

.service-expanded-basic {
    display: flex;
    flex-flow: column nowrap;

    border-right: medium dotted var(--ubk-blue);
    margin-right: 1.5em;
    padding-right: 0.5em;
}

.service-expanded-basic-item {
    display: flex;
    flex-flow: column nowrap;
}

.service-expanded-basic-item:not(:first-child) {
    margin-top: 1.5em;
}

.input-short-with-tag-container {
    display: flex;
    flex-flow: row nowrap;
}

.service-expanded-detalle {
    display: flex;
    flex-flow: column nowrap;
}

.service-expanded-detalle-con-frecuencia {
    display: grid;
    grid-template-rows: 2em auto;
    grid-template-columns: 2fr 8fr;
    grid-template-areas:
            "header subheader"
            "frecuencia distribucion";
}

.service-expanded-detalle-con-frecuencia > .section-service-label {
    grid-area: header;
}

.service-expanded-detalle-con-frecuencia > .section-service-label:not(:first-child) {
    grid-area: subheader;
}

.service-expanded-detalle-frecuencia {
    grid-area: frecuencia;

    display: flex;
    flex-flow: column nowrap;
}

.service-expanded-detalle-frecuencia > *:not(:first-child) {
    margin-top: 0.5em;
}

.radio-button-container {
    display: inline-flex;
    flex-flow: row nowrap;
}

.radio-button-container label {
    margin-left: 10px;
}

.service-expanded-detalle-distribucion-semanal,
.service-expanded-detalle-distribucion-semanal2 {
    grid-area: distribucion;

    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.service-expanded-detalle-distribucion-semanal > * {
    margin-top: 1em;
}

.service-expanded-detalle-distribucion-semanal > *:not(:last-child) ,
.service-expanded-detalle-distribucion-semanal2 > *:not(:last-child) {
    margin-right: 2em;
}

.carer-schedule-distribucion-semanal-margin > *:not(:last-child) {
    margin-right: 1em;
}

.service-expanded-detalle-distribucion-mensual {
    grid-area: distribucion;
    grid-row: 2 / span 1;

    display: flex;
    flex-flow: column nowrap;
}

.service-expanded-detalle-distribucion-mensual > *:not(:first-child) {
    margin-top: 1em;
}

.service-distribucion-mes {
    display: grid;
    grid-template-columns: 15em 1fr;
    grid-template-rows: auto auto;
    grid-column-gap: 4em;
    column-gap: 4em;
}

.service-distribucion-mes-int {
    grid-column: 1 / 1;

    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.service-distribucion-mes-int > label {
    margin-top: 0.25em;
}

.service-distribucion-mes-lista-semanas {
    grid-column: 2 / -1;

    display: flex;
    flex-flow: row wrap;
    row-gap: 1em;
    /*column-gap: 3em;*/
}

.service-distribucion-mes-lista-semanas > *:not(:last-child) {
    margin-right: 3em;
}

.service-distribucion-mes-semana {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
}

#section-service .service-attribute-row {
    font-size: 16px;
    margin-bottom: 10px;
    margin-left: 25px;
}

#section-service .section-btn {
    flex: 1;
    min-width: 200px;
    height: 80px;
    display: flex;
    padding: 0 10px;
    position: relative;
}

#section-service .section-btn span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/*Indicator of selected section button*/
#section-service .section-btn.selected::after {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.1);
}

/*Vertical bar that separates section buttons*/
#section-service .section-btn:not(:last-of-type)::before {
    position: absolute;
    z-index: 1;
    content: '';
    width: 1px;
    height: 80%;
    top: 10%;
    right: 0;
    background: currentColor;
}

#section-service .section-btn .progress {
    transition: width .4s;
    background: var(--blue);
    height: 100%;
    position: absolute;
    left: 0;
}

/***************
**** INPUTS ****
****************/

.service-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0.25em;
    padding: 1.5em 1em;

    border: solid 1px var(--ubk-blue);
    border-radius: 5px;

    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: .5px;
    transition: .2s ease-out;

    cursor: pointer;
}

.btn-white {
    color: var(--ubk-blue);
    background: var(--white);
}

.btn-blue {
    color: var(--white);
    background: var(--ubk-blue);
}

.btn-red {
    color: var(--white);
    background: var(--persian-red);
    border: solid 1px var(--persian-red);
}

#add-service-btn {
    grid-area: add-btn;
}

.section-service-actions-btn-container {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
}

.section-service-actions-btn-container > *:not(:first-child) {
    margin-top: 0.5em;
}

.section-service-actions-btn-label {
    font-size: 0.7em;
    text-align: center;
}

.section-service-actions-btn-label-large {
    font-size: 0.8em;
    text-align: center;
}

.section-service-actions-btn-icon {
    max-width: 2em;
    max-height: 2em;
}

.section-service-actions-btn-icon.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.section-service-actions-btn-icon-large {
    max-width: 3em;
    max-height: 3em;

    border-radius: 50%;
    box-shadow: 2px 2px 5px 0 var(--gray);
}

.section-service-actions-btn-icon-large.v-large {
    max-width: 3.5em;
    max-height: 3.5em;
}
.service-text-input, .service-number-input {
    border: none; outline: none;
}

.service-bottom-bordered-text-input, .service-bottom-bordered-number-input {
    padding-bottom: .2em;
    margin-top: .2em;
    border: none;
    border-bottom: solid 2px var(--gray);
}

.service-selector-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(/assets/icons/new-design/desplegable.svg) no-repeat right content-box;
    background-size: 1em 1em;
    padding-right: 1em;
}

.service-bottom-bordered-selector-input {
    padding-bottom: .3em;
    margin-top: .2em;
    border: none;
    border-bottom: solid 2px var(--gray);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent url(/assets/icons/new-design/desplegable.svg) no-repeat right content-box;
    background-size: 1em 1em;
    padding-right: 1em;
}

.options-selector-service-distribucion {
    width: 42px;
}

.service-bottom-bordered-selector-input.select-disabled {
    background: transparent !important;
    padding-right: 0 !important;
}

.service-bottom-bordered-selector-input.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.service-bottom-bordered-text-input:focus,
.service-bottom-bordered-number-input:focus,
.service-bottom-bordered-selector-input:focus {
    outline: none;
    border-bottom: solid 2px var(--ubk-blue);
}

.service-bottom-bordered-text-input::placeholder,
.service-bottom-bordered-number-input::placeholder,
.service-bottom-bordered-selector-input::placeholder {
    color: var(--gray);
}

.header-selector {
    max-width: 25em;
}

input.short, select.short {
    max-width: 1.5em;
}

input.medium, select.medium {
    max-width: 12em;
}

input.long, select.long {
    max-width: 25em;
}

.service-background-gray-date-input {
    border-radius: 5px;
    padding: 5px 10px;
    max-width: 6em;
    text-align: center;
    background: var(--v-light-gray);
    border: none;
}

.service-border-bottom-gray-date-input {
    padding: .2em 0 .3em 0;
    max-width: 6em;
    border: none;
    border-bottom: 2px solid var(--gray);

    background: transparent url(/assets/icons/new-design/desplegable.svg) no-repeat right content-box;
    background-size: 1em 1em;
}

.service-border-bottom-gray-time-input {
    padding: .2em 0 .3em 0;
    max-width: 6em;
    border: none;
    border-bottom: 2px solid var(--gray);

    background: transparent url(/assets/icons/new-design/desplegable.svg) no-repeat right content-box;
    background-size: 1em 1em;
}

.service-border-bottom-gray-date-input:focus,
.service-border-bottom-gray-time-input:focus {
    outline: none;
    border: none;
    border-bottom: 2px solid var(--ubk-blue);
}

.service-border-bottom-gray-time-input::-webkit-calendar-picker-indicator {
    background: none;
}

/****************
***** POPUP *****
*****************/

.popup-element.popup-element-save-proposal {
    top: 35%;
    bottom: 35%;
    left: 20%;
    right: 20%;

    /*border: thick solid var(--ubk-blue);*/
    border-radius: 2em;

    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
}

.popup-element-save-proposal > .popup-close-btn-container {
    align-self: stretch;

    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
}

.popup-close-btn-container > .popup-close-btn {
    position: static;
}

.container-bottom-border-input-with-label {
    display: flex;
    flex-flow: row nowrap;

    padding-bottom: 0.25em;
    border-bottom: 2px solid var(--light-gray);
}

.container-bottom-border-input-with-label:focus-within {
    border-bottom: 2px solid var(--ubk-blue);
}

.container-bottom-border-input-with-label > input {
    margin-left: 8em;
}

#container-input-proposal-name {
    align-self: stretch;
    margin-left: 2em;
    margin-right: 2em;
}

#input-proposal-name {
    flex: 1 1 auto;
}

/******************
***** SUMMARY *****
*******************/

.summary-header {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.section-proposal-summary-body {
    display: flex;
    flex-flow: column nowrap;

    margin-top: 4em;
}

.proposal-summary-table {
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;

    grid-gap: 1em;
    gap: 1em;

    min-height: 0;
    min-width: 0;
}

.proposal-summary-table-header {
    grid-row: 1 / span 1;
    grid-column: 1 / -1;

    border-bottom: 2px dotted var(--ubk-blue);
    padding-bottom: 1em;
    font-weight: bold;

    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 100px;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;

    grid-gap: 1em;
    gap: 1em;

    min-height: 0;
    min-width: 0;
}

.proposal-summary-table-header > * {
    min-width: 0;
}

.proposal-summary-table-services {
    min-width: 0;

    display: flex;
    flex-flow: column nowrap;
}

.proposal-summary-table-services > *:not(:first-child) {
    margin-top: 2em;
}

.proposal-summary-table-services-single {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 100px;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;

    grid-gap: 1em;
    gap: 1em;

    min-height: 0;
    min-width: 0;
}

.proposal-summary-table-services-single > * {
    min-width: 0;
}

.proposal-summary-table.total {
    grid-row: 3 / span 1;
    grid-column: 1 / -1;

    border-top: 2px dotted var(--ubk-blue);
    padding-top: 1em;
    font-weight: bold;

    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 100px;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;

    grid-gap: 1em;
    gap: 1em;

    min-height: 0;
    min-width: 0;
}

.proposal-summary-table.total > * {
    min-width: 0;
}

/*.offer-summary--table > * {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 100px;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;

    grid-gap: 1em;
    gap: 1em;

    min-height: 0;
    min-width: 0;
}

.offer-summary--table > * > * {
    min-width: 0;
}

.offer-summary--row-header {
    grid-row: 1 / span 1;
    grid-column: 1 / -1;

    border-bottom: 2px dotted var(--ubk-blue);
    padding-bottom: 1em;
    font-weight: bold;
}

.offer-summary--service-list {
    grid-row: 2 / span 1;
    grid-column: 1 / -1;
}

.offer-summary--service-list > .offer-summary--row {
    display: contents;
}

.offer-summary--service-list > .offer-summary--row > *:first-child {
    grid-column: 1 / span 1;
}

.offer-summary--row-overall {
    grid-row: 3 / span 1;
    grid-column: 1 / -1;

    border-top: 2px dotted var(--ubk-blue);
    padding-top: 1em;
    font-weight: bold;
}*/

#canvas {
    overflow: hidden;
}

.print-popup-title {
    padding: 0.5em;
    font-weight: bold;
    font-size: 1.3em;
    margin-right: 10%;
    margin-left: 10%;
    border-bottom: solid thin lightgray;
    }

.print-popup-grid {
    display: grid;
    grid-template-columns: 1.5em 0.7fr 0.7fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    align-items: center;
    margin-right: 8%;
    margin-left: 8%;
    margin-top: 1%;
    margin-bottom: 1%;
    justify-items: left;
    grid-gap: 1em 0.5em;
    min-height: 0;
    min-width: 0;
}

.print-popup-grid-label {
    font-weight: bold;
    font-size: 0.9em;}

.selection-image {
   height: 1.5em;
}

.grit-selector-long {
    width: 100%;}

.grit-selector-medium {
    width: 80%;}

.selection-image {
   height: 1.5em;
}
