@import "../index.css";

button {
    background: var(--dark_blue);
    color: var(--white);
    font-size: 13px;
}

table {
    color: var(--table_gray);
    background: var(--white);
    border-collapse: collapse;
}

th {
    padding-left: 10px;
    color: var(--dark_blue);
    opacity: 0.5;
    font-weight: lighter;
    line-height: 19px;
}

tbody {
    padding-left: 10px;
    color: var(--table_black);
    font-size: 15px;
    line-height: 22px;
}

tbody tr:hover {
    background: var(--divider);
}

.cancel-button {
    padding: 10px;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--dark_blue);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    color: var(--dark_blue);
}


/* Add this class to any html element to be centered */

.text-align-center {
    text-align: center;
}

.text-align-right {
    text-align: right;
}

.clickable:hover,
.actions-cell img:hover,
.main-header-button:hover,
.main-content-button:hover {
    cursor: pointer;
}

.main-header-button:hover,
.main-content-button:hover {
    box-shadow: 0px 4px 10px rgba(16, 156, 241, 0.24);
}

table.table-with-header-bottom-border th{
    border-bottom: 1px solid var(--divider);
}

.bottom-divider {
    border-bottom: 1px solid var(--divider);
}

.main-container {
    padding: 52px 36px 20px;
    font-size: 13px;
    letter-spacing: 0.01em;
    position: relative;
}

.main-header-container {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.main-header {
    display: inline;
    vertical-align: middle;
    margin: 0;
    color: var(--dark_blue);
    font-family: var(--font-family-bold);
    font-size: clamp(20px, 3vw, 32px);
    line-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    /*white-space: nowrap;*/
}

.main-header-button,
.main-header-blue-button,
.delete-header-button {
    display: inline;
    vertical-align: middle;
    padding: 12px 42px;
    border-radius: 4px;
    background: var(--dark_blue);
    color: var(--white);
    font-weight: bold;
}

.main-header-button,
.delete-header-button,
.main-header-blue-button,
.cancel-header-button {
    height: 42px;
}

.delete-header-button {
    width: 42px;
    height: 42px;
    padding: 0;
    background: url(../images/delete-icon.svg) no-repeat;
    background-size: 18px;
    background-position: 10px;
    color: transparent;
    margin-right: 5px;
    border: 1px solid var(--dark_blue);
}

.main-header-blue-button,
.cancel-header-button {
    padding: 12px 25px;
    margin-right: 5px;
}

.header-buttons-container {
    align-items: center;
    margin: 0;
}

.edit-button {
    height: 17px;
    width: auto;
    padding: 5px;
    border: none;
    background: url(../images/edit-icon.svg) no-repeat center;
    color: transparent;
}

.delete-button {
    background: url(../images/delete-icon.svg) no-repeat;
    background-size: contain;
	height: 20px;
    color: transparent;
}

.actions-cell {
    height: 50px;
	margin: 0 8px 0 8px;
    justify-content: start;
}


/* Common styles for all extr details types */

.service-details-wrapper {
    justify-content: space-between;
    flex-wrap: nowrap;
}

#left-container {
    width: 320px;
    min-width: 320px;
    margin: 0;
}

#left-container h3,
main h3,
.where-builder-container h3 {
    font-family: var(--font-family-bold);
    font-size: 18px;
    line-height: 27px;
    color: var(--dark_blue);
    margin-top: 0;
    display: inline-block;
}

#function-module-container {
    width: 100%;
}

main h3,
main p {
    padding-left: 20px;
}

main h3 {
    margin: 20px 0 0;
}

main p {
    margin: 0;
    line-height: 19px;
    color: var(--text_help_gray);
}

#left-container h5 {
    font-family: var(--font-family-bold);
    color: var(--dark_blue);
    font-size: 11px;
    line-height: 16px;
}

#left-container p {
    color: var(--table_gray);
    line-height: 19px;
}

/* max: this is too generic, better refactor to url-button */
#left-container button {
    /*background: none;*/
    color: var(--light_blue);
    float: right;
    width: 50px;
    padding: 0;
}

#sap-table-container,
#function-module-container {
    margin-bottom: 20px;
}

#left-container>div {
    padding: 20px;
}

#left-container>div,
.service-details-wrapper main>div {
    background: var(--white);
    border-radius: 4px;
}

#left-container>div>div {
    margin: 0;
}

#sap-table-container {
    margin: 0 0 20px;
}

.service-details-wrapper main {
    margin: 0;
    width: 100%;
    flex: inherit;
    margin-left: 20px;
}

.invalid-field {
    border: 2px solid red;
    background-color: #ffe6e6;
}

/* Removing arrows for input types number*/


/* Chrome, Safari, Edge, Opera */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}


/* Firefox */

input[type=number] {
    -moz-appearance: textfield;
}

.empty-list {
    align-items: center;
    max-width: 800px;
    padding: 80px;
    margin: 20px auto;
    border-radius: 4px;
    background: var(--white);
}

.empty-list p {
    max-width: 320px;
    text-align: center;
}

.empty-list h4 {
    font-size: 16px;
    font-family: var(--font-family-bold);
}

.swagger-header {
    justify-content: start;
}

.swagger-header label {
    margin-left: 5px;
}


/* validation */

input:invalid {
    background-color: rgba(255, 251, 0, .24);
}

input:required {
    border-color: orange;
}

input[required]:after {
    content: " *";
    color: green;
}

input[required] {
    background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-10 -6 16 16"> <line id="line" y1="-3" y2="3" stroke="%23df0000" stroke-linecap="butt" transform="rotate(15)"></line> <line id="line" y1="-3" y2="3" stroke="%23df0000" stroke-linecap="butt" transform="rotate(75)"></line> <line id="line" y1="-3" y2="3" stroke="%23df0000" stroke-linecap="butt" transform="rotate(-45)"></line> </svg>');
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: 2em 2em;
}

input[required]:valid {
    background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" viewBox="-2 -2 16 16"> <path fill="green" stroke-linejoin="round" d="M2 6L1 7l3 4 7-10h-1L4 8z"/> </svg>');
}

/* end validation */