﻿
:root {
    --primary: #18AACC;
    --primary-light: rgba(24,170,204,0.12);
    --primary-mid: rgba(24,170,204,0.25);
    --primary-dark: #1190ad;
    --glass-bg: rgba(255,255,255,0.72);
    --glass-border: rgba(255,255,255,0.9);
    --shadow: 0 8px 32px rgba(24,170,204,0.10);
    --shadow-hover: 0 16px 48px rgba(24,170,204,0.18);
    --text-3: #8FA3B1;
    --accent: #18AACC;
    --purple: #7C3AED;
}

* {
    box-sizing: border-box;
}

.skin-blue .content-header {
    background: none;
}

.content-wrapper {
    background: #f0f8fc;
}
/* Background orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.bg-orb-1 {
    width: 520px;
    height: 520px;
    background: #18AACC;
    top: -120px;
    right: -120px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 350px;
    height: 350px;
    background: #0dcaf0;
    bottom: 80px;
    left: -80px;
    animation-delay: 4s;
}

.bg-orb-3 {
    width: 250px;
    height: 250px;
    background: #7ee8fa;
    top: 40%;
    left: 40%;
    animation-delay: 8s;
}

@keyframes floatOrb {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(40px) scale(1.08);
    }
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(24,170,204,0.15);
    box-shadow: 0 2px 20px rgba(24,170,204,0.08);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-brand {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.3px;
}

    .topbar-brand .brand-icon {
        width: 34px;
        height: 34px;
        background: linear-gradient(135deg, var(--primary), #0dcaf0);
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1rem;
        box-shadow: 0 4px 14px rgba(24,170,204,0.35);
    }

.breadcrumb-bar {
    font-size: 0.78rem;
    color: #64748b;
}

    .breadcrumb-bar span {
        color: var(--primary);
        font-weight: 600;
    }

.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .topbar-actions .btn-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid rgba(24,170,204,0.18);
        background: rgba(255,255,255,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        cursor: pointer;
        transition: all 0.22s ease;
        font-size: 1rem;
    }

        .topbar-actions .btn-icon:hover {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: 0 4px 14px rgba(24,170,204,0.32);
            transform: translateY(-1px);
        }

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(24,170,204,0.3);
    cursor: pointer;
}

/* Page content */
.page-wrap {
    position: relative;
    z-index: 1;
    padding: 24px 28px;
}

/* Page Header */
.page-header {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    animation: slideDown 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title-group .page-title {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
    letter-spacing: -0.3px;
}

.page-title-group .page-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary-glass {
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(24,170,204,0.30);
    transition: all 0.22s ease;
}

    .btn-primary-glass:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(24,170,204,0.42);
    }

.btn-outline-glass {
    background: rgba(255,255,255,0.65);
    color: var(--primary);
    border: 1.5px solid rgba(24,170,204,0.28);
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.22s ease;
}

    .btn-outline-glass:hover {
        background: var(--primary-light);
        border-color: var(--primary);
        transform: translateY(-1px);
    }

/* KPI Cards */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.kpi-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.28s ease;
    animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
    cursor: pointer;
}

    .kpi-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .kpi-card:nth-child(2) {
        animation-delay: 0.10s;
    }

    .kpi-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .kpi-card:nth-child(4) {
        animation-delay: 0.20s;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(24,170,204,0.30);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

    .kpi-icon.blue {
        background: rgba(24,170,204,0.12);
        color: var(--primary);
    }

    .kpi-icon.green {
        background: rgba(34,197,94,0.12);
        color: #22c55e;
    }

    .kpi-icon.orange {
        background: rgba(249,115,22,0.12);
        color: #f97316;
    }

    .kpi-icon.purple {
        background: rgba(139,92,246,0.12);
        color: #8b5cf6;
    }

.kpi-info .kpi-val {
    font-size: 1.42rem;
    font-weight: 700;
    color: #1a2332;
    line-height: 1;
}

.kpi-info .kpi-lbl {
    font-size: 0.73rem;
    color: #64748b;
    margin-top: 3px;
}

.kpi-info .kpi-change {
    font-size: 0.70rem;
    font-weight: 600;
    margin-top: 2px;
}

.kpi-change.up {
    color: #22c55e;
}

.kpi-change.down {
    color: #ef4444;
}

/* Filter Panel */
.filter-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.22s both;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
    flex: 1;
}

    .filter-group label {
        font-size: 0.72rem;
        color: #64748b;
        font-weight: 500;
    }

.filter-input, .filter-select {
    background: rgba(255,255,255,0.80);
    border: 1.5px solid rgba(24,170,204,0.18);
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 0.80rem;
    font-family: 'Poppins', sans-serif;
    color: #1a2332;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

    .filter-input:focus, .filter-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(24,170,204,0.12);
        background: #fff;
    }

.filter-search-wrap {
    position: relative;
    flex: 2;
    min-width: 200px;
}

    .filter-search-wrap i {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 0.88rem;
    }

    .filter-search-wrap input {
        padding-left: 32px;
    }

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.filter-tag {
    background: var(--primary-light);
    border: 1px solid rgba(24,170,204,0.22);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.18s;
}

    .filter-tag:hover {
        background: var(--primary-mid);
    }

    .filter-tag i {
        font-size: 0.65rem;
    }

/* View Toggle */
.view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-count {
    font-size: 0.78rem;
    color: #64748b;
}

    .result-count strong {
        color: #1a2332;
    }

.view-toggle {
    display: flex;
    background: rgba(255,255,255,0.70);
    border: 1.5px solid rgba(24,170,204,0.18);
    border-radius: 10px;
    overflow: hidden;
}

.view-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
}

    .view-btn.active {
        background: var(--primary);
        color: #fff;
    }

    .view-btn:hover:not(.active) {
        background: var(--primary-light);
        color: var(--primary);
    }

/* Table */
.table-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.28s both;
}

    .table-glass table {
        width: 100%;
        border-collapse: collapse;
    }

    .table-glass thead tr {
        background: rgba(24,170,204,0.07);
        border-bottom: 1.5px solid rgba(24,170,204,0.12);
    }

    .table-glass thead th {
        padding: 11px 14px;
        font-size: 0.73rem;
        font-weight: 600;
        color: #64748b;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

        .table-glass thead th.sortable {
            cursor: pointer;
            user-select: none;
        }

            .table-glass thead th.sortable:hover {
                color: var(--primary);
            }

.sort-icon {
    opacity: 0.4;
    font-size: 0.65rem;
    margin-left: 4px;
}

.sort-active .sort-icon {
    opacity: 1;
    color: var(--primary);
}

.table-glass tbody tr {
    border-bottom: 1px solid rgba(24,170,204,0.07);
    transition: all 0.18s ease;
}

    .table-glass tbody tr:last-child {
        border-bottom: none;
    }

    .table-glass tbody tr:hover {
        background: rgba(24,170,204,0.04);
        transform: scale(1.0008);
    }

    .table-glass tbody tr.selected {
        background: rgba(24,170,204,0.07);
    }

.table-glass tbody td {
    padding: 11px 14px;
    font-size: 0.80rem;
    color: #334155;
    vertical-align: middle;
}

/* Checkbox */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(24,170,204,0.18);
}

/* Asset code link */
.asset-code {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.80rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .asset-code:hover {
        text-decoration: underline;
    }

/* Asset category pill */
.cat-pill {
    background: rgba(24,170,204,0.10);
    color: var(--primary);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.71rem;
    font-weight: 500;
    white-space: nowrap;
}

    .cat-pill.machinery {
        background: rgba(249,115,22,0.10);
        color: #f97316;
    }

    .cat-pill.vehicle {
        background: rgba(139,92,246,0.10);
        color: #8b5cf6;
    }

    .cat-pill.it {
        background: rgba(34,197,94,0.10);
        color: #22c55e;
    }

    .cat-pill.furniture {
        background: rgba(234,179,8,0.10);
        color: #ca8a04;
    }

    .cat-pill.land {
        background: rgba(20,184,166,0.10);
        color: #0d9488;
    }

/* Status badge */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.70rem;
    font-weight: 600;
}

    .badge-status .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

    .badge-status.active {
        background: rgba(34,197,94,0.12);
        color: #16a34a;
    }

        .badge-status.active .dot {
            background: #22c55e;
        }

    .badge-status.inactive {
        background: rgba(100,116,139,0.10);
        color: #475569;
    }

        .badge-status.inactive .dot {
            background: #94a3b8;
        }

    .badge-status.disposed {
        background: rgba(239,68,68,0.10);
        color: #dc2626;
    }

        .badge-status.disposed .dot {
            background: #ef4444;
        }

    .badge-status.maintenance {
        background: rgba(249,115,22,0.10);
        color: #ea580c;
    }

        .badge-status.maintenance .dot {
            background: #f97316;
        }

/* Depreciation bar */
.dep-bar-wrap {
    width: 90px;
}

.dep-bar {
    height: 5px;
    border-radius: 10px;
    background: rgba(24,170,204,0.12);
    overflow: hidden;
    margin-bottom: 3px;
}

.dep-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), #0dcaf0);
}

.dep-pct {
    font-size: 0.68rem;
    color: #64748b;
}

/* Action buttons */
.action-btns {
    display: flex;
    gap: 5px;
}

.act-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid rgba(24,170,204,0.18);
    background: rgba(255,255,255,0.7);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.18s;
}

    .act-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: scale(1.08);
    }

    .act-btn.danger:hover {
        background: #ef4444;
        border-color: #ef4444;
    }

/* Pagination */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid rgba(24,170,204,0.08);
    flex-wrap: wrap;
    gap: 10px;
}

.pg-info {
    font-size: 0.75rem;
    color: #64748b;
}

.pg-btns {
    display: flex;
    gap: 5px;
}

.pg-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid rgba(24,170,204,0.18);
    background: rgba(255,255,255,0.7);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

    .pg-btn:hover {
        background: var(--primary-light);
        color: var(--primary);
        border-color: var(--primary);
    }

    .pg-btn.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

/* Grid View */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
    animation: fadeUp 0.4s ease both;
}

.asset-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.28s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .asset-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), #0dcaf0);
        opacity: 0;
        transition: opacity 0.28s;
    }

    .asset-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
        border-color: rgba(24,170,204,0.28);
    }

        .asset-card:hover::before {
            opacity: 1;
        }

.asset-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.asset-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.asset-card-code {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 6px;
    padding: 3px 9px;
}

.asset-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 4px;
}

.asset-card-location {
    font-size: 0.74rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.asset-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.asset-card-meta-item {
    font-size: 0.70rem;
    color: #64748b;
    background: rgba(100,116,139,0.07);
    border-radius: 6px;
    padding: 3px 8px;
}

.asset-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(24,170,204,0.08);
}

.asset-card-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a2332;
}

.asset-card-val-lbl {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Hidden by default */
.grid-view {
    display: none;
}

/* Bulk action bar */
.bulk-bar {
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    color: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    display: none;
    animation: slideDown 0.3s ease;
    box-shadow: 0 6px 24px rgba(24,170,204,0.28);
}

    .bulk-bar.show {
        display: flex;
    }

.bulk-bar-info {
    font-size: 0.82rem;
    font-weight: 600;
}

.bulk-bar-actions {
    display: flex;
    gap: 8px;
}

.bulk-btn {
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .bulk-btn:hover {
        background: rgba(255,255,255,0.35);
    }

/* Responsive */
@media (max-width: 900px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kpi-row {
        grid-template-columns: 1fr 1fr;
    }

    .page-wrap {
        padding: 14px 12px;
    }
}

/******pagimnation*****/
.paginationPanel {
    float: right;
    padding: 8px 8px;
    /* border: solid thin #ccc; */
    border-radius: 5px;
    margin-bottom: 7px;
    box-shadow: 0 1px 15px 1px rgba(69, 65, 78, .08);
    border: 1px solid rgba(0, 0, 0, .07);
    font-size: 13px;
}

    .paginationPanel a {
        margin: 0px 1px;
        cursor: pointer;
        background: #f1f1f1;
        width: 18px;
        height: 18px;
        display: inline-block;
        border-radius: 50%;
        text-align: center;
        color: #757575;
        font-size: 11px;
        line-height: 20px;
        font-weight: bold;
    }

        .paginationPanel a:hover, .paginationPanel a.active {
            background: #18AACC;
            color: #fff;
        }

    .paginationPanel .paginationpage {
        max-width: 32px;
        text-align: center;
        height: 21px;
        border: solid thin #ccc;
    }

    .paginationPanel select {
        max-width: 48px;
        text-align: center;
        height: 21px;
        border: solid thin #ccc;
    }

    .paginationPanel a i {
        display: contents;
        line-height: 18px;
    }

    .paginationPanel button {
        background: #18AACC;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 11px;
        line-height: 19px;
        font-weight: bold;
    }

    .paginationPanel .borderleft {
        border-left: solid thin #dadada;
    }
/******pagimnation*****/
.table-responsive {
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

label {
    color: #333;
    font-weight: 500;
    margin-bottom: 1px;
}

.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.form-control {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.content {
    background: none;
}

.topPaddingSet {
    padding: 8px 8px 0px 8px;
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.name-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.name-main {
    font-weight: 600;
    color: var(--text-1);
    font-size: 0.80rem;
}

.name-code {
    font-size: 0.68rem;
    color: var(--text-3);
}

.sbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.69rem;
    font-weight: 600;
}

    .sbadge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

.sb-active {
    background: rgba(22,163,74,0.10);
    color: #16A34A;
}

    .sb-active .dot {
        background: #22C55E;
    }

.sb-inactive {
    background: rgba(100,116,139,0.10);
    color: #64748B;
}

    .sb-inactive .dot {
        background: #94A3B8;
    }

.dept-tag {
    background: rgba(124, 58, 237, 0.09);
    color: var(--purple);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 0.69rem;
    font-weight: 500;
}

.offcanvas-end {
    width: 620px !important;
    border-left: 1px solid var(--border) !important;
    box-shadow: -8px 0 48px rgba(0,0,0,0.12) !important;
}

/* Offcanvas Header */
.oc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.oc-header-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.oc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.95rem;
}

.oc-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-1);
}

.oc-sub {
    font-size: 0.70rem;
    color: var(--text-3);
    margin-top: 1px;
}

.oc-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-input);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.18s;
}

    .oc-close:hover {
        background: #FEF2F2;
        border-color: #FECACA;
        color: var(--danger);
    }

/* Offcanvas Body */
.oc-body {
    padding: 20px 22px;
    overflow-y: auto;
    height: calc(100vh - 56px - 62px); /* minus header minus footer */
    background: #F7F9FB;
}

/* Section card inside OC */
.oc-sec {
    background: var(--white);
    border: 1px solid #E8EDF2;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    animation: fadeUp 0.35s cubic-bezier(0.22,1,0.36,1) both;
}

.oc-sec-head {
    padding: 12px 16px;
    border-bottom: 1px solid #F0F4F8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAFBFC;
}

.oc-sec-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.oc-bar {
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.oc-sec-body {
    padding: 16px 16px;
    background: #fff;
}

/* Form grid inside OC */
.ocg {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 13px 14px;
}

    .ocg.g1 {
        grid-template-columns: 1fr;
    }

.cs2 {
    grid-column: span 2;
}

.fg3 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flabel3 {
    font-size: 0.69rem;
    font-weight: 500;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .flabel3 .req {
        color: var(--danger);
    }

.fi3, .fs3 {
    width: 100%;
    background: #F8FAFC;
    border: 1.5px solid #E5E9EF;
    border-radius: 8px;
    padding: 8px 32px 8px 10px;
    font-size: 0.79rem;
    font-family: 'Roboto', sans-serif;
    color: var(--text-1);
    outline: none;
    appearance: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    line-height: 1.4;
}

    .fi3::placeholder {
        color: var(--text-3);
    }

    .fi3:focus, .fs3:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(24,170,204,0.11);
        background: #fff;
    }

    .fi3:not(:placeholder-shown) {
        background: #fff;
    }

.fw3 {
    position: relative;
}

.fic3 {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 0.76rem;
    pointer-events: none;
}

.ta3 {
    width: 100%;
    resize: vertical;
    min-height: 76px;
    background: #F8FAFC;
    border: 1.5px solid #E5E9EF;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.79rem;
    font-family: 'Roboto', sans-serif;
    color: var(--text-1);
    outline: none;
    line-height: 1.55;
    transition: all 0.18s;
}

    .ta3:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(24,170,204,0.11);
        background: #fff;
    }

    .ta3::placeholder {
        color: var(--text-3);
    }

/* Photo upload in OC */
.oc-photo {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.photo-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px dashed var(--border-input);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.2s;
    background: #F8FAFC;
    overflow: hidden;
    position: relative;
}

    .photo-box:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-dim);
    }

    .photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        display: none;
    }

    .photo-box i {
        font-size: 1.4rem;
    }

    .photo-box span {
        font-size: 0.60rem;
        font-weight: 500;
    }

.photo-info {
    font-size: 0.72rem;
    color: var(--text-3);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

    .photo-info strong {
        color: var(--text-2);
        font-size: 0.76rem;
    }

/* Status chips in OC */
.s-row {
    display: flex;
    gap: 7px;
}

.s-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 500;
    border: 1.5px solid #E5E9EF;
    background: #F8FAFC;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.18s;
}

.s-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

.s-chip.s-active {
    border-color: #22C55E;
    background: #F0FDF4;
    color: #16A34A;
}

    .s-chip.s-active .s-dot {
        opacity: 1;
        background: #22C55E;
    }

.s-chip.s-inactive {
    border-color: #94A3B8;
    background: #F8FAFC;
    color: #64748B;
}

    .s-chip.s-inactive .s-dot {
        opacity: 1;
        background: #94A3B8;
    }

/* Offcanvas Footer */
.oc-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 22px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.save-ind {
    font-size: 0.72rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .save-ind.dirty {
        color: var(--warning);
    }

    .save-ind.saved {
        color: var(--success);
    }

.oc-foot-btns {
    display: flex;
    gap: 8px;
}

/* Step indicator in OC header */
.oc-steps {
    display: flex;
    gap: 4px;
    align-items: center;
}

.oc-step {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background: #E5E9EF;
    transition: background 0.3s;
}

    .oc-step.done {
        background: var(--accent);
    }


.name-main {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.80rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .name-main:hover {
        text-decoration: underline;
    }
