/**
 * WebInvo Template CSS
 * Extracted from template.inc.php
 */

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: #ffffa0;
}

/* text="#000000" bgcolor="#FFFFA0" link="#0000FF" vlink="#000080" alink="#A00000" */
body, p, a, h1, h2, h3, h4, ul, ol, li, div, td, tr, table, th, blockquote, nobr, input, textarea, center, button {
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

h1 {
    font-size: 14px;
    font-weight: bold;
}

a {
    color: #0000FF;
    text-decoration: none;
}

a:active {
    color: #A00000;
}

a:visited {
    color: #000080;
}

a:hover {
    color: #A00000;
}

a[href=""], a[disabled] {
    filter: brightness(0.5);
    pointer-events: none;
}

ul {
    padding: 0 0 2px 0;
    margin: 0 0 15px 0;
    border-radius: 5px;
    border: 1px solid #eea;
    background: #ffc;
}

li {
    padding: 1px 3px;
    list-style: none;
}

li.head, ul[data-head]:before {
    content: attr(data-head);
    text-align: center;
    font-weight: bold;
    display: block;
    padding: 3px 5px 2px 5px;
    margin: 0 0 2px 0;
    border-bottom: 1px solid #ddd;
}

li.divider {
    border-top: 1px solid #ddd;
    margin-top: 2px;
    padding-top: 1px;
    list-style: none;
}

[data-badge]:before, .badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #dda;
    border-radius: 3px;
}

[data-badge]:before {
    content: attr(data-badge);
    min-width: 28px;
    margin: 0 5px 0 0;
    text-align: right;
}

.badge {
    margin: 1px;
    padding: 1px 5px;
    vertical-align: middle;
}

.badge.right {
    justify-content: right;
}

.btn {
    display: inline-block;
    height: 22px;
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 3px;
    background: #eed;
    color: #000;
    padding: 3px 6px;
    margin: 3px;
    font-weight: bold;
    vertical-align: middle;
    -webkit-appearance: none;
}

.btn:hover {
    text-decoration: underline;
}

.btn.active {
    background: #400;
    color: #fbb;
}

.btn.disabled {
    cursor: default;
    background: #666;
    color: #888;
}

.btn.light {
    background: #ffd;
    font-weight: normal;
}

.btn.red {
    background: #800;
    color: #fff;
}

.btn.grey {
    background: #888;
    color: #000;
}

.btn.symbol {
    font-size: 14px;
    padding: 0;
    aspect-ratio: 1;
    text-align: center;
}

.btn.symbol:hover {
    text-decoration: none;
    filter: brightness(0.9);
}

.btn.small, .badge .btn {
    font-size: 12px;
    height: 18px;
    padding: 1px 5px;
}

.btn.symbol.small, .badge .btn.symbol {
    padding: 0;
    line-height: 16px;
}

.badge .btn:last-child, .badge input:last-child {
    margin-right: -2px;
}

.badge .btn:first-child, .badge input:first-child {
    margin-left: -2px;
    margin-right: 3px;
}

.chevronright:after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-width: 2px 2px 0 0;
    border-style: solid;
    transform: rotate(45deg);
    margin: 0 -3px 0 7px;
    position: relative;
    top: -1px;
    left: -4px;
}

.chevronleft:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-width: 2px 2px 0 0;
    border-style: solid;
    transform: rotate(-135deg);
    margin: 0 7px 0 -3px;
    position: relative;
    top: -1px;
    right: -4px;
}

.chevronup:after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-width: 2px 2px 0 0;
    border-style: solid;
    transform: rotate(-45deg);
    margin: 0 -3px 0 7px;
    position: relative;
    top: -1px;
    left: -4px;
}

.chevrondown:after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-width: 2px 2px 0 0;
    border-style: solid;
    transform: rotate(135deg);
    margin: 0 -3px 0 7px;
    position: relative;
    top: -2px;
    left: -4px;
}

input:is([type="text"], [type="number"], [type*="date"]), textarea, select {
    height: 22px;
    border: 1px solid black;
    margin: 3px;
    padding: 3px 5px;
    border-radius: 3px;
    box-sizing: border-box;
    vertical-align: middle;
}

select {
    padding: 1px;
}

td input:is([type="text"], [type="number"], [type*="date"]), td textarea, td select {
    margin: 0;
}

td button, td .btn {
    margin: 0 3px;
}

.badge input:is([type="text"], [type="number"], [type*="date"]), .badge textarea, .badge select {
    height: 20px;
    margin: 0 3px;
}

.msgbox {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #888;
    background: #eee;
    color: #444;
    text-align: left;
    padding: 10px;
    margin: 10px 0;
}

.msgbox.yellow, .badge.yellow {
    border-color: #880;
    background: #ee8;
}

.msgbox.red, .badge.red {
    border-color: #800;
    background: #e88;
}

.msgbox.green, .badge.green {
    border-color: #080;
    background: #8e8;
}

.small {
    font-size: 10px;
}

.yellow {
    color: #440;
}

.red {
    color: #400;
}

.green {
    color: #040;
}

.tag {
    display: inline-block;
    border: 1px solid #ddd;
    background: #dda;
    border-radius: 3px;
    margin: 0 5px 0 0;
    padding: 1px 5px;
    text-align: right;
}

.card {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.card.green {
    background: #e8f5e9;
    border-color: #4caf50;
}

.card.yellow {
    background: #fff8e1;
    border-color: #ffc107;
}

.card.red {
    background: #ffebee;
    border-color: #f44336;
}

.card .card-header {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.card .card-body {
}

.card img {
    max-width: 100%;
    border-radius: 3px;
}

.form-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 5px 10px;
    align-items: center;
}

.form-grid label {
    text-align: right;
    font-size: 11px;
}

.form-grid input[type="text"], .form-grid input[type="url"], .form-grid input[type="file"] {
    width: 100%;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.mt10 {
    margin-top: 10px;
}

.ml10 {
    margin-left: 10px;
}

.m3 {
    margin: 3px;
}

.ml3 {
    margin-left: 3px !important;
}

th {
    padding: 2px 5px;
    text-align: left;
    background: #dd8;
}

.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: 0.3s;
}

.modal-content {
    display: inline-block;
    background-color: #fff;
    box-shadow: 0 0 15px #000;
    margin: 3% auto;
    padding: 30px 0 0 0;
    position: relative;
    overflow: auto;
}

.modal-content .header {
    text-align: left;
    font-weight: bold;
    background-color: #eee;
    padding: 8px 35px 8px 10px;
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal.imagezoom img {
    display: none;
    max-height: 85vh;
    cursor: pointer;
}

.modal.imagezoom[style*='visibility: visible'] img {
    display: block !important;
}

.modal.imagezoom[style*='opacity: 0'] img {
    display: block !important;
}

.modal .close {
    position: absolute;
    height: 30px;
    width: 30px;
    top: 0;
    right: 0;
    transition: .3s;
    text-align: center;
    font-size: 28px;
    vertical-align: middle;
    display: table-cell;
    color: #aaa;
}

.modal .close:hover, .modal .close:focus {
    color: #000;
    cursor: pointer;
}

.floating-bar {
    position: fixed;
    bottom: 0;
    background: #f80;
    width: calc(100% - 205px);
    border-radius: 3px;
    padding: 3px;
    z-index: 100;
    box-shadow: 0 0 2px 1px black;
}

.reload-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 1px solid black;
    border-color: black transparent;
    border-radius: 50%;
    transform: rotate(45deg);
    position: relative;
    margin: 0 3px;
}

.reload-icon:before, .reload-icon:after {
    content: '';
    display: block;
    border-color: transparent transparent transparent black;
    border-style: solid;
    border-width: 3px 0 3px 3px;
    width: 0;
    height: 0;
    position: absolute;
}

.reload-icon:before {
    top: 3px;
    left: -2px;
    transform: rotate(-135deg);
}

.reload-icon:after {
    top: -1px;
    left: 7px;
    transform: rotate(45deg);
}
