/* Ofisbop — chop etish markazi oynasi. Copyright (c) 2026 "VIJDON" MChJ. Barcha huquqlar himoyalangan. */
.pc-back { z-index: 3000; }
.pc { position: relative; display: flex; width: min(1080px, calc(100vw - 32px)); height: min(720px, calc(100vh - 32px)); background: var(--panel, #fff); color: var(--text, #1f2328); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.28); overflow: hidden; }
.pc-loading { margin: auto; text-align: center; color: var(--muted, #646b75); }
.pc-spin { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid var(--accent-soft, #e7e8fd); border-top-color: var(--accent, #4338ca); border-radius: 50%; animation: pcspin .8s linear infinite; }
@keyframes pcspin { to { transform: rotate(360deg); } }

/* Oldindan ko'rish */
.pc-prev { flex: 1 1 58%; display: flex; flex-direction: column; background: #e9ebef; min-width: 0; }
.pc-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 12px 6px; min-height: 0; transition: opacity .15s; }
.pc-stage.busy { opacity: .45; }
.pc-sheet { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-sheet canvas { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); border-radius: 2px; }
.pc-sheet figcaption { font-size: 12px; color: var(--muted, #646b75); }
.pc-empty { color: var(--muted, #646b75); padding: 20px; text-align: center; }
.pc-nav { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; font-size: 13px; color: var(--muted, #646b75); }
.pc-nb { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border, #d4d8de); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.pc-nb:disabled { opacity: .35; cursor: default; }
.pc-sum { padding: 8px 18px 14px; font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--text, #1f2328); }

/* Sozlamalar */
.pc-side { flex: 0 0 400px; display: flex; flex-direction: column; border-left: 1px solid var(--border, #d4d8de); min-width: 0; }
.pc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.pc-head h3 { margin: 0; font-size: 19px; }
.pc-x { width: 34px; height: 34px; border: 0; background: none; font-size: 26px; line-height: 1; border-radius: 8px; cursor: pointer; color: var(--muted, #646b75); }
.pc-x:hover { background: var(--hover, #e6e9ee); }
.pc-body { flex: 1; overflow: auto; padding: 4px 18px 10px; }
.pc-sec { margin: 12px 0 4px; }
.pc-lbl { font-weight: 600; font-size: 13.5px; margin-bottom: 7px; }
.pc-hint { font-size: 12.5px; color: var(--muted, #646b75); margin-top: 6px; line-height: 1.45; }
.pc .inp { width: 100%; box-sizing: border-box; }
/* Umumiy uslub bilan bir xil maydonlar (balandligi 34 px, yumaloq burchak, fokus halqasi) */
.pc select.inp, .pc input.inp { height: 34px; border: 1px solid var(--border, #d9dde3); border-radius: 8px; background: #fff; padding: 0 8px; color: var(--text, #1f2328); font: inherit; }
.pc select.inp:focus, .pc input.inp:focus { outline: none; border-color: var(--accent, #4338ca); box-shadow: 0 0 0 3px var(--accent-soft, #eceefe); }
.pc .pc-step { height: 34px; width: 34px; }
.pc-foot .pbtn { min-height: 38px; }
.pc-dest { font-size: 14px; }
.pc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.pc-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 8px 6px 9px; border: 1.5px solid var(--border, #d4d8de); border-radius: 10px; background: #fff; cursor: pointer; color: inherit; font: inherit; }
.pc-card:hover { border-color: var(--accent, #4338ca); }
.pc-card.on { border-color: var(--accent, #4338ca); background: var(--accent-soft, #e7e8fd); box-shadow: 0 0 0 1px var(--accent, #4338ca) inset; }
.pc-card svg { width: 58px; height: 44px; }
.pc-card b { font-size: 13px; }
.pc-card small { font-size: 11px; color: var(--muted, #646b75); line-height: 1.3; }
.pc-pg { fill: #fff; stroke: #7a818c; stroke-width: 1.6; }
.pc-card.on .pc-pg { stroke: var(--accent, #4338ca); }
.pc-ln { stroke: #aab0ba; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.pc-ar { stroke: var(--accent, #4338ca); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pc-blank { fill: #fff; }
.pc-radio { display: flex; gap: 9px; align-items: flex-start; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.pc-radio:hover { background: var(--hover, #e6e9ee); }
.pc-radio input { margin-top: 3px; }
.pc-radio b { display: block; font-size: 13.5px; }
.pc-radio small { display: block; font-size: 12px; color: var(--muted, #646b75); line-height: 1.35; }
.pc-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.pc-seg button { padding: 7px 12px; border: 1.5px solid var(--border, #d4d8de); border-radius: 18px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; color: inherit; }
.pc-seg button.on { border-color: var(--accent, #4338ca); background: var(--accent-soft, #e7e8fd); font-weight: 600; }
.pc-range.bad { border-color: var(--danger, #c0392b); }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted, #646b75); }
.pc-stepper { display: flex; align-items: center; gap: 4px; }
.pc-step { width: 32px; height: 32px; flex: none; border: 1px solid var(--border, #d4d8de); border-radius: 8px; background: #fff; font-size: 18px; cursor: pointer; color: var(--text, #1f2328); }
.pc-num { text-align: center; -moz-appearance: textfield; }
.pc-num::-webkit-inner-spin-button { -webkit-appearance: none; }
.pc-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--border, #d4d8de); }
.pc-go { min-width: 170px; font-weight: 600; }

/* Qo'lda ag'darish bosqichi */
.pc-step-ov { position: absolute; inset: 0; background: rgba(20,22,28,.45); display: flex; align-items: center; justify-content: center; z-index: 2; }
.pc-step-box { max-height: calc(100% - 24px); overflow: auto; box-sizing: border-box; width: min(480px, calc(100% - 32px)); background: #fff; border-radius: 12px; padding: 18px 20px 4px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.pc-step-box h3 { margin: 0 0 8px; font-size: 17px; }
.pc-flip { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto 6px; }
.pc-steps { margin: 6px 0 8px 18px; padding: 0; font-size: 14px; line-height: 1.5; }
.pc-steps li { margin-bottom: 4px; }
.pc-chk { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 5px 0; cursor: pointer; }
.pc-safe { align-items: flex-start; margin-top: 10px; }
.pc-safe input { margin-top: 3px; }
.pc-safe b { display: block; font-size: 13.5px; }
.pc-safe small { display: block; font-size: 12px; color: var(--muted, #646b75); line-height: 1.35; }
.pc-step-box .pc-foot { padding: 12px 0 14px; margin-top: 8px; }

@media (max-width: 860px) {
  /* Tor oyna: tepada kichik ko'rinish, pastda sozlamalar (o'zi aylantiriladi), tugmalar doim ko'rinadi */
  .pc { flex-direction: column; height: calc(100vh - 24px); max-height: calc(100vh - 24px); }
  .pc-prev { flex: 0 0 34%; min-height: 0; }
  .pc-stage { padding: 8px 8px 2px; }
  .pc-nav { min-height: 30px; }
  .pc-sum { padding: 2px 12px 6px; font-size: 12.5px; }
  .pc-side { flex: 1 1 0; min-height: 0; border-left: 0; border-top: 1px solid var(--border, #d4d8de); }
  .pc-head { padding: 8px 14px 2px; }
  .pc-foot { padding: 10px 14px 12px; }
}
@media (max-height: 520px) {
  .pc-prev .pc-sum { display: none; }
}
@media (prefers-color-scheme: dark) {
  html.dark .pc-prev { background: #1b1d22; }
}
