/* AutoBraga stock workspace: compact list and visual cards. */
#stock-browser{font-size:13px;color:#333d49}#stock-browser [hidden]{display:none!important}.stock-heading h1{font-size:22px}.stock-heading h1 span{color:#87909c;font-weight:400}.stock-heading p{font-size:12px}.stock-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:white;padding:12px;border:1px solid #e5e7eb;border-radius:10px}.stock-search{display:flex;align-items:center;gap:8px;flex:1;max-width:420px;border:1px solid #dce0e5;border-radius:7px;padding:0 10px;color:#9099a5}.stock-search span{font-size:25px;line-height:1}.stock-search input{border:0!important;box-shadow:none!important;padding:9px 0!important;font-size:13px;background:transparent}.stock-search:focus-within{outline:2px solid #77b5a6;outline-offset:1px}.stock-toolbar button{padding:8px 12px;font-size:12px}.stock-toolbar #stats{margin-left:auto;color:#7d8693;font-size:12px}.stock-view-switch{display:flex;gap:3px;border-left:1px solid #e3e6e9;padding-left:9px}.stock-view-switch button{background:transparent;color:#687482;font-size:18px;padding:3px 9px}.stock-view-switch button[aria-pressed=true]{background:#edf5f2;color:#32796b}.stock-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e4e7eb;border-top:0;padding:16px;border-radius:0 0 10px 10px}.stock-filters label{display:grid;gap:5px;flex:1 1 140px;max-width:225px;font-size:11px;color:#77818d}.stock-filters input,.stock-filters select{font-size:12px;padding:9px}.stock-filters button{font-size:12px;padding:10px}.stock-metrics{display:grid;grid-template-columns:1fr 1fr 1.4fr 1.2fr;gap:12px;margin:22px 0}.stock-kpi{background:#fff;border:1px solid #e4e7eb;border-radius:11px;padding:15px;min-height:103px;box-shadow:0 2px 3px #26352e03;min-width:0}.stock-kpi>span{display:block;font-size:10px;color:#7a8491;text-transform:uppercase;letter-spacing:.045em;margin-bottom:9px}.stock-kpi>strong{font-size:23px;display:block;font-weight:700;letter-spacing:-.02em}.stock-kpi>small{display:block;font-size:10px;color:#8c94a0;margin-top:4px}.stock-bar{display:flex;gap:1px;height:7px;background:#f0f2f4;border-radius:8px;overflow:hidden;margin:15px 0 11px}.stock-legend{display:flex;gap:7px 12px;flex-wrap:wrap;font-size:10px;color:#66727d}.stock-legend span{display:flex;align-items:center;gap:4px;white-space:nowrap}.stock-legend i,.stock-age i{width:7px;height:7px;border-radius:50%;display:inline-block}.stock-legend b{font-weight:500;color:#303b45}.stock-order{display:flex;align-items:center;justify-content:space-between;margin:16px 0 11px}.stock-order>span{font-weight:600;font-size:13px}.stock-order label,.stock-pagination label{display:flex;align-items:center;gap:8px;font-size:11px;color:#7f8995;white-space:nowrap}.stock-order select,.stock-pagination select{font-size:12px;padding:6px 25px 6px 8px;width:auto;max-width:180px;border-color:#dfe4e7}.stock-table{overflow:auto;background:#fff;border:1px solid #e1e5e9;border-radius:10px}.stock-table table{margin:0;width:100%;min-width:1100px;border-collapse:collapse}.stock-table th{font-size:11px!important;text-transform:none!important;letter-spacing:0!important;font-weight:500;padding:13px 12px;text-align:left;background:#fafbfc;white-space:nowrap}.stock-table td{padding:10px 12px!important;border-bottom:1px solid #e8ebee;font-size:12px;vertical-align:middle}.stock-table tr:last-child td{border-bottom:0}.stock-table tbody tr:hover{background:#f9fcfb}.stock-table th:first-child{width:34%}.stock-table th:nth-child(5),.stock-table td:nth-child(5){text-align:right}.stock-vehicle{display:flex;align-items:center;gap:11px;min-width:260px}.stock-photo{display:flex;align-items:center;justify-content:center;width:76px;height:60px;flex-shrink:0;border-radius:8px;overflow:hidden;background:#f1f3f3;color:#9aa3ab}.stock-photo img{width:100%;height:100%;object-fit:contain}.stock-photo svg{width:35px;height:26px}.stock-name{padding:0!important;background:none!important;border:0!important;color:#303c47!important;text-align:left;font-size:13px!important;font-weight:700;line-height:1.4;letter-spacing:-.01em}.stock-name:hover{text-decoration:underline}.stock-vehicle p,.stock-card-heading p{font-size:11px;color:#818b97;margin:2px 0 5px}.stock-tags{display:flex;gap:4px;flex-wrap:wrap}.stock-tags>span{border:1px solid #e1e5e8;background:#fafbfc;color:#68727f;border-radius:4px;padding:1px 5px;font-size:10px;white-space:nowrap}.stock-price{font-weight:700;color:#303b45;white-space:nowrap}.stock-age{display:inline-flex;align-items:center;gap:8px;color:#6f7b87}.stock-muted{color:#a3aab4}.stock-state{display:inline-flex;padding:3px 7px;font-size:10px;background:#f1f3f6;border:1px solid #e1e4ea;border-radius:5px;color:#717d8a;white-space:nowrap}.stock-state.published{background:#edf7f1;color:#3d8070;border-color:#d1e9de}.stock-state.draft{background:#fff8e9;color:#a57c21;border-color:#f0e2bb}.stock-state.reserved{background:#eef3ff;color:#647dad;border-color:#d9e3f6}.stock-profit{font-weight:600;white-space:nowrap;color:#4d6170}.stock-profit small{margin-left:5px;color:#4b9f86;font-weight:400;font-size:10px}.stock-profit.negative,.stock-profit.negative small{color:#c15e5e}.stock-market{display:flex;align-items:center;gap:7px;min-width:110px}.stock-market>span{position:relative;width:72px;height:4px;background:#e4e9e7;border-radius:4px}.stock-market>span:after{content:'';position:absolute;left:50%;top:-3px;height:10px;width:1px;background:#a6b5ad}.stock-market i{position:absolute;top:-3px;width:10px;height:10px;background:#366a5d;border:2px solid white;outline:1px solid #366a5d;border-radius:50%;z-index:1}.stock-market b{font-size:10px;color:#7d8793;font-weight:400}.stock-text-button{padding:2px 0!important;background:none!important;color:#518779!important;font-size:11px!important;text-decoration:underline;text-underline-offset:3px}.stock-actions{position:relative;flex-shrink:0}.stock-actions summary{cursor:pointer;list-style:none;text-align:center;padding:4px 8px;font-size:22px;color:#929da9;line-height:1}.stock-actions summary::-webkit-details-marker{display:none}.stock-actions[open]>div{position:absolute;right:0;top:30px;background:#fff;box-shadow:0 8px 28px #1d383b22;border:1px solid #dfe6e3;border-radius:8px;min-width:190px;padding:6px;z-index:15}.stock-actions div>*{display:block;padding:9px 10px!important;border-radius:5px!important;background:white!important;font-size:12px!important;color:#456454!important;text-align:left;text-decoration:none;width:100%;white-space:nowrap}.stock-actions div>*:hover{background:#f0f7f4!important}.stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:15px}.stock-car{border:1px solid #e2e6e9;border-radius:10px;background:#fff;padding:13px;min-width:0;box-shadow:0 2px 3px #26352e02}.stock-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;min-height:48px}.stock-card-heading p{margin-bottom:9px;min-height:16px}.stock-card-photo{display:block;background:transparent!important;padding:0!important;width:100%;margin:12px 0 10px;overflow:hidden;border-radius:8px}.stock-card-photo .stock-photo{width:100%;height:auto;aspect-ratio:4/3;display:flex}.stock-card-photo .stock-photo svg{width:45px}.stock-card-photo img{object-fit:contain;transition:transform .2s}.stock-card-photo:hover img{transform:scale(1.025)}.stock-card-price{display:flex;align-items:center;justify-content:space-between;margin:6px 0 13px}.stock-card-price strong{font-size:16px}.stock-card-price>span{font-size:10px;color:#89939d}.stock-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #e5e9eb;margin-top:12px;padding-top:10px;font-size:10px;color:#87949a;gap:7px;flex-wrap:wrap}.stock-card-footer .stock-profit{font-size:11px;margin-left:3px}.stock-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:16px 0;color:#798692;font-size:12px}.stock-pagination>label{margin-right:auto}.stock-pagination button{font-size:13px;padding:7px 11px}.stock-pagination button:disabled{cursor:default}.stock-empty{padding:40px;text-align:center;color:#87949b;grid-column:1/-1}.stock-sr-only{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0,0,0,0)}
.stock-market-status{display:inline-block;min-width:110px;color:#87958f;font-size:10px}.stock-market.high i{background:#b17c36;outline-color:#b17c36}.stock-market.high b{color:#9a713b}.stock-market.fair i{background:#4e849f;outline-color:#4e849f}.stock-market.low i{background:#438779;outline-color:#438779}.stock-market.stale{opacity:.65}.stock-card-market{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:11px;margin-top:12px;border-top:1px dashed #e5e9eb;font-size:10px;color:#87949a}.stock-card-market .stock-market{min-width:110px;justify-content:flex-end}
@media(max-width:1200px){.stock-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.stock-search{max-width:none;flex-basis:calc(100% - 95px)}.stock-toolbar #stats{margin-left:0;flex:1}.stock-metrics{gap:9px;margin:15px 0}.stock-kpi{padding:11px}.stock-kpi>strong{font-size:20px}.stock-kpi>span{font-size:9px}.stock-legend{gap:5px;font-size:9px}.stock-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.stock-order{gap:8px}.stock-order>span{font-size:12px}.stock-order label{font-size:0}.stock-filters label{max-width:none;flex-basis:42%}.stock-heading{gap:10px}.stock-heading p{display:none}.stock-heading h1{font-size:18px}.stock-heading #newCar{font-size:11px;padding:9px}.stock-pagination{flex-wrap:wrap}.stock-pagination label{font-size:10px}.stock-card-heading .stock-name{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.stock-card-photo img{transition:none}}

.stock-supplier-filter{display:flex;align-items:center;gap:7px;font-size:10px;color:#7a8791}.stock-supplier-filter select{width:210px;max-width:100%;font-size:12px;padding:9px;border-color:#dce0e5;border-radius:7px}.stock-supplier-name{display:block;min-width:100px;max-width:150px;white-space:normal;line-height:1.45;font-size:11px;color:#65786f}.stock-card-supplier{display:flex;flex-direction:column;gap:3px;margin:10px 0 0;font-size:10px;color:#8a9690}.stock-card-supplier b{font-size:11px;color:#587367;font-weight:500}@media(max-width:650px){.stock-supplier-filter{flex:1 1 100%}.stock-supplier-filter select{flex:1;width:auto}.stock-supplier-filter span{width:65px}}

.stock-quick{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.stock-quick button{border:1px solid #dce5e2;border-radius:7px;padding:5px 8px;background:white;color:#315f56;font-size:11px;white-space:nowrap}.stock-quick button[aria-pressed=true]{background:#e4f3ed;border-color:#74ad9a}.stock-quick button:disabled{opacity:.45}.stock-grid [hidden],#stock-table [hidden]{display:none!important}
