label {
    margin-bottom: 0.1rem;
}

.margbot-5 {
    margin-bottom: 5px;
}

/* form-control */
.form-control:focus {
    border-color: #17a2b8;
}

.form-control-ro {
    background-color: #e9ecef !important;
}

/* select2 */
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-color: #17a2b8;
}

.select2-selection__choice {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
    background-color: #17a2b8 !important;
}

select.form-control-sm~.select2-container--default {
    font-size: 100%;
}

.select2 .select2-container .select2-container--default {
    width: auto;
}

select[readonly].select2-hidden-accessible+.select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible+.select2-container .select2-selection {
    background: #eee;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible+.select2-container .select2-selection__arrow,
select[readonly].select2-hidden-accessible+.select2-container .select2-selection__clear {
    display: none;
}

option:hover {
    background-color: #17a2b8;
}

textarea.r1 {
    height: calc(1.8125rem + 2px) !important;
}


/* end select2 */

/* input type date */
/* input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #17a2b8;
} */

/* end input type date */
/* input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control::selection {
    background: #17a2b8;
} */
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field::selection {
    background-color: #17a2b8;
}

.form-check-input {
    accent-color: #17a2b8;
    margin-top: 0.15rem;
}

/* 
input[type="date"]:focus:not([readonly]),
input[type="datetime-local"]:focus:not([readonly]),
input[type="email"]:focus:not([readonly]),
input[type="number"]:focus:not([readonly]),
input[type="password"]:focus:not([readonly]),
input[type="search-md"]:focus:not([readonly]),
input[type="search"]:focus:not([readonly]),
input[type="tel"]:focus:not([readonly]),
input[type="text"]:focus:not([readonly]),
input[type="time"]:focus:not([readonly]),
input[type="url"]:focus:not([readonly]),
textarea.md-textarea:focus:not([readonly]) {
    border-bottom: 1px solid #4285f4;
    box-shadow: 0 1px 0 0 #17a2b8;
} */
/* end form-control */

/* datatables */
div.dt-buttons {
    margin-bottom: 1em;
}

a.dt-button.dropdown-item.buttons-columnVisibility.active {
    background: #17a2b8;
}

a.dt-button.dropdown-item.buttons-columnVisibility:focus {
    background: #17a2b8;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    background: #17a2b8;
}

.page-item.active .page-link {
    background: #17a2b8;
    border-color: #17a2b8;
}

.page-link {
    color: #17a2b8;
}

.page-link:hover {
    color: #17a2b8;
}


.minpadding tbody tr td {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}


.tbl-sm thead th {
    padding: 0.15rem;
}

.tbl-sm tbody td {
    padding: 0;
}

.tbl-sm tfoot td {
    padding: 0;
}

.tbl-sm03 thead th {
    padding: 0.15rem;
}

.tbl-sm03 tbody td {
    padding: 0.3rem;
}

.tbl-sm03 tfoot td {
    padding: 0;
}

.dt-com-sm {
    padding: 0.15rem;
}

.fc-wrap {
    word-break: break-all;
}

table.dataTable td.dt-control:before {
    background-color: #17a2b8 !important;
    font-weight: bold;
    padding: 1px;
}

table.dataTable tr.dt-hasChild td.dt-control:before {
    background-color: #ffc107 !important;
}

/* end datatables */

/* circle button */
.btn-circle-xs {
    height: 1em;
    width: 1em;
    display: inline-block;
    border: 0.15em solid white;
    border-radius: 1em;
    box-shadow: 0 0 0.2em #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    font-size: 0.65rem !important;
    vertical-align: bottom !important;
}

.btn-xxs {
    padding-bottom: 0px;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 5px;
    font-size: 0.7rem;
    line-height: 1em;
    border-radius: 0.15rem;
}

.fa-xxs {
    font-size: .55em;
    vertical-align: bottom !important;
    padding-bottom: 7px;
}

/* end circle button */

/* tabel */
.table-modal th,
.table-modal td {
    padding: 0.1rem;
}

.scroly {
    overflow-y: scroll;
    display: block;
    max-height: 25rem;
    -webkit-overflow-scrolling: touch;
}

.scroly-vh {
    overflow-y: scroll;
    display: block;
    max-height: calc(100vh - 350px);
    -webkit-overflow-scrolling: touch;
}

.scroly-vh-nobutton {
    overflow-y: scroll;
    display: block;
    max-height: calc(100vh - 310px);
    -webkit-overflow-scrolling: touch;
}

.scroly-autox {
    overflow-y: scroll;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.scroly-modal {
    overflow-y: scroll;
    display: block;
    max-height: calc(100vh - 120px);
    -webkit-overflow-scrolling: touch;
}

.scroly-chat {
    overflow-y: scroll;
    display: block;
    max-height: 30vh;
    -webkit-overflow-scrolling: touch;
}

.scrolx {
    overflow-x: auto;
    display: block;
    /* max-height: 25rem; */
    -webkit-overflow-scrolling: touch;
}


.center {
    margin: auto;
    width: 25%;
    border: 3px solid green;
    /* padding: 10px; */
}

/* SPINNER */
#overlay {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
    /* background: rgba(0, 0, 0, 0.6); */
}

.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #17a28b solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}

.is-hide {
    display: none;
}

.half-break {
    height: 0.5rem;
    visibility: hidden;
    padding: 0;
    margin: 0;
}

.half-break-line {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.content-header {
    padding: 0.5rem;
}

.card-title {
    font-size: 1rem;
}

.card-header {
    padding: 0.5rem;
}

.card-body {
    padding: 1rem;
}

.text-xs {
    font-size: 11px !important;
}

.form-control-sm {
    font-size: 11px !important;
}

/* .form-control-sm {
    height: calc(1.5rem + 2px) !important;
}

select.form-control-sm {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
} */

textarea.form-control {
    min-height: calc(1.8125rem + 2px);
}

.input-group-sm .form-control {
    font-size: 11px !important;
}

.custom-file-label-sm {
    height: calc(1.8125rem + 2px);
}

.custom-file-sm {
    height: calc(1.8125rem + 2px);
}

input #file-upload-button {
    display: none;
}

.hidden {
    display: none;
}

#menu {
    display: none;
}

.context-menu-hover {
    background-color: #17a2b8 !important;
}

a {
    color: #17a2b8;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #117888;
    text-decoration: none;
    background-color: transparent;
}

.note-editor .note-airframe .note-editing-area .note-editable {
    height: calc(1.8125rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    border: 1px solid #ced4da;
}

.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.dataTables_scroll {
    overflow: auto;
}

.dont-break-out {
    /* These are technically the same, but use both */
    overflow-wrap: break-word;
    word-wrap: break-word;

    -ms-word-break: break-all;
    /* This is the dangerous one in WebKit, as it breaks things wherever */
    word-break: break-all;
    /* Instead use this non-standard one: */
    word-break: break-word;

    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;

}

.cb-info {
    accent-color: #17a2b8;
}

.cb-warning {
    accent-color: #ffc107;
}

.cb-danger {
    accent-color: #e74c3c;
}

.forceFinishBg {
    background-image: url("../../images/apps/closed.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btnMenuAddTable {
    margin-bottom: 1rem;
}

.callout-chat {
    padding: 0.1rem !important;
    margin-bottom: 0.3rem !important;
    padding-left: 0.3rem !important;
}


/* image upload model carousel */
.image-container {
    position: relative;
    width: 150px;
    height: 150px;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s;
}

.image-container:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(220, 53, 69, 0.8);
    border: none;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.btn-delete-image:hover {
    background-color: rgba(220, 53, 69, 1);
}

.image-container {
    position: relative;
    flex: 0 0 auto;
    width: 120px;
}

.image-container img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-delete-image {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #dc3545;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    font-weight: bold;
    line-height: 18px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

@media (max-width: 576px) {
    .modal-xl {
        max-width: 98vw !important;
    }

    .modal-content {
        overflow-y: auto;
    }

    .modal-body {
        max-height: 75vh;
        overflow-y: auto;
    }
}