* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    text-align: left;
}

.header-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.header-user span {
    font-weight: 600;
}

.change-password-btn,
.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.change-password-btn:hover,
.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* NAVEGAÇÃO */
.main-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn.active, .nav-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

/* SEÇÕES */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* CONTROLES */
.controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.quick-actions, .filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions h2, .filters h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.btn-primary, .btn-secondary, .btn-info, .btn-success, .btn-warning {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ff9800;
    color: white;
}

.btn-secondary:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.btn-info {
    background: #2196F3;
    color: white;
}

.btn-info:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn-success {
    background: #9C27B0;
    color: white;
}

.btn-success:hover {
    background: #7B1FA2;
    transform: translateY(-2px);
}

.btn-warning {
    background: #FF5722;
    color: white;
}

.btn-warning:hover {
    background: #E64A19;
    transform: translateY(-2px);
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#filterCategory, #searchItem, #stockFilter {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#filterCategory:focus, #searchItem:focus, #stockFilter:focus {
    outline: none;
    border-color: #4CAF50;
}

/* GRADE DE INVENTÁRIO */
.inventory-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.category-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-section h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.item-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item-card.low-stock {
    border-left-color: #ff9800;
    background: #fff3cd;
}

.item-card.zero-stock {
    border-left-color: #666;
    background: #f5f5f5;
}

.item-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.item-quantity {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 8px;
}

.item-cost, .item-value {
    font-size: 0.95rem;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-expiry {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.item-status {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-entry, .btn-exit {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-entry {
    background: #4CAF50;
    color: white;
}

.btn-entry:hover {
    background: #45a049;
}

.btn-exit {
    background: #ff9800;
    color: white;
}

.btn-exit:hover {
    background: #e68900;
}

.btn-exit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-delete-product {
    background: #f44336;
    color: white;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-left: 5px;
}

.btn-delete-product:hover {
    background: #d32f2f;
}

/* MODAIS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.modal-content textarea {
    height: 80px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-actions button[type="button"] {
    background: #666;
    color: white;
}

.modal-actions button[type="submit"] {
    background: #4CAF50;
    color: white;
}

.modal-actions button:hover {
    opacity: 0.9;
}

/* TRANSAÇÕES */
.transaction-controls {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.date-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.date-filters input, .date-filters select, .date-filters button {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.date-filters button {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    cursor: pointer;
}

.transactions-list {
    max-height: 600px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.transaction-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-entry {
    border-left: 4px solid #4CAF50;
}

.transaction-exit {
    border-left: 4px solid #ff9800;
}

.transaction-register {
    border-left: 4px solid #2196F3;
}

.transaction-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.transaction-icon {
    font-size: 1.5rem;
}

.transaction-type {
    font-weight: bold;
    color: #333;
}

.transaction-date {
    color: #666;
    font-size: 0.9rem;
    margin-left: auto;
}

.transaction-details {
    color: #555;
    line-height: 1.4;
}

.transaction-details div {
    margin-bottom: 5px;
}

/* RELATÓRIOS */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.report-card:hover {
    transform: translateY(-2px);
}

.report-card h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.report-card p {
    color: #666;
    margin-bottom: 20px;
}

.report-card button {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.report-card button:hover {
    background: #45a049;
}

.report-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 200px;
}

/* CONFIGURAÇÕES */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.setting-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-card h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.setting-card label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.setting-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.setting-card button {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.file-label {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.setting-card input[type="file"] {
    display: none;
}

/* RESUMO */
.summary {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.summary h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

#stockSummary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.summary-label {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* RESPONSIVIDADE - TABLETS GRANDES (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 18px;
    }

    .header-title h1 {
        font-size: 2.2rem;
    }

    .controls {
        gap: 20px;
    }

    .action-buttons {
        gap: 8px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVIDADE - TABLETS (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 16px;
    }

    .header-title h1 {
        font-size: 2rem;
    }

    .header-user {
        font-size: 0.9rem;
    }

    .controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .action-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .nav-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    #stockSummary {
        grid-template-columns: repeat(2, 1fr);
    }

    .exit-orders-filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .exit-orders-filters select,
    .exit-orders-filters input[type="date"] {
        min-width: 140px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVIDADE - MOBILE (até 768px) */
@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
    }

    .date-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 15px;
    }

    .nav-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    #stockSummary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .summary-number {
        font-size: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-title h1 {
        font-size: 2rem;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-actions {
        width: 100%;
    }

    .user-actions button {
        flex: 1;
    }
}

/* RESPONSIVIDADE - MOBILE PEQUENO (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .header-title h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .header-user {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .logout-btn {
        width: 100%;
        text-align: center;
    }

    .main-nav {
        padding: 10px;
        gap: 6px;
    }

    .nav-btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .quick-actions, .filters {
        padding: 15px;
    }

    .quick-actions h2, .filters h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .action-buttons {
        gap: 8px;
    }

    .btn-primary, .btn-secondary, .btn-info, .btn-success, .btn-warning {
        padding: 10px;
        font-size: 13px;
    }

    .category-section {
        padding: 15px;
    }

    .category-section h3 {
        font-size: 1.2rem;
    }

    .item-card {
        padding: 15px;
    }

    .item-name {
        font-size: 1.1rem;
    }

    .modal-content {
        padding: 15px;
        width: 98%;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .modal-content input,
    .modal-content select,
    .modal-content textarea {
        padding: 10px;
        font-size: 14px;
    }

    #stockSummary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-card {
        padding: 15px;
    }

    .summary-number {
        font-size: 1.3rem;
    }

    .summary-label {
        font-size: 0.85rem;
    }

    .exit-orders-header {
        gap: 15px;
    }

    .btn-new-order {
        padding: 10px 18px;
        font-size: 14px;
    }

    .exit-orders-filters {
        width: 100%;
    }

    .exit-orders-filters select,
    .exit-orders-filters input[type="date"],
    .exit-orders-filters button {
        width: 100%;
        font-size: 13px;
        padding: 10px;
    }

    .exit-order-info {
        grid-template-columns: 1fr;
        font-size: 0.85rem;
    }

    .exit-order-actions {
        flex-direction: column;
    }

    .order-modal-content {
        padding: 15px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 13px;
    }

    .auth-card {
        padding: 25px;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .setting-card {
        padding: 15px;
    }

    .setting-card h3 {
        font-size: 1.1rem;
    }

    .view-mode-toggle {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .toggle-buttons {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* AUTENTICAÇÃO */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.auth-card p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.auth-form input, .auth-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #4CAF50;
}

.auth-btn-primary {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-btn-primary:hover {
    background: #45a049;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
}

/* GERENCIAMENTO DE USUÁRIOS */
.user-management {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-management h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.user-controls {
    margin-bottom: 30px;
}

.users-list {
    display: grid;
    gap: 15px;
}

.user-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item.inactive {
    border-left-color: #ccc;
    background: #f5f5f5;
    opacity: 0.7;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.user-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-user-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-deactivate {
    background: #ff9800;
    color: white;
}

.btn-reactivate {
    background: #4CAF50;
    color: white;
}

.btn-user-action:hover {
    opacity: 0.8;
}

.admin-badge {
    display: inline-block;
    background: #9C27B0;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.user-badge {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* ORDENS DE SAÍDA */
.exit-orders-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.exit-orders-container h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.exit-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.exit-orders-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.exit-orders-filters select {
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    min-width: 160px;
    max-width: 200px;
}

.exit-orders-filters input[type="date"] {
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    width: 160px;
}

.exit-orders-filters select:hover,
.exit-orders-filters input[type="date"]:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.15);
}

.exit-orders-filters select:focus,
.exit-orders-filters input[type="date"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
}

.exit-orders-filters button {
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
    min-width: 100px;
}

.exit-orders-filters button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.exit-orders-filters button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-new-order {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-new-order:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.exit-orders-list {
    display: grid;
    gap: 20px;
}

.exit-order-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    transition: transform 0.2s, box-shadow 0.2s;
}

.exit-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.exit-order-card.cancelled {
    border-left-color: #f44336;
    background: #ffebee;
    opacity: 0.8;
}

.exit-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.exit-order-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2196F3;
}

.exit-order-number.cancelled {
    color: #f44336;
}

.exit-order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.exit-order-status.ativa {
    background: #e8f5e9;
    color: #4CAF50;
}

.exit-order-status.cancelada {
    background: #ffebee;
    color: #f44336;
}

.exit-order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
}

.exit-order-info div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.exit-order-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.exit-order-summary-item {
    flex: 1;
    text-align: center;
}

.exit-order-summary-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.exit-order-summary-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2196F3;
}

.exit-order-actions {
    display: flex;
    gap: 10px;
}

.btn-view-order,
.btn-cancel-order {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-view-order {
    background: #2196F3;
    color: white;
}

.btn-view-order:hover {
    background: #1976D2;
}

.btn-cancel-order {
    background: #f44336;
    color: white;
}

.btn-cancel-order:hover {
    background: #d32f2f;
}

.btn-cancel-order:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal de Nova Ordem */
.order-modal-content {
    max-width: 800px;
    width: 95%;
}

.order-form-section {
    margin-bottom: 25px;
}

.order-form-section h3 {
    color: #2196F3;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.add-item-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.add-item-controls {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.add-item-controls .form-group {
    flex: 1;
}

.btn-add-item {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.btn-add-item:hover {
    background: #45a049;
}

.order-items-list {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 3px solid #4CAF50;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.order-item-details {
    font-size: 0.9rem;
    color: #666;
}

.btn-remove-item {
    background: #f44336;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-remove-item:hover {
    background: #d32f2f;
}

.order-summary {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-summary h4 {
    color: #2196F3;
    margin-bottom: 10px;
    font-size: 1rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.order-summary-label {
    color: #666;
}

.order-summary-value {
    font-weight: bold;
    color: #2196F3;
}

.order-summary-total {
    border-top: 2px solid #2196F3;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Modal de Visualização de Ordem */
.order-details-section {
    margin-bottom: 25px;
}

.order-details-section h3 {
    color: #2196F3;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 8px;
}

.order-detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.order-detail-label {
    font-weight: 600;
    color: #666;
}

.order-detail-value {
    color: #333;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.order-items-table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #ddd;
}

.order-items-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.cancellation-info {
    background: #ffebee;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f44336;
}

.cancellation-info h4 {
    color: #f44336;
    margin-bottom: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 1.2rem;
    color: #666;
}

/* Responsividade para Ordens de Saída */
@media (max-width: 768px) {
    .exit-orders-header {
        flex-direction: column;
        align-items: stretch;
    }

    .exit-orders-filters {
        flex-direction: column;
    }

    .order-modal-content {
        width: 95%;
        padding: 20px;
    }

    .add-item-controls {
        flex-direction: column;
    }

    .order-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .order-items-table {
        font-size: 0.85rem;
    }

    .order-items-table th,
    .order-items-table td {
        padding: 8px 5px;
    }
}

/* MODO DE VISUALIZAÇÃO (Cards/Tabela) */
.view-mode-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-mode-toggle label {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
    white-space: nowrap;
}

.toggle-buttons {
    display: flex;
    gap: 0;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-btn:hover:not(.active) {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

/* TABELA DE INVENTÁRIO */
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.inventory-table thead {
    background: #4CAF50;
    color: white;
}

.inventory-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #45a049;
}

.inventory-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.inventory-table tbody tr:hover {
    background: #f8f9fa;
}

.inventory-table tbody tr:last-child {
    border-bottom: none;
}

.inventory-table td {
    padding: 12px;
    font-size: 0.95rem;
}

/* Classes de status da tabela */
.inventory-table tr.zero-stock {
    background: #f5f5f5;
    opacity: 0.8;
}

.inventory-table tr.low-stock {
    background: #fff3cd;
}

/* Células específicas */
.item-name-cell {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.quantity-cell {
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.cost-cell, .value-cell {
    font-weight: 600;
    color: #4CAF50;
    white-space: nowrap;
}

.expiry-cell {
    color: #888;
    font-size: 0.9rem;
}

.status-cell {
    text-align: center;
}

.actions-cell {
    text-align: center;
    white-space: nowrap;
}

/* Badges de status */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #e8f5e9;
    color: #4CAF50;
}

.badge-warning {
    background: #fff3e0;
    color: #ff9800;
}

.badge-danger {
    background: #ffebee;
    color: #f44336;
}

/* Botões da tabela */
.btn-table-action {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    margin: 0 2px;
}

.btn-entry-small {
    background: #e8f5e9;
    color: #4CAF50;
}

.btn-entry-small:hover {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.btn-exit-small {
    background: #fff3e0;
    color: #ff9800;
}

.btn-exit-small:hover {
    background: #ff9800;
    color: white;
    transform: scale(1.1);
}

.btn-exit-small:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-exit-small:disabled:hover {
    transform: none;
}

.btn-delete-small {
    background: #ffebee;
    color: #f44336;
}

.btn-delete-small:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

/* Responsividade da tabela */
@media (max-width: 1200px) {
    .inventory-table {
        font-size: 0.85rem;
    }

    .inventory-table th,
    .inventory-table td {
        padding: 10px 8px;
    }

    .item-name-cell {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .inventory-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .view-mode-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .toggle-buttons {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        padding: 10px 16px;
    }

    .btn-table-action {
        font-size: 14px;
        padding: 5px 8px;
    }

    .exit-orders-filters {
        flex-wrap: wrap;
    }

    .exit-orders-filters select {
        min-width: 140px;
        max-width: 100%;
    }

    .exit-orders-filters input[type="date"] {
        width: 140px;
    }

    .exit-orders-filters button {
        min-width: 90px;
    }
}

/* Estilos para itens modificados em ordens de saída */
.modified-item {
    background-color: #fff3cd !important;
    border-left: 4px solid #ff9800 !important;
}

.modified-item:hover {
    background-color: #ffe8a1 !important;
}

.modified-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ff9800;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 500;
}

/* Estilos para histórico de alterações */
.history-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.history-entry {
    background: #f9f9f9;
    border-left: 3px solid #4CAF50;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.history-entry:hover {
    background: #f5f5f5;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.history-header strong {
    color: #333;
    font-size: 0.95rem;
}

.history-header span {
    color: #666;
    font-size: 0.9rem;
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: #555;
}

.history-reason {
    margin-top: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    font-style: italic;
    color: #666;
    font-size: 0.85rem;
}

/* Botões pequenos */
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-left: 5px;
}

/* Estilo para inputs de edição na ordem */
.exit-order-item-row input[type="number"] {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    font-size: 0.9rem;
}

.exit-order-item-row input[type="number"]:focus {
    outline: none;
    border-color: #4CAF50;
}

/* TABELA DE ORDENS DE SAÍDA */
.exit-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.exit-orders-table thead {
    background: #2196F3;
    color: white;
}

.exit-orders-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #1976D2;
}

.exit-orders-table tbody tr {
    transition: background-color 0.2s;
}

.exit-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.exit-order-table-row {
    border-bottom: 1px solid #eee;
}

.exit-order-table-row td {
    padding: 12px;
    font-size: 0.95rem;
    vertical-align: middle;
}

.exit-order-table-row.cancelled-row {
    background: #ffebee;
    opacity: 0.8;
}

/* Célula de expansão */
.expand-cell {
    width: 50px;
    text-align: center;
}

.expand-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 8px;
    transition: transform 0.3s, color 0.2s;
    display: inline-block;
}

.expand-btn:hover {
    color: #2196F3;
}

.expand-btn.expanded {
    transform: rotate(90deg);
    color: #2196F3;
}

/* Linha de detalhes expandidos */
.order-details-row {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.order-details-row td {
    padding: 0 !important;
}

.order-details-container {
    padding: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Detalhes expandidos */
.expanded-order-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expanded-order-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
    font-size: 0.9rem;
    color: #666;
}

.expanded-order-info > div {
    flex: 1;
    min-width: 200px;
}

/* Tabela de itens dentro dos detalhes expandidos */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.order-items-table thead {
    background: #f8f9fa;
}

.order-items-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 2px solid #ddd;
}

.order-items-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.order-items-table tbody tr:hover {
    background: #f9f9f9;
}

.order-items-table td {
    padding: 10px;
    font-size: 0.9rem;
}

.modified-item-row {
    background: #fff3cd !important;
    border-left: 3px solid #ff9800;
}

.modified-item-row:hover {
    background: #ffe8a1 !important;
}

/* Itens condicionais */
.conditional-item-row {
    background: #e3f2fd !important;
    border-left: 3px solid #2196F3;
}

.conditional-item-row:hover {
    background: #bbdefb !important;
}

.conditional-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #2196F3;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 500;
}

.conditional-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2196F3;
}

.conditional-cell {
    padding: 10px;
}

/* Total row */
.total-row {
    background: #f0f0f0;
    font-weight: 600;
}

.total-row td {
    padding: 12px 10px;
    border-top: 2px solid #ddd;
}

/* Inputs de edição inline */
.inline-edit-input {
    width: 80px;
    padding: 6px 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.inline-edit-input:focus {
    outline: none;
    border-color: #2196F3;
}

.item-unit {
    margin-left: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Botões inline */
.item-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-save-inline,
.btn-history-inline {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-save-inline:hover {
    background: #e8f5e9;
    transform: scale(1.1);
}

.btn-history-inline:hover {
    background: #e3f2fd;
    transform: scale(1.1);
}

.btn-save-inline:active,
.btn-history-inline:active {
    transform: scale(0.95);
}

/* Status badges na tabela */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status para Ordens de Serviço na tabela */
.status-badge.status-aguardando_orcamento {
    background: #FFA726;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 167, 38, 0.3);
}

.status-badge.status-orcamento_pendente {
    background: #FB8C00;
    color: white;
    box-shadow: 0 2px 4px rgba(251, 140, 0, 0.3);
}

.status-badge.status-aprovado {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.status-badge.status-em_reparo {
    background: #9C27B0;
    color: white;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

.status-badge.status-concluido {
    background: #2E7D32;
    color: white;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.3);
}

.status-badge.status-aguardando_retirada {
    background: #00ACC1;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 172, 193, 0.3);
}

.status-badge.status-entregue {
    background: #689F38;
    color: white;
    box-shadow: 0 2px 4px rgba(104, 159, 56, 0.3);
}

.status-badge.status-cancelado {
    background: #D32F2F;
    color: white;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
}

/* Status para Ordens de Saída (manter compatibilidade) */
.status-badge.status-ativa {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.status-badge.status-finalizada {
    background: #2196F3;
    color: white;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.status-badge.status-cancelada {
    background: #D32F2F;
    color: white;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
}

/* Ações compactas */
.actions-cell-compact {
    text-align: center;
    white-space: nowrap;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-icon:hover {
    background: rgba(244, 67, 54, 0.1);
    transform: scale(1.1);
}

.btn-icon:active {
    transform: scale(0.95);
}

/* Responsividade para tabela de ordens */
@media (max-width: 1200px) {
    .exit-orders-table {
        font-size: 0.85rem;
    }

    .exit-orders-table th,
    .exit-orders-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .exit-orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .expanded-order-info {
        flex-direction: column;
    }

    .order-items-table {
        font-size: 0.8rem;
    }

    .inline-edit-input {
        width: 60px;
        font-size: 0.85rem;
    }
}

/* MODAL DE ALERTA DE ITENS CONDICIONAIS */
.conditional-alert-modal {
    max-width: 800px;
    width: 95%;
}

.conditional-alert-header {
    margin-bottom: 25px;
    text-align: center;
}

.conditional-alert-header h2 {
    color: #2196F3;
    margin-bottom: 10px;
}

.conditional-alert-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.conditional-alert-content {
    margin-bottom: 20px;
}

.conditional-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    border-left: 4px solid #2196F3;
}

.conditional-stat {
    flex: 1;
    text-align: center;
}

.conditional-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 5px;
}

.conditional-stat .stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.conditional-orders-list h3 {
    color: #2196F3;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196F3;
}

.conditional-order-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conditional-order-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.2);
}

.order-info {
    flex: 1;
}

.order-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 8px;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.order-details span {
    line-height: 1.4;
}

.order-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85rem;
}

.conditional-count {
    background: #2196F3;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.order-date {
    color: #999;
}

.order-arrow {
    font-size: 1.5rem;
    color: #2196F3;
    font-weight: bold;
    padding: 0 15px;
}

.conditional-note {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 20px;
}

.conditional-note strong {
    color: #ff9800;
}

/* Responsividade do modal de alertas */
@media (max-width: 768px) {
    .conditional-summary {
        flex-direction: column;
        gap: 15px;
    }

    .conditional-stat .stat-number {
        font-size: 2rem;
    }

    .conditional-order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-arrow {
        display: none;
    }

    .order-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* TABELA DE PREVIEW DE ITENS DA ORDEM (antes de criar) */
.order-items-preview-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.order-items-preview-table thead {
    background: #f0f8f0;
}

.order-items-preview-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #4CAF50;
    font-size: 0.9rem;
    border-bottom: 2px solid #4CAF50;
}

.order-items-preview-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.order-items-preview-table tbody tr:hover {
    background: #f9f9f9;
}

.order-items-preview-table tbody tr:last-child {
    border-bottom: none;
}

.order-items-preview-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
    vertical-align: middle;
}

.order-items-preview-table .inline-edit-input {
    width: 90px;
}

/* Responsividade da tabela de preview */
@media (max-width: 768px) {
    .order-items-preview-table {
        font-size: 0.8rem;
    }

    .order-items-preview-table th,
    .order-items-preview-table td {
        padding: 8px 6px;
    }

    .order-items-preview-table .inline-edit-input {
        width: 70px;
        font-size: 0.85rem;
    }
}

/* TABELA DE TRANSAÇÕES */
.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.transactions-table thead {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.transactions-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #45a049;
}

.transactions-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.transactions-table tbody tr:hover {
    background: #f8f9fa;
}

.transactions-table tbody tr:last-child {
    border-bottom: none;
}

.transactions-table td {
    padding: 12px;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Linhas de entrada e saída */
.transactions-table tr.transaction-entry {
    border-left: 4px solid #4CAF50;
}

.transactions-table tr.transaction-exit {
    border-left: 4px solid #ff9800;
}

/* Células específicas */
.transaction-type-cell {
    font-weight: 600;
    white-space: nowrap;
}

.transaction-type-cell .transaction-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.transaction-date-cell {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.transaction-item-cell {
    color: #333;
}

.transaction-category-cell {
    color: #666;
    font-size: 0.9rem;
}

.transaction-quantity-cell {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.transaction-cost-cell {
    font-weight: 600;
    color: #4CAF50;
    white-space: nowrap;
}

.transaction-total-cell {
    font-weight: 700;
    color: #4CAF50;
    white-space: nowrap;
    font-size: 1rem;
}

.transaction-details-cell {
    color: #666;
    font-size: 0.85rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsividade da tabela de transações */
@media (max-width: 1200px) {
    .transactions-table {
        font-size: 0.85rem;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px 8px;
    }

    .transaction-total-cell {
        font-size: 0.95rem;
    }

    .transaction-details-cell {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .transactions-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .transaction-type-cell .transaction-icon {
        font-size: 1rem;
        margin-right: 5px;
    }

    .transaction-details-cell {
        max-width: 150px;
    }
}

/* ESTILOS DE GERENCIAMENTO DE CLIENTES */
.customer-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.customer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.customer-item.inactive {
    border-left-color: #ccc;
    background: #f5f5f5;
    opacity: 0.7;
}

.customer-info {
    flex-grow: 1;
}

.customer-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.customer-details div {
    margin-bottom: 5px;
}

.customer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-customer-action {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-customer-action.btn-edit {
    background: #2196F3;
    color: white;
}

.btn-customer-action.btn-edit:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn-customer-action.btn-deactivate {
    background: #ff9800;
    color: white;
}

.btn-customer-action.btn-deactivate:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.btn-customer-action.btn-reactivate {
    background: #4CAF50;
    color: white;
}

.btn-customer-action.btn-reactivate:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Paginação de clientes */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination button {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsividade de clientes */
@media (max-width: 768px) {
    .customer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .customer-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-customer-action {
        width: 100%;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .pagination button {
        width: 100%;
    }
}

/* === AUTOCOMPLETE STYLES === */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f0f0f0;
}

.autocomplete-item strong {
    display: block;
    color: #333;
}

.autocomplete-item small {
    color: #666;
    font-size: 0.85em;
}

/* === ORDENS DE SERVIÇO === */
.os-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.os-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.os-header h2 {
    color: #4CAF50;
    margin: 0;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.os-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.os-filters input,
.os-filters select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.os-filters input:focus,
.os-filters select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
}

.btn-new-os {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-new-os:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

/* Grid de cards de OS */
.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.os-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    transition: all 0.3s;
    cursor: pointer;
}

.os-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.os-card.status-aguardando_orcamento {
    border-left-color: #FFA726;
    border-left-width: 5px;
}

.os-card.status-orcamento_pendente {
    border-left-color: #FB8C00;
    border-left-width: 5px;
}

.os-card.status-aprovado {
    border-left-color: #4CAF50;
    border-left-width: 5px;
}

.os-card.status-em_reparo {
    border-left-color: #9C27B0;
    border-left-width: 5px;
}

.os-card.status-concluido {
    border-left-color: #2E7D32;
    border-left-width: 5px;
}

.os-card.status-aguardando_retirada {
    border-left-color: #00ACC1;
    border-left-width: 5px;
}

.os-card.status-entregue {
    border-left-color: #689F38;
    border-left-width: 5px;
}

.os-card.status-cancelado {
    border-left-color: #D32F2F;
    border-left-width: 5px;
    background: #ffebee;
    opacity: 0.7;
}

.os-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.os-numero {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.os-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.os-status.status-aguardando_orcamento {
    background: #FFA726;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 167, 38, 0.3);
}

.os-status.status-orcamento_pendente {
    background: #FB8C00;
    color: white;
    box-shadow: 0 2px 4px rgba(251, 140, 0, 0.3);
}

.os-status.status-aprovado {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.os-status.status-em_reparo {
    background: #9C27B0;
    color: white;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

.os-status.status-concluido {
    background: #2E7D32;
    color: white;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.3);
}

.os-status.status-aguardando_retirada {
    background: #00ACC1;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 172, 193, 0.3);
}

.os-status.status-entregue {
    background: #689F38;
    color: white;
    box-shadow: 0 2px 4px rgba(104, 159, 56, 0.3);
}

.os-status.status-cancelado {
    background: #D32F2F;
    color: white;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
}

.os-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.os-info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-valores {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-top: 10px;
}

.os-valor-item {
    text-align: center;
}

.os-valor-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.os-valor-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4CAF50;
}

/* Detalhes da OS */
.os-details {
    max-width: 900px;
    margin: 0 auto;
}

.os-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
}

.os-details-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-details-title h2 {
    color: #4CAF50;
    margin: 0;
}

.os-details-grid {
    display: grid;
    gap: 25px;
}

.os-details-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.os-details-section h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

.os-info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    align-items: start;
}

.os-info-row:last-child {
    border-bottom: none;
}

.os-info-label {
    font-weight: 600;
    color: #666;
}

.os-info-value {
    color: #333;
    word-break: break-word;
}

/* Tabela de itens/peças */
.os-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.os-items-table thead {
    background: #4CAF50;
    color: white;
}

.os-items-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.os-items-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.os-items-table tbody tr:hover {
    background: #f9f9f9;
}

.os-items-table tbody tr:last-child td {
    border-bottom: none;
}

/* Histórico */
.os-history {
    max-height: 400px;
    overflow-y: auto;
}

.os-history-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid #4CAF50;
}

.os-history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.os-history-action {
    font-weight: 600;
    color: #333;
}

.os-history-date {
    font-size: 0.85rem;
    color: #666;
}

.os-history-details {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.os-history-user {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Botões de ação */
.os-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-os-action {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.btn-os-primary {
    background: #4CAF50;
    color: white;
}

.btn-os-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-os-secondary {
    background: #2196F3;
    color: white;
}

.btn-os-secondary:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn-os-warning {
    background: #ff9800;
    color: white;
}

.btn-os-warning:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.btn-os-danger {
    background: #f44336;
    color: white;
}

.btn-os-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.btn-os-back {
    background: #666;
    color: white;
}

.btn-os-back:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Responsividade - Ordens de Serviço */
@media (max-width: 768px) {
    .os-grid {
        grid-template-columns: 1fr;
    }

    .os-header {
        flex-direction: column;
        align-items: stretch;
    }

    .os-filters {
        flex-direction: column;
    }

    .os-filters input,
    .os-filters select {
        width: 100%;
    }

    .os-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .os-valores {
        flex-direction: column;
        gap: 12px;
    }

    .os-actions {
        flex-direction: column;
    }

    .btn-os-action {
        width: 100%;
    }

    .os-items-table {
        font-size: 0.85rem;
    }

    .os-items-table th,
    .os-items-table td {
        padding: 8px;
    }
}

/* === SELEÇÃO DE MÓDULOS === */
.module-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.module-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.15) rotate(5deg);
}

.module-card h2 {
    color: #4CAF50;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    transition: color 0.3s;
}

.module-card:hover h2 {
    color: #45a049;
}

.module-card p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-features li {
    padding: 12px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    padding-left: 10px;
}

.module-features li:last-child {
    border-bottom: none;
}

.module-card:hover .module-features li {
    padding-left: 20px;
    color: #4CAF50;
}

/* Responsividade - Seleção de Módulos */
@media (max-width: 768px) {
    .module-selection {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 10px;
    }

    .module-card {
        padding: 30px 20px;
    }

    .module-icon {
        font-size: 4rem;
    }

    .module-card h2 {
        font-size: 1.5rem;
    }

    .module-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .module-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .module-card h2 {
        font-size: 1.3rem;
    }

    .module-features li {
        font-size: 0.85rem;
        padding: 10px 0;
    }
}

/* ============================================
   ORDENS DE SERVIÇO - VIEW TOGGLE & TABLE
   ============================================ */

/* View Toggle - Mesmo padrão do Estoque */
.os-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.view-btn {
    background: #e0e0e0;
    color: #666;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.view-btn:last-child {
    border-radius: 0 5px 5px 0;
}

.view-btn:hover {
    background: #d0d0d0;
}

.view-btn.active {
    background: #4CAF50;
    color: white;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* OS Table */
.os-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.os-table thead {
    background: #4CAF50;
    color: white;
}

.os-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.os-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.os-table tbody tr:hover {
    background-color: #f8f9fa;
}

.os-table tbody td {
    padding: 12px 15px;
}

/* Status Badge in Table */
.table-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.table-status.status-aguardando_orcamento {
    background-color: #fff3cd;
    color: #856404;
}

.table-status.status-orcamento_enviado {
    background-color: #d1ecf1;
    color: #0c5460;
}

.table-status.status-aguardando_aprovacao {
    background-color: #cfe2ff;
    color: #084298;
}

.table-status.status-em_reparo {
    background-color: #e7f1ff;
    color: #004085;
}

.table-status.status-aguardando_peca {
    background-color: #fff3cd;
    color: #856404;
}

.table-status.status-pronto {
    background-color: #d4edda;
    color: #155724;
}

.table-status.status-entregue {
    background-color: #d1e7dd;
    color: #0a3622;
}

.table-status.status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
}

/* Tabela de Informações da OS (Details) */
.os-info-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.os-info-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.os-info-table tbody tr:last-child {
    border-bottom: none;
}

.os-info-table tbody tr:hover {
    background-color: #f8f9fa;
}

.os-info-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.os-info-table td.label-cell {
    font-weight: 600;
    color: #555;
    background-color: #f8f9fa;
    width: 20%;
    min-width: 150px;
    white-space: nowrap;
}

.os-details-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.os-details-section h3 {
    color: #333;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}