/* V21: VJd primary kit 1:16701 / 1:17868 / 1:6762 / 1:15283 / 1:16188.
   Compact application adapters meet the requested density/equal heights.
   Choice24 and switch40×20 preserve the kit and all native nodes/events. */
/* Important component declarations own their explicit data-marked variants above
   the unlayered legacy rules; ordinary controls outside these variants stay intact. */
@layer lunora-components{
body.lunora-admin-v3{--la-primary:#5570f1;--la-primary-pressed:#5b6ec6;--la-primary-outline:#6d7dcd;--la-control-border:#cfd3d4;--la-control-text:#5e6366;--la-control-muted:#abafb1;--la-error:#f57e77;--la-choice-size:24px;--la-choice-radius:8px;--la-field-height:40px;--la-field-radius:8px;--la-field-value-size:14px;--la-button-height:40px;--la-button-radius:8px;--la-button-text:14px}

/* Checkbox and Radio have the same outer kit frame; their native semantics differ. */
body.lunora-admin-v3 input[data-la-choice]{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;width:var(--la-choice-size)!important;height:var(--la-choice-size)!important;min-width:var(--la-choice-size)!important;min-height:var(--la-choice-size)!important;max-width:var(--la-choice-size)!important;max-height:var(--la-choice-size)!important;flex:0 0 var(--la-choice-size)!important;padding:0!important;margin:0;border:1px solid var(--la-control-border)!important;border-radius:var(--la-choice-radius)!important;background:#fff!important;box-shadow:none!important;vertical-align:middle;cursor:pointer;position:relative}
body.lunora-admin-v3 input[data-la-choice]:checked{border-color:var(--la-primary-outline)!important;background:var(--la-primary)!important;box-shadow:inset 0 0 0 1px #fff!important}
body.lunora-admin-v3 input[data-la-choice=checkbox]:checked{border-color:var(--la-primary)!important;box-shadow:none!important;background:var(--la-primary) url('/static/admin-v3/figma/kit-checkbox-imgFiCheck.svg') center/12px 12px no-repeat!important}
body.lunora-admin-v3 input[data-la-choice]::after{content:none!important}
body.lunora-admin-v3 input[data-la-choice]:indeterminate{border-color:var(--la-primary-outline)!important;background:var(--la-primary)!important;box-shadow:inset 0 0 0 1px #fff!important}
body.lunora-admin-v3 input[data-la-choice=checkbox]:indeterminate{border-color:var(--la-primary)!important;box-shadow:none!important}
body.lunora-admin-v3 input[data-la-choice]:indeterminate::after{content:''!important;display:block!important;position:absolute;left:6px;top:10px;width:10px;height:2px;border:0!important;border-radius:1px;background:#fff!important;transform:none}
body.lunora-admin-v3 input[data-la-choice]:focus-visible{outline:2px solid var(--la-primary)!important;outline-offset:3px!important}
body.lunora-admin-v3 input[data-la-choice]:hover:not(:disabled){border-color:var(--la-primary)!important}
body.lunora-admin-v3 input[data-la-choice]:disabled{opacity:.5;cursor:not-allowed}
body.lunora-admin-v3 input.dl-arrangement-radio[data-la-choice]{position:absolute;left:12px;bottom:12px}
body.lunora-admin-v3 .dl-arrangement-tile:has(input[data-la-choice]) .dl-arrangement-name{padding-left:32px!important;min-height:24px!important;display:flex;align-items:center}

/* Style 2 is a 40×20 track with a colored 16px thumb, as the source variants. */
body.lunora-admin-v3 #page-settings input.v13-payment-toggle{background:rgba(85,112,241,.12)!important}
body.lunora-admin-v3 #page-settings input.v13-payment-toggle::after{display:block!important;background:#bbc5cb!important;box-shadow:none!important}
body.lunora-admin-v3 #page-settings input.v13-payment-toggle:checked{background:rgba(85,112,241,.4)!important}
body.lunora-admin-v3 #page-settings input.v13-payment-toggle:checked::after{background:var(--la-primary)!important}

/* Explicit normal and table button variants. Filter/period/editor toolbar density is kept. */
body.lunora-admin-v3 #app [data-la-button=normal],body.lunora-admin-v3 :is(#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) [data-la-button=normal]{box-sizing:border-box;min-height:var(--la-button-height)!important;height:auto!important;max-width:100%;padding:9px 12px!important;border-radius:var(--la-button-radius)!important;font:400 var(--la-button-text)/20px Inter,Arial,sans-serif!important;letter-spacing:0;white-space:normal;overflow-wrap:break-word;text-align:center;align-items:center;justify-content:center;gap:8px}
body.lunora-admin-v3 [data-la-button=normal]:disabled{opacity:.6!important;cursor:not-allowed}
body.lunora-admin-v3 :is(#app,#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) [data-la-button=normal][data-la-tone=primary]:active:not(:disabled){background:var(--la-primary-pressed)!important;box-shadow:inset 0 4px 20px #0003!important}
body.lunora-admin-v3 #app [data-la-button=table]{min-height:32px!important;height:32px!important;border-radius:6px!important;font:400 12px/18px Inter,Arial,sans-serif!important;padding:6px 8px!important;gap:8px}
body.lunora-admin-v3 #app [data-la-button=table] :is(.v13-icon,.management-asset,.ops-icon,.ops-icon>img){width:16px!important;height:16px!important;min-width:16px;min-height:16px;flex:0 0 16px}

/* Action rows wrap from the labels' content width, including modal layouts. */
body.lunora-admin-v3 .partner-support-side-actions-row>[data-la-button=normal]{flex:1 1 auto!important;min-width:0}

/* External-label Style 2, adapted to compact40/14; original label nodes stay. */
body.lunora-admin-v3 #app [data-la-field],body.lunora-admin-v3 :is(#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) [data-la-field]{box-sizing:border-box;min-width:0;max-width:100%;height:var(--la-field-height)!important;min-height:var(--la-field-height)!important;padding:9px 12px!important;border:1px solid var(--la-control-border)!important;border-radius:var(--la-field-radius)!important;background:#fff;color:var(--la-control-text);font:400 var(--la-field-value-size)/20px Inter,Arial,sans-serif!important;letter-spacing:0}
body.lunora-admin-v3 #app textarea[data-la-field=textarea],body.lunora-admin-v3 :is(#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) textarea[data-la-field=textarea]{height:auto!important;min-height:140px!important;line-height:24px!important;resize:vertical}
body.lunora-admin-v3 [data-la-field]::placeholder{color:var(--la-control-muted);opacity:1}
body.lunora-admin-v3 :is(#app,#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) [data-la-field]:focus-visible{border-color:var(--la-primary)!important;outline:2px solid #5570f133;outline-offset:1px}
body.lunora-admin-v3 :is(#app,#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) [data-la-field][aria-invalid=true]{border-color:var(--la-error)!important}
body.lunora-admin-v3 :is(#app,#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) input[data-la-field]:invalid:not(:placeholder-shown){border-color:var(--la-error)!important}
body.lunora-admin-v3 [data-la-label=external]{font:400 12px/18px Inter,Arial,sans-serif!important;color:var(--la-control-text)!important}

/* The kit tabs share one underline and typography; diagnostics keep compact spacing. */
body.lunora-admin-v3 #app button[data-la-tab]{background:transparent!important;border:0!important;border-bottom:4px solid transparent!important;border-radius:0!important;min-height:43px!important;height:auto!important;padding:10px!important;color:#abafb1!important;font:400 16px/19px Inter,Arial,sans-serif!important;white-space:nowrap;box-shadow:none!important}
body.lunora-admin-v3 #app button[data-la-tab]:is([aria-selected=true],.journal-tab-active,.active,.is-active){border-bottom-color:var(--la-primary)!important;color:#2b2f32!important}
body.lunora-admin-v3 #app button[data-la-tab=compact]{padding:8px 10px!important;min-height:39px!important}
body.lunora-admin-v3 #app .profile-child-card{border-width:var(--admin-card-border)!important;border-radius:var(--admin-card-radius)!important;box-shadow:var(--admin-card-shadow)!important}
/* Validation already sets aria-invalid; color the existing compact surface. */
body.lunora-admin-v3 .v9-users-filter-dialog .v9-users-range:has([aria-invalid=true]){border-color:var(--la-error)!important}
body.lunora-admin-v3 .v9-users-filter-dialog :is(input,.lac-select-trigger,.lcal-trigger)[aria-invalid=true]{border-color:var(--la-error)!important}
body.lunora-admin-v3 #page-errors .errors-toolbar-main>.errors-expected-toggle{margin-left:0!important;white-space:normal!important;max-width:100%;align-items:center}
body.lunora-admin-v3 .error-context-count{margin:8px 0;color:#8b8d97;font:400 12px/18px Inter,Arial,sans-serif}
/* One shared compact density for adjacent fields, search, selects and actions. */
body.lunora-admin-v3 :is(#app,#ui-modal,#grant-modal,#lull-edit-modal,#partner-details-modal,#partner-support-modal,#billing-dialog,#dashboard-layout-dialog,#v21-profile-dialog) .la-search{display:inline-flex;align-items:center;gap:12px;box-sizing:border-box;min-width:0;width:375px;max-width:100%;height:var(--la-field-height)!important;min-height:var(--la-field-height)!important;padding:9px 12px!important;border:1px solid #cfd3d4!important;border-radius:8px;background:#fff;vertical-align:middle}
body.lunora-admin-v3 .la-search:focus-within{border-color:#5e6366!important;outline:2px solid #5570f122;outline-offset:1px}
body.lunora-admin-v3 .la-search>input{display:block!important;box-sizing:border-box!important;flex:1 1 0!important;min-width:0!important;max-width:100%!important;width:100%!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;font:400 14px/20px Inter,Arial,sans-serif!important;color:#5e6366!important}
body.lunora-admin-v3 .la-search>input::placeholder{color:#abafb1;opacity:1}
body.lunora-admin-v3 .la-search-glyph{display:flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;pointer-events:none}
body.lunora-admin-v3 .la-search-glyph>img:not(.v13-icon-source){display:block!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;opacity:1!important;visibility:visible!important}
/* Data tables use the kit's14px text, generous rows and header/footer rules. */
body.lunora-admin-v3 #app table[data-la-table]{border:0!important;border-collapse:collapse!important;font:400 14px/20px Inter,Arial,sans-serif!important;color:#6e7079!important;background:#fff!important}
body.lunora-admin-v3 #app table[data-la-table] :is(th,td){box-sizing:border-box!important;padding:14px 16px!important;border:0!important;background:transparent;font-size:14px!important;line-height:20px!important;vertical-align:middle!important}
body.lunora-admin-v3 #app table[data-la-table] th{height:52px!important;color:#2c2d33!important;font-weight:400!important;border-top:1px solid #e1e2e9!important;border-bottom:1px solid #e1e2e9!important}
body.lunora-admin-v3 #app table[data-la-table] tbody tr{min-height:48px;border:0!important}
body.lunora-admin-v3 #app table[data-la-table] tbody tr:last-child td{border-bottom:1px solid #e1e2e9!important}
body.lunora-admin-v3 #app table[data-la-table] tbody tr:hover{background:#f8f9ff!important}
body.lunora-admin-v3 #app table[data-la-table] :is(th,td):first-child{padding-left:0!important}
body.lunora-admin-v3 #app table[data-la-table] :is(th,td):last-child{padding-right:0!important}
body.lunora-admin-v3 #app :is(.users-table-panel>.card,#billing-data,.errors-table-wrap){padding-left:22px!important;padding-right:22px!important;border:0!important;border-radius:12px!important;box-shadow:none!important}
body.lunora-admin-v3 #page-users .v3-users-quick{padding-left:0!important;margin-left:0!important;align-items:end}
/* Icons belong to the component slot; native charts/flags are outside it. */
body.lunora-admin-v3 [data-la-button=normal] :is(.v13-icon,.management-asset,.ops-icon,.ops-icon>img),body.lunora-admin-v3 [data-la-button=normal]>:is(svg,img){width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important}
body.lunora-admin-v3 [data-la-button=table]{align-items:center;justify-content:center}
body.lunora-admin-v3 [data-la-button=table]>:is(svg,img,.v13-icon),body.lunora-admin-v3 [data-la-button=table] :is(.management-asset,.ops-icon,.ops-icon>img){width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex:0 0 16px!important}
body.lunora-admin-v3 [data-la-control-row]{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:var(--la-control-row-align,end)!important;gap:12px!important;min-width:0}
body.lunora-admin-v3 [data-la-control-row]>:is(.v3-page-field,label,.lcal-field,.lac-select){min-width:0}
body.lunora-admin-v3 [data-la-control-grid=presets]{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(104px,100%),1fr))!important;gap:12px!important}
body.lunora-admin-v3 .fam-add-row{align-items:end!important;gap:12px!important}
body.lunora-admin-v3 .fam-add-row>.fam-add-btn{height:var(--la-button-height)!important;align-self:end!important}
body.lunora-admin-v3 .v3-promo-library>.card-header[data-la-control-row]>.v3-page-field{flex:0 1 auto!important;min-width:0!important;margin:0!important}
body.lunora-admin-v3 .v3-promo-library>.card-header[data-la-control-row]>.v3-page-field:has(#promo-search-filter){width:min(375px,100%)!important;max-width:375px!important}
body.lunora-admin-v3 .v3-promo-library>.card-header[data-la-control-row]>.v3-page-field:has(#promo-status-filter){width:180px!important}
body.lunora-admin-v3 .v3-promo-library .la-search{width:100%}
@media(max-width:600px){body.lunora-admin-v3 #app .page-header{flex-wrap:wrap}body.lunora-admin-v3 #app [data-la-button=normal]{flex-shrink:1;min-width:0}body.lunora-admin-v3 #app .management-tabs{max-width:100%;overflow-x:auto}body.lunora-admin-v3 #app .management-diag-tabs{gap:0}}
}
