/* Screen-only polish: printed amounts and the saved order remain unchanged. */
@media screen {
  .branded-stub-modal {background:#f5f7fa}
  .professional-stub {box-shadow:0 4px 18px #132b4510;border-top:3px solid var(--stub-accent)!important}
  .professional-stub .stub-brand {position:relative;padding-bottom:9px}
  .professional-stub .stub-brand img {max-width:48px;max-height:48px;margin-bottom:4px}
  .professional-stub .stub-brand h2 {font-size:20px;line-height:1.25}
  .professional-stub .stub-claim {margin:10px 0;padding:9px;background:#f8fafc;border-left:3px solid var(--stub-accent)}
  .professional-stub .stub-claim strong {font-size:25px;line-height:1.3}
  .professional-stub .stub-meta>div {grid-template-columns:minmax(85px,.8fr) minmax(0,1.2fr);gap:12px}
  .professional-stub .stub-meta strong {max-width:none;overflow-wrap:anywhere}
  .professional-stub .stub-items {margin-top:9px;padding-top:9px}
  .professional-stub .stub-items h3 {color:#52667e;font-size:10px}
  .professional-stub .stub-bill {padding-top:5px;margin-top:6px}
  .professional-stub .stub-bill .stub-item:last-child {font-weight:800}
  .professional-stub .stub-payment {margin-top:8px}
  .professional-stub footer {margin-top:10px}
  .professional-stub .legal {border-top:1px solid #e4eaf1!important;margin-top:8px;line-height:1.5}
  .branded-stub-modal .section-actions {background:#f5f7fa;gap:8px;padding-bottom:2px}
  .branded-stub-modal .section-actions button {min-height:44px;font-size:12px}
}
@media screen and (max-width:420px) {
  .professional-stub .stub-meta>div {grid-template-columns:minmax(75px,.8fr) minmax(0,1.2fr);gap:8px}
  .professional-stub .stub-claim strong {font-size:23px}
}

/* Receipt-printer setup stays device-local and follows the existing Settings UI. */
@media screen {
  .receipt-printer-panel .panel-head {align-items:flex-start}
  .printer-setup-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
  .printer-toggle {display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 12px;border:1px solid #d5e2f0;border-radius:10px;background:#f7faff;cursor:pointer}
  .printer-toggle input {width:18px;height:18px;flex:0 0 auto}
  .printer-toggle span {display:grid;gap:2px;font-weight:700}
  .printer-toggle small {color:#607591;font-weight:500;line-height:1.35}
  .printer-device-status {display:flex;align-items:center;gap:11px;margin:10px 0 14px;padding:12px 13px;border:1px solid #cbdcf1;border-radius:11px;background:#f5f9ff}
  .printer-device-status>span {display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#dbeafe;color:#245ca6;font-weight:900}
  .printer-device-status>div {display:grid;gap:2px;min-width:0}
  .printer-device-status small {color:#607591;line-height:1.4;overflow-wrap:anywhere}
  .printer-device-status.ready {border-color:#b8e4ca;background:#effbf4}
  .printer-device-status.ready>span {background:#d1f4de;color:#08743b}
  .printer-device-status.blocked {border-color:#f1c5c5;background:#fff4f4}
  .printer-device-status.blocked>span {background:#ffe0e0;color:#b42318}
  .printer-advanced {margin:10px 0 14px;border:1px solid #d5e2f0;border-radius:10px;background:#fafcff}
  .printer-advanced summary {min-height:44px;padding:12px 14px;color:#245ca6;font-weight:800;cursor:pointer}
  .printer-advanced>p,.printer-advanced>.form-grid {margin:0;padding:0 14px 14px}
  .printer-safety-note {display:block;margin-top:10px;color:#607591;line-height:1.5}
  html[data-theme="dark"] .printer-toggle,
  html[data-theme="dark"] .printer-advanced {border-color:#344b65;background:#17283e;color:#eef5ff}
  html[data-theme="dark"] .printer-toggle small,
  html[data-theme="dark"] .printer-device-status small,
  html[data-theme="dark"] .printer-safety-note,
  html[data-theme="dark"] .printer-advanced>p {color:#adc1d8}
  html[data-theme="dark"] .printer-device-status {border-color:#365373;background:#162a42;color:#eef5ff}
  html[data-theme="dark"] .printer-device-status>span {background:#254465;color:#cfe4ff}
  html[data-theme="dark"] .printer-device-status.ready {border-color:#2f7256;background:#14372d;color:#effff7}
  html[data-theme="dark"] .printer-device-status.ready>span {background:#1f5c45;color:#c9ffe2}
  html[data-theme="dark"] .printer-device-status.blocked {border-color:#864c4c;background:#422225;color:#fff2f2}
  html[data-theme="dark"] .printer-device-status.blocked>span {background:#6d3035;color:#ffd7d7}
  html[data-theme="dark"] .printer-advanced summary {color:#b7d5ff}
}
@media screen and (max-width:700px) {
  .printer-setup-grid {grid-template-columns:1fr}
  .receipt-printer-panel .compact-actions {display:grid;grid-template-columns:1fr}
  .receipt-printer-panel .compact-actions button {width:100%}
}
