/*
Darko Bunic
http://www.redips.net/
Jun, 2011.
*/

:root {
    color-scheme: light dark;
}

html {
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

body {
    padding-top: 4.5rem;
}

a {
    text-decoration: none;
}

.bg-form {
    background-color: #fff;
}

.navbar-dark .navbar-toggler {
    color: unset;
    border: 0;
}

h3, .h3 {
    font-size: 22px;
    letter-spacing: .4px;
    color: white;
    margin-bottom: 0;
}

.small, small {
    font-size: 13px;
}

table {
    width: 100%;
    margin: auto;
}

#table1 {
    margin-bottom: 20px;
}

table tbody tr {
    border: 0;
}

table tbody tr:hover {
    text-shadow: none;
    background-color: unset;
}

table tbody tr:nth-child(2n+1):hover {
    background-color: rgba(160, 160, 160, 0.03);
}

table tbody td {
    border: 1px solid rgba(160, 160, 160, 0.25);
    padding: 8px 12px;
}

table tbody td:hover {
    background-color: #ddd;
}

th.redips-mark {
    text-align: center;
    border: 1px solid white;
    padding: 12px;
}

/* drag container */
#redips-drag {
    margin: 0;
}

/* drag objects (DIV inside table cells) */
.redips-drag {
    margin: auto;
    margin-bottom: 1px;
    margin-top: 1px;
    z-index: 10;
    text-align: center;
    font-size: 14px;
}

/* drag objects border for the first table */
.t1 {
    color: #3b3b3b;
    font-weight: bold;
    border: 0;
}

/* drag object border for the second table */
.t2 {
    color: #7a7a7a;
    font-weight: bold;
    border: 0;
}

/* cloned objects - third table */
.t3 {
    color: #ff5050;
    font-weight: bold;
    border: 0;
}

/* allow / deny access to cells marked with 'mark' class name */
.redips-mark {
    color: white;
    font-size: 18px !important;
    background-color: #b5b5b5;
}

/* trash cell */
.redips-trash {
    color: white;
    background-color: SteelBlue;
    text-align: center;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.col-form-label, .form-label {
    font-family: -apple-system, BlinkMacSystemFont, "Cairo", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.form-control, .form-select {
    color: darkblue;
}

.form-check-input:checked {
    background-color: darkblue;
    border-color: darkblue;
}

.form-check-input:focus {
    border-color: rgba(0, 0, 0, .25);
    outline: 0;
    box-shadow: unset;
}

footer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 60px;
    width: 100%;
}

@media (max-width: 767px) {
    .wrapper {
        padding-top: 0px;
    }

    .card-body {
        padding: 1rem 0.5rem;
    }

    .rounds {
        display: block;
        padding: 5px 0 !important;
    }

    table td {
        display: block;
    }

    table td:empty {
        padding: 16px 0px;
    }

    table tbody td:last-child {
        border-bottom: 1px solid rgba(160, 160, 160, 0.25);
    }

    table tbody th:last-child {
        border-right: 1px solid rgba(160, 160, 160, 0.25);
    }
}

@media (max-width: 991px) {
    .wrapper .main-style .content-sidebar h2 {
        font-size: 24px;
        line-height: 28px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1399px) {
    .wrapper .main-style .content-sidebar h2 {
        font-size: 32px;
        line-height: 36px;
    }
}

@media (prefers-color-scheme: dark) {
    .bg-form {
        background-color: #212529;
    }

    .border {
        border: 1px solid #757575 !important;
    }

    .t1 {
        color: #bfb9ad;
    }

    table tr:nth-last-child(1) {
        border-bottom: 1px solid rgba(160, 160, 160, 0.35);
    }

    table thead tr:hover {
        text-shadow: none;
        color: inherit;
        background-color: initial;
    }

    table tr:hover {
        text-shadow: 0 0 0px #a9a9a9;
        background-color: #5c5c5c;
        color: #e66f00;
    }

    table tbody td:hover {
        background-color: #454545;
    }

    .redips-mark {
        color: #999;
        background-color: unset;
    }

    th.redips-mark {
        border: 1px solid rgba(160, 160, 160, 0.25);
    }

    .form-check-input:checked {
        background-color: #bfb9ad;
        border-color: #bfb9ad;
    }
    @media only screen and (max-width: 767px) {
        table tr:nth-last-child(1) {
            border-bottom: none;
        }
    }
}