/* LokalMarketPH UI Fix V7: remove global Master Users pills + dashboard user actions */
html[data-lm-ui-release="admin-dashboard-user-actions-v7-20260514"] body { overflow-x: hidden; }

/* The old V6 injected these into the global header. Hide/remove any cached leftovers. */
.lm-master-users-link,
.lm-floating-master-users,
[data-lm-master-users="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lm-upload-selected-note {
  margin-top: .45rem;
  padding: .45rem .65rem;
  border-radius: .65rem;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  font-size: .78rem;
  font-weight: 700;
  word-break: break-word;
}
.lm-upload-error-note {
  margin-top: .45rem;
  padding: .45rem .65rem;
  border-radius: .65rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: .78rem;
  font-weight: 700;
  word-break: break-word;
}

/* Stop old native file inputs from appearing under the custom cards. */
input[type="file"].lokal-hidden-file-input,
input[type="file"][id^="file-"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.lm-admin-action-btn {
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  padding: 5px 8px !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  cursor: pointer !important;
  margin-left: 4px !important;
  white-space: nowrap !important;
}
.lm-admin-action-btn--edit {
  color: #166534 !important;
  background: #ecfdf5 !important;
  border-color: #86efac !important;
}
.lm-admin-action-btn--edit:hover { background: #dbeafe !important; }
.lm-admin-action-btn--remove {
  color: #b91c1c !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}
.lm-admin-action-btn--remove:hover { background: #fee2e2 !important; }

.lm-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow: auto;
  background: rgba(15, 23, 42, .62);
}
.lm-admin-modal.is-open { display: flex; }
.lm-admin-modal__box {
  width: min(920px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
  padding: 22px;
  color: #111827;
}
.lm-admin-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.lm-admin-modal__head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  color: #111827;
}
.lm-admin-modal__head p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}
.lm-admin-modal__close {
  border: 0;
  background: #f3f4f6;
  color: #111827;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lm-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.lm-admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #374151;
}
.lm-admin-form-grid input,
.lm-admin-form-grid select,
.lm-admin-form-grid textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  outline: none;
}
.lm-admin-form-grid input:focus,
.lm-admin-form-grid select:focus,
.lm-admin-form-grid textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
.lm-admin-field-wide { grid-column: 1 / -1; }
.lm-admin-modal__message {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.lm-admin-modal__message:not(:empty) { display: block; }
.lm-admin-modal__message.is-info { background: #ecfdf5; color: #166534; border: 1px solid #86efac; }
.lm-admin-modal__message.is-success { background: #ecfdf5; color: #047857; border: 1px solid #86efac; }
.lm-admin-modal__message.is-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lm-admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.lm-admin-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.lm-admin-btn:disabled { opacity: .65; cursor: not-allowed; }
.lm-admin-btn--muted { background: #f3f4f6; color: #374151; }
.lm-admin-btn--primary { background: #16a34a; color: #fff; }
.lm-admin-btn--danger { background: #dc2626; color: #fff; }

@media (max-width: 768px) {
  .lm-admin-form-grid { grid-template-columns: 1fr; }
  .lm-admin-modal__box { padding: 18px; border-radius: 18px; }
  .lm-admin-modal__actions { justify-content: stretch; }
  .lm-admin-btn { flex: 1 1 100%; }
}


/* V85: registration upload field must remain visible on desktop and mobile.
   Older global fixes hide input[id^="file-"]; this override intentionally wins. */
input[type="file"].lm-v84-inline-file-input,
input[type="file"].lm-v85-inline-file-input,
form input[type="file"].lm-v85-inline-file-input,
form input[type="file"].lokal-mobile-file-input.lm-v85-inline-file-input {
  display: block !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  opacity: 1 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 1px solid #d1d5db !important;
  padding: 12px !important;
  margin: 8px 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 16px !important;
  pointer-events: auto !important;
}


/* V86: make the whole registration upload card clickable.
   This overrides older global rules that hide input[id^="file-"] off-screen. */
input[type="file"].lm-v86-card-file-input,
form input[type="file"].lm-v86-card-file-input {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

/* V88: prominent registration upload cards. The whole block is clickable via JS backstop. */
input[type="file"].lm-v88-prominent-file-input,
form input[type="file"].lm-v88-prominent-file-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0.01 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.lm-v88-force-clickable-upload,
.lm-v88-prominent-upload-card {
  cursor: pointer !important;
  border-color: #fb923c !important;
  background: #fff7ed !important;
  box-shadow: 0 10px 24px rgba(251, 100, 8, .10) !important;
}
.lm-v88-force-clickable-upload:hover,
.lm-v88-prominent-upload-card:hover {
  border-color: #FC6408 !important;
  background: #ffedd5 !important;
}
.lm-v88-upload-selected-chip {
  margin-top: .75rem;
  padding: .65rem .75rem;
  border-radius: .75rem;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-size: .875rem;
  font-weight: 700;
  word-break: break-word;
}


/* V93: registration upload native overlay fix.
   The real file input now sits over the upload card, so clicking anywhere opens
   the browser file picker directly instead of relying on a hidden input/label click. */
form input[type="file"].lm-v91-stable-file-input,
input[type="file"].lm-v91-stable-file-input {
  display: block !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 100% !important;
  height: 124px !important;
  min-height: 110px !important;
  opacity: 0.01 !important;
  overflow: hidden !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 30 !important;
}
#file-seller-documents-bulk.lm-v91-stable-file-input {
  height: 118px !important;
}
.lm-v91-upload-label {
  position: relative !important;
  z-index: 10 !important;
}
form input[type="file"].lm-v91-stable-file-input:disabled {
  cursor: wait !important;
  pointer-events: none !important;
}
/* Keep remove buttons clickable above the transparent file input overlay. */
form button[type="button"] {
  position: relative;
  z-index: 40;
}


/* V94: registration direct browser file picker fix.
   Removes the transparent overlay approach that made only the faint native input clickable.
   The upload card remains clickable through its label, and a real browser file picker is visible as a fallback. */
.lm-v94-upload-label {
  cursor: pointer !important;
  user-select: none;
  -webkit-tap-highlight-color: rgba(252, 100, 8, .22);
}
.lm-v94-upload-label:hover,
.lm-v94-upload-label:focus-within {
  border-color: #FC6408 !important;
  box-shadow: 0 8px 22px rgba(252, 100, 8, .14) !important;
}
.lm-v94-native-file-row {
  position: relative !important;
  z-index: 50 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .4rem !important;
  margin-top: .75rem !important;
  padding: .75rem !important;
  border: 2px solid #fb923c !important;
  border-radius: .875rem !important;
  background: #fff7ed !important;
}
.lm-v94-native-file-label {
  font-size: .75rem !important;
  font-weight: 900 !important;
  color: #9a3412 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}
form input[type="file"].lm-v94-direct-file-input,
input[type="file"].lm-v94-direct-file-input {
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  opacity: 1 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 1px solid #fed7aa !important;
  border-radius: .75rem !important;
  padding: .65rem !important;
  margin: 0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 60 !important;
}
form input[type="file"].lm-v94-direct-file-input::file-selector-button,
input[type="file"].lm-v94-direct-file-input::file-selector-button {
  margin-right: .75rem;
  border: 0;
  border-radius: .65rem;
  background: #FC6408;
  color: #fff;
  padding: .55rem .85rem;
  font-weight: 800;
  cursor: pointer;
}
form input[type="file"].lm-v94-direct-file-input::-webkit-file-upload-button,
input[type="file"].lm-v94-direct-file-input::-webkit-file-upload-button {
  margin-right: .75rem;
  border: 0;
  border-radius: .65rem;
  background: #FC6408;
  color: #fff;
  padding: .55rem .85rem;
  font-weight: 800;
  cursor: pointer;
}
/* If any older cached upload component still renders lm-v91, restore label behavior instead of overlaying the card. */
form input[type="file"].lm-v91-stable-file-input,
input[type="file"].lm-v91-stable-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0.01 !important;
  z-index: -1 !important;
}

/* V95: one clean upload control only. The real file input stays available to the browser but is visually hidden. */
form input[type="file"].lm-v95-hidden-file-input,
input[type="file"].lm-v95-hidden-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  pointer-events: none !important;
}
.lm-v95-upload-label {
  user-select: none;
  -webkit-tap-highlight-color: rgba(252, 100, 8, 0.15);
}
.lm-v95-upload-label:hover,
.lm-v95-upload-label:focus-within {
  box-shadow: 0 0 0 3px rgba(252, 100, 8, 0.16) !important;
}
