.search-tools{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(360px,1.45fr) minmax(180px,.8fr);gap:10px;width:min(880px,68vw)}
.query-block{min-width:0}.query-fold{position:relative}.query-fold summary{height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;border:1px solid #c9d4e4;border-radius:10px;background:#f8faff;color:#334155;font-size:.86rem;font-weight:700;cursor:pointer;list-style:none}.query-fold summary::-webkit-details-marker{display:none}.query-fold summary::after{content:'›';color:var(--blue);font-size:1.25rem;line-height:1;transition:transform .18s}.query-fold[open] summary{border-color:var(--blue);border-radius:10px 10px 0 0;background:#edf3ff;color:var(--blue)}.query-fold[open] summary::after{transform:rotate(90deg)}.query-fold-content{margin-top:0;border-radius:0 0 10px 10px!important}
.style-search{display:flex;align-items:center;width:100%;height:40px;border:1px solid #c9d4e4;border-radius:10px;background:#fff;overflow:hidden}.style-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(21,94,239,.12)}.style-search input{min-width:0;flex:1;height:100%;border:0;outline:0;padding:0 11px;font:inherit}.style-search button,.time-search-btn{height:100%;border:0;padding:0 15px;background:var(--blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.workshop-query-block[hidden]{display:none}.workshop-search{display:flex;height:40px;border:1px solid #c9d4e4;border-radius:10px;background:#fff;overflow:hidden}.workshop-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(21,94,239,.12)}.workshop-search select{min-width:0;flex:1;border:0;outline:0;padding:0 9px;background:#fff;color:#172033;font:inherit}.workshop-search button{border:0;padding:0 14px;background:var(--blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.date-range{display:flex;align-items:center;gap:6px;height:40px;color:var(--muted);font-size:.75rem}.date-range label{display:flex;align-items:center;gap:4px;min-width:0}.date-range input{width:118px;height:40px;border:1px solid #c9d4e4;border-radius:9px;padding:0 6px;background:#fff;color:#172033;font:inherit;font-size:.75rem}.date-range i{font-style:normal}.date-range .time-search-btn{height:40px;border-radius:9px;padding:0 13px}.date-range #clearSearchBtn{height:40px;padding:0 5px;border:0;background:transparent;color:var(--blue);font:inherit;font-size:.78rem;font-weight:700;cursor:pointer}
.readonly-field{background:#f5f7fa;color:#526176;cursor:default}
.time-search-section{margin-bottom:18px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 30px rgba(38,62,105,.06);overflow:hidden}.time-search-section[hidden]{display:none}.time-results-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid var(--line);background:#f8faff}.time-results-head span{display:block;color:var(--muted);font-size:.78rem}.time-results-head strong{display:block;margin-top:2px;font-size:1.05rem}.time-results-head button{border:0;background:#edf3ff;color:var(--blue);border-radius:8px;padding:7px 12px;font:inherit;font-weight:700;cursor:pointer}
.search-results{padding:10px}.time-result-item{border:1px solid #e1e7f0;border-radius:11px;background:#fff;overflow:hidden}.time-result-item+.time-result-item{margin-top:8px}.time-result-item summary{display:grid;grid-template-columns:22px minmax(90px,1fr) 90px minmax(90px,1fr) auto;align-items:center;gap:10px;padding:13px 14px;cursor:pointer;list-style:none}.time-result-item summary::-webkit-details-marker{display:none}.time-result-item summary:hover{background:#f7faff}.time-result-item summary strong{color:var(--blue)}.time-result-item summary span,.time-result-item summary time{color:var(--muted);font-size:.82rem}.result-arrow{font-size:1.4rem!important;color:var(--blue)!important;line-height:1;transition:transform .18s}.time-result-item[open] .result-arrow{transform:rotate(90deg)}.result-details{padding:14px;border-top:1px solid #e1e7f0;background:#fbfcfe}.result-style-image{float:right;width:100px;aspect-ratio:3/4;object-fit:contain;margin:0 0 12px 14px;border:1px solid #e1e7f0;border-radius:8px;background:#fff}.result-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:13px;color:var(--muted);font-size:.83rem}.result-meta b{color:#172033}.result-group{clear:both;margin-top:10px;border:1px solid #e1e7f0;border-radius:9px;overflow:hidden;background:#fff}.result-group h4{display:flex;justify-content:space-between;gap:10px;margin:0;padding:9px 11px;background:#f3f6fb;font-size:.88rem}.result-group h4 span{color:var(--muted);font-size:.78rem;font-weight:600}.result-table-wrap{overflow-x:auto}.result-group table{width:100%;border-collapse:collapse;font-size:.82rem}.result-group th,.result-group td{padding:8px 10px;border-top:1px solid #edf0f5;text-align:left}.result-group th{color:var(--muted);font-size:.75rem}.result-grand-total{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.result-grand-total span{padding:9px;border-radius:8px;background:#eaf1ff;color:#155eef;text-align:center;font-size:.82rem;font-weight:700}
.result-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px;margin:0 120px 13px 0}.result-edit-grid label{display:grid;gap:5px;color:var(--muted);font-size:.75rem;font-weight:700}.result-edit-grid input,.result-group-name,.result-group td input{width:100%;height:36px;border:1px solid #c9d4e4;border-radius:7px;padding:0 9px;background:#fff;color:#172033;font:inherit;font-size:.84rem;outline:none}.result-edit-grid input:focus,.result-group-name:focus,.result-group td input:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(21,94,239,.1)}.result-edit-grid input[type=file]{padding:6px;height:auto}.result-group-name{max-width:230px;height:34px;font-weight:700}.result-group td input[type=number]{min-width:90px}.result-add-row{margin:8px 10px 10px;padding:7px 11px;border:1px dashed #8faee0;border-radius:7px;background:#fff;color:var(--blue);font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}.result-add-group{width:100%;margin-top:12px;padding:10px;border:1px dashed #8faee0;border-radius:9px;background:#edf3ff;color:var(--blue);font:inherit;font-weight:700;cursor:pointer}.result-delete-row,.result-delete-group{border:0;border-radius:7px;background:#fff1f3;color:#b42338;font:inherit;font-size:.76rem;font-weight:700;cursor:pointer}.result-delete-row{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border-radius:8px;font-size:1.2rem;line-height:1;white-space:nowrap}.result-delete-group{padding:7px 10px}.result-save-bar{display:flex;justify-content:flex-end;margin-top:13px}.save-result-record{border:0;border-radius:9px;padding:10px 16px;background:var(--blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}
@media(max-width:1100px){.search-tools{grid-template-columns:1fr;width:min(440px,46vw)}.date-range input{flex:1;width:auto}.date-range label{flex:1}}
@media(max-width:720px){.topbar{height:auto;min-height:64px;display:grid;grid-template-columns:1fr auto;gap:10px;padding-top:10px;padding-bottom:10px}.search-tools{grid-column:1/-1;grid-row:2;width:100%;gap:7px}.top-actions{grid-column:2;grid-row:1}.query-fold summary{height:38px}.date-range{display:grid;grid-template-columns:1fr auto 1fr auto auto;height:auto;gap:5px;padding-top:5px}.date-range label{display:grid;gap:3px}.date-range label span{font-size:.7rem}.date-range input{width:100%;height:38px;font-size:.78rem}.date-range i{align-self:end;padding-bottom:10px}.date-range .time-search-btn,.date-range #clearSearchBtn{align-self:end;height:38px;padding:0 9px}.time-search-section{margin:12px;border-radius:13px}.time-result-item summary{grid-template-columns:18px 1fr auto;gap:4px 8px;padding:11px}.time-result-item summary strong{grid-column:2}.time-result-item summary>span:nth-of-type(2){grid-column:3;grid-row:1}.time-result-item summary>span:nth-of-type(3){grid-column:2;grid-row:2}.time-result-item summary time{grid-column:2/4;grid-row:3}.result-details{padding:10px}.result-style-image{width:82px}.result-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px}.result-edit-grid{grid-template-columns:1fr 1fr;margin-right:0}.result-grand-total{gap:4px}.result-grand-total span{padding:8px 3px;font-size:.75rem}.result-group h4{display:grid}.result-group table{min-width:460px}.save-result-record{width:100%}}

.result-save-bar{gap:8px}.delete-result-record{border:0;border-radius:9px;padding:10px 16px;background:#fff1f3;color:#b42338;font:inherit;font-weight:700;cursor:pointer}
.delete-result-record.is-confirming{background:#b42338;color:#fff}
.result-delete-cell{padding:0!important;cursor:pointer}.result-delete-cell .result-delete-row{width:100%;height:52px;border-radius:0}.result-delete-row.is-confirming,.result-delete-group.is-confirming{background:#b42338;color:#fff}
@media(max-width:720px){.result-save-bar{display:grid}.delete-result-record{width:100%}}
