.perun-config-modal{position:fixed;inset:0;z-index:10000;background:#0006;align-items:center;justify-content:center;padding:10px;box-sizing:border-box}.perun-config-modal .modal-content{background:#a9def8;color:#151515;border:1px solid #7c929d;border-radius:5px;font:13px 'Segoe UI',Arial,sans-serif;max-width:none!important;overflow:hidden}.perun-config-modal .modal-header,.perun-config-modal .modal-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px}
.perun-config-modal .modal-header{padding:8px 12px;background:linear-gradient(#eaf4fa,#b8cddb);border-bottom:1px solid #91a5b2}
.perun-config-modal .modal-header h2{font-size:15px;margin:0}.perun-config-modal button,.perun-fl-window button{font:12px 'Segoe UI',Arial,sans-serif;color:#16232b;background:linear-gradient(#fff,#ecf1f5);border:1px solid #a6bdcc;border-radius:3px;padding:4px 16px;cursor:pointer}
.perun-config-modal button:disabled,.perun-fl-window button:disabled{color:#697985;cursor:default}.perun-config-modal button:focus-visible,.perun-fl-window button:focus-visible{outline:2px solid #008aff}
.perun-fl-tabs{display:flex!important;gap:0!important;padding:0!important;border-bottom:1px solid #fff}.perun-fl-tabs button{border-radius:0;padding:3px 14px}.perun-fl-tabs button[aria-selected=true]{font-weight:700;background:#fff}
.perun-fl-content{padding:0!important;background:#fafafa}.perun-fl-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;background:#a9def8}.perun-fl-table th{font-weight:400;background:#fff;text-align:left}.perun-fl-table th,.perun-fl-table td{border:1px solid #dfedf5;padding:3px 5px;height:23px;box-sizing:border-box}.perun-fl-table tbody tr:nth-child(even){background:#b9e4fb}.perun-fl-table tr:focus-within{background:#9bcce4}.perun-fl-table td button{padding:1px 12px;width:100%}
.perun-fl-table input[type=checkbox]{margin:0;vertical-align:middle;accent-color:#0781c1}.perun-fl-table .perun-fl-empty td{height:23px}.perun-fl-value{font-size:12px;min-height:21px;box-sizing:border-box;padding:2px 5px;border:1px solid #b7cbd6;background:#d1edfc;color:#182a35;overflow-wrap:anywhere;white-space:pre-wrap}
.perun-fl-comm{max-width:680px;margin:80px auto 35px;padding:12px}.perun-fl-line{display:grid;grid-template-columns:minmax(150px,240px) 1fr;align-items:center;gap:8px;margin:6px 0}.perun-fl-check{display:flex;gap:7px;align-items:center;margin:7px 0}.perun-fl-check input{accent-color:#0781c1}.perun-fl-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:25px 0 12px}.perun-fl-mode{border:1px solid #c6d2da;padding:8px 12px;max-width:350px}.perun-fl-mode legend{font-size:12px}
.perun-fl-window-overlay{position:fixed;inset:0;z-index:11000;display:flex;align-items:center;justify-content:center;background:#0002;padding:15px}.perun-fl-window{background:#a9def8;border:1px solid #93aab7;border-radius:8px;box-shadow:0 15px 35px #0005;color:#151515;font:12px 'Segoe UI',Arial,sans-serif;max-width:95vw;max-height:88vh;overflow:auto;min-width:310px}.perun-fl-window>header{padding:6px 10px;background:#eef5f8;display:flex;justify-content:space-between;align-items:center;border-radius:8px 8px 0 0}.perun-fl-window>header button{padding:0 5px;background:none;border:none;font-size:18px}.perun-fl-window-body{padding:10px;min-width:290px}.perun-fl-window footer{padding:8px;display:flex;justify-content:flex-end;gap:8px}.perun-fl-window .perun-fl-line{grid-template-columns:minmax(140px,220px) minmax(170px,1fr)}
.perun-fl-note{font-size:12px;padding:8px 12px;color:#344b5b;white-space:normal}.perun-fl-raw{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#e5f4fc;padding:8px}.perun-fl-gsm{display:grid;grid-template-columns:1fr 1fr;gap:25px}.perun-fl-gsm .perun-fl-line{grid-template-columns:minmax(120px,180px) minmax(130px,1fr)}
@media(max-width:750px){.perun-fl-comm{margin:15px auto}.perun-fl-gsm{grid-template-columns:1fr;gap:10px}.perun-fl-line,.perun-fl-window .perun-fl-line{grid-template-columns:1fr}.perun-fl-window{min-width:0;width:95vw}.perun-fl-window-body{min-width:0}.perun-fl-table{min-width:1100px}.perun-fl-window .perun-fl-table{min-width:0}}

/* Cloud palette: blue tile surface with stronger controls and clear focus. */
.perun-config-modal .modal-content,.perun-fl-window{background:#c7def8;color:#102b4b;border-color:#82a9d5}
.perun-config-modal .modal-header,.perun-fl-window>header{background:linear-gradient(110deg,#1e62ad,#477fb9);color:white;border-color:#1e62ad}
.perun-config-modal .modal-footer{background:#c7def8;border-top:1px solid #8eafd3;flex-wrap:wrap}
.perun-fl-content,.perun-fl-table{background:#bad5f4;color:#102b4b}
.perun-fl-table th{background:#215d9f;color:white;font-weight:600}
.perun-fl-table tbody tr:nth-child(even){background:#cce1f8}
.perun-fl-table th,.perun-fl-table td{border-color:#94b4d8}
.perun-fl-table tr:focus-within{background:#a4c6ef}
.perun-fl-table .perun-fl-edit{box-sizing:border-box;width:100%;min-width:90px;max-width:220px;padding:5px 7px;border:1px solid #6895c6;border-radius:4px;background:#f8fbff;color:#102b4b;font:12px 'Segoe UI',Arial,sans-serif}
.perun-fl-table input.perun-fl-edit{min-width:165px}
.perun-fl-table .perun-fl-edit:disabled{background:#cfdef0;color:#4e6480}
.perun-fl-table input[type=checkbox],.perun-fl-check input[type=checkbox]{appearance:auto;width:19px;height:19px;min-width:19px;accent-color:#135aab;outline:1px solid #527ba9;outline-offset:1px;border-radius:3px;opacity:1;cursor:pointer}
.perun-fl-table .perun-fl-check-cell{text-align:center}
.perun-fl-table input:disabled{cursor:default}
.perun-fl-edit:focus-visible,.perun-fl-toggle:focus-visible{outline:3px solid #0755b0;outline-offset:2px}
.perun-fl-value{background:#e2edfc;border-color:#8eafd3;color:#102b4b}
.perun-fl-note{color:#294969}
.perun-fl-window .perun-fl-raw{background:#eff5ff}
.perun-config-modal .modal-footer>button:nth-of-type(3){background:#1e62ad;border-color:#174f8d;color:white;font-weight:600}
.perun-config-modal .modal-footer>button:nth-of-type(3):disabled{background:#7799bd;color:#eff5ff}

.perun-fl-table th{position:relative;overflow:visible;padding-right:12px}
.perun-fl-column-grip{position:absolute;right:-4px;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:2;border-right:1px solid #c5dbf0}
.perun-fl-column-grip:hover,.perun-fl-column-grip:focus{background:#fff5;outline:1px solid #fff}
.perun-fl-table td{overflow:hidden;text-overflow:ellipsis}
.perun-fl-table td .perun-fl-edit{min-width:0!important;max-width:100%!important}
.perun-fl-table tr.perun-fl-selected{background:#8db8eb!important}
.perun-fl-context{position:fixed;z-index:120000;background:#e4efff;border:1px solid #447bb5;box-shadow:0 5px 18px #10243e66;min-width:230px;padding:3px}
.perun-fl-context button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#102b4b;padding:7px 12px;white-space:pre;font:12px 'Segoe UI',Arial,sans-serif;cursor:pointer}
.perun-fl-context button:hover,.perun-fl-context button:focus{background:#b5d4f8}.perun-fl-context button:disabled{color:#7890a8;cursor:default}
.perun-fl-operation-status{flex-basis:100%;font-size:12px}.perun-fl-operation-status>summary{cursor:pointer;color:#294969}.perun-fl-operation-status [role=status]{max-height:130px;overflow:auto;padding:6px!important}
.perun-fl-range{max-width:650px;margin:55px auto;padding:12px}.perun-fl-range .perun-fl-line{grid-template-columns:180px 1fr}.perun-fl-range .perun-fl-edit{box-sizing:border-box;width:100%;min-width:0;padding:5px 7px;border:1px solid #6895c6;background:#f8fbff;color:#102b4b}.perun-fl-range-error{grid-column:1/-1;color:#aa1020}.perun-fl-range .perun-fl-invalid{background:#ffb4b4!important;border:2px solid #c52334!important;color:#690912!important}.perun-fl-range>.perun-fl-check{margin-top:18px}.perun-fl-range .perun-fl-value{background:#dfebfa}

/* Isolate native toggles from Cloud's generic underlined form inputs. */
.perun-config-modal .perun-fl-content input[type=checkbox],.perun-config-modal .perun-fl-content input[type=radio],.perun-fl-window input[type=checkbox],.perun-fl-window input[type=radio]{appearance:auto!important;display:inline-block!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;flex:0 0 17px!important;padding:0!important;margin:0 7px 0 0!important;border:0!important;border-bottom:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;vertical-align:middle;accent-color:#135aab}
.perun-config-modal .perun-fl-mode{display:block!important;width:320px;max-width:100%;box-sizing:border-box;border:1px solid #82a9d5!important;border-radius:0!important;padding:10px 12px;background:#c7def8}
.perun-config-modal .perun-fl-mode .perun-fl-check{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px;width:auto!important;min-height:24px;margin:3px 0!important;padding:0!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.perun-config-modal .perun-fl-mode .perun-fl-check span{white-space:nowrap}.perun-fl-check:before,.perun-fl-check:after{content:none!important}
.perun-config-modal .perun-fl-comm{margin:24px auto;padding:12px}.perun-fl-line input.perun-fl-edit,.perun-fl-line select.perun-fl-edit{box-sizing:border-box;min-width:0;max-width:100%;width:100%;font:12px 'Segoe UI',Arial,sans-serif}

.perun-config-modal .perun-fl-line:has(>input[type=checkbox]){display:flex;justify-content:flex-start;gap:7px;min-height:27px}.perun-config-modal .perun-fl-table .perun-fl-edit{height:27px!important;min-height:27px!important;margin:0!important;padding:3px 6px!important;border-radius:3px!important}.perun-fl-table td{vertical-align:middle}.perun-fl-table td button{margin:1px 0}

/* Model-specific internal dialogs retain compact controls independently of Cloud forms. */
.perun-fl-internal-tabs{display:flex;gap:5px;margin-bottom:12px}.perun-fl-window [hidden]{display:none!important}.perun-fl-window .perun-fl-table{table-layout:auto;white-space:normal}.perun-fl-window .perun-fl-table .perun-fl-line{display:flex;flex-direction:column;align-items:stretch;gap:3px;margin:2px 0}.perun-fl-window .perun-fl-table .perun-fl-line label{font-size:10px}.perun-fl-window .perun-fl-line:has(>input[type=checkbox]){display:flex;justify-content:flex-start;gap:7px}.perun-fl-window .perun-fl-line .perun-fl-edit{height:28px!important;padding:3px 6px!important;border:1px solid #6895c6!important;border-radius:3px!important;background:#f8fbff;color:#102b4b}.perun-fl-window-body>div>button{margin:4px}.perun-fl-window .perun-fl-table .perun-fl-edit{min-width:80px;max-width:240px}

.perun-fl-cleared-user { opacity: .65; }

.perun-config-modal input[data-user-code].perun-fl-invalid{background:#ffb4b4!important;border:2px solid #c52334!important;color:#690912!important}
.perun-config-modal input[data-user-code][aria-invalid="false"]:not(:disabled){background:#fff!important}
