/* --- RECEPTION V4.0 STYLES (HORIZONTAL LAYOUT / TABLE-BASED) --- */
/* Scoped to #reception-content to prevent global leaks */

/* ========== TABS SYSTEM ========== */
#reception-content .rec-tabs {
    display: flex;
    gap: 4px;
    margin-left: 20px;
}

#reception-content .rec-tab-btn {
    padding: 8px 22px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--solvix-silver-dark, #94a3b8);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

#reception-content .rec-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--solvix-silver, #e2e8f0);
}

#reception-content .rec-tab-btn.active {
    background: var(--solvix-cyan, #00D9FF);
    color: #020c1b;
    border-color: var(--solvix-cyan, #00D9FF);
    box-shadow: 0 -2px 10px rgba(0, 217, 255, 0.3);
}

#reception-content .rec-tab-btn.active i {
    color: #020c1b;
}

/* ========== TAB CONTENT PANELS ========== */
#reception-content .rec-tab-panel {
    display: none;
    animation: recFadeIn 0.3s ease;
}

#reception-content .rec-tab-panel.active {
    display: block;
}

@keyframes recFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== HORIZONTAL LAYOUT ========== */
#reception-content .rec-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 75vh;
}

/* ========== OC TABLE SECTION ========== */
#reception-content .rec-table-section {
    background: var(--solvix-glass, #020c1b);
    border: 1px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

#reception-content .rec-table-header {
    padding: 12px 20px;
    background: var(--theme-panel-header-bg, var(--solvix-metal));
    color: var(--theme-panel-header-text, #020c1b);
    font-weight: 800;
    border-bottom: 2px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    box-shadow: var(--solvix-metal-shadow);
}

#reception-content .rec-table-toolbar {
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#reception-content .rec-table-toolbar .input-glass {
    flex: 1;
    max-width: 350px;
}

#reception-content .rec-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 38vh;
}

#reception-content .rec-oc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#reception-content .rec-oc-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 16px;
    background: var(--solvix-navy-light, #0a192f);
    color: var(--solvix-cyan, #00D9FF);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.72rem;
    text-align: left;
    border-bottom: 2px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    white-space: nowrap;
}

#reception-content .rec-oc-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

#reception-content .rec-oc-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--solvix-cyan, #00D9FF);
}

#reception-content .rec-oc-table tbody tr.selected {
    background: rgba(0, 217, 255, 0.1);
    border-left: 4px solid var(--solvix-cyan, #00D9FF);
    box-shadow: inset 0 0 15px rgba(0, 217, 255, 0.05);
}

#reception-content .rec-oc-table tbody td {
    padding: 12px 16px;
    color: var(--solvix-silver, #e2e8f0);
    vertical-align: middle;
}

/* Table Badge */
#reception-content .rec-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#reception-content .rec-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

#reception-content .rec-status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Table Action Buttons */
#reception-content .rec-action-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

#reception-content .rec-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--solvix-silver-dark, #94a3b8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#reception-content .rec-action-btn:hover {
    transform: scale(1.1);
}

#reception-content .rec-action-btn.action-pdf:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--solvix-cyan, #00D9FF);
    color: var(--solvix-cyan, #00D9FF);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

#reception-content .rec-action-btn.action-view:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

#reception-content .rec-action-btn.action-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* ========== WORK PANEL (Unified Center + Summary) ========== */
#reception-content .rec-work-panel {
    background: var(--solvix-glass, #020c1b);
    border: 1px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--solvix-silver, #e2e8f0);
}

#reception-content .rec-work-header {
    padding: 12px 20px;
    background: var(--theme-panel-header-bg, var(--solvix-metal));
    color: var(--theme-panel-header-text, #020c1b);
    font-weight: 800;
    border-bottom: 2px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    box-shadow: var(--solvix-metal-shadow);
}

#reception-content .rec-work-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* ========== INLINE SUMMARY (ex-Panel 3) ========== */
#reception-content .rec-summary-inline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: var(--solvix-navy-light, #0a192f);
    border: 1px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    border-radius: 12px;
    border-left: 4px solid var(--solvix-cyan, #00D9FF);
}

#reception-content .rec-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#reception-content .rec-summary-item .rec-sum-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--solvix-silver-dark, #94a3b8);
}

#reception-content .rec-summary-item .rec-sum-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--solvix-silver, #e2e8f0);
}

#reception-content .rec-summary-item .rec-sum-value.cyan {
    color: var(--solvix-cyan, #00D9FF);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

/* Progress bar inline */
#reception-content .rec-progress-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
}

#reception-content .rec-progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

#reception-content .rec-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--solvix-cyan, #00D9FF), #10b981);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ========== HELP BOX ========== */
#reception-content .rec-help-box {
    background: #072132;
    border-left: 4px solid var(--solvix-cyan, #00D9FF);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: var(--solvix-silver, #e2e8f0);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

[data-theme="solvix-corp"] #reception-content .rec-help-box {
    background: #e6f7ff;
    color: #020c1b;
}

#reception-content .rec-help-box i {
    color: var(--solvix-cyan, #00D9FF);
    font-size: 1.1rem;
    margin-top: 2px;
}

#reception-content .rec-help-box ul {
    margin: 5px 0 0 15px;
    padding: 0;
    list-style-type: disc;
}

#reception-content .rec-help-box li {
    margin-bottom: 3px;
}

/* ========== SCAN INPUT AREA ========== */
#reception-content .rec-scan-area {
    background: var(--solvix-navy-light, #0a192f);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

#reception-content .rec-scan-area label {
    font-size: 0.78rem;
    color: var(--solvix-cyan, #00D9FF);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#reception-content .rec-scan-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

#reception-content .rec-scan-row .input-glass {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

#reception-content .rec-scan-btn {
    cursor: pointer;
    background: rgba(0, 217, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.2s;
}

#reception-content .rec-scan-btn:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--solvix-cyan, #00D9FF);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
}

/* ========== EMPTY STATE ========== */
#reception-content .rec-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--solvix-silver-dark, #94a3b8);
}

#reception-content .rec-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--solvix-cyan, #00D9FF);
}

#reception-content .rec-empty-state h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--solvix-silver, #e2e8f0);
}

/* ========== SCANNED ITEMS ========== */
#reception-content .items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#reception-content .scan-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s;
    gap: 4px;
}

#reception-content .scan-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

#reception-content .scan-item.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

/* ========== MODULE HEADER ========== */
#reception-content .app-header-module {
    min-height: 50px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--solvix-metal);
    color: #020c1b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--solvix-metal-shadow);
    font-weight: 800;
    border: 2px solid var(--solvix-metal-border);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========== CREAR OC SECTION ========== */
#reception-content .rec-crear-oc {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    justify-content: center;
}

#reception-content .rec-oc-editor {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    background: var(--solvix-glass, #020c1b);
    border: 1px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: var(--solvix-silver, #e2e8f0);
    height: fit-content;
}

#reception-content .rec-oc-editor h3 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    color: var(--solvix-cyan, #00D9FF);
    margin-top: 18px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
}

#reception-content .rec-oc-editor h3:first-child {
    margin-top: 0;
}

#reception-content .rec-oc-editor .form-group {
    margin-bottom: 10px;
}

#reception-content .rec-oc-editor .form-row {
    display: flex;
    gap: 10px;
}

#reception-content .rec-oc-editor label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--solvix-silver-dark, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#reception-content .rec-oc-editor input[type="text"],
#reception-content .rec-oc-editor input[type="number"],
#reception-content .rec-oc-editor input[type="date"],
#reception-content .rec-oc-editor input[type="file"],
#reception-content .rec-oc-editor select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    background: var(--solvix-navy-light, #0a192f);
    color: var(--solvix-silver, #e2e8f0);
    font-size: 0.88rem;
    box-sizing: border-box;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

#reception-content .rec-oc-editor input:focus,
#reception-content .rec-oc-editor select:focus {
    border-color: var(--solvix-cyan, #00D9FF);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.15);
}

#reception-content .rec-oc-editor .editor-table {
    width: 100%;
    font-size: 0.82rem;
    margin-bottom: 10px;
    border-collapse: collapse;
}

#reception-content .rec-oc-editor .editor-table th {
    background: var(--solvix-navy-light, #0a192f);
    text-align: left;
    padding: 6px 8px;
    color: var(--solvix-cyan, #00D9FF);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#reception-content .rec-oc-editor .editor-table td {
    padding: 3px 4px;
}

#reception-content .rec-oc-editor .editor-table input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    background: var(--solvix-navy-light, #0a192f);
    color: var(--solvix-silver, #e2e8f0);
    font-size: 0.85rem;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

#reception-content .rec-oc-editor .editor-table input:focus {
    border-color: var(--solvix-cyan, #00D9FF);
}

#reception-content .rec-oc-editor .btn-add {
    background: var(--solvix-cyan, #00D9FF);
    color: #020c1b;
    border: none;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

#reception-content .rec-oc-editor .btn-add:hover {
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    transform: scale(1.02);
}

#reception-content .rec-oc-editor .btn-del {
    color: #ef4444;
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

#reception-content .rec-oc-editor .btn-print {
    background: var(--solvix-cyan, #00D9FF);
    color: #020c1b;
    padding: 12px 20px;
    border: none;
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    display: block;
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

#reception-content .rec-oc-editor .btn-print:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Logo Controls */
#reception-content .logo-controls {
    background: var(--solvix-navy-light, #0a192f);
    padding: 12px;
    border: 1px solid var(--solvix-metal-border, rgba(255,255,255,0.15));
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
}

#reception-content .logo-controls.active {
    display: block;
    animation: recFadeIn 0.3s;
}

#reception-content .slider-group {
    margin-bottom: 10px;
}

#reception-content .slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 4px;
    color: var(--solvix-silver-dark, #94a3b8);
}

#reception-content input[type="range"] {
    width: 100%;
    cursor: pointer;
}

/* ========== PAPER PREVIEW ========== */
#reception-content .rec-paper-container {
    flex: 2;
    min-width: 450px;
    display: flex;
    justify-content: center;
}

#reception-content .rec-paper {
    background: white;
    width: 210mm;
    min-height: 280mm;
    padding: 15mm;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    color: black;
    font-size: 11px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Paper inner styles */
#reception-content .rec-paper .top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 10px; }
#reception-content .rec-paper .logo-area { width: 25%; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
#reception-content .rec-paper .logo-img { display: none; object-fit: contain; }
#reception-content .rec-paper .emisor-data { width: 40%; font-size: 10px; line-height: 1.4; }
#reception-content .rec-paper .emisor-data div { margin-bottom: 2px; }

#reception-content .rec-paper .red-box {
    width: 35%;
    border: 2px solid #d32f2f;
    color: #d32f2f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
    height: 80px;
}
#reception-content .rec-paper .red-title { font-size: 14px; font-weight: bold; margin: 2px 0; }
#reception-content .rec-paper .red-rut { font-size: 11px; }
#reception-content .rec-paper .red-folio { font-size: 16px; font-weight: bold; }

#reception-content .rec-paper .sub-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
#reception-content .rec-paper .receptor-frame { flex: 1; border: 1px solid #000; padding: 5px; margin-right: 15px; }
#reception-content .rec-paper .receptor-row { display: flex; margin-bottom: 2px; font-size: 11px; }
#reception-content .rec-paper .rec-label { font-weight: bold; width: 85px; min-width: 85px; padding-right: 5px; }
#reception-content .rec-paper .date-frame { text-align: right; width: 140px; font-size: 11px; }
#reception-content .rec-paper .date-label { font-weight: bold; display: block; margin-bottom: 2px; }
#reception-content .rec-paper .date-value { font-size: 14px; }

#reception-content .rec-paper .table-container { width: 100%; margin-bottom: auto; }
#reception-content .rec-paper .main-table { width: 100%; border-collapse: collapse; font-size: 10px; }
#reception-content .rec-paper .main-table th { padding: 5px 2px; text-align: left; font-weight: bold; text-transform: uppercase; }
#reception-content .rec-paper .main-table td { padding: 5px 2px; vertical-align: top; }
#reception-content .rec-paper .col-cod { width: 10%; }
#reception-content .rec-paper .col-desc { width: 40%; }
#reception-content .rec-paper .col-cant { width: 10%; text-align: center; }
#reception-content .rec-paper .col-prec { width: 20%; text-align: right; }
#reception-content .rec-paper .col-descp { width: 10%; text-align: right; }
#reception-content .rec-paper .col-val { width: 10%; text-align: right; }

#reception-content .rec-paper .footer-area { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
#reception-content .rec-paper .footer-top { display: flex; justify-content: space-between; align-items: flex-start; }
#reception-content .rec-paper .timbre-placeholder { width: 100px; height: 100px; border: 1px dashed #ccc; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 8px; color: #aaa; }
#reception-content .rec-paper .totals-frame { border: 1px solid #000; padding: 8px; width: 220px; text-align: right; background: #fff; }
#reception-content .rec-paper .tot-row { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 11px; }
#reception-content .rec-paper .tot-row.final { border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 4px 0; font-weight: bold; font-size: 12px; margin-top: 5px; }
#reception-content .rec-paper .law-frame { border: 1px solid #000; padding: 10px; }
#reception-content .rec-paper .law-header { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; font-size: 9px; border-bottom: 1px dotted #ccc; padding-bottom: 5px; }
#reception-content .rec-paper .law-field strong { display: block; border-bottom: 1px dotted #999; margin-bottom: 2px; min-height: 14px; }
#reception-content .rec-paper .law-text { text-align: justify; font-size: 9px; line-height: 1.5; margin-bottom: 10px; }
#reception-content .rec-paper .cedible-label { color: #d32f2f; font-weight: bold; font-size: 12px; text-align: right; text-transform: uppercase; }

/* ========== LEGACY PANEL SUPPORT ========== */
/* Keep for modals and settings that still use .panel */
#reception-content .panel {
    background: var(--solvix-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--solvix-silver);
}

#reception-content .panel-header {
    padding: 15px 20px;
    background: var(--theme-panel-header-bg);
    color: var(--theme-panel-header-text);
    font-weight: 800;
    border-bottom: 2px solid var(--solvix-metal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--solvix-metal-shadow);
}

/* Inputs */
#reception-content .input-glass {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: white;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-size: 0.95rem;
}

#reception-content .input-glass:focus {
    border-color: var(--solvix-cyan);
    box-shadow: 0 0 15px var(--solvix-cyan-glow);
    background: rgba(0, 0, 0, 0.4);
}

#reception-content .input-glass::placeholder {
    color: #868e96;
}

/* Buttons */
#reception-content .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#reception-content .btn-primary {
    background: var(--solvix-cyan, #00D9FF);
    color: #020c1b;
    font-weight: 800;
}

#reception-content .btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
    transform: scale(1.02);
}

#reception-content .btn-ghost {
    background: transparent;
    color: var(--solvix-silver, #e2e8f0);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

#reception-content .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Doc actions buttons */
#reception-content .rec-doc-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(2, 12, 27, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-card {
    background: var(--solvix-glass);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 90%;
    max-height: 90vh;
    animation: fadeInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--solvix-silver);
}

.modal-header {
    background: var(--solvix-metal);
    color: #020c1b;
    padding: 15px 25px;
    font-weight: 800;
    border-bottom: 2px solid var(--solvix-metal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--solvix-metal-shadow);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Simulated Doc A4 */
.simulated-doc {
    background: #ffffff;
    width: 100%;
    max-width: 210mm;
    aspect-ratio: 210/297;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #d1d5db;
    padding: 20mm;
    position: relative;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    font-size: 11pt;
    color: #333;
    overflow: hidden;
    box-sizing: border-box;
}

.doc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    border: 8px solid rgba(220, 53, 69, 0.15);
    color: rgba(220, 53, 69, 0.15);
    font-size: 5rem;
    font-weight: 900;
    padding: 20px 50px;
    border-radius: 20px;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
}

.doc-stamp-digital {
    position: absolute;
    bottom: 40px;
    right: 40px;
    border: 3px double rgba(22, 101, 52, 0.4);
    color: rgba(22, 101, 52, 0.4);
    padding: 10px 20px;
    font-weight: bold;
    transform: rotate(-8deg);
    background: transparent;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 0;
}

/* Factura cards */
.factura-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: var(--solvix-glass);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.factura-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--solvix-cyan);
}

.factura-header {
    background: var(--solvix-metal);
    color: #020c1b;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--solvix-metal-border);
}

.factura-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
}

.factura-imagen { width: 100px; height: 125px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; }
.factura-info { display: flex; flex-direction: column; gap: 10px; }
.factura-info-row { display: flex; gap: 15px; align-items: center; }
.factura-label { font-size: 0.8rem; color: var(--solvix-silver); opacity: 0.7; min-width: 90px; text-transform: uppercase; letter-spacing: 0.5px; }
.factura-value { font-weight: 700; color: var(--solvix-cyan); text-shadow: 0 0 10px var(--solvix-cyan-glow); }
.factura-acciones { padding: 15px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; gap: 12px; justify-content: flex-end; background: rgba(255, 255, 255, 0.02); }

.factura-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.status-digitalizada { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981; }
.status-pendiente { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }

/* ========== PRINT STYLES ========== */
@media print {
    #reception-content .rec-oc-editor,
    #reception-content .rec-tabs,
    #reception-content .app-header-module,
    #reception-content .rec-table-section,
    #reception-content .rec-work-panel {
        display: none !important;
    }

    #reception-content .rec-paper-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #reception-content .rec-paper {
        width: 100% !important;
        padding: 10mm !important;
        margin: 0 !important;
        min-height: auto;
        box-shadow: none;
    }
}

/* ========== RESPONSIVE: TABLET (<1024px) ========== */
@media (max-width: 1024px) {
    #reception-content .rec-summary-inline {
        grid-template-columns: 1fr 1fr;
    }

    #reception-content .app-header-module {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    #reception-content .rec-tabs {
        margin-left: 0;
        width: 100%;
    }

    #reception-content .rec-tab-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    #reception-content .rec-oc-table {
        font-size: 0.78rem;
    }

    #reception-content .rec-crear-oc {
        flex-direction: column;
    }

    #reception-content .rec-oc-editor {
        max-width: 100%;
    }

    #reception-content .rec-paper-container {
        min-width: auto;
        overflow-x: auto;
        max-width: 100vw;
    }

    #reception-content .rec-paper {
        min-width: 210mm;
        min-height: auto;
        margin: 0 auto;
    }

    .factura-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .factura-imagen {
        width: 80px;
        height: 100px;
    }
}

/* ========== RESPONSIVE: MOBILE (<768px) ========== */
@media (max-width: 768px) {
    #reception-content .rec-summary-inline {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #reception-content .rec-table-wrap {
        max-height: 35vh;
    }

    #reception-content .rec-oc-table thead th {
        padding: 8px 10px;
        font-size: 0.68rem;
    }

    #reception-content .rec-oc-table tbody td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    #reception-content .rec-action-group {
        flex-direction: column;
        gap: 4px;
    }

    #reception-content .rec-action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}