/* ==========================================================================
   Manage Account  (03 · Inner pages / screens/company-info.jsx)

   Loaded after dashboard.css + inner-pages.css + my-apps.css, so the .vd-dash
   token block and the shared .vd-pagehead / .vd-btn / .vd-card rules are
   already in scope. Only what the comp adds on top lives here: the tab strip,
   the section card, the form grid, the definition rows and the plan panel.
   ========================================================================== */

/* ---------- Tab strip ---------- */

.vd-tabs {
    display: flex;
    gap: 4px;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    /* Fix (site crawl, 2026-09): setting only overflow-x leaves overflow-y's
       computed value at "auto" too (a CSS overflow-pair gotcha - a
       "visible" paired with a non-visible axis resolves to "auto", not
       "visible"), so a 1px content/box height mismatch here (line-height
       rounding) was enough to trigger a persistent, barely-there vertical
       scrollbar - the classic-Windows-style scrollbar-with-arrow-buttons
       seen sitting in the middle of this tab strip. overflow-y:hidden
       keeps the intended horizontal-only scroll. */
    overflow-y: hidden;
}

.vd-acct-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    margin-bottom: -1px;
    background: transparent;
    border: 0;
    border-bottom: 2.5px solid transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: #3D3654;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.vd-acct-tab:hover { color: var(--plum); text-decoration: none; }

.vd-acct-tab.is-active {
    border-bottom-color: var(--plum);
    color: var(--plum);
    font-weight: 700;
}

.vd-acct-tab-ico { width: 15px; height: 15px; flex: 0 0 15px; }

/* ---------- Tab body ---------- */

.vd-acct-body { padding: 24px 32px 40px; max-width: 1080px; margin: 0 auto; }

/* ---------- Status banner ---------- */

.vd-acct-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    background: rgba(62, 158, 98, .09);
    border: 1px solid rgba(62, 158, 98, .35);
    color: #276D42;
}

.vd-acct-flash--error {
    background: rgba(230, 89, 76, .08);
    border-color: rgba(230, 89, 76, .38);
    color: #A5372C;
}

.vd-acct-flash-ico { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

/* ---------- Section card ---------- */

.vd-sec-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.vd-sec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.vd-sec-ico {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(46, 33, 85, .08);
    color: var(--blackberry);
}

.vd-sec-ico svg { width: 16px; height: 16px; }

.vd-sec-title { font-size: 14px; font-weight: 700; color: var(--blackberry); }
.vd-sec-sub { font-size: 12px; color: #3D3654; margin-top: 1px; }
.vd-sec-pad { padding: 20px 20px 22px; }

/* ---------- Identity strip ---------- */

.vd-ident {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--line);
}

.vd-ident-avatar {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 99px;
    background: var(--plum);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 700;
    overflow: hidden;
}

.vd-ident-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vd-ident-main { flex: 1 1 auto; min-width: 0; }
.vd-ident-name { font-size: 15px; font-weight: 700; color: var(--blackberry); }
.vd-ident-meta { font-size: 12.5px; color: #3D3654; }

/* ---------- Form grid ---------- */

.vd-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.vd-fgrid--addr { display: grid; grid-template-columns: 1.2fr 1fr .7fr .8fr; gap: 0 14px; }

.vd-field { margin-bottom: 14px; }

.vd-field > label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
}

.vd-req { color: var(--coral); }

/* VCO-1269/1276 follow-up: a required marker written as the label's sibling
   (`LabelFor(...) <span class="vd-req">*</span>`, used across the vd-* forms)
   dropped to a line of its own under the block label. Keep it on the label's
   line; the control below is display:block, so it still starts a new line. */
.vd-field > label:has(+ .vd-req) { display: inline-block; }

/* Fix (2026-09, RequestClientActivation cleanup): adp.css's sitewide, unscoped
   `input[type="text"], ..., textarea { margin-bottom: 30px; font-size: 16pt;
   padding: 20px 25px; }` rule still matches every one of these elements -
   .vd-field's own selectors below are more specific and win on the
   properties they set, but none of them touched margin-bottom, so that 30px
   was landing on top of .vd-field's own 14px bottom margin on every text
   input, select, and textarea across every vd-* form (AddApplication,
   FhirApp, EditApplication, PartnerRequest, this page, etc.) - explicit
   margin-bottom: 0 here now closes that gap for good. */
.vd-field input[type="text"],
.vd-field input[type="email"],
.vd-field input[type="url"],
.vd-field input[type="password"],
.vd-field input[type="tel"], /* VCO-1276: PartnerRequest's Client Contact Phone rendered unstyled */
.vd-field select {
    display: block;
    width: 100%;
    height: 38px;
    margin-bottom: 0;
    padding: 0 11px;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.vd-field select { padding-right: 26px; }

/* Textarea (e.g. a MultilineText EditorFor) - was left unstyled here, so any
   page linking only manage-account.css (not partner-request.css, which
   carries its own copy of this same rule) got the raw MVC default: no
   height cap, full editor line-height, no rounded border to match the
   inputs above it. Fixed height (not min-height) - an empty <textarea> with
   no rows attribute renders at the browser's own intrinsic default (~175px
   here), well past what min-height alone can cap since min-height is only
   a floor. resize: vertical still lets the user grow it if they need more
   room. */
.vd-field textarea {
    display: block;
    width: 100%;
    height: 92px;
    margin-bottom: 0;
    padding: 9px 11px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    resize: vertical;
}

.vd-field input:focus,
.vd-field select:focus,
.vd-field textarea:focus {
    outline: none;
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(122, 53, 120, .12);
}

.vd-field input[disabled],
.vd-field select[disabled] { background: #F7F5FA; color: #8F8A9C; cursor: not-allowed; } /* VCO-1345: stays light so read-only reads as read-only */

.vd-field .field-validation-error {
    display: block;
    font-size: 11.5px;
    color: #A5372C;
    margin-top: 4px;
}

.vd-field input.input-validation-error,
.vd-field select.input-validation-error { border-color: var(--coral); }

/* Generic data table (e.g. ManageSubscriptionEmbedded's History/Payment
   Methods/Invoice/Payment tables) - modeled on partner-request.css's
   .vd-pr-history table rules, generalized since this one isn't scoped to a
   single page. */
.vd-table { width: 100%; border: 1px solid var(--line); border-radius: 8px; border-collapse: collapse; overflow: hidden; }
.vd-table th {
    text-align: left;
    padding: 9px 14px;
    background: #FAF9FC;
    border-bottom: 1px solid var(--line);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #3D3654;
}
.vd-table td {
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink);
}
.vd-table tbody tr:first-child td { border-top: none; }

/* Fix (code review, PR #971): recovered from Content/Account/edit-application.css,
   deleted when EditApplication.cshtml moved to this shared stylesheet set -
   both rules were still needed and nothing else redefined them.
   .actionCol: EditApplication's WebGrid credential tables
   (_EditApplicationPartial.cshtml) still pass style: "actionCol" for their
   Regenerate/Revoke/Extend-Expiration column. */
.actionCol { width: 130px; text-align: center; }
/* Hides jQuery UI's default dialog titlebar close "X" - every hand-built
   Yes/No/OK/Cancel confirmation dialog on this page (and its siblings) relies
   on its own buttons, not that icon. */
.ui-dialog-titlebar-close { display: none; }

/* Wrapper for a GridMvc-rendered grid (MyActivations.cshtml's Unity tab) -
   GridMvc owns its own <table> markup/class, so unlike .vd-table above this
   can't be put directly on the table tag; style it as a descendant instead,
   same look. GridMvc's pager/filter chrome is left with its own default
   styling - only the table itself is restyled. */
/* Fix (2026-09, mobile audit): these grids run 6-9 columns with filter
   dropdowns and no responsive handling of their own - contained to a
   horizontal scroll on the wrapper instead of blowing out the page width. */
/* Fix (site crawl, 2026-09): same overflow-x/overflow-y pairing gotcha as
   .vd-tabs above - explicit overflow-y:hidden so a borderline content/box
   height match can't trigger a phantom vertical scrollbar on top of the
   intended horizontal one. */
.vd-table-wrap { overflow-x: auto; overflow-y: hidden; }

.vd-table-wrap table {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    border-collapse: collapse;
    overflow: hidden;
}
.vd-table-wrap th {
    text-align: left;
    padding: 10px 16px;
    background: #FAF9FC;
    border-bottom: 1px solid var(--line);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #3D3654;
}
/* Fix (per user request, 2026-09): 10px/14px read as cramped once a row
   mixes plain text with pills/badges (.vd-status, .vd-badge, .vd-vendor's
   stacked name+badge) - more breathing room + an explicit line-height so
   multi-word text cells (Title, Product) don't look tighter than the
   pill-only ones next to them. */
.vd-table-wrap td {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink);
    vertical-align: middle;
}

.vd-fgroup-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #3D3654;
    margin: 18px 0 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.vd-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 10px;
}

.vd-check input { margin: 3px 0 0; flex: 0 0 auto; }

.vd-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.vd-form-note { font-size: 12px; color: #3D3654; display: flex; align-items: center; gap: 6px; }
.vd-form-note svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--green); }
.vd-form-actions { display: flex; gap: 8px; }

/* Row of vd-btn--outline action links (EditApplication.cshtml's "Actions"
   card - conditionally-rendered Request Client Activation/Set as Production
   Ready/Delete/etc.) - was a bare <ul><li> list, now a wrapping flex row so
   any subset of the links can render without leaving list-marker gaps. */
.vd-actions-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Definition rows ---------- */

.vd-rows { display: block; }

.vd-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.vd-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vd-row:first-child { padding-top: 0; }
.vd-row-main { flex: 1 1 auto; min-width: 0; }
.vd-row-title { display: flex; align-items: center; gap: 8px; }
.vd-row-title span { font-size: 13px; font-weight: 600; color: var(--ink); }
.vd-row-meta { font-size: 11.5px; color: #3D3654; margin-top: 2px; }
.vd-row-action { flex: 0 0 auto; }

/* ---------- Badges ---------- */

.vd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.vd-badge--ok { background: rgba(62, 158, 98, .13); color: #276D42; }
.vd-badge--warn { background: rgba(250, 181, 84, .2); color: #8A5A0B; }
.vd-badge--off { background: var(--line-soft); color: #3D3654; }

/* ---------- Notice strip ---------- */

.vd-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    background: rgba(250, 181, 84, .14);
    border: 1px solid rgba(250, 181, 84, .5);
    color: #7A4E06;
}

.vd-notice svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.vd-notice a { color: #7A4E06; font-weight: 600; text-decoration: underline; }

/* ---------- Data table ---------- */

.vd-tbl-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vd-tbl { width: 100%; border-collapse: collapse; }

.vd-tbl th {
    text-align: left;
    padding: 9px 14px;
    background: #FAF9FC;
    border-bottom: 1px solid var(--line);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #3D3654;
}

.vd-tbl td {
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink);
    vertical-align: middle;
}

.vd-tbl tbody tr:first-child td { border-top: 0; }
.vd-tbl-right { text-align: right; }

.vd-doc-name { display: flex; align-items: center; gap: 10px; }

.vd-doc-ico {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: rgba(122, 53, 120, .1);
    color: var(--plum);
}

.vd-doc-ico svg { width: 14px; height: 14px; }
.vd-doc-ico--warn { background: rgba(250, 181, 84, .22); color: #8A5A0B; }

/* ---------- Member avatars ---------- */

.vd-member { display: flex; align-items: center; gap: 10px; }

.vd-member-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    background: var(--grape);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.vd-member-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.vd-member-you { font-size: 10px; font-weight: 400; color: #3D3654; margin-left: 6px; }
.vd-member-email { font-size: 11px; color: #3D3654; }

/* ---------- Invite row ---------- */

.vd-invite {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: #FAF9FC;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.vd-invite input[type="text"],
.vd-invite input[type="email"] {
    width: 100%;
    height: 36px;
    padding: 0 11px;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.vd-invite input:focus {
    outline: none;
    border-color: var(--plum);
    box-shadow: 0 0 0 3px rgba(122, 53, 120, .12);
}

/* ---------- Plan panel ---------- */

.vd-plan {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2B1B4A 0%, #403C7E 60%, #7A3578 100%);
    box-shadow: 0 18px 40px -24px rgba(43, 27, 74, .7);
}

.vd-plan-ico {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.vd-plan-ico svg { width: 22px; height: 22px; }
.vd-plan-main { flex: 1 1 auto; min-width: 0; }

.vd-plan-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .72);
}

.vd-plan-name { font-size: 21px; font-weight: 700; letter-spacing: -.3px; margin-top: 2px; }
.vd-plan-meta { font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 4px; line-height: 1.5; }
.vd-plan-meta b { color: #fff; font-weight: 600; }
.vd-plan-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }

.vd-page .vd-btn--onplan { background: #fff; color: #2B1B4A; border-color: #fff; }
.vd-page .vd-btn--onplan:hover { background: #F2ECF6; color: #2B1B4A; text-decoration: none; }

.vd-page .vd-btn--onplan-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.vd-page .vd-btn--onplan-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; text-decoration: none; }

/* ---------- Deferred / empty states ---------- */

.vd-defer {
    padding: 28px 24px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #FAF9FC;
}

.vd-defer h3 { font-size: 14px; font-weight: 700; color: var(--blackberry); margin: 0 0 6px; }
.vd-defer p { font-size: 12.5px; color: #3D3654; line-height: 1.6; margin: 0 0 12px; }
.vd-defer ul { margin: 0 0 14px; padding-left: 20px; font-size: 12.5px; color: #3D3654; line-height: 1.7; }
.vd-defer p:last-child, .vd-defer ul:last-child { margin-bottom: 0; }

.vd-kvlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.vd-kvcell {
    padding: 14px 16px;
    border: 1px solid #ECE7F4;
    border-radius: 12px;
    background: linear-gradient(160deg, #fff, #F6F3FC);
}

.vd-kvcell-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #3D3654;
}

.vd-kvcell-val { font-size: 17px; font-weight: 700; color: var(--blackberry); margin: 5px 0 3px; letter-spacing: -.3px; }
.vd-kvcell-val.is-empty { font-size: 14px; font-weight: 600; color: var(--muted); }
.vd-kvcell-meta { font-size: 11.5px; color: #3D3654; }

/* Fix (John's PR #970 review, medium): .vd-field-hint's only definition
   was in partner-request.css, but MyActivations.cshtml, AddApplication.cshtml,
   FhirApp.cshtml, and RequestClientActivation.cshtml all use the class
   without loading that stylesheet - it rendered at default body size/color
   instead of the intended muted hint everywhere except PartnerRequest.cshtml
   itself. Moved here, which all of those views already load. */
.vd-field-hint { font-size: 11px; color: #3D3654; margin-top: 5px; line-height: 1.5; }

/* Fix (John's PR #970 review, low): .checkBoxListFor (MvcCheckBoxList
   output) was duplicated verbatim in both partner-request.css and
   app-create.css, each admitting in its own comment that the other page
   didn't load the "real" copy. One definition here instead, which every
   consuming view already loads. */
.checkBoxListFor {
    --cbl-gap: 8px; /* the hidden checkbox's negative margin below cancels exactly this */
    display: flex;
    flex-wrap: wrap;
    gap: var(--cbl-gap);
    margin: 6px 0 0;
    /* VCO-1365: pills keep their own height and stack from the top - a list
       stretched taller than its pills (the Unity Actions columns share one
       height) used to stretch each pill into a tall oval. */
    align-items: center;
    align-content: flex-start;
}

.checkBoxListFor label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

.checkBoxListFor input[type="checkbox"] { margin: 0; flex: 0 0 auto; }

.checkBoxListFor label:has(input:checked) {
    border-color: var(--plum);
    background: rgba(122, 53, 120, .08);
    color: var(--plum);
    font-weight: 700;
}

/* VCO-1288: MvcCheckBoxList renders <input> and its <label for> as SIBLINGS
   (plus a <br> per item in Vertical mode), not the input inside the label the
   rules above assume - so each checkbox sat outside its pill and the rows went
   ragged (Announcements' license types, Edit Application's products, ...).
   For that markup the label is the pill: the real checkbox stays in the form
   and keyboard-focusable, just visually hidden, and the pill shows its state. */
/* VCO-1365: the hidden checkbox used to be position:absolute with no
   offsets, so every one of them stacked at the END of the list. Clicking a
   pill focuses its checkbox, and the browser scrolled that spot into view -
   on a long list (Unity Actions on a prod app) every click jumped to the
   bottom. It now stays in the flex flow as a zero-size item right before its
   own pill (the negative margin cancels the row gap), so focus lands where
   the user clicked. */
.checkBoxListFor > br { display: none; }
.checkBoxListFor > input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    margin: 0 calc(-1 * var(--cbl-gap, 8px)) 0 0;
    opacity: 0;
    pointer-events: none;
}
.checkBoxListFor > input[type="checkbox"]:checked + label {
    border-color: var(--plum);
    background: rgba(122, 53, 120, .08);
    color: var(--plum);
    font-weight: 700;
}
.checkBoxListFor > input[type="checkbox"]:focus-visible + label {
    outline: 2px solid var(--plum);
    outline-offset: 2px;
}
.checkBoxListFor > input[type="checkbox"]:disabled + label { opacity: .55; cursor: default; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .vd-fgrid, .vd-fgrid--addr, .vd-kvlist { grid-template-columns: 1fr; }
    .vd-invite { grid-template-columns: 1fr; }
    .vd-acct-body { padding: 20px 20px 32px; }
    .vd-tabs { padding: 0 20px; }
    .vd-plan { flex-wrap: wrap; }
    .vd-plan-actions { flex-direction: row; width: 100%; }
    .vd-row { flex-wrap: wrap; }
}

/* ---------- Profile photo page (UserProfileAvatar) ----------
   Restyled into the shell; the upload/crop markup is still the shared
   _UploadAvatar partial + site.avatar.js, so this only skins it. */
.vd-avatar-page .vd-avatar-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; padding: 8px 32px 48px; max-width: 1200px; } /* 32px = .vd-pagehead inset */
.vd-avatar-page .vd-avatar-current { display: flex; justify-content: center; padding: 28px 20px; }
.vd-avatar-page .vd-avatar-current img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 1px solid #ECE9F2; }
.vd-avatar-page #avatar-upload-form input[type=file] {
    display: block; width: 100%; padding: 14px; font-size: 13px; color: #3D3660;
    border: 1px dashed #CFC8DD; border-radius: 10px; background: #FBFAFC; cursor: pointer;
}
.vd-avatar-page #avatar-upload-form br { display: none; }
.vd-avatar-page .upload-file-notice { margin-top: 8px; font-size: 12px; color: #3D3654; }
.vd-avatar-page #status { margin-top: 8px; font-size: 13px; }
.vd-avatar-page .upload-progress { margin-top: 12px; border-radius: 6px; overflow: hidden; border-color: #E2DFE9; float: none; width: 100%; position: relative; }
.vd-avatar-page .upload-percent-bar { background: var(--plum, #7A3578); height: 8px; }
.vd-avatar-page .upload-percent-value { position: static; padding: 4px 0 0; font-size: 11px; color: #3D3654; }
/* crop box: Jcrop parks the round preview to the right of the image (#preview-pane right:-240px) */
.vd-avatar-page #avatar-crop-box { margin-top: 20px; padding-right: 250px; position: relative; }
.vd-avatar-page #avatar-crop-box .jcrop-holder { border-radius: 8px; }
.vd-avatar-page #btnSaveAvatar {
    margin-top: 16px; display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
    border: 0; border-radius: 8px; background: var(--plum, #7A3578); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vd-avatar-page #btnSaveAvatar:hover { background: #6A2D69; }
.vd-avatar-page #btnSaveAvatar.disabled { opacity: .55; pointer-events: none; }
@media (max-width: 900px) {
    .vd-avatar-page .vd-avatar-grid { grid-template-columns: 1fr; }
    .vd-avatar-page #avatar-crop-box { padding-right: 0; }
    .vd-avatar-page #preview-pane { display: none !important; }
}

/* Body wrapper for simple shell pages (My Agreement, FHIR Endpoint Directory):
   same 32px inset as .vd-pagehead so cards line up with the header. */
.vd-page > .vd-page-body { padding: 8px 32px 48px; max-width: 1200px; }

/* VCO-1342: Unity app edit form (EditApplication) - tint every section header
   (Application details, Actions, Unity production / test credentials, Admin
   properties) and give the credentials tables a visible border, so the page
   isn't one large white sheet. Scoped to .vd-unity-edit only. */
.vd-unity-edit .vd-sec-head { background: #EFEFF1; }
.vd-unity-edit .vd-table.webGrid {
    border: 1px solid #CFCAD9;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
}
.vd-unity-edit .vd-table.webGrid th { background: #EFEFF1; border-bottom-color: #CFCAD9; }
.vd-unity-edit .vd-table.webGrid td { border-top-color: #E2DEEA; }

/* VCO-1321: Unity Actions picker (Account/UnityActions) - the four action
   lists in a grid that drops to 2 columns, then 1, instead of the legacy
   negative-margin table that slid under the left rail on a laptop. */
.vd-ua-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
.vd-ua-grid .checkBoxListFor { white-space: nowrap; overflow-x: auto; font-size: 13px; color: var(--ink); line-height: 1.9; }
.vd-ua-grid .checkBoxListFor label { display: inline; margin: 0 0 0 6px; font-weight: normal; }
.vd-unity-actions .vd-form-actions { margin-top: 16px; }
@media (max-width: 1280px) { .vd-ua-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .vd-ua-grid { grid-template-columns: 1fr; } }
