/* JelloSmart Identity - Supr theme overrides
   Minimal app-level adjustments. Heavy styling lives in Supr's main.css. */

/* ============================================================
   1) Right sidebar removal — we don't render #right-sidebar,
   so kill all margin/padding reservations and hide stray elements.
   ============================================================ */
#content,
#content.right-sidebar-page,
#content.sidebar-page.right-sidebar-page {
    margin-right: 0 !important;
}

#footer,
#footer.right-sidebar-page,
#footer.sidebar-page.right-sidebar-page {
    margin-right: 0 !important;
}

#right-sidebar,
#right-sidebarbg,
.right-sidebar-toggle,
#toggle-right-sidebar {
    display: none !important;
}

/* ============================================================
   2) Brand
   ============================================================ */
.brand-mark {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-mark .slogan {
    color: #3399cc;
    font-weight: 400;
}

/* ============================================================
   3) User dropdown / chip
   ============================================================ */
.user-chip-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3399cc;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

.user-dropdown form {
    margin: 0;
}

.user-dropdown form button {
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    padding: 6px 20px;
    color: #c0392b;
    cursor: pointer;
    font: inherit;
}

.user-dropdown form button:hover {
    background: #f5f5f5;
}

/* ============================================================
   4) Validation
   ============================================================ */
.field-validation-error,
.text-danger {
    color: #c0392b;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.input-validation-error {
    border-color: #c0392b !important;
}

/* ============================================================
   5) Auth pages
   ============================================================ */
body.login-page #header {
    margin-bottom: 30px;
}

body.login-page .login-panel .panel-footer {
    background: #f7f7f7;
}

body.login-page .login-container {
    max-width: 500px;
}

/* ============================================================
   6) Sidebar widgets
   ============================================================ */
.sidebar-widget .content small {
    color: #999;
    line-height: 1.7;
}

/* ============================================================
   7) Panel helpers used in dashboard / lists
   ============================================================ */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mb0 { margin-bottom: 0 !important; }
.mb5 { margin-bottom: 5px !important; }
.mb10 { margin-bottom: 10px !important; }
.mb15 { margin-bottom: 15px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb25 { margin-bottom: 25px !important; }
.mt0 { margin-top: 0 !important; }
.mt5 { margin-top: 5px !important; }
.mt10 { margin-top: 10px !important; }
.mt15 { margin-top: 15px !important; }
.mt20 { margin-top: 20px !important; }
.ml5 { margin-left: 5px !important; }
.mr5 { margin-right: 5px !important; }
.mr10 { margin-right: 10px !important; }

/* ============================================================
   8) Tables — give a bit of breathing room
   ============================================================ */
.table > thead > tr > th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e5e5e5;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.btn-group-sm .btn {
    padding: 4px 8px;
}

/* ============================================================
   9) Code style
   ============================================================ */
code {
    background: #f5f5f5;
    color: #c0392b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* ============================================================
   10) Color helpers (some Supr classes might be missing)
   ============================================================ */
.color-blue { color: #3399cc; }
.color-green { color: #27ae60; }
.color-red { color: #c0392b; }
.color-dark { color: #444; }
.color-white { color: #fff; }

/* ============================================================
   11) Block-level buttons get a sensible look
   ============================================================ */
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: 5px; }

/* ============================================================
   12) Heading area inside contentwrapper — make breadcrumb visible
   ============================================================ */
#content .contentwrapper .heading h3 {
    margin: 0;
    line-height: 49px;
    padding-left: 20px;
    font-size: 18px;
}

/* ============================================================
   13) Footer cosmetics (Supr handles margin-left via .sidebar-page)
   ============================================================ */
#footer {
    background: #f7f7f7;
}
