.gantt_grid_data .dropdown-menu,
.gantt_task_content .dropdown-menu {
 position: fixed !important;
 z-index: 99999 !important;
}

.loading-overlay {
 display: none;
 position: fixed;
 width: 100%;
 height: 100%;
 top: 0;
 left: 0;
 z-index: 99999;
 background: rgba(255, 255, 255, 0.5) url('../img/Hourglass.gif') center
  no-repeat;
}

/* Turn off scrollbar when body element has the loading class */
body.loading {
 overflow: hidden;
}
/* Make spinner image visible when body element has the loading class */
body.loading .loading-overlay {
 display: block;
}

.container-header {
 background-color: #008eb9;
 width: 100%;
 box-sizing: border-box;
 padding: 2px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.container-action {
 width: 100%;
 display: flex;
 justify-content: end;
 flex-direction: row;
}

.container-project {
 color: white;
 width: 70%;
}

.container-gantt {
 width: 100vw;
 height: 100vh;
}

.icon-action {
 opacity: 0.4;
 cursor: pointer;
 margin-right: 2px;
}

.icon-action-header {
 opacity: 0.4;
 cursor: pointer;
 margin-right: 2px;
 font-size: 1.3em;
}

.icon-action:hover {
 opacity: 1;
}

.f-white {
 color: #ffffff;
}

.f-red {
 color: red;
}

.f-blue-sky {
 color: #328ea0 !important;
}

.f-orange {
 color: #ffa011;
}

.f-green {
 color: green;
}

.f-grey {
 color: #383838;
}

.f-black {
 color: #000 !important;
}

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

.transparent {
 background: rgba(2, 2, 2, 0.01) !important;
}

.pull-right {
 float: right;
}

.modal-actions {
 right: 0;
}

.btn-icon-toolbar {
 padding-right: 10px;
 /* padding-left: 10px; */
}

.icon-toolbar {
 color: #ffffff;
}
.icon-toolbar:hover {
 color: #ffffff;
 cursor: pointer;
}

.icon-toolbar-separator {
 color: #ffffff;
}

.btn-icon-toolbar-label {
 /* padding: .25rem .5rem; */
 font-size: 0.875rem;
 /* line-height: 1.5; */
 border-radius: 0.2rem;
}

/* .gantt_tree_icon {
    background: rgba(2,2,2,.01) !important;
} */

#add_comment_form {
 display: none;
}

#add_doc_form {
 display: none;
}

.comment-section {
 margin-bottom: 10px;
}

.comment-detail {
 font-style: italic;
 font-size: 10px;
 color: rgb(117, 117, 117);
}

.comment-text {
 font-size: 14px;
}

table.dataTable td {
 font-size: 14px;
}

table.dataTable th {
 font-size: 14px;
}

/* .holidays{
    background: #f4f7f4 !important;
} */

.gantt_task_cell.holidays {
 /* background-color: #EFF5FD; */
 background-color: #fff4f0 !important;
}

.gantt_task_row.gantt_selected .gantt_task_cell.holidays {
 background-color: #f8ec9c;
}

.elm-hide {
 display: none;
}

.elm-hide2 {
 display: none !important;
}

#gantt_dropdown {
 font-family: Arial, Helvetica, sans-serif;
 /* line-height:25px; */
 position: absolute;
 display: none;
 border: 1px solid #cecece;
 background: #fff;
 padding: 10px;
 z-index: 10;
 max-height: 350px;
 overflow: auto;
}

#gantt_dropdown input {
 margin: 0 2px;
}

#gantt_dropdown label {
 display: inline-block;
 width: 100%;
 min-width: 200px;
 /* height: 25px; */
 font-size: 14px;
}

.dropdown-title {
 font-weight: bold;
 font-size: 14px;
}

/* .dropdown-item {
 cursor: pointer;
 padding-left: 0px !important;
 padding-right: 0px !important;
 margin: 0px !important;
} */

.baseline {
 position: absolute;
 border-radius: 2px;
 z-index: 0;
 opacity: 0.3;
 /* background: #6dadf0;
    border: 1px solid #4a6bf8; */
 background: #14110a;
 border: 1px solid rgb(0, 0, 0);
}

.gantt_task_line,
.baseline {
 border-radius: 4px;
}

#map-activity {
 height: 65vh;
 max-width: 100%;
 max-height: 100%;
 width: 100vw;
}

.gantt_grid_head_cell {
 font-size: 0.75rem;
 color: #303030 !important;
 font-weight: 900;
}

.gantt_scale_cell {
 font-size: 0.75rem;
 color: #303030 !important;
 font-weight: 500;
}

#report-image {
 display: flex;
 justify-content: center;
 width: 100%;
 margin-top: 15px;
}

.gantt_modal_box {
 z-index: 99999 !important;
}

.dropdown {
 position: relative;
 display: inline-block;
}

.dropdown-content {
 display: none;
 position: absolute;
 background: white;
 border: 1px solid #ddd;
 padding: 0px 5px;
 min-width: 200px;
 z-index: 999;
 box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
 height: 300px;
 overflow-y: auto;
}

.dropdown-content label {
 display: block;
 margin: 5px 10px;
}

.dropdown.show .dropdown-content {
 display: block;
}

/* dropdown setting */
.dropdown-btn {
 width: 100%;
 padding: 6px 12px;
 background: transparent;
 border: none;
 text-align: left;
 font-size: 14px;
 color: #212529;
 transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover */
.dropdown-btn:hover {
 background-color: #f1f3f5;
 color: #000;
}

/* Active (saat klik) */
.dropdown-btn:active {
 background-color: #e9ecef;
}

/* Fokus (keyboard accessibility) */
.dropdown-btn:focus {
 outline: none;
 background-color: #e9ecef;
}

/* slider */

.prev-slide,
.next-slide {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 width: 50px;
 height: 50px;
 background: rgba(0, 0, 0, 0.5);
 color: #fff;
 font-size: 24px;
 text-align: center;
 line-height: 50px;
 cursor: pointer;
 z-index: 1;
}

.prev-slide {
 left: 0;
}

.next-slide {
 right: 0;
}

.slider-container {
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
}

/* Image styles */
.slider-container img {
 display: block;
}

/* Dots container styles */
.slider-dots {
 display: flex;
 justify-content: center;
 margin-top: 10px;
}

/* Dot styles */
.slider-dot {
 width: 100px;
 height: 50px;
 margin: 0 5px;
 cursor: pointer;
}

/* Active dot styles */
.slider-dot.active {
 border: 2px solid #605f5f;
}

/* STYLE ACIVITY DETAIL */

/* Modal Activity Detail */
#modal-activity-detail .modal-dialog {
 /* max-width: 95%;
 margin: 1.75rem auto; */
}

#modal-activity-detail .modal-content {
 border-radius: 12px;
 border: none;
 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#modal-activity-detail .modal-header {
 background: #ffffff;
 border-bottom: 1px solid #e9ecef;
 padding: 20px 24px;
}

#modal-activity-detail .modal-title {
 font-size: 20px;
 font-weight: 600;
 color: #212529;
 margin: 0;
}

#modal-activity-detail .modal-body {
 padding: 24px;
 background: #f8f9fa;
}

/* Activity Title & Description */
#activity-detail-title {
 font-size: 24px;
 font-weight: 600;
 color: #212529;
 margin-bottom: 12px;
}

#activity-detail-description {
 font-size: 14px;
 color: #6c757d;
 line-height: 1.6;
 margin-bottom: 24px;
}

/* Activity Info Section */
.activity-info {
 background: #ffffff;
 border-radius: 8px;
 padding: 16px;
 margin-bottom: 24px;
}

.activity-info .info-item {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 12px 0;
 border-bottom: 1px solid #f0f0f0;
}

.activity-info .info-item:last-child {
 border-bottom: none;
}

.activity-info .info-item i {
 color: #6c757d;
 font-size: 14px;
 width: 20px;
}

.activity-info .info-item p {
 font-size: 14px;
 color: #495057;
}

.activity-info .info-item > p:last-child {
 font-weight: 500;
 color: #212529;
}

/* Custom Fields (Checklist & Description) */
.custom-fields {
 width: 100%;
 padding: 12px 16px;
 border: 1px solid #dee2e6;
 border-radius: 6px;
 font-size: 14px;
 background: #ffffff;
 transition: border-color 0.2s ease;
}

.custom-fields:focus {
 outline: none;
 border-color: #007bff;
 box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.custom-fields.text-center {
 color: #6c757d;
 cursor: pointer;
}

.custom-fields.text-center:hover {
 background: #f8f9fa;
 border-color: #adb5bd;
}

/* Container Activity Comment */
.container-activity-comment {
 border-radius: 8px;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
 overflow: hidden;
}

.comment-header {
 background: #ffffff;
 padding: 16px 20px;
 border-bottom: 1px solid #e9ecef;
}

.comment-header h5 {
 margin: 0;
 font-size: 18px;
 font-weight: 600;
 color: #212529;
}

/* View Comment Section */
.view-comment {
 flex: 1;
 overflow-y: auto;
 padding: 16px 20px;
 background: #f8f9fa;
 max-height: calc(85vh - 280px);
}

.view-comment::-webkit-scrollbar {
 width: 6px;
}

.view-comment::-webkit-scrollbar-track {
 background: #f1f1f1;
}

.view-comment::-webkit-scrollbar-thumb {
 background: #cbd5e0;
 border-radius: 3px;
}

.view-comment::-webkit-scrollbar-thumb:hover {
 background: #a0aec0;
}

/* Container Comment Text */
.container-comment-text {
 background: #ffffff;
 border: 1px solid #e9ecef;
 border-radius: 8px;
 padding: 12px 16px;
 margin-bottom: 12px;
 transition: box-shadow 0.2s ease;
}

.container-comment-text:hover {
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.container-comment-text:last-child {
 margin-bottom: 0;
}

.comment-profile {
 display: flex;
 align-items: center;
 gap: 10px;
 border-bottom: 1px solid #f0f0f0;
}

.comment-profile p {
 margin: 0;
 font-weight: 600;
 font-size: 14px;
 color: #495057;
}
.comment-profile small {
 font-size: 12px;
 color: #6c757d;
}

.comment-avatar {
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 display: flex;
 align-items: center;
 justify-content: center;
 color: white;
 font-weight: 600;
 font-size: 14px;
 flex-shrink: 0;
}

.comment-info {
 flex: 1;
}

.comment-info p {
 margin: 0;
 font-weight: 600;
 font-size: 14px;
 color: #495057;
}

.comment-info small {
 font-size: 12px;
 color: #6c757d;
}

.comment-body {
 margin: 8px 0 0 0;
 font-size: 14px;
 color: #212529;
 line-height: 1.6;
 word-wrap: break-word;
}

/* Activity Input Section */
.activity-input {
 background: #ffffff;
 border-top: 1px solid #e9ecef;
}

.activity-input-header {
 display: flex;
 padding: 12px 20px 0;
 gap: 8px;
}

.tab-btn {
 padding: 8px 16px;
 font-size: 14px;
 font-weight: 500;
 color: #6c757d;
 cursor: pointer;
 border-bottom: 2px solid transparent;
 transition: all 0.2s ease;
}

.tab-btn:hover {
 color: #495057;
}

.tab-btn.active {
 color: #007bff;
 border-bottom-color: #007bff;
}

.activity-input-body {
 padding: 12px 20px;
}

.activity-input-body textarea,
.activity-input-body input {
 width: 100%;
 padding: 10px 12px;
 border: 1px solid #dee2e6;
 border-radius: 6px;
 font-size: 14px;
 transition: border-color 0.2s ease;
 resize: none;
 font-family: inherit;
}

.activity-input-body textarea {
 min-height: 80px;
}

.activity-input-body textarea:focus,
.activity-input-body input:focus {
 outline: none;
 border-color: #007bff;
 box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.email-input-from,
.email-input-subject {
 margin-bottom: 12px;
}

.email-input-text {
 min-height: 120px !important;
}

/* Activity Input Footer */
.activity-input-footer {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 12px 20px;
 border-top: 1px solid #f0f0f0;
}

.activity-input-footer-action i {
 font-size: 18px;
 color: #6c757d;
 cursor: pointer;
 padding: 8px;
 border-radius: 6px;
 transition: all 0.2s ease;
}

.activity-input-footer-action:hover {
 color: #007bff;
 background: #f8f9fa;
 cursor: pointer;
}

.activity-input-footer-submit {
 background: #007bff;
 color: white;
 padding: 10px 20px;
 border-radius: 6px;
 border: none;
 cursor: pointer;
 transition: all 0.2s ease;
 display: flex;
 align-items: center;
 gap: 8px;
}

.activity-input-footer-submit:hover {
 background: #0056b3;
 transform: translateY(-1px);
 box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.activity-input-footer-submit:active {
 transform: translateY(0);
}

.activity-input-footer-submit i {
 font-size: 14px;
}

.comment-actions {
 display: flex;
 gap: 12px;
 margin-top: 8px;
 padding-top: 8px;
 border-top: 1px solid #f0f0f0;
}

.btn-reply,
.btn-view-replies {
 background: transparent;
 border: none;
 color: #6c757d;
 font-size: 13px;
 cursor: pointer;
 padding: 4px 8px;
 border-radius: 4px;
 transition: all 0.2s ease;
 display: flex;
 align-items: center;
 gap: 6px;
}

.btn-reply:hover,
.btn-view-replies:hover {
 background: #f8f9fa;
 color: #007bff;
}

.btn-view-replies.active {
 color: #007bff;
 background: #e7f3ff;
}

.btn-reply i,
.btn-view-replies i {
 font-size: 12px;
}

/* Reply Section */
.comment-replies {
 margin-top: 12px;
 padding-left: 20px;
 border-left: 2px solid #e9ecef;
}

.reply-comment {
 background: #f8f9fa;
 border: 1px solid #e9ecef;
 border-radius: 6px;
 padding: 10px 12px;
 margin-bottom: 8px;
}

.reply-comment:last-child {
 margin-bottom: 0;
}

.reply-profile {
 display: flex;
 align-items: center;
 gap: 8px;
 margin-bottom: 6px;
}

.reply-profile > div {
 display: flex;
 flex-direction: column;
}

.reply-profile p {
 margin: 0;
 font-weight: 600;
 font-size: 13px;
 color: #495057;
 line-height: 1.2;
}

.reply-profile small {
 font-size: 11px;
 color: #6c757d;
 line-height: 1.2;
}

.reply-body {
 margin: 0;
 font-size: 13px;
 color: #212529;
 line-height: 1.5;
 word-wrap: break-word;
}

/* Reply Form */
.reply-form {
 margin-top: 12px;
 padding: 12px;
 background: #f8f9fa;
 border-radius: 6px;
 border: 1px solid #e9ecef;
}

.reply-form textarea {
 width: 100%;
 padding: 8px 12px;
 border: 1px solid #dee2e6;
 border-radius: 4px;
 font-size: 13px;
 resize: none;
 min-height: 60px;
 font-family: inherit;
}

.reply-form textarea:focus {
 outline: none;
 border-color: #007bff;
 box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.reply-form-actions {
 display: flex;
 gap: 8px;
 margin-top: 8px;
 justify-content: flex-end;
}

.reply-form-actions button {
 padding: 6px 16px;
 font-size: 13px;
 border-radius: 4px;
 border: none;
 cursor: pointer;
 transition: all 0.2s ease;
}

.btn-submit-reply {
 background: #007bff;
 color: white;
}

.btn-submit-reply:hover {
 background: #0056b3;
}

.btn-cancel-reply {
 background: transparent;
 color: #6c757d;
 border: 1px solid #dee2e6;
}

.btn-cancel-reply:hover {
 background: #f8f9fa;
 color: #495057;
}

/* START STYLE CHECKLIST */

.checklist-item {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px;
 background: #f8f9fa;
 border-radius: 5px;
 margin-bottom: 10px;
 transition: all 0.3s;
}
.checklist-item:hover {
 background: #e9ecef;
}
.checklist-item input[type='checkbox'] {
 width: 20px;
 height: 20px;
 cursor: pointer;
}
.checklist-item input[type='text'] {
 flex: 1;
 padding: 8px 12px;
 border: 1px solid #ddd;
 border-radius: 4px;
 font-size: 14px;
}
.checklist-item input[type='text']:focus {
 outline: none;
 border-color: #007bff;
}
.checklist-item.completed input[type='text'] {
 text-decoration: line-through;
 color: #999;
}

.action-buttons {
 display: flex;
 gap: 10px;
 margin-top: 20px;
}

.btn-checklist {
 padding: 10px 20px;
 border: none;
 border-radius: 5px;
 cursor: pointer;
 font-size: 14px;
 font-weight: bold;
 transition: all 0.3s;
}

.btn-load {
 background: #007bff;
 color: white;
}

.btn-load:hover {
 background: #0056b3;
}
.btn-clear {
 background: #6c757d;
 color: white;
}
.btn-clear:hover {
 background: #5a6268;
}
.json-output {
 margin-top: 20px;
 padding: 15px;
 background: #f8f9fa;
 border: 1px solid #ddd;
 border-radius: 5px;
 font-family: monospace;
 font-size: 12px;
 max-height: 200px;
 overflow-y: auto;
 white-space: pre-wrap;
 word-wrap: break-word;
}
.json-output h6 {
 margin: 0 0 10px 0;
 font-family: Arial, sans-serif;
 color: #333;
}
#checklist-container:empty + .no-items {
 display: block;
}
.no-items {
 display: none;
 text-align: center;
 color: #999;
 padding: 20px;
 font-style: italic;
}

/* END STYLE CHECKLIST */
/* Responsive Design */
@media (max-width: 992px) {
 #modal-activity-detail .modal-body > .d-flex {
  flex-direction: column !important;
 }

 #modal-activity-detail .modal-body > .d-flex > div {
  flex: 1 !important;
  max-width: 100% !important;
  height: auto !important;
 }

 .container-activity-comment {
  margin-top: 20px;
  min-height: 400px;
 }

 .view-comment {
  max-height: 300px;
 }
}

@media (max-width: 768px) {
 #modal-activity-detail .modal-dialog {
  margin: 0.5rem;
  max-width: 98%;
 }

 #modal-activity-detail .modal-body {
  padding: 16px;
 }

 #activity-detail-title {
  font-size: 20px;
 }

 .activity-info {
  padding: 12px;
 }

 .activity-info .info-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
 }

 .comment-header,
 .activity-input-header,
 .activity-input-body,
 .activity-input-footer {
  padding-left: 16px;
  padding-right: 16px;
 }

 .view-comment {
  padding: 12px 16px;
 }
}

@media (max-width: 576px) {
 #modal-activity-detail .modal-title {
  font-size: 18px;
 }

 #activity-detail-title {
  font-size: 18px;
 }

 .tab-btn {
  padding: 6px 12px;
  font-size: 13px;
 }

 .activity-input-footer-submit {
  padding: 8px 16px;
  font-size: 13px;
 }
}
