.error, .required {
    color: #ff0000;
}

.text-bold {
    font-weight:bold;
}

/* .top-bar {
    background-color: #B51717;
} */

.select2 {
    width: 100%!important;
}

.select2-search__field {
    background-color: #fff!important;
    color:#000!important;
    width: 100%;
}

.app-footer {
    color:#fff;
    background-color: #222334;
}

.app-footer a,
.app-footer a:hover
.app-footer a:active {
    color: #B51717;
}

.timeline {
  position: relative;
  overflow-y: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%; /* bisa jadi 0 saat modal tersembunyi */
  min-height: 100%; /* coba paksa tinggi minimal */
  background-color: #dee2e6;
  transform: translateX(-50%);
}

    .timeline-event { position: relative; width: 50%; padding: 1rem 2rem; }
    .timeline-event-left { left: 0; text-align: right; }
    .timeline-event-right { left: 50%; }
    .timeline-event::before {
      content: '';
      position: absolute;
      top: 1rem;
      width: 16px;
      height: 16px;
      background-color: #0d6efd;
      border-radius: 50%;
      border: 3px solid white;
      box-shadow: 0 0 0 2px #0d6efd;
    }
    .timeline-event-left::before { right: -8px; }
    .timeline-event-right::before { left: -8px; }



@media (min-width: 998px) {
    .timeline {
        position: relative;
        overflow-y: auto;
        height:450px;
    }
}

/* Gaya untuk tombol FAB utama */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: block;
}

.fab {
    width: 60px;
    height: 60px;
    background-color: #B51717;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fab:hover {
    background-color: #B51717;
}

/* Tombol FAB tambahan yang disembunyikan */
.fab-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #222334;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.fab-btn-1 {
    bottom: 75px;
    right: 0;
}

.fab-btn-2 {
    bottom: 135px;
    right: 0;
}

.fab-btn-3 {
    bottom: 200px;
    right: 0;
}

/* Menampilkan tombol ketika FAB diklik */
.fab-container.show .fab-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-20px);
}

/* Desktop: tabel normal */
.responsive-table { width:100%; border-collapse: collapse; }
.responsive-table th, .responsive-table td { padding: .6rem; border: 1px solid #e9e9e9; text-align: left; }


/* Mengubah border pada tabel DataTables */
table.dataTable {
    border: 2px solid #ddd;  /* Ganti dengan warna border yang diinginkan */
    border-collapse: collapse;  /* Pastikan border tidak tumpang tindih */
}

/* Mengubah border pada header tabel */
table.dataTable thead {
    border-bottom: 2px solid #ddd;  /* Ganti dengan warna border yang diinginkan */
}

/* Mengubah border pada setiap sel tabel */
table.dataTable th, table.dataTable td {
    border: 1px solid #ddd;  /* Ganti dengan warna yang diinginkan */
}

/* Mengubah border pada kolom yang tetap (Fixed Columns) */
table.dataTable td.fixed, table.dataTable th.fixed {
    border: 1px solid #ddd;  /* Ganti dengan warna yang diinginkan */
}

/* Mengubah border pada header tetap (FixedHeader) */
table.dataTable thead.fixed {
    border-bottom: 2px solid #ddd;  /* Ganti dengan warna border yang diinginkan */
}

/* Menambahkan efek hover untuk tabel */
table.dataTable tbody tr:hover {
    background-color: #f1f1f1; /* Menambahkan efek hover jika diinginkan */
}

h4 {
    font-weight:bold;
}

.user-header {
    background-color: #B51717!important;
}

.user-menu {
    color: #fff;
}

.page-item {
    margin-left: 3px;
    margin-right: 3px;
}

.bg-red {
    background-color: #B51717;
}

.bg-red .nav-link {
    color: #fff;
}

.card.card-outline {
    border-top:3px solid #B51717;
}

table.dataTable th, table.dataTable td {
    white-space: nowrap; /* Prevent text wrapping */
}


.selection  {
    padding: 20px 0 20px!important;

}

.form-label {
    font-weight: bold;
}

.dataTables_filter input {
    color: #000;
}

/* .sidebar-wrapper {
    background-color: #B51717;
}

.sidebar-wrapper .nav-link {
    color: #fff;
} */

.fab-container {
    bottom: 90px;
}

.modal-header button,
.btn-close {
  position: absolute;
  top: 10px;  /* Adjust this value as needed */
  right: 10px;  /* Adjust this value as needed */
  z-index: 10;
}

.select2-selection--single {
    z-index: 9998!important;
}

@media (min-width: 768px) {
    .kbw-signature {border:none}
    .sig {
        border:1px solid #000;
        width:300px;
        height: 200px;
    }

    canvas {
        width: 300px;
        height: 200px;
        border: 1px solid;
    }


    .app-footer {
        position: sticky;
        bottom: 0!important;
        z-index: 1030;
    }

    #logo_merdis {
        width: 20%;
    }

    .customer_form_header2 img {
        width: 100px;
    }

    .customer_form {
        width: 50%;
        margin: 0 auto;
    }

    img.photo {
        width: 40%;
        height: auto;
    }

    .dataTables_filter {
        margin-bottom: 5px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
    }

    #txt_qty, #txt_price, #txt_subtotal {
        text-align: right;
    }

    .icon-only {
        display: inline !important;
    }

    .btn-text2 {
        display: inline !important;
    }

    .icon-only2 {
        display: inline !important;
    }

    .btn-text {
        display: none !important;
    }

    .badge-count {
        display: inline;
    }
    .search {
        display: none;
    }

    .login-logo img {
        width: 70%;
    }

    .data-no {
        display: block;
    }

    .user-panel .image,
    .user-panel .image {
        margin:0 10px
    }

    .fab-container {
        display: none; /* Tampilkan hanya di mobile */
    }

    .btn-container, .btn-container-bottom {
        display: block; /* Sembunyikan tombol biasa di mobile */
    }

}

@media (max-width: 768px) {
    .kbw-signature {border:none}
    .sig {
        border:1px solid #000;
        width:99%;
        height: 200px;
    }

    canvas {
        width: 100%;
        height: 200px;
        border: 1px solid;
    }
    .app-footer {
        position: fixed;
        bottom: 0!important;
        z-index: 1030;
    }

    #logo_merdis {
        width: 20%;
    }

    .form-label {
        margin-bottom: 0;
    }

    .detail_doclist tr,
    .detail_doclist td {
        margin:0!important;
        padding:0!important;
    }

    .assign_technical_list td {
        display: block!important;
    }

    .assign_technical_list td div {
        margin-top: 20px!important;
        display: block!important;
    }

    .customer_form_header2 img {
        width: 30%;
    }

    .customer_form_header {
        position: sticky;
        top:0;
        z-index:1030;
        background-color: #fff;
    }

    .customer_form_header .card-header {
        padding: 3px 5px 0px 5px;
        margin-bottom: 0;
    }

    .customer_form {
        width: 100%;
        margin-bottom:2.5rem
    }

    .app-content {
        padding: 0!important;
    }

    img.photo {
        width: 30%;
    }

    .isi-text {
        overflow: hidden; /* Sembunyikan teks yang melampaui kontainer */
        text-overflow: ellipsis;
    }

    .timeline {
        position: relative;
        overflow-y: auto;
        height:200px;
    }
    .timeline::before {
        left: 20px; /* pindahkan garis ke kiri */
    }
    .timeline-event {
        width: 100%;
        padding-left: 40px; /* kasih jarak biar garis & dot kelihatan */
        text-align: left !important;
        left: 0 !important;
    }
    .timeline-event::before {
        left: 20px !important; /* titik ikut garis */
        right: auto;
    }

    .action-buttons a,
    .action-buttons button {
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
    }

    .action-buttons a {
        width: 100%;
    }

    .badge-count {
        display: none;
    }

    #itemlist select,
    #itemlist input,
    #itemlist2 select,
    #itemlist2 input {
        margin-top: 24px;
    }

    .icon-only {
        display: none !important;
    }
    .btn-text {
        display: block !important;
        width: 100%;
    }

    .btn-text2 {
        display: inline !important;
    }

    .icon-only2 {
        display: inline !important;
    }


    .dataTables_filter {
        display: flex;
        flex-direction: column; /* ubah jadi vertikal */
        align-items: stretch;   /* biar full width */
        width: 100%;
        margin-bottom: 1rem;
    }

    .dataTables_filter label {
        width: 100%;
    }

    .dataTables_filter label input {
        width: 100%;           /* textbox full width */
        margin-top: 0.25rem;
        border-radius: 0.375rem;
        padding: 0.5rem;
    }

    .dataTables_filter label::before {
        display: block;
        font-weight: 600;
        margin-bottom: 0.25rem;
        /* color: #495057; */
    }

    /* table.dataTable td {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
        border: none !important;
        white-space: normal;
        word-wrap: break-word;
    }

    table.dataTable td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
        text-transform: uppercase;
        width: 100%;
    } */



    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block!important;
        width: 100%;
    }
    .responsive-table tr {
        margin-bottom: 0.75rem;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        background:#fff;
        overflow:hidden;
        height: auto!important;
    }
    .responsive-table td {
        /* justify-content: space-between; */
        white-space: normal !important;
        word-wrap: break-word;
        vertical-align: top;
        padding: .75rem;
        border: none;
        border-bottom: 1px solid #f1f1f1;
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: .5rem;
        color: #666;
    }

    .daftar-services td div {
        margin-top: 20px;
    }

    .login-logo img {
        width: 60%;
    }

    .fab-container {
        display: block; /* Tampilkan hanya di mobile */
    }

    .btn-container, .btn-container-bottom {
        display: none; /* Sembunyikan tombol biasa di mobile */
    }

    table .data-no {
        display: none!important;
    }


}
