@import url("../css/dialog.css");

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
}
h5 {
    font-size: 1em;
    margin: 10px 0 0 0;
}

input:invalid {
  background-color: lightpink;
}

::placeholder {
    color: #ccc !important;
}
::-ms-input-placeholder {
    color: #ccc !important;   
}

#main {
    position: absolute;
    left: 0;
    top: 0;
    margin: 10px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    .dlg-body {
        height: 83vh;
    }
}

.row {
    display: flex;
    flex-direction: row;
    .col {
        flex: 1;
        margin: 0 5px;
    }
}

.license-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    >input {
        width: 33ch;
        text-transform: uppercase;
        margin-right: 10px;
    }
}

.startup {
    display: flex;
    height: 200px;
    >textarea {
        flex: 1;
    }
}
.iconbar {
    >span {
        display: inline-block;
        width: 24px;
        height: 24px;
        >img {
            width: 24px;
            height: 24px;
        }
        &.hidden {
            background: url("cross.jpg") center no-repeat;
            background-size: 24px 24px;
            >img {
                opacity: 0.4;;
            }
        }
    }
}

.csv-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border: 1px solid #888;
    margin-top: 10px;
    >input[type="file"] {
        flex: 2;
    }
}

[name=timeout] {
	width: 40px;
}

[name=show_csv] {
	z-index: 2;
	border-radius: 0px;
	margin: 0 -2px;
}

[name=download_csv] {
    /* float: right; */
    /* margin-top:  -0.5em; */
}

#csv-content {
    display:grid;
    max-height: 80vh;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    overflow: auto;
    margin-top: 10px;
}
#csv-content>div {
	border-right: 1px solid #eee;
	border-bottom: 1px solid #eee;
	padding: 2px 5px;
}
#csv-content>select {
	margin: 2px 5px;
}
#csv-content .number {
    text-align: right;
}

.postload, .single, .multi {
    display: block;
}
[name=save] {
    margin: 0 10px;
}
[name=message] {
    height: 100%;
    color: green;
    font-weight: bold;
}
.error {
    color: red !important;
}

[name=classroom] {
    text-transform: lowercase;
}

#show-csv {
    table {
        border-collapse: collapse;
        width: 100%;
        border: 1px solid #888;
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        th, td {
            text-align: left;
            padding: 8px;
        }
        td:first-child {
            text-align: right;
        }
    }
}

@media only screen and (max-width: 600px) {
    .row {
        display: block;
    }
    .startup {
        height: 100px !important;
    }
}
@media only screen and (min-width: 820px) {
    #main {
        left: revert;
        top: 0;
        margin: 10px auto;
        max-width: 800px;
    }
}