/* Seller chat and finance screens based on the Ebazaya dashboard mockups. */
.seller-dashboard-reference .seller-chats-page,
.seller-dashboard-reference .seller-finance-page { display: grid; gap: 18px; color: #e9eff5; }
.seller-dashboard-reference .seller-page-title { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.seller-dashboard-reference .seller-page-title h2 { display:flex; align-items:center; gap:12px; margin:0 0 5px; color:#f0f5f8; font-size:30px; letter-spacing:-.04em; }
.seller-dashboard-reference .seller-page-title p { margin:0; color:#9babb8; font-size:14px; line-height:1.5; }
.seller-live-indicator { display:inline-block; width:10px; height:10px; border-radius:50%; background:#00df82; box-shadow:0 0 0 6px rgba(0,223,130,.1); }
.seller-dashboard-reference .seller-support-disclosure { margin-top:4px; border:1px solid #202d37; border-radius:13px; background:#0d151c; }
.seller-dashboard-reference .seller-support-disclosure > summary { padding:13px 16px; color:#bcc8d0; font-size:13px; font-weight:650; cursor:pointer; }
.seller-dashboard-reference .seller-support-disclosure[open] { padding:0 12px 12px; }
.seller-dashboard-reference .seller-support-disclosure[open] > summary { margin:0 -12px 12px; border-bottom:1px solid #202d37; }
.seller-dashboard-reference .seller-support-disclosure .seller-support-panel { margin:0; padding:14px; border:0; background:transparent; box-shadow:none; }
.seller-dashboard-reference .seller-support-disclosure .support-heading > div > span { color:#00df82; }
.seller-dashboard-reference .seller-support-disclosure .support-thread { border-color:#202d37; background:#091118; }
.seller-dashboard-reference .seller-support-disclosure .support-message.is-own { border-color:rgba(0,223,130,.22); background:#102b26; }
.seller-dashboard-reference .seller-support-disclosure .support-message.is-own p { color:#edf2f5; }

/* Wallet */
.seller-dashboard-reference .seller-finance-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.seller-dashboard-reference .seller-finance-stat { min-width:0; min-height:132px; display:flex; align-items:flex-start; gap:16px; padding:19px; border:1px solid #26323b; border-radius:15px; background:linear-gradient(145deg,#111b23,#0e151c); }
.seller-dashboard-reference .seller-finance-stat.available { border-color:rgba(0,223,130,.58); background:linear-gradient(140deg,rgba(0,223,130,.12),#101b20 72%); }
.seller-dashboard-reference .seller-finance-stat.pending { background:linear-gradient(140deg,rgba(244,173,35,.07),#111a21 72%); }
.seller-dashboard-reference .seller-finance-icon { width:58px; height:58px; flex:none; display:grid; place-items:center; border-radius:13px; background:#103f33; color:#00e58a; font-size:28px; }
.seller-dashboard-reference .seller-finance-stat.pending .seller-finance-icon { background:#44351b; color:#ffb52e; }
.seller-dashboard-reference .seller-finance-stat.earned .seller-finance-icon { background:#25303a; color:#aab8c4; }
.seller-dashboard-reference .seller-finance-stat > div { min-width:0; display:grid; gap:5px; }
.seller-dashboard-reference .seller-finance-stat small { color:#c0cbd2; font-size:13px; }
.seller-dashboard-reference .seller-finance-stat strong { overflow:hidden; color:#f3f6f8; font-size:27px; letter-spacing:-.035em; text-overflow:ellipsis; }
.seller-dashboard-reference .seller-finance-stat > div > span { color:#93a3ae; font-size:12px; }
.seller-dashboard-reference .seller-finance-actions-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.seller-dashboard-reference .seller-finance-card,.seller-dashboard-reference .seller-finance-history { min-width:0; overflow:hidden; border:1px solid #222f39; border-radius:15px; background:linear-gradient(145deg,#101922,#0c141b); }
.seller-dashboard-reference .seller-finance-card { padding:19px; }
.seller-dashboard-reference .seller-finance-card > header { display:flex; align-items:flex-start; gap:13px; margin-bottom:17px; }
.seller-dashboard-reference .seller-finance-card > header > span { color:#00df82; font-size:24px; line-height:1; }
.seller-dashboard-reference .seller-finance-card h3,.seller-dashboard-reference .seller-finance-history h3 { margin:0; color:#edf3f6; font-size:17px; }
.seller-dashboard-reference .seller-finance-card p,.seller-dashboard-reference .seller-finance-history p { margin:4px 0 0; color:#99a8b3; font-size:12px; line-height:1.5; }
.seller-dashboard-reference .seller-finance-form { display:grid; gap:10px; }
.seller-dashboard-reference .seller-amount-presets { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.seller-dashboard-reference .seller-amount-presets button { min-height:43px; border:1px solid #26343e; border-radius:10px; background:#121e27; color:#dce5ea; font-size:13px; }
.seller-dashboard-reference .seller-amount-presets button:hover,.seller-dashboard-reference .seller-amount-presets button.active { border-color:#00d980; background:rgba(0,223,130,.1); color:#00e58a; }
.seller-dashboard-reference .seller-money-input { height:48px; display:flex; align-items:center; gap:12px; padding:0 13px; border:1px solid #26343e; border-radius:11px; background:#121e27; color:#e4ebef; }
.seller-dashboard-reference .seller-money-input > span { color:#aebbc4; font-size:20px; }
.seller-dashboard-reference .seller-money-input input { min-width:0; width:100%; height:100%; border:0; outline:0; background:transparent; color:#edf3f6; font:inherit; }
.seller-dashboard-reference .seller-money-input input::placeholder { color:#8394a0; }
.seller-dashboard-reference .seller-finance-submit { min-height:46px; border:0; border-radius:10px; background:linear-gradient(100deg,#00e989,#00ca78); color:#06231a; font-weight:750; }
.seller-dashboard-reference .seller-finance-submit:hover:not(:disabled) { filter:brightness(1.07); }
.seller-dashboard-reference .seller-finance-submit.secondary { margin-top:19px; background:#23313b; color:#aab8c1; }
.seller-dashboard-reference .seller-finance-submit:disabled { opacity:.55; cursor:not-allowed; }
.seller-dashboard-reference .seller-withdraw-available { color:#9cabb5; font-size:12px; }
.seller-dashboard-reference .seller-withdraw-available b { color:#e5edf1; font-weight:600; }
.seller-dashboard-reference .seller-finance-history-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:19px; border-bottom:1px solid #202d36; }
.seller-dashboard-reference .seller-finance-history-head > div { display:flex; align-items:center; gap:13px; }
.seller-dashboard-reference .seller-finance-history-head > div > span { color:#00df82; font-size:25px; }
.seller-dashboard-reference .seller-finance-history-head nav { display:flex; flex-wrap:wrap; gap:4px; padding:4px; border:1px solid #202d36; border-radius:10px; }
.seller-dashboard-reference .seller-finance-history-head nav button { min-height:34px; padding:0 12px; border:0; border-radius:8px; background:transparent; color:#aab7c0; font-size:12px; }
.seller-dashboard-reference .seller-finance-history-head nav button:hover,.seller-dashboard-reference .seller-finance-history-head nav button.active { background:rgba(0,223,130,.12); color:#00e58a; }
.seller-dashboard-reference .seller-ledger-wrap { width:100%; overflow:auto; }
.seller-dashboard-reference .seller-ledger { width:100%; border-collapse:collapse; color:#d9e1e6; font-size:12px; text-align:left; }
.seller-dashboard-reference .seller-ledger th,.seller-dashboard-reference .seller-ledger td { padding:12px 14px; border-bottom:1px solid #1c2932; white-space:nowrap; }
.seller-dashboard-reference .seller-ledger th { background:#121d26; color:#aab8c2; font-size:11px; font-weight:600; }
.seller-dashboard-reference .seller-ledger td:last-child { max-width:340px; overflow:hidden; text-overflow:ellipsis; }
.seller-dashboard-reference .seller-ledger .ledger-id { color:#8798a4; font-variant-numeric:tabular-nums; }
.seller-dashboard-reference .seller-ledger .positive { color:#00df82; font-weight:700; }
.seller-dashboard-reference .seller-ledger .negative { color:#e2a5a5; font-weight:650; }
.seller-dashboard-reference .seller-ledger-status { display:inline-block; padding:4px 7px; border-radius:6px; background:rgba(0,223,130,.1); color:#65e7ad; font-size:10px; }
.seller-dashboard-reference .seller-ledger-status.review { background:rgba(244,173,35,.12); color:#f2bf62; }
.seller-dashboard-reference .seller-ledger-status.neutral { background:#202c35; color:#aebbc4; }
.seller-dashboard-reference .seller-ledger-empty { min-height:142px; display:grid; justify-items:center; align-content:center; gap:7px; color:#97a6b0; text-align:center; }
.seller-dashboard-reference .seller-ledger-empty > span { color:#8595a1; font-size:24px; }
.seller-dashboard-reference .seller-ledger-empty strong { color:#dce4e9; font-size:13px; }
.seller-dashboard-reference .seller-ledger-empty small { max-width:480px; color:#8999a4; font-size:11px; line-height:1.5; }
.seller-dashboard-reference .seller-finance-demo-note { margin:0; color:#71828e; font-size:10px; text-align:right; }

/* Seller order management */
.seller-dashboard-reference .seller-orders-page { display:grid; gap:18px; color:#e9eff5; }
.seller-dashboard-reference .seller-orders-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.seller-dashboard-reference .seller-order-filters { display:flex; flex-wrap:wrap; gap:8px; }
.seller-dashboard-reference .seller-order-filters button { min-height:46px; display:inline-flex; align-items:center; gap:11px; padding:0 13px; border:1px solid #202d37; border-radius:11px; background:#0e171f; color:#b7c5cf; font-size:13px; white-space:nowrap; }
.seller-dashboard-reference .seller-order-filters button:hover { border-color:#315044; color:#e8f0f4; }
.seller-dashboard-reference .seller-order-filters button.active { border-color:#00d980; background:rgba(0,223,130,.08); color:#00e58a; }
.seller-dashboard-reference .seller-order-filters button span { min-width:23px; height:23px; display:grid; place-items:center; padding:0 5px; border-radius:8px; background:#1e2c35; color:#d7e1e7; font-size:11px; font-weight:700; }
.seller-dashboard-reference .seller-order-filters button.active span { background:#0b5038; color:#dcfff0; }
.seller-dashboard-reference .seller-orders-search { width:min(100%,390px); height:48px; display:flex; align-items:center; gap:10px; padding:0 13px; border:1px solid #22313c; border-radius:11px; background:#101a23; }
.seller-dashboard-reference .seller-orders-search svg { width:20px; height:20px; flex:none; fill:none; stroke:#91a4b2; stroke-width:2; }
.seller-dashboard-reference .seller-orders-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#eaf0f4; font-size:12px; }
.seller-dashboard-reference .seller-orders-search input::placeholder { color:#899aa7; }
.seller-dashboard-reference .seller-orders-table-wrap { width:100%; overflow:visible; border:1px solid #202d37; border-radius:14px; background:#0c141b; }
.seller-dashboard-reference .seller-orders-table-wrap[style*="--seller-orders-page-size"] { min-height:calc(50px + var(--seller-orders-page-size, 5) * 95px); }
.seller-dashboard-reference .seller-orders-table { width:100%; border-collapse:separate; border-spacing:0 5px; table-layout:auto; color:#dce5ea; text-align:left; }
.seller-dashboard-reference .seller-orders-table th { padding:12px 10px; border-bottom:1px solid #1d2a33; color:#a9b8c2; font-size:11px; font-weight:550; white-space:nowrap; }
.seller-dashboard-reference .seller-orders-table th:first-child,.seller-dashboard-reference .seller-orders-table td:first-child { padding-left:16px; }
.seller-dashboard-reference .seller-orders-table td { min-height:72px; padding:10px; border-top:1px solid #1d2a33; border-bottom:1px solid #1d2a33; background:#0d161e; font-size:12px; vertical-align:middle; }
.seller-dashboard-reference .seller-orders-table td:first-child { border-left:1px solid #1d2a33; border-radius:11px 0 0 11px; }
.seller-dashboard-reference .seller-orders-table td:last-child { border-right:1px solid #1d2a33; border-radius:0 11px 11px 0; }
.seller-dashboard-reference .seller-orders-table tr.seller-order-spacer td { height:90px; padding:0; border:0; background:transparent; }
.seller-dashboard-reference .seller-order-product { min-width:245px; display:flex; align-items:center; gap:12px; }
.seller-dashboard-reference .seller-order-product img { width:68px; height:68px; flex:none; border:1px solid #24333d; border-radius:10px; background:#111b23; object-fit:cover; }
.seller-dashboard-reference .seller-order-product > span { min-width:0; display:grid; gap:5px; }
.seller-dashboard-reference .seller-order-product strong { display:-webkit-box; overflow:hidden; color:#edf2f5; font-size:13px; line-height:1.35; -webkit-line-clamp:1; -webkit-box-orient:vertical; }
.seller-dashboard-reference .seller-order-product small { overflow:hidden; color:#97a8b3; font-size:11px; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.seller-dashboard-reference .seller-order-product .seller-order-id { color:#8294a1; letter-spacing:.02em; }
.seller-dashboard-reference .seller-order-buyer { color:#d8e2e8; white-space:nowrap; }
.seller-dashboard-reference .seller-order-copy { margin-left:4px; padding:2px 4px; border:0; background:transparent; color:#8fa2af; cursor:pointer; }
.seller-dashboard-reference .seller-order-copy:hover { color:#00df82; }
.seller-dashboard-reference .seller-order-amount { color:#eef4f7; font-size:15px !important; font-weight:750; white-space:nowrap; }
.seller-dashboard-reference .seller-payment { display:inline-flex; align-items:center; gap:7px; color:#dce5ea; white-space:nowrap; }
.seller-dashboard-reference .seller-payment i { width:30px; height:30px; display:grid; place-items:center; border:1px solid rgba(0,223,130,.3); border-radius:8px; background:rgba(0,223,130,.08); color:#00df82; font-size:16px; font-style:normal; }
.seller-dashboard-reference .seller-order-status { display:inline-flex; align-items:center; gap:7px; padding:6px 9px; border-radius:8px; font-size:11px; font-weight:650; white-space:nowrap; }
.seller-dashboard-reference .seller-order-status i { width:8px; height:8px; border-radius:50%; background:currentColor; }
.seller-dashboard-reference .seller-order-status.processing { background:rgba(255,185,35,.12); color:#f0bd3c; }
.seller-dashboard-reference .seller-order-status.completed { background:rgba(0,223,130,.12); color:#00df82; }
.seller-dashboard-reference .seller-order-status.cancelled { background:rgba(244,71,71,.13); color:#ff7777; }
.seller-dashboard-reference .seller-order-date { color:#c7d2d9; font-size:11px; white-space:nowrap; }
.seller-dashboard-reference .seller-order-date small { display:block; margin-top:4px; color:#a1b0ba; font-size:11px; }
.seller-dashboard-reference .seller-order-actions { display:flex; align-items:center; gap:7px; }
.seller-dashboard-reference .seller-order-open,.seller-dashboard-reference .seller-order-more { min-height:39px; border:1px solid #293843; border-radius:9px; background:#14212b; color:#e4ebef; font-size:11px; font-weight:650; white-space:nowrap; }
.seller-dashboard-reference .seller-order-open { padding:0 12px; }
.seller-dashboard-reference .seller-order-open:hover,.seller-dashboard-reference .seller-order-more:hover { border-color:#3b5a4d; background:#182a2b; }
.seller-dashboard-reference .seller-order-more { width:39px; padding:0; font-size:14px; letter-spacing:1px; }
.seller-dashboard-reference .seller-order-menu-wrap { position:relative; }
.seller-dashboard-reference .seller-order-menu { position:absolute; z-index:5; top:calc(100% + 6px); right:0; width:158px; display:grid; padding:5px; border:1px solid #293943; border-radius:10px; background:#111c24; box-shadow:0 12px 28px #0008; }
.seller-dashboard-reference .seller-order-menu button { padding:9px 10px; border:0; border-radius:7px; background:transparent; color:#dce6eb; text-align:left; font-size:11px; cursor:pointer; }
.seller-dashboard-reference .seller-order-menu button:hover { background:#1b2c34; color:#00df82; }
.seller-dashboard-reference .seller-orders-empty { min-height:170px; display:grid; align-content:center; justify-items:center; gap:7px; color:#dce5ea; text-align:center; }
.seller-dashboard-reference .seller-orders-table tr:has(.seller-orders-empty) > td { height:90px; padding:0; border:0; background:transparent; }
.seller-dashboard-reference .seller-orders-empty { min-height:90px; }
.seller-dashboard-reference .seller-orders-empty small { color:#91a2ae; font-size:12px; }
.seller-dashboard-reference .seller-orders-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; color:#a7b5be; font-size:11px; }
.seller-dashboard-reference .seller-orders-footer > label { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.seller-dashboard-reference .seller-orders-footer select { min-height:40px; padding:0 11px; border:1px solid #263640; border-radius:9px; background:#101a22; color:#e0e8ed; }
.seller-dashboard-reference .seller-orders-pagination { display:flex; align-items:center; gap:5px; }
.seller-dashboard-reference .seller-orders-pagination button { width:39px; height:39px; border:1px solid #22313a; border-radius:9px; background:#101a22; color:#d7e0e5; font-size:15px; }
.seller-dashboard-reference .seller-orders-pagination button:hover:not(:disabled),.seller-dashboard-reference .seller-orders-pagination button.active { border-color:#00c977; background:rgba(0,223,130,.1); color:#00e58a; }
.seller-dashboard-reference .seller-orders-pagination button:disabled { opacity:.42; cursor:not-allowed; }
@media(max-width:1200px) {
  .seller-dashboard-reference .seller-orders-table-wrap { overflow:auto; }
  .seller-dashboard-reference .seller-orders-table { min-width:1040px; }
}
@media(max-width:760px) {
  .seller-dashboard-reference .seller-orders-toolbar { align-items:stretch; flex-direction:column; }
  .seller-dashboard-reference .seller-order-filters { overflow:auto; flex-wrap:nowrap; }
  .seller-dashboard-reference .seller-order-filters button { min-height:42px; padding:0 10px; font-size:11px; }
  .seller-dashboard-reference .seller-orders-search { width:100%; }
  .seller-dashboard-reference .seller-orders-footer { flex-wrap:wrap; }
  .seller-dashboard-reference .seller-orders-footer > span { width:100%; text-align:right; }
}

@media(max-width:1000px) {
  .seller-dashboard-reference .seller-chat-workspace { grid-template-columns:minmax(250px,.42fr) minmax(0,1fr); }
  .seller-dashboard-reference .seller-finance-summary { gap:10px; }
  .seller-dashboard-reference .seller-finance-stat { gap:10px; padding:14px; }
  .seller-dashboard-reference .seller-finance-icon { width:46px; height:46px; font-size:23px; }
  .seller-dashboard-reference .seller-finance-stat strong { font-size:22px; }
}
@media(max-width:760px) {
  .seller-dashboard-reference .seller-page-title h2 { font-size:25px; }
  .seller-dashboard-reference .seller-chat-workspace { grid-template-columns:1fr; min-height:0; }
  .seller-dashboard-reference .seller-chat-list { max-height:260px; border-right:0; border-bottom:1px solid #1d2932; }
  .seller-dashboard-reference .seller-chat-items { max-height:180px; }
  .seller-dashboard-reference .seller-chat-thread { min-height:440px; }
  .seller-dashboard-reference .seller-chat-messages { min-height:290px; }
  .seller-dashboard-reference .seller-finance-summary { grid-template-columns:1fr; }
  .seller-dashboard-reference .seller-finance-stat { min-height:100px; }
  .seller-dashboard-reference .seller-finance-actions-grid { grid-template-columns:1fr; }
  .seller-dashboard-reference .seller-finance-history-head { align-items:flex-start; flex-direction:column; }
  .seller-dashboard-reference .seller-finance-history-head nav { width:100%; overflow:auto; }
  .seller-dashboard-reference .seller-finance-history-head nav button { white-space:nowrap; }
  .seller-dashboard-reference .seller-ledger { min-width:760px; }
}
@media(max-width:480px) {
  .seller-dashboard-reference .seller-chat-item { grid-template-columns:40px minmax(0,1fr) auto; gap:8px; padding:10px 7px; }
  .seller-dashboard-reference .seller-chat-avatar { width:40px; height:40px; }
  .seller-dashboard-reference .seller-chat-item-meta em { max-width:68px; }
  .seller-dashboard-reference .seller-chat-order-status { display:none; }
  .seller-dashboard-reference .seller-chat-compose { gap:6px; padding:8px; }
  .seller-dashboard-reference .seller-chat-attach,.seller-dashboard-reference .seller-chat-send { width:42px; height:42px; }
  .seller-dashboard-reference .seller-amount-presets { gap:5px; }
  .seller-dashboard-reference .seller-amount-presets button { min-height:39px; font-size:12px; }
}
