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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
}

/* ========== LOGIN ========== */
.gi-public-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gi-login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.gi-login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.gi-login-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.gi-login-box input:focus {
    outline: none;
    border-color: #667eea;
}

.gi-login-box button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.gi-login-box button[type="submit"]:hover {
    background: #5568d3;
}

.gi-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.gi-message.error {
    background: #fee;
    color: #c33;
    display: block;
}

.gi-message.success {
    background: #efe;
    color: #3c3;
    display: block;
}

/* ========== DASHBOARD ========== */
.gi-public-dashboard {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.gi-sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.gi-sidebar.collapsed {
    width: 70px;
}

.gi-sidebar.collapsed .gi-nav-text,
.gi-sidebar.collapsed .gi-sidebar-header h2,
.gi-sidebar.collapsed .gi-user-info {
    display: none;
}

.gi-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gi-sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.gi-sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.gi-sidebar-nav {
    flex: 1;
    padding: 10px 0;
}

.gi-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    gap: 15px;
}

.gi-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.gi-nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left: 4px solid #3498db;
}

.gi-nav-icon {
    font-size: 20px;
    min-width: 20px;
}

.gi-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.gi-user-info {
    margin-bottom: 15px;
}

.gi-user-info strong {
    display: block;
    font-size: 14px;
}

.gi-user-info small {
    display: block;
    opacity: 0.7;
    font-size: 12px;
    margin-top: 3px;
}

.gi-btn-logout {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.gi-btn-logout:hover {
    background: #c0392b;
}

/* ========== CONTEÚDO ========== */
.gi-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    transition: margin-left 0.3s;
}

.gi-sidebar.collapsed ~ .gi-content {
    margin-left: 70px;
}

.gi-module {
    display: none;
}

.gi-module.active {
    display: block;
}

.gi-module h1 {
    margin-bottom: 25px;
    font-size: 28px;
}

/* ========== WIDGETS ========== */
.gi-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gi-widget-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gi-widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gi-widget-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.gi-widget-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.gi-widget-card p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ========== MÓDULO HEADER ========== */
.gi-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ========== BOTÕES ========== */
.gi-btn-primary {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.gi-btn-primary:hover {
    background: #2980b9;
}

.gi-btn-secondary {
    padding: 12px 24px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.gi-btn-secondary:hover {
    background: #7f8c8d;
}

.gi-btn-success {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    flex: 1;
}

.gi-btn-success:hover {
    background: #229954;
}

.gi-btn-warning {
    padding: 10px 20px;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    flex: 1;
}

.gi-btn-warning:hover {
    background: #e67e22;
}

.gi-btn-danger {
    background: #dc3545;
    color: white;
}

.gi-btn-danger:hover {
    background: #c82333;
}

.gi-btn-small {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.gi-btn-edit {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.gi-btn-edit:hover {
    background: #2980b9;
}

.gi-btn-info {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.gi-btn-info:hover {
    background: #2980b9;
}

.gi-btn-icon {
    padding: 6px 10px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.gi-btn-icon:hover {
    background: #f0f0f0;
}

.gi-btn-icon.edit:hover {
    border-color: #3498db;
    color: #3498db;
}

.gi-btn-icon.delete:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ========== FILTROS ========== */
.gi-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.gi-filters input,
.gi-filters select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.gi-filters input {
    flex: 1;
}

.gi-filters select {
    min-width: 200px;
}

/* ========== TABELAS ========== */
#clientes-list,
#os-list,
#estoque-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gi-table {
    width: 100%;
    border-collapse: collapse;
}

.gi-table thead {
    background: #f8f9fa;
}

.gi-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
}

.gi-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.gi-table tr.clickable {
    cursor: pointer;
}

.gi-table tr.clickable:hover {
    background: #f8f9fa;
}

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

.gi-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gi-table-compact thead {
    background: #ecf0f1;
}

.gi-table-compact th {
    padding: 8px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #bdc3c7;
}

.gi-table-compact td {
    padding: 8px;
    border-bottom: 1px solid #ecf0f1;
}

.gi-table-compact tr.expired {
    background: #ffebee;
    color: #c62828;
}

.gi-table-compact tr.expiring-soon {
    background: #fff3e0;
    color: #e65100;
}

/* ========== BADGES ========== */
.gi-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.gi-badge.fornecedor {
    background: #e8f5e9;
    color: #2e7d32;
}

.gi-badge.cliente {
    background: #e3f2fd;
    color: #1565c0;
}

.gi-badge.pf {
    background: #fff3e0;
    color: #e65100;
}

.gi-badge.pj {
    background: #f3e5f5;
    color: #6a1b9a;
}

.gi-stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.gi-stock-badge.low {
    background: #ffebee;
    color: #c62828;
}

.gi-stock-badge.ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.gi-stock-badge.out {
    background: #fce4ec;
    color: #880e4f;
}

.gi-cliente-view {
    padding: 20px;
}

.gi-cliente-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.gi-cliente-info-item label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.gi-cliente-info-item div {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.gi-cliente-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gi-cliente-section label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gi-cliente-section div {
    font-size: 14px;
    color: #2c3e50;
}
.gi-priority {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.gi-priority.low {
    background: #e8f5e9;
    color: #2e7d32;
}

.gi-priority.normal {
    background: #e3f2fd;
    color: #1565c0;
}

.gi-priority.high {
    background: #fff3e0;
    color: #e65100;
}

.gi-priority.urgent {
    background: #ffebee;
    color: #c62828;
}

.gi-os-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.gi-os-status.pending {
    background: #fff3cd;
    color: #856404;
}

.gi-os-status.in_progress {
    background: #cfe2ff;
    color: #084298;
}

.gi-os-status.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.gi-os-status.cancelled {
    background: #f8d7da;
    color: #842029;
}

/* ========== MODAIS ========== */
.gi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gi-modal.active {
    display: flex;
}

.gi-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.gi-modal-large .gi-modal-content {
    max-width: 900px;
}

.gi-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gi-modal-header h2 {
    font-size: 20px;
    margin: 0;
    color: #2c3e50;
}

.gi-modal-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gi-modal-close {
    background: #95a5a6;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 0;
    line-height: 1;
    font-weight: normal;
    flex-shrink: 0;
}

.gi-modal-close:hover {
    background: #7f8c8d;
}

.gi-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

.gi-modal-footer button {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;
}

/* ========== FORMULÁRIOS ========== */
.gi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.gi-form-group {
    margin-bottom: 15px;
}

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

.gi-form-group input,
.gi-form-group select,
.gi-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.gi-form-group input:focus,
.gi-form-group select:focus,
.gi-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.gi-form-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.gi-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #7f8c8d;
    transition: all 0.3s;
}

.gi-tab:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.gi-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: 600;
}

.gi-tab-content {
    display: none;
    padding: 20px 0;
}

.gi-tab-content.active {
    display: block;
}

/* ========== PRODUTOS/ESTOQUE ========== */
.gi-product-thumb-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border: 2px solid #90caf9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1976d2;
}

.gi-product-thumb-empty {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #95a5a6;
}

.gi-produto-view {
    padding: 20px;
}

.gi-produto-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gi-produto-photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: #fff;
}

.gi-produto-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gi-no-photo {
    width: 100%;
    height: 100%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #95a5a6;
}

.gi-produto-basic {
    flex: 1;
}

.gi-produto-basic h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #2c3e50;
}

.gi-produto-code,
.gi-produto-barcode {
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.gi-produto-code strong {
    color: #2c3e50;
}

.gi-produto-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.gi-produto-info-item label,
.gi-os-info-item label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.gi-produto-info-item div,
.gi-os-info-item div {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.gi-produto-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gi-produto-section label,
.gi-produto-section h3 {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gi-produto-section h3 {
    font-size: 14px;
}

.gi-stock-qty {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #3498db !important;
}

.gi-stock-qty.low {
    color: #e74c3c !important;
}

.gi-stock-qty.out {
    color: #880e4f !important;
}

.gi-stock-available {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.gi-stock-available.low {
    color: #f39c12 !important;
}

.gi-stock-available.out {
    color: #e74c3c !important;
}

.gi-produto-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gi-produto-movements {
    margin-top: 25px;
}

.gi-produto-movements h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gi-movement-list {
    max-height: 300px;
    overflow-y: auto;
}

.gi-movement-item {
    padding: 12px;
    border-left: 4px solid #ddd;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.gi-movement-item.in {
    border-left-color: #27ae60;
}

.gi-movement-item.out {
    border-left-color: #e74c3c;
}

.gi-movement-item.adjustment {
    border-left-color: #3498db;
}

.gi-movement-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.gi-movement-type {
    font-weight: 700;
    font-size: 13px;
}

.gi-movement-type.in {
    color: #27ae60;
}

.gi-movement-type.out {
    color: #e74c3c;
}

.gi-movement-type.adjustment {
    color: #3498db;
}

.gi-movement-qty {
    font-weight: 700;
    font-size: 14px;
}

.gi-movement-info {
    font-size: 12px;
    color: #7f8c8d;
}

.gi-movement-notes {
    margin-top: 8px;
    font-size: 13px;
    color: #2c3e50;
    font-style: italic;
}

.gi-photo-preview {
    margin-top: 10px;
}

.gi-photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.gi-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

/* ========== OS ========== */
.gi-os-view {
    padding: 20px;
}

.gi-os-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.gi-os-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.gi-os-description label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.gi-os-description div {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.8;
    color: #2c3e50;
}

.gi-os-items {
    margin-top: 25px;
}

.gi-os-items h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.gi-os-items table {
    width: 100%;
    border-collapse: collapse;
}

.gi-os-items th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-size: 13px;
    border-bottom: 2px solid #dee2e6;
}

.gi-os-items td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

/* ========== AJUSTES ========== */
.gi-adjust-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.gi-adjust-info strong {
    display: block;
    font-size: 18px;
    color: #1565c0;
    margin-bottom: 5px;
}

.gi-adjust-info p {
    font-size: 14px;
    color: #1976d2;
}

.gi-adjust-info span {
    font-weight: 700;
    font-size: 20px;
}

/* ========== ALERTS ========== */
.gi-alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.gi-alert-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1976d2;
}

.gi-alert strong {
    display: block;
    margin-bottom: 5px;
}

/* ========== LOADING E EMPTY ========== */
.gi-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.gi-empty {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.gi-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .gi-sidebar {
        width: 70px;
    }
    
    .gi-content {
        margin-left: 70px;
    }
    
    .gi-nav-text,
    .gi-sidebar-header h2,
    .gi-user-info {
        display: none;
    }
    
    .gi-form-row {
        grid-template-columns: 1fr;
    }
    
    .gi-filters {
        flex-direction: column;
    }
    
    .gi-produto-actions {
        flex-direction: column;
    }
    
    .gi-produto-header {
        flex-direction: column;
        align-items: center;
    }
    
    .gi-produto-photo {
        width: 120px;
        height: 120px;
    }
    
    .gi-form-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .gi-tab {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .gi-produto-info-grid,
    .gi-os-info-grid {
        grid-template-columns: 1fr;
    }

    /* ========== QR CODE SCANNER ========== */
    .gi-qrcode-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .gi-qrcode-scanner {
        position: relative;
        width: 100%;
        max-width: 640px;
        margin: 0 auto 20px;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
    }

    #qr-video {
        width: 100%;
        height: auto;
        display: block;
    }

    .gi-qrcode-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .gi-qrcode-frame {
        width: 250px;
        height: 250px;
        border: 3px solid #00ff00;
        border-radius: 12px;
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { border-color: #00ff00; }
        50% { border-color: #00aa00; }
    }

    .gi-qrcode-controls {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .gi-camera-select {
        flex: 1;
        min-width: 200px;
        padding: 12px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
    }

    .gi-qrcode-result {
        background: #d1e7dd;
        border: 2px solid #0f5132;
        padding: 20px;
        border-radius: 12px;
        margin: 20px 0;
        text-align: center;
    }

    .gi-qrcode-result h3 {
        margin: 0 0 15px 0;
        color: #0f5132;
    }

    .gi-qrcode-value {
        font-size: 18px;
        font-weight: 700;
        color: #0f5132;
        padding: 15px;
        background: white;
        border-radius: 8px;
        margin-bottom: 15px;
        word-break: break-all;
    }

    .gi-qrcode-search-result {
        margin-top: 20px;
    }

    /* ========== MÓDULO STATUS ========== */
    .gi-status-container {
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .gi-status-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .gi-status-card {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-left: 4px solid #3498db;
    }

    .gi-status-card.system {
        border-left-color: #2ecc71;
    }

    .gi-status-card.session {
        border-left-color: #9b59b6;
    }

    .gi-status-card.params {
        border-left-color: #e74c3c;
    }

    .gi-status-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .gi-status-icon {
        font-size: 24px;
        margin-right: 10px;
    }

    .gi-status-card h3 {
        margin: 0;
        color: #2c3e50;
        font-size: 16px;
    }

    .gi-status-info {
        font-size: 13px;
        color: #34495e;
    }

    .gi-status-item {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ecf0f1;
    }

    .gi-status-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .gi-status-label {
        font-weight: 600;
        color: #7f8c8d;
        font-size: 12px;
        text-transform: uppercase;
        display: block;
        margin-bottom: 3px;
    }

    .gi-status-value {
        font-weight: 500;
        color: #2c3e50;
        word-break: break-all;
    }

    .gi-status-badge {
        display: inline-block;
        padding: 4px 10px;
        background: #3498db;
        color: white;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        margin-left: 5px;
    }

    .gi-status-badge.success {
        background: #27ae60;
    }

    .gi-status-badge.warning {
        background: #f39c12;
    }

    .gi-status-badge.error {
        background: #e74c3c;
    }

    .gi-param-list {
        background: #f8f9fa;
        border-radius: 6px;
        padding: 15px;
        margin-top: 10px;
        max-height: 200px;
        overflow-y: auto;
    }

    .gi-param-item {
        padding: 8px;
        border-bottom: 1px solid #e9ecef;
        font-family: monospace;
        font-size: 12px;
    }

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

    .gi-param-key {
        color: #e83e8c;
        font-weight: 600;
    }

    .gi-param-value {
        color: #20c997;
    }

    .gi-timestamp {
        text-align: center;
        margin-top: 20px;
        color: #95a5a6;
        font-size: 12px;
        font-style: italic;
    }


}