/* =========================================================
   MTAA OWNER WORKSPACE — POLISHED V1
   ========================================================= */
:root {
    --owner-green: #087f4f;
    --owner-green-dark: #05613d;
    --owner-green-soft: #eaf8f1;
    --owner-ink: #17231e;
    --owner-muted: #6b7772;
    --owner-bg: #f4f7f6;
    --owner-border: #e5ebe8;
    --owner-sidebar: #10231d;
}

.owner-wrapper {
    display: flex;
    min-height: calc(100vh - 90px);
    background: var(--owner-bg);
}

.owner-main { flex: 1; min-width: 0; display:flex; flex-direction:column; }
.owner-content { flex:1; padding: 28px 34px 40px; }

/* Sidebar */
.owner-sidebar {
    width: 264px;
    min-width: 264px;
    background: linear-gradient(180deg, #10251f 0%, #0b1c17 100%);
    color:#fff;
    min-height: calc(100vh - 90px);
    position: sticky;
    top: 0;
    align-self:flex-start;
    z-index:20;
}
.owner-sidebar-inner { min-height:100%; padding:22px 14px 18px; display:flex; flex-direction:column; }
.owner-brand-block { padding: 4px 8px 20px; }
.owner-brand-link { color:#fff; text-decoration:none; display:flex; align-items:center; gap:12px; }
.owner-brand-link:hover { color:#fff; }
.owner-brand-mark { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,#19a56a,#087f4f); box-shadow:0 10px 22px rgba(0,0,0,.22); font-size:18px; }
.owner-brand-link strong { display:block; font-size:20px; letter-spacing:.02em; line-height:1; }
.owner-brand-link small { display:block; color:#91aaa0; margin-top:4px; font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.owner-profile-mini { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.045); border-radius:14px; margin:0 2px 22px; }
.owner-profile-mini-avatar { width:36px; height:36px; border-radius:11px; background:#d8f4e7; color:var(--owner-green-dark); display:grid; place-items:center; font-weight:800; }
.owner-profile-mini-copy { min-width:0; }
.owner-profile-mini-copy small,.owner-profile-mini-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.owner-profile-mini-copy small { color:#8ea69e; font-size:10px; margin-bottom:2px; }
.owner-profile-mini-copy strong { color:#fff; font-size:13px; }
.owner-nav-label { color:#78948a; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; padding:0 12px 8px; }
.owner-nav { display:flex; flex-direction:column; gap:3px; }
.owner-nav-link,.owner-logout-link { display:flex; align-items:center; gap:11px; min-height:44px; padding:10px 11px; color:#c9d7d2; text-decoration:none; border-radius:11px; font-size:13px; font-weight:600; transition:all .18s ease; }
.owner-nav-link:hover { color:#fff; background:rgba(255,255,255,.065); transform:translateX(2px); }
.owner-nav-link.active { color:#fff; background:linear-gradient(90deg,rgba(25,165,106,.95),rgba(8,127,79,.95)); box-shadow:0 8px 20px rgba(0,0,0,.16); }
.owner-nav-icon { width:31px; height:31px; flex:0 0 31px; border-radius:9px; display:grid; place-items:center; background:rgba(255,255,255,.055); color:#9db6ad; font-size:14px; }
.owner-nav-link.active .owner-nav-icon { background:rgba(255,255,255,.15); color:#fff; }
.owner-nav-divider { height:1px; background:rgba(255,255,255,.08); margin:14px 8px; }
.owner-sidebar-bottom { margin-top:auto; padding-top:18px; }
.owner-logout-link { color:#ffb4b4; margin-bottom:10px; }
.owner-logout-link:hover { background:rgba(220,53,69,.10); color:#ffd0d0; }
.owner-sidebar-help { display:flex; gap:9px; padding:12px; border-radius:12px; background:rgba(25,165,106,.09); border:1px solid rgba(25,165,106,.12); color:#b5c9c2; }
.owner-sidebar-help > i { color:#69d2a5; font-size:18px; }
.owner-sidebar-help strong,.owner-sidebar-help small { display:block; }
.owner-sidebar-help strong { font-size:11px; color:#fff; }
.owner-sidebar-help small { font-size:9px; line-height:1.35; margin-top:2px; }

/* Topbar */
.owner-topbar { min-height:76px; background:#fff; border-bottom:1px solid var(--owner-border); padding:0 34px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.owner-topbar-title { display:flex; align-items:center; gap:12px; }
.owner-mobile-menu-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:var(--owner-green-soft); color:var(--owner-green); }
.owner-topbar-eyebrow { display:block; font-size:9px; text-transform:uppercase; letter-spacing:.13em; color:#8b9893; font-weight:800; margin-bottom:2px; }
.owner-topbar h1 { font-size:20px; margin:0; color:var(--owner-ink); font-weight:800; }
.owner-topbar-actions { display:flex; align-items:center; gap:14px; }
.owner-topbar-link { color:#52605b; text-decoration:none; font-size:12px; font-weight:700; display:flex; gap:7px; align-items:center; }
.owner-topbar-link:hover { color:var(--owner-green); }
.owner-topbar-user { display:flex; align-items:center; gap:8px; color:#34413c; font-size:12px; font-weight:700; }
.owner-topbar-avatar { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:#e5f6ee; color:var(--owner-green-dark); font-weight:800; }

/* Business context */
.owner-business-context { background:#fff; border:1px solid var(--owner-border); border-radius:18px; padding:14px 16px; display:flex; justify-content:space-between; align-items:center; gap:16px; box-shadow:0 8px 24px rgba(19,43,34,.04); }
.owner-business-context-main { display:flex; align-items:center; gap:12px; min-width:0; }
.owner-business-logo { width:52px; height:52px; border-radius:14px; background:#fff; border:1px solid #e4ebe8; box-shadow:0 5px 14px rgba(12,44,32,.08); display:grid; place-items:center; overflow:hidden; flex:0 0 52px; }
.owner-business-logo img { width:100%; height:100%; object-fit:contain; padding:7px; }
.owner-business-logo span { width:100%; height:100%; display:grid; place-items:center; color:#fff; font-weight:900; background:linear-gradient(135deg,#16a36a,#066c43); }
.owner-context-label { display:block; color:#89958f; font-size:9px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; }
.owner-business-context strong { display:block; font-size:15px; color:var(--owner-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:420px; }
.owner-business-context small { display:block; color:#75817c; font-size:11px; margin-top:2px; }
.owner-business-context-meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.owner-status-pill { display:inline-flex; align-items:center; gap:5px; border:1px solid #e4ebe8; color:#6b7772; background:#f8faf9; border-radius:999px; padding:6px 9px; font-size:10px; font-weight:800; }
.owner-status-pill i { font-size:7px; }
.owner-status-pill.verified { color:#087f4f; background:#eaf8f1; border-color:#cdebdc; }

/* General cards */
.owner-main .card { border:1px solid var(--owner-border) !important; border-radius:17px !important; box-shadow:0 8px 26px rgba(22,46,37,.055) !important; overflow:hidden; }
.owner-main .card-header { border-bottom:1px solid #edf1ef !important; padding:17px 20px !important; }
.owner-main .card-body { background:#fff; }
.owner-main .card-header h5 { color:var(--owner-ink); font-size:15px; font-weight:800; }
.owner-main .text-primary { color:var(--owner-green) !important; }
.owner-main .btn-primary { background:var(--owner-green); border-color:var(--owner-green); }
.owner-main .btn-primary:hover { background:var(--owner-green-dark); border-color:var(--owner-green-dark); }
.owner-main .btn-success { background:#119765; border-color:#119765; }
.owner-main .btn-outline-primary { color:var(--owner-green); border-color:#a8d7c2; }
.owner-main .btn-outline-primary:hover { background:var(--owner-green); border-color:var(--owner-green); }
.owner-main .form-control,.owner-main .form-select { border-radius:10px; min-height:44px; border-color:#dfe7e3; }
.owner-main .form-control:focus,.owner-main .form-select:focus { border-color:#7bc6a7; box-shadow:0 0 0 .2rem rgba(8,127,79,.11); }

/* Health */
.owner-health-card { background:linear-gradient(135deg,#ffffff 0%,#f7fbf9 100%); position:relative; }
.owner-health-card:after { content:""; position:absolute; width:210px; height:210px; right:-90px; top:-100px; border-radius:50%; background:rgba(8,127,79,.055); pointer-events:none; }
.owner-health-card .display-3 { font-size:56px; line-height:1; margin:7px 0 8px; }
.owner-health-card .progress { background:#e9efec; border-radius:99px; overflow:hidden; }
.owner-health-card .progress-bar { border-radius:99px; background:linear-gradient(90deg,#11a66b,#087f4f) !important; }
.owner-health-card .border.rounded { border-color:#e1e9e5 !important; background:#fff; border-radius:13px !important; }

/* Stat cards */
.owner-stat-card { transition:transform .18s ease, box-shadow .18s ease; }
.owner-stat-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(22,46,37,.09) !important; }
.owner-stat-card .card-body { padding:20px; text-align:left !important; position:relative; }
.owner-stat-card i { display:inline-grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--owner-green-soft); color:var(--owner-green) !important; font-size:19px !important; }
.owner-stat-card .small { font-size:10px; text-transform:uppercase; letter-spacing:.07em; font-weight:800; }
.owner-stat-card h2 { font-size:26px; color:var(--owner-ink); }

.owner-section-card .card-body { padding:20px; }
.owner-section-card .border.rounded { border-color:#e3eae7 !important; border-radius:12px !important; transition:all .16s ease; }
.owner-section-card a:hover .border.rounded { border-color:#9bd4bb !important; background:#fbfefc; transform:translateY(-1px); }
.owner-section-card .list-group-item { padding:14px 4px; border-color:#edf1ef; color:#4e5b56; }
.owner-section-card .list-group-item:last-child { border-bottom:0; }
.owner-main .table { --bs-table-bg:transparent; }
.owner-main .badge { border-radius:999px; padding:.48em .7em; font-weight:700; }

/* Footer */
.owner-footer { padding:14px 34px; border-top:1px solid var(--owner-border); background:#fff; color:#89958f; display:flex; justify-content:space-between; gap:12px; font-size:10px; }

/* Profile page compatibility */
.owner-profile-avatar { width:140px; height:140px; object-fit:cover; border-radius:22px; }
.owner-profile-placeholder { width:140px; height:140px; border-radius:22px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.owner-content .profile-card { background:#fff; border-radius:17px; overflow:hidden; }

/* Mobile */
@media (max-width: 991.98px) {
    .owner-sidebar { width:224px; min-width:224px; }
    .owner-content { padding:24px; }
    .owner-topbar { padding:0 24px; }
    .owner-business-context strong { max-width:300px; }
}
@media (max-width: 767.98px) {
    .owner-wrapper { display:block; min-height:0; }
    .owner-sidebar { width:100%; min-width:100%; min-height:auto; position:relative; }
    .owner-sidebar-inner { padding:14px; }
    .owner-profile-mini { margin-bottom:12px; }
    .owner-nav { display:grid; grid-template-columns:repeat(2,1fr); gap:4px; }
    .owner-nav-label,.owner-nav-divider { display:none; }
    .owner-nav-link { min-height:42px; font-size:12px; }
    .owner-sidebar-bottom { margin-top:12px; }
    .owner-sidebar-help { display:none; }
    .owner-topbar { min-height:68px; padding:0 16px; }
    .owner-topbar h1 { font-size:17px; }
    .owner-topbar-link span { display:none; }
    .owner-content { padding:18px 14px 28px; }
    .owner-business-context { align-items:flex-start; flex-direction:column; }
    .owner-business-context-meta { justify-content:flex-start; }
    .owner-business-context strong { max-width:calc(100vw - 130px); }
    .owner-health-card .display-3 { font-size:46px; }
    .owner-footer { padding:12px 16px; flex-direction:column; }
}
@media (max-width: 575.98px) {
    .owner-nav { grid-template-columns:1fr 1fr; }
    .owner-nav-link span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .owner-content .profile-card .card-body { padding:18px; }
}
@media (prefers-reduced-motion: reduce) {
    .owner-nav-link,.owner-stat-card,.owner-section-card .border.rounded { transition:none; }
}
