body {
    font-family: "Open Sans", "Tahoma", "Verdana", "Arial", "sans-serif";
    min-height: 100vh;
}

#top {
    background: #000;
    color: #fff;
    padding: 6px;
}

#logo {
    display: block;
    float: left;
}

#test-info {
    font-size: 28px;
    margin-left: 9px;
}

i {
    margin-right: 6px;
}

#user-info {
    float: left;
    margin-right: 9px;
    padding: 6px;
}

#main-menu {
    list-style: none;
}

#main-menu li {

}

.navbar-nav li:hover > ul.dropdown-menu {
    display: block;
}

.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: var(--bs-dropdown-link-active-bg);
}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
    text-decoration: underline;
    transform: rotate(-90deg);
}


footer {
    background: #000;
    color: #fff;
    padding: 15px;
    margin-top: 36px;
}

a,
a:hover {
    color: #000;
}

footer a,
footer a:hover {
    color: #fff;
}

#table a {
    text-decoration: none;
}

#listing-filter td {
    padding: 3px;
}

.sort-arrow {
    margin-left: 3px;
}

.table > tbody > tr > td.with-row-menu {
    position: relative;
    padding-bottom: 40px;
}

.row-menu, .right-row-buttons {
    font-size: 14px;
    font-weight: 600;
    height: 21px;
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 0.5rem;
}

.row-menu {
    padding: 0 1rem;
    z-index: 4;
}

.right-row-buttons {
    text-align: right;
    right: 18px;
    z-index: 5;
}

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

.row-menu li {
    margin-right: 15px;
    cursor: pointer;
    float: left;
}

.total {
    font-size: 14px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 18px;
}

.columns-settings,
.sub-columns-settings {
    min-height: 54px;
    border: 1px solid #ccc;
    margin-bottom: 24px;
}

.columns-settings li,
.sub-columns-settings li {
    cursor: grab;
}

.paging input {
    display: inline-block;
    width: 48px;
}

#frm-detailForm input {
    width: initial;
}

.input-with-info-text input {
    float: left;
}

.input-info-text {
    position: relative;
    top: 7px;
    left: 7px;
}

#bottom-buttons {
    clear: both;
    margin-top: 24px;
}

td.number {
    white-space: nowrap;
}

.col-title {
    font-size: 14px;
}

.select2-selection__rendered {
    line-height: 34px !important;
}
.select2-container .select2-selection--single {
    height: 38px !important;
}
.select2-selection__arrow {
    height: 37px !important;
}

.select2-container--default .select2-selection--single {
    border-color: #ced4da;
    border-radius: .375rem;
}

.select2-results__option {
    min-height: 36px;
}

.base-table th {
    padding-right: 9px;
}

.checkbox {
    padding: 7px 0;
}

.checkbox input {
    margin-right: 6px;
}

.texts th {
    text-align: center;
}

.texts table {
    width: 100%;
}

.texts th:first-child {
    width: 12%;
}

.texts tr th,
.texts tr td {
    padding-top: 12px;
}

.texts tr:not(:last-child) th,
.texts tr:not(:last-child) td {
    padding-bottom: 12px;
    border-bottom: 1px solid #ccc;
}

.texts td {
    padding-left: 9px;
    padding-right: 9px;
}

#frm-detailForm .texts input {
    width: 100%;
}

.login {
    background: #eee;
    display: flex;
    align-items: center;
}

.login main {
    margin: auto !important;
}

.sign-window {
    background: #fff;
    width: 100% !important;
    max-width: 330px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 15px;
}

.sign-window h2 {
    text-align: center;
}

#frm-signInForm input[name='username'],
#frm-newPasswordForm input[name='password'] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: -1px;
}

#frm-signInForm input[name='password'],
#frm-newPasswordForm input[name='password_verify'] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-bottom: 10px;
}

.login-bottom-buttons {
    text-align: center;
    margin-top: 10px;
}

.login-bottom-buttons input {
    margin-bottom: 6px;
}

.login-bottom-buttons a {
    display: block;
}

#password-requirements {
    font-size: 14px;
}

.sign-window #password-requirements {
    margin: 12px 0;
}

td.photo img {
    max-width: 300px;
}

#table td.image img {
    height: 48px;
}

.sortable .image {
    background: #fff;
    text-align: center;
    position: relative;
    float: left;
    padding: 8px;
    border: 1px solid #eee;
    margin: 12px 12px 12px 0;
}

.sortable:not(.with-handle) .image,
.sortable .handle {
    cursor: move;
}

.image .delete-image {
    background: red;
    color: white;
    font-size: 14pt;
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px;
    cursor: pointer;
}

.image img {
    height: 180px;
}

#gallery-main img {
    position: relative;
    max-height: 600px;
    max-width: 800px;
}

#close-gallery {
    color: #000;
    font-size: 24pt;
    position: absolute;
    top: -15px;
    right: -22px;
    cursor: pointer;
    z-index: 3;
}

#close-gallery-background {
    background: #fff;
    width: 24px;
    height: 24px;
    position: absolute;
    top: -11px;
    right: -12px;
    border-radius: 12px;
}

#gallery-thumbnails {
    margin-top: 5px;
}

#gallery-thumbnails img {
    height: 70px;
    border: 1px solid #ccc;
}

#gallery-thumbnails img:not(#actual-image) {
    cursor: pointer;
}

#gallery-thumbnails img:not(:last-child) {
    margin-right: 2px;
}

#gallery-thumbnails img#actual-image {
    border-color: black;
}

#ajax-modal {
    position: fixed;
    top: 25%;
    left: 25%;
    z-index: 1051;
}

#ajax-modal-absolute {
    position: absolute;
    left: 25%;
    z-index: 1051;
}

#ajax-modal .modal-body {
    max-height: 500px;
    overflow-y: auto;
}

.text-with-icon {
    position: relative;
    top: -5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 9px;
}

.custom-order {
    text-align: center;
    vertical-align: middle;
    width: 30px;
}

.tab-content {
    margin-top: 24px;
}

.collapse-button {
    width: 30px;
    cursor: pointer;
}

.sub-rows table {
    margin-left: 60px;
}

[id^="image-section"] tr:not(:last-child) th,
[id^="image-section"] tr:not(:last-child) td {
    padding-bottom: 12px;
}

.detail fieldset:not(:first-child) {
    margin-top: 36px;
}

.select-all {
    position: relative;
    left: 5px;
    cursor: pointer;
}

.file {
    margin-top: 6px;
}

.file a {
    text-decoration: none;
}

.file a:hover {
    text-decoration: underline;
}

.detail img,
.slider img {
    cursor: pointer;
}

.slider td {
    vertical-align: middle;
}

.slider > tbody > tr > td:first-child {
    width: 32px;
}

.slider > tbody > tr > td:nth-child(2),
.files > tbody > tr > td:nth-child(2) {
    width: 367px;
}

.slider img {
    width: auto;
    height: 180px;
}

.slider [name$='[file]'] {
    margin-top: 12px;
}

.slide-inputs {
    width: 100%;
}

.slide-inputs th {
    width: 120px;
}

.slider > tbody > tr > td:nth-child(4) {
    width: 43px;
}

.slider .delete-slide {
    font-size: 21px;
    cursor: pointer;
}

#add-slide {
    width: 100%;
}