/* DigiFuel - PT United Tractors Tbk Site Satui */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ut-blue: #0099ff;
  --ut-blue-dark: #0284c7;
  --ut-blue-light: #e0f2fe;
  --ut-blue-border: #7dd3fc;
  --ut-yellow: #f59e0b;
  --ut-yellow-accent: #fbbf24;
  --ut-green: #22c55e;
  --ut-red: #ef4444;
  --ut-text: #1e293b;
  --ut-muted: #64748b;
  --ut-border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 84px 0 0 0;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--ut-text);
  background-image: url('/images/mining_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.digi-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: rgba(226, 236, 252, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(191, 211, 245, 0.9);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.digi-brand-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.digi-logo-badge {
  background: #ffffff;
  padding: 4px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: 38px;
}

.digi-logo-badge img {
  height: 28px;
  width: auto;
  display: block;
}

.digi-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  position: relative;
}

.digi-nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.15s ease;
}

.digi-nav-link {
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.digi-nav-link:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #0f172a;
}

.digi-nav-link.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.digi-nav-links.has-pill .digi-nav-link.active {
  background: transparent;
  box-shadow: none;
}

.digi-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.digi-status-indicator {
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.digi-status-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
}

/* Notification Bell Icon in Navbar */
.digi-notif-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
  transition: transform 0.15s ease, color 0.15s ease;
}

.digi-notif-btn:hover {
  transform: scale(1.08);
  color: #0284c7;
}

.digi-notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

/* User Guide Help Icon Button in Navbar (?) */
.digi-help-icon-btn,
.digi-help-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #0284c7;
  text-decoration: none !important;
  border: 1.5px solid #0284c7;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.18);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.digi-help-icon-btn:hover,
.digi-help-pill-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  text-decoration: none !important;
}
.digi-help-icon-btn.active,
.digi-help-pill-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}
.digi-help-icon-btn svg,
.digi-help-pill-btn svg {
  display: block;
}
@media screen and (max-width: 900px) {
  .digi-help-icon-btn,
  .digi-help-pill-btn {
    width: 32px;
    height: 32px;
  }
  .digi-help-icon-btn svg,
  .digi-help-pill-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* Active User Profile Badge in Navbar */
.digi-user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 4px 14px 4px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.digi-user-profile-badge:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}

.digi-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.digi-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.digi-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.digi-user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.digi-user-role {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

/* User Role Badge / Quick Switcher in Navbar (Legacy fallback) */
.digi-role-switcher {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.digi-role-switcher select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

/* MAIN CONTENT CONTAINER */
.digi-main-container {
  flex: 1;
  width: 92%;
  max-width: 1380px;
  margin: 12px auto 40px auto;
  padding: 0 24px;
  position: relative;
}

/* CARD */
.digi-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px 46px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* FORM HEADER */
.digi-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.digi-form-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px auto;
  display: block;
}

.digi-form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ut-blue-dark);
  margin: 0 0 8px 0;
}

.digi-form-subtitle {
  font-size: 14px;
  color: var(--ut-muted);
  margin: 0 auto;
  max-width: 650px;
}

/* SIGNATURE WARNING BANNER */
/* SIGNATURE WARNING BANNER (HIGH-IMPACT RED / MENCOLOK) */
.digi-signature-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 5px solid #dc2626;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.digi-signature-alert-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.digi-signature-alert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.28);
}

.digi-signature-alert-title {
  font-weight: 800;
  font-size: 15px;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.digi-signature-alert-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.digi-signature-alert-text {
  font-size: 13px;
  color: #7f1d1d;
  margin-top: 3px;
  line-height: 1.45;
}

.digi-signature-alert-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #b91c1c !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: all 0.2s ease;
}

.digi-signature-alert-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
}

.digi-warning-banner {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.digi-warning-banner a {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
}

/* FLASH ALERTS */
.digi-alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.digi-alert-success {
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.digi-alert-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* FORM STYLES */
.digi-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0284c7;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.digi-form-box {
  border: 1.5px solid #7dd3fc;
  border-radius: 12px;
  padding: 24px 28px;
  background: #ffffff;
  margin-bottom: 20px;
}

.digi-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-bottom: 18px;
}

.digi-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 18px 24px;
  margin-bottom: 18px;
}

.digi-form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  margin-bottom: 18px;
}

.digi-form-group {
  display: flex;
  flex-direction: column;
}

.digi-form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.digi-required {
  color: #ef4444;
  margin-left: 2px;
}

.digi-input, .digi-select {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 14px;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
  width: 100%;
  font-family: inherit;
  transition: all 0.15s ease;
}

.digi-input:focus, .digi-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.digi-input[readonly], .digi-input:disabled {
  background-color: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

/* FORM VALIDATION ERROR & INVALID STATES */
.digi-input.is-invalid,
.digi-select.is-invalid,
.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.digi-input.is-invalid:focus,
.digi-select.is-invalid:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.28) !important;
}

.digi-invalid-feedback {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.4;
}

.digi-invalid-feedback svg {
  flex-shrink: 0;
}

.digi-field-hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

.digi-field-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.4;
}

.digi-field-warning svg {
  flex-shrink: 0;
}

/* MEMILIH APPROVAL SUBSECTION */
.digi-approval-badge {
  background-color: #0284c7;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 16px;
}

/* BUTTONS */
.btn-digi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-digi-blue {
  background-color: #0099ff;
  color: #ffffff;
}

.btn-digi-blue:hover {
  background-color: #0284c7;
  color: #ffffff;
}

.btn-digi-green {
  background-color: #22c55e;
  color: #ffffff;
}

.btn-digi-green:hover {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-digi-yellow {
  background-color: #f59e0b;
  color: #ffffff;
}

.btn-digi-yellow:hover {
  background-color: #d97706;
  color: #ffffff;
}

.btn-digi-red {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-digi-red:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-digi-gray {
  background-color: #e2e8f0;
  color: #475569;
}

.btn-digi-gray:hover {
  background-color: #cbd5e1;
}

/* DASHBOARD QUICK ACTION BUTTONS */
.digi-dashboard-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.digi-dashboard-quick-actions .btn-digi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.digi-dashboard-quick-actions .btn-digi:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.digi-dashboard-quick-actions .btn-digi svg {
  flex-shrink: 0;
}

/* TABLE & HISTORY STYLES */
.digi-table-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.digi-table-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.digi-table-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.digi-filter-group {
  display: flex;
  flex-direction: column;
}

.digi-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.digi-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #475569;
}

.digi-table-controls select {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  outline: none;
}

.digi-table-controls input {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  outline: none;
}

.digi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.digi-table th {
  text-align: left;
  padding: 12px 14px;
  color: #334155;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.digi-table th .sort-icon {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 4px;
}

.digi-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.digi-table tr:hover td {
  background-color: #f8fafc;
}

/* BADGES */
.digi-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.digi-badge-yellow {
  background-color: #fef08a;
  color: #854d0e;
}

.digi-badge-green {
  background-color: #dcfce7;
  color: #15803d;
}

.digi-badge-red {
  background-color: #fee2e2;
  color: #b91c1c;
}

.digi-badge-gray {
  background-color: #f1f5f9;
  color: #64748b;
}

.digi-badge-blue {
  background-color: #0284c7;
  color: #ffffff;
}

/* TABLE ACTIONS */
.digi-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.digi-action-purple {
  background-color: #7c3aed;
  color: #ffffff;
}

.digi-action-purple:hover {
  background-color: #6d28d9;
  color: #ffffff;
}

.digi-action-green {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.digi-action-green:hover {
  background-color: #10b981;
  color: #ffffff;
}

.digi-action-orange {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.digi-action-orange:hover {
  background-color: #f59e0b;
  color: #ffffff;
}

.digi-action-red {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.digi-action-red:hover {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* PAGINATION */
.digi-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  margin-top: auto;
  padding-top: 24px;
}

.digi-page-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.digi-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.digi-page-btn.active {
  background-color: #0099ff;
  border-color: #0099ff;
  color: #ffffff;
  font-weight: 700;
}

/* PROFILE PAGE */
.digi-profile-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
}

.digi-profile-left {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 32px 24px;
  text-align: center;
  height: fit-content;
}

.digi-avatar-wrapper {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  border: 4px solid #e0f2fe;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.16);
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.digi-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.digi-avatar-img:hover {
  transform: scale(1.05);
}

.digi-avatar-placeholder {
  color: #ffffff;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1px;
  user-select: none;
}

.digi-photo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.digi-profile-name {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.digi-profile-right {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 36px 42px;
}

.digi-profile-header {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin: 0 0 28px 0;
}

.digi-profile-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f8fafc;
}

.digi-profile-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.digi-profile-value {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.digi-signature-preview {
  max-width: 140px;
  max-height: 100px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px;
  background: #f8fafc;
  display: block;
  margin-bottom: 10px;
}

/* SWEETALERT2 DIGIFUEL CUSTOM STYLING */
.digi-swal-popup {
  border-radius: 18px !important;
  font-family: inherit !important;
  padding: 24px 22px !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24) !important;
}

.digi-swal-popup .swal2-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.digi-swal-popup .swal2-html-container {
  font-size: 14px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}

.digi-swal-popup .swal2-confirm,
.digi-swal-popup .swal2-cancel {
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 9px 22px !important;
}

/* ENHANCED ANIMATED SUCCESS CHECKMARK */
.swal2-icon.swal2-success {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15), 0 8px 24px rgba(34, 197, 94, 0.25) !important;
  animation: digiSuccessPulse 1.8s infinite ease-in-out !important;
  position: relative !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #16a34a !important;
  height: 6px !important;
  border-radius: 4px !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border: 4px solid rgba(34, 197, 94, 0.35) !important;
}

@keyframes digiSuccessPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4), 0 8px 20px rgba(34, 197, 94, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0), 0 12px 28px rgba(34, 197, 94, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 8px 20px rgba(34, 197, 94, 0.2);
  }
}

/* ENHANCED ANIMATED ERROR / REJECT ICON */
.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.15), 0 8px 24px rgba(239, 68, 68, 0.25) !important;
  animation: digiErrorShake 0.6s ease-in-out !important;
}

@keyframes digiErrorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* TOAST NOTIFICATION (DESKTOP: BAWAH NAVBAR KANAN ATAS, MOBILE: BOTTOM SNACKBAR) */
.swal2-container.swal2-top-end,
.swal2-container.swal2-bottom {
  pointer-events: none !important;
}

.digi-toast-popup {
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16) !important;
  border: 1px solid #cbd5e1 !important;
  padding: 12px 18px !important;
  font-family: inherit !important;
  margin-top: 80px !important; /* Clearance di bawah navbar 65px desktop */
  margin-right: 24px !important; /* Jarak aman dari pinggir kanan layar desktop */
  max-width: 440px !important;
  width: auto !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.digi-toast-popup .swal2-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.45 !important;
  padding-right: 8px !important;
  margin: 0 !important;
}

.digi-toast-popup .swal2-icon {
  margin: 0 10px 0 0 !important;
  transform: scale(0.85);
  flex-shrink: 0 !important;
}

.digi-toast-popup .swal2-close {
  font-size: 20px !important;
  color: #94a3b8 !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 6px !important;
  transition: color 0.15s ease !important;
}

.digi-toast-popup .swal2-close:hover {
  color: #ef4444 !important;
}

.login-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: digiSpin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes digiSpin {
  to { transform: rotate(360deg); }
}

/* MODAL */
.digi-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px 20px;
}

.digi-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
  position: relative;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.digi-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.digi-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.digi-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.digi-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.digi-modal-body {
  padding: 24px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
  overflow-y: auto;
  flex: 1;
}

.digi-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.digi-modal-lg {
  max-width: 580px !important;
}

/* REQUEST SUMMARY IN MODAL */
.digi-modal-request-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.digi-modal-request-summary .summary-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.digi-modal-request-summary .summary-no {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.digi-modal-request-summary .summary-sub {
  font-size: 12px;
  color: #475569;
  margin-top: 1px;
}

.digi-modal-request-summary .summary-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* INPUT ADDON & INPUT GROUP */
.digi-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.digi-input-group .digi-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex: 1;
}

.digi-input-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: none;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.digi-input-group .digi-input.is-invalid + .digi-input-addon {
  border-color: #ef4444;
  background: #fef2f2;
  color: #dc2626;
}

/* VENDOR DISPENSER REALIZATION CARD */
.digi-realization-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.digi-realization-card .realization-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #86efac;
}

.digi-realization-card .realization-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  flex-shrink: 0;
}

.digi-realization-card .realization-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #166534;
  line-height: 1.3;
}

.digi-realization-card .realization-subtitle {
  font-size: 11.5px;
  color: #15803d;
  margin-top: 2px;
  line-height: 1.4;
}

.realization-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.realization-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  padding: 8px 12px;
  margin-top: 12px;
  line-height: 1.45;
}

.realization-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .digi-modal-backdrop {
    padding: 12px !important;
  }
  .digi-modal {
    max-width: 100% !important;
    max-height: calc(100vh - 24px) !important;
    border-radius: 14px !important;
  }
  .digi-modal-header {
    padding: 14px 18px !important;
  }
  .digi-modal-body {
    padding: 16px 18px !important;
  }
  .digi-modal-footer {
    padding: 12px 18px !important;
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }
  .digi-modal-footer .btn-digi {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }
  .realization-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .digi-modal-request-summary {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* DOCUMENT PRINTABLE VIEW (Slide 11) */
.fuel-document-sheet {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 30px 36px;
  max-width: 760px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
}

.fuel-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.fuel-doc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fuel-doc-brand-text {
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.25;
}

.fuel-doc-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: underline;
  margin: 10px 0 20px 0;
}

.fuel-doc-no {
  font-size: 13.5px;
  font-weight: 700;
}

.fuel-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13px;
}

.fuel-doc-table td {
  padding: 7px 4px;
  vertical-align: top;
}

.fuel-doc-table .lbl {
  font-weight: 800;
  width: 250px;
}

.fuel-doc-table .col {
  width: 15px;
  text-align: center;
  font-weight: 800;
}

.fuel-doc-table .val {
  font-weight: 700;
}

.fuel-doc-date {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.fuel-doc-signatures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  margin-top: 20px;
}

.fuel-doc-sig-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.fuel-doc-sig-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  min-height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.fuel-doc-sig-slot {
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.fuel-doc-sig-slot img,
.fuel-doc-sig-img {
  max-height: 90px !important;
  max-width: 110px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.fuel-doc-sig-line {
  width: 100%;
  border-bottom: 1.5px solid #000000;
  margin-bottom: 4px;
}

.fuel-doc-sig-name {
  font-size: 11px;
  font-weight: 800;
  min-height: 16px;
  display: block;
}

.fuel-doc-sig-role {
  font-size: 10.5px;
  display: block;
}

/* FOOTER */
.digi-footer {
  text-align: left;
  padding: 16px 48px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ========================================================================== */
/* RESPONSIVE & MOBILE (ANDROID & iOS) STYLING                                */
/* ========================================================================== */

/* Prevent accidental horizontal wobble while allowing swipeable subcontainers */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Touch-optimized inputs and buttons (minimum 42px touch targets) */
.digi-input,
.digi-select {
  min-height: 42px;
  font-size: 14px;
}

/* Universal Smooth Swipeable Table Wrapper */
.digi-table-responsive,
div[style*="overflow-x: auto"],
div[style*="overflow-x:auto"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain !important;
  position: relative !important;
  scrollbar-width: thin;
  scrollbar-color: #0284c7 #e2e8f0;
}

.digi-table-responsive::-webkit-scrollbar,
div[style*="overflow-x: auto"]::-webkit-scrollbar {
  height: 8px !important;
  display: block !important;
}

.digi-table-responsive::-webkit-scrollbar-track,
div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 4px !important;
}

.digi-table-responsive::-webkit-scrollbar-thumb,
div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
  background: #0284c7 !important;
  border-radius: 4px !important;
}

.digi-table-responsive::-webkit-scrollbar-thumb:hover,
div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb:hover {
  background: #0369a1 !important;
}

/* Mobile Swipe Hint Banner */
.digi-mobile-swipe-hint {
  display: none;
}

@media screen and (max-width: 900px) {
  .digi-mobile-swipe-hint {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 10px;
    font-weight: 600;
  }
}

/* Split Grid on Dashboard */
.digi-dashboard-split-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.digi-dashboard-split-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Mobile Stepper / Progress Tracking (Horizontally swipeable on Android) */
.digi-stepper-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* Mobile Master Data Tabs (Single-row horizontal swipeable pills) */
.digi-tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

/* Printable Document Sheet Scroll Wrapper */
.digi-document-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

@media screen and (max-width: 900px) {
  body {
    padding-top: 108px;
  }

  .digi-navbar {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(226, 236, 252, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(191, 211, 245, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
  }

  .digi-brand-left {
    order: 1;
    gap: 2px;
  }

  .digi-logo-badge {
    height: 34px;
    padding: 3px 10px;
  }

  .digi-logo-badge img {
    height: 22px;
  }

  .digi-status-indicator {
    font-size: 11px;
  }

  .digi-nav-right {
    order: 2;
    gap: 10px;
  }

  .digi-nav-links {
    order: 3;
    width: 100%;
    margin-top: 4px;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 6px;
    padding: 2px 2px 6px 2px;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .digi-nav-links::-webkit-scrollbar {
    display: none;
  }

  .digi-nav-pill {
    background: #0284c7;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  }

  .digi-nav-link {
    flex-shrink: 0;
    font-size: 13px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
  }

  .digi-nav-link.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    text-shadow: none;
  }

  .digi-nav-links.has-pill .digi-nav-link.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #ffffff;
  }

  .digi-user-profile-badge {
    padding: 3px 8px 3px 4px;
    gap: 6px;
  }

  .digi-user-profile-badge .digi-user-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .digi-user-profile-badge .digi-user-role {
    display: none;
  }

  .digi-main-container {
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
    margin: 8px auto 24px auto;
  }

  .digi-card {
    padding: 18px 14px;
    border-radius: 14px;
    min-height: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
  }

  .digi-dashboard-quick-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .digi-dashboard-quick-actions .btn-digi {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding: 11px 16px;
    font-size: 13.5px;
    border-radius: 8px;
  }

  .digi-form-grid-2, .digi-form-grid-3, .digi-form-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .digi-table {
    width: 100% !important;
    min-width: 760px !important;
    border-collapse: collapse;
  }

  .digi-table th,
  .digi-table td {
    padding: 10px 12px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
  }

  .digi-table-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .digi-table-filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .digi-filter-group {
    width: 100%;
  }

  .digi-filter-group .digi-select,
  .digi-filter-group .digi-input {
    width: 100% !important;
    min-width: 100% !important;
  }

  .digi-table-filters .btn-digi {
    width: 100%;
    justify-content: center;
  }

  .digi-table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .digi-table-controls input {
    width: 100%;
    box-sizing: border-box;
  }

  .digi-profile-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .digi-profile-left {
    padding: 20px 16px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .digi-profile-right {
    padding: 20px 16px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .digi-profile-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .digi-profile-label {
    font-size: 12.5px;
    color: #64748b;
  }

  .digi-profile-value {
    font-size: 14px;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .digi-sigpad-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .digi-sigpad-tabs {
    padding: 3px !important;
    gap: 4px !important;
  }

  .digi-sigpad-tab-btn {
    padding: 7px 6px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }

  .digi-sigpad-body {
    padding: 12px 10px !important;
  }

  .digi-sigpad-canvas-wrapper {
    height: 180px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .digi-sigpad-canvas {
    height: 180px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .digi-sigpad-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .digi-sigpad-footer .btn-digi {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 9px 14px !important;
  }

  .digi-sigpad-footer > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .swal2-container.swal2-bottom,
  .swal2-container.swal2-top-end {
    pointer-events: none !important;
    padding-bottom: 24px !important;
  }

  .digi-toast-popup {
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 16px !important;
    max-width: calc(100vw - 32px) !important;
    width: auto !important;
    min-width: 280px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid #cbd5e1 !important;
    pointer-events: auto !important;
    padding: 12px 14px !important;
  }

  .digi-toast-popup .swal2-title {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }

  .digi-stepper-scroll {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
    gap: 10px !important;
    padding: 10px 12px !important;
    scrollbar-width: thin;
  }

  .digi-stepper-scroll > div {
    flex: 0 0 160px !important;
    scroll-snap-align: start;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 8px;
  }

  .digi-tabs-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    padding-bottom: 10px;
    margin-bottom: 16px;
    gap: 8px;
    scrollbar-width: thin;
  }

  .digi-tabs-nav::-webkit-scrollbar {
    height: 4px;
  }

  .digi-tabs-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }

  .digi-tabs-nav .btn-digi {
    flex-shrink: 0 !important;
  }

  .digi-dashboard-split-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .digi-dashboard-split-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .digi-footer {
    padding: 12px 14px;
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .fuel-doc-signatures {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .digi-kpi-summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media screen and (max-width: 480px) {
  .digi-logo-badge {
    height: 30px;
    padding: 2px 8px;
  }

  .digi-logo-badge img {
    height: 18px;
  }

  .digi-status-indicator {
    display: none;
  }

  .digi-user-profile-badge .digi-user-name {
    display: none;
  }

  .digi-user-profile-badge {
    padding: 2px;
    border-radius: 50%;
  }

  .digi-form-header {
    padding-bottom: 12px;
  }

  .digi-form-title {
    font-size: 20px;
  }
}

@media print {
  .fuel-doc-signatures {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }
}

/* ==========================================================================
   TABLE COLUMN HEADER SORTING (A-Z / 1-9)
   ========================================================================== */
.digi-table th.digi-sortable-th {
  cursor: pointer !important;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}
.digi-table th.digi-sortable-th:hover {
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
}
.digi-table th.digi-sortable-th:hover .digi-sort-svg-neutral {
  opacity: 0.8 !important;
  stroke: #0284c7 !important;
}
.digi-table th.digi-sortable-th.is-sorted {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #0284c7 !important;
}
.digi-sort-icon-box {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  margin-left: 5px;
}
.digi-sort-svg-neutral {
  opacity: 0.35;
  vertical-align: middle;
  transition: opacity 0.15s ease, stroke 0.15s ease;
}
.digi-sort-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  background: #0284c7;
  color: #ffffff;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* ==========================================================================
   DIGITAL SIGNATURE PAD (HTML5 CANVAS & FILE SWITCHER)
   ========================================================================== */
.digi-sigpad-container {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
}

.digi-sigpad-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 4px;
  gap: 4px;
  box-sizing: border-box;
}

.digi-sigpad-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.digi-sigpad-tab-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.digi-sigpad-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.digi-sigpad-body {
  padding: 14px 16px;
  box-sizing: border-box;
}

.digi-sigpad-canvas-wrapper {
  position: relative;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
  height: 190px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.digi-sigpad-canvas-wrapper:hover,
.digi-sigpad-canvas-wrapper.is-drawing {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.digi-sigpad-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  background: #ffffff;
  box-sizing: border-box;
}

.digi-sigpad-baseline {
  position: absolute;
  bottom: 38px;
  left: 20px;
  right: 20px;
  border-bottom: 1px dashed #cbd5e1;
  pointer-events: none;
}

.digi-sigpad-baseline-hint {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
  user-select: none;
}

.digi-sigpad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.digi-sigpad-status {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ==========================================================================
   Evaluation Period Mode Switcher & Segmented Controls
   ========================================================================== */
.digi-segmented-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}

.digi-segmented-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.digi-segmented-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  gap: 4px;
}

.digi-segmented-btn {
  border: none;
  background: transparent;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}

.digi-segmented-btn:hover {
  color: #1e293b;
}

.digi-segmented-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

.btn-period-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  line-height: 1.4;
  user-select: none;
}

.btn-period-mode:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
}

.btn-period-mode.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
}

.digi-eval-filters-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}

.digi-eval-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .digi-segmented-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 12px;
  }
  .digi-segmented-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    padding: 3px;
    gap: 3px;
  }
  .digi-segmented-btn {
    padding: 8px 4px;
    font-size: 12px;
    white-space: normal;
    line-height: 1.25;
  }
  .digi-eval-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }
  .digi-eval-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
  .btn-eval-apply,
  .btn-eval-calc {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 12px;
  }
  .btn-eval-export {
    grid-column: span 2;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 9px 12px;
  }
}



