.smm-row-tools { display:inline-flex; align-items:center; gap:4px; vertical-align:middle; white-space:nowrap; }
.smm-detail { display:inline-flex!important; align-items:center; justify-content:center; width:32px; height:32px; min-height:32px; padding:0; margin:0!important; border:1px solid var(--border); border-radius:9px; background:var(--surface-3); color:var(--ink-muted); font:600 17px/1 var(--font-sans); text-decoration:none; cursor:pointer; vertical-align:middle; }
.smm-detail:hover,.smm-detail:focus-visible { color:var(--accent-text); outline:2px solid var(--accent); outline-offset:1px; }
.smm-detail--done { color:var(--accent-text); }
.smm-camptable tbody td { padding-top:8px!important; padding-bottom:8px!important; }
.smm-camptable .smm-camp__statecell { white-space:nowrap; }
.smm-camptable .smm-camp__statecell > * { display:inline-flex; vertical-align:middle; margin-top:0; }
.smm-camptable .smm-camp__statecell > [hidden] { display:none!important; }
.smm-camptable .smm-camp__cell .smm-camp__name,.smm-camptable .smm-camp__cell .smm-camp__svc { display:inline-block; vertical-align:middle; max-width:24ch; margin:0 8px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.smm-camptable .smm-camp__cell .smm-camp__svc { max-width:32ch; }
.smm-detail-panel { position:fixed; z-index:10000; width:280px; max-width:calc(100vw - 24px); box-sizing:border-box; padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--ink); box-shadow:0 8px 30px #0003; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.smm-detail-panel[hidden] { display:none; }
.smm-detail-panel p { margin:0 0 10px; }
.smm-detail-panel button,.smm-detail-panel a { display:inline-flex; padding:7px 10px; margin:3px 5px 0 0; border:1px solid var(--border); border-radius:8px; background:var(--surface-3); color:var(--accent-text); font:inherit; cursor:pointer; }
@media(max-width:767px){ .smm-detail { width:36px;height:36px; } .smm-camptable .smm-camp__cell .smm-camp__svc { max-width:26ch; } }

.smm-ordtable tbody td { padding-top:8px!important; padding-bottom:8px!important; }
@media(max-width:700px){
 .smm-camptable tbody tr { padding:8px 0;row-gap:2px; }
 .smm-camptable tbody td { padding-top:2px!important;padding-bottom:2px!important; }
 .smm-camptable .smm-camp__cell .smm-camp__name { display:block;max-width:100%; }
 .smm-camptable .smm-camp__cell .smm-camp__svc { max-width:calc(100% - 90px);margin-right:2px; }
 .smm-camptable .smm-camp__cell .smm-row-tools { gap:2px; }
}

/* Compact, aligned reference and action columns. */
.smm-camptable th,.smm-camptable td,.smm-ordtable th,.smm-ordtable td,.smm-admin-orders th,.smm-admin-orders td { text-align:center!important;vertical-align:middle!important; }
.smm-admin-orders td { padding-top:8px!important;padding-bottom:8px!important; }
.smm-row-brand { display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:0 6px;flex-shrink:0; }
.smm-camp__cell > .smm-row-tools { margin-right:6px; }
.smm-camp__progcell > * { margin-inline:auto; }
.smm-ordtable .smm-svcname { justify-content:center; }
.smm-detail-panel { max-height:calc(100dvh - 24px);overflow:auto; }
.smm-detail-panel p { white-space:pre-line; }
@media(min-width:701px){.smm-camp__cell { white-space:nowrap; }}
@media(max-width:700px){.smm-camptable .smm-camp__cell .smm-camp__name { display:inline-block;max-width:calc(100% - 135px); }.smm-camptable .smm-camp__cell .smm-camp__svc { display:block;max-width:100%;margin-top:3px; }}
[data-brand="Instagram"] .smm-i { color:#C13584!important; }
[data-brand="Facebook"] .smm-i { color:#1877F2!important; }
[data-brand="YouTube"] .smm-i { color:#D91F1F!important; }
[data-brand="TikTok"] .smm-i { color:#00A8B5!important; }
[data-brand="Twitter"] .smm-i { color:#14171A!important; }
[data-brand="Telegram"] .smm-i { color:#1F93D2!important; }
[data-brand="Spotify"] .smm-i { color:#148A43!important; }
[data-brand="Twitch"] .smm-i { color:#7A34D6!important; }
[data-brand="Discord"] .smm-i { color:#4954CE!important; }
[data-brand="LinkedIn"] .smm-i { color:#0A66C2!important; }
[data-brand="Reddit"] .smm-i { color:#FF4500!important; }
[data-brand="Pinterest"] .smm-i { color:#E60023!important; }
[data-brand="SoundCloud"] .smm-i { color:#FF5500!important; }
[data-brand="Snapchat"] .smm-i { color:#A68500!important; }
[data-brand="WhatsApp"] .smm-i { color:#128C7E!important; }
[data-theme="dark"] [data-brand="Twitter"] .smm-i {color:#E7E9EA!important;}

/* Apply the same palette to sprite marks without a data-brand wrapper. */
.smm-i:has(use[href$="#b-youtube"]),.smm-i:has(use[xlink\:href$="#b-youtube"]) {color:#D91F1F!important;}
.smm-i:has(use[href$="#b-instagram"]),.smm-i:has(use[xlink\:href$="#b-instagram"]) {color:#C13584!important;}
.smm-i:has(use[href$="#b-facebook"]),.smm-i:has(use[xlink\:href$="#b-facebook"]) {color:#1877F2!important;}
.smm-i:has(use[href$="#b-tiktok"]),.smm-i:has(use[xlink\:href$="#b-tiktok"]) {color:#00A8B5!important;}
.smm-i:has(use[href$="#b-x"]),.smm-i:has(use[xlink\:href$="#b-x"]) {color:#14171A!important;}
.smm-i:has(use[href$="#b-telegram"]),.smm-i:has(use[xlink\:href$="#b-telegram"]) {color:#1F93D2!important;}
.smm-i:has(use[href$="#b-spotify"]),.smm-i:has(use[xlink\:href$="#b-spotify"]) {color:#148A43!important;}
.smm-i:has(use[href$="#b-twitch"]),.smm-i:has(use[xlink\:href$="#b-twitch"]) {color:#7A34D6!important;}
.smm-i:has(use[href$="#b-discord"]),.smm-i:has(use[xlink\:href$="#b-discord"]) {color:#4954CE!important;}
.smm-i:has(use[href$="#b-linkedin"]),.smm-i:has(use[xlink\:href$="#b-linkedin"]) {color:#0A66C2!important;}
.smm-i:has(use[href$="#b-truthsocial"]),.smm-i:has(use[xlink\:href$="#b-truthsocial"]) {color:#5448EE!important;}
.smm-i:has(use[href$="#b-xiaohongshu"]),.smm-i:has(use[xlink\:href$="#b-xiaohongshu"]) {color:#FF2442!important;}
.smm-i:has(use[href$="#b-coinmarketcap"]),.smm-i:has(use[xlink\:href$="#b-coinmarketcap"]) {color:#3861FB!important;}
.smm-i:has(use[href$="#b-soundcloud"]),.smm-i:has(use[xlink\:href$="#b-soundcloud"]) {color:#FF5500!important;}
.smm-i:has(use[href$="#b-snackvideo"]),.smm-i:has(use[xlink\:href$="#b-snackvideo"]) {color:#B88D00!important;}
.smm-i:has(use[href$="#b-audiomack"]),.smm-i:has(use[xlink\:href$="#b-audiomack"]) {color:#C47F00!important;}
.smm-i:has(use[href$="#b-apple"]),.smm-i:has(use[xlink\:href$="#b-apple"]) {color:#FA243C!important;}
.smm-i:has(use[href$="#b-pinterest"]),.smm-i:has(use[xlink\:href$="#b-pinterest"]) {color:#E60023!important;}
.smm-i:has(use[href$="#b-snapchat"]),.smm-i:has(use[xlink\:href$="#b-snapchat"]) {color:#A68500!important;}
.smm-i:has(use[href$="#b-vk"]),.smm-i:has(use[xlink\:href$="#b-vk"]) {color:#0077FF!important;}
.smm-i:has(use[href$="#b-dailymotion"]),.smm-i:has(use[xlink\:href$="#b-dailymotion"]) {color:#0066DC!important;}
.smm-i:has(use[href$="#b-website"]),.smm-i:has(use[xlink\:href$="#b-website"]) {color:#008575!important;}
.smm-i:has(use[href$="#b-bluesky"]),.smm-i:has(use[xlink\:href$="#b-bluesky"]) {color:#0285FF!important;}
.smm-i:has(use[href$="#b-binance"]),.smm-i:has(use[xlink\:href$="#b-binance"]) {color:#A68000!important;}
.smm-i:has(use[href$="#b-threads"]),.smm-i:has(use[xlink\:href$="#b-threads"]) {color:#14171A!important;}
.smm-i:has(use[href$="#b-shopee"]),.smm-i:has(use[xlink\:href$="#b-shopee"]) {color:#EE4D2D!important;}
.smm-i:has(use[href$="#b-github"]),.smm-i:has(use[xlink\:href$="#b-github"]) {color:#14171A!important;}
.smm-i:has(use[href$="#b-deezer"]),.smm-i:has(use[xlink\:href$="#b-deezer"]) {color:#A238FF!important;}
.smm-i:has(use[href$="#b-reddit"]),.smm-i:has(use[xlink\:href$="#b-reddit"]) {color:#FF4500!important;}
.smm-i:has(use[href$="#b-rumble"]),.smm-i:has(use[xlink\:href$="#b-rumble"]) {color:#568B00!important;}
.smm-i:has(use[href$="#b-tumblr"]),.smm-i:has(use[xlink\:href$="#b-tumblr"]) {color:#36465D!important;}
.smm-i:has(use[href$="#b-trovo"]),.smm-i:has(use[xlink\:href$="#b-trovo"]) {color:#168D4C!important;}
.smm-i:has(use[href$="#b-quora"]),.smm-i:has(use[xlink\:href$="#b-quora"]) {color:#B92B1C!important;}
.smm-i:has(use[href$="#b-vimeo"]),.smm-i:has(use[xlink\:href$="#b-vimeo"]) {color:#1686B0!important;}
.smm-i:has(use[href$="#b-likee"]),.smm-i:has(use[xlink\:href$="#b-likee"]) {color:#E52C87!important;}
.smm-i:has(use[href$="#b-kwai"]),.smm-i:has(use[xlink\:href$="#b-kwai"]) {color:#E76B00!important;}
.smm-i:has(use[href$="#b-kick"]),.smm-i:has(use[xlink\:href$="#b-kick"]) {color:#278800!important;}
[data-theme="dark"] .smm-i:has(use[href$="#b-x"]) {color:#E7E9EA!important;}
[data-theme="dark"] .smm-i:has(use[href$="#b-github"]) {color:#E7E9EA!important;}
[data-theme="dark"] .smm-i:has(use[href$="#b-threads"]) {color:#E7E9EA!important;}
[data-theme="dark"] .smm-i:has(use[href$="#b-tumblr"]) {color:#E7E9EA!important;}

.smm-ordtable td:nth-child(7),.smm-admin-orders td:nth-child(8) {white-space:nowrap;}
.smm-ordtable .smm-svcname {align-items:center;}

@media(max-width:700px){
 .smm-wrap .smm-ordtable {min-width:0;width:100%;display:block;}
 .smm-ordtable thead {display:none;}
 .smm-ordtable tbody {display:block;}
 .smm-wrap .smm-ordtable tbody tr {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:10px;gap:6px;border-bottom:1px solid var(--border);}
 .smm-wrap .smm-ordtable tbody td {display:block;position:static!important;width:auto!important;min-width:0;padding:0!important;border:0;}
 .smm-wrap .smm-ordtable tbody td:first-child {grid-column:1/3;overflow:visible;}
 .smm-ordtable tbody td:nth-child(2) {grid-column:1/-1;grid-row:2;}
 .smm-ordtable tbody td:nth-child(7) {grid-column:3/5;grid-row:1;}
 .smm-ordtable tbody td:nth-child(8) {grid-column:1/-1;}
 .smm-ordtable tbody td:nth-child(3)::before {content:'Charged';}
 .smm-ordtable tbody td:nth-child(4)::before {content:'Start';}
 .smm-ordtable tbody td:nth-child(5)::before {content:'Quantity';}
 .smm-ordtable tbody td:nth-child(6)::before {content:'Remains';}
 .smm-ordtable tbody td:nth-child(n+3):nth-child(-n+6)::before {display:block;font:500 11px/1.5 var(--font-sans);color:var(--ink-muted);}
 .smm-ordtable .smm-svcname__text {min-width:0;}
 .smm-ordtable .smm-ord__svc,.smm-ordtable .smm-ord__link {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .smm-admin-orders.adm-records tbody tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px;}
 .smm-admin-orders.adm-records tbody td {display:block;padding:4px!important;min-width:0;width:auto!important;}
 .smm-admin-orders.adm-records tbody td::before {position:static;display:block;width:auto;text-align:center;}
 .smm-admin-orders.adm-records tbody td:nth-child(4),.smm-admin-orders.adm-records tbody td:nth-child(8),.smm-admin-orders.adm-records tbody td:nth-child(9) {grid-column:1/-1;}
}
@media(min-width:701px){
 .smm-wrap .smm-ordtable {table-layout:fixed;width:100%;min-width:0;}
 .smm-ordtable th:nth-child(1) {width:14%;}
 .smm-ordtable th:nth-child(2) {width:30%;}
 .smm-ordtable th:nth-child(3) {width:9%;}
 .smm-ordtable th:nth-child(4),.smm-ordtable th:nth-child(5),.smm-ordtable th:nth-child(6) {width:7%;}
 .smm-ordtable th:nth-child(7) {width:13%;}
 .smm-ordtable th:nth-child(8) {width:13%;}
 .smm-ordtable td,.smm-ordtable th {padding-inline:6px!important;}
 .smm-ordtable .smm-svcname__text {min-width:0;max-width:100%;}
 .smm-ordtable .smm-ord__svc {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 .smm-ordtable .smm-svcname__mark {flex-shrink:0;}
}

.smm-no-row-actions th:last-child,.smm-no-row-actions td:last-child {display:none!important;}
@media(min-width:701px){.smm-no-row-actions th:nth-child(2){width:43%;}.smm-ordtable th {white-space:normal;overflow-wrap:normal;}}
@media(min-width:701px){.smm-no-row-actions th:nth-child(4){width:6%;}.smm-no-row-actions th:nth-child(5){width:5%;}.smm-no-row-actions th:nth-child(6){width:10%;}}

/* Phone order cards: readable service, quiet metrics, one action bar. */
@media(max-width:700px){
 .smm-wrap .smm-ordtable tbody {display:grid;gap:12px;padding:12px;background:var(--surface-3);}
 .smm-wrap .smm-ordtable tbody tr {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 0;padding:14px!important;border:1px solid var(--border)!important;border-radius:14px;background:var(--surface);box-shadow:0 2px 5px #00000004;}
 .smm-wrap .smm-ordtable tbody tr td {border:0!important;box-shadow:none!important;background:transparent!important;}
 .smm-wrap .smm-ordtable tbody td:nth-child(2) {grid-row:1;grid-column:1/-1;text-align:left!important;}
 .smm-wrap .smm-ordtable .smm-svcname {display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;}
 .smm-wrap .smm-ordtable .smm-svcname__mark {margin:0;flex:0 0 30px;width:30px;height:30px;}
 .smm-wrap .smm-ordtable .smm-svcname__text {flex:1;min-width:0;text-align:left;}
 .smm-wrap .smm-ordtable .smm-ord__svc {display:block;white-space:normal!important;overflow:visible!important;max-width:none;overflow-wrap:anywhere;font-size:14px;line-height:1.5;font-weight:600;}
 .smm-wrap .smm-ordtable .smm-ord__link {display:block;margin-top:5px;font-size:12px;line-height:1.5;text-align:left;}
 .smm-wrap .smm-ordtable tbody td:nth-child(n+3):nth-child(-n+6) {grid-row:2;padding:8px 2px!important;background:var(--surface-3)!important;font-size:13px;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
 .smm-wrap .smm-ordtable tbody td:nth-child(3){grid-column:1;border-radius:8px 0 0 8px;}
 .smm-wrap .smm-ordtable tbody td:nth-child(4){grid-column:2;}
 .smm-wrap .smm-ordtable tbody td:nth-child(5){grid-column:3;}
 .smm-wrap .smm-ordtable tbody td:nth-child(6){grid-column:4;border-radius:0 8px 8px 0;}
 .smm-wrap .smm-ordtable tbody td:first-child {grid-row:3;grid-column:1/3;text-align:left!important;}
 .smm-wrap .smm-ordtable tbody td:nth-child(7) {grid-row:3;grid-column:3/5;text-align:right!important;}
 .smm-wrap .smm-ordtable .smm-detail {width:40px;height:40px;min-height:40px;border-radius:10px;}
 .smm-wrap .smm-ordtable tbody td:nth-child(8):empty {display:none;}
}
@media(max-width:350px){
 .smm-wrap .smm-ordtable tbody {padding:8px;gap:10px;}
 .smm-wrap .smm-ordtable tbody tr {padding:10px!important;}
}

/* Table metadata classes must not inherit the legacy col-* grid width. */
.smm-wrap .smm-table th.smm-col--opt,
.smm-wrap .smm-table td.smm-col--opt,
.smm-wrap .smm-table th.smm-col--opt2,
.smm-wrap .smm-table td.smm-col--opt2 { width:auto; }
/* Content-sized numeric columns leave the remaining space for service names. */
.smm-wrap .smm-table--svc { table-layout:auto; }
.smm-wrap .smm-table--svc > thead > tr > th:first-child { width:auto; }
.smm-wrap .smm-table--svc > thead > tr > th:not(:first-child),
.smm-wrap .smm-table--svc > tbody > tr > td:not(:first-child) {
 width:1%; white-space:nowrap; text-align:center!important;
}
.smm-wrap .smm-table--svc .smm-svcname__text { min-width:0; overflow-wrap:anywhere; }
@media(max-width:700px){
 .smm-wrap .smm-table--svc > thead > tr > th:first-child { min-width:240px; }
}

/* Let descriptive text use the row instead of fixed character limits. */
.smm-camptable th:first-child,.smm-camptable td.smm-camp__cell,
.smm-ordtable th:nth-child(2),.smm-ordtable td:nth-child(2),
.smm-admin-orders th:nth-child(4),.smm-admin-orders td:nth-child(4) {text-align:left!important;}
.smm-camp__line {display:flex;align-items:center;gap:8px;min-width:0;width:100%;}
.smm-camp__line > .smm-row-tools,.smm-camp__line > .smm-row-brand {flex:none;margin:0;}
.smm-camp__line > .smm-row-brand {width:32px;height:32px;box-sizing:border-box;border:1px solid var(--border);border-radius:9px;background:var(--surface-3);}
.smm-camp__line > .smm-row-brand .smm-i {width:20px;height:20px;}
@media(max-width:767px){.smm-camp__line > .smm-row-brand {width:36px;height:36px;}}
.smm-camptable .smm-camp__line .smm-camp__name {flex:0 1 auto;max-width:28%;min-width:0;margin:0;}
.smm-camptable .smm-camp__line .smm-camp__svc {flex:1;max-width:none;min-width:0;margin:0;display:block;}
.smm-ordtable .smm-svcname {justify-content:flex-start;}
.smm-ordtable .smm-svcname__text {flex:1;min-width:0;text-align:left;}
[data-title-detail] {cursor:default;}
[data-title-detail].smm-title-clipped {cursor:pointer;}
[data-title-detail]:focus-visible {outline:2px solid var(--accent);outline-offset:2px;border-radius:3px;}
@media(max-width:700px){
 .smm-camp__line {flex-wrap:wrap;}
 .smm-camptable .smm-camp__line .smm-camp__name {flex:1;max-width:none;}
 .smm-camptable .smm-camp__line .smm-camp__svc {flex-basis:100%;}
}

/* Stable reference width and a shared left edge for every service row. */
@media(min-width:701px){
 .smm-wrap .smm-ordtable th:first-child {width:120px;}
 .smm-wrap .smm-ordtable th:nth-child(2) {width:auto;}
 .smm-wrap .smm-ordtable td:first-child {white-space:nowrap;}
 .smm-admin-orders th:first-child,.smm-admin-orders th:nth-child(2) {width:58px;}
}
.smm-wrap .smm-ordtable .smm-svcname {width:100%;justify-content:flex-start;align-items:flex-start;gap:10px;}
.smm-wrap .smm-ordtable .smm-svcname__mark {flex:0 0 30px;width:30px;margin:1px 0 0;}
.smm-wrap .smm-ordtable .smm-svcname__text {flex:1;min-width:0;max-width:none;text-align:left!important;}
.smm-wrap .smm-ordtable .smm-ord__svc,.smm-wrap .smm-ordtable .smm-ord__link {max-width:100%;width:100%;text-align:left!important;}
.smm-admin-orders .adm-ellip {max-width:100%;text-align:left;}
.smm-admin-orders .smm-row-brand {width:24px;margin:0 6px 0 0;}

/* Statistics: reserve compact metrics and give titles the remaining column. */
.smm-stats-table {table-layout:fixed;width:100%;min-width:0!important;}
.smm-stats-table th:not(:first-child) {width:80px;}
.smm-stats-table th + th,.smm-stats-table td + td {border-left:1px solid var(--border-soft);}
.smm-stats-table .adm-ellip {width:100%;max-width:none;}
@media(max-width:480px){
 .smm-stats-table th:not(:first-child) {width:62px;}
 .smm-stats-table th,.smm-stats-table td {padding-left:8px;padding-right:8px;}
}

