/* Microsoft 365-inspired Domains workspace */
body:has(.domain-panel)>aside{background:linear-gradient(180deg,#06294d 0%,#075f9f 58%,#0b84cf 100%)!important;border-right-color:rgba(255,255,255,.14)!important;box-shadow:12px 0 38px rgba(10,92,160,.18)}
body:has(.domain-panel)>aside .brand,body:has(.domain-panel)>aside nav a{color:#fff!important}body:has(.domain-panel)>aside nav a{opacity:.84}body:has(.domain-panel)>aside nav a:hover,body:has(.domain-panel)>aside nav a[href="?page=domains"]{opacity:1;background:rgba(255,255,255,.16)!important;border-left-color:#fff!important;color:#fff!important}body:has(.domain-panel)>aside .aside-foot{border-color:rgba(255,255,255,.18)!important}body:has(.domain-panel)>aside .aside-foot small{color:#d7efff!important}body:has(.domain-panel)>aside .nav-collapse{color:#fff!important}
main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health){display:grid;grid-template-columns:1fr 1.25fr;grid-template-rows:auto auto auto;gap:8px 28px;padding:24px!important}main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health)>h2:first-child{grid-column:1;grid-row:1}main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health)>p{grid-column:1;grid-row:2;line-height:1.55}main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health)>form:not(.inline-form){grid-column:1;grid-row:3;margin:4px 0 0!important}main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health)>h2:nth-of-type(2){grid-column:2;grid-row:1}main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health)>.inline-form{grid-column:2;grid-row:2/4;align-self:start}.domain-panel{padding:12px!important;overflow:visible!important;background:transparent!important;border:0!important}.domain-panel>table,.domain-panel>table>tbody{display:block;width:100%!important;min-width:0!important}.domain-panel>table>thead{display:none}.domain-panel>table>tbody>tr{display:grid;grid-template-columns:minmax(190px,1.4fr) 90px 110px;gap:12px 18px;margin-bottom:14px;padding:18px;background:#fff;border:1px solid #d9dee7;border-radius:12px;box-shadow:0 3px 14px rgba(30,45,70,.04)}.domain-panel>table>tbody>tr>td{display:block;min-width:0;padding:0!important;border:0!important;background:transparent!important}.domain-panel>table>tbody>tr>td:before{display:block;margin-bottom:6px;color:#7a8698;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.domain-panel>table>tbody>tr>td:nth-child(1):before{content:'Domain'}.domain-panel>table>tbody>tr>td:nth-child(2):before{content:'Type'}.domain-panel>table>tbody>tr>td:nth-child(3):before{content:'Status'}.domain-panel>table>tbody>tr>td:nth-child(4){grid-column:1/-1;padding-top:14px!important;border-top:1px solid #e8ebf0!important}.domain-panel>table>tbody>tr>td:nth-child(4):before{content:'DNS configuration'}.domain-panel .domain-remove{margin-top:10px}.domain-panel .ms-dns-card{width:100%!important;max-width:none!important;border-radius:9px}.domain-panel .ms-dns-row{grid-template-columns:70px 110px minmax(260px,1fr) 75px 75px 110px}.domain-health{border-top:4px solid #1588d4!important}.domain-health .health-grid article{background:#fbfcff}.domain-health h3{overflow-wrap:anywhere}
body[data-theme="dark"]:has(.domain-panel){background:#0b0f17}body[data-theme="dark"] .domain-panel>table>tbody>tr{background:#171c27;border-color:#343b49}body[data-theme="dark"] .domain-panel>table>tbody>tr>td:nth-child(4){border-color:#343b49!important}body[data-theme="dark"] .domain-panel .ms-dns-card{background:#151a23;border-color:#343b49}body[data-theme="dark"] .domain-panel .ms-dns-head{border-color:#343b49}body[data-theme="dark"] .domain-panel .ms-dns-head b,body[data-theme="dark"] .domain-panel .ms-dns-row code{color:#eef1f6}body[data-theme="dark"] .domain-panel .ms-dns-head small,body[data-theme="dark"] .domain-panel .ms-dns-note{color:#a5aebb}body[data-theme="dark"] .domain-panel .ms-dns-labels,body[data-theme="dark"] .domain-panel .ms-dns-actions,body[data-theme="dark"] .domain-panel .ms-dns-note{background:#202632;border-color:#343b49}body[data-theme="dark"] .domain-panel .ms-dns-row{border-color:#303744}body[data-theme="dark"] .domain-health .health-grid article{background:#151a23;border-color:#343b49}
@media(max-width:900px){body:has(.domain-panel){padding-top:64px!important}body:has(.domain-panel) .mobile-topbar{position:fixed;inset:0 0 auto 0;z-index:90;height:64px;padding:10px 14px;display:flex;align-items:center;justify-content:flex-start;gap:10px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);box-shadow:0 5px 18px rgba(31,41,75,.08)}body:has(.domain-panel) .mobile-brand{display:flex;align-items:center;gap:9px}body:has(.domain-panel) .mobile-brand span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#44b7f2,#1588d4);color:#fff;font-weight:900}body:has(.domain-panel) .mobile-menu-button{display:flex;align-items:center;justify-content:center;margin-left:2px;width:38px;min-width:38px;height:38px;padding:0;font-size:0;border-radius:9px;background:#e9f7ff;color:#1588d4}body:has(.domain-panel) .mobile-menu-button:before{content:'☰';font-size:18px}body:has(.domain-panel) .mobile-nav-backdrop{position:fixed;inset:0;z-index:100;display:block;width:100%;height:100%;padding:0;border-radius:0;background:rgba(4,35,62,.48);opacity:0;pointer-events:none}body:has(.domain-panel)>aside{display:flex!important;z-index:110;width:min(82vw,290px)!important;transform:translateX(-105%);transition:transform .2s ease}body:has(.domain-panel).mobile-nav-open>aside{transform:translateX(0)}body:has(.domain-panel).mobile-nav-open .mobile-nav-backdrop{opacity:1;pointer-events:auto}body:has(.domain-panel)>aside .mobile-nav-close{position:absolute;right:14px;top:15px;display:grid;place-items:center;width:34px;height:34px;padding:0;background:rgba(255,255,255,.14);color:#fff;font-size:23px}body:has(.domain-panel) .nav-collapse{display:none!important}body:has(.domain-panel) main{width:100%!important;max-width:none!important;margin-left:0!important;padding:0 12px 24px!important}main:has(.domain-panel)>header{margin:0 -12px 12px!important;padding:18px 16px!important}main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health){grid-template-columns:1fr;grid-template-rows:auto;gap:10px;padding:18px!important}main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health)>*{grid-column:1!important;grid-row:auto!important}.domain-panel{padding:0!important}.domain-panel>table>tbody>tr{grid-template-columns:1fr 1fr;padding:14px}.domain-panel>table>tbody>tr>td:nth-child(1),.domain-panel>table>tbody>tr>td:nth-child(4){grid-column:1/-1}.domain-panel .ms-dns-card{min-width:0!important}.domain-panel .ms-dns-head{padding:14px}.domain-panel .ms-dns-actions{justify-content:flex-start;flex-wrap:wrap;padding:12px}.domain-panel .ms-dns-row{min-width:680px}.domain-health{padding:16px!important}body[data-theme="dark"]:has(.domain-panel) .mobile-topbar{background:rgba(20,24,33,.98);color:#fff}}


/* Microsoft-style domain directory */
.m365-domain-source{display:none!important}
.m365-domain-directory{display:grid;gap:12px}
.m365-domain-item{border:1px solid #d7dce5;border-radius:8px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.m365-domain-summary{width:100%;display:grid;grid-template-columns:minmax(220px,1fr) 130px 170px 28px;align-items:center;gap:16px;padding:18px 20px;border:0;background:#fff;color:#242424;text-align:left;cursor:pointer}
.m365-domain-summary:hover{background:#f5f7fb}
.m365-domain-name{font-size:15px;font-weight:650}.m365-domain-type{color:#616161;text-transform:capitalize}
.m365-domain-health{justify-self:start;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.m365-domain-health.healthy{background:#dff6dd;color:#0b6a0b}.m365-domain-health.incomplete{background:#fff4ce;color:#8a5700}
.m365-domain-chevron{font-size:20px;transition:transform .18s}.m365-domain-summary[aria-expanded="true"] .m365-domain-chevron{transform:rotate(180deg)}
.m365-domain-detail{display:none;border-top:1px solid #e5e7eb;padding:20px;background:#fafbfc}.m365-domain-item.open .m365-domain-detail{display:block}
.m365-domain-detail .ms-dns-card{margin:0;border:0;box-shadow:none;background:transparent}.m365-domain-detail .domain-remove{margin-top:18px}
.m365-copy-field{display:flex;align-items:center;gap:6px;min-width:0}.m365-copy-field code{min-width:0;overflow:hidden;text-overflow:ellipsis}
.m365-copy-button{flex:0 0 auto;border:1px solid #c7cdd8!important;background:#fff!important;color:#185abd!important;border-radius:4px!important;padding:3px 7px!important;font-size:11px!important;min-height:0!important}
.m365-domain-ready{padding:18px;border-radius:6px;background:#eef8ff;color:#185abd;font-weight:600}
@media(max-width:760px){.m365-domain-summary{grid-template-columns:1fr auto;padding:15px}.m365-domain-type,.m365-domain-health{grid-column:1}.m365-domain-chevron{grid-column:2;grid-row:1/4}.m365-domain-detail{padding:14px}.m365-domain-detail .ms-dns-table{overflow:auto}}

/* Velvot brand refinements for Domains */
main:has(.domain-panel)>header{padding-bottom:8px}
main:has(.domain-panel)>header .eyebrow{color:#1588d4}
main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health){border-color:#d9e8f4;box-shadow:0 8px 28px rgba(12,74,120,.05)}
main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health) button,.domain-panel button{background:#1588d4;color:#fff}
main:has(.domain-panel)>section.panel:not(.domain-panel):not(.domain-health) button:hover,.domain-panel button:hover{background:#0f76bd}
.domain-panel>table>tbody>tr{border-color:#d7e7f2;box-shadow:0 5px 18px rgba(20,82,125,.05)}
.domain-panel>table>tbody>tr:hover{border-color:#9fd8f5;box-shadow:0 8px 24px rgba(21,136,212,.08)}
.m365-domain-summary:hover{background:#f2faff}
.m365-domain-health.healthy{background:#e9f8ff;color:#0878bd}.m365-domain-health.incomplete{background:#fff6dc;color:#8a6500}
.m365-copy-button{border-color:#b9dff4!important;color:#1588d4!important}.m365-copy-button:hover{background:#eef8ff!important}
.m365-domain-ready{background:#eef8ff;color:#0f6fae}
.domain-health{border-top-color:#44b7f2!important}
body[data-theme="dark"]:has(.domain-panel)>aside{background:linear-gradient(180deg,#041d34 0%,#063f68 100%)!important}

/* === 2026-08-25 Domains compact-card hard fix ===
   Keep Velvot blue for actions only. Domain summary rows stay white. */
.domain-panel .m365-domain-item{
  background:#fff!important;
  border:1px solid #d8e2ec!important;
  border-radius:12px!important;
  box-shadow:0 3px 12px rgba(15,64,104,.05)!important;
  overflow:hidden!important;
}
.domain-panel .m365-domain-summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 110px 150px 32px!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  min-height:76px!important;
  margin:0!important;
  padding:16px 18px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#172033!important;
  box-shadow:none!important;
  text-align:left!important;
  font:inherit!important;
}
.domain-panel .m365-domain-summary:hover,
.domain-panel .m365-domain-summary:focus{
  background:#f6fbff!important;
  color:#172033!important;
  box-shadow:none!important;
}
.domain-panel .m365-domain-name{
  min-width:0!important;
  color:#172033!important;
  font-size:16px!important;
  font-weight:750!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
.domain-panel .m365-domain-type{
  justify-self:start!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  background:#e9f6ff!important;
  color:#0b6fb8!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
  text-transform:capitalize!important;
  white-space:nowrap!important;
}
.domain-panel .m365-domain-health{
  justify-self:start!important;
  margin:0!important;
  padding:5px 10px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
.domain-panel .m365-domain-health.healthy{background:#e7f8ec!important;color:#087a36!important}
.domain-panel .m365-domain-health.incomplete{background:#fff4d6!important;color:#966200!important}
.domain-panel .m365-domain-chevron{
  justify-self:end!important;
  display:grid!important;
  place-items:center!important;
  width:30px!important;
  height:30px!important;
  border-radius:8px!important;
  color:#0b78c6!important;
  background:transparent!important;
  font-size:20px!important;
}
.domain-panel .m365-domain-detail{
  padding:18px!important;
  border-top:1px solid #e6edf4!important;
  background:#fbfdff!important;
  color:#172033!important;
}
.domain-panel .m365-domain-detail button:not(.m365-copy-button){
  width:auto!important;
  min-width:0!important;
  background:#1588d4!important;
  color:#fff!important;
}
.domain-panel .m365-copy-button{
  width:auto!important;
  background:#fff!important;
  color:#0b78c6!important;
}
.domain-panel .m365-domain-ready{
  padding:14px 16px!important;
  border:1px solid #cce8f8!important;
  border-radius:8px!important;
  background:#eef9ff!important;
  color:#0b6fae!important;
}
body[data-theme="dark"] .domain-panel .m365-domain-item{background:#171c27!important;border-color:#313a48!important}
body[data-theme="dark"] .domain-panel .m365-domain-summary{background:#171c27!important;color:#eef3f8!important}
body[data-theme="dark"] .domain-panel .m365-domain-summary:hover{background:#1d2532!important}
body[data-theme="dark"] .domain-panel .m365-domain-name{color:#eef3f8!important}
body[data-theme="dark"] .domain-panel .m365-domain-detail{background:#121822!important;color:#eef3f8!important;border-color:#313a48!important}

@media(max-width:820px){
  .domain-panel .m365-domain-summary{
    grid-template-columns:minmax(0,1fr) 32px!important;
    gap:8px 12px!important;
    min-height:auto!important;
    padding:14px!important;
  }
  .domain-panel .m365-domain-name{grid-column:1!important;grid-row:1!important}
  .domain-panel .m365-domain-type{grid-column:1!important;grid-row:2!important}
  .domain-panel .m365-domain-health{grid-column:1!important;grid-row:3!important}
  .domain-panel .m365-domain-chevron{grid-column:2!important;grid-row:1/4!important}
  .domain-panel .m365-domain-detail{padding:14px!important;overflow:auto!important}
}
