/* Дім 0.2.19. Configurable metrics and blocks. Scoped to plugin. */
.dim-app .dim-home-counters{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;margin:0 0 20px}
.dim-app .dim-home-kpi{border:1px solid #d9e8dc;border-radius:17px;padding:17px 16px;background:linear-gradient(135deg,#e8f3e9,#fffdf5);min-width:0;box-shadow:0 4px 14px #4269480f}
.dim-app .dim-home-kpi:nth-child(4n+2){background:linear-gradient(140deg,#fff3e9,#fffefa);border-color:#eedfd1}
.dim-app .dim-home-kpi:nth-child(4n+3){background:linear-gradient(140deg,#eff1fc,#fcfaff);border-color:#e0e1f0}
.dim-app .dim-home-kpi:nth-child(4n){background:linear-gradient(140deg,#fff6de,#fdfcf9);border-color:#f1e2b6}
.dim-app .dim-home-kpi small{display:block;color:#63766a;font-size:11px;margin-bottom:8px}
.dim-app .dim-home-kpi strong{display:block;color:#28553d;font-size:clamp(20px,2vw,27px);line-height:1.25;overflow-wrap:anywhere}
.dim-app .dim-constructor-persons{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}
.dim-app .dim-constructor-persons a{padding:10px 15px;text-decoration:none;color:#40634a;border:1px solid #dce6da;background:#fff;border-radius:12px;font-size:12px}
.dim-app .dim-constructor-persons a.is-active{background:#e4f3e6;border-color:#8bbca0;font-weight:750}
.dim-app .dim-constructor-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin:10px 0 18px}
.dim-app .dim-constructor-columns>section{background:#fffdfa;border:1px solid #e5ebdf;border-radius:17px;padding:15px;min-width:0}
.dim-app .dim-constructor-columns h3{margin:0 0 5px;font-size:15px}
.dim-app .dim-constructor-columns p{margin:0 0 13px}
.dim-app .dim-constructor-list{list-style:none;padding:0;margin:0}
.dim-app .dim-constructor-list li,.dim-app .dim-constructor-columns .dim-sort-list li{grid-template-columns:18px 50px minmax(0,1fr);max-width:none;gap:8px;padding:10px;cursor:grab}
.dim-app .dim-constructor-list li label,.dim-app .dim-constructor-columns .dim-sort-list li label{overflow-wrap:anywhere}
.dim-app .dim-constructor-modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:14px 0 17px}
.dim-app .dim-constructor-modules label{display:grid;grid-template-columns:22px minmax(0,1fr);gap:4px 8px;align-items:start;border:1px solid #e0e8de;background:#f8fbf7;border-radius:13px;padding:12px;min-width:0}
.dim-app .dim-constructor-modules label input{grid-row:span 2;margin-top:3px}
.dim-app .dim-constructor-modules strong{font-size:12px}
.dim-app .dim-constructor-modules small{font-size:10px;color:#7b8a7c;overflow-wrap:anywhere}
.dim-app .dim-constructor-create,.dim-app .dim-constructor-custom-item{padding:14px;border:1px solid #dfe9de;border-radius:13px;margin:10px 0 14px;background:#fffdfb}
.dim-app .dim-constructor-custom-item button{margin-right:8px}
.dim-app .dim-home-custom p{white-space:normal;overflow-wrap:anywhere}
.dim-app.dim-dark .dim-home-kpi:nth-child(n){background:#273e30;border-color:#48604f}
.dim-app.dim-dark .dim-home-kpi small{color:#b9cabc}.dim-app.dim-dark .dim-home-kpi strong{color:#e5f2e6}
.dim-app.dim-dark .dim-constructor-persons a,.dim-app.dim-dark .dim-constructor-columns>section,.dim-app.dim-dark .dim-constructor-modules label,.dim-app.dim-dark .dim-constructor-create,.dim-app.dim-dark .dim-constructor-custom-item{background:#243229;color:#ddecdd;border-color:#43594a}
.dim-app.dim-dark .dim-constructor-persons a.is-active{background:#345740;border-color:#81ad89}
.dim-app.dim-dark .dim-constructor-modules small{color:#a6b9a7}
@media(max-width:980px){.dim-app .dim-constructor-columns{grid-template-columns:1fr}}
@media(max-width:640px){.dim-app .dim-home-counters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dim-app .dim-home-kpi{padding:13px 10px}.dim-app .dim-home-kpi strong{font-size:19px}.dim-app .dim-constructor-persons a{padding:8px 9px}}

.dim-app .dim-home-wide{grid-column:1 / -1;min-width:0}
.dim-app .dim-home-wide > .dim-card{margin:0;width:100%}
.dim-app .dim-home-wide .dim-child-parent-overview{width:100%;max-width:100%}

.dim-app .dim-constructor-links{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0 10px}
