.qtm-toolbar{display:flex;gap:12px;align-items:center;margin:0 0 16px}.qtm-search{flex:1;display:flex;align-items:center;gap:8px;border:1px solid #dbe3ee;background:#fff;border-radius:12px;padding:0 12px}.qtm-search input{border:0!important;box-shadow:none!important;width:100%;height:40px}.qtm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.qtm-stats article{background:#fff;border:1px solid #e3e9f1;border-radius:14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}.qtm-stats span{font-size:12px;color:#64748b}.qtm-stats strong{font-size:22px;color:#0f172a}.qtm-layout{display:grid;grid-template-columns:minmax(460px,1.1fr) minmax(380px,.9fr);gap:16px;align-items:start}.qtm-list-panel,.qtm-detail{min-height:530px}.qtm-rows{display:flex;flex-direction:column;gap:6px;padding:10px}.qtm-row{width:100%;border:1px solid transparent;background:#fff;border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;text-align:left}.qtm-row:hover{background:#f8fafc;border-color:#dbe5f0}.qtm-row.is-active{background:#eff6ff;border-color:#93c5fd}.qtm-row-main{display:flex;flex-direction:column;gap:5px;min-width:0}.qtm-row-title{display:flex;gap:8px;align-items:center;min-width:0}.qtm-row-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#0f172a}.qtm-row-main small,.qtm-row-meta small{color:#64748b}.qtm-row-meta{text-align:right;min-width:64px}.qtm-row-meta b{display:block;font-size:17px}.qtm-default-badge{display:inline-flex;align-items:center;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;border-radius:999px;padding:3px 7px;font-size:10px;white-space:nowrap}.qtm-detail{padding:18px}.qtm-detail-head{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #edf1f6;padding-bottom:16px}.qtm-detail-head small{color:#2563eb;font-weight:700}.qtm-detail-head h2{margin:4px 0 5px}.qtm-detail-head p{margin:0;color:#64748b}.qtm-properties{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.qtm-properties div{background:#f8fafc;border-radius:10px;padding:10px 12px}.qtm-properties span{display:block;font-size:10px;color:#64748b;text-transform:uppercase}.qtm-properties strong{display:block;margin-top:4px;font-size:13px}.qtm-item-head{display:flex;justify-content:space-between;border-top:1px solid #edf1f6;padding-top:14px}.qtm-item-head span{color:#64748b;font-size:12px}.qtm-items{margin-top:8px;max-height:250px;overflow:auto}.qtm-items article{padding:9px 4px;border-bottom:1px solid #f1f5f9}.qtm-items strong,.qtm-items small{display:block}.qtm-items small{color:#64748b;margin-top:2px}.qtm-note{margin-top:14px;background:#f8fafc;border-radius:10px;padding:10px 12px}.qtm-note span{font-size:10px;color:#64748b;text-transform:uppercase}.qtm-note p{margin:5px 0 0}.qtm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #edf1f6}.qtm-empty,.qtm-loading,.qtm-error{padding:32px;text-align:center;color:#64748b}.qtm-empty strong,.qtm-empty span{display:block}.qtm-empty strong{color:#334155;margin-bottom:6px}.qtm-error{color:#b91c1c}.qb-template-actions{display:flex;gap:6px;align-items:end}.qb-template-actions button{white-space:nowrap}@media(max-width:1100px){.qtm-layout{grid-template-columns:1fr}.qtm-stats{grid-template-columns:repeat(2,1fr)}}


/* v137.6.2 - navigation visibility + responsive density hardening */
.qtm-toolbar{flex-wrap:wrap}
.qtm-toolbar>.secondary,.qtm-toolbar>.primary{min-height:40px;white-space:nowrap;flex:0 0 auto}
.qtm-search{min-width:220px}
.qtm-layout{grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);min-width:0}
.qtm-list-panel,.qtm-detail{min-width:0;overflow:hidden}
.qtm-detail-head>div{min-width:0}
.qtm-detail-head h2,.qtm-detail-head p,.qtm-properties strong,.qtm-items strong,.qtm-items small{overflow-wrap:anywhere}
.qtm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.qtm-actions button{width:100%;min-width:0;min-height:38px;padding:8px 10px;font-size:12px;line-height:1.2;white-space:normal}
.qtm-actions .primary{grid-column:1/-1}
.qtm-actions .danger-link:last-child{grid-column:1/-1}
.qtm-row{min-width:0;gap:10px}
.qtm-row-title strong{font-size:13px}
.qtm-row-main small{font-size:11px;line-height:1.35}
.qtm-detail-head h2{font-size:18px;line-height:1.25}
.qtm-detail-head p{font-size:12px;line-height:1.45}
.qtm-properties strong{font-size:12px;line-height:1.35}
.qtm-items strong{font-size:12px;line-height:1.35}
.qtm-items small{font-size:11px;line-height:1.35}
@media(max-width:1280px){.qtm-layout{grid-template-columns:1fr}.qtm-list-panel,.qtm-detail{min-height:auto}.qtm-items{max-height:220px}.qtm-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.qtm-toolbar{align-items:stretch}.qtm-toolbar>.secondary,.qtm-toolbar>.primary{flex:1 1 auto}.qtm-search{order:3;flex-basis:100%;min-width:0}.qtm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.qtm-detail{padding:14px}.qtm-properties{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.qtm-stats{grid-template-columns:1fr 1fr}.qtm-stats article{padding:10px 12px}.qtm-stats strong{font-size:18px}.qtm-detail-head{flex-direction:column}.qtm-properties{grid-template-columns:1fr}.qtm-actions{grid-template-columns:1fr}.qtm-actions .primary,.qtm-actions .danger-link:last-child{grid-column:auto}}

.qtm-delete-permanent{border-color:#fecaca!important;background:#fff7f7!important;color:#b42318!important}.qtm-delete-permanent:hover{background:#fee4e2!important}


/* v137.6.4 - responsive action family + always reachable action rail */
.qtm-detail{overflow:auto;max-height:calc(100vh - 205px);scrollbar-gutter:stable}
.qtm-actions{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px;margin:18px -18px -18px;padding:12px 18px 18px;border-top:1px solid #dfe7f0;background:linear-gradient(180deg,rgba(255,255,255,.94),#fff 24%);box-shadow:0 -8px 20px rgba(15,23,42,.04)}
.qtm-actions .qtm-action{appearance:none;width:100%;min-width:0;height:38px;min-height:38px;padding:0 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#334155;font-size:12px;font-weight:700;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .05s ease}
.qtm-actions .qtm-action:hover{background:#f8fafc;border-color:#94a3b8}
.qtm-actions .qtm-action:active{transform:translateY(1px)}
.qtm-actions .qtm-action:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.qtm-actions .qtm-action-primary{background:#2563eb;border-color:#2563eb;color:#fff}
.qtm-actions .qtm-action-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.qtm-actions .qtm-action-secondary{background:#fff;border-color:#cbd5e1;color:#334155}
.qtm-actions .qtm-action-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.qtm-actions .qtm-action-warning:hover{background:#fef3c7;border-color:#fcd34d}
.qtm-actions .qtm-action-danger,.qtm-actions .qtm-delete-permanent{background:#fff1f2!important;border-color:#fecdd3!important;color:#be123c!important}
.qtm-actions .qtm-action-danger:hover,.qtm-actions .qtm-delete-permanent:hover{background:#ffe4e6!important;border-color:#fda4af!important}
@media(max-height:760px) and (min-width:901px){.qtm-detail{max-height:calc(100vh - 155px)}.qtm-items{max-height:150px}}
@media(max-width:1280px){.qtm-detail{max-height:none;overflow:visible}.qtm-actions{position:static;margin:18px -18px -18px}}
@media(max-width:700px){.qtm-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.qtm-actions .qtm-action{white-space:normal;height:auto;min-height:38px;line-height:1.15;padding:8px 10px}}
@media(max-width:430px){.qtm-actions{grid-template-columns:1fr}}
