@charset "utf-8";
/* CSS Document */

table.dataTable th, 
table.dataTable td {
    border: 1px solid #ddd;
}
.dataTable th, .dataTable td {
	word-wrap: break-word;
	white-space: normal;
	font-size: 10px;
	text-align: start;
}
.dataTable th {
	text-align: start;
}

.judul {
	font-size:17px;
}

.bodyimg {
	background-image: url('bgbody.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: 100% 100%;
}

.ui-autocomplete {
	max-height: 200px;
	overflow-y: auto;
	/* prevent horizontal scrollbar */
	overflow-x: hidden;
	/* add padding to account for vertical scrollbar */
	padding-right: 20px;
}

.center{
    position:absolute;
    display:block;
    height:100px;
    width:100px;
    left:35%;
    top:50%;
    margin-top:-100px;
    margin-left:-50px;
}

.tabContent {
	margin-right:17px;
	margin-bottom:-4px;
	width:90%;	
}

.tabContent_isi {
	padding:10px;	
}

.tableContent {
	background-color: #EEEEEE;
  table-layout: fixed;
}

.tableContent2 {
	background-color: #EEEEEE;
  table-layout: fixed;
}

.buttonTab { max-height:100px; }

.t_select { padding:3px; }

@media (min-width:400px) { /* kecil */
	#utama { margin-Left : 0%; }
	#mySidebar { display : none ; }
	#openNav{ display : inline; }

	#hpTidakTampil { display:none; }
	#hpTampil { display:inline; }
}

@media (min-width:700px) { /* standart */
	#utama { margin-Left : 200px; }
	#mySidebar { width : 200px;display : block ;}
	#openNav{ display : none; }

	#hpTidakTampil { display:inline; }
	#hpTampil { display:none; } 
  .widthGambarDashboard{ width: 30%; }
}

 /* Style the Image Used to Trigger the Modal */
 #myImg {
	border-radius: 5px;
	cursor: pointer;
	transition: 0.3s;
  }
  
  #myImg:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (Image) */
  .modal-content {
	margin: auto;
	display: block;
	width: 100%;
	max-width: 1500px;
  }
  
  /* Caption of Modal Image (Image Text) - Same Width as the Image */
  #caption {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	text-align: center;
	color: #ccc;
	padding: 10px 0;
	height: 150px;
  }
  
	.btnSize {
		width: 15% !important;
	}
  /* Add Animation - Zoom in the Modal */
  .modal-content, #caption {
	animation-name: zoom;
	animation-duration: 0.6s;
  }
  
  @keyframes zoom {
	from {transform:scale(0)}
	to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
	.modal-content {
	  width: 100%;
	}
  
  .widthGambarDashboard{ 
    width: 90%; 
  }
  } 

  .input-invalid {
    display: block;
    width: 100%;
	border: 2px solid #ccc;
    padding: 10px;
    font-size: 16px;

}

  .input-invalid.invalid {
    border-color: red !important;
	background-image: none;
}

.invalid-feedback {
    color: red;
    font-size: 8%;
    display: none;
    margin-top: 2px;
}

.form-control.invalid + .invalid-feedback {
    display: block;
}

.HolDes {
	background-color: #FFCCCC !important;
}
.FlagHoliday {
	background-color: #a3e2f7 !important;
}
.default {
	background-color: #FFFFFF !important;
}

.bgTbl {
	background-color: #CCCCCC !important;
}

#tblListOT th,
  #tblListOT td {
    vertical-align: middle;
    text-align: center;
  }

  /* Perlebar kolom ke-7: Reason */
  #tblListOT th:nth-child(7),
  #tblListOT td:nth-child(7) {
    white-space: pre-wrap !important;
    word-break: break-word;
    min-width: 200px;
    max-width: 300px;
  }

  /* Scroll horizontal jika overflow */
  .table-responsive {
    overflow-x: auto;
  }

	#custom-filter input {
    max-width: 200px;
    display: inline-block;
  }

	.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

	.login-wrapper {
			text-align: center;
	}

  .brand-logo {
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
    width: 100%;
  }

  .input-group {
    width: 100%;
    margin-bottom: 10px;
    display: block;
  }

  /* KUNCI UTAMA: Paksa lebar 300px agar tidak 'imut' */
  .input-control {
    width: 300px !important; /* Paksa lebar tetap */
    min-width: 300px;
    height: 45px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 16px;
    display: inline-block; /* Agar bisa menerima width dengan baik */
  }

  .btn-submit {
    width: 300px !important;
    height: 45px;
    background-color: #67ddf5;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }

	@media (max-width: 699px) {

  /* perkecil kolom label */
  .tableContent .col-form-label {
    flex: 0 0 20%;
    max-width: 20%;
  }

  /* lebarkan kolom input */
  .tableContent .col-form-label + div {
    flex: 0 0 80%;
    max-width: 80%;
		padding-left: 0px;
  }

  /* select & input jangan full layar */
  .tableContent .form-select,
  .tableContent .form-control {
    width: auto;
    min-width: 180px;
  }
}

@media (min-width: 700px) {

  /* balikin ke grid normal */
  .tableContent .form-select,
  .tableContent .form-control {
    width: 100%;
  }
}

.mobile-date-group {
  align-items: center;
}

.date-separator {
  font-weight: bold;
  padding: 0 6px;
  white-space: nowrap;
}

.custom-select-width {
  width: 100% !important;
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* BUTTON MOBILE = LEBAR INPUT */
@media (max-width: 767px) {
  .filter-row .btn {
    height: 38px;
  }
  .mobile-btn-wrap {
    max-width: 220px;   /* sesuaikan dengan input */
  }
  .mobile-btn-wrap .btn {
    width: 100%;
  }
  .form-label {
    margin-bottom: 4px !important;
    display: block;
  }
  .mb-2.row {
    margin-bottom: 15px !important; 
  }
}
.period-flex {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
}


.box-bulan {
  width: 140px !important; /* Ukuran tetap untuk bulan */
  flex-shrink: 0;
}

.box-tahun {
  width: 80px !important; /* Ukuran tetap untuk tahun */
  flex-shrink: 0;
}


.box-bulan select, .box-tahun input {
  width: 100% !important;
  min-width: 0 !important; /* Menghilangkan paksaan min-width bootstrap */
  padding: 4px !important;
  text-align: center;
}

@media (min-width: 600px) {
    #notifPanel {
        position: absolute !important; /* Kembalikan ke absolute di layar lebar */
        left: auto !important;         /* Reset posisi left */
        right: 0 !important;          /* Reset posisi right */
        width: 320px !important;      /* Kembalikan ke lebar tetap */
        top: 25px !important;         /* Sesuaikan kembali posisi atasnya */
    }
}

@media screen and (max-width: 480px) {
  .box-bulan { width: 110px !important; }
  .box-tahun { width: 70px !important; }
  .period-flex { gap: 5px; }
  .responsive-notif-panel {
    right: -10px !important; /* Sesuaikan posisi agar tidak mentok ke pinggir layar */
    width: 95vw !important;
  }
}
.btn-action {
  /* Mencegah tombol menjadi terlalu gepeng */
  min-width: 80px; 
  /* Memastikan teks tidak terpotong atau berantakan */
  white-space: nowrap;
  /* Memberikan tinggi yang konsisten */
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 600px) {

  .btn-action {
    flex-grow: 1; /* Tombol akan mengisi ruang kosong secara merata */
    margin-bottom: 5px;
  }
  .col-12 {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
}

.font-kecil {
  font-size: 0.75rem !important; /* Ukuran sekitar 12px */
  line-height: 1.2;
}

.font-title {
  font-size: 0.9rem !important;
}

/* CSS Document */
.upload-container {
  /* border: 2px dashed #d1d5db; CSS Document */
  border-radius: 8px;
  background-color: #fcfcfc;
  cursor: pointer;
  transition: 0.3s;
}

.upload-container:hover {
  border-color: #0d6efd;
  background-color: #f8f9fa;
}

/* CSS Document */
.form-control, .form-select {
  border-color: #d1d5db;
  border-radius: 6px;
}

.form-control::placeholder {
  color: #adb5bd;
  font-size: 0.9rem;
}

/* CSS Document */
.text-secondary {
  color: #4b5563 !important;
}

/* CSS Document */
.btn-primary {
  background-color: #1d79e2;
  border: none;
  border-radius: 6px;
  padding: 8px 24px;
}

.btn-primary:hover {
  background-color: #1561b5;
}

.upload-container {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background-color: #fcfcfc;
  /* cursor: pointer; CSS Document */
  transition: all 0.2s ease-in-out;
}

.upload-container:hover {
  border-color: #0d6efd;
  /* background-color: #f0f7ff; CSS Document */
}

.border-dashed {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  cursor: pointer;
}
/* CSS Document */
.form-select, .form-control {
  transition: border-color 0.2s;
}

.badge-hr-status {
  display: flex;
  padding: 0.6rem 1rem; 
  align-items: center; 
  justify-content: center;   
  font-size: 10px;          
  font-weight: 700;         
  border-radius: 6px;       
  text-align: center;
  min-width: 100px;         
  color: white !important;
  line-height: 1;           
  text-transform: uppercase;
}

.badge-hr-active {
  background-color: #ecfdf5 !important;
  color: #10b981 !important;
  border-color: #10b981 !important;
}

.badge-hr-inactive {
  background-color: #fff1f2 !important;
  color: #f43f5e !important;
  border-color: #f43f5e !important;
}

button span {
    pointer-events: none;
}

.ui-datepicker {
  z-index: 9999 !important; /* Pastikan kalender di atas modal */
}

.border-dashed {
  border-style: dashed !important;
  border-width: 2px !important;
  transition: all 0.3s ease;
}
#dropzone:hover {
  background-color: #f1f4f9 !important;
  border-color: #0d6efd !important;
}

.bodyDetail h4 {
    letter-spacing: -0.025em;
}

.bodyDetail p {
    line-height: 1.4;
}
.photo-container {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Membuat jadi bulat sempurna */
  overflow: hidden;    /* Memotong bagian gambar yang keluar dari lingkaran */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  margin: 0 auto;      /* Agar posisi container di tengah cell tabel */
}

.photo-detail {
  width: 60px;  /* Ukuran lebih besar untuk view detail sesuai gambar */
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #edf2f7;
  background-color: #f7fafc;
  flex-shrink: 0; /* Mencegah foto gepeng saat layar kecil */
}

/* Pengaturan gambar di dalam wadah */
.photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* KUNCI UTAMA: Agar gambar tidak gepeng/ketarik */
}

.update-request-alert {
  /* Warna latar belakang pink lembut */
  background-color: #fce8e6; 
  
  /* Garis merah tebal di sebelah kiri */
  border-left: 5px solid #d93025; 
  
  /* Opsional: agar sudut kanan tidak terlalu tajam */
  border-radius: 4px; 
  
  /* Memberikan jarak antara teks dan garis merah */
  padding: 15px;
}

/* Mengatur jarak antar teks agar lebih rapi */
.request-content p {
  color: #3c4043;
  font-size: 14px;
  margin-bottom: 4px;
}

.request-content strong {
  color: #000;
}

.notification-container {
  width: 320px; /* Sesuaikan lebar */
  border: 2px solid #333;
  border-radius: 20px 20px 20px 20px;
  padding: 10px;
  background: #fff;
  margin-bottom: 10px;
  text-align: left; /* Supaya teks dalam kartu tidak ikut center/right */
}

/* Bagian Header yang ada Logo & Lonceng */
.header-notif {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* Kartu Notifikasi */
.notification-card {
  background: #e9ecef;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}

.card-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
}

.user-info-flex {
  display: flex;
  align-items: center;    /* Sejajar secara vertikal */
  justify-content: flex-end; /* Rapat ke kanan */
  gap: 10px;              /* Jarak antara lonceng dan logo (sesuaikan) */
}

.notification-wrapper {
  position: relative;
  line-height: 1;
}

.logo-section {
  text-align: right;
  line-height: 1.2;
}

.bell-trigger {
  cursor: pointer;
  font-size: 20px;
  margin-top: -10px;
}

/* Supaya panel tidak lari ke kiri jauh */
.notification-container {
  position: absolute;
  top: 30px;
  right: 0;
  width: 280px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
}

.dashbord-image{
  margin-top: 50px;
}


.unread-row td {
  background-color: #eaeaea !important;
  font-weight: 600; 
}

/* Opsi: Tetap jaga warna putih untuk baris yang sudah dibaca */
.read-row td {
  background-color: #ffffff !important;
}

.desCalendarManagement{
  width: 100%;
}

.calendar-arrow-btn {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.calendar-arrow-img {
    width: 35px;
    height: 33px;
    object-fit: contain;
    vertical-align: middle;
}

.agenda-section {
    background-color: #fffff0;
    border: 1px solid #e0e0a0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    margin-top: 8px;
}

.agenda-title {
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
}

.agenda-list {
    font-size: 12px;
    line-height: 1.8;
}
.agenda-category {
    font-weight: bold;
    font-size: 12px;
    margin-top: 8px;
    color: #555;
}
.agenda-category:first-child {
    margin-top: 0;
}

.dashboard-event-detail{
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.cal-ket-wrapper {
    /* max-height: 36px; */
    overflow: hidden;
    position: relative;
    font-size: 8px;
    line-height: 12px;
}

.cal-ket-wrapper.has-limit {
    max-height: 36px;
}

.cal-ket-wrapper.expanded {
    max-height: none;
}
.cal-more-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    padding: 0;
    display: block;
    margin-top: 2px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.calendar-side-panel{
    vertical-align: top;
}

@media only screen and (max-width:768px){

    /* table luar saja */
    .tableContent{
        display:block;
        width:100%;
    }

    .tableContent > tbody{
        display:block;
        width:100%;
    }

    .tableContent > tbody > tr{
        display:flex;
        flex-direction:column;
        width:100%;
    }

    .tableContent > tbody > tr > td{
        display:block;
        width:100% !important;
        max-width:100% !important;
        box-sizing:border-box;
    }

    .calendar-side-panel{
        margin-top:15px;
        padding-left:0 !important;
    }

    #posKalender{
        width:100%;
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
    }

    #posKalender table{
        white-space:nowrap;
    }

}

.notification-wrapper {
    position: relative;
}
