/* ===================== v12 / v13 ===================== */

/* --- header: theme dots at the far right --- */
#hdr .ctrls .themes{order:99}

/* --- mobile view: compact icon buttons that expand to the right on hover / focus / touch --- */
.view-mobile #hdr .btn-ic{display:inline-flex;align-items:center;gap:0;padding:0;width:auto;min-width:34px;height:34px;justify-content:center;border-radius:99px;transition:gap .25s,padding .25s}
.view-mobile #hdr .btn-ic i{font-style:normal;font-size:15px;line-height:1;width:34px;text-align:center;flex:none}
.view-mobile #hdr .btn-ic span{max-width:0;overflow:hidden;white-space:nowrap;font-size:12px;transition:max-width .3s ease,padding .3s}
.view-mobile #hdr .btn-ic:hover span,.view-mobile #hdr .btn-ic:focus-visible span,.view-mobile #hdr .btn-ic.peek span{max-width:140px;padding-right:12px}
.view-mobile #langSel{width:58px;padding:6px 20px 6px 10px;text-overflow:clip}
.view-mobile #paperSel{width:54px;padding:6px 18px 6px 9px}
.view-mobile .curbox label{font-size:10.5px}
.view-mobile .curbox label input{width:56px}
#hdr .btn-ic i{font-style:normal}

/* --- master price table action cell --- */
.mpt td.mact{min-width:150px;vertical-align:middle}
.ma{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ma>b{font:800 12.5px var(--fb);color:var(--ink);white-space:nowrap}
.ma>b.tbdm{color:#8a4b00;font-weight:700;font-size:11.5px}
.stepper.xs{border-radius:10px}
.stepper.xs button{width:28px;height:30px;font-size:16px}
.stepper.xs input{width:36px;padding:4px 0;font-size:12.5px}
.mgws{display:flex;gap:4px}
.mgw{padding:6px 10px;border-radius:99px;background:var(--soft);font:800 11.5px var(--fb);color:var(--ink);white-space:nowrap;transition:background .2s,color .2s}
.mgw:hover{background:color-mix(in oklab,var(--a) 18%,#fff)}
.mgw.on{background:var(--a);color:#fff}
.gwact{flex-wrap:wrap}
.gwact .gwhint{flex-basis:100%;margin-top:2px}
.gwl{font-style:normal;color:var(--ink2);font-weight:600}
@media (max-width:700px){.mpt td.mact{min-width:120px}}
.view-mobile .mpt td.mact{min-width:120px}

/* --- custom window: notes + reference pictures --- */
.wcbox{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:10px;border-radius:14px;background:var(--soft)}
.wc-l{display:flex;flex-direction:column;gap:5px}
.wc-l span{font-weight:800;font-size:12px}
.wc-l textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:62px;border:0;border-radius:10px;padding:8px 10px;background:#fff;font:600 13px/1.45 var(--fb);color:var(--ink)}
.wc-l textarea:focus{outline:0;box-shadow:0 0 0 2px var(--a) inset}
.wc-imgs{display:flex;flex-wrap:wrap;gap:8px}
.wc-imgs figure{position:relative;margin:0;width:72px;height:72px;border-radius:10px;overflow:hidden;background:#fff}
.wc-imgs figure img{width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.wc-imgs figure button{position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#000a;color:#fff;font-size:13px;line-height:20px;text-align:center}
.wc-up{width:72px;height:72px;border-radius:10px;border:1.5px dashed color-mix(in oklab,var(--a) 55%,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;background:#fff;text-align:center}
.wc-up b{font-size:20px;color:var(--a);line-height:1}
.wc-up span{font-size:10px;font-weight:700;color:var(--ink2);line-height:1.15;padding:0 4px}
.wc-up:hover{background:color-mix(in oklab,var(--a) 8%,#fff)}

/* --- print dialog: document number --- */
.pp-no{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0;padding:9px 12px;border-radius:12px;background:var(--soft);font-size:12.5px}
.pp-no b{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.03em}
.pp-no .btn{padding:6px 12px;font-size:12px}

/* --- print: running header / footer — logo + document name, website + contact; no rules, one font --- */
@media print{
  body.printing .ps-run-h,body.printing .ps-run-f{display:flex!important;justify-content:space-between;align-items:center;border:0!important;box-shadow:none!important;background:none!important;font:600 8pt/1.35 var(--fb)!important;color:#555!important;letter-spacing:.02em}
  body.printing .ps-run-h{padding:0 0 6px!important;margin-bottom:6px!important}
  body.printing .ps-run-h .ps-logo{height:28px;width:auto}
  body.printing .ps-run-h span{text-align:right}
  body.printing .ps-run-f{padding:6px 0 0!important;margin-top:6px!important}
  body.printing .ps-run-f span{font:inherit}
}

/* --- print: first-page document header card --- */
.ps-head{display:flex;align-items:center;gap:18px;padding:14px 18px;border-radius:14px;background:linear-gradient(120deg,var(--soft),var(--soft2))}
.ps-head>div:first-child{min-width:0}
.ps-head b{display:block;font:800 13px/1.2 var(--fh);letter-spacing:.01em}
.ps-head i{display:block;font-style:normal;color:#444;font-size:10.5px;margin-top:3px}
.ps-head small{display:block;color:#666;font-size:9px;margin-top:2px}
.ps-title{margin-left:auto;text-align:right;font:800 17px/1.15 var(--fh);color:var(--a);max-width:52%}
.ps-title small{display:block;font:700 9.5px var(--fb);color:#555;margin-top:3px}
.ps-title .ps-rate{display:block;font:700 9px var(--fb);color:#333;font-style:normal;margin-top:3px}

/* --- print: custom window tile with customer pictures --- */
.pe-grid>.pe-wc{grid-column:1/-1;align-items:flex-start}
.pe-wc .ps-img{width:60px!important;height:46px!important}
.pe-wc span{flex:1}

/* --- print: bank block on the proforma invoice --- */
.ps-bank{background:#eef3f8!important;border-radius:12px;padding:12px 14px!important;box-shadow:0 0 0 1px #d6e1ec inset}
.ps-bank .pbk-h{display:block;font:800 11px var(--fh);color:#1f3b57;margin-bottom:6px;letter-spacing:.02em}
.ps-bank .pbk-list{border-top:1px solid #d3deea}
.ps-bank .pbk-row{grid-template-columns:170px 8px 1fr;padding:4px 2px;border-bottom:1px solid #d3deea}
.ps-bank .pbk-row>span{font-size:9.2px;font-weight:700;color:#4a5f75}
.ps-bank .pbk-row b{font-size:10.8px;font-weight:800;color:#13263a}
.ps-bank .fine{color:#4a5f75!important}
