/*
  Services & ownership, shared by the customer page and the N3XRA administrator page.
  One setup card grouped by Hosting, Domain and Website code, then a requests card.
*/
:is(.services-setup, .services-requests) { box-sizing:border-box; margin:0 0 20px; padding:clamp(18px,2.4vw,24px); border:1px solid #e2e6e7; border-radius:14px; background:#fff; box-shadow:0 1px 2px #14282f0a; font-family:Manrope, system-ui, sans-serif; }
.services-requests[hidden] { display:none; }
:is(.services-setup, .services-requests) > header { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px 20px; }
:is(.services-setup, .services-requests) > header > div { flex:1 1 280px; min-width:0; }
:is(.services-setup, .services-requests) > header h3 { margin:0; color:#16191c; font:700 1.1rem/1.35 Manrope, system-ui, sans-serif!important; letter-spacing:-.01em; }
:is(.services-setup, .services-requests) > header p { margin:4px 0 0; color:#5d666d; font-size:.9rem; line-height:1.5; }
.services-header-actions { display:flex; flex-wrap:wrap; gap:6px; }
.services-group { margin-top:20px; }
.services-group h4 { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin:0; padding-bottom:8px; border-bottom:1px solid #e2e6e7; color:#16191c; font:700 .82rem/1.3 Manrope, system-ui, sans-serif!important; text-transform:uppercase; letter-spacing:.05em!important; }
.services-group h4 small { color:#7b858c; font-weight:600; text-transform:none; letter-spacing:0; font-size:.84rem; }
.services-group h4 .services-add { margin-left:auto; padding:0; border:0; background:none; color:#20483e; font:700 .84rem/1.3 Manrope, system-ui, sans-serif; text-transform:none; letter-spacing:0; cursor:pointer; }
.services-group h4 .services-add:hover { text-decoration:underline; }
.services-item { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 20px; padding:14px 0; border-bottom:1px solid #eef1f1; }
.services-item:last-child { border-bottom:0; }
.services-item-main { flex:1 1 260px; min-width:0; }
.services-item-main strong { display:block; color:#16191c; font:700 .98rem/1.35 Manrope, system-ui, sans-serif; overflow-wrap:anywhere; }
.services-item-main p { margin:3px 0 0; color:#5d666d; font-size:.88rem; line-height:1.45; overflow-wrap:anywhere; }
.services-item-main .services-note { color:#7b858c; font-size:.84rem; }
.services-item-side { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 12px; }
:is(.services-owner, .services-status) { padding:3px 10px; border-radius:999px; background:#f0f2f3; color:#4a5357; font:700 .74rem/1.4 Manrope, system-ui, sans-serif; white-space:nowrap; }
.services-owner[data-owner=client_owned] { background:#e3eeec; color:#20483e; }
.services-status { background:#fdf3e1; color:#7a5413; }
.services-item-actions { display:flex; flex-wrap:wrap; gap:6px; }
.services-action { display:inline-flex; align-items:center; justify-content:center; min-height:34px; margin:0; padding:6px 12px; border:1px solid #c9cfd2; border-radius:8px; background:#fff; color:#16191c; font:650 .84rem/1.2 Manrope, system-ui, sans-serif; text-decoration:none; box-shadow:none; cursor:pointer; }
.services-action:hover { border-color:#8f999d; }
.services-action:disabled { opacity:.55; cursor:default; }
.services-action.is-danger { color:#9b2c2c; }
.services-action.is-danger:hover { border-color:#d9a3a3; }
.services-action.is-primary { border-color:#17201f; background:#17201f; color:#fff; }
.services-none { margin:0; padding:14px 0; color:#7b858c; font-size:.9rem; }
.services-sync-note { margin:10px 0 0; color:#7b858c; font-size:.84rem; }
.services-sync-note:empty { display:none; }

.services-requests ul { display:grid; margin:12px 0 0; padding:0; list-style:none; }
.services-requests li { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:6px 16px; padding:12px 0; border-top:1px solid #eef1f1; }
.services-requests li strong { display:block; color:#16191c; }
.services-requests li small { display:block; margin-top:2px; color:#5d666d; font-size:.86rem; overflow-wrap:anywhere; }
.services-requests li time { color:#7b858c; font-size:.84rem; }
.services-request-controls { grid-column:1 / -1; display:grid; grid-template-columns:200px minmax(0,1fr) auto; align-items:start; gap:8px; }
.services-request-controls :is(select, textarea) { box-sizing:border-box; width:100%; min-height:36px; padding:7px 10px; border:1px solid #cfd6d8; border-radius:8px; background:#fff; color:#16191c; font:500 .86rem/1.4 Manrope, system-ui, sans-serif; }

/* Administrator editor: one dialog that shows the form for the record being added or edited. */
.services-editor { width:min(680px, calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid #e2e6e7; border-radius:14px; background:#fff; box-shadow:0 18px 48px #14282f33; font-family:Manrope, system-ui, sans-serif; }
.services-editor::backdrop { background:#14282f66; }
.services-editor form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; margin:0; padding:22px 24px 24px; border:0; background:none; box-shadow:none; }
.services-editor form[hidden] { display:none; }
.services-editor-head { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid #e2e6e7; }
.services-editor-head h3 { margin:0; color:#16191c; font:700 1.1rem/1.35 Manrope, system-ui, sans-serif!important; }
.services-editor label { display:grid; gap:6px; margin:0; color:#36444f; font:650 .84rem/1.35 Manrope, system-ui, sans-serif; text-transform:none; letter-spacing:0; }
.services-editor label.is-wide { grid-column:1 / -1; }
.services-editor label.is-check { display:flex; align-items:center; gap:8px; }
.services-editor :is(input:not([type=checkbox]), select, textarea) { box-sizing:border-box; width:100%; min-height:40px; padding:8px 11px; border:1px solid #cfd6d8; border-radius:8px; background:#fff; color:#16191c; font:500 .9rem/1.4 Manrope, system-ui, sans-serif; }
.services-editor :is(input, select, textarea):focus-visible { outline:2px solid #20483e33; border-color:#20483e; }
.services-editor-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding-top:14px; border-top:1px solid #e2e6e7; }

@media (max-width:560px) {
  .services-item-side { justify-content:flex-start; width:100%; }
  .services-item-actions { width:100%; }
  .services-action { flex:1 1 auto; }
  .services-requests li { grid-template-columns:minmax(0,1fr) auto; }
  .services-requests li time { grid-column:1; }
  .services-request-controls { grid-template-columns:minmax(0,1fr); }
  .services-editor form { grid-template-columns:minmax(0,1fr); padding:18px; }
}
