:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1b2b26;background:#f4f6f3;font-synthesis:none;text-rendering:optimizeLegibility;--green: #16755d;--green-dark: #0d5946;--green-soft: #e7f3ee;--ink: #1b2b26;--muted: #687770;--line: #dfe5e1;--surface: #ffffff;--danger: #b23b3b;--shadow: 0 8px 28px rgba(26, 54, 45, .08)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f4f6f3}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}h1,h2,p{margin-top:0}h1,h2,.brand{font-family:Inter,ui-sans-serif,system-ui,sans-serif}code{background:#edf1ee;border-radius:5px;padding:2px 5px;font-size:.9em}.app-shell{min-height:100vh}.topbar{height:68px;padding:0 max(24px,calc((100vw - 1180px)/2));background:#fffffff0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px}.brand-mark{width:38px;height:38px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:#fff;box-shadow:0 5px 14px #16755d38}.brand-mark.large{width:54px;height:54px;border-radius:16px}.desktop-nav{height:100%;display:flex;gap:8px}.desktop-nav button{border:0;background:transparent;color:var(--muted);padding:0 16px;border-bottom:3px solid transparent;font-weight:600}.desktop-nav button.nav-active{color:var(--green);border-bottom-color:var(--green)}.user-menu{display:flex;align-items:center;gap:10px}.user-name{font-weight:600;color:#43514c}.main-content{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:42px 0 80px}.mobile-nav{display:none}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.page-heading h1{font-size:clamp(30px,4vw,42px);line-height:1.08;margin-bottom:5px;letter-spacing:-.035em}.eyebrow{margin-bottom:5px;color:var(--green);text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:.14em}.heading-subtitle{color:var(--muted);margin-bottom:0}.button{min-height:44px;border:1px solid transparent;border-radius:11px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;transition:.18s ease}.button.primary{background:var(--green);color:#fff;box-shadow:0 5px 14px #16755d2b}.button.primary:hover{background:var(--green-dark);transform:translateY(-1px)}.button.secondary,.filter-button{background:#fff;color:#34433e;border-color:var(--line)}.button.secondary:hover,.filter-button:hover{border-color:#b8c8c1;background:#fafcfb}.button.danger{background:var(--danger);color:#fff}.button.danger:hover{background:#963131}.button.danger-icon{min-width:38px;min-height:37px;padding:7px;border-color:#efcaca;background:#fff3f3;color:var(--danger)}.button.danger-icon:hover{background:#fce3e3;border-color:#dfaaaa}.button.full{width:100%}.icon-button{width:40px;height:40px;border:0;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.icon-button:hover{color:var(--green);background:var(--green-soft)}.text-button{border:0;color:var(--green);background:transparent;font-weight:700;padding:8px}.search-panel{background:var(--surface);border:1px solid var(--line);padding:16px;border-radius:17px;box-shadow:0 3px 14px #1a362d0a;margin-bottom:20px}.search-row{display:flex;gap:10px}.search-input{flex:1}.input-with-icon{position:relative;display:flex;align-items:center}.input-with-icon>svg{position:absolute;left:13px;color:#809089;pointer-events:none}.input-with-icon input{width:100%;padding-left:42px}.clear-input{position:absolute;right:7px;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:var(--muted);display:grid;place-items:center}.filter-button{flex:0 0 auto}.filter-button.has-filters{border-color:#85b9a8;color:var(--green);background:#f7fcfa}.filter-count{min-width:20px;height:20px;padding:0 5px;border-radius:10px;display:inline-grid;place-items:center;background:var(--green);color:#fff;font-size:12px}.rotate{transform:rotate(180deg)}.filters{border-top:1px solid var(--line);margin-top:15px;padding-top:15px;display:grid;grid-template-columns:repeat(4,1fr) auto;align-items:end;gap:12px}.filters label,.form-stack label,.form-grid label,.client-picker>label{display:flex;flex-direction:column;gap:7px;color:#42514c;font-size:14px;font-weight:600}.filters label span,.form-stack label>span,.form-grid label>span,.client-picker>label>span{padding-left:2px}.clear-filters{margin-bottom:3px;white-space:nowrap}input,select{width:100%;min-height:44px;border:1px solid #cfd8d3;border-radius:10px;background:#fff;color:var(--ink);padding:10px 12px;outline:none;transition:border .15s,box-shadow .15s}input:focus,select:focus{border-color:#56a18a;box-shadow:0 0 0 3px #16755d1f}input::placeholder{color:#97a39e}.quote-list{display:grid;gap:12px}.quote-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;justify-content:space-between;gap:24px;box-shadow:0 3px 14px #1a362d09;transition:border .18s,transform .18s,box-shadow .18s}.quote-card:hover{border-color:#c6d4ce;transform:translateY(-1px);box-shadow:var(--shadow)}.quote-main{min-width:0}.quote-date{color:var(--muted);display:flex;align-items:center;gap:6px;font-size:13px;margin-bottom:8px}.quote-card h2{font-size:19px;margin-bottom:5px;overflow-wrap:anywhere}.work-details{display:flex;flex-wrap:wrap;gap:7px 14px;margin:8px 0 10px;color:#37564c;font-size:14px;font-weight:650}.work-details span{display:inline-flex;align-items:center;gap:6px}.quote-address{color:var(--muted);display:flex;align-items:center;gap:5px;margin-bottom:12px;font-size:14px}.channel-tags{display:flex;flex-wrap:wrap;gap:7px}.tag{min-height:28px;border-radius:8px;padding:4px 8px;display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;border:0}.tag.whatsapp{color:#157348;background:#e6f7ed}.tag.email{color:#2f62a0;background:#eaf2fb}.tag.pdf{color:#a14b3b;background:#fcedea}.quote-side{min-width:180px;display:grid;justify-items:end;align-content:space-between;gap:9px}.status{padding:5px 9px;border-radius:99px;font-size:12px;font-weight:800}.status-pendiente{color:#8b6514;background:#fbf3da}.status-aceptado{color:#16704e;background:#e1f3ea}.status-denegado{color:#9e3f3f;background:#f9e5e5}.quote-amount{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:21px;letter-spacing:-.02em}.edit-button{min-height:37px;padding:7px 12px;font-size:13px}.quote-actions{display:flex;align-items:center;gap:7px}.empty-state{border:1px dashed #cbd6d1;border-radius:18px;background:#ffffffa6;padding:56px 24px;text-align:center;color:var(--muted)}.empty-state h2{color:var(--ink);font-size:20px;margin:14px 0 7px}.empty-state p{max-width:460px;margin:0 auto 20px}.empty-icon{width:52px;height:52px;background:var(--green-soft);color:var(--green);border-radius:16px;display:inline-grid;place-items:center}.page-error,.form-error{border:1px solid #efc5c5;background:#fff0f0;color:#8f3030;border-radius:11px;padding:11px 13px;font-size:14px}.page-error{margin-bottom:18px;display:flex;justify-content:space-between;gap:12px}.page-error button{border:0;background:transparent;color:inherit;text-decoration:underline;font-weight:700}.modal-open{overflow:hidden}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0c19158c;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:grid;place-items:center;padding:18px}.modal{background:#fff;width:min(520px,100%);max-height:calc(100dvh - 36px);overflow:auto;border-radius:19px;box-shadow:0 24px 70px #00000040}.modal-wide{width:min(720px,100%)}.modal-header{min-height:66px;padding:14px 18px 14px 24px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:4}.modal-header h2{font-size:21px;margin:0}.form-stack{padding:22px 24px 24px;display:flex;flex-direction:column;gap:18px}.form-grid{display:grid;gap:15px}.form-grid.two{grid-template-columns:1fr 1fr}.span-two{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:3px}.form-actions.with-delete{justify-content:space-between}.form-actions-main{display:flex;gap:10px}.delete-confirm{padding:28px 24px 24px;text-align:center}.delete-confirm-icon{width:52px;height:52px;margin:0 auto 14px;display:grid;place-items:center;border-radius:15px;background:#fce5e5;color:var(--danger)}.delete-confirm p{margin-bottom:6px}.delete-confirm small{color:var(--muted)}.delete-confirm .form-actions{margin-top:24px}.field-hint{color:var(--muted);font-size:13px;margin:-8px 0 0}fieldset{border:0;padding:0;margin:0}legend{color:#42514c;font-size:14px;font-weight:600;margin-bottom:8px}.check-group{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check-card{min-height:52px;border:1px solid #cfd8d3;border-radius:11px;display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;padding:9px 12px;cursor:pointer}.check-card:has(input:checked){border-color:#67a992;background:#f3faf7;color:var(--green-dark)}.check-card input,.check-row input{width:18px;min-height:18px;accent-color:var(--green)}.check-row{flex-direction:row!important;align-items:center;gap:9px!important;cursor:pointer}.check-row.compact{font-size:13px;padding-top:5px}.money-input{display:flex;align-items:center;position:relative}.money-input span{position:absolute;left:13px;color:var(--muted)}.money-input input{padding-left:29px}.file-input{min-height:44px;border:1px dashed #b9c8c1;background:#fafcfb;border-radius:10px;display:flex;align-items:center;gap:8px;padding:8px 11px;color:var(--muted);position:relative;overflow:hidden}.file-input span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-input input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.client-picker{position:relative}.client-results{border:1px solid var(--line);border-radius:11px;margin-top:6px;box-shadow:var(--shadow);overflow:hidden}.client-results button{width:100%;border:0;border-bottom:1px solid #edf0ee;background:#fff;text-align:left;padding:11px 13px;display:flex;flex-direction:column;gap:2px;color:var(--ink)}.client-results button:hover{background:#f6faf8}.client-results small,.selected-client small,.duplicate-client small{color:var(--muted);display:flex;align-items:center;gap:3px}.client-results .create-client{color:var(--green);flex-direction:row;align-items:center;gap:9px}.create-client span{display:flex;flex-direction:column}.selected-client{border:1px solid #bcd7cc;background:#f5fbf8;border-radius:12px;padding:11px;margin-top:8px;display:flex;align-items:center;gap:10px}.client-avatar{flex:0 0 auto;width:39px;height:39px;border-radius:12px;background:var(--green-soft);color:var(--green);display:grid;place-items:center}.selected-client-data{min-width:0;flex:1;display:flex;flex-direction:column}.duplicate-box{border:1px solid #e7cf8a;background:#fffaf0;border-radius:12px;padding:12px}.duplicate-title{color:#765812;display:flex;gap:7px;align-items:center;font-weight:700;margin-bottom:8px}.duplicate-client{width:100%;border:0;border-top:1px solid #eee1bd;background:transparent;padding:9px 2px;display:flex;align-items:center;justify-content:space-between;text-align:left}.duplicate-client>span:first-child{display:flex;flex-direction:column}.use-existing{color:var(--green);display:flex;align-items:center;gap:4px;font-weight:700}.users-list{display:grid;gap:10px}.user-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;display:flex;align-items:center;gap:13px}.user-data{min-width:0;flex:1;display:flex;flex-direction:column}.user-data>span{color:var(--muted);font-size:14px}.user-data small{color:#8a9792;margin-top:4px}.user-badges{display:flex;gap:7px;align-items:center}.role-badge,.active-badge{border-radius:99px;padding:5px 9px;font-size:12px;font-weight:700;display:inline-flex;gap:4px;align-items:center}.role-badge{background:#eaf2fb;color:#315f96}.role-badge.admin{background:#eee9fb;color:#62449d}.active-badge{background:#e4f3eb;color:#1a704f}.active-badge.inactive{background:#f1eeee;color:#785f5f}.skeleton-list{display:grid;gap:10px}.skeleton-list div{height:82px;border-radius:15px;background:linear-gradient(90deg,#ebefec 20%,#f6f8f6,#ebefec 70%);background-size:300% 100%;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position:-150% 0}}.login-page,.centered-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,#d9eee5 0,transparent 35%),radial-gradient(circle at 90% 80%,#e5efe1 0,transparent 32%),#f5f7f4}.login-card{width:min(420px,100%);background:#fff;border:1px solid rgba(210,220,215,.85);border-radius:24px;padding:38px 38px 34px;box-shadow:0 24px 65px #1c41341c}.login-brand{display:flex;justify-content:center;margin-bottom:19px}.login-card h1{text-align:center;font-size:29px;margin-bottom:7px}.login-subtitle{text-align:center;color:var(--muted);margin-bottom:8px}.login-card .form-stack{padding:20px 0 0}.setup-card{max-width:620px;background:#fff;border-style:solid;box-shadow:var(--shadow)}.setup-card h1{font-size:25px;margin-top:15px}.setup-card .muted{font-size:14px}.splash{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--muted)}.spinner{width:32px;height:32px;border:3px solid #dbe6e1;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.fab{display:none}@media(max-width:700px){.topbar{height:58px;padding:0 16px}.brand{font-size:17px}.brand-mark{width:34px;height:34px;border-radius:10px}.desktop-nav,.user-name{display:none}.main-content{width:calc(100% - 28px);padding:26px 0 104px}.mobile-nav{height:calc(65px + env(safe-area-inset-bottom));padding:6px 20px env(safe-area-inset-bottom);display:flex;align-items:center;justify-content:space-around;position:fixed;z-index:30;bottom:0;left:0;right:0;background:#fffffff7;border-top:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.mobile-nav button{min-width:88px;border:0;background:transparent;color:#73817c;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700}.mobile-nav button.nav-active{color:var(--green)}.page-heading{align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:31px}.page-heading>.button{display:none}.search-panel{padding:11px;border-radius:14px}.search-row{flex-direction:column}.filter-button{width:100%}.filters{grid-template-columns:1fr 1fr}.clear-filters{grid-column:span 2}.quote-card{padding:15px;gap:12px}.quote-card h2{font-size:17px}.quote-address{display:none}.quote-side{min-width:128px}.quote-amount{font-size:17px}.edit-button{padding:6px 9px}.edit-button svg{display:none}.modal-backdrop{align-items:end;padding:0}.modal{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.modal-header{min-height:60px;padding:12px 13px 12px 18px}.form-stack{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}.form-grid.two{grid-template-columns:1fr}.span-two{grid-column:auto}.sticky-actions{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));z-index:3;background:#fff;border-top:1px solid var(--line);margin:0 -16px calc(-18px - env(safe-area-inset-bottom));padding:11px 16px calc(11px + env(safe-area-inset-bottom))}.sticky-actions .button{flex:1}.sticky-actions.with-delete{align-items:stretch}.sticky-actions.with-delete>.danger{flex:0 0 auto}.form-actions-main,.form-actions-main .button{flex:1}.fab{position:fixed;z-index:31;right:18px;bottom:calc(78px + env(safe-area-inset-bottom));width:55px;height:55px;border:0;border-radius:18px;background:var(--green);color:#fff;box-shadow:0 10px 28px #0d594657;display:grid;place-items:center}.user-card{flex-wrap:wrap}.user-data{width:calc(100% - 55px)}.user-badges{order:3;margin-left:52px}.user-edit{margin-left:auto}.login-card{padding:30px 22px 26px;border-radius:20px}}@media(max-width:410px){.quote-card{flex-direction:column}.quote-side{min-width:0;grid-template-columns:auto 1fr auto;align-items:center;justify-items:start}.quote-amount,.quote-actions{justify-self:end}.channel-tags{margin-top:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important}}
