.gr{--gr-violet:var(--primary,#632b89);--gr-pale:#f4eef9;--gr-line:#dfd7e8;max-width:1240px;margin:auto;color:var(--text,#271e31);min-width:0}
.gr *{box-sizing:border-box}.gr h2,.gr h3,.gr h4,.gr p,.gr ul{margin:0}.gr h3{font-size:1.12rem;margin-block:12px 6px}.gr p,.gr ul{font-size:.9rem;line-height:1.5}.gr small{display:block;color:#65566e}.gr-head,.gr-project,.gr-history article,.gr-actions,.gr-form,.gr-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.gr-head{justify-content:space-between;color:white;padding:14px 18px;background:linear-gradient(105deg,#442064,#823da4);border-radius:12px}.gr-head small{color:#f2e4ff}.gr-head>svg{width:32px;height:32px}.gr-form,.gr-project,.gr-history,.gr-card,.gr-sections details{background:white;border:1px solid var(--gr-line);border-radius:9px;margin-block:9px;padding:12px;min-width:0}.gr-form,.gr-filter{align-items:end}.gr label{display:grid;gap:4px;font-size:.84rem;font-weight:600;min-width:0}.gr-form label{flex:1 1 140px}.gr .btn{min-height:40px;white-space:normal}.gr .input,.gr .select{max-width:100%;min-width:0}.gr-error:not(:empty){background:#fff0ee;color:#952b23;padding:8px}.gr-project{background:linear-gradient(110deg,#fff,var(--gr-pale))}.gr-project h3{margin:3px 0;font-size:1.35rem}.gr-project>img{width:116px;height:76px;object-fit:cover;border-radius:6px}.gr-project>b{margin-inline-start:auto;color:var(--gr-violet)}.gr-project p{font-size:.83rem}.gr-actions{justify-content:flex-end;margin-block:6px}.gr-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.gr-kpis>div{border:1px solid var(--gr-line);border-radius:9px;background:linear-gradient(135deg,white,var(--gr-pale));padding:10px;display:grid;gap:3px}.gr-kpis svg,.gr-sections svg{height:22px;width:22px;color:var(--gr-violet)}.gr-kpis strong{font-size:1.35rem;color:var(--gr-violet)}.gr-kpis span{font-size:.85rem;font-weight:650}.gr-kpis small{font-size:.7rem}.gr-card{overflow:hidden;padding:0 12px 10px}.gr-card h4{margin:0 -12px 8px;background:linear-gradient(100deg,#552480,#78369f);padding:6px 12px;color:white;font-size:.92rem}.gr-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gr-grid .gr-card{margin-block:0}.gr-card>svg{width:100%;max-height:95px}.gr-lot{display:grid;grid-template-columns:1.2fr 1fr;gap:5px;align-items:center;padding:4px 0;font-size:.85rem;border-bottom:1px solid #eee}.gr-lot progress{width:100%;height:7px;accent-color:var(--gr-violet)}.gr-lot small{font-size:.72rem}.gr summary{cursor:pointer;min-height:38px}.gr-sections summary{display:flex;align-items:center;gap:8px}.gr summary::after{content:'⌄';float:right;color:var(--gr-violet);margin-inline-start:8px}.gr-sections summary small{margin-inline-start:auto}.gr details[open]>summary::after{transform:rotate(180deg)}.gr table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:.82rem}.gr td,.gr th{padding:5px;text-align:start;overflow-wrap:anywhere;border-bottom:1px solid var(--gr-line)}.gr th{background:var(--gr-pale);color:#422356}.gr .gr-filter{margin-block:8px}.gr-thumb{display:block;height:70px;max-width:100%;object-fit:contain}.gr-history article{justify-content:space-between;border-top:1px solid var(--gr-line);padding:6px}.gr textarea{width:100%;min-height:74px;margin-block:3px 8px}.gr-section,.gr-project,.gr-sections,.gr-card{overflow-wrap:anywhere}
@media(max-width:800px){.gr-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.gr-grid{grid-template-columns:1fr}.gr-project>b{margin-inline-start:0}}
@media(max-width:600px){.gr-head{padding:10px}.gr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.gr-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.gr-form label:nth-child(3),.gr-form>button{grid-column:1/-1}.gr td,.gr th{font-size:.82rem}.gr thead{display:none}.gr table,.gr tbody,.gr tr{display:block}.gr tr{padding:6px 0;border-bottom:1px solid var(--gr-line)}.gr td{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);border:none;padding:2px;gap:6px}.gr td::before{content:attr(data-label);color:#695771}.gr-project img{width:82px;height:66px}.gr-sections details{padding:6px 8px}.gr-actions{justify-content:flex-start}.gr-actions .btn{font-size:.8rem}.gr-filter label{width:100%}}

.gr tfoot th,.gr tfoot td{background:var(--gr-pale);color:#492a62;font-weight:700;border-top:1px solid var(--gr-line)}
@media(max-width:600px){
  .gr tfoot{display:block}
  .gr tfoot tr{background:var(--gr-pale);padding:5px}
  .gr tfoot th,.gr tfoot td{padding:2px;border:0}
  .gr tfoot .gr-single-total{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
  .gr tfoot .gr-single-total td{display:block;text-align:end}
  .gr tfoot .gr-single-total td::before,.gr tfoot td:empty{display:none}
  .gr tfoot .gr-multi-total th{display:block}
}

.gr-task-main td{font-weight:700;background:#f3edf8}.gr-task-label{display:inline-block;overflow-wrap:anywhere}
