/* ==================================
   Boldmen Terminal Table Styles v15.3
   - Use SVG Icon for Link Indicator
   ================================== */

/* ----------
 * Color Variables & Base Font (Wrapper)
 * ---------- */
.bmt-wrapper {
  /* ... (Keep all color variables) ... */
  --bg: #0b0b0f; --panel: #111114; --row-alt: #141416; --row-hover: #333333;
  --stroke-faint: #2c2c2e; --stroke-header: #3a3a3c;
  --positive: #3e8b66; --negative: #eb4d5c; --negative-bg: rgba(235, 77, 92, 0.15);
  --table-text-primary: #3e8b66; --table-text-secondary: #8e8e93;
  --popup-text-primary: #e1e3e6; --popup-text-secondary: #9ea3ae;
  --popup-accent: #4c9aff; --popup-border: #2a2d33;
  --button-hover-bg: var(--negative);

  background-color: var(--bg);
  color: var(--popup-text-primary); /* Default for popup */
  font-family: 'Oxygen Mono', monospace; /* Base font for table */
  font-size: 12px; font-weight: 400; line-height: 1.5;
  border: 0 solid #e5e7eb;
}

/* ----------
 * Table Styles (Unchanged)
 * ---------- */
.bmt-table-container { overflow-x: auto; max-height: 100vh; overflow-y: auto; border: 1px solid var(--stroke-header); border-radius: 8px; margin-bottom: 20px; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.bmt-table { width: 100%; min-width: 800px; border-collapse: collapse; border-spacing: 0; font-variant-numeric: tabular-nums; border: none; }
.bmt-table, .bmt-table th, .bmt-table td { border-style: solid; border-width: 0; border-color: var(--stroke-faint); }
.bmt-table thead { position: sticky; top: 0; z-index: 9; } /* Make thead sticky */
.bmt-table th { position: sticky; top: 0; z-index: 10; background: var(--bg); text-align: right; font-weight: 800; text-transform: uppercase; font-size: 11px; color: var(--table-text-secondary); padding: 8px 10px; border-bottom: 1px solid var(--stroke-header); white-space: nowrap; cursor: col-resize; border-right: 1px solid var(--stroke-faint); font-family: 'Noto Sans', 'Oxygen Mono', monospace, sans-serif; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3); }
.bmt-table th:last-child { border-right: none; }
.bmt-table th.col-vendor, .bmt-table th.col-location, .bmt-table th.col-estate { text-align: left; }
.bmt-table td { padding: 6px 10px; white-space: nowrap; vertical-align: middle; text-align: right; color: var(--table-text-primary); height: 30px; border-bottom: 1px solid var(--stroke-faint); border-right: 1px solid var(--stroke-faint); font-family: 'Noto Sans', 'Oxygen Mono', monospace, sans-serif; font-weight: 700; }
.bmt-table td:last-child { border-right: none; }
.bmt-table tbody tr:last-child td { border-bottom: none; }
.bmt-table tbody tr { background-color: #000000; }
.bmt-table tbody tr:nth-child(even) { background-color: #222222; }
.bmt-table tbody tr:hover { background-color: var(--row-hover); }
.bmt-table tr.negative td.col-old, .bmt-table tr.negative td.col-new, .bmt-table tr.negative td.col-chg, .bmt-table tr.negative td.col-area, .bmt-table tr.negative td.col-txns { background-color: var(--negative-bg); color: var(--negative); }
.bmt-table tr.negative:hover td.col-old, .bmt-table tr.negative:hover td.col-new, .bmt-table tr.negative:hover td.col-chg, .bmt-table tr.negative:hover td.col-area, .bmt-table tr.negative:hover td.col-txns { background-color: var(--row-hover); color: var(--negative); }
.bmt-table td.col-vendor, .bmt-table td.col-location, .bmt-table td.col-estate { text-align: left; }
.bmt-table tr.negative td.col-vendor, .bmt-table tr.negative td.col-location, .bmt-table tr.negative td.col-estate { color: var(--table-text-primary); }
.naira-symbol { font-family: 'Noto Sans', sans-serif; margin-right: 2px; }

/* Clickable cells - Base Style */
.bmt-cell-clickable {
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.bmt-cell-clickable:hover { color: #ffffff; }

/* --- FIX: Ensure Vendor/Estate hover works even on negative rows --- */
.bmt-table tr.negative td.col-vendor.bmt-cell-clickable:hover,
.bmt-table tr.negative td.col-estate.bmt-cell-clickable:hover {
    color: #ffffff !important;
}

/* --- Remove Arrow Span Styling --- */
/* Ensure this rule is deleted or commented out */
/*
.bmt-link-arrow { ... }
.bmt-cell-clickable:hover .bmt-link-arrow { ... }
*/

/* --- ADD Styling for the SVG Arrow --- */
.bmt-link-arrow-svg {
  display: inline-block; /* Allows margin and vertical alignment */
  width: 1em;   /* Scale with font size */
  height: 1em;
  margin-left: 4px; /* Space after text */
  vertical-align: -0.125em; /* Adjust vertical alignment slightly */
  opacity: 0.7;
  transition: opacity 0.2s;
  fill: currentColor; /* Inherit color (green, red, white on hover) */
}
.bmt-cell-clickable:hover .bmt-link-arrow-svg {
    opacity: 1; /* Full opacity on hover */
}
/* --- END SVG Arrow Styling --- */

/* ... Keep .chg-pill styles ... */
.bmt-table .chg-pill { display: inline-block; padding: 3px 6px; border-radius: 3px; font-weight: 700; letter-spacing: normal; font-size: 12px; min-width: 60px; text-align: center; color: #fff; border: 1px solid transparent; }
.bmt-table tr.positive .chg-pill { background-color: transparent; color: var(--positive); border-color: var(--positive); }
.bmt-table tr.negative .chg-pill { background-color: transparent; color: var(--negative); border-color: var(--negative); }
.bmt-table tr.neutral .chg-pill { background-color: transparent; color: var(--table-text-secondary); border-color: var(--stroke-faint); }

/* ==================================
   Popup Window Styles (Unchanged)
   ================================== */
/* ... (Keep ALL popup window styles: .bmt-popup-overlay -> button svg exactly as in v11/v12) ... */
.bmt-popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.6); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.bmt-popup-window { width: 40%; max-width: 950px; min-width: 450px; height: 80vh; max-height: 100vh; min-height: 350px; background-color: var(--bg); border: 1px solid var(--stroke-header); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; }
.bmt-popup-window.fullscreen { width: 98% !important; height: 100% !important; top: 0 !important; left: 0 !important; max-width: none; max-height: none; border-radius: 0; transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease; }
.bmt-popup-header { display: flex; align-items: stretch; background-color: var(--panel); border-bottom: 1px solid var(--stroke-header); flex-shrink: 0; height: 44px; padding: 0; }
.bmt-popup-title-bar { flex-grow: 1; display: flex; align-items: center; padding: 0 16px; cursor: move; }
.bmt-popup-title { font-size: 15px; font-weight: 600; color: var(--popup-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: none; margin-left: 0; padding: 0; }
.bmt-popup-controls { display: flex; align-items: center; padding: 0 8px; }
.bmt-popup-controls button { background: none; border: none; color: var(--popup-text-secondary); padding: 8px; cursor: pointer; line-height: 1; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: background-color 0.2s, color 0.2s; }
.bmt-popup-controls button:hover { background-color: rgba(255, 255, 255, 0.1); color: var(--popup-text-primary); }
.bmt-popup-controls button svg { width: 18px; height: 18px; }

/* ==================================
   Popup Content Design (Unchanged v11)
   ================================== */
/* ... (Keep ALL Premium Popup Content styles + Always Visible Slider Controls + Button Styles exactly as in v11) ... */
.bmt-popup-content-wrapper { flex-grow: 1; overflow-y: auto; padding: 32px 40px 40px; background-color: #0e1013; border-top: 1px solid var(--stroke-header); scrollbar-width: thin; scrollbar-color: var(--stroke-header) var(--panel); }
.bmt-popup-content-wrapper::-webkit-scrollbar { width: 8px; } .bmt-popup-content-wrapper::-webkit-scrollbar-track { background: var(--panel); } .bmt-popup-content-wrapper::-webkit-scrollbar-thumb { background-color: var(--stroke-header); border-radius: 4px; border: 2px solid var(--panel); }
.bmt-popup-content { max-width: none; margin: 0 auto; color: var(--popup-text-primary); line-height: 1.7; font-size: 14.5px; }
.bmt-popup-content h3 { color: var(--popup-text-secondary); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-top: 48px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--popup-border); position: relative; }
.bmt-popup-content h3:first-child { margin-top: 0; }
.bmt-popup-content h3::before { content: ''; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background-color: var(--popup-accent); box-shadow: 0 0 8px var(--popup-accent); }
.bmt-info-list { list-style: none; padding: 0; margin: 0 0 40px 0; border: none; border-radius: 0; overflow: visible; }
.bmt-info-list li { padding: 14px 0; border-bottom: 1px solid var(--popup-border); display: flex; justify-content: space-between; align-items: baseline; gap: 24px; color: var(--popup-text-primary); font-size: 15px; background: none; border-radius: 0; }
.bmt-info-list li:last-child { border-bottom: none; }
.bmt-info-list li strong { color: var(--popup-text-secondary); font-weight: 400; text-transform: none; font-size: 14px; flex-shrink: 0; white-space: nowrap; }
.bmt-info-list li span { text-align: right; font-weight: 500; word-break: break-word; }
.bmt-info-list li a { color: var(--popup-accent); text-decoration: none; transition: color 0.2s; }
.bmt-info-list li a:hover { color: #8ecfff; text-decoration: underline; }
.bmt-slider-wrapper { width: 100%; aspect-ratio: 16 / 9; margin: 0 auto 40px; position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--popup-border); background: #000; box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
.bmt-slider { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.bmt-slide { min-width: 100%; height: 100%; position: relative; }
.bmt-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bmt-slider-controls { position: absolute; top: 50%; left: 15px; right: 15px; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; z-index: 10; opacity: 1; }
.bmt-slider-prev, .bmt-slider-next { background-color: rgba(10, 10, 10, 0.65); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: var(--popup-text-primary); }
.bmt-slider-prev:hover, .bmt-slider-next:hover { background-color: rgba(30, 30, 30, 0.85); border-color: rgba(255, 255, 255, 0.3); }
.bmt-slider-prev:active, .bmt-slider-next:active { transform: scale(0.92); background-color: rgba(0, 0, 0, 0.7); }
.bmt-slider-prev::before, .bmt-slider-next::before { content: ''; display: block; width: 10px; height: 10px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.bmt-slider-prev::before { transform: translateX(2px) rotate(-45deg); }
.bmt-slider-next::before { transform: translateX(-2px) rotate(135deg); }
.bmt-slider-nav { display: none; }
.bmt-bid-contact { margin: 48px 0; padding: 24px 32px; text-align: center; background: linear-gradient(rgba(255,255,255,0.03), rgba(255,255,255,0.0)); border-radius: 8px; border: 1px solid var(--popup-border); border-top: 1px solid var(--stroke-header); }
.bmt-bid-contact p { margin: 0 0 16px; font-size: 13px; font-weight: 400; color: var(--popup-text-secondary); text-transform: uppercase; letter-spacing: 0.6px; }
.bmt-place-bid-btn { display: inline-block; background: var(--positive); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 32px; border: none; border-radius: 6px; transition: all 0.2s ease; box-shadow: 0 3px 6px rgba(0,0,0,0.2); text-transform: uppercase; letter-spacing: 0.5px; }
.bmt-place-bid-btn:hover { background: var(--button-hover-bg); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); }
.bmt-place-bid-btn:active { transform: translateY(0px); box-shadow: 0 2px 4px rgba(0,0,0,0.2); background: #c0392b; }
.bmt-payment-note { margin: 40px auto 16px; max-width: 90%; padding: 16px 24px; background: var(--panel); border: 1px solid var(--negative); color: var(--popup-text-secondary); font-weight: 400; text-align: center; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.bmt-payment-note strong { font-weight: 600; color: var(--negative); }
.bmt-loader { border: 4px solid var(--stroke-header); border-top: 4px solid var(--popup-text-secondary); border-radius: 50%; width: 40px; height: 40px; animation: bmt-spin 1s linear infinite; margin: 60px auto; }
@keyframes bmt-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.ui-resizable-handle { background: var(--stroke-header); border: 1px solid var(--stroke-faint); opacity: 0.5; }
.ui-resizable-se { width: 12px; height: 12px; right: 1px; bottom: 1px; cursor: nwse-resize; }


/* ==================================
   Mobile Adjustments for Popup (Unchanged)
   ================================== */
@media (max-width: 768px) { .bmt-popup-overlay { padding: 10px; align-items: center; justify-content: center; } .bmt-popup-window { width: 95%; max-width: 95%; min-width: 280px; height: 85vh; max-height: 85vh; min-height: 250px; } .bmt-popup-content-wrapper { padding: 20px 25px 25px; } .bmt-info-list li { grid-template-columns: 120px 1fr; gap: 12px; } .bmt-popup-content h3 { margin-top: 30px; margin-bottom: 12px; padding-bottom: 6px; font-size: 12px; } .bmt-popup-content h3::before { width: 30px; } .bmt-bid-contact { margin: 30px 0; padding: 20px; } .bmt-place-bid-btn { padding: 12px 28px; font-size: 13px; } .bmt-payment-note { margin: 30px auto 10px; padding: 12px 15px; font-size: 12px; } .bmt-slider-prev, .bmt-slider-next { width: 36px; height: 36px; } .bmt-slider-prev::before, .bmt-slider-next::before { width: 8px; height: 8px; } .bmt-slider-controls { left: 10px; right: 10px; } }
@media (max-width: 480px) { .bmt-popup-overlay { padding: 5px; } .bmt-popup-window { width: 98%; max-width: 98%; height: 70vh; max-height: 90vh; } .bmt-popup-content-wrapper { padding: 15px; } .bmt-info-list li { grid-template-columns: 100px 1fr; font-size: 13px; } .bmt-info-list li strong { font-size: 13px; } }