/* start table wrap */
.table-wrap {
    overflow-x: auto; /* Enables horizontal scrolling if needed */
    max-width: 100%; /* Ensures it doesn't exceed the container */
}
  
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}
  
.table-wrap th, 
.table-wrap td {
    word-wrap: break-word; /* Ensures words wrap within the cell */
    white-space: normal; /* Allows text to wrap normally */
    overflow-wrap: break-word; /* Ensures long words break properly */
    /*border-top: 1px solid #ddd; /* Optional: Adds border to table */
}

.table-border-0 th ,
.table-border-0 td {
    border: 0px !important;
}
/* end table wrap */



b, strong {
    font-weight: bold;
}

.table-responsive {
    display: block !important;
}

.show-image {
    cursor: pointer;
}

.btn-tab {
    border-radius: 18px 18px 18px 18px;
}

.btn-block {
    width: 100%;
}

.btn-flat {
    border-radius: 0px !important;
}

.card-option {
    text-align: right !important;
}

/* horizontal form */
.text-center-mobile {
    text-align: right;
}

#title-app-name {
    display: inline;
}

@media (max-width: 768px) {
    #title-app-name {
        display: none;
    }

    .text-center-mobile {
        text-align: left;
    }
}

@media (max-width: 992px) {
    #title-app-name {
        display: none;
    }
}
/* end horizontal form */

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none; 
    /* jangan kasih !important, nanti berdampak ke elemen lain */
}

.cursor {
    cursor: pointer !important;
}

.pointer-none {
    pointer-events: none !important;
}


/* start text cut */
.text-cut {
    position: relative;
    color: black;
    font-family: sans-serif;
}

.text-cut-concat {
    display: block;
    overflow: hidden;
    max-height: 10.6em; /* (Number of lines you want visible) * (line-height) */
    line-height: 1.2em;
    text-align: justify;
}

.text-cut.ellipsis-cut::after {
    position: absolute;
    right: -12px;
    bottom: 5px;
}

.hide-text-cut {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    box-sizing: border-box;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), white 67%);
}
/* end text cut */

.table.table-sm td,
.table.table-sm th {
    padding: 0.4rem 1rem 0.4rem 1rem !important;
}

.table {
    width: 100% !important;
}

.div-outline-success {
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 10px;
}

.div-outline-info {
    border: 1px solid #31acc0;
    border-radius: 6px;
    padding: 10px;
}

.div-outline-warning {
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px;
}

.div-outline-danger {
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 10px;
}

.div-outline-primary {
    border: 1px solid #1184ff;
    border-radius: 6px;
    padding: 10px;
}

.div-outline-secondary {
    border: 1px solid #798189;
    border-radius: 6px;
    padding: 10px;
}

.swal2-modal.swal2-popup .swal2-title {
    margin: 0px !important;
    max-width: 100% !important;
}

.swal-footer {
    text-align: center !important;
}

.swal-text {
    text-align: center !important;
}

.btn-default {
    border: 0.5px solid gray;
}

.menu-footer-active {
    font-weight: bold;
    color: rgb(21, 233, 183);
    text-shadow: 2px 2px 5px rgba(5, 255, 220, 0.5);
}

/* Menambahkan event listener untuk tombol toggle aksi */
.btn-card-aksi-menu {
    margin-top: 8px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    display: none;
}
.btn-card-aksi-menu.show {
    display: block;
}

.btn-card-aksi-menu button {
    display: block;
    margin: 4px 0;
    text-align: left;
}
/* end */

.bg-disabled {
    background: gray !important;
}