/* UMCom client-area shell — applies only to logged-in pages (body.umc-shell) */

body.umc-shell {
    background: #f4f7fa;
    color: #1c2733;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.umc-shell .umc-app {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
body.umc-shell .umc-side {
    width: 260px;
    flex: 0 0 260px;
    background: #ffffff;
    border-right: 1px solid #e3e8ee;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1040;
}
body.umc-shell .umc-brand {
    display: flex;
    align-items: center;
    padding: 4px 8px 20px;
}
body.umc-shell .umc-brand img {
    max-height: 42px;
    max-width: 200px;
}
body.umc-shell .umc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
body.umc-shell .umc-nav-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7a8c;
    padding: 14px 12px 6px;
    white-space: nowrap;
}
body.umc-shell .umc-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #3a4a5c;
    white-space: nowrap;
    text-decoration: none;
}
body.umc-shell .umc-nav-link i {
    width: 18px;
    font-size: 16px;
    text-align: center;
    color: #5a6b7d;
}
body.umc-shell .umc-nav-link:hover {
    background: #f4f7fa;
    color: #1c2733;
    text-decoration: none;
}
body.umc-shell .umc-nav-link.active,
body.umc-shell .umc-nav-link.active:hover {
    background: #0093e8;
    color: #ffffff;
    font-weight: 600;
}
body.umc-shell .umc-nav-link.active i {
    color: #ffffff;
}
body.umc-shell .umc-side-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf1f5;
}
body.umc-shell .umc-logout,
body.umc-shell .umc-logout i,
body.umc-shell .umc-logout:hover {
    color: #d93025;
    font-weight: 600;
}

/* ---------- Main column ---------- */
body.umc-shell .umc-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ---------- Top bar ---------- */
body.umc-shell .umc-top {
    background: #ffffff;
    border-bottom: 1px solid #e3e8ee;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1030;
}
body.umc-shell .umc-crumb {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
body.umc-shell .umc-crumb .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
body.umc-shell .umc-crumb .breadcrumb-item a {
    color: #5a6b7d;
}
body.umc-shell .umc-crumb .breadcrumb-item.active {
    color: #1c2733;
    font-weight: 600;
}
body.umc-shell .umc-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
body.umc-shell .umc-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e3e8ee;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a4a5c;
    padding: 0;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}
body.umc-shell .umc-icon-btn:hover {
    background: #f4f7fa;
    color: #1c2733;
}
body.umc-shell .umc-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d93025;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}
body.umc-shell .umc-badge-blue {
    background: #0093e8;
}
body.umc-shell .umc-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: #fff1dc;
    border: 1px solid #f0c98a;
    color: #8a4b00;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
body.umc-shell .umc-burger {
    display: none;
}

/* ---------- Content + footer ---------- */
body.umc-shell .umc-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 32px;
}
body.umc-shell .umc-content .primary-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
body.umc-shell .umc-foot {
    border-top: 1px solid #e3e8ee;
    padding: 18px 110px 18px 32px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #5a6b7d;
}
body.umc-shell .umc-foot-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
body.umc-shell .umc-foot a {
    color: #5a6b7d;
}
body.umc-shell .umc-backdrop {
    display: none;
}

/* ---------- Shared page pieces ---------- */
body.umc-shell .umc-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
body.umc-shell .umc-page-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
body.umc-shell .umc-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6b7d;
}
body.umc-shell .umc-h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #1c2733;
}
body.umc-shell .umc-sub {
    margin: 0;
    font-size: 15px;
    color: #5a6b7d;
}
body.umc-shell .umc-card {
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 32, 48, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.umc-shell .umc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #edf1f5;
}
body.umc-shell .umc-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
body.umc-shell .umc-card-title i {
    font-size: 20px;
    color: #0a7bc0;
}
body.umc-shell .umc-card-title h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1c2733;
    white-space: nowrap;
}

/* Buttons */
body.umc-shell .umc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
}
body.umc-shell .umc-btn-primary {
    background: #0093e8;
    color: #ffffff;
}
body.umc-shell .umc-btn-primary:hover {
    background: #0a7bc0;
    color: #ffffff;
    text-decoration: none;
}
body.umc-shell .umc-btn-light {
    background: #f8fafc;
    border-color: #d5dde6;
    color: #1c2733;
}
body.umc-shell .umc-btn-light:hover {
    background: #eef2f6;
    color: #1c2733;
    text-decoration: none;
}
body.umc-shell .umc-btn-outline-blue {
    background: #ffffff;
    border-color: #c9e4f5;
    color: #0a5f93;
}
body.umc-shell .umc-btn-outline-blue:hover {
    background: #f4faff;
    color: #0a5f93;
    text-decoration: none;
}
body.umc-shell .umc-btn-block {
    display: flex;
    width: 100%;
    height: 50px;
    font-size: 15px;
}

/* ---------- Dashboard ---------- */
body.umc-shell .umc-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
body.umc-shell .umc-stat-body {
    padding: 36px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
body.umc-shell .umc-stat-num {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: #0a7bc0;
}
body.umc-shell .umc-stat-warn {
    color: #b86200;
}
body.umc-shell .umc-stat-ok {
    color: #1f9a56;
    font-size: 48px;
}
body.umc-shell .umc-stat-cap {
    font-size: 15px;
    color: #5a6b7d;
    white-space: nowrap;
    margin-bottom: 14px;
}
body.umc-shell .umc-help {
    background: #eaf5fc;
    border: 1px solid #c9e4f5;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
body.umc-shell .umc-help-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
body.umc-shell .umc-help-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a5f93;
}
body.umc-shell .umc-help-text p {
    margin: 0;
    font-size: 14px;
    color: #1c2733;
}
body.umc-shell .umc-help-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Tablet & phone: sidebar slides in ---------- */
@media (max-width: 991.98px) {
    body.umc-shell .umc-side {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 0 10px 40px rgba(16, 32, 48, 0.2);
    }
    body.umc-shell.umc-side-open .umc-side {
        transform: none;
    }
    body.umc-shell.umc-side-open .umc-backdrop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(16, 32, 48, 0.4);
        z-index: 1035;
    }
    body.umc-shell .umc-burger {
        display: inline-flex;
    }
    body.umc-shell .umc-top {
        padding: 0 16px;
        gap: 10px;
    }
    body.umc-shell .umc-content {
        padding: 20px 16px;
    }
    body.umc-shell .umc-foot {
        padding: 16px 90px 16px 16px;
    }
    body.umc-shell .umc-admin-btn span {
        display: none;
    }
}
@media (max-width: 767.98px) {
    body.umc-shell .umc-dash-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    body.umc-shell .umc-stat-body {
        padding: 24px 20px 20px;
    }
    body.umc-shell .umc-stat-num {
        font-size: 44px;
    }
    body.umc-shell .umc-h1 {
        font-size: 22px;
    }
}
@media (max-width: 575.98px) {
    body.umc-shell .umc-crumb .breadcrumb-item:not(.active) {
        display: none;
    }
    body.umc-shell .umc-crumb .breadcrumb-item + .breadcrumb-item::before {
        display: none;
    }
    body.umc-shell .umc-help-actions,
    body.umc-shell .umc-help-actions .umc-btn {
        width: 100%;
    }
}
