.button-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:8px;font-size:12px;font-weight:600}
.sidebar .brand.site-brand{display:block;padding:0 4px 28px}.site-brand-logo{display:block;width:100%;max-width:196px;height:auto}
.module-note{display:flex;align-items:flex-start;gap:14px;padding:12px 0}
.module-note-icon{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:var(--mint);color:var(--teal-dark)}
.module-note strong{display:block;font-size:12px}
.module-note p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.7}
.empty-state{padding:25px 10px;text-align:center;color:var(--muted);font-size:12px}
.module-placeholder{max-width:900px}
.footer{margin-top:24px;color:var(--muted);font-size:10px;text-align:center}
.button-link:focus-visible,.nav-link:focus-visible{outline:2px solid var(--teal)}

/* Ilustração original da página de entrada: casa em obra e pinheiro da marca. */
.login-art{width:100%;margin:30px auto 0;min-height:252px;display:flex;justify-content:center}
.construction-art{width:100%;max-width:510px;margin-inline:auto;filter:drop-shadow(0 13px 18px #071c1e36)}
.login-visual .brand{gap:20px;font-size:40px;letter-spacing:-1.6px}
.login-visual .brand-mark{width:76px;height:76px;border-radius:18px;font-size:38px}
.login-visual .brand small{margin-top:6px;font-size:16px;letter-spacing:4px}
.login-visual>div:nth-child(2)>.eyebrow{margin:18px 0 0 96px}

/* Distingue claramente o nome do campo da sugestão de preenchimento. */
label{font-size:12px;font-weight:700;color:#48676c}
input::placeholder,textarea::placeholder{color:#b5c0c3;opacity:1;font-weight:400}
.entry-form input,.entry-form select,.entry-form textarea{color:#365057;font-weight:600}
.construction-art svg{display:block;width:100%;height:auto;overflow:visible}
.construction-art .art-glow{fill:#2b5355}
.construction-art .art-ground{fill:none;stroke:#6b9a8d;stroke-width:2;stroke-linecap:round;opacity:.5}
.construction-art .art-shadow{fill:#0e292c;opacity:.72}
.construction-art .art-house-side{fill:#d5ebe2;stroke:#9fc9b9;stroke-width:2;stroke-linejoin:round}
.construction-art .art-house{fill:#f7fbf8;stroke:#d7ebe2;stroke-width:2;stroke-linejoin:round}
.construction-art .art-roof{fill:#1a8d7e;stroke:#a8d6c5;stroke-width:2;stroke-linejoin:round}
.construction-art .art-chimney{fill:#d9ede5;stroke:#a8d6c5;stroke-width:2;stroke-linejoin:round}
.construction-art .art-roof-line{fill:none;stroke:#d8f1e5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.construction-art .art-door{fill:#264f4e}.construction-art .art-handle{fill:#9ed8bb}
.construction-art .art-window{fill:#a8dace;stroke:#4b8f7f;stroke-width:2}
.construction-art .art-window-lines{fill:none;stroke:#4b8f7f;stroke-width:2}
.construction-art .art-plank{fill:#d7a565;stroke:#f3d29f;stroke-width:2;stroke-linejoin:round}
.construction-art .art-plank-lines{fill:none;stroke:#956936;stroke-width:1.5;stroke-linecap:round}
.construction-art .art-ladder{fill:none;stroke:#f1c681;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.construction-art .art-pine{fill:#78b99d;stroke:#b3dfc8;stroke-width:2;stroke-linejoin:round}
.construction-art .art-pine-trunk{fill:#c89658}.construction-art .art-pine-detail{fill:none;stroke:#d5efe0;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.7}
.construction-art .art-hammer{fill:none;stroke:#c4e5d7;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.construction-art .art-spark{fill:none;stroke:#e4bd79;stroke-width:3;stroke-linecap:round}
@media(max-width:1150px){.login-art{min-height:205px}.construction-art{max-width:430px}}

.exit-link{display:flex;align-items:center;gap:10px;margin:4px 7px 0;padding:0;border-radius:8px;color:#7b8d90;font-size:11px;font-weight:600}.exit-link .ghost{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;color:inherit;font:inherit}
.exit-link:hover{background:#f5f8f7;color:#356058}.exit-link svg{width:17px;height:17px}
.top-exit{margin-left:auto;padding:8px 10px;border:1px solid var(--line);border-radius:7px;color:#647c80;font-size:11px;font-weight:600}.top-exit:hover{background:#f4f8f6;color:var(--teal-dark)}
.entry-form{max-width:none}.entry-form .card-body{padding-top:4px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;padding-top:18px;border-top:1px solid var(--line)}
.admin-grid{max-width:none;margin-bottom:20px}.admin-users{max-width:none}
.admin-message{max-width:none;margin:0 0 18px}
.table-edit{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #cfe1dc;border-radius:7px;color:var(--teal-dark);font-size:10px;font-weight:700}.table-edit:hover{background:var(--mint);border-color:#a8cfc2}
.vehicle-expiry{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.vehicle-expiry.overdue{color:#bb5149;font-weight:700}.vehicle-overdue-dot{width:8px;height:8px;display:inline-block;flex:0 0 8px;border-radius:50%;background:#d64747;box-shadow:0 0 0 3px #fde8e6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.alert-overdue-dot{width:8px;height:8px;display:inline-block;margin:0 7px 1px 0;border-radius:50%;background:#d64747;box-shadow:0 0 0 3px #fde8e6;vertical-align:middle}
.payment-plan{margin-top:20px}.inline-payment{display:flex;align-items:center;gap:6px;min-width:510px}.inline-payment input,.inline-payment select{padding:7px 8px;font-size:10px}.inline-payment input[type=number]{width:85px}.inline-payment input[type=date]{width:125px}.inline-payment select{width:108px}.inline-payment input[placeholder]{width:100px}.payment-alerts{margin:-4px 0 24px;border-color:#eed8b1}.alert-list{border-top:1px solid #f5e5c7}.payment-alert{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid #f5e5c7;color:#6d5b3d}.payment-alert:last-child{border-bottom:0}.payment-alert:hover{background:#fffaf0}.payment-alert-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff1d6;color:#b27e25;font-weight:800}.payment-alert>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:10px}.payment-alert>span:nth-child(2) span{color:#8b7d67;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-alert>b{font-size:10px;white-space:nowrap;color:#ad7a25}.payment-alert.overdue{background:#fff6f5;border-color:#f3d6d4}.payment-alert.overdue .payment-alert-icon{background:#fde8e6;color:#bd554b}.payment-alert.overdue>b{color:#bb5149}.payment-alert.today{background:#fffaf0}.dashboard-heading{align-items:flex-start}.dashboard-heading-alert{width:min(610px,55vw);margin:0}.dashboard-heading-alert .card-head{display:none}.dashboard-heading-alert .alert-list{border-top:0}.dashboard-heading-alert .payment-alert{padding:11px 14px}.dashboard-heading-alert .payment-alert>span:nth-child(2) span{white-space:normal}.dashboard-heading-alert .payment-alert>b{align-self:flex-end}
.payment-plan{scroll-margin-top:100px}
.payment-plan{margin-top:20px}.inline-payment{display:flex;align-items:center;gap:6px;min-width:510px}.inline-payment input,.inline-payment select{padding:7px 8px;font-size:10px}.inline-payment input[type=number]{width:85px}.inline-payment input[type=date]{width:125px}.inline-payment select{width:108px}.inline-payment input[placeholder]{width:100px}.payment-alerts{margin:-4px 0 24px;border-color:#eed8b1}.alert-list{border-top:1px solid #f5e5c7}.payment-alert{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid #f5e5c7;color:#6d5b3d}.payment-alert:last-child{border-bottom:0}.payment-alert:hover{background:#fffaf0}.payment-alert-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff1d6;color:#b27e25;font-weight:800}.payment-alert>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:10px}.payment-alert>span:nth-child(2) span{color:#8b7d67;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-alert>b{font-size:10px;white-space:nowrap;color:#ad7a25}.payment-alert.overdue{background:#fff6f5;border-color:#f3d6d4}.payment-alert.overdue .payment-alert-icon{background:#fde8e6;color:#bd554b}.payment-alert.overdue>b{color:#bb5149}.payment-alert.today{background:#fffaf0}.dashboard-heading-alert{width:100%;margin:-8px 0 24px}.dashboard-heading-alert .card-head{display:none}.dashboard-heading-alert .alert-list{border-top:0}.dashboard-heading-alert .payment-alert{padding:13px 20px}.dashboard-heading-alert .payment-alert>span:nth-child(2) span{white-space:normal}
.payment-plan{margin-top:20px}.inline-payment{display:flex;align-items:center;gap:6px;min-width:510px}.inline-payment input,.inline-payment select{padding:7px 8px;font-size:10px}.inline-payment input[type=number]{width:85px}.inline-payment input[type=date]{width:125px}.inline-payment select{width:108px}.inline-payment input[placeholder]{width:100px}.payment-alerts{margin:-4px 0 24px;border-color:#eed8b1}.alert-list{border-top:1px solid #f5e5c7}.payment-alert{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid #f5e5c7;color:#6d5b3d}.payment-alert:last-child{border-bottom:0}.payment-alert:hover{background:#fffaf0}.payment-alert-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff1d6;color:#b27e25;font-weight:800}.payment-alert>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:10px}.payment-alert>span:nth-child(2) span{color:#8b7d67;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-alert>b{font-size:10px;white-space:nowrap;color:#ad7a25}.payment-alert.overdue{background:#fff6f5;border-color:#f3d6d4}.payment-alert.overdue .payment-alert-icon{background:#fde8e6;color:#bd554b}.payment-alert.overdue>b{color:#bb5149}.payment-alert.today{background:#fffaf0}.dashboard-heading-alert{width:100%;margin:-8px 0 24px}.dashboard-heading-alert .card-head{display:none}.dashboard-heading-alert .alert-list{border-top:0}.dashboard-heading-alert .payment-alert{padding:13px 20px}.dashboard-heading-alert .payment-alert>span:nth-child(2) span{white-space:normal}.archive-work-form{display:inline}
.payment-plan{margin-top:20px}.inline-payment{display:flex;align-items:center;gap:6px;min-width:510px}.inline-payment input,.inline-payment select{padding:7px 8px;font-size:10px}.inline-payment input[type=number]{width:85px}.inline-payment input[type=date]{width:125px}.inline-payment select{width:108px}.inline-payment input[placeholder]{width:100px}.payment-alerts{margin:-4px 0 24px;border-color:#eed8b1}.alert-list{border-top:1px solid #f5e5c7}.payment-alert{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid #f5e5c7;color:#6d5b3d}.payment-alert:last-child{border-bottom:0}.payment-alert:hover{background:#fffaf0}.payment-alert-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff1d6;color:#b27e25;font-weight:800}.payment-alert>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:10px}.payment-alert>span:nth-child(2) span{color:#8b7d67;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-alert>b{font-size:10px;white-space:nowrap;color:#ad7a25}.payment-alert.overdue{background:#fff6f5;border-color:#f3d6d4}.payment-alert.overdue .payment-alert-icon{background:#fde8e6;color:#bd554b}.payment-alert.overdue>b{color:#bb5149}.payment-alert.today{background:#fffaf0}.appointment-alert{background:#f1f6ff;color:#3e6598}.appointment-alert .payment-alert-icon{background:#e0ecff;color:#477bb8}.appointment-alert>b{color:#3f73ad}.dashboard-heading-alert{width:100%;margin:-8px 0 24px}.dashboard-heading-alert .card-head{display:none}.dashboard-heading-alert .alert-list{border-top:0}.dashboard-heading-alert .payment-alert{padding:13px 20px}.dashboard-heading-alert .payment-alert>span:nth-child(2) span{white-space:normal}.archive-work-form{display:inline}
.payment-plan{margin-top:20px}.inline-payment{display:flex;align-items:center;gap:6px;min-width:510px}.inline-payment input,.inline-payment select{padding:7px 8px;font-size:10px}.inline-payment input[type=number]{width:85px}.inline-payment input[type=date]{width:125px}.inline-payment select{width:108px}.inline-payment input[placeholder]{width:100px}.payment-alerts{margin:-4px 0 24px;border-color:#eed8b1}.alert-list{border-top:1px solid #f5e5c7}.payment-alert{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid #f5e5c7;color:#6d5b3d}.payment-alert:last-child{border-bottom:0}.payment-alert:hover{background:#fffaf0}.payment-alert-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff1d6;color:#b27e25;font-weight:800}.payment-alert>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:10px}.payment-alert>span:nth-child(2) span{color:#8b7d67;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-alert>b{font-size:10px;white-space:nowrap;color:#ad7a25}.payment-alert.overdue{background:#fff6f5;border-color:#f3d6d4}.payment-alert.overdue .payment-alert-icon{background:#fde8e6;color:#bd554b}.payment-alert.overdue>b{color:#bb5149}.payment-alert.today{background:#fffaf0}.appointment-alert{background:#f1f6ff;color:#3e6598}.appointment-alert .payment-alert-icon{background:#e0ecff;color:#477bb8}.appointment-alert>b{color:#3f73ad}.dashboard-heading-alert{width:100%;margin:-8px 0 24px}.dashboard-heading-alert .card-head{display:none}.dashboard-heading-alert .alert-list{border-top:0}.dashboard-heading-alert .payment-alert{padding:13px 20px}.dashboard-heading-alert .payment-alert>span:nth-child(2) span{white-space:normal}.archive-work-form{display:inline}.dashboard-bottom{grid-template-columns:minmax(0,1fr)}
.payment-plan-edit{margin-top:20px}.payment-edit-picker{display:flex;align-items:end;gap:12px;max-width:720px}.payment-edit-picker label{flex:1}.payment-edit-picker select{width:100%}.payment-edit-form{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}

/* Texto introduzido pelo utilizador: contraste reforçado em todos os campos editáveis. */
input:not([type="hidden"]),select,textarea{color:#365057!important;font-weight:600}
.photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:13px}.photo-gallery a{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff;color:#688084;font-size:10px}.photo-gallery img{display:block;width:100%;height:115px;object-fit:cover;background:#edf3f1}.photo-gallery span{display:block;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-gallery a:hover{border-color:#91c2b3}.photo-gallery a:hover img{opacity:.88}
.client-history{max-width:none;margin-bottom:20px}.history-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.history-search label{flex:1;min-width:250px}.history-search .history-filter{flex:1.25}.history-search input,.history-search select{width:100%}.history-search button{margin-bottom:0}.history-table{margin-top:20px}
.stock-filters{margin-bottom:20px}.stock-filter-form{display:flex;align-items:end;gap:12px;padding:18px 22px;flex-wrap:wrap}.stock-filter-form label{flex:1;min-width:220px}.stock-filter-form input,.stock-filter-form select{width:100%}.stock-filter-tabs{border-top:1px solid var(--line);padding:12px 22px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.stock-filter-tabs a{padding:7px 10px;border:1px solid transparent;border-radius:7px;font-size:10px;font-weight:600;color:#708589}.stock-filter-tabs a:hover,.stock-filter-tabs a.selected{background:var(--mint);border-color:#d5e9e1;color:var(--teal-dark)}
@media print{.form-actions{display:none!important}}
@media print{.budget-form .card-head{display:none}.budget-print-number{font-size:22px;font-weight:700;color:#173438;margin:22px}.budget-print-number span{display:block;margin-top:7px;font-size:12px;font-weight:400;color:#526d70}}
.budget-client-summary{margin:0 22px 18px;padding:11px 13px;border-radius:8px;background:#eef7f3;color:#52736c;font-size:11px}.budget-client-summary strong{margin-left:5px;color:#254b45}.budget-client-summary span{margin-left:12px;color:#6e8586}
.password-field{position:relative;width:100%}.password-field input{width:100%;padding-right:46px}.password-toggle{position:absolute;top:50%;right:7px;transform:translateY(-50%);border:0;background:transparent;color:#779095;padding:7px;border-radius:6px}.password-toggle:hover{background:#eef5f2;color:var(--teal-dark)}.password-toggle svg{width:18px;height:18px}
@media(max-width:580px){.top-exit{font-size:10px;padding:7px}.form-actions{justify-content:stretch}.form-actions button{flex:1}}
/* Cartões do painel geral */
.metric-link { display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.metric-link:hover { border-color: #9bcfc3; box-shadow: 0 10px 28px rgba(22, 135, 119, .12); transform: translateY(-2px); }
.metric-link:focus-visible { outline: 3px solid rgba(22, 135, 119, .28); }
