:root{--rf-red:#e11b22;--rf-dark:#17181b;--rf-stone:#f4f2ef;--rf-border:#e5e2de;--rf-muted:#6d7178}
*{box-sizing:border-box}body{margin:0;background:#f7f7f8;color:#24262a;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;background:linear-gradient(180deg,#17181b,#27282c);color:white;position:fixed;inset:0 auto 0 0;z-index:1030;overflow-y:auto}.brand{height:74px;display:flex;align-items:center;gap:12px;padding:12px 22px;color:white;text-decoration:none;border-bottom:1px solid #383a3f;font-size:22px;letter-spacing:.5px}.brand img{width:44px;height:44px;object-fit:contain}.brand b{color:var(--rf-red)}.sidebar-nav{padding:16px 12px}.nav-item{display:flex;align-items:center;gap:12px;color:#d8d9dc;text-decoration:none;border-radius:10px;padding:10px 12px;margin:3px 0;font-size:14px}.nav-item:hover{color:#fff;background:#35373c}.nav-item i{font-size:18px;width:22px}.nav-label{font-size:11px;text-transform:uppercase;color:#8f9299;letter-spacing:1px;padding:22px 12px 7px}.main-panel{margin-left:248px;min-width:0;width:calc(100% - 248px)}.topbar{height:74px;background:#fff;border-bottom:1px solid #e8e8ea;display:flex;align-items:center;padding:0 26px;position:sticky;top:0;z-index:1020}.topbar-title{font-weight:700;font-size:20px;flex:1}.topbar-actions{display:flex;align-items:center;gap:14px}.lang-switch{background:#f0f1f3;color:#25262a;border-radius:8px;padding:6px 9px;text-decoration:none;font-weight:700;font-size:12px}.user-name{font-size:14px}.logout-btn{color:#555!important}.sidebar-toggle{display:none;border:0;background:transparent;font-size:24px}.content-wrap{padding:26px;max-width:1680px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.page-head h1{margin:0;font-size:28px}.page-subtitle{color:var(--rf-muted);margin-top:5px}.card{border:1px solid var(--rf-border);box-shadow:0 3px 14px rgba(25,25,25,.035);border-radius:14px}.card-header{background:#fff;border-bottom:1px solid var(--rf-border);font-weight:700}.btn-primary,.btn-danger{background:var(--rf-red);border-color:var(--rf-red)}.btn-primary:hover,.btn-danger:hover{background:#bd1218;border-color:#bd1218}.btn-dark{background:var(--rf-dark)}.table{font-size:14px}.table thead th{color:#686c73;font-size:12px;text-transform:uppercase;letter-spacing:.3px;border-bottom-width:1px}.badge-stage{display:inline-block;border-radius:999px;padding:6px 10px;background:#ececef;color:#333;font-size:11px;font-weight:700}.stage-COMPLETED{background:#d8f3e6;color:#12633c}.stage-CANCELLED{background:#fee0e1;color:#9d1419}.stage-FIRST_DEPOSIT_PAID,.stage-SECOND_DEPOSIT_PAID,.stage-FINAL_PAYMENT{background:#e0f0ff;color:#15568d}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.kpi-card{background:#fff;border:1px solid var(--rf-border);border-radius:14px;padding:20px}.kpi-label{color:var(--rf-muted);font-size:13px}.kpi-value{font-size:29px;font-weight:800;margin-top:8px}.kpi-accent{border-top:4px solid var(--rf-red)}.pipeline{display:flex;gap:14px;overflow-x:auto;padding-bottom:18px}.pipeline-column{min-width:285px;width:285px;background:#efeff1;border-radius:14px;padding:12px}.pipeline-head{display:flex;justify-content:space-between;font-weight:700;padding:6px 4px 12px}.project-card{display:block;background:#fff;border:1px solid #e1e1e4;border-radius:11px;padding:14px;margin-bottom:10px;text-decoration:none;color:inherit}.project-card:hover{border-color:#c8c8cd;box-shadow:0 5px 14px rgba(0,0,0,.06)}.project-card-title{font-weight:700}.project-card-meta{font-size:12px;color:var(--rf-muted);margin-top:6px}.stage-track{display:flex;overflow-x:auto;gap:0;margin:18px 0 25px}.stage-node{min-width:120px;text-align:center;position:relative;color:#9699a0;font-size:11px}.stage-node:before{content:"";display:block;height:4px;background:#ddd;margin:11px 0}.stage-node.active,.stage-node.done{color:#222;font-weight:700}.stage-node.active:before{background:var(--rf-red)}.stage-node.done:before{background:#28292d}.detail-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.info-item{padding:11px 0;border-bottom:1px solid var(--rf-border)}.info-label{font-size:11px;text-transform:uppercase;color:var(--rf-muted)}.info-value{font-weight:600;margin-top:3px}.option-card{border:2px solid #e1e1e4}.option-card.selected{border-color:var(--rf-red)}.area-block{background:#fafafa;border-radius:10px;padding:14px;margin-top:12px}.file-drop{border:2px dashed #d4d4d8;border-radius:12px;padding:16px;background:#fafafa}.login-page{background:linear-gradient(135deg,#17181b 0%,#292b30 58%,#4b1114 100%);min-height:100vh;display:grid;place-items:center}.login-card{width:min(440px,calc(100% - 30px));background:#fff;border-radius:20px;padding:34px;box-shadow:0 20px 70px rgba(0,0,0,.35)}.login-logo{display:block;width:250px;max-width:80%;margin:0 auto 24px}.public-page{background:#f4f2ef;min-height:100vh}.public-header{background:#fff;border-bottom:1px solid #ddd;text-align:center;padding:16px}.public-header img{height:82px;max-width:80%;object-fit:contain}.public-content{max-width:1100px;margin:35px auto;padding:0 20px}.proposal-hero{text-align:center;margin-bottom:30px}.select-option{width:100%;padding:13px}.calendar-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.calendar-day{background:#fff;border:1px solid var(--rf-border);border-radius:12px;padding:14px}.calendar-date{font-weight:800;margin-bottom:10px}.calendar-event{border-left:4px solid var(--rf-red);padding:8px 10px;background:#fafafa;margin:8px 0;border-radius:5px;font-size:13px}
@media(max-width:1000px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.calendar-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar-open .sidebar{transform:translateX(0)}.main-panel{margin-left:0;width:100%}.sidebar-toggle{display:block;margin-right:14px}.user-name{display:none}.content-wrap{padding:18px 14px}.kpi-grid{grid-template-columns:1fr 1fr;gap:10px}.kpi-card{padding:14px}.kpi-value{font-size:23px}.page-head{flex-direction:column}.info-grid{grid-template-columns:1fr}.calendar-list{grid-template-columns:1fr}.topbar{padding:0 14px}.topbar-title{font-size:17px}}

.pagination{gap:0}.pagination .page-item + .page-item{margin-left:.6rem!important}.pagination .page-item:not(:first-child) .page-link{margin-left:0!important}.pagination .page-link{border-radius:.375rem}
.portal-header{min-height:76px;background:#fff;border-bottom:1px solid var(--rf-border);display:flex;align-items:center;gap:28px;padding:12px max(20px,calc((100vw - 1200px)/2));position:sticky;top:0;z-index:20}.portal-header img{width:170px;max-height:52px;object-fit:contain}.portal-header nav{display:flex;gap:20px;flex:1}.portal-header nav a{color:#24262a;text-decoration:none;font-weight:600}.portal-content{max-width:1200px;margin:0 auto;padding:32px 20px}.signature-pad{display:block;width:100%;max-width:700px;height:220px;border:2px dashed #bbb;border-radius:10px;background:#fff;touch-action:none}@media(max-width:800px){.portal-header{flex-wrap:wrap}.portal-header nav{order:3;width:100%;overflow:auto}.portal-header nav a{white-space:nowrap}.portal-content{padding:20px 14px}}
.installation-photo-preview{display:flex;flex-wrap:wrap;gap:10px;width:100%;max-width:100%;min-width:0;overflow:hidden}.installation-photo-preview img,.installation-photo-preview video{display:block;flex:0 0 110px;width:110px;max-width:100%;height:100px;object-fit:cover;border-radius:8px;border:1px solid var(--rf-border);background:#111}
.attachment-gallery{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;width:100%;max-width:100%;min-width:0;overflow-x:hidden}.attachment-photo-card{display:flex;flex:0 1 180px;flex-direction:column;width:180px;max-width:100%;min-width:0;overflow:hidden;border:1px solid var(--rf-border);border-radius:10px;background:#fff;color:inherit;text-decoration:none}.attachment-photo-card:hover{color:inherit;border-color:#aaa;box-shadow:0 4px 12px rgba(0,0,0,.08)}.attachment-photo-card>a{display:block;max-width:100%;overflow:hidden}.attachment-photo-card img{display:block;width:100%;max-width:100%;min-width:0;height:135px;object-fit:cover;background:#f1f1f1}.attachment-photo-info{display:block;max-width:100%;min-width:0;padding:9px;overflow:hidden;font-size:13px}.attachment-photo-info small{display:block}@media(max-width:500px){.attachment-gallery{gap:10px}.attachment-photo-card{flex-basis:calc(50% - 5px);width:calc(50% - 5px)}.attachment-photo-card img{height:110px}}
.login-logo{height:auto;object-fit:contain}.public-header img{width:auto;height:auto;max-width:80%;max-height:82px;object-fit:contain}.portal-header img{width:auto;height:auto;max-width:170px;max-height:52px;object-fit:contain}
form .required>label:after,form label.required-field-label:after{content:" *";color:var(--rf-red);font-weight:700}
.area-block{border:1px solid var(--rf-border)}
.stage-track{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));overflow:visible;gap:8px;padding-bottom:0}.stage-node{min-width:0;padding:0 4px;line-height:1.35;white-space:normal;overflow-wrap:break-word}.stage-node:before{margin:11px -8px 9px}@media(max-width:1200px){.stage-track{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px}}@media(max-width:760px){.stage-track{grid-template-columns:repeat(2,minmax(0,1fr))}}
.portal-breadcrumb{margin:0 0 22px;padding:10px 14px;background:#fff;border:1px solid var(--rf-border);border-radius:10px}.portal-breadcrumb a{color:#24262a;font-weight:600;text-decoration:none}.portal-breadcrumb a:hover{text-decoration:underline}.portal-breadcrumb .active{color:var(--rf-muted)}.portal-breadcrumb .breadcrumb-item+.breadcrumb-item:before{content:"/";color:var(--rf-muted);padding-right:.5rem}
