html, body,
.page,
.page-content {
  max-width: 100%;
  overflow-x: hidden;
}

/* iOS Cordova Tweak */
.device-cordova.device-ios {
  height: 100vh;
}

.page-content.body-image {
  min-height: 100vh;
  padding-bottom: 160px;
  /* naik-turunkan nilainya (120–200) */
  background-position: bottom center;
  background-size: cover;
  background-color: #ffffff;
}

/* rapikan kartu supaya tidak menutupi terlalu jauh */
.card.border-actived {
  margin-bottom: 16px;
}

.card-color-bg-white {
  background-color: white;
  color: #FF4F04;
}

.body-image {
  background-image: url('../img/PRESENSI.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.body-image-presensi {
  background-image: url('../img/PRESENSI-HOME.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-transparent {
  background-color: transparent !important;
}

.bg-color-black {
  background-color: #929299 !important;
}

.bg-color-white {
  background-color: white !important;
}

.bg-gradient-abu {
  background: linear-gradient(135deg, #f5f5f5 0%, #f1eded 100%);
}

/* Your app custom styles here */
.card-color-green {
  background-color: forestgreen;
}

.header-bg-color {
  background-color: #464D77;
}

.card-color-white {
  background-color: white;
}

.card-color-blood {
  background-color: #b20000;
}

.card-color-blueNavy {
  background-color: #464D77;
}

.btn-color-blueWhite {
  background-color: navy;
  color: white;
}

.btn-color-greenWhite {
  background-color: forestgreen;
  color: white;
}

.btn-color-whiteBlack {
  background: linear-gradient(180deg, #D0D0D0 0%, #BDBDBD 100%);
  color: black;
}

.dialog-button {
  color: #FF4F04 !important;
}

.btn-color-greenNew {
  background: linear-gradient(135deg, #00C851, #009E3E);
  color: white;
}

.btn-color-blueNew {
  background: linear-gradient(135deg, #007BFF, #0056B3);
  color: white;
}

.btn-color-redNew {
  background: linear-gradient(135deg, #F44336, #C62828);
  color: white;
}

/* ORANGE / WARNING */
.btn-color-orangeNew {
  background: linear-gradient(135deg, #FF8800, #FF6F00);
  color: white;
}

/* PURPLE / SPECIAL TASK */
.btn-color-purpleNew {
  background: linear-gradient(135deg, #9C27B0, #6A1B9A);
  color: white;
}

/* CYAN / INFO */
.btn-color-cyanNew {
  background: linear-gradient(135deg, #00BCD4, #008BA3);
  color: white;
}

/* YELLOW / ON PROGRESS */
.btn-color-yellowNew {
  background: linear-gradient(135deg, #FFD600, #FBC02D);
  color: #333;
  font-weight: 600;
}

/* TEAL / SECONDARY SUCCESS */
.btn-color-tealNew {
  background: linear-gradient(135deg, #26A69A, #00796B);
  color: white;
}

/* GRAY / DISABLED / INACTIVE */
.btn-color-grayNew {
  background: linear-gradient(135deg, #BDBDBD, #757575);
  color: #f7f7f7;
}

.card-color-yellow {
  background-color: #E6F23C;
}

.card-color-orange {
  background-color: #bd6d03;
}

.card-color-red {
  background-color: #b20000;
  color: white;
}

.card-color-blue {
  background-color: navy;
}

.card-color-light-blue {
  background-color: lightskyblue;
  color: black;
}

.card-color-citrus {
  background-color: #bd6d03;
  color: black;
}

.card-color-steel-blue {
  background-color: navy;
}

.card-color-orange-white {
  background: linear-gradient(270deg, #FF7A1A 0%, #FF4F04 60%, #E54706 100%);
  color: white;
}

:root {
  --f7-popup-border-radius: 0px;
  --f7-popup-tablet-width: 630px;
  --f7-popup-tablet-height: 630px;
  --f7-popup-transition-duration: 400ms;
  --f7-popup-push-border-radius: 10px;
  --f7-popup-push-offset: var(--f7-safe-area-top);
  --f7-table-head-font-size: 12px;
  --f7-table-body-font-size: 14px;
  --f7-table-footer-font-size: 12px;
  --f7-table-input-height: 24px;
  --f7-table-input-font-size: 14px;
  --f7-table-collapsible-cell-padding: 3px;
  --f7-table-link-icon-only-icon-size: 20px;
  --f7-table-sortable-icon-color: #000;
  /*
  --f7-popup-tablet-border-radius: var(--f7-popup-border-radius);
  */
}

.ios {
  --f7-popup-box-shadow: none;
}

.md {
  --f7-popup-box-shadow: 0px 20px 44px rgba(0, 0, 0, 0.5);
}

.aurora {
  --f7-popup-tablet-border-radius: 4px;
  --f7-popup-box-shadow: 0px 20px 44px rgba(0, 0, 0, 0.5);
}


/*additional css by aris */

/*table color */
.table-color-tomato {
  background-color: #FF887C;
}

.table-color-lightgray {
  background-color: lightgray;
}

.table-color-green {
  background: linear-gradient(#4a8a4a, forestgreen);
  /* Standard syntax */
  background: -webkit-linear-gradient(#4a8a4a, forestgreen);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#4a8a4a, forestgreen);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#4a8a4a, forestgreen);
  /* For Firefox 3.6 to 15 */
  color: white;
}

.table-color-yellow {
  background-color: #e2e209;
}

.table-color-lightblue {
  background-color: navy;
}

.table-color-orange {
  background: linear-gradient(#f57d51, #ff4500);
  /* Standard syntax */
  background: -webkit-linear-gradient(#f57d51, #ff4500);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#f57d51, #ff4500);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#f57d51, #ff4500);
  /* For Firefox 3.6 to 15 */
  color: white;
}

.table-color-red {
  background: linear-gradient(#b53737, #b20000);
  /* Standard syntax */
  background: -webkit-linear-gradient(#b53737, #b20000);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#b53737, #b20000);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#b53737, #b20000);
  /* For Firefox 3.6 to 15 */
  background-color: #b20000;
  color: white;

}

.gradient-outline {
  position: relative;
  border: 3px solid transparent;
  /* transparan dulu */
  border-radius: 5px;
  color: #FF4F04;
  /* opsional */
  background:
    linear-gradient(white, white) padding-box,
    /* isi dalam */
    linear-gradient(135deg, #FF7A1A, #FF4F04) border-box;
  /* outline gradient */
}

.table-color-white-dop {
  background-color: #dcdcf15e;
}

/*end table color */

/*text color */
.text-add-colour-blue-fb {
  color: navy;
}

.text-add-colour-black-soft {
  color: #4c4c4c;
}

.text-add-colour-tomato {
  color: #FF887C;
}

.text-add-blue-navy {
  color: #464D77 !important;
}

.text-add-colour-red {
  color: #b20000;
}

.text-add-colour-redlight {
  color: #f51818;
}

.text-add-colour-green {
  color: #3b9e32;
}

.text-add-colour-white {
  color: #DCDCDCFA;
}

.text-add-colour-gray {
  color: dimgray;
}

.text-add-colour-orange {
  color: #FF4F04;
}

/*end text color */

/*text param*/
.text-bold {
  font-weight: bold;
}

/*end*/

/*Col Border */
div[class*="col-border"] {
  border: 0.2px solid black;
  height: 35px;
  padding: 4px;
}

.grid-resizable-demo {
  --f7-grid-row-gap: 16px;
}

.grid-resizable-demo div[class*="col"] {
  margin-bottom: 0;
}

.grid-resizable-demo .demo-col-center-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*end*/

/*Margin For Minimize Padding element (request client)*/
.margin-3 {
  margin-top: -3px !important;
}

.margin-5 {
  margin-top: -5px !important;
}

.margin-4 {
  margin-top: -4px !important;
}

.margin-8 {
  margin-top: -8px !important;
}

.margin-10 {
  margin-top: -10px !important;
}

.margin-2 {
  margin-top: -2px !important;
}

.margin-1 {
  margin-top: -1px !important;
}

.margin-10 {
  margin-top: -10px !important;
}

.margin-6 {
  margin-top: -6px !important;
}

.margin-12 {
  margin-top: -12px !important;
}

.margin-15 {
  margin-top: -15px !important;
}

.margin-16 {
  margin-top: -16px !important;
}

.margin-18 {
  margin-top: -18px !important;
}

.margin-20 {
  margin-top: -20px !important;
}

.margin-23 {
  margin-top: -23px !important;
}

.margin-25 {
  margin-top: -25px !important;
}

.margin-27 {
  margin-top: -27px !important;
}

.margin-37 {
  margin-top: -37px !important;
}

.margin-35 {
  margin-top: -35px !important;
}

.margin-50 {
  margin-top: -50px !important;
}

.margin-65 {
  margin-top: -65px !important;
}

/*End Margin*/

/*Dark Mode Req Client */
.bg-dark-gray {
  background-color: dimgray !important;
}

.bg-dark-hover-button-choose {
  background-color: dimgray !important;
}

.bg-dark-gray-young {
  background: linear-gradient(lightgray, #686665);
  /* Standard syntax */
  background: -webkit-linear-gradient(lightgray, #686665);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(lightgray, #686665);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(lightgray, #686665);
  /* For Firefox 3.6 to 15 */
}

.bg-dark-gray-medium {
  background: linear-gradient(#015cab, #909090);
  /* Standard syntax */
  background: -webkit-linear-gradient(#015cab, #909090);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#015cab, #909090);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#015cab, #909090);
  /* For Firefox 3.6 to 15 */
}

.bg-dark-gray-black {
  background: linear-gradient(#3d3d3d, black);
  /* Standard syntax */
  background: -webkit-linear-gradient(#3d3d3d, black);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#3d3d3d, black);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#3d3d3d, black);
  /* For Firefox 3.6 to 15 */
}

.bg-dark-gray-cover {
  background-color: #1c1c1d;
}

.border-actived {
  border-width: thin;
  border-style: solid;
  border-color: white;
}

.border-actived-gray {
  border-width: thin;
  border-style: solid;
  border-color: gray;
}

/*end Dark Mode Req Client */
/*Color Pallete */
.palete {
  float: left;
  width: 25px;
  height: 25px;
  margin: 5px;
  border: 1px solid white;
}

.page-button {
  float: left;
  width: 25px;
  height: 25px;
  margin: 5px;
  border: 1px solid white;
}

/*End Color Pallete */
:root {
  --f7-theme-color: #ff4f0400;
  /* warna oranye sesuai warna brand kamu */
  --f7-theme-color-rgb: 255, 79, 4;
  --f7-toolbar-border-color: #FF4F04;
  /* garis bawah toolbar */
}

.tabbar a.tab-link-active,
.toolbar a.tab-link-active {
  border-bottom-color: #FF4F04 !important;
  /* ganti biru */
  color: #FF4F04 !important;
}


:root .theme-dark,
:root.theme-dark {
  --f7-table-cell-border-color: rgba(255, 255, 255, 0.15);
  --f7-table-sortable-icon-color: #fff;
  --f7-table-input-text-color: #fff;
}

.ios {
  --f7-table-head-font-weight: 600;
  --f7-table-head-cell-height: 39px;
  --f7-table-head-icon-size: 13px;
  --f7-table-body-cell-height: 39px;
  --f7-table-cell-padding-vertical: 2px;
  --f7-table-cell-padding-horizontal: 2px;
  --f7-table-edge-cell-padding-horizontal: 2px;
  --f7-table-label-cell-padding-horizontal: 2px;
  --f7-table-checkbox-cell-width: 18px;
  /* --f7-table-actions-cell-link-color: var(--f7-theme-color); */
  /* --f7-table-actions-link-color: var(--f7-theme-color); */
  --f7-table-title-font-size: 17px;
  --f7-table-title-font-weight: 600;
  --f7-table-card-header-height: 59px;
  --f7-table-footer-height: 39px;
  --f7-table-head-text-color: rgba(0, 0, 0, 0.45);
  --f7-table-cell-border-color: rgba(0, 0, 0, 0.22);
  --f7-table-selected-row-bg-color: rgba(0, 0, 0, 0.03);
  --f7-table-footer-text-color: rgba(0, 0, 0, 0.45);
  --f7-table-input-text-color: #000;
}

.ios .theme-dark,
.ios.theme-dark {
  --f7-table-head-text-color: rgba(255, 255, 255, 0.55);
  --f7-table-footer-text-color: rgba(255, 255, 255, 0.55);
  --f7-table-selected-row-bg-color: rgba(255, 255, 255, 0.08);
}

.md {
  --f7-table-head-font-weight: 500;
  --f7-table-head-cell-height: 51px;
  --f7-table-head-icon-size: 16px;
  --f7-table-body-cell-height: 43px;
  --f7-table-cell-padding-vertical: 2px;
  --f7-table-cell-padding-horizontal: 2px;
  --f7-table-edge-cell-padding-horizontal: 2px;
  --f7-table-label-cell-padding-horizontal: 2px;
  --f7-table-checkbox-cell-width: 18px;
  --f7-table-title-font-size: 20px;
  --f7-table-title-font-weight: 400;
  --f7-table-card-header-height: 59px;
  --f7-table-footer-height: 51px;
  --f7-table-head-text-color: rgba(0, 0, 0, 0.54);
  --f7-table-cell-border-color: rgba(0, 0, 0, 0.12);
  --f7-table-actions-cell-link-color: rgba(0, 0, 0, 0.54);
  --f7-table-selected-row-bg-color: #f5f5f5;
  --f7-table-actions-link-color: rgba(0, 0, 0, 0.54);
  --f7-table-footer-text-color: rgba(0, 0, 0, 0.54);
  --f7-table-input-text-color: #212121;
}

.md .theme-dark,
.md.theme-dark {
  --f7-table-head-text-color: rgba(255, 255, 255, 0.54);
  --f7-table-footer-text-color: rgba(255, 255, 255, 0.54);
  --f7-table-selected-row-bg-color: rgba(255, 255, 255, 0.05);
  --f7-table-actions-cell-link-color: rgba(255, 255, 255, 0.54);
  --f7-table-actions-link-color: rgba(255, 255, 255, 0.54);
}

.aurora {
  --f7-table-link-icon-only-icon-size: 18px;
  --f7-table-head-font-weight: 400;
  --f7-table-head-cell-height: 28px;
  --f7-table-head-icon-size: 18px;
  --f7-table-body-cell-height: 28px;
  --f7-table-cell-padding-vertical: 2px;
  --f7-table-cell-padding-horizontal: 2px;
  --f7-table-edge-cell-padding-horizontal: 2px;
  --f7-table-label-cell-padding-horizontal: 2px;
  --f7-table-checkbox-cell-width: 22px;
  /* --f7-table-actions-cell-link-color: var(--f7-theme-color); */
  /* --f7-table-actions-link-color: var(--f7-theme-color); */
  --f7-table-title-font-size: 14px;
  --f7-table-title-font-weight: 600;
  --f7-table-card-header-height: 37px;
  --f7-table-footer-height: 28px;
  --f7-table-head-text-color: rgba(0, 0, 0, 0.6);
  --f7-table-cell-border-color: rgba(0, 0, 0, 0.12);
  --f7-table-selected-row-bg-color: rgba(0, 0, 0, 0.03);
  --f7-table-footer-text-color: rgba(0, 0, 0, 0.5);
  --f7-table-input-text-color: #000;
}

.aurora .theme-dark,
.aurora.theme-dark {
  --f7-table-selected-row-bg-color: rgba(255, 255, 255, 0.03);
  --f7-table-head-text-color: rgba(255, 255, 255, 0.54);
  --f7-table-footer-text-color: rgba(255, 255, 255, 0.54);
}

.blue-gradient {
  background: linear-gradient(270deg, #464D77 0%, #8d8d8d 100%);
  /* Standard syntax */
  background: -webkit-linear-gradient(270deg, #464D77 0%, #8d8d8d 100%);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(270deg, #464D77 0%, #8d8d8d 100%);
  /* For Firefox 3.6 to 15 */
  color: white;
}

.vertical-line {
  display: inline-block;
  width: 2px;
  /* ketebalan garis */
  height: 26px;
  /* tinggi garis */
  background-color: gray;
  /* warna garis */
  vertical-align: middle;
  /* sejajarkan dengan teks */
  margin: 0 10px;
  /* jarak kanan-kiri dari teks */
  border-radius: 2px;
  /* sedikit membulat */
}

/* Untuk background dan ukuran SVG */
.info-icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  /* ubah ukuran background */
  height: 26px;
  background-color: #FF4F04;
  /* warna background */
  border-radius: 50%;
  /* 50% = bulat, 10px = kotak melengkung */
  cursor: pointer;
  transition: 0.3s;
}

.info-icon-wrapper svg {
  width: 30px;
  /* ubah ukuran ikon */
  height: 30px;
  fill: #FF4F04;
  /* warna ikon */
}

/* Untuk background dan ukuran SVG */
.info-icon-wrapper-ijin {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  /* ubah ukuran background */
  height: 32px;
  background: linear-gradient(135deg, #f87036, #FF4F04);
  /* warna background */
  border-radius: 50%;
  /* 50% = bulat, 10px = kotak melengkung */
  cursor: pointer;
  transition: 0.3s;
}

.info-icon-wrapper-ijin svg {
  width: 24px;
  /* ubah ukuran ikon */
  height: 24px;
  fill: linear-gradient(135deg, #00C851, #009E3E);
  /* warna ikon */
}


/* Untuk background dan ukuran SVG */
.info-icon-wrapper-lembur {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  /* ubah ukuran background */
  height: 30px;
  background-color: #FF4F04;
  /* warna background */
  border-radius: 50%;
  /* 50% = bulat, 10px = kotak melengkung */
  cursor: pointer;
  transition: 0.3s;
}

.info-icon-wrapper-menu-lembur {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  /* ubah ukuran background */
  height: 30px;
  background-color: #009E3E;
  /* warna background */
  border-radius: 50%;
  /* 50% = bulat, 10px = kotak melengkung */
  cursor: pointer;
  transition: 0.3s;
}

/* Untuk background dan ukuran SVG */
.info-icon-wrapper-refresh {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  /* ubah ukuran background */
  height: 25px;
  background-color: #ffffff;
  /* warna background */
  border-radius: 50%;
  /* 50% = bulat, 10px = kotak melengkung */
  cursor: pointer;
  transition: 0.3s;
}

.info-icon-wrapper-tambah-lembur {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  /* ubah ukuran background */
  height: 28px;
  background-color: #ffffff;
  /* warna background */
  border-radius: 50%;
  /* 50% = bulat, 10px = kotak melengkung */
  cursor: pointer;
  transition: 0.3s;
}

.info-icon-wrapper-lembur svg {
  width: 22px;
  /* ubah ukuran ikon */
  height: 22px;
  fill: #0DA341;
  /* warna ikon */
}

.td-top-left {
  border-top-left-radius: 10px;
}

.td-top-right {
  border-top-right-radius: 10px;
}

.td-bottom-left {
  border-bottom-left-radius: 10px;
}

.td-bottom-right {
  border-bottom-right-radius: 10px;
}

/* Ratakan vertikal isi <td> */
.card-header-info table td {
  vertical-align: middle;
  text-align: right;
  /* ikon nempel kanan */
}

/* Kotak tombol seragam */
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
  /* hilangkan gap baseline */
}

/* Samakan perilaku ikon di dalamnya */
.icon-btn svg,
.icon-btn i.f7-icons {
  display: block;
}

/* Optional: samakan ukuran ikon biar presisi */
.icon-btn svg {
  width: 26px;
  height: 26px;
}

.icon-btn-ijin svg {
  width: 24px;
  height: 24px;
}

.icon-btn i.f7-icons {
  font-size: 20px;
}


/* FOTO CIRCLE ABSEN */
/* Wadah foto bulat */
.circle-photo {
  /* sesuaikan ukuran di inline style: --size */
  width: var(--size, 300px);
  aspect-ratio: 1 / 1;
  /* selalu bulet */
  border-radius: 50%;
  border: 1px solid #fff;
  position: relative;
  overflow: hidden;
  /* bayangan berlapis (soft + deep) */
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .32),
    0 36px 72px rgba(0, 0, 0, .24);
  transform: translateZ(0);
  /* hindari blur tepi di mobile */
}


/* Ring luar halus (kontras naik di background gelap/terang) */
.circle-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* ring putih tajam + ring netral + ring lembut */
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .95),
    0 0 0 7px rgba(0, 0, 0, .08),
    0 0 18px rgba(0, 0, 0, .18);
  pointer-events: none;
}

/* Glow lembut dari bawah agar “angkat” */
.circle-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%);
  width: 90%;
  height: 42%;
  border-radius: 50%;
  filter: blur(22px);
  background: radial-gradient(60% 80% at 50% 0%,
      rgba(255, 79, 4, .40) 0%,
      rgba(255, 79, 4, .20) 40%,
      transparent 75%);
  pointer-events: none;
}

/* Inner highlight lembut di atas (efek kaca) */
.circle-photo .inner-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(120% 90% at 50% -10%,
      rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

/* Opsional: efek hover sedikit terangkat */
.circle-photo:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Gambar */
.circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* isi penuh */
  display: block;
}

/* Tombol kamera yang mengikuti lengkung bawah */
.camera-btn {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  /* ubah 65% -> 80% bila mau lebih lebar */
  height: 42px;
  background: linear-gradient(135deg, #00C851, #009E3E);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* radius elips agar lengkung bawah pas dgn lingkaran */
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  cursor: pointer;
  line-height: 0;
}

.camera-btn i.f7-icons {
  font-size: 20px;
}

.login-form ::placeholder {
  color: white;
  /* contoh warna oranye sesuai tema kamu */
  opacity: 1;
}

.orange-gradient {
  background: linear-gradient(135deg, #FF7A1A 0%, #FF4F04 60%, #E54706 100%);
  color: white;
}

/* ABSENSI CSS */
/* HEADER OVAL ORANYE */
.hero-oval {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* padding-top diperbesar agar foto tetap di bawah header transparan */
  padding-top: calc(50px + env(safe-area-inset-top, 0px) + 30px);
  padding-bottom: 100px;
  background: linear-gradient(135deg, #FF7A1A 0%, #FF4F04 60%, #E54706 100%);
  overflow: visible;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}


/* Foto bulat yang “nempel” di oval */
.photo-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  background: #ddd;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tombol kamera mengikuti lengkung bawah foto */
/* Kamera di bawah foto */
.photo-wrap .camera-btn {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 26px;
  background: linear-gradient(135deg, #1a1b1b, #444444);
  color: #fff;
  border-radius: 0 0 50px 50px;
  font-size: 13px;
}

/* Title kiri dan kanan tetap di pojok atas */
.hero-title {
  position: absolute;
  left: 16px;
  top: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
  z-index: 2;
}

.hero-right {
  position: absolute;
  right: 16px;
  top: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

/* Info nama dan jabatan */
.hero-info {
  margin-top: 12px;
  text-align: center;
  color: #fff;
}

.hero-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.hero-info h5 {
  margin: 2px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-info p {
  margin: 2px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.card-hero {
  position: relative;
  z-index: 2;
  margin-top: -80px;
  /* naik ke area header, kaya di contoh */
}

.card-hero .card {
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.card-hero .text-align-center {
  margin-bottom: 10px;
}

.m-0 {
  margin: 0px !important;
}

/* Baris utama: tiga kolom rata */
.status-row {
  margin-top: 40px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
}

/* .popup.detail-rincian-gaji table[width="500"] {
  width: 100% !important;
  table-layout: fixed;
} */

/* Sel tabel kalau ada teks panjang jangan bikin melebar */
/* .popup.detail-rincian-gaji table[width="500"] th,
.popup.detail-rincian-gaji table[width="500"] td {
  word-wrap: break-word;
  white-space: normal;
} */


/* Tiap kolom (card) otomatis sama lebar */
.status-card {
  flex: 1;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.status-card .card-content {
  padding: 14px 8px;
}

/* Teks seragam */
.status-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.chip-name {
  background: #ffb366;
  color: #222;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-remove {
  font-weight: bold;
  cursor: pointer;
}

.button-outline {
  border: 2px solid #FF4F04;
  color: #FFFFFF;
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
}

.link {
  color: #FFFFFF !important;
  background: #FF4F04;
  font-weight: 600;
}

/*end additional css by aris*/

/* =============================================
   DETAIL GAJI POPUP - CUSTOM STYLES
   File: detail-gaji-popup.css
   ============================================= */

/* ===========================
   POPUP BASE STYLES
   =========================== */
.popup.detail-gaji {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup.detail-gaji .page-content {
  scroll-behavior: smooth;
}

/* ===========================
   CARD STYLES
   =========================== */
.detail-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-2px);
}

/* ===========================
   HEADER CARD
   =========================== */
.header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-icon-box {
  background: linear-gradient(135deg, #f48230, #ff6b35);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(244, 130, 48, 0.3);
}

.header-date-info p {
  margin: 0;
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-date-info h3 {
  margin: 3px 0 0 0;
  color: #333;
  font-size: 15px;
  font-weight: bold;
}

.status-badge {
  text-align: center;
  padding: 8px 18px;
  border-radius: 25px;
  background: #f0f0f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.status-badge p {
  margin: 0;
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge h4 {
  margin: 3px 0 0 0;
  font-size: 13px;
  font-weight: bold;
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid #f48230;
  padding-bottom: 8px;
}

.section-header .f7-icons {
  font-size: 16px;
  color: #f48230;
}

/* ===========================
   WAKTU KEHADIRAN CARDS
   =========================== */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-card {
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.time-card:hover {
  transform: translateY(-3px);
}

.time-card-masuk {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.time-card-istirahat {
  background: linear-gradient(135deg, #FF9800, #F57C00);
}

.time-card-keluar {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.time-card .f7-icons {
  font-size: 20px;
  color: white;
}

.time-card p {
  margin: 5px 0 2px 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
}

.time-card h4 {
  margin: 0;
  color: white;
  font-size: 15px;
  font-weight: bold;
}

/* ===========================
   FOTO SECTION
   =========================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-item {
  position: relative;
}

.photo-item img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 1;
  object-fit: cover;
  transition: all 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.photo-item-masuk img {
  border: 2px solid #4CAF50;
}

.photo-item-istirahat img {
  border: 2px solid #FF9800;
}

.photo-item-keluar img {
  border: 2px solid #2196F3;
}

.photo-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.photo-label-masuk {
  background: rgba(76, 175, 80, 0.95);
}

.photo-label-istirahat {
  background: rgba(255, 152, 0, 0.95);
}

.photo-label-keluar {
  background: rgba(33, 150, 243, 0.95);
}

/* ===========================
   RINCIAN GAJI CARD
   =========================== */
.gaji-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

.gaji-header {
  background: linear-gradient(135deg, #f48230 0%, #ff6b35 100%);
  padding: 12px 15px;
}

.gaji-header h4 {
  margin: 0;
  color: white;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gaji-content {
  padding: 15px;
}

.gaji-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.gaji-row-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 5px 0;
  border-bottom: none;
}

.gaji-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gaji-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.bullet-pokok {
  background: #4CAF50;
}

.bullet-lembur {
  background: #FF9800;
}

.bullet-tunjangan {
  background: #2196F3;
}

.bullet-potongan {
  background: #F44336;
}

.gaji-label span {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.gaji-value {
  color: #333;
  font-weight: bold;
  font-size: 13px;
}

.gaji-value-lembur {
  color: #FF9800;
}

.gaji-value-tunjangan {
  color: #2196F3;
}

.gaji-total-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gaji-total-label .f7-icons {
  font-size: 18px;
  color: #667eea;
}

.gaji-total-label span {
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

.gaji-total-value {
  color: #667eea;
  font-weight: bold;
  font-size: 17px;
  animation: pulse 2s ease-in-out infinite;
}

.gaji-footer {
  height: 5px;
  background: linear-gradient(90deg, #4CAF50 0%, #FF9800 33%, #2196F3 66%, #667eea 100%);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Close Button Animation */
#backbutton:hover .f7-icons {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Icon Transitions */
.f7-icons {
  transition: all 0.3s ease;
}

/* Loading Skeleton */
.skeleton-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */
@media (max-width: 480px) {

  .time-grid,
  .photo-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .photo-item img {
    aspect-ratio: 12/9 !important;
  }

  .header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-badge {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .detail-card {
    margin-bottom: 10px;
    padding: 12px;
  }

  .section-header {
    font-size: 12px;
  }

  .time-card h4 {
    font-size: 14px;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.bottom-spacing {
  height: 15px;
}

.gradient-background {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.text-center {
  text-align: center;
}

.text-bold {
  font-weight: bold;
}

/* ===========================
   PRINT STYLES (Optional)
   =========================== */
@media print {

  .navbar,
  #backbutton {
    display: none !important;
  }

  .detail-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .page-content {
    background: white !important;
  }
}

/* ===========================
   STATUS BADGE COLOR VARIANTS
   =========================== */
.status-badge-valid {
  background: linear-gradient(135deg, #2196F3, #1976D2) !important;
  box-shadow: 0 3px 8px rgba(33, 150, 243, 0.3) !important;
}

.status-badge-valid p,
.status-badge-valid h4 {
  color: white !important;
}

.status-badge-terlambat,
.status-badge-ditolak {
  background: linear-gradient(135deg, #F44336, #D32F2F) !important;
  box-shadow: 0 3px 8px rgba(244, 67, 54, 0.3) !important;
}

.status-badge-terlambat p,
.status-badge-terlambat h4,
.status-badge-ditolak p,
.status-badge-ditolak h4 {
  color: white !important;
}

.status-badge-belum {
  background: linear-gradient(135deg, #FF9800, #F57C00) !important;
  box-shadow: 0 3px 8px rgba(255, 152, 0, 0.3) !important;
}

.status-badge-belum p,
.status-badge-belum h4 {
  color: white !important;
}

/* ===========================
   HORIZONTAL LAYOUT ADDITIONS
   =========================== */

/* Header Horizontal */
.detail-header-horizontal {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Status Badge Horizontal */
.status-badge-horizontal {
  text-align: center;
  padding: 10px 25px;
  border-radius: 30px;
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Section Header Inline */
.section-header-inline {
  margin: 0 0 12px 0;
  color: #f48230;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-header-inline .f7-icons {
  font-size: 18px;
}

/* Time Grid Responsive */
.time-grid-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Photo Grid Responsive */
.photo-grid-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Photo Card */
.photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.photo-card-masuk {
  border: 3px solid #4CAF50;
}

.photo-card-istirahat {
  border: 3px solid #FF9800;
}

.photo-card-keluar {
  border: 3px solid #2196F3;
}

/* Photo Label Overlay */
.photo-label-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  text-align: center;
}

.photo-label-overlay p {
  margin: 0;
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.photo-label-masuk {
  background: linear-gradient(to top, rgba(76, 175, 80, 0.95), transparent);
}

.photo-label-istirahat {
  background: linear-gradient(to top, rgba(255, 152, 0, 0.95), transparent);
}

.photo-label-keluar {
  background: linear-gradient(to top, rgba(33, 150, 243, 0.95), transparent);
}

/* ===========================
   RESPONSIVE MOBILE
   =========================== */
@media (max-width: 768px) {
  .detail-header-horizontal {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .status-badge-horizontal {
    width: 100%;
  }
}

@media (max-width: 480px) {

  /* Stack Time Cards */
  .time-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Stack Photo Cards */
  .photo-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .photo-card img {
    aspect-ratio: 16/9 !important;
  }
}

/* =============================================
   SINGLE ROW LAYOUT - DETAIL GAJI POPUP
   ============================================= */

/* ROW 1: Tanggal & Status (Single Row) */
.detail-header-single-row {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tanggal-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-box-orange {
  background: linear-gradient(135deg, #f48230, #ff6b35);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(244, 130, 48, 0.3);
  flex-shrink: 0;
}

.icon-box-orange .f7-icons {
  font-size: 28px;
  color: white;
}

.tanggal-info {
  display: flex;
  flex-direction: column;
}

.label-small {
  margin: 0;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tanggal-text {
  margin: 3px 0 0 0;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

/* Status Badge Inline */
.status-badge-inline {
  text-align: center;
  padding: 5px 20px;
  border-radius: 20px;
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.status-label {
  margin: 0;
  font-size: 10px;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-text {
  margin: 3px 0 0 0;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

/* Section Card */
.section-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
  margin: 0 0 10px 0;
  color: #f48230;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title .f7-icons {
  font-size: 18px;
}

/* ROW 2: Three Cards (Time) - SEAMLESS WITH PHOTOS */
.three-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 6px;
  row-gap: 0 !important;
}

.time-card-inline {
  grid-row: 1;
  border-radius: 10px 10px 0 0 !important;
  padding: 12px 8px;
  text-align: center;
  box-shadow: none !important;
  transition: all 0.3s ease;
  position: relative;
}

.time-card-inline:hover {
  transform: none;
  box-shadow: none !important;
}

.time-card-inline .icon-lg {
  font-size: 22px;
  color: white;
  margin-bottom: 4px;
}

.time-card-inline-potongan {
  grid-row: 1;
  border-radius: 10px 10px 10px 10px !important;
  padding: 12px 8px;
  text-align: center;
  box-shadow: none !important;
  transition: all 0.3s ease;
  position: relative;
}

.time-card-inline-potongan:hover {
  transform: none;
  box-shadow: none !important;
}

.time-card-inline-potongan .icon-lg {
  font-size: 22px;
  color: white;
  margin-bottom: 4px;
}

.card-label {
  margin: 6px 0 4px 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
}

.card-time {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.card-masuk {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.card-istirahat {
  background: linear-gradient(135deg, #FF9800, #F57C00);
}

.card-keluar {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* ROW 3: Three Photos - UNIFIED IN SAME GRID */
.three-photos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* Photos in unified grid */
.three-cards-row .photo-box {
  position: relative;
  grid-row: 2;
  border-radius: 0 0 10px 10px !important;
  overflow: hidden;
  box-shadow: none !important;
  transition: all 0.3s ease;
  margin-top: 0 !important;
}

.three-cards-row .photo-box:hover {
  transform: none;
  box-shadow: none !important;
}

.photo-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.photo-box:hover {
  transform: translateY(-2px);
}

.photo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.three-cards-row .photo-masuk {
  grid-column: 1;
  border: 2px solid #4CAF50;
  border-top: none !important;
}

.three-cards-row .photo-istirahat {
  grid-column: 2;
  border: 2px solid #FF9800;
  border-top: none !important;
}

.three-cards-row .photo-keluar {
  grid-column: 3;
  border: 2px solid #2196F3;
  border-top: none !important;
}

.photo-masuk {
  border: 2px solid #4CAF50;
}

.photo-istirahat {
  border: 2px solid #FF9800;
}

.photo-keluar {
  border: 2px solid #2196F3;
}

.photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  text-align: center;
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.badge-masuk {
  background: rgba(76, 175, 80, 0.95);
}

.badge-istirahat {
  background: rgba(255, 152, 0, 0.95);
}

.badge-keluar {
  background: rgba(33, 150, 243, 0.95);
}


/* =============================================
   DETAIL RINCIAN GAJI - HTML TABLE FORMAT
   Modern styling with proper HTML table
   ============================================= */

/* Total Gaji Card */
.total-gaji-card {
  background: linear-gradient(135deg, #f48230 0%, #ff6b35 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(244, 130, 48, 0.3);
  animation: slideInDown 0.5s ease;
}

.total-gaji-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-gaji-info {
  flex: 1;
}

.total-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.total-amount {
  margin: 8px 0 0 0;
  color: white;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.refresh-button {
  background: rgba(255, 255, 255, 0.521);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.refresh-button .f7-icons {
  font-size: 30px;
  color: white;
}

/* Table Card Container */
.rincian-table-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 600px;
}

/* Card Header */
.card-header-rincian {
  background: linear-gradient(135deg, #f48230 0%, #ff6b35 100%);
  padding: 15px 20px;
  align-items: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.card-header-rincian .f7-icons {
  font-size: 20px;
}

/* Table Container - Scroll Wrapper */
.table-container {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  min-height: 0;
}

/* HTML Table Styling */
.table-modern {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

/* Table Header - STICKY */
.table-modern thead {
  position: sticky;
  top: 0;
  z-index: 10;
  /* background: linear-gradient(135deg, #f48230 0%, #ff6b35 100%); */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-modern thead tr {
  background: transparent;
}

/* Header Cells */
.table-modern th.header-cell {
  padding: 12px 8px;
  text-align: center;
  color: rgb(0, 0, 0);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  min-width: 80px;
}

.table-modern th.header-cell:first-child {
  min-width: 50px;
}

.table-modern th.header-cell:last-child {
  border-right: none;
}

/* Table Body */
.table-modern tbody {
  background: white;
}

/* Table Rows */
.table-modern tbody tr {
  border-bottom: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.table-modern tbody tr:last-child {
  border-bottom: none;
}

.table-modern tbody tr:hover {
  background: #f8f9fa;
  transform: translateX(2px);
}

.table-modern tbody tr.row-valid {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.03) 0%, transparent 100%);
  border-left: 4px solid #2528b3;
}

.table-modern tbody tr.row-pending {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.03) 0%, transparent 100%);
  border-left: 4px solid #FF9800;
}

.table-modern tbody tr.row-alpha {
  background: linear-gradient(90deg, rgba(244, 67, 54, 0.03) 0%, transparent 100%);
  border-left: 4px solid #F44336;
}

.table-modern tbody tr.row-rejected {
  background: linear-gradient(90deg, rgba(244, 67, 54, 0.03) 0%, transparent 100%);
  border-left: 4px solid #F44336;
}

.table-modern tbody tr.row-ijin {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.03) 0%, transparent 100%);
  border-left: 4px solid #FF9800;
}

.table-modern tbody tr.row-cuti {
  background: linear-gradient(90deg, rgba(33, 150, 243, 0.03) 0%, transparent 100%);
  border-left: 4px solid #2196F3;
}

/* Table Data Cells */
.table-modern tbody td {
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  color: #333;
  border-right: 1px solid #f5f5f5;
  white-space: nowrap;
}

.table-modern tbody td:last-child {
  border-right: none;
}

/* Cell Types */
.cell-no {
  font-weight: bold;
  color: #666;
}

.cell-date {
  font-weight: 600;
  color: #333;
}

.cell-gaji {
  color: #4CAF50;
  font-weight: 600;
}

.cell-lembur {
  color: #FF9800;
  font-weight: 600;
}

.cell-potongan {
  color: #F44336;
  font-weight: 600;
}

.cell-tunjangan {
  color: #2196F3;
  font-weight: 600;
}

.cell-total {
  color: #667eea;
  font-weight: bold;
  font-size: 14px;
}

/* Detail Button */
.detail-btn-modern {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
  white-space: nowrap;
}

.detail-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.4);
}

/* Status Buttons */
.status-btn {
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: default;
  white-space: nowrap;
}

.status-ijin {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.status-cuti {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.status-alpha {
  background: linear-gradient(135deg, #F44336, #D32F2F);
  color: white;
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state .f7-icons {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.table-modern tbody tr {
  animation: fadeIn 0.3s ease;
}

/* Scrollbar Styling */
.table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f48230, #ff6b35);
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff6b35, #f48230);
}

/* Responsive */
@media (max-width: 768px) {
  .rincian-table-card {
    max-height: 500px;
  }

  .total-amount {
    font-size: 24px;
  }

  .table-modern th.header-cell,
  .table-modern tbody td {
    padding: 10px 5px;
    min-width: 70px;
  }

  .table-modern th.header-cell:first-child {
    min-width: 40px;
  }

  .card-header-rincian {
    font-size: 14px;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .rincian-table-card {
    max-height: 450px;
  }

  .total-gaji-card {
    padding: 15px;
  }

  .total-amount {
    font-size: 20px;
  }

  .refresh-button {
    width: 45px;
    height: 45px;
  }

  .table-modern th.header-cell,
  .table-modern tbody td {
    padding: 8px 4px;
    min-width: 60px;
  }

  .table-modern th.header-cell:first-child {
    min-width: 35px;
  }

  .detail-btn-modern,
  .status-btn {
    padding: 5px 10px;
    font-size: 10px;
  }

  .card-header-rincian {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* ========================================
   OPTION 1: HORIZONTAL GRID (3x2)
   Recommended - Clean & Organized
   ======================================== */

.section-card .three-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 0;
}

/* Time cards - Row 1 */
.time-card-inline {
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  grid-row: 1;
}

.time-card-inline:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

.time-card-inline .icon-lg {
  font-size: 24px;
  color: white;
  margin-bottom: 5px;
}

.card-label {
  margin: 8px 0 5px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
}

.card-time {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* Card colors */
.card-masuk {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.card-istirahat {
  background: linear-gradient(135deg, #FF9800, #F57C00);
}

.card-keluar {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* Photo boxes - Row 2 */
.three-cards-row .photo-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  grid-row: 2;
}

.three-cards-row .photo-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Position photos in grid */
.three-cards-row .photo-masuk {
  grid-column: 1;
  border: 3px solid #4CAF50;
}

.three-cards-row .photo-istirahat {
  grid-column: 2;
  border: 3px solid #FF9800;
}

.three-cards-row .photo-keluar {
  grid-column: 3;
  border: 3px solid #2196F3;
}


/* Unified shadow for entire column (time card + photo as one unit) */
.time-card-inline,
.three-cards-row .photo-box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Photo image */
.photo-box .photo-img {
  width: 100%;
  aspect-ratio: 4/4;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

/* Photo badge */
.photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  text-align: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.badge-masuk {
  background: rgba(76, 175, 80, 0.95);
}

.badge-istirahat {
  background: rgba(255, 152, 0, 0.95);
}

.badge-keluar {
  background: rgba(33, 150, 243, 0.95);
}

/* Section card styling */
.section-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
  margin: 0 0 12px 0;
  color: #f48230;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title .f7-icons {
  font-size: 18px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
  .section-card .three-cards-row {
    gap: 10px;
  }

  .time-card-inline {
    padding: 12px 8px;
  }

  .card-time {
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .section-card .three-cards-row {
    gap: 8px;
  }

  .section-card {
    padding: 12px;
  }

  .time-card-inline {
    padding: 10px 6px;
  }

  .time-card-inline .icon-lg {
    font-size: 20px;
  }

  .card-label {
    font-size: 10px;
    margin: 5px 0 3px 0;
  }

  .card-time {
    font-size: 14px;
  }

  .photo-badge {
    font-size: 10px;
    padding: 5px;
  }
}

/* ========================================
   OPTION 2: VERTICAL STACKS (Alternative)
   Uncomment to use
   ======================================== */
/*
.section-card .three-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.time-card-inline,
.photo-box {
  grid-row: auto;
}

.time-card-inline {
  margin-bottom: 8px;
}
*/

/* ========================================
   OPTION 3: COMPACT MODE
   Foto lebih kecil, lebih compact
   ======================================== */
/*
.photo-box .photo-img {
  aspect-ratio: 1/1;
}

.time-card-inline {
  padding: 12px 8px;
}

.card-time {
  font-size: 16px;
}
*/
/* ========================================
   RESPONSIVE: UNIFIED ABSEN CARDS
   Mobile optimization
   ======================================== */
@media (max-width: 768px) {
  .section-card .three-cards-row {
    gap: 5px;
  }

  .time-card-inline {
    padding: 11px 7px;
  }

  .card-time {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .section-card {
    padding: 10px;
  }

  .section-card .three-cards-row {
    gap: 5px 5px;
    row-gap: 0 !important;
  }

  .section-title {
    margin: 0 0 8px 0;
  }

  .time-card-inline {
    padding: 10px 6px;
    border-radius: 8px 8px 0 0 !important;
  }

  .time-card-inline .icon-lg {
    font-size: 20px;
  }

  .card-label {
    font-size: 9px;
    margin: 4px 0 3px 0;
  }

  .card-time {
    font-size: 14px;
  }

  .three-cards-row .photo-box {
    border-radius: 0 0 8px 8px !important;
  }

  .photo-badge {
    font-size: 9px;
    padding: 4px;
  }
}

/* ========================================
   CUSTOM DIALOGS & BADGES
   Styling for SP System & Hari Libur
   ======================================== */

/* ========================================
   DIALOG TITLE COLORS
   ======================================== */

.dialog-danger .dialog-title {
  color: #ff3b30 !important;
  font-weight: bold;
}

.dialog-warning .dialog-title {
  color: #ff9500 !important;
  font-weight: bold;
}

.dialog-info .dialog-title {
  color: #007aff !important;
  font-weight: bold;
}

.dialog-success .dialog-title {
  color: #4cd964 !important;
  font-weight: bold;
}

.dialog-info-libur .dialog-title {
  color: #007aff !important;
  font-weight: bold;
}


/* ========================================
   DIALOG TEXT STYLING
   ======================================== */

.dialog-danger .dialog-text {
  color: #fff;
  line-height: 1.6;
}

.dialog-warning .dialog-text {
  color: #fff;
  line-height: 1.6;
}

.dialog-info .dialog-text {
  color: #555;
  line-height: 1.6;
}


/* ========================================
   BADGE COLORS
   ======================================== */

.badge-success {
  background-color: #4cd964;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.badge-warning {
  background-color: #ffcc00;
  color: #333;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.badge-orange {
  background-color: #ff9500;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.badge-danger {
  background-color: #ff3b30;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.badge-info {
  background-color: #007aff;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
}


/* ========================================
   SP STATUS BADGE IN CARD HEADER
   ======================================== */

#sp-status-badge {
  display: inline-block;
  vertical-align: middle;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ========================================
   CALENDAR HARI LIBUR MARKERS
   ======================================== */

.calendar-libur {
  background-color: #ffecec !important;
  position: relative;
  border: 1px solid #ff3b30 !important;
}

.libur-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  background: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Calendar day with libur */
.calendar-day.calendar-libur::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #ff3b30;
  border-radius: 50%;
}


/* ========================================
   STAT BOX STYLING
   ======================================== */

.stat-box {
  text-align: center;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 10px;
}

.stat-box .label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 500;
}

.stat-box .value {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.stat-box.alpha .value {
  color: #ff3b30;
}

.stat-box.hadir .value {
  color: #4cd964;
}

.stat-box.ijin .value {
  color: #007aff;
}


/* ========================================
   DIALOG BUTTON COLORS
   ======================================== */

.text-color-red {
  color: #ff3b30 !important;
}

.text-color-green {
  color: #4cd964 !important;
}

.text-color-blue {
  color: #007aff !important;
}

.text-add-colour-orange {
  color: #ff9500 !important;
}


/* ========================================
   NOTIFICATION BADGE (Header)
   ======================================== */

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff3b30;
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}


/* ========================================
   DIALOG ANIMATION
   ======================================== */

.dialog {
  animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .stat-box {
    padding: 8px;
  }

  .stat-box .value {
    font-size: 18px;
  }

  .badge-success,
  .badge-warning,
  .badge-orange,
  .badge-danger,
  .badge-info {
    font-size: 11px;
    padding: 4px 8px;
  }
}


/* ========================================
   HARI LIBUR INFO CARD (Optional)
   ======================================== */

.hari-libur-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 12px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hari-libur-card .icon {
  font-size: 32px;
  margin-bottom: 5px;
}

.hari-libur-card .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.hari-libur-card .subtitle {
  font-size: 12px;
  opacity: 0.9;
}


/* ========================================
   SP WARNING BANNER
   ======================================== */

.sp-warning-banner {
  background: #fff3cd;
  border-left: 4px solid #ff9500;
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 4px;
}

.sp-warning-banner.danger {
  background: #f8d7da;
  border-left-color: #ff3b30;
}

.sp-warning-banner .icon {
  font-size: 20px;
  margin-right: 10px;
}

.sp-warning-banner .text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}


/* ========================================
   ALPHA COUNTER
   ======================================== */

.alpha-counter {
  display: inline-block;
  background: #ff3b30;
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 5px;
}

.alpha-counter.zero {
  background: #4cd964;
}


/* ========================================
   LOADING STATE
   ======================================== */

.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  height: 20px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}


/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

.theme-dark .stat-box {
  background: #2c2c2c;
}

.theme-dark .stat-box .label {
  color: #aaa;
}

.theme-dark .stat-box .value {
  color: #fff;
}

.theme-dark .sp-warning-banner {
  background: #4a3f00;
  color: #ffd700;
}

.theme-dark .sp-warning-banner.danger {
  background: #4a0000;
  color: #ff6b6b;
}

/* ========================================
   STYLING UNTUK HARI LIBUR
   ======================================== */

/* Row hari libur - untuk modern layout */
.row-libur {
  background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%) !important;
  color: #333 !important;
}

.row-libur .cell-data {
  color: #333 !important;
}

/* Row hari libur - untuk table layout */
tr.row-libur {
  background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%) !important;
  color: #333 !important;
}

tr.row-libur td {
  color: #333 !important;
  font-weight: 500;
}

/* Button libur */
.status-btn.status-libur {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.status-btn.status-libur:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Button libur untuk old layout */
.btn-color-blueNew.button-small:has-text("📅 Libur") {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Alternative: Card color blue untuk old layout */
.card-color-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
}

.card-color-blue td {
  color: white !important;
}

/* ========================================
   EXISTING STYLES (untuk reference)
   ======================================== */

/* Row alpha */
.row-alpha {
  background-color: #ffe6e6 !important;
}

tr.row-alpha {
  background-color: #ffe6e6 !important;
}

/* Row ijin */
.row-ijin {
  background-color: #fff4e6 !important;
}

tr.row-ijin {
  background-color: #fff4e6 !important;
}

/* Row cuti */
.row-cuti {
  background-color: #e6f7ff !important;
}

tr.row-cuti {
  background-color: #e6f7ff !important;
}

/* Row valid (hadir) */
.row-valid {
  background-color: #f0f9ff !important;
}

tr.row-valid {
  background-color: #f0f9ff !important;
}

/* Row rejected */
.row-rejected {
  background-color: #ffebee !important;
}

tr.row-rejected {
  background-color: #ffebee !important;
}

/* Status buttons */
.status-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-btn.status-alpha {
  background-color: #ff4444;
  color: white;
}

.status-btn.status-ijin,
.status-btn.status-cuti {
  background-color: #ff9500;
  color: white;
}

.status-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tooltip untuk nama libur */
.status-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 4px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .status-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .status-btn.status-libur {
    font-size: 11px;
    padding: 4px 8px;
  }
}
/* ========================================
   FITUR BARU: Terlambat / Lembur orange
   ======================================== */

/* Teks/cell orange untuk terlambat dan lembur */
.cell-orange {
  color: #ff9800 !important;
  font-weight: 600;
}

/* Tombol detail berwarna orange jika terlambat */
.detail-btn-orange {
  background: linear-gradient(135deg, #ff9800, #f57c00) !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.detail-btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
}

/* ========================================
   STICKY HEADER pada home page
   ======================================== */
.app-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 10px;
  z-index: 10000;
  overflow: hidden;
}

/* Navbar (Framework7) harus menutup konten yang scroll ke atasnya */
#view-home .navbar {
  z-index: 9999 !important;
  overflow: hidden;
}

/* Pastikan konten tidak tertutup header */
#tab-1 .page-content {
  padding-top: 56px !important;
}

/* Absensi page: hero-oval menyatu dengan header transparan — padding dari hero-oval sendiri */
.page[data-name="absensi"] > .page-content {
  padding-top: 0 !important;
}

/* ========================================
   SP / TEGURAN dialog text putih
   ======================================== */
.dialog-danger,
.dialog-warning,
.dialog-info,
.dialog-success {
  --f7-dialog-text-color: #fff;
}

/* DANGER */
.dialog-danger .dialog-inner {
  background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
}
.dialog-danger .dialog-title,
.dialog-danger .dialog-text {
  color: #fff !important;
}

/* WARNING */
.dialog-warning .dialog-inner {
  background: linear-gradient(135deg, #e65100 0%, #ff6f00 100%);
}
.dialog-warning .dialog-title,
.dialog-warning .dialog-text {
  color: #fff !important;
}

/* INFO */
.dialog-info .dialog-inner {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}
.dialog-info .dialog-title,
.dialog-info .dialog-text {
  color: #fff !important;
}

/* SUCCESS */
.dialog-success .dialog-inner {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}
.dialog-success .dialog-title,
.dialog-success .dialog-text {
  color: #fff !important;
}
