/* AdminLTE-Style Client Portal CSS */
* { box-sizing: border-box; margin: 0; padding: 0; }
body.mz-adminlte-body {
    font-family: var(--mz-font-sans);
    background-color: #F4F6F9;
    color: #212529;
    display: flex;
    min-height: 100vh;
}
.mz-wrapper { display: flex; flex-direction: column; width: 100%; min-height: 100vh; }

/* Top Header Navbar */
.mz-main-header {
    background: #FFFFFF;
    border-bottom: 1px solid #DEE2E6;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 266px;
    position: sticky;
    top: 0;
    z-index: 99;
}
.mz-navbar-nav { display: flex; align-items: center; list-style: none; gap: 16px; }
.mz-nav-link { color: #495057; text-decoration: none; font-size: 14px; font-weight: 500; }
.mz-nav-link:hover { color: #2563EB; }
.mz-sidebar-toggle { background: transparent; border: none; font-size: 18px; cursor: pointer; }
.mz-link-badge {
    background: #EFF6FF;
    color: #2563EB;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.mz-ml-auto { margin-left: auto; }
.mz-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #DCFCE7;
    color: #15803D;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.mz-pulse-dot { width: 6px; height: 6px; background: #10B981; border-radius: 50%; }

/* Sidebar */
.mz-main-sidebar {
    width: 250px;
    background: #343A40;
    color: #C2C7D0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.mz-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #4B545C;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}
.mz-brand-icon { color: #2563EB; }
.mz-brand-text span { color: #38BDF8; }
.mz-brand-text small { font-size: 11px; background: #2563EB; padding: 2px 6px; border-radius: 4px; }
.mz-user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #4B545C;
}
.mz-user-avatar {
    width: 36px;
    height: 36px;
    background: #0B192C;
    border: 1px solid #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #38BDF8;
}
.mz-user-name { font-size: 13px; font-weight: 600; color: #FFFFFF; word-break: break-all; }
.mz-user-status { font-size: 11px; color: #10B981; }

.mz-sidebar-nav { padding: 12px 0; }
.mz-nav-tree { list-style: none; }
.mz-tree-header {
    font-size: 11px;
    font-weight: 700;
    color: #6C757D;
    padding: 12px 16px 4px;
    letter-spacing: 0.05em;
}
.mz-tree-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #C2C7D0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.mz-tree-item.active a, .mz-tree-item a:hover {
    background: #2563EB;
    color: #FFFFFF;
}

/* Content Area */
.mz-content-wrapper {
    margin-left: 250px;
    padding: 24px;
    flex: 1;
}
.mz-content-header { margin-bottom: 24px; }
.mz-header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.mz-m-0 { margin: 0; font-size: 24px; font-weight: 800; color: #0F172A; }
.mz-subtext { color: #64748B; font-size: 14px; margin-top: 4px; }

/* Small Boxes */
.mz-small-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.mz-small-box {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
}
.mz-inner { padding: 20px; }
.mz-inner h3 { font-size: 32px; font-weight: 800; margin: 0; }
.mz-inner p { font-size: 14px; margin: 4px 0 0; opacity: 0.9; }
.mz-icon-box {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 42px;
    opacity: 0.25;
}
.mz-small-box-footer {
    display: block;
    background: rgba(0,0,0,0.15);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 6px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.mz-small-box-footer:hover { background: rgba(0,0,0,0.25); color: #fff; }
.mz-bg-info { background: #0284C7; }
.mz-bg-success { background: #10B981; }
.mz-bg-warning { background: #F59E0B; }
.mz-bg-danger { background: #EF4444; }

/* Info Boxes */
.mz-info-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.mz-info-box {
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    display: flex;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.mz-info-box-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
}
.mz-bg-primary { background: #2563EB; color: #fff; }
.mz-info-box-content { flex: 1; }
.mz-info-box-text { font-size: 13px; color: #64748B; font-weight: 600; }
.mz-info-box-number { font-size: 16px; font-weight: 700; color: #0F172A; display: block; }
.mz-progress {
    height: 6px;
    background: #E2E8F0;
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
}
.mz-progress-bar { height: 100%; background: #2563EB; }
.mz-progress-desc { font-size: 11px; color: #94A3B8; }

/* Cards & Tables */
.mz-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.mz-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mz-card-title { font-size: 16px; font-weight: 700; color: #0F172A; margin: 0; }
.mz-card-body { padding: 20px; }
.mz-p-0 { padding: 0 !important; }
.mz-table-responsive { overflow-x: auto; }
.mz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mz-table th, .mz-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #E2E8F0; }
.mz-table th { background: #F8FAFC; color: #475569; font-weight: 600; }
.mz-table-striped tbody tr:nth-of-type(odd) { background-color: #FAFAFA; }

/* Badges & Buttons */
.mz-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.mz-badge-success { background: #DCFCE7; color: #15803D; }
.mz-badge-info { background: #E0F2FE; color: #0369A1; }
.mz-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.mz-btn-primary { background: #2563EB; color: #fff; }
.mz-btn-primary:hover { background: #1D4ED8; }
.mz-btn-emerald { background: #10B981; color: #fff; }
.mz-btn-danger { background: #EF4444; color: #fff; }
.mz-btn-outline { background: transparent; border: 1px solid #CBD5E1; color: #334155; }
.mz-btn-sm { padding: 4px 10px; font-size: 12px; }

/* Wizard */
.mz-wizard-steps { display: flex; justify-content: space-between; position: relative; }
.mz-step { text-align: center; flex: 1; position: relative; }
.mz-step-circle {
    width: 32px;
    height: 32px;
    background: #E2E8F0;
    color: #64748B;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.mz-step.completed .mz-step-circle { background: #10B981; color: #fff; }
.mz-step.active .mz-step-circle { background: #2563EB; color: #fff; box-shadow: 0 0 0 4px #BFDBFE; }
.mz-step-label { font-size: 12px; font-weight: 600; color: #64748B; }

.mz-stack-option {
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: #fff;
}
.mz-stack-option.active { border-color: #2563EB; background: #EFF6FF; }

/* Inputs */
.mz-input-sm, .mz-select-sm {
    padding: 6px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}
.mz-input-sm:focus, .mz-select-sm:focus { border-color: #2563EB; }

/* Footer */
.mz-main-footer {
    background: #FFFFFF;
    border-top: 1px solid #DEE2E6;
    padding: 16px 24px;
    color: #6C757D;
    font-size: 13px;
    margin-left: 250px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .mz-main-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .mz-sidebar-open .mz-main-sidebar { transform: translateX(0); }
    .mz-main-header, .mz-content-wrapper, .mz-main-footer { margin-left: 0; padding-left: 16px; }
    .mz-row[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
