.woojetpro-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.woojetpro-container {
    margin: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.woojetpro-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.woojetpro-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.woojetpro-table td {
    padding: 16px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.woojetpro-table tr:hover {
    background-color: #f8fafc;
}

.woojetpro-table tr:last-child td {
    border-bottom: none;
}

/* Status styles */
.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-processing {
    background: #e0f2fe;
    color: #0369a1;
}

.status-completed {
    background: #dcfce7;
    color: #15803d;
}

.status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

/* Action buttons */
.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-order {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd !important;
}

.view-order:hover {
    background: #e0f2fe;
    border-color: #7dd3fc !important;
}

.edit-order {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0 !important;
}

.edit-order:hover {
    background: #dcfce7;
    border-color: #86efac !important;
}
.print-order {
    background: #000;
    color: #ffffff;
    border: 1px solid #bbf7d0 !important;
}

.print-order:hover {
    background: #cccccc;
    border-color: #86efac !important;
}
.delete-order {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca !important;
}

.delete-order:hover {
    background: #fee2e2;
    border-color: #fca5a5 !important;
}

/* Header com busca */
.woojetpro-header {
    margin-bottom: 20px;
}

.woojetpro-search {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.woojetpro-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
}

.woojetpro-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.woojetpro-search .search-btn {
    padding: 10px 15px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woojetpro-search .search-btn:hover {
    background: #2563eb;
}

/* Paginação */
.woojetpro-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.page-info {
    font-size: 14px;
    color: #64748b;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .woojetpro-container {
        margin: 10px;
        padding: 10px;
        box-shadow: none;
    }

    .woojetpro-table {
        display: block;
    }

    .woojetpro-table thead {
        display: none;
    }

    .woojetpro-table tbody,
    .woojetpro-table tr,
    .woojetpro-table td {
        display: block;
    }

    .woojetpro-table tr {
        background: #fff;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .woojetpro-table td {
        padding: 8px 0;
        border: none;
        position: relative;
        padding-left: 130px;
        min-height: 35px;
        display: flex;
        align-items: center;
    }

    .woojetpro-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 120px;
        font-weight: 600;
        color: #64748b;
    }

    .woojetpro-table .actions {
        padding-left: 0;
        justify-content: flex-start;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }

    .actions button {
        flex: 1;
        justify-content: center;
    }
}

.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-on-hold {
    background-color: #fff3cd;
    color: #856404;
}

.status-pending {
    background-color: #f8f9fa;
    color: #383d41;
}

.acti.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.actions button {
    margin: 0 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.view-order {
    background-color: #007bff;
    color: white;
}

.edit-order {
    background-color: #28a745;
    color: white;
}

.delete-order {
    background-color: #dc3545;
    color: white;
}

.actions button:hover {
    opacity: 0.9;
}

/* Modal Styles */
.woojetpro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 30px auto;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalContentSlideIn 0.3s ease-out;
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

/* Loading and Error Styles */
.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    margin-right: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Order View Styles */
.edit-order-form h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.form-section h3 {
    color: #0284c7;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #0ea5e9, #0284c7);
    border-radius: 2px;
    display: inline-block;
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.note-date {
    color: #64748b;
    font-weight: 500;
}

.note-author {
    color: #0284c7;
    font-weight: 500;
}

.note-content {
    color: #334155;
    line-height: 1.5;
}

.customer-notes,
.order-notes {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.customer-notes::-webkit-scrollbar,
.order-notes::-webkit-scrollbar {
    width: 6px;
}

.customer-notes::-webkit-scrollbar-track,
.order-notes::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.customer-notes::-webkit-scrollbar-thumb,
.order-notes::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

.form-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #fff 80%, transparent);
    padding: 20px 0;
    margin-top: 30px;
    z-index: 10;
}

.error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error::before {
    content: '⚠️';
    font-size: 16px;
}

/* Estilos para a página de ajuda */
.woojetpro-help {
    max-width: 1200px;
    margin: 2em auto;
    color: #333;
}

.woojetpro-help h1 {
    color: #2271b1;
    font-size: 2.2em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f0f0f1;
}

.woojetpro-help-section {
    margin-bottom: 3em;
}

.woojetpro-help-section h2 {
    color: #1d2327;
    font-size: 1.8em;
    margin-bottom: 1em;
}

.help-card {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2em;
}

.help-card h3 {
    color: #2271b1;
    font-size: 1.4em;
    margin-bottom: 1em;
}

.help-card code {
    display: inline-block;
    background: #f6f7f7;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    color: #2271b1;
    font-family: monospace;
    margin: 0.5em 0;
}

.help-card ul,
.help-card ol {
    margin: 1em 0;
    padding-left: 2em;
}

.help-card li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.help-card .example {
    background: #f6f7f7;
    padding: 1.5em;
    border-radius: 4px;
    margin-top: 1em;
}

.help-card .example h4 {
    color: #1d2327;
    margin-bottom: 0.5em;
}

.help-card .example pre {
    background: #fff;
    padding: 1em;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow-x: auto;
}

@media (max-width: 782px) {
    .woojetpro-help {
        margin: 1em;
    }

    .help-card {
        padding: 1.5em;
    }
}

/* Estilos para o relatório */
.woojetpro-container {
    background: #f8f9fa;
    padding: 2em;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.report-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    background: white;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.period-selector {
    display: flex;
    gap: 1em;
    align-items: center;
}

.modern-select,
.modern-input {
    padding: 0.8em 1.2em;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9em;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.modern-select:hover,
.modern-input:hover {
    border-color: #2271b1;
}

.modern-select:focus,
.modern-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.modern-button {
    background: #2271b1;
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-button:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
}

.summary-card {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.card-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #2271b1;
}

.card-period {
    font-size: 0.8em;
    color: #888;
}

.report-chart-container {
    background: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2em;
    height: 400px;
}

.custom-date-inputs {
    display: flex;
    gap: 1em;
}

@media (max-width: 768px) {
    .woojetpro-container {
        padding: 1em;
    }

    .report-filters {
        flex-direction: column;
        gap: 1em;
    }

    .period-selector {
        width: 100%;
    }

    .modern-select,
    .modern-input {
        width: 100%;
    }

    .modern-button {
        width: 100%;
    }

    .report-chart-container {
        height: 300px;
    }
}

.order-view h2 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    color: #333;
}

.order-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.order-meta p {
    margin: 8px 0;
}

.order-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.billing-address,
.shipping-address {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.billing-address h3,
.shipping-address h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.2em;
}

.order-items {
    margin-top: 30px;
}

.order-items h3 {
    margin-bottom: 15px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.items-table th,
.items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.items-table th {
    background: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    .order-addresses {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
}
