.policy-restoration-dialog{box-sizing:border-box;width:min(820px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cad8e8;border-radius:18px;background:#fff;color:#18304f;overflow:auto;font-family:Inter,system-ui,sans-serif}
.policy-restoration-dialog::backdrop{background:rgba(12,26,51,.6)}
.policy-restoration-dialog>header{display:flex;align-items:flex-start;gap:16px;padding:22px;border-bottom:1px solid #e0e8f2}.policy-restoration-dialog h2{margin:6px 0;font-size:20px}.policy-restoration-dialog header p{margin:8px 0 0;font-size:13px;line-height:1.5}.policy-restoration-dialog header small{color:#145eb6;font-weight:700;font-size:11px}.policy-restoration-dialog header>button{margin-left:auto;min-width:44px;min-height:44px}
.policy-restoration-dialog form{display:grid;gap:16px;padding:22px}.policy-restoration-dialog form>label{display:grid;gap:6px;font-size:14px;text-transform:none;letter-spacing:normal}.policy-restoration-dialog textarea{box-sizing:border-box;width:100%;min-height:90px;padding:10px;border:1px solid #b8cce2;border-radius:8px;font:inherit;resize:vertical}.policy-restoration-dialog h3{font-size:16px}.policy-restoration-dialog ul{padding-left:20px;display:grid;gap:9px;font-size:14px;line-height:1.5}.policy-restoration-warning{color:#80560b}.policy-restoration-table{overflow:auto}.policy-restoration-dialog table{width:100%;border-collapse:collapse;font-size:13px}.policy-restoration-dialog th,.policy-restoration-dialog td{padding:10px;border-bottom:1px solid #dae4ef;text-align:left}.policy-restoration-dialog .policy-restoration-confirm{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #d9bd73;border-radius:10px;background:#fff8e8;line-height:1.5}.policy-restoration-confirm input{flex:0 0 18px;width:18px!important;height:18px!important;margin:3px 0 0}.policy-restoration-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.policy-restoration-dialog button{min-height:44px!important;padding:10px 14px;border:1px solid #adc8e8;border-radius:8px;background:#fff;color:#145eb6;font:inherit;font-size:13px;cursor:pointer}.policy-restoration-dialog [data-apply]{background:#1768d6;color:#fff}.policy-restoration-dialog button:disabled{opacity:.5;cursor:not-allowed}.policy-restoration-error{margin:0;padding:12px;border:1px solid #e5b4bc;border-radius:8px;background:#fff0f2;color:#9c263b;line-height:1.5}.policy-restoration-dialog [hidden]{display:none!important}
html[data-theme="dark"] .policy-restoration-dialog{background:#15202e;color:#e3edfc;border-color:#3d526c}html[data-theme="dark"] .policy-restoration-dialog textarea,html[data-theme="dark"] .policy-restoration-dialog button{background:#1b2d43;color:#d1e7ff;border-color:#3d5778}html[data-theme="dark"] .policy-restoration-dialog .policy-restoration-confirm{background:#302715;color:#ffe6b5}html[data-theme="dark"] .policy-restoration-warning{color:#ffe0a1}html[data-theme="dark"] .policy-restoration-dialog [data-apply]{background:#1768d6;color:#fff}
@media(max-width:600px){.policy-restoration-dialog form,.policy-restoration-dialog>header{padding:16px}.policy-restoration-dialog footer{flex-direction:column}.policy-restoration-dialog footer button{width:100%}}
.policy-restoration-dialog form>footer button{box-sizing:border-box;height:auto!important;min-height:44px!important;aspect-ratio:auto!important}
@media(max-width:600px){.policy-restoration-dialog form>footer{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.policy-restoration-dialog form>footer button{width:100%!important;min-width:0!important;max-width:none!important}}

.ppd-policy-dialog [data-candidates]{min-width:0}.ppd-policy-uuid{display:block;margin-top:4px;overflow-wrap:anywhere;font-size:11px;font-weight:400}.ppd-policy-dialog [data-candidates] td{vertical-align:top}.ppd-policy-dialog input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;margin:2px 4px 0 0}.ppd-policy-dialog .ppd-policy-all{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:13px;text-transform:none;letter-spacing:normal}.accounting-ppd-note{padding:12px 16px;border:1px solid #b7d3f3;border-radius:10px;background:#eff6ff;color:#21456e;font-size:13px;line-height:1.5}html[data-theme="dark"] .accounting-ppd-note{background:#152841;border-color:#365778;color:#d1e5ff}
