/* Shared conventions for the admin and client portals. */
/* Every native checkbox, including dynamically inserted inputs, has the same pill design. */
input[type="checkbox"],input.form-check-input[type="checkbox"] {
  appearance:none; -webkit-appearance:none; position:relative; display:inline-block;
  flex:0 0 50px; width:50px; min-width:50px; height:30px; padding:0;
  border:2px solid #92919d; border-radius:999px !important; background-color:#f3f2f6;
  background-image:none !important; vertical-align:middle; cursor:pointer;
  transition:border-color .15s,background-color .15s; box-shadow:none;
}
input[type="checkbox"]::before {
  content:""; position:absolute; width:16px; height:16px; inset-block-start:5px; inset-inline-start:5px;
  border-radius:50%; background:#92919d; transition:inset-inline-start .15s,background-color .15s;
}
input[type="checkbox"]:checked,input.form-check-input[type="checkbox"]:checked {
  border-color:var(--bs-primary,#696cff); background-color:var(--bs-primary,#696cff);
}
input[type="checkbox"]:checked::before { inset-inline-start:25px; background:#fff; }
input[type="checkbox"]:indeterminate::before { inset-inline-start:15px; }
input[type="checkbox"]:hover:not(:disabled) { border-color:var(--bs-primary,#696cff); }
input[type="checkbox"]:focus-visible { outline:3px solid var(--bs-primary,#696cff); outline-offset:3px; }
input[type="checkbox"]:disabled { opacity:.45; cursor:default; }
.form-check:has(input[type="checkbox"]) { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding-inline-start:0; min-height:38px; }
.form-check input[type="checkbox"] { float:none; margin:0; }
.form-check:has(input[type="checkbox"]) .form-check-label { flex:1 1 0; min-width:0; }
@media(prefers-reduced-motion:reduce) { input[type="checkbox"],input[type="checkbox"]::before { transition:none; } }
@media(forced-colors:active) { input[type="checkbox"] { border-color:ButtonText; } input[type="checkbox"]::before { background:ButtonText; } input[type="checkbox"]:checked { background:Highlight; border-color:Highlight; } input[type="checkbox"]:checked::before { background:HighlightText; } }
.portal-container { width:100%; inline-size:100%; max-width:none !important; max-inline-size:none !important; margin-inline:0; padding-inline:16px; }
/* The header joins the menu and the right edge, as in NewERP. */
.layout-navbar.portal-navbar,.public-header.portal-navbar { width:100%; inline-size:100%; max-inline-size:none; margin:0; border-radius:0; box-shadow:none; border-bottom:1px solid #e5e5ef; background:#fff; padding:12px 16px; min-height:70px; height:auto; }
main.portal-container.container-p-y { padding-top:16px !important; padding-bottom:24px !important; }
.portal-navbar .navbar-caption { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.portal-navbar .portal-account-actions { flex-shrink:0; }
.portal-navbar form { margin:0; }
.portal-navbar .account-name { display:inline-flex !important; }
.site-page-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.site-page-header h1 { display:flex; align-items:center; gap:8px; flex:1 1 0; min-width:0; margin:0; }
.site-page-header h1 > i { flex-shrink:0; }
.site-page-header h1 span { min-width:0; overflow-wrap:anywhere; }
.site-page-header .page-header-actions { display:flex; align-items:center; justify-content:flex-start; gap:8px; flex:0 1 auto; min-width:0; max-width:65%; overflow-x:auto; padding:4px; }
.page-header-actions > * { flex-shrink:0; }
.page-header-actions > div,.page-header-actions .action-group { display:flex; align-items:center; flex-wrap:nowrap; gap:8px; }
.page-header-actions form { margin:0; }
.page-header-actions .action-group { margin:0 !important; }
@media(max-width:575px) { .site-page-header { gap:8px; } .site-page-header h1 { font-size:20px; } }
/* Short bars share one row when they fit and wrap as their container narrows. */
.site-filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; max-width:100%; min-width:0; overflow:visible; padding:3px 3px 8px; }
.site-filter-bar > label,.site-filter-bar > div { position:relative; flex:1 1 180px; width:auto; min-width:0; max-width:100%; margin:0; }
.site-filter-bar > .result-limit { flex:0 1 160px; min-width:0; }
.site-filter-bar .form-label { margin-bottom:6px; white-space:normal; }
.site-filter-bar .form-control,.site-filter-bar .form-select { width:100%; min-width:0; max-width:100%; }
.site-filter-bar > .form-control,.site-filter-bar > .form-select { flex:1 1 200px; min-width:0; width:auto; }
.site-filter-bar > .btn { flex:0 0 auto; }
.site-filter-bar > .site-date-range { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; flex:1 1 480px; min-width:0; }
.site-date-range > label { flex:1 1 180px; margin:0; min-width:0; }
.site-date-range-choose { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; white-space:nowrap; }
.site-date-range-table { min-width:760px; }
.site-date-range-table th:first-child { width:50%; }
.site-date-range-table td { vertical-align:top; }
.site-date-range-table .date-range-name { display:flex; align-items:center; gap:8px; font-size:15px; }
.site-date-range-table .date-range-name i { color:#7259f9; flex-shrink:0; }
.site-date-range-table .date-range-bound { min-width:155px; font-variant-numeric:tabular-nums; }
.site-date-range-table .date-range-current { outline:2px solid #7259f9; outline-offset:-2px; background:#f5f3ff; }
.site-filter-bar > .form-check { flex:0 1 auto; min-width:0; }
.site-filter-bar .enum-field-info { position:absolute; top:0; inset-inline-end:0; margin:0; min-height:24px; height:24px; width:24px; }
.site-filter-bar > .site-filter-refresh { flex:0 0 38px; width:38px; height:38px; margin-inline-start:auto; }
@media(max-width:1199px) { .site-filter-bar > .site-filter-refresh { flex-basis:44px; width:44px; height:44px; } }
/* Grouped filters render immediately without scripts, including on narrow screens. */
.site-filter-bar.site-filter-bar-grouped { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr)); align-items:start; gap:16px; overflow:visible; padding:0; }
.site-filter-group { min-width:0; margin:0; padding:14px; border:1px solid #e8e5f1; border-radius:8px; background:#faf9ff; }
.site-filter-group > legend { float:none; width:auto; max-width:100%; margin:0 0 10px; padding:0 4px; color:#566076; font-size:13px; font-weight:600; }
.site-filter-group-fields { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; min-width:0; }
.site-filter-group-fields > label,.site-filter-group-fields > div { position:relative; flex:1 1 180px; width:auto; min-width:0; margin:0; }
.site-filter-group-fields > .btn { flex:0 0 auto; }
.site-filter-bar-grouped .site-date-range { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; flex:1 1 100%; width:100%; min-width:0; }
.site-filter-bar-grouped .site-date-range > label { flex:1 1 180px; min-width:0; }
.site-filter-bar-grouped > .site-filter-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:flex-end; gap:12px; min-width:0; margin:0; padding-top:12px; border-top:1px solid #e9e7f0; }
.site-filter-actions > label,.site-filter-actions > .result-limit { position:relative; flex:0 1 220px; min-width:0; margin:0; }
.site-filter-actions > .btn { flex:0 0 auto; }
.site-filter-actions > .site-filter-refresh { width:38px; height:38px; }
/* Ticket and transfer criteria stay together on wide screens and wrap without scrolling. */
.site-filter-bar-inline > label,.site-filter-bar-inline > div { flex:1 1 150px; }
.site-filter-bar-inline > .site-filter-toggle { display:flex; flex-direction:column; align-items:flex-start; gap:6px; flex:0 1 auto; }
.site-filter-toggle > span { white-space:normal; }
.site-filter-toggle > input[type="checkbox"] { flex:none; margin:4px 0; }
.site-filter-bar-inline > .site-filter-actions { display:flex; align-items:flex-end; justify-content:flex-end; gap:12px; flex:0 1 auto; margin-inline-start:auto; }
.site-filter-bar-inline .site-filter-actions > .result-limit { flex:0 1 160px; width:160px; }
.site-filter-bar-grouped .form-label { white-space:normal; }
@media(max-width:1199px) { .site-filter-actions > .site-filter-refresh { width:44px; height:44px; } }
@media(max-width:575px) { .site-filter-bar.site-filter-bar-grouped { gap:12px; } .site-filter-group { padding:12px; } .site-filter-actions > label,.site-filter-actions > .result-limit { flex:1 1 180px; } }
/* A distinct introduction precedes the filters and list on remade portal pages. */
.site-page-description { padding:24px; border:1px solid #e3ddfa; border-radius:14px; background:linear-gradient(120deg,#f2eeff,#f6faff 70%,#fff); box-shadow:0 3px 12px #333c5208; }
.site-page-description p { line-height:1.75; margin-bottom:12px; overflow-wrap:anywhere; }
.site-page-description > p { max-width:115ch; }
.site-page-description .page-description-lead { font-size:16px; color:#414b60; }
.site-page-description > p:last-child { margin-bottom:0; }
.page-description-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:20px; }
.page-description-item { min-width:0; padding:18px; border:1px solid #e8e3f5; border-radius:10px; background:#ffffffd9; }
.page-description-item h2 { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:16px; line-height:1.5; }
.page-description-item h2 i { color:#7259f9; font-size:22px; flex-shrink:0; }
.page-description-item p:last-child { margin-bottom:0; }
@media(max-width:991px) { .page-description-grid { grid-template-columns:1fr; } }
@media(max-width:575px) { .site-page-description { padding:18px; } .page-description-grid { gap:12px; margin-top:16px; } .page-description-item { padding:16px; } }
/* All page explanations share a native accordion, usable before scripts load. */
details.site-page-help { display:block; width:100%; max-width:none; min-width:0; margin:0 0 24px; padding:0; border:1px solid #e9e7f0; border-inline-start:4px solid #7259f9; border-radius:8px; background:#fff; box-shadow:0 3px 12px #333c5208; }
.site-page-help > .site-page-help-summary { display:flex; align-items:center; gap:8px; min-height:60px; padding:16px 22px; color:#566076; font-size:14px; font-weight:500; line-height:1.5; list-style:none; cursor:pointer; }
.site-page-help-summary::-webkit-details-marker { display:none; }
.site-page-help-summary > span { min-width:0; overflow-wrap:anywhere; }
.site-page-help-summary > i { flex-shrink:0; }
.site-page-help-summary > .site-page-help-chevron { margin-inline-start:auto; transition:transform .15s ease; }
.site-page-help[open] > .site-page-help-summary { border-bottom:1px solid #e9e7f0; }
.site-page-help[open] > .site-page-help-summary > .site-page-help-chevron { transform:rotate(180deg); }
.site-page-help > .site-page-help-summary:hover { background:#f8f7ff; }
.site-page-help > .site-page-help-summary:focus-visible { outline:3px solid #7259f9; outline-offset:-3px; border-radius:6px; }
.site-page-help > .site-page-help-body { padding:24px; min-width:0; overflow-wrap:anywhere; }
.site-page-help-body > .card-body { padding:0 !important; }
.site-page-help-body > p { max-width:115ch; }
.site-page-help-body > :last-child { margin-bottom:0; }
@media(max-width:575px) { .site-page-help > .site-page-help-summary { padding:14px 16px; } .site-page-help > .site-page-help-body { padding:18px; } }
@media(prefers-reduced-motion:reduce) { .site-page-help-summary > .site-page-help-chevron { transition:none; } }
.standard-action { min-width:36px; width:36px !important; height:36px; padding:0 !important; flex-shrink:0; }
.standard-action i { font-size:20px; }
.table .standard-action { min-width:34px !important; width:34px !important; height:34px; }
/* Override the theme's neutral table icon color with each button's variant and state. */
.table .btn.btn-icon { color:var(--bs-btn-color); }
.table .btn.btn-icon:hover,.table .btn.btn-icon:focus-visible { color:var(--bs-btn-hover-color); }
.table .btn.btn-icon:active,.table .btn.btn-icon.active,.table .btn.btn-icon.show { color:var(--bs-btn-active-color); }
.table .btn.btn-icon:disabled,.table .btn.btn-icon.disabled { color:var(--bs-btn-disabled-color); }
/* Destructive actions retain a red icon and outline on white, including in tables. */
.btn.btn-outline-danger {
  --bs-btn-color:var(--bs-danger); --bs-btn-bg:#fff; --bs-btn-border-color:var(--bs-danger);
  --bs-btn-hover-color:var(--bs-danger); --bs-btn-hover-bg:#fff; --bs-btn-hover-border-color:var(--bs-danger);
  --bs-btn-active-color:var(--bs-danger); --bs-btn-active-bg:#fff; --bs-btn-active-border-color:var(--bs-danger);
  --bs-btn-disabled-color:var(--bs-danger); --bs-btn-disabled-bg:#fff; --bs-btn-disabled-border-color:var(--bs-danger);
  color:var(--bs-danger); background-color:#fff; border-color:var(--bs-danger);
}
.btn.btn-outline-danger:hover,.btn.btn-outline-danger:focus-visible,.btn.btn-outline-danger:active,.btn.btn-outline-danger.active {
  color:var(--bs-danger); background-color:#fff; border-color:var(--bs-danger);
}
.btn.btn-outline-danger i { color:inherit; }
/* Installation uses a visible white glyph on the shared purple primary button. */
.btn.relay-install-action { color:#fff; }
.btn.relay-install-action .icon-base { color:inherit; block-size:22px; inline-size:22px; font-size:22px; }
.table td { overflow-wrap:normal; word-break:normal; }
.table td.text-break,.table td code { overflow-wrap:anywhere; }
.table th { white-space:nowrap; }
/* Releases is the reference for every portal column header, including small tables. */
.table.table > thead > tr > th {
  --bs-table-bg:#fff; --bs-table-bg-type:transparent; --bs-table-bg-state:transparent;
  padding:1.161rem 1.25rem; vertical-align:middle; line-height:28px;
  color:var(--bs-heading-color); background:#fff; font-family:var(--bs-body-font-family); font-size:.8125rem; font-weight:500;
  letter-spacing:.2px; text-transform:uppercase;
  border:0; border-bottom:var(--bs-border-width) solid var(--bs-table-border-color); box-shadow:none;
}
/* Data starts on the same horizontal position as its column label. */
.table > tbody > tr > td { padding-inline:1.25rem; }
.table > thead > tr > th .enum-info { vertical-align:top; }
.table > thead > tr > th > a { display:inline-flex; align-items:center; gap:4px; vertical-align:top; }
.table td .d-flex,.table td .action-group { gap:6px !important; align-items:center; }
.table td form { margin-bottom:0; }
.site-list { width:100%; margin-bottom:0; }
/* A list inside a card body fills the card, while its surrounding content stays padded. */
.card-body > .table-responsive:has(> .site-list) { width:calc(100% + var(--bs-card-spacer-x) + var(--bs-card-spacer-x)); max-width:none; margin-inline:calc(-1 * var(--bs-card-spacer-x)); }
.card-body > .table-responsive:first-child:has(> .site-list) { margin-block-start:calc(-1 * var(--bs-card-spacer-y)); }
.card-body > .table-responsive:last-child:has(> .site-list) { margin-block-end:calc(-1 * var(--bs-card-spacer-y)); }
.site-list th:first-child { min-width:220px; }
.site-list-identity { display:flex; align-items:center; gap:8px; }
.site-list-identity > .enum-value { flex-shrink:0; }
.site-list-identity > :last-child { min-width:0; overflow-wrap:anywhere; }
.site-copy-identity { display:flex; align-items:center; gap:8px; }
.site-copy-identity > strong { min-width:0; overflow-wrap:anywhere; }
.site-copy-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.site-copy-id { display:inline-flex; align-items:center; gap:4px; height:34px; white-space:nowrap; }
.site-copy-id i { font-size:20px; }
.site-copy-identity > strong:focus-visible { outline:3px solid #7259f9; outline-offset:3px; border-radius:3px; }
.site-list-actions { text-align:right; white-space:nowrap; width:1%; }
.site-list-actions > div { display:flex; justify-content:flex-end; flex-wrap:nowrap !important; gap:6px; }
.site-list[data-list-actions] th:last-child,.site-list[data-list-actions] td:last-child:not([colspan]) { text-align:right; white-space:nowrap; width:1%; }
.site-list[data-list-actions] td:last-child > div { display:flex; justify-content:flex-end; flex-wrap:nowrap !important; gap:6px; }
.site-friend-table th:first-child { min-width:180px; }
/* Relay metrics stay compact; the dedicated URL column takes the remaining space. */
.site-relay-table th:first-child { min-width:120px; }
.site-relay-table th:not(.site-relay-url),.site-relay-table td:not(.site-relay-url):not([colspan]) { width:1%; white-space:nowrap; }
.site-relay-table .site-relay-url { min-width:240px; overflow-wrap:anywhere; }
.site-transfer-table { min-width:1250px; }
.site-transfer-table th:first-child { min-width:180px; }
.site-transfer-table .site-transfer-device { min-width:140px; max-width:220px; overflow-wrap:anywhere; }
.site-transfer-table .site-transfer-device small { margin-top:4px; }
.site-transfer-table .text-nowrap { font-variant-numeric:tabular-nums; }
.site-list .site-list-message { white-space:pre-wrap; overflow-wrap:anywhere; min-width:260px; max-width:560px; }
.site-list .site-list-message details { white-space:normal; }
.site-ticket-table > thead > tr > th { vertical-align:middle; }
.site-ticket-heading { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.site-ticket-table th:last-child .site-ticket-heading { justify-content:flex-end; }
/* Reserve the status icon and at least five digits without splitting ticket numbers. */
.site-ticket-table th:first-child,.site-ticket-table td:first-child { min-width:150px; width:1%; }
.site-ticket-table .site-list-identity > strong { min-width:5ch; flex-shrink:0; white-space:nowrap; overflow-wrap:normal; font-variant-numeric:tabular-nums; }
.site-ticket-table .site-ticket-status,.site-ticket-table .site-ticket-kind,.site-ticket-table .site-ticket-response,.site-ticket-table .site-ticket-date { width:1%; white-space:nowrap; }
.site-ticket-table .site-ticket-date { min-width:240px; font-variant-numeric:tabular-nums; }
.site-ticket-table .site-ticket-version,.site-ticket-table .site-ticket-system { width:1%; white-space:nowrap; }
.site-ticket-table .site-ticket-message { min-width:220px; max-width:560px; overflow-wrap:anywhere; }
.site-ticket-message-preview { display:flex; align-items:center; gap:10px; }
.site-ticket-table .site-ticket-message-text { flex:1; min-width:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; white-space:pre-wrap; }
.site-ticket-message-open { flex-shrink:0; min-width:34px; font-weight:700; }
.site-ticket-message-full { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; }
.site-ticket-table .site-ticket-author { min-width:190px; width:190px; max-width:260px; overflow-wrap:anywhere; }
.site-ticket-login:focus-visible { outline:2px solid #7259f9; outline-offset:3px; border-radius:3px; }
/* Ticket detail: framed information and response, then compact attachments. */
.site-ticket-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:20px; }
.site-ticket-panel { min-width:0; padding:24px; border:1px solid #e4e1ef; border-radius:14px; box-shadow:0 3px 14px #333c5208; }
.site-ticket-panel-title { display:flex; align-items:center; gap:10px; margin:0 0 20px; font-size:18px; line-height:1.5; }
.site-ticket-panel-title > i { color:#7259f9; flex-shrink:0; font-size:24px; }
.site-ticket-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; margin:0; }
.site-ticket-facts > div { min-width:0; }
.site-ticket-facts dt { color:#697386; font-size:12px; font-weight:600; margin-bottom:5px; }
.site-ticket-facts dd { margin:0; color:#414b60; overflow-wrap:anywhere; }
.site-ticket-facts dd:empty::after { content:'—'; color:#697386; }
.site-ticket-information-block { margin-top:20px; padding-top:20px; border-top:1px solid #eeebf5; }
.site-ticket-information-block h3 { margin-bottom:14px; }
.site-ticket-technical-content { margin-top:16px; }
.site-ticket-technical-content summary { cursor:pointer; font-weight:600; }
.site-ticket-technical-content pre { margin:12px 0 0; padding:14px; border-radius:8px; background:#f7f6fb; white-space:pre-wrap; overflow-wrap:anywhere; max-height:320px; overflow:auto; }
.site-ticket-response-panel { background:linear-gradient(135deg,#fbfaff,#fff 65%); }
.site-ticket-response-panel .documentation-body { min-width:0; overflow-wrap:anywhere; }
.site-ticket-response-panel .documentation-body pre { max-width:100%; overflow:auto; }
.site-ticket-response-panel .documentation-body table { display:block; max-width:100%; overflow:auto; }
.site-ticket-empty { padding:20px; margin:0; border:1px dashed #ded8f1; border-radius:10px; color:#697386; }
.site-ticket-image-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.site-ticket-image { display:flex; flex-direction:column; min-width:0; padding:0; overflow:hidden; border:1px solid #e4e1ef; border-radius:10px; background:#f7f6fb; color:#414b60; cursor:pointer; text-align:start; transition:border-color .15s,box-shadow .15s; }
.site-ticket-image:hover { border-color:#7259f9; box-shadow:0 3px 12px #7259f922; }
.site-ticket-image:focus-visible { outline:3px solid #7259f9; outline-offset:3px; }
.site-ticket-image > img { display:block; width:100%; height:140px; object-fit:contain; }
.site-ticket-image > span { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; padding:10px 12px; background:#fff; font-size:12px; }
.site-ticket-image > span i { color:#7259f9; flex-shrink:0; }
.site-ticket-image-modal .modal-content { height:calc(100dvh - 48px); }
.site-ticket-image-modal .modal-body { display:flex; flex-direction:column; min-height:0; overflow:auto; }
.site-ticket-image-stage { display:flex; align-items:center; justify-content:center; flex:1; min-height:0; border-radius:10px; background:#f7f6fb; overflow:hidden; }
.site-ticket-image-stage > img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.site-ticket-image-stage > img[hidden] { display:none; }
.site-ticket-image-stage > p { margin:0; padding:24px; }
@media(max-width:991px) {
  .site-ticket-detail-grid { grid-template-columns:1fr; gap:16px; }
  .site-ticket-image-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:575px) {
  .site-ticket-panel { padding:18px; }
  .site-ticket-facts { grid-template-columns:1fr; gap:14px; }
  .site-ticket-image-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .site-ticket-image > img { height:110px; }
  .site-ticket-image-modal .modal-content { height:calc(100dvh - 24px); }
}
.site-list-toolbar .site-filter-bar { padding-bottom:8px; }
/* Keep the same columns on mobile; only the grid scrolls horizontally. */
@media(max-width:767px) {
  .table-responsive > .site-list { min-width:720px; }
  .table-responsive > .site-list.responsive-table { display:table; }
  .site-list.responsive-table thead { display:table-header-group; }
  .site-list.responsive-table tbody { display:table-row-group; }
  .site-list.responsive-table tr { display:table-row; padding:0; }
  .site-list.responsive-table th,.site-list.responsive-table td { display:table-cell; }
  .site-list.responsive-table td { padding-block:12px; }
  .site-list.responsive-table td::before { display:none; }
}
.enum-value { display:inline-flex; gap:6px; align-items:center; border:1px solid transparent; border-radius:6px; padding:4px 9px; font-size:13px; line-height:1.4; font-weight:600; white-space:nowrap; max-width:100%; cursor:pointer; }
.enum-value i { font-size:17px; flex-shrink:0; }
.enum-icon-only { justify-content:center; width:34px; min-width:34px; height:34px; padding:0; flex-shrink:0; }
.enum-icon-only i { font-size:23px; }
.enum-value:hover { border-color:currentColor; }
.enum-value:focus-visible,.enum-info:focus-visible { outline:3px solid #7259f9; outline-offset:3px; }
.enum-info { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; border:0; border-radius:50%; background:transparent; color:#675bbb; vertical-align:middle; cursor:pointer; flex-shrink:0; }
.enum-info:hover { background:#ede9ff; }
.enum-info i { font-size:18px; }
.enum-field-info { margin-top:6px; }
.enum-color-primary { color:#5945c0 !important; background-color:#ede9ff !important; }
.enum-color-info { color:#08617d !important; background-color:#e0f4fa !important; }
.enum-color-success { color:#28693e !important; background-color:#e5f4e9 !important; }
.enum-color-warning { color:#82530b !important; background-color:#fff2d9 !important; }
.enum-color-danger { color:#a12c35 !important; background-color:#fce6e8 !important; }
.enum-color-secondary { color:#535c70 !important; background-color:#edf0f5 !important; }
.enum-help-table td { vertical-align:top; line-height:1.65; }
.enum-help-table .enum-current-row { outline:2px solid #7259f9; outline-offset:-2px; }
.enum-help-table th:first-child,.enum-help-table td:first-child { width:70px; }
.enum-help-table th:nth-child(2),.enum-help-table td:nth-child(2) { width:220px; }
#enum-help-modal .modal-header { align-items:center; }
#enum-help-modal .modal-title { overflow-wrap:anywhere; }
/* Every portal dialog follows the same logo/title, description and content frame. */
.modal .modal-dialog { width:calc(100% - 32px); max-width:1140px; margin:24px auto; }
.modal .modal-content { background:#fff; border:0; border-radius:8px; box-shadow:0 12px 40px #26304433; }
.modal .modal-header { display:flex; align-items:center; gap:16px; padding:28px 30px 12px; border:0; }
.modal .modal-header > img { flex-shrink:0; width:42px; height:42px; margin:0 !important; object-fit:contain; }
.modal .modal-title { margin:0; min-width:0; font-size:24px; line-height:1.4; overflow-wrap:anywhere; }
.modal .modal-header .btn-close { position:static; margin:0 0 0 auto; transform:none; box-shadow:none; background-color:transparent; flex-shrink:0; opacity:.6; }
.modal .modal-header .btn-close:hover,.modal .modal-header .btn-close:focus-visible { opacity:1; }
.modal .modal-body { padding:18px 30px 26px; }
.modal .modal-body p,.modal .modal-body td { line-height:1.65; }
.modal .modal-footer { padding:0 30px 26px; border:0; gap:8px; }
/* Background tooltips can still be fading out when a dialog opens. */
body.modal-open > .tooltip { visibility:hidden !important; }
/* Text-only tooltips describe controls without blocking neighbouring actions. */
.tooltip,.tooltip * { pointer-events:none !important; }
.admin-page-description { border-left:4px solid #7259f9; }
.admin-page-description p,.admin-page-description li { line-height:1.7; }
.admin-page-description ul { padding-left:20px; margin:0; }
.admin-page-description li + li { margin-top:5px; }
.admin-page-description .page-effects { background:#f5f3ff; border-radius:8px; padding:16px; height:100%; }
@media(max-width:1199px) {
  .standard-action,.table .standard-action { min-width:44px !important; width:44px !important; height:44px; }
  .table.table > thead > tr > th { line-height:44px; }
  .enum-value,.enum-info { min-height:44px; }
  .enum-icon-only { width:44px; min-width:44px; height:44px; }
  .enum-info { width:44px; }
}
@media(max-width:575px) {
  .modal .modal-dialog { width:calc(100% - 24px); margin:12px auto; }
  .modal .modal-header { padding:20px 18px 10px; gap:12px; }
  .modal .modal-title { font-size:21px; }
  .modal .modal-body { padding:14px 18px 20px; }
  .modal .modal-footer { padding:0 18px 20px; }
  .portal-container { padding-inline:12px; }
  .public-header.portal-navbar { justify-content:space-between; gap:8px; }
  .enum-help-table th:nth-child(2),.enum-help-table td:nth-child(2) { width:auto; }
  .enum-help-table .enum-value { white-space:normal; }
  .enum-help-table { min-width:480px; }
}

.language-flag { background: transparent; border: 0; }
.language-flag img,.language-table img { object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #0002; }
.language-current { background: #f0eeff; }
.language-table td { vertical-align: middle; padding: .85rem; }
.delete-target { background: #fff1ef; border: 1px solid #ffd0c9; overflow-wrap: anywhere; }
.version-history-table { min-width: 720px; }
.version-history-file { max-width: 330px; }
.version-history-actions { display:flex; justify-content:flex-end; gap:8px; }

/* File selection stays local until the form is submitted. */
.site-file-picker { position:relative; min-width:0; }
.site-file-picker [hidden] { display:none !important; }
.site-file-picker.is-enhanced input[type="file"] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.site-file-dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; width:100%; min-height:260px; padding:32px 24px; border:2px dashed #c5bdf0; border-radius:16px; background:linear-gradient(135deg,#faf9ff,#f3f0ff); color:#40445d; font:inherit; text-align:center; cursor:pointer; transition:border-color .15s,background-color .15s,box-shadow .15s; }
.site-file-dropzone strong { font-size:20px; line-height:1.5; }
.site-file-dropzone-icon { display:grid; place-items:center; width:68px; height:68px; margin-bottom:4px; border-radius:20px; background:#e9e3ff; color:#7259f9; box-shadow:0 5px 15px #7259f915; }
.site-file-dropzone-icon i { font-size:38px; }
.site-file-dropzone-hint { color:#697089; }
.site-file-browse { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; margin-top:8px; border-radius:8px; background:#7259f9; color:#fff; font-weight:600; box-shadow:0 3px 8px #7259f926; }
.site-file-browse i { font-size:20px; }
.site-file-dropzone:hover,.site-file-picker.is-dragging .site-file-dropzone { border-color:#7259f9; background:#eee9ff; box-shadow:inset 0 0 0 1px #7259f933; }
.site-file-picker.is-dragging .site-file-dropzone-icon { background:#7259f9; color:#fff; }
.site-file-dropzone:focus-visible,.site-file-remove:focus-visible,.site-file-clear:focus-visible { outline:3px solid #7259f9; outline-offset:4px; }
.site-file-picker.has-error .site-file-dropzone { border-color:#cc3e4c; }
.site-file-limits { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0 20px; color:#697089; font-size:13px; }
.site-file-format { padding:3px 8px; border:1px solid #ded8f5; border-radius:5px; background:#f5f2ff; color:#6652b4; font-size:11px; font-weight:700; letter-spacing:.04em; }
.site-file-error { margin:0 0 16px; padding:12px 14px; border:1px solid #efc5ca; border-radius:8px; background:#fff5f5; color:#a12c35; overflow-wrap:anywhere; }
.site-file-selection { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.site-file-summary { margin:0; color:#697089; font-size:14px; }
.site-file-clear { display:inline-flex; align-items:center; gap:5px; min-height:40px; padding:6px 8px; border:0; border-radius:6px; background:transparent; color:#6652b4; font:inherit; font-size:13px; cursor:pointer; }
.site-file-clear:hover { background:#f0ecff; }
.site-file-clear i { font-size:20px; }
.site-file-list { display:grid; gap:10px; max-height:360px; overflow-y:auto; padding:4px; margin:12px -4px 0; list-style:none; }
.site-file-row { display:flex; align-items:center; gap:14px; padding:12px 14px; border:1px solid #e4e1ee; border-radius:10px; background:#fff; }
.site-file-icon { display:grid; place-items:center; flex-shrink:0; width:42px; height:46px; border-radius:8px; background:#f0ecff; color:#7259f9; }
.site-file-icon i { font-size:26px; }
.site-file-details { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.site-file-details strong { font-size:14px; color:#40445d; overflow-wrap:anywhere; }
.site-file-details > span { color:#697089; font-size:12px; }
.site-file-remove { display:grid; place-items:center; flex-shrink:0; width:40px; height:40px; border:1px solid #e4e1ee; border-radius:8px; background:#fff; color:#697089; cursor:pointer; }
.site-file-remove:hover { color:#7259f9; border-color:#c5bdf0; background:#faf9ff; }
.site-file-remove i { font-size:24px; }
@media(max-width:575px) {
  .site-file-dropzone { min-height:240px; padding:24px 16px; }
  .site-file-dropzone strong { font-size:18px; }
  .site-file-row { gap:10px; padding:10px; }
  .site-file-clear,.site-file-remove { min-width:44px; min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .site-file-dropzone { transition:none; } }
