/* @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); */

@font-face {
    font-family: 'Poppins';
    font-weight: 100; /* Thin */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-Thin.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 100; /* Thin Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-ThinItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 200; /* Extra-Light */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-ExtraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 200; /* Extra-Light Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-ExtraLightItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 300; /* Light */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 300; /* Light Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-LightItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 400; /* Regular */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 400; /* Regular Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 500; /* Medium */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 500; /* Medium Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-MediumItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 600; /* Semi-Bold */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 600; /* Semi-Bold Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-SemiBoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 700; /* Bold */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 700; /* Bold Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 800; /* Extra-Bold */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 800; /* Extra-Bold Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-ExtraBoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 900; /* Black */
    font-style: normal;
    src: url('../fonts/poppins/Poppins-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 900; /* Black Italic */
    font-style: italic;
    src: url('../fonts/poppins/Poppins-BlackItalic.ttf') format('truetype');
}

body {
    font-family: "Poppins", sans-serif !important;
}

a {
    text-decoration: none;
}

hr.line {
    border: 1px solid #ffffff;
    opacity: 100;
}

/* Select 2 */
/* .select2-selection__choice {
    display: none !important;
} */
/* ==== */

.was-validated .custom-select:valid {
    background-image: none;
}

.was-validated .custom-select:invalid {
    background-image: none;
}

.was-validated .form-control:valid {
    background-image: none;
}

.was-validated .form-control:invalid {
    background-image: none;
}

select.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: auto;
}

.table > :not(caption) > * > * {
    border-bottom-width: 0px;
}

/* Setup warna default */
.bg-dark {
    background-color: #0d0d34 !important;
}

.bg-info {
    background-color: #cee5ff !important;
}

.bg-primary {
    background-color: #3b95ff !important;
}

.btn-primary {
    background-color: #3b95ff !important;
    border: none !important;
}

.btn-default {
    color: #333333;
    background-color: #ffffff;
    border-color: #cccccc;
}

.btn-shadow {
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.btn-warning {
    background-color: #f2994a;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #e48e42;
    color: #ffffff;
}

.text-primary {
    color: #3b95ff;
}

.text-danger {
    color: #ff0000;
}

.text-warning {
    color: #e48e42;
}

.text-green {
    color: #26ab5f;
}

.text-purple {
    color: #800080;
}

/* ------------------- */

/* Breadcrumbs Tindakan */
.breadcrumbs-tindakan {
    text-align: start;
    white-space: normal;
    overflow-x: visible;
    padding-bottom: 8px;
}

.breadcrumbs-tindakan ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
    gap: 2px;
}

.breadcrumbs-tindakan ul li {
    display: flex;
}

.breadcrumbs-tindakan ul li a {
    display: block;
    position: relative;
    background-color: #d5e4f6;
    color: #3178c6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 0px 14px 4px 22px;
    min-width: auto;
    text-align: left;
    line-height: 32px;
    height: 32px;
    margin-right: 6px;
    margin-top: 5px;
    box-sizing: border-box;
}


/* Segitiga kanan */
.breadcrumbs-tindakan ul li a:after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 12px solid #d5e4f6;
    z-index: 2;
}

/* Segitiga kiri (putih untuk lubang) */
.breadcrumbs-tindakan ul li a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 12px solid white;
    z-index: 1;
}

/* Styling item pertama */
.breadcrumbs-tindakan ul li:first-child a {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding-left: 12px;
}

.breadcrumbs-tindakan ul li:first-child a:before {
    display: none;
}

/* Hilangkan panah kanan di item terakhir (optional) */
/* .breadcrumbs-tindakan ul li:last-child a:after {
    display: none;
} */

.breadcrumbs-tindakan-active {
    background-color: #3b95ff !important;
    color: white !important;
}

.breadcrumbs-tindakan-active:after {
    border-left-color: #3b95ff !important;
}

.breadcrumbs-tindakan-active:before {
    border-left-color: #ffffff !important;
}

/* ------------------- */

/* Pointer saat hover */
.hover-pointer {
    cursor: pointer;
}

/* ------------------- */

/* Breadcrumbs */
.breadcrumbs {
    text-align: start;
}

.breadcrumbs ul {
    list-style: none;
    display: inline-block;
    padding-left: 0;
}

.breadcrumbs ul li {
    display: inline;
}

.breadcrumbs ul li a {
    display: block;
    float: left;
    background-color: #cee5ff;
    text-align: end;
    padding: 13px 15px 13px 10px;
    position: relative;
    margin: 0 10px 0 0;
    font-size: 16px;
    text-decoration: none;
    color: #3b95ff;
    min-width: 150px;
}

.breadcrumbs ul li a:after {
    content: "";
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid #cee5ff;
    position: absolute;
    right: -20px;
    top: 0;
    z-index: 1;
}

.breadcrumbs ul li a:before {
    content: "";
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid #fff;
    position: absolute;
    left: 0;
    top: 0;
}

.breadcrumbs ul li:first-child a {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.breadcrumbs ul li:first-child a::before {
    display: none;
}

.breadcrumbs-active {
    background-color: #3b95ff !important;
    color: white !important;
}

.breadcrumbs-active:after {
    content: "";
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid #3b95ff !important;
    position: absolute;
    right: -20px;
    top: 0;
    z-index: 1;
}

.breadcrumbs-active:before {
    content: "";
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid #ffffff;
    position: absolute;
    left: 0;
    top: 0;
}

/* ------------------- */

/* Icon Background di Input */
.input-show-modal {
    background-image: url("../icon/select.png");
    background-size: 24px;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 97%;
}

.input-dropdown {
    background-image: url("../icon/dropdown.png");
    background-size: 24px;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 97%;
}

.input-daterange {
    /* background-image: url("{{ asset('icon/date.png') }}"); */
    background-image: url("../icon/date.png");
    background-size: 24px;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 97%;
}

input.readonly {
    background-color: #e9ecef;
}

input.readonly:focus {
    border-color: unset;
    border: 1px solid #ced4da;
    box-shadow: unset;
}

select.form-select:disabled {
    background-color: unset !important;
    border-color: unset;
    border: 1px solid #ced4da;
    box-shadow: unset;
}

textarea.readonly {
    background-color: #ffffff !important;
}

textarea.readonly:focus {
    border-color: unset;
    border: 1px solid #ced4da;
    box-shadow: unset;
}

/* ------------------- */

.sm-show {
    display: none;
}

.md-show {
    display: inline-block;
}

.wrapper {
    display: flex;
}

/* Halaman konten */
div.content-wrapper {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    margin-left: 15rem;
}

/* ------------------- */

/* ------------------- */
.button-tabs {
    /* width: 240px; */
    background-color: #f5f5f5;
}

.button-icon-inside {
    display: inline-block;
    padding: 5px;
    border: 1px solid #ccc;
    width: 100%;
}

.button-icon-inside input {
    width: 90%;
}

.button-icon-inside-col-2 {
    display: inline-block;
    padding: 5px;
    border: 1px solid #ccc;
    width: 100%;
}

.button-icon-inside-col-2 input {
    width: 85%;
}

.label-input {
    display: block;
}

.input-text {
    border: none;
    padding: 0px 10px;
}

.input-text:focus {
    outline: none;
}

.textarea-button-inside {
    position: relative;
}

.textarea-button-inside span.textarea-button {
    position: absolute;
    top: 10px;
    right: 15px;
}

.textarea-button-inside textarea {
    box-sizing: border-box;
}

/* Ukuran Layar Tablet */
@media (max-width: 768px) {
    .sidebar {
        width: auto !important;
    }

    /* #menu1,
    #menu2,
    #menu3,
    #menu4,
    #menu5,
    #menu6 {
        display: none;
    } */

    .minimize {
        display: none;
    }

    .md-show {
        display: none;
    }

    .md-section-show {
        display: inline-block;
    }

    .sm-show {
        display: inline-block;
    }

    .button-tabs {
        width: 170px;
    }
}

.pencarian {
    display: inline-block;
    padding: 5px;
    border: 1px solid #ccc;
}

.input-text {
    border: none;
}

.input-text:focus {
    outline: none;
}

.btn-icon {
    padding: 0 !important;
    border: none;
    background-color: unset;
}

/* .sticky-thead tbody {
    position: sticky;
    top: 0 !important;
    background-color: #ffffff !important;
} */

.form-label {
    display: block;
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
}

.ranap-radio {
    width: 1em;
    height: 1em;
}

tbody tr:nth-child(1) {
    border-top: hidden;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    /* width: 15px;
    padding: 0px;
    margin: 0px; */
    background: none;
    /* display: none; */
}

@media (max-width: 1445px) {
    table.table-responsive-tablet {
        width: 1400px !important;
        overflow: scroll !important;
    }
}

@media (max-width: 991.98px) {
    div.content-wrapper {
        margin-left: 0px;
    }
}

/* ------------------- */
.input-test {
    position: absolute;
    margin-left: 22.5px;
    margin-top: 22px;
    transform: scale(2.1);
    opacity: 0;
    cursor: pointer;
}

.navbar {
    max-width: 100%;
    min-height: 50px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    /* background: blue; */
    margin-left: 0px;
}

.navbar .left .hamburger {
    padding: 10px;
    /* position: fixed; */
}

.navbar .left .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: black;
    margin: 6px;
}

.alternate_child_color > *:nth-of-type(even) {
    background-color: #eee;
}

.auto-number-table {
    counter-reset: rowNumber;
}

.auto-number-table tbody tr {
    counter-increment: rowNumber;
}

.auto-number-table tbody tr td:first-child::before {
    content: counter(rowNumber) ". ";
}

.user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
}

/* .input-test:checked ~ .sidebar {
      display: none;
  } */
@media (max-width: 575.98px) {
    .button-tabs {
        width: 100px;
        font-size: 0.75em;
        background-color: #f5f5f5;
    }
}

/* loading------------------- */
div#loading_black_screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 16, 16, 0.5);
    z-index: 999;
    display: none;
}

div#loading_black_screen > #icon_loading {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin_2 2s linear infinite;
}

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

/* ------------------- */
/* =============== */
.show-hide-text span {
    max-width: 0;
    -webkit-transition: max-width 0.5s;
    transition: max-width 0.5s;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
}

.show-hide-text:hover span {
    max-width: 10rem;
}

.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #eee;
    border-left-width: 0.25rem;
    border-radius: 0.25rem;
    font-size: 20px;
}

.bd-callout-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.auto-resize {
    overflow: hidden !important;
    resize: none !important;
}

.no-indicator {
    position: relative;
}
.indicator {
    position: relative;
}

.indicator::after {
    content: attr(data-count);
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 32px;
    height: 32px;
    padding: 0 5px;
    background-color: red;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border: 3px solid #fff;
    border-radius: 999px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;

    animation: scalePulse 2s infinite ease-in-out;
}

.indicator::before {
    content: "";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: ripple 1s infinite ease-in-out;
}

@keyframes scalePulse {
    0%, 100% {
        transform: scale(1.3);
    }
    25% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    75% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.3);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.menu-notif {
    position: absolute;
    top: 50px;
    right: 0;
    padding: 15px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 999;
    min-width: 350px;
    max-height: 350px;
    overflow-y: scroll;
    cursor: auto;
}

/* Custom scrollbar styling */
.menu-notif::-webkit-scrollbar {
    width: 6px;
}

.menu-notif::-webkit-scrollbar-track {
    background: transparent;
}

.menu-notif::-webkit-scrollbar-thumb {
    background-color: #c7c7c7;
    border-radius: 10px;
}

.menu-notif::-webkit-scrollbar-thumb:hover {
    background-color: #858585;
}

.menu-notif h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.menu-category {
    margin-bottom: 15px;
}

.menu-category h6 {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0 5px;
}

.menu-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 70px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-align: center;
}

.menu-item:hover {
    background-color: #e0e0e0;
}

.menu-item i {
    font-size: 24px;
    color: #757575;
    margin-bottom: 5px;
}

.menu-item span {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    display: inline-block;
    transition: max-width 0.2s ease;
}

.menu-item:hover {
    height: 100%;
    min-height: 70px;
    max-width: none;
    white-space: normal;
}

.menu-item:hover span {
    max-width: none;
    white-space: normal;
}

.card-accordion:hover {
    /* sm */
    /* box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important; */
    /* normal */
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    /* lg */
    /* box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important; */
}

.btn-purple {
    color: #ffffff;
    background-color: #7912e0 !important;
}

.btn-purple:hover {
    color: #ffffff;
    background-color: #6c10c7 !important;
}

.nav-tabs{
    border-radius: 10px 10px 0px 0px !important;
    font-size: 13.5px;
}
.border-radius-top {
    border-radius: 10px 10px 0px 0px !important;
}

.dropdown-menu .dropdown-item.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.dropdown-menu .dropdown-item:hover:not(.disabled) {
    background-color: #e0f2fe;
    color: #0d6efd;
}

.btn-group .dropdown-toggle::after {
    margin-left: 0.5em;
}

.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
}

.toast {
    opacity: 1 !important; /* bikin tidak transparan */
    background-color: rgba(0, 0, 0, 0.9) !important; /* warna latar lebih solid */
    color: #fff !important; /* biar teks kontras */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); /* biar lebih tegas */
    border-radius: 6px;
}
.toast-success {
    background-color: #28a745 !important; /* hijau solid untuk success */
}
.toast-error {
    background-color: #dc3545 !important; /* merah solid untuk error */
}
.toast-info {
    background-color: #17a2b8 !important; /* biru solid */
}

#toast-container > .toast-warning {
    background-color: #ff9800 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#toast-container > .toast-warning {
    background-color: #f57c00 !important; /* oranye gelap */
    color: #fff !important;
}
