
/* ServerPACS v563 - Proxy rules */
.sp-proxyrules-v563.hidden{display:none}
.sp-proxyrules-v563{
  position:fixed; inset:0; z-index:28900; background:rgba(6,12,18,.78);
  display:flex; align-items:center; justify-content:center; padding:18px;
}
.sp-proxyrules-box-v563{
  width:min(1240px,97vw); max-height:92vh; overflow:auto; background:#1a2632;
  border:1px solid #3a5368; border-radius:8px; color:#edf6ff;
  box-shadow:0 24px 80px rgba(0,0,0,.55); padding:12px;
}
.sp-proxyrules-head-v563{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #354c60}
.sp-proxyrules-head-v563 b{font-size:18px}.sp-proxyrules-head-v563 small{display:block;color:#aab7c4;margin-top:4px}
#spProxyRulesCloseV563{width:30px!important;min-width:30px!important;height:28px!important;padding:0!important}
.sp-proxyrules-toolbar-v563,.sp-proxyrules-tabs-v563{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.sp-proxyrules-tabs-v563 button.active{background:linear-gradient(#3b9ae0,#1f75b4)!important;border-color:#56aee9!important;color:#fff!important}
.sp-proxyrules-grid-v563,.sp-rule-editor-v563{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:8px;align-items:end;margin-bottom:10px}
.sp-proxyrules-grid-v563.docs{grid-template-columns:repeat(3,minmax(180px,1fr))}
.sp-proxyrules-grid-v563 label,.sp-rule-editor-v563 label{display:flex;flex-direction:column;gap:4px}
.sp-proxyrules-grid-v563 span,.sp-rule-editor-v563 span{color:#d9edf9;font-size:11px;font-weight:900;text-transform:uppercase}
.sp-proxyrules-grid-v563 input,.sp-proxyrules-grid-v563 select,.sp-rule-editor-v563 input,.sp-rule-editor-v563 select{width:100%;box-sizing:border-box}
.sp-proxyrules-tab-v563{display:none}.sp-proxyrules-tab-v563.active{display:block}
.sp-proxyrules-help-v563{padding:8px;border:1px solid #354c60;border-radius:6px;color:#aab7c4;font-size:12px;margin-bottom:10px}
.sp-proxyrules-table-wrap-v563{max-height:430px;overflow:auto;border:1px solid #354c60;border-radius:6px}
.sp-proxyrules-table-v563{width:100%;border-collapse:collapse}
.sp-proxyrules-table-v563 th{position:sticky;top:0;background:#203140;color:#d9edf9;border-bottom:1px solid #42596d;padding:7px;font-size:11px;text-transform:uppercase;white-space:nowrap}
.sp-proxyrules-table-v563 td{border-bottom:1px solid #263746;padding:6px;font-size:12px;vertical-align:middle}
.sp-proxyrules-table-v563 code{color:#d9edf9;font-size:11px}
#spProxyRulesJsonV563{width:100%;min-height:470px;box-sizing:border-box;background:#0f1822;color:#d9edf9;border:1px solid #354c60;border-radius:6px;padding:10px;font-family:Consolas,monospace;font-size:12px}
.sp-proxyrules-pre-v563{max-height:470px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#0f1822;border:1px solid #354c60;border-radius:6px;padding:10px;color:#d9edf9}
.sp-proxyrules-status-v563{margin-top:10px;padding:8px;border-radius:6px;border:1px solid #3a5368}
.sp-proxyrules-status-v563.info{background:rgba(74,163,219,.12);color:#9bd7ff;border-color:#4aa3db}
.sp-proxyrules-status-v563.ok{background:rgba(64,178,122,.12);color:#a8f0c9;border-color:#40b27a}
.sp-proxyrules-status-v563.error{background:rgba(201,77,77,.12);color:#ffb4b4;border-color:#c94d4d}
html[data-servpacs-theme='light'] .sp-proxyrules-box-v563{background:#fff!important;color:#263645!important;border-color:#c5d5df!important}
html[data-servpacs-theme='light'] .sp-proxyrules-head-v563,html[data-servpacs-theme='light'] .sp-proxyrules-help-v563,html[data-servpacs-theme='light'] .sp-proxyrules-table-wrap-v563,html[data-servpacs-theme='light'] #spProxyRulesJsonV563,html[data-servpacs-theme='light'] .sp-proxyrules-pre-v563{border-color:#d6e2ea!important}
html[data-servpacs-theme='light'] .sp-proxyrules-head-v563 small,html[data-servpacs-theme='light'] .sp-proxyrules-grid-v563 span,html[data-servpacs-theme='light'] .sp-rule-editor-v563 span,html[data-servpacs-theme='light'] .sp-proxyrules-help-v563{color:#526b80!important}
html[data-servpacs-theme='light'] .sp-proxyrules-table-v563 th{background:#e4edf4!important;color:#30485b!important}
html[data-servpacs-theme='light'] .sp-proxyrules-table-v563 td{border-color:#d6e2ea!important}
html[data-servpacs-theme='light'] .sp-proxyrules-table-v563 code{color:#30485b!important}
html[data-servpacs-theme='light'] #spProxyRulesJsonV563,html[data-servpacs-theme='light'] .sp-proxyrules-pre-v563{background:#f6f9fb!important;color:#263645!important}
@media(max-width:900px){.sp-proxyrules-grid-v563,.sp-rule-editor-v563,.sp-proxyrules-grid-v563.docs{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.sp-proxyrules-v563{padding:8px}.sp-proxyrules-box-v563{max-height:calc(100vh - 16px)}.sp-proxyrules-grid-v563,.sp-rule-editor-v563,.sp-proxyrules-grid-v563.docs{grid-template-columns:1fr}}
