/*
    MY CUSTOM STUFF
*/
body {
    font-family: 'Open Sans', Tahoma, Arial, sans-serif;
}
label {
    font-weight: bold !important;
}

.navbar a:hover, .dropdown:hover {
  background-color: #17a2b8;
  color: white;
}
.nav-link:hover {
    color: #fff;
}
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
    color: white;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.dropdown-menu a {
  float: none;
  color: black;
  padding-top: 10px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-menu a:hover {
  background-color: #ddd;
}
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0px;
  border-radius: 0px;
}
.dropdown-item {
    padding-left: 0.75rem;
}

.datepicker > div {
    display: inherit;
}

/*Tabs in edit view*/
.nav-tabs .nav-link {
    display: block;
    padding: 0.5rem .5rem;
    background-color: #2c2c2c;
    border: 1px solid #fff;
    color: #fff;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.nav-tabs .nav-link.active {
    color: #555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    cursor: default; 
}
.card {
    border-radius: 0 !important;
}
.card-body{
    padding: 1rem;
}

.ta-3 {
    height: 350px !important;
}

.form-control{
    font-size: 1.1rem;
}

.title {
    background-color: #fc3;
    border-bottom: solid 1px #666;
    text-align: center;
}
.tid td{
    padding-top: .9rem; 
    padding-bottom: .1rem; 
}
.loader {
    border: 10px solid #f3f3f3;
    border-radius: 50%;
    border-top: 10px solid #3498db;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}
  
/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dataTables_processing {
    background: #3daf57 !important;
    color: #ffffff !important;
    padding-top: 10px !important;
    padding-bottom: 30px !important;
    z-index: 999;
    border: 1px solid #fff;
    top: 25px !important;
}
/*
 * COMPARISON CLASSES FOR LAST PUBLISHED MMM TO CURRENT DATA
 */
.diff-wrapper.diff {
    --tab-size: 4;
    background: repeating-linear-gradient(-45deg, whitesmoke, whitesmoke 0.5em, #e8e8e8 0.5em, #e8e8e8 1em);
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid black;
    color: black;
    empty-cells: show;
    font-family: monospace;
    font-size: 13px;
    width: 100%;
    word-break: break-all;
}
.diff-wrapper.diff th {
    font-weight: 700;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}
.diff-wrapper.diff td {
    vertical-align: baseline;
}
.diff-wrapper.diff td,
.diff-wrapper.diff th {
    border-collapse: separate;
    border: none;
    padding: 1px 2px;
    background: #fff;
}
.diff-wrapper.diff td:empty:after,
.diff-wrapper.diff th:empty:after {
    content: " ";
    visibility: hidden;
}
.diff-wrapper.diff td a,
.diff-wrapper.diff th a {
    color: #000;
    cursor: inherit;
    pointer-events: none;
}
.diff-wrapper.diff thead th {
    background: #a6a6a6;
    border-bottom: 1px solid black;
    padding: 4px;
    text-align: left;
}
.diff-wrapper.diff tbody.skipped {
    border-top: 1px solid black;
}
.diff-wrapper.diff tbody.skipped td,
.diff-wrapper.diff tbody.skipped th {
    display: none;
}
.diff-wrapper.diff tbody th {
    background: #cccccc;
    border-right: 1px solid black;
    text-align: right;
    vertical-align: top;
    width: 4em;
}
.diff-wrapper.diff tbody th.sign {
    background: #fff;
    border-right: none;
    padding: 1px 0;
    text-align: center;
    width: 1em;
}
.diff-wrapper.diff tbody th.sign.del {
    background: #fbe1e1;
}
.diff-wrapper.diff tbody th.sign.ins {
    background: #e1fbe1;
}
.diff-wrapper.diff.diff-html {
    white-space: pre-wrap;
    tab-size: var(--tab-size);
}
.diff-wrapper.diff.diff-html .ch {
    line-height: 1em;
    background-clip: border-box;
    background-repeat: repeat-x;
    background-position: left center;
}
.diff-wrapper.diff.diff-html .ch.sp {
    background-image: url('data:image/svg+xml,%3Csvg preserveAspectRatio="xMinYMid meet" viewBox="0 0 12 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M4.5 11C4.5 10.1716 5.17157 9.5 6 9.5C6.82843 9.5 7.5 10.1716 7.5 11C7.5 11.8284 6.82843 12.5 6 12.5C5.17157 12.5 4.5 11.8284 4.5 11Z" fill="rgba%2860, 60, 60, 50%25%29"/%3E%3C/svg%3E');
    background-size: 1ch 1.25em;
}
.diff-wrapper.diff.diff-html .ch.tab {
    background-image: url('data:image/svg+xml,%3Csvg preserveAspectRatio="xMinYMid meet" viewBox="0 0 12 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M9.5 10.44L6.62 8.12L7.32 7.26L12.04 11V11.44L7.28 14.9L6.62 13.9L9.48 11.78H0V10.44H9.5Z" fill="rgba%2860, 60, 60, 50%25%29"/%3E%3C/svg%3E');
    background-size: calc(var(--tab-size) * 1ch) 1.25em;
    background-position: 2px center;
}
.diff-wrapper.diff.diff-html .change.change-eq .old,
.diff-wrapper.diff.diff-html .change.change-eq .new {
background: #fff;
}
.diff-wrapper.diff.diff-html .change .old {
/*background: #fbe1e1;*/
}
.diff-wrapper.diff.diff-html .change .new {
/*background: #e1fbe1;*/
}
.diff-wrapper.diff.diff-html .change .rep {
    background: #fef6d9;
}
.diff-wrapper.diff.diff-html .change .old.none,
.diff-wrapper.diff.diff-html .change .new.none,
.diff-wrapper.diff.diff-html .change .rep.none {
    background: transparent;
    cursor: not-allowed;
}
.diff-wrapper.diff.diff-html .change ins,
.diff-wrapper.diff.diff-html .change del {
    font-weight: bold;
    text-decoration: none;
}
.diff-wrapper.diff.diff-html .change ins {
    background: #94f094;
}
.diff-wrapper.diff.diff-html .change del {
    background: #f09494;
}





/*
    EXISTING CUSTOMIZATIONS
*/
.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    border: 1px solid #ced4da;
}
.select2-selection__rendered {
    padding-top: 5px !important;
    padding-bottom: 10px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

#select2-category_id-results {
    max-height: 600px;
}