:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#0f172a;background:#f8fafc;font-size:16px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{background:#0f172a;color:white;display:flex;justify-content:space-between;align-items:center;padding:18px max(20px,calc((100vw - 1180px)/2));gap:20px}.brand{display:flex;gap:16px;align-items:center;font-size:23px;font-weight:700}.brand img{width:64px;height:48px;object-fit:contain;background:white;border-radius:7px}.brand small{display:block;font-size:12px;letter-spacing:.14em;color:#cbd5e1;margin-top:3px}main{max-width:1180px;margin:auto;padding:28px 20px 64px}h1{font-size:clamp(30px,5vw,44px);letter-spacing:-.045em;margin:8px 0 24px}h2{font-size:21px}p{line-height:1.6;color:#64748b}.eyebrow{color:#2563eb;font-size:12px;font-weight:800;letter-spacing:.12em}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cbd5e1;background:white;border-radius:10px;padding:12px 18px;min-height:46px;color:#0f172a}button:hover{border-color:#2563eb}button:disabled{opacity:.55;cursor:wait}.primary{background:#2563eb;color:white;border:0;font-weight:650}.access{background:white;border:1px solid #e2e8f0;border-radius:22px;padding:36px;max-width:470px;margin:5vh auto;box-shadow:0 12px 50px #0f172a08}label{display:grid;gap:8px;margin:16px 0;font-size:14px;font-weight:650}input,select,textarea{width:100%;padding:13px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc;color:#0f172a;min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}form>.primary{width:100%;margin:12px 0}#forgot,#backLogin{border:0;width:100%;color:#2563eb}nav{display:flex;gap:8px;border-bottom:1px solid #e2e8f0;padding-bottom:16px;margin-bottom:30px}nav button{border:0;background:transparent}.active{background:#dbeafe!important;color:#1d4ed8}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.heading h1{margin-bottom:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:22px 0}.card{padding:24px;border:1px solid #e2e8f0;background:white;border-radius:16px}.work{text-align:left;display:block;width:100%}.work.selected{border:2px solid #2563eb}.card h3{font-size:19px;margin:0 0 10px}.card p{margin:8px 0}.amount{display:block;font-size:29px;font-weight:750;letter-spacing:-.04em;margin-top:20px}.muted{font-size:14px;color:#64748b}.summary{display:flex;flex-wrap:wrap;gap:14px}.summary .card{flex:1;min-width:170px}.entry{display:flex;align-items:center;gap:18px;background:white;padding:20px;border:1px solid #e2e8f0;border-radius:14px;margin:12px 0}.entry .info{flex:1;min-width:0}.entry h3{margin:0 0 7px}.entry img,.product-image{width:70px;height:70px;object-fit:cover;border-radius:10px}.entry p{margin:4px 0;font-size:14px}.badge{display:inline-block;padding:5px 9px;background:#eef2ff;color:#3730a3;font-size:12px;border-radius:7px}.pending{background:#fef3c7;color:#92400e}dialog{width:min(560px,calc(100% - 24px));max-height:90vh;border:0;border-radius:20px;padding:26px;box-shadow:0 30px 100px #0f172a50}dialog::backdrop{background:#0f172a80}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}#notice:not(:empty){padding:14px;background:#dbeafe;border-radius:10px;margin-bottom:18px}#formError{color:#b91c1c}footer{text-align:center;color:#64748b;font-size:12px;padding:20px}#identity{font-size:14px}#identity button{margin-left:12px;background:transparent;color:white;border-color:#475569;padding:8px 12px}.history{border-left:3px solid #cbd5e1;padding:10px 20px;margin:16px 0;overflow-wrap:anywhere}a{color:#2563eb}.empty{padding:40px;text-align:center;background:white;border:1px dashed #cbd5e1;border-radius:16px}details{font-size:14px;margin-top:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){header{padding:14px 16px}.brand{font-size:18px}.brand img{width:45px;height:38px}.brand small{font-size:10px}main{padding:20px 16px}.heading{align-items:flex-start;flex-wrap:wrap}.access{padding:25px;margin:20px auto}.entry{flex-wrap:wrap;padding:16px}.entry .info{min-width:170px}.two{grid-template-columns:1fr}.grid{grid-template-columns:1fr}#identity{max-width:110px}#identity button{margin:5px 0 0}.summary .card{padding:16px}.amount{font-size:26px}}

#globalTotals .card{background:#eef4ff;border-color:#dbeafe;padding:18px}#globalTotals .amount{font-size:24px;margin-top:10px}@media(max-width:600px){#globalTotals{grid-template-columns:1fr;gap:8px}#globalTotals .card{padding:12px 16px}#globalTotals .amount{display:inline-block;margin:6px 12px 0 0;font-size:22px}#globalTotals .muted{margin:4px 0}.two{grid-template-columns:1fr 1fr}}

/* EYOH identity beside the Materiales title */
.brand{gap:18px}.brand-logo{display:flex;align-items:center;gap:9px;flex:none;padding-right:18px;border-right:1px solid #475569}.brand-logo img{width:48px;height:48px;padding:5px;object-fit:contain;background:white;border-radius:9px}.brand-logo strong{font-size:23px;line-height:1;letter-spacing:.035em;color:#fff}.brand-title{display:block;line-height:1.08}.brand-title small{line-height:1.25}@media(max-width:600px){.brand{gap:10px;font-size:18px}.brand-logo{gap:5px;padding-right:10px}.brand-logo img{width:36px;height:36px;padding:3px}.brand-logo strong{font-size:15px}.brand-title small{font-size:9px;letter-spacing:.1em}}
fieldset{border:1px solid #d8deea;border-radius:10px;margin:1rem 0;padding:1rem}fieldset legend{font-weight:700;padding:0 .4rem}.check{display:flex;align-items:center;gap:.6rem;margin:.55rem 0}.check input{width:auto;margin:0}.catalog-section{margin:2rem 0}.catalog-section h2 small{font-size:.65em;color:#68768c}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:26px 0}.category-tile{position:relative;isolation:isolate;display:flex;align-items:flex-end;width:100%;height:205px;overflow:hidden;text-align:left;color:white;background:#1e293b;border:0;border-radius:17px;padding:0}.category-tile:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,transparent 25%,#071527ce 100%)}.category-art{position:absolute;inset:0;background-repeat:no-repeat;background-size:300% 300%;transition:transform .2s ease}.art-trabajos{background-image:url('trabajos.webp')}.art-estancias{background-image:url('estancias.webp')}.category-tile:hover .category-art,.category-tile:focus-visible .category-art{transform:scale(1.045)}.category-content{position:relative;z-index:1;display:grid;gap:4px;padding:18px;width:100%}.category-content strong{font-size:20px;line-height:1.15;text-shadow:0 1px 3px #07152788}.category-content small{font-size:13px;color:#e2e8f0}.category-tile:hover{border:0;box-shadow:0 8px 24px #0f172a2c}#catalogResult{margin:26px 0}#catalogResult h2{margin:18px 0}.catalog-product .product-image{width:100px;height:100px;object-fit:contain;background:#f8fafc;padding:5px}@media(max-width:700px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-tile{height:170px}.category-content{padding:12px}.category-content strong{font-size:16px}.category-content small{font-size:12px}}
.category-art[data-pos="0% 0%"]{background-position:0% 0%}.category-art[data-pos="50% 0%"]{background-position:50% 0%}.category-art[data-pos="100% 0%"]{background-position:100% 0%}.category-art[data-pos="0% 50%"]{background-position:0% 50%}.category-art[data-pos="50% 50%"]{background-position:50% 50%}.category-art[data-pos="100% 50%"]{background-position:100% 50%}.category-art[data-pos="0% 100%"]{background-position:0% 100%}.category-art[data-pos="50% 100%"]{background-position:50% 100%}.category-art[data-pos="100% 100%"]{background-position:100% 100%}
.danger{color:#b91c1c;border-color:#fecaca}.danger:hover{border-color:#dc2626;background:#fef2f2}
.picker-list{max-height:250px;overflow:auto;display:grid;gap:7px;margin:12px 0 18px}.picker-product{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:8px;min-height:68px}.picker-product.selected{border:2px solid #2563eb;background:#eff6ff}.picker-product img,.picker-no-image{width:52px;height:52px;flex:none;object-fit:contain;border-radius:7px;background:#f1f5f9}.picker-no-image{display:grid;place-items:center;color:#64748b;font-size:10px}.picker-product span:last-child{display:grid;gap:4px;min-width:0}.picker-product strong{font-size:13px;line-height:1.25}.picker-product small{font-size:11px;color:#64748b}
.selected-catalog-product{display:flex;align-items:center;gap:14px;padding:13px;margin:14px 0;border:2px solid #2563eb;background:#eff6ff;border-radius:12px}.selected-catalog-product img{width:68px;height:68px;flex:none;object-fit:contain;background:white;border-radius:8px}.selected-catalog-product span:last-child{display:grid;gap:5px}.selected-catalog-product strong{font-size:14px;line-height:1.3}.selected-catalog-product small{color:#475569}
.search-hit{display:grid;gap:5px;width:100%;text-align:left;margin:8px 0;background:white}.search-hit small{color:#2563eb;font-weight:750;letter-spacing:.08em}.search-hit strong{font-size:16px}.search-hit span{color:#64748b;font-size:13px}fieldset{border:1px solid #dbe2ea;border-radius:12px;margin:18px 0;padding:14px}fieldset legend{font-weight:700;color:#334155;padding:0 6px}
nav{overflow-x:auto;white-space:nowrap}.trade-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.trade-heading,.trade-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.trade-heading{margin:18px 0}.trade-heading p,.trade-row p{color:#64748b;margin:5px 0}.trade-work{border:1px solid #dbe2ea;border-radius:12px;padding:16px;margin:14px 0}.trade-row{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:13px;margin:9px 0}.trade-row a{display:inline-block;margin-top:5px}.trade-row button{flex:none}#workTrades{border-top:1px solid #dbe2ea;margin-top:28px;padding-top:20px}#unassignedInvoices{margin-bottom:20px}#collaboratorDetail{margin-top:26px}@media(max-width:580px){.trade-row{display:block}.trade-row button{margin-top:10px}}
.entry-no-image{width:76px;height:76px;flex:none;display:grid;place-items:center;border-radius:9px;background:#f1f5f9;color:#64748b;font-size:11px;text-align:center}.entry img{object-fit:contain;background:#f8fafc}
.work-section-tabs{display:flex;gap:8px;border-bottom:1px solid #dbe2ea;margin:26px 0 18px;overflow-x:auto}.work-section-tabs button{border:0;border-radius:8px 8px 0 0;background:transparent;color:#475569;white-space:nowrap;padding:12px 16px;font-weight:700}.work-section-tabs button.active{color:#1d4ed8;background:#eff6ff;border-bottom:3px solid #2563eb}#workTrades{border-top:0;margin-top:0;padding-top:0}
#laborAlerts{border:1px solid #fbbf24;background:#fffbeb;border-radius:12px;padding:16px;margin:0 0 22px}#laborAlerts h2{margin:0 0 10px;font-size:18px}#workEmployees .grid{margin:16px 0}#workEmployees input[type=month]{max-width:260px}#editForm textarea{display:block;width:100%;min-height:80px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;resize:vertical}
.work-cost-lines{display:block;margin-top:14px;color:#475569;line-height:1.5}.work .amount{display:block;margin-top:8px}#workProject{margin:4px 0 0;color:#64748b}
#requestItems fieldset{margin:12px 0;background:#f8fafc}#requestItems label{margin:10px 0}#requestItems [data-remove-request]{color:#b91c1c}#requestRows ul,#workRequestRows ul{margin:10px 0 0;padding-left:20px;line-height:1.6}
