/* Profile */
.profile-page-shell {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding: 1rem 0 2rem;
}

.profile-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-page-header h1 {
    margin: .15rem 0 .35rem;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
}

.profile-page-header p,
.profile-card-heading p {
    margin: 0;
    color: var(--text-soft);
}

.profile-eyebrow {
    color: #0b7f82;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.profile-role-badge,
.profile-company-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.profile-role-badge {
    padding: .5rem .85rem;
    color: #075f64;
    background: #dbeafe;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.profile-summary-card,
.profile-form-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.1rem;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

.profile-summary-card {
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(150deg, #071b35, #0f3b63);
}

.profile-avatar-wrap {
    width: 116px;
    height: 116px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 2.8rem;
    font-weight: 800;
}

.profile-summary-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.profile-summary-card>p {
    margin: .3rem 0 .7rem;
    color: #cbd5e1;
    overflow-wrap: anywhere;
}

.profile-company-badge {
    padding: .35rem .7rem;
    color: #dffcf8;
    background: rgba(45, 212, 191, .18);
}

.profile-meta-list {
    margin: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.profile-meta-list>div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    text-align: left;
}

.profile-meta-list dt {
    color: #94a3b8;
    font-weight: 500;
}

.profile-meta-list dd {
    margin: 0;
    font-weight: 700;
}

.profile-upload-button {
    width: 100%;
}

.profile-upload-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.profile-remove-button {
    display: block;
    width: 100%;
    margin-top: .35rem;
}

.profile-upload-help {
    display: block;
    margin-top: .55rem;
    color: #94a3b8;
}

.profile-content-stack {
    display: grid;
    gap: 1.25rem;
}

.profile-form-card {
    padding: clamp(1.1rem, 3vw, 1.6rem);
    color: #f8fafc;
    background: rgba(7, 22, 48, .78);
    backdrop-filter: blur(16px);
}

.profile-card-heading {
    margin-bottom: 1.2rem;
}

.profile-card-heading h2 {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.profile-card-heading-split {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.profile-form-card .form-control {
    min-height: 46px;
    border-color: #cbd5e1;
    border-radius: .7rem;
}

.profile-form-card .form-label {
    color: #e2e8f0;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.25rem;
}

.profile-form-actions .btn {
    min-width: 150px;
    border-radius: .7rem;
}

.profile-loading {
    padding: 4rem 1rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 767.98px) {

    .profile-page-header,
    .profile-card-heading-split {
        flex-direction: column;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-actions .btn {
        width: 100%;
    }
}

.app-user-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
    text-align: left;
}

.app-user-copy strong {
    max-width: 130px;
    overflow: hidden;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-copy small {
    margin-top: 3px;
    color: #64748b;
    font-size: .68rem;
    text-transform: capitalize;
}

.access-denied-card {
    max-width: 560px;
    margin: 8vh auto;
    padding: 42px;
    color: #e2e8f0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    background: rgba(15, 23, 42, .80);
    box-shadow: 0 24px 60px rgba(2, 6, 23, .28);
}

.access-denied-code {
    color: #5eead4;
    font-size: 3rem;
    font-weight: 850;
}

.footer-logo {
    width: 191px;
    max-width: 50vw;
    height: auto;
}

.list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.glass-modal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}



.stat-box {
    padding: 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.02);
}

.stat-box span {
    font-size: 13px;
    opacity: 0.92;
}

.stat-box h3 {
    margin-top: 10px;
    font-size: 30px;
    font-weight: 800;
}

.color-blue {
    background: linear-gradient(135deg, #0b7f82, #60d0c0);
}

.color-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.color-red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.color-gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111;
}


.custom-table td {
    border-color: rgba(255, 255, 255, 0.05);
}



.pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mini-pill {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.mini-pill small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
}

.mini-pill strong {
    color: #fff;
    font-size: 14px;
}

.detail-card {
    height: 100%;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}


.modal-content code {
    color: #facc15;
}

@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h2 {
        font-size: 1.45rem;
    }
}

.dash-wrap {
    padding: 24px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 145px;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.22);
}

.stat-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: 0.7s;
}

.stat-card:hover:before {
    left: 120%;
}

.stat-icon {
    font-size: 28px;
    opacity: 0.95;
    margin-bottom: 8px;
}



.stat-label {
    margin-top: 10px;
    opacity: 0.95;
    font-weight: 600;
}

.blue {
    background: linear-gradient(135deg, #3b82f6, #38bdf8);
}

.red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111;
}

.green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.custom-table thead th {
    border: 0 !important;
    color: #cbd5e1;
    font-weight: 700;
    white-space: nowrap;
}

.custom-table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.search-input {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 14px;
    min-height: 46px;
}

.btn-refresh {
    min-height: 46px;
    border-radius: 14px;
    font-weight: 700;
}

.small-muted {
    color: rgba(255, 255, 255, 0.75);
}

.chart-box {
    position: relative;
    min-height: 340px;
}

.loading-box {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

@media (max-width: 768px) {
    .dash-wrap {
        padding: 14px;
    }

    .stat-number {
        font-size: 34px;
    }

    .chart-box {
        min-height: 280px;
    }
}


.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.page-head {
    padding: 24px;
}


.page-sub {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

.btn-main {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #0b7f82, #49a9ad);
    color: #fff;
}

.btn-main:hover {
    transform: translateY(-1px);
}

.search-box {
    border: none;
    border-radius: 14px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.95);
}

.role-card {
    padding: 20px;
    height: 100%;
    transition: 0.25s ease;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.role-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.action-btn {
    border-radius: 12px;
    padding: 6px 12px;
    font-weight: 700;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.perm-chip {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.perm-on {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.25);
}

.perm-off {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
}

.empty-box {
    padding: 40px;
    text-align: center;
    color: #fff;
}

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-panel {
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    overflow: auto;
}

.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-bodyx {
    padding: 22px;
}

.modal-foot {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.check-card {
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.check-card:hover {
    background: rgba(255, 255, 255, 0.08);
}


.alert {
    border-radius: 14px;
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 14px;
    }

    .page-title {
        font-size: 1.5rem;
    }
}



.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.header-box {
    padding: 24px;
}



.search-input {
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
}



.shift-table thead th {
    background: transparent !important;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
}

.shift-table tbody td {
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.06);
}

.shift-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.form-control,
.form-check-input {
    border-radius: 12px !important;
}

.form-control {
    min-height: 42px;
}

.save-btn {
    border-radius: 12px;
    font-weight: 700;
}

.user-name {
    font-weight: 700;
}

.user-mail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}


.label-small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #16a34a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 14px;
    }

    .page-title {
        font-size: 1.45rem;
    }
}

.settings-wrap {
    padding: 24px;
}




.side-menu {
    padding: 14px;
}

.menu-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    border-radius: 14px;
    margin-bottom: 8px;
    font-weight: 700;
    transition: 0.25s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-btn.active {
    background: linear-gradient(135deg, #0b7f82, #49a9ad);
}




.btn-main:hover {
    transform: translateY(-1px);
}

.empty-box {
    text-align: center;
    padding: 40px;
    color: #fff;
}

.item-row {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.item-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.priority-card {
    padding: 18px;
    height: 100%;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.badge-soft {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.section-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

hr {
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .settings-wrap {
        padding: 14px;
    }

    .page-title {
        font-size: 1.45rem;
    }
}

.issues-wrap {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}




.form-control,
.form-select {
    min-height: 46px;
    border-radius: 12px;
}

.mobile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    color: #fff;
    cursor: pointer;
    border-radius: 18px;
}

.stat-tile {
    border-radius: 22px;
    padding: 18px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    height: 100%;
}

.stat-tile:hover {
    transform: translateY(-4px);
}

.table tbody tr {
    cursor: pointer;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .issues-wrap {
        padding: 12px;
    }
}

.logo-preview img {
    width: 250px;
}

