html, body {
    overflow: hidden;
    overflow-y: auto;
}

.text-muted {
  font-weight: 900;
  font-size: 14px;
  color: black;
}

.text-blue {
    color: #353A5B;
}

.circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
	font-size: 12px;
}

.initials {
    display: inline-block;
}

.modal-xxl {
  max-width: 1200px;
}

.content-with-sidebar {
    height: calc(100dvh - 50px);
    margin-left: 250px;
    padding: 20px;
    overflow-y: auto;

    transition: margin-left 0.3s;
}
body:has(.sidebar.collapsed) .content-with-sidebar {
    margin-left: 50px;
}

.dataTables_empty {
    color: #353A5B;
}

.dataTables_filter input {
    border-color: #353A5B!important;
    color: #353A5B;
}

table.datatable {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    width: 100%;
    font-family: Arial, sans-serif;
    border: none !important;
}

table.datatable thead th {
    background-color: #353A5B !important;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: left;
    user-select: none;
    border: none !important;
    border-radius: 0 !important;
}

table.datatable thead th:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

table.datatable thead th:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

table.datatable tbody tr td {
    padding: 12px 15px;
    vertical-align: middle;
    background-color: white;
    color: #353A5B;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    border-left: none;
    border-right: none;
    border-radius: 0;
}
table.datatable tbody tr td span {
    color: #353A5B;
}

table.datatable tbody tr td:first-child {
    border-left: 1px solid black;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table.datatable tbody tr td:last-child {
    border-right: 1px solid black;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

table.datatable tbody tr:hover td {
    background-color: #f1f1f1 !important;
    cursor: default;
    transition: background-color 0.3s ease;
}

div.dataTables_filter input {
    border-radius: 8px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.3s ease;
}

div.dataTables_filter input:focus {
    border-color: #353839;
    box-shadow: 0 0 5px rgba(53,56,57,0.5);
}

div.dataTables_filter label {
    font-size: 0;
}
div.dataTables_filter label input {
    font-size: 14px;
}

div.dataTables_wrapper,
div.dataTables_scrollBody,
table.dataTable.no-footer {
    border: none !important;
    box-shadow: none !important;
}

/* Style table with subtable */
table tbody .table-action-column {
    padding: 0!important;
    display: flex;
    flex-direction: column;
}
table tbody .table-action-column.end {
    align-items: end;
}
table tbody .table-action-column i {
    width: fit-content;
    background: #353839;
    color: #9DD4DD;
    padding: 10px 15px;
}

table tbody .table-action-column i.primary {
    background: #9DD4DD;
    color: #353839;
}
table tbody .table-action-column i.secondary {
    background: #353839;
    color: #9DD4DD;
}

table tbody .table-action-column i:first-child {
    border-top-left-radius: 12px;
}
table tbody .table-action-column i:last-child {
    border-bottom-left-radius: 12px;
}
table tbody .table-action-column i:only-child {
    padding: 15px 15px;
    height: 100%;
}
table tbody .table-action-column.lines-3 i:only-child {
    padding: 37.5px 15px;
}
table tbody .table-action-column.end i:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 12px;
}
table tbody .table-action-column.end i:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 12px;
}

table tbody .expand-subtable {
    min-width: 32px;
    position: relative;
}
table tbody .expand-subtable i {
    padding: 3px 6px;
    background: #EE7A59;
    border-radius: 50px 50px 0 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

table tbody tr:has(.expand-subtable) {
    position: relative;
    z-index: 2;
    background: none!important;
}

table tbody tr:has(.subtable-container) > td {
    padding: 0!important;
    border: none!important;
    transform: translateY(-15px);
    position: relative;
    z-index: 1;
}
table tbody tr:has(.subtable-container):hover > td {
    background: none!important;
}

.subtable-container {
    width: calc(100% - 50px);
    background: #353839;
    padding: 20px 15px 15px 15px;
    border-radius: 0 0 12px 12px;
    margin-left: auto;
}
table tbody tr:has(.table-action-column.start):has(.table-action-column.end) + tr:has(.subtable-container) .subtable-container {
    width: calc(100% - 100px);
    margin-left: auto;
    margin-right: auto;
}
.subtable-container:hover {
    background: #434444!important;
    transition: background-color 0.3s ease;
}
.subtable-container * {
    color: white;
}

.subtable-header {
    margin-bottom: 10px;
}

.subtable-header,
.subtable-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    gap: 10px;
}
.subtable-header.fr_15_15_15,
.subtable-body.fr_15_15_15 {
    grid-template-columns: 1fr 15% 15% 15%;
}
.subtable-body p {
    margin-bottom: 0;
}


.nowrap {
    white-space: nowrap;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.btn-normal-square-orange {
    background-color: #EF7A0C;
    border-radius: 4px;
    padding: .6rem 1rem;
    color: #FFFFFF;
    font-weight: 600;
    border: none;
}

.btn-normal-square-orange:hover {
    background-color:  #EF7A0C;
    color: #FFFFFF;
}

.btn-normal-orange {
    background-color: #EF7A0C;
    border-radius: 999px;
    padding: .6rem 1rem;
    color: #FFFFFF;
    font-weight: 600;
    border: none;
}
.btn-normal-orange:hover {
    background-color:  #EF7A0C;
    color: #FFFFFF;
}

.btn-normal-blue {
    background-color: #9DD4DD;
    border-radius: 999px;
    padding: .6rem 1rem;
    color: #FFFFFF;
    font-weight: 600;
    border: none;
}
.btn-normal-blue:hover {
    background-color:  #9DD4DD;
    color: #FFFFFF;
}

.btn-normal-danger {
    background-color: var(--bs-danger);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: var(--bs-light);
    font-weight: bold;
    border: none;
}
.btn-normal-danger:hover {
    background-color: var(--bs-danger);
    color: var(--bs-light);
}

.btn-normal-black {
    background-color: black;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: white;
    font-weight: bold;
    border: none;
}
.btn-normal-black:hover {
    background-color: #333;
    color: white;
}


.btn-login-black {
    background-color: black;
    padding: 0.5rem 1.5rem;
    color: #EF7A0C;
    font-weight: bold;
    border: none;
}

.btn-login-black:hover {
    background-color: #333;
    color: gold;
}

.btn-stop-red {
    background-color: var(--bs-danger);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: var(--bs-light);
    font-weight: bold;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-stop-red:hover {
    background-color: #c82333;
    color: var(--bs-light);
}

.modal-normal-footer {
    border-top: none;
}

.modal-normal-header {
    border-bottom: none;
}

.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: none;
}

.login-logo img {
    max-height: 160px;
}

.custom-login-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.login-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #353A5B;
    border-radius: 5px;
    background-color: white !important;
}

.login-input::placeholder {
    color: #353A5B;
    opacity: 0.5;
}

.login-input:focus {
    outline: none;
    border-color: #353A5B;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,.05);
    background-color: white;
}

.login-label {
    position: absolute;
    top: -0.75rem;
    left: 0.75rem;
    background: white;
    padding: 0 0.25rem;
    font-size: 0.85rem;
    color: #353A5B;
}

.btn-black-close {
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-black-close:hover {
    background-color: #222;
    color: white;
}

.btn-black-close i {
    font-size: 1.4rem;
}

.modal-fullscreen.with-margins {
    width: 94vw;
    max-width: none;
    height: 94%;
    margin: 1.75rem auto;
}
.modal-fullscreen.with-margins .modal-body {
    min-height: 100%;
}


.accordion-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.accordion-chevron {
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}
.collapsed .accordion-chevron {
    transform: rotate(0deg);
}

.accordion-absolute-button {
  z-index: 5;
}

.hidden-icon-button > i {
  transition: opacity 0.3s ease;
  opacity: 0;
}
.hidden-icon-button:hover > i {
  opacity: 1;
}

.form-control[type=color]{
  height: fit-content!important;
}
.form-control[type=color]::-webkit-color-swatch-wrapper {
  height: 24px;
}

div.dataTables_scrollBody 
{ 
    background: none !important; 
}

.headerbar {
    background-color: #353A5B;
    border-radius: 15px;
    padding: 12px 20px;
    margin-bottom: 20px;
    margin-top: 50px;    
}

.headerbar h5 {
    color: #fff;
    font-weight: bold;
    margin: 0;
}

#leads_table_filter {
    display: none;
}

.spacer {
    display: none;
}

@media (min-width: 768px) {
    .spacer {
        display: flex;
    }

    #leads_table_filter {
        display: block;
    }
}

.content-with-sidebar > .container,
.content-with-sidebar > .container .dataTables_wrapper,
.content-with-sidebar > .container .dataTables_wrapper .dataTables_scroll {
    height: 100%;
}

@media (max-width: 768px) {
    .content-with-sidebar,
    .content-with-sidebar > .container {
        padding-right: 0;
    }
}

.dataTables_scrollHead {
    overflow-x: auto!important;
}

@media (max-width: 768px) {
    .dataTables_scroll {
        overflow-x: auto!important;
        padding-right: 27.5px!important;
    }
    .dataTables_scrollHead, .dataTables_scrollBody {
        width: fit-content!important;
    }
    .dataTables_scrollBody .dataTable {
        position: relative!important;
    }
}

.tijd_resterend_spoed{
    color: red;
}

.tijd_resterend_normaal{
    color: blue;
}

.tijd_resterend{
    color: black;
}

/* .modal-content {
  min-height: 70vh;
} */

/* .modal-dialog {
  max-width: 80vw !important;
} */

.modal-header {
    background-color: #9DD4DD;
    border-radius: 6px;
    padding: 15px 20px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header .modal-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

.modal-header .btn-close,
.btn-black-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover,
.btn-black-close:hover {
    opacity: 1;
}

.table-action-column i.hidden-icon {
    background: transparent !important;
    color: white !important;
    padding: 10px 15px;
}


.card {
    border: 0px;
}

.card-header{
    background-color: #353A5B;
    border-radius: 12px !important;
}

.text-truncate-ellipsis {
    max-width: 1000px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#rechten_table {
    border-collapse: collapse !important;
}

#rechten_table th,
#rechten_table td {
    border: 1px solid #dee2e6 !important;
}

#rechten_table_container {
    overflow-x: hidden !important;
    padding-right: 1px;
}

  .card-chart-sm .card-body { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
  .card-chart-md .card-body { min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
  .chart-canvas { width:100%; height:100%; display: block; }

.beschrijving-kolom {
    max-width: 300px; 
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    white-space: normal;
}
