/* Vip Automação — tema e layout */

[data-theme="vip"] {
    /* Azul Vip Automação — #044CC4 / #033a96 */
    --p: 218 96% 39%;
    --pf: 218 96% 30%;
    --pc: 0 0% 100%;
    --s: 222 47% 20%;
    --sf: 222 47% 15%;
    --sc: 0 0% 100%;
    --a: 218 96% 39%;
    --af: 218 96% 30%;
    --ac: 0 0% 100%;
    --n: 222 47% 11%;
    --nf: 222 47% 8%;
    --nc: 210 40% 96%;
    --b1: 0 0% 100%;
    --b2: 220 25% 97%;
    --b3: 220 18% 92%;
    --bc: 222 47% 11%;
    --in: 218 96% 39%;
    --su: 218 96% 39%;
    --wa: 43 96% 56%;
    --er: 0 84% 60%;
    --rounded-box: 0.75rem;
    --rounded-btn: 9999px;
}

.page-bg {
    background-color: hsl(var(--b2));
}

.cotacao-page {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

html.cotacao-html,
html.cotacao-html body {
    width: 100%;
    max-width: 100%;
}

.header-vip {
    background: hsl(var(--n));
    border-bottom: 1px solid hsl(0 0% 100% / 0.08);
}

.logo-vip {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
}

.hero-vip {
    background: linear-gradient(135deg, hsl(222 47% 8%) 0%, hsl(230 45% 16%) 55%, hsl(222 47% 10%) 100%);
    position: relative;
    overflow: hidden;
}

.cotacao-top {
    background: linear-gradient(180deg, hsl(var(--n)) 0%, hsl(230 45% 14%) 100%);
    position: relative;
}

.cotacao-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 90% 10%, hsl(var(--p) / 0.12), transparent);
    pointer-events: none;
}

.empresa-bar,
.cotacao-info {
    position: relative;
    z-index: 1;
}

.hero-vip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 90% 20%, hsl(var(--p) / 0.15), transparent);
    pointer-events: none;
}

.glass-card {
    background: hsl(var(--b1));
    border: 1px solid hsl(var(--b3));
    box-shadow: 0 1px 2px hsl(222 47% 11% / 0.04);
}

.cotacao-progresso progress,
.cotacao-progresso .cotacao-progress-bar {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 9999px;
    overflow: hidden;
    background-color: hsl(0 0% 82%);
}

.cotacao-progresso progress::-webkit-progress-bar,
.cotacao-progresso .cotacao-progress-bar::-webkit-progress-bar {
    background-color: hsl(0 0% 82%);
    border-radius: 9999px;
}

.cotacao-progresso progress::-webkit-progress-value,
.cotacao-progresso .cotacao-progress-bar::-webkit-progress-value {
    background-color: hsl(142 71% 42%);
    border-radius: 9999px;
    transition: width 0.25s ease;
}

.cotacao-progresso progress::-moz-progress-bar,
.cotacao-progresso .cotacao-progress-bar::-moz-progress-bar {
    background-color: hsl(142 71% 42%);
    border-radius: 9999px;
}

.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(222 47% 11% / 0.06);
}

.valorProduto { display: none; }

.linha-ativa {
    background: hsl(var(--p) / 0.08) !important;
    box-shadow: inset 3px 0 0 hsl(var(--p));
}

.item-preenchido {
    background: hsl(var(--p) / 0.04) !important;
}

.item-preenchido .status-dot {
    background: hsl(var(--p));
    box-shadow: 0 0 0 3px hsl(var(--p) / 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: hsl(var(--b3));
    display: inline-block;
    flex-shrink: 0;
}

.input-money {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.input-money-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    width: 100%;
    max-width: 100%;
}

.input-money-wrap .campos {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    caret-color: hsl(var(--p));
}

.input-money-wrap .campos:focus,
.input-money-wrap .campos:focus-visible,
.table-workspace .input-money-wrap .input.campos:focus {
    background-color: hsl(var(--p)) !important;
    border-color: hsl(var(--pf)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    outline: none;
    box-shadow: none;
}

.input-money-wrap .campos:focus::selection,
.input-money-wrap .campos:focus::-moz-selection {
    background-color: hsl(var(--pf)) !important;
    color: #fff !important;
}

.input-money-wrap .campos:focus::-webkit-selection {
    background-color: hsl(var(--pf)) !important;
    color: #fff !important;
}

.table-workspace .col-valor,
.table-workspace thead .col-valor {
    text-align: right;
    padding-left: 0.25rem;
    padding-right: 0.35rem;
}

.table-workspace .col-total,
.table-workspace thead .col-total {
    text-align: right;
    white-space: nowrap;
    padding-left: 0.25rem;
    padding-right: 0.5rem;
}

.table-workspace .col-total span {
    display: inline-block;
    white-space: nowrap;
}

.input-money-wrap .prefix {
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(var(--bc) / 0.4);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
    margin-right: 0.125rem;
    padding-right: 0.25rem;
}

.input-money-wrap:focus-within .prefix {
    color: hsl(var(--p));
    font-weight: 700;
}

/* Tabela — layout fixo, inputs sempre visíveis */
.table-workspace {
    table-layout: fixed;
    width: 100%;
}

.table-workspace .col-status { width: 2rem; }
.table-workspace .col-item { width: 4.5rem; }
.table-workspace .col-qtd { width: 5rem; }
.table-workspace .col-valor { width: 9rem; }
.table-workspace .col-total { width: 10rem; }

.table-workspace .col-item,
.table-workspace thead .col-item {
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.table-workspace .col-item span {
    display: block;
    text-align: center;
}

.table-workspace .col-qtd,
.table-workspace thead .col-qtd {
    text-align: center;
}

.table-workspace .col-qtd span {
    display: inline-block;
    min-width: 100%;
    text-align: center;
}

.table-workspace .col-desc {
    overflow: hidden;
    padding-left: 0.5rem;
}

.table-workspace thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: hsl(var(--n));
    color: hsl(var(--nc));
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border: none;
}

.table-workspace tbody td {
    vertical-align: middle;
    border-color: hsl(var(--b3));
}

.table-workspace .desc-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
}

.table-workspace .desc-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6875rem;
    opacity: 0.5;
    margin-top: 0.125rem;
}

/* Colunas de digitação fixas à direita */
.table-workspace .col-qtd,
.table-workspace .col-valor,
.table-workspace .col-total {
    position: sticky;
    z-index: 5;
    background: hsl(var(--b1));
}

.table-workspace thead .col-qtd,
.table-workspace thead .col-valor,
.table-workspace thead .col-total {
    z-index: 15;
    background: hsl(var(--n));
}

.table-workspace .col-total { right: 0; }
.table-workspace .col-valor { right: 10rem; }
.table-workspace .col-qtd { right: 19rem; }

.table-workspace .linha-ativa .col-qtd,
.table-workspace .linha-ativa .col-valor,
.table-workspace .linha-ativa .col-total {
    background: hsl(var(--p) / 0.08);
}

.table-workspace .item-preenchido .col-qtd,
.table-workspace .item-preenchido .col-valor,
.table-workspace .item-preenchido .col-total {
    background: hsl(var(--p) / 0.04);
}

.table-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.table-scroll::-webkit-scrollbar {
    width: 5px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: hsl(var(--b3));
    border-radius: 9999px;
}

.cotacao-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.btn-reenviar {
    font-weight: 600;
    min-height: 2.25rem;
}

body.modo-leitura .btn-reenviar,
body.modo-leitura .btn-reenviar-mobile {
    display: none !important;
}

.dock-bar {
    background: hsl(var(--b1));
    border-top: 1px solid hsl(var(--b3));
    box-shadow: 0 -4px 20px hsl(222 47% 11% / 0.06);
    flex-shrink: 0;
}

.filter-chip.active {
    background: hsl(var(--p));
    color: hsl(var(--pc));
    border-color: hsl(var(--p));
}

.toolbar-sticky {
    flex-shrink: 0;
    background: hsl(var(--b1));
    border-bottom: 1px solid hsl(var(--b3));
    overflow: visible;
}

@media screen and (min-width: 768px) {
    .toolbar-row {
        width: 100%;
    }

    .toolbar-busca {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.print-dropdown {
    position: relative;
}

.print-dropdown .dropdown-content {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: auto;
    z-index: 100;
    background: hsl(var(--b1));
}

.print-dropdown[open] > summary,
.csv-dropdown[open] > summary {
    background: hsl(var(--b2));
}

/* Modais — overlay glass + centralização */
dialog.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 1rem;
    border: none;
    background: transparent;
    z-index: 9999;
    overflow: hidden;
}

dialog.modal::backdrop {
    background: hsl(222 47% 11% / 0.35);
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
}

dialog.modal[open] {
    display: grid !important;
    place-items: center;
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

dialog.modal .modal-backdrop {
    display: none !important;
}

dialog.modal .modal-box {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    translate: none;
    scale: none;
    z-index: 1;
    width: min(100%, 28rem);
    max-height: min(calc(100dvh - 2rem), 90vh);
    overflow-y: auto;
    margin: 0;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid hsl(0 0% 100% / 0.55);
    background: hsl(0 0% 100% / 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow:
        0 0 0 1px hsl(0 0% 100% / 0.35) inset,
        0 24px 48px -12px hsl(222 47% 11% / 0.28);
}

body.modal-aberto {
    overflow: hidden;
}

body.modal-aberto .header-vip,
body.modal-aberto .toolbar-sticky,
body.modal-aberto .table-workspace thead th,
body.modal-aberto .table-workspace .col-qtd,
body.modal-aberto .table-workspace .col-valor,
body.modal-aberto .table-workspace .col-total {
    z-index: 0 !important;
}

#input-importar-csv {
    position: fixed;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

/* Login */
.login-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.login-shell {
    height: 100%;
    min-height: 0;
}

.login-art {
    background: linear-gradient(145deg, hsl(222 47% 8%) 0%, hsl(230 45% 18%) 100%);
}

.login-rotator {
    overflow: hidden;
    z-index: 1;
}

.login-rotator-line {
    position: absolute;
    inset-block: 0;
    inset-inline: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

@media (min-width: 1280px) {
    .login-rotator-line {
        inset-inline: 3rem;
    }
}

.login-rotator-line.is-active {
    opacity: 1;
}

.login-rotator-line.is-leaving {
    opacity: 0;
    transform: translateY(-1rem);
}

.login-rotator-cursor {
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 0.125rem;
    background: hsl(var(--p));
    vertical-align: baseline;
    animation: login-rotator-cursor 0.85s step-end infinite;
}

.login-rotator-line.is-leaving .login-rotator-cursor {
    animation: none;
    opacity: 0;
}

@keyframes login-rotator-cursor {
    50% { opacity: 0; }
}

/* Elementos só mobile — ocultos no desktop */
.mobile-card-head { display: none; }

@media screen and (max-width: 767px) {
    /* ── Cabeçalho mobile ── */
    .mobile-cotacao-header {
        padding: 0.875rem 1rem 0.75rem;
        border-bottom: 1px solid hsl(0 0% 100% / 0.08);
    }

    .mobile-cotacao-header-main {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mobile-cotacao-kicker {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: hsl(0 0% 100% / 0.55);
        font-weight: 600;
    }

    .mobile-cotacao-empresa {
        margin-top: 0.15rem;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .mobile-prazo-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.55rem;
        border-radius: 9999px;
        background: hsl(0 0% 100% / 0.12);
        border: 1px solid hsl(0 0% 100% / 0.12);
        font-size: 0.6875rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .mobile-cotacao-details {
        margin-top: 0.625rem;
    }

    .mobile-cotacao-details summary {
        list-style: none;
        cursor: pointer;
        font-size: 0.75rem;
        color: hsl(0 0% 100% / 0.65);
        font-weight: 500;
    }

    .mobile-cotacao-details summary::-webkit-details-marker { display: none; }

    .mobile-cotacao-details-body {
        margin-top: 0.5rem;
        padding: 0.625rem 0.75rem;
        border-radius: 0.75rem;
        background: hsl(0 0% 100% / 0.08);
        display: grid;
        gap: 0.45rem;
    }

    .mobile-cotacao-details-body p {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        font-size: 0.75rem;
    }

    .mobile-cotacao-details-body span {
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: hsl(0 0% 100% / 0.45);
        font-weight: 600;
    }

    /* ── Layout geral ── */
    .cotacao-page main {
        padding: 0.625rem 0.75rem 0.75rem;
        gap: 0.625rem;
    }

    .stats-mobile .stat-card {
        padding: 0.65rem 0.75rem;
        border-radius: 0.875rem;
    }

    .stats-mobile .stat-card p.text-xl,
    .stats-mobile .stat-card p.text-lg {
        font-size: 1.125rem;
        line-height: 1.2;
    }

    .mobile-obs-empty { display: none; }

    .mobile-obs {
        padding: 0.75rem 0.875rem;
        border-radius: 0.875rem;
    }

    .toolbar-mobile {
        padding: 0.625rem 0.75rem;
        border-radius: 0.875rem;
        margin: 0 0.5rem;
    }

    .toolbar-mobile .join {
        width: 100%;
    }

    .toolbar-mobile .join .filter-chip {
        flex: 1;
        font-size: 0.6875rem;
    }

    .toolbar-mobile .input {
        width: 100%;
        border-radius: 0.75rem;
    }

    .toolbar-mobile > .flex-wrap,
    .toolbar-mobile .flex-wrap {
        width: 100%;
    }

    /* Lista em cards */
    .mobile-list-scroll {
        padding: 0.5rem;
        background: hsl(var(--b2));
    }

    .mobile-list-scroll .glass-card,
    .flex.flex-col.flex-1.min-h-0.w-full > .glass-card {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .table-workspace thead { display: none; }

    .table-workspace .col-qtd,
    .table-workspace .col-valor,
    .table-workspace .col-total,
    .table-workspace .col-status,
    .table-workspace .col-item {
        position: static;
    }

    .table-workspace tbody tr {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 0.625rem;
        padding: 0.875rem;
        border: 1px solid hsl(var(--b3));
        border-radius: 1rem;
        background: hsl(var(--b1));
        box-shadow: 0 1px 3px hsl(222 47% 11% / 0.05);
    }

    .table-workspace tbody tr.linha-ativa {
        border-color: hsl(var(--p));
        box-shadow: inset 3px 0 0 hsl(var(--p)), 0 0 0 1px hsl(var(--p) / 0.2), 0 4px 14px hsl(var(--p) / 0.08);
    }

    .table-workspace tbody tr.item-preenchido {
        border-color: hsl(var(--p) / 0.25);
    }

    .table-workspace tbody td {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        text-align: left;
    }

    .table-workspace tbody td::before { display: none !important; content: none !important; }

    .table-workspace .col-status,
    .table-workspace tbody .col-item,
    .table-workspace tbody .col-qtd { display: none !important; }

    .table-workspace .col-desc {
        padding: 0;
        margin-bottom: 0.625rem;
    }

    .mobile-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .mobile-card-item {
        font-size: 0.6875rem;
        font-weight: 700;
        color: hsl(var(--p));
        background: hsl(var(--p) / 0.1);
        padding: 0.2rem 0.5rem;
        border-radius: 9999px;
        font-family: 'JetBrains Mono', monospace;
    }

    .mobile-card-qtd {
        font-size: 0.6875rem;
        font-weight: 600;
        color: hsl(var(--bc) / 0.55);
        background: hsl(var(--b2));
        padding: 0.2rem 0.5rem;
        border-radius: 9999px;
    }

    .table-workspace .desc-truncate {
        white-space: normal;
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.35;
        color: hsl(var(--bc));
    }

    .table-workspace .desc-meta {
        white-space: normal;
        margin-top: 0.35rem;
        font-size: 0.6875rem;
        line-height: 1.35;
        opacity: 0.55;
    }

    .table-workspace tbody .col-valor {
        margin-top: 0.625rem;
        padding-top: 0.625rem;
        border-top: 1px solid hsl(var(--b3));
    }

    .table-workspace tbody .col-valor::before {
        display: block !important;
        content: "Valor unitário";
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: hsl(var(--bc) / 0.45);
        font-weight: 600;
        margin-bottom: 0.35rem;
    }

    .table-workspace tbody .col-total {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .table-workspace tbody .col-total::before {
        display: block !important;
        content: "Total";
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: hsl(var(--bc) / 0.45);
        font-weight: 600;
    }

    .table-workspace .col-total span {
        font-size: 1rem;
        font-weight: 700;
        color: hsl(var(--p));
        font-family: 'JetBrains Mono', monospace;
    }

    .table-workspace .input-money-wrap {
        justify-content: stretch;
    }

    .table-workspace .input-money-wrap .campos {
        min-height: 2.75rem;
        font-size: 1rem;
        border-radius: 0.75rem;
    }

    /* Dock fixo mobile */
    .mobile-dock {
        position: sticky;
        bottom: 0;
        z-index: 30;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        background: hsl(var(--b1) / 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid hsl(var(--b3));
        box-shadow: 0 -8px 24px hsl(222 47% 11% / 0.08);
    }

    .mobile-dock-inner {
        align-items: center;
    }

    .btn-reenviar-mobile {
        min-height: 2.5rem;
        flex-shrink: 0;
    }
}

@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }

    body,
    body * {
        font-family: Inter, system-ui, -apple-system, sans-serif !important;
        font-variant-numeric: tabular-nums;
        color: #111 !important;
    }

    body {
        background: white !important;
        font-size: 9pt;
        height: auto !important;
        overflow: visible !important;
    }

    .page-bg,
    .cotacao-page {
        background: white !important;
        height: auto !important;
        overflow: visible !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .cotacao-shell,
    main,
    .print-table-wrap,
    .glass-card,
    .flex {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        flex: none !important;
        min-height: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 0 !important;
    }

    main { padding-top: 0 !important; padding-bottom: 0 !important; }

    /* Cabeçalho minimalista */
    .print-header {
        margin-bottom: 0.6rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid #ccc;
    }

    .print-header-top {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 11pt;
    }

    .print-protocolo {
        font-size: 9pt;
        color: #444 !important;
    }

    .print-meta {
        margin-top: 0.2rem;
        font-size: 8pt;
        color: #555 !important;
    }

    .print-observacoes.print-obs-empty { display: none !important; }

    .print-observacoes {
        margin-bottom: 0.5rem;
        padding: 0.35rem 0 !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .print-observacoes h2 {
        font-size: 7pt;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #666 !important;
        margin-bottom: 0.15rem;
    }

    .print-observacoes p {
        font-size: 8pt;
        line-height: 1.35;
    }

    .print-dock {
        margin-top: 0.6rem;
        padding-top: 0.4rem !important;
        border-top: 1px solid #ccc;
        box-shadow: none !important;
        background: transparent !important;
        text-align: right;
    }

    .print-dock p {
        font-size: 7pt;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #666 !important;
    }

    .print-dock .valorTotal {
        font-size: 12pt !important;
        font-weight: 700;
        color: #111 !important;
    }

    .valorProduto { display: inline !important; }
    .input-money-wrap,
    input.campos,
    input.totais { display: none !important; }

    .glass-card {
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }

    /* Tabela — reset do layout mobile em cards */
    .table-workspace {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    .table-workspace thead {
        display: table-header-group !important;
    }

    .table-workspace tbody {
        display: table-row-group !important;
    }

    .table-workspace tbody tr {
        display: table-row !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .table-workspace tbody td {
        display: table-cell !important;
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        z-index: auto !important;
        width: auto !important;
        padding: 0.28rem 0.35rem !important;
        font-size: 8pt !important;
        line-height: 1.3 !important;
        border: none !important;
        border-bottom: 1px solid #e8e8e8 !important;
        vertical-align: top !important;
        text-align: inherit !important;
        background: transparent !important;
        margin: 0 !important;
    }

    .table-workspace tbody .col-item,
    .table-workspace tbody .col-qtd,
    .table-workspace tbody .col-valor,
    .table-workspace tbody .col-total {
        display: table-cell !important;
    }

    .table-workspace tbody td::before {
        display: none !important;
        content: none !important;
    }

    .table-workspace thead th {
        display: table-cell !important;
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        z-index: auto !important;
        background: transparent !important;
        color: #333 !important;
        font-size: 7pt !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0.35rem 0.35rem !important;
        border: none !important;
        border-bottom: 1.5px solid #333 !important;
    }

    .table-workspace thead th::before,
    .table-workspace .col-valor::before,
    .table-workspace .col-total::before {
        display: none !important;
        content: none !important;
    }

    .table-workspace thead th.col-item,
    .table-workspace thead th.col-qtd,
    .table-workspace thead th.col-desc,
    .table-workspace thead th.col-valor,
    .table-workspace thead th.col-total {
        display: table-cell !important;
    }

    .table-workspace .col-status { display: none !important; }

    .mobile-card-head { display: none !important; }

    .table-workspace .col-item {
        width: 9% !important;
        text-align: center !important;
    }

    .table-workspace .col-item span {
        font-size: 8pt !important;
        font-weight: 400 !important;
    }

    .table-workspace .col-desc {
        width: auto !important;
        text-align: left !important;
    }

    .table-workspace .col-qtd {
        width: 8% !important;
        text-align: center !important;
    }

    .table-workspace .col-qtd span {
        font-size: 8pt !important;
        font-weight: 400 !important;
    }

    .table-workspace .col-valor,
    .table-workspace .col-total {
        width: 12% !important;
        text-align: right !important;
    }

    .table-workspace .col-valor .valorProduto,
    .table-workspace .col-total span {
        font-size: 8pt !important;
        font-weight: 400 !important;
    }

    .table-workspace .col-qtd,
    .table-workspace .col-valor,
    .table-workspace .col-total,
    .table-workspace thead .col-qtd,
    .table-workspace thead .col-valor,
    .table-workspace thead .col-total {
        position: static !important;
        right: auto !important;
        left: auto !important;
    }

    .table-scroll,
    .print-table-wrap,
    .mobile-list-scroll {
        overflow: visible !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .table-workspace .desc-truncate {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        font-weight: 500 !important;
        font-size: 8pt !important;
    }

    .table-workspace .desc-meta {
        display: block !important;
        white-space: normal !important;
        font-size: 7pt !important;
        color: #666 !important;
        margin-top: 0.1rem;
    }

    .table-workspace .trGeral.hidden { display: none !important; }

    .table-workspace .linha-ativa td {
        background: transparent !important;
    }

    @page {
        margin: 1cm 1.2cm;
        size: A4;
    }
}

@media screen {
    .print-only { display: none !important; }
}
