:root {
--table-border-color: #808080;
--tab-active-color: #e8e8e8;
--tab-inactive-color: #a0a0a0;
--searchable-color: #6ba6ff;
--label-color: #404040;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

label {
    font-size: smaller;
    color: var(--label-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* musedown */
label:active:hover {
    overflow:visible;
    background-color: white;  /* per dir algo */
    z-index: 9999;
}

table,input[type="text"],input[type="date"],input[type="time"],input[type="datetime-local"],input[type="number"],select,textarea {
    height: 1.75rem;
    line-height: 1rem;
    border-color: rgb(209,213,219);
    border-radius: 0rem; /*0.375rem;*/
    border-width: 1px;
    box-sizing:border-box;
    box-shadow: none;
    font-size: smaller;
    padding: 0rem .5rem 0rem .5rem;
}

button[type="select2"]{
    border-radius: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
    height: 1.75rem;
}

option {
    font-size:smaller;
}

input[type="checkbox"] {
    color:#404040;
}

input[disabled],input[readonly] {
    background-color:#e8e8e8;
}

textarea {
    height:unset;
}

input[type="text"]:focus,input[type="number"]:focus,input[type="date"]:focus,input[type="time"]:focus,input[type="datetime-local"]:focus,select:focus,textarea:focus {
    border-style: solid;
    border-color: rgb(37, 99, 235);
    box-shadow:none;
}

input.novisible, input.novisible:focus {
    border-style:none;
    border-width: 0px;
    outline: none;
}

lm-row {
    display: flex;
    flex-direction:row;
}

lm-col {
    display: flex;
    flex-direction:column;
}

lm-row.full{
    height:100%;
}
lm-col.full {
    width:100%;
}

lm-row.start,lm-col.start {
    justify-content: flex-start;
}

lm-row.end,lm-col.end {
    justify-content: flex-end;
}

lm-row.center,lm-col.center {
    justify-content: center;
}

lm-row.align-start,lm-col.align-start {
    align-items: flex-start;
}

lm-row.align-end,lm-col.align-end {
    align-items: flex-end;
}

lm-row.align-center,lm-col.align-center {
    align-items: center;
}

lm-row.between,lm-col.between {
    justify-content: space-between;
}

lm-row.around,lm-col.around {
    justify-content: space-around;
}

lm-footer {
    display: flex;
    flex-direction:row;
    justify-content: space-between;
}

lm-space {
    display:block;
    padding: 8px;
}

lm-vspace {
    display:block;
    padding-top: 8px;
    padding-bottom: 8px;
}

lm-tspace {
    display:block;
    padding-top: 8px;
}

lm-bspace {
    display:block;
    padding-bottom: 8px;
}

lm-hspace {
    display:block;
    padding-right: 8px;
    padding-left: 8px;
}

lm-centered {
    display:flex;
    align-items: center;
    justify-content: center;
    height:100%;
    width:100%;
}

lm-table {
    display:grid;
    overflow-y:auto;
}

lm-table  lm-header {
    display:contents;
}


lm-table  lm-row {
    display:contents;
}

lm-table  lm-body {
    display:contents;
    overflow-y:auto;
}

lm-tabs {
    display:grid;
    grid-template-areas: "a" ;
    width:100%;
    height:100%;
    overflow:auto;
}

lm-tab {
    display:block;
}

lm-tab-panel {
    display:block;
    grid-area:a;
}



lm-table  lm-footer  {
    display:contents;
}

lm-table  lm-header > div {
    font-size:smaller;
    font-weight: 400;
    background:inherit;
    background-color: #DFDFDF;
    text-align: center;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #505050;
    padding-left: 3px;
    padding-right: 3px;
    position:sticky;
    top:0;
    z-index: 2;
}

lm-table lm-row:nth-child(2n) > div{
  background: #FFFFFF;
}
lm-table lm-row:nth-child(2n+1) > div{
    background: #EFEFEF;
}

lm-table  lm-row  input[type="text"],lm-table  lm-row  input[type="date"],lm-table  lm-row  input[type="time"],lm-table  lm-row  input[type="datetime-local"],lm-table  lm-row  input[type="number"],lm-table  lm-row  select {
    border-radius:0px;
    border-style:none;
}

lm-table  lm-header  input[type="checkbox"].selector,
lm-table  lm-row  input[type="checkbox"].selector {
    height:.7rem;
    width:.7rem;
}


lm-table lm-row > :first-child {
    border-left-style:solid;
    border-left-width:1px;
    border-bottom-style:solid;
    border-bottom-width:1px;
    border-right-style:solid;
    border-right-width:1px;
    border-color:var(--table-border-color);
}

lm-table lm-row > :not(:first-child) {
    border-bottom-style:solid;
    border-bottom-width:1px;
    border-right-style:solid;
    border-right-width:1px;
    border-color:var(--table-border-color);
}

lm-table lm-row div {
    background-color:white;
}

input {
    background-color: inherit;

}

button, a[type="button"] {
    background-color: #303030;
    border-color: #303030;
    color: #F0F0F0;
    padding: .4em .6em .4em .6em;
    border-radius: .375rem;
    font-size: small;
}

lm-button_ {
    display:block;
    background-color: #303030;
    border-radius: .375rem;
    color: white;
    font-size: small;
    padding: .4em .6em .4em .6em;
    /*  dit */
}

button[disabled], i[disabled] {
    opacity: 0.3;
    cursor: default;
}

lm-warning {
    display:block;
    background-color: #FFc0c0;
}

select[disabled] {
    background-color:#f0f0f0;

}

/* flex vased forms */

lm-form {
    margin: 0 auto;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
}

lm-inputgroup {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap:wrap;
}

lm-fieldcontainer {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

/*******************/

lm-field {
    display:flex;
    flex-direction:column;
}

.searchable {
    color: var(--searchable-color);
}


.lm-cursor-wait {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    z-index: 10;
    cursor:wait;
}

lm-modal-background {
    position: fixed;
    display:block;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow-y:auto;
    z-index: 10;
}

lm-modal-form {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: start;
    background-color: rgb(0,0,0,.5);
    height:100%;
    /*cursor: pointer;*/
}
lm-modal-form-ok {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: start;
    background-color: rgb(0,0,0,.3);
    height:100%;
    /*cursor: pointer;*/
}

lm-modal-popup {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    background-color: rgb(0,0,0,.3);
    height:100%;

}


lm-modal-header {
    display:block;
    background-color:#d0d0d0;
    border-radius: .5rem .5rem 0rem 0rem;
    cursor:auto;
}

lm-modal-body {
    display:block;
    padding:4px;
}

lm-modal-footer {
    display:block;
    background-color:#d0d0d0;
    border-radius: 0rem 0rem .5rem .5rem;
    cursor:auto;
}

lm-message {
    display:block;
    background-color: orangered;
    color:white;
    margin: .3rem;
    padding: .3rem;
    border-radius: .5rem;
}

lm-clickable {
    display:contents;
    cursor: pointer;
}

label.anchor {
    color:blue;
    text-decoration: underline;
    cursor: pointer;
}

*[wire\:click], *[wire\:click] *  {
    cursor: pointer;
}
