/* ========================================
   PEDIDOS - LAYOUT GRID DE CARDS
   Baseado no design Figma: "Gestão de Pedidos"
   Node: 40000547:4537
   ======================================== */

/* Container Principal */
.pedidos-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #F7F7F8 !important;
}

/* Garantir que main-content sempre tenha fundo claro */
.main-content {
    background: #F7F7F8 !important;
}

/* Topbar com Breadcrumb */
.pedidos-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    min-height: 64px;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--sidebar-border, rgba(0, 0, 0, 0.10));
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    color: #717182 !important;
    text-decoration: none;
    transition: color 200ms ease;
    line-height: 1;
}

.breadcrumb-item:hover {
    color: #0068AB;
}

.breadcrumb-item.active {
    color: #0A0A0A;
    font-weight: 500;
}

.breadcrumb-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.breadcrumb-separator {
    width: 14px;
    height: 14px;
    color: #D1D5DB;
    flex-shrink: 0;
}

.topbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.topbar-actions .icon-button {
    background: #F7F7F8 !important;
    color: #6b7280 !important;
    border: none !important;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: #F7F7F8;
    border: none;
    border-radius: 6px;
    color: #717182;
    cursor: pointer;
    transition: all 200ms ease;
    line-height: 1;
}

.icon-button:hover {
    background: #E7E9E9;
    color: #0A0A0A;
}

.icon-button.help-button {
    width: auto;
    padding: 0 12px;
}

.icon-button.help-button span {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.icon-button i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Header com Tabs */
.pedidos-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--sidebar-border, rgba(0, 0, 0, 0.10));
}

.pedidos-tabs {
    display: flex;
    padding: 0;
    gap: 0;
}

.pedidos-tab {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--pedidos-text-tab-inactive, #4F5857) !important;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 200ms ease;
    position: relative;
    text-align: center;
}

.pedidos-tab:hover {
    color: var(--pedidos-text-primary, #18191A) !important;
}

.pedidos-tab.active {
    color: var(--pedidos-text-blue, #0068AB) !important;
    background: var(--pedidos-bg-tab-active, rgba(6, 73, 116, 0.10)) !important;
    border-bottom: 1.5px solid var(--pedidos-text-blue, #0068AB);
    font-weight: 500;
}

/* Título e Controles */
.pedidos-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--sidebar-border, rgba(0, 0, 0, 0.10));
}

.title-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #717182;
    cursor: pointer;
    transition: all 200ms ease;
    flex-shrink: 0;
}

.btn-back:hover {
    background: #F3F4F6;
    color: #0A0A0A;
}

.btn-back i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pedidos-title {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0A0A0A !important;
    margin: 0;
    line-height: 1.3;
}

.title-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0;
    background: transparent;
    padding: 0;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent !important;
    border: 1px solid #E7E9E9;
    border-radius: 4px;
    color: var(--pedidos-text-secondary, #61666A) !important;
    cursor: pointer;
    transition: all 200ms ease;
}

.view-btn:first-child {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.view-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.view-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.view-btn.active {
    background: var(--pedidos-text-blue, #0068AB) !important;
    color: #FFFFFF !important;
    border-color: var(--pedidos-text-blue, #0068AB);
}

.view-btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-filtros {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: #FFFFFF !important;
    border: 1px solid #E7E9E9;
    border-radius: 4px;
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--pedidos-text-primary, #18191A) !important;
    cursor: pointer;
    transition: all 200ms ease;
    line-height: 1;
}

.btn-filtros:hover {
    background: #F9FAFA;
}

.btn-filtros i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.title-right .btn-novo-pedido {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: var(--pedidos-text-blue, #0068AB) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 4px;
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
    line-height: 1;
}

.title-right .btn-novo-pedido:hover {
    background: #064974;
}

.title-right .btn-novo-pedido i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Filtros Ativos (Badges) */
.pedidos-active-filters {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    background: #FFFFFF !important;
    flex-wrap: wrap;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    height: 24px;
    background: var(--pedidos-bg-badge-filter, rgba(6, 73, 116, 0.10)) !important;
    border: 1px solid var(--pedidos-border-badge, #064974);
    border-radius: 500px;
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--pedidos-text-blue, #0068AB) !important;
    line-height: 1;
}

.filter-badge-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: transparent !important;
    border: none;
    border-radius: 50%;
    color: var(--pedidos-text-blue, #0068AB) !important;
    cursor: pointer;
    transition: all 200ms ease;
    margin-left: 4px;
}

.filter-badge-remove:hover {
    background: rgba(6, 73, 116, 0.15);
}

.filter-badge-remove i {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Filtros e Ações */
.pedidos-controls {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--sidebar-border, rgba(0, 0, 0, 0.10));
    flex-wrap: wrap;
}

.pedidos-filters {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.filter-select {
    min-width: 160px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #0A0A0A;
    cursor: pointer;
    transition: all 200ms ease;
}

.filter-select:hover {
    border-color: #D1D5DB;
}

.filter-select:focus {
    outline: none;
    border-color: #0068AB;
    box-shadow: 0 0 0 3px rgba(0, 104, 171, 0.1);
}

.search-filter {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    position: relative;
}

.search-filter input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: #FFFFFF;
    border: 1px solid #E7E9E9;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #0A0A0A;
}

.search-filter i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #717182;
}

.btn-novo-pedido {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #0068AB;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn-novo-pedido:hover {
    background: #064974;
}

.btn-novo-pedido i {
    width: 16px;
    height: 16px;
}

/* Kanban Board */
.pedidos-kanban {
    display: flex;
    gap: 16px;
    padding: 24px 16px;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    align-items: flex-start;
}

/* Kanban Column */
.kanban-column {
    min-width: 308px !important;
    max-width: 308px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    height: fit-content !important;
    background: #F1F2F2 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    overflow: visible !important;
}

.kanban-column-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px !important;
    background: #F1F2F2 !important;
    border: none !important;
    border-bottom: 1px solid #E5E7EB !important;
    border-radius: 8px 8px 0 0 !important;
}

.kanban-column-title {
    font-family: 'Archivo', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    color: #18191A !important;
    margin: 0 !important;
}

.kanban-column-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 8px !important;
    background: #F1F2F2 !important;
    border: 1px solid #E7E9E9 !important;
    border-radius: 500px !important;
    font-family: 'Archivo', -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 14.52px !important;
    color: #61666A !important;
}

.kanban-column-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: visible !important;
    padding: 12px !important;
}

/* Container/Frame individual do card */
.pedido-card-wrapper {
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    position: relative;
}

/* Card do Pedido */
.pedido-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    width: 100%;
    min-width: 284px;
    max-width: 284px;
    background: var(--pedidos-bg-card, #FFFFFF);
    border: 1px solid #E7E9E9;
    border-radius: 8px;
    transition: all 200ms ease;
    cursor: pointer;
    position: relative;
    height: fit-content;
    box-sizing: border-box;
    margin: 0;
    flex-shrink: 0;
}

.pedido-card:hover {
    border-color: var(--pedidos-text-blue, #0068AB);
    box-shadow: 0 4px 12px rgba(0, 104, 171, 0.1);
    transform: translateY(-2px);
}

/* Card Vazio (Placeholder) */
.pedido-card-empty {
    background: #FAFAFA;
    border: 1px dashed #D1D5DB;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pedido-card-empty:hover {
    border-color: #D1D5DB;
    box-shadow: none;
    transform: none;
}

.pedido-card-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9CA3AF;
    text-align: center;
}

.pedido-card-empty-content i {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.pedido-card-empty-content p {
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Header do Card */
.pedido-card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 24px;
}

.pedido-id {
    font-family: 'Archivo', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0068AB !important;
    line-height: 20px !important;
}

.pedido-info-secondary {
    font-family: 'Archivo', -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #697282 !important;
    line-height: 16px !important;
}

.pedido-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    height: 24px;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 14.52px;
    white-space: nowrap;
    width: fit-content;
}

.badge-faturado {
    background: var(--pedidos-bg-badge-faturado, rgba(26, 147, 56, 0.10));
    color: var(--pedidos-text-dark-green, #0C451B);
}

.badge-faturado::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background: var(--pedidos-status-green-dot, #0C451B);
}

/* Status Badges */
.pedido-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.status-em-producao {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.status-aguardando {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.status-finalizado {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.status-cancelado {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.status-em-preparacao {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

/* Conteúdo do Card */
.pedido-cliente {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pedido-cliente-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pedido-cliente-avatar i {
    width: 18px;
    height: 18px;
    color: var(--pedidos-text-secondary, #61666A);
    flex-shrink: 0;
}

.pedido-cliente-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.pedido-cliente-nome {
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--pedidos-text-primary, #18191A);
    line-height: 20px;
}

.pedido-vendedor {
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--pedidos-text-primary, #18191A);
    line-height: 20px;
}

/* Divisor */
.pedido-divider {
    height: 0;
    border: none;
    border-top: 1px solid #E7E9E9;
    margin: 0;
}

/* Info Row */
.pedido-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--pedidos-text-primary, #18191A);
    line-height: 20px;
}

.pedido-info-row i {
    width: 14px;
    height: 14px;
    color: var(--pedidos-icon-stroke, #6A7282);
    flex-shrink: 0;
    stroke-width: 1.5px;
}

.pedido-info-label {
    color: inherit;
    font-weight: inherit;
}

.pedido-info-value {
    color: inherit;
    font-weight: inherit;
}

/* Muda Container */
.pedido-muda {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: transparent;
    padding: 0;
}

.pedido-muda i {
    width: 14px;
    height: 14px;
    color: var(--pedidos-icon-stroke, #6A7282);
    flex-shrink: 0;
    margin-top: 3px;
    stroke-width: 1.5px;
}

.pedido-muda-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pedido-muda-label {
    display: none; /* Não existe no Figma */
}

.pedido-muda-value {
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--pedidos-text-primary, #18191A);
    line-height: 20px;
    min-height: 40px;
}

.pedido-muda-quantidade {
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--pedidos-text-primary, #18191A);
    line-height: 20px;
}

/* Footer do Card (Quantidade e Entrega) */
.pedido-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #E7E9E9;
    margin-top: auto;
}

.pedido-quantidade {
    font-size: 12px;
    font-weight: 500;
    color: #0A0A0A;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pedido-entrega {
    font-size: 11px;
    color: #717182;
}

/* Valor */
.pedido-valor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--pedidos-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--pedidos-text-green, #00A03B);
    line-height: 20px;
}

.pedido-valor i {
    width: 18px;
    height: 18px;
    color: var(--pedidos-text-secondary, #61666A);
    flex-shrink: 0;
}

/* Responsivo */
@media (max-width: 1400px) {
    .pedidos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .pedidos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .pedidos-controls {
        padding: 16px;
    }

    .pedidos-tabs {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .pedidos-grid {
        grid-template-columns: 1fr;
    }

    .pedidos-controls {
        flex-direction: column;
    }

    .pedidos-filters {
        flex-direction: column;
        width: 100%;
    }

    .filter-select,
    .search-filter {
        width: 100%;
        max-width: 100%;
    }

    .btn-novo-pedido {
        width: 100%;
        justify-content: center;
    }
}

/* Empty State */
.pedidos-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.pedidos-empty i {
    width: 64px;
    height: 64px;
    color: #D1D5DB;
    margin-bottom: 16px;
}

.pedidos-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #0A0A0A;
    margin-bottom: 8px;
}

.pedidos-empty-text {
    font-size: 14px;
    color: #717182;
}

/* Loading State */
.pedido-card.loading {
    pointer-events: none;
}

.pedido-card.loading * {
    background: linear-gradient(
        90deg,
        #F3F4F6 25%,
        #E7E9E9 50%,
        #F3F4F6 75%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s ease-in-out infinite;
    color: transparent !important;
    border-radius: 4px;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   PEDIDOS - VISUALIZAÇÃO EM LISTA (TABELA)
   ======================================== */

.pedidos-lista {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    padding: 24px;
    background: #F7F7F8;
}

.pedidos-lista-container {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.pedidos-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    table-layout: auto;
}

.pedidos-table thead {
    background: transparent;
    display: none;
}

.pedidos-table thead tr {
    border-bottom: none !important;
    border: none;
}

.pedidos-table th {
    padding: 0;
    text-align: left;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #61676B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: none;
    border-bottom: none !important;
}

.pedidos-table tbody {
    margin-top: -8px;
}

.pedidos-table tbody tr {
    border: none;
    background: #F7F7F8;
    transition: all 200ms ease;
    cursor: pointer;
}

.pedidos-table tbody tr:hover {
    background: #E7E9E9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pedidos-table td {
    padding: 10px 12px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    color: #18191A;
    vertical-align: middle;
    line-height: 1.3;
    border: none;
    border-right: none;
    border-top: none;
    white-space: nowrap;
}

.pedidos-table td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pedidos-table td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Coluna Pedido (ID + Código) */
.pedido-numero {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pedido-id-link {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0068AB;
    cursor: pointer;
    transition: color 200ms ease;
    text-decoration: none;
}

.pedido-id-link:hover {
    color: #064974;
    text-decoration: underline;
}

.pedido-codigo {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #9CA3AF;
}

/* Badge Faturado (na tabela) */
.badge-table {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    width: fit-content;
    line-height: 1.2;
}

.badge-faturado-table {
    background: rgba(26, 147, 56, 0.10);
    color: #0C451B;
}

.badge-faturado-table::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background: #0C451B;
}

/* Ícones nas células da tabela */
.table-icon {
    width: 12px;
    height: 12px;
    color: #9CA3AF;
    flex-shrink: 0;
    margin-right: 6px;
}

/* Coluna Cliente */
.pedido-cliente-td {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #18191A;
    font-size: 12px;
}

/* Colunas de Data */
.pedido-data {
    display: inline-flex;
    align-items: center;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    color: #61676B;
    font-weight: 400;
}

/* Coluna Quantidade */
.pedido-qtd {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #18191A;
}

.pedido-qtd .table-icon {
    margin-right: 4px;
    order: -1;
}

/* Coluna Valor */
.pedido-valor-td {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #00A03B;
}

.pedido-valor-td .table-icon {
    margin-right: 4px;
    order: -1;
}

/* Status Tags (na tabela) */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    width: fit-content;
    line-height: 1.2;
}

.status-recebido {
    background: #EFF6FF;
    color: #1E40AF;
}

.status-recebido::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background: #1E40AF;
}

.status-parcial {
    background: #FEF3C7;
    color: #92400E;
}

.status-parcial::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background: #92400E;
}

.status-em-transito {
    background: #E0E7FF;
    color: #3730A3;
}

.status-em-transito::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background: #3730A3;
}

.status-em-preparacao {
    background: #F3F4F6;
    color: #374151;
}

.status-em-preparacao::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background: #374151;
}

.status-cancelado {
    background: #FEF2F2;
    color: #991B1B;
}

.status-cancelado::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background: #991B1B;
}

/* Responsivo - Tabela */
@media (max-width: 1200px) {
    .pedidos-lista {
        padding: 16px;
    }

    .pedidos-table {
        font-size: 13px;
    }

    .pedidos-table th,
    .pedidos-table td {
        padding: 12px;
    }
}
