/* Studio Master - visual das telas públicas (envio, download, login, termos, exclusão) */

/* Paleta da Studio Master: vermelho e branco */
.su {
    --su-accent: #d0021b;
    --su-accent-dark: #a80116;
    --su-accent-soft: #fdecee;
    --su-accent-text: #ffffff;
    --su-bg: #f6f6f7;
    --su-surface: #ffffff;
    --su-line: #e4e4e7;
    --su-text: #1d1d20;
    --su-muted: #65656d;
    --su-warn: #92400e;
    --su-warn-bg: #fef3c7;
    --su-danger: #a80116;
    --su-ok: #15803d;
    --su-radius: 12px;

    position: fixed;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    background: var(--su-bg);
    color: var(--su-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
}

/* Nesta tela o cabeçalho é próprio: some com o fundo, o logotipo e as abas flutuantes do tema */
body.su-page { background: #fff; }
body.su-page > .background,
body.su-page > a > .main-logo,
body.su-page > #page-tabs,
body.su-page > .mobile-nav { display: none !important; }

.su-header {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    padding: 0 24px;
    background: var(--su-surface);
    border-bottom: 1px solid var(--su-line);
}
.su-logo { display: flex; align-items: center; }
.su-logo img { display: block; height: 44px; width: auto; }
.su-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.su-nav :is(a, button) {
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--su-muted);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.su-nav :is(a, button):hover { background: var(--su-accent-soft); color: var(--su-accent-dark); }

.su *, .su *::before, .su *::after { box-sizing: border-box; }
.su [hidden] { display: none !important; }
.su h1, .su h2 { margin: 0; color: inherit; font-weight: 700; }
.su p { margin: 0; }

/* ---------- botões e campos ---------- */

.su-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--su-line);
    border-radius: 10px;
    background: var(--su-surface);
    color: var(--su-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.su-btn:hover { border-color: var(--su-accent); color: var(--su-accent-dark); }
.su-btn:disabled { opacity: .55; cursor: default; }
.su-btn-primary { background: var(--su-accent); border-color: var(--su-accent); color: var(--su-accent-text); }
.su-btn-primary:hover { background: var(--su-accent-dark); border-color: var(--su-accent-dark); color: var(--su-accent-text); }
.su-btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.su-btn-danger { color: var(--su-danger); }
.su-btn-block { width: 100%; }

.su select, .su input[type="number"], .su input[type="email"], .su input[type="text"], .su input[type="password"], .su textarea {
    width: 100%;
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid var(--su-line);
    border-radius: 6px;
    background: var(--su-surface);
    color: var(--su-text);
    font: inherit;
    font-size: 13px;
}
.su textarea { resize: vertical; padding: 8px; }
.su :is(select, input, textarea, button):focus-visible { outline: 2px solid var(--su-accent); outline-offset: 1px; }

.su-field { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--su-muted); }
.su-field > :is(input, select, textarea) { margin-top: 4px; min-height: 40px; font-size: 14px; }
.su-optional { font-weight: 400; }

.su-error { margin-top: 12px !important; padding: 8px 10px; border-radius: 6px; background: var(--su-accent-soft); color: var(--su-danger); font-size: 13px; }
.su-hint { margin: 12px 0 !important; color: var(--su-muted); font-size: 13px; }

/* ---------- estado inicial ---------- */

.su-empty {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    gap: 20px;
    padding: 32px 16px;
    overflow-y: auto;
}
.su[data-state="empty"] .su-empty { display: flex; }

.su-hero { width: min(680px, 100%); text-align: center; }
.su-hero h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.su-hero p { margin-top: 10px; color: var(--su-muted); font-size: 16px; text-wrap: balance; }

.su-drop {
    width: min(680px, 100%);
    padding: 36px 24px;
    border: 2px dashed #d4d4d8;
    border-radius: 20px;
    background: var(--su-surface);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.su-drop:hover, .su-drop:focus-visible { border-color: var(--su-accent); background: var(--su-accent-soft); outline: none; }
.su-drop-icon { display: inline-flex; padding: 16px; border-radius: 50%; background: var(--su-accent-soft); }
.su-drop:hover .su-drop-icon { background: #fff; }
.su-drop-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--su-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.su-drop h2 { margin: 14px 0 4px; font-size: 20px; }
.su-drop p { color: var(--su-muted); }
.su-drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.su-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; width: min(680px, 100%); margin: 0; padding: 0; list-style: none; }
.su-steps li { display: flex; align-items: center; gap: 8px; color: var(--su-muted); font-size: 13px; font-weight: 600; }
.su-steps b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--su-accent); color: #fff; font-size: 12px; }

.su-pricelist { width: min(680px, 100%); padding: 16px 20px; border-radius: var(--su-radius); background: var(--su-surface); border: 1px solid var(--su-line); }
.su-pricelist h2 { font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--su-muted); }
.su-pricelist ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.su-pricelist li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--su-bg); font-variant-numeric: tabular-nums; }
.su-pricelist li b { color: var(--su-accent-dark); }
.su-pricelist p { color: var(--su-muted); font-size: 13px; }

/* ---------- área de trabalho ---------- */

.su-work { display: none; flex: 1; min-height: 0; }
.su:not([data-state="empty"]) .su-work { display: flex; }

.su-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.su-toolbar { padding: 14px 20px; background: var(--su-surface); border-bottom: 1px solid var(--su-line); }
.su-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.su-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.su-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.su-check input, .su-card-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--su-accent); cursor: pointer; }

.su-bulk { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--su-bg); }
.su-bulk-label { flex-basis: 100%; font-size: 13px; font-weight: 700; }
.su-bulk label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 130px; max-width: 190px; font-size: 12px; font-weight: 600; color: var(--su-muted); }
.su-bulk label:last-child { flex: 0 1 84px; }

.su-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    gap: 16px;
    padding: 20px;
}

/* ---------- cartão da foto ---------- */

.su-card { display: flex; flex-direction: column; border: 1px solid var(--su-line); border-radius: var(--su-radius); background: var(--su-surface); overflow: hidden; }
/* Cartões fora da tela não são desenhados: mantém a grade leve com centenas de fotos */
.su-card { content-visibility: auto; contain-intrinsic-size: auto 430px; }
.su-card.is-selected { border-color: var(--su-accent); outline: 2px solid var(--su-accent); outline-offset: -2px; }

.su-prev {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ececee;
}
.su-prev.is-loading::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    border: 3px solid #d4d4d8; border-top-color: var(--su-accent); border-radius: 50%;
    animation: su-spin .9s linear infinite;
}
.su-prev.is-unknown::after { content: "Sem prévia"; position: absolute; color: var(--su-muted); font-size: 12px; }
@keyframes su-spin { to { transform: rotate(360deg); } }

/* O quadro ocupa uma fração (--fw, --fh) da área útil da prévia e fica centralizado */
.su-frame {
    --fw: 1; --fh: 1;
    position: absolute;
    inset: 10px;
    margin: auto;
    width: calc((100% - 20px) * var(--fw));
    height: calc((100% - 20px) * var(--fh));
    overflow: hidden;
}
.su-frame img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.su-frame img:not([src]) { visibility: hidden; }

/* Ajustar: o quadro é o papel; a foto inteira fica dentro, com margens brancas */
.su-frame.is-fit { background: #fff; box-shadow: 0 0 0 1px #c3cad4; }
.su-frame.is-fit img { object-fit: contain; }
.su-frame.is-fit.has-border { padding: 5%; }

/* Preencher: linha pontilhada mostra onde a foto será cortada */
.su-crop { position: absolute; border: 2px dashed #fff; box-shadow: 0 0 0 999px rgb(0 0 0 / 55%); pointer-events: none; }
.su-crop.is-exact { border-color: transparent; }
.su-frame.has-border .su-crop { outline: 5px solid #fff; outline-offset: -7px; }

.su-card-check { position: absolute; top: 6px; left: 6px; display: flex; padding: 6px; border-radius: 6px; background: rgb(255 255 255 / 90%); cursor: pointer; }
.su-card-x {
    position: absolute; top: 6px; right: 6px;
    width: 30px; height: 30px; padding: 0;
    border: 0; border-radius: 6px;
    background: rgb(255 255 255 / 90%); color: var(--su-text);
    font-size: 20px; line-height: 1; cursor: pointer;
}
.su-card-x:hover { background: var(--su-accent); color: #fff; }

.su-badge-warn { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: var(--su-warn-bg); color: var(--su-warn); font-size: 11px; font-weight: 700; cursor: help; }

.su-card-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.su-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--su-muted); }
.su-card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.su-card-fields select { padding: 4px 4px; font-size: 12px; }
.su-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.su-card-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.su-stepper { display: flex; align-items: stretch; border: 1px solid var(--su-line); border-radius: 6px; overflow: hidden; }
.su-stepper button { width: 32px; border: 0; background: #f4f4f5; color: var(--su-text); font-size: 16px; cursor: pointer; }
.su-stepper button:hover { background: var(--su-accent-soft); color: var(--su-accent-dark); }
.su-stepper input { width: 44px; min-height: 32px; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.su-stepper input::-webkit-outer-spin-button, .su-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.su-card-links { display: flex; justify-content: space-between; }
.su-card-links button { padding: 2px 0; border: 0; background: none; color: var(--su-accent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.su-card-links button:hover { text-decoration: underline; }
.su-card.has-note [data-act="note"]::after { content: " ✓"; }

/* progresso por foto durante o envio */
.su-card-status { display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px 6px; background: rgb(17 24 39 / 78%); color: #fff; font-size: 11px; font-weight: 600; }
.su-card-status-bar { height: 3px; width: 0; margin-bottom: 3px; border-radius: 2px; background: #fff; transition: width .2s; }
.su[data-state="sending"] .su-card-status, .su[data-state="done"] .su-card-status { display: block; }
.su-card[data-upload="done"] .su-card-status { background: var(--su-ok); }
.su[data-state="sending"] .su-badge-warn, .su[data-state="done"] .su-badge-warn,
.su[data-state="sending"] .su-card-x, .su[data-state="done"] .su-card-x,
.su[data-state="sending"] .su-card-check, .su[data-state="done"] .su-card-check { display: none; }
.su[data-state="sending"] .su-toolbar, .su[data-state="done"] .su-toolbar { display: none; }
.su[data-state="sending"] .su-card-body, .su[data-state="done"] .su-card-body { opacity: .65; }

/* ---------- painel lateral ---------- */

.su-side { flex: 0 0 360px; overflow-y: auto; padding: 20px; background: var(--su-surface); border-left: 1px solid var(--su-line); }
.su-panel { display: none; }
.su[data-state="editing"] .su-panel-order,
.su[data-state="sending"] .su-panel-progress,
.su[data-state="done"] .su-panel-done { display: block; }
.su-panel h2 { font-size: 17px; margin-bottom: 12px; }

.su-summary { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.su-summary th { padding: 4px 0; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--su-muted); border-bottom: 1px solid var(--su-line); }
.su-summary td { padding: 7px 0; border-bottom: 1px solid var(--su-line); }
.su-summary :is(th, td):nth-child(2) { text-align: center; padding-inline: 8px; }
.su-summary :is(th, td):nth-child(3) { text-align: right; white-space: nowrap; }
.su-summary small { display: block; color: var(--su-muted); font-size: 11px; }
.su-summary tfoot td { border-bottom: 0; padding-top: 12px; font-size: 16px; font-weight: 700; }
.su-summary tfoot td:last-child { color: var(--su-accent); font-size: 20px; }

.su-warn-note { margin-top: 12px !important; padding: 8px 10px; border-radius: 6px; background: var(--su-warn-bg); color: var(--su-warn); font-size: 12px; }
.su-panel-order .su-btn-block { margin-top: 16px; min-height: 46px; font-size: 15px; }

.su-bar { height: 10px; border-radius: 999px; background: #ececee; overflow: hidden; }
.su-bar-fill { height: 100%; width: 0; background: var(--su-accent); transition: width .25s; }
.su-progress-pct { margin: 10px 0 2px !important; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.su-progress-detail { color: var(--su-muted); font-size: 13px; min-height: 18px; }

.su-panel-done { text-align: center; padding-top: 12px; }
.su-done-icon { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: #dcfce7; fill: none; stroke: var(--su-ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.su-panel-done h2 { margin: 12px 0 8px; }
.su-panel-done p { color: var(--su-muted); }
.su-done-link { display: flex; gap: 8px; margin-top: 14px; }
.su-panel-done .su-btn-block { margin-top: 20px; }

/* ---------- barra do celular, modal, avisos ---------- */

.su-mobilebar { display: none; }

.su-modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(0 0 0 / 55%); }
.su-modal-box { width: min(420px, 100%); padding: 20px; border-radius: 12px; background: var(--su-surface); }
.su-modal-box h2 { font-size: 18px; margin-bottom: 8px; }
.su-modal-box input { margin-top: 14px; min-height: 44px; font-size: 18px; text-align: center; letter-spacing: .2em; }
.su-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.su-dropveil { display: none; position: absolute; inset: 0; z-index: 15; align-items: center; justify-content: center; border: 3px dashed var(--su-accent); border-radius: 14px; background: rgb(255 255 255 / 88%); font-size: 20px; font-weight: 700; pointer-events: none; }
.su.is-dragging .su-dropveil { display: flex; }

.su-toast { position: absolute; left: 50%; bottom: 20px; z-index: 16; max-width: min(560px, calc(100% - 32px)); padding: 10px 16px; border-radius: 8px; background: #1d1d20; color: #fff; font-size: 13px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.su-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

#drop-overlay { display: none !important; }

/* ---------- telas pequenas ---------- */

@media (max-width: 900px) {
    .su { overflow-y: auto; }
    .su-header { height: 56px; padding: 0 16px; position: sticky; top: 0; z-index: 9; }
    .su-logo img { height: 36px; }
    .su-work { flex-direction: column; flex: none; }
    .su-main { flex: none; }
    .su-grid { overflow: visible; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 12px; }
    .su-side { flex: none; border-left: 0; border-top: 1px solid var(--su-line); padding-bottom: 88px; }
    .su-bulk label { flex: 1 1 40%; max-width: none; }

    .su[data-state="editing"] .su-mobilebar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px;
        background: var(--su-surface); border-top: 1px solid var(--su-line);
        box-shadow: 0 -4px 16px rgb(0 0 0 / 10%);
    }
    .su-mobilebar b { display: block; font-size: 17px; }
    .su-mobilebar span { color: var(--su-muted); font-size: 12px; }
    .su-toast { bottom: 80px; }
}

/* Celular: uma foto por linha, miniatura à esquerda e opções à direita */
@media (max-width: 560px) {
    .su-grid { grid-template-columns: 1fr; }
    .su-card { flex-direction: row; }
    .su-prev { flex: 0 0 128px; height: 128px; }
    .su-card-body { flex: 1; min-width: 0; }
    .su-card-status span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    .su *, .su *::before, .su *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Telas simples: download, login, termos e exclusão (um cartão centralizado)
   ========================================================================== */

.su-center { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 32px 16px; }

.su-box { width: min(460px, 100%); padding: 32px; border: 1px solid var(--su-line); border-radius: 20px; background: var(--su-surface); text-align: center; box-shadow: 0 8px 30px rgb(0 0 0 / 5%); }
.su-box h1 { margin: 16px 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.su-box p { color: var(--su-muted); font-size: 15px; }
.su-box .su-field { text-align: left; }
.su-box .su-field > input { min-height: 44px; font-size: 16px; }
.su-box .su-btn-block { margin-top: 16px; min-height: 46px; font-size: 15px; text-decoration: none; }
.su-box .su-btn-block + .su-btn-block { margin-top: 10px; }
.su-box .su-error { text-align: left; }
.su-box .g-recaptcha { display: flex; justify-content: center; margin-top: 16px; }

.su-box-icon { display: inline-flex; padding: 16px; border-radius: 50%; background: var(--su-accent-soft); }
.su-box-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--su-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.su-box-icon.is-ok { background: #dcfce7; }
.su-box-icon.is-ok svg { stroke: var(--su-ok); stroke-width: 2.4; }
.su-box-icon.is-muted { background: #f4f4f5; }
.su-box-icon.is-muted svg { stroke: var(--su-muted); }
.su-box-icon.is-spin svg { animation: su-spin 1.1s linear infinite; }

.su-box-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.su-box-actions .su-btn { flex: 1 1 140px; min-height: 46px; text-decoration: none; }

.su-btn-link { margin-top: 14px; padding: 4px; border: 0; background: none; color: var(--su-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.su-btn-link:hover { color: var(--su-accent-dark); }

.su-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--su-bg); text-align: left; overflow-wrap: anywhere; }
.su-note b { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--su-muted); }

.su-box-table { margin-top: 16px; text-align: left; }
.su-filelist { max-height: 180px; overflow-y: auto; margin: 16px 0 0; padding: 0; list-style: none; border: 1px solid var(--su-line); border-radius: 10px; text-align: left; }
.su-filelist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 13px; }
.su-filelist li + li { border-top: 1px solid var(--su-line); }
.su-filelist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-filelist small { flex: none; color: var(--su-muted); }

/* Estados controlados pelo droppy.js */
.su #download-started { display: none; }
.su #download-started.active { display: block; }
.su .upload-block-tooltip { all: unset; display: none; }
.su .upload-block-tooltip.active { display: block; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--su-accent-soft); color: var(--su-danger); font-size: 13px; text-align: left; }
.su .upload-block-tooltip .content { all: unset; display: none; }
.su .upload-block-tooltip .content.active { display: block; }
.su .upload-block-tooltip p { all: unset; }

@media (max-width: 560px) {
    .su-box { padding: 24px 20px; border-radius: 16px; }
}

/* ==========================================================================
   Painel lateral das abas do tema (Sobre, Termos, Contato, idioma, arquivos)
   ========================================================================== */

body.su-page .tab-window {
    width: min(560px, 100%);
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border: 0;
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 40%), -12px 0 40px rgb(0 0 0 / 18%);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1d1d20;
    transition: none;
}
body.su-page .tab-window.active { display: block; min-width: 0; z-index: 30; overflow-y: auto; }
body.su-page .tab-window:has(.tab.large.active) { width: min(960px, 100%); }
body.su-page .tab-window hr { display: none; }
body.su-page .tab-window .tab-logo { display: none; }

body.su-page .tab-window .close-btn {
    position: sticky;
    top: 16px;
    left: auto;
    float: right;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 16px 16px 0 0;
    border-radius: 10px;
    background: #f4f4f5;
    color: #1d1d20;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}
body.su-page .tab-window .close-btn:hover { background: #fdecee; color: #a80116; }

body.su-page .tab-window .tab { width: auto; min-width: 0; max-width: none; margin: 0; padding: 28px 28px 40px; overflow: visible; font-size: 15px; line-height: 1.6; }
body.su-page .tab-window .tab :is(h1, h2, h3) { margin: 0 0 12px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #1d1d20; }
body.su-page .tab-window .tab h1 { font-size: 26px; }
body.su-page .tab-window .tab h2 { font-size: 19px; margin-top: 24px; }
body.su-page .tab-window .tab p { margin: 0 0 12px; }
body.su-page .tab-window .tab a { color: #a80116; }

body.su-page .tab-window .tab .label { display: block; margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: #65656d; }
body.su-page .tab-window .tab :is(.input, .textarea, select) {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    font: inherit;
    color: inherit;
}
body.su-page .tab-window .tab .select, body.su-page .tab-window .tab .select select { width: 100%; height: auto; }
body.su-page .tab-window .tab .control.has-icons-left .icon { display: none; }
body.su-page .tab-window .tab :is(.input, .textarea, select):focus { outline: 2px solid #d0021b; outline-offset: 1px; border-color: #d0021b; }
body.su-page .tab-window .tab .button.is-info {
    min-height: 44px;
    margin-top: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #d0021b !important;
    color: #fff !important;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
body.su-page .tab-window .tab .button.is-info:hover { background: #a80116 !important; }
body.su-page .tab-window .tab .notification { margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: #fdecee; color: #a80116; }

/* Pré-visualização dos arquivos do pedido */
body.su-page .tab-window .files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
body.su-page .tab-window .files .file { width: auto; margin: 0; border: 1px solid #e4e4e7; border-radius: 12px; overflow: hidden; background: #fff; }
body.su-page .tab-window .files .file a { display: block; color: inherit; text-decoration: none; }
body.su-page .tab-window .files .file-content-block { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; height: auto; background: #ececee; }
body.su-page .tab-window .files .file-content-block img { width: 100%; height: 100%; object-fit: cover; }
body.su-page .tab-window .files .file-details { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12px; }
body.su-page .tab-window .files .file-details .details { min-width: 0; }
body.su-page .tab-window .files .file-details .name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.su-page .tab-window .files .file-details .size { color: #65656d; }
body.su-page .tab-window .files .file-details .download { color: #d0021b; font-size: 18px; font-weight: 700; }
