﻿/* 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-icon > i {
    width: 1rem;
    font-size: 1rem;
}
.btn.btn-sm.btn-icon > i {
    width: .9rem;
    font-size: .9rem;
}

/* 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);
}

.ss-fixed-table-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    width: auto;
}

.ss-fixed-table-header-wrapper.visible {
    opacity: 1;
}

.ss-fixed-table-header-wrapper table {
    margin-bottom: 0 !important;
    background-color: white;
}

.ss-fixed-table-header-wrapper table th {
    padding: .3rem !important;
    vertical-align: bottom !important;
    border-bottom: 2px solid #dee2e6 !important;
    border-top: none !important;
    border-left: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
    background-color: inherit !important;
}

/* 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;*/
/*}*/

.card-deck {
    display: grid;
    grid-column-gap: 14px;
    grid-row-gap: 14px;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

.card-deck.fill-grid {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
}

.card-deck .card {
    margin: 0;
}

@media screen and (max-width:  960px) {
    .card-deck {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }
    .card-deck .card {
        margin-bottom: 14px;
    }
}

/* 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;
}

.sticky-bottom {
    position: sticky;
    z-index: 1019;
    bottom: 0;
}

/*order*/
@media screen and (min-width: 768px) {
    .order-md-inherit {
        order: inherit;
    }   
}


/* 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;
    }
}

.custom-file-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*canvas*/
.ss-canvas-backdrop {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC);
}