/* SenaPed 14.8 — consistent navigation, readable labels and focused workspaces. */
body .home-tools, body #homeAdminTools129 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
body .home-tool {
  min-width:0; min-height:168px; display:flex; flex-direction:column; justify-content:flex-start;
  align-items:center; gap:14px; padding:22px 12px 18px; text-align:center; border-radius:20px;
}
body #app .home-tool .home-tool-icon {
  flex:none; width:76px; height:76px; border-radius:22px; color:var(--gold-dark);
  border:1px solid color-mix(in srgb,var(--gold) 35%,transparent);
  background:var(--gold-soft); box-shadow:none; transform:none;
}
body #app .home-tool .home-tool-icon .icon { width:42px; height:42px; stroke:currentColor; stroke-width:1.7; }
body .home-tool-copy b { font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
body .home-tool-copy small { font-size:12px; line-height:1.5; margin-top:6px; }
body .home-tool .home-tool-arrow { display:none; }
body .home-hero { display:flex; align-items:center; min-height:190px; padding:28px; gap:24px; }
body #app .home-hero .home-brand { position:static; order:2; flex:none; width:132px; max-width:25%; height:auto; max-height:76px; margin:0; mix-blend-mode:normal; background:#fff; padding:10px; border-radius:12px; }
body .home-hero .home-greeting { flex:1; padding:0; min-width:0; }
body .home-hero .home-greeting p { display:none; }
body .home-hero .home-greeting h1 { font-size:clamp(25px,2.7vw,40px); line-height:1.16; letter-spacing:-.035em; overflow-wrap:anywhere; }
body .home-hero .home-greeting small { color:#e7dfcf; margin-top:18px; max-width:100%; font-size:15px; line-height:1.65; white-space:normal; overflow:visible; }
.home-greeting .home-role { display:inline-flex; margin-bottom:12px; color:#e8c875; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
body .home-layout { grid-template-columns:minmax(0,1fr) 250px; }
body .home-main { min-width:0; gap:22px; }
body .home-kpi { min-width:0; }
body #homeCampaigns128 .home-kpi { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 20px; text-align:left; padding:20px; }
body #homeCampaigns128 .home-kpi > small { grid-column:1; grid-row:1; }
body #homeCampaigns128 .home-kpi > b { grid-column:1; grid-row:2; font-size:16px; }
body #homeCampaigns128 .home-kpi > strong { grid-column:2; grid-row:1/3; align-self:center; }
body #homeCampaigns128 .home-kpi > span { grid-column:1/-1; grid-row:3; }

/* Keep an icon rail visible. Expanding it reveals the same labeled controls. */
body #app { --nav-width:80px; }
body #app:has(#appSidebar.is-open) { --nav-width:270px; }
body #appSidebar {
  inset:12px auto 12px 12px; width:var(--nav-width); max-width:calc(100vw - 24px);
  padding:14px 10px; border-radius:22px; transform:none!important; visibility:visible!important;
  transition:width .2s ease; overflow-x:hidden; z-index:140;
}
body #appSidebar .sidebar-head { padding:0 0 12px; margin-bottom:12px; min-height:48px; }
body #appSidebar .sidebar-head .header-icon { display:inline-flex; color:#f0d28e; flex:none; }
body #appSidebar:not(.is-open) .sidebar-head { justify-content:center; }
body #appSidebar:not(.is-open) .sidebar-head .senaped-logo { display:none; }
body #appSidebar .sidebar-nav::before, body #appSidebar .sidebar-links::before { display:none; }
body #appSidebar .nav-button, body #appSidebar .sidebar-link { min-height:48px; gap:12px; min-width:0; }
body #appSidebar .nav-button .icon, body #appSidebar .sidebar-link .icon { width:24px; height:24px; flex:none; }
body #appSidebar:not(.is-open) :is(.nav-button,.sidebar-link) { justify-content:center; padding:10px; font-size:0; }
body #appSidebar:not(.is-open) :is(.nav-button,.sidebar-link) > span { display:none; }
body #appSidebar:not(.is-open) .nav-button::after { display:none; }
body #appSidebar:not(.is-open) .exclusive-lock129 { display:none; }
body #appSidebar:not(.is-open) .mobile-user-account { display:none; }
body .app-header { position:fixed; top:12px; left:calc(var(--nav-width) + 26px); right:14px; width:auto; border-radius:20px; }
body .app-header .sidebar-toggle { display:inline-flex; }
body .page-shell { width:auto; max-width:none; margin-left:calc(var(--nav-width) + 26px); padding:104px 22px 48px 0; }
body #sidebarScrim { display:none!important; }
body .app-header, body .page-shell { transition:left .2s ease,margin-left .2s ease; }

/* Badges remain in normal flow, including wrapped labels inside narrow cards. */
body .status { max-width:100%; vertical-align:middle; white-space:normal; overflow-wrap:anywhere; flex-shrink:0; }
body .integration-card { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
body .integration-card > h3, body .integration-card > p { margin:0; }
body .integration-card > p { min-height:0; line-height:1.55; overflow-wrap:anywhere; }
body .integration-card > .button { margin-top:auto; }
body .product-admin-tags { display:flex; flex-wrap:wrap; gap:6px; }
body .product-extra-info { display:contents; }
body .product-info-grid > div { min-width:0; }
body .product-info-grid dd { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
body .product-info-grid .product-extra-info > div { min-width:0; padding:10px 0; border-bottom:1px solid var(--line); }
.customer-picker-filters { display:flex; align-items:end; gap:12px; margin:14px 0; }
.customer-picker-filters .input-icon { flex:1; min-width:0; }
.customer-picker-filters .field { width:150px; flex:none; }
.customer-option .status { margin-top:7px; }
.customer-picker-filters[hidden] { display:none; }
.document-seller-note { line-height:1.5; color:var(--muted); }

/* Requests: scan totals, filter locally, then open the complete conversation. */
[data-route-view="requests"] .filters127 { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:18px; background:var(--ui-panel); border:1px solid var(--ui-line); border-radius:20px; margin:18px 0; }
[data-route-view="requests"] .filters127 label { display:grid; gap:7px; flex:1; min-width:150px; font-size:12px; font-weight:650; }
[data-route-view="requests"] .filters127 :is(input,select) { width:100%; min-height:44px; border:1px solid var(--line); border-radius:12px; padding:10px 12px; color:var(--ink); background:var(--surface); }
.request-summary { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 10px; }
.request-summary .button[aria-pressed="true"] { border-color:var(--gold-dark); background:var(--gold-soft); color:var(--gold-dark); }
.request-summary .button b { font-variant-numeric:tabular-nums; }
.request-summary-note { margin:0 0 12px; font-size:12px; color:var(--muted); }
body .kanban127 { display:grid; grid-template-columns:repeat(4,minmax(225px,1fr)); gap:14px; overflow-x:auto; align-items:start; padding-bottom:16px; }
body .kanban-column127 { min-width:0; border:1px solid var(--line); background:var(--surface-alt); border-radius:18px; padding:12px; min-height:240px; }
body .kanban-column127 > h3 { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; line-height:1.4; margin:0 0 14px; min-height:36px; }
body .ticket-card127 { width:100%; min-width:0; display:flex; flex-direction:column; gap:9px; align-items:flex-start; text-align:left; padding:16px; margin:0 0 10px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:0 3px 12px rgba(20,18,12,.035); }
body .ticket-card127:hover { border-color:var(--gold-dark); box-shadow:0 6px 18px rgba(20,18,12,.09); }
body .ticket-card127 b { font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
body .ticket-card127 small { font-size:12px; line-height:1.5; margin:0; color:var(--muted); overflow-wrap:anywhere; }
body #requestSummary148 .button { gap:8px; background:#fff; color:var(--ink); box-shadow:none; border:1px solid var(--line); }
body #requestSummary148 .button[aria-pressed="true"] { background:var(--gold-soft); border-color:var(--gold-dark); color:var(--gold-dark); }
.request-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.request-empty { padding:24px 12px; text-align:center; color:var(--muted); font-size:13px; line-height:1.6; }
body :is(button,a,input,select,textarea):focus-visible { outline:3px solid var(--gold-dark); outline-offset:3px; }
@media(max-width:1400px) { body .home-layout { grid-template-columns:minmax(0,1fr); } body .home-banner-area { max-height:320px; } }
@media(max-width:1100px) {
  body #app:has(#appSidebar.is-open) { --nav-width:80px; }
  body #appSidebar.is-open { width:270px; }
  body #sidebarScrim:not([hidden]) { display:block!important; left:92px; z-index:130; }
  body .page-shell { padding-top:calc(var(--header-height) + 28px); }
}
@media(max-width:620px) {
  body #app, body #app:has(#appSidebar.is-open) { --nav-width:56px; }
  body #appSidebar { inset:8px auto 8px 6px; padding:10px 5px; border-radius:17px; }
  body #appSidebar .nav-button, body #appSidebar .sidebar-link { min-height:44px; }
  body #appSidebar:not(.is-open) :is(.nav-button,.sidebar-link) { padding:8px; }
  body #appSidebar .sidebar-head .header-icon { width:40px; min-width:40px; }
  body #appSidebar.is-open { width:min(280px,calc(100vw - 30px)); }
  body #sidebarScrim:not([hidden]) { left:62px; }
  body .app-header { top:8px; left:70px; right:8px; }
  body .page-shell { margin-left:70px; padding-right:8px; padding-top:calc(var(--header-height) + 24px); }
  body .home-tools, body #homeAdminTools129 { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  body .home-tool { min-height:120px; padding:12px 3px; gap:10px; border-radius:13px; }
  body #app .home-tool .home-tool-icon { width:46px; height:46px; border-radius:14px; }
  body #app .home-tool .home-tool-icon .icon { width:30px; height:30px; }
  body .home-tool-copy b { font-size:10px; line-height:1.35; hyphens:auto; }
  body .home-tool-copy small { display:none; }
  body .home-hero { min-height:0; padding:20px 16px; border-radius:20px; }
  body #app .home-hero .home-brand { display:none; }
  body .home-hero .home-greeting h1 { font-size:26px; }
  body .home-hero .home-greeting small { font-size:13px; }
  body .home-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  body .home-kpi { padding:12px; }
  .customer-picker-filters { flex-direction:column; align-items:stretch; }
  .customer-picker-filters .field { width:100%; }
  body .kanban127 { grid-template-columns:repeat(4,minmax(235px,1fr)); }
  .request-list { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { body *, body *::before, body *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
