attr-extraction.css 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. :root {
  2. --text: #0b1220; /* primary text on white */
  3. --muted: #5b6b80; /* secondary text */
  4. --brand: #2563eb; /* blue */
  5. --brand-2: #27B7C1; /* teal */
  6. --accent: #7c3aed; /* violet */
  7. --danger: #ef4444; /* red */
  8. --success: #16a34a; /* green */
  9. --chip: #f5f7fb; /* chip bg */
  10. --border: #e5eaf2; /* light border */
  11. --shadow: 0 8px 24px rgba(17, 24, 39, .08);
  12. --radius: 14px;
  13. --card: #ffffff; /* card bg on white */
  14. --row-hover: #e6effd; /* subtle hover border tint */
  15. --zebra: #fafbfc;
  16. }
  17. .form-check-input:checked{
  18. background-color: #49B5E0;
  19. border-color: #49B5E0
  20. ;
  21. }
  22. /* * { box-sizing: border-box; } */
  23. html, body { height: 100%; }
  24. body {
  25. margin: 0;
  26. /* font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji"; */
  27. color: var(--text);
  28. background: #ffffff; /* White background */
  29. letter-spacing: .2px;
  30. }
  31. .container { max-width: 1200px; margin: 24px auto 80px; padding: 0 20px; font-size: 12px; }
  32. header.hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 20px; }
  33. .title { display: flex; align-items: center; gap: 14px; }
  34. .title-logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; box-shadow: var(--shadow); }
  35. .title-logo svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
  36. h1 { font-size: 1.6rem; margin: 0; letter-spacing: .3px; }
  37. .sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
  38. .actions { display: flex; gap: 10px; flex-wrap: wrap; }
  39. /* button, .btn {
  40. appearance: none; border: 1px solid var(--border); cursor: pointer;
  41. padding: 10px 14px; border-radius: 10px; font-weight: 600;
  42. color: var(--text); background: #ffffff; transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
  43. box-shadow: var(--shadow);
  44. } */
  45. /* .btn:hover{
  46. color: black !important;
  47. } */
  48. /* button:hover { transform: translateY(-1px); border-color: #cbd5e1; } */
  49. /* .btn-secondary { background: #f7fafc; } */
  50. /* .btn-ghost { background: transparent; color: var(--muted); border-style: dashed; } */
  51. /* .btn-success { background: linear-gradient(135deg, #eef2ff, #e6fffa); color: var(--text); } */
  52. /* Single-column layout */
  53. .grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
  54. .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  55. .card h2 { margin: 0; font-size: 1.1rem; }
  56. .card-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:10px; }
  57. .card-body { padding: 14px 16px; }
  58. .toolbar { display:flex; align-items:center; gap:10px; flex-wrap: wrap; }
  59. .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--chip); color: #2e3a49; border: 1px solid var(--border); font-size: .85rem; }
  60. /* Segmented Toggle */
  61. .seg { display:inline-flex; border:1px solid var(--border); border-radius: 999px; overflow:hidden; background: #fff; box-shadow: var(--shadow); }
  62. .seg button { border:none; background:#fff; padding:8px 12px; font-weight:700; color:#334155; cursor:pointer; }
  63. .seg button + button { border-left:1px solid var(--border); }
  64. .seg button.active { background: #eff6ff; color:#1e3a8a; }
  65. /* Cards layout */
  66. .list { display: grid; gap: 12px; }
  67. .product { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; background: #ffffff; border: 1px solid var(--border); cursor: pointer; }
  68. /* .product { display: grid; grid-template-columns: 64px 1fr 1fr auto; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; background: #ffffff; border: 1px solid var(--border); cursor: pointer; } */
  69. .product:hover { border-color: var(--row-hover); }
  70. .product.selected { outline: 2px solid var(--brand-2); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
  71. .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; position: relative; background: #f3f4f6; border:1px solid var(--border); }
  72. .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  73. .thumb .fallback { position:absolute; inset:0; display:grid; place-items:center; color:#64748b; font-weight:700; font-size: .8rem; background: #f8fafc; }
  74. .meta { display: grid; gap: 4px; }
  75. .meta .name { font-weight: 700; }
  76. .meta .desc { color: var(--muted); font-size: .92rem; }
  77. .badges { display:flex; gap:6px; flex-wrap: wrap; }
  78. .select { display:flex; align-items:center; gap:8px; }
  79. input[type="checkbox"] { width: 18px; height: 18px; }
  80. .divider { height:1px; background: var(--border); margin: 14px 0; }
  81. /* Inline attributes in cards */
  82. .attr-inline { grid-column: 1 / -1; margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
  83. .attr-inline .section-title { display:flex; align-items:center; gap:10px; margin: 6px 0 8px; color: var(--muted); }
  84. .chips { display:flex; flex-wrap:wrap; gap:8px; }
  85. .chip { background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 6px 9px; font-size: .86rem; display: inline-flex; gap: 8px; align-items: center; color: #1f2937; }
  86. .chip .k { color:#475569; }
  87. .chip .v { color:#111827; font-weight:600; }
  88. .chip.new { outline: 2px solid var(--brand-2); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
  89. /* .chip.new::after { content: 'NEW'; margin-left: 6px; font-size: .68rem; background: var(--text); color: #07221f; padding: 3px 6px; border-radius: 999px; font-weight: 900; letter-spacing:.4px; } */
  90. /* Table layout */
  91. .table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
  92. table { width: 100%; border-collapse: collapse; background:#fff; }
  93. thead { background:#f8fafc; border-bottom:1px solid var(--border); }
  94. th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: .93rem; vertical-align: top; }
  95. tbody tr:nth-child(odd) { background: var(--zebra); }
  96. tbody tr:hover { background: #f0f7ff; }
  97. td.select-cell { width: 60px; }
  98. td.thumb-cell { width: 60px; }
  99. .mini-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; border:1px solid var(--border); background:#f3f4f6; display:grid; place-items:center; }
  100. .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
  101. .mini-thumb .fallback { color:#64748b; font-weight:700; font-size:.8rem; }
  102. .badge { display:inline-block; padding: 4px 8px; border-radius:999px; background:#eef2ff; color:#01445E; font-size:.8rem; border:1px solid #e5e7eb; }
  103. /* Detail rows for table */
  104. .detail-row td { background:#ffffff; }
  105. .detail-content { padding: 10px 6px; border-left: 4px solid var(--brand-2); border-radius: 8px; background:#f8fafc; }
  106. .detail-content .section-title { display:flex; align-items:center; gap:10px; margin: 6px 0 8px; color: var(--muted); }
  107. .summary {
  108. display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px;
  109. }
  110. .summary .stat { border:1px solid var(--border); padding: 12px; border-radius: 12px; text-align:center; }
  111. .stat .label { color: var(--muted); font-size:.85rem; }
  112. .stat .value { font-size: 1.25rem; font-weight: 800; }
  113. .empty { color: var(--muted); padding: 6px 0; }
  114. /* Upload: dropzone + status */
  115. .dropzone { border: 2px dashed var(--border); padding: 18px; text-align:center; background:#fafbfc; color:#475569; }
  116. .dropzone.drag { background:#eef6ff; border-color:#93c5fd; }
  117. .file-info { color: var(--muted); font-size:.9rem; }
  118. /* Optional success/error coloring */
  119. #uploadStatus.success { color: #16a34a; }
  120. #uploadStatus.error { color: #ef4444; }
  121. /* Pagination bar */
  122. .pagination-bar {
  123. margin-top: 12px;
  124. padding-top: 10px;
  125. border-top: 1px solid var(--border);
  126. display: flex;
  127. flex-wrap: wrap;
  128. gap: 10px;
  129. align-items: center;
  130. justify-content: space-between;
  131. }
  132. .page-size {
  133. display: inline-flex;
  134. gap: 8px;
  135. align-items: center;
  136. color: var(--muted);
  137. font-size: .92rem;
  138. }
  139. .page-size select {
  140. border: 1px solid var(--border);
  141. background: #fff;
  142. padding: 6px 10px;
  143. border-radius: 8px;
  144. font-weight: 600;
  145. }
  146. .pager {
  147. display: inline-flex;
  148. gap: 8px;
  149. align-items: center;
  150. }
  151. .pager-btn {
  152. border: 1px solid var(--border);
  153. background: #fff;
  154. padding: 6px 10px;
  155. border-radius: 8px;
  156. cursor: pointer;
  157. box-shadow: var(--shadow);
  158. font-weight: 600;
  159. color: var(--text);
  160. }
  161. .pager-btn[disabled] {
  162. opacity: .5;
  163. cursor: not-allowed;
  164. }
  165. .page-info {
  166. color: var(--muted);
  167. font-weight: 600;
  168. }
  169. /* loader */
  170. #full-page-loader {
  171. position: fixed;
  172. top: 0;
  173. left: 0;
  174. width: 100%;
  175. height: 100%;
  176. background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black */
  177. z-index: 9999;
  178. display: flex;
  179. justify-content: center;
  180. align-items: center;
  181. }
  182. .loader-overlay .spinner-border {
  183. width: 3rem;
  184. height: 3rem;
  185. }
  186. .select-attr {
  187. margin-left: 10px;
  188. font-size: 0.9em;
  189. color: #666;
  190. }
  191. /* Make attribute groups display in two columns */
  192. .attribute-selectors {
  193. display: grid;
  194. grid-template-columns: repeat(2, 1fr); /* Two equal columns */
  195. gap: 10px; /* Space between columns */
  196. max-width: 800px; /* Optional: Limit max width */
  197. }
  198. /* Make section headers span full width */
  199. .mandatory-title,
  200. .optional-title {
  201. grid-column: span 2; /* Make them stretch across both columns */
  202. }
  203. /* Make each attribute group fill one column */
  204. .attribute-chip-group {
  205. width: 100%; /* Ensure full use of column space */
  206. }
  207. /*
  208. /* General layout */
  209. .attribute-selectors {
  210. /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  211. max-width: none;
  212. margin: 5px auto;
  213. padding: 10px;
  214. background-color: #fff;
  215. border: 1px solid #ddd;
  216. border-radius: 10px;
  217. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  218. width: max-content;
  219. }
  220. /* Section titles */
  221. .mandatory-title,
  222. .optional-title {
  223. font-size: 1.2em;
  224. font-weight: 600;
  225. color: #333;
  226. margin-bottom: 0px;
  227. padding-left: 5px;
  228. border-left: 4px solid #007BFF;
  229. }
  230. /* Attribute group block */
  231. .attribute-chip-group {
  232. margin-bottom: 15px;
  233. }
  234. /* Attribute headers */
  235. .attribute-header {
  236. font-size: 1em;
  237. font-weight: 500;
  238. color: #555;
  239. margin-bottom: 5px;
  240. }
  241. /* Chips container layout */
  242. .chips-container {
  243. display: flex;
  244. flex-wrap: wrap;
  245. gap: 10px;
  246. }
  247. /* Individual chip */
  248. .attribute-chip {
  249. display: inline-flex;
  250. align-items: center;
  251. background-color: #f0f4f8;
  252. border: 1px solid #ccc;
  253. border-radius: 20px;
  254. padding: 2px 10px;
  255. cursor: pointer;
  256. transition: background-color 0.2s, box-shadow 0.2s;
  257. user-select: none;
  258. font-size: 0.95em;
  259. }
  260. /* Hide the native checkbox */
  261. .attribute-chip input[type="checkbox"] {
  262. display: none;
  263. }
  264. /* Style span inside chip */
  265. .attribute-chip span {
  266. color: #333;
  267. }
  268. /* Highlight chip when selected */
  269. .attribute-chip input[type="checkbox"]:checked + span {
  270. font-weight: 600;
  271. color: #007BFF;
  272. }
  273. /* Add visual feedback for selected chips */
  274. .attribute-chip input[type="checkbox"]:checked + span::before {
  275. content: "✔ ";
  276. color: #007BFF;
  277. margin-right: 4px;
  278. }
  279. /* Hover effect */
  280. .attribute-chip:hover {
  281. background-color: #e6f0ff;
  282. border-color: #007BFF;
  283. box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
  284. }
  285. /* Responsive */
  286. @media (max-width: 600px) {
  287. .chips-container {
  288. flex-direction: column;
  289. gap: 8px;
  290. }
  291. .attribute-chip {
  292. width: 100%;
  293. justify-content: center;
  294. }
  295. }
  296. /* MOBILE STYLING */
  297. @media (max-width: 600px) {
  298. .product {
  299. grid-template-columns: 48px auto;
  300. grid-template-rows: auto auto;
  301. gap: 8px;
  302. align-items: center;
  303. padding: 12px;
  304. }
  305. .product > :nth-child(2),
  306. .product > :nth-child(3) {
  307. grid-column: 2 / span 1;
  308. }
  309. .product > :nth-child(4) {
  310. grid-column: 1 / -1;
  311. justify-self: end;
  312. margin-top: 8px;
  313. }
  314. }
  315. /* @media (max-width: 600px) {
  316. .attribute-selectors {
  317. grid-template-columns: 1fr;
  318. }
  319. .chips-container {
  320. flex-direction: column;
  321. gap: 8px;
  322. }
  323. .attribute-chip {
  324. width: 100%;
  325. justify-content: center;
  326. }
  327. } */
  328. td{
  329. font-size: 12px;
  330. }
  331. .toolbar {
  332. display: flex;
  333. align-items: center;
  334. gap: 10px;
  335. flex-wrap: wrap;
  336. }
  337. #thresholdRange {
  338. width: 150px;
  339. }
  340. /* Optional: style tweaks */
  341. #mandatory-attributes {
  342. min-width: 200px;
  343. width: auto !important; /* Override inline style */
  344. }
  345. .select2-container--default .select2-selection--multiple .select2-selection__clear{
  346. color: red;
  347. }
  348. /* inline table css for inside table */
  349. /* Container for the inline detail content */
  350. .detail-content-tables {
  351. padding: 15px;
  352. background-color: #f7f7f7;
  353. border-top: 3px solid #007bff; /* Primary color separator */
  354. border-bottom: 1px solid #ddd;
  355. }
  356. /* Titles and Separators */
  357. .section-title h2 {
  358. color: #333;
  359. font-size: 1.2em;
  360. margin-top: 20px;
  361. margin-bottom: 10px;
  362. border-bottom: 2px solid #ccc;
  363. padding-bottom: 5px;
  364. }
  365. .section-title h3 {
  366. color: #555;
  367. font-size: 1em;
  368. font-weight: 600;
  369. margin: 15px 0 8px;
  370. }
  371. .section-separator {
  372. border: 0;
  373. height: 1px;
  374. background-color: #ddd;
  375. margin: 20px 0;
  376. }
  377. /* Table Styling for Attribute Details */
  378. .attribute-detail-table {
  379. width: 100%;
  380. border-collapse: collapse;
  381. margin-bottom: 2px;
  382. background-color: #fff;
  383. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  384. }
  385. .attribute-detail-table th,
  386. .attribute-detail-table td {
  387. padding: 10px 15px;
  388. text-align: left;
  389. border-bottom: 1px solid #eee;
  390. }
  391. .attribute-detail-table thead th {
  392. background-color: #e9ecef;
  393. color: #333;
  394. font-weight: bold;
  395. text-transform: uppercase;
  396. font-size: 0.85em;
  397. }
  398. /* Row Styling */
  399. .attribute-detail-table tbody tr:hover {
  400. background-color: #f0f8ff; /* Light hover effect */
  401. }
  402. /* Combined Table Layout */
  403. .combined-attributes-container {
  404. display: grid;
  405. /* 3 sections in a row, with slight gap */
  406. grid-template-columns: repeat(3, 1fr);
  407. gap: 20px;
  408. margin-bottom: 20px;
  409. }
  410. /* Ensure tables inside the combined container fit */
  411. .combined-attributes-container .attribute-section {
  412. width: 100%;
  413. }
  414. /* Pills (Badges) for Status and Summary */
  415. .pill {
  416. display: inline-block;
  417. padding: 4px 10px;
  418. border-radius: 12px;
  419. font-size: 0.8em;
  420. font-weight: bold;
  421. text-transform: uppercase;
  422. margin: 0 4px 4px 0;
  423. }
  424. /* Status-specific pills */
  425. .status-pill.status-ok {
  426. background-color: #d4edda;
  427. color: #155724;
  428. }
  429. .status-pill.status-ko {
  430. background-color: #f8d7da;
  431. color: #721c24;
  432. }
  433. .status-pill.status-missing {
  434. background-color: #fff3cd;
  435. color: #856404;
  436. }
  437. .status-pill.status-unknown {
  438. background-color: #e2e3e5;
  439. color: #383d41;
  440. }
  441. /* Row color based on main status (optional) */
  442. .attribute-detail-table tr.status-ko {
  443. background-color: #fff0f0;
  444. }
  445. /* Attribute Summary Pills */
  446. .attribute-summary-pills {
  447. display: flex;
  448. gap: 10px;
  449. margin: 20px 0;
  450. padding-top: 10px;
  451. border-top: 1px dashed #ccc;
  452. }
  453. .attribute-summary-pills .pill.primary {
  454. background-color: #007bff;
  455. color: white;
  456. }
  457. .attribute-summary-pills .pill.secondary {
  458. background-color: #6c757d;
  459. color: white;
  460. }
  461. /* --- Styles for Mandatory Comparison Table --- */
  462. /* Highlight the entire row for a mismatch */
  463. .comparison-table .mismatch-row {
  464. background-color: #fcebeb; /* Very light red background for the whole row */
  465. border-left: 5px solid #dc3545; /* Red border on the left */
  466. }
  467. /* Highlight the AI Value cell when there is a mismatch */
  468. .comparison-table .mismatch-value {
  469. font-weight: bold;
  470. color: #dc3545; /* Darker red text */
  471. }
  472. /* --- MATCH STYLES (NEW) --- */
  473. .comparison-table .match-row {
  474. background-color: #f1fff4; /* Light green background for the whole row */
  475. border-left: 5px solid #28a745; /* Green border on the left */
  476. }
  477. .comparison-table .found-value {
  478. font-weight: bold;
  479. color: green; /* Darker red text */
  480. }
  481. /* Pill for match/mismatch status */
  482. .status-pill.status-mismatch {
  483. background-color: #dc3545; /* Red background */
  484. color: white;
  485. }
  486. .status-pill.status-match {
  487. background-color: #28a745; /* Green background */
  488. color: white;
  489. }
  490. /* --- Required Styles for Scrolling, Highlighting, and Layout --- */
  491. /* General Scroll Wrapper for all tables */
  492. .attribute-scroll-wrapper {
  493. max-height: 300px; /* Adjust height as needed */
  494. overflow-y: auto;
  495. overflow-x: hidden;
  496. position: relative;
  497. border: 1px solid #ddd;
  498. margin-top: 5px;
  499. }
  500. /* Fix table headers when scrolling */
  501. .attribute-scroll-wrapper .attribute-detail-table th {
  502. position: sticky;
  503. top: 0;
  504. z-index: 10;
  505. background-color: #e9ecef;
  506. }
  507. /* Mandatory Comparison Table Highlighting */
  508. .comparison-table .mismatch-row {
  509. background-color: #fcebeb; /* Light red background for the whole row */
  510. border-left: 5px solid #dc3545; /* Red border on the left */
  511. }
  512. .comparison-table .mismatch-value {
  513. font-weight: bold;
  514. color: #dc3545; /* Darker red text for the AI value cell */
  515. }
  516. /* Status Pills for Match/Mismatch */
  517. .status-pill.status-mismatch {
  518. background-color: #dc3545;
  519. color: white;
  520. }
  521. .status-pill.status-match {
  522. background-color: #28a745;
  523. color: white;
  524. }
  525. /* General Table Styling (from previous responses, ensure these are present too) */
  526. .attribute-detail-table {
  527. width: 100%;
  528. border-collapse: collapse;
  529. background-color: #fff;
  530. }
  531. .attribute-detail-table th, .attribute-detail-table td {
  532. padding: 10px 15px;
  533. text-align: left;
  534. border-bottom: 1px solid #eee;
  535. }
  536. .combined-attributes-container {
  537. display: grid;
  538. grid-template-columns: repeat(3, 1fr);
  539. gap: 20px;
  540. margin-bottom: 20px;
  541. }
  542. /* Ensure the general table styles still apply */
  543. /* .comparison-table th, .comparison-table td { */
  544. /* Adjust padding if needed, but inherit from .attribute-detail-table */
  545. /* } */
  546. /* --- Mandatory Comparison Card Styles --- */
  547. .comparison-cards-container {
  548. display: flex;
  549. flex-wrap: wrap;
  550. gap: 20px;
  551. padding: 10px 0;
  552. }
  553. .comparison-card {
  554. flex: 0 0 calc(33.333% - 14px); /* Three cards per row on wider screens */
  555. min-width: 300px;
  556. border: 1px solid #e0e0e0;
  557. border-radius: 8px;
  558. overflow: hidden;
  559. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  560. transition: transform 0.2s;
  561. position: relative;
  562. background-color: #fff;
  563. }
  564. .comparison-card:hover {
  565. transform: translateY(-2px);
  566. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  567. }
  568. .card-header {
  569. background-color: #f8f9fa;
  570. padding: 12px 15px;
  571. font-weight: bold;
  572. font-size: 1.1em;
  573. color: #333;
  574. border-bottom: 1px solid #e0e0e0;
  575. }
  576. .card-content {
  577. display: flex;
  578. }
  579. .value-box {
  580. flex: 1;
  581. padding: 15px;
  582. min-height: 80px;
  583. position: relative;
  584. }
  585. .original-box {
  586. border-right: 1px solid #e0e0e0;
  587. background-color: #fcfcfc;
  588. }
  589. .value-label {
  590. font-size: 0.8em;
  591. color: #6c757d;
  592. text-transform: uppercase;
  593. margin-bottom: 5px;
  594. }
  595. .value-text {
  596. font-size: 1em;
  597. font-weight: 500;
  598. color: #212529;
  599. }
  600. .value-source {
  601. font-size: 0.8em;
  602. font-weight: normal;
  603. color: #adb5bd;
  604. margin-left: 5px;
  605. }
  606. /* --- MISMATCH STYLES --- */
  607. .mismatch-card {
  608. border: 2px solid #dc3545; /* Prominent red border on the card */
  609. background-color: #fff8f8; /* Light red background tint */
  610. }
  611. .mismatch-value {
  612. background-color: #fff0f0; /* Very light red background for the AI value box */
  613. }
  614. .mismatch-indicator {
  615. position: absolute;
  616. top: 0;
  617. right: 0;
  618. background-color: #dc3545;
  619. color: white;
  620. padding: 2px 8px;
  621. border-bottom-left-radius: 8px;
  622. font-size: 0.85em;
  623. font-weight: bold;
  624. transform: translateY(-1px); /* Just adjust alignment */
  625. }
  626. /* Custom CSS to align the button to the right of the header text */
  627. .api-header-flex {
  628. /* Ensures H2 and button are spaced out */
  629. display: flex;
  630. justify-content: space-between;
  631. align-items: center;
  632. /* Standard Bootstrap card header usually has padding (e.g., 1rem or 16px) */
  633. /* If your .card-header has padding-right: 16px, using -6px below gives you 10px (16 - 6 = 10) */
  634. }
  635. .download-section {
  636. /* Adjust this value based on your card-header's existing padding to get exactly 10px spacing. */
  637. /* For standard Bootstrap padding (usually around 1rem or 16px), a negative margin is needed */
  638. margin-right: -6px; /* Example: If card-header padding is 16px, this results in 10px visible space */
  639. }
  640. /* Ensure the h2 doesn't take up the full width */
  641. .api-header-flex h2 {
  642. margin-bottom: 0;
  643. line-height: 1.2;
  644. }
  645. .card-header.api-header-flex {
  646. /* Example: Override default padding to 0 on the right */
  647. padding-right: 0;
  648. }
  649. .download-section {
  650. /* Now, this padding controls the 10px spacing from the card's edge */
  651. padding-right: 10px;
  652. right: 0px;
  653. position: absolute;
  654. }
  655. /* Small button size for card toolbar */
  656. .btn-sm { padding: 4px 8px; border-radius: 8px; font-size: .85rem; }
  657. /* Slight spacing when the button is beside the Select checkbox */
  658. .card-config-btn { margin-left: 8px; }
  659. /* Optional: when the attribute chip UI is hidden, keep layout neat */
  660. .attribute-selectors { transition: opacity .15s ease; }
  661. .attribute-selectors.hidden { display: none; } /* in case you prefer class toggle */
  662. .card-config-btn:hover { filter: brightness(0.98); }
  663. #cardsContainer .attribute-selectors{
  664. display: inline-block;
  665. }
  666. /* Card Background and Border (for MATCH) */
  667. .comparison-card.match-card {
  668. border: 2px solid #28a745; /* Green border */
  669. background-color: #f6fff8; /* Very light green background */
  670. }
  671. /* Card Background and Border (for MISMATCH) */
  672. .comparison-card.mismatch-card {
  673. border: 2px solid #dc3545; /* Red border */
  674. background-color: #fff8f8; /* Very light red background */
  675. }
  676. /* Specific highlight for AI value box on mismatch */
  677. .mismatch-card .mismatch-value {
  678. background-color: #fff0f0; /* Light red background for the value box */
  679. color: #dc3545; /* Red text */
  680. font-weight: bold;
  681. }
  682. .match-status-indicator {
  683. position: absolute;
  684. top: 0;
  685. right: 0;
  686. padding: 2px 8px;
  687. border-bottom-left-radius: 8px;
  688. font-size: 0.85em;
  689. font-weight: bold;
  690. transform: translateY(-1px);
  691. }
  692. .match-card .match-status-indicator {
  693. background-color: #28a745; /* Dark Green */
  694. color: white;
  695. }
  696. .mismatch-card .match-status-indicator {
  697. background-color: #dc3545; /* Dark Red */
  698. color: white;
  699. }
  700. /* Container for the thumbnail and the full image */
  701. .mini-thumb-container {
  702. position: relative; /* Essential for positioning the full-image-hover absolutely within it */
  703. display: inline-block; /* Helps in keeping the container size tight to the thumbnail */
  704. }
  705. /* The small, visible thumbnail */
  706. .mini-thumb {
  707. /* Style your thumbnail here, e.g., width, height, border, etc. */
  708. width: 50px; /* Example size */
  709. height: 50px; /* Example size */
  710. overflow: hidden;
  711. cursor: pointer;
  712. }
  713. .mini-thumb img {
  714. width: 100%;
  715. height: 100%;
  716. object-fit: cover;
  717. display: block;
  718. }
  719. .full-image-hover {
  720. position: absolute;
  721. top: 0;
  722. left: 100%;
  723. display: none;
  724. z-index: 9999;
  725. border: 1px solid #ccc;
  726. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  727. background-color: white;
  728. padding: 10px;
  729. }
  730. .full-image-hover img {
  731. max-width: 400px;
  732. height: auto;
  733. display: block;
  734. }
  735. /* .full-image-hover {
  736. position: fixed;
  737. display: none;
  738. z-index: 9999;
  739. border: 1px solid #ccc;
  740. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  741. background-color: white;
  742. padding: 10px;
  743. }
  744. .full-image-hover img {
  745. max-width: 400px;
  746. height: auto;
  747. max-height: 400px;
  748. display: block;
  749. } */
  750. /* THE MAGIC: Show the full-image-hover when the parent container is hovered */
  751. .mini-thumb-container:hover .full-image-hover {
  752. display: block;
  753. }
  754. .green-text {
  755. color: green;
  756. font-weight: bold; /* Optional: helps it stand out */
  757. }
  758. /* .red-text {
  759. color: red;
  760. font-weight: bold;
  761. } */