 /* Stats cards */
.bg-light-primary {
    background-color: rgba(67, 94, 190, 0.1);
}

.bg-light-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-light-info {
    background-color: rgba(23, 162, 184, 0.1);
}

.form-label,
.form-control {
    margin-top: 0 !important;
}

.status {
    height: auto;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
}

.card-header {
    background: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-body {
    padding: 1.5rem;
}

/* Table styling */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    font-weight: 600;
    color: #6c757d;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    text-align: left;
}

.table td {
    vertical-align: middle;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: left;
}

.table th.text-center, .table td.text-center {
    text-align: center !important;
}

/* Button styling */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Form styling */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #435ebe;
    box-shadow: 0 0 0 0.2rem rgba(67, 94, 190, 0.25);
}

/* Badge styling */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Collapsible form */
.collapse {
    transition: all 0.3s ease;
}

.collapse.show {
    margin-top: 1rem;
}

.form-check-input {
    border-color: #257fd2;
}

/* Image preview */
.image-preview {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
}

/* Responsive styling */
@media screen and (max-width: 768px) {
    .table td[data-label] .d-flex.align-items-center,
    .table td[data-label] .d-flex.flex-column.align-items-center {
        align-items: flex-end !important;
        text-align: right;
    }
}

@media (max-width: 768px) {
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
        width: 100%;
    }
    .table-responsive thead {
        display: none;
    }
    .table-responsive tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #eee;
    }
    .table-responsive td {
        position: relative;
        padding-left: 50%;
        text-align: left !important;
        border: none;
        border-bottom: 1px solid #eee;
    }
    .table-responsive td:before {
        position: absolute;
        top: 0;
        left: 0;
        width: 48%;
        padding-left: 1rem;
        white-space: nowrap;
        font-weight: bold;
        color: #888;
        content: attr(data-label);
    }
}

div.dataTables_wrapper div.dataTables_filter {
    text-align: left;
}
div.dataTables_wrapper div.dataTables_length{
    text-align: right;
}
.form-fieldset {
    margin-right: 10px;
}
.card-header-tabs .nav-link.active {
    background-color: #e3f0ea;
}

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

.select2.select2-container .select2-selection {
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    height: 34px;
    /* margin-bottom: 5px; */
    outline: none !important;
    transition: all .15s ease-in-out;
}

.select2.select2-container .select2-selection .select2-selection__rendered {
    color: #333;
    line-height: 32px;
    padding-right: 33px;
}

.select2.select2-container .select2-selection .select2-selection__arrow {
    background: #f8f8f8;
    border-left: 1px solid #ccc;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    height: 32px;
    width: 33px;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
    background: #f8f8f8;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
    -webkit-border-radius: 0 3px 0 0;
    -moz-border-radius: 0 3px 0 0;
    border-radius: 0 3px 0 0;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 1px solid #34495e;
}

.select2.select2-container .select2-selection--multiple {
    height: auto;
    min-height: 34px;
}

.select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
    height: 32px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    padding: 0 4px;
    line-height: 29px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin: 4px 4px 0 0;
    padding: 0 6px 0 22px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    position: relative;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    margin: 0;
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.select2-container .select2-dropdown {
    background: transparent;
    border: none;
    margin-top: -5px;
}

.select2-container .select2-dropdown .select2-search {
    padding: 0;
}

.select2-container .select2-dropdown .select2-search input {
    outline: none !important;
    border: 1px solid #34495e !important;
    border-bottom: none !important;
    padding: 4px 6px !important;
}

.select2-container .select2-dropdown .select2-results {
    padding: 0;
}

.select2-container .select2-dropdown .select2-results ul {
    background: #fff;
    border: 1px solid #34495e;
}

.select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
}

.dt-container .dt-length .form-select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
}

a.disabled-link {
  pointer-events: none; /* Prevents all pointer events on the element */
  cursor: default; /* Changes the cursor to indicate non-interactivity */
  color: grey; /* Optional: style to visually indicate disabled state */
  text-decoration: none; /* Optional: remove underline */
}


.workflow-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.workflow-item {
    display: flex;
    position: relative;
    margin-bottom: 25px;
}

.workflow-left {
    position: relative;
    margin-right: 20px;
}

.workflow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6f0ff;
    color: #4b70f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 2;
}

.workflow-line {
    position: absolute;
    top: 32px;          /* bawah ikon */
    left: 15px;         /* tengah ikon */
    width: 2px;
    height: calc(100% - 32px);
    background: #d0d7f8;
    z-index: 1;
}

.workflow-content {
    margin-top: 2px;
}

.workflow-status {
    font-weight: 600;
    margin-bottom: 4px;
}

.workflow-user {
    font-size: 14px;
    margin-bottom: 2px;
}

.workflow-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.workflow-remark {
    font-size: 14px;
}

.xbold {
    font-weight: bold;
}
.xcenter {
    text-align: center;
}
.xleft {
    text-align: left;
}
.xright {
    text-align: right;
}

.workflow-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.workflow-item {
    display: flex;
    position: relative;
    margin-bottom: 15px;
}

.workflow-left {
    position: relative;
    margin-right: 20px;
}

.workflow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6f0ff;
    color: #4b70f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 2;
}

.workflow-line {
    position: absolute;
    top: 32px;          /* bawah ikon */
    left: 15px;         /* tengah ikon */
    width: 2px;
    height: calc(100% - 32px);
    background: #d0d7f8;
    z-index: 1;
}

.workflow-content {
    margin-top: 2px;
}

.workflow-status {
    font-weight: 600;
    margin-bottom: 4px;
}

.workflow-user {
    font-size: 14px;
    margin-bottom: 2px;
}

.workflow-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.workflow-remark {
    font-size: 14px;
}

.tipe-darurat {
    color: #f30909;
    background: #f4919186;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 50rem;
    padding: 0.25rem 0.75rem;
    gap: 0.5rem;
}
.tipe-red {
    color: #E06363;
    background: #d5cfcf86;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 50rem;
    padding: 0.25rem 0.75rem;
    gap: 0.5rem;
}
.tipe-green {
    color: #2fb344;
    background: #d5cfcf86;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 50rem;
    padding: 0.25rem 0.75rem;
    gap: 0.5rem;
}
.tipe-blue {
    color: #066FD1;
    background: #d5cfcf86;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 50rem;
    padding: 0.25rem 0.75rem;
    gap: 0.5rem;
}

.readonly-like-disabled {
    background-color: #e9ecef; /* sama seperti disabled bootstrap */
    opacity: 1;
    cursor: not-allowed;
}

/* DEFAULT */
    .page .navbar-vertical {
        transition: width .2s ease;
    }

    .page .page-wrapper {
        transition: margin-left .2s ease;
    }

    /* COLLAPSED */
    .page.sidebar-collapsed .navbar-vertical {
        width: 72px;
    }

    .page.sidebar-collapsed .page-wrapper {
        margin-left: 72px;
    }

    /* HIDE TEXT */
    .page.sidebar-collapsed .nav-link-title {
        display: none;
    }

    /* CENTER ICON */
    .page.sidebar-collapsed .nav-link-icon {
        margin-right: 0;
    }
