.panel-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8ebf0;
}

.panel-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #00a87c !important;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    text-decoration: none !important;
}

.panel-back-link:hover {
    color: #000739 !important;
}

.panel-page-header h1 {
    color: #000739;
    font-weight: 800;
    margin: 0 0 6px;
    font-size: 28px;
}

.panel-page-subtitle {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.panel-kpis {
    margin-bottom: 28px;
}

.panel-kpi {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 7, 57, 0.04);
    height: calc(100% - 16px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 7, 57, 0.08);
}

.panel-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8fff8, #d1fae5);
    color: #00a87c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
}

.panel-kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: #000739;
    line-height: 1.1;
}

.panel-kpi-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #00c693;
    margin-top: 8px;
}

.panel-kpi-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.panel-tabs {
    margin-bottom: 24px;
    border-bottom: 1px solid #e8ebf0;
    padding-bottom: 0;
}

.panel-tabs > li > a {
    border-radius: 8px 8px 0 0 !important;
    color: #555 !important;
    font-weight: 600;
    padding: 10px 18px !important;
}

.panel-tabs > li.active > a,
.panel-tabs > li.active > a:hover {
    background: #00c693 !important;
    color: #fff !important;
    border-color: #00c693 !important;
}

.panel-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.panel-badge-default { background: #eee; color: #555; }
.panel-badge-primary { background: #dbeafe; color: #1d4ed8; }
.panel-badge-warning { background: #fef3c7; color: #b45309; }
.panel-badge-info { background: #cffafe; color: #0e7490; }
.panel-badge-success { background: #d1fae5; color: #047857; }
.panel-badge-danger { background: #fee2e2; color: #b91c1c; }

.panel-progress-wrap { margin: 8px 0 16px; }
.panel-progress-label { font-size: 13px; color: #666; margin-bottom: 6px; }
.panel-progress {
    height: 8px;
    background: #e8ebf0;
    border-radius: 999px;
    overflow: hidden;
}
.panel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00c693, #00a87c);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.panel-card {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
}

.panel-card h3 {
    color: #000739;
    font-size: 18px;
    font-weight: 800;
    margin-top: 0;
}

.panel-actions {
    white-space: nowrap;
}

.panel-actions .btn {
    margin: 2px 0;
}

.panel-table-wrap {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
}

.panel-table-wrap .table {
    margin-bottom: 0;
}

.panel-table-wrap thead th {
    background: #000739 !important;
    color: #fff !important;
    border: none !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.panel-alert {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #00c693;
    background: #f0fdf8;
    color: #1b493a;
}

.panel-alert-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.panel-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.panel-empty-icon {
    display: block;
    font-size: 36px;
    color: #ccc;
    margin-bottom: 12px;
}

.panel-empty p {
    margin: 0;
    font-size: 15px;
}

.panel-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.panel-flash .glyphicon {
    font-size: 18px;
    margin-top: 2px;
}

.panel-flash-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.panel-flash-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.panel-flash-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.panel-copy-box {
    background: #f8fafb;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.panel-copy-box label {
    display: block;
    font-weight: 700;
    color: #000739;
    margin-bottom: 10px;
    font-size: 14px;
}

.panel-copy-row {
    display: flex;
    gap: 10px;
}

.panel-copy-row .form-control {
    flex: 1;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.panel-copy-btn.copied {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #047857;
}

.panel-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.panel-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 10px;
    color: #000739 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.panel-quick-action:hover {
    border-color: #00c693;
    box-shadow: 0 4px 12px rgba(0, 198, 147, 0.15);
}

.panel-quick-action-primary {
    background: linear-gradient(135deg, #00c693, #00a87c);
    border-color: transparent;
    color: #fff !important;
}

.panel-quick-action-primary:hover {
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 198, 147, 0.35);
}

.panel-quick-action .glyphicon {
    color: #00c693;
}

.panel-quick-action-primary .glyphicon {
    color: #fff;
}

.panel-task-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.panel-task-meta strong {
    color: #000739;
}

.panel-task-text {
    font-style: italic;
    color: #444;
    background: #f8fafb;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #00c693;
    margin-top: 8px;
}

.panel-cta-box {
    background: linear-gradient(135deg, #000739, #003366);
    color: #fff;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.panel-cta-box h3 {
    color: #fff;
    margin-top: 0;
}

.panel-cta-box p {
    color: rgba(255,255,255,0.8);
}

.panel-cta-box .btn-success {
    margin-top: 12px;
    font-weight: 700;
    padding: 12px 24px;
}

.panel-form-section {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 28px;
}

.panel-form-section .form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.panel-form-section .form-control {
    border-radius: 8px;
    border-color: #dde2ea;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-form-section .form-control:focus {
    border-color: #00c693;
    box-shadow: 0 0 0 3px rgba(0, 198, 147, 0.15);
}

.panel-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8ebf0;
}

.panel-table-wrap tbody tr {
    transition: background 0.15s ease;
}

.panel-table-wrap tbody tr:hover {
    background: #f8fafb;
}

.panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-pago-preview {
    background: #f0fdf8;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #047857;
}

.panel-pago-resumen {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.panel-pago-resumen h3 {
    margin: 0 0 16px;
    color: #000739;
    font-weight: 800;
}

.panel-pago-detalles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-pago-detalles li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 15px;
}

.panel-pago-detalles li span {
    color: #666;
}

.panel-pago-detalles li.panel-pago-total {
    border-bottom: none;
    padding-top: 16px;
    font-size: 18px;
}

.panel-pago-detalles li.panel-pago-total strong {
    color: #00a87c;
    font-size: 24px;
}

.panel-pago-metodos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-pago-metodo {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 24px;
}

.panel-pago-metodo-demo {
    border-color: #fde68a;
    background: #fffbeb;
}

.panel-pago-metodo-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-pago-metodo-head > .glyphicon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8fff8, #d1fae5);
    color: #00a87c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.panel-pago-metodo-head h4 {
    margin: 0 0 4px;
    color: #000739;
    font-weight: 800;
}

.panel-pago-metodo-head p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.panel-pago-transferencia p {
    margin-bottom: 8px;
    font-size: 14px;
}

.panel-pago-transferencia code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

.panel-pago-hint {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

.panel-form-section h2 {
    color: #000739;
    margin-top: 0;
    font-size: 22px;
}

.panel-client-tag {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.panel-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-bottom: 2px solid #e8ebf0;
}

.panel-subnav li a {
    display: block;
    padding: 10px 16px;
    color: #666 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.panel-subnav li.active a,
.panel-subnav li a:hover {
    color: #000739 !important;
    border-bottom-color: #00c693;
}

@media (max-width: 767px) {
    .panel-kpi-value { font-size: 22px; }
    .panel-page-header h1 { font-size: 24px; }
    .panel-tabs > li { float: none; display: inline-block; }
}
