/* ===========================================================================
   Saved Dimensions - the violet look (second stylesheet).

   dimensions.css is NOT edited (tests read it, and it stays the layout + dark-mode source of truth).
   This file loads AFTER it and only re-colours: it redefines the .dm-wrap tokens, then overrides the
   few colours dimensions.css hardcodes instead of taking from a token. Same violet tokens as Easy Ship
   and Listings to turn on (#5E48B8 / #49389A).

   TO REVERT: delete the <link> to this file in public/index.html.

   Light mode only. Dark mode keeps its own tokens from dimensions.css, so every rule here that is not
   token-driven is fenced with html:not([data-theme="dark"]).
   =========================================================================== */

html:not([data-theme="dark"]) .dm-wrap{
  --primary:#5E48B8;
  --primary-d:#49389A;
  --grad:#5E48B8;
  --ink:#1D1826;
  --sub:#5F5970;
  --line:#E9E7EE;
  --line-s:#DAD7E2;
  --shadow:0 1px 3px rgba(60,40,130,.06);
  --field:#fff;
  --soft:#F6F5F8;
  /* The info notes were the brightest part of the old look. Neutral grey-lilac, calm text. */
  --info:#4A4560; --info-bg:#F6F5F9; --info-line:#E6E3EE;
  --violet:#5E48B8; --violet-bg:#EFECFA; --violet-line:#CFC7EC;
  --ok:#177550; --ok-bg:#E6F4EE; --ok-line:#BCDFCF;
  --warn:#B45309; --warn-bg:#FDF1E0; --warn-line:#F2D5A9;
}

/* ---- header ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-eyebrow{color:#5E48B8;letter-spacing:.09em}
html:not([data-theme="dark"]) .dm-wrap .dm-title{font-weight:700}
html:not([data-theme="dark"]) .dm-wrap .dm-count{color:#49389A;background:#EFECFA;border-color:#CFC7EC}
html:not([data-theme="dark"]) .dm-wrap .dm-count.unknown{color:#5F5970;background:#F6F5F8;border-color:#DAD7E2}

/* ---- tabs and the Single / Combinations toggle ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-chip{border-width:1px;border-color:#DAD7E2;color:#1D1826;font-weight:600}
html:not([data-theme="dark"]) .dm-wrap .dm-chip:hover{background:#EFECFA;border-color:#CFC7EC;color:#49389A}
html:not([data-theme="dark"]) .dm-wrap .dm-chip.active{background:#5E48B8;border-color:#5E48B8;color:#fff}
html:not([data-theme="dark"]) .dm-wrap .dm-chip.active:hover{background:#49389A;border-color:#49389A;color:#fff;filter:none}

/* ---- toolbar ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-toolbar{border-width:1px;border-radius:16px}
html:not([data-theme="dark"]) .dm-wrap .dm-select,
html:not([data-theme="dark"]) .dm-wrap .dm-date{border-width:1px;border-color:#DAD7E2;color:#1D1826}
html:not([data-theme="dark"]) .dm-wrap .dm-select:focus,
html:not([data-theme="dark"]) .dm-wrap .dm-date:focus{border-color:#5E48B8;box-shadow:0 0 0 3px #CFC7EC}
html:not([data-theme="dark"]) .dm-wrap .dm-search input{border-width:1px;border-color:#DAD7E2}
html:not([data-theme="dark"]) .dm-wrap .dm-search input:focus{border-color:#5E48B8;box-shadow:0 0 0 3px #CFC7EC}
html:not([data-theme="dark"]) .dm-wrap .dm-unit{color:#5F5970;background:#F6F5F8;border-color:#E9E7EE}

/* ---- buttons ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-btn{border-width:1px;border-color:#DAD7E2;color:#49389A}
html:not([data-theme="dark"]) .dm-wrap .dm-btn:hover{background:#EFECFA;border-color:#CFC7EC;color:#49389A}
html:not([data-theme="dark"]) .dm-wrap .dm-btn.primary{background:#4F3F98;border-color:#4F3F98;color:#fff;box-shadow:none}
html:not([data-theme="dark"]) .dm-wrap .dm-btn.primary:hover{background:#3F3180;border-color:#3F3180;color:#fff;filter:none}
html:not([data-theme="dark"]) .dm-wrap .dm-btn:disabled:hover{background:#fff;border-color:#DAD7E2;color:#49389A}
html:not([data-theme="dark"]) .dm-wrap .dm-btn.danger-quiet{background:#fff;color:#B42318;border-color:#F3C6C0}
html:not([data-theme="dark"]) .dm-wrap .dm-btn.danger-quiet:hover{background:#FEF3F2;color:#912018;border-color:#E9A39B}

/* ---- panels and tables ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-panel,
html:not([data-theme="dark"]) .dm-wrap .dm-cmp{border-width:1px;border-radius:16px}
html:not([data-theme="dark"]) .dm-wrap .dm-panel-head{background:#fff}
html:not([data-theme="dark"]) .dm-wrap .dm-panel-n{color:#49389A;background:#EFECFA;border-color:#CFC7EC}
html:not([data-theme="dark"]) .dm-wrap .dm-panel-n.unknown{color:#5F5970;background:#F6F5F8;border-color:#DAD7E2}
html:not([data-theme="dark"]) .dm-wrap .dm-table th,
html:not([data-theme="dark"]) .dm-wrap .dm-panel-head+.dm-tablewrap .dm-table th{background:#F6F5F8;color:#7D7690;font-weight:700;letter-spacing:.07em;border-bottom:1px solid #E9E7EE}
html:not([data-theme="dark"]) .dm-wrap .dm-table td{border-bottom-color:#E9E7EE}
html:not([data-theme="dark"]) .dm-wrap .dm-table tbody tr:hover td{background:#FAF9FD}
html:not([data-theme="dark"]) .dm-wrap .dm-miss,
html:not([data-theme="dark"]) .dm-wrap .dm-meta,
html:not([data-theme="dark"]) .dm-wrap .dm-u,
html:not([data-theme="dark"]) .dm-wrap .dm-alt,
html:not([data-theme="dark"]) .dm-wrap .dm-qtylabel,
html:not([data-theme="dark"]) .dm-wrap .dm-cmp-l,
html:not([data-theme="dark"]) .dm-wrap .dm-cmp-who,
html:not([data-theme="dark"]) .dm-wrap .dm-cmp-foot,
html:not([data-theme="dark"]) .dm-wrap .dm-foot,
html:not([data-theme="dark"]) .dm-wrap .dm-was{color:#7D7690}
html:not([data-theme="dark"]) .dm-wrap .dm-none td{background:#FBFAFD}
html:not([data-theme="dark"]) .dm-wrap .dm-none .dm-srcname{color:#7D7690}
html:not([data-theme="dark"]) .dm-wrap .dm-cq,
html:not([data-theme="dark"]) .dm-wrap .dm-more{color:#5E48B8}
html:not([data-theme="dark"]) .dm-wrap .dm-badge{background:#EFECFA;color:#49389A;border-color:#CFC7EC}

/* ---- quantity switcher + comparison ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-qty button{border-width:1px;color:#1D1826}
html:not([data-theme="dark"]) .dm-wrap .dm-qty button:hover{background:#EFECFA;border-color:#CFC7EC;color:#49389A}
html:not([data-theme="dark"]) .dm-wrap .dm-qty button.on{background:#5E48B8;border-color:#5E48B8;color:#fff}
html:not([data-theme="dark"]) .dm-wrap .dm-cmp-tag{background:#fff;color:#5F5970;border-color:#DAD7E2}
html:not([data-theme="dark"]) .dm-wrap .dm-cmp-row.diff .dm-cmp-l{color:#B45309}
html:not([data-theme="dark"]) .dm-wrap .dm-cmp-row.diff .dm-cmp-tag{background:#FBE5C4;color:#8A4207;border-color:#F2D5A9}

/* "No saves in over 30 days": a quiet amber line with a dot, not a boxed three-line chip. */
html:not([data-theme="dark"]) .dm-wrap .dm-differ.dm-stale{display:flex;align-items:flex-start;gap:6px;margin-top:5px;padding:0;line-height:1.35;
  background:none;border:0;border-radius:0;font-size:12px;font-weight:600;color:#B45309;white-space:normal}
html:not([data-theme="dark"]) .dm-wrap .dm-differ.dm-stale::before{content:"";width:6px;height:6px;border-radius:50%;background:#D97706;flex:none;margin-top:5px}

/* ---- notes ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-note{border-width:1px;border-radius:12px}

/* ---- empty states: the emoji becomes a soft violet tile ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-empty{border-width:1.5px;border-color:#CFC7EC;background:rgba(255,255,255,.65);border-radius:16px}
html:not([data-theme="dark"]) .dm-wrap .dm-empty.inpanel{background:#fff;border:0}
html:not([data-theme="dark"]) .dm-wrap .dm-emoji{width:54px;height:54px;margin:0 auto;display:grid;place-items:center;
  border-radius:16px;background:#EFECFA;font-size:26px;line-height:1}
html:not([data-theme="dark"]) .dm-wrap .dm-skel{background:linear-gradient(90deg,#EFECFA 25%,#F7F5FC 37%,#EFECFA 63%);background-size:400% 100%}

/* ---- the edit window ---- */
html:not([data-theme="dark"]) .dm-wrap .dm-modal-bg{background:rgba(29,24,38,.5)}
html:not([data-theme="dark"]) .dm-wrap .dm-modal-shell{border-radius:20px;box-shadow:0 24px 60px rgba(29,24,38,.3)}
html:not([data-theme="dark"]) .dm-wrap .dm-modal-head h3{font-weight:700}
html:not([data-theme="dark"]) .dm-wrap .dm-x{border:1px solid #DAD7E2;background:#fff;color:#7D7690;border-radius:10px;width:34px;height:34px;padding:0}
html:not([data-theme="dark"]) .dm-wrap .dm-x:hover{background:#EFECFA;color:#49389A;border-color:#CFC7EC}
html:not([data-theme="dark"]) .dm-wrap .dm-field label{color:#1D1826}
html:not([data-theme="dark"]) .dm-wrap .dm-field label .t{background:#F6F5F8;color:#7D7690;border-color:#E9E7EE}
html:not([data-theme="dark"]) .dm-wrap .dm-field label .t.stored{background:#F1EFF7;color:#4A4560;border-color:#E1DDEC}
html:not([data-theme="dark"]) .dm-wrap .dm-field input{border-width:1px;border-color:#DAD7E2}
html:not([data-theme="dark"]) .dm-wrap .dm-field input:focus{border-color:#8C80C4;box-shadow:0 0 0 3px #E1DDEC}
html:not([data-theme="dark"]) .dm-wrap .dm-items{border-width:1px;background:#F6F5F8}
html:not([data-theme="dark"]) .dm-wrap .dm-modal-foot{background:#fff}
html:not([data-theme="dark"]) .dm-wrap .dm-del-confirm{background:#FEF3F2;border-color:#F3C6C0;color:#7A271A}

/* ---- the Source dropdown (replaces the browser's own select list, which cannot be styled) ---- */
.dm-dd{position:relative;flex:0 0 240px}
.dm-wrap .dm-ddbtn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:40px;padding:0 12px;
  margin:0;border:1px solid var(--line-s);border-radius:10px;background:#fff;color:var(--ink);font-size:13px;font-weight:600;
  font-family:inherit;cursor:pointer;min-width:0;line-height:1.2;box-shadow:none;transform:none}
.dm-wrap .dm-ddbtn:hover{background:#EFECFA;border-color:#CFC7EC;color:#49389A}
.dm-wrap .dm-ddbtn[aria-expanded="true"]{border-color:#5E48B8;box-shadow:0 0 0 3px #CFC7EC;background:#fff;color:var(--ink)}
.dm-wrap .dm-ddbtn svg{width:15px;height:15px;flex:none;color:#7D7690;transition:transform .15s}
.dm-wrap .dm-ddbtn[aria-expanded="true"] svg{transform:rotate(180deg)}
.dm-wrap .dm-ddmenu{position:absolute;z-index:30;top:46px;left:0;min-width:260px;background:#fff;border:1px solid #E9E7EE;
  border-radius:12px;box-shadow:0 12px 30px rgba(60,40,130,.16);padding:6px}
.dm-wrap .dm-ddmenu[hidden]{display:none}
.dm-wrap .dm-ddgrp{font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#7D7690;padding:10px 10px 4px}
.dm-wrap .dm-ddgrp:first-child{padding-top:6px}
.dm-wrap .dm-ddopt{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:0;
  background:none;border-radius:8px;padding:8px 10px;margin:0;font-size:13px;font-weight:500;color:#1D1826;font-family:inherit;
  cursor:pointer;min-width:0;line-height:1.3;box-shadow:none;transform:none}
.dm-wrap .dm-ddopt:hover{background:#EFECFA;color:#49389A;box-shadow:none;transform:none}
.dm-wrap .dm-ddopt.on{background:#EFECFA;color:#49389A;font-weight:700}
.dm-wrap .dm-ddopt.on::after{content:"\2713";font-size:12px}
html[data-theme="dark"] .dm-wrap .dm-ddbtn,
html[data-theme="dark"] .dm-wrap .dm-ddmenu{background:#1d2941;color:#cdd9e8;border-color:#2f3d59}
html[data-theme="dark"] .dm-wrap .dm-ddopt{color:#cdd9e8}
html[data-theme="dark"] .dm-wrap .dm-ddopt:hover,html[data-theme="dark"] .dm-wrap .dm-ddopt.on{background:#243049;color:#fff}
html[data-theme="dark"] .dm-wrap .dm-ddgrp{color:#9fb0c4}
@media (max-width:1180px){ .dm-dd{flex:1 1 100%} }
