/* ==================================================
   TABLE WIDTH UTILITIES
   ================================================== */
.w10 {
  width: 10%;
}

.w12 {
  width: 12.5%;
}

.w25 {
  width: 25%;
}

.w50 {
  width: 50%;
}

.w75 {
  width: 75%;
}

.hide {
  visibility: hidden;
}


/* ==================================================
   FORM CONTROLS
   ================================================== */

.input-xs {
  height: 27.5px;
  padding: 2.25px 8px;
  font-size: 9pt;
  line-height: 1.25;
  border-radius: 3px;
}

.form-control {
  font-size: 12px;
}

label {
  font-weight: 500;
}

textarea.form-control {
  resize: vertical !important;
  width: 100%;
  max-width: 100%;
}

select[readonly] {
  pointer-events: none;
}

input[type="number"] {
  text-align: right;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[required],
select[required] {
  border: 1.5px solid orange;
  outline: none;
}


/* ==================================================
   TABLES / DATATABLES
   ================================================== */

.tbl-form tbody tr td:hover {
  cursor: pointer;
}

.edit-triger:hover {
  cursor: pointer;
}

.DTFC_LeftBodyLiner {
  overflow-x: hidden;
}

.table-xs {
  font-size: 12.5px;
}

.table-xs > thead > tr > th,
.table-xs > tbody > tr > th,
.table-xs > tfoot > tr > th,
.table-xs > thead > tr > td,
.table-xs > tbody > tr > td,
.table-xs > tfoot > tr > td {
  padding: 5px;
}

.dataTables-scroll th,
.dataTables-scroll td,
#dataTables-scroll th,
#dataTables-scroll td {
  white-space: nowrap;
}

button.dt-button,
div.dt-button,
a.dt-button {
  height: 27.5px;
  padding: 2.5px 10px;
  font-size: 12px;
  line-height: 1.25;
  border-radius: 3px;
}


/* ==================================================
   LAYOUT / DIVIDERS
   ================================================== */

.left-line {
  border-left: 1px solid rgb(238, 238, 238);
}

.right-line {
  border-right: 1px solid rgb(238, 238, 238);
}

.hr-small {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 0;
  border-top: 1px solid #eee;
}

.div-inline {
  display: inline-block;
}

.custom-col {
  width: 18.75%;
  float: left;
  margin-right: 1%;
}

.custom-col:first-child {
  margin-left: 1%;
}

.custom-col:last-child {
  margin-right: 0;
}


/* ==================================================
   MODALS
   ================================================== */

.modal-dialog-scroll {
  overflow-y: initial !important;
}

.modal-body-scroll {
  height: 300px;
  overflow-y: auto;
}

.modal-body-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
}

.modal-xl {
  width: 1150px;
}

.modal-xxl {
  box-sizing: content-box;
  min-width: 1150px;
  width: 80%;
}

.modal-xxxl {
  width: 1400px;
}


/* ==================================================
   BUTTONS
   ================================================== */

.btn-xs {
  height: 27.5px;
  padding: 2.5px 10px;
  font-size: 12px;
  line-height: 22.5px;
  border-radius: 3px;
}


/* ==================================================
   PAGE / SIDEBAR / NAVIGATION
   ================================================== */

.show-hide-menu {
  position: fixed;
  left: 130px;
  top: 10px;
  z-index: 9999;
}

#page-wrapper.lebar {
  margin: 0;
}

.nav > li > a {
  padding: 7.5px 15px;
}

.nav-second-level li a {
  padding-left: 37px;
}

.nav-third-level li a {
  padding-left: 52px;
}


/* ==================================================
   STATE / MISC HELPERS
   ================================================== */

.isDisabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

.form-group {
  margin-bottom: 10px;
}

.huge {
  font-size: 24px;
}


/* ==================================================
   PANELS (SB Admin 2)
   ================================================== */

.panel-green {
  border-color: #5cb85c;
}

.panel-green > .panel-heading {
  border-color: #5cb85c;
  color: white;
  background-color: #5cb85c;
}

.panel-green > a {
  color: #5cb85c;
}

.panel-green > a:hover {
  color: #3d8b3d;
}

.panel-red {
  border-color: #d9534f;
}

.panel-red > .panel-heading {
  border-color: #d9534f;
  color: white;
  background-color: #d9534f;
}

.panel-red > a {
  color: #d9534f;
}

.panel-red > a:hover {
  color: #b52b27;
}

.panel-yellow {
  border-color: #f0ad4e;
}

.panel-yellow > .panel-heading {
  border-color: #f0ad4e;
  color: white;
  background-color: #f0ad4e;
}

.panel-yellow > a {
  color: #f0ad4e;
}

.panel-yellow > a:hover {
  color: #df8a13;
}

.panel-blue {
  border-color: blue;
}

.panel-blue > .panel-heading {
  border-color: blue;
  color: white;
  background-color: blue;
}

.panel-blue > a {
  color: blue;
}

.panel-blue > a:hover {
  color: blue;
}


/* ==================================================
   CLICKABLE PANEL
   ================================================== */

.clickable-panel {
  display: block;
  text-decoration: none;
  color: inherit;
}

.clickable-panel:hover,
.clickable-panel:focus {
  text-decoration: none;
  color: inherit;
}

.clickable-panel .panel {
  transition: all 0.15s ease;
}

.clickable-panel:hover .panel {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.clickable-panel,
.clickable-panel:hover,
.clickable-panel:focus,
.clickable-panel:active {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.clickable-panel:focus .panel,
.clickable-panel:active .panel {
  outline: none;
}

.clickable-panel:focus {
  outline: 0 !important;
  box-shadow: none !important;
}


/* ==================================================
   GANTT CHART
   ================================================== */

.chartMenu {
  width: 100vw;
  height: 40px;
  background: #1A1A1A;
  color: rgba(54, 162, 235, 1);
}

.chartMenu p {
  padding: 10px;
  font-size: 20px;
}

.chartCard {
  width: 100vw;
  height: calc(100vh - 40px);
  background: rgba(54, 162, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chartBox {
  width: 700px;
  padding: 20px;
  border-radius: 20px;
  border: solid 3px rgba(54, 162, 235, 1);
  background: white;
}


/* ==================================================
   FULLCALENDAR
   ================================================== */

.fc-daygrid-day-number {
  cursor: pointer;
}

.fc-daygrid-day:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

.fc-event {
  border: none !important;
  transition: 0.1s;
  padding-left: 2.5px;
  padding-right: 2.5px;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

.text-responsive-center {
  text-align: left;
}

.text-responsive-right {
  text-align: left;
}

@media (min-width: 1200px) {
  .text-responsive-center {
    text-align: center;
  }

  .text-responsive-right {
    text-align: right;
  }
}


/* =========================================================
   Reusable Timeline Component
   =========================================================
   DESCRIPTION
   ---------------------------------------------------------
   Component untuk menampilkan informasi yang memiliki
   hubungan START -> END secara visual.

   Cocok digunakan untuk:
   - Sparepart Usage
   - Machine Downtime
   - Maintenance Duration
   - Work Order
   - Production Process
   - Event Duration
   - Process Timeline


   BASIC STRUCTURE
   ---------------------------------------------------------

   <div class="timeline">
			<!-- Start / Beginning -->
			<div class="timeline__point timeline--start">
				<div class="timeline__dot"></div>
				<div class="timeline__content">
					<span class="timeline__label">START</span>
					<span class="timeline__date">2026-08-19</span>
					<span class="timeline__time">08:00</span>
				</div>
			</div>
			<!-- Connecting Line -->
			<div class="timeline__line">
				<span class="timeline__badge">
					<i class="fa fa-clock-o"></i>
					2h 30m
				</span>
			</div>


			<!-- End / Finish -->
			<div class="timeline__point timeline--end">
				<div class="timeline__dot"></div>
				<div class="timeline__content">
					<span class="timeline__label">END</span>
					<span class="timeline__date">2026-08-19</span>
					<span class="timeline__time">10:30</span>
				</div>
			</div>
   </div>


   COMPONENT PARTS
   ---------------------------------------------------------
   .timeline
       Container utama timeline.

   .timeline__point
       Container untuk START atau END point.

   .timeline__dot
       Lingkaran/titik yang menandai posisi START/END.

   .timeline__content
       Container informasi pada point.

   .timeline__label
       Label seperti START, END, OPEN, CLOSED, dll.

   .timeline__date
       Menampilkan tanggal.

   .timeline__time
       Menampilkan waktu.

   .timeline__line
       Garis yang menghubungkan START dan END.

   .timeline__badge
       Badge yang ditampilkan di tengah garis.
       Biasanya digunakan untuk menampilkan duration.


   VARIANTS
   ---------------------------------------------------------
   Start:
       timeline--start

   End:
       timeline--end

   Warning:
       timeline--warning

   Danger:
       timeline--danger


   CONTOH VARIANT
   ---------------------------------------------------------
   Start:
       <div class="timeline__point timeline--start">

   End:
       <div class="timeline__point timeline--end">

   Warning:
       <div class="timeline__point timeline--warning">

   Danger:
       <div class="timeline__point timeline--danger">


   IMPORTANT
   ---------------------------------------------------------
   Variant harus digunakan bersama dengan:

       .timeline__point
       .timeline__dot

   Contoh:

       <div class="timeline__point timeline--start">
           <div class="timeline__dot"></div>
       </div>


   ========================================================= */


/* =========================================================
   Timeline Container
   ========================================================= */

.timeline {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 5px 10px;
  box-sizing: border-box;
}


/* =========================================================
   Timeline Point
   ========================================================= */

.timeline__point {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}


/* =========================================================
   Timeline Dot
   ========================================================= */

.timeline__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* =========================================================
   Timeline Content
   ========================================================= */

.timeline__content {
  margin-left: 10px;
  line-height: 1.2;
}


/* =========================================================
   Timeline Label
   ========================================================= */

.timeline__label {
  display: block;
  font-size: 9px;
  font-weight: bold;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 2px;
}


/* =========================================================
   Timeline Date
   ========================================================= */

.timeline__date {
  display: block;
  font-size: 12px;
  font-weight: bold;
}


/* =========================================================
   Timeline Time
   ========================================================= */

.timeline__time {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #777;
}


/* =========================================================
   Timeline Line
   ========================================================= */

.timeline__line {
  position: relative;
  flex: 1;
  height: 3px;
  margin: 0 15px;
  background: #ddd;
}


/* =========================================================
   Timeline Badge
   ========================================================= */

.timeline__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  padding: 3px 10px;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;

  font-size: 10px;
  font-weight: bold;
  color: #666;

  white-space: nowrap;
}


/* Icon inside badge */

.timeline__badge i {
  margin-right: 3px;
}


/* =========================================================
   TIMELINE VARIANTS
   ========================================================= */

.timeline--start .timeline__dot {
  background: #337ab7;
  box-shadow: 0 0 0 4px #d9edf7;
}

.timeline--end .timeline__dot {
  background: #5cb85c;
  box-shadow: 0 0 0 4px #dff0d8;
}

.timeline--warning .timeline__dot {
  background: #f0ad4e;
  box-shadow: 0 0 0 4px #fcf8e3;
}

.timeline--danger .timeline__dot {
  background: #d9534f;
  box-shadow: 0 0 0 4px #f2dede;
}


/* ==================================================
   WEEKLY SCHEDULE TABLE
   ================================================== */

/* Base table - hilangkan semua border bawaan Bootstrap table-bordered */
#tableWeeklySchedule {
  border-collapse: collapse;
}

#tableWeeklySchedule th,
#tableWeeklySchedule td {
  border: none !important;
}

/* Garis horizontal tipis default antar baris */
#tableWeeklySchedule tbody tr td {
  border-bottom: 1px solid #eee !important;
}

/* Garis lebih tebal sebagai pemisah antar mesin */
#tableWeeklySchedule tbody tr.wc-group-start td {
  border-top: 2px solid #999 !important;
}

/* Header tanggal */
#tableWeeklySchedule thead th {
  border-bottom: 2px solid #ccc !important;
  background-color: #fafafa;
  vertical-align: middle;
}

/* Kolom nama mesin */
#tableWeeklySchedule td:first-child {
  vertical-align: middle;
  font-size: 13px;
}

/* Progress bar di dalam sel */
#tableWeeklySchedule .schedule-cell {
  padding: 4px 6px !important;
  vertical-align: middle;
}

#tableWeeklySchedule .progress {
  background-color: #f5f5f5;
  border-radius: 3px;
  overflow: hidden;
}

#tableWeeklySchedule .progress-bar-default {
  background-color: #d9d9d9;
}

/* Sel kosong */
#tableWeeklySchedule td:empty,
#tableWeeklySchedule td:not(.schedule-cell):not(:first-child) {
  background-color: #fcfcfc;
}


/* ==================================================
   NOTIFICATION
   ================================================== */

/* Bell + badge */
.notif-bell {
  position: relative;
}

.notif-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #e7505a;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
  text-align: center;
  padding: 0 3px;
  animation: notif-pulse 1.5s infinite;
}

@keyframes notif-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 80, 90, 0.6);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(231, 80, 90, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(231, 80, 90, 0);
  }
}

/* Dropdown container */
#notifikasi-list.notif-dropdown {
  width: 320px;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

#notifikasi-list .notif-header {
  padding: 10px 15px;
  font-weight: 600;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f8f8;
}

/* Item */
#notifikasi-list .notif-item > a {
  display: flex !important;
  align-items: center !important;
  text-align: left !important;
  padding: 10px 15px;
  white-space: normal;
  transition: background 0.15s ease;
}

#notifikasi-list .notif-item > a:hover {
  background: #f5f9ff;
}

#notifikasi-list .notif-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #337ab7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

#notifikasi-list .notif-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

#notifikasi-list .notif-title {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

#notifikasi-list .notif-date {
  font-size: 11px;
  margin-top: 2px;
}

#notifikasi-list .notif-empty {
  padding: 20px 15px;
  font-style: italic;
  text-align: center;
  color: #999;
}

#notifikasi-list .notif-footer {
  padding: 10px;
  font-weight: 500;
  border-top: 1px solid #e7e7e7;
}