/* PetMind: readable controls on phones, including short landscape viewports. */
html.pm-panel-v3 { --pm-visible-height:100dvh; --pm-panel-bottom:0px; scroll-padding-top:90px; scroll-padding-bottom:calc(var(--pm-panel-bottom) + 24px); }
html.pm-panel-v3 :is(main,.main,.panel,.workspace,.card,.field) { min-width:0; }
html.pm-panel-v3 :is(button,a,input,select,textarea,summary) { touch-action:manipulation; }
html.pm-panel-v3 :is(input,select,textarea) { scroll-margin-block:100px; }
html.pm-panel-v3 .pm-panel-table-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
html.pm-panel-v3 .pm-panel-table-scroll:focus-visible { outline:3px solid #716300; outline-offset:2px; }
html.pm-panel-v3 .pm-panel-table-hint { font:13px/1.5 system-ui; color:#62665f; margin:8px 0; }
#pm-panel-top { position:fixed; z-index:90; right:max(12px,env(safe-area-inset-right)); bottom:calc(var(--pm-panel-bottom) + 12px); width:auto; min-width:48px; min-height:48px; margin:0; padding:10px 14px; border:1px solid #d5d4c8; border-radius:16px; color:#24251f; background:#fff; box-shadow:0 4px 16px #0002; font:600 14px system-ui; }
#pm-panel-top[hidden],html.pm-panel-v3 body:has(:is(dialog[open],.modal.show,.overlay.show)) #pm-panel-top { display:none!important; }
html.pm-panel-v3 .pm-panel-results-title { margin:16px 0 4px; font-weight:700; }
@media(max-width:700px) {
 html.pm-panel-v3 body { min-width:0; }
 html.pm-panel-v3 main,html.pm-panel-v3 .main { max-width:100%; padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))!important; }
 html.pm-panel-v3.ca-panel-mobile #ca-collaborator-home .ca-app-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
 html.pm-panel-v3.ca-panel-mobile #ca-collaborator-home .ca-app-grid>:is(button,a) { min-height:126px!important; height:auto!important; padding:14px 10px!important; gap:10px!important; }
 html.pm-panel-v3 #ca-collaborator-home .ca-compact-title { font-size:15px!important; line-height:1.35!important; white-space:normal; }
 html.pm-panel-v3 #ca-collaborator-home .ca-app-grid .ca-app-icon { width:44px!important; height:44px!important; flex-shrink:0; }
 html.pm-panel-v3 #ca-collaborator-home .ca-app-grid a>strong { font-size:15px; line-height:1.35; }
 html.pm-panel-v3 .ca-app-options { grid-template-columns:minmax(0,1fr)!important; }
 html.pm-panel-v3 .ca-app-options :is(a,button) { min-height:52px!important; padding:14px!important; font-size:16px!important; }
 html.pm-panel-v3 .ca-menu-search input { font-size:16px!important; min-height:48px; }
 html.pm-panel-v3 :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px!important; max-width:100%; min-width:0; box-sizing:border-box; }
 html.pm-panel-v3 :is(button,summary,.button) { min-height:44px; white-space:normal; overflow-wrap:anywhere; }
 html.pm-panel-v3 :is(.toolbar,.pagination,.row-actions,.confirm-actions,.top-actions) { flex-wrap:wrap; min-width:0; gap:10px; }
 html.pm-panel-v3 :is(.toolbar,.pagination,.row-actions,.confirm-actions)>* { max-width:100%; min-width:0; }
 html.pm-panel-v3 :is(h1,h2,h3,.record,.reference,.metric) { overflow-wrap:anywhere; }
 html.pm-panel-v3 body>header { flex-wrap:wrap; gap:10px; padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); }
 html.pm-panel-v3 body>header a { display:inline-flex; align-items:center; min-height:44px; }
 html.pm-panel-v3 .modal { inset:0!important; width:100%!important; max-width:none!important; height:100%!important; max-height:none!important; margin:0!important; padding:10px!important; border-radius:0!important; overflow:auto; }
 html.pm-panel-v3 .modalbox,html.pm-panel-v3 dialog { box-sizing:border-box; width:100%!important; max-width:calc(100vw - 20px)!important; max-height:calc(var(--pm-visible-height) - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important; padding:16px!important; overflow:auto; overscroll-behavior:contain; border-radius:16px!important; }
 html.pm-panel-v3 .modalbox>.close { position:sticky!important; top:0; right:auto!important; margin-left:auto; display:block; min-width:44px; min-height:44px; z-index:2; background:#fff; }
 html.pm-panel-v3 .modalbox .phonebox { max-width:100%; margin:12px auto; padding:14px!important; }
 html.pm-panel-v3 #opsWarehouseList .tablewrap:has(table.ca-fit-table) { max-height:none!important; }
 html.pm-panel-v3 #opsWarehouseList table.ca-fit-table th button { min-height:44px!important; padding:8px!important; }
 html.pm-panel-v3 #opsWarehouseList table.ca-fit-table td { grid-template-columns:minmax(78px,30%) minmax(0,1fr); }
 html.pm-panel-v3 #filters label,html.pm-panel-v3 .stats>* { min-width:0; }
 html.pm-panel-v3 #filters { gap:10px; }
 html.pm-panel-v3 #tabs button { flex:0 0 auto; min-height:48px; }
 html.pm-panel-v3 #tabs { scroll-snap-type:x proximity; }
 html.pm-panel-v3 #tabs button { scroll-snap-align:start; }
 html.pm-panel-v3 .confirm-actions button { flex:1 1 130px; }
}
@media(max-width:359px) {
 html.pm-panel-v3.ca-panel-mobile #ca-collaborator-home .ca-app-grid>:is(button,a) { min-height:120px!important; padding:12px 8px!important; }
 html.pm-panel-v3 #ca-collaborator-home .ca-compact-title { font-size:14px!important; }
 html.pm-panel-v3 #filters,html.pm-panel-v3 #filters.agenda-filters { grid-template-columns:minmax(0,1fr)!important; }
 html.pm-panel-v3 #filters label { grid-column:1!important; }
}
@media print { #pm-panel-top { display:none!important; } }

#pm-ann-nav,#pm-ann-heading,.pm-ann-select{display:none}
@media(max-width:760px){
 .pm-ann-mobile{--pm-ann-dock:calc(76px + env(safe-area-inset-bottom,0px))}
 .pm-ann-mobile body{padding-bottom:var(--pm-ann-dock)}
 .pm-ann-mobile body>header{padding:12px 16px;gap:12px;flex-wrap:nowrap}
 .pm-ann-mobile body>header strong,.pm-ann-mobile body>header a[href="#ann-insights"]{display:none}
 .pm-ann-mobile main,.pm-ann-mobile body[data-embedded="true"] main{padding:18px 14px 24px}
 .pm-ann-mobile main>.hero,.pm-ann-mobile #ann-sections{display:none!important}
 .pm-ann-mobile #pm-ann-heading{display:block;margin-bottom:16px}
 #pm-ann-heading>span{font-size:13px;letter-spacing:1px;font-weight:800;color:#275c41}
 #pm-ann-heading p{font-size:13px;margin:6px 0;color:#5c6d61}
 .pm-ann-mobile #pm-ann-nav{position:fixed;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;bottom:0;left:0;right:0;z-index:1800;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #d5e1d6;box-shadow:0 -4px 16px #203d2f0d;overflow:visible}
 #pm-ann-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:58px;padding:6px 2px;font-size:11px;border-radius:12px;background:transparent;color:#57665b}
 #pm-ann-nav button>span:first-child{font-size:23px;line-height:24px}
 #pm-ann-nav button[aria-current="page"]{background:#e6f1e5;color:#17482e;font-weight:800}
 .pm-ann-mobile #pm-panel-top{bottom:calc(var(--pm-ann-dock) + 10px)}
 .pm-ann-mobile:not([data-pm-ann-view="growth"]) #ann-growth,
 .pm-ann-mobile:not([data-pm-ann-view="statistics"]) #ann-insights,
 .pm-ann-mobile:not([data-pm-ann-view="community"]) #community-panel,
 .pm-ann-mobile:not([data-pm-ann-view="community"]) #ann-review,
 .pm-ann-mobile:not([data-pm-ann-view="tools"]) #ann-owner-alerts,
 .pm-ann-mobile:not([data-pm-ann-view="tools"]) #ann-ambassadors{display:none!important}
 .pm-ann-mobile #ann-growth{padding:16px 12px;margin:0;border:1px solid #c9dcc9;border-radius:18px}
 .pm-ann-mobile #ann-growth h2{font-size:24px}
 .pm-ann-mobile #ann-growth .stats{margin:16px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .pm-ann-mobile #ann-growth .stat{padding:12px;min-width:0}
 .pm-ann-mobile #ann-growth .stat strong{font-size:26px;margin-top:6px}
 .pm-ann-mobile #ann-growth .stat span{font-size:12px}
 .pm-ann-mobile #ann-growth-content>p{font-size:13px;line-height:1.5}
 .pm-ann-mobile #ann-growth-content>details{margin:10px 0;background:#fff;border:1px solid #d9e4d5;border-radius:13px;padding:0 12px}
 .pm-ann-mobile #ann-growth summary{padding:16px 0;font-size:14px;line-height:1.4;min-height:52px}
 .pm-ann-mobile .pm-ann-section-title{display:none}
 .pm-ann-mobile .ann-growth-queue,.pm-ann-mobile .ann-growth-plan,.pm-ann-mobile .ann-growth-member{grid-template-columns:minmax(0,1fr);min-width:0}
 .pm-ann-mobile .ann-growth-queue article,.pm-ann-mobile .ann-growth-plan form,.pm-ann-mobile .ann-growth-member{padding:12px;margin-bottom:8px;overflow-wrap:anywhere}
 .pm-ann-mobile .ann-growth-queue article p{font-size:14px;margin:0;line-height:1.45}
 .pm-ann-mobile .ann-growth-queue article small{font-size:12px;color:#5b6b5e}
 .pm-ann-mobile .ann-growth-queue article .button{text-align:center}
 .pm-ann-mobile .pm-ann-page-hidden{display:none!important}
 .pm-ann-mobile .pm-ann-pager{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;grid-column:1/-1;margin:8px 0 14px}
 .pm-ann-mobile .pm-ann-pager span{text-align:center;font-size:12px}
 .pm-ann-mobile #ann-growth .pm-ann-pager button{font-size:12px;padding:10px}
 .pm-ann-mobile #ann-tabs,.pm-ann-mobile #tabs{display:none}
 .pm-ann-mobile .pm-ann-select{display:grid;margin:16px 0 12px;gap:7px;color:#34513b}
 .pm-ann-mobile #ann-insights{padding:16px 12px;margin-top:0;border-radius:18px}
 .pm-ann-mobile #ann-insights h2{font-size:24px}
 .pm-ann-mobile #ann-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .pm-ann-mobile #ann-filters #ann-search{grid-column:1/-1}
 .pm-ann-mobile #ann-filters label{min-width:0}
 .pm-ann-mobile #ann-filters button{padding:10px;font-size:13px}
 .pm-ann-mobile #ann-ambassadors,.pm-ann-mobile #ann-owner-alerts{margin:12px 0!important;max-width:100%;overflow-wrap:anywhere}
 .pm-ann-mobile [hidden]{display:none!important}
}

/* Ordinary tables keep useful column widths on desktop and become cards in narrow containers. */
html.pm-panel-v3 .pm-record-wrap{max-width:100%;overflow:auto!important}
html.pm-panel-v3 table.pm-safe-table{table-layout:auto!important;min-width:var(--pm-table-width,640px)!important;width:100%!important}
html.pm-panel-v3 table.pm-safe-table :is(button,.go,.mini){overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;min-width:96px;line-height:1.35!important}
html.pm-panel-v3 table.pm-safe-table input[type="checkbox"]{width:22px!important;height:22px;min-height:22px;min-width:22px!important;flex-shrink:0}
html.pm-panel-v3 .pm-record-wrap.pm-record-cards{overflow:visible!important;max-height:none!important}
html.pm-panel-v3 table.pm-record-table{display:block!important;min-width:0!important;max-width:100%;width:100%!important}
html.pm-panel-v3 table.pm-record-table tbody{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px}
html.pm-panel-v3 table.pm-record-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
html.pm-panel-v3 table.pm-record-table tbody>tr{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;background:#fff!important;border:1px solid #dedfd5!important;border-radius:15px;padding:14px!important;margin:0!important;width:auto!important;min-width:0!important;box-shadow:0 2px 5px #20202005}
html.pm-panel-v3 table.pm-record-table td{display:grid!important;grid-template-columns:minmax(80px,32%) minmax(0,1fr)!important;gap:5px 10px!important;min-width:0!important;width:auto!important;max-width:none!important;border:0!important;padding:3px 0!important;font-size:14px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere;align-items:start}
html.pm-panel-v3 table.pm-record-table td::before{content:attr(data-pm-label)!important;font-size:12px;font-weight:650;color:#60655b;line-height:1.6;display:block}
html.pm-panel-v3 table.pm-record-table td[colspan]{display:block!important}
html.pm-panel-v3 table.pm-record-table td[colspan]::before{display:none!important}
html.pm-panel-v3 table.pm-record-table td>*{min-width:0;max-width:100%}
html.pm-panel-v3 table.pm-record-table td.pm-record-actions{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:8px;padding-top:12px!important;border-top:1px solid #ecece4!important}
html.pm-panel-v3 table.pm-record-table td.pm-record-actions::before{display:none!important}
html.pm-panel-v3 table.pm-record-table td.pm-record-actions>button{flex:1 1 140px;min-height:44px!important;padding:10px 12px!important;margin:0!important}
html.pm-panel-v3 table.pm-record-table td.pm-record-actions>div{display:flex!important;flex-wrap:wrap;gap:8px!important;flex:1 1 100%}
html.pm-panel-v3 table.pm-record-table td.pm-record-actions>div>button{flex:1 1 140px;min-height:44px!important;padding:10px!important;margin:0!important}
html.pm-panel-v3 table.pm-record-table.pm-table-sortable thead{position:static!important;display:block!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;margin-bottom:8px}
html.pm-panel-v3 table.pm-record-table.pm-table-sortable thead tr{display:flex!important;flex-wrap:wrap;gap:6px;margin:0!important;padding:6px!important}
html.pm-panel-v3 table.pm-record-table.pm-table-sortable th{display:none!important}
html.pm-panel-v3 table.pm-record-table.pm-table-sortable th.pm-table-header-control{display:block!important;flex:1 1 130px;min-width:0;padding:0!important}
html.pm-panel-v3 table.pm-record-table.pm-table-sortable th.pm-table-header-control button{width:100%;min-height:44px!important}
html.pm-panel-v3 .pm-record-wrap table.pm-safe-table [hidden]{display:none!important}
html.pm-panel-v3 .pm-record-hint-hidden,html.pm-panel-v3 table.pm-record-table tbody>tr.pm-sale-hidden,.pm-sales-server-pages{display:none!important}
.pm-sales-disclosure>summary{cursor:pointer;min-height:48px;padding:14px;background:#f6f5ed;border:1px solid #e0e0d6;border-radius:12px;font-weight:650;list-style-position:inside}
.pm-sales-disclosure{min-width:0;margin:12px 0}
#pm-sales-filters{grid-column:1/-1}
#pm-sales-filters[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#pm-sales-filters>summary{grid-column:1/-1}
#pm-sales-pages{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0 20px}
#pm-sales-pages button{font-size:13px;min-height:44px;padding:10px!important;overflow-wrap:normal!important;word-break:normal!important}
#pm-sales-pages span{font-size:12px;white-space:nowrap}
.pm-supplier-tools{margin:4px 0 16px}.pm-supplier-tools label{display:grid;gap:6px;font-size:14px;font-weight:650}.pm-supplier-tools input{width:100%;min-height:48px;font-size:16px!important;box-sizing:border-box}.pm-supplier-tools p{font-size:13px;margin:8px 0}
.pm-supplier-pager{display:flex;justify-content:space-between;gap:10px;margin:16px 0}.pm-supplier-pager button{min-height:44px;padding:10px 14px;overflow-wrap:normal!important}
html.pm-panel-v3 .pm-supplier-paged>.pm-supplier-hidden{display:none!important}
html.pm-panel-v3 #csDetail:not(:empty){margin:16px 0;padding:14px;border:2px solid #dbcc64;border-radius:14px;background:#fffef4;scroll-margin-top:90px}
html.pm-panel-v3 #opsSalesList table.pm-record-table td:nth-child(8){background:#f5f6ed;padding:9px!important;border-radius:8px;font-size:20px!important;font-weight:750;align-items:center}
@media(max-width:760px){
 html.pm-panel-v3 #counterSalesBrowser .cs-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 html.pm-panel-v3 #counterSalesBrowser .cs-filters>label:has(#csSource),#counterSalesBrowser #csRange{grid-column:1/-1}
 html.pm-panel-v3 #counterSalesBrowser #csFilters>button{width:100%;margin:6px 0}
 html.pm-panel-v3 #counterSalesBrowser>.cs-actions:first-of-type{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 html.pm-panel-v3 #counterSalesBrowser .cs-actions button{flex:1 1 140px;min-height:44px;overflow-wrap:normal!important}
 html.pm-panel-v3 #counterSalesBrowser input,html.pm-panel-v3 #counterSalesBrowser select{margin-bottom:4px!important}
 html.pm-panel-v3 #counterSalesBrowser #csMessage{font-size:13px;line-height:1.5;margin:12px 0}
}
@media(max-width:360px){#pm-sales-filters[open]{grid-template-columns:minmax(0,1fr)}}
@media(min-width:761px){.pm-sales-disclosure{display:contents}.pm-sales-disclosure>summary{display:none}#pm-sales-filters[open]{display:contents}}
@media print{#pm-sales-pages{display:none!important}html.pm-panel-v3 table.pm-record-table tbody>tr.pm-sale-hidden{display:grid!important}}

#pm-warehouse-filters { margin:12px 0; border:1px solid #dfe1d4; border-radius:12px; padding:10px 12px; }
#pm-warehouse-filters>summary { min-height:44px; align-content:center; cursor:pointer; font-weight:650; }
#pm-warehouse-filters>.ops-filters { margin-top:12px; }
#pm-warehouse-pages { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:14px 0; }
#pm-warehouse-pages button { min-height:48px; padding:12px 16px; border:1px solid #d5d4c8; border-radius:12px; background:#fff; color:#24251f; font:600 15px system-ui; }
#pm-warehouse-pages button:disabled { opacity:.45; }
#pm-warehouse-pages span { font:600 14px system-ui; text-align:center; }
html.pm-panel-v3 #opsWarehouseList[data-pm-view=cards] table tbody>tr.pm-warehouse-page-hidden { display:none!important; }
@media(max-width:760px) {
 #pm-warehouse-filters:not([open])>:not(summary) { display:none!important; }
 #pm-warehouse-pages span { order:-1; flex-basis:100%; }
 #pm-warehouse-pages button { flex:1; }
 #pm-warehouse-filters .ops-warehouse-tools { grid-template-columns:minmax(0,1fr)!important; }
}
