/*
 * Sideload Enhancements CSS
 * Extracted from sideload.html inline <style> blocks
 */

/*
 * Column hiding CSS - ONLY for preview/test mode (browser without Outlook)
 * In real Outlook, body has class 'outlook-mode' and these rules don't apply
 */

/* Preview mode: Hide the first two columns (Data and Outlook Emulation) - show only Sideload */
body.preview-mode #root > div > div > div:first-child,
body.preview-mode #root > div > div > div:nth-child(2) {
  display: none !important;
}

/* Preview mode: Make the Sideload column (3rd) full width */
body.preview-mode #root > div > div > div:nth-child(3) {
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  flex: 1 1 100% !important;
}

/* Preview mode: Also handle FluentProvider wrapper */
body.preview-mode .fui-FluentProvider > div {
  flex-direction: column !important;
}

body.preview-mode .fui-FluentProvider > div > div:first-child,
body.preview-mode .fui-FluentProvider > div > div:nth-child(2) {
  display: none !important;
}

body.preview-mode .fui-FluentProvider > div > div:nth-child(3) {
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  flex: 1 1 100% !important;
}

/* Remove any injected column headers */
.column-header-injected {
  display: none !important;
}

/* Hide React's attachment list - we have our own with upload functionality */
.cm-react-attachments-hidden {
  display: none !important;
}

/* Full height */
html, body, #root {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal overflow in narrow Outlook sidebar */
body {
  overflow-x: hidden;
  max-width: 100vw;
}
#root {
  overflow-x: hidden;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ========== CUSTOM SIDELOAD ENHANCEMENTS ========== */

/* 1. Make fonts 1px smaller globally */
#root, #root * {
  font-size: calc(1em - 0.5px) !important;
}

/* 2. Custom branded header */
.cm-header {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid #0078d4;
  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
}
.cm-header-logo {
  height: 32px;
  width: auto;
}
.cm-header-text {
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.cm-header-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline;
}
.cm-header-tm {
  color: rgba(255,255,255,0.7);
  font-size: 8px;
  vertical-align: super;
  margin-left: 2px;
}
.cm-logout-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-logout-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
#cm-refresh-btn {
  right: auto;
  left: 10px;
}
#cm-theme-btn {
  right: auto;
  left: 40px;
}

/* Header expanded for super admin client switcher */
.cm-header.cm-header-with-switcher {
  padding-bottom: 28px;
}

/* Super-admin dropdowns row */
.cm-header-selects {
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
#cm-view-toggle,
#cm-client-switcher {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: auto;
  max-width: 48%;
}
#cm-view-toggle:hover,
#cm-client-switcher:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
#cm-view-toggle option,
#cm-client-switcher option {
  background: #1a237e;
  color: #fff;
}

/* 3. Manual search box */
.cm-manual-search {
  padding: 4px 8px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
.cm-search-row {
  display: flex;
  gap: 8px;
}
.cm-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.cm-search-input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.1);
}
.cm-search-input::placeholder {
  color: #999;
}
.cm-search-btn {
  padding: 8px 16px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.cm-search-btn:hover {
  background: #005a9e;
}
.cm-search-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 4. Collapsible section styles */
.cm-section {
  border: 1px solid #e0e0e0;
  border-radius: 6px 6px 0 0;
  margin: 12px 4px 0;
  padding: 2px;
  overflow: hidden;
  background: #fff;
}
.cm-section-body {
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  background: #fff;
  margin: 0 4px;
  padding: 2px 4px;
}
.cm-section-body.cm-section-last {
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 6px 6px;
  margin-bottom: 0;
  padding-bottom: 4px;
}
/* Dark theme section body */
body.theme-dark .cm-section-body { background: #0d1117 !important; border-color: #21262d !important; margin: 0 4px !important; padding: 2px 8px !important; }
body.theme-dark .cm-section-body.cm-section-last { border-bottom: 1px solid #21262d !important; border-radius: 0 0 2px 2px !important; }
/* Warm theme section body */
body.theme-warm .cm-section-body { background: #fffcf5 !important; border-color: transparent !important; margin: 0 4px !important; padding: 2px 10px !important; box-shadow: 0 0 0 1px rgba(0,0,0,0.03) !important; }
body.theme-warm .cm-section-body.cm-section-last { border-radius: 0 0 10px 10px !important; box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important; }
/* Depth/Smart/Stitch/3D — dark glassmorphic themes */
body.theme-depth .cm-section-body,
body.theme-smart .cm-section-body,
body.theme-stitch .cm-section-body,
body.theme-3d .cm-section-body {
  background: rgba(255, 255, 255, 0.04) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: none !important;
  margin: 0 8px !important;
  padding: 2px 8px !important;
}
body.theme-depth .cm-section-body.cm-section-last,
body.theme-smart .cm-section-body.cm-section-last,
body.theme-stitch .cm-section-body.cm-section-last,
body.theme-3d .cm-section-body.cm-section-last {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 8px !important;
}
body.theme-depth .cm-section-body.cm-section-last { border-radius: 0 0 20px 20px !important; }
body.theme-smart .cm-section-body.cm-section-last { border-radius: 0 0 14px 14px !important; }
body.theme-stitch .cm-section-body.cm-section-last { border-radius: 0 0 12px 12px !important; }
body.theme-3d .cm-section-body.cm-section-last { border-radius: 0 0 16px 16px !important; }
/* Bento theme section body */
body.theme-bento .cm-section-body { background: #ffffff !important; border-color: rgba(198, 198, 205, 0.15) !important; margin: 0 8px !important; padding: 2px 12px !important; }
body.theme-bento .cm-section-body.cm-section-last { border-bottom: 1px solid rgba(198, 198, 205, 0.15) !important; border-radius: 0 0 1.5rem 1.5rem !important; }
/* Order/Booking tab section overrides — inline border-bottom #eee → theme-aware */
body.theme-dark .cm-section[style*="border-bottom"] { border-bottom-color: #21262d !important; }
body.theme-depth .cm-section[style*="border-bottom"],
body.theme-smart .cm-section[style*="border-bottom"],
body.theme-stitch .cm-section[style*="border-bottom"],
body.theme-3d .cm-section[style*="border-bottom"] { border-bottom-color: rgba(255, 255, 255, 0.1) !important; }
/* Order/Booking row label color #666 → readable on dark themes */
body.theme-dark #root span[style*="color: rgb(102, 102, 102)"] { color: #8b949e !important; }
body.theme-depth #root span[style*="color: rgb(102, 102, 102)"],
body.theme-smart #root span[style*="color: rgb(102, 102, 102)"],
body.theme-stitch #root span[style*="color: rgb(102, 102, 102)"],
body.theme-3d #root span[style*="color: rgb(102, 102, 102)"] { color: rgba(255, 255, 255, 0.6) !important; }
/* Order/Booking copy buttons — theme-aware */
body.theme-dark .cm-booking-copy { background: #161b22 !important; border-color: #30363d !important; color: #8b949e !important; }
body.theme-depth .cm-booking-copy,
body.theme-smart .cm-booking-copy,
body.theme-stitch .cm-booking-copy,
body.theme-3d .cm-booking-copy { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.15) !important; color: rgba(255, 255, 255, 0.6) !important; }
.cm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px;
  background: #f8f9fa;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #e0e0e0;
}
.cm-section-header:hover {
  background: #e8f4fc;
}
.cm-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #333;
}
.cm-section-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: transform 0.2s;
}
.cm-section.collapsed .cm-section-toggle {
  transform: rotate(-90deg);
}
.cm-section.collapsed .cm-section-content {
  display: none;
}
.cm-section-actions {
  display: flex;
  gap: 4px;
}
.cm-copy-btn {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}
.cm-copy-btn:hover {
  background: #0078d4;
  border-color: #0078d4;
  color: #fff;
}
.cm-copy-btn.copied {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
}
.cm-section-content {
  padding: 0;
}

/* Toast notification - centered, single line */
.cm-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  text-align: center;
  white-space: nowrap;
}
.cm-toast.show {
  opacity: 1;
}

/* Reduce spacing in React content */
#root > div {
  padding: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
/* Kill padding on all Fluent UI slot containers (___yx3ktd0, ___1ovdzvx, etc.) */
#root div[class*="___"] {
  padding: 0 1px !important;
  gap: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
/* Truncate long text values in label-value grid rows */
#root div[class*="___"] > span:last-child,
#root div[class*="___"] > div:last-child {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}
/* Restore padding on Badge pills so text isn't squeezed */
#root div.fui-Badge[class*="___"] {
  padding: 3px 10px !important;
}
/* Reduce tab list padding */
#root [role="tablist"] {
  padding: 0 4px !important;
  margin: 0 !important;
  gap: 0 !important;
}
/* Reduce tab button padding (Fluent UI tabs) */
#root [role="tablist"] button,
#root [role="tab"],
#root button[class*="___179oems"],
#root [class*="fjy2x5e"] > button {
  padding: 2px 8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: auto !important;
}
/* Reduce tab panel padding */
#root [role="tabpanel"] {
  padding: 0 !important;
}
/* Reduce card margins */
#root .fui-Card, #root [class*="Card"] {
  margin: 0 !important;
}
/* Reduce group/section padding */
#root [role="group"] {
  padding: 0 !important;
  margin: 0 !important;
}

/* eDocs badge color override - change from red to green for positive messaging */
#root [style*="background-color: rgb(216, 59, 1)"],
#root [style*="background-color:rgb(216, 59, 1)"],
#root [style*="background-color: rgb(216,59,1)"] {
  background-color: #2e7d32 !important; /* Green 800 */
}

/* Text truncation is handled via JavaScript in adjustTransportLabels() */

/* ========== UPLOAD SECTION STYLES ========== */
/* Extracted from enhanceUploadTab() innerHTML */

.cm-upload-section {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}
.cm-add-notes-btn {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #f3f2f1;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #323130;
  cursor: pointer;
  text-align: left;
}
.cm-add-notes-btn:hover {
  background: #e1dfdd;
  border-color: #0078d4;
  color: #0078d4;
}

.cm-upload-list-header {
  font-size: 13px;
  font-weight: 600;
  color: #0078d4;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.cm-upload-job-selector,
.cm-upload-doctype-selector {
  margin-bottom: 12px;
}
.cm-upload-job-selector label,
.cm-upload-doctype-selector label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.cm-job-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cm-job-input-row select {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 12px;
}
.cm-job-input-row input {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 12px;
}
.cm-job-or {
  font-size: 11px;
  color: #888;
  flex-shrink: 0;
}
.cm-upload-job-selector select,
.cm-upload-job-selector input,
.cm-upload-doctype-selector select,
.cm-upload-doctype-selector input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
.cm-upload-doctype-row {
  display: flex;
  gap: 8px;
}
.cm-upload-doctype-row select {
  flex: 2;
}
.cm-upload-doctype-row input {
  flex: 1;
  text-transform: uppercase;
}
.cm-upload-doctype-row input::placeholder {
  text-transform: none;
}
.cm-upload-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "check icon info doctype"
    "desc  desc desc desc";
  align-items: center;
  column-gap: 6px;
  row-gap: 6px;
  padding: 8px;
  margin: 4px 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
}
.cm-upload-item input[type="checkbox"] { grid-area: check; margin-right: 0; }
.cm-upload-item .cm-upload-item-icon { grid-area: icon; margin-right: 0; }
.cm-upload-item .cm-upload-item-info { grid-area: info; }
.cm-upload-item .cm-upload-item-doctype { grid-area: doctype; margin-left: 0; }
.cm-upload-item .cm-doctype-combo { grid-area: doctype; margin-left: 0; }
.cm-upload-item .cm-upload-item-desc { grid-area: desc; margin-left: 0; margin-top: 0; }
.cm-upload-item:hover {
  background: #f5f5f5;
}
.cm-upload-item input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}
.cm-upload-item-icon {
  font-size: 20px;
  margin-right: 10px;
}
.cm-upload-item-icon.cm-edocs-exists {
  color: #107c10;
  font-weight: bold;
}
.cm-upload-item-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.cm-upload-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.cm-filename-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cm-rename-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  padding: 2px 5px;
  line-height: 1;
  flex-shrink: 0;
}
.cm-rename-btn:hover { background: #e0e8f0; color: #0078d4; border-color: #0078d4; }
.cm-rename-input {
  font-size: 12px;
  border: 1px solid #0078d4;
  border-radius: 3px;
  padding: 2px 4px;
  width: 100%;
  max-width: 180px;
  outline: none;
  font-family: inherit;
}
.cm-upload-item-meta {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-upload-item-doctype {
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11px;
  min-width: 60px;
  margin-left: 8px;
}
.cm-doctype-combo {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}
.cm-upload-item-doctype-input {
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11px;
  width: 52px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
}
.cm-upload-item-doctype-input:focus {
  border-color: #0078d4;
  outline: none;
}
.cm-upload-item-desc {
  width: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  background: #fafafa;
}
.cm-upload-item-desc:focus {
  border-color: #0078d4;
  outline: none;
  background: #fff;
}
.cm-upload-item-desc::placeholder {
  color: #999;
}
.cm-doctype-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 180px;
  overflow-y: auto;
  min-width: 160px;
  margin-top: 2px;
}
.cm-doctype-option {
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cm-doctype-option:hover, .cm-doctype-option.selected {
  background: #e8f0fe;
}
.cm-doctype-option strong {
  min-width: 28px;
  color: #0078d4;
}
.cm-doctype-desc {
  color: #666;
  font-size: 10px;
}
.cm-doctype-empty {
  color: #999;
  font-style: italic;
  cursor: pointer;
}
/* PDF Split */
.cm-pdf-split-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  margin-left: 4px;
  color: #666;
  line-height: 1;
  transition: all 0.2s;
}
.cm-pdf-split-btn:hover {
  background: #e8f0fe;
  border-color: #0078d4;
  color: #0078d4;
}
.cm-pdf-split-panel {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 6px 0;
  font-size: 11px;
}
.cm-split-header {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
  color: #333;
}
.cm-split-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.cm-split-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  color: #333;
}
.cm-split-option input[type="radio"] {
  margin: 0;
}
.cm-split-pages-input {
  padding: 3px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11px;
  width: 110px;
  margin-left: 4px;
}
.cm-split-pages-input:focus {
  border-color: #0078d4;
  outline: none;
}
.cm-split-pages-input:disabled {
  background: #eee;
  color: #999;
}
.cm-split-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cm-split-go-btn {
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 11px;
  cursor: pointer;
}
.cm-split-go-btn:hover {
  background: #106ebe;
}
.cm-split-go-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.cm-split-cancel-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #666;
}
.cm-split-cancel-btn:hover {
  background: #eee;
}
.cm-split-status {
  font-size: 10px;
  color: #666;
  margin-left: 4px;
}
.cm-split-item {
  border-left: 3px solid #0078d4;
}
/* Page thumbnail */
.cm-page-thumb {
  width: 40px;
  height: 56px;
  border: 1px solid #ddd;
  border-radius: 3px;
  flex-shrink: 0;
  background: #f5f5f5;
  object-fit: contain;
}
/* Split reset button */
.cm-split-reset-btn {
  background: #e87a2e;
  border: none;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 10px;
  color: white;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
}
.cm-split-reset-btn:hover {
  background: #d36520;
}
/* Page number badge */
.cm-page-number {
  font-size: 10px;
  font-weight: 700;
  color: #0078d4;
  background: #e8f0fe;
  border-radius: 3px;
  padding: 1px 5px;
  display: inline-block;
  margin-top: 2px;
}
/* Merge bar */
.cm-merge-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 4px 0;
  background: #e8f0fe;
  border: 1px solid #b3d4fc;
  border-radius: 6px;
  font-size: 11px;
  color: #333;
}
.cm-merge-bar.visible { display: flex; }
.cm-merge-bar-text { flex: 1; }
.cm-merge-btn {
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.cm-merge-btn:hover { background: #106ebe; }
.cm-merge-btn:disabled { background: #ccc; cursor: not-allowed; }

.cm-upload-item.disabled {
  opacity: 0.5;
}
.cm-upload-item.disabled .cm-upload-item-doctype {
  pointer-events: none;
}
.cm-attachments-header {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin: 12px 0 6px 0;
  padding-left: 4px;
}
/* Drop zone */
.cm-drop-zone {
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  margin-top: 8px;
  transition: border-color 0.2s, background 0.2s;
  color: #888;
  font-size: 12px;
}
.cm-drop-zone:hover {
  border-color: #0078d4;
  background: #f0f7ff;
}
.cm-drop-zone.drag-over {
  border-color: #0078d4;
  background: #e0f0ff;
  color: #0078d4;
}
.cm-drop-zone-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}
.cm-drop-zone input[type="file"] {
  display: none;
}
.cm-dropped-files-header {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin: 12px 0 6px 0;
  padding-left: 4px;
}
.cm-remove-file-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #999;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 4px;
}
.cm-remove-file-btn:hover {
  color: #c5221f;
}

.cm-upload-btn {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.cm-upload-btn:hover {
  background: #106ebe;
}
.cm-upload-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}
.cm-upload-btn:disabled,
body.theme-dark .cm-upload-btn:disabled,
body.theme-warm .cm-upload-btn:disabled,
body.theme-stitch .cm-upload-btn:disabled,
body.theme-depth .cm-upload-btn:disabled,
body.theme-smart .cm-upload-btn:disabled,
body.theme-bento .cm-upload-btn:disabled,
body.theme-3d .cm-upload-btn:disabled {
  opacity: 0.55;
}
.cm-upload-status {
  margin-top: 8px;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  display: none;
}
.cm-upload-status.success {
  display: block;
  background: #e6f4ea;
  color: #1e7e34;
}
.cm-upload-status.error {
  display: block;
  background: #fce8e6;
  color: #c5221f;
}

/* ========== DEV BANNER (hidden by default, shown by enhancements-dev.js) ========== */
#dev-banner {
  display: none;
  background: #ff9800;
  color: white;
  padding: 8px 12px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* DEV build stamp footer */
.cm-dev-stamp {
  position: fixed;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  color: #999;
  z-index: 9999;
  pointer-events: none;
}

/* ========== THEME TRANSITION ANIMATION ========== */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, transform 0.2s ease !important;
}

/* ===================================================================
   THEME: DARK — "Midnight Terminal"
   Font: JetBrains Mono (monospace, dev-focused)
   Shape: Sharp corners, thin borders, neon accents
   Vibe:  Hacker terminal, compact, glowing highlights
   =================================================================== */
body.theme-dark {
  background: #0d1117 !important;
  color: #c9d1d9 !important;
  font-family: 'JetBrains Mono', 'Consolas', monospace !important;
}
body.theme-dark #root, body.theme-dark #root *,
body.theme-dark input, body.theme-dark select, body.theme-dark button, body.theme-dark textarea {
  font-family: 'JetBrains Mono', 'Consolas', monospace !important;
}
/* Dark: Header — flat black with neon underline */
body.theme-dark .cm-header {
  background: #010409 !important;
  border-bottom: 2px solid #58a6ff !important;
  border-radius: 0 !important;
}
body.theme-dark .cm-header-title {
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
}
/* Dark: Search — terminal-style with glow */
body.theme-dark .cm-manual-search {
  background: #0d1117 !important;
  border-bottom: 1px solid #21262d !important;
  padding: 6px 8px !important;
}
body.theme-dark .cm-search-input {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  border-radius: 2px !important;
  color: #c9d1d9 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
}
body.theme-dark .cm-search-input:focus {
  border-color: #58a6ff !important;
  box-shadow: 0 0 8px rgba(88,166,255,0.3) !important;
}
body.theme-dark .cm-search-input::placeholder { color: #484f58 !important; }
body.theme-dark .cm-search-btn {
  background: transparent !important;
  border: 1px solid #58a6ff !important;
  color: #58a6ff !important;
  border-radius: 2px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
}
body.theme-dark .cm-search-btn:hover {
  background: #58a6ff !important;
  color: #0d1117 !important;
  box-shadow: 0 0 12px rgba(88,166,255,0.4) !important;
}
/* Dark: Sections — card with subtle glow */
body.theme-dark .cm-section {
  background: #0d1117 !important;
  border: 1px solid #21262d !important;
  border-radius: 2px 2px 0 0 !important;
  margin: 12px 4px 0 !important;
  padding: 8px !important;
}
body.theme-dark .cm-section-header {
  background: #161b22 !important;
  border-bottom: 1px solid #21262d !important;
  border-radius: 0 !important;
}
body.theme-dark .cm-section-header:hover {
  background: #1c2128 !important;
}
body.theme-dark .cm-section-title { color: #58a6ff !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: 1px !important; }
body.theme-dark .cm-section-toggle { color: #484f58 !important; }
body.theme-dark .cm-copy-btn {
  border: 1px solid #30363d !important;
  color: #8b949e !important;
  border-radius: 2px !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
body.theme-dark .cm-copy-btn:hover {
  background: #58a6ff !important;
  border-color: #58a6ff !important;
  color: #0d1117 !important;
}
body.theme-dark .cm-toast {
  background: #161b22 !important;
  color: #58a6ff !important;
  border: 1px solid #58a6ff !important;
  border-radius: 2px !important;
  box-shadow: 0 0 20px rgba(88,166,255,0.3) !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
}
/* Dark: React/Fluent overrides */
body.theme-dark #root,
body.theme-dark #root * { color: #c9d1d9 !important; }
body.theme-dark #root div[class*="___"] { background: transparent !important; }
body.theme-dark #root .fui-FluentProvider { background: #0d1117 !important; }
body.theme-dark #root [role="tablist"] {
  background: #010409 !important;
  border-bottom: 1px solid #21262d !important;
}
body.theme-dark #root [role="tablist"] button,
body.theme-dark #root [role="tab"] {
  color: #484f58 !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
}
body.theme-dark #root [role="tablist"] button[aria-selected="true"],
body.theme-dark #root [role="tab"][aria-selected="true"] {
  color: #58a6ff !important;
  border-bottom: 2px solid #58a6ff !important;
}
body.theme-dark #root [role="tabpanel"] { background: #0d1117 !important; }
body.theme-dark #root [role="group"] { background: #161b22 !important; border-radius: 2px !important; }
body.theme-dark #root .fui-Card,
body.theme-dark #root [class*="Card"] {
  background: #161b22 !important;
  border: 1px solid #21262d !important;
  border-radius: 2px !important;
}
/* Dark: Badges — neon pills */
body.theme-dark #root .fui-Badge[class*="___"] {
  background: transparent !important;
  border: 1px solid #58a6ff !important;
  color: #58a6ff !important;
  border-radius: 2px !important;
  font-size: 10px !important;
  letter-spacing: 0.5px !important;
}
/* Dark: eDocs row background + text */
body.theme-dark #root div[style*="background-color: rgb(245, 245, 245)"] {
  background-color: #161b22 !important;
}
body.theme-dark #root div[style*="background-color: rgb(245, 245, 245)"] span {
  color: #c9d1d9 !important;
}
body.theme-dark #root div[style*="background-color: rgb(245, 245, 245)"] span[style*="color: rgb(153, 153, 153)"] {
  color: #484f58 !important;
}
/* Dark: Upload section */
body.theme-dark .cm-upload-section { background: #0d1117 !important; border-bottom-color: #21262d !important; }
body.theme-dark .cm-add-notes-btn {
  background: transparent !important;
  border: 1px solid #30363d !important;
  color: #8b949e !important;
  border-radius: 2px !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
}
body.theme-dark .cm-add-notes-btn:hover {
  border-color: #58a6ff !important;
  color: #58a6ff !important;
  box-shadow: 0 0 8px rgba(88,166,255,0.2) !important;
}
body.theme-dark .cm-upload-list-header {
  color: #58a6ff !important;
  border-bottom-color: #21262d !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 11px !important;
}
body.theme-dark .cm-upload-item {
  background: #161b22 !important;
  border: 1px solid #21262d !important;
  border-radius: 2px !important;
}
body.theme-dark .cm-upload-item:hover {
  background: #1c2128 !important;
  border-color: #58a6ff !important;
}
body.theme-dark .cm-upload-item-name { color: #c9d1d9 !important; }
body.theme-dark .cm-upload-item-meta { color: #484f58 !important; font-size: 10px !important; }
body.theme-dark .cm-upload-item-doctype,
body.theme-dark .cm-upload-item-doctype-input {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #58a6ff !important;
  border-radius: 2px !important;
  text-transform: uppercase !important;
}
body.theme-dark .cm-upload-item-desc {
  background: #0d1117 !important;
  border: 1px solid #21262d !important;
  color: #c9d1d9 !important;
  border-radius: 2px !important;
}
body.theme-dark .cm-upload-item-desc:focus { border-color: #58a6ff !important; box-shadow: 0 0 6px rgba(88,166,255,0.2) !important; }
body.theme-dark .cm-upload-btn {
  background: transparent !important;
  border: 2px solid #3fb950 !important;
  color: #3fb950 !important;
  border-radius: 2px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-weight: 600 !important;
}
body.theme-dark .cm-upload-btn:hover {
  background: #3fb950 !important;
  color: #0d1117 !important;
  box-shadow: 0 0 12px rgba(63,185,80,0.4) !important;
}
body.theme-dark .cm-drop-zone {
  border: 1px dashed #30363d !important;
  color: #484f58 !important;
  border-radius: 2px !important;
}
body.theme-dark .cm-drop-zone:hover {
  border-color: #58a6ff !important;
  background: rgba(88,166,255,0.05) !important;
  color: #58a6ff !important;
}
body.theme-dark .cm-doctype-dropdown {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  border-radius: 2px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5) !important;
}
body.theme-dark .cm-doctype-option:hover,
body.theme-dark .cm-doctype-option.selected { background: #1c2128 !important; }
body.theme-dark .cm-doctype-option strong { color: #58a6ff !important; }
body.theme-dark .cm-doctype-desc { color: #484f58 !important; }
body.theme-dark .cm-upload-job-selector select,
body.theme-dark .cm-upload-job-selector input,
body.theme-dark .cm-upload-doctype-selector select,
body.theme-dark .cm-upload-doctype-selector input {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
  border-radius: 2px !important;
}
body.theme-dark .cm-upload-job-selector label,
body.theme-dark .cm-upload-doctype-selector label { color: #8b949e !important; text-transform: uppercase !important; font-size: 10px !important; letter-spacing: 0.5px !important; }
body.theme-dark .cm-attachments-header,
body.theme-dark .cm-dropped-files-header { color: #484f58 !important; text-transform: uppercase !important; letter-spacing: 1px !important; }
body.theme-dark .cm-rename-btn { background: #161b22 !important; border: 1px solid #30363d !important; color: #8b949e !important; border-radius: 2px !important; }
body.theme-dark .cm-rename-btn:hover { border-color: #58a6ff !important; color: #58a6ff !important; }
body.theme-dark .cm-pdf-split-btn { border: 1px solid #30363d !important; color: #484f58 !important; border-radius: 2px !important; }
body.theme-dark .cm-pdf-split-btn:hover { border-color: #58a6ff !important; color: #58a6ff !important; }
body.theme-dark .cm-pdf-split-panel { background: #161b22 !important; border: 1px solid #21262d !important; border-radius: 2px !important; }
body.theme-dark .cm-split-header { color: #58a6ff !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; }
body.theme-dark .cm-split-option { color: #c9d1d9 !important; }
body.theme-dark .cm-split-pages-input { background: #0d1117 !important; border: 1px solid #30363d !important; color: #c9d1d9 !important; border-radius: 2px !important; }
body.theme-dark .cm-merge-bar { background: #161b22 !important; border: 1px solid #21262d !important; color: #c9d1d9 !important; border-radius: 2px !important; }
body.theme-dark .cm-upload-status.success { background: rgba(63,185,80,0.1) !important; color: #3fb950 !important; border: 1px solid #3fb950 !important; border-radius: 2px !important; }
body.theme-dark .cm-upload-status.error { background: rgba(248,81,73,0.1) !important; color: #f85149 !important; border: 1px solid #f85149 !important; border-radius: 2px !important; }
body.theme-dark .cm-page-number { background: rgba(88,166,255,0.15) !important; color: #58a6ff !important; border-radius: 2px !important; }
body.theme-dark .cm-split-go-btn { background: transparent !important; border: 1px solid #58a6ff !important; color: #58a6ff !important; border-radius: 2px !important; }
body.theme-dark .cm-split-go-btn:hover { background: #58a6ff !important; color: #0d1117 !important; }
body.theme-dark .cm-split-cancel-btn { border: 1px solid #30363d !important; color: #8b949e !important; border-radius: 2px !important; }
body.theme-dark .cm-merge-btn { background: transparent !important; border: 1px solid #58a6ff !important; color: #58a6ff !important; border-radius: 2px !important; }
body.theme-dark .cm-merge-btn:hover { background: #58a6ff !important; color: #0d1117 !important; }
/* Dark: Header selects */
body.theme-dark #cm-view-toggle,
body.theme-dark #cm-client-switcher {
  background: transparent !important;
  border: 1px solid #30363d !important;
  color: #8b949e !important;
  border-radius: 2px !important;
}
body.theme-dark #cm-view-toggle option,
body.theme-dark #cm-client-switcher option { background: #161b22 !important; color: #c9d1d9 !important; }
/* Dark: Scrollbar */
body.theme-dark ::-webkit-scrollbar { width: 6px; }
body.theme-dark ::-webkit-scrollbar-track { background: #0d1117; }
body.theme-dark ::-webkit-scrollbar-thumb { background: #21262d; border-radius: 0; }
body.theme-dark ::-webkit-scrollbar-thumb:hover { background: #30363d; }

/* ===================================================================
   THEME: WARM — "Elegant Serif"
   Font: Libre Baskerville (editorial, refined)
   Shape: Generous radius, soft shadows, no hard borders
   Vibe:  Premium newspaper, warm reading experience
   =================================================================== */
body.theme-warm {
  background: #faf6ef !important;
  color: #3d3229 !important;
  font-family: 'Libre Baskerville', 'Georgia', serif !important;
}
body.theme-warm #root, body.theme-warm #root *,
body.theme-warm input, body.theme-warm select, body.theme-warm button, body.theme-warm textarea {
  font-family: 'Libre Baskerville', 'Georgia', serif !important;
}
/* Warm: Header — rich walnut gradient with soft bottom */
body.theme-warm .cm-header {
  background: linear-gradient(180deg, #4a3728 0%, #6b4f3a 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 8px rgba(74,55,40,0.2) !important;
  border-radius: 0 0 12px 12px !important;
}
body.theme-warm .cm-header-title {
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 1px !important;
}
body.theme-warm .cm-header-tm { font-style: italic !important; }
/* Warm: Search — soft, rounded, inset feel */
body.theme-warm .cm-manual-search {
  background: #f0e8da !important;
  border-bottom: none !important;
  padding: 8px 10px !important;
}
body.theme-warm .cm-search-input {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 20px !important;
  color: #3d3229 !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.08) !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
}
body.theme-warm .cm-search-input:focus {
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.08), 0 0 0 2px rgba(139,109,79,0.3) !important;
}
body.theme-warm .cm-search-input::placeholder { color: #b8a590 !important; font-style: italic !important; }
body.theme-warm .cm-search-btn {
  background: #8b6d4f !important;
  border: none !important;
  border-radius: 20px !important;
  color: #fff !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  box-shadow: 0 2px 6px rgba(139,109,79,0.3) !important;
}
body.theme-warm .cm-search-btn:hover {
  background: #6b4f3a !important;
  box-shadow: 0 3px 10px rgba(139,109,79,0.4) !important;
  transform: translateY(-1px) !important;
}
/* Warm: Sections — paper cards with soft shadows */
body.theme-warm .cm-section {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  margin: 12px 4px 0 !important;
  padding: 10px !important;
}
body.theme-warm .cm-section-header {
  background: transparent !important;
  border-bottom: 1px solid #e8ddd0 !important;
  border-radius: 10px 10px 0 0 !important;
}
body.theme-warm .cm-section-header:hover { background: #f5edd9 !important; }
body.theme-warm .cm-section-title {
  color: #6b4f3a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
body.theme-warm .cm-section-toggle { color: #b8a590 !important; }
body.theme-warm .cm-copy-btn {
  border: none !important;
  background: #f0e8da !important;
  color: #8b6d4f !important;
  border-radius: 16px !important;
  padding: 4px 12px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}
body.theme-warm .cm-copy-btn:hover {
  background: #8b6d4f !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
body.theme-warm .cm-toast {
  background: #4a3728 !important;
  color: #f0e8da !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(74,55,40,0.3) !important;
  font-style: italic !important;
}
/* Warm: React/Fluent overrides */
body.theme-warm #root,
body.theme-warm #root * { color: #3d3229 !important; }
body.theme-warm #root .fui-FluentProvider { background: #faf6ef !important; }
body.theme-warm #root [role="tablist"] {
  background: #f0e8da !important;
  border-radius: 8px !important;
  margin: 2px 4px !important;
}
body.theme-warm #root [role="tablist"] button,
body.theme-warm #root [role="tab"] {
  color: #b8a590 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
body.theme-warm #root [role="tablist"] button[aria-selected="true"],
body.theme-warm #root [role="tab"][aria-selected="true"] {
  color: #6b4f3a !important;
  font-weight: 700 !important;
  background: rgba(255,252,245,0.7) !important;
}
body.theme-warm #root [role="tabpanel"] { background: #faf6ef !important; }
body.theme-warm #root [role="group"] { background: #f5edd9 !important; border-radius: 8px !important; }
body.theme-warm #root .fui-Card,
body.theme-warm #root [class*="Card"] {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
/* Warm: Badges — rounded pills with fill */
body.theme-warm #root .fui-Badge[class*="___"] {
  background: #8b6d4f !important;
  color: #fff !important;
  border-radius: 16px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(139,109,79,0.3) !important;
}
/* Warm: Upload section */
body.theme-warm .cm-upload-section { background: #f5edd9 !important; border-bottom: none !important; border-radius: 10px !important; }
body.theme-warm .cm-add-notes-btn {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 10px !important;
  color: #6b4f3a !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
body.theme-warm .cm-add-notes-btn:hover {
  background: #f0e8da !important;
  color: #4a3728 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
}
body.theme-warm .cm-upload-list-header {
  color: #6b4f3a !important;
  border-bottom: 1px solid #e8ddd0 !important;
  font-weight: 700 !important;
}
body.theme-warm .cm-upload-item {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
body.theme-warm .cm-upload-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  transform: translateY(-1px) !important;
}
body.theme-warm .cm-upload-item-name { color: #3d3229 !important; }
body.theme-warm .cm-upload-item-meta { color: #b8a590 !important; font-style: italic !important; }
body.theme-warm .cm-upload-item-doctype,
body.theme-warm .cm-upload-item-doctype-input {
  background: #f0e8da !important;
  border: none !important;
  color: #6b4f3a !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
}
body.theme-warm .cm-upload-item-desc {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06) !important;
  color: #3d3229 !important;
}
body.theme-warm .cm-upload-item-desc:focus { box-shadow: inset 0 1px 3px rgba(0,0,0,0.06), 0 0 0 2px rgba(139,109,79,0.3) !important; }
body.theme-warm .cm-upload-btn {
  background: #8b6d4f !important;
  border: none !important;
  border-radius: 20px !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(139,109,79,0.3) !important;
}
body.theme-warm .cm-upload-btn:hover {
  background: #6b4f3a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(139,109,79,0.4) !important;
}
body.theme-warm .cm-drop-zone {
  border: 2px dashed #d4c4af !important;
  border-radius: 12px !important;
  color: #b8a590 !important;
  font-style: italic !important;
}
body.theme-warm .cm-drop-zone:hover {
  border-color: #8b6d4f !important;
  background: #f5edd9 !important;
  color: #6b4f3a !important;
}
body.theme-warm .cm-doctype-dropdown {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
body.theme-warm .cm-doctype-option:hover,
body.theme-warm .cm-doctype-option.selected { background: #f5edd9 !important; border-radius: 6px !important; }
body.theme-warm .cm-doctype-option strong { color: #6b4f3a !important; }
body.theme-warm .cm-doctype-desc { color: #b8a590 !important; font-style: italic !important; }
body.theme-warm .cm-upload-job-selector select,
body.theme-warm .cm-upload-job-selector input,
body.theme-warm .cm-upload-doctype-selector select,
body.theme-warm .cm-upload-doctype-selector input {
  background: #fffcf5 !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06) !important;
  color: #3d3229 !important;
}
body.theme-warm .cm-upload-job-selector label,
body.theme-warm .cm-upload-doctype-selector label { color: #8b6d4f !important; font-weight: 700 !important; font-size: 11px !important; }
body.theme-warm .cm-attachments-header,
body.theme-warm .cm-dropped-files-header { color: #8b6d4f !important; font-weight: 700 !important; }
body.theme-warm .cm-rename-btn { background: #f0e8da !important; border: none !important; color: #6b4f3a !important; border-radius: 8px !important; }
body.theme-warm .cm-rename-btn:hover { background: #8b6d4f !important; color: #fff !important; }
body.theme-warm .cm-pdf-split-btn { border: none !important; background: #f0e8da !important; color: #8b6d4f !important; border-radius: 8px !important; }
body.theme-warm .cm-pdf-split-btn:hover { background: #8b6d4f !important; color: #fff !important; }
body.theme-warm .cm-pdf-split-panel { background: #f5edd9 !important; border: none !important; border-radius: 10px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important; }
body.theme-warm .cm-split-header { color: #6b4f3a !important; font-weight: 700 !important; }
body.theme-warm .cm-split-option { color: #3d3229 !important; }
body.theme-warm .cm-split-pages-input { background: #fffcf5 !important; border: none !important; border-radius: 8px !important; box-shadow: inset 0 1px 3px rgba(0,0,0,0.06) !important; color: #3d3229 !important; }
body.theme-warm .cm-merge-bar { background: #f5edd9 !important; border: none !important; border-radius: 10px !important; color: #3d3229 !important; }
body.theme-warm .cm-split-go-btn { background: #8b6d4f !important; border: none !important; border-radius: 16px !important; color: #fff !important; }
body.theme-warm .cm-split-go-btn:hover { background: #6b4f3a !important; }
body.theme-warm .cm-split-cancel-btn { background: #f0e8da !important; border: none !important; border-radius: 16px !important; color: #8b6d4f !important; }
body.theme-warm .cm-merge-btn { background: #8b6d4f !important; border: none !important; border-radius: 16px !important; color: #fff !important; }
body.theme-warm .cm-merge-btn:hover { background: #6b4f3a !important; }
body.theme-warm .cm-upload-status.success { background: #e8f0e0 !important; color: #4a6b3a !important; border: none !important; border-radius: 8px !important; }
body.theme-warm .cm-upload-status.error { background: #f5e0dc !important; color: #8b3a2f !important; border: none !important; border-radius: 8px !important; }
body.theme-warm .cm-page-number { background: #f0e8da !important; color: #6b4f3a !important; border-radius: 10px !important; font-weight: 700 !important; }
/* Warm: eDocs badge */
body.theme-warm #root [style*="background-color: rgb(216, 59, 1)"],
body.theme-warm #root [style*="background-color:rgb(216, 59, 1)"],
body.theme-warm #root [style*="background-color: rgb(216,59,1)"] {
  background-color: #6b8b4f !important;
  border-radius: 16px !important;
}
/* Warm: Header selects */
body.theme-warm #cm-view-toggle,
body.theme-warm #cm-client-switcher {
  background: rgba(255,255,255,0.15) !important;
  border: none !important;
  border-radius: 16px !important;
  color: rgba(255,255,255,0.9) !important;
  font-weight: 700 !important;
}
body.theme-warm #cm-view-toggle option,
body.theme-warm #cm-client-switcher option { background: #4a3728 !important; color: #f0e8da !important; }
/* Warm: Scrollbar */
body.theme-warm ::-webkit-scrollbar { width: 6px; }
body.theme-warm ::-webkit-scrollbar-track { background: #faf6ef; }
body.theme-warm ::-webkit-scrollbar-thumb { background: #d4c4af; border-radius: 10px; }
body.theme-warm ::-webkit-scrollbar-thumb:hover { background: #b8a590; }


/* ===================================================================
   THEME 4: STITCH — "Kinetic Prism" High-Tech HUD
   Background: Deep indigo void (#0b1326)
   Primary: Cyan (#00daf3) for navigation/accents
   Tertiary: Green (#3ce36a) for success/status
   Font: Inter with tight tracking, uppercase labels
   Shape: 12px radius, glass panels, no hard borders, tonal layering
   Vibe: High-end heads-up display, deep space logistics
   =================================================================== */
body.theme-stitch {
  background: #0b1326 !important;
  color: #dae2fd !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
body.theme-stitch #root, body.theme-stitch #root *,
body.theme-stitch input, body.theme-stitch select, body.theme-stitch button, body.theme-stitch textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
/* Stitch: Status pulse animation */
@keyframes stitch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 218, 243, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 218, 243, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 218, 243, 0); }
}
/* Stitch: Header — dark glass nav */
body.theme-stitch .cm-header {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}
body.theme-stitch .cm-header-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #00daf3 !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 20px rgba(0, 218, 243, 0.3) !important;
}
body.theme-stitch .cm-header-tm { color: rgba(0, 218, 243, 0.5) !important; }
body.theme-stitch .cm-logout-btn { color: rgba(198, 197, 212, 0.7) !important; }
body.theme-stitch .cm-logout-btn:hover { background: rgba(255, 255, 255, 0.05) !important; color: #00daf3 !important; }
/* Stitch: Search — glow input */
body.theme-stitch .cm-manual-search {
  background: rgba(19, 27, 46, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 8px 10px !important;
}
body.theme-stitch .cm-search-input {
  background: #060e20 !important;
  border: 0.5px solid rgba(69, 70, 82, 0.2) !important;
  border-radius: 8px !important;
  color: #dae2fd !important;
  font-size: 13px !important;
}
body.theme-stitch .cm-search-input:focus {
  border-color: #00daf3 !important;
  box-shadow: 0 0 12px rgba(0, 218, 243, 0.2) !important;
  outline: none !important;
}
body.theme-stitch .cm-search-input::placeholder { color: rgba(198, 197, 212, 0.4) !important; }
body.theme-stitch .cm-search-btn {
  background: linear-gradient(135deg, #00daf3, #00363d) !important;
  border: none !important;
  color: #001f24 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 11px !important;
}
body.theme-stitch .cm-search-btn:hover {
  box-shadow: 0 4px 20px rgba(0, 218, 243, 0.3) !important;
  filter: brightness(1.1) !important;
}
/* Stitch: Sections — glass panels with indicator strip */
body.theme-stitch .cm-section {
  background: rgba(45, 52, 73, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
  margin: 12px 8px 0 !important;
  padding: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  border-left: 3px solid #00daf3 !important;
}
body.theme-stitch .cm-section-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px 12px 0 0 !important;
}
body.theme-stitch .cm-section-header:hover { background: rgba(255, 255, 255, 0.03) !important; }
body.theme-stitch .cm-section-title {
  color: rgba(198, 197, 212, 0.8) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
}
body.theme-stitch .cm-section-toggle { color: rgba(198, 197, 212, 0.5) !important; }
body.theme-stitch .cm-copy-btn {
  border: none !important;
  color: rgba(198, 197, 212, 0.6) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
body.theme-stitch .cm-copy-btn:hover {
  background: rgba(0, 218, 243, 0.2) !important;
  color: #00daf3 !important;
}
body.theme-stitch .cm-toast {
  background: rgba(45, 52, 73, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #00daf3 !important;
  border: 0.5px solid rgba(0, 218, 243, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}
/* Stitch: React/Fluent overrides */
body.theme-stitch #root,
body.theme-stitch #root * { color: #dae2fd !important; }
body.theme-stitch #root div[class*="___"] { background: transparent !important; }
body.theme-stitch #root .fui-FluentProvider { background: transparent !important; }
body.theme-stitch #root [role="tablist"] {
  background: rgba(23, 31, 51, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
  margin: 6px 8px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
}
body.theme-stitch #root [role="tablist"] button,
body.theme-stitch #root [role="tab"] {
  color: rgba(198, 197, 212, 0.5) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
}
body.theme-stitch #root [role="tablist"] button[aria-selected="true"],
body.theme-stitch #root [role="tab"][aria-selected="true"] {
  color: #00daf3 !important;
  font-weight: 800 !important;
  background: rgba(0, 218, 243, 0.1) !important;
  border: 0.5px solid rgba(0, 218, 243, 0.2) !important;
}
body.theme-stitch #root [role="tabpanel"] { background: transparent !important; }
body.theme-stitch #root [role="group"] {
  background: rgba(6, 14, 32, 0.5) !important;
  border-radius: 10px !important;
}
body.theme-stitch #root .fui-Card,
body.theme-stitch #root [class*="Card"] {
  background: rgba(45, 52, 73, 0.6) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
/* Stitch: Data rows — no dividers, tonal shift */
body.theme-stitch .cm-row,
body.theme-stitch #root div[class*="___"] > span:first-child,
body.theme-stitch .info-label { color: rgba(198, 197, 212, 0.6) !important; }
body.theme-stitch .cm-row { border-bottom-color: rgba(255, 255, 255, 0.04) !important; }
body.theme-stitch .cm-row:hover { background: rgba(0, 218, 243, 0.03) !important; }
/* Stitch: Values — bright white for data */
body.theme-stitch .info-value,
body.theme-stitch #root div[class*="___"] > span:last-child { color: #fff !important; font-weight: 600 !important; }
/* Stitch: Badges — cyan/green accent pills */
body.theme-stitch #root .fui-Badge[class*="___"] {
  background: rgba(0, 218, 243, 0.15) !important;
  color: #00daf3 !important;
  border: 0.5px solid rgba(0, 218, 243, 0.3) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  animation: stitch-pulse 2s infinite !important;
}
/* Stitch: eDocs badge — success green */
body.theme-stitch #root [style*="background-color: rgb(216, 59, 1)"],
body.theme-stitch #root [style*="background-color:rgb(216, 59, 1)"],
body.theme-stitch #root [style*="background-color: rgb(216,59,1)"] {
  background-color: rgba(60, 227, 106, 0.2) !important;
  color: #3ce36a !important;
  border-radius: 50px !important;
}
/* Stitch: eDocs row background + text */
body.theme-stitch #root div[style*="background-color: rgb(245, 245, 245)"] {
  background-color: rgba(255, 255, 255, 0.06) !important;
}
body.theme-stitch #root div[style*="background-color: rgb(245, 245, 245)"] span {
  color: #dae2fd !important;
}
body.theme-stitch #root div[style*="background-color: rgb(245, 245, 245)"] span[style*="color: rgb(153, 153, 153)"] {
  color: rgba(218, 226, 253, 0.5) !important;
}
/* Stitch: Upload section */
body.theme-stitch .cm-upload-section {
  background: rgba(19, 27, 46, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
body.theme-stitch .cm-add-notes-btn {
  background: rgba(0, 218, 243, 0.1) !important;
  border: 0.5px solid rgba(0, 218, 243, 0.25) !important;
  color: #00daf3 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 10px !important;
}
body.theme-stitch .cm-add-notes-btn:hover {
  background: rgba(0, 218, 243, 0.2) !important;
  box-shadow: 0 0 16px rgba(0, 218, 243, 0.15) !important;
}
body.theme-stitch .cm-upload-list-header {
  color: rgba(198, 197, 212, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 10px !important;
}
body.theme-stitch .cm-upload-item {
  background: rgba(45, 52, 73, 0.5) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  border-left: 3px solid #00daf3 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
body.theme-stitch .cm-upload-item:hover {
  background: rgba(45, 52, 73, 0.8) !important;
  border-color: rgba(0, 218, 243, 0.2) !important;
}
body.theme-stitch .cm-upload-item-name { color: #fff !important; font-weight: 600 !important; }
body.theme-stitch .cm-upload-item-meta { color: rgba(198, 197, 212, 0.5) !important; font-size: 10px !important; }
body.theme-stitch .cm-upload-item-doctype,
body.theme-stitch .cm-upload-item-doctype-input {
  background: #060e20 !important;
  border: 0.5px solid rgba(69, 70, 82, 0.3) !important;
  color: #dae2fd !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  font-size: 10px !important;
  letter-spacing: 0.05em !important;
}
body.theme-stitch .cm-upload-item-desc {
  background: #060e20 !important;
  border: 0.5px solid rgba(69, 70, 82, 0.2) !important;
  color: #dae2fd !important;
  border-radius: 6px !important;
}
body.theme-stitch .cm-upload-item-desc:focus {
  border-color: #00daf3 !important;
  box-shadow: 0 0 8px rgba(0, 218, 243, 0.15) !important;
}
body.theme-stitch .cm-upload-item-desc::placeholder { color: rgba(198, 197, 212, 0.3) !important; }
body.theme-stitch .cm-upload-btn {
  background: linear-gradient(135deg, #00daf3, #00363d) !important;
  border: none !important;
  color: #001f24 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-size: 11px !important;
  box-shadow: 0 4px 20px rgba(0, 218, 243, 0.2) !important;
}
body.theme-stitch .cm-upload-btn:hover {
  filter: brightness(1.15) !important;
  box-shadow: 0 6px 28px rgba(0, 218, 243, 0.35) !important;
}
body.theme-stitch .cm-drop-zone {
  border: 2px dashed rgba(0, 218, 243, 0.25) !important;
  border-radius: 12px !important;
  color: rgba(198, 197, 212, 0.5) !important;
  background: rgba(6, 14, 32, 0.5) !important;
}
body.theme-stitch .cm-drop-zone:hover {
  border-color: #00daf3 !important;
  background: rgba(0, 218, 243, 0.05) !important;
  color: #00daf3 !important;
  box-shadow: 0 0 20px rgba(0, 218, 243, 0.1) !important;
}
body.theme-stitch .cm-doctype-dropdown {
  background: rgba(23, 31, 51, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 0.5px solid rgba(0, 218, 243, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}
body.theme-stitch .cm-doctype-option:hover,
body.theme-stitch .cm-doctype-option.selected { background: rgba(0, 218, 243, 0.1) !important; border-radius: 8px !important; }
body.theme-stitch .cm-doctype-option strong { color: #00daf3 !important; }
body.theme-stitch .cm-doctype-desc { color: rgba(198, 197, 212, 0.5) !important; }
body.theme-stitch .cm-upload-job-selector select,
body.theme-stitch .cm-upload-job-selector input,
body.theme-stitch .cm-upload-doctype-selector select,
body.theme-stitch .cm-upload-doctype-selector input {
  background: #060e20 !important;
  border: 0.5px solid rgba(69, 70, 82, 0.3) !important;
  color: #dae2fd !important;
  border-radius: 8px !important;
}
body.theme-stitch .cm-upload-job-selector select option,
body.theme-stitch .cm-upload-doctype-selector select option {
  background: #171f33 !important;
  color: #dae2fd !important;
}
body.theme-stitch .cm-upload-job-selector label,
body.theme-stitch .cm-upload-doctype-selector label {
  color: rgba(198, 197, 212, 0.7) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 9px !important;
}
body.theme-stitch .cm-attachments-header,
body.theme-stitch .cm-dropped-files-header { color: rgba(198, 197, 212, 0.6) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; font-size: 10px !important; }
body.theme-stitch .cm-rename-btn { background: rgba(255,255,255,0.05) !important; border: none !important; color: rgba(198, 197, 212, 0.6) !important; border-radius: 50% !important; }
body.theme-stitch .cm-rename-btn:hover { background: rgba(0, 218, 243, 0.15) !important; color: #00daf3 !important; }
body.theme-stitch .cm-pdf-split-btn { border: none !important; color: rgba(198, 197, 212, 0.5) !important; border-radius: 50% !important; background: rgba(255,255,255,0.05) !important; }
body.theme-stitch .cm-pdf-split-btn:hover { background: rgba(0, 218, 243, 0.15) !important; color: #00daf3 !important; }
body.theme-stitch .cm-pdf-split-panel { background: rgba(23, 31, 51, 0.9) !important; border: 0.5px solid rgba(0, 218, 243, 0.15) !important; border-radius: 12px !important; backdrop-filter: blur(12px) !important; }
body.theme-stitch .cm-split-header { color: #00daf3 !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; font-size: 10px !important; }
body.theme-stitch .cm-split-option { color: rgba(198, 197, 212, 0.8) !important; }
body.theme-stitch .cm-split-pages-input { background: #060e20 !important; border: 0.5px solid rgba(69, 70, 82, 0.3) !important; color: #dae2fd !important; border-radius: 6px !important; }
body.theme-stitch .cm-split-pages-input:focus { border-color: #00daf3 !important; box-shadow: 0 0 8px rgba(0, 218, 243, 0.15) !important; }
body.theme-stitch .cm-merge-bar { background: rgba(23, 31, 51, 0.8) !important; border: 0.5px solid rgba(255, 255, 255, 0.08) !important; color: #dae2fd !important; border-radius: 12px !important; }
body.theme-stitch .cm-split-go-btn { background: linear-gradient(135deg, #00daf3, #00363d) !important; border: none !important; color: #001f24 !important; border-radius: 8px !important; font-weight: 700 !important; }
body.theme-stitch .cm-split-go-btn:hover { box-shadow: 0 0 16px rgba(0, 218, 243, 0.3) !important; }
body.theme-stitch .cm-split-cancel-btn { background: rgba(255, 255, 255, 0.05) !important; border: 0.5px solid rgba(255, 255, 255, 0.1) !important; color: rgba(198, 197, 212, 0.7) !important; border-radius: 8px !important; }
body.theme-stitch .cm-merge-btn { background: linear-gradient(135deg, #00daf3, #00363d) !important; border: none !important; color: #001f24 !important; border-radius: 8px !important; font-weight: 700 !important; }
body.theme-stitch .cm-merge-btn:hover { box-shadow: 0 0 16px rgba(0, 218, 243, 0.3) !important; }
body.theme-stitch .cm-upload-status.success { background: rgba(60, 227, 106, 0.1) !important; color: #3ce36a !important; border: 0.5px solid rgba(60, 227, 106, 0.25) !important; border-radius: 8px !important; }
body.theme-stitch .cm-upload-status.error { background: rgba(255, 180, 171, 0.1) !important; color: #ffb4ab !important; border: 0.5px solid rgba(255, 180, 171, 0.25) !important; border-radius: 8px !important; }
body.theme-stitch .cm-page-number { background: rgba(0, 218, 243, 0.15) !important; color: #00daf3 !important; border-radius: 6px !important; font-weight: 800 !important; }
body.theme-stitch .cm-split-item { border-left-color: #00daf3 !important; }
/* Stitch: Header selects */
body.theme-stitch #cm-view-toggle,
body.theme-stitch #cm-client-switcher {
  background: rgba(23, 31, 51, 0.8) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  color: #dae2fd !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
}
body.theme-stitch #cm-view-toggle option,
body.theme-stitch #cm-client-switcher option { background: #171f33 !important; color: #dae2fd !important; }
/* Stitch: Scrollbar — minimal */
body.theme-stitch ::-webkit-scrollbar { width: 4px; }
body.theme-stitch ::-webkit-scrollbar-track { background: #0b1326; border-radius: 10px; }
body.theme-stitch ::-webkit-scrollbar-thumb { background: #171f33; border-radius: 10px; }
body.theme-stitch ::-webkit-scrollbar-thumb:hover { background: #222a3d; }
/* Stitch: Notes panel */
body.theme-stitch .cm-notes-overlay { background: rgba(6, 14, 32, 0.85) !important; backdrop-filter: blur(8px) !important; }
body.theme-stitch .cm-notes-panel {
  background: rgba(23, 31, 51, 0.95) !important;
  border: 0.5px solid rgba(0, 218, 243, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
}
body.theme-stitch .cm-notes-panel h3 { color: #00daf3 !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; }
body.theme-stitch .cm-notes-panel textarea {
  background: #060e20 !important;
  border: 0.5px solid rgba(69, 70, 82, 0.3) !important;
  color: #dae2fd !important;
  border-radius: 8px !important;
}
body.theme-stitch .cm-notes-panel textarea:focus { border-color: #00daf3 !important; box-shadow: 0 0 8px rgba(0, 218, 243, 0.15) !important; }
body.theme-stitch .cm-notes-panel select {
  background: #060e20 !important;
  border: 0.5px solid rgba(69, 70, 82, 0.3) !important;
  color: #dae2fd !important;
  border-radius: 8px !important;
}

/* ========== THEME KEYFRAMES ========== */
@keyframes depth-shine-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}
@keyframes depth-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(15px) rotate(240deg); }
}
@keyframes depth-float-alt {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) rotate(180deg) scale(1.15); }
}
@keyframes depth-float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-15px) translateX(10px); }
  75% { transform: translateY(10px) translateX(-8px); }
}
@keyframes depth-card-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes depth-row-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(168, 130, 255, 0); }
  50% { box-shadow: 0 0 12px rgba(168, 130, 255, 0.15); }
}
@keyframes depth-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
@keyframes pulse-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
@keyframes pulse-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes pulse-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes smart-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
@keyframes smart-shimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes smart-slideIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== DEPTH THEME — Deep Space 3D ========== */
body.theme-depth {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%) !important;
  background-size: 200% 200% !important;
  animation: depth-gradient-shift 15s ease infinite !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  perspective: 1000px !important;
}
/* Depth: Floating background shapes */
body.theme-depth::before {
  content: '' !important;
  position: fixed !important;
  width: 120px !important;
  height: 120px !important;
  top: 15% !important;
  left: -20px !important;
  background: radial-gradient(circle, rgba(168, 130, 255, 0.12) 0%, transparent 70%) !important;
  border-radius: 50% !important;
  animation: depth-float 18s ease-in-out infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
body.theme-depth::after {
  content: '' !important;
  position: fixed !important;
  width: 90px !important;
  height: 90px !important;
  bottom: 20% !important;
  right: -15px !important;
  background: radial-gradient(circle, rgba(42, 82, 152, 0.18) 0%, transparent 70%) !important;
  border-radius: 50% !important;
  animation: depth-float-alt 22s ease-in-out infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
body.theme-depth #root, body.theme-depth #root *,
body.theme-depth input, body.theme-depth select, body.theme-depth button, body.theme-depth textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
body.theme-depth .cm-header {
  background: rgba(15, 23, 60, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 10 !important;
}
body.theme-depth .cm-header::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: radial-gradient(circle, rgba(168, 130, 255, 0.08) 0%, transparent 60%) !important;
  animation: depth-float-slow 12s ease-in-out infinite !important;
  pointer-events: none !important;
}
body.theme-depth .cm-header-title {
  font-weight: 700 !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
body.theme-depth .cm-header-tm { color: rgba(255, 255, 255, 0.4) !important; }
body.theme-depth .cm-logout-btn { color: rgba(255, 255, 255, 0.6) !important; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; }
body.theme-depth .cm-logout-btn:hover { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; transform: translateY(-1px) !important; }
body.theme-depth .cm-manual-search {
  background: rgba(15, 23, 60, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.theme-depth .cm-search-input {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 13px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth .cm-search-input:focus {
  border-color: rgba(168, 130, 255, 0.6) !important;
  box-shadow: 0 0 12px rgba(168, 130, 255, 0.25) !important;
  outline: none !important;
}
body.theme-depth .cm-search-input::placeholder { color: rgba(255, 255, 255, 0.35) !important; }
body.theme-depth .cm-search-btn {
  background: linear-gradient(135deg, #a882ff, #7e22ce) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  overflow: hidden !important;
}
body.theme-depth .cm-search-btn:hover {
  box-shadow: 0 4px 20px rgba(168, 130, 255, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.25) !important;
  filter: brightness(1.1) !important;
  transform: translateY(-2px) !important;
}
body.theme-depth .cm-section {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  margin: 12px 8px 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth .cm-section::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: none !important;
}
body.theme-depth .cm-section {
  animation: depth-card-enter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards !important;
}
body.theme-depth .cm-section:nth-of-type(1) { animation-delay: 0.05s !important; }
body.theme-depth .cm-section:nth-of-type(2) { animation-delay: 0.1s !important; }
body.theme-depth .cm-section:nth-of-type(3) { animation-delay: 0.15s !important; }
body.theme-depth .cm-section:nth-of-type(4) { animation-delay: 0.2s !important; }
body.theme-depth .cm-section:nth-of-type(5) { animation-delay: 0.25s !important; }
body.theme-depth .cm-section:nth-of-type(n+6) { animation-delay: 0.3s !important; }
body.theme-depth .cm-section:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(168, 130, 255, 0.3) !important;
}
body.theme-depth .cm-section:hover::before {
  animation: depth-shine-sweep 0.6s ease forwards !important;
}
body.theme-depth .cm-section-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px 20px 0 0 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 2 !important;
}
body.theme-depth .cm-section-header:hover { background: rgba(255, 255, 255, 0.05) !important; transform: translateX(2px) !important; }
body.theme-depth .cm-section-title {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
body.theme-depth .cm-section-toggle { color: rgba(255, 255, 255, 0.5) !important; transition: transform 0.3s ease !important; }
body.theme-depth .cm-copy-btn {
  border: none !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth .cm-copy-btn:hover {
  background: rgba(168, 130, 255, 0.25) !important;
  color: #a882ff !important;
  transform: scale(1.1) !important;
}
body.theme-depth .cm-toast {
  background: rgba(30, 60, 114, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #fff !important;
  border: 1px solid rgba(168, 130, 255, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}
/* Depth: React/Fluent overrides */
body.theme-depth #root,
body.theme-depth #root * { color: #fff !important; }
body.theme-depth #root div[class*="___"] { background: transparent !important; }
body.theme-depth #root .fui-FluentProvider { background: transparent !important; }
body.theme-depth #root [role="tablist"] {
  background: rgba(15, 23, 60, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 14px !important;
  margin: 6px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.theme-depth #root [role="tablist"] button,
body.theme-depth #root [role="tab"] {
  color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth #root [role="tablist"] button[aria-selected="true"],
body.theme-depth #root [role="tab"][aria-selected="true"] {
  color: #fff !important;
  font-weight: 700 !important;
  background: rgba(168, 130, 255, 0.2) !important;
  border: 1px solid rgba(168, 130, 255, 0.3) !important;
  box-shadow: 0 4px 16px rgba(168, 130, 255, 0.2) !important;
}
body.theme-depth #root [role="tabpanel"] { background: transparent !important; }
body.theme-depth #root [role="group"] {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 14px !important;
}
body.theme-depth #root .fui-Card,
body.theme-depth #root [class*="Card"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth #root .fui-Card:hover,
body.theme-depth #root [class*="Card"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}
/* Depth: Data rows — individual cards */
body.theme-depth .cm-row {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: 3px 4px !important;
  padding: 6px 8px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  z-index: 2 !important;
}
body.theme-depth .cm-row:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(168, 130, 255, 0.12) !important;
  transform: translateX(5px) !important;
  border-color: rgba(168, 130, 255, 0.25) !important;
}
body.theme-depth .info-label,
body.theme-depth #root div[class*="___"] > span:first-child { color: rgba(255, 255, 255, 0.6) !important; }
body.theme-depth .info-value,
body.theme-depth #root div[class*="___"] > span:last-child { color: #fff !important; font-weight: 600 !important; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important; }
/* Depth: Badges — 3D gradient pills with glow */
body.theme-depth #root .fui-Badge[class*="___"] {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(76, 175, 80, 0.2)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth #root .fui-Badge[class*="___"]:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}
/* Depth: eDocs badge */
body.theme-depth #root [style*="background-color: rgb(216, 59, 1)"],
body.theme-depth #root [style*="background-color:rgb(216, 59, 1)"],
body.theme-depth #root [style*="background-color: rgb(216,59,1)"] {
  background-color: rgba(76, 175, 80, 0.3) !important;
  color: #a5ffb0 !important;
  border-radius: 50px !important;
}
/* Depth: eDocs row background + text */
body.theme-depth #root div[style*="background-color: rgb(245, 245, 245)"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
body.theme-depth #root div[style*="background-color: rgb(245, 245, 245)"] span {
  color: #fff !important;
}
body.theme-depth #root div[style*="background-color: rgb(245, 245, 245)"] span[style*="color: rgb(153, 153, 153)"] {
  color: rgba(255, 255, 255, 0.5) !important;
}
/* Depth: 3D scrollbar */
body.theme-depth ::-webkit-scrollbar { width: 7px !important; }
body.theme-depth ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}
body.theme-depth ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(168, 130, 255, 0.5) 0%, rgba(168, 130, 255, 0.2) 100%) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
}
body.theme-depth ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(168, 130, 255, 0.7) 0%, rgba(168, 130, 255, 0.35) 100%) !important;
}
/* Depth: Collapse button float animation */
body.theme-depth .cm-collapse-btn { transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important; }
body.theme-depth .cm-collapse-btn:hover { transform: scale(1.2) !important; color: #a882ff !important; }
/* Depth: Section body entrance */
body.theme-depth .cm-section-body {
  animation: depth-card-enter 0.4s ease backwards !important;
  animation-delay: 0.15s !important;
}
/* Depth: Search button shine sweep */
body.theme-depth .cm-search-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent) !important;
  pointer-events: none !important;
}
body.theme-depth .cm-search-btn:hover::before {
  animation: depth-shine-sweep 0.5s ease forwards !important;
}
/* Depth: Upload section */
body.theme-depth .cm-upload-section {
  background: rgba(15, 23, 60, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
body.theme-depth .cm-add-notes-btn {
  background: rgba(168, 130, 255, 0.15) !important;
  border: 1px solid rgba(168, 130, 255, 0.3) !important;
  color: #c8b4ff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth .cm-add-notes-btn:hover {
  background: rgba(168, 130, 255, 0.25) !important;
  box-shadow: 0 4px 16px rgba(168, 130, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}
body.theme-depth .cm-upload-list-header {
  color: rgba(255, 255, 255, 0.7) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 12px !important;
}
body.theme-depth .cm-upload-item {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth .cm-upload-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-2px) !important;
}
body.theme-depth .cm-upload-item-name { color: #fff !important; font-weight: 600 !important; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important; }
body.theme-depth .cm-upload-item-meta { color: rgba(255, 255, 255, 0.45) !important; font-size: 10px !important; }
body.theme-depth .cm-upload-item-doctype,
body.theme-depth .cm-upload-item-doctype-input {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.theme-depth .cm-upload-item-desc {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.theme-depth .cm-upload-item-desc:focus {
  border-color: rgba(168, 130, 255, 0.5) !important;
  box-shadow: 0 0 12px rgba(168, 130, 255, 0.2) !important;
}
body.theme-depth .cm-upload-item-desc::placeholder { color: rgba(255, 255, 255, 0.3) !important; }
body.theme-depth .cm-upload-btn {
  background: linear-gradient(135deg, #a882ff, #7e22ce) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 24px rgba(168, 130, 255, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.25) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  overflow: hidden !important;
}
body.theme-depth .cm-upload-btn:hover {
  filter: brightness(1.15) !important;
  box-shadow: 0 8px 32px rgba(168, 130, 255, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}
body.theme-depth .cm-drop-zone {
  border: 2px dashed rgba(168, 130, 255, 0.3) !important;
  border-radius: 16px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(0, 0, 0, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
body.theme-depth .cm-drop-zone:hover {
  border-color: #a882ff !important;
  background: rgba(168, 130, 255, 0.08) !important;
  color: #c8b4ff !important;
  transform: translateY(-2px) !important;
}
body.theme-depth .cm-doctype-dropdown {
  background: rgba(15, 23, 60, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(168, 130, 255, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}
body.theme-depth .cm-doctype-option:hover,
body.theme-depth .cm-doctype-option.selected { background: rgba(168, 130, 255, 0.15) !important; border-radius: 10px !important; }
body.theme-depth .cm-doctype-option strong { color: #c8b4ff !important; }
body.theme-depth .cm-doctype-desc { color: rgba(255, 255, 255, 0.45) !important; }
body.theme-depth .cm-upload-job-selector select,
body.theme-depth .cm-upload-job-selector input,
body.theme-depth .cm-upload-doctype-selector select,
body.theme-depth .cm-upload-doctype-selector input {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
body.theme-depth .cm-upload-job-selector select option,
body.theme-depth .cm-upload-doctype-selector select option {
  background: #1e3c72 !important;
  color: #fff !important;
}
body.theme-depth .cm-upload-job-selector label,
body.theme-depth .cm-upload-doctype-selector label {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 10px !important;
}
body.theme-depth .cm-attachments-header,
body.theme-depth .cm-dropped-files-header { color: rgba(255, 255, 255, 0.6) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 11px !important; }
body.theme-depth .cm-rename-btn { background: rgba(255, 255, 255, 0.08) !important; border: none !important; color: rgba(255, 255, 255, 0.5) !important; border-radius: 50% !important; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; }
body.theme-depth .cm-rename-btn:hover { background: rgba(168, 130, 255, 0.2) !important; color: #c8b4ff !important; transform: scale(1.1) !important; }
body.theme-depth .cm-pdf-split-btn { border: none !important; color: rgba(255, 255, 255, 0.45) !important; border-radius: 50% !important; background: rgba(255, 255, 255, 0.08) !important; transition: all 0.3s ease !important; }
body.theme-depth .cm-pdf-split-btn:hover { background: rgba(168, 130, 255, 0.2) !important; color: #c8b4ff !important; transform: scale(1.1) !important; }
body.theme-depth .cm-pdf-split-panel { background: rgba(15, 23, 60, 0.95) !important; border: 1px solid rgba(168, 130, 255, 0.2) !important; border-radius: 16px !important; backdrop-filter: blur(16px) !important; }
body.theme-depth .cm-split-header { color: #c8b4ff !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 11px !important; }
body.theme-depth .cm-split-option { color: rgba(255, 255, 255, 0.75) !important; }
body.theme-depth .cm-split-pages-input { background: rgba(0, 0, 0, 0.3) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; color: #fff !important; border-radius: 8px !important; }
body.theme-depth .cm-split-pages-input:focus { border-color: rgba(168, 130, 255, 0.5) !important; box-shadow: 0 0 12px rgba(168, 130, 255, 0.2) !important; }
body.theme-depth .cm-merge-bar { background: rgba(15, 23, 60, 0.8) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #fff !important; border-radius: 14px !important; }
body.theme-depth .cm-split-go-btn { background: linear-gradient(135deg, #a882ff, #7e22ce) !important; border: none !important; color: #fff !important; border-radius: 10px !important; font-weight: 700 !important; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25) !important; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; }
body.theme-depth .cm-split-go-btn:hover { box-shadow: 0 4px 20px rgba(168, 130, 255, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.25) !important; transform: translateY(-2px) !important; }
body.theme-depth .cm-split-cancel-btn { background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; color: rgba(255, 255, 255, 0.7) !important; border-radius: 10px !important; }
body.theme-depth .cm-merge-btn { background: linear-gradient(135deg, #a882ff, #7e22ce) !important; border: none !important; color: #fff !important; border-radius: 10px !important; font-weight: 700 !important; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25) !important; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; }
body.theme-depth .cm-merge-btn:hover { box-shadow: 0 4px 20px rgba(168, 130, 255, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.25) !important; transform: translateY(-2px) !important; }
body.theme-depth .cm-upload-status.success { background: rgba(76, 175, 80, 0.2) !important; color: #a5ffb0 !important; border: 1px solid rgba(76, 175, 80, 0.3) !important; border-radius: 10px !important; }
body.theme-depth .cm-upload-status.error { background: rgba(255, 100, 100, 0.15) !important; color: #ffb4ab !important; border: 1px solid rgba(255, 100, 100, 0.3) !important; border-radius: 10px !important; }
body.theme-depth .cm-page-number { background: rgba(168, 130, 255, 0.2) !important; color: #c8b4ff !important; border-radius: 8px !important; font-weight: 700 !important; }
body.theme-depth .cm-split-item { border-left-color: #a882ff !important; }
/* Depth: Header selects */
body.theme-depth #cm-view-toggle,
body.theme-depth #cm-client-switcher {
  background: rgba(15, 23, 60, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
body.theme-depth #cm-view-toggle option,
body.theme-depth #cm-client-switcher option { background: #1e3c72 !important; color: #fff !important; }
/* Depth: Scrollbar */
body.theme-depth ::-webkit-scrollbar { width: 8px; }
body.theme-depth ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
body.theme-depth ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #a882ff, #7e22ce); border-radius: 10px; }
body.theme-depth ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #c8b4ff, #9b59b6); }
/* Depth: Notes panel */
body.theme-depth .cm-notes-overlay { background: rgba(10, 15, 40, 0.85) !important; backdrop-filter: blur(8px) !important; }
body.theme-depth .cm-notes-panel {
  background: rgba(15, 23, 60, 0.95) !important;
  border: 1px solid rgba(168, 130, 255, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
}
body.theme-depth .cm-notes-panel h3 { color: #c8b4ff !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; }
body.theme-depth .cm-notes-panel textarea {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
body.theme-depth .cm-notes-panel textarea:focus { border-color: rgba(168, 130, 255, 0.5) !important; box-shadow: 0 0 12px rgba(168, 130, 255, 0.2) !important; }
body.theme-depth .cm-notes-panel select {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
}


/* ========== SMART THEME — Smart Context UI ========== */
body.theme-smart {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%) !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
body.theme-smart #root, body.theme-smart #root *,
body.theme-smart input, body.theme-smart select, body.theme-smart button, body.theme-smart textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
body.theme-smart .cm-header {
  background: rgba(15, 23, 60, 0.7) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
body.theme-smart .cm-header-title {
  font-weight: 700 !important;
  color: #fff !important;
}
body.theme-smart .cm-header-tm { color: rgba(0, 230, 118, 0.5) !important; }
body.theme-smart .cm-logout-btn { color: rgba(255, 255, 255, 0.6) !important; transition: all 0.2s ease !important; }
body.theme-smart .cm-logout-btn:hover { background: rgba(0, 230, 118, 0.1) !important; color: #00e676 !important; }
body.theme-smart .cm-manual-search {
  background: rgba(15, 23, 60, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
body.theme-smart .cm-search-input {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 13px !important;
  transition: all 0.3s ease !important;
}
body.theme-smart .cm-search-input:focus {
  border-color: rgba(0, 230, 118, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2) !important;
  outline: none !important;
}
body.theme-smart .cm-search-input::placeholder { color: rgba(255, 255, 255, 0.3) !important; }
body.theme-smart .cm-search-btn {
  background: rgba(0, 230, 118, 0.2) !important;
  border: 1px solid rgba(0, 230, 118, 0.3) !important;
  color: #00e676 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
body.theme-smart .cm-search-btn:hover {
  background: rgba(0, 230, 118, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.2) !important;
  transform: translateY(-1px) !important;
}
/* Smart: Cards — glassmorphic with green priority accent */
body.theme-smart .cm-section {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px 14px 0 0 !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
  margin: 12px 8px 0 !important;
  padding: 12px !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
body.theme-smart .cm-section:first-of-type {
  border-color: rgba(0, 230, 118, 0.4) !important;
  background: rgba(0, 230, 118, 0.08) !important;
}
body.theme-smart .cm-section:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5) !important;
  transform: translateY(-2px) !important;
}
body.theme-smart .cm-section-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 4px 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
body.theme-smart .cm-section-header:hover { background: rgba(255, 255, 255, 0.04) !important; border-radius: 10px !important; }
body.theme-smart .cm-section-title {
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
body.theme-smart .cm-section-toggle {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-size: 12px !important;
  transition: all 0.3s ease !important;
}
body.theme-smart .cm-section-toggle:hover { background: rgba(255, 255, 255, 0.2) !important; }
body.theme-smart .cm-copy-btn {
  border: none !important;
  color: rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transition: all 0.2s ease !important;
}
body.theme-smart .cm-copy-btn:hover {
  background: rgba(0, 230, 118, 0.15) !important;
  color: #00e676 !important;
}
body.theme-smart .cm-toast {
  background: rgba(30, 60, 114, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #00e676 !important;
  border: 1px solid rgba(0, 230, 118, 0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}
/* Smart: React/Fluent overrides */
body.theme-smart #root,
body.theme-smart #root * { color: #fff !important; }
body.theme-smart #root div[class*="___"] { background: transparent !important; }
body.theme-smart #root .fui-FluentProvider { background: transparent !important; }
body.theme-smart #root [role="tablist"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  margin: 6px 8px !important;
  padding: 4px !important;
}
body.theme-smart #root [role="tablist"] button,
body.theme-smart #root [role="tab"] {
  color: rgba(255, 255, 255, 0.6) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  padding: 8px !important;
  transition: all 0.3s ease !important;
}
body.theme-smart #root [role="tablist"] button:hover,
body.theme-smart #root [role="tab"]:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
body.theme-smart #root [role="tablist"] button[aria-selected="true"],
body.theme-smart #root [role="tab"][aria-selected="true"] {
  color: #fff !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
body.theme-smart #root [role="tabpanel"] { background: transparent !important; }
body.theme-smart #root [role="group"] {
  background: rgba(0, 0, 0, 0.12) !important;
  border-radius: 10px !important;
}
body.theme-smart #root .fui-Card,
body.theme-smart #root [class*="Card"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left: 3px solid rgba(0, 230, 118, 0.4) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s ease !important;
}
body.theme-smart #root .fui-Card:hover,
body.theme-smart #root [class*="Card"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3) !important;
}
/* Smart: Data rows — expand + highlight on hover */
body.theme-smart .cm-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s ease !important;
  padding: 7px 0 !important;
}
body.theme-smart .cm-row:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 7px 12px !important;
  margin: 0 -6px !important;
  border-radius: 6px !important;
}
body.theme-smart .info-label,
body.theme-smart #root div[class*="___"] > span:first-child { color: rgba(255, 255, 255, 0.6) !important; font-size: 10px !important; font-weight: 500 !important; transition: color 0.2s ease !important; }
body.theme-smart .cm-row:hover .info-label { color: rgba(255, 255, 255, 0.8) !important; }
body.theme-smart .info-value,
body.theme-smart #root div[class*="___"] > span:last-child { color: #fff !important; font-size: 11px !important; font-weight: 600 !important; text-align: right !important; max-width: 60% !important; }
/* Smart: Highlight values (green for routes/important) */
body.theme-smart .info-value.highlight { color: #00e676 !important; }
body.theme-smart .info-value.warning { color: #ff9800 !important; }
/* Smart: Badges — green accent with context borders */
body.theme-smart #root .fui-Badge[class*="___"] {
  background: rgba(0, 230, 118, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 230, 118, 0.4) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 9px !important;
  transition: all 0.2s ease !important;
}
body.theme-smart #root .fui-Badge[class*="___"]:hover {
  transform: scale(1.05) !important;
  background: rgba(0, 230, 118, 0.35) !important;
}
/* Smart: Warning badges get orange border */
body.theme-smart #root .fui-Badge[class*="warning"],
body.theme-smart #root .fui-Badge[class*="Warning"] {
  background: rgba(255, 152, 0, 0.2) !important;
  color: #ffb74d !important;
  border: 1px solid rgba(255, 152, 0, 0.4) !important;
}
/* Smart: eDocs badge */
body.theme-smart #root [style*="background-color: rgb(216, 59, 1)"],
body.theme-smart #root [style*="background-color:rgb(216, 59, 1)"],
body.theme-smart #root [style*="background-color: rgb(216,59,1)"] {
  background-color: rgba(0, 230, 118, 0.2) !important;
  color: #00e676 !important;
  border-radius: 50px !important;
}
/* Smart: eDocs row background + text */
body.theme-smart #root div[style*="background-color: rgb(245, 245, 245)"] {
  background-color: rgba(255, 255, 255, 0.06) !important;
}
body.theme-smart #root div[style*="background-color: rgb(245, 245, 245)"] span {
  color: #fff !important;
}
body.theme-smart #root div[style*="background-color: rgb(245, 245, 245)"] span[style*="color: rgb(153, 153, 153)"] {
  color: rgba(255, 255, 255, 0.5) !important;
}
/* Smart: Upload section */
body.theme-smart .cm-upload-section {
  background: rgba(15, 23, 60, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
body.theme-smart .cm-add-notes-btn {
  background: rgba(0, 230, 118, 0.12) !important;
  border: 1px solid rgba(0, 230, 118, 0.25) !important;
  color: #00e676 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  transition: all 0.2s ease !important;
}
body.theme-smart .cm-add-notes-btn:hover {
  background: rgba(0, 230, 118, 0.2) !important;
  transform: translateY(-1px) !important;
}
body.theme-smart .cm-upload-list-header {
  color: rgba(255, 255, 255, 0.65) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 10px !important;
}
body.theme-smart .cm-upload-item {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid rgba(0, 230, 118, 0.3) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
}
body.theme-smart .cm-upload-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: rgba(0, 230, 118, 0.5) !important;
}
body.theme-smart .cm-upload-item-name { color: #fff !important; font-weight: 600 !important; }
body.theme-smart .cm-upload-item-meta { color: rgba(255, 255, 255, 0.4) !important; font-size: 10px !important; }
body.theme-smart .cm-upload-item-doctype,
body.theme-smart .cm-upload-item-doctype-input {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 10px !important;
}
body.theme-smart .cm-upload-item-desc {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-radius: 6px !important;
}
body.theme-smart .cm-upload-item-desc:focus {
  border-color: rgba(0, 230, 118, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15) !important;
}
body.theme-smart .cm-upload-item-desc::placeholder { color: rgba(255, 255, 255, 0.25) !important; }
body.theme-smart .cm-upload-btn {
  background: rgba(0, 230, 118, 0.2) !important;
  border: 1px solid rgba(0, 230, 118, 0.3) !important;
  color: #00e676 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}
body.theme-smart .cm-upload-btn:hover {
  background: rgba(0, 230, 118, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.2) !important;
  transform: translateY(-1px) !important;
}
body.theme-smart .cm-drop-zone {
  border: 2px dashed rgba(0, 230, 118, 0.2) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
}
body.theme-smart .cm-drop-zone:hover {
  border-color: rgba(0, 230, 118, 0.4) !important;
  background: rgba(0, 230, 118, 0.05) !important;
  color: #00e676 !important;
}
body.theme-smart .cm-doctype-dropdown {
  background: rgba(15, 23, 60, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 230, 118, 0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}
body.theme-smart .cm-doctype-option:hover,
body.theme-smart .cm-doctype-option.selected { background: rgba(0, 230, 118, 0.1) !important; border-radius: 6px !important; }
body.theme-smart .cm-doctype-option strong { color: #00e676 !important; }
body.theme-smart .cm-doctype-desc { color: rgba(255, 255, 255, 0.4) !important; }
body.theme-smart .cm-upload-job-selector select,
body.theme-smart .cm-upload-job-selector input,
body.theme-smart .cm-upload-doctype-selector select,
body.theme-smart .cm-upload-doctype-selector input {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.theme-smart .cm-upload-job-selector select option,
body.theme-smart .cm-upload-doctype-selector select option {
  background: #1e3c72 !important;
  color: #fff !important;
}
body.theme-smart .cm-upload-job-selector label,
body.theme-smart .cm-upload-doctype-selector label {
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 9px !important;
}
body.theme-smart .cm-attachments-header,
body.theme-smart .cm-dropped-files-header { color: rgba(255, 255, 255, 0.5) !important; font-weight: 500 !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; font-size: 10px !important; }
body.theme-smart .cm-rename-btn { background: rgba(255, 255, 255, 0.06) !important; border: none !important; color: rgba(255, 255, 255, 0.4) !important; border-radius: 50% !important; transition: all 0.2s ease !important; }
body.theme-smart .cm-rename-btn:hover { background: rgba(0, 230, 118, 0.15) !important; color: #00e676 !important; }
body.theme-smart .cm-pdf-split-btn { border: none !important; color: rgba(255, 255, 255, 0.4) !important; border-radius: 50% !important; background: rgba(255, 255, 255, 0.06) !important; transition: all 0.2s ease !important; }
body.theme-smart .cm-pdf-split-btn:hover { background: rgba(0, 230, 118, 0.15) !important; color: #00e676 !important; }
body.theme-smart .cm-pdf-split-panel { background: rgba(15, 23, 60, 0.95) !important; border: 1px solid rgba(0, 230, 118, 0.15) !important; border-radius: 10px !important; backdrop-filter: blur(12px) !important; }
body.theme-smart .cm-split-header { color: #00e676 !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; font-size: 10px !important; }
body.theme-smart .cm-split-option { color: rgba(255, 255, 255, 0.7) !important; }
body.theme-smart .cm-split-pages-input { background: rgba(0, 0, 0, 0.2) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #fff !important; border-radius: 6px !important; }
body.theme-smart .cm-split-pages-input:focus { border-color: rgba(0, 230, 118, 0.4) !important; box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15) !important; }
body.theme-smart .cm-merge-bar { background: rgba(15, 23, 60, 0.7) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; color: #fff !important; border-radius: 10px !important; }
body.theme-smart .cm-split-go-btn { background: rgba(0, 230, 118, 0.2) !important; border: 1px solid rgba(0, 230, 118, 0.3) !important; color: #00e676 !important; border-radius: 8px !important; font-weight: 600 !important; transition: all 0.2s ease !important; }
body.theme-smart .cm-split-go-btn:hover { box-shadow: 0 4px 16px rgba(0, 230, 118, 0.2) !important; transform: translateY(-1px) !important; }
body.theme-smart .cm-split-cancel-btn { background: rgba(255, 255, 255, 0.06) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: rgba(255, 255, 255, 0.6) !important; border-radius: 8px !important; }
body.theme-smart .cm-merge-btn { background: rgba(0, 230, 118, 0.2) !important; border: 1px solid rgba(0, 230, 118, 0.3) !important; color: #00e676 !important; border-radius: 8px !important; font-weight: 600 !important; transition: all 0.2s ease !important; }
body.theme-smart .cm-merge-btn:hover { box-shadow: 0 4px 16px rgba(0, 230, 118, 0.2) !important; transform: translateY(-1px) !important; }
body.theme-smart .cm-upload-status.success { background: rgba(0, 230, 118, 0.15) !important; color: #00e676 !important; border: 1px solid rgba(0, 230, 118, 0.3) !important; border-radius: 8px !important; }
body.theme-smart .cm-upload-status.error { background: rgba(255, 152, 0, 0.15) !important; color: #ffb74d !important; border: 1px solid rgba(255, 152, 0, 0.3) !important; border-radius: 8px !important; }
body.theme-smart .cm-page-number { background: rgba(0, 230, 118, 0.2) !important; color: #00e676 !important; border-radius: 6px !important; font-weight: 600 !important; }
body.theme-smart .cm-split-item { border-left-color: rgba(0, 230, 118, 0.4) !important; }
/* Smart: Animations */
@keyframes smart-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
@keyframes smart-shimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes smart-slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes smart-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
body.theme-smart .cm-section {
  animation: smart-fadeIn 0.3s ease-out !important;
}
body.theme-smart #root .fui-Badge[class*="___"] {
  animation: smart-pulse 2s infinite !important;
}
body.theme-smart .cm-toast {
  animation: smart-slideIn 0.4s ease-out !important;
}
/* Smart: Header selects */
body.theme-smart #cm-view-toggle,
body.theme-smart #cm-client-switcher {
  background: rgba(15, 23, 60, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.theme-smart #cm-view-toggle option,
body.theme-smart #cm-client-switcher option { background: #1e3c72 !important; color: #fff !important; }
/* Smart: Scrollbar */
body.theme-smart ::-webkit-scrollbar { width: 5px; }
body.theme-smart ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.15); border-radius: 10px; }
body.theme-smart ::-webkit-scrollbar-thumb { background: rgba(0, 230, 118, 0.3); border-radius: 10px; }
body.theme-smart ::-webkit-scrollbar-thumb:hover { background: rgba(0, 230, 118, 0.5); }
/* Smart: Notes panel */
body.theme-smart .cm-notes-overlay { background: rgba(10, 15, 40, 0.8) !important; backdrop-filter: blur(8px) !important; }
body.theme-smart .cm-notes-panel {
  background: rgba(15, 23, 60, 0.95) !important;
  border: 1px solid rgba(0, 230, 118, 0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
}
body.theme-smart .cm-notes-panel h3 { color: #00e676 !important; font-weight: 600 !important; }
body.theme-smart .cm-notes-panel textarea {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.theme-smart .cm-notes-panel textarea:focus { border-color: rgba(0, 230, 118, 0.4) !important; box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15) !important; }
body.theme-smart .cm-notes-panel select {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* ========== BENTO THEME — Bento Editorial ========== */
body.theme-bento {
  background: #f8f9ff !important;
  color: #0b1c30 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
body.theme-bento #root, body.theme-bento #root *,
body.theme-bento input, body.theme-bento select, body.theme-bento button, body.theme-bento textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
/* Bento: Manrope for headlines */
body.theme-bento .cm-header-title,
body.theme-bento .cm-section-title,
body.theme-bento .cm-upload-list-header,
body.theme-bento .cm-split-header,
body.theme-bento .cm-notes-panel h3 {
  font-family: 'Manrope', 'Inter', -apple-system, sans-serif !important;
}
body.theme-bento .cm-header {
  background: #eff4ff !important;
  border-bottom: 1px solid rgba(198, 198, 205, 0.15) !important;
  box-shadow: none !important;
}
body.theme-bento .cm-header-title {
  font-weight: 700 !important;
  color: #0b1c30 !important;
}
body.theme-bento .cm-header-tm { color: #79849a !important; }
body.theme-bento .cm-logout-btn { color: #79849a !important; transition: all 0.2s ease !important; }
body.theme-bento .cm-logout-btn:hover { background: #dce9ff !important; color: #0b1c30 !important; }
body.theme-bento .cm-manual-search {
  background: #f8f9ff !important;
  border-bottom: 1px solid rgba(198, 198, 205, 0.15) !important;
}
body.theme-bento .cm-search-input {
  background: #dce9ff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 16px !important;
  color: #0b1c30 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
}
body.theme-bento .cm-search-input:focus {
  border: 1px solid #0b1c30 !important;
  box-shadow: none !important;
  outline: none !important;
}
body.theme-bento .cm-search-input::placeholder { color: #79849a !important; }
body.theme-bento .cm-search-btn {
  background: linear-gradient(135deg, #000, #111c2d) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
body.theme-bento .cm-search-btn:hover {
  background: linear-gradient(135deg, #111c2d, #1a2a40) !important;
  box-shadow: 0 4px 16px rgba(11, 28, 48, 0.12) !important;
}
/* Bento: Cards — pure white, NO visible borders, tonal lift only */
body.theme-bento .cm-section {
  background: #ffffff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 1.5rem 1.5rem 0 0 !important;
  box-shadow: none !important;
  margin: 12px 8px 0 !important;
  padding: 12px !important;
  overflow: hidden !important;
  transition: box-shadow 0.3s ease !important;
}
body.theme-bento .cm-section:hover {
  box-shadow: 0px 10px 30px rgba(11, 28, 48, 0.06) !important;
}
body.theme-bento .cm-section-header {
  background: #eff4ff !important;
  border-bottom: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 1.5rem 1.5rem 0 0 !important;
  transition: background 0.2s ease !important;
}
body.theme-bento .cm-section-header:hover { background: #e5eeff !important; }
body.theme-bento .cm-section-title {
  color: #0b1c30 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05rem !important;
}
body.theme-bento .cm-section-toggle { color: #79849a !important; }
body.theme-bento .cm-copy-btn {
  border: none !important;
  color: #79849a !important;
  border-radius: 50% !important;
  background: #eff4ff !important;
  transition: all 0.2s ease !important;
}
body.theme-bento .cm-copy-btn:hover {
  background: #dce9ff !important;
  color: #0b1c30 !important;
}
body.theme-bento .cm-toast {
  background: #ffffff !important;
  color: #0b1c30 !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 1rem !important;
  box-shadow: 0px 10px 30px rgba(11, 28, 48, 0.08) !important;
}
/* Bento: React/Fluent overrides */
body.theme-bento #root { color: #0b1c30 !important; }
body.theme-bento #root [class*="fui-"]:not([class*="cm-"]) { color: #0b1c30 !important; }
body.theme-bento #root div[class*="___"] { background: transparent !important; }
body.theme-bento #root .fui-FluentProvider { background: transparent !important; }
body.theme-bento #root [role="tablist"] {
  background: #eff4ff !important;
  border-radius: 1rem !important;
  margin: 6px 8px !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
}
body.theme-bento #root [role="tablist"] button,
body.theme-bento #root [role="tab"] {
  color: #79849a !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  transition: all 0.2s ease !important;
}
body.theme-bento #root [role="tablist"] button[aria-selected="true"],
body.theme-bento #root [role="tab"][aria-selected="true"] {
  color: #0b1c30 !important;
  font-weight: 700 !important;
  background: #dce9ff !important;
  border: none !important;
}
body.theme-bento #root [role="tabpanel"] { background: transparent !important; }
body.theme-bento #root [role="group"] {
  background: #f8f9ff !important;
  border-radius: 1rem !important;
}
body.theme-bento #root .fui-Card,
body.theme-bento #root [class*="Card"] {
  background: #ffffff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 1.5rem !important;
  box-shadow: none !important;
  transition: box-shadow 0.3s ease !important;
}
body.theme-bento #root .fui-Card:hover,
body.theme-bento #root [class*="Card"]:hover {
  box-shadow: 0px 10px 30px rgba(11, 28, 48, 0.06) !important;
}
/* Bento: Data rows — subtle hover shift */
body.theme-bento .cm-row {
  border-bottom-color: #eff4ff !important;
  transition: background 0.2s ease !important;
}
body.theme-bento .cm-row:hover { background: #eff4ff !important; }
body.theme-bento .info-label,
body.theme-bento #root div[class*="___"] > span:first-child {
  color: #79849a !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05rem !important;
}
body.theme-bento .info-value,
body.theme-bento #root div[class*="___"] > span:last-child { color: #0b1c30 !important; font-size: 11px !important; font-weight: 600 !important; }
/* Bento: Badges — pill-shaped, green/red tonal */
body.theme-bento #root .fui-Badge[class*="___"] {
  background: #6ffbbe !important;
  color: #005236 !important;
  border: none !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
}
/* Bento: Error/warning badges */
body.theme-bento #root .fui-Badge[class*="danger"],
body.theme-bento #root .fui-Badge[class*="Danger"],
body.theme-bento #root .fui-Badge[class*="warning"],
body.theme-bento #root .fui-Badge[class*="Warning"] {
  background: #ffdad6 !important;
  color: #93000a !important;
}
/* Bento: eDocs badge */
body.theme-bento #root [style*="background-color: rgb(216, 59, 1)"],
body.theme-bento #root [style*="background-color:rgb(216, 59, 1)"],
body.theme-bento #root [style*="background-color: rgb(216,59,1)"] {
  background-color: #6ffbbe !important;
  color: #005236 !important;
  border-radius: 9999px !important;
}
/* Bento: Upload section */
body.theme-bento .cm-upload-section {
  background: #f8f9ff !important;
  border-bottom: 1px solid rgba(198, 198, 205, 0.15) !important;
}
body.theme-bento .cm-add-notes-btn {
  background: #dce9ff !important;
  border: none !important;
  color: #0b1c30 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
body.theme-bento .cm-add-notes-btn:hover {
  background: #c8daff !important;
}
body.theme-bento .cm-upload-list-header {
  color: #0b1c30 !important;
  border-bottom-color: rgba(198, 198, 205, 0.15) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05rem !important;
  font-size: 9px !important;
}
body.theme-bento .cm-upload-item {
  background: #ffffff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 1rem !important;
  transition: box-shadow 0.3s ease !important;
}
body.theme-bento .cm-upload-item:hover {
  box-shadow: 0 6px 20px rgba(11, 28, 48, 0.06) !important;
}
body.theme-bento .cm-upload-item-name { color: #0b1c30 !important; font-weight: 600 !important; }
body.theme-bento .cm-upload-item-meta { color: #79849a !important; font-size: 10px !important; }
body.theme-bento .cm-upload-item-doctype,
body.theme-bento .cm-upload-item-doctype-input {
  background: #e5eeff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  color: #0b1c30 !important;
  border-radius: 8px !important;
}
body.theme-bento .cm-upload-item-desc {
  background: #e5eeff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  color: #0b1c30 !important;
  border-radius: 8px !important;
}
body.theme-bento .cm-upload-item-desc:focus {
  border: 1px solid #0b1c30 !important;
  box-shadow: none !important;
}
body.theme-bento .cm-upload-item-desc::placeholder { color: #79849a !important; }
body.theme-bento .cm-upload-btn {
  background: linear-gradient(135deg, #000, #111c2d) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}
body.theme-bento .cm-upload-btn:hover {
  background: linear-gradient(135deg, #111c2d, #1a2a40) !important;
  box-shadow: 0 4px 16px rgba(11, 28, 48, 0.12) !important;
}
body.theme-bento .cm-drop-zone {
  border: 2px dashed rgba(198, 198, 205, 0.4) !important;
  border-radius: 1rem !important;
  color: #79849a !important;
  background: #e5eeff !important;
  transition: all 0.2s ease !important;
}
body.theme-bento .cm-drop-zone:hover {
  border-color: #0b1c30 !important;
  background: #dce9ff !important;
  color: #0b1c30 !important;
}
body.theme-bento .cm-doctype-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 1rem !important;
  box-shadow: 0px 10px 30px rgba(11, 28, 48, 0.1) !important;
}
body.theme-bento .cm-doctype-option:hover,
body.theme-bento .cm-doctype-option.selected { background: #eff4ff !important; border-radius: 12px !important; }
body.theme-bento .cm-doctype-option strong { color: #0b1c30 !important; }
body.theme-bento .cm-doctype-desc { color: #79849a !important; }
body.theme-bento .cm-upload-job-selector select,
body.theme-bento .cm-upload-job-selector input,
body.theme-bento .cm-upload-doctype-selector select,
body.theme-bento .cm-upload-doctype-selector input {
  background: #dce9ff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  color: #0b1c30 !important;
  border-radius: 8px !important;
}
body.theme-bento .cm-upload-job-selector select option,
body.theme-bento .cm-upload-doctype-selector select option {
  background: #ffffff !important;
  color: #0b1c30 !important;
}
body.theme-bento .cm-upload-job-selector label,
body.theme-bento .cm-upload-doctype-selector label {
  color: #79849a !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05rem !important;
  font-size: 9px !important;
}
body.theme-bento .cm-attachments-header,
body.theme-bento .cm-dropped-files-header { color: #79849a !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.05rem !important; font-size: 9px !important; }
body.theme-bento .cm-rename-btn { background: #eff4ff !important; border: none !important; color: #79849a !important; border-radius: 50% !important; transition: all 0.2s ease !important; }
body.theme-bento .cm-rename-btn:hover { background: #dce9ff !important; color: #0b1c30 !important; }
body.theme-bento .cm-pdf-split-btn { border: none !important; color: #79849a !important; border-radius: 50% !important; background: #eff4ff !important; transition: all 0.2s ease !important; }
body.theme-bento .cm-pdf-split-btn:hover { background: #dce9ff !important; color: #0b1c30 !important; }
body.theme-bento .cm-pdf-split-panel { background: #ffffff !important; border: 1px solid rgba(198, 198, 205, 0.15) !important; border-radius: 1rem !important; box-shadow: 0px 10px 30px rgba(11, 28, 48, 0.08) !important; }
body.theme-bento .cm-split-header { color: #0b1c30 !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.05rem !important; font-size: 9px !important; }
body.theme-bento .cm-split-option { color: #0b1c30 !important; }
body.theme-bento .cm-split-pages-input { background: #dce9ff !important; border: 1px solid rgba(198, 198, 205, 0.15) !important; color: #0b1c30 !important; border-radius: 8px !important; }
body.theme-bento .cm-split-pages-input:focus { border: 1px solid #0b1c30 !important; box-shadow: none !important; }
body.theme-bento .cm-merge-bar { background: #eff4ff !important; border: 1px solid rgba(198, 198, 205, 0.15) !important; color: #0b1c30 !important; border-radius: 1rem !important; }
body.theme-bento .cm-split-go-btn { background: linear-gradient(135deg, #000, #111c2d) !important; border: none !important; color: #fff !important; border-radius: 12px !important; font-weight: 700 !important; transition: all 0.2s ease !important; }
body.theme-bento .cm-split-go-btn:hover { background: linear-gradient(135deg, #111c2d, #1a2a40) !important; box-shadow: 0 4px 16px rgba(11, 28, 48, 0.12) !important; }
body.theme-bento .cm-split-cancel-btn { background: #eff4ff !important; border: none !important; color: #79849a !important; border-radius: 12px !important; }
body.theme-bento .cm-merge-btn { background: linear-gradient(135deg, #000, #111c2d) !important; border: none !important; color: #fff !important; border-radius: 12px !important; font-weight: 700 !important; transition: all 0.2s ease !important; }
body.theme-bento .cm-merge-btn:hover { background: linear-gradient(135deg, #111c2d, #1a2a40) !important; box-shadow: 0 4px 16px rgba(11, 28, 48, 0.12) !important; }
body.theme-bento .cm-upload-status.success { background: #e3fce9 !important; color: #005236 !important; border: none !important; border-radius: 9999px !important; }
body.theme-bento .cm-upload-status.error { background: #ffdad6 !important; color: #93000a !important; border: none !important; border-radius: 9999px !important; }
body.theme-bento .cm-page-number { background: #e5eeff !important; color: #0b1c30 !important; border-radius: 8px !important; font-weight: 700 !important; }
body.theme-bento .cm-split-item { border-left-color: #0b1c30 !important; }
/* Bento: Header selects */
body.theme-bento #cm-view-toggle,
body.theme-bento #cm-client-switcher {
  background: #dce9ff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  color: #0b1c30 !important;
  border-radius: 12px !important;
}
body.theme-bento #cm-view-toggle option,
body.theme-bento #cm-client-switcher option { background: #ffffff !important; color: #0b1c30 !important; }
/* Bento: Scrollbar — light theme */
body.theme-bento ::-webkit-scrollbar { width: 5px; }
body.theme-bento ::-webkit-scrollbar-track { background: #eff4ff; border-radius: 10px; }
body.theme-bento ::-webkit-scrollbar-thumb { background: #bcc7de; border-radius: 10px; }
body.theme-bento ::-webkit-scrollbar-thumb:hover { background: #a0afc8; }
/* Bento: Notes panel */
body.theme-bento .cm-notes-overlay { background: rgba(248, 249, 255, 0.8) !important; backdrop-filter: blur(8px) !important; }
body.theme-bento .cm-notes-panel {
  background: #ffffff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0px 16px 48px rgba(11, 28, 48, 0.1) !important;
}
body.theme-bento .cm-notes-panel h3 { color: #0b1c30 !important; font-weight: 700 !important; }
body.theme-bento .cm-notes-panel textarea {
  background: #eff4ff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  color: #0b1c30 !important;
  border-radius: 12px !important;
}
body.theme-bento .cm-notes-panel textarea:focus { border: 1px solid #0b1c30 !important; box-shadow: none !important; }
body.theme-bento .cm-notes-panel select {
  background: #dce9ff !important;
  border: 1px solid rgba(198, 198, 205, 0.15) !important;
  color: #0b1c30 !important;
  border-radius: 12px !important;
}

/* ========== THEME INDICATOR BADGE ========== */
.cm-theme-badge {
  position: absolute;
  left: 40px;
  bottom: 2px;
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* ================================================================
   THEME: 3D Glass — immersive glassmorphism with animated effects
   ================================================================ */

/* Floating background shapes container */
.cm-3d-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cm-3d-shape {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  animation: cm3dFloat 20s infinite ease-in-out;
}
.cm-3d-shape:nth-child(1) {
  width: 80px; height: 80px;
  top: 10%; left: 10%;
  animation-delay: 0s;
}
.cm-3d-shape:nth-child(2) {
  width: 60px; height: 60px;
  top: 60%; right: 10%; left: auto;
  animation-delay: 5s;
}
.cm-3d-shape:nth-child(3) {
  width: 100px; height: 100px;
  bottom: 10%; left: 20%; top: auto;
  animation-delay: 10s;
}
@keyframes cm3dFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

/* Body */
body.theme-3d {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%) !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
body.theme-3d #root, body.theme-3d #root *,
body.theme-3d input, body.theme-3d select, body.theme-3d button, body.theme-3d textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Header — frosted with stronger blur and glow */
body.theme-3d .cm-header {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.05) !important;
  position: relative !important;
  z-index: 10 !important;
}
body.theme-3d .cm-header-title {
  font-weight: 700 !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
body.theme-3d .cm-header-tm { color: rgba(255,255,255,0.6) !important; }
body.theme-3d .cm-logout-btn { color: rgba(255,255,255,0.8) !important; }
body.theme-3d .cm-logout-btn:hover { background: rgba(255,255,255,0.2) !important; color: #fff !important; }

/* Search — translucent */
body.theme-3d .cm-manual-search {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 8px 10px !important;
  position: relative !important;
  z-index: 5 !important;
}
body.theme-3d .cm-search-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 13px !important;
}
body.theme-3d .cm-search-input:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15) !important;
}
body.theme-3d .cm-search-input::placeholder { color: rgba(255,255,255,0.5) !important; }
body.theme-3d .cm-search-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
body.theme-3d .cm-search-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
  transform: translateY(-1px) !important;
}

/* Scrollbar */
body.theme-3d ::-webkit-scrollbar { width: 8px; }
body.theme-3d ::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); }
body.theme-3d ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.2) 100%); border-radius: 4px; }
body.theme-3d ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 100%); }

/* Super-admin dropdowns */
body.theme-3d #cm-view-toggle,
body.theme-3d #cm-client-switcher {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.9) !important;
  border-radius: 8px !important;
}
body.theme-3d #cm-view-toggle option,
body.theme-3d #cm-client-switcher option { background: #2a3f6e !important; color: #fff !important; }

/* Sections — 3D glass cards with shimmer sweep */
body.theme-3d .cm-section {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset !important;
  margin: 12px 6px 0 !important;
  padding: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
/* Shimmer sweep on hover */
body.theme-3d .cm-section::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent) !important;
  transition: left 0.7s !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
body.theme-3d .cm-section:hover::before {
  left: 100% !important;
}
body.theme-3d .cm-section:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.2) inset !important;
  transform: translateY(-2px) !important;
}

/* Section header */
body.theme-3d .cm-section-header {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px 20px 0 0 !important;
  transition: background 0.3s ease !important;
}
body.theme-3d .cm-section-header:hover { background: rgba(255, 255, 255, 0.12) !important; }
body.theme-3d .cm-section-title {
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
body.theme-3d .cm-section-toggle { color: rgba(255,255,255,0.6) !important; }

/* Section body */
body.theme-3d .cm-section-body {
  background: rgba(255, 255, 255, 0.04) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: none !important;
  margin: 0 8px !important;
  padding: 2px 8px !important;
}
body.theme-3d .cm-section-body.cm-section-last {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 0 20px 20px !important;
  padding-bottom: 8px !important;
}

/* Copy button */
body.theme-3d .cm-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
body.theme-3d .cm-copy-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1) !important;
}

/* Toast */
body.theme-3d .cm-toast {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

/* React/Fluent overrides */
body.theme-3d #root,
body.theme-3d #root * { color: #fff !important; }
body.theme-3d #root div[class*="___"] { background: transparent !important; }
body.theme-3d #root .fui-FluentProvider { background: transparent !important; }
body.theme-3d #root [role="tablist"] {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}
body.theme-3d #root [role="tab"] {
  color: rgba(255,255,255,0.7) !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}
body.theme-3d #root [role="tab"][aria-selected="true"] {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}
body.theme-3d #root [role="tab"]:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Info row hover — subtle depth shift */
body.theme-3d #root div[style*="display: flex"][style*="justify-content"] {
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
  padding: 2px 4px !important;
}
body.theme-3d #root div[style*="display: flex"][style*="justify-content"]:hover {
  background: rgba(255,255,255,0.06) !important;
  transform: translateX(3px) !important;
}

/* Status badges — glowing */
body.theme-3d .cm-status-badge,
body.theme-3d [style*="background-color: rgb(76, 175, 80)"],
body.theme-3d [style*="background-color: rgb(56, 142, 60)"] {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
body.theme-3d [style*="background-color: rgb(255, 152, 0)"],
body.theme-3d [style*="background-color: rgb(245, 124, 0)"] {
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

/* Order/Booking tab overrides */
body.theme-3d .cm-section[style*="border-bottom"] { border-bottom-color: rgba(255, 255, 255, 0.1) !important; }
body.theme-3d #root span[style*="color: rgb(102, 102, 102)"] { color: rgba(255, 255, 255, 0.6) !important; }
body.theme-3d .cm-booking-copy,
body.theme-3d .cm-edoc-copy {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 10px !important;
}
body.theme-3d .cm-booking-copy:hover,
body.theme-3d .cm-edoc-copy:hover {
  background: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}

/* 3D: eDocs badge — green glow */
body.theme-3d #root [style*="background-color: rgb(216, 59, 1)"],
body.theme-3d #root [style*="background-color:rgb(216, 59, 1)"],
body.theme-3d #root [style*="background-color: rgb(216,59,1)"] {
  background-color: rgba(76, 175, 80, 0.3) !important;
  color: #a5ffb0 !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}
/* 3D: eDocs row background + text */
body.theme-3d #root div[style*="background-color: rgb(245, 245, 245)"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
}
body.theme-3d #root div[style*="background-color: rgb(245, 245, 245)"] span {
  color: #fff !important;
}
body.theme-3d #root div[style*="background-color: rgb(245, 245, 245)"] span[style*="color: rgb(153, 153, 153)"] {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Attachment / eDocs items */
body.theme-3d .cm-edoc-item,
body.theme-3d .cm-attach-item {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
}
body.theme-3d .cm-edoc-item:hover,
body.theme-3d .cm-attach-item:hover {
  background: rgba(255,255,255,0.12) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

/* Upload / split / merge controls */
body.theme-3d .cm-split-option { color: rgba(255,255,255,0.9) !important; }
body.theme-3d .cm-split-pages-input { background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.2) !important; color: #fff !important; border-radius: 8px !important; }
body.theme-3d .cm-merge-bar { background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.15) !important; color: #fff !important; border-radius: 12px !important; }
body.theme-3d .cm-split-go-btn { background: rgba(255,255,255,0.2) !important; border: 1px solid rgba(255,255,255,0.3) !important; color: #fff !important; border-radius: 12px !important; }
body.theme-3d .cm-split-go-btn:hover { background: rgba(255,255,255,0.3) !important; }
body.theme-3d .cm-split-cancel-btn { background: rgba(255,255,255,0.08) !important; border: 1px solid rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.8) !important; border-radius: 12px !important; }
body.theme-3d .cm-merge-btn { background: rgba(255,255,255,0.2) !important; border: 1px solid rgba(255,255,255,0.3) !important; color: #fff !important; border-radius: 12px !important; }
body.theme-3d .cm-merge-btn:hover { background: rgba(255,255,255,0.3) !important; }
body.theme-3d .cm-upload-status.success { background: rgba(76,175,80,0.2) !important; color: #a5d6a7 !important; border: 1px solid rgba(76,175,80,0.3) !important; border-radius: 12px !important; }
body.theme-3d .cm-upload-status.error { background: rgba(244,67,54,0.2) !important; color: #ef9a9a !important; border: 1px solid rgba(244,67,54,0.3) !important; border-radius: 12px !important; }
body.theme-3d .cm-page-number { background: rgba(255,255,255,0.15) !important; color: #fff !important; border-radius: 8px !important; font-weight: 700 !important; }
body.theme-3d .cm-split-item { border-left-color: rgba(255,255,255,0.4) !important; }

/* Notes panel */
body.theme-3d .cm-notes-panel {
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 16px !important;
}
body.theme-3d .cm-notes-panel h3 { color: #fff !important; }
body.theme-3d .cm-notes-panel textarea {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
body.theme-3d .cm-notes-panel textarea:focus { border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 0 12px rgba(255,255,255,0.1) !important; }
body.theme-3d .cm-notes-panel select {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* 3D Glass: Upload Section */
body.theme-3d .cm-upload-section {
  background: rgba(255,255,255,0.06) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
body.theme-3d .cm-upload-btn {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease !important;
}
body.theme-3d .cm-upload-btn:hover {
  background: rgba(255,255,255,0.25) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important;
  transform: translateY(-2px) !important;
}
body.theme-3d .cm-upload-item {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease !important;
}
body.theme-3d .cm-upload-item:hover {
  background: rgba(255,255,255,0.12) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important;
  transform: translateY(-1px) !important;
}
body.theme-3d .cm-upload-item-name { color: #fff !important; font-weight: 600 !important; }
body.theme-3d .cm-upload-item-meta { color: rgba(255,255,255,0.5) !important; font-size: 10px !important; }
body.theme-3d .cm-upload-item-desc {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.theme-3d .cm-upload-item-desc:focus {
  border-color: rgba(255,255,255,0.4) !important;
  box-shadow: 0 0 12px rgba(255,255,255,0.1) !important;
}
body.theme-3d .cm-upload-item-desc::placeholder { color: rgba(255,255,255,0.35) !important; }
body.theme-3d .cm-upload-item-doctype,
body.theme-3d .cm-upload-item-doctype-input {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
body.theme-3d .cm-upload-doctype-selector select,
body.theme-3d .cm-upload-doctype-selector input {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
body.theme-3d .cm-upload-doctype-selector select option {
  background: #2a3f6e !important;
  color: #fff !important;
}
body.theme-3d .cm-upload-doctype-selector label {
  color: rgba(255,255,255,0.5) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 10px !important;
}
body.theme-3d .cm-upload-job-selector select,
body.theme-3d .cm-upload-job-selector input {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
body.theme-3d .cm-upload-job-selector select option {
  background: #2a3f6e !important;
  color: #fff !important;
}
body.theme-3d .cm-upload-job-selector label {
  color: rgba(255,255,255,0.5) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 10px !important;
}
body.theme-3d .cm-upload-list-header {
  color: rgba(255,255,255,0.7) !important;
  border-bottom-color: rgba(255,255,255,0.1) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 12px !important;
}
body.theme-3d .cm-drop-zone {
  border: 2px dashed rgba(255,255,255,0.2) !important;
  border-radius: 12px !important;
  color: rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.04) !important;
  transition: all 0.3s ease !important;
}
body.theme-3d .cm-drop-zone:hover {
  border-color: rgba(255,255,255,0.4) !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.7) !important;
}
body.theme-3d .cm-dropped-files-header { color: rgba(255,255,255,0.7) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 11px !important; }

/* 3D Glass: PDF Processing */
body.theme-3d .cm-pdf-split-btn { border: none !important; color: rgba(255,255,255,0.5) !important; border-radius: 50% !important; background: rgba(255,255,255,0.08) !important; transition: all 0.3s ease !important; }
body.theme-3d .cm-pdf-split-btn:hover { background: rgba(255,255,255,0.2) !important; color: #fff !important; transform: scale(1.1) !important; }
body.theme-3d .cm-pdf-split-panel {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
body.theme-3d .cm-split-header { color: #fff !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 11px !important; }
body.theme-3d .cm-rename-btn { background: rgba(255,255,255,0.08) !important; border: none !important; color: rgba(255,255,255,0.5) !important; border-radius: 50% !important; transition: all 0.3s ease !important; }
body.theme-3d .cm-rename-btn:hover { background: rgba(255,255,255,0.2) !important; color: #fff !important; transform: scale(1.1) !important; }
body.theme-3d .cm-doctype-dropdown {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
body.theme-3d .cm-doctype-option:hover,
body.theme-3d .cm-doctype-option.selected { background: rgba(255,255,255,0.15) !important; border-radius: 8px !important; }
body.theme-3d .cm-doctype-option strong { color: #fff !important; }
body.theme-3d .cm-doctype-desc { color: rgba(255,255,255,0.5) !important; }

/* 3D Glass: Notes & Misc */
body.theme-3d .cm-notes-overlay { background: rgba(0,0,0,0.5) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; }
body.theme-3d .cm-add-notes-btn {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}
body.theme-3d .cm-add-notes-btn:hover {
  background: rgba(255,255,255,0.2) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  transform: translateY(-1px) !important;
}
body.theme-3d .cm-attachments-header { color: rgba(255,255,255,0.7) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 11px !important; }
body.theme-3d .cm-collapse-btn { transition: all 0.3s ease !important; }
body.theme-3d .cm-collapse-btn:hover { transform: scale(1.15) !important; color: rgba(255,255,255,0.9) !important; }
body.theme-3d .cm-row {
  background: rgba(255,255,255,0.05) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  margin: 3px 4px !important;
  padding: 6px 8px !important;
  transition: all 0.3s ease !important;
}
body.theme-3d .cm-row:hover {
  background: rgba(255,255,255,0.1) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  transform: translateX(3px) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
