/* Owner panel: uses admin.css, plus these few pieces */
.owner .o-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--royal),var(--sky));flex:none}
.o-auth{min-height:100vh;display:grid;place-items:center;padding:20px}
.o-auth .card{width:min(420px,100%);display:grid;gap:14px}
.o-auth label{display:grid;gap:6px}
.o-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.o-top h1{font-size:22px;margin:0}
.o-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-bottom:18px}
.o-client{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:inherit;border-top:4px solid var(--c,var(--royal));transition:transform .15s,box-shadow .15s}
.o-client:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(27,24,51,.08)}
.o-client.off{opacity:.6}
.o-client h2{font-size:19px;margin:6px 0 0}
.o-ch{display:flex;justify-content:space-between;align-items:center;gap:10px}
.o-logo{height:44px;display:flex;align-items:center}.o-logo img{max-height:44px;max-width:170px}
.o-nums{display:flex;gap:18px;margin:8px 0 2px}.o-nums div{display:grid}.o-nums dt{font-size:12px;color:var(--mute);order:2}.o-nums dd{margin:0;font-size:22px;font-weight:700}
.o-add{align-items:center;justify-content:center;text-align:center;border:1.5px dashed var(--line);border-top-width:1.5px;background:transparent;min-height:200px}
.o-add span{font-size:34px;line-height:1;color:var(--royal)}
.o-more{text-align:center;margin:10px 0 40px}
.o-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.o-acts form{margin:0}
.btn.red{background:#fff;color:var(--red);border:1px solid currentColor}
.o-pass{border:1.5px solid var(--pos)}
.o-pass dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:10px 0 0;text-align:left}
.o-pass dt{color:var(--mute)}.o-pass dd{margin:0;font-weight:700;word-break:break-all}
.o-pass code{font-size:18px;background:var(--paper);padding:2px 8px;border-radius:6px;user-select:all}
.o-color span{display:flex;gap:8px;align-items:center}.o-color input[type=color]{width:42px;height:38px;padding:2px;border-radius:8px;flex:none}
.o-logos{display:flex;gap:10px;grid-column:1/-1}.o-logos span{display:flex;align-items:center;justify-content:center;height:70px;min-width:180px;padding:0 18px;border:1px solid var(--line);border-radius:12px}.o-logos img{max-height:44px;max-width:200px}
.o-feats{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 16px;margin-top:10px}
.o-ai{margin:6px 0 18px}.o-ai summary{cursor:pointer;font-weight:700;margin-bottom:8px}.o-ai textarea{width:100%}
.o-cmd{background:var(--paper);padding:12px 14px;border-radius:10px;overflow:auto;font-size:13px}
.grid-form .full{grid-column:1/-1}
/* 2026-12-04: standard sizes */
.o-auth .card{border-radius:14px;padding:26px}
.o-top h1{font-size:20px}
.owner .o-mark{width:28px;height:28px;border-radius:8px}
.o-client{border-radius:12px}
.o-client h2{font-size:16px}
.o-logo{height:36px}.o-logo img{max-height:36px}
.o-nums dd{font-size:19px}
.o-add{min-height:170px}
.o-logos span{height:60px;border-radius:10px}

/* 2026-12-05: same side-menu layout as the control panel */
.side a .t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.owner .page main .phead{padding-inline:0;max-width:none}
@media screen and (min-width:1001px){
  html.look-side .side .o-lgl{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:14px;line-height:1.3;white-space:normal;min-width:0}
  html.look-side .side .o-lgl .lg{height:auto}
  html.look-side .side .o-lgl .o-mark{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,var(--sky),#fff);opacity:.95}
  html.look-side.sb-mini .side .o-lgl{justify-content:center}
  html.look-side .owner .page main .phead,html.look-side body.owner .page main .phead{padding:10px 0 24px}
  html.look-side body.owner .page main.wrap{padding-top:20px}
}

/* 2026-12-05: colours and fonts read from the brand guidelines */
.o-guide{border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:grid;gap:10px;background:#fff}
.o-gh{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px}
.o-sug,.o-pal{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.o-chip{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 10px 0 6px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:13px;color:var(--navy);cursor:pointer}
.o-chip:hover{border-color:var(--royal)}
.o-chip.static{cursor:default}.o-chip.static:hover{border-color:var(--line)}
.o-chip i{width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);flex:none}
.o-sug .btn.sm{height:32px;padding:0 14px;font-size:13px}

/* 2026-12-05: soft squares, like the rest of the platform */
.o-chip{border-radius:8px}.o-chip i{border-radius:4px}
.owner .o-mark{border-radius:8px}
/* 2026-12-05 j: the same gap under the page title as the control panel (24px) */
.owner .page main .phead,body.owner .page main .phead{padding-bottom:24px}
/* 2026-12-05 k: same spacing scale as the control panel */
.o-grid{margin-bottom:var(--gap,16px)}
.o-more{margin:0 0 var(--gap,16px)}
.o-ai{margin:8px 0 var(--gap,16px)}
.o-feats{margin-top:12px}
fieldset > p.muted{margin-bottom:12px}

/* 2026-12-05: the owner panel carries the Thalaatha mark (the studio that runs the platform) */
.owner .o-mark{background:url(../assets/thalaatha-mark-navy.svg?v=2) center/contain no-repeat;border-radius:0;opacity:1}
html.look-side .side .o-lgl .o-mark{background:url(../assets/thalaatha-mark-cream.svg?v=2) center/contain no-repeat;border-radius:0;opacity:1;width:34px;height:26px}

/* ---- billing, tidied (2026-12-06): summary, filter, clean invoice rows, actions behind «إدارة», subscription summary ---- */
.o-sums b{display:flex;align-items:baseline;gap:6px}
.o-sums b small{font-size:13px;color:var(--mute);font-weight:400;letter-spacing:0}
.o-sums b.o-date{font-family:inherit;font-size:23px;font-weight:600;letter-spacing:0;line-height:1.5}
.o-sums small.late{color:#A7262E}
.o-sums .card > small{margin-top:4px}
.o-filter{margin:0 0 14px;border-radius:10px}
.o-filter button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 14px;border:0;border-radius:7px;background:none;font:inherit;font-size:13.5px;color:var(--navy);cursor:pointer;white-space:nowrap}
.o-filter button small{font-size:12px;color:var(--mute)}
.o-filter button.on{background:#fff;box-shadow:0 1px 3px rgba(27,24,51,.12);font-weight:600}
table.o-inv td{padding-top:12px;padding-bottom:12px}
table.o-inv td,table.o-inv th{white-space:nowrap}
table.o-inv .o-st small{font-size:12.5px;margin-inline-start:4px}
.pill.green{background:#E6F4EE;color:#1F7A52}
.o-ia{text-align:end;width:1%}
.o-act{position:relative;display:inline-block}
.o-act > summary{list-style:none;cursor:pointer}
.o-act > summary::-webkit-details-marker{display:none}
.o-act[open] > summary{border-color:var(--royal)}
.o-pop{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:20;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(27,24,51,.14);padding:14px}
.o-pop form{display:flex;flex-direction:column;align-items:stretch;gap:10px;white-space:normal}
.o-pop label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--mute)}
.o-pop input[type=date]{height:34px;padding:0 8px;font-size:14px;width:100%}
.o-pop .btn{justify-content:center}
.o-pop .link{text-align:center;font-size:13px}
.o-sub{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 18px;padding:14px 16px;background:#F6F8FB;border-radius:10px}
.o-sub div{min-width:0}
.o-sub dt{font-size:13px;color:var(--mute);margin-bottom:4px}
.o-sub dd{margin:0;font-size:15px;font-weight:600;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.o-sub dd small{font-weight:400}
.o-bnote{margin:0 0 14px}
.o-edit > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center}
.o-edit > summary::-webkit-details-marker{display:none}
.o-edit[open] > summary{margin-bottom:16px}
@media (max-width:760px){.o-sub{grid-template-columns:1fr 1fr}}
.o-edit.fresh > summary{display:none}

/* ---- submenu under the open organisation (2026-12-06) ---- */
.subnav{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px;padding-inline-start:23px;position:relative}
.subnav::before{content:"";position:absolute;inset-inline-start:23px;top:4px;bottom:4px;width:1px;background:currentColor;opacity:.18}
.side .subnav a,.menu .subnav a{height:32px;padding:0 14px 0 0;padding-inline-start:18px;font-size:13.5px;font-weight:400;gap:0;border-radius:8px;position:relative}
.side .subnav a.on,.menu .subnav a.on{font-weight:600}
.subnav a.on::before{content:"";position:absolute;inset-inline-start:-1px;top:8px;bottom:8px;width:2px;border-radius:2px;background:currentColor}
html.look-side .side .subnav a{color:rgba(255,255,255,.62);height:32px}
html.look-side .side .subnav a:hover{color:#fff;background:rgba(255,255,255,.06)}
html.look-side .side .subnav a.on{color:#fff;background:none}
.menu .subnav a{color:var(--mute)}
.menu .subnav a.on{color:var(--navy);background:none}
html.look-side.sb-mini .side .subnav{display:none}
#profile,#billing,#invoices,#connections,#admins{scroll-margin-top:24px}
html{scroll-behavior:smooth}

/* Keys are typed into text boxes drawn as dots, so the browser never fills a saved login password into them (2026-12-06) */
input.secret{-webkit-text-security:disc;text-security:disc;font-family:inherit}
/* Read-only issuer details supplied by Thalaatha Office */
.o-ro{display:flex;flex-direction:column;gap:6px;font-size:14px}
.o-ro span{color:var(--muted,#6b7280)}
.o-ro b{font-weight:500;padding:9px 12px;border:1px dashed var(--line,#e5e7eb);background:var(--bg2,#f8fafc);min-height:38px;overflow-wrap:anywhere}
/* Organisation details for the tax invoice, under the subscription fields */
fieldset.o-buyer{margin-top:22px;padding-top:18px;border-top:1px solid var(--line,#e5e7eb)}
.o-addon{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:14px 16px}
.o-addon small{display:block;line-height:1.7}
.o-addon .o-addon-fee{max-width:320px}
input.o-country-en{background:var(--paper,#F5F7FB);color:var(--mute,#66708A)}
/* Conversations with organisations */
.o-chat{display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start}
@media (max-width:900px){.o-chat{grid-template-columns:1fr}}
.o-chat-list{display:flex;flex-direction:column;padding:8px!important}
.o-chat-list a{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:12px;text-decoration:none;color:inherit}
.o-chat-list a:hover{background:var(--paper,#F5F7FB)}
.o-chat-list a.on{background:#EEF3FC}
.o-chat-list small{color:var(--mute,#66708A);font-size:13px}
.o-chat-list time{color:var(--mute,#66708A);font-size:12px}
.o-chat-log{height:min(52vh,520px);overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--paper,#F5F7FB);border-radius:12px;margin:12px 0}
.o-chat .chat-m{max-width:75%;padding:9px 12px 6px;border-radius:14px;font-size:15px;line-height:1.6}
.o-chat .chat-m p{white-space:pre-wrap;word-break:break-word}
.o-chat .chat-m small{display:block;font-size:12px;font-weight:700;color:var(--royal,#20418A);margin-bottom:2px}
.o-chat .chat-m time{display:block;font-size:11px;opacity:.6;margin-top:2px;text-align:end}
.o-chat .chat-m.me{align-self:flex-end;background:var(--royal,#20418A);color:#fff;border-end-end-radius:4px}
.o-chat .chat-m.them{align-self:flex-start;background:#fff;border-end-start-radius:4px}
.o-chat-f{display:flex;gap:10px;align-items:flex-end}
.o-chat-f textarea{flex:1;resize:vertical}
/* chats on WhatsApp: where Meta should call */
.o-wa-hook{display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;align-items:center;margin-top:16px;padding:14px 16px;background:var(--soft,#F5F7FB);border-radius:12px;font-size:14px}
.o-wa-hook code{font-size:13.5px;word-break:break-all;user-select:all}
