.data-grid{--dg-border:#e4eaf0;--dg-ink:#18333e;--dg-muted:#647986;--dg-accent:#126a67;color:var(--dg-ink);min-width:0;background:#fff;border-top:1px solid var(--dg-border)}
.data-grid [hidden],.dg-legacy-footer[hidden]{display:none!important}.data-grid svg{width:18px;height:18px;flex:none;vertical-align:middle}.dg-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 20px;background:linear-gradient(180deg,#fbfdfd,#f5f8fa);border-bottom:1px solid var(--dg-border)}
.dg-search{display:flex;align-items:center;gap:9px;flex:1;min-width:210px;max-width:430px;background:#fff;border:1px solid #ccd8e0;border-radius:10px;padding:0 12px;color:var(--dg-muted)}.dg-search input{width:100%;min-width:0;border:0;background:transparent;padding:11px 0;font:inherit;font-size:13px;outline:0}.dg-search:focus-within{border-color:#168980;box-shadow:0 0 0 3px #16898018}
.dg-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px solid #cfdae2;border-radius:9px;background:#fff;color:#31525f;padding:9px 12px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}.dg-button:hover:not(:disabled){background:#edf7f4;border-color:#84b8ad}.dg-button:disabled{opacity:.42;cursor:default}.dg-button[aria-expanded=true]{background:#e7f3ef;color:#115b50;border-color:#9ecbbf}.data-grid :focus-visible{outline:3px solid #2e9a82;outline-offset:3px}
.dg-size{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:12px;color:var(--dg-muted)}.dg-size select,.dg-filter input{border:1px solid #ccd8e0;border-radius:8px;padding:9px 11px;background:#fff;color:#274551;min-height:39px;font:inherit;font-size:12px}.dg-size select{min-width:72px}
.dg-column-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;padding:18px 20px;background:#f4f8f9;border-bottom:1px solid var(--dg-border)}.dg-filter{display:flex;flex-direction:column;gap:7px;font-size:12px;min-width:0}.dg-filter>span{font-weight:600;color:#3d5965}.dg-filter input{min-width:0;width:100%}.dg-hint{grid-column:1/-1;color:var(--dg-muted);font-size:11px;line-height:1.6;margin:0}
.data-grid>.table-scroll{max-height:min(68vh,820px);overflow:auto;scrollbar-color:#b4c9cb #f4f7f9;scrollbar-width:thin}.dg-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;table-layout:auto}.dg-table thead{position:sticky;top:0;z-index:3}.dg-table th{background:#f2f6f8;color:#405d6b;padding:0!important;border-bottom:1px solid #cfdce5;white-space:normal;text-transform:none;letter-spacing:0;vertical-align:middle}.dg-sort{display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;color:inherit;font:inherit;font-weight:650;text-align:left;width:100%;min-height:53px;padding:13px 16px;cursor:pointer;border:0}.dg-sort svg{width:15px;height:15px;color:#8ca2ae}.dg-table th[aria-sort=ascending],.dg-table th[aria-sort=descending]{background:#e3f1ec;color:#135d53}.dg-table th[aria-sort=ascending] svg,.dg-table th[aria-sort=descending] svg{color:#126a67}
.dg-table td{padding:15px 16px!important;border-bottom:1px solid #edf1f4;vertical-align:top;line-height:1.55;white-space:normal;overflow-wrap:anywhere;max-width:340px;min-width:110px;font-variant-numeric:tabular-nums}.dg-table tbody tr:nth-child(even){background:#fbfcfd}.dg-table tbody tr:hover{background:#f0f7f5}.dg-table td:first-child{font-weight:600;color:#183943;min-width:190px}.dg-table td small{display:block;font-size:11px;color:#738894;font-weight:400;line-height:1.5;margin-top:4px}.dg-table td .btn{min-height:34px;border-radius:7px;font-size:11px;padding:7px 9px;margin:7px 5px 0 0}.dg-table input[type=checkbox]{width:17px;height:17px;accent-color:#176f62}.dg-empty td{text-align:center!important;padding:40px 20px!important;color:var(--dg-muted);font-weight:400!important}
.dg-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;background:#fafcfc;border-top:1px solid var(--dg-border)}.dg-status{font-size:12px;color:var(--dg-muted)}.dg-pagination{display:flex;align-items:center;gap:12px}.dg-page{font-size:12px;white-space:nowrap;color:#506c78}.dg-pagination .dg-button{min-height:36px}
.trace-modal select,.data-grid select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23506c78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;padding-right:34px!important}
@media(max-width:760px){.dg-toolbar{padding:14px;gap:9px}.dg-search{flex-basis:100%;max-width:none;min-width:0}.dg-size{font-size:11px}.dg-button{min-height:44px;font-size:11px;padding:9px 11px}.dg-column-filters{grid-template-columns:1fr 1fr;padding:14px;gap:12px}.dg-footer{padding:14px;flex-direction:column;align-items:stretch}.dg-pagination{justify-content:space-between}.dg-status{text-align:center}.data-grid>.table-scroll{max-height:none;overflow:visible}.dg-table,.dg-table tbody{display:block}.dg-table thead{position:static;display:block;padding:12px 14px;background:#f5f8fa;border-bottom:1px solid #e4eaf0}.dg-table thead tr{display:flex;gap:6px;overflow:auto;max-width:100%;scrollbar-width:thin}.dg-table th{display:block;flex:none;border:1px solid #dce5eb;border-radius:8px;max-width:220px;min-width:120px}.dg-sort{min-height:44px;padding:9px 11px;font-size:11px;gap:8px}.dg-table tbody tr{display:grid;grid-template-columns:1fr;margin:12px;border:1px solid #dce5eb;border-radius:12px;overflow:hidden;box-shadow:0 3px 12px #18394305;background:#fff!important}.dg-table td{display:grid;grid-template-columns:110px minmax(0,1fr);gap:4px 12px;max-width:none;min-width:0!important;padding:11px 14px!important;font-size:12px}.dg-table td::before{content:attr(data-label);font-weight:500;color:#6a7e89;font-size:11px;grid-column:1;grid-row:1/8;align-self:start}.dg-table td>small,.dg-table td>.btn,.dg-table td>span,.dg-table td>button{grid-column:2}.dg-table td:first-child{background:#f0f7f4;padding:14px!important;color:#164f43;font-size:13px}.dg-table td:last-child{border:0}.dg-empty td{display:block}.dg-empty td::before{display:none}.dg-table .mi-name,.dg-table .ga-name,.dg-table .name-cell{width:auto;max-width:none;min-width:0}}
@media(max-width:400px){.dg-column-filters{grid-template-columns:1fr}.dg-size{width:100%;justify-content:flex-end}.dg-table td{grid-template-columns:92px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.dg-button{transition:none}}

@media(max-width:760px){.dg-table td{display:block;position:relative;padding:11px 14px 11px 136px!important;min-height:43px;text-align:left!important}.dg-table td::before{position:absolute;left:14px;top:12px;width:110px;text-align:left}.dg-table td:first-child{padding:14px 14px 14px 136px!important}.dg-table td:first-child::before{top:15px}.dg-table td>.btn{display:inline-flex;max-width:100%}.dg-empty td{padding:24px 14px!important}}
@media(max-width:400px){.dg-table td{padding-left:120px!important}.dg-table td:first-child{padding-left:120px!important}.dg-table td::before{width:92px}}

.dg-mobile-sort{display:none}@media(max-width:760px){.dg-mobile-sort{display:flex;align-items:end;gap:10px;background:#f4f8f9;border-bottom:1px solid #e4eaf0;padding:12px 14px}.dg-mobile-sort label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#607986;flex:1;min-width:0}.dg-mobile-sort select{width:100%;min-width:0;min-height:42px;border:1px solid #cfdce4;border-radius:8px;background-color:#fff;padding:8px 10px;font:inherit;color:#31525f}.dg-mobile-sort .dg-button{min-width:110px}.dg-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;padding:0!important;clip-path:inset(50%)}.dg-table thead tr{display:block}}
