*,*:before,*:after{box-sizing:border-box}body{margin:0;padding:0;font-family:Lato,-apple-system,sans-serif;background:#eef0f4;color:#1a1a2e;line-height:1.6}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes cardPulse{0%,to{box-shadow:0 2px 8px #0000000a}50%{box-shadow:0 2px 8px #0000000a,0 0 0 4px #40b4e24d}}.portal-wrapper{display:flex;flex-direction:column;min-height:100vh}.portal-layout{display:flex;flex:1}.main-area{flex:1;display:flex;flex-direction:column;min-width:0}.content-area{flex:1;padding:48px 56px;overflow-y:auto;position:relative}.page-content{max-width:1200px;margin:0 auto}.portal-header{display:flex;justify-content:space-between;align-items:center;padding:12px 48px;background:#fff;box-shadow:0 1px #0000000d}.header-left{display:flex;align-items:center;gap:16px}.mobile-menu-btn{display:none;background:none;border:none;padding:8px;cursor:pointer}.mobile-menu-btn svg{width:24px;height:24px}.client-brand{display:flex;align-items:center;gap:16px;text-decoration:none}.client-logo-wrapper{display:flex;align-items:center;justify-content:center}.client-logo-img{height:30px;width:auto;object-fit:contain}.client-info{display:flex;flex-direction:column;justify-content:center;gap:4px;transform:translateY(3px)}.portal-title{font-weight:700;font-size:27px;color:#1a1a2e;line-height:1}.org-name{font-size:14px;color:#94a3b8;line-height:1}.header-right{display:flex;align-items:center;gap:12px}.powered-by{font-size:13px;color:#94a3b8}.mcc-logo{height:50px;width:auto;object-fit:contain}.sidebar{width:260px;background:#1e355e;padding:40px 0;display:flex;flex-direction:column;flex-shrink:0}.nav-items{display:flex;flex-direction:column}.nav-item{display:flex;align-items:center;gap:16px;padding:8px 28px;margin:2px 16px;color:#ffffff8c;text-decoration:none;font-size:19px;border-radius:12px;transition:all .2s}.nav-item:hover{color:#fffc;background:#ffffff0d}.nav-item.active{color:#fff;background:#40b4e226;font-weight:600}.nav-icon{width:22px;height:22px}.portal-footer{padding:28px 48px;background:#071429;text-align:center;font-size:14px;color:#ffffff73}.mobile-overlay{display:none}@media(min-width:769px){.portal-wrapper{height:100vh;overflow:hidden}.portal-header{position:fixed;top:0;left:0;right:0;z-index:100;height:74px}.portal-layout{margin-top:74px;height:calc(100vh - 74px)}.sidebar{position:fixed;top:74px;left:0;bottom:0;width:260px;overflow-y:auto}.main-area{margin-left:260px;height:100%;overflow-y:auto;scrollbar-gutter:stable}.content-area{flex:1;overflow-y:visible}}.back-button-wrap{max-width:1200px;margin:0 auto;height:0;position:relative;z-index:1}.back-button{position:absolute;top:0;left:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:#fff;border:1px solid #e2e8f0;border-radius:50%;color:#64748b;padding:0;cursor:pointer;transition:all .2s;z-index:1}.back-button:hover{background:#f8fafc;border-color:#cbd5e1;color:#475569}.back-button svg{width:18px;height:18px;stroke-width:2}.back-to-top{position:fixed;left:calc(130px + 50vw);transform:translate(-50%);display:inline-flex;align-items:center;gap:8px;background:#fff;border:2px solid #e2e8f0;border-radius:999px;color:#64748b;font-size:14px;font-weight:500;font-family:inherit;padding:8px 20px;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,bottom .2s,background .2s,border-color .2s;z-index:50}.back-to-top.pulsing{animation:cardPulse .8s ease-in-out infinite}.back-to-top.visible{opacity:1;visibility:visible}.back-to-top:hover{background:#f8fafc;border-color:#cbd5e1;color:#475569}.back-to-top svg{width:16px;height:16px;stroke-width:2}.breadcrumb{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:8px;min-height:32px;padding-left:44px}.breadcrumb-link{color:#40b4e2;text-decoration:none;cursor:pointer;background:none;border:none;font:inherit;padding:0}.breadcrumb-link:hover{text-decoration:underline}.breadcrumb-sep{color:#94a3b8}.breadcrumb-current{color:#64748b}.page-title{font-size:36px;font-weight:700;margin:0 0 8px;color:#1a1a2e;letter-spacing:-.5px}.page-subtitle{font-size:20px;color:#64748b;margin:0 0 40px}.page-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:100px 20px;color:#94a3b8}.loading-spinner{width:40px;height:40px;border:3px solid #e5e7eb;border-top-color:#40b4e2;border-radius:50%;animation:spin 1s linear infinite}.page-error{text-align:center;padding:100px 20px;color:#dc2626}.coming-soon{text-align:center;padding:60px 20px;color:#6b7280;font-size:16px;background:#f9fafb;border-radius:12px;margin-top:24px}.no-data{text-align:center;padding:40px 20px;color:#94a3b8;font-style:italic}.filters-row{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:24px}.filters-row.has-picker{grid-template-columns:repeat(3,1fr)}.filter-card{background:#fff;border-radius:16px;padding:18px 24px;box-shadow:0 2px 8px #0000000a}.filter-label{font-size:23px;color:#64748b;margin-bottom:8px;font-weight:500}.filter-select{width:100%;padding:8px 32px 8px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:16px;font-weight:600;color:#1a1a2e;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;cursor:pointer;-webkit-appearance:none;appearance:none;font-family:inherit}.filter-select:hover{border-color:#94a3b8}.filter-select:focus{outline:none;border-color:#40b4e2;box-shadow:0 0 0 3px #40b4e21a}.filter-card.pulse-card{animation:cardPulse .8s ease-in-out infinite}.month-year-selects{display:flex;gap:8px}.month-year-selects .month-select{flex:1.2}.month-year-selects .year-select{flex:.8}.badge{padding:6px 14px;border-radius:20px;font-size:12px;font-weight:600;text-transform:uppercase}.badge-success{background:#d1fae5;color:#065f46}.badge-warning{background:#fed7aa;color:#c2410c}.badge-danger{background:#fee2e2;color:#991b1b}.coming-soon-badge{display:inline-block;margin-top:8px;padding:4px 8px;background:#f3f4f6;color:#6b7280;font-size:12px;font-weight:500;border-radius:4px}.button-row{margin-top:16px}.btn-load-more{background:#e61a50;color:#fff;border:none;padding:10px 20px;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600;transition:background .2s}.btn-load-more:hover{background:#c4163f}.btn-load-more:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed}.end-of-list{color:#9ca3af;font-size:14px;font-style:italic}.error-message{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:16px;border-radius:8px;text-align:center}.placeholder-analytics,.placeholder-reports{opacity:.4;pointer-events:none}.placeholder-overlay{position:absolute;z-index:100;pointer-events:auto}.placeholder-instruction{font-size:1.5rem;color:#4b5563;font-weight:500;padding:18px 36px;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid #e5e7eb}.dashboard-section{background:#fff;border-radius:20px;padding:24px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a;cursor:pointer;transition:all .2s;border:2px solid transparent}.dashboard-section:hover{box-shadow:0 8px 30px #00000026;transform:translateY(-4px);border:2px solid #40B4E2}.dashboard-section:hover .section-arrow{color:#40b4e2}.section-header{display:flex;align-items:center;gap:12px;margin-bottom:18px}.section-header h2{margin:0;font-size:27px;font-weight:600;color:#1a1a2e}.section-period{font-size:20px;color:#94a3b8;margin-left:12px}.section-arrow{font-size:30px;color:#cbd5e1;margin-left:auto}.metrics-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.quality-page .metrics-grid,.services-page .metrics-grid,.consumables-page .metrics-grid{margin-bottom:24px}.metric-card{background:#fff;border-radius:20px;padding:20px 24px;box-shadow:0 2px 8px #0000000a}.dashboard-section .metric-card{background:#f8fafc;box-shadow:none}.metric-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.metric-label{font-size:23px;color:#64748b;font-weight:500}.metric-arrow{font-size:18px;color:#cbd5e1}.metric-value{font-size:65px;font-weight:700;color:#1a1a2e;line-height:1;margin-bottom:8px;letter-spacing:-2px}.metric-badge{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:20px;font-size:18px;font-weight:600}.change-positive{background:#d4f542;color:#365314}.change-negative{background:#fee2e2;color:#dc2626}.metrics-grid-3{grid-template-columns:repeat(3,1fr)}.chart-card{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.chart-header h3{margin:0;font-size:23px;font-weight:500;color:#64748b}.chart-container{height:200px;position:relative}.reports-card{background:#fff;border-radius:20px;padding:32px;box-shadow:0 2px 8px #0000000a}.reports-card-header{font-size:23px;font-weight:500;color:#64748b;margin:0 0 24px}.site-reports-tile{background:#f8fafc;border-radius:16px;padding:24px;margin-bottom:24px}.site-reports-tile:last-child{margin-bottom:0}.table-title{font-size:20px;font-weight:700;margin:0 0 20px;color:#1a1a2e}.reports-table{width:100%;border-collapse:collapse}.reports-table th{text-align:left;padding:12px 20px;font-size:12px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600;border-bottom:1px solid #f1f5f9}.reports-table td{padding:10px 20px;font-size:15px;border-bottom:1px solid #f8fafc;vertical-align:top}.reports-table tr:hover{background:#00000005}.report-link{color:#40b4e2;text-decoration:none;font-weight:600;cursor:pointer;background:none;border:none;font:inherit;padding:0}.report-link:hover{text-decoration:underline}.rating-cell{font-weight:700;color:#1a1a2e}.comment-cell{color:#94a3b8;max-width:200px;vertical-align:top;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.consumables-table .th-amount{text-align:right}.amount-cell{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.date-cell,.type-cell{white-space:nowrap}.site-total{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:12px 16px;background:#f8fafc;border-top:1px solid #e2e8f0;font-weight:500;margin-top:-1px}.site-total-amount{font-size:1.1rem;color:#0f172a;font-variant-numeric:tabular-nums}.skeleton{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0,#f1f5f9 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;min-height:90px;border-radius:8px}.skeleton-section{pointer-events:none}.skeleton-section .metric-card{background:#f8fafc}.skeleton-card{display:flex;flex-direction:column;justify-content:flex-start}.skeleton-text{background:linear-gradient(90deg,#e2e8f0 25%,#cbd5e1,#e2e8f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:6px}.skeleton-table{display:flex;flex-direction:column;gap:12px;padding:20px 0}.skeleton-table:before,.skeleton-table:after{content:"";height:50px;background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0,#f1f5f9 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:8px}.product-thumb-skeleton{width:48px;height:48px;border-radius:6px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;flex-shrink:0}.report-detail .info-card{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.info-card h3{margin:0 0 20px;font-size:23px;font-weight:500;color:#64748b}.info-card p{margin:0;font-size:15px;color:#1a1a2e;line-height:1.6}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}.info-item{display:flex;flex-direction:column;gap:4px}.info-item .label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.info-item .value{font-size:15px;color:#1a1a2e;font-weight:500}.rating-value{color:#40b4e2!important;font-weight:700!important}.findings-group{background:#fff;border-radius:20px;padding:24px 32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.findings-group:last-child{margin-bottom:0}.findings-group-header{display:flex;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.findings-group-title{display:flex;align-items:center;gap:12px}.findings-group-title h3{margin:0;font-size:23px;font-weight:500;color:#64748b}.findings-count{font-size:18px;color:#94a3b8;font-weight:500}.status-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;margin-top:-2px}.dot-danger{background:#ef4444}.dot-warning{background:#f59e0b}.dot-success{background:#10b981}.collapse-toggle{font-size:34px;color:#94a3b8;font-weight:300;line-height:1}.findings-group.expanded .collapse-toggle:after{content:"−"}.findings-group:not(.expanded) .collapse-toggle:after{content:"+"}.findings-group-content{margin-top:20px}.findings-group:not(.expanded) .findings-group-content{display:none}.no-items{color:#94a3b8;font-style:italic;margin:0;padding:8px 0}.finding-card{background:#f8fafc;border-radius:16px;padding:24px;margin-bottom:16px}.finding-card:last-child{margin-bottom:0}.finding-header{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}.area-name{font-size:20px;font-weight:700;color:#1a1a2e}.finding-summary{color:#64748b;margin:0 0 16px;font-size:15px}.photos-row{display:flex;flex-wrap:wrap;gap:12px}.photo-thumb{width:100px;height:100px;object-fit:cover;border-radius:8px;cursor:pointer;transition:transform .2s}.photo-thumb:hover{transform:scale(1.05)}.invoice-page{max-width:900px}.content-area:has(.invoice-page) .back-button-wrap{max-width:900px}.invoice-page .reports-card{margin-bottom:24px}.invoice-products-tile,.order-products-tile{background:#f8fafc;border-radius:16px;padding:24px}.invoice-info-grid,.order-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:24px}.invoice-info-item,.order-info-item{display:flex;flex-direction:column;gap:4px}.invoice-info-label,.order-info-label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.invoice-info-value,.order-info-value{font-size:15px;font-weight:500;color:#1a1a2e}.invoice-total-value,.order-total-value{font-size:18px;font-weight:700;color:#40b4e2}.invoice-products-table th.th-right,.invoice-products-table td.td-right,.order-products-table th.th-right,.order-products-table td.td-right{text-align:right}.invoice-products-table td.td-bold,.order-products-table td.td-bold{font-weight:700}.product-cell{display:flex;align-items:center;gap:12px}.product-photo{width:48px;height:48px;object-fit:cover;border-radius:8px;cursor:pointer;transition:transform .2s;flex-shrink:0;animation:fadeIn .3s ease-in}.product-photo:hover{transform:scale(1.05)}.product-thumb-placeholder{width:48px;height:48px;background:#f1f5f9;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.product-thumb-placeholder svg{width:24px;height:24px;color:#94a3b8}.product-name{font-weight:500;line-height:1.4}.photo-modal{display:none;position:fixed;inset:0;background:#000000e6;z-index:10000;align-items:center;justify-content:center}.photo-modal.active{display:flex}.photo-modal-content{position:relative;max-width:90vw;max-height:90vh;display:flex;align-items:center;justify-content:center}.photo-modal-img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px;transition:opacity .3s ease}.photo-modal-preview{position:absolute;max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px;filter:blur(8px);transform:scale(1.02);opacity:0;pointer-events:none}.photo-modal-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:none}.loader-spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.photo-modal.loading .photo-modal-preview{opacity:1}.photo-modal.loading .photo-modal-loader{display:block}.photo-modal.loading .photo-modal-img{opacity:0}.photo-modal.loading .photo-modal-content{min-width:300px;min-height:200px}.photo-modal-close{position:fixed;top:20px;right:20px;width:44px;height:44px;background:#ffffff1a;border:none;border-radius:50%;cursor:pointer;font-size:28px;color:#fff;display:flex;align-items:center;justify-content:center;transition:background .2s}.photo-modal-close:hover{background:#fff3}.photo-modal-nav{position:fixed;top:50%;transform:translateY(-50%);width:50px;height:50px;background:#ffffff1a;border:none;border-radius:50%;cursor:pointer;font-size:24px;color:#fff;display:flex;align-items:center;justify-content:center;transition:background .2s}.photo-modal-nav:hover{background:#fff3}.photo-modal-nav:disabled{opacity:.3;cursor:not-allowed}.photo-modal-prev{left:20px}.photo-modal-next{right:20px}.photo-modal-counter{position:fixed;bottom:20px;left:50%;transform:translate(-50%);color:#ffffffb3;font-size:14px}.menu-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-top:24px;max-width:800px}.menu-card{display:flex;align-items:flex-start;gap:16px;padding:24px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all .2s ease;text-align:left;width:100%}.menu-card:hover{border-color:#40b4e2;box-shadow:0 4px 12px #40b4e226;transform:translateY(-2px)}.menu-card:active{transform:translateY(0)}.menu-card-disabled{opacity:.6;cursor:not-allowed}.menu-card-disabled:hover{border-color:#e5e7eb;box-shadow:none;transform:none}.menu-card-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center}.menu-card-icon svg{width:24px;height:24px;color:#1e355e;stroke:#1e355e}.menu-card-content{flex:1;min-width:0}.menu-card-title{font-size:18px;font-weight:600;color:#1e355e;margin:0 0 4px}.menu-card-description{font-size:14px;color:#6b7280;margin:0;line-height:1.4}.menu-card-arrow{flex-shrink:0;width:24px;height:24px;color:#9ca3af;align-self:center;transition:transform .2s ease}.menu-card:hover .menu-card-arrow{transform:translate(4px);color:#40b4e2}.menu-card-disabled:hover .menu-card-arrow{transform:none;color:#9ca3af}.consumables-content-wrapper{position:relative}.consumables-page .placeholder-overlay{position:absolute;top:0;left:0;right:0;height:400px;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:12px}.services-content-wrapper{position:relative}.services-page .placeholder-overlay{position:absolute;top:0;left:0;right:0;height:400px;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:12px}.services-page .credit-amount{color:#dc2626}.quality-content-wrapper{position:relative}.quality-content-wrapper .placeholder-overlay{position:absolute;top:0;left:0;right:0;height:400px;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:12px}.scope-content-wrapper{position:relative}.scope-page .placeholder-overlay{position:absolute;top:0;left:0;right:0;height:400px;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:12px}.scope-page .reports-card{margin-top:24px}.scope-page .status-badge.status-active{background:#d1fae5;color:#065f46}.scope-page .status-badge.status-onboarding{background:#dbeafe;color:#1e40af}.scope-page .status-badge.status-renegotiating{background:#fef3c7;color:#92400e}.scope-page .status-badge.status-unknown{background:#f3f4f6;color:#6b7280}.scope-table{table-layout:fixed;width:100%}.scope-table th:first-child,.scope-table td:first-child{width:30%;text-align:left!important}.scope-table th:nth-child(2),.scope-table td:nth-child(2){width:50%;text-align:left!important;padding-left:100px}.scope-table th:last-child,.scope-table td:last-child{width:20%;text-align:center!important}@media(max-width:768px){.scope-table th:nth-child(2),.scope-table td:nth-child(2){max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-badge{padding:3px 8px;font-size:11px}}.support-page .filters-row{grid-template-columns:repeat(3,1fr)}.support-page .filters-row.has-picker{grid-template-columns:repeat(4,1fr)}.support-content-wrapper{position:relative}.support-content-wrapper .placeholder-overlay{position:absolute;top:0;left:0;right:0;height:400px;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:12px}.status-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600;text-transform:capitalize}.status-badge.status-open{background:#fef3c7;color:#92400e}.status-badge.status-in-progress{background:#dbeafe;color:#1e40af}.status-badge.status-resolved{background:#d1fae5;color:#065f46}.status-badge.status-closed,.status-badge.status-unknown{background:#f3f4f6;color:#6b7280}.support-page .metrics-grid{grid-template-columns:repeat(3,1fr);margin-bottom:1.5rem}@media(max-width:768px){.support-page .metrics-grid{grid-template-columns:1fr}}.support-page .chart-legend{display:flex;justify-content:center;gap:24px;margin-bottom:20px;font-size:13px;color:#64748b}.support-page .legend-item{display:flex;align-items:center;gap:6px}.support-page .legend-dot{width:10px;height:10px;border-radius:50%}.ticket-page .info-card{background:#fff;border-radius:20px;padding:32px;box-shadow:0 2px 8px #0000000a}.ticket-page .info-card h3{margin:0 0 20px;font-size:23px;font-weight:500;color:#64748b}.ticket-page .info-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}.ticket-page .info-item{display:flex;flex-direction:column;gap:4px}.ticket-page .info-item .label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.ticket-page .info-item .value{font-size:15px;color:#1a1a2e;font-weight:500}.ticket-page .ticket-tiles{display:flex;flex-direction:column;gap:24px}.ticket-page .issue-content{display:flex;flex-direction:column;gap:16px}.ticket-page .issue-top-row{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}.ticket-page .issue-top-row .info-item:first-child{grid-column:1 / 4}.ticket-page .issue-details{margin:0;line-height:1.6;color:#1a1a2e;white-space:pre-wrap}.ticket-page .timeline-card .timeline-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:5px}.ticket-page .timeline-card .timeline-header h3{margin:0;display:flex;align-items:center;gap:8px}.ticket-page .timeline-card.info-card h3{margin-bottom:0}.ticket-page .info-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:14px;color:#94a3b8;cursor:help;position:relative}.ticket-page .tooltip{position:absolute;top:100%;left:50%;transform:translate(-50%);margin-top:8px;padding:12px 16px;background:#1a1a2e;color:#fff;font-size:13px;font-weight:400;line-height:1.5;border-radius:8px;white-space:normal;width:280px;z-index:1000;box-shadow:0 4px 12px #00000026}.ticket-page .tooltip:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-bottom-color:#1a1a2e}.ticket-page .time-metric{display:flex;flex-direction:column;align-items:center;padding:16px 24px;background:#f8fafc;border-radius:12px;min-width:100px}.ticket-page .time-metric-value{font-size:32px;font-weight:700;color:#1a1a2e;line-height:1}.ticket-page .time-metric-label{font-size:13px;color:#64748b;margin-top:4px;text-align:center}.ticket-page .timeline-content{position:relative;padding-left:32px;margin-top:-10px}.ticket-page .timeline{position:relative}.ticket-page .timeline-event{position:relative;padding-bottom:20px}.ticket-page .timeline-event:last-child{padding-bottom:0}.ticket-page .timeline-event:after{content:"";position:absolute;left:-21px;top:16px;bottom:-16px;width:2px;background:#40b4e2;border-radius:1px}.ticket-page .timeline-event:last-child:after{display:none}.ticket-page .timeline-marker{position:absolute;left:-32px;top:4px;width:24px;height:24px;border-radius:50%;background:#40b4e2;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 4px #40b4e226}.ticket-page .timeline-marker:after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}.ticket-page .timeline-details{display:flex;flex-direction:column;gap:2px}.ticket-page .timeline-label{font-size:14px;font-weight:600;color:#1a1a2e}.ticket-page .timeline-date{font-size:13px;color:#64748b}.ticket-page .photos-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.ticket-page .photo-thumb{width:80px;height:80px;object-fit:cover;border-radius:8px;cursor:pointer;transition:transform .2s,box-shadow .2s}.ticket-page .photo-thumb:hover{transform:scale(1.05);box-shadow:0 4px 12px #00000026}@media(max-width:768px){.ticket-page .info-card{padding:24px}.ticket-page .info-grid{grid-template-columns:repeat(2,1fr)}.ticket-page .issue-top-row{grid-template-columns:1fr}.ticket-page .issue-top-row .info-item:first-child{grid-column:1}.ticket-page .timeline-card .timeline-header{flex-direction:column;gap:16px}.ticket-page .time-metric{align-self:flex-start}.ticket-page .tooltip{left:0;transform:none;width:240px}.ticket-page .tooltip:before{left:20px;transform:none}}@media(max-width:1024px){.content-area{padding:32px 24px}.back-button{top:0;left:0}.portal-header{padding:10px 24px}.portal-footer{padding:20px 24px}.metrics-grid{grid-template-columns:1fr 1fr;gap:16px}.metric-value{font-size:49px}}@media(min-width:769px)and (max-width:1024px){.metrics-grid-3{grid-template-columns:repeat(3,1fr);gap:12px}.metrics-grid-3 .metric-value{font-size:42px}.metrics-grid-3 .metric-label{font-size:18px}}@media(max-width:768px){.portal-wrapper{height:auto;overflow:visible}.portal-header{position:relative;height:auto}.portal-layout{margin-top:0;height:auto}.main-area{margin-left:0;overflow-y:visible}.sidebar{position:fixed;left:-280px;top:0;bottom:0;z-index:1000;transition:left .3s;margin-top:0;width:260px}.sidebar.open{left:0;box-shadow:4px 0 20px #0003}.mobile-menu-btn{display:block}.mobile-overlay{display:block;position:fixed;inset:0;background:#0000004d;z-index:999}.client-info{display:none}.portal-header{padding:8px 16px}.client-logo-img{height:30px}.mcc-logo{height:40px}.content-area{padding:24px 16px}.back-button{top:0;left:0}.back-to-top{left:50%}.page-title{font-size:28px}.metrics-grid,.metrics-grid-3{grid-template-columns:1fr}.metric-value{font-size:43px}.filters-row,.filters-row.has-picker{grid-template-columns:1fr}.reports-table th:nth-child(4),.reports-table td:nth-child(4),.reports-table th:nth-child(5),.reports-table td:nth-child(5){display:none}.info-grid{grid-template-columns:1fr 1fr}.findings-group{padding:20px 24px}.finding-card{padding:20px}.photo-thumb{width:80px;height:80px}.menu-cards-grid{grid-template-columns:1fr}.menu-card{padding:20px}.menu-card-icon{width:40px;height:40px}.menu-card-icon svg{width:20px;height:20px}}@media(max-width:640px){.invoice-info-grid,.order-info-grid{grid-template-columns:1fr 1fr;gap:16px}.invoice-products-table th,.invoice-products-table td,.order-products-table th,.order-products-table td{padding:12px 8px;font-size:13px}.product-photo,.product-thumb-placeholder{width:40px;height:40px}.product-cell{gap:8px}.invoice-products-table th:nth-child(3),.invoice-products-table td:nth-child(3),.order-products-table th:nth-child(3),.order-products-table td:nth-child(3){display:none}.site-total{flex-direction:column;align-items:flex-end;gap:4px}}@media(max-width:480px){.info-grid{grid-template-columns:1fr}}.service-detail .info-card{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.service-detail .info-card h3{margin:0 0 20px;font-size:23px;font-weight:500;color:#64748b}.service-detail .info-card p{margin:0;font-size:15px;color:#1a1a2e;line-height:1.6}.service-detail .info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}.service-detail .info-item{display:flex;flex-direction:column;gap:4px}.service-detail .info-item .label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.service-detail .info-item .value{font-size:15px;color:#1a1a2e;font-weight:500}.service-detail .status-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:13px;font-weight:600}.service-detail .status-badge.status-active{background:#d1fae5;color:#065f46}.service-detail .status-badge.status-onboarding{background:#dbeafe;color:#1e40af}.service-detail .status-badge.status-renegotiating{background:#fef3c7;color:#92400e}.service-detail .status-badge.status-unknown{background:#f3f4f6;color:#6b7280}.service-detail .info-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}@media(max-width:768px){.service-detail .info-grid-4{grid-template-columns:repeat(2,1fr);gap:16px}}@media(max-width:480px){.service-detail .info-grid-4{grid-template-columns:1fr;gap:12px}}.proposal-container{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.proposal-thumbnail{position:relative;width:200px;height:260px;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;cursor:pointer;background:#f8fafc;transition:box-shadow .2s ease,border-color .2s ease;padding:0}.proposal-thumbnail:hover{border-color:#40b4e2;box-shadow:0 4px 12px #40b4e226}.proposal-thumb-img{width:100%;height:100%;object-fit:cover}.proposal-thumb-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#94a3b8}.proposal-thumb-placeholder svg{opacity:.6}.proposal-thumb-placeholder span{font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.proposal-overlay{position:absolute;inset:0;background:#40b4e2e6;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease}.proposal-thumbnail:hover .proposal-overlay{opacity:1}.proposal-overlay span{color:#fff;font-size:14px;font-weight:600}.proposal-filename{font-size:13px;color:#64748b;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:480px){.proposal-thumbnail{width:160px;height:208px}.proposal-filename{max-width:160px}}.scope-consumables-page .info-card{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.scope-consumables-page .info-card h3{margin:0 0 20px;font-size:23px;font-weight:500;color:#64748b}.scope-consumables-page .info-card p{margin:0;font-size:15px;color:#1a1a2e;line-height:1.6}.scope-consumables-page .info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}.scope-consumables-page .info-grid-1{grid-template-columns:1fr}.scope-consumables-page .info-item{display:flex;flex-direction:column;gap:4px}.scope-consumables-page .info-item .label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.scope-consumables-page .info-item .value{font-size:15px;color:#1a1a2e;font-weight:500}.scope-consumables-page .status-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:13px;font-weight:600}.scope-consumables-page .status-badge.status-agreed-to{background:#d1fae5;color:#065f46}.scope-consumables-page .status-badge.status-declined{background:#fee2e2;color:#991b1b}.scope-consumables-page .status-badge.status-unknown{background:#f3f4f6;color:#6b7280}.scope-consumables-page .consumables-table{width:100%;border-collapse:collapse}.scope-consumables-page .consumables-table th{text-align:left;padding:12px 20px;font-size:12px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600;border-bottom:1px solid #f1f5f9}.scope-consumables-page .consumables-table td{padding:12px 20px;font-size:15px;border-bottom:1px solid #f8fafc;vertical-align:middle}.scope-consumables-page .consumables-table tr:hover{background:#00000005}.scope-consumables-page .photo-thumb-btn{padding:0;border:none;background:none;cursor:pointer;display:block}.scope-consumables-page .photo-thumb{width:60px;height:60px;object-fit:cover;border-radius:8px;transition:transform .2s}.scope-consumables-page .photo-thumb:hover{transform:scale(1.05)}.scope-consumables-page .no-photo{color:#94a3b8;font-style:italic}.scope-consumables-page .photo-modal{display:flex}.scope-consumables-page .photo-modal-image{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px;transition:opacity .3s ease}.scope-consumables-page .photo-modal-image.loading{opacity:0}.scope-consumables-page .photo-modal-preview{position:absolute;width:100%;height:100%;background-size:contain;background-position:center;background-repeat:no-repeat;filter:blur(10px);transform:scale(1.1)}.scope-consumables-page .photo-modal-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10}.scope-consumables-page .loader-spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@media(max-width:768px){.scope-consumables-page .info-card{padding:24px}.scope-consumables-page .consumables-table th,.scope-consumables-page .consumables-table td{padding:10px 12px}.scope-consumables-page .photo-thumb{width:50px;height:50px}}.tender-summary-card{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.tender-summary-card h3{margin:0 0 20px;font-size:23px;font-weight:500;color:#64748b}.tender-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}.tender-info-item{display:flex;flex-direction:column;gap:4px}.tender-info-label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.tender-info-value{font-size:15px;color:#1a1a2e;font-weight:500}.tender-intro-card{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.tender-intro-card .tender-intro-text{font-size:15px;color:#475569;line-height:1.7;margin:0 0 20px;max-width:640px}.tender-intro-card .tender-intro-text:last-child{margin-bottom:0}.tender-doc-list{display:grid;grid-template-columns:1fr 1fr;gap:15px 20px}.tender-doc-card{background:#eef0f4;border-radius:16px;box-shadow:none;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background .15s,transform .15s}.tender-doc-card:hover{background:#e4e7ec;transform:translateY(-1px)}.tender-doc-info{display:flex;align-items:center;gap:14px}.tender-doc-icon{display:flex;align-items:center;justify-content:center;color:#1e355e;flex-shrink:0}.tender-doc-details{display:flex;flex-direction:column;gap:2px}.tender-doc-name{font-size:20px;font-weight:600;color:#64748b}.tender-doc-desc{font-size:12px;color:#64748b}.tender-doc-card>svg{color:#94a3b8;flex-shrink:0}.tender-doc-card-highlight{background:#e61a50}.tender-doc-card-highlight:hover{background:#c4163f}.tender-doc-card-highlight .tender-doc-name{color:#fff}.tender-doc-card-highlight .tender-doc-desc{color:#ffffffbf}.tender-doc-details-inline{flex-direction:row;align-items:baseline;gap:12px}.tender-doc-desc-inline{font-size:16px}.tender-doc-card-highlight>svg{color:#fff}.tender-doc-icon-highlight{color:#fff}.tender-cta-card{background:transparent;border-radius:0;padding:32px 0 0;text-align:center;margin-top:24px;border-top:1px solid #cbd5e1}.tender-cta-title{font-size:22px;font-weight:700;color:#1e355e;margin-bottom:10px}.tender-cta-text{font-size:15px;color:#64748b;margin-bottom:24px}.tender-cta-button{display:inline-flex;align-items:center;gap:10px;padding:14px 32px;background:#e61a50;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:background .15s}.tender-cta-button:hover{background:#c4163f}.tender-cta-alt{font-size:13px;color:#94a3b8;margin-top:20px}.tender-cta-alt a{color:#1e355e;text-decoration:none}.tender-cta-alt a:hover{text-decoration:underline}.costs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.costs-edit-btn{display:inline-flex;align-items:center;gap:6px;background:#1e355e!important;color:#fff!important;border:none;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.costs-edit-btn:hover{background:#162a4a!important}.costs-save-btn{background:#16a34a!important;color:#fff!important;border:none;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.costs-save-btn:hover{background:#15803d!important}.costs-save-btn:disabled{opacity:.6;cursor:not-allowed}.costs-cancel-btn{background:#f1f5f9!important;color:#64748b!important;border:1px solid #cbd5e1!important;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.costs-cancel-btn:hover{background:#e2e8f0!important}.costs-site-count{font-size:14px;font-weight:400;color:#94a3b8;margin-left:8px}.costs-table-wrap,.costs-rates-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.costs-table{width:100%;border-collapse:collapse;font-size:13px}.costs-th{background:#f0f2f5;padding:10px 12px;text-align:left;font-weight:600;font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.3px;border-bottom:none;white-space:nowrap}.costs-th-number{text-align:right}.costs-th-group{text-align:center;border-bottom:none;font-size:12px}.costs-th-sub{text-align:right;font-size:10px;font-weight:500;color:#94a3b8;padding:6px 12px;white-space:normal;border-bottom:none}.costs-th-site{position:sticky;left:0;background:#f8fafc;z-index:1;white-space:normal}.costs-td-site,.costs-th-site{max-width:150px}.costs-td{padding:8px 12px;border-bottom:1px solid #f1f5f9;color:#334155}.costs-td-site{font-weight:500;color:#1a1a2e;position:sticky;left:0;background:#fff;z-index:1;word-wrap:break-word;overflow-wrap:break-word}.costs-td-number{text-align:right;font-variant-numeric:tabular-nums}.costs-td-total{font-weight:600;color:#1a1a2e}.costs-td-total-label{font-weight:700;color:#1a1a2e;text-transform:uppercase;font-size:15px;letter-spacing:.5px}.costs-td-grand-total{font-weight:700;font-size:18px;color:#1e355e}.costs-totals-row{border-top:2px solid #e2e8f0;font-size:1.25rem}.costs-totals-row td{background:#f8fafc;padding:12px}.costs-totals-row .costs-td-site{background:#f8fafc}.costs-empty{color:#cbd5e1}.costs-div-light{border-right:1px solid #dfe3e8!important}.costs-div-heavy{border-right:2px solid #d0d4da!important}.costs-rates-table{max-width:560px}.costs-wide{max-width:1600px}.content-area:has(.costs-wide) .back-button-wrap{max-width:1600px}.costs-editing{max-width:1600px}.content-area:has(.costs-editing) .back-button-wrap{max-width:1600px}.costs-input-wrap{display:inline-flex;align-items:center;gap:2px}.costs-input-prefix{color:#94a3b8;font-size:13px}.costs-input{width:80px;padding:4px 8px;border:1px solid #cbd5e1;border-radius:6px;font-size:13px;text-align:right;background:#fff;font-variant-numeric:tabular-nums;transition:border-color .15s}.costs-input:focus{outline:none;border-color:#1e355e;box-shadow:0 0 0 2px #1e355e1a}.costs-input-sm{width:60px;padding:3px 6px;font-size:12px}@media(max-width:600px){.tender-info-grid{grid-template-columns:1fr 1fr;gap:16px}.tender-doc-list{grid-template-columns:1fr}.tender-doc-card{padding:14px 16px}.tender-doc-icon{width:45px;height:45px}.tender-cta-card{padding:24px 0 0}.costs-toolbar{flex-direction:column;align-items:stretch}.costs-th-site,.costs-td-site{min-width:120px}.costs-rates-table{max-width:100%}}.scope-site-count{font-size:16px;font-weight:400;color:#94a3b8;margin-left:8px}.scope-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.scope-search-wrap{position:relative;flex:1;max-width:320px}.scope-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none}.scope-search-input{width:100%;padding:14px 16px 14px 42px;border:1px solid #e2e8f0;border-radius:12px;font-size:15px;color:#1a1a2e;background:#fff;outline:none;transition:border-color .15s}.scope-search-input:focus{border-color:#1e355e}.scope-search-input::placeholder{color:#94a3b8}.scope-search-clear{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#94a3b8;cursor:pointer}.scope-search-clear:hover{color:#64748b}.page-content>.reports-card{margin-bottom:24px}.scope-toolbar-actions{display:flex;gap:8px}.scope-toolbar-btn{padding:12px 20px;border:1px solid #40B4E2;border-radius:10px;background:#40b4e2;font-size:15px;font-weight:500;color:#fff;cursor:pointer;transition:background .15s,border-color .15s}.scope-toolbar-btn:hover{background:#2da0ce;border-color:#2da0ce}.scope-site-list{display:flex;flex-direction:column;gap:12px}.scope-site-list .findings-group{margin-bottom:12px}.scope-empty{text-align:center;padding:40px 20px;color:#94a3b8;font-size:14px}.scope-site-body{padding:0 0 8px;border-top:1px solid #f1f5f9}.scope-area{background:#f8fafc;border-radius:16px;padding:24px;margin-top:16px}.scope-area:last-child{margin-bottom:0}.scope-area-name{font-size:20px;font-weight:700;color:#1a1a2e;margin:0 0 12px}.scope-task-table{width:100%;border-collapse:collapse;font-size:13px}.scope-task-table thead{display:none}.scope-th-task,.scope-th-freq{text-align:left;padding:6px 0;font-weight:600;color:#64748b;font-size:12px;border-bottom:1px solid #e2e8f0}.scope-th-freq{width:180px;text-align:right}.scope-task-table tbody tr{border-bottom:1px solid #f1f5f9}.scope-task-table tbody tr:last-child{border-bottom:none}.scope-td-task{padding:8px 12px 8px 0;color:#64748b;font-size:15px;line-height:1.6}.scope-td-freq{padding:8px 0;color:#94a3b8;text-align:right;white-space:nowrap;width:180px;font-size:15px}@media(max-width:600px){.scope-toolbar{flex-direction:column;align-items:stretch}.scope-search-wrap{max-width:none}.scope-toolbar-actions{justify-content:flex-end}.scope-site-count{display:block;margin-left:0;margin-top:2px;font-size:14px}.scope-td-freq{white-space:normal;width:120px;font-size:11px}.scope-th-freq{width:120px}}.period-selector select{padding:6px 32px 6px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;font-weight:600;color:#1a1a2e;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;cursor:pointer;-webkit-appearance:none;appearance:none;font-family:inherit}.doc-content-card{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a}.doc-content-card h3{margin:0 0 20px;font-size:23px;font-weight:500;color:#64748b}.doc-content-text{font-size:15px;color:#475569;line-height:1.7;margin:0 0 16px;max-width:640px}.doc-content-text:last-child{margin-bottom:0}.doc-content-card .tender-intro-text{font-size:15px;color:#475569;line-height:1.7;margin:0 0 20px;max-width:640px}.doc-content-card .tender-intro-text:last-child{margin-bottom:0}.doc-stats-grid{background:#fff;border-radius:20px;padding:32px;margin-bottom:24px;box-shadow:0 2px 8px #0000000a;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;text-align:center}.doc-stat-item{padding:8px}.doc-stat-number{font-size:28px;font-weight:700;color:#1e355e;line-height:1.2}.doc-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#94a3b8;margin-top:4px;font-weight:600}.doc-stats-grid-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;text-align:center}.doc-services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.doc-service-card{background:#f8fafc;border:1px solid #e2e8f0;padding:20px 16px;border-radius:12px;text-align:center}.doc-service-icon{font-size:28px;margin-bottom:8px}.doc-service-title{font-weight:600;color:#1e355e;font-size:14px;margin-bottom:4px}.doc-service-desc{font-size:13px;color:#64748b;line-height:1.4}.doc-table{width:100%;border-collapse:collapse}.doc-table.tgc-equal-cols th:nth-child(2),.doc-table.tgc-equal-cols td:nth-child(2){padding-right:150px}.doc-table.tgc-equal-cols th{white-space:nowrap}.doc-table th,.doc-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #f1f5f9}.doc-table th{background:#f8fafc;font-weight:600;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.3px;border-bottom:2px solid #e2e8f0}.doc-table td{font-size:14px;color:#475569}.doc-table td strong{color:#1e355e}.doc-table tbody tr:last-child td{border-bottom:none}.doc-callout{padding:24px;border-radius:12px;margin-top:20px}.doc-callout h4{font-size:14px;font-weight:700;margin:0 0 14px}.doc-callout ul{list-style:none;padding:0;margin:0}.doc-callout li{font-size:14px;line-height:1.5;position:relative;padding:5px 0 5px 24px}.doc-callout li:before{content:"✓";position:absolute;left:0;font-weight:700}.doc-callout li strong{font-weight:600}.doc-callout-success{background:#f0fdf4;border:1px solid #bbf7d0}.doc-callout-success h4{color:#166534}.doc-callout-success li{color:#334155}.doc-callout-success li:before{color:#16a34a}.doc-callout-success li strong{color:#1e355e}.doc-callout-info{background:#eff6ff;border:1px solid #bfdbfe}.doc-callout-info h4{color:#1e3a5f}.doc-callout-info li{color:#334155}.doc-callout-info li:before{color:#3b82f6}.doc-callout-warning{background:#fffbeb;border:1px solid #fde68a}.doc-callout-warning h4{color:#78350f}.doc-callout-warning li{color:#334155}.doc-callout-warning li:before{color:#f59e0b}.doc-callout-danger{background:#fef2f2;border:1px solid #fecaca}.doc-callout-danger h4{color:#7f1d1d}.doc-callout-danger li{color:#334155}.doc-callout-danger li:before{color:#ef4444;content:"⚠"}.doc-checklist-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.doc-checklist-item{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#f8fafc;border-radius:8px;font-size:14px;color:#334155}.doc-checklist-item:before{content:"✓";color:#16a34a;font-weight:700;flex-shrink:0}.doc-credentials-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.doc-credential-item{padding:14px 16px;background:#f8fafc;border-radius:8px}.doc-credential-heading{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:#1e355e;margin-bottom:4px}.doc-credential-tick{color:#16a34a;font-weight:700;flex-shrink:0}.doc-credential-desc{font-size:13px;color:#64748b;line-height:1.5;padding-left:24px}.doc-list{margin-left:0;margin-top:12px}.doc-list li{margin:10px 0;font-size:14px;color:#475569;line-height:1.6}.doc-list li strong{color:#1e355e;font-weight:600}.doc-content-card h4{font-size:16px;font-weight:600;color:#1e355e;margin:20px 0 12px}.doc-content-card .site-reports-tile h4{font-size:20px;font-weight:700;color:#1a1a2e;margin:0 0 20px}.risk-badge{display:inline-block;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;text-align:center}.risk-low{background:linear-gradient(135deg,#d4edda,#c3e6cb);color:#155724}.risk-medium{background:linear-gradient(135deg,#fff3cd,#ffeeba);color:#856404}.risk-high{background:linear-gradient(135deg,#f8d7da,#f5c6cb);color:#721c24}.doc-badge{display:inline-block;padding:6px 14px;border-radius:20px;font-size:11px;font-weight:600;min-width:110px;text-align:center}.doc-badge-success{background:linear-gradient(135deg,#d4edda,#c3e6cb);color:#155724}.doc-badge-info{background:linear-gradient(135deg,#cce5ff,#b8daff);color:#004085}.doc-badge-warning{background:linear-gradient(135deg,#fff3cd,#ffeeba);color:#856404}.doc-badge-danger{background:linear-gradient(135deg,#f8d7da,#f5c6cb);color:#721c24}.rating-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:13px;font-weight:600;min-width:50px;text-align:center}.rating-badge-green{background:#dcfce7;color:#166534}.rating-badge-blue{background:#dbeafe;color:#1e40af}.rating-badge-amber{background:#fef3c7;color:#92400e}.rating-badge-red{background:#fee2e2;color:#991b1b}.doc-info-box{background:linear-gradient(135deg,#e3f2fd,#bbdefb);border-left:4px solid #2196F3;padding:20px;margin:15px 0;border-radius:0 8px 8px 0}.doc-info-box p{margin:8px 0;font-size:14px;color:#334155;line-height:1.6}.doc-info-box h4{margin:0 0 10px;color:#1e355e}.doc-warning-box{background:linear-gradient(135deg,#fff3cd,#ffeeba);border-left:4px solid #ff9800;padding:20px;margin:15px 0;font-size:14px;color:#334155;font-weight:500;border-radius:0 8px 8px 0;line-height:1.6}.doc-emergency{background:linear-gradient(135deg,#ffebee,#ffcdd2);border:2px solid #E63946;border-radius:12px}.doc-emergency h3{color:#c62828!important}.doc-footer{background:#f8fafc;border:1px solid #e2e8f0;color:#94a3b8;padding:16px 32px;border-radius:20px;text-align:center;font-size:12px;margin-bottom:24px}@media(max-width:768px){.doc-content-card{padding:24px 20px}.doc-stats-grid{grid-template-columns:repeat(3,1fr);padding:24px 20px}.doc-stat-number{font-size:22px}.doc-services-grid{grid-template-columns:1fr 1fr}.doc-checklist-grid{grid-template-columns:1fr}}@media(max-width:480px){.doc-stats-grid{grid-template-columns:repeat(2,1fr)}.doc-services-grid{grid-template-columns:1fr}}.agreed-services-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.agreed-services-header h3{margin:0}.period-selector{display:flex;align-items:center;gap:8px}.period-selector label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#94a3b8}.period-selector select{padding:6px 32px 6px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;font-weight:600;color:#1a1a2e;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;cursor:pointer;-webkit-appearance:none;appearance:none;font-family:inherit}.period-selector select:hover{border-color:#94a3b8}.period-selector select:focus{outline:none;border-color:#40b4e2;box-shadow:0 0 0 3px #40b4e21a}.col-right,.doc-table th.col-right{text-align:right}.doc-table td.col-right{text-align:right;font-variant-numeric:tabular-nums}.doc-table td.col-price{font-weight:600;color:#1e355e;white-space:nowrap}.col-center,.doc-table th.col-center,.doc-table td.col-center{text-align:center}.new-badge{display:inline-block;padding:2px 7px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;background:#16a34a;color:#fff;vertical-align:middle;margin-right:8px;line-height:1.4}.existing-label{font-size:13px;color:#94a3b8;font-style:italic}.svc-toggle-btn{padding:6px 16px;border:none;border-radius:6px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;font-family:inherit;transition:all .2s}.svc-add-btn{background:#40b4e2;color:#fff}.svc-add-btn:hover{background:#2da0ce}.svc-remove-btn{background:#64748b;color:#fff}.svc-remove-btn:hover{background:#475569}.svc-toggle-btn:disabled{opacity:.5;cursor:not-allowed}.add-all-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border:1.5px solid #40B4E2;border-radius:6px;background:#40b4e2;font-size:11px;font-weight:600;color:#fff;text-transform:uppercase;letter-spacing:.3px;cursor:pointer;font-family:inherit;transition:all .2s;margin-left:8px;vertical-align:middle}.add-all-btn:hover{background:#2da0ce;border-color:#2da0ce}.doc-table:has(.total-row) tbody tr:last-child td{padding-bottom:16px;border-bottom:2px solid #e2e8f0}.total-row td{border-top:none;border-bottom:none;padding-top:16px;font-weight:700;color:#1a1a2e;font-size:14px}.total-row .col-sublabel{font-size:11px;font-weight:500;color:#94a3b8;text-transform:uppercase;letter-spacing:.3px}.sig-method-tabs{display:flex;gap:0;margin-bottom:16px;border-bottom:2px solid #e2e8f0}.sig-method-tab{padding:8px 20px;font-size:13px;font-weight:600;color:#94a3b8;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;font-family:inherit;transition:all .2s;display:flex;align-items:center;gap:6px}.sig-method-tab:hover{color:#64748b}.sig-method-tab.active{color:#1e355e;border-bottom-color:#1e355e}.sig-method-tab svg{width:16px;height:16px}.sig-type-panel{display:block}.sig-auto-generate-note{font-size:13px;color:#94a3b8;margin:0 0 8px}.sig-typed-render{border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:24px;min-height:100px;display:flex;align-items:center;justify-content:center}.sig-typed-text{color:#1e355e;line-height:1;font-family:Great Vibes,cursive;font-size:44px}.sig-typed-placeholder{color:#cbd5e1;font-size:15px;font-style:italic}.sig-draw-panel.visible{display:block}.sig-draw-hint{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#cbd5e1;font-size:15px;font-style:italic;pointer-events:none;transition:opacity .2s}.contract-parties-grid{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;margin-top:4px}.contract-party-tile{background:#f8fafc;border-radius:16px;padding:24px}.contract-party-label{display:inline-block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:#64748b;background:#eef0f4;padding:3px 10px;border-radius:4px;margin-bottom:10px}.contract-party-name{font-size:16px;font-weight:700;color:#1e355e;margin:0 0 14px;line-height:1.35}.contract-party-details{display:flex;flex-direction:column;gap:6px}.contract-party-row{display:flex;gap:8px;font-size:13px;line-height:1.5}.contract-party-dt{color:#94a3b8;font-weight:500;min-width:76px;flex-shrink:0}.contract-party-dd{color:#475569;word-break:break-word}.contract-parties-and{display:flex;align-items:center;justify-content:center;padding:0 16px;font-size:13px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px}.contract-letter-list{display:flex;flex-direction:column;gap:12px;max-width:640px}.contract-letter-item{display:flex;gap:10px;font-size:15px;color:#475569;line-height:1.7}.contract-letter{font-weight:700;color:#1e355e;flex-shrink:0}.contract-clause .doc-content-text{font-size:14px}.contract-clauses-wrapper{margin:0 -32px -32px;border-radius:0 0 20px 20px;overflow:hidden}.contract-clause{margin-bottom:0;padding:28px 32px}.contract-clause:nth-child(odd){background:#f8fafc}.contract-clause:nth-child(2n){background:#fff}.contract-clause-title{font-size:20px;font-weight:700;color:#1a1a2e;margin:0 0 20px}.contract-sub-clause{padding-left:24px;margin-bottom:6px;font-size:14px;color:#475569;line-height:1.7;max-width:640px}.contract-sub-sub-clause{padding-left:48px;margin-bottom:6px;font-size:14px;color:#475569;line-height:1.7;max-width:640px}.contract-definition{margin-bottom:10px;font-size:14px;color:#475569;line-height:1.7;padding-left:24px;max-width:640px}.contract-definition strong{color:#1e355e}.contract-definitions-list{list-style:disc;padding-left:24px;margin:0;max-width:640px}.contract-definitions-list li{margin-bottom:10px;font-size:14px;color:#475569;line-height:1.7}.contract-definitions-list li strong{color:#1e355e}.contract-alpha-list{list-style:none;counter-reset:alpha-counter;padding-left:24px;margin:0;max-width:640px}.contract-alpha-list li{counter-increment:alpha-counter;margin-bottom:6px;font-size:14px;color:#475569;line-height:1.7;position:relative;padding-left:8px}.contract-alpha-list li:before{content:counter(alpha-counter,lower-alpha);position:absolute;left:-16px;font-weight:700;color:#1e355e}.contract-roman-list{list-style:none;counter-reset:roman-counter;padding-left:49px;margin:8px 0 0;max-width:640px}.contract-roman-list li{counter-increment:roman-counter;margin-bottom:6px;font-size:14px;color:#475569;line-height:1.7;position:relative}.contract-roman-list li:before{content:counter(roman-counter,lower-roman);position:absolute;left:-24px;font-weight:700;color:#1e355e}.contract-service-row{transition:background-color .2s}.contract-service-row.accepted{background-color:#f0fdf4}.contract-checkbox{width:18px;height:18px;accent-color:#E61A50;cursor:pointer}.contract-execution-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.contract-sig-img{max-height:80px;margin-top:4px;display:block}span.sig-typed-text.contract-sig-img{font-size:36px;margin-top:4px;transform:scale(1.3);transform-origin:top left}.contract-customer-sign{margin-top:14px}.contract-signatures-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.contract-signature-col h4{font-size:15px;font-weight:600;color:#1e355e;margin:0 0 16px}.contract-signature-field{margin-bottom:12px}.contract-signature-field label{display:block;font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.3px;margin-bottom:4px}.contract-signature-field .value{font-size:14px;color:#1e355e;font-weight:500}.contract-signature-field input{width:100%;padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1e355e;outline:none;transition:border-color .2s}.contract-signature-field input:focus{border-color:#e61a50}.contract-signature-pad{border:1px solid #e2e8f0;border-radius:8px;background:#fff;overflow:hidden;position:relative}.contract-signature-pad canvas{width:100%;height:200px;display:block}.contract-clear-btn{font-size:13px;color:#64748b;cursor:pointer;margin-top:8px;background:none;border:none;padding:0;text-decoration:underline}.contract-clear-btn:hover{color:#e61a50}.contract-sign-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;background:#e61a50;color:#fff;border:none;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer;margin-top:20px;transition:opacity .2s}.contract-sign-btn:hover{opacity:.9}.contract-sign-btn:disabled{opacity:.25;cursor:not-allowed}.contract-signed-message{color:#16a34a;font-weight:600;font-size:15px;display:flex;align-items:center;gap:8px;margin-top:16px}.contract-signed-badge{display:inline-block;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:600;background:linear-gradient(135deg,#d4edda,#c3e6cb);color:#155724}.contract-existing-header{font-size:14px;font-weight:600;color:#64748b;margin:24px 0 12px}.contract-existing-note{font-size:13px;color:#94a3b8;margin-bottom:12px}.contract-provider-signature img{max-height:80px;margin-top:8px}.sig-validation-warning{display:flex;align-items:center;gap:10px;margin-top:16px;padding:14px 18px;background:linear-gradient(135deg,#fff3cd,#ffeeba);border-left:4px solid #f59e0b;border-radius:0 8px 8px 0;font-size:14px;font-weight:600;color:#78350f;line-height:1.4;cursor:pointer;transition:opacity .2s}.sig-validation-warning:hover{opacity:.85}.sig-validation-warning svg{width:20px;height:20px;flex-shrink:0;stroke:#f59e0b}.sig-warning-link{text-decoration:underline;white-space:nowrap}@keyframes sigTogglePulse{0%,to{box-shadow:0 0 #f59e0b00}20%,80%{box-shadow:0 0 0 6px #f59e0b80}}.svc-add-btn.sig-toggle-pulse{animation:sigTogglePulse 1s ease-in-out 3}.contract-signed-banner{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:24px;padding:16px 24px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px}.contract-signed-banner svg{width:22px;height:22px;flex-shrink:0}.contract-signed-banner-text{font-size:15px;font-weight:600;color:#166534}.contract-signed-banner-date{font-size:13px;color:#16a34a;font-weight:400}.contract-pdf-btn{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:7px 14px;background:#16a34a;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;flex-shrink:0}.contract-pdf-btn:hover{background:#15803d}.contract-pdf-btn svg{width:15px;height:15px}.contract-content-wrapper{position:relative}.contract-content-wrapper .placeholder-overlay{position:absolute;top:0;left:0;right:0;height:300px;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:12px}@media(max-width:768px){.contract-parties-grid{grid-template-columns:1fr}.contract-parties-and{padding:10px 0}.contract-signatures-grid,.contract-execution-grid{grid-template-columns:1fr}.agreed-services-header{flex-direction:column;align-items:flex-start;gap:12px}.existing-label{font-size:11px}}
