.toast{
  display: none;
  min-width: 20vw
}
.toast.show {
    display: block;
    opacity: 1;
    position: fixed;
    z-index: 99999999;
    margin: 20px;
    right: 0;
    top: 3.5rem;
}
.swal2-container{
    z-index: 99999999;
}

/* Verdana font — application-wide */
:root {
  --hrm-font: Verdana, Geneva, Tahoma, sans-serif;
  --font-family-sans-serif: var(--hrm-font);
  --font-family-base: var(--hrm-font);
}

*,
*::before,
*::after {
  font-family: inherit;
}

html {
  font-family: var(--hrm-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
.main-sidebar,
.content-wrapper,
.main-header,
.main-footer,
.navbar,
.card,
.card-title,
.table,
.form-control,
.custom-select,
.btn,
.badge,
.nav-link,
.dropdown-menu,
.dropdown-item,
.modal,
.modal-title,
.alert,
.toast,
.breadcrumb,
.pagination,
.page-link,
.list-group-item,
.info-box,
.info-box-text,
.info-box-number,
.small-box,
.small-box-footer,
.callout,
label,
legend,
.input-group-text,
.select2-container,
.select2-container--bootstrap4 .select2-selection,
.select2-container--bootstrap4 .select2-results__option,
.select2-container--bootstrap4 .select2-search__field,
.dataTables_wrapper,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.swal2-popup,
.swal2-title,
.swal2-html-container,
.swal2-input,
.swal2-textarea,
.swal2-select,
.note-editor,
.note-editable,
.note-toolbar,
.xdsoft_datetimepicker,
.xdsoft_datetimepicker *,
.login-box,
.login-box-msg,
.register-box,
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th, div,
input, button, select, textarea {
  font-family: var(--hrm-font) !important;
}

/* Preserve monospace for code / serial numbers */
code, kbd, pre, samp,
.font-monospace,
.table code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* Font Awesome icons must keep icon font */
.fa, .fas, .far, .fal, .fab,
[class*=" fa-"], [class^="fa-"],
.note-icon:before {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

.note-icon:before {
  font-family: summernote !important;
}

/* Fix success/green color across the app */
:root {
  --green: #28a745;
  --success: #28a745;
}
.bg-success,
span.bg-success,
.info-box-icon.bg-success {
  background-color: #28a745 !important;
  color: #fff !important;
}
.badge-success,
span.badge.badge-success {
  background-color: #28a745 !important;
  color: #fff !important;
}
.btn-success,
a.btn.btn-success,
button.btn.btn-success {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}
.btn-success:hover,
.btn-success:focus,
a.btn.btn-success:hover,
a.btn.btn-success:focus {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
}
.alert-success {
  background-color: #d4edda !important;
  border-color: #c3e6cb !important;
  color: #155724 !important;
}
.swal2-icon.swal2-success {
  border-color: #28a745 !important;
  color: #28a745 !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #28a745 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(40, 167, 69, 0.3) !important;
}
#preloader2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff82;
}

#preloader2:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1977cc;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}
@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    color: #000000cf;
    font-style: italic;
}
 .modal-dialog.large {
    width: 80% !important;
    max-width: unset;
  }
  .modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
  }
  #viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}
#viewer_modal .modal-dialog {
        width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}
  #viewer_modal .modal-content {
       background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #viewer_modal img,#viewer_modal video{
    max-height: calc(100%);
    max-width: calc(100%);
  }

/* ========================================
   HRM SYSTEM - MINIMAL CUSTOM STYLES
   Using Pure AdminLTE Components
   ======================================== */

/* ---- Login page logo ---- */
.login-page .hrm-login-logo {
  margin-bottom: 0.35rem;
}

.hrm-brand-logo-login {
  max-height: 110px;
  max-width: 320px;
  width: auto;
  height: auto;
}

/* ---- Attendance selfie UI ---- */
.hrm-selfie-video,
.hrm-selfie-preview,
.hrm-attendance-selfie-thumb {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.hrm-selfie-video {
  width: 100%;
  max-height: 320px;
  background: #000;
}

.hrm-attendance-selfie-thumb {
  height: 48px;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
}

/* ---- Section Headings ---- */
.hrm-section-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007bff;
}

/* ---- Quick Actions Flex Layout ---- */
.hrm-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Filter Form Background ---- */
.hrm-filter-form {
  background: #f4f6f9;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

/* ---- User Chip in Navbar ---- */
.hrm-user-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
}

.hrm-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
  margin-right: 0.5rem;
}

.hrm-user-name {
  color: #fff;
}

/* ---- Responsive Utilities ---- */
@media (max-width: 768px) {
  .hrm-quick-actions {
    flex-direction: column;
  }
  
  .hrm-quick-actions .btn {
    width: 100%;
  }
  
  .hrm-user-chip .hrm-user-name {
    display: none;
  }
}

/* ---- Field work day report ---- */
.field-work-day-page {
  overflow-x: hidden;
  max-width: 100%;
}
.field-work-day-page .fw-day-hero {
  border: none;
  border-left: 4px solid #007bff;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 70%);
}
.field-work-day-page .fw-day-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.field-work-day-page .fw-day-hero-main {
  flex: 1 1 220px;
  min-width: 0;
}
.field-work-day-page .fw-day-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 0 0 auto;
}
.field-work-day-page .fw-day-stat-chip {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.5rem 0.85rem;
  min-width: 4.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.field-work-day-page .fw-day-hero-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #007bff;
}
.field-work-day-page .fw-day-hero-title {
  font-weight: 700;
  color: #212529;
}
.field-work-day-page .fw-day-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #007bff;
  line-height: 1.2;
}
.field-work-day-page .fw-day-stat-value.fw-day-stat-time {
  font-size: 0.95rem;
}
.field-work-day-page .fw-day-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.04em;
}
.field-work-day-page .fw-day-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  max-width: 100%;
}
@media (min-width: 992px) {
  .field-work-day-page .fw-day-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 420px);
  }
}
.field-work-day-page .fw-day-map-card,
.field-work-day-page .fw-day-timeline-card {
  min-width: 0;
  overflow: hidden;
}
.field-work-day-page .fw-day-map {
  position: relative;
  height: clamp(280px, 50vh, 480px);
  width: 100%;
  max-width: 100%;
  background: #e9ecef;
}
.field-work-day-page .fw-day-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 0;
}
.field-work-day-page .fw-day-map.fw-day-map-ready .fw-day-map-loading {
  display: none;
}
.field-work-day-page .fw-day-map.fw-day-map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3cd;
}
.field-work-day-page .fw-day-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.field-work-day-page .fw-day-timeline {
  max-height: clamp(280px, 50vh, 480px);
  overflow-x: hidden;
  overflow-y: auto;
}
.field-work-day-page .fw-day-visit-card {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-bottom: 1px solid #eee;
}
.field-work-day-page .fw-day-visit-card--map {
  cursor: pointer;
}
.field-work-day-page .fw-day-visit-card--map:hover .fw-day-visit-body,
.field-work-day-page .fw-day-visit-card--map:focus-visible .fw-day-visit-body {
  border-color: #80bdff;
  background: #f3f8ff;
}
.field-work-day-page .fw-day-visit-card--map.active .fw-day-visit-body {
  border-color: #007bff;
  background: #e7f1ff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.field-work-day-page .fw-day-visit-card--map:focus {
  outline: none;
}
.field-work-day-page .fw-day-visit-card:last-child {
  border-bottom: none;
}
.field-work-day-page .fw-day-visit-marker {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.field-work-day-page .fw-day-visit-body {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0.65rem 0.75rem;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-work-day-page .fw-day-visit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.field-work-day-page .fw-day-visit-shop {
  font-weight: 600;
  color: #343a40;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.field-work-day-page .fw-day-visit-remarks {
  font-size: 0.875rem;
  color: #495057;
}
.field-work-day-page .fw-day-visit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
}
.field-work-day-page .fw-day-selfie-link {
  display: block;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  border-radius: 0.35rem;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.field-work-day-page img.fw-day-selfie-img {
  display: block;
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  object-fit: cover;
}
.field-work-day-page .fw-day-table-remarks {
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
}