/* =================== RESET & BASE =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-width: 320px;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}

/* =================== LOGIN =================== */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0891b2 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-logo {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-logo img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

.login-logo h1 {
    color: #fff;
    font-size: 1.6rem;
    margin-top: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Login Tabs */
.login-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 0.65rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.login-tab.active {
    color: #fff;
    background: linear-gradient(45deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-tab:not(.active):hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

/* Login Forms */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(45deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    background: linear-gradient(45deg, #93c5fd 0%, #c4b5fd 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =================== HEADER =================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

.header-icon {
    position: absolute;
    left: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.header-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* =================== BOTTOM NAVIGATION =================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #e0e0e0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: #999;
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-btn.active {
    color: #2563eb;
}

.nav-btn-icon {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

/* =================== CONTENT SCREENS =================== */
.content-screen {
    display: none;
    padding: 72px 1rem 76px;
    min-height: 100vh;
}

.content-screen.active {
    display: block;
}

/* =================== ACCORDION =================== */
.accordion {
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-header .arrow {
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: #999;
}

.accordion.open > .accordion-header .arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 1rem 1rem;
}

.accordion.open > .accordion-body {
    display: block;
}

/* =================== SCHEDULE SLOTS =================== */
.slot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.slot-info {
    flex: 1;
}

.slot-time {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.slot-details {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.slot-capacity {
    font-size: 0.75rem;
    color: #2563eb;
    margin-top: 0.15rem;
}

.btn-book {
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-book:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =================== SLOT ACTIONS & SELECT =================== */
.slot-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.slot-service-select {
    width: 100%;
    min-width: 140px;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #374151;
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%232563eb' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-service-select:focus {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.slot-service-select:hover {
    border-color: #93c5fd;
}

/* =================== GUEST BOOKINGS SEARCH =================== */
.guest-bookings-search {
    padding: 1rem;
}

.guest-bookings-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.search-input-group input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.search-input-group input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-group input::placeholder {
    color: #9ca3af;
}

.btn-search {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(45deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

#guest-bookings-results {
    margin-top: 1rem;
}

/* =================== BOOKING CARDS =================== */
.booking-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.booking-code {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2563eb;
}

.booking-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.booking-status.confirmada {
    background: #e8f5e9;
    color: #2e7d32;
}

.booking-status.cancelada {
    background: #ffebee;
    color: #c62828;
}

.booking-status.completada {
    background: #e3f2fd;
    color: #1565c0;
}

.booking-status.pendiente {
    background: #fff3e0;
    color: #e65100;
}

.booking-card-body {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.booking-card-actions {
    margin-top: 0.75rem;
    text-align: right;
}

.btn-cancel {
    padding: 0.4rem 0.8rem;
    background: #f3f4f6;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

.btn-cancel:disabled,
.btn-secondary {
    padding: 0.4rem 0.8rem;
    background: #f3f4f6;
    color: #9ca3af;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =================== COMPANY GROUP =================== */
.company-group {
    margin-bottom: 1.5rem;
}

.company-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
}

/* =================== WEEK NAVIGATION =================== */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.week-nav-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.week-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =================== BACK BUTTON =================== */
.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #4b5563;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.btn-back:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.week-nav-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.modal-buttons button {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-modal-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-modal-confirm {
    background: linear-gradient(45deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-modal-confirm:disabled {
    background: linear-gradient(45deg, #93c5fd 0%, #c4b5fd 100%);
    cursor: not-allowed;
    box-shadow: none;
}

/* =================== LOADING SPINNER =================== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.loading-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =================== OFFLINE BANNER =================== */
.offline-banner {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #ff9800;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 99;
}

.offline-banner.active {
    display: block;
}

/* =================== PROFILE =================== */
.profile-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.profile-detail {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

.btn-logout {
    width: 100%;
    padding: 0.85rem;
    background: #f3f4f6;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* =================== EMPTY STATE =================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 0.9rem;
}

/* =================== UTILITIES =================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* =================== RESPONSIVE =================== */
@media (min-width: 768px) {
    .login-card {
        padding: 2.5rem 2rem;
    }

    .content-screen {
        max-width: 600px;
        margin: 0 auto;
    }

    .slot-service-select {
        min-width: 160px;
    }
}

@media (max-width: 470px) {
    .slot-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .slot-info {
        width: 100%;
    }

    .slot-actions {
        width: 100%;
    }

    .slot-service-select {
        flex: 1;
        min-width: 0;
    }
}

/* =================== STAFF GROUP (inside day accordion) =================== */
.staff-group {
    margin-bottom: 0.75rem;
    border-left: 3px solid #2563eb;
    padding-left: 0.75rem;
}

.staff-group-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.staff-group-slots {
    padding-left: 0.25rem;
}

/* =================== COMPANY INFO CARD (Home) =================== */
.company-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.company-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-info-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.company-info-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}

.company-info-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.company-info-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.company-info-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    padding-top: 0.25rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.25rem;
}

/* =================== COMPANY SELECTOR (Schedules) =================== */
.company-selector-wrap {
    margin-bottom: 0.75rem;
}

.company-selector {
    width: 100%;
    padding: 0.65rem 2rem 0.65rem 0.9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%232563eb' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-selector:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =================== ACCORDION DATE (nested) =================== */
.accordion-date {
    box-shadow: none;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.accordion-header-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    background: #f0f4ff;
    padding: 0.75rem 1rem;
}

.accordion-header-date:hover {
    background: #e8efff;
}

/* =================== EMPLOYEE BOOKING ACTIONS =================== */
.btn-complete {
    padding: 0.4rem 0.8rem;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1.5px solid #a5d6a7;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-complete:hover {
    background: #c8e6c9;
    border-color: #2e7d32;
}

.btn-noshow {
    padding: 0.4rem 0.8rem;
    background: #fff3e0;
    color: #e65100;
    border: 1.5px solid #ffcc80;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-noshow:hover {
    background: #ffe0b2;
    border-color: #e65100;
}

/* =================== INNER TABS =================== */
.inner-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1rem;
    gap: 4px;
}

.inner-tab {
    flex: 1;
    padding: 0.6rem 0.5rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.inner-tab.active {
    color: #fff;
    background: linear-gradient(45deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.inner-tab:not(.active):hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

/* =================== COMMISSION SUMMARY =================== */
.commission-summary {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.commission-summary-item {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.commission-summary-item span {
    font-size: 0.7rem;
    color: #6b7280;
}

.commission-summary-item strong {
    font-size: 0.95rem;
    color: #1f2937;
}

/* =================== COMMISSION INFO & DETAILS =================== */
.commission-info {
    margin-bottom: 0.75rem;
}

.commission-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #4b5563;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.commission-info-row:last-child {
    border-bottom: none;
}

.commission-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.commission-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #4b5563;
    padding: 0.3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.commission-detail-row:last-child {
    border-bottom: none;
}

/* =================== COMMISSION DETAILS SCROLL (override) =================== */
.commission-details {
    background: #f9fafb;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.commission-details-inner {
    min-width: 480px;
    padding: 0.5rem 0.75rem;
}

.commission-detail-row {
    display: grid;
    grid-template-columns: 100px 90px 1fr 75px 75px;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #4b5563;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.commission-detail-row:last-child {
    border-bottom: none;
}

.commission-detail-row.commission-detail-header {
    font-weight: 600;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 0.4rem;
}

.commission-detail-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commission-detail-row span:nth-child(3) {
    white-space: normal;
}
