﻿.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 200px;
}

.label {
    /*margin-right: .1rem;*/
    font-size: 1rem;
    font-weight: bold;
}

.separate {
    width: 0;
    height: 1rem;
    border: 1px solid #dee2e6;
}

ul.ui-autocomplete {
    z-index: 1100;
}

html {
    --theme-color: #3495eb;
    --font-size: .8rem;
    --theme-bg-color: #404040;
    --theme-bg-color-hover: #333333;
    --theme-contain-color: #f2f2f2;
    /*background-color: var(--theme-bg-color);*/
}

body {
    background-color: var(--theme-contain-color);
}

/*-------------------- Navbar --------------------*/
.theme-navbar {
    /*background-color: var(--theme-color) !important;*/
}

    .theme-navbar a {
        color: #808080;
        font-size: var(--font-size);
        text-decoration-line: none;
    }

    /*---------- Navbar Brand ----------*/
    /*.theme-navbar .navbar-brand {
        color: var(--theme-color);
        font-size: 1rem;
    }*/

    /*.theme-navbar a, .theme-navbar i, .theme-navbar span {
        color: var(--theme-color);
        font-size: 1rem;
    }

        .theme-navbar a:hover, .theme-navbar i:hover {
            color: var(--theme-color);
            border-color: var(--theme-color);
        }*/
    /*---------- Button ----------*/
    .theme-navbar button {
        color: #fff;
        border-color: var(--theme-color);
        background-color: var(--theme-color);
    }

        .theme-navbar button:hover {
            color: var(--theme-color);
            background-color: var(--theme-bg-color);
        }

/*----------------------------------------------*/
/*-------------------- Main --------------------*/
.theme-main {
    --font-size: .85rem;
}

    .theme-main input,
    .theme-main select,
    .theme-main i {
        font-size: var(--font-size);
        font-stretch: normal;
    }


    .theme-main .width-6 {
        max-width: 6rem;
        min-width: 6rem;
        width: 6rem;
    }

    .theme-main .width-8 {
        max-width: 8rem;
        min-width: 8rem;
        width: 8rem;
    }

    .theme-main .width-10 {
        max-width: 10rem;
        min-width: 10rem;
        width: 10rem;
    }

    .theme-main .width-12 {
        max-width: 12rem;
        min-width: 12rem;
        width: 12rem;
    }

    .theme-main .width-15 {
        max-width: 15rem;
        min-width: 15rem;
        width: 15rem;
    }

    .theme-main .width-20 {
        max-width: 20rem;
        min-width: 20rem;
        width: 20rem;
    }

    /*---------- Button ----------*/
    /*    .theme-main button.btn {
        font-size: var(--font-size);
        color: var(--theme-color);
        border-color: var(--theme-color);
    }

        .theme-main button.btn:hover {
            color: #fff;
            background-color: var(--theme-color);
        }*/

    /*--------------- OptionBar ---------------*/
    .theme-main .section {
        font-size: var(--font-size);
        color: var(--theme-color);
    }

        .theme-main .section > i {
        }

    .theme-main .filter > i {
        padding-top: .675rem !important;
        color: #fff;
        background-color: var(--theme-color) !important;
    }
    /*---------- Row ----------*/
    .theme-main .first-row {
        padding: .25rem 1rem;
    }

        .theme-main .first-row .form-group {
            margin-right: .5rem;
        }

    .theme-main .second-row {
        padding: 0 1rem;
    }
        /*----- Total -----*/
        .theme-main .second-row label {
            padding: .2rem 0;
            font-weight: bold;
        }

            .theme-main .second-row label span {
                padding: 0 .2rem;
            }

    .theme-main .third-row {
        padding: .25rem 1rem;
    }
    /*---------- Badge ----------*/
    .theme-main .badge-label {
        margin: auto;
        padding: .5rem !important;
        color: #fff;
        background-color: var(--theme-color) !important;
        font-size: .85rem;
        vertical-align: middle;
        text-align: center;
    }

    .theme-main .badge-filter {
        color: #fff;
        background-color: var(--theme-color) !important;
        vertical-align: middle;
        text-align: center;
    }

        .theme-main .badge-filter:hover {
            color: #fff;
            background-color: #f00 !important;
        }

        .theme-main .badge-filter span {
            color: #fff;
        }

    /*---------- Button ----------*/

    .theme-main a[name="search"],
    .theme-main button[name="search"],
    .theme-main a[name="export"],
    .theme-main button[name="export"],
    .theme-main a[name="update"],
    .theme-main button[name="update"],
    .theme-main a[name="add"],
    .theme-main button[name="add"] {
        color: var(--theme-color);
        border-color: var(--theme-color);
    }

        .theme-main a[name="search"]:hover,
        .theme-main button[name="search"]:hover,
        .theme-main a[name="export"]:hover,
        .theme-main button[name="export"]:hover,
        .theme-main a[name="update"]:hover,
        .theme-main button[name="update"]:hover,
        .theme-main a[name="add"]:hover,
        .theme-main button[name="add"]:hover {
            color: #fff;
            background-color: var(--theme-color);
        }

    .theme-main a[name="delete"],
    .theme-main button[name="delete"] {
        color: #f00;
        border: 1px solid #f00;
    }

        .theme-main a[name="delete"]:hover,
        .theme-main button[name="delete"]:hover {
            color: #fff;
            background-color: #f00;
        }

    .theme-main a[name="insert"],
    .theme-main button[name="insert"] {
        color: #3a3;
        border: 1px solid #3a3;
    }

        .theme-main a[name="insert"]:hover,
        .theme-main button[name="insert"]:hover {
            color: #fff;
            background-color: #3a3;
        }
    /*
    .theme-main a[name="button"] {
        color: var(--theme-color);
        border: 1px solid var(--theme-color);
    }

        .theme-main a[name="button"]:hover {
            color: #fff;
            background-color: var(--theme-color);
        }*/


    /*--------------- Pagination ---------------*/
    .theme-main a[name="prev"].page-link,
    .theme-main a[name="next"].page-link {
        color: var(--theme-color);
        border: 1px solid var(--theme-color);
    }

        .theme-main a[name="prev"].page-link:hover,
        .theme-main a[name="next"].page-link:hover {
            color: #fff;
            background-color: var(--theme-color);
        }

/*-----------------------------------------------*/
/*-------------------- Modal --------------------*/
/*480x800, 480x854, 540x960, 720x1280, 1080x1920*/
@media screen and (min-width: 320px) and (max-width: 480px) {
    .theme-modal .document {
        min-height: 10rem;
        height: 100%;
        width: 100%;
    }
}

/* 854 ~ 1280 */
@media only screen and (min-width: 481px) and (max-width: 1280px) {
    .theme-modal .document {
        min-height: 24rem;
        height: 100%;
        width: 100%;
    }
}


/* 1920px 至更大 */
@media only screen and (min-width: 1281px) {
    .theme-modal .document {
        min-height: 48rem;
        height: 100%;
        width: 100%;
    }
}

.theme-modal .modal-header {
    /*height:1rem;*/
    padding: 1rem;
    color: #fff;
    background-color: var(--theme-color);
}

.theme-modal .modal-title {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.theme-modal .modal-content {
    border: none;
}

.theme-modal label {
    margin-top: .25rem;
}

.theme-modal .form-control {
    font-size: var(--font-size);
}

.theme-modal .form-control-file {
    margin-top: .25rem;
}

.theme-modal .input-group {
    margin: 0;
    padding: 0;
}
    /*padding-top: .675rem !important;*/
    .theme-modal .input-group > .input-group-append > a {
        height: calc(1.5em + 0.75rem + 2px) !important;
        background-color: var(--theme-color) !important;
        color: #fff;
        font-size: var(--font-size);
        text-decoration: none;
    }

        .theme-modal .input-group > .input-group-append > a > i {
            /*padding-top: .675rem !important;*/
        }

/*.theme-modal .input-group.verify >input {
        border-color: #ccc;
        border-right-color: transparent !important;
    }*/
.theme-modal input.verify {
    padding-right: 2.025rem;
    /*border-right-color: transparent !important;*/
}

    .theme-modal input.verify.failed {
        border-color: #f00;
    }

    .theme-modal input.verify.checked {
        border-color: #0f0;
    }

.theme-modal a.verify {
    position: absolute;
    right: .675rem;
    padding-top: .675rem;
}

    .theme-modal a.verify.failed {
        display: block;
        color: #f00;
    }

    .theme-modal a.verify.checked {
        display: block;
        color: #0f0;
    }

    .theme-modal a.verify > .fa-times,
    .theme-modal a.verify > .fa-check {
        display: none;
    }

    .theme-modal a.verify.failed > .fa-times {
        display: block;
    }

    .theme-modal a.verify.checked > .fa-check {
        display: block;
    }
/*---------- Button ----------*/
.theme-modal .close {
    position: absolute;
    right: .975rem;
    margin: -1rem;
    padding: .975rem;
    line-height: 0;
    color: #eee;
    cursor: pointer;
    /*background-color: red;*/
}

    .theme-modal .close:hover {
        color: #f00;
        text-shadow: 0 1px 0 #c00;
    }

.theme-modal a[name="modal-save"] {
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
}

    .theme-modal a[name="modal-save"]:hover {
        color: #fff;
        background-color: var(--theme-color);
    }


.theme-modal a[name="modal-close"] {
    color: #999;
    border: 1px solid #999;
}

    .theme-modal a[name="modal-close"]:hover {
        color: #fff;
        background-color: #999;
    }


.theme-modal a[name="modal-new"] {
    margin: 0 .25rem;
    color: #06f;
    border: 1px solid #06f;
}

    .theme-modal a[name="modal-new"]:hover {
        color: #fff;
        background-color: #06f;
    }


.theme-modal a[name="modal-bind"],
.theme-modal a[name="modal-next"] {
    margin: 0 .25rem;
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
}

    .theme-modal a[name="modal-bind"]:hover,
    .theme-modal a[name="modal-next"]:hover {
        color: #fff;
        background-color: var(--theme-color);
    }


.theme-modal a[name="modal-return"] {
    margin: 0 .25rem;
    color: #999;
    border: 1px solid #999;
}

    .theme-modal a[name="modal-return"]:hover {
        color: #fff;
        background-color: #999;
    }


.theme-modal a[name="modal-remove"],
.theme-modal a[name="modal-delete"] {
    margin: 0 .25rem;
    color: #f00;
    border: 1px solid #f00;
}

    .theme-modal a[name="modal-remove"]:hover,
    .theme-modal a[name="modal-delete"]:hover {
        color: #fff;
        background-color: #f00;
    }
