﻿/* ITF Apps CSS */

/* basic styles */
body {
    font-family: "Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
}

input[readonly] {
    border: 1px solid lightgray;
}

input[readonly].itf-itext {
    border: 0;
}

.btn-itf {
    background-color: #009c68 !important;
    color: white;
}

.bg-itf {
    background-color: #009c68 !important;
}

.navbar-itf {
    background-color: var(--secondary);
    border: 1px solid lightgray;
}

a.disabled {
    font-style: italic;
    color: var(--secondary);
    text-decoration: none;
}

.itf-font-md {
    font-size: 12px !important;
}

hr {
    background-color: #009c68;
}

/* other styles :: needed? */
.no-close .ui-dialog-titlebar-close {
    display: none;
}

.div-cmpscroll {
    height: 40vh;
    overflow-y: auto;
    border: 1px solid var(--secondary);
}

/* search drop down styles :: not needed */
input.itf-n-anchor, input.itf-l-anchor {
    text-decoration: underline;
    color: blue;
    border: none;
    cursor: pointer;
}

div.itf-fetched-table-div > table > tbody {
    border-bottom: 2px solid lightgray;
    border-left: 2px solid lightgray;
    border-right: 2px solid lightgray;
}

.tscrollable {
    overflow-y: scroll;
    position: absolute;
    height: 250px;
    max-height: 250px;
    border: 1px solid darkgray;
}

/* fixed head table styles*/
.table-fixed-head {
    overflow-y: auto;
    max-height: 250px;
}

.table-fixed-head thead th {
    position: sticky;
    top: 0;
    background: #eee;
}

/* modal styles : large modal */
div.modal-dialog.itf-lg-dlg {
    max-width: 800px;
    max-height: 600px;
}

/* bar styles */
div.itf-bar div.modal-content {
    width: 200px;
    height: 25px;
    margin: 0 auto;
}

div.itf-bar div.modal-body {
    padding: 6px !important;
}

div.bar {
    padding: 0 0;
    margin: 0 0;
    height: 10px;
}

div.bar.bparent {
    display: flex;
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 4px;
}

div.bar.broller {
    display: inline-block;
    width: 20%;
    background-color: #009c68;
}

div.bar.bleft, div.bar.bright {
    display: inline-block;
    background-color: #eee;
}

/* layout styles :: not needed! */
div.layout {
    min-height: 300px;
}

div.layout.leftmost {
    float: left;
    width: 20%;
    padding-left: 0;
    padding-right: 0;
    min-width: 100px;
}

div.layout.leftalso {
    float: left;
    width: 30%;
    padding-left: 0;
    padding-right: 0;
    min-width: 400px;
}

div.layout.content {
    float: right;
    width: 50%;
    padding-left: 0;
    padding-right: 0;
}

/* for mini tables */
table.itf-mini input {
    width: 7em;
}

table.tbl-brd {
    border: 1px solid gray;
}

tr.itf-header-border > td {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

th.chkboxcol, td.chkboxcol {
    width: 1em;
}

/* for semaphores */
.dot {
    height: 1em;
    width: 1em;
    border-radius: 50%;
    display: inline-block;
}

.bg-red {
    background-color: red;
}

.bg-green {
    background-color: lightgreen;
}

.text-green {
    color: #00cc00;
}
    
/* specific datepicker styles */
select.ui-datepicker-month, select.ui-datepicker-year {
    background-color: inherit;
}

/* specific styles : adjustable! */
span.widend {
    display: inline-block;
    width: 50%;
}

.btn-plain {
    background-color: #efefef;
    border: 0;
}

.itf-btn-danger {
    background-color: inherit;
    color: red;
    font-weight: 900;
    font-size: 14px !important;
    border: 0;
}

/* table styles */
table thead tr {
    background-color: #efefef;
}

table tbody tr:nth-child(even) {
    background-color: rgba(239,239,239,0.3);
}

table tbody tr td:nth-child(odd) {
    background-color: rgba(239,239,239,0.2);
}
