/* 1Life Unified Automation Hub & POD Comparator Styles (#39c5bc & #2baeba) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #0f172a;
  color: #1e293b;
}

.unified-app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* --- Left Unified Automation Sidebar --- */
.unified-sidebar {
  width: 235px;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
  flex-shrink: 0;
  transition: width 0.2s ease, margin-left 0.2s ease;
  user-select: none;
}

.unified-sidebar.collapsed {
  margin-left: -235px;
}

.sidebar-brand {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e293b;
}

.brand-logo {
  min-width: 44px;
  width: auto;
  padding: 0 6px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #39c5bc 0%, #2baeba 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(43, 174, 186, 0.35);
}

.brand-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.sidebar-section-label {
  padding: 10px 14px 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

.sidebar-nav {
  flex: 1 1 0;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.sidebar-nav-item {
  width: 100%;
  background: transparent;
  color: #cbd5e1;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.sidebar-nav-item .material-icons {
  font-size: 16px;
}

.sidebar-nav-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(57, 197, 188, 0.18) 0%, rgba(43, 174, 186, 0.12) 100%);
  color: #39c5bc;
  border-color: rgba(57, 197, 188, 0.35);
}

.sidebar-nav-item .nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav-item .nav-badge {
  background: rgba(57, 197, 188, 0.2);
  color: #39c5bc;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.sidebar-upcoming-card {
  margin-top: 6px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px dashed #334155;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

.sidebar-upcoming-card .upcoming-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.sidebar-upcoming-card p {
  margin: 0;
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-credits-footer {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  user-select: none;
}

.sidebar-credits-footer .credits-copy {
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.3px;
}

.sidebar-credits-footer .credits-team {
  font-size: 11px;
  font-weight: 700;
  color: #39c5bc;
  letter-spacing: 0.2px;
}

/* Host Browser Control Card */
.host-control-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.host-card-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.host-status-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f8fafc;
}

.host-user-sub {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-login-btn {
  margin-top: 2px;
  width: 100%;
  background: linear-gradient(90deg, #39c5bc 0%, #2baeba 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(43, 174, 186, 0.3);
  transition: all 0.15s ease;
}

.sidebar-login-btn:hover {
  background: linear-gradient(90deg, #44d8cd 0%, #32bcc9 100%);
  transform: translateY(-1px);
}

.sidebar-login-btn.signed-in {
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
  box-shadow: none;
}

.sidebar-login-btn.signed-in:hover {
  border-color: #39c5bc;
  color: #ffffff;
}

/* Clean In-App Login Modal */
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-modal-backdrop.open {
  display: flex;
}

.login-modal-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: pod-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-header {
  background: linear-gradient(90deg, #39c5bc 0%, #2baeba 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.login-brand-badge {
  min-width: 48px;
  width: auto;
  padding: 0 8px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-header-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.login-header-text p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.88);
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.login-modal-close:hover {
  opacity: 1;
}

.login-modal-form {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-field-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 10px;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.login-input-wrap:focus-within {
  background: #ffffff;
  border-color: #2baeba;
  box-shadow: 0 0 0 3px rgba(43, 174, 186, 0.18);
}

.login-input-wrap .material-icons {
  font-size: 17px;
  color: #64748b;
}

.login-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
}

.login-modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.login-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.login-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.login-btn-secondary:hover {
  background: #e2e8f0;
}

.login-btn-submit {
  background: linear-gradient(90deg, #39c5bc 0%, #2baeba 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(43, 174, 186, 0.3);
}

.login-btn-submit:hover:not(:disabled) {
  background: linear-gradient(90deg, #44d8cd 0%, #32bcc9 100%);
}

.login-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* System Resource Guard Card */
.resource-guard-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
}

.rg-badge {
  background: rgba(43, 174, 186, 0.2);
  color: #39c5bc;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.rg-badge.throttled {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.rg-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rg-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.rg-bar-row > span:first-child {
  width: 26px;
}

.rg-bar-row > span:last-child {
  width: 30px;
  text-align: right;
}

.rg-bar-track {
  flex: 1;
  height: 5px;
  background: #0f172a;
  border-radius: 3px;
  overflow: hidden;
}

.rg-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #39c5bc, #2baeba);
  transition: width 0.3s ease;
}

.rg-bar-fill.warn {
  background: #f59e0b;
}

.rg-sub {
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Main Workspace --- */
.unified-main-workspace {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f6f9;
}

.pod-sidebar-toggle {
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 3px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pod-sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* --- Ported 1Life POD Comparator Styles --- */
.pod-modal-window {
  width: 100%;
  height: 100%;
  background: #f4f6f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pod-compare-topbar {
  min-height: 44px;
  background: linear-gradient(90deg, rgba(57, 197, 188, 1) 0%, rgba(57, 197, 188, 1) 5%, rgba(43, 174, 186, 1) 100%) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  color: #ffffff;
  flex-shrink: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.pod-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pod-compare-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

/* Topbar Search Waybill Box */
.pod-search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  padding: 1px 3px 1px 8px;
  gap: 4px;
  transition: all 0.2s ease;
}

.pod-search-box:focus-within {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.pod-search-icon {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.pod-search-box:focus-within .pod-search-icon {
  color: #179b94;
}

.pod-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  width: 145px;
  padding: 2px 0;
}

.pod-search-box:focus-within .pod-search-input {
  color: #1e293b;
}

.pod-search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.pod-search-box:focus-within .pod-search-input::placeholder {
  color: #94a3b8;
}

.pod-search-btn {
  background: #ffffff;
  color: #179b94;
  border: none;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.pod-search-btn:hover {
  background: #f0fdfa;
  color: #0f766e;
}

.pod-search-btn kbd {
  background: #e2e8f0;
  color: #0f766e;
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 8.5px;
  font-family: inherit;
}

.pod-spin {
  animation: pod-spin-kf 0.85s linear infinite !important;
}

@keyframes pod-spin-kf {
  100% {
    transform: rotate(360deg);
  }
}

/* Patient Name Badge */
.pod-patient-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 2px 8px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  user-select: text !important;
}

.pod-patient-badge:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
}

.pod-patient-badge:active {
  transform: scale(0.98);
}

.pod-patient-name {
  color: #ffffff;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text !important;
}

.pod-btn-copy-patient {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 2px;
  margin-left: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  line-height: 1;
}

.pod-btn-copy-patient:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

.pod-btn-copy-patient:active {
  transform: scale(0.9);
}

.pod-btn-copy-queue-patient {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 1px 3px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1;
  vertical-align: middle;
}

.pod-btn-copy-queue-patient:hover {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.pod-queue-item-patient {
  user-select: text !important;
  display: flex;
  align-items: center;
}

/* Toast notifications */
.pod-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100000;
  pointer-events: none;
}

.pod-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.pod-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.pod-toast-success {
  background: #065f46;
  color: #ecfdf5;
  border: 1px solid #059669;
}

.pod-toast-info {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
}

.pod-patient-waybill {
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

/* Right Controls */
.pod-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pod-top-btn {
  background: #ffffff !important;
  color: #179b94 !important;
  border: 1px solid #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.15s ease !important;
}

.pod-top-btn:hover {
  background: #f0fdfa !important;
  color: #0f766e !important;
  transform: translateY(-1px);
}

.pod-top-btn.active {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
}

.pod-top-btn kbd {
  background: #e2e8f0;
  color: #0f766e;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 8.5px;
  font-family: inherit;
}

.pod-other-badge {
  background: rgba(23, 155, 148, 0.15);
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.pod-top-btn.active .pod-other-badge {
  background: #ffffff;
  color: #0f766e;
}

.pod-top-btn-close {
  background: transparent !important;
  color: #64748b !important;
  border: none !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  line-height: 1 !important;
}

/* Workspace Stage: 2-Column Split Body + Slide-out Drawers */
.pod-main-stage {
  flex: 1 1 0;
  display: flex;
  overflow: hidden;
  position: relative;
  background: #f4f6f9;
}

.pod-compare-body {
  flex: 1 1 0;
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  background: #f4f6f9;
}

@keyframes pod-fade-in {
  from {
    opacity: 0;
    transform: scale(0.993);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pod-col-pane {
  flex: 1 1 0;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  animation: pod-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.pod-pane-header {
  background: #ffffff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #2baeba;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
  gap: 8px;
}

.pod-pane-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod-pane-title {
  font-weight: 700;
  color: #0f766e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod-type-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.pod-pane-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pod-badge-sideways {
  display: none;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.pod-badge-sideways.visible {
  display: inline-flex;
}

.pod-header-tool-btn {
  background: #f1f5f9;
  color: #0f766e;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.pod-header-tool-btn:hover {
  background: #2baeba;
  color: #ffffff;
  border-color: #2baeba;
}

.pod-zoom-controls {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.pod-zoom-btn {
  background: transparent;
  border: none;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  padding: 1px 7px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s;
}

.pod-zoom-btn:hover {
  background: #2baeba;
  color: #ffffff;
}

.pod-zoom-level {
  background: #ffffff;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
  line-height: 1.2;
}

.pod-zoom-level:hover {
  background: #f8fafc;
  color: #0f766e;
}

.pod-pane-content {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #202020;
  padding: 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.pod-pane-content:active {
  cursor: grabbing;
}

.pod-transform-target {
  flex-shrink: 0 !important;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  pointer-events: auto;
  touch-action: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  max-width: none !important;
  max-height: none !important;
}

.pod-transform-target.is-dragging {
  transition: none !important;
}

iframe.pod-transform-target {
  border: none;
  background: #202020;
  pointer-events: auto;
}

.pod-pdf-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.pod-pdf-container canvas {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  background: #ffffff;
}

/* Stack for ID Front, Back & Signature in View 2 */
.pod-id-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
}

.pod-id-subbox {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pod-id-subbox-sig {
  flex: 0.5 1 0;
  min-height: 90px;
  max-height: 24%;
}

.pod-id-subtitle {
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  padding: 4px 10px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-shrink: 0;
}

.pod-id-subcontent {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #202020;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.pod-id-subcontent:active {
  cursor: grabbing;
}

.pod-sig-img {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  padding: 6px;
}

/* Missing and Loading Notices */
.pod-missing-notice {
  color: #dc3545;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: #ffffff;
  text-align: center;
  width: 100%;
  height: 100%;
}

.pod-loading-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  background: #ffffff;
  width: 100%;
  height: 100%;
}

.pod-spinner-ring {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(43, 174, 186, 0.2);
  border-top-color: #2baeba;
  border-radius: 50%;
  animation: pod-spin-kf 0.8s linear infinite;
}

.pod-loading-title {
  color: #179b94;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.pod-loading-subtitle {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
}

.pod-btn-retry {
  background: #f1f5f9;
  color: #0f766e;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  transition: all 0.15s;
}

.pod-btn-retry:hover {
  background: #2baeba;
  color: #ffffff;
  border-color: #2baeba;
}

/* Optional Other Documents Slide-Out Drawer */
.pod-other-drawer {
  width: 380px;
  max-width: 42vw;
  height: 100%;
  background: #ffffff;
  border-left: 2px solid #2baeba;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
}

.pod-other-drawer.open {
  display: flex;
}

.pod-other-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.pod-other-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.pod-other-tab.active {
  background: #2baeba;
  color: #ffffff;
  border-color: #2baeba;
}

.pod-top-filter-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 3px 8px;
  gap: 4px;
}

.pod-top-filter-dropdown {
  background: transparent;
  color: #0f766e;
  border: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

/* Topbar Queue Navigation Bar */
.pod-queue-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 1px 3px;
  gap: 2px;
  transition: all 0.2s ease;
}

.pod-queue-nav-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
  line-height: 1;
}

.pod-queue-nav-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #0f766e;
}

.pod-queue-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pod-queue-nav-btn kbd {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 8px;
  margin-left: 2px;
}

.pod-queue-nav-btn:hover:not(:disabled) kbd {
  background: #e2e8f0;
  color: #0f766e;
}

.pod-queue-status-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 8px;
  transition: background 0.15s;
}

.pod-queue-status-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pod-queue-pill-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  background: #e2e8f0;
  color: #334155;
}

.pod-queue-pill-badge.ready {
  background: #dcfce7;
  color: #166534;
}

.pod-queue-pill-badge.loading {
  background: #fed7aa;
  color: #9a3412;
}

/* Queue Slide-Out Drawer */
.pod-queue-drawer {
  width: 360px;
  max-width: 40vw;
  height: 100%;
  background: #ffffff;
  border-right: 2px solid #2baeba;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 25;
  overflow: hidden;
}

.pod-queue-drawer.open {
  display: flex;
}

.pod-queue-header {
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pod-queue-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pod-queue-paste-box {
  padding: 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-queue-paste-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-family: inherit;
  resize: vertical;
  min-height: 52px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}

.pod-queue-paste-input:focus {
  border-color: #2baeba;
  box-shadow: 0 0 0 2px rgba(43, 174, 186, 0.2);
}

.pod-queue-btn-group {
  display: flex;
  gap: 6px;
}

.pod-queue-action-btn {
  flex: 1;
  background: #0f766e;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pod-queue-action-btn:hover {
  background: #115e59;
}

.pod-queue-action-btn.primary {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.25);
}

.pod-queue-action-btn.primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.35);
}

.pod-queue-action-btn.secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.pod-queue-action-btn.secondary:hover {
  background: #f8fafc;
  color: #0f766e;
}

.pod-queue-action-btn.danger {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.pod-queue-action-btn.danger:hover {
  background: #fee2e2;
}

.pod-queue-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  gap: 5px;
}

.pod-queue-filter-label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}

.pod-queue-filter-dropdown {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  height: 24px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.pod-queue-filter-dropdown:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.pod-queue-qa-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.pod-queue-qa-badge.valid {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pod-queue-qa-badge.invalid {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.pod-queue-qa-badge.for-validation {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.pod-queue-item-remarks {
  font-size: 10px;
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #fee2e2;
}

.pod-queue-list {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 8px;
}

.pod-queue-item:hover {
  border-color: #2baeba;
  background: #f0fdfa;
  transform: translateX(2px);
}

.pod-queue-item.active {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 1px #0f766e;
}

.pod-queue-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pod-queue-item-waybill {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pod-queue-item-patient {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-queue-item-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.pod-queue-item-status.ready {
  background: #dcfce7;
  color: #15803d;
}

.pod-queue-item-status.loading {
  background: #ffedd5;
  color: #c2410c;
}

.pod-queue-item-status.pending {
  background: #f1f5f9;
  color: #64748b;
}

.pod-queue-item-status.fallback {
  background: #e0f2fe;
  color: #0369a1;
}

.pod-queue-item-del {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  font-size: 14px;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.15s;
}

.pod-queue-item-del:hover {
  color: #ef4444;
}

/* Queue Drawer Footer Pagination & Chunking Bar */
.pod-queue-footer-pagination {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.pod-queue-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  gap: 6px;
}

.pod-queue-page-numbers {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
}

.pod-queue-page-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pod-queue-page-btn:hover:not(:disabled) {
  border-color: #2baeba;
  color: #0f766e;
  background: #f0fdfa;
}

.pod-queue-page-btn.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  font-weight: 800;
}

.pod-queue-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pod-queue-load-more-btn {
  background: #f0fdfa;
  border: 1px dashed #2baeba;
  color: #0f766e;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.pod-queue-load-more-btn:hover {
  background: #ccfbf1;
  border-style: solid;
}

.pod-queue-load-more-btn:active {
  transform: scale(0.98);
}

/* Short Transition Proceeding Overlay */
.pod-proceed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease-in-out;
}

.pod-proceed-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pod-proceed-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transform: scale(0.96);
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

.pod-proceed-overlay.active .pod-proceed-card {
  transform: scale(1);
}

.pod-proceed-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(43, 174, 186, 0.2);
  border-top-color: #2baeba;
  border-radius: 50%;
  animation: pod-spin-kf 0.65s linear infinite;
  flex-shrink: 0;
}

.pod-proceed-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pod-proceed-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.pod-proceed-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* ============================================================
   QA VALIDATION BAR & CHIPS
   ============================================================ */
.pod-qa-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 8px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  z-index: 10;
  flex-shrink: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Final Validation Mode Styling Transition */
.pod-qa-bar.final-mode {
  background: #faf5ff;
  border-bottom: 2px solid #8b5cf6;
  box-shadow: inset 0 1px 0 rgba(139, 92, 246, 0.15), 0 2px 4px rgba(139, 92, 246, 0.08);
}

.pod-mode-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 1.5px;
  gap: 1.5px;
  flex-shrink: 0;
}

.pod-mode-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pod-mode-switch-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.pod-mode-switch-btn.active {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.3);
}

.pod-qa-bar.final-mode .pod-mode-switch-wrap {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.pod-qa-bar.final-mode .pod-mode-switch-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.35);
}

.pod-qa-bar.final-mode .pod-qa-status-dropdown.valid {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}

.pod-qa-status-dropdown.final-filter {
  background-color: #faf5ff;
  color: #7c3aed;
  border: 1px solid #d8b4fe;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.08);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c3aed'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
}

.pod-final-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pod-final-action-btn.blank {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.pod-final-action-btn.valid {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #c4b5fd;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.15);
}

.pod-final-action-btn.invalid {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.15);
}

.pod-qa-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.pod-qa-status-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 4px;
  padding: 3px 18px 3px 7px;
  height: 26px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  user-select: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 13px;
  flex-shrink: 0;
}

.pod-qa-status-dropdown.valid {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
}

.pod-qa-status-dropdown.valid:hover {
  background-color: #d1fae5;
  border-color: #34d399;
}

.pod-qa-status-dropdown.invalid {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

.pod-qa-status-dropdown.invalid:hover {
  background-color: #fee2e2;
  border-color: #f87171;
}

.pod-qa-status-dropdown.for-validation {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.1);
}

.pod-qa-status-dropdown.for-validation:hover {
  background-color: #fef3c7;
  border-color: #f59e0b;
}

.pod-qa-validator-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 4px;
  padding: 0 6px;
  height: 26px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pod-qa-validator-select-wrap:hover {
  border-color: #2baeba;
  background: #e6fffa;
}

.pod-qa-validator-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding-right: 15px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f766e'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 13px;
}

.pod-qa-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 4px;
  padding: 0 5px;
  height: 26px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pod-qa-date-wrap:hover {
  border-color: #2baeba;
  background: #e6fffa;
}

.pod-qa-date-input {
  background: transparent;
  border: none;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  width: 110px;
}

.pod-qa-remarks-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 120px;
  height: 26px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 4px;
  transition: all 0.15s ease;
}

.pod-qa-remarks-wrap:focus-within {
  background: #ffffff;
  border-color: #2baeba;
  box-shadow: 0 0 0 2px rgba(43, 174, 186, 0.15);
}

.pod-qa-remarks-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 11px;
  padding: 2px 4px;
  color: #1e293b;
  outline: none;
}

.pod-qa-clear-remarks {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 3px;
}

.pod-qa-clear-remarks:hover {
  color: #ef4444;
}

.pod-qa-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 1px 3px;
  scrollbar-width: none;
}

.pod-qa-chips::-webkit-scrollbar {
  display: none;
}

.pod-qa-chip {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.12s ease;
}

.pod-qa-chip:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.pod-qa-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pod-qa-validator-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  color: #0f766e;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.pod-sync-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(43, 174, 186, 0.15);
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pod-sync-progress-bar.active {
  opacity: 1;
}

.pod-sync-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0f766e 0%, #2baeba 45%, #10b981 80%, #34d399 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pod-progress-shimmer 1.2s linear infinite;
}

@keyframes pod-progress-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.pod-qa-sync-btn {
  background: #f8fafc;
  color: #0f766e;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 8px;
  height: 26px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  user-select: none;
  flex-shrink: 0;
}

.pod-qa-sync-btn:hover {
  background: #f0fdfa;
  border-color: #2baeba;
  color: #0f766e;
}

.pod-qa-sync-btn:active {
  transform: scale(0.95);
  background: #ccfbf1;
}

.pod-qa-sync-btn.syncing {
  pointer-events: none;
  opacity: 0.85;
}

.pod-qa-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.pod-qa-sync-dot.connected {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
}

.pod-qa-gas-pill {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  cursor: pointer;
}

.pod-qa-gas-pill:hover {
  background: #ccfbf1;
  border-color: #2baeba;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.15);
}

/* ============================================================
   GOOGLE SHEETS & RECORDS MODAL
   ============================================================ */
.sheet-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sheet-modal-backdrop.open {
  display: flex;
}

.sheet-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modal-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-btn-copy-code {
  background: #f0fdfa;
  border: 1px solid #2baeba;
  color: #0f766e;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pod-btn-copy-code:hover {
  background: #0f766e;
  color: #ffffff;
}

.sheet-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
}

.sheet-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
}

.sheet-quick-links {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.sheet-quick-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: #0f766e;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sheet-quick-pill:hover {
  background: #ccfbf1;
  border-color: #99f6e4;
}

.sheet-auth-status-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}

.sheet-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
}

.sheet-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.sheet-btn-auth {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.sheet-btn-auth:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.sheet-btn-fetch {
  background: linear-gradient(90deg, #39c5bc 0%, #2baeba 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(43, 174, 186, 0.35);
  transition: all 0.15s;
}

.sheet-btn-fetch:hover {
  background: linear-gradient(90deg, #44d8cd 0%, #32bcc9 100%);
  transform: translateY(-1px);
}

/* POD Fullscreen Zoom Modal */
.pod-zoom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(4px);
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pod-zoom-modal-backdrop.open {
  display: flex;
}

.pod-zoom-modal-card {
  width: 94vw;
  height: 92vh;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.pod-zoom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  color: #f8fafc;
  gap: 12px;
  flex-shrink: 0;
}

.pod-zoom-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod-zoom-modal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pod-zoom-modal-btn {
  background: #334155;
  color: #f1f5f9;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.12s;
}

.pod-zoom-modal-btn:hover {
  background: #2baeba;
  border-color: #2baeba;
  color: #ffffff;
}

.pod-zoom-modal-btn.close-btn {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.pod-zoom-modal-btn.close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.pod-zoom-modal-stage {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.pod-zoom-modal-stage:active {
  cursor: grabbing;
}

.pod-zoom-modal-media {
  flex-shrink: 0;
  transform-origin: center center;
  user-select: none;
  max-width: none !important;
  max-height: none !important;
}

.pod-zoom-modal-media.pod-pdf-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pod-zoom-modal-media.pod-pdf-container canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}



