#tab-hours table,
#tab-hours thead tr,
#tab-hours tbody tr,
#tab-hours td,
#tab-hours th {
    all: unset;
    display: revert;
}

#profileContainer {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(187, 201, 223, 0.85);
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.profile-loading,
.profile-error {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(187, 201, 223, 0.85);
    color: #17304f;
}

.profile-error {
    color: #b91c1c;
}

.profile-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-subtabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.profile-subtab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(187, 201, 223, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    color: #17304f;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.profile-subtab:hover {
    transform: translateY(-1px);
}

.profile-subtab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #4a86ff 0%, #245ddd 100%);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.profile-panel {
    display: none;
}

.profile-panel.active {
    display: block;
}

.profile-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(187, 201, 223, 0.85);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.profile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-card h3 {
    margin: 0;
    color: #102a4b;
    font-size: 26px;
    line-height: 1.05;
}

.profile-card-intro {
    margin: 8px 0 0;
    color: #5f7693;
    font-size: 14px;
    line-height: 1.6;
}

.profile-card-badge,
.profile-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #245ddd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-panel-title {
    margin-top: 14px !important;
    font-size: clamp(30px, 4vw, 42px) !important;
    word-break: break-word;
}

.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(187, 201, 223, 0.8);
    background: #fff;
    color: #17304f;
    font-size: 13px;
    font-weight: 700;
}

.profile-pill-label {
    color: #6f88a3;
}

.profile-stat-grid,
.profile-summary-grid,
.profile-form-grid,
.profile-password-grid {
    display: grid;
    gap: 14px;
}

.profile-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.profile-stat-card,
.profile-summary-panel,
.profile-ticket-form,
.profile-photo-form {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(187, 201, 223, 0.75);
    background: linear-gradient(180deg, #fbfdff 0%, #eef4ff 100%);
}

.profile-stat-label {
    display: block;
    margin-bottom: 8px;
    color: #6f88a3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-stat-value {
    display: block;
    color: #102a4b;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1;
}

.profile-stat-note {
    display: block;
    margin-top: 8px;
    color: #6f88a3;
    font-size: 13px;
}

.profile-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-summary-panel h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #102a4b;
}

.profile-summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.profile-summary-item span {
    color: #6f88a3;
    font-size: 13px;
}

.profile-summary-item strong {
    color: #17304f;
    font-size: 14px;
    text-align: right;
}

.profile-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-password-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-form-group {
    margin: 0;
}

.profile-form-group.profile-form-group-full {
    grid-column: 1 / -1;
}

.profile-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #6f88a3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-form-group input,
.profile-form-group select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(187, 201, 223, 0.9);
    background: #fff;
    color: #17304f;
    font-size: 14px;
}

.profile-form-group input[readonly] {
    background: #f5f7fb;
    color: #72839c;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.profile-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4a86ff 0%, #245ddd 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.profile-photo-panel {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 148px;
    height: 148px;
    border-radius: 999px;
}

.profile-avatar {
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.18);
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a86ff 0%, #245ddd 100%);
    color: #fff;
    font-size: 46px;
    font-weight: 800;
}

.profile-avatar-caption {
    max-width: 260px;
    color: #6f88a3;
    font-size: 13px;
    line-height: 1.5;
}

.profile-file-input {
    width: 100%;
}

.profile-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.profile-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
}

.profile-ticket-main {
    min-width: 0;
}

.profile-ticket-title {
    color: #102a4b;
    font-size: 16px;
    font-weight: 800;
}

.profile-ticket-dates {
    margin-top: 6px;
    color: #6f88a3;
    font-size: 13px;
    line-height: 1.55;
}

.profile-ticket-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-ticket {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-ticket-green {
    background: #dcfce7;
    color: #166534;
}

.badge-ticket-yellow {
    background: #fef3c7;
    color: #92400e;
}

.badge-ticket-red {
    background: #fee2e2;
    color: #b91c1c;
}

.profile-empty-state {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(187, 201, 223, 0.95);
    text-align: center;
    color: #6f88a3;
    background: rgba(255, 255, 255, 0.7);
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a86ff 0%, #245ddd 100%);
    color: #fff;
    cursor: pointer;
}

.icon-btn.danger {
    background: linear-gradient(135deg, #ff6a6a 0%, #e53b3b 100%);
}

body[data-theme="dark"] #profileContainer {
    border-color: rgba(71, 85, 105, 0.55);
    background: linear-gradient(180deg, #0f172a 0%, #162033 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

body[data-theme="dark"] .profile-loading,
body[data-theme="dark"] .profile-error,
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .profile-stat-card,
body[data-theme="dark"] .profile-summary-panel,
body[data-theme="dark"] .profile-ticket-item,
body[data-theme="dark"] .profile-ticket-form,
body[data-theme="dark"] .profile-photo-form,
body[data-theme="dark"] .profile-empty-state {
    border-color: rgba(71, 85, 105, 0.5);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(22, 32, 51, 0.96));
}

body[data-theme="dark"] .profile-subtabs {
    background: transparent;
}

body[data-theme="dark"] .profile-subtab {
    border-color: rgba(71, 85, 105, 0.5);
    background: linear-gradient(180deg, rgba(20, 31, 50, 0.94), rgba(14, 23, 39, 0.96));
    color: #e2e8f0;
}

body[data-theme="dark"] .profile-subtab.active {
    background: linear-gradient(135deg, #4a86ff 0%, #245ddd 100%);
    color: #fff;
}

body[data-theme="dark"] .profile-card h3,
body[data-theme="dark"] .profile-panel-title,
body[data-theme="dark"] .profile-ticket-title,
body[data-theme="dark"] .profile-summary-panel h4,
body[data-theme="dark"] .profile-summary-item strong,
body[data-theme="dark"] .profile-stat-value {
    color: #f8fbff;
}

body[data-theme="dark"] .profile-card-intro,
body[data-theme="dark"] .profile-avatar-caption,
body[data-theme="dark"] .profile-ticket-dates,
body[data-theme="dark"] .profile-stat-note,
body[data-theme="dark"] .profile-summary-item span,
body[data-theme="dark"] .profile-pill-label,
body[data-theme="dark"] .profile-empty-state {
    color: #94a3b8;
}

body[data-theme="dark"] .profile-pill,
body[data-theme="dark"] .profile-form-group input,
body[data-theme="dark"] .profile-form-group select {
    border-color: rgba(71, 85, 105, 0.55);
    background: rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
}

body[data-theme="dark"] .profile-form-group input[readonly] {
    background: rgba(30, 41, 59, 0.92);
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .profile-subtabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-stat-grid,
    .profile-summary-grid,
    .profile-photo-panel,
    .profile-password-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #profileContainer {
        padding: 14px;
        border-radius: 18px;
    }

    .profile-card {
        padding: 16px;
        border-radius: 18px;
    }

    .profile-subtabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-subtab {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .profile-panel-title {
        font-size: 30px !important;
    }

    .profile-form-grid,
    .profile-stat-grid,
    .profile-summary-grid,
    .profile-password-grid {
        grid-template-columns: 1fr;
    }

    .profile-card-head,
    .profile-summary-item,
    .profile-ticket-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-ticket-actions {
        width: 100%;
        justify-content: space-between;
    }
}
