/* Owners: keep existing business fields, with the shared light-blue management theme. */
body:has(#ownersView.active) #main-container{background:radial-gradient(ellipse at 65% 0,#e2f0ff80,transparent 65%),#eef5fd!important}
body:has(#ownersView.active) #content-area{padding:12px 18px 22px!important;min-width:0;overflow:auto!important}
#ownersView{width:100%;min-width:0;max-width:1700px;margin:0 auto;color:#203b73;font-family:"Roboto","IBM Plex Sans Arabic","Segoe UI",sans-serif}
#ownersView *{box-sizing:border-box}
#ownersView :is(button,input,select){font-family:inherit}
#ownersView svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#ownersView .ow-symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
#ownersView .ow-heading{position:relative;min-height:86px;padding:10px 5px 15px;isolation:isolate;overflow:hidden}
#ownersView .ow-heading:before{content:"";position:absolute;inset:-25px 12% -35px 12%;background:url('/images/projects-header.svg') center/contain no-repeat;opacity:.42;z-index:-1;pointer-events:none}
#ownersView .ow-heading:after{content:"";position:absolute;width:60%;height:80px;left:-8%;bottom:-48px;background:#e2edff99;transform:rotate(7deg);border-radius:50%;z-index:-1}
#ownersView .ow-heading h1{display:flex;align-items:center;gap:10px;margin:0 0 5px;color:#122b60;font-size:29px;font-weight:750;line-height:1.5}
#ownersView .ow-heading h1 svg{color:#0965ff;width:27px;height:27px}
#ownersView .ow-heading p{font-size:12px;color:#4f6a95;line-height:1.8;margin:0}
#ownersView .ow-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 17px}
#ownersView .ow-kpi{--ow-color:#1670ff;--ow-tint:#d7e8ff;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:120px;padding:19px 20px 26px;border:1px solid #fff;border-radius:10px;background:linear-gradient(125deg,#fff,#f9fcff);box-shadow:0 4px 14px #7199cc0a;overflow:hidden;isolation:isolate}
#ownersView .ow-green{--ow-color:#05bf92;--ow-tint:#d9faf0}
#ownersView .ow-red{--ow-color:#ff585c;--ow-tint:#ffe4e5}
#ownersView .ow-purple{--ow-color:#a350fb;--ow-tint:#f0e2ff}
#ownersView .ow-kpi:after{content:"";position:absolute;inset:auto -5% -1px;height:36px;background:linear-gradient(var(--ow-tint),#fff);mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cpath d='M0 24C40 8 65 0 90 9S142 36 188 19S244 4 300 21V40H0Z'/%3E%3C/svg%3E");mask-size:100% 100%;z-index:-1}
#ownersView .ow-kpi h2{margin:0 0 9px;font-size:13px;line-height:1.7;font-weight:550;color:#3d5989}
#ownersView .ow-kpi strong{display:block;text-align:right;direction:ltr;font-size:28px;line-height:1.2;font-weight:800;color:#112b5a;font-variant-numeric:tabular-nums;white-space:nowrap}
#ownersView .ow-kpi-icon{display:grid;place-items:center;width:56px;height:56px;flex:none;border-radius:50%;background:var(--ow-tint);color:var(--ow-color);box-shadow:0 0 12px #fff8}
#ownersView .ow-kpi-icon svg{width:28px;height:28px;stroke-width:2}
#ownersView .ow-kpi i{position:absolute;width:10px;height:10px;border:2px solid #fff;background:var(--ow-color);border-radius:50%;bottom:13px;right:13px;box-shadow:0 0 0 2px var(--ow-tint)}
#ownersView .ow-table-card.table-container{display:block!important;padding:13px!important;margin:0!important;border:1px solid #fff!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 18px #6e9bd00a!important;overflow:hidden!important}
#ownersView .table-toolbar{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important;gap:15px;padding:0!important;margin:0 0 13px!important;border:0!important;background:transparent!important}
#ownersView .table-toolbar-left{display:flex!important;flex-direction:row!important;align-items:center!important;flex:0 1 300px;width:auto!important;max-width:100%;margin:0!important}
#ownersView .ow-search{position:relative;display:block;width:100%;margin:0}
#ownersView .ow-search svg{position:absolute;right:12px;top:10px;width:17px;height:17px;color:#8ba1c4}
#ownersView #searchOwners{width:100%!important;min-width:0!important;max-width:none!important;height:38px;border:1px solid #dce7fa;border-radius:7px;padding:6px 37px 6px 12px;font-size:12px;color:#4e6c9a;box-shadow:none;background:#fff}
#ownersView #searchOwners::placeholder{color:#91a4c4}
#ownersView .ow-toolbar-actions{display:flex;align-items:center;gap:10px;flex-direction:row}
#ownersView .ow-toolbar-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;height:38px;border-radius:7px;padding:6px 15px;font-size:12px;font-weight:550;line-height:1.5;white-space:nowrap;box-shadow:none}
#ownersView .ow-toolbar-actions svg{width:17px;height:17px;flex:none}
#ownersView #btnAddOwner{background:linear-gradient(110deg,#2387ff,#0055ff)!important;color:white!important;border:1px solid #267cff!important;box-shadow:0 4px 9px #0861ff2b!important;order:-1}
#ownersView #btnDeleteAllOwners{color:#ff515d!important;background:#fff5f5!important;border:1px solid #ffc9cc!important}
#ownersView .data-table-wrapper{max-width:100%;overflow:auto!important;margin:0!important;border:1px solid #e4edfb!important;border-radius:8px!important;scrollbar-width:thin;scrollbar-color:#c8dbf8 #f3f8ff}
#ownersView #tblOwners{width:100%!important;min-width:850px!important;table-layout:fixed;border-collapse:collapse!important;margin:0!important;font-variant-numeric:tabular-nums}
#ownersView #tblOwners th,#ownersView #tblOwners td{padding:11px 9px!important;border:1px solid #e4edfb!important;text-align:center!important;vertical-align:middle;font-size:12px!important;color:#3d5a91!important;line-height:1.65!important;background:transparent;white-space:normal;overflow-wrap:anywhere;min-width:0!important}
#ownersView #tblOwners thead th{background:linear-gradient(#edf5ff,#eaf3ff)!important;color:#274a88!important;font-size:11px!important;font-weight:650;height:42px;position:static!important}
#ownersView #tblOwners th:nth-child(1){width:10%}
#ownersView #tblOwners th:nth-child(2){width:27%}
#ownersView #tblOwners th:nth-child(3){width:14%}
#ownersView #tblOwners th:nth-child(4){width:10%}
#ownersView #tblOwners th:nth-child(5),#ownersView #tblOwners th:nth-child(6){width:14%}
#ownersView #tblOwners th:nth-child(7){width:11%}
#ownersView #tblOwners tbody td:first-child{position:sticky!important;right:0;z-index:2;box-shadow:1px 0 0 #e4edfb;background:#fff!important;font-size:11px!important;font-weight:400!important}
#ownersView #tblOwners tbody td:nth-child(2){text-align:right!important;padding-right:14px!important;font-size:13px!important}
#ownersView #tblOwners tbody td:nth-child(3){direction:ltr}
#ownersView #tblOwners tbody tr:nth-child(even) td{background:#f6faff!important}
#ownersView #tblOwners tbody tr:nth-child(odd) td{background:#fff!important}
#ownersView #tblOwners tbody tr:hover td{background:#edf5ff!important}
#ownersView #tblOwners thead button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}
#ownersView #tblOwners thead button span{font:10px/7px Arial;color:#93aed5}
#ownersView #tblOwners th[aria-sort="ascending"] button span,#ownersView #tblOwners th[aria-sort="descending"] button span{color:#1464ff}
#ownersView #tblOwners .row-actions{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap}
#ownersView #tblOwners .row-actions button{display:grid;place-items:center;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;border:1px solid #dbe9ff;border-radius:6px;padding:6px!important;background:#f5faff;color:#1768ff;box-shadow:none!important;cursor:pointer}
#ownersView #tblOwners .row-actions button svg{width:16px;height:16px}
#ownersView #tblOwners .row-actions .btn-delete{border-color:#ffdadf!important;background:#fff1f3!important;color:#ff5365!important}
#ownersView #tblOwners tfoot th,#ownersView #tblOwners tfoot td{background:linear-gradient(#f0f6ff,#eaf3ff)!important;border-top:7px solid white!important;border-bottom:0!important;color:#122f6f!important;font-weight:750;font-size:16px!important;height:55px;position:static!important;box-shadow:none}
#ownersView #tblOwners tfoot th{text-align:right!important;font-size:20px!important;padding-right:20px!important}
#ownersView .ow-total-icon{width:22px;height:22px;color:#1470ff}
#ownersView .pagination-bar{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap;gap:13px;border:0;border-top:1px solid #eff3fa;background:transparent;padding:13px 0 0!important;margin:12px 0 0!important;font-size:11px;color:#8298bc}
#ownersView .pagination-info{font-size:10px;color:#718ab3}
#ownersView .pagination-controls{display:flex;align-items:center;gap:5px}
#ownersView .pagination-btn{height:30px!important;min-width:29px!important;border:1px solid #e1eafa;border-radius:6px!important;padding:4px 9px!important;font-size:11px!important;color:#607fad;background:#fff;box-shadow:none}
#ownersView .pagination-btn.active{background:#0764ff;color:white;border-color:#0764ff;box-shadow:0 3px 6px #1a6bff22}
#ownersView .pagination-btn:disabled{opacity:.45}
#ownersView .pagination-size{display:flex;align-items:center;gap:8px;font-size:10px;color:#6d87b0}
#ownersView .pagination-size select{height:30px;background:#fff;border:1px solid #e1eafa;border-radius:6px;color:#375d98;padding:3px 8px;font-size:11px;min-width:65px}
#ownersView :is(button,input,select):focus-visible{outline:3px solid #b4d2ff;outline-offset:3px}
@media(max-width:1100px){#ownersView .ow-kpis{gap:10px}#ownersView .ow-kpi{padding:17px 13px 23px;gap:8px;min-height:110px}#ownersView .ow-kpi strong{font-size:23px}#ownersView .ow-kpi h2{font-size:11px}#ownersView .ow-kpi-icon{width:44px;height:44px}#ownersView .ow-kpi-icon svg{width:24px;height:24px}}
@media(max-width:767px){body:has(#ownersView.active) #content-area{padding:10px!important}#ownersView .ow-heading{min-height:79px}#ownersView .ow-heading h1{font-size:24px}#ownersView .ow-heading p{font-size:10px}#ownersView .ow-heading:before{inset:-5px 15% -5px -15%;opacity:.25}#ownersView .ow-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:13px}#ownersView .ow-kpi{min-height:104px;padding:15px 12px 25px}#ownersView .ow-kpi h2{font-size:10px}#ownersView .ow-kpi strong{font-size:21px}#ownersView .ow-kpi-icon{width:39px;height:39px}#ownersView .ow-kpi-icon svg{width:22px;height:22px}#ownersView .ow-table-card.table-container{padding:10px!important}#ownersView .table-toolbar{gap:10px}#ownersView .table-toolbar-left{flex-basis:100%;width:100%!important}#ownersView .ow-toolbar-actions{width:100%;gap:8px}#ownersView .ow-toolbar-actions .btn{flex:1;font-size:11px;height:35px;min-height:35px}#ownersView .pagination-bar{justify-content:center!important}#ownersView .pagination-info{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){#ownersView *{transition:none!important}}
@media print{#ownersView .table-toolbar,#ownersView .pagination-bar,#ownersView .row-actions{display:none!important}#ownersView .data-table-wrapper{overflow:visible!important}#ownersView #tblOwners{min-width:0!important}#ownersView #tblOwners th,#ownersView #tblOwners td{font-size:9px!important}}
#ownersView .ow-toolbar-actions{direction:ltr}
#ownersView .ow-toolbar-actions .btn{direction:rtl}
