/* Escopo: ficha do pedido e acompanhamento de retirada. */
.order-sheet-v52 .sheet-b{gap:14px;background:var(--bg)}
.order-header-stage{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.order-sheet-v52 .order-section,.order-sheet-v52 .pedcli{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;min-width:0}
.order-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.order-sheet-v52 h3{font-size:15px;line-height:1.4;margin:0}
.order-section-head h3{display:flex;align-items:center;gap:8px}
.order-section-head .btn{min-height:36px}
.order-overview-facts{display:grid;grid-template-columns:1fr 1fr;margin:0 0 10px;gap:12px}
.order-overview-facts>div{min-width:0}
.order-overview-facts>div+div{border-left:1px solid var(--line);padding-left:14px}
.order-overview-facts dt{font-size:11px;color:var(--muted);margin-bottom:5px}
.order-overview-facts dd{font-size:14px;font-weight:700;margin:0 0 6px;overflow-wrap:anywhere}
.order-overview-facts .due{font-size:11px;white-space:normal}
.order-fold{min-width:0;border-top:1px solid var(--line);margin-top:12px;padding-top:2px}
.order-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;min-height:44px;padding:8px 0;color:var(--brand);font-size:12px;line-height:1.45;font-weight:600}
.order-fold>summary::-webkit-details-marker,.pickup-list summary::-webkit-details-marker{display:none}
.order-fold>summary>span:first-child{min-width:0}
.order-fold summary small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:3px}
.order-fold>summary:focus-visible,.pickup-list summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:5px}
.order-fold-arrow{flex:none;font-size:16px;transition:transform .15s}
.order-fold[open]>.order-fold-arrow,.order-fold[open]>summary>.order-fold-arrow{transform:rotate(180deg)}
.order-fold-body{padding:6px 0 10px;min-width:0;overflow-wrap:anywhere}
.order-fold-body>.ordacts{display:flex;gap:8px;flex-wrap:wrap}
.order-sheet-v52 .order-overview>.order-fold{margin-top:0}
.order-sheet-v52 .order-overview .facts{margin:0 0 12px}
.order-sheet-v52 .order-overview .facts>div{padding:10px}
.order-sheet-v52 .pedcli{display:flex;flex-direction:column;gap:10px}
.order-sheet-v52 .pedcli .conv{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-height:none}
.order-sheet-v52 .pedcli .refs{margin:0}
.order-sheet-v52 .pedcli .refs img{width:65px;height:65px;object-fit:cover}
.order-sheet-v52 .pedcli>.order-fold{margin-top:0}
.order-items{display:flex;flex-direction:column;gap:12px;min-width:0}
.order-sheet-v52 .order-item{padding:12px;border-radius:12px;min-width:0;box-shadow:none}
.order-sheet-v52 .order-item h3{font-size:14px}
.order-sheet-v52 .order-item .info{gap:10px}
.order-sheet-v52 .order-item-no-art,.order-sheet-v52 .order-item-complete{grid-template-columns:minmax(0,1fr)}
.order-sheet-v52 .order-item .brief{font-size:12px;line-height:1.55}
.order-sheet-v52 .order-item .finais{padding:0;background:transparent;border:0}
.order-sheet-v52 .order-item .fname,.order-sheet-v52 .order-item .fpath{overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.order-sheet-v52 .order-item .completed-art{margin-top:0}
.order-sheet-v52 .order-item .art .ph{min-height:80px;aspect-ratio:auto}
.order-production-v52>.order-fold .routine-block{padding:0;margin:0;border:0;border-radius:0;background:transparent}
.order-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 10px;background:var(--surface-2);border-radius:12px;margin-bottom:12px}
.order-money>div{min-width:0;display:flex;flex-direction:column;gap:6px}
.order-money>div+div{border-left:1px solid var(--line);padding-left:9px}
.order-money span{font-size:11px;color:var(--muted)}
.order-money strong{font-size:17px;line-height:1.4;white-space:nowrap;color:var(--fg)}
.order-money .order-money-due{color:var(--s-change)}
.order-money .order-money-paid{color:var(--s-ok)}
.order-finance-v52 .finance-actions{margin-top:0;display:flex;gap:8px;flex-wrap:wrap}
.order-finance-v52 .finance-actions .btn{flex:1 1 125px;font-size:12px;min-height:44px;white-space:normal}
.order-finance-v52 .finance-actions .finance-thanks{flex-basis:100%}
.order-delivery-info{padding:12px;background:var(--surface-2);border-radius:12px;overflow-wrap:anywhere}
.order-delivery-info strong{font-size:13px}
.order-delivery-info p{font-size:12px;margin:6px 0;white-space:pre-wrap}
.order-delivery-info small{font-size:10px;color:var(--muted)}
.order-delivery-v52 .receb{margin:10px 0;padding:12px;border-radius:12px;overflow-wrap:anywhere}
.order-delivery-actions{display:grid;gap:8px;margin-top:12px}
.order-delivery-actions .btn{min-height:44px;white-space:normal;font-size:12px}
.order-bottom-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.order-bottom-actions>.btn{min-height:46px;font-size:12px;white-space:normal}
.order-bottom-actions>.order-fold{margin:0;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:var(--surface)}
.order-bottom-actions>.order-fold>summary{justify-content:center}
.order-more-actions{display:grid;gap:8px}
.order-more-actions>.btn{font-size:12px;min-height:42px;white-space:normal}
.order-observations{white-space:pre-wrap;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.pickup-due{color:var(--brand)!important;background:var(--brand-soft);border-radius:7px;padding:4px 6px}
.pickup-status{display:flex;align-items:center;gap:6px;color:var(--brand);font-weight:600}
.pickup-list{margin:0 0 16px;background:var(--surface);border:1px solid var(--line);border-radius:16px;min-width:0;overflow:hidden}
.boardwrap+.pickup-list,.day+.pickup-list{margin-top:16px}
.pickup-list summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;padding:16px;font-size:13px;color:var(--brand);min-height:48px}
.pickup-list summary>span:first-child{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.pickup-list-body{padding:0 16px 16px;min-width:0}
.pickup-list-body>.list{margin:10px 0;background:transparent}
.pickup-list-body .orow{border-radius:0}
@media(max-width:600px){
 .order-sheet-v52 .sheet-b{padding:14px 14px 32px;gap:12px}
 .order-sheet-v52 .order-section,.order-sheet-v52 .pedcli{padding:14px;border-radius:16px}
 .order-money{padding:12px 8px;gap:5px}
 .order-money strong{font-size:14px}
 .order-money span{font-size:10px}
 .order-money>div+div{padding-left:6px}
 .order-section-head h3{font-size:14px}
 .order-section-head .btn{font-size:11px;min-height:36px;padding:6px 8px}
 .order-sheet-v52 .order-item{padding:10px}
 .pickup-list-body{padding:0 12px 12px}
}
@media(max-width:350px){.order-money strong{font-size:12px}.order-bottom-actions{grid-template-columns:minmax(0,1fr)}.order-overview-facts{gap:8px}.order-overview-facts dd{font-size:12px}}

/* v53: ações organizadas também com as seções expandidas. */
.order-sheet-v52 .order-fold-body>.ordacts,.order-sheet-v52 .order-more-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
.order-sheet-v52 .order-fold-body .btn,.order-sheet-v52 .order-more-actions .btn{min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.35;padding:10px 12px;font-size:12px;overflow-wrap:anywhere}
.order-sheet-v52 .attachment-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;grid-column:1/-1}
.order-sheet-v52 .attachment-pickers>.btn{width:100%;margin:0}
.order-sheet-v52 .attachment-pickers>.attachment-desktop{grid-column:1/-1}
.order-sheet-v52 .order-more-actions>.warn{grid-column:1/-1;margin-top:4px;border-top:1px solid var(--line)}
.order-sheet-v52 .files-organized{display:grid;gap:10px}
.order-sheet-v52 .files-organized>.files-list{display:flex;flex-direction:column;gap:10px;min-width:0}
.order-sheet-v52 .file-card{padding:12px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--surface)}
.file-card-head{display:grid;gap:5px;margin-bottom:12px;min-width:0}
.file-card-head>strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.file-card-head>small{font-size:10px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.file-primary{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.file-primary>.btn{width:100%}
.file-card>.order-fold{margin-top:6px}
.file-card>.order-fold>summary{font-size:11px;min-height:40px}
.file-options,.file-add-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;align-items:stretch}
.file-options>.file-path{grid-column:1/-1;order:-1;font-size:11px;line-height:1.5;background:var(--surface-2);border-radius:8px;padding:10px;overflow-wrap:anywhere;white-space:pre-wrap;margin:0}
.file-options>.warn{grid-column:1/-1}
.files-organized>.order-fold{margin-top:0}
.order-guidance{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--brand-soft);color:var(--brand)}
.next-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.next-copy>small{font-size:10px;color:var(--muted)}
.next-copy>strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.order-guidance>.btn{font-size:11px;min-height:40px;align-self:start;white-space:normal}
.order-pending-tags{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;padding:0;margin:0;list-style:none}
.order-pending-tags>li{font-size:10px;line-height:1.5;padding:4px 7px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--fg)}
.order-sheet-v52 .next-primary{outline:2px solid var(--brand);outline-offset:3px;border-radius:8px}
.inline-routine-form{display:grid;gap:12px;min-width:0}
.inline-routine-form .field{margin:0}
.inline-routine-form input[type=date]{min-height:44px;font-size:16px;width:100%;box-sizing:border-box}
.inline-check-item{border:1px solid var(--line);border-radius:12px;padding:8px 12px 12px;display:grid;gap:6px;min-width:0;margin:0}
.inline-check-item>legend{font-size:12px;line-height:1.5;font-weight:650;padding:0 5px;overflow-wrap:anywhere;max-width:100%}
.inline-check-item>.check{display:flex;align-items:center;gap:10px;min-height:40px;font-size:12px;line-height:1.4;margin:0}
.inline-check-item input[type=checkbox]{width:18px;height:18px;min-width:18px;flex:none;accent-color:var(--brand);margin:0}
.inline-check-actions,.reminder-send-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.inline-check-conflict{color:var(--s-change);line-height:1.5}
.inline-check-note,.inline-routine-form .err{margin:0;line-height:1.5}
.pickup-reminder-status{margin:10px 0;line-height:1.5}
.device-settings{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:6px;min-width:0}
.device-settings h4{font-size:11px;font-weight:650;margin:0;color:var(--muted)}
.device-settings>.btn{white-space:normal;min-height:44px;font-size:12px}
.device-settings>small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.device-settings-dialog,.pickup-reminder-dialog{display:flex;flex-direction:column;gap:12px}
.device-settings-dialog .field,.pickup-reminder-dialog .field{margin:0}
.od-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.device-settings-dialog .btn,.pickup-reminder-dialog .btn{min-height:44px;white-space:normal;font-size:12px;text-align:center;line-height:1.4}
.device-help{border-top:1px solid var(--line);padding-top:8px}
.device-help>summary{min-height:36px;cursor:pointer;font-size:12px;font-weight:650;color:var(--brand)}
.pickup-reminder-dialog textarea{min-height:180px;line-height:1.55;font-size:14px}
.pickup-reminder-dialog .check{font-size:12px;line-height:1.5;align-items:flex-start}
.pickup-reminder-dialog .check input{flex:none;margin-top:3px}
@media(max-width:480px){
 .order-sheet-v52 .order-fold-body>.ordacts,.order-sheet-v52 .order-more-actions,.order-sheet-v52 .order-item .info>.ordacts,.file-options,.file-add-options,.inline-check-actions,.reminder-send-actions,.od-presets{grid-template-columns:minmax(0,1fr)}
 .order-sheet-v52 .order-bottom-actions:has(>.order-fold[open]){grid-template-columns:minmax(0,1fr)}
 .order-guidance{grid-template-columns:minmax(0,1fr)}
 .order-guidance>.btn{justify-self:start}
 .order-guidance .order-pending-tags{grid-column:1}
 .order-sheet-v52 .order-fold-body .btn{min-height:44px;font-size:12px}
}

/* v55: locate and visibly identify the next action inside the order scroller. */
.order-sheet-v52 .next-primary{scroll-margin-top:150px}
.order-sheet-v52 .next-action-flash{position:relative;z-index:1;outline:3px solid #b78016!important;outline-offset:4px;border-radius:10px;animation:crialli-next-action-pulse .65s ease-in-out 4;background-color:#fff4d6!important;color:var(--fg)!important}
@keyframes crialli-next-action-pulse{
 0%,100%{box-shadow:0 0 0 0 rgba(183,128,22,.15)}
 50%{box-shadow:0 0 0 9px rgba(183,128,22,.25)}
}
@media(prefers-reduced-motion:reduce){.order-sheet-v52 .next-action-flash{animation:none;box-shadow:0 0 0 5px rgba(183,128,22,.2)}}

/* v56: frequent paste action first; secondary controls share one row. */
.order-sheet-v52 .order-item .info>.ordacts>.art-paste-primary{grid-column:1/-1;display:flex;width:100%;min-height:50px;background:var(--brand);border-color:var(--brand);color:#fff;font-size:14px;font-weight:700}
.order-sheet-v52 .order-item .info>.ordacts>.art-secondary-row{display:grid;grid-column:1/-1;grid-template-columns:repeat(var(--art-actions,3),minmax(0,1fr));gap:8px;align-items:stretch;min-width:0}
.art-secondary-row>.art-upload-desktop{display:contents!important}
.art-secondary-row>.art-upload-desktop>.attachment-desktop{grid-column:auto!important;grid-row:1}
.art-secondary-row>.art-upload-choice{display:none}
.order-sheet-v52 .art-secondary-row>.btn,.order-sheet-v52 .art-secondary-row>.art-upload-desktop>.btn,.order-sheet-v52 .art-upload-choice>summary.btn{width:100%;min-width:0;min-height:48px;margin:0;padding:9px 7px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;text-align:center;justify-content:center;font-size:12px;background:var(--surface);color:var(--brand);border:1px solid var(--line);border-radius:10px;grid-row:1}
.art-upload-choice>summary::-webkit-details-marker{display:none}
.art-upload-choices{grid-column:1/-1;grid-row:2;padding:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;min-width:0}
.art-upload-choices>.attachment-pickers{margin:0}
@media(max-width:800px),(pointer:coarse){
 .art-secondary-row>.art-upload-desktop{display:none!important}
 .art-secondary-row>.art-upload-choice{display:block;grid-column:1;grid-row:1;min-width:0}
 .art-upload-choice>summary{display:flex;list-style:none;grid-column:1;grid-row:1}
 .art-upload-choices[hidden]{display:none!important}
 .order-sheet-v52 .art-secondary-row>.btn,.order-sheet-v52 .art-upload-choice>summary.btn{font-size:11px;padding:9px 5px;min-height:56px}
}
/* Phone highlight uses a green surface and a separate rounded glow, not a focus line. */
@media(max-width:820px),(pointer:coarse){
 .order-sheet-v52 .next-action-flash{outline:none!important;background-color:#e1f5eb!important;color:#093a36!important;border-radius:12px;isolation:isolate;animation:crialli-next-mobile-surface .8s ease-in-out 4;box-shadow:0 0 0 3px #36956b}
 .order-sheet-v52 .next-action-flash::after{content:"";position:absolute;inset:-4px;pointer-events:none;border:2px solid #36956b;border-radius:15px;box-shadow:0 0 0 4px rgba(54,149,107,.12);animation:crialli-next-mobile-glow .8s ease-in-out 4}
 @keyframes crialli-next-mobile-surface{0%,100%{background-color:#e1f5eb;box-shadow:0 0 0 2px rgba(54,149,107,.6)}50%{background-color:#c5ebd8;box-shadow:0 0 0 5px rgba(54,149,107,.25)}}
 @keyframes crialli-next-mobile-glow{0%,100%{box-shadow:0 0 0 2px rgba(54,149,107,.10)}50%{box-shadow:0 0 0 8px rgba(54,149,107,.20)}}
}
@media(prefers-reduced-motion:reduce){.order-sheet-v52 .next-action-flash,.order-sheet-v52 .next-action-flash::after{animation:none!important}}

.art-upload-choice>summary.btn{height:100%;box-sizing:border-box}
@media(min-width:801px) and (pointer:fine){.art-secondary-row>.art-upload-choices{display:none!important}}
