/* Shared presentation for Setup pages and their embedded edit forms. */
.setup-list-page, .setup-editor-page, .setup-form { width:100%; min-width:0; color:#242424; font-size:14px; font-weight:400; line-height:1.5; font-style:normal; }
.setup-list-page *, .setup-editor-page *, .setup-form * { box-sizing:border-box; }
.setup-list-card { background:#fff; border:1px solid #E1DFDD; border-radius:12px; overflow:hidden; }
.setup-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding:16px 18px; border-bottom:1px solid #E1DFDD; }
.setup-list-title { display:flex; align-items:center; gap:10px; }
.setup-list-title h2 { margin:0; color:#242424; font-size:16px; font-weight:700; line-height:1.4; font-style:normal; }
.setup-count { padding:3px 9px; border-radius:12px; background:#eff6fc; color:#0f6cbd; font-size:12px; font-weight:600; }
.setup-search { display:flex; align-items:center; gap:9px; width:300px; min-height:40px; margin:0; padding:0 11px; border:1px solid #8A8886; border-radius:7px; background:#fff; }
.setup-search svg { width:18px; height:18px; flex:none; color:#605E5C; }
.setup-search input { width:100%; min-width:0; padding:9px 0; border:0; outline:0; background:transparent; color:#242424; font-size:14px; font-weight:400; line-height:1.4; font-style:normal; }
.setup-search:focus-within { border-color:#0f6cbd; box-shadow:0 0 0 3px #0f6cbd12; }
.setup-table-scroll { height:min(62vh,580px); min-height:180px; overflow:auto; scrollbar-width:thin; scrollbar-color:#cbd7e7 transparent; }
.setup-table-scroll .setup-grid { width:100%; min-width:620px; table-layout:fixed; border-collapse:separate; border-spacing:0; margin:0; color:#363636; font-size:14px; font-weight:400; line-height:1.45; font-style:normal; }
.setup-table-scroll .setup-grid th { position:sticky; top:0; z-index:1; height:40px; padding:0 16px; background:#F5F6F7; border-bottom:1px solid #E6E6E6; color:#61676C; text-align:left; font-size:12px; font-weight:600; line-height:1.4; font-style:normal; }
.setup-table-scroll .setup-grid td { height:46px; padding:7px 16px; border-bottom:1px solid #EEEEEE; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:#fff; text-align:left; }
.setup-table-scroll .setup-grid th:first-child { width:48%; }
.setup-table-scroll .setup-grid th:nth-child(2) { width:27%; }
.setup-table-scroll .setup-grid th:last-child { width:25%; text-align:right; }
.setup-table-scroll .setup-grid .col-header-content { display:flex; align-items:center; width:100%; min-height:40px; margin:0; padding:0; justify-content:flex-start; }
.setup-table-scroll .setup-grid .col-title { padding:0; margin:0; color:inherit; font:inherit; text-align:inherit; }
.setup-table-scroll .setup-grid .col-title-text { text-transform:uppercase; }
.setup-table-scroll .setup-grid th:last-child .col-header-content { justify-content:flex-end; }
.setup-table-scroll .setup-grid td:first-child { font-weight:500; color:#292929; }
/* Override QuickGrid's default cell inset so names line up with their header. */
.setup-list-page .setup-table-scroll .setup-grid > thead > tr > th:first-child,
.setup-list-page .setup-table-scroll .setup-grid > tbody > tr > td:first-child {
    padding-left:16px;
    padding-right:16px;
    text-align:left;
}
.setup-list-page .setup-table-scroll .setup-grid > thead > tr > th:first-child .col-header-content,
.setup-list-page .setup-table-scroll .setup-grid > thead > tr > th:first-child .col-title {
    padding:0;
    margin:0;
    justify-content:flex-start;
    text-align:left;
}
.setup-table-scroll .setup-grid tbody tr:hover td { background:#EDF7FD; }
.setup-row-actions { display:flex; justify-content:flex-end; gap:7px; }
.setup-row-button { min-height:30px; padding:5px 11px; border:1px solid; border-radius:6px; background:#fff; font-size:13px; font-weight:600; line-height:1.35; font-style:normal; cursor:pointer; }
.setup-edit { color:#975600; border-color:#e8ca95; }
.setup-edit:hover { background:#fff6e6; border-color:#ba780b; }
.setup-delete { color:#c50f1f; border-color:#e9b2b8; }
.setup-delete:hover { background:#fff1f2; border-color:#c50f1f; }
.setup-list-footer { padding:12px 18px; border-top:1px solid #E1DFDD; color:#605E5C; font-size:13px; }
.setup-editor-card { max-width:860px; padding:24px; border:1px solid #dfe6ef; border-radius:12px; background:#fff; }
.setup-form-intro { padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid #edf1f6; }
.setup-form-intro h2 { margin:0 0 5px; font-size:16px; font-weight:700; color:#263d5c; }
.setup-form-intro p { margin:0; color:#718198; font-size:13px; }
.setup-edit-form { display:flex; flex-direction:column; gap:20px; margin:0; }
.setup-form .form_group { width:100%; min-width:0; display:flex; flex-direction:column; gap:7px; margin:0; }
.setup-form label { display:block; margin:0; padding:0; color:#405675; font-size:13px; font-weight:600; line-height:1.45; font-style:normal; }
.setup-form .form_group input { width:100%; min-height:42px; padding:10px 12px; border:1px solid #ccd8e6; border-radius:7px; background:#fff; color:#243b5a; outline:none; font-size:14px; font-weight:400; line-height:1.45; font-style:normal; }
.setup-form .form_group input::placeholder { color:#8a99ac; }
.setup-form .form_group input:focus { border-color:#0f6cbd; box-shadow:0 0 0 3px #0f6cbd14; }
.setup-form .validation-message { color:#c50f1f; font-size:12px; }
.setup-form .form_group input.invalid { border-color:#c50f1f; }
.setup-form .BaseSelectDropdown, .setup-form .selectBox { width:100%; min-width:0; }
.setup-form .selectBox { position:relative; }
.setup-form .selectInput { padding-right:52px !important; }
.setup-form .selectItemBox { border-radius:8px; border:1px solid #dfe6ef; box-shadow:0 8px 24px #18396118; }
.setup-form .submit_btn { display:flex; align-items:center; justify-content:flex-end; gap:9px; margin:4px 0 0; padding-top:18px; border-top:1px solid #edf1f6; }
.setup-form .submit_btn button { width:auto; min-width:100px; min-height:40px; padding:9px 18px; border:1px solid; border-radius:7px; font-size:14px; font-weight:600; line-height:1.4; font-style:normal; cursor:pointer; }
.setup-save { background:#0f6cbd; border-color:#0f6cbd !important; color:#fff; }
.setup-save:hover { background:#115ea3; border-color:#115ea3 !important; }
.setup-cancel { color:#526984; background:#fff; border-color:#ccd8e6 !important; }
.setup-cancel:hover { background:#f3f6fa; }
:is(.setup-row-button,.setup-save,.setup-cancel):focus-visible { outline:3px solid #9ac1ff; outline-offset:2px; }
@media(max-width:650px) { .setup-search { width:100%; } .setup-editor-card { padding:18px; } .setup-toolbar { padding:14px; } .setup-table-scroll .setup-grid { min-width:580px; } }

/* Preserve room for labelled Edit/Delete actions and their icons. */
.setup-table-scroll .setup-grid { min-width:760px; }
