/* DH Empreiteira V15.17 — acabamento uniforme nos modos claro e escuro */
.top .btn[onclick="dhLogout()"]{min-height:39px!important;height:39px!important;padding:0 14px!important;border-radius:12px!important;border:1px solid #e9b4b8!important;background:#fde9e9!important;color:#9b3039!important;font-size:14px!important;font-weight:800!important;line-height:1!important;box-shadow:none!important;width:auto!important;flex:0 0 auto!important}
html[data-dh-theme="dark"] .top .btn[onclick="dhLogout()"]{background:#422b34!important;border-color:#7c4951!important;color:#ffd2d4!important}
.h145quick button:first-child{background:#f8fafc!important;color:#10233d!important;border-color:#dce5ee!important}
.h145quick button:first-child i{font-size:22px!important;line-height:1.2!important}
html[data-dh-theme="dark"] .h145quick button:first-child{background:#1c374d!important;color:#f1f7ff!important;border-color:#36566b!important}
/* Cadastro: campos simples e espaçados, sem bloco volumoso desnecessário */
.tool17-form .tool17-qty{display:grid;grid-template-columns:49px minmax(0,1fr) 49px;gap:9px;align-items:center;margin-top:8px}
.tool17-form .tool17-qty input{margin:0!important;text-align:center;min-width:0;appearance:textfield;-moz-appearance:textfield}
.tool17-qty input::-webkit-inner-spin-button,.tool17-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.tool17-qty button{height:52px;border:1px solid #b9cedd;background:#e9f2f8;color:#144c70;border-radius:12px;font-size:27px;font-weight:700;touch-action:manipulation}
.tool17-form select{appearance:auto;width:100%;min-height:53px;padding:10px 13px;margin-top:8px;background:#fff;color:#132c43;border:1px solid #cedce8;border-radius:14px;font-size:15px}
.tool17-form .tool17-damaged{display:flex!important;flex-direction:row;align-items:center;gap:12px;padding:13px;border:1px solid #d6e0e8;border-radius:14px;margin:0 0 16px!important;background:#fafbfc}
.tool17-damaged input{width:22px!important;height:22px!important;min-height:0!important;flex:0 0 22px;accent-color:#ae494c;margin:0!important}
.tool17-damaged span{font-size:14px;font-weight:750}
.tool17-brand[hidden],.tool17-placeholder[hidden],#toolPhoto1517[hidden]{display:none!important}
.tool17-brand{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.tool17-brand label{min-width:0}
.tool17-photo{margin-bottom:14px}
.tool17-label{display:block;font-size:14px;font-weight:800;margin-bottom:8px}
.tool17-placeholder{min-height:86px;display:grid;place-items:center;font-size:35px}
.tool17-photo .tool13-photoedit{display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:9px}
.tool17-photo .tool13-photoedit-preview{max-height:145px;object-fit:contain;margin:auto}
.tool17-photo .pick{display:block;text-align:center}
/* Lista — valor usada é o único preço dentro de cada ferramenta */
.tool17-list{gap:10px!important}
.tool17-row{display:grid!important;grid-template-columns:70px minmax(0,1fr) 42px!important;align-items:center;gap:10px!important;padding:11px!important;min-height:108px}
.tool17-row .tool13-photo{width:70px!important;height:76px!important;min-height:0;min-width:0;overflow:hidden}
.tool17-row .tool13-photo img{width:100%;height:100%;object-fit:cover}
.tool17-info{display:flex!important;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;text-align:left;padding:0!important;border:0!important;background:transparent!important;color:inherit!important}
.tool17-title{font-size:17px;font-weight:850;line-height:1.25;overflow-wrap:anywhere;color:#132a44}
.tool17-price{font-size:20px;font-weight:900;color:#125981;line-height:1.2;overflow-wrap:anywhere}
.tool17-price small{display:block;margin-top:3px;font-size:11px;font-weight:600;color:#65798d}
.tool17-meta{display:block;font-size:12px;color:#64758a;font-weight:650;margin-top:2px}
.tool17-actions{display:grid!important;gap:8px!important;width:42px!important;min-width:0}
.tool17-actions button{width:40px!important;height:38px!important;min-width:0!important;min-height:0!important;border-radius:11px!important;font-size:18px!important}
.tool17-broken{display:inline-block;align-self:flex-start;margin-top:3px;border-radius:7px;background:#fbe5e4;color:#9c2e35;padding:3px 8px;font-size:11px;font-weight:800}
.tool17-detailwarn{margin:4px 0 12px}
.tool17-brandtext{padding:9px 3px 13px;font-size:13px;color:#64778a}
.tool17-empty{padding:26px 15px!important}
.dh17-hide-observation, label:has(> textarea[name="notes"]),label:has(> textarea[name="obs"]){display:none!important}
html[data-dh-theme="dark"] .tool17-title{color:#f3f8fd}
html[data-dh-theme="dark"] .tool17-price{color:#f2d18b}
html[data-dh-theme="dark"] .tool17-price small,html[data-dh-theme="dark"] .tool17-meta,html[data-dh-theme="dark"] .tool17-brandtext{color:#b4c9d9}
html[data-dh-theme="dark"] .tool17-form select{background:#172f44!important;color:#f4f9ff!important;border-color:#426176!important}
html[data-dh-theme="dark"] .tool17-qty button{background:#24435a;border-color:#48647b;color:#f5d186}
html[data-dh-theme="dark"] .tool17-damaged{background:#173044;border-color:#415c71;color:#f2f7fc}
html[data-dh-theme="dark"] .tool17-broken{background:#543039;color:#ffd7db}
@media(max-width:370px){.tool17-row{grid-template-columns:62px minmax(0,1fr) 40px!important;padding:9px!important;gap:8px!important}.tool17-row .tool13-photo{width:62px!important;height:69px!important}.tool17-price{font-size:18px}.tool17-title{font-size:15px}}
