/* Oracle JD Edwards EnterpriseOne Authentic Styling */
:root {
  --jde-banner-bg: #002b49;
  --jde-banner-text: #ffffff;
  --jde-toolbar-bg: #f4f6f9;
  --jde-border: #ccd3db;
  --jde-header-bg: #e6ecf2;
  --jde-row-hover: #eaf3ff;
  --jde-row-selected: #d0e4f7;
  --jde-green-ok: #2e7d32;
  --jde-red-cancel: #c62828;
  --jde-warning-bg: #fff9c4;
  --jde-warning-border: #fbc02d;
  --jde-font: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--jde-font);
  font-size: 12px;
  color: #222;
  background-color: #f7f9fa;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP BRAND BANNER */
.jde-top-banner {
  background: linear-gradient(90deg, #001f36 0%, #00365d 100%);
  color: #fff;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 100;
}

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

.oracle-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
}

.jde-product-title {
  font-size: 13px;
  color: #b0c4de;
  font-weight: 500;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 12px;
}

.brand-nav-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
}

.brand-nav-icon {
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
  font-size: 14px;
}

.brand-nav-icon:hover {
  opacity: 1;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}

.user-badge {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-badge span {
  color: #a0c4ff;
  font-weight: normal;
}

/* APP SHELL */
.jde-app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 86px);
  overflow: hidden;
}

/* LEFT SIDEBAR */
.jde-sidebar {
  width: 220px;
  background-color: #0f2c45;
  color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #001f36;
}

.sidebar-header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #9cb3c9;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav {
  list-style: none;
  padding: 8px 0;
  flex: 1;
}

.sidebar-item {
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8e5f2;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.15s;
}

.sidebar-item:hover {
  background-color: rgba(255,255,255,0.08);
  color: #fff;
}

.sidebar-item.active {
  background-color: #004b80;
  color: #fff;
  font-weight: 600;
  border-left: 3px solid #ffb703;
}

.sidebar-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* MAIN VIEW CONTAINER */
.jde-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  overflow-y: auto;
  position: relative;
}

/* TOOLBAR & HEADER */
.jde-view-header {
  background-color: #ffffff;
  border-bottom: 1px solid #d5dbe0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-title {
  font-size: 14px;
  font-weight: bold;
  color: #1a2530;
}

.jde-view-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jde-toolbar {
  background-color: #fafbfc;
  border-bottom: 1px solid #e1e6eb;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  color: #334;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s;
}

.tb-btn:hover {
  background-color: #e8ecf0;
  border-color: #cfd7de;
}

.tb-btn.btn-ok {
  color: #1b5e20;
  font-weight: bold;
}
.tb-btn.btn-ok:hover {
  background-color: #e8f5e9;
  border-color: #a5d6a7;
}

.tb-btn.btn-add {
  color: #0d6efd;
  font-weight: bold;
}
.tb-btn.btn-add:hover {
  background-color: #e7f1ff;
  border-color: #9ec5fe;
}

.tb-btn.btn-cancel {
  color: #c62828;
}
.tb-btn.btn-cancel:hover {
  background-color: #ffebee;
  border-color: #ffcdd2;
}

.tb-btn.btn-special {
  background-color: #0d47a1;
  color: #fff;
  border-color: #0a387e;
  font-weight: 600;
}
.tb-btn.btn-special:hover {
  background-color: #1565c0;
}

.tb-divider {
  width: 1px;
  height: 18px;
  background-color: #cfd7df;
  margin: 0 4px;
}

/* JDE FORM CONTAINER */
.jde-form-box {
  padding: 12px 18px;
}

/* WARNING BANNER */
.jde-warning-banner {
  background-color: #fffde7;
  border: 1px solid #fff176;
  border-left: 5px solid #fbc02d;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 2px;
  font-size: 12px;
  color: #424242;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.warning-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warning-title {
  font-weight: bold;
  color: #bf360c;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FORM FIELDS GRID */
.form-grid-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px 28px;
  background-color: #f8fafc;
  border: 1px solid #e1e7ec;
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.form-group-jde {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.form-group-jde label {
  width: 110px;
  font-size: 12px;
  color: #495057;
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}

.form-group-jde input, 
.form-group-jde select {
  flex: 1;
  min-width: 60px;
  height: 26px;
  padding: 2px 6px;
  font-size: 12px;
  border: 1px solid #b8c2cc;
  border-radius: 2px;
  font-family: inherit;
  background-color: #ffffff;
}

.form-group-jde input:focus, 
.form-group-jde select:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 2px rgba(0,86,179,0.15);
}

.form-group-jde .desc-label {
  font-size: 11px;
  color: #1e3a8a;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

/* DATA TABLE / GRID */
.jde-table-container {
  border: 1px solid #cfd7de;
  border-radius: 2px;
  background-color: #fff;
  overflow-x: auto;
  margin-bottom: 12px;
}

.jde-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.jde-table th {
  background: linear-gradient(180deg, #f0f4f8 0%, #e2e8ee 100%);
  color: #334;
  font-weight: 600;
  padding: 6px 8px;
  border: 1px solid #c9d2db;
  white-space: nowrap;
  user-select: none;
}

.jde-table td {
  padding: 4px 6px;
  border: 1px solid #e1e6ec;
  white-space: nowrap;
  vertical-align: middle;
}

.jde-table tbody tr:nth-child(even) {
  background-color: #f9fbfd;
}

.jde-table tbody tr:hover {
  background-color: var(--jde-row-hover);
}

.jde-table tbody tr.selected {
  background-color: var(--jde-row-selected);
}

.jde-table input[type="text"],
.jde-table input[type="number"],
.jde-table select {
  width: 100%;
  height: 24px;
  padding: 2px 4px;
  font-size: 11px;
  border: 1px solid #b8c2cc;
  border-radius: 2px;
  font-family: inherit;
  background-color: #fff;
}

.jde-table input:focus {
  outline: none;
  border-color: #0056b3;
}

/* TABLE FOOTER / TOTALS */
.jde-table-totals {
  background-color: #eef3f7;
  border: 1px solid #cfd7de;
  border-top: none;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-weight: 600;
  font-size: 12px;
  color: #1a2530;
}

.total-item span {
  color: #0056b3;
  margin-left: 4px;
}

/* MODAL DRAWER */
.jde-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.jde-modal {
  background-color: #fff;
  width: 750px;
  max-width: 95%;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: #002b49;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
}

.modal-footer {
  background-color: #f1f4f7;
  padding: 10px 16px;
  border-top: 1px solid #d8e0e6;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* BADGES */
.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}
.badge-open {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
}
.badge-paid {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

/* FLASH NOTIFICATION */
#notification-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1e3a5f;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 13px;
  display: none;
  z-index: 2000;
  border-left: 4px solid #4caf50;
}

/* RIGHT SIDEBAR / EXCEL AUTO-COPIER DRAWER */
.jde-right-drawer {
  width: 350px;
  background-color: #ffffff;
  border-left: 1px solid var(--jde-border);
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 8px rgba(0,0,0,0.06);
  z-index: 90;
  transition: width 0.3s ease, margin-right 0.3s ease;
  position: relative;
}

.jde-right-drawer.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
  border-left: none;
}

.drawer-header {
  background: linear-gradient(90deg, #0b253a, #133957);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 2px solid #0284c7;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0f2fe;
}

.drawer-badge {
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid #38bdf8;
  color: #bae6fd;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
  display: inline-block;
}

.drawer-body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 10px;
}

.drawer-card-title {
  font-weight: 700;
  font-size: 11px;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-drawer-select {
  width: 100%;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border: 1px solid #0284c7;
  padding: 9px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: all 0.2s;
}

.btn-drawer-select:hover {
  background: linear-gradient(180deg, #0369a1 0%, #075985 100%);
}

.btn-drawer-start {
  width: 100%;
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  border: 1px solid #16a34a;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: all 0.2s;
}

.btn-drawer-start:hover {
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
}

.drawer-toggle-btn {
  background: rgba(2, 132, 199, 0.3);
  color: #e0f2fe;
  border: 1px solid #38bdf8;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.drawer-toggle-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

/* FLOW STEPPER BAR FOR ALIGNED PAGES 1 TO 3 */
.flow-stepper-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--jde-border);
  padding: 6px 14px;
  gap: 8px;
  font-size: 11px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  transition: all 0.2s;
}

.flow-step:hover {
  background: #e2e8f0;
}

.flow-step.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  font-weight: 700;
}

.flow-step.completed {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
  font-weight: 600;
}

.flow-step .step-num {
  font-size: 9px;
  background: #64748b;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: bold;
}

.flow-step.active .step-num {
  background: #0284c7;
}

.flow-step.completed .step-num {
  background: #16a34a;
}

.flow-step-arrow {
  color: #94a3b8;
  font-size: 10px;
}

/* BROWSER OMNIBOX & RECORDER BAR */
.browser-omnibox-bar {
  display: flex;
  align-items: center;
  background: #f1f3f4;
  border-bottom: 1px solid #d1d5db;
  padding: 6px 14px;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.omnibox-nav-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.omnibox-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.15s;
}

.omnibox-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.omnibox-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 3px 12px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.omnibox-input-wrapper:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.omnibox-lock-icon {
  color: #16a34a;
  font-size: 11px;
}

#browser-url-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  color: #1e293b;
  background: transparent;
}

.omnibox-go-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.omnibox-go-btn:hover {
  background: #0369a1;
}

/* RECORDER CONTROLS */
.omnibox-recorder-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recorder-btn {
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.recorder-btn.btn-record {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.recorder-btn.btn-record:hover {
  background: #fecaca;
}

.recorder-btn.btn-record.recording {
  background: #ef4444;
  color: #fff;
  border-color: #dc2626;
  animation: pulse-red 1.5s infinite;
}

.recorder-btn.btn-play {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.recorder-btn.btn-play:hover {
  background: #dcfce7;
}

.recording-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #f87171;
}

.pulsing-red-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-dot 1s infinite alternate;
}

@keyframes pulse-dot {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* VIRTUAL REPLAY CURSOR */
#virtual-mouse-cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 99999;
  display: none;
  transition: top 0.35s ease, left 0.35s ease;
}

#virtual-mouse-cursor .cursor-pointer {
  color: #dc2626;
  font-size: 22px;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.4));
}

/* SCREEN LIVE JDE FULL FIT */
#screen-live-jde {
  display: none;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* MACRO RECORDING CLICK RIPPLE & FLOAT BADGE */
.macro-click-ripple {
  position: fixed;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -16px;
  border: 3px solid #dc2626;
  background: rgba(220, 38, 38, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  animation: macro-ripple-anim 0.55s ease-out forwards;
}

@keyframes macro-ripple-anim {
  0% { transform: scale(0.2); opacity: 1; }
  70% { opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.macro-float-badge {
  position: fixed;
  padding: 2px 7px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  pointer-events: none;
  z-index: 999999;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: macro-badge-float 0.8s ease-out forwards;
}

@keyframes macro-badge-float {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-26px); opacity: 0; }
}

/* IN-BROWSER SCREEN RECORDING STYLES */
#btn-screen-record.recording {
  background: #dc2626 !important;
  color: #ffffff !important;
  animation: pulse-red-btn 1.2s infinite;
}

@keyframes pulse-red-btn {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

body.in-browser-recording {
  box-shadow: inset 0 0 0 3px #ef4444 !important;
}

.screen-rec-banner {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  border: 1px solid #ef4444;
  padding: 6px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  z-index: 99999;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* ====================================================================== */
/* LIVE DRAWING & ANNOTATION TOOLBAR (FOR RECORDING & PRESENTATION)       */
/* ====================================================================== */
.draw-toolbar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.draw-tools-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.draw-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  height: 25px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.draw-tool-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

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

.draw-tool-btn.active i {
  color: #ffffff !important;
}

.draw-separator {
  width: 1px;
  height: 16px;
  background: #cbd5e1;
  margin: 0 3px;
}

.draw-colors-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px;
}

.draw-color-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
  outline: none;
}

.draw-color-dot:hover {
  transform: scale(1.18);
}

.draw-color-dot.active {
  box-shadow: 0 0 0 2px #0284c7;
  transform: scale(1.22);
}

.draw-sizes-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.draw-size-btn {
  width: 20px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  color: #64748b;
}

.draw-size-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.draw-size-btn.active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}

.draw-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  height: 25px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.draw-action-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.draw-action-btn.clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.draw-status-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.draw-status-pill.inking {
  background: #dbeafe;
  color: #1d4ed8;
}

.draw-status-pill.interactive {
  background: #f1f5f9;
  color: #64748b;
}

/* GLOBAL FULL-SCREEN ANNOTATION CANVAS */
#global-screen-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* Ensure view headers, banners, and toolbars sit above the canvas so buttons are always clickable */
.jde-view-header {
  position: relative;
  z-index: 10000 !important;
}

.browser-omnibox-bar {
  position: relative;
  z-index: 10000 !important;
}

.jde-sidebar {
  position: relative;
  z-index: 10000 !important;
}

.jde-top-banner {
  position: relative;
  z-index: 10000 !important;
}

.jde-right-drawer {
  position: relative;
  z-index: 10000 !important;
}

.draw-toolbar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 10001 !important;
}

.draw-tool-btn.active#draw-tool-pointer {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

.draw-tool-btn.active#draw-tool-pen {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4) !important;
}
.draw-tool-btn.active#draw-tool-pen i {
  color: #ffffff !important;
}

.draw-tool-btn.active#draw-tool-highlighter {
  background: #eab308 !important;
  color: #ffffff !important;
  border-color: #ca8a04 !important;
  box-shadow: 0 1px 4px rgba(234, 179, 8, 0.4) !important;
}
.draw-tool-btn.active#draw-tool-highlighter i {
  color: #ffffff !important;
}

.draw-tool-btn.active#draw-tool-eraser {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.4) !important;
}
.draw-tool-btn.active#draw-tool-eraser i {
  color: #ffffff !important;
}

/* AR BUSINESS PROCESS SCREEN (ENTERPRISEONE PORTAL PIC-1) */
.jde-e1-navbar {
  display: flex;
  align-items: center;
  background: #0f2744;
  height: 34px;
  border-bottom: 1px solid #1e3a5f;
  padding: 0 8px;
  overflow-x: auto;
  flex-shrink: 0;
  user-select: none;
}
.jde-e1-nav-left, .jde-e1-nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.e1-nav-icon-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.e1-nav-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.jde-e1-nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 8px;
}
.e1-nav-tab {
  font-size: 11px;
  color: #cbd5e1;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.15s ease;
}
.e1-nav-tab:hover {
  color: #ffffff;
}
.e1-nav-tab.active {
  color: #ffffff;
  font-weight: 700;
}
.e1-tab-triangle {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #ffffff;
}
.jde-e1-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 4px 14px;
  height: 28px;
  font-size: 12px;
  color: #0f172a;
  font-weight: 600;
  flex-shrink: 0;
}
.jde-e1-content-split {
  display: flex;
  flex: 1;
  height: calc(100% - 102px);
  overflow: hidden;
}
.jde-e1-left-panel {
  width: 200px;
  background: #0b192c;
  border-right: 1px solid #1e293b;
  overflow-y: auto;
  flex-shrink: 0;
  color: #cbd5e1;
}
.e1-left-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.e1-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}
.e1-section-header:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.e1-report-list {
  list-style: none;
  margin: 0;
  padding: 2px 0 6px 0;
}
.e1-report-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 22px;
  font-size: 10px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1.3;
}
.e1-report-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.jde-e1-workspace-canvas {
  flex: 1;
  background: #111827 url('/static/images/jde_ar_bg_full.jpg') no-repeat center center;
  background-size: cover;
  padding: 24px 32px;
  overflow-y: auto;
  position: relative;
}
.jde-e1-workspace-canvas::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.35);
  pointer-events: none;
}
.e1-canvas-section {
  position: relative;
  z-index: 1;
}
.e1-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 6px;
}
.e1-section-divider {
  height: 2px;
  background: linear-gradient(90deg, #38bdf8 0%, rgba(56, 189, 248, 0.2) 60%, transparent 100%);
  margin-bottom: 18px;
  width: 85%;
}
.e1-tiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.e1-inquiry-tile {
  width: 156px;
  height: 60px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  position: relative;
}
.e1-inquiry-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  border-color: #38bdf8;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
.e1-tile-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.icon-green { color: #65a30d; }
.icon-yellow { color: #d97706; }
.icon-orange { color: #ea580c; }
.icon-blue { color: #0284c7; }
.icon-red { color: #dc2626; }
.e1-tile-label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.e1-tile-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #16a34a;
  color: white;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ==========================================================================
   GLASSMORPHISM LOGIN PORTAL (Matching 421ae41f-834d-4786-93c8-4b6a83221960)
   ========================================================================== */
.lgn-root {
    position: fixed;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, -apple-system, sans-serif;
    background: #eef6fc;
    z-index: 999999;
}

.lgn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f0fe 35%, #d4eafc 70%, #edf6ff 100%);
}

.lgn-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(2, 132, 199, .06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(2, 132, 199, .06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 45%, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 40%, transparent 85%);
}

.lgn-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    animation: lgn-float 18s ease-in-out infinite;
}

.lgn-b1 {
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, #bae6fd, transparent 70%);
    top: -150px;
    left: -130px;
}

.lgn-b2 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, #7dd3fc, transparent 70%);
    bottom: -180px;
    right: -140px;
    animation-delay: -6s;
}

.lgn-b3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #38bdf8, transparent 70%);
    top: 42%;
    left: 55%;
    animation-delay: -12s;
    opacity: .35;
}

@keyframes lgn-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.06); }
    66% { transform: translate(-30px, 25px) scale(.95); }
}

.lgn-card {
    position: relative;
    z-index: 2;
    width: 420px;
    max-width: 92vw;
    padding: 38px 36px 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 24px 60px rgba(14, 116, 144, .12), 0 8px 24px rgba(2, 132, 199, .08);
    animation: lgn-rise .6s cubic-bezier(.2, .8, .2, 1);
}

@keyframes lgn-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

.lgn-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0284c7 0%, #00365d 100%);
    box-shadow: 0 10px 24px rgba(2, 132, 199, .32);
    color: #fff;
    font-size: 28px;
}

.lgn-title {
    text-align: center;
    color: #002b49;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.2px;
}

.lgn-sub {
    text-align: center;
    color: #476b8a;
    font-size: .80rem;
    margin-top: 5px;
    margin-bottom: 22px;
    letter-spacing: .3px;
    font-weight: 600;
}

.lgn-field {
    position: relative;
    margin-bottom: 16px;
}

.lgn-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .85;
    color: #0284c7;
    pointer-events: none;
    font-size: 15px;
}

.lgn-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 44px 13px 44px;
    border-radius: 13px;
    border: 1.5px solid #cbdde9;
    background: #f8fbfe;
    color: #0f2942;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-weight: 500;
}

.lgn-input::placeholder {
    color: #94aabf;
    font-weight: 400;
}

.lgn-input:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, .15);
}

.lgn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: .75;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-size: 15px;
}

.lgn-eye:hover {
    opacity: 1;
}

.lgn-btn {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    border: none;
    border-radius: 13px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #0284c7 0%, #00365d 100%);
    background-size: 200% auto;
    box-shadow: 0 10px 22px rgba(2, 132, 199, .3);
    transition: all .25s ease;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lgn-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(2, 132, 199, .4);
}

.lgn-btn:active {
    transform: translateY(0);
}

.lgn-btn:disabled {
    opacity: .7;
    cursor: default;
    transform: none;
    box-shadow: 0 6px 16px rgba(2, 132, 199, .2);
}

.lgn-err {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 12.5px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    animation: lgn-shake .4s;
    font-weight: 500;
}

@keyframes lgn-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

.lgn-foot {
    text-align: center;
    color: #64748b;
    font-size: 11px;
    margin-top: 22px;
    letter-spacing: .4px;
    font-weight: 600;
}

.lgn-spin {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lgn-rot .7s linear infinite;
}

@keyframes lgn-rot {
    to { transform: rotate(360deg); }
}

/* User pill & signout button in top banner */
.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-badge {
    background: #0284c7;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .5px;
    font-weight: 700;
    margin-left: 4px;
}

.btn-signout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .2s ease;
}

.btn-signout:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

#appScreen {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}



