﻿/* Estilos Base */
.sucursales-root {
    min-height: 100vh;
    background: #f3f6fb;
    color: #1f2937;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 15px 0;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.return-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Content */
.main-content {
    padding: 30px 0;
}

.page-header {
    background: white;
    padding: 25px 35px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.page-title {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin: 0;
}

.company-name {
    color: #2563eb;
    font-weight: 700;
}

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.add-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th {
        text-align: left;
        padding: 15px;
        color: #64748b;
        border-bottom: 2px solid #f1f5f9;
    }

    .admin-table td {
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
    }

.license-text {
    color: #64748b;
    font-style: italic;
}

.action-btn.license-btn {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

    .action-btn.license-btn:hover {
        background: #dcfce7;
    }

/* Status Badge */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

    .status-badge.active {
        background: #dcfce7;
        color: #166534;
    }

    .status-badge.inactive {
        background: #fee2e2;
        color: #991b1b;
    }

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

    .modal-container.mini {
        width: 400px;
    }

    .modal-container.medium {
        width: 600px;
    }

.modal-header {
    background: #1e3a8a;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
}

.form-section-title {
    font-size: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin: 20px 0 15px;
    color: #1e3a8a;
}

.form-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.form-input, .form-select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cancel-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}
