/* Sunflower Yellow v1.0. Reuse these tokens and controls for TINDACO add-ons. */
:root {
  --td-sunflower: #f4c430;
  --td-ink: #222;
  --td-line: #d5d9d3;
  --td-row-padding: 8px;
  --td-control-height: 40px;
}
.workspace-shell { font-family: Inter, system-ui, sans-serif; }
.workspace-shell .admin-nav-group { gap: 0; }
.workspace-shell .admin-nav-group :is(a, summary) {
  box-sizing: border-box;
  min-height: 30px;
  padding-block: 4px;
  font-size: 13px;
  line-height: 20px;
}
.workspace-shell .admin-nav-group [aria-current="page"] {
  background: #fff1b7;
  box-shadow: inset 3px 0 var(--td-sunflower);
  color: var(--td-ink);
}
.workspace-shell .admin-user-row { padding-block: var(--td-row-padding); }
.workspace-shell .admin-user-row strong { font-size: 14px; font-weight: 500; }
.workspace-shell .owner-profile-editor > label {
  display: grid;
  grid-template-columns: 8ch minmax(0, 1fr);
  align-items: center;
  gap: 2px 6px;
  padding-block: 4px;
}
.owner-profile-editor > label > :is(input, textarea, select) { min-width: 0; width: 100%; }
.workspace-shell .button:is(.td-save,.td-decision) {
  width: fit-content;
  min-width: 0;
  min-height: var(--td-control-height);
  justify-self: start;
  padding-inline: 9px;
  border: 1px solid var(--td-line);
  border-radius: 7px;
  background: white;
  color: var(--td-ink);
  box-shadow: 0 1px 2px #25322216;
  font-size: 13px;
}
.workspace-shell .button.td-decision { background: var(--td-sunflower); border-color: #d5a822; }
.workspace-shell .admin-review-label { background: transparent; color: var(--td-ink); text-decoration: underline; text-underline-offset: 4px; padding-inline: 6px; }
.td-loading { display: flex; align-items: center; gap: 8px; animation: td-wait 1s step-end both; }
.td-twin-bars { display: inline-flex; gap: 3px; height: 14px; }
.td-twin-bars::before,.td-twin-bars::after {
  content: ''; width: 3px; background: #aa8007; border-radius: 2px;
  animation: td-pulse .9s ease-in-out infinite alternate;
}
.td-twin-bars::after { animation-delay: -.4s; }
@keyframes td-wait { from { visibility: hidden; } to { visibility: visible; } }
@keyframes td-pulse { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (pointer: coarse), (max-width: 700px) {
  :root { --td-control-height: 44px; }
  .workspace-shell .admin-nav-group :is(a, summary) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .td-twin-bars::before,.td-twin-bars::after { animation: none; }
}


/* Sunflower Yellow — shared member and management panels */
.workspace-shell.member-shell {
  --td-paper: #fff;
  --td-canvas: #f7f8fa;
  --td-border: #d9dde3;
  --td-ink: #242724;
  --td-muted: #58616c;
  --td-selection: #fff3cc;
  background: var(--td-canvas);
  color: var(--td-ink);
  font: 14px/1.45 Inter, system-ui, sans-serif;
}
.workspace-shell.member-shell .portal-content { min-width: 0; gap: 12px; }
.workspace-shell.member-shell :is(.panel,.account-summary-card,.address-card) {
  background: var(--td-paper);
  border: 1px solid var(--td-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px #202c2009;
}
.workspace-shell.member-shell :is(.account-summary-grid,.address-book) { gap: 10px; }
.workspace-shell.member-shell .account-summary-card dl { margin: 8px 0 0; }
.workspace-shell.member-shell .account-summary-card dl > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) minmax(0,1fr);
  gap: 8px;
  padding-block: 5px;
  align-items: baseline;
}
.workspace-shell.member-shell .account-summary-card dt { font-size: 13px; color: var(--td-muted); }
.workspace-shell.member-shell .account-summary-card dd { margin: 0; overflow-wrap: anywhere; }
.workspace-shell.member-shell :is(.account-summary-card h4,.address-book-heading h2,.panel-page-heading h1) {
  color: var(--td-ink); font-weight: 600; line-height: 1.25;
}
.workspace-shell.member-shell .portal-nav { background: white; border: 1px solid var(--td-border); border-radius: 12px; padding: 10px; }
.workspace-shell.member-shell .portal-nav a { border-radius: 7px; padding: 6px 10px; font-size: 13px; }
.workspace-shell.member-shell .portal-nav :is(a.active,a[aria-current="page"]) { background: var(--td-selection); color: var(--td-ink); box-shadow: inset 3px 0 #e5ac13; }
.workspace-shell.member-shell .address-card-actions { gap: 8px; }
.workspace-shell.member-shell .button.td-save {
  width: fit-content; min-width: 0; min-height: 32px; padding: 4px 12px;
  background: white; color: var(--td-ink); border: 1px solid #dadcd9;
  border-bottom: 2px solid #b0b8b0; border-radius: 8px; box-shadow: 0 2px 5px #202c2012;
}
@media (max-width: 767px) {
  .workspace-shell.member-shell :is(.panel,.account-summary-card,.address-card) { padding: 12px; }
  .workspace-shell.member-shell .account-summary-card dl > div { grid-template-columns: minmax(5rem,6.5rem) minmax(0,1fr); }
  .workspace-shell.member-shell .button.td-save { min-height: 44px; }
}


.member-shell .member-group a { border-radius: 7px; padding: 6px 10px; font-size: 13px; }
.member-shell .member-group a[aria-current="page"] { background: #fff1b7; color: #222; box-shadow: inset 3px 0 #e3af16; }
.member-shell .portal-content :is(.member-saved-card,.product-form-card,.case-card) {
  padding: 16px; background: white; border: 1px solid var(--td-border); border-radius: 12px;
}
.member-shell .portal-content :is(.form,.product-form-fields,.seller-application-form,.address-editor-fields) :is(input:not([type]),input[type=text],input[type=email],input[type=tel],select,textarea) {
  box-sizing: border-box; min-width: 0; min-height: var(--td-control-height); padding-inline: 10px; border: 1px solid var(--td-border); border-radius: 8px; font: inherit;
}
.portal-content :is(.td-loading,:has(.td-loading)) ~ .td-loading,
.portal-content :is(.td-loading,:has(.td-loading)) ~ * .td-loading { display: none; }

/* Member PRICELIST, inside the authenticated member workspace. */
.member-shell .pl h1 { font-size: clamp(20px,2vw,24px); font-weight: 600; }
.member-shell .pl :is(.pl-actions,.pl-filters) { gap: 8px; }
.member-shell .pl .pl-filters { margin-block: 12px; }
.member-shell .pl .pl-editor { padding: 16px; margin-block: 12px; background: white; border: 1px solid var(--td-border); border-radius: 12px; }
.member-shell .pl :is(td,th) { padding: 8px 10px; border-color: var(--td-border); }
.member-shell .pl :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { min-height: var(--td-control-height); border-color: var(--td-border); border-radius: 8px; }
.member-shell .pl button { font: inherit; min-height: 32px; }
.member-shell .pl :is(.pl-choice,fieldset) { border-color: var(--td-border); }
@media (pointer: coarse), (max-width: 700px) { .member-shell .pl button { min-height: 44px; } }

/* Approved member panel layout */
.member-shell .member-group summary { padding: 8px; font-size: 12px; font-weight: 650; letter-spacing: .05em; }
.member-shell .portal-content h1 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.035em; }
.member-shell .portal-content :is(.record.order-row,.notification-row,.conversation-row,.member-saved-card) { padding: 9px 10px; }
.member-shell .portal-content :is(.products-table,.pl-table) :is(th,td) { padding: 8px 10px; }
.member-shell .portal-content :is(.order-filters,.products-toolbar,.product-inline-actions,.address-editor-actions) { gap: 8px; }
.member-shell .portal-content :is(.address-dialog,.product-dialog) { border-radius: 12px; border: 1px solid var(--td-border); }
.member-shell .portal-content .button.td-save { width: fit-content; font-size: 13px; }
@media (min-width: 701px) {
  .member-shell :is(.product-form-card,.seller-field-grid,.address-field-grid) > label:has(> :is(input:not([type=checkbox],[type=radio],[type=file]),textarea,select)) {
    display: grid; grid-template-columns: minmax(6rem, 7.8rem) minmax(0,1fr); align-items: center; gap: 4px 8px;
  }
}

/* My Account / Profile */
.member-shell .portal-content .my-profile { max-width: 960px; }
.member-shell .my-profile h2 { font-size:clamp(20px,2vw,24px); font-weight:600; line-height:1.25; }
.member-shell .my-profile .profile-row {
  grid-template-columns: minmax(95px,125px) minmax(0,1fr) auto;
  padding:8px 4px; gap:4px 8px; align-items:center;
}
.member-shell .my-profile .profile-label { font-size:13px; font-weight:500; color:#58616c; }
.member-shell .my-profile .profile-value { min-width:0; overflow-wrap:anywhere; font-size:14px; }
.member-shell .my-profile .profile-change, .member-shell .my-profile .profile-cancel {
  background:transparent; color:#242724; border:0; box-shadow:none; width:fit-content;
  min-width:0; min-height:32px; padding:4px 6px; font-size:13px; text-decoration:underline; text-underline-offset:4px;
}
.member-shell .my-profile .profile-editor .button {
  background:white; color:#242724; border:1px solid #dadcd9; border-bottom:2px solid #b0b8b0;
  box-shadow:0 2px 5px #202c2012; border-radius:8px; width:fit-content; min-width:0; min-height:32px; padding:4px 12px;
}
.member-shell .my-profile .profile-editor input { min-width:0; max-width:100%; border-radius:8px; }
@media(max-width:700px){
  .member-shell .my-profile .profile-row { grid-template-columns:minmax(75px,90px) minmax(0,1fr) auto; }
  .member-shell .my-profile .profile-editor { grid-column:1/-1; min-width:0; }
  .member-shell .my-profile :is(.profile-change,.profile-cancel,.profile-editor .button) { min-height:44px; }
}

/* My Pricelist controls, rendered by the member add-on */
.member-shell .portal-content .pl .pl-head {gap:8px 12px;padding:14px 16px}
.member-shell .portal-content .pl .pl-head h1 {margin:2px 0 5px}
.member-shell .portal-content .pl :is(.pl-actions,.pl-row-actions,.pl-tabs) {gap:6px;flex-wrap:wrap}
.member-shell .portal-content .pl :is(.pl-actions .button,.pl-row-actions button,.pl-tabs button,.pl-editor .button,.pl-settings .button) {box-sizing:border-box;min-width:0;width:fit-content;height:auto;min-height:32px;padding:4px 10px;font:500 13px/20px system-ui;border-radius:8px}
.member-shell .portal-content .pl :is(.pl-actions .button.light,.pl-editor .button,.pl-settings .button){background:#fff;color:#242724;border:1px solid #dadcd9;border-bottom:2px solid #b0b8b0;box-shadow:0 2px 5px #202c2012}
.member-shell .portal-content .pl .pl-actions .button:not(.light){background:#f4c430;color:#242724;border:1px solid #d5a822}
.member-shell .portal-content .pl .pl-tabs button{background:white;color:#363934;border:1px solid #d9dde3}
.member-shell .portal-content .pl .pl-tabs button[aria-pressed=true]{background:#fff1b7;color:#242724;border-color:#e0bd50}
.member-shell .portal-content .pl .pl-row-actions button{background:transparent;border:0;box-shadow:none;text-decoration:underline;text-underline-offset:4px;padding-inline:4px;color:#242724}
.member-shell .portal-content .pl .pl-row-actions .pl-delete{color:#93382f}
.member-shell .portal-content .pl .pl-filters{margin:10px 0;gap:8px}
.member-shell .portal-content .pl .pl-v2-editor{background:white;border:1px solid #d9dde3;padding:14px;border-radius:12px}
@media(min-width:701px){.member-shell .portal-content .pl .pl-v2-editor label:has(> :is(input[type=text],input[type=number],textarea,select):only-child){display:grid;grid-template-columns:minmax(90px,125px) minmax(0,1fr);align-items:center;gap:8px}}
@media(max-width:700px),(pointer:coarse){.member-shell .portal-content .pl :is(.pl-actions .button,.pl-row-actions button,.pl-tabs button,.pl-editor .button,.pl-settings .button){min-height:44px}}

.member-shell .portal-content .pl .pl-head > a.button[href^="/kiosk/"] {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:max-content;max-width:100%;min-width:0;min-height:32px;height:auto;align-self:center;justify-self:start;padding:4px 10px;font-size:13px;line-height:20px;border-radius:8px;}
@media(max-width:700px),(pointer:coarse){.member-shell .portal-content .pl .pl-head > a.button[href^="/kiosk/"] {min-height:44px;}}
