/* Site.css — Bootstrap 3 compatible, cleaned and isolated */

html {
    min-height: 100%;
}

body.app-body,
body {
    padding-top: 62px;
    padding-bottom: 20px;
    background: #f5f6f8;
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
}

.body-content {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
}

/* Do not globally restrict every input. Forms control width locally. */
.body-content input.form-control,
.body-content select.form-control,
.body-content textarea.form-control {
    max-width: 100%;
}

.dl-horizontal dt {
    white-space: normal;
}

/* Main application navbar */
.app-navbar.navbar {
    min-height: 52px;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: #7f1118;
    background-image: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.app-navbar .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

.app-navbar .navbar-header {
    min-height: 52px;
}

.app-navbar .navbar-brand {
    height: 52px;
    padding: 11px 12px;
    color: #f4e9ea;
    font-size: 16px;
    line-height: 30px;
    text-shadow: none;
}

.app-navbar .navbar-brand img {
    display: block;
    max-height: 30px;
    width: auto;
}

.app-navbar .navbar-brand:hover,
.app-navbar .navbar-brand:focus {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.app-navbar .navbar-nav > li > a {
    min-height: 52px;
    padding: 16px 12px;
    color: #f2e4e5;
    font-size: 14px;
    line-height: 20px;
    text-shadow: none;
    text-decoration: none;
    white-space: nowrap;
}

.app-navbar .navbar-nav > li > a:hover,
.app-navbar .navbar-nav > li > a:focus,
.app-navbar .navbar-nav > .open > a,
.app-navbar .navbar-nav > .open > a:hover,
.app-navbar .navbar-nav > .open > a:focus {
    color: #fff;
    background: #651017;
}

.app-navbar .caret {
    margin-left: 5px;
    border-top-color: #f2e4e5;
    border-bottom-color: #f2e4e5;
}

.app-navbar .dropdown-menu {
    min-width: 220px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 6px 0;
    border: 1px solid #d9dde3;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.app-navbar .dropdown-menu > li > a {
    padding: 8px 16px;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    white-space: normal;
}

.app-navbar .dropdown-menu > li > a:hover,
.app-navbar .dropdown-menu > li > a:focus {
    color: #fff;
    background: #7f1118;
    background-image: none;
}

.app-navbar .navbar-toggle {
    margin-top: 9px;
    margin-bottom: 9px;
    border-color: rgba(255, 255, 255, .45);
}

.app-navbar .navbar-toggle:hover,
.app-navbar .navbar-toggle:focus {
    background: rgba(255, 255, 255, .12);
}

.app-navbar .navbar-toggle .icon-bar {
    background: #fff;
}

/* Legacy fly-out menu: isolated so it cannot affect Bootstrap navbar */
.legacy-menu {
    position: relative;
    z-index: 100;
    width: 100%;
    font-family: Arial, sans-serif;
}

.legacy-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legacy-menu > ul > li {
    position: relative;
    float: left;
}

.legacy-menu a {
    display: block;
    min-width: 110px;
    padding: 6px 10px;
    color: #65310f;
    background: #ddd;
    border: 1px solid #fff;
    text-align: center;
    text-decoration: none;
}

.legacy-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
}

.legacy-menu li:hover > ul {
    display: block;
}

/* Generic Bootstrap 3 table improvements */
.body-content .table-responsive {
    width: 100%;
    margin-bottom: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.body-content .table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    background: #fff;
}

.body-content .table > thead > tr > th {
    padding: 9px 8px;
    color: #2f3b4a;
    background: #eef2f6;
    border-bottom: 2px solid #ccd5df;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.body-content .table > tbody > tr > td {
    padding: 8px;
    border-top: 1px solid #e5e9ed;
    vertical-align: middle;
    font-size: 13px;
}

.body-content .table-striped > tbody > tr:nth-of-type(odd) {
    background: #fafbfc;
}

.body-content .table-hover > tbody > tr:hover {
    background: #f0f5fb;
}

.body-content .table a {
    font-size: inherit;
}

/* Legacy status helpers */
#OrderList p.overDate { color: #c9302c; font-style: italic; }
#OrderList p.normDate { color: #3c763d; }
#ComplaintList p.overDate { color: #fff; background: #e95420; font-style: italic; }
#ComplaintList p.normDate { color: #3c763d; }

.open_complaint { color: #c9302c; }
.return_complaint { color: #8a4b08; font-weight: 700; background: #d9edf7; }
.norm_complaint { color: #fff; background: #6b8e23; }

.open_permint { font-weight: 700; color: #111; }
.send_permint { font-weight: 700; color: #c9302c; background: #d9edf7; }
.protocol_permint { color: #c9302c; background: #fff3a0; }
.return_permint { font-weight: 700; color: #fff59d; background: #c9302c; }
.close_permint { font-weight: 700; color: #8b0000; background: #b7ed85; }
.checkCurator_permint { font-weight: 700; color: #111; background: #b7ed85; }

.btn1 {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    line-height: 1.42857143;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer;
}

.btn-notice1,
.btn-create-notice {
    display: inline-block;
    width: auto;
    min-width: 180px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.btn-notice1 {
    color: #fff;
    background: #5cb85c;
    border-color: #4cae4c;
}

.btn-create-notice {
    color: #333;
    background: #e6e6e6;
    border-color: #adadad;
    font-weight: 700;
}

.resolution,
.protocol2 {
    width: 100%;
    max-width: 850px;
    padding-left: 10px;
    font-family: "Times New Roman", serif;
    font-size: 16px;
    text-align: justify;
}

.protocol {
    padding: 0 2px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-align: justify;
}

.protocol3 {
    padding: 0 1px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: justify;
}

.label-res,
.label-res2 {
    padding-left: 5px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-align: justify;
}

.label-res { color: #00008b; }
.label-res2 { color: #800000; }

.p1 { text-align: center; font-size: 22px; }
.brown { color: #800000; }

/* Bootstrap 3 card substitute; no Bootstrap 5 CSS variables */
.card {
    position: relative;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.card-header,
.card-footer {
    padding: 10px 15px;
    background: #f5f5f5;
}

.card-header {
    border-bottom: 1px solid #ddd;
    border-radius: 6px 6px 0 0;
}

.card-footer {
    border-top: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
}

.card-body {
    padding: 15px;
}

@media (max-width: 991px) {
    body.app-body,
    body {
        padding-top: 60px;
    }

    .app-navbar .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .app-navbar .navbar-nav > li > a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    body.app-body,
    body {
        padding-top: 52px;
    }

    .body-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .app-navbar .navbar-collapse {
        max-height: calc(100vh - 52px);
        overflow-y: auto;
        background: #7f1118;
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .app-navbar .navbar-nav {
        margin-top: 0;
        margin-bottom: 0;
    }

    .app-navbar .navbar-nav > li > a {
        min-height: 0;
        padding: 11px 15px;
        font-size: 14px;
    }

    .app-navbar .navbar-nav .open .dropdown-menu > li > a {
        padding: 9px 30px;
        color: #f4e9ea;
    }

    .app-navbar .navbar-nav .open .dropdown-menu > li > a:hover,
    .app-navbar .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #fff;
        background: #651017;
    }

    .body-content .table-responsive {
        border-radius: 4px;
    }
}
