* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #000;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 32px;
    color: #000;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: #767676;
    font-size: 14px;
}

.tabs-modulo {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: #000;
}

.tab.active {
    color: #000;
    border-bottom-color: #000;
}

.tab svg {
    width: 18px;
    height: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #000;
}

.radio-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #333;
}

.btn-login:disabled {
    background: #999;
    cursor: not-allowed;
}

.error-message {
    background: #f5f5f5;
    color: #000;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
}

.hidden {
    display: none !important;
}

.dashboard-body {
    background: #f5f5f5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
}

.brand-crm {
    color: #fff;
}

.brand-cc {
    color: #fff;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user span {
    font-size: 14px;
    color: #ccc;
}

.role-badge {
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #fff;
    color: #000;
}

.container {
    width: 100%;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
}

.container h1 {
    font-size: 24px;
    color: #000;
    margin-bottom: 20px;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cards-grid .card {
    flex: 1;
    min-width: 100px;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.cards-grid .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cards-grid .card h3 {
    font-size: 10px;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cards-grid .card .card-number {
    font-size: 16px;
    margin: 2px 0 0;
    font-weight: 700;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 14px;
    color: #767676;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.card-number {
    font-size: 36px;
    font-weight: 700;
    color: #000;
}

.module-container {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.module-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.module-header {
    text-align: center;
    margin-bottom: 36px;
}

.module-header h1 {
    font-size: 24px;
    color: #000;
    font-weight: 700;
    margin-bottom: 8px;
}

.module-header p {
    color: #767676;
    font-size: 14px;
}

.module-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.module-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.module-option:hover {
    border-color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.module-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #f5f5f5;
    color: #000;
}

.module-option h2 {
    font-size: 18px;
    color: #000;
    margin-bottom: 8px;
    font-weight: 600;
}

.module-option p {
    font-size: 13px;
    color: #767676;
    line-height: 1.4;
}

.module-logout {
    display: block;
    text-align: center;
    color: #999;
    font-size: 13px;
    text-decoration: none;
}

.module-logout:hover {
    color: #000;
}

.nav-switch {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    margin-left: 12px;
    padding: 4px 10px;
    border: 1px solid #555;
    border-radius: 4px;
}

.nav-switch:hover {
    background: #333;
    color: #fff;
}

.brand-admin {
    color: #fff;
    letter-spacing: 1px;
}

.admin-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    font-size: 18px;
    color: #000;
    font-weight: 700;
}

.btn-section {
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-section:hover {
    background: #333;
}

.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab {
    padding: 14px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: #000;
}

.admin-tab.active {
    color: #000;
    border-bottom-color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h1 {
    font-size: 24px;
    color: #000;
    margin-bottom: 24px;
}

.table-container {
    width: 100%;
    overflow-x: hidden;
}

.data-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.data-table th {
    background: #000;
    color: #fff;
    padding: 8px 6px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table td {
    padding: 6px 6px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f9f9f9;
}

@media (max-width: 1366px) {
    .container { padding: 16px; }
    .data-table th { font-size: 10px; padding: 6px 4px; }
    .data-table td { font-size: 11px; padding: 5px 4px; }
}

@media (max-width: 768px) {
    .container { padding: 10px; }
    .data-table th { font-size: 9px; padding: 5px 3px; letter-spacing: 0; }
    .data-table td { font-size: 10px; padding: 4px 3px; }
    .section-header { flex-direction: column; gap: 8px; }
    .cards-grid { flex-direction: column; }
}

.filtro-rol {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filtro-rol label {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.filtro-rol select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}

.filtro-rol select:focus {
    outline: none;
    border-color: #000;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #e0e0e0;
    color: #000;
}

.status-badge.inactive {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #ddd;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-edit {
    background: #e0e0e0;
    color: #000;
}

.btn-edit:hover {
    background: #ccc;
}

.btn-delete {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #ddd;
}

.btn-delete:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
    color: #000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #000;
}

.form-help {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    cursor: pointer;
}

select:focus {
    border-color: #000;
}

.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #000;
    background: #f9f9f9;
}

.upload-text {
    font-size: 15px;
    color: #333;
    margin-top: 16px;
    font-weight: 500;
}

.upload-hint {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.upload-info {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

#uploadResult {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

#uploadResult.success {
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #000;
}

#uploadResult.error {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #666;
}

.empty-message {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.panel-tabs {
    display: flex;
    gap: 0;
    margin: 32px 0 24px 0;
    border-bottom: 2px solid #e0e0e0;
}

.panel-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.panel-tab:hover {
    color: #000;
}

.panel-tab.active {
    color: #000;
    border-bottom-color: #000;
}

.panel-content {
    display: none;
}

.panel-content.active {
    display: block;
}

.sub-tab {
    font-size: 13px;
    padding: 6px 16px;
}

.sub-content {
    display: none;
}

.sub-content.active {
    display: block;
}

.extra-tab {
    font-size: 12px;
    padding: 4px 12px;
}

.extra-panel {
    display: none;
}

.extra-panel.active {
    display: block;
}

.badge-count {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.loading-cell {
    text-align: center;
    padding: 24px !important;
    color: #999;
}

.llamada-form {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.llamada-form .form-group {
    margin-bottom: 16px;
}

.llamada-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #333;
}

.llamada-form input,
.llamada-form select,
.llamada-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fafafa;
    box-sizing: border-box;
}

.llamada-form input:focus,
.llamada-form select:focus,
.llamada-form textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.llamada-finalizado-row {
    margin-top: -4px;
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    accent-color: #000;
    cursor: pointer;
}

.form-row-llamada {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row-llamada .form-group {
    flex: 1;
    min-width: 180px;
}

.form-actions-llamada {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.form-actions-llamada button {
    min-width: 120px;
}

.success-msg {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 13px;
}

.error-msg {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 13px;
}

.modal-wide {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-chico {
    max-width: 380px;
    text-align: center;
}

.modal-chico p {
    margin: 20px 0;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
}

.modal-actions .btn-login,
.modal-actions .btn-section {
    width: auto;
    padding: 8px 28px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-evidencia {
    padding: 4px 12px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

.btn-evidencia:hover {
    background: #000;
    color: #fff;
}

.evidencia-count {
    display: inline-block;
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.btn-evidencia:hover .evidencia-count {
    background: #333;
    color: #fff;
}

.evidencia-form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 16px;
}

.evidencia-form-row .form-group {
    flex: 1;
    min-width: 160px;
}

.evidencia-form-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #333;
}

.evidencia-form-row select,
.evidencia-form-row input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

.evidencia-btn-group {
    display: flex;
    align-items: flex-end;
    min-width: auto !important;
    flex: 0 !important;
}

.evidencia-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
}

.evidencia-item {
    position: relative;
    width: 150px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.evidencia-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.evidencia-thumb:hover {
    opacity: 0.85;
}

.evidencia-meta {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.evidencia-tipo {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.evidencia-tipo.correo {
    color: #1565c0;
}

.evidencia-tipo.whatsapp {
    color: #2e7d32;
}

.evidencia-fecha {
    font-size: 10px;
    color: #999;
}

.evidencia-usuario {
    font-size: 10px;
    color: #666;
    font-weight: 600;
}

.evidencia-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
}

.evidencia-delete:hover {
    background: #c62828;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.hidden {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 80vh;
}

.lightbox-container img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: grab;
}

.lightbox-info {
    color: #ccc;
    font-size: 14px;
    margin-top: 12px;
    text-transform: capitalize;
}

.filtros-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.filtro-group {
    flex: 1;
    min-width: 160px;
}

.filtro-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #666;
}

.filtro-group input,
.filtro-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    background: #fafafa;
}

.filtro-group input:focus,
.filtro-group select:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.filtro-btn-group {
    display: flex;
    gap: 8px;
    min-width: auto !important;
    flex: 0 !important;
}

.filtro-btn-group button {
    padding: 8px 16px;
    font-size: 13px;
}

.row-anterior td {
    background: #f0f0f0;
    color: #666;
    font-style: italic;
    border-bottom: 1px dashed #ccc;
}

.row-nuevo td {
    background: #fff;
    font-weight: 600;
    border-bottom: 2px solid #000;
}

.row-actualizado td {
    background: #e8f5e9;
}

.celda-cambio {
    vertical-align: top;
}

.valor-viejo {
    display: block;
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    line-height: 1.2;
}

.valor-nuevo {
    display: block;
    font-size: 12px;
    color: #000;
    font-weight: 700;
    line-height: 1.3;
}

.celda-editable {
    outline: none;
    cursor: text;
    border: 1px dashed transparent;
    transition: border-color 0.2s, background 0.2s;
    min-width: 100px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.celda-editable:hover {
    border-color: #aaa;
    background: #f5f5f5;
}

.celda-editable:focus {
    border-color: #000;
    background: #fff;
    white-space: normal;
    overflow: visible;
}

.input-guia {
    width: 100%;
    min-width: 100px;
    max-width: 180px;
    padding: 4px 6px;
    border: 1px dashed #aaa;
    background: #f5f5f5;
    font-size: 0.85em;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.input-guia:hover {
    border-color: #888;
}
.input-guia:focus {
    border-color: #000;
    background: #fff;
}

.row-total td {
    background: #000;
    color: #fff;
    font-weight: 700;
    border-top: 2px solid #000;
}

/* Modal personalizado (reemplaza alert) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-box p {
    font-size: 15px;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.5;
}
.modal-btn {
    padding: 10px 36px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-btn:hover {
    background: #333;
}

.estado-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.estado-badge.ingresado { background: #fff3cd; color: #856404; }
.estado-badge.finalizado { background: #d4edda; color: #155724; }
.estado-badge.pendiente_av { background: #cce5ff; color: #004085; }
.estado-badge.pendiente { background: #e8eaf6; color: #283593; }
.estado-badge.pendiente_traspaso { background: #fff3e0; color: #e65100; }
.estado-badge.entregado { background: #d6d8db; color: #383d41; }
