﻿/* Common CSS */
.number {
    text-align: right;
}

.date {
    width: 7em
}

.date-time {
    width: 14em
}

input[type=number] {
    text-align: right;
}

input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.right {
    text-align: right;
}

/* hidden and out of the document flow */
.hidden {
    display: none !important; 
}

.larger {
    font-size: 1.11em;
}
/* hidden display, but still part of document flow */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media(max-width: 767px) {
    .hidable {
        display: none !important
    }
}

@media(max-width: 560px) {
    .hidable-xs {
        display: none !important
    }
}

/* flows child elements evenly to fill 100%*/
.responsive-container {
    display: flex;
    vertical-align: middle;
}

.responsive-container > * {
    margin-right: 3px;
}

.responsive-container > *:last-child {
    margin-right: 0;
}

.stackable {
}

@media(max-width: 768px) {

    .responsive-container {
        flex-direction: column;
    }

    .responsive-container.nostack {
        flex-direction: row;
    }

    .responsive-container > * {
        margin-right: 0;
        margin-top: 4px;
        width: 100% !important;
    }

    .responsive-container.nostack > * {
        margin-top: inherit;
        width: auto;
        margin-right: 4px;
    }

    .responsive-container.nostack > *:last-child {
        margin-right: 0;
    }


    .stackable {
        display: block;
        margin-top: 4px;
    }
}

/* West Wind Component Features */

.error, .red-highlight, .binding-error {
    color: firebrick;
    font-weight: bold;
}

.error-inline {
    color: firebrick;
    display: inline;
}

.binding-error {
    padding: 5px 0;
    font-size: 0.85em;
}

.highlight {
    background: #c6f1c6 !important;
}