/* CARDS */

.cards > .tiles {
    width: 100%;
    height: 100%;
    display: block;
}

.cards > .tile > .left,
.cards > .tile > .center,
.cards > .tile > .right {
    vertical-align: top;
}

.cards > .tile > .left {
    width: 320px;
    display: inline-flex;
    flex-direction: column;
    height: 100%;
    padding-left: 12px;
    padding-bottom: 8px;
}
.cards > .tile > .center,
.cards > .tile > .right {
    width: calc((100% - 320px) / 2 - 24px);
    display: inline-block;
    margin-left: 16px;
    height: calc(100% - 48px);
}
.cards > .tile > .right {

}


.cards > .tile > .header {
    padding-right: 16px;
}

.cards >  .tile > .header > .slot,
.cards >  .tile > .header > .slotpre {
  opacity: 0.5;
}

/* CARDS BIGVALUES */

.cards .bigvalues {
    display: -ms-flexbox;
    display: flex;
    padding-bottom: 8px;
    gap: 8px;

}
.cards .bigvalues > * {
    margin: 0;
    -ms-flex: 1 1 1fr;
        flex: 1 1 1fr;
    flex: 1 1 10px;
}

.cards .bigvalues > .multivalue {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto;
    grid-auto-flow: row;
    -ms-flex: 1 1 1fr;
    flex: 1 1 1fr;
    padding: 8px;
    grid-gap: 0 8px;
}
.cards .bigvalues > .multivalue > * {
    color: #555555;
    white-space: nowrap;
}
.cards .bigvalues > .multivalue > .toolkit-icon {
    grid-row-start: 1;
    grid-row-end: 3;
    grid-column-start: 2;
    grid-column-end: 3;
    align-self: center;
}
.cards .bigvalues > .multivalue > .label {
    color: #555555;
    white-space: nowrap;
    line-height: 1;
}
.cards .bigvalues > .multivalue > .value {
    color: #cccccc;
    font-size: 1.6em;
    line-height: 1;
}
.cards .bigvalues > .multivalue > .title {
    grid-column-start: 1;
    grid-column-end: 4;
}


/* CARDS DANTE */

.cards .danteio {
  display: grid !important;
  grid-template-areas:
    'icon net'
    'icon ins'
    'icon outs';
  padding-top: 4px !important;
}

.cards .danteio > .toolkit-icon {
  grid-area: icon;
}
.cards .danteio .toolkit-state {
  width: 3px;
  height: 5px;
  margin: 0 1px 0 0;
}

.cards .danteio > .ports {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  grid-gap: 2px 0px;
  margin-bottom: 6px;
}

.cards .danteio > .ports > span {
    font-size: 9px;
    line-height: 9px;
    color: #666;
    border-left: 1px solid #666;
    text-align: center;
    text-transform: lowercase;
}

.cards .danteio > .ports > awml-clone {
  white-space: nowrap;
}

.cards .danteio > .toolkit-container.network {
    grid-area: net;
    margin-right: 4px;
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 4px;
}
.cards .toolkit-container.network > .toolkit-container {
    display: grid;
    align-items: center;
    grid-template-columns: auto auto;
}
.cards .toolkit-container.network > .toolkit-container > span {
    font-size: 0.8em;
}
.cards .toolkit-container.network > .toolkit-container > .toolkit-label {
    grid-column-start: 2;
}
.cards .toolkit-container.network > .toolkit-container > .toolkit-icon {
    margin-right: 2px;
}

/* CARDS EXTENSIONS */


.cards .extensions .toolkit-multi-meter {
    margin-top: 1rem;
    flex: 1 1 50%;
}
.cards .extensions .toolkit-multi-meter.inputs {
    margin-right: 12px;
}
.cards .extensions .toolkit-multi-meter .toolkit-level-meter {
    min-height: 32px;
}
.cards .extensions .toolkit-multi-meter .toolkit-bar {
    width: 12px !important;
}
.cards .extensions .toolkit-multi-meter > .toolkit-label {
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}
.cards .extensions .toolkit-multi-meter .toolkit-level-meter .toolkit-title {
    justify-self: center;
}

.cards .extensions .toolkit-multi-meter .toolkit-level-meter.enabled .toolkit-label {
    color: var(--color-orange);
}


.cards .extensions {
    display: block;
    flex: 1 1 100%;
}

.cards .extension {
    background: #262626;
    border-radius: 6px;
    margin: 0;
    margin-bottom: 8px;
    padding: 2px 4px;
    display: block;
}

.cards .xicon {
    font-size: 32px;
    line-height: 40px;
    margin-right: 8px;
/*
    color: #666;
*/
}

.cards .extensions .aesio .toolkit-multi-meter .toolkit-bar {
    width: 5px !important;
}
.cards .extensions .aesio .toolkit-multi-meter .toolkit-level-meter .toolkit-title {
    font-size: 6px;
    width: 5px;
}


.cards .extensions .gpio {
    display: flex;
    align-items: center;
}
.cards .extensions .gpio > .toolkit-container {
    flex: 1 1 100%;
}

.cards .extensions .gpio .toolkit-frame {
    display: block;
    margin: 0 0 0 12px;
    font-size: 0;
}
.cards .extensions .gpio .toolkit-frame.gpi {
    margin-bottom: 4px;
}
.cards .extensions .gpio .toolkit-frame > .toolkit-frame-label {
    top: 0;
    left: 0;
    transform: rotate(-90deg) translate(-16px, -18px);
    font-size: 0.8rem;
}
.cards .extensions .gpio .toolkit-frame.gpi > .toolkit-frame-label {
    color: var(--color-blue);
}
.cards .extensions .gpio .toolkit-frame.gpo > .toolkit-frame-label {
    color: var(--color-orange);
}


.cards .extensions .gpio .toolkit-button {
    width: calc(12.5% - 2px);
    height: 20px;
    min-width: calc(12.5% - 2px);
    min-height: 20px;
    padding: 0;
    margin: 1px;
    font-size: 1rem;
}
.cards .extensions .gpio .toolkit-button > .toolkit-label {
    flex: 1 1 100%;
    text-align: center;
    padding: 0;
}
.cards .extensions .gpio .gpi .toolkit-button.toolkit-active > .toolkit-label {
    background: -moz-linear-gradient(top, rgb(0,134,159) 0%, rgb(0,202,241) 100%);
    background: -webkit-linear-gradient(top, rgb(0,134,159) 0%, rgb(0,202,241) 100%);
    background: linear-gradient(to bottom, rgb(0,134,159) 0%, rgb(0,202,241) 100%);
}



/* CARDS PORTS */

.cards .scroller {
    white-space: normal;
    height: calc(100% - 24px);
}

/*
.cards .items > .item {
    line-height: 24px;
    width: calc(100% - 6px);
}
@media (min-width: 1200px) {
    .cards .items > .item {
        width: calc(50% - 6px);
    }
}
*/
.cards .items > .item > .toolkit-level-meter {
    height: 32px;
    min-height: 0;
}
.cards .items > .item > .toolkit-icon {
    margin-right: 4px;
}
.cards .items > .item > .toolkit-label {
    flex: 0 0 16px;
    text-align: center;
}

.cards .items > .item > .toolkit-value {
    flex: 1 1 100%;
}
.cards .items > .item > .spacer {
    flex: 0 0 74px;
}

.cards .items > .item.flash {
    background: var(--color-orange);
}


.cards .colors {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 8px;
    line-height: 10px;
}
.cards .colors > span {
    display: block;
    width: 44px;
    text-align: left;
}

/* CARDS DANTE SETTINGS */

.cards .toolkit-container.clip {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 10;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    pointer-events: none;
}
.cards .toolkit-expander.dante {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    white-space: normal;
    background: #333333;
    display: grid;
    grid-template-columns: repeat(3, auto);
    align-items: stretch;
    justify-items: center;
    justify-content: center;
    align-content: center;
    pointer-events: all;
}
.cards .toolkit-expander.dante .toolkit-toggle-expand {
    transform: translate3d(-100%, 0, 0);
    width: 40px;
    height: 32px;
    left: 0;
    top: auto;
    bottom: 0;
    transition: all 0.5s;
    background: -moz-linear-gradient(top, rgb(241,107,47) 0%, rgb(214,76,14) 100%);
    background: -webkit-linear-gradient(top, rgb(241,107,47) 0%, rgb(214,76,14) 100%);
    background: linear-gradient(to bottom, rgb(241,107,47) 0%, rgb(214,76,14) 100%);
    color: #262626;
    border-top-left-radius: 20px;
    border-top: 2px solid #262626;
    border-left: 2px solid #262626;
}
.cards .toolkit-expander.dante.toolkit-expanded .toolkit-toggle-expand {
    transform: translate3d(0, 0, 0);
    left: calc(100% - 40px);
    background: -moz-linear-gradient(top, rgb(214,76,14) 0%, rgb(241,107,47) 100%);
    background: -webkit-linear-gradient(top, rgb(214,76,14) 0%, rgb(241,107,47) 100%);
    background: linear-gradient(to bottom, rgb(214,76,14) 0%, rgb(241,107,47) 100%);
}

.cards .toolkit-expander.dante > .toolkit-container {
    padding: 8px;
    margin: 6px;
    align-content: start;
}

.cards .toolkit-expander.dante > .toolkit-container .toolkit-valueknob {
    justify-self: start;
    height: 64px;
}
.cards .toolkit-expander.dante > .toolkit-container .toolkit-valueknob > .toolkit-knob {
    width: 80px;
    height: 80px;
}
.cards .toolkit-expander.dante > .toolkit-container .toolkit-valueknob > .toolkit-knob > svg {
    width: 80px;
    height: 80px;
}
.cards .toolkit-expander.dante > .toolkit-container .toolkit-valueknob > .toolkit-value > .toolkit-input {
    text-align: left;
}
.cards .toolkit-expander.dante > .toolkit-container .toolkit-buttonarray .toolkit-container {
    display: -ms-flexbox;
    display: flex;
}
.cards .toolkit-expander.dante > .toolkit-container .toolkit-buttonarray .toolkit-button {
    -ms-flex: 1 1 auto;
        flex: 1 1 auto;
}

.cards .toolkit-expander.dante .password {
    display: flex;
    grid-template-columns: 1fr 40px;
    align-items: center;
}
.cards .toolkit-expander.dante .password > .toolkit-input {
    flex: 1 1 auto;
    order: 1;
    border-right: none;
}
.cards .toolkit-expander.dante .password > .toolkit-button {
    flex: 0 0 40px;
    order: 2;
    height: 32px;
    min-height: 32px;
    border: 1px solid #444;
    border-left: none;
}
.cards .toolkit-expander.dante .password > .toolkit-button > .toolkit-icon {
    font-size: 18px;
}

/* CARDS ADD PORT DIALOGS */

.add-dialog.card_port_dialog .table {
    width: 100%;
}
