﻿/* global 
   --------------------------------------------------------------------- */
html {
    font-size: 14px;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
    padding: 10px 0;
}

a, a:focus {
    color: #4d5780;
    /*text-decoration: underline;*/
}

a:hover {
    color: #d93a3a;
}

pre {
    color: inherit;
}

pre.no-background {
    background: none;
    border: none;
}

.form-control::-webkit-input-placeholder {
    opacity: 0.7 !important;
    -webkit-transition: opacity .5s; transition: opacity .5s;
}
.form-control:-moz-placeholder {
    opacity: 0.7 !important;
    -moz-transition: opacity .5s; transition: opacity .5s;
}
.form-control::-moz-placeholder {
    opacity: 0.7 !important;
    -moz-transition: opacity .5s; transition: opacity .5s;
}
.form-control:-ms-input-placeholder {
    opacity: 0.7 !important;
    -ms-transition: opacity .5s; transition: opacity .5s;
}
.form-control::placeholder {
    opacity: 0.7 !important;
    transition: opacity .5s;
}

.form-control:focus::-webkit-input-placeholder {
    opacity: 0 !important;
}
.form-control:focus:-moz-placeholder {
    opacity: 0 !important;
}
.form-control:focus::-moz-placeholder {
    opacity: 0 !important;
}
.form-control:focus:-ms-input-placeholder {
    opacity: 0 !important;
}
.form-control:focus::placeholder {
    opacity: 0 !important;
}

/*label {*/
/*    margin-bottom: .2rem;*/
/*}*/

/* carousel 
   --------------------------------------------------------------------- */

.carousel-inner > .item > img {
    margin: 0 auto;
}

.carousel-control.right, .carousel-control.left {
    background-image: none;
}

/* thumbnails 
   --------------------------------------------------------------------- */

a.thumbnail,
a.thumbnail:focus {
    border: none;
    border-bottom: 2px solid #fff;
}

a.thumbnail:hover {
    border-bottom: 2px solid #d93a3a;
}

a.thumbnail.with-bg {
    background-color: #f6f6f6;
}

a.thumbnail.with-bg:hover {
    background-color: #eee;
}

/* form controls
   --------------------------------------------------------------------- */

.form-control {
    color: #444;
    /*height: calc(1.5em + .5rem + 2px);*/
    /*padding: .375rem .5rem;*/
}

select.form-control {
    border-radius: 0;
    -webkit-border-radius: 0;
    border: 0;
    outline: 1px solid #ced4da;
    outline-offset: -1px;
}

.form-control:focus {
    border-color: #ccc;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(196, 196, 196, .6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(196, 196, 196, .6);
}

select.form-control:focus {
    -webkit-border-radius: 0;
    outline: 1px solid #ced4da;
    outline-offset: -1px;
}

/*.form-group {*/
/*    margin-bottom: .5rem;*/
/*}*/

.form-group-sm {
    margin-bottom: 0;
}

.col-form-label {
    padding-top: calc(.2rem + 1px);
    padding-bottom: calc(.2rem + 1px);
}

/*.input-group-text {*/
/*    height: calc(1.5em + .5rem + 2px);*/
/*    padding: .375rem .5rem;*/
/*}*/

/*.form-check {*/
/*    padding-left: 1.4rem;*/
/*}*/

/*.form-check-input {*/
/*    margin-top: .35rem;*/
/*    margin-left: -1.4rem;*/
/*}*/

.btn-light {
    border-color: #ccc;
}

.btn-light:disabled {
    border-color: #ddd;
}

.btn.btn-sm.btn-icon > i {
    width: .9rem;
    
    font-size: .9rem;
    font-weight: 900;
}

/* tables
   --------------------------------------------------------------------- */

table.table {
    color: #444;
    /* fix for Microsoft EDGE (old) */
    margin-bottom: 2px;
}

.table:not(.table-bordered) > thead > tr > th {
    border-top: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-hover > tbody > tr:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, 0.08);
}

.table-smaller {
    font-size: smaller;
}

/* modal dialogs
   --------------------------------------------------------------------- */

/*.modal-content {*/
/*    !*border-radius: 0;*!*/
/*}*/

/*.modal-header {*/
/*    padding: 10px 15px;*/
/*}*/

.modal-footer {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.modal-body > .card.ss-grid-editor-content {
    border: 0;
}

@media screen and (min-width: 576px) and (max-width: 992px) {
    .modal-dialog:not(.modal-sm) {
        max-width: 90%;
    }
}

/* alerts
   --------------------------------------------------------------------- */

/*.alert {*/
/*    !*border-radius: 0;*!*/
/*}*/

.alert-sm {
    padding: 5px 10px;
    font-size: .86rem;
}

/* dropdowns
   --------------------------------------------------------------------- */

/*.dropdown-menu {*/
/*    !*border-radius: 0;*!*/
/*    font-size: 14px;*/
/*}*/

/*.dropdown-menu > a {*/
/*    text-decoration: none;*/
/*}*/

.dropdown-menu:not(.note-dropdown-menu) {
    max-height: 300px;
    overflow-y: auto;
}

/* cards
   --------------------------------------------------------------------- */

/*.card-body {*/
/*    padding: .75rem 1rem;*/
/*}*/

.card-header {
    padding: .5rem 1rem;
    font-size: 1.2rem;
}

/*.card-footer {*/
/*    padding: .75rem 1rem;*/
/*}*/

/*.card,*/
/*.card-header,*/
/*.card-footer {*/
/*    !*border-radius: 0 !important;*!*/
/*}*/

/*.panel-group .panel {*/
/*    border-radius: 0;*/
/*}*/

/*.card-body {*/
/*    padding: 10px 15px;*/
/*}*/

/*.card-title {*/
/*    font-size: 14px;*/
/*}*/

/*.card-header {*/
/*    padding: 6px;*/
/*}*/

/* pagination
   --------------------------------------------------------------------- */

.pagination {
    margin: 0;
}

/*.pagination .page-item:first-child .page-link,*/
/*.pagination-sm .page-item:first-child .page-link,*/
/*.pagination .page-item:last-child .page-link,*/
/*.pagination-sm .page-item:last-child .page-link {*/
/*    !*border-radius: 0;*!*/
/*}*/

/*.pagination a.page-link {*/
/*    text-decoration: none;*/
/*}*/

.pagination a.page-link {
    color: #444; /* #4b5063; */
}

.pagination a.page-link:hover {
    color: #d93a3a;
}

.pagination .page-item.active a.page-link, .pagination .page-item.active a.page-link {
    background-color: #f6f6f6;
    color: #444; /* #4b5063; */
    font-weight: bold;
    border-color: #ddd;
    border-bottom: 1px solid #d93a3a;
}

.pagination .page-item.active a.page-link:hover, .pagination .page-item.active a.page-link:hover {
    background-color: #eee;
    color: #444; /* #4b5063; */
    font-weight: bold;
    border-color: #ddd;
    border-bottom-color: red;
}

/* collapse
   --------------------------------------------------------------------- */

.collapsing {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

/* images
   --------------------------------------------------------------------- */

/*.img-thumbnail {*/
/*    !*border-radius: 0;*!*/
/*}*/

/* summer-note editor
   --------------------------------------------------------------------- */

/*.note-editor.card {*/
/*    margin-bottom: 0;*/
/*}*/

.note-editor .note-editable * {
    font-size: inherit;
}

/* lists
   --------------------------------------------------------------------- */

.list-contents {
    list-style: none;
    border-left: 2px solid #d93a3a;
    margin-left: 0;
    padding-left: 1em;
}

.list-contents > li > a {
    text-decoration: none;
}

/* summernote and so on
   --------------------------------------------------------------------- */
.note-editable p {
    margin: 0;
}
.summernote-html p {
    margin: 0;
}

/* bootstrap affix classes
   --------------------------------------------------------------------- */

.affix {
    position: fixed;
    top: 0;
}

.affix-bottom {
    position: absolute;
}

/* badges
   --------------------------------------------------------------------- */

.badge {
    border-radius: .25rem;
}

/* datetime pickers */
.bootstrap-datetimepicker-widget.dropdown-menu {
    width: fit-content !important;
}

.bootstrap-datetimepicker-widget.dropdown-menu.usetwentyfour.bottom.pull-right {
    width: fit-content !important;
}

.ss-datetime-container {
    display: flex;
}

.ss-datetime-container .ss-datepicker {
    width: 9rem;
}

.ss-datetime-container .ss-timepicker {
    width: 6.5rem;
}

.flatpickr-calendar.hasTime.noCalendar.open {
    max-width: 150px !important;
}

.ss-timepicker.without-icon  input {
    width: 4rem;
}

@media screen and (max-width: 576px) {
    .ss-datetime-container {
        width: 100%;
        margin-right: 0 !important;
    }
    .ss-datetime-container .ss-datepicker {
        width: 11rem;
    }
}

@media screen and (max-width: 768px) {
    .ss-datetime-container .ss-timepicker {
        width: 8rem;
    }
    .ss-timepicker.without-icon  input {
        width: 8rem;
    }
}

.table-hscrollable {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    margin-bottom: 20px;
}