:root {
    --bs-blue: #007bff;
    --bs-indigo: #6610f2;
    --bs-purple: #696cff;
    --bs-pink: #e83e8c;
    --bs-red: #ff3e1d;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffab00;
    --bs-green: #71dd37;
    --bs-teal: #20c997;
    --bs-cyan: #03c3ec;
    --bs-white: #fff;
    --bs-gray: rgba(67, 89, 113, 0.6);
    --bs-gray-dark: rgba(67, 89, 113, 0.8);
    --bs-gray-25: rgba(67, 89, 113, 0.025);
    --bs-gray-50: rgba(67, 89, 113, 0.05);
    --bs-primary: #696cff;
    --bs-secondary: #8592a3;
    --bs-success: #71dd37;
    --bs-info: #03c3ec;
    --bs-warning: #ffab00;
    --bs-danger: #ff3e1d;
    --bs-light: #fcfdfd;
    --bs-dark: #233446;
    --bs-gray: rgba(67, 89, 113, 0.1);
    --bs-primary-rgb: 105, 108, 255;
    --bs-secondary-rgb: 133, 146, 163;
    --bs-success-rgb: 113, 221, 55;
    --bs-info-rgb: 3, 195, 236;
    --bs-warning-rgb: 255, 171, 0;
    --bs-danger-rgb: 255, 62, 29;
    --bs-light-rgb: 252, 253, 253;
    --bs-dark-rgb: 35, 52, 70;
    --bs-gray-rgb: 67, 89, 113;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 67, 89, 113;
    --bs-body-color-rgb: 105, 122, 141;
    --bs-body-bg-rgb: 245, 245, 249;
    --bs-font-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
        "Helvetica Neue", sans-serif;
    --bs-font-monospace: "SFMono-Regular", Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0)
    );
    --bs-root-font-size: 16px;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 0.9375rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.53;
    --bs-body-color: #697a8d;
    --bs-body-bg: #f5f5f9;
}

.striked {
    text-decoration: line-through;
}

.asterisk {
    color: red;
    font-weight: bold;
}

.tox-notification {
    display: none !important;
}

/* Styles for larger screens */
@media (min-width: 768px) {
    .icon-only {
        display: inline;
        /* Display the icon for larger screens */
    }

    .language-name {
        display: inline;
        /* Display the language name for larger screens */
    }
}

/* Styles for smaller screens (e.g., mobile) */
@media (max-width: 767px) {
    .icon-only {
        display: inline;
        /* Display the icon for smaller screens */
    }

    .language-name {
        display: none;
        /* Hide the language name for smaller screens */
    }
}

.installer-div {
    max-width: 1000px !important;
}

.sticky-note-bg-primary {
    background: #007bff;
    /* Bootstrap primary color */
    /* color: #fff; */
    /* White text color on a primary background */
}

.sticky-note-bg-secondary {
    background: #6c757d;
    /* Bootstrap secondary color */
    color: #fff;
    /* White text color on a secondary background */
}

.sticky-note-bg-success {
    background: #28a745;
    /* Bootstrap success color */
    color: #fff;
    /* White text color on a success background */
}

.sticky-note-bg-dark {
    background: #343a40;
    /* Bootstrap dark color */
    color: #fff;
    /* White text color on a dark background */
}

.sticky-note-bg-info {
    background: #cfc;
}

.sticky-note-bg-warning {
    background: #ffc;
}

.sticky-note-bg-danger {
    background: #fcc;
}

.sticky-notes,
.sticky-note {
    list-style: none;
}

.sticky-notes {
    overflow: hidden;
    padding: 2em;
}

.sticky-notes .sticky-note .sticky-content {
    text-decoration: none;
    color: #000;
    display: block;
    padding: 1em;
    overflow-wrap: break-word;
    -moz-box-shadow: 5px 5px 7px rgba(33, 33, 33, 1);
    -webkit-box-shadow: 5px 5px 7px rgba(33, 33, 33, 0.3);
    box-shadow: 5px 5px 7px rgba(33, 33, 33, 0.3);
    -moz-transition: -moz-transform 0.15s linear;
    -o-transition: -o-transform 0.15s linear;
    -webkit-transition: -webkit-transform 0.15s linear;
    -webkit-transform: rotate(-2deg);
    -o-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
}

.sticky-notes .sticky-note {
    margin-top: 1em;
    margin-bottom: 1em;
    /*float:left;*/
}

.sticky-notes .sticky-note:nth-child(even) .sticky-content {
    -o-transform: rotate(2deg);
    -webkit-transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    position: relative;
    top: 5px;
}

.sticky-notes .sticky-note:nth-child(3n) .sticky-content {
    -o-transform: rotate(-2deg);
    -webkit-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    position: relative;
    top: -5px;
}

.sticky-notes .sticky-note:nth-child(5n) .sticky-content {
    -o-transform: rotate(2deg);
    -webkit-transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    position: relative;
    top: -10px;
}

.sticky-notes .sticky-note .sticky-content:hover,
.sticky-notes .sticky-note .sticky-content:focus {
    box-shadow: 10px 10px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 10px 10px 7px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 10px 10px 7px rgba(0, 0, 0, 0.3);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.05);
    position: relative;
    z-index: 5;
}

.sticky-notes .sticky-note .sticky-content i {
    font-size: 12px;
    float: right;
    vertical-align: top;
    padding: 6px;
    cursor: pointer;
}

@media print {
    /* Reset some styles to maintain the column structure */
    body * {
        visibility: hidden;
    }

    .row::before,
    .row::after {
        content: "";
        display: table;
        clear: both;
    }

    #section-not-to-print,
    #section-not-to-print * {
        display: none;
    }

    #section-to-print,
    #section-to-print * {
        visibility: visible;
    }

    #section-to-print {
        position: absolute;
        left: 0;
        top: 0;
    }

    /* Adjust other specific styles as needed for your layout */
}

.language-dropdown {
    min-width: auto !important;
    width: auto !important;
}

#languageDropdown {
    max-height: 300px;
}

@media (max-width: 768px) {
    .menu-container {
        max-height: calc(100vh - 50px) !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 768px) {
    /* You can adjust the max-width as needed */
    .demo-mode {
        display: none;
        /* Hide the badge on mobile devices */
    }
}

@media (min-width: 769px) {
    .demo-mode-icon-only i {
        display: none;
        /* Hide the icon on large devices */
    }
}

@media (max-width: 768px) {
    .nav-item .nav-mobile-hidden {
        display: none;
    }
}

.timer-img {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Adding transition for smooth animation */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Perjalanan Dinas */
.perjalanan-table-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden;
}

.perjalanan-table-wrapper .fixed-table-container,
.perjalanan-table-wrapper .fixed-table-body {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.perjalanan-actions-dropdown {
    position: relative;
    z-index: 1050;
}

.perjalanan-actions-dropdown.show,
.perjalanan-table-wrapper tr:has(.perjalanan-actions-dropdown.show) {
    z-index: 3000;
}

.perjalanan-actions-dropdown .dropdown-menu {
    z-index: 3001 !important;
}

#group-code-wrapper,
#edit-group-code-wrapper {
    width: 100%;
}

.travel-group-select + .select2-container {
    width: 100% !important;
}

.travel-group-select + .select2-container .select2-selection--single {
    align-items: center;
    background: #ffffff;
    border-color: #dfe6ef;
    border-radius: 9px;
    display: flex;
    height: auto;
    min-height: 56px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.travel-group-select + .select2-container.select2-container--open .select2-selection--single,
.travel-group-select + .select2-container.select2-container--focus .select2-selection--single {
    border-color: #9fb0ca;
    box-shadow: 0 0 0 3px rgba(35, 56, 106, 0.08);
}

.travel-group-select + .select2-container .select2-selection__rendered {
    color: #526174;
    line-height: 1.35;
    overflow: visible;
    padding: 10px 42px 10px 48px;
    text-overflow: clip;
    white-space: normal;
    width: 100%;
}

.doc-upload-badge {
    border: 1px solid currentColor;
    font-weight: 700;
}

.doc-upload-badge--ipp-ready {
    background: #e7f0ff !important;
    border-color: #696cff !important;
    color: #3f45bf !important;
}

.doc-upload-badge--spk-ready {
    background: #e8fadf !important;
    border-color: #71dd37 !important;
    color: #2e7d16 !important;
}

.doc-upload-badge--empty {
    background: transparent !important;
    border-color: #8b95a1 !important;
    border-style: dashed !important;
    color: #6b7280 !important;
}

.doc-upload-btn {
    font-weight: 700;
}

.doc-upload-btn--empty,
.doc-upload-btn--empty:hover,
.doc-upload-btn--empty:focus {
    background: transparent !important;
    border-color: #8b95a1 !important;
    border-style: dashed !important;
    color: #6b7280 !important;
    box-shadow: none !important;
}

.travel-group-select + .select2-container .select2-selection__placeholder {
    color: #8b96a6;
}

.travel-group-select + .select2-container .select2-selection__clear {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    float: none;
    font-size: 1.15rem;
    height: 28px;
    justify-content: center;
    left: 14px;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    z-index: 2;
}

.travel-group-select + .select2-container .select2-selection__clear:hover {
    color: #23386a;
}

.travel-group-select + .select2-container .select2-selection__arrow {
    height: 100%;
    min-height: 54px;
    right: 14px;
    width: 22px;
}

.travel-group-select + .select2-container .select2-selection__arrow b {
    border-color: #8a96a6 transparent transparent transparent;
}

.select2-container--open.travel-group-dropdown-container .select2-dropdown,
.select2-container--default .select2-dropdown.travel-group-dropdown {
    background: #ffffff;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(21, 30, 44, 0.14);
    margin-top: 6px;
    overflow: hidden;
}

.travel-group-dropdown .select2-search--dropdown {
    background: #ffffff;
    border-bottom: 1px solid #edf1f6;
    padding: 10px;
}

.travel-group-dropdown .select2-search--dropdown .select2-search__field {
    background: #f8fafc;
    border: 1px solid #dfe6ef !important;
    border-radius: 8px;
    box-shadow: none !important;
    color: #3f4b5f;
    font-size: 0.86rem;
    min-height: 38px;
    outline: none !important;
    padding: 0.5rem 0.75rem;
}

.travel-group-dropdown .select2-search--dropdown .select2-search__field:focus {
    background: #ffffff;
    border-color: #9fb0ca !important;
    box-shadow: 0 0 0 3px rgba(35, 56, 106, 0.08) !important;
}

.travel-group-dropdown .select2-results__option {
    background: #ffffff;
    color: #526174;
    padding: 11px 14px;
}

.travel-group-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f1f5fb;
    color: #263b65;
}

.travel-group-dropdown .select2-results__option--selected {
    background-color: #e9eef8;
    color: #23386a;
}

.travel-group-dropdown .select2-results__option--highlighted .text-muted {
    color: #53657c !important;
}

.travel-group-option-title,
.travel-group-selection-title {
    color: #26364d;
    display: block;
    font-weight: 600;
}

.travel-group-option-meta,
.travel-group-selection-meta {
    color: #738195;
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.travel-group-dropdown .select2-results__option--highlighted .travel-group-option-title,
.travel-group-dropdown .select2-results__option--selected .travel-group-option-title {
    color: #23386a;
}

.pd-request-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #edf0f4;
    gap: 1rem;
    padding: 1.35rem 1.7rem 1.2rem;
}

.pd-request-kicker {
    align-items: center;
    color: #7a8797;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.4rem;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: none;
}

.pd-request-kicker i {
    align-items: center;
    background: #f4f7fb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #738195;
    display: inline-flex;
    font-size: 0.98rem;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.pd-request-title {
    color: #334155;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.pd-request-subtitle {
    color: #9aa5b1;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0.32rem 0 0;
}

.pd-request-body {
    background: #ffffff;
    padding: 0;
}

.pd-request-form {
    min-height: 0;
}

.pd-request-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.55rem 1.7rem;
}

.pd-form-section {
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1.45rem;
    padding: 0 0 1.45rem;
}

.pd-form-section + .pd-form-section {
    border-top: 1px dashed #d9dee7;
    padding-top: 1.45rem;
}

.pd-form-section:last-child {
    margin-bottom: 0;
}

.pd-section-header {
    align-items: flex-start;
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.05rem;
}

.pd-section-icon {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    color: #77869a;
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    margin-right: 0;
    width: 32px;
}

.pd-section-icon i {
    font-size: 1rem;
}

.pd-section-title {
    color: #425166;
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.pd-section-subtitle {
    color: #8a96a6;
    font-size: 0.83rem;
    line-height: 1.5;
    margin: 0.45rem 0 0;
}

.pd-request-form .form-label {
    color: #3c4654;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.42rem;
    text-transform: none;
}

.pd-request-form .form-control,
.pd-request-form .form-select,
.pd-request-form select.form-control {
    border-color: #e4e8ee;
    border-radius: 8px;
    color: #3f4856;
    font-size: 0.86rem;
    min-height: 42px;
}

.pd-request-form textarea.form-control {
    min-height: 104px;
}

.pd-inline-summary {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cfd8e5;
    border-radius: 8px;
    color: #53657a;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.6rem 0.85rem;
    white-space: nowrap;
}

.pd-toggle-panel {
    align-items: center;
    background: #fbfcfe;
    border: 1px solid #e7ecf3;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 62px;
    padding: 0.85rem 1rem;
}

.pd-toggle-title {
    color: #455163;
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.pd-toggle-subtitle {
    color: #8a96a6;
    font-size: 0.8rem;
    line-height: 1.4;
}

.pd-toggle-switch {
    margin: 0;
    min-height: 0;
    padding-left: 0;
}

.pd-toggle-switch .form-check-input {
    border-color: #ccd6e2;
    cursor: pointer;
    height: 1.35rem;
    margin: 0;
    width: 2.55rem;
}

.pd-toggle-switch .form-check-input:checked {
    background-color: #23386a;
    border-color: #23386a;
}

.pd-items-table {
    border: 1px solid #e8edf4;
    border-radius: 10px;
    overflow: hidden;
}

.pd-items-table table {
    margin-bottom: 0;
}

.pd-items-table thead th {
    background: #f8fafc;
    color: #65758b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pd-items-table .remove-row {
    align-items: center;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.pd-dropzone {
    background: #fbfcff;
    border: 1px dashed #b8c7dc !important;
    border-radius: 12px !important;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.pd-dropzone:hover,
.pd-dropzone.dragover {
    background: #f4f8ff;
    border-color: #5f86c8 !important;
}

.pd-request-footer {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #edf0f4;
    box-shadow: none;
    padding: 1rem 1.7rem;
}

.pd-modal-dialog {
    max-width: min(900px, calc(100vw - 2rem));
}

.pd-modal-content {
    background: #ffffff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(21, 30, 44, 0.16);
    overflow: hidden;
}

.pd-request-footer .btn {
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 42px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (max-width: 767.98px) {
    .pd-request-header,
    .pd-request-scroll,
    .pd-request-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pd-request-footer {
        align-items: stretch !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    .pd-request-footer > div:last-child {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: 1fr;
    }

    .pd-section-header {
        gap: 0.6rem;
    }

    .pd-toggle-panel {
        align-items: flex-start;
    }
}

#perjalanan-dinas-page .offcanvas:not(.pd-request-drawer) {
    width: 800px !important;
}

#perjalanan-dinas-page .dropzone {
    background: #fafafa;
    cursor: pointer;
    transition: 0.2s;
}

#perjalanan-dinas-page .dropzone.dragover {
    background: #e9f2ff;
    border-color: #0d6efd;
}

#view-log-table td {
    vertical-align: middle;
}

#view-log-table .badge {
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 0.3px;
    padding: 6px 10px;
}

.accordionlog .accordion-item.active {
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
}

.accordionlog .accordion-button,
.accordionlog .accordion-button:focus,
.accordionlog .accordion-button:not(.collapsed),
.accordionlog .accordion-collapse,
.accordion .accordion-item.active {
    box-shadow: none !important;
}

.accordionlog .accordion-button:focus {
    outline: none !important;
}

.biaya-modal {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.modal-biaya-wide {
    max-width: min(1180px, calc(100vw - 32px));
}

.biaya-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e9ecef;
    padding: 18px 22px;
}

.biaya-modal .modal-body {
    background: #fff;
    padding: 22px;
}

.biaya-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.biaya-summary-item {
    background: #fbfcfe;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
}

.biaya-summary-item span {
    color: #6c757d;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.biaya-summary-item strong {
    color: #212529;
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.biaya-table-wrap {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.biaya-input-table th {
    color: #6c757d;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.biaya-input-table td {
    background: #fff;
}

.biaya-permohonan-input-table {
    min-width: 980px;
    table-layout: fixed;
    width: 100%;
}

.biaya-permohonan-input-table .permohonan-col-info,
.biaya-permohonan-input-table .permohonan-col-nominal {
    width: 220px;
}

.biaya-permohonan-input-table .permohonan-col-hari {
    width: 130px;
}

.biaya-permohonan-input-table .permohonan-col-subtotal {
    width: 180px;
}

.biaya-input-table .permohonan-jenis-cell {
    max-width: none;
    width: auto;
}

.biaya-input-table .permohonan-info-cell {
    max-width: 220px;
    width: 220px;
}

.biaya-input-table .permohonan-info-text {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    max-width: 220px;
    overflow-wrap: anywhere;
}

.biaya-input-table .input-group-text {
    background: #f8fafc;
    color: #6c757d;
    font-size: 12px;
}

.biaya-input-table .form-control {
    min-height: 40px;
}

.view-detail-action-footer {
    background: #fff;
    border-top: 1px solid rgba(67, 89, 113, 0.12);
    padding: 0.9rem 1.5rem;
}

#modalBiaya .modal-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    padding-right: 430px !important;
    position: relative;
}

#modalBiaya .modal-biaya-status-badges {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
}

#modalBiaya .btn-close {
    margin: 0;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.settlement-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    min-width: 104px;
}

.settlement-action-btn,
.settlement-action-placeholder {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.settlement-action-btn i {
    font-size: 20px;
    line-height: 1;
}

.settlement-action-placeholder {
    visibility: hidden;
}

.biaya-note-box {
    background: #fbfcfe;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
}

.biaya-total-box {
    background: #f8fafc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-width: 240px;
    padding: 10px 14px;
    text-align: right;
}

.biaya-total-box span {
    color: #6c757d;
    display: block;
    font-size: 12px;
}

.biaya-total-box strong {
    color: #212529;
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.biaya-modal-footer {
    align-items: center;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 22px;
}

.biaya-total-box-footer {
    align-items: flex-start;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    min-width: 320px;
    padding: 12px 18px;
    text-align: left;
}

.biaya-total-box-footer span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.biaya-total-box-footer strong {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 24px;
    font-weight: 800;
    margin-top: 3px;
}

.biaya-total-box-footer strong span {
    color: inherit;
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.biaya-footer-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    #modalBiaya .modal-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
        padding-right: 60px !important;
    }

    #modalBiaya .modal-biaya-status-badges {
        justify-content: flex-start;
        position: static;
        transform: none;
    }

    .biaya-summary-grid {
        grid-template-columns: 1fr;
    }

    .biaya-total-box {
        text-align: left;
        width: 100%;
    }

    .biaya-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .biaya-total-box-footer {
        min-width: 0;
        width: 100%;
    }

    .biaya-footer-actions {
        justify-content: stretch;
        width: 100%;
    }

    .biaya-footer-actions .btn {
        flex: 1 1 auto;
    }
}

.timer-img:hover {
    transform: translateY(-5px);
    /* Lift the image slightly on hover */
}

.chat-img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50%;
    cursor: pointer;
    padding: 12px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 16px 34px rgba(24, 32, 51, 0.18);
    border: 1px solid rgba(119, 126, 144, 0.18);
    object-fit: contain;
}
.embed-icon {
    width: 54px !important;
    border-radius: 50px;
    cursor: pointer;
    position: fixed;
    bottom: 0.7rem;
    right: 11.625rem;
    padding: 10px;
    background-color: #ffffff;
    z-index: 1086;
    transition: transform 0.3s ease;
    /* Adding transition for smooth animation */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.embed-icon:hover {
    transform: translateY(-5px);
    /* Lift the image slightly on hover */
}
.chat-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(24, 32, 51, 0.24);
}

.chat-iframe-container {
    display: none;
    position: fixed;
    bottom: 84px;
    right: 18px;
    width: min(440px, calc(100vw - 36px));
    height: min(680px, calc(100vh - 112px));
    min-height: 520px;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(24, 32, 51, 0.28);
    border: 1px solid rgba(119, 126, 144, 0.22);
    z-index: 999998;
    animation: chatPanelIn 0.18s ease-out;
}

.chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 22px;
    display: block;
    background: #ffffff;
}

@keyframes chatPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 576px) {
    .chat-float-trigger {
        right: 5.75rem;
        bottom: 0.75rem;
    }

    .chat-img {
        right: 5.75rem;
        bottom: 0.75rem;
        width: 52px !important;
        height: 52px !important;
        border-radius: 50%;
        padding: 11px;
    }

    .chat-iframe-container {
        right: 10px;
        bottom: 76px;
        width: calc(100vw - 20px);
        height: calc(100vh - 96px);
        min-height: 0;
        border-radius: 18px;
    }

    .chat-iframe {
        border-radius: 18px;
    }
}

/* Stopwatch container */
.stopwatch {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.stopwatch_time {
    text-align: center;
    margin: 0 10px;
}

.stopwatch_time_input {
    padding: 1em !important;
    text-align: center !important;
    border-radius: 5px !important;
    border-color: #6c757d !important;
    background: #6c757d !important;
    color: #ffffff !important;
    padding: 0.5em 0 !important;
    font-size: 3em !important;
    padding-top: 1em !important;
    padding-bottom: 1em !important;
    font-weight: bold;
}

.stopwatch_time_lable {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Buttons */
.selectgroup {
    display: flex;
    justify-content: center;
}

.selectgroup-item {
    margin: 0 5px;
}

.selectgroup-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-color: #e4e6fc;
    border-width: 1px;
    border-style: solid;
    border-radius: 50%;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease;
}

.selectgroup-button:hover {
    background-color: #0056b3;
}

#start[disabled],
#end[disabled],
#pause[disabled] {
    background: none !important;
    color: var(--gray) !important;
}

#stopTimerModal {
    z-index: 1100;
}

/* Hide on smaller screens (mobile) */
@media (max-width: 768px) {
    .hide-mobile {
        display: inline;
    }

    .show-mobile {
        display: none;
    }
}

.invoice-detail-item {
    margin-bottom: 15px;
}

.invoice-detail-name {
    letter-spacing: 0.3px;
    color: #98a6ad;
    margin-bottom: 4px;
}

.invoice-detail-value {
    font-size: 18px;
    color: #34395e;
    font-weight: 700;
}

.dropdown-header-highlighted {
    font-size: 1.2rem;
    font-weight: bold;
    color: #718193;
    padding: 0.532rem 1.25rem !important;
    min-width: 358px;
}

.dropdown-item .bx {
    margin-top: auto;
    margin-bottom: auto;
}

.bx.bx-search {
    display: none;
}

/* Display the search icon when screen width is 884px or more */
@media screen and (min-width: 884px) {
    .bx.bx-search {
        display: inline-block;
    }
}

.country-code-input {
    max-width: 80px;
}

.status-column {
    min-width: 250px;
}

.priority-column {
    min-width: 200px;
}

.update-users-clients {
    margin-left: 5px;
}

.select2-close-mask {
    z-index: 2099 !important;
}

.select2-dropdown {
    z-index: 3051 !important;
}

/* Apply general styling to select2 elements */
.select2.select2-container.select2-container--default:not(
        #global-search + .select2-container
    ) {
    display: block !important;
    width: 100% !important;
    min-height: calc(2.25rem + 2px) !important;
    padding: 0.2rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid #d9dee3 !important;
    border-radius: 0.25rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.select2-container--default
    .select2-selection--multiple:not(
        #global-search + .select2-container .select2-selection--single
    ) {
    border: 0px !important;
}

.select2-container--default .select2-selection--single {
    border: 0px !important;
}

.select2-container:not(#global-search + .select2-container)
    .select2-search--inline
    .select2-search__field {
    height: 21px !important;
}

/* Apply specific styling to #global-search select2 */

#global-search
    + .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    display: none !important;
}

#global-search + .select2-container--default .select2-selection--single {
    width: 300px !important;
}

@media (max-width: 768px) {
    #global-search + .select2-container--default .select2-selection--single {
        width: 100px !important;
    }
}

/* Perjalanan Dinas: travel group select2 */
.travel-group-select + .select2.select2-container.select2-container--default {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.pd-request-form .travel-group-select + .select2.select2-container.select2-container--default {
    border: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
}

#group-code-wrapper .select2-container,
#group-code-wrapper .select2.select2-container,
#group-code-wrapper .select2-container--default,
#edit-group-code-wrapper .select2-container,
#edit-group-code-wrapper .select2.select2-container,
#edit-group-code-wrapper .select2-container--default {
    background: #ffffff !important;
    border: 1px solid #dfe6ef !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    min-height: 56px !important;
    outline: 0 !important;
    padding: 0 !important;
}

.travel-group-select + .select2-container--default .select2-selection--single {
    background: #ffffff !important;
    border: 1px solid #dfe6ef !important;
    border-radius: 9px !important;
    box-shadow: none;
    min-height: 56px !important;
}

.travel-group-select + .select2-container--default.select2-container--open .select2-selection--single,
.travel-group-select + .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #9fb0ca !important;
    box-shadow: none !important;
}

#group-code-wrapper .select2-selection--single,
#edit-group-code-wrapper .select2-selection--single {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 54px !important;
}

#group-code-wrapper .select2-container--open .select2-selection--single,
#group-code-wrapper .select2-container--focus .select2-selection--single,
#edit-group-code-wrapper .select2-container--open .select2-selection--single,
#edit-group-code-wrapper .select2-container--focus .select2-selection--single {
    border: 0 !important;
    box-shadow: none !important;
}

#group-code-wrapper .select2-container--open,
#group-code-wrapper .select2-container--focus,
#edit-group-code-wrapper .select2-container--open,
#edit-group-code-wrapper .select2-container--focus {
    border-color: #9fb0ca !important;
    box-shadow: none !important;
}

#select2-travel_group_code-container,
#select2-edit-travel-group-code-container,
#group-code-wrapper [id^="select2-"][id$="-container"],
#edit-group-code-wrapper [id^="select2-"][id$="-container"],
#group-code-wrapper .select2-selection__rendered,
#edit-group-code-wrapper .select2-selection__rendered,
#group-code-wrapper .select2-selection__rendered > span,
#edit-group-code-wrapper .select2-selection__rendered > span {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

#group-code-wrapper .select2-selection__rendered,
#edit-group-code-wrapper .select2-selection__rendered {
    padding-left: 48px !important;
}

#group-code-wrapper .select2-selection__clear,
#edit-group-code-wrapper .select2-selection__clear {
    align-items: center !important;
    display: inline-flex !important;
    height: 28px !important;
    justify-content: center !important;
    left: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
}

#select2-travel_group_code-container:focus,
#select2-edit-travel-group-code-container:focus,
#group-code-wrapper .select2-selection__rendered:focus,
#edit-group-code-wrapper .select2-selection__rendered:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.travel-group-dropdown.select2-dropdown {
    background: #ffffff !important;
    border: 1px solid #dfe6ef !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 42px rgba(21, 30, 44, 0.14) !important;
    margin-top: 6px;
    overflow: hidden;
}

.travel-group-dropdown .select2-search--dropdown {
    background: #ffffff;
    border-bottom: 1px solid #edf1f6;
    padding: 10px;
}

.travel-group-dropdown .select2-search--dropdown .select2-search__field {
    background: #f8fafc !important;
    border: 1px solid #dfe6ef !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #3f4b5f !important;
    font-size: 0.86rem;
    min-height: 38px;
    outline: none !important;
    padding: 0.5rem 0.75rem;
}

.travel-group-dropdown .select2-search--dropdown .select2-search__field:focus {
    background: #ffffff !important;
    border-color: #9fb0ca !important;
    box-shadow: none !important;
}

.travel-group-dropdown .select2-results__option {
    background: #ffffff !important;
    color: #526174 !important;
    padding: 11px 14px;
}

.travel-group-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f1f5fb !important;
    color: #263b65 !important;
}

.travel-group-dropdown .select2-results__option--selected {
    background-color: #e9eef8 !important;
    color: #23386a !important;
}

.custom-select2 .select2-search--dropdown {
    margin-top: -40px;
}

.custom-select2 .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da; /* Bootstrap's border color */
    border-radius: 0.25rem; /* Bootstrap's border radius */
    height: calc(2.25rem + 2px); /* Height to match Bootstrap input */
    padding: 0.375rem 0.75rem; /* Padding similar to Bootstrap input */
    background-color: #fff; /* Background color */
    color: #495057; /* Text color */
    box-shadow: none; /* Remove any default shadow */
}
.custom-select2 .select2-search--dropdown .select2-search__field:focus {
    outline: none !important; /* Remove outline */
    box-shadow: none !important; /* Remove focus shadow */
}

#unreadNotificationsCount {
    position: relative;
    left: -10px;
    top: -8px;
    width: auto !important;
}

.statisticsDiv {
    height: 550px;
}

#confirmSaveColumnVisibility,
#edit_project_modal,
#edit_task_modal,
#quickViewModal {
    z-index: 1091;
}

#create_status_modal,
#create_priority_modal,
#create_tag_modal,
#create_contract_type_modal {
    z-index: 1092;
}

.select-bg-label-success {
    color: #71dd37 !important;
    background-color: #e8fadf !important;
}

.select-bg-label-success:focus {
    border-color: #e8fadf !important;
}

.select-bg-label-primary {
    color: #696cff !important;
    background-color: #e7e7ff !important;
}

.select-bg-label-primary:focus {
    border-color: #e7e7ff !important;
}

.select-bg-label-secondary {
    color: #8592a3 !important;
    background-color: #ebeef0 !important;
}

.select-bg-label-secondary:focus {
    border-color: #ebeef0 !important;
}

.select-bg-label-danger {
    color: #ff3e1d !important;
    background-color: #ffe0db !important;
}

.select-bg-label-danger:focus {
    border-color: #ffe0db !important;
}

.select-bg-label-warning {
    color: #ffab00 !important;
    background-color: #fff2d6 !important;
}

.select-bg-label-warning:focus {
    border-color: #fff2d6 !important;
}

.select-bg-label-info {
    color: #03c3ec !important;
    background-color: #d7f5fc !important;
}

.select-bg-label-info:focus {
    border-color: #d7f5fc !important;
}

.select-bg-label-dark {
    color: #233446 !important;
    background-color: #dcdfe1 !important;
}

.select-bg-label-dark:focus {
    border-color: #dcdfe1 !important;
}

.signup-form {
    max-width: 500px !important;
}

.card-body-project-grid {
    padding: 0.8rem 0.8rem;
}

.card-body-task-draggable {
    padding: 0.8rem 0.2rem;
}

.avatar-nav-dropdown {
    cursor: default;
}

.avatar img,
.avatar .rounded-circle,
.users-list .avatar img,
.avatar-group .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-photo {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    object-position: center;
    flex: 0 0 auto;
}

.profile-photo.profile-photo-sm {
    width: 90px;
    height: 90px;
    max-width: 90px;
    max-height: 90px;
}

#promisor_sign {
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 1px solid #6c757d !important;
    touch-action: none;
    user-select: none;
    border: 1px solid #6c757d !important;
}

@media (max-width: 767.98px) {
    #promisor_sign {
        width: calc(100% - 2rem);
        /* Account for modal padding */
        height: auto;
    }
}

.scrollable-dropdown {
    max-height: 300px;
}

.fixed-header,
.fixed-footer {
    background: white;
    position: sticky;
    z-index: 10;
}

.fixed-header {
    top: 0;
}

.fixed-footer {
    bottom: 0;
}

.permissions-container {
    display: flex;
    flex-wrap: wrap;
}

.kanban-container {
    overflow-x: scroll;
    overflow-y: hidden;
}

.kanban-column {
    background-color: none;
    min-width: 300px;
    max-width: 300px;
}

.kanban-tasks {
    height: 100%;
}

.iti {
    width: 100%;
}

/* .tox,
.tox-silver-sink,
.tox-tinymce-aux {
    display: none;
} */

.intl-tel-input {
    width: 100%;
    position: relative;
}

.intl-tel-input .selected-flag {
    position: absolute;
    top: 50%;
    left: 12px; /* Adjust left to properly align the flag */
    transform: translateY(-50%);
    z-index: 1;
}

.intl-tel-input input[type="tel"] {
    padding-left: 60px; /* Adjust padding for the flag */
    width: 100%;
}

/* Clear button styling */
.clear-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    font-size: 20px; /* Adjust size if needed */
}

.fixed-width-select {
    width: 200px;
}

/* Ensure there's a margin between the select and the note icon */
.ms-2 {
    margin-left: 0.5rem; /* Adjust the margin as needed */
}

.custom-link {
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}

/* Base class for the mind map container */
.mind-map-container {
    height: 800px;
    /* Default height for larger screens */
}

/* Adjust height for medium screens */
@media (max-width: 1200px) {
    .mind-map-container {
        height: 600px;
        /* Height for medium screens */
    }
}

/* Adjust height for small screens */
@media (max-width: 992px) {
    .mind-map-container {
        height: 500px;
        /* Height for small screens */
    }
}

/* Adjust height for extra small screens */
@media (max-width: 768px) {
    .mind-map-container {
        height: 400px;
        /* Height for extra small screens */
    }
}
jmnode {
    padding: 5px;
    border: 1px solid;
    cursor: pointer !important;
}

#sortable-menu,
.submenu {
    list-style-type: none; /* Remove default list bullets */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

#sortable-menu > li,
.submenu > li {
    margin-bottom: 10px; /* Add bottom space between menu items */
    background-color: #f8f9fa; /* Light background for menu items */
    padding: 10px; /* Padding inside menu items */
    border-radius: 5px; /* Rounded corners for menu items */
    border: 1px solid #dee2e6; /* Border for menu items */
    transition: background-color 0.3s; /* Transition for hover effect */
    position: relative; /* Positioning for drag handle */
}

#sortable-menu > li:hover,
.submenu > li:hover {
    background-color: #e9ecef; /* Darker background on hover */
}

/* Add space between menu item and the first submenu item */
#sortable-menu > li > .submenu {
    margin-top: 10px; /* Space above the first submenu */
}

.submenu > li {
    padding-left: 20px; /* Add left padding to submenu items */
    margin-bottom: 8px; /* Add bottom space for submenu items */
}

.handle {
    cursor: grab; /* Cursor style for drag handle */
    padding-right: 10px; /* Space between the handle and text */
    display: inline-block; /* Ensure handle is inline with text */
    color: #6c757d; /* Color for handle icon */
}

/* Comment Discussions  Style */

.comment-thread {
    margin: auto;
    padding: 0 30px;
    border: 1px solid transparent;
}

.m-0 {
    margin: 0;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Comment styles */
.comment {
    position: relative;
    margin: 20px auto;
}

.comment-heading {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 14px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-info {
    color: rgba(0, 0, 0, 0.5);
}

.comment-author {
    color: rgba(0, 0, 0, 0.85);
    font-weight: bold;
    text-decoration: none;
}

.comment-author:hover {
    text-decoration: underline;
}

.replies {
    margin-left: 20px;
}

/* Comment border link styles */
.comment-border-link {
    display: block;
    position: absolute;
    top: 50px;
    left: 0;
    width: 12px;
    height: calc(100% - 50px);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    background-color: rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
}

.comment-border-link:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.comment-body {
    padding: 0 20px;
    padding-left: 28px;
}

.replies {
    margin-left: 28px;
}

/* Toggleable comment styles */
details.comment summary {
    position: relative;
    list-style: none;
    cursor: pointer;
}

details.comment summary::-webkit-details-marker {
    display: none;
}

details.comment:not([open]) .comment-heading {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.comment-heading::after {
    display: inline-block;
    position: absolute;
    right: 5px;
    align-self: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
}

.comment-heading {
    position: relative;
    padding-right: 20px; /* Space for the chevron */
}
.comment-heading {
    position: relative;
    padding-right: 20px;
}

.comment-heading::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: translateY(-50%) rotate(45deg); /* Arrow pointing down */
    transition: transform 0.3s ease;
}

/* Arrow points up when the details element is open */
details[open] .comment-heading::after {
    transform: translateY(-50%) rotate(-135deg); /* Arrow pointing up */
}

/* Button styles */
.comment-body button {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-size: 14px;
    padding: 4px 8px;
    color: rgba(0, 0, 0, 0.85);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.comment-body button:hover,
.comment-body button:focus,
.comment-body button:active {
    background-color: #ecf0f1;
}

/* Comment form styles */
.comment-form-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}
.comment-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.comment-actions .btn i {
    font-size: 1.25rem;
    vertical-align: middle;
}

.attachment-preview-container {
    position: relative;
}

.attachment-preview {
    display: none;
    position: relative;
    bottom: 100%;
    left: 0;
    background-color: #fff;
    /* border: 0.5px solid #ddd;
    border-radius: 4px; */
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
    padding: 10px;
    z-index: 1000;
}

.attachment-preview img {
    max-width: 200px;
    max-height: 200px;
}
.comment-heading {
    transition: all 0.3s ease-in-out;
}

.comment-body {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

details[open] .comment-body {
    max-height: 100vh;
    padding: 20px;
}
/* Mention */
.tribute-container {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 300px;
    max-width: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    z-index: 1200000;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tribute-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tribute-container li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.tribute-container li.highlight,
.tribute-container li:hover {
    background-color: #f0f7ff;
    color: #0066cc;
}

.tribute-container li span {
    font-weight: 600;
    color: #0066cc;
    margin-right: 5px;
}

.tribute-container li.no-match {
    cursor: default;
    color: #999999;
    padding: 15px;
    text-align: center;
    font-style: italic;
}

.tribute-container .menu-highlighted {
    font-weight: 600;
    background-color: #e6f2ff;
}

.tribute-container::-webkit-scrollbar {
    width: 6px;
}

.tribute-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tribute-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.tribute-container::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Add a subtle animation for smoother appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tribute-container {
    animation: fadeIn 0.2s ease-out;
}

/* Improve readability for highlighted text */
.tribute-container li.highlight span,
.tribute-container li:hover span {
    color: #004999;
}

/* Add a subtle separator between items */
.tribute-container li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}
.no-margin-p {
    margin-bottom: 0;
}
.cursor-default {
    cursor: default;
}
.text-decoration-none {
    text-decoration: none;
}

/* Time Line Css */
.timeline {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0;
    list-style: none;
}

.timeline .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.timeline .timeline-header > *:first-child {
    margin-right: 0.5rem;
}

.timeline .timeline-end-indicator {
    position: absolute;
    bottom: -1.35rem;
    left: -0.65rem;
}

.timeline .timeline-end-indicator i {
    font-size: 1.5rem;
    color: #e4e6e8;
}

.timeline .timeline-item {
    position: relative;
    padding-left: 1.4rem;
}

.timeline .timeline-item .timeline-event {
    position: relative;
    width: 100%;
    min-height: 4rem;
    background-color: #fff;
    border-radius: 0.375rem;
    padding: 0.5rem 0 0.3375rem;
}

.timeline .timeline-item .timeline-event .timeline-event-time {
    position: absolute;
    top: 1.2rem;
    font-size: 0.8125rem;
    color: #a7acb2;
}

.timeline .timeline-item .timeline-indicator,
.timeline .timeline-item .timeline-indicator-advanced {
    position: absolute;
    left: -1rem;
    top: 0.64rem;
    z-index: 2;
    height: 2rem;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
}

.timeline .timeline-item .timeline-indicator {
    box-shadow: 0 0 0 10px #f5f5f9;
}

.timeline .timeline-item .timeline-indicator-advanced {
    background-color: #fff;
    top: 0;
}

.timeline .timeline-item .timeline-point {
    position: absolute;
    left: -0.38rem;
    top: 0;
    z-index: 2;
    display: block;
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 50%;
    background-color: #696cff;
    box-shadow: 0 0 0 10px #fff;
}

.timeline .timeline-item.timeline-item-transparent .timeline-event {
    top: -0.9rem;
    background-color: transparent;
}

html:not([dir="rtl"])
    .timeline
    .timeline-item.timeline-item-transparent
    .timeline-event {
    padding-left: 0;
}

.timeline
    .timeline-item.timeline-item-transparent
    .timeline-event.timeline-event-shadow {
    padding-left: 2rem;
}

.timeline.timeline-outline .timeline-item .timeline-point {
    outline: unset;
    background-color: #fff !important;
    border: 2px solid #696cff;
}

.timeline.timeline-center .timeline-end-indicator {
    bottom: -1.4rem;
    left: 50%;
    margin-left: 0.55rem;
}

.timeline.timeline-center .timeline-item {
    width: 50%;
    clear: both;
}

.timeline.timeline-center .timeline-item.timeline-item-left,
.timeline.timeline-center
    .timeline-item:nth-of-type(odd):not(.timeline-item-left):not(
        .timeline-item-right
    ) {
    float: left;
    padding-left: 0;
    padding-right: 2.25rem;
    padding-bottom: 2.5rem;
    border-left: 0;
    border-right: 1px solid #e4e6e8;
}

.timeline.timeline-center
    .timeline-item.timeline-item-left
    .timeline-event
    .timeline-event-time,
.timeline.timeline-center
    .timeline-item:nth-of-type(odd):not(.timeline-item-left):not(
        .timeline-item-right
    )
    .timeline-event
    .timeline-event-time {
    right: -10.2rem;
}

.timeline.timeline-center .timeline-item.timeline-item-left .timeline-point,
.timeline.timeline-center
    .timeline-item:nth-of-type(odd):not(.timeline-item-left):not(
        .timeline-item-right
    )
    .timeline-point {
    left: 100%;
}

.timeline.timeline-center .timeline-item.timeline-item-right,
.timeline.timeline-center
    .timeline-item:nth-of-type(2n):not(.timeline-item-left):not(
        .timeline-item-right
    ) {
    float: right;
    right: 1px;
    padding-left: 2.25rem;
    padding-bottom: 2.5rem;
    border-left: 1px solid #e4e6e8;
}

.timeline.timeline-center
    .timeline-item.timeline-item-right
    .timeline-event
    .timeline-event-time,
.timeline.timeline-center
    .timeline-item:nth-of-type(2n):not(.timeline-item-left):not(
        .timeline-item-right
    )
    .timeline-event
    .timeline-event-time {
    left: -10.2rem;
}

.timeline.timeline-center
    .timeline-item.timeline-item-right
    .timeline-event
    .timeline-point,
.timeline.timeline-center
    .timeline-item:nth-of-type(2n):not(.timeline-item-left):not(
        .timeline-item-right
    )
    .timeline-event
    .timeline-point {
    left: 0;
}

.timeline.timeline-center .timeline-item .timeline-point {
    left: 50%;
    margin-left: -0.6875rem;
}

.timeline.timeline-center .timeline-item .timeline-point-indicator {
    left: 50%;
    margin-left: -0.3125rem;
}

.timeline.timeline-center .timeline-item:after {
    content: "";
    position: absolute;
    display: block;
    width: 2rem;
    height: 2rem;
    background-color: #fff;
    border-radius: 50%;
    inset-inline-start: -1rem;
    top: 0.64rem;
}

.timeline.timeline-advance .timeline-item .timeline-event:before,
.timeline.timeline-advance .timeline-item .timeline-event:after {
    border: transparent;
}

html:not([dir="rtl"]) .timeline:not(.timeline-center) {
    padding-left: 0.5rem;
}

html:not([dir="rtl"]) .timeline-item {
    border-left: 1px solid #e4e6e8;
}

[dir="rtl"] .timeline:not(.timeline-center) {
    padding-right: 0.5rem;
}

[dir="rtl"] .timeline:not(.timeline-center) .timeline-item {
    border-right: 1px solid #e4e6e8;
}

[dir="rtl"] .timeline:not(.timeline-center) .timeline-end-indicator {
    left: auto;
    right: -0.75rem;
}

[dir="rtl"] .timeline:not(.timeline-center) .timeline-item {
    padding-left: 0;
    padding-right: 2rem;
    border-right: 1px solid #e4e6e8;
}

[dir="rtl"]
    .timeline:not(.timeline-center)
    .timeline-item.timeline-item-transparent
    .timeline-event {
    padding-right: 0;
}

[dir="rtl"] .timeline:not(.timeline-center) .timeline-item .timeline-point {
    right: -0.38rem;
    left: auto;
}

[dir="rtl"] .timeline:not(.timeline-center) .timeline-item .timeline-indicator {
    right: -0.75rem;
    left: auto;
}

[dir="rtl"]
    .timeline:not(.timeline-center)
    .timeline-item
    .timeline-indicator-advanced {
    right: -1rem;
    left: auto;
}

@media (min-width: 768px) {
    .timeline.timeline-center
        .timeline-item.timeline-item-left
        .timeline-indicator,
    .timeline.timeline-center
        .timeline-item:nth-of-type(odd):not(.timeline-item-left):not(
            .timeline-item-right
        )
        .timeline-indicator {
        left: calc(100% - 1rem);
    }

    .timeline.timeline-center .timeline-item.timeline-item-left:after,
    .timeline.timeline-center
        .timeline-item:nth-of-type(odd):not(.timeline-item-left):not(
            .timeline-item-right
        ):after {
        inset-inline-start: calc(100% - 1rem);
    }
}

@media (max-width: 767.98px) {
    .timeline.timeline-center .timeline-end-indicator {
        left: -2px;
    }

    .timeline.timeline-center .timeline-item {
        border-right: 0 !important;
        left: 1rem;
        float: left !important;
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 1.5rem !important;
    }

    .timeline.timeline-center .timeline-item:not(:last-child) {
        border-left: 1px solid #e4e6e8 !important;
    }

    .timeline.timeline-center
        .timeline-item
        .timeline-event
        .timeline-event-time {
        top: -1.7rem;
        left: 0 !important;
        right: auto !important;
    }

    .timeline.timeline-center .timeline-item .timeline-point {
        left: -0.7rem !important;
        margin-left: 0 !important;
    }

    .timeline.timeline-center .timeline-item .timeline-point-indicator {
        left: 0 !important;
        margin-left: -0.3125rem !important;
    }

    [dir="rtl"] .timeline.timeline-center .timeline-item {
        border-left: 0 !important;
        right: 1rem !important;
    }

    [dir="rtl"] .timeline.timeline-center .timeline-item:not(:last-child) {
        border-right: 1px solid #e4e6e8 !important;
    }

    [dir="rtl"] .timeline.timeline-center .timeline-item {
        float: right !important;
        width: 100%;
        padding-right: 3.5rem !important;
        padding-left: 1.5rem !important;
    }

    [dir="rtl"]
        .timeline.timeline-center
        .timeline-item
        .timeline-event
        .timeline-event-time {
        top: -1.7rem;
        right: 0 !important;
        left: auto !important;
    }

    [dir="rtl"] .timeline.timeline-center .timeline-item .timeline-point {
        right: -0.7rem !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    [dir="rtl"] .timeline .timeline-item .timeline-indicator,
    [dir="rtl"] .timeline .timeline-item .timeline-indicator-advanced {
        left: auto;
        right: -0.6875rem;
    }

    [dir="rtl"] .timeline-center .timeline-item {
        padding-left: 0;
        padding-right: 3rem;
    }
}

@media (max-width: 575.98px) {
    .timeline .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.timeline .timeline-point-secondary {
    background-color: #8592a3 !important;
    outline: 3px solid rgba(133, 146, 163, 0.12);
}

.timeline.timeline-outline .timeline-point-secondary {
    border: 2px solid #8592a3 !important;
}

.timeline .timeline-indicator-secondary {
    background-color: #8592a329;
}

.timeline .timeline-indicator-secondary i {
    color: #8592a3 !important;
}

.timeline .timeline-point-success {
    background-color: #71dd37 !important;
    outline: 3px solid rgba(113, 221, 55, 0.12);
}

.timeline.timeline-outline .timeline-point-success {
    border: 2px solid #71dd37 !important;
}

.timeline .timeline-indicator-success {
    background-color: #71dd3729;
}

.timeline .timeline-indicator-success i {
    color: #71dd37 !important;
}

.timeline .timeline-point-info {
    background-color: #03c3ec !important;
    outline: 3px solid rgba(3, 195, 236, 0.12);
}

.timeline.timeline-outline .timeline-point-info {
    border: 2px solid #03c3ec !important;
}

.timeline .timeline-indicator-info {
    background-color: #03c3ec29;
}

.timeline .timeline-indicator-info i {
    color: #03c3ec !important;
}

.timeline .timeline-point-warning {
    background-color: #ffab00 !important;
    outline: 3px solid rgba(255, 171, 0, 0.12);
}

.timeline.timeline-outline .timeline-point-warning {
    border: 2px solid #ffab00 !important;
}

.timeline .timeline-indicator-warning {
    background-color: #ffab0029;
}

.timeline .timeline-indicator-warning i {
    color: #ffab00 !important;
}

.timeline .timeline-point-danger {
    background-color: #ff3e1d !important;
    outline: 3px solid rgba(255, 62, 29, 0.12);
}

.timeline.timeline-outline .timeline-point-danger {
    border: 2px solid #ff3e1d !important;
}

.timeline .timeline-indicator-danger {
    background-color: #ff3e1d29;
}

.timeline .timeline-indicator-danger i {
    color: #ff3e1d !important;
}

.timeline .timeline-point-dark {
    background-color: #2b2c40 !important;
    outline: 3px solid rgba(43, 44, 64, 0.12);
}

.timeline.timeline-outline .timeline-point-dark {
    border: 2px solid #2b2c40 !important;
}

.timeline .timeline-indicator-dark {
    background-color: #2b2c4029;
}

.timeline .timeline-indicator-dark i {
    color: #2b2c40 !important;
}

.timeline .timeline-point-gray {
    background-color: #22303e80 !important;
    outline: 3px solid rgba(34, 48, 62, 0.12);
}

.timeline.timeline-outline .timeline-point-gray {
    border: 2px solid rgba(34, 48, 62, 0.5) !important;
}

.timeline .timeline-indicator-gray {
    background-color: #22303e29;
}

.timeline .timeline-indicator-gray i {
    color: #22303e80 !important;
}

.h-2vh {
    height: 2vh;
}
.top-13 {
    top: -13px !important;
}

.no-shadow {
    box-shadow: none !important;
}
#color-legend {
    margin-top: 15px;
    font-size: 14px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.legend-title {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.legend-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Todos Enhancements */
/* Todo-specific classes with renamed general classes */
.todo-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--bs-body-color);
    height: 100%;
    background-color: #fff;
}

.todo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.todo-card-header {
    border-bottom: none;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.todo-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-dark));
}

.todo-gradient-success {
    background: linear-gradient(135deg, var(--bs-success), #059669);
}

.todo-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
}

.todo-header-icon i {
    font-size: 24px;
    color: white;
}

.todo-header-decoration {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.todo-header-decoration:before {
    content: "";
    position: absolute;
    right: -40px;
    top: 40px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.todo-counter {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.todo-card-body {
    padding: 25px;
}

.todo-list-container {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 5px;
}

.todo-list-container::-webkit-scrollbar {
    width: 6px;
}

.todo-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.todo-list-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 6px;
}

.todo-list-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.todo-item {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: var(--bs-body-bg);
    border-left: 5px solid transparent;
    box-shadow: var(--bs-secondary);
    position: relative;
    overflow: hidden;
}

.todo-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--bs-body-color);
}

.todo-item:last-child {
    margin-bottom: 0;
}

.todo-item.todo-priority-high {
    border-left-color: var(--bs-danger);
}

.todo-item.todo-priority-medium {
    border-left-color: var(--bs-warning);
}

.todo-item.todo-priority-low {
    border-left-color: var(--bs-success);
}

.todo-check-input {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    margin-top: 0;
}

.todo-check-input:checked {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.todo-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.todo-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 16px;
}

.todo-item.todo-completed .todo-title {
    text-decoration: line-through;
    color: #6b7280;
}

.todo-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.todo-meta-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.todo-meta-item i {
    margin-right: 5px;
    font-size: 16px;
}

.todo-priority-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.todo-bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--bs-danger);
}

.todo-bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--bs-warning);
}

.todo-bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--bs-success);
}

.todo-actions-container {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.todo-item:hover .todo-actions-container {
    opacity: 1;
}

.todo-action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.2s;
}

.todo-action-btn:hover {
    background-color: #f3f4f6;
}

.todo-action-btn.todo-delete:hover {
    background-color: #fee2e2;
    color: var(--bs-danger);
}

.todo-action-btn.todo-edit:hover {
    background-color: #e0e7ff;
    color: var(--bs-primary);
}

.todo-add-btn {
    background: linear-gradient(
        135deg,
        var(--bs-primary),
        var(--bs-body-color)
    );
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.todo-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.todo-drag-handle {
    cursor: move;
    color: #9ca3af;
}

.todo-completed-tag {
    display: flex;
    align-items: center;
    color: var(--bs-success);
    font-weight: 500;
    font-size: 13px;
}

.todo-view-all-btn {
    background-color: transparent;
    border: 2px solid var(--bs-success);
    color: var(--bs-success);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
}

.todo-view-all-btn:hover {
    background-color: var(--bs-success);
    color: white;
}

.todo-progress {
    margin-bottom: 25px;
}

.todo-progress-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.todo-progress-label {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.todo-progress-value {
    font-weight: 600;
}

.todo-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.todo-empty-state-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.todo-empty-state-text {
    color: #6b7280;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .todo-item {
        padding: 14px;
    }

    .todo-card-header,
    .todo-card-body {
        padding: 20px;
    }
}

/* Custom Select2 Styling for Mapping Fields */
#mapping-body .select2-container {
    display: block;
    position: relative;
}

#mapping-body .select2-container--default .select2-selection--single {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    height: 31px;
    width: 100%;
    background-color: #fff;
}

#mapping-body
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 31px;
    padding-left: 8px;
    color: #495057;
}

#mapping-body
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 29px;
    position: absolute;
    right: 1px;
    top: 1px;
}

#mapping-body .select2-container--default .select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1056; /* Higher z-index to ensure dropdown appears above other elements */
    width: 100% !important;
}

#mapping-body
    .select2-container--default
    .select2-search--dropdown
    .select2-search__field {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 4px 8px;
    width: 100%;
}

#mapping-body .select2-container--default .select2-results__option {
    padding: 6px 12px;
}

#mapping-body
    .select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff;
}

/* Fix for dropdown width */
#mapping-body .select2-container--default .select2-dropdown {
    min-width: 200px;
    width: auto !important;
}

/* Fix for table cell layout */
#mapping-body table td {
    position: relative;
    vertical-align: middle;
}

/* Ensure the select container doesn't overflow */
#mapping-body table td .select2-container {
    min-width: 200px;
}
/* Style for the dragged (ghost) item */
.sortable-ghost {
    opacity: 0.7;
    background: #f7f7f7;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

/* Style for the placeholder where the item will be dropped */
.sortable-placeholder {
    background: #e9ecef;
    border: 2px dashed #007bff;
    height: 100%; /* Matches the height of the dragged item */
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Ensure items stack properly on smaller screens */
#dashboard-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between items */
}

.draggable-item {
    flex: 1 1 calc(33.333% - 15px); /* 3 items per row, with gap adjustment */
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .draggable-item {
        flex: 1 1 calc(50% - 15px); /* 2 items per row */
    }
}

@media (max-width: 576px) {
    .draggable-item {
        flex: 1 1 100%; /* 1 item per row */
    }
}

.draggable-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sortable-ghost {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.draggable-item:active {
    cursor: grabbing;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* lead-forms/embed */

/* Preview Box Styles */
.preview-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.preview-embed-icon {
    width: 54px !important;
    border-radius: 50px;
    cursor: pointer;
    padding: 10px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.preview-embed-icon:hover {
    transform: translateY(-5px);
}

.preview-lead-form-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1051;
    overflow: hidden;
}

.preview-lead-form-container.active {
    display: flex;
}

.embed-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.375rem;
}

.modal-lg {
    max-width: 800px;
}

/* Preview Floating Widget Styles */
.preview-lead-form-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1050;
}

.preview-lead-form-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.preview-lead-form-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1051;
    overflow: hidden;
}

.preview-lead-form-container.active {
    display: flex;
}

.lead-form-header {
    padding: 15px 20px;

    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-form-header h5 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lead-form-body {
    flex: 1;
    overflow: hidden;
}

.lead-form-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .embed-container {
        height: 400px;
    }

    .preview-lead-form-container {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 90px;
        right: 20px;
        left: 20px;
    }

    .preview-lead-form-icon {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}
/* Taskify Ecosystem Drawer Custom Styles */

/* Floating Action Button */
.taskify-fab {
    position: fixed;
    top: 50%;
    right: 20px;
    width: 56px;
    height: 56px;
    z-index: 1050;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
    color: #fff;
    background: linear-gradient(135deg, #696cff, #ff3e1d);
    border: none;
}

/* Product Card Hover */
.taskify-product-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Buttons Hover */
.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease-in-out;
}

/* Product Icon Sizing */
.taskify-product-icon {
    font-size: 2.5rem;
}

/* Product Image Styling */
.taskify-product-image {
    height: 140px;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    #taskifyEcosystemDrawer {
        --bs-offcanvas-width: 100vw;
    }
    .taskify-fab {
        right: 15px;
        width: 48px;
        height: 48px;
    }
    .taskify-fab i {
        font-size: 1.2rem;
    }
}

/* Offcanvas CSS */
/* Custom Responsive Offcanvas Widths - Safe for older Bootstrap versions */
.offcanvas {
    width: 420px !important;
    z-index: 1088 !important;
    /* Default mobile width */
}

.offcanvas-backdrop {
    z-index: 1087 !important;
}

/* Tablet and up (≥768px) */
@media (min-width: 768px) {
    .offcanvas-md {
        width: 500px !important;
    }
}

/* Desktop and up (≥992px) */
@media (min-width: 992px) {
    .offcanvas-lg {
        width: 600px !important;
    }
}

/* Large desktop and up (≥1200px) */
@media (min-width: 1200px) {
    .offcanvas-xl {
        width: 700px !important;
    }
}

/* Extra large desktop and up (≥1400px) */
@media (min-width: 1400px) {
    .offcanvas-xxl {
        width: 800px !important;
    }
}

/* Custom width utilities - use these for specific sizes */
.offcanvas-w-400 {
    width: 400px !important;
}

.offcanvas-w-450 {
    width: 450px !important;
}

.offcanvas-w-500 {
    width: 500px !important;
}

.offcanvas-w-550 {
    width: 550px !important;
}

.offcanvas-w-600 {
    width: 600px !important;
}

.offcanvas-w-650 {
    width: 650px !important;
}

.offcanvas-w-700 {
    width: 700px !important;
}

.offcanvas-w-750 {
    width: 750px !important;
}

.offcanvas-w-800 {
    width: 800px !important;
}

/* Percentage-based widths for ultra-responsive design */
.offcanvas-w-30 {
    width: 30% !important;
    min-width: 320px;
}

.offcanvas-w-35 {
    width: 35% !important;
    min-width: 350px;
}

.offcanvas-w-40 {
    width: 40% !important;
    min-width: 400px;
}

.offcanvas-w-45 {
    width: 45% !important;
    min-width: 450px;
}

.offcanvas-w-50 {
    width: 50% !important;
    min-width: 500px;
}

/* Responsive combination classes */
.offcanvas-responsive {
    width: 100% !important;
    /* Full width on mobile */
    max-width: 420px !important;
}

@media (min-width: 576px) {
    .offcanvas-responsive {
        width: 90% !important;
        max-width: 500px !important;
    }
}

@media (min-width: 768px) {
    .offcanvas-responsive {
        width: 600px !important;
        max-width: none !important;
    }
}

@media (min-width: 992px) {
    .offcanvas-responsive {
        width: 700px !important;
    }
}

@media (min-width: 1200px) {
    .offcanvas-responsive {
        width: 800px !important;
    }
}

.offcanvas-header {
    border-bottom: 1px solid rgba(67, 89, 113, 0.1);
    padding: 1.5rem;
}

.offcanvas-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #566a7f;
}

.offcanvas-body {
    padding: 1.5rem;
}
.calendar-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.calendar-sidebar {
    width: 250px;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    flex-shrink: 0;
}

.calendar-main {
    flex: 1;
    min-width: 0;
}

.fc-event {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 0.5rem;
}

.fc .fc-toolbar-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.fc .fc-button {
    background-color: #7367f0 !important;
    border-color: #7367f0 !important;
}

.fc .fc-button-active {
    background-color: #5e50ee !important;
}

/* Dynamic status and priority colors */
.fc-event.status-color {
    border: none !important;
}

/* Mini calendar styles */
.mini-calendar {
    margin-bottom: 1.5rem;
}

.mini-calendar .form-control {
    cursor: pointer;
}

/* Filter section styles */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h6 {
    color: #5e5873;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Status and priority color indicators */
.color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Filter counters */
.filter-counter {
    font-size: 0.75rem;
    background-color: #f8f9fa;
    color: #6e6b7b;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}

/* Loading state */
.loading-filters {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 20px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.filter-section .form-check {
    margin-bottom: 0.5rem;
}

.filter-section .form-check-input:checked {
    background-color: #7367f0;
    border-color: #7367f0;
}

.filter-section .form-check-label {
    font-size: 0.9rem;
    color: #6e6b7b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .calendar-sidebar {
        width: 100%;
    }

    .calendar-wrapper {
        flex-direction: column;
    }
}

.statisticsDiv .card-body ul {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: none;  
    -ms-overflow-style: none;
}
.statisticsDiv .card-body ul::-webkit-scrollbar {
    display: none;
}


/* Dark mode rules moved to assets/css/dark-mode.css. */
.btn.delete {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.btn.delete i {
    color: #EF4444 !important;
}

.statisticsDiv {
    height: auto !important;
}

#dashboard-items {
    column-gap: 0;
    row-gap: 15px;
}

#dashboard-items > .draggable-item {
    flex: 0 0 auto;
}

.dashboard-statistics-item {
    display: flex;
}

.dashboard-statistics-item > .statisticsDiv {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100% !important;
}

.dashboard-statistics-item > .statisticsDiv .card-body {
    flex: 1 1 auto;
    min-height: 0;
}

.dashboard-statistics-item > .statisticsDiv .card-body ul {
    max-height: 250px;
    overflow-y: auto;
}

.dashboard-todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.dashboard-todo-item {
    align-items: flex-start;
    border-bottom: 1px solid rgba(67, 89, 113, 0.10);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    padding-bottom: 0.875rem;
}

.dashboard-todo-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-todo-check {
    padding-top: 0.125rem;
}

.dashboard-todo-content {
    min-width: 0;
}

.dashboard-todo-title {
    line-height: 1.35;
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.dashboard-todo-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
    padding-top: 0.05rem;
}

.dashboard-todo-actions a {
    align-items: center;
    border-radius: 6px;
    color: #566a7f;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.dashboard-todo-actions a:hover {
    background: rgba(67, 89, 113, 0.08);
}

.dashboard-todo-empty {
    align-items: center;
    color: #8592a3;
    display: flex;
    justify-content: center;
    min-height: 110px;
    text-align: center;
}

#recent-activity {
    display: flex;
    flex-direction: column;
    height: 520px !important;
}

#recent-activity .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0.75rem;
}

#recent-activity .card-body ul {
    max-height: none;
    overflow: visible;
}

#recent-activity .card-footer {
    background: transparent;
    border-top: 1px solid rgba(67, 89, 113, 0.12);
    padding-bottom: 1rem;
    padding-top: 0.75rem;
}

#recent-activity .card-footer .btn {
    margin-top: 0 !important;
}

.dashboard-activity-list {
    list-style: none;
}

.dashboard-activity-item {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: 12px minmax(0, 1fr);
    padding-bottom: 1.125rem;
    position: relative;
}

.dashboard-activity-item:not(:last-child)::before {
    background: rgba(105, 108, 255, 0.18);
    bottom: 0.25rem;
    content: "";
    left: 5px;
    position: absolute;
    top: 1.1rem;
    width: 1px;
}

.dashboard-activity-point {
    border-radius: 50%;
    display: block;
    height: 10px;
    margin-top: 0.25rem;
    position: relative;
    width: 10px;
    z-index: 1;
}

.dashboard-activity-content {
    min-width: 0;
}

.dashboard-activity-title {
    color: #566a7f;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
}

.dashboard-activity-meta {
    align-items: center;
    color: #a1acb8;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    gap: 0.35rem 0.75rem;
}

.dashboard-activity-empty {
    align-items: center;
    color: #8592a3;
    display: flex;
    justify-content: center;
    min-height: 180px;
    text-align: center;
}

.card-body .total-badge{
    font-weight: bold !important;
    font-size: 0.9375rem;
}

#previewFormVisitModal .modal-body {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}

.form-visit-preview-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-visit-preview-details {
    min-width: 0;
}

.form-visit-detail-hero,
.form-visit-detail-section {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 1.25rem;
}

.form-visit-detail-hero {
    background: #f8fafc;
}

.form-visit-detail-label,
.form-visit-field small,
.form-visit-meta-item small {
    color: #7d8998;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
}

.form-visit-meta-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-visit-meta-item,
.form-visit-field {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    min-width: 0;
    padding: 0.85rem 0.95rem;
}

.form-visit-meta-item strong,
.form-visit-field strong {
    color: #334155;
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.form-visit-section-title {
    align-items: center;
    color: #334155;
    display: flex;
    font-size: 0.98rem;
    font-weight: 700;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.form-visit-section-title i {
    align-items: center;
    background: #f4f7fb;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    color: #64748b;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.form-visit-field-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-visit-field-wide {
    grid-column: 1 / -1;
}

.form-visit-action-section {
    background: #f6f8ff;
}

.form-visit-photo-panel {
    background: #f8fafc;
}

.form-visit-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.form-visit-photo-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.form-visit-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.form-visit-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-visit-photo-card:hover .form-visit-photo-img {
    transform: scale(1.04);
}

.form-visit-photo-card:hover .form-visit-photo-overlay {
    opacity: 1;
}

.form-visit-photo-zoom {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #233446;
    font-size: 1.5rem;
}

.form-visit-photo-empty {
    min-height: 220px;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #697a8d;
}

.form-visit-photo-empty .bx {
    font-size: 3rem;
    color: #a8b1bd;
    margin-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
    #previewFormVisitModal .modal-content {
        padding: 1rem !important;
    }

    .form-visit-detail-hero,
    .form-visit-detail-section {
        padding: 1rem;
    }

    .form-visit-field-grid,
    .form-visit-meta-grid {
        grid-template-columns: 1fr;
    }

    .form-visit-photo-grid {
        grid-template-columns: 1fr;
    }
}


/* ===============================
MODAL CONTAINER
=============================== */

#modalBiaya .modal-content{
    border:none !important;
    border-radius:16px !important;
    background:#f6f8fb !important;
    box-shadow:0 25px 60px rgba(0,0,0,0.12) !important;
    }
    
    #modalBiaya .modal-header{
    border-bottom:1px solid #eef2f7 !important;
    padding:20px 24px !important;
    padding-right: 430px !important;
    background:white !important;
    position: relative !important;
    }

    #modalBiaya .modal-biaya-status-badges{
    align-items:center !important;
    display:inline-flex !important;
    flex-wrap:wrap !important;
    gap:0.5rem !important;
    justify-content:flex-end !important;
    position:absolute !important;
    right:64px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    }

    #modalBiaya .btn-close{
    margin:0 !important;
    position:absolute !important;
    right:24px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    }

    @media (max-width: 767.98px){
    #modalBiaya .modal-header{
    align-items:flex-start !important;
    display:flex !important;
    flex-direction:column !important;
    gap:0.75rem !important;
    padding-right:60px !important;
    }

    #modalBiaya .modal-biaya-status-badges{
    position:static !important;
    transform:none !important;
    justify-content:flex-start !important;
    }
    }
    
    #modalBiaya .modal-title{
    font-size:17px !important;
    font-weight:600 !important;
    color:#1e293b !important;
    }
    
    #modalBiaya .modal-body{
    padding:26px !important;
    }
    
    /* ===============================
    SECTION TITLE
    =============================== */
    
    #modalBiaya h6{
    font-size:12px !important;
    letter-spacing:.6px !important;
    text-transform:uppercase !important;
    color:#64748b !important;
    margin-top:22px !important;
    margin-bottom:10px !important;
    font-weight:600 !important;
    }
    
    /* ===============================
    CARD STYLE
    =============================== */
    
    #modalBiaya table{
    background:white !important;
    border-radius:12px !important;
    overflow:hidden !important;
    box-shadow:0 3px 14px rgba(0,0,0,0.05) !important;
    margin-bottom:20px !important;
    }
    
    #modalBiaya .table-bordered{
    border:none !important;
    }
    
    #modalBiaya .table-bordered td,
    #modalBiaya .table-bordered th{
    border:1px solid #f1f5f9 !important;
    }
    
    /* ===============================
    TABLE HEADER
    =============================== */
    
    #modalBiaya thead th{
    font-size:11px !important;
    letter-spacing:.6px !important;
    text-transform:uppercase !important;
    color:#64748b !important;
    background:#f8fafc !important;
    font-weight:600 !important;
    }
    
    /* ===============================
    TABLE DATA
    =============================== */
    
    #modalBiaya td{
    font-size:13px !important;
    color:#334155 !important;
    padding:10px 14px !important;
    }
    
    /* ===============================
    EMPLOYEE INFO TABLE
    =============================== */
    
    #modalBiaya .table-sm td:first-child{
    font-weight:600 !important;
    color:#64748b !important;
    width:30% !important;
    background:#fafbfd !important;
    }
    
    /* ===============================
    ESTIMASI TOTAL
    =============================== */
    
    #modalBiaya .table-warning{
    background:#fff7e6 !important;
    font-weight:600 !important;
    }
    
    #modalBiaya .table-warning td{
    color:#92400e !important;
    }
    
    /* ===============================
    SETTLEMENT TOTAL
    =============================== */
    
    #modalBiaya .table-success{
    background:#ecfdf5 !important;
    font-weight:600 !important;
    }
    
    #modalBiaya .table-success td{
    color:#065f46 !important;
    }
    
    /* ===============================
    GRAND TOTAL BOX
    =============================== */
    
    #modalBiaya .alert-secondary{
    background:white !important;
    border:none !important;
    border-radius:14px !important;
    box-shadow:0 3px 14px rgba(0,0,0,0.06) !important;
    padding:18px 20px !important;
    }
    
    #modalBiaya #view-grand-total{
    font-size:22px !important;
    font-weight:700 !important;
    color:#0f172a !important;
    }
    
    /* ===============================
    SELISIH BOX
    =============================== */
    
    #modalBiaya .alert-light{
    background:white !important;
    border:none !important;
    border-radius:14px !important;
    box-shadow:0 3px 14px rgba(0,0,0,0.06) !important;
    padding:18px 20px !important;
    }
    
    #modalBiaya #view-selisih-uang-harian{
    font-size:22px !important;
    font-weight:700 !important;
    color:#1e293b !important;
    }
    
    /* ===============================
    ATTACHMENT CARD
    =============================== */
    
    #modalBiaya .card{
    border:none !important;
    border-radius:14px !important;
    box-shadow:0 3px 16px rgba(0,0,0,0.06) !important;
    }
    
    #modalBiaya .card-header{
    background:#f8fafc !important;
    font-weight:600 !important;
    font-size:13px !important;
    border-bottom:1px solid #eef2f7 !important;
    }
    
    #modalBiaya .list-group-item{
    border:none !important;
    border-bottom:1px solid #f1f5f9 !important;
    font-size:13px !important;
    transition:all .2s ease !important;
    }
    
    #modalBiaya .list-group-item:hover{
    background:#f8fafc !important;
    padding-left:22px !important;
    }
    
    /* ===============================
    ACCORDION LOG
    =============================== */
    
    #modalBiaya .accordion-item{
    border:none !important;
    border-radius:12px !important;
    overflow:hidden !important;
    box-shadow:0 3px 14px rgba(0,0,0,0.05) !important;
    }
    
    #modalBiaya .accordion-button{
    font-size:13px !important;
    font-weight:600 !important;
    background:white !important;
    }
    
    #modalBiaya .accordion-button:not(.collapsed){
    background:#f8fafc !important;
    }
    
    #modalBiaya .accordion-body{
    padding:0 !important;
    }

    /* NOTICE REJECT / PEMBERITAHUAN */

.table-notice {
    background: #fff5f5 !important;
    border: 1px solid #f5c2c7 !important;
    }
    
    .table-notice th{
    color: #b02a37 !important;
    font-weight: 600 !important;
    background: #fff1f1 !important;
    }
    
    .table-notice td{
    color: #842029 !important;
    font-weight: 500 !important;
    background: #fff5f5 !important;
    }
    
    .table-notice tr{
    border-color: #f5c2c7 !important;
    }

    #createClientModal .modal-body{
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

    /* =========================
 | TASKIFY ACTION ICON
 ========================= */
.action-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.action-icon i {
    font-size: 18px;
}

/* hover effect */
.action-icon:hover {
    background: rgba(0,0,0,0.06);
}

/* disabled */
.action-icon.disabled,
.action-icon:disabled {
    opacity: .35;
    pointer-events: none;
}
/* Menu */

/* SIDEBAR BACKGROUND */
#layout-menu {
    background: linear-gradient(
        180deg,
        #cf7416 0%,
        #38456d 45%,
        #1f2d56 100%
    ) !important;
    border-right: none;
    box-shadow: 4px 0 15px rgba(0,0,0,0.12);
}

/* Semua text & icon putih */
#layout-menu,
#layout-menu .menu-link,
#layout-menu .menu-icon,
#layout-menu .menu-header-text,
#layout-menu .app-brand-text,
#layout-menu .bx,
#layout-menu span,
#layout-menu div,
#layout-menu a {
    color: #ffffff !important;
}

/* Hover menu */
#layout-menu .menu-link:hover {
    background: rgba(255,255,255,0.10) !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

/* Active menu */
#layout-menu .menu-item.active > .menu-link {
    background: rgba(255,255,255,0.16) !important;
    border-radius: 12px;
    font-weight: 600;
}

/* Header category */
#layout-menu .menu-header {
    margin-top: 10px;
}

#layout-menu .menu-header-text {
    opacity: 0.75;
    letter-spacing: 1px;
    font-size: 11px;
}

/* Workspace button */
#layout-menu .btn-primary {
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

#layout-menu .btn-primary:hover {
    background: rgba(255,255,255,0.20) !important;
}

#layout-menu .sidebar-workspace-switcher {
    display: flex;
    width: 100%;
}

#layout-menu .workspace-switcher-button {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

#layout-menu .workspace-switcher-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search input */
#layout-menu .custom-search-input {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border-radius: 10px;
}

#layout-menu .custom-search-input::placeholder {
    color: rgba(255,255,255,0.65) !important;
}

/* Dropdown submenu */
#layout-menu .menu-sub {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin: 5px 8px;
}

/* Toggle button mobile */
#layout-menu .layout-menu-toggle i {
    color: #fff !important;
}

/* Divider */
#layout-menu hr.dropdown-divider {
    border-color: rgba(255,255,255,0.08);
}

/* Logo spacing */
#layout-menu .app-brand {
    align-items: center;
    display: flex;
    justify-content: center;
    height: auto;
    min-height: 114px;
    padding: 0 2px 8px;
}

#layout-menu .app-brand-link {
    width: 100%;
}

#layout-menu .sidebar-logo-card {
    align-items: center;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(23, 55, 101, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 0 auto;
    max-width: none;
    min-height: 104px;
    padding: 14px 16px;
    width: calc(100% - 4px);
}

#layout-menu .sidebar-logo-card img {
    display: block;
    height: auto;
    object-fit: contain;
}

#layout-menu .sidebar-logo-slot {
    align-items: center;
    display: flex;
    flex: 1 1 0;
    height: 68px;
    justify-content: center;
    min-width: 0;
}

#layout-menu .sidebar-logo-main,
#layout-menu .sidebar-logo-workspace {
    max-height: 62px;
    max-width: 96px;
}

#layout-menu .sidebar-logo-divider {
    align-self: stretch;
    background: linear-gradient(
        180deg,
        rgba(67, 89, 113, 0),
        rgba(67, 89, 113, 0.18),
        rgba(67, 89, 113, 0)
    );
    border-radius: 999px;
    flex: 0 0 1px;
    min-height: 62px;
}

#layout-menu .sidebar-logo-card .sidebar-logo-main {
    transform: scale(1.08);
}

#layout-menu .sidebar-logo-card .sidebar-logo-workspace {
    transform: scale(1.1);
}

@media (max-width: 1199.98px) {
    #layout-menu {
        border-bottom-right-radius: 18px;
        border-top-right-radius: 18px;
        display: flex;
        flex-direction: column;
        height: 100dvh !important;
        max-height: 100dvh !important;
        max-width: calc(100vw - 24px);
        overflow-x: hidden;
        overflow-y: hidden !important;
        width: min(320px, calc(100vw - 56px)) !important;
    }

    #layout-menu .app-brand {
        height: auto;
        justify-content: center;
        margin-top: 0;
        padding: 0 3.75rem 0.75rem 0.2rem;
        position: relative;
    }

    #layout-menu .app-brand-link {
        min-width: 0;
    }

    #layout-menu .app-brand-logo {
        min-width: 0;
    }

    #layout-menu .app-brand-logo img {
        height: auto;
        max-height: 56px;
        max-width: 175px;
        width: auto !important;
    }

    #layout-menu .sidebar-logo-card {
        min-height: 96px;
        padding: 12px 14px;
        width: calc(100% - 4px);
    }

    #layout-menu .sidebar-logo-slot {
        height: 60px;
    }

    #layout-menu .sidebar-logo-main,
    #layout-menu .sidebar-logo-workspace {
        max-height: 54px;
        max-width: 88px;
    }

    #layout-menu .app-brand .layout-menu-toggle {
        align-items: center;
        background: rgba(255, 255, 255, 0.16) !important;
        border: 1px solid rgba(255, 255, 255, 0.24) !important;
        border-radius: 10px;
        box-shadow: none;
        display: inline-flex !important;
        height: 34px;
        justify-content: center;
        left: auto !important;
        padding: 0;
        position: absolute;
        right: 1rem;
        top: 1.25rem;
        width: 34px;
    }

    #layout-menu .app-brand .layout-menu-toggle i {
        height: auto;
        line-height: 1;
        width: auto;
    }

    #layout-menu .menu-inner {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: 0.5rem;
    }
}

/* DROPDOWN CONTAINER */
.dropdown-menu {
    background: rgba(31, 45, 86, 0.96) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 18px !important;
    padding: 10px !important;
    min-width: 280px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    animation: fadeDropdown 0.22s ease;
}

@keyframes fadeDropdown {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ITEM */
.dropdown-menu .dropdown-item {
    color: #fff !important;
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.18s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* HOVER */
.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(
        90deg,
        rgba(207,116,22,0.18),
        rgba(255,255,255,0.05)
    ) !important;
    transform: translateX(3px);
}

/* ICON */
.dropdown-menu .menu-icon {
    font-size: 18px;
    min-width: 20px;
}

/* ACTIVE WORKSPACE */
.dropdown-menu .bx-check-square {
    color: #ffb347 !important;
}

/* DEFAULT BADGE */
.dropdown-menu .badge.bg-primary {
    background: linear-gradient(90deg, #cf7416, #f4a340) !important;
    border: none;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 20px;
    margin-left: auto;
}

/* PRIMARY BADGE */
.dropdown-menu .badge.bg-success {
    background: rgba(67, 205, 128, 0.18) !important;
    color: #6ff0a8 !important;
    border: 1px solid rgba(111,240,168,0.2);
    border-radius: 20px;
    font-size: 10px;
}

/* DIVIDER */
.dropdown-menu .dropdown-divider {
    border-color: rgba(255,255,255,0.08) !important;
    margin: 10px 0;
}

/* CREATE / EDIT MENU SPECIAL */
.dropdown-menu .bx-plus {
    color: #ffb347 !important;
}

.dropdown-menu .bx-edit {
    color: #7db3ff !important;
}

.dropdown-menu .bx-exit {
    color: #ff7b7b !important;
}

/* REMOVE BOOTSTRAP BLUE */
.dropdown-menu .text-primary,
.dropdown-menu .text-success,
.dropdown-menu .text-warning,
.dropdown-menu .text-danger {
    color: inherit !important;
}

/* SCROLLBAR */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
}

.layout-navbar .language-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(67, 89, 113, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(67, 89, 113, 0.16) !important;
    min-width: 220px;
    padding: 0.5rem !important;
}

.layout-navbar .language-dropdown .dropdown-item {
    background: transparent !important;
    border-radius: 8px;
    color: #566a7f !important;
    display: block;
    padding: 0;
    transform: none;
}

.layout-navbar .language-dropdown .dropdown-item:hover,
.layout-navbar .language-dropdown .dropdown-item:focus {
    background: #f5f6fa !important;
    transform: none;
}

.layout-navbar .language-dropdown .dropdown-item a {
    align-items: center;
    color: #566a7f !important;
    display: flex;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
}

.layout-navbar .language-dropdown .dropdown-item:hover a,
.layout-navbar .language-dropdown .dropdown-item:focus a {
    color: #25324b !important;
}

.layout-navbar .language-dropdown .menu-icon {
    color: #8592a3 !important;
    font-size: 1rem;
    min-width: 1rem;
}

.layout-navbar .language-dropdown .bx-check-square {
    color: #696cff !important;
}

.layout-navbar .language-dropdown .dropdown-divider {
    border-color: rgba(67, 89, 113, 0.12) !important;
    margin: 0.5rem 0;
}

.layout-navbar .language-dropdown .badge {
    color: #ffffff !important;
}

#layout-menu .workspace-switcher-menu {
    max-height: min(420px, calc(100vh - 140px));
    overflow-x: hidden;
    overflow-y: auto;
}

#layout-menu .workspace-switcher-menu .dropdown-item {
    min-width: 0;
    white-space: normal;
}

#layout-menu .workspace-switcher-menu .dropdown-item .menu-icon {
    flex: 0 0 auto;
}

#layout-menu .workspace-switcher-menu .badge {
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 1199.98px) {
    #layout-menu .sidebar-workspace-switcher {
        display: block;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #layout-menu .workspace-switcher-menu {
        border-radius: 14px !important;
        margin-top: 0.5rem !important;
        max-width: 100%;
        min-width: 0;
        position: static !important;
        transform: none !important;
        width: 100%;
    }

    #layout-menu .workspace-switcher-menu.show {
        display: block;
    }

    #layout-menu .workspace-switcher-menu .dropdown-item {
        align-items: flex-start;
        line-height: 1.25;
        padding: 0.75rem 0.875rem;
        transform: none !important;
    }
}

.preview-box{

    background:#f8f9fa;

    border-radius:14px;

    padding:14px 16px;

    line-height:1.7;

    font-size:14px;

    color:#495057;

    white-space:pre-wrap;
}


.notificationwrapper {
    background: #fff !important;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Area scroll */
.notificationwrapper #unreadNotificationsContainer {
    background: #fff !important;
}

.floating-action-stack {
    position: fixed;
    right: 1.625rem;
    bottom: 0.85rem;
    z-index: 1086;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.125rem;
}

.floating-action-item,
.chat-float-trigger {
    line-height: 0;
}

.floating-action-item > span,
.floating-action-item a,
.chat-float-trigger > span,
.chat-float-trigger a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-action-stack .timer-img,
.floating-action-stack .chat-img {
    position: static;
    bottom: auto;
    right: auto;
    z-index: 1;
}

.chat-float-trigger .chat-img {
    width: 58px !important;
    height: 58px !important;
}

@media (max-width: 576px) {
    .floating-action-stack {
        right: 1rem;
        bottom: 0.75rem;
        gap: 0.85rem;
    }

    .floating-action-stack .timer-img {
        width: 50px !important;
        height: 50px !important;
    }

    .chat-float-trigger .chat-img {
        width: 52px !important;
        height: 52px !important;
        padding: 11px;
    }
}

.chat-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
    pointer-events: none;
}

.chat-unread-badge.chat-unread-pulse {
    animation: chatUnreadPulse 0.5s ease;
}

.perjalanan-dropdown-portal,
.spb-dropdown-portal {
    position: fixed !important;
    z-index: 2000000 !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(420px, calc(100vh - 24px));
    overflow-y: auto;
    transform: none !important;
    border-radius: 12px !important;
    padding: 6px !important;
}

.perjalanan-dropdown-portal .dropdown-item,
.spb-dropdown-portal .dropdown-item {
    gap: 10px;
    min-height: 38px;
    padding: 9px 12px !important;
    white-space: normal;
}

.perjalanan-dropdown-portal .dropdown-item:hover,
.spb-dropdown-portal .dropdown-item:hover {
    transform: none;
}

.perjalanan-dropdown-portal form,
.spb-dropdown-portal form {
    margin: 0;
}

.swal2-container.pd-swal-container {
    z-index: 2147483000 !important;
}

.swal2-container.pd-swal-container .swal2-popup.pd-swal-popup {
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    border-radius: 6px;
}

.swal2-container.pd-swal-container .swal2-popup.pd-swal-reject-popup {
    padding-left: 30px;
    padding-right: 30px;
}

.swal2-container.pd-swal-container .swal2-html-container {
    margin-left: 0;
    margin-right: 0;
}

.swal2-container.pd-swal-container textarea.pd-swal-textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 104px;
    margin: 18px 0 0 !important;
    box-sizing: border-box !important;
    resize: vertical;
}

.swal2-container.pd-swal-container .pd-swal-actions {
    gap: 8px;
    margin-top: 24px;
}

.swal2-container.spb-swal-container {
    z-index: 2147483000 !important;
}

.swal2-container.spb-swal-container .swal2-popup.spb-swal-popup {
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    border-radius: 6px;
}

.swal2-container.spb-swal-container .swal2-popup.spb-swal-reject-popup {
    padding-left: 30px;
    padding-right: 30px;
}

#unsavedChangesConfirmModal.taskify-unsaved-confirm-top,
.modal.taskify-unsaved-confirm-modal.show {
    z-index: 2147483100 !important;
}

.modal-backdrop.taskify-unsaved-confirm-backdrop {
    z-index: 2147483090 !important;
}

.swal2-container.spb-swal-container .swal2-html-container {
    margin-left: 0;
    margin-right: 0;
}

.swal2-container.spb-swal-container textarea.spb-swal-textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 104px;
    margin: 18px 0 0 !important;
    box-sizing: border-box !important;
    resize: vertical;
}

.swal2-container.spb-swal-container .spb-swal-actions {
    gap: 8px;
    margin-top: 24px;
}

@keyframes chatUnreadPulse {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.16);
    }
    100% {
        transform: scale(1);
    }
}

/* Item notification */
.notificationwrapper .dropdown-item {
    background: #fff !important;
    color: #374151 !important;
    padding: 10px 16px !important;
    font-size: 12px;
    line-height: 1.1;
    border-radius: 8px;
}

/* Hover */
.notificationwrapper .dropdown-item:hover {
    background: #f8fafc !important;
}

/* Judul */
.notificationwrapper .fw-semibold {
    color: #111827 !important;
    font-size: 12px;
    font-weight: 600 !important;
}

/* Waktu */
.notificationwrapper small,
.notificationwrapper .text-muted {
    color: #9ca3af !important;
    font-size: 14px;
}

/* Isi pesan */
.notificationwrapper .mt-2 {
    margin-top: 3px !important;
    color: #6b7280 !important;
    font-size: 11px;
    line-height: 1.2;
}

/* Hilangkan divider */
.notificationwrapper .dropdown-divider {
    display: none;
}

/* Footer */
.notificationwrapper .fixed-footer {
    background: #fff !important;
    border-top: 1px solid #f1f5f9;
}

/* Link footer */
.notificationwrapper .fixed-footer a {
    color: #2563eb !important;
    font-size: 12px;
}

.notification-page-card {
    overflow: hidden;
}

.notification-filter-panel {
    padding: 1rem 1rem 0;
    border: 1px solid rgba(67, 89, 113, 0.1);
    border-radius: 8px;
    background: rgba(67, 89, 113, 0.025);
}

.notification-filter-collapse:not(.show) {
    display: none;
}

.notification-feed-wrapper .fixed-table-toolbar {
    margin-bottom: 0.75rem;
}

.notification-feed-wrapper .fixed-table-header {
    display: none !important;
}

.notification-feed-wrapper .fixed-table-container {
    border: 1px solid rgba(67, 89, 113, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.notification-feed-table thead {
    display: none;
}

.notification-feed-table tbody tr {
    border-bottom: 1px solid rgba(67, 89, 113, 0.08);
}

.notification-feed-table tbody tr:last-child {
    border-bottom: 0;
}

.notification-feed-table tbody td {
    border: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
}

.notification-feed-table tbody td.bs-checkbox {
    display: none !important;
}

.notification-feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 0.85rem 1rem;
    background: #fff;
    transition: background-color 0.15s ease;
}

.notification-feed-item:hover {
    background: rgba(105, 108, 255, 0.04);
}

.notification-feed-item.is-unread {
    background: rgba(255, 62, 29, 0.035);
}

.notification-feed-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
    color: inherit;
}

.notification-feed-main:hover {
    color: inherit;
}

.notification-feed-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6b6b, #696cff 52%, #03c3ec);
    color: #fff;
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.notification-feed-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notification-feed-line {
    color: #233446;
    line-height: 1.35;
    white-space: normal;
}

.notification-feed-line strong {
    color: #233446;
    font-weight: 700;
}

.notification-feed-meta {
    margin-top: 0.25rem;
    color: rgba(67, 89, 113, 0.65);
    font-size: 0.8125rem;
}

.notification-feed-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.notification-feed-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.notification-feed-actions .card-link,
.notification-feed-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    border: 0;
    background: transparent;
}

.notification-feed-actions i {
    margin: 0 !important;
    font-size: 1.15rem;
}

@media (max-width: 767px) {
    .notification-feed-item {
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.8rem 0.85rem 0.8rem 0.1rem;
    }

    .notification-feed-main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.7rem;
    }

    .notification-feed-avatar {
        width: 40px;
        height: 40px;
    }

    .notification-feed-side {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.35rem;
    }

    .notification-feed-side .badge {
        font-size: 0.68rem;
    }
}

/* Hide meeting provider call-for-assistance and watermark overlays. */
#eXO-cfa,
.watermark,
.leftwatermark,
.rightwatermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Announcement popup */
.announcement-popup-shell {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 2000100;
}

.announcement-popup-backdrop {
    background: rgba(16, 24, 40, 0.58);
    inset: 0;
    position: absolute;
}

.announcement-popup-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 32px 92px rgba(15, 23, 42, 0.36);
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(360px, 42fr);
    max-height: calc(100vh - 56px);
    max-width: 1120px;
    min-height: min(680px, calc(100vh - 56px));
    overflow: hidden;
    position: relative;
    width: min(1120px, calc(100vw - 64px));
    z-index: 1;
}

.announcement-popup-card--text-only {
    display: block;
    max-width: 760px;
    min-height: 0;
    width: min(760px, calc(100vw - 64px));
}

.announcement-popup-card--text-only .announcement-popup-body {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 3.25rem 2.5rem 2.25rem;
}

.announcement-popup-card--text-only .announcement-popup-body p {
    flex: 0 1 auto;
    max-height: 42vh;
}

.announcement-popup-card--text-only .announcement-popup-footer {
    margin-top: 1.5rem;
}

.announcement-popup-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 40px;
    z-index: 2;
}

.announcement-popup-close i {
    font-size: 1.35rem;
}

.announcement-popup-image-wrap {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.announcement-popup-image-wrap img {
    display: block;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.2s ease;
    width: 100%;
}

.announcement-popup-card--portrait-image .announcement-popup-image-wrap {
    align-items: center;
    overflow: hidden;
    width: var(--announcement-popup-image-width, auto);
}

.announcement-popup-card--portrait-image .announcement-popup-image-wrap img {
    height: 100%;
    max-width: none;
    min-height: 0;
    object-fit: contain;
    width: auto;
}

.announcement-popup-card--portrait-image {
    grid-template-columns: var(--announcement-popup-image-width, 380px) minmax(360px, 1fr);
    height: min(680px, calc(100vh - 56px));
    max-width: min(var(--announcement-popup-total-width, 840px), calc(100vw - 64px));
    min-height: 0;
    width: min(var(--announcement-popup-total-width, 840px), calc(100vw - 64px));
}

.announcement-popup-image-wrap.is-loading img {
    opacity: 0;
}

.announcement-popup-image-wrap.is-loading::before {
    animation: announcementImageSkeleton 1.15s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        #eef2f7 0%,
        #f8fafc 42%,
        #e7edf5 74%,
        #eef2f7 100%
    );
    background-size: 220% 100%;
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

@keyframes announcementImageSkeleton {
    0% {
        background-position: 120% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

.announcement-popup-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 3rem 2.5rem 2.25rem;
    text-align: left;
}

.announcement-popup-body h3 {
    color: #111827;
    display: -webkit-box;
    font-size: 1.75rem;
    font-weight: 700;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.announcement-popup-body p {
    color: #6b7280;
    flex: 1 1 auto;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.announcement-popup-footer {
    flex: 0 0 auto;
    margin-top: auto;
}

.announcement-popup-body::-webkit-scrollbar {
    width: 7px;
}

.announcement-popup-body::-webkit-scrollbar-thumb {
    background: rgba(31, 45, 86, 0.18);
    border-radius: 999px;
}

.announcement-popup-body::-webkit-scrollbar-track {
    background: transparent;
}

.announcement-popup-cta {
    align-items: center;
    background: linear-gradient(135deg, #cf7416 0%, #38456d 55%, #1f2d56 100%);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(31, 45, 86, 0.26);
    color: #ffffff !important;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.65rem;
    text-decoration: none;
    width: 100%;
}

.announcement-popup-cta:hover {
    background: linear-gradient(135deg, #e18422 0%, #43517d 55%, #263766 100%);
    box-shadow: 0 14px 28px rgba(31, 45, 86, 0.32);
}

.announcement-popup-stepper {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    width: 100%;
}

.announcement-popup-stepper span {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
}

.announcement-popup-stepper button {
    background: #ffffff;
    border: 1px solid #111827;
    border-radius: 10px;
    box-shadow: none;
    color: #111827;
    font-weight: 700;
    min-height: 40px;
    padding: 0.55rem 1.25rem;
}

.announcement-popup-stepper button:hover {
    background: #111827;
    color: #ffffff;
}

.announcement-popup-pagination {
    display: none !important;
    gap: 0.45rem;
    margin-top: 1rem;
    width: 100%;
}

.announcement-popup-page {
    background: #edf0f4;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    flex: 1 1 0;
    height: 7px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.announcement-popup-page::after {
    background: rgba(31, 45, 86, 0.42);
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.18s ease;
}

.announcement-popup-page.is-active::after {
    opacity: 1;
}

.announcement-preview-shell {
    z-index: 2000200;
}

@media (max-width: 576px) {
    .announcement-popup-shell {
        padding: 1rem;
    }

    .announcement-popup-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .announcement-popup-card {
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        max-width: 100%;
        min-height: 0;
        width: min(100%, calc(100vw - 2rem));
    }

    .announcement-popup-card--text-only .announcement-popup-body {
        padding: 3rem 1.25rem 1.75rem;
    }

    .announcement-popup-card--text-only .announcement-popup-body p {
        max-height: 48vh;
    }

    .announcement-popup-image-wrap {
        aspect-ratio: 16 / 10;
        height: auto;
        max-height: 42vh;
    }

    .announcement-popup-image-wrap img {
        object-fit: cover;
    }

    .announcement-popup-card--portrait-image .announcement-popup-image-wrap {
        aspect-ratio: auto;
        max-height: 46vh;
        width: 100%;
    }

    .announcement-popup-card--portrait-image .announcement-popup-image-wrap img {
        height: auto;
        max-width: 100%;
        object-fit: contain;
        width: 100%;
    }

    .announcement-popup-body h3 {
        font-size: 1.4rem;
    }

    .announcement-popup-stepper {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .announcement-popup-stepper button {
        width: 100%;
    }
}

/* Mobile comfort pass for wide business modals and dense tables. */
@media (max-width: 767.98px) {
    #forecastModal .modal-dialog,
    #formVisitModal .modal-dialog,
    #previewFormVisitModal .modal-dialog,
    #spbModal .modal-dialog,
    #modalBiaya .modal-dialog,
    #modalCreate .pd-modal-dialog,
    #modalEdit .pd-modal-dialog {
        height: auto !important;
        margin: 0.5rem auto !important;
        max-width: calc(100vw - 1rem) !important;
        width: calc(100vw - 1rem) !important;
    }

    #forecastModal .modal-content,
    #formVisitModal .modal-content,
    #previewFormVisitModal .modal-content,
    #spbModal .modal-content,
    #modalBiaya .modal-content,
    #modalCreate .pd-modal-content,
    #modalEdit .pd-modal-content {
        border-radius: 12px !important;
        max-height: calc(100dvh - 1rem) !important;
    }

    #forecastModal .modal-header,
    #formVisitModal .modal-header,
    #previewFormVisitModal .modal-header,
    #spbModal .modal-header {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem !important;
    }

    #forecastModal .modal-header > div,
    #forecastModal .modal-header .d-flex,
    #formVisitModal .modal-header > div,
    #previewFormVisitModal .modal-header > div,
    #spbModal .modal-header > div {
        max-width: 100%;
        min-width: 0;
    }

    #forecastModal .modal-header > .d-flex,
    #spbModal .modal-footer > .d-flex,
    #formVisitModal .modal-footer {
        align-items: stretch !important;
        flex-direction: column;
        width: 100%;
    }

    #forecastModal .modal-header .btn,
    #formVisitModal .modal-footer .btn,
    #spbModal .modal-footer .btn {
        justify-content: center;
        width: 100%;
    }

    #forecastModal h3,
    #previewFormVisitModal h4 {
        font-size: 1.15rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    #forecastModal .modal-body,
    #formVisitModal .modal-body,
    #previewFormVisitModal .modal-body,
    #spbModal .modal-body {
        padding: 1rem !important;
    }

    #forecastModal .row,
    #formVisitModal .row,
    #spbModal .row,
    #modalCreate .row,
    #modalEdit .row {
        --bs-gutter-x: 0.85rem;
        --bs-gutter-y: 0.85rem;
    }

    #forecastModal .card-body,
    #previewFormVisitModal .form-visit-photo-panel,
    #spbModal .invoice-row,
    #spbModal .spb-summary-card {
        padding: 1rem !important;
    }

    #forecastModal .card,
    #formVisitModal .modal-content,
    #previewFormVisitModal .modal-content,
    #spbModal .invoice-row,
    #spbModal .spb-summary-card {
        border-radius: 10px !important;
    }

    #forecastModal .card-body > .d-flex,
    #forecastModal .form-control.d-flex,
    #formVisitModal .modal-footer,
    #spbModal .modal-footer,
    #spbModal .modal-footer > div:first-child,
    #perjalanan-dinas-page .card-body > .d-flex:first-child,
    #modalBiaya .alert-light {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    #forecastModal .table-responsive,
    #previewFormVisitModal .table-responsive,
    #spbModal .table-responsive,
    #modalBiaya .table-responsive,
    .spb-table-wrapper,
    .perjalanan-table-wrapper {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    #forecastModal table {
        min-width: 920px;
    }

    #spb_table,
    #perjalanan_dinas_table {
        min-width: 760px;
    }

    .spb-table-wrapper .fixed-table-container,
    .spb-table-wrapper .fixed-table-body,
    .perjalanan-table-wrapper .fixed-table-container,
    .perjalanan-table-wrapper .fixed-table-body {
        overflow-x: auto !important;
    }

    .fixed-table-toolbar {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .fixed-table-toolbar .columns,
    .fixed-table-toolbar .search {
        float: none !important;
        margin: 0 !important;
        width: 100%;
    }

    .fixed-table-toolbar .search input {
        width: 100%;
    }

    #formVisitModal .modal-footer #btn-delete-form-visit {
        margin-right: 0 !important;
        order: 3;
    }

    #previewFormVisitModal .modal-header {
        padding: 0 0 0.75rem !important;
    }

    #previewFormVisitModal .modal-content {
        padding: 1rem !important;
    }

    .form-visit-detail-hero,
    .form-visit-detail-section,
    .form-visit-meta-item,
    .form-visit-field,
    .preview-box {
        border-radius: 8px;
        padding: 0.85rem;
    }

    .form-visit-photo-empty {
        min-height: 150px;
    }

    .spb-bank-summary-card {
        border-radius: 12px;
        min-height: 0;
    }

    #spbModal .bank-row > [class*="col-"],
    #spbModal .invoice-row [class*="col-"] {
        margin-bottom: 0 !important;
    }

    #spbModal .modal-footer {
        justify-content: flex-start !important;
        padding: 1rem !important;
    }

    #perjalanan-dinas-page .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #perjalanan-dinas-page .card-body {
        padding: 1rem !important;
    }

    #perjalanan-dinas-page .card-body > .d-flex:first-child > .d-flex {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
    }

    #perjalanan-dinas-page .card-body > .d-flex:first-child .btn {
        justify-content: center;
        width: 100%;
    }

    #modalCreate .pd-request-header,
    #modalEdit .pd-request-header,
    #modalCreate .pd-request-scroll,
    #modalEdit .pd-request-scroll,
    #modalCreate .pd-request-footer,
    #modalEdit .pd-request-footer {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    #modalCreate .pd-request-subtitle,
    #modalEdit .pd-request-subtitle {
        font-size: 0.8rem;
    }

    #modalCreate .pd-toggle-panel,
    #modalEdit .pd-toggle-panel {
        flex-direction: column;
        gap: 0.65rem;
    }

    #modalCreate .pd-request-footer > div:last-child,
    #modalEdit .pd-request-footer > div:last-child,
    #view-action-buttons {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
    }

    #modalCreate .pd-request-footer .btn,
    #modalEdit .pd-request-footer .btn,
    #view-action-buttons .btn {
        width: 100%;
    }

    #modalBiaya .modal-body {
        padding: 0.9rem !important;
    }

    #modalBiaya #view-reject-notice {
        margin-left: 0.9rem !important;
        margin-right: 0.9rem !important;
    }

    #modalBiaya table {
        box-shadow: none !important;
        margin-bottom: 1rem !important;
    }

    #modalBiaya table:not(:has(thead)) tr {
        display: grid;
        grid-template-columns: 1fr;
    }

    #modalBiaya table:not(:has(thead)) th,
    #modalBiaya table:not(:has(thead)) td,
    #modalBiaya .table-sm td:first-child {
        display: block;
        padding: 0.65rem 0.8rem !important;
        width: 100% !important;
    }

    #modalBiaya table:not(:has(thead)) th {
        border-bottom: 0 !important;
    }

    #modalBiaya table:has(thead) {
        min-width: 640px;
    }

    #modalBiaya > .modal-dialog > .modal-content > .modal-body > table:has(thead) {
        display: block;
        overflow-x: auto;
    }

    #modalBiaya .alert-light > div,
    #modalBiaya .view-detail-action-footer {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    #modalBiaya .modal-dialog {
        margin: 0.65rem auto !important;
        max-width: calc(100vw - 1.25rem) !important;
        width: calc(100vw - 1.25rem) !important;
    }

    #modalBiaya .modal-content {
        background: #f5f7fb !important;
        border-radius: 14px !important;
        display: flex;
        max-height: calc(100dvh - 1.25rem) !important;
        overflow: hidden;
    }

    #modalBiaya .modal-header {
        align-items: flex-start !important;
        background: #ffffff !important;
        border-bottom: 1px solid #edf1f6 !important;
        flex: 0 0 auto;
        gap: 0.8rem !important;
        padding: 1.15rem 3.1rem 1rem 1.1rem !important;
    }

    #modalBiaya .modal-title {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
    }

    #modalBiaya .modal-biaya-status-badges {
        gap: 0.45rem !important;
        max-width: 100%;
    }

    #modalBiaya .modal-biaya-status-badges .badge {
        border-radius: 5px;
        font-size: 0.68rem;
        line-height: 1.15;
        max-width: 100%;
        padding: 0.42rem 0.58rem;
        white-space: normal;
    }

    #modalBiaya .btn-close {
        right: 1.1rem !important;
        top: 1.45rem !important;
        transform: none !important;
    }

    #modalBiaya .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 1rem !important;
    }

    #modalBiaya h6 {
        color: #68778c !important;
        font-size: 0.74rem !important;
        letter-spacing: 0.06em !important;
        margin: 1.15rem 0 0.65rem !important;
    }

    #modalBiaya .modal-body > h6:first-of-type {
        margin-top: 0 !important;
    }

    #modalBiaya table {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0.9rem !important;
        overflow: visible !important;
        width: 100%;
    }

    #modalBiaya table:not(:has(thead)),
    #modalBiaya table:not(:has(thead)) tbody {
        display: block;
    }

    #modalBiaya table:not(:has(thead)) tr {
        background: #ffffff;
        border: 1px solid #e5ebf2;
        border-radius: 10px;
        display: block;
        margin-bottom: 0.65rem;
        overflow: hidden;
    }

    #modalBiaya table:not(:has(thead)) tr:last-child {
        margin-bottom: 0;
    }

    #modalBiaya table:not(:has(thead)) th,
    #modalBiaya table:not(:has(thead)) td,
    #modalBiaya .table-sm td:first-child {
        border: 0 !important;
        display: block;
        width: 100% !important;
    }

    #modalBiaya table:not(:has(thead)) th {
        background: #fbfcfe !important;
        color: #6b7b91 !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        line-height: 1.2;
        padding: 0.72rem 0.9rem 0.55rem !important;
        text-transform: uppercase;
    }

    #modalBiaya table:not(:has(thead)) td {
        background: #ffffff !important;
        color: #334155 !important;
        font-size: 0.86rem !important;
        line-height: 1.45;
        overflow-wrap: anywhere;
        padding: 0.72rem 0.9rem 0.85rem !important;
    }

    #modalBiaya table:has(thead) {
        background: #ffffff !important;
        border: 1px solid #e6ebf2 !important;
        border-radius: 10px !important;
        display: block;
        min-width: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #modalBiaya table:has(thead) thead,
    #modalBiaya table:has(thead) tbody,
    #modalBiaya table:has(thead) tfoot {
        min-width: 620px;
    }

    #modalBiaya table:has(thead) th,
    #modalBiaya table:has(thead) td {
        padding: 0.65rem 0.75rem !important;
        white-space: nowrap;
    }

    #modalBiaya .alert-light {
        border-radius: 10px !important;
        margin-top: 0.85rem !important;
        padding: 0.9rem !important;
    }

    #modalBiaya #view-selisih-uang-harian,
    #modalBiaya #view-grand-total {
        font-size: 1.1rem !important;
    }

    #modalBiaya .card,
    #modalBiaya .accordion-item {
        border-radius: 10px !important;
        box-shadow: none !important;
    }

    #modalBiaya .card-header,
    #modalBiaya .accordion-button {
        font-size: 0.84rem !important;
        padding: 0.85rem 0.95rem !important;
    }

    #modalBiaya .view-detail-action-footer {
        background: #ffffff !important;
        box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
        flex: 0 0 auto;
        padding: 0.8rem 1rem !important;
    }

    #modalBiaya #view-action-buttons {
        gap: 0.55rem !important;
    }

    #modalBiaya #view-action-buttons .btn {
        border-radius: 8px;
        min-height: 42px;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table),
    #modalBiaya table:has(#view-biaya-aktual-table) {
        border-collapse: separate !important;
        border-spacing: 0 !important;
        display: table !important;
        min-width: 0 !important;
        overflow: hidden !important;
        table-layout: fixed;
        width: 100% !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) thead,
    #modalBiaya table:has(#view-biaya-permohonan-table) tbody,
    #modalBiaya table:has(#view-biaya-permohonan-table) tfoot,
    #modalBiaya table:has(#view-biaya-aktual-table) thead,
    #modalBiaya table:has(#view-biaya-aktual-table) tbody,
    #modalBiaya table:has(#view-biaya-aktual-table) tfoot {
        display: table-header-group;
        min-width: 0 !important;
        width: 100% !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) tbody,
    #modalBiaya table:has(#view-biaya-aktual-table) tbody {
        display: table-row-group;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) tfoot,
    #modalBiaya table:has(#view-biaya-aktual-table) tfoot {
        display: table-footer-group;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) tr,
    #modalBiaya table:has(#view-biaya-aktual-table) tr {
        display: table-row;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) th,
    #modalBiaya table:has(#view-biaya-permohonan-table) td,
    #modalBiaya table:has(#view-biaya-aktual-table) th,
    #modalBiaya table:has(#view-biaya-aktual-table) td {
        display: table-cell;
        font-size: 0.78rem !important;
        line-height: 1.25;
        overflow-wrap: anywhere;
        padding: 0.72rem 0.55rem !important;
        vertical-align: middle;
        white-space: normal !important;
        width: auto !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) th:first-child,
    #modalBiaya table:has(#view-biaya-permohonan-table) td:first-child,
    #modalBiaya table:has(#view-biaya-aktual-table) th:first-child,
    #modalBiaya table:has(#view-biaya-aktual-table) td:first-child {
        width: 31% !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) th:nth-child(2),
    #modalBiaya table:has(#view-biaya-permohonan-table) td:nth-child(2),
    #modalBiaya table:has(#view-biaya-aktual-table) th:nth-child(2),
    #modalBiaya table:has(#view-biaya-aktual-table) td:nth-child(2) {
        width: 25% !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) th:nth-child(3),
    #modalBiaya table:has(#view-biaya-permohonan-table) td:nth-child(3),
    #modalBiaya table:has(#view-biaya-aktual-table) th:nth-child(3),
    #modalBiaya table:has(#view-biaya-aktual-table) td:nth-child(3) {
        width: 14% !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) th:nth-child(4),
    #modalBiaya table:has(#view-biaya-permohonan-table) td:nth-child(4),
    #modalBiaya table:has(#view-biaya-aktual-table) th:nth-child(4),
    #modalBiaya table:has(#view-biaya-aktual-table) td:nth-child(4) {
        width: 30% !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) tfoot td,
    #modalBiaya table:has(#view-biaya-aktual-table) tfoot td {
        font-weight: 700 !important;
    }

    #modalBiaya table:has(#view-biaya-permohonan-table) tfoot td[colspan],
    #modalBiaya table:has(#view-biaya-aktual-table) tfoot td[colspan] {
        text-align: left !important;
    }
}

@media (max-width: 767.98px) {
    #modalInputBiayaPermohonan .modal-dialog,
    #modalInputBiayaSettlement .modal-dialog {
        margin: 0.65rem auto !important;
        max-width: calc(100vw - 1.25rem) !important;
        width: calc(100vw - 1.25rem) !important;
    }

    #modalInputBiayaPermohonan .biaya-modal,
    #modalInputBiayaSettlement .biaya-modal {
        border-radius: 14px;
        display: flex;
        max-height: calc(100dvh - 1.25rem);
        overflow: hidden;
    }

    #modalInputBiayaSettlement #form-settlement {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    #modalInputBiayaPermohonan .biaya-modal-header,
    #modalInputBiayaSettlement .biaya-modal-header {
        align-items: flex-start;
        flex: 0 0 auto;
        gap: 0.75rem;
        padding: 1rem;
    }

    #modalInputBiayaPermohonan .modal-title,
    #modalInputBiayaSettlement .modal-title {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    #modalInputBiayaPermohonan .biaya-modal .modal-body,
    #modalInputBiayaSettlement .biaya-modal .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 1rem;
    }

    #modalInputBiayaPermohonan .biaya-summary-grid,
    #modalInputBiayaSettlement .biaya-summary-grid {
        gap: 0.65rem;
        grid-template-columns: 1fr;
    }

    #modalInputBiayaPermohonan .biaya-summary-item,
    #modalInputBiayaSettlement .biaya-summary-item,
    #modalInputBiayaPermohonan .biaya-note-box {
        padding: 0.85rem;
    }

    #modalInputBiayaPermohonan .biaya-table-wrap,
    #modalInputBiayaSettlement .biaya-table-wrap {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    #modalInputBiayaPermohonan .biaya-input-table,
    #modalInputBiayaSettlement .biaya-input-table,
    #modalInputBiayaPermohonan .biaya-input-table tbody,
    #modalInputBiayaSettlement .biaya-input-table tbody {
        display: block;
        min-width: 0 !important;
        width: 100% !important;
    }

    #modalInputBiayaPermohonan .biaya-input-table colgroup,
    #modalInputBiayaPermohonan .biaya-input-table thead,
    #modalInputBiayaSettlement .biaya-input-table thead {
        display: none;
    }

    #modalInputBiayaPermohonan .biaya-input-table tr,
    #modalInputBiayaSettlement .biaya-input-table tr {
        background: #ffffff;
        border: 1px solid #e5ebf2;
        border-radius: 10px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
        display: block;
        margin-bottom: 0.8rem;
        overflow: hidden;
    }

    #modalInputBiayaPermohonan .biaya-input-table td,
    #modalInputBiayaSettlement .biaya-input-table td {
        background: #ffffff;
        border: 0 !important;
        border-bottom: 1px solid #edf1f6 !important;
        display: block;
        padding: 0.8rem 0.9rem !important;
        width: 100% !important;
    }

    #modalInputBiayaPermohonan .biaya-input-table td:last-child,
    #modalInputBiayaSettlement .biaya-input-table td:last-child {
        border-bottom: 0 !important;
    }

    #modalInputBiayaPermohonan .biaya-input-table td::before,
    #modalInputBiayaSettlement .biaya-input-table td::before {
        color: #718096;
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        margin-bottom: 0.45rem;
        text-transform: uppercase;
    }

    #modalInputBiayaPermohonan .biaya-input-table td:nth-child(1)::before {
        content: "Jenis Biaya";
    }

    #modalInputBiayaPermohonan .biaya-input-table td:nth-child(2)::before {
        content: "Keterangan";
    }

    #modalInputBiayaPermohonan .biaya-input-table td:nth-child(3)::before {
        content: "Nominal";
    }

    #modalInputBiayaPermohonan .biaya-input-table td:nth-child(4)::before {
        content: "Hari";
    }

    #modalInputBiayaPermohonan .biaya-input-table td:nth-child(5)::before {
        content: "Sub Total";
    }

    #modalInputBiayaSettlement .biaya-input-table td:nth-child(1)::before {
        content: "Jenis Biaya";
    }

    #modalInputBiayaSettlement .biaya-input-table td:nth-child(2)::before {
        content: "Nominal";
    }

    #modalInputBiayaSettlement .biaya-input-table td:nth-child(3)::before {
        content: "File Pendukung";
    }

    #modalInputBiayaSettlement .biaya-input-table td:nth-child(4)::before {
        content: "Aksi";
    }

    #modalInputBiayaPermohonan .biaya-input-table .permohonan-jenis-cell,
    #modalInputBiayaSettlement .biaya-input-table td:first-child {
        color: #334155;
        font-weight: 700;
    }

    #modalInputBiayaPermohonan .biaya-input-table .permohonan-info-cell,
    #modalInputBiayaPermohonan .biaya-input-table .permohonan-info-text {
        max-width: none;
        width: 100%;
    }

    #modalInputBiayaPermohonan .biaya-input-table .input-group,
    #modalInputBiayaSettlement .biaya-input-table .input-group {
        width: 100%;
    }

    #modalInputBiayaPermohonan .biaya-input-table .form-control,
    #modalInputBiayaSettlement .biaya-input-table .form-control {
        min-height: 42px;
    }

    #modalInputBiayaSettlement .settlement-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    #modalInputBiayaSettlement #btn-add-extra {
        justify-content: center;
        width: 100%;
    }

    #modalInputBiayaPermohonan .biaya-modal-footer,
    #modalInputBiayaSettlement .biaya-modal-footer {
        background: #ffffff;
        box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
        flex: 0 0 auto;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }

    #modalInputBiayaPermohonan .biaya-total-box-footer,
    #modalInputBiayaSettlement .biaya-total-box-footer {
        min-height: 0;
        padding: 0.8rem 0.95rem;
    }

    #modalInputBiayaPermohonan .biaya-total-box-footer strong,
    #modalInputBiayaSettlement .biaya-total-box-footer strong {
        font-size: 1.25rem;
    }

    #modalInputBiayaPermohonan .biaya-footer-actions,
    #modalInputBiayaSettlement .biaya-footer-actions {
        display: grid;
        gap: 0.55rem;
        grid-template-columns: 1fr;
    }

    #modalInputBiayaPermohonan .biaya-footer-actions .btn,
    #modalInputBiayaSettlement .biaya-footer-actions .btn {
        min-height: 42px;
        width: 100%;
    }
}
