*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.5;color:#1f2430;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6,p{margin:0}h1,h2,h3,h4,h5,h6{font-weight:600;color:#111827;line-height:1.25}h1{font-size:1.5rem}h2{font-size:1.15rem}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit}table{font-variant-numeric:tabular-nums}.sidebar{width:230px;flex-shrink:0;height:100vh;overflow-y:auto;background:#fff;border-right:1px solid #e5e7eb;color:#374151;display:flex;flex-direction:column;transition:width .15s ease}.sidebar-collapsed{width:72px}.sidebar-brand{padding:1.1rem 1.25rem;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center;min-height:76px}.sidebar-brand img{height:42px;display:block}.sidebar-brand-mark{color:#18ad35;font-weight:700;font-size:1.5rem}.sidebar-nav{display:flex;flex-direction:column;padding:.9rem .75rem;gap:.2rem;flex:1}.sidebar-link{display:flex;align-items:center;gap:.75rem;padding:.6rem .75rem;border-radius:8px;color:#4b5563;text-decoration:none;font-size:.9rem;border-left:3px solid transparent}.sidebar-collapsed .sidebar-link{justify-content:center;padding:.6rem}.sidebar-link:hover{background:#f0faf2;color:#128a2a}.sidebar-link-active{background:#e3f7e8;border-left-color:#18ad35;color:#128a2a;font-weight:600}.sidebar-footer{margin:.75rem;padding:.9rem 1rem;border-radius:10px;background:#e3f7e8;border:1px solid #bfe9c9}.sidebar-footer-title{margin:0;color:#128a2a;font-weight:700;font-size:.85rem}.sidebar-footer-tagline{margin:.15rem 0 0;color:#3f7a4c;font-size:.75rem}.avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#18ad35;color:#fff;font-weight:600;font-size:.85rem;flex-shrink:0}.app-header{display:flex;align-items:center;justify-content:space-between;padding:.85rem 2rem;background:#fff;border-bottom:1px solid #e5e7eb;gap:1rem}.app-header-left{display:flex;align-items:center;gap:1rem;min-width:0}.app-header-menu-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;color:#374151;cursor:pointer;flex-shrink:0}.app-header-menu-btn:hover{background:#f3f4f6}.app-header-title{font-size:1.1rem;margin:0}.app-header-subtitle{margin:.1rem 0 0;font-size:.85rem;color:#6b7280}.app-header-right{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.app-header-icon-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;color:#374151;cursor:pointer}.app-header-icon-btn:hover{background:#f3f4f6}.app-header-user{position:relative}.app-header-user-btn{display:flex;align-items:center;gap:.5rem;padding:.3rem .5rem;border:none;background:none;cursor:pointer;border-radius:8px}.app-header-user-btn:hover{background:#f3f4f6}.app-header-user-info{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2}.app-header-user-name{font-size:.85rem;font-weight:600;color:#111827}.app-header-user-role{font-size:.75rem;color:#6b7280;text-transform:capitalize}.app-header-menu{position:absolute;right:0;top:calc(100% + .4rem);background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 14px #0000001a;min-width:140px;overflow:hidden;z-index:20}.app-header-menu button{width:100%;padding:.6rem .9rem;border:none;background:none;text-align:left;cursor:pointer;font-size:.85rem}.app-header-menu button:hover{background:#f3f4f6}.app-layout{display:flex;height:100vh;background:#f4f5f7;overflow:hidden}.app-layout-content{flex:1;display:flex;flex-direction:column;min-width:0;height:100vh}.app-layout-main{flex:1;min-height:0;overflow-y:auto;padding:2rem}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f5f7}.login-card{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:320px;padding:2rem;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001f}.login-logo{width:100%;max-width:260px;margin:0 auto .5rem;display:block}.login-card h1{font-size:1.25rem;margin:0 0 1rem;text-align:center}.login-card label{font-size:.85rem;font-weight:600;margin-top:.5rem}.login-card input{padding:.5rem .6rem;border:1px solid #d0d3d9;border-radius:4px;font-size:1rem}.login-card button{margin-top:1.25rem;padding:.6rem;border:none;border-radius:4px;background:#18ad35;color:#fff;font-size:1rem;cursor:pointer}.login-card button:disabled{background:#9bd6a9;cursor:not-allowed}.login-error{color:#b91c1c;font-size:.85rem;margin:.25rem 0 0}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.page-header-title-group{display:flex;align-items:center;gap:.85rem}.page-header-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:#e3f7e8;color:#18ad35;flex-shrink:0}.page-header-title-group h1{margin:0;font-size:1.3rem}.page-header-title-group p{margin:.15rem 0 0;color:#6b7280;font-size:.9rem}.stat-card{display:flex;align-items:center;gap:.9rem;padding:1.1rem 1.25rem;background:#fff;border-radius:10px;box-shadow:0 1px 3px #00000014}.stat-card-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;flex-shrink:0}.stat-card-icon-green{background:#e3f7e8;color:#18ad35}.stat-card-icon-blue{background:#e3f0fc;color:#2563eb}.stat-card-icon-amber{background:#fdf1dc;color:#b7791f}.stat-card-icon-red{background:#fce8e8;color:#dc2626}.stat-card-body{display:flex;flex-direction:column;min-width:0}.stat-card-value{font-size:1.4rem;font-weight:700;line-height:1.2}.stat-card-label{color:#6b7280;font-size:.8rem;white-space:nowrap}.stat-card-sparkline{width:46px;height:24px;margin-left:auto;flex-shrink:0}.stat-card-sparkline-green{stroke:#18ad35}.stat-card-sparkline-blue{stroke:#2563eb}.stat-card-sparkline-amber{stroke:#b7791f}.stat-card-sparkline-red{stroke:#dc2626}.dashboard-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-pop-in{0%{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-overlay{position:fixed;inset:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:50;animation:modal-fade-in .15s ease-out}.modal-card{width:100%;max-width:380px;max-height:90vh;overflow-y:auto;background:#fff;border-radius:14px;box-shadow:0 20px 45px #0f172a40,0 2px 6px #0f172a14;animation:modal-pop-in .18s cubic-bezier(.16,1,.3,1)}.modal-card-wide{max-width:480px}.modal-card-xwide{max-width:920px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1.1rem 1.25rem;border-bottom:1px solid #eef0f2}.modal-header-title-group{display:flex;align-items:center;gap:.7rem}.modal-header-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#e3f7e8;color:#18ad35;flex-shrink:0}.modal-header h2{margin:0;font-size:1.05rem;color:#111827}.modal-subtitle{margin:.1rem 0 0;font-size:.8rem;color:#6b7280}.modal-close{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;border:none;background:none;font-size:1.3rem;line-height:1;cursor:pointer;color:#9ca3af;transition:background .12s ease,color .12s ease;flex-shrink:0}.modal-close:hover{background:#f3f4f6;color:#374151}.modal-body{padding:1.1rem 1.25rem 1.25rem}.management-tabs{display:flex;gap:.25rem;border-bottom:1px solid #e5e7eb;margin-bottom:1.5rem}.management-tab{padding:.65rem 1.1rem;border:none;background:none;font-family:inherit;font-size:.9rem;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .12s ease,border-color .12s ease}.management-tab:hover{color:#111827}.management-tab-active{color:#128a2a;border-bottom-color:#18ad35}.management-clickable-tile{display:flex;align-items:center;gap:1rem;padding:1.25rem 1.5rem;background:#fff;border:1px solid #eef0f2;border-radius:10px;box-shadow:0 1px 3px #00000014;cursor:pointer;text-align:left;width:100%;max-width:360px;font-family:inherit;transition:box-shadow .15s ease,transform .15s ease}.management-clickable-tile:hover{box-shadow:0 4px 14px #0000001a;transform:translateY(-1px)}.management-clickable-tile-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:10px;background:#e3f7e8;color:#18ad35;flex-shrink:0}.management-clickable-tile-title{margin:0;font-size:.95rem;font-weight:700;color:#111827}.management-clickable-tile-desc{margin:.15rem 0 0;font-size:.8rem;color:#6b7280}.management-add-btn{padding:.55rem 1.1rem;border:none;border-radius:6px;background:#18ad35;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;white-space:nowrap}.management-add-btn:hover{background:#148f2c}.management-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.management-toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.management-search{flex:1;min-width:220px;display:flex;align-items:center;gap:.5rem;padding:.55rem .85rem;border:1px solid #d0d3d9;border-radius:6px;background:#fff;color:#9ca3af}.management-search input{flex:1;border:none;outline:none;font-size:.9rem;color:#111827}.management-toolbar select{padding:.55rem .75rem;border:1px solid #d0d3d9;border-radius:6px;font-size:.9rem;background:#fff}.management-export-btn{display:flex;align-items:center;gap:.4rem;padding:.55rem 1rem;border:none;border-radius:6px;background:#18ad35;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;white-space:nowrap}.management-export-btn:hover{background:#148f2c}.management-table-wrap{background:#fff;border-radius:10px;box-shadow:0 1px 3px #00000014;overflow:hidden}.management-table-scroll{overflow-x:auto}.management-table{width:100%;min-width:max-content;border-collapse:collapse}.management-table th,.management-table td{text-align:left;padding:.75rem 1.25rem;border-bottom:1px solid #eee;font-size:.9rem}.management-table th{color:#6b7280;font-weight:600;font-size:.8rem;text-transform:uppercase}.management-table tbody tr:last-child td{border-bottom:none}.management-name-cell{display:flex;align-items:center;gap:.6rem}.management-badge{padding:.15rem .5rem;border-radius:999px;background:#e3f7e8;color:#128a2a;font-size:.75rem;font-weight:600;text-transform:uppercase}.management-feature-pills{display:flex;flex-wrap:wrap;gap:.3rem;color:#9ca3af}.management-status-pill{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;color:#128a2a}.management-status-pill-inactive{color:#dc2626}.management-status-dot{width:7px;height:7px;border-radius:50%;background:#18ad35}.management-status-pill-inactive .management-status-dot{background:#dc2626}.management-status-pill-partial{color:#b7791f}.management-status-pill-partial .management-status-dot{background:#b7791f}.management-status-pill-urgent{color:#c2410c}.management-status-pill-urgent .management-status-dot{background:#c2410c}.management-filter-chips{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.management-filter-chip{padding:.4rem .85rem;border:1px solid #d0d3d9;border-radius:999px;background:#fff;color:#4b5563;font-family:inherit;font-size:.82rem;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .12s ease,color .12s ease,border-color .12s ease}.management-filter-chip:hover{border-color:#b7bcc2}.management-filter-chip-active{background:#e3f7e8;border-color:#18ad35;color:#128a2a}.management-filter-chip-date{padding:.35rem .65rem;border:1px solid #d0d3d9;border-radius:6px;font-size:.85rem;font-family:inherit}.management-filter-chip-date-label{font-size:.8rem;font-weight:600;color:#6b7280}.management-actions{display:flex;align-items:center;gap:.35rem}.management-action-btn{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;border:1px solid #d7dade;background:#fff;color:#4b5563;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.management-action-btn:hover{background:#f3f4f6}.management-action-btn-danger:hover{background:#fee2e2;border-color:#fecaca;color:#dc2626}.management-showing{padding:.85rem 1.25rem;color:#6b7280;font-size:.85rem;margin:0}.management-form{display:flex;flex-direction:column;gap:.4rem}.management-form label{font-size:.78rem;font-weight:600;color:#374151;margin-top:.5rem;margin-bottom:.3rem}.management-form input,.management-form select,.management-form textarea{padding:.5rem .65rem;border:1px solid #d7dade;border-radius:6px;font-size:.9rem;font-family:inherit;color:#111827;background:#fff;transition:border-color .12s ease,box-shadow .12s ease}.management-form input:hover,.management-form select:hover,.management-form textarea:hover{border-color:#b7bcc2}.management-form input:focus,.management-form select:focus,.management-form textarea:focus{outline:none;border-color:#18ad35;box-shadow:0 0 0 3px #18ad3526}.management-form textarea{resize:vertical}.management-form button{margin-top:1rem;padding:.6rem;border:none;border-radius:6px;background:#18ad35;color:#fff;font-size:.92rem;font-weight:600;cursor:pointer;box-shadow:0 1px 2px #18ad3540;transition:background .12s ease,box-shadow .12s ease,transform .12s ease}.management-form button:hover:not(:disabled){background:#148f2c;box-shadow:0 4px 10px #18ad354d;transform:translateY(-1px)}.management-form button:active:not(:disabled){transform:translateY(0)}.management-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 .85rem}.management-field{display:flex;flex-direction:column;min-width:0}.management-form-grid .management-form-full{grid-column:1 / -1}.management-required{color:#dc2626;margin-left:.15rem}.management-checkbox-label{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.85rem;font-weight:600;color:#374151;cursor:pointer}.management-checkbox-label input[type=checkbox]{width:16px;height:16px;accent-color:#18ad35;cursor:pointer}.management-panel-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 .85rem;padding:.75rem;margin-top:.4rem;background:#f9fafb;border:1px solid #eef0f2;border-radius:8px}.management-feature-checklist{margin-top:.6rem;padding:.75rem .85rem;background:#f0faf2;border:1px solid #bfe9c9;border-radius:8px}.management-feature-checklist-title{margin:0 0 .4rem;font-size:.78rem;font-weight:600;color:#128a2a}.management-feature-checklist ul{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:.35rem .75rem}.management-feature-checklist li{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:#374151}.management-feature-checklist li svg{color:#18ad35;flex-shrink:0}.management-form button:disabled{background:#9bd6a9;box-shadow:none;cursor:not-allowed}.management-summary-box{margin-top:.4rem;padding:.85rem 1rem;background:#f9fafb;border:1px solid #eef0f2;border-radius:8px}.management-summary-row{display:flex;align-items:center;justify-content:space-between;padding:.25rem 0;font-size:.85rem;color:#4b5563}.management-summary-total{margin-top:.3rem;padding-top:.55rem;border-top:1px solid #e5e7eb;font-size:.95rem;font-weight:700;color:#111827}.management-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:.45rem .65rem;font-size:.82rem;margin:.35rem 0 0}.confirm-dialog{width:100%;max-width:340px;background:#fff;border-radius:14px;box-shadow:0 20px 45px #0f172a40,0 2px 6px #0f172a14;padding:1.5rem;text-align:center;animation:modal-pop-in .18s cubic-bezier(.16,1,.3,1)}.confirm-dialog-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#e3f7e8;color:#18ad35;margin-bottom:.85rem}.confirm-dialog-icon-danger{background:#fee2e2;color:#dc2626}.confirm-dialog h2{margin:0 0 .4rem;font-size:1.05rem;color:#111827}.confirm-dialog p{margin:0;font-size:.85rem;color:#6b7280}.confirm-dialog-actions{display:flex;gap:.6rem;margin-top:1.5rem}.confirm-dialog-actions button{flex:1;padding:.55rem;border-radius:6px;font-size:.88rem;font-weight:600;cursor:pointer;transition:background .12s ease}.confirm-dialog-cancel{border:1px solid #d7dade;background:#fff;color:#374151}.confirm-dialog-cancel:hover:not(:disabled){background:#f3f4f6}.confirm-dialog-confirm{border:none;background:#18ad35;color:#fff}.confirm-dialog-confirm:hover:not(:disabled){background:#148f2c}.confirm-dialog-confirm-danger{background:#dc2626}.confirm-dialog-confirm-danger:hover:not(:disabled){background:#b91c1c}.confirm-dialog-actions button:disabled{opacity:.6;cursor:not-allowed}.info-tooltip{position:relative;display:inline-flex;align-items:center;margin-left:.3rem;color:#9ca3af;cursor:help;vertical-align:middle}.info-tooltip:hover,.info-tooltip:focus{color:#18ad35;outline:none}.info-tooltip-content{position:absolute;bottom:calc(100% + 8px);width:260px;background:#111827;color:#f3f4f6;padding:.65rem .75rem;border-radius:8px;font-size:.75rem;font-weight:400;line-height:1.5;text-transform:none;box-shadow:0 8px 20px #0003;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,transform .12s ease;z-index:30}.info-tooltip-content-center{left:50%;transform:translate(-50%) translateY(4px)}.info-tooltip-content-right{right:-10px;transform:translateY(4px)}.info-tooltip-content:after{content:"";position:absolute;top:100%;border:5px solid transparent;border-top-color:#111827}.info-tooltip-content-center:after{left:50%;transform:translate(-50%)}.info-tooltip-content-right:after{right:12px}.info-tooltip:hover .info-tooltip-content-center,.info-tooltip:focus .info-tooltip-content-center{opacity:1;visibility:visible;transform:translate(-50%) translateY(0)}.info-tooltip:hover .info-tooltip-content-right,.info-tooltip:focus .info-tooltip-content-right{opacity:1;visibility:visible;transform:translateY(0)}.info-tooltip-content ul{margin:0;padding-left:1rem}.info-tooltip-content li+li{margin-top:.15rem}.company-history-layout{display:grid;grid-template-columns:1fr 2fr;gap:1.5rem;align-items:start}.company-history-list{border-right:1px solid #eef0f2;padding-right:1.25rem;max-height:520px;overflow-y:auto}.company-history-list-item{display:block;width:100%;text-align:left;padding:.65rem .75rem;margin-bottom:.2rem;border:none;background:none;border-radius:8px;cursor:pointer;font-family:inherit;color:#374151;transition:background .12s ease,color .12s ease}.company-history-list-item:hover{background:#f3f4f6}.company-history-list-item-active{background:#e3f7e8;color:#128a2a}.company-history-list-item-name{display:block;font-size:.88rem;font-weight:600}.company-history-list-item-plan{display:block;font-size:.75rem;color:#6b7280;margin-top:.1rem}.company-history-list-item-active .company-history-list-item-plan{color:#128a2a}.company-history-detail-title{margin:0 0 .85rem;font-size:.95rem;font-weight:700;color:#111827}.company-history-empty{color:#6b7280;font-size:.85rem;padding:1rem 0}.company-duration-box{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;margin-bottom:1rem;background:#f0faf2;border:1px solid #bfe9c9;border-radius:8px}.company-duration-label{font-size:.78rem;color:#128a2a;font-weight:600}.company-duration-value{font-size:.95rem;font-weight:700;color:#111827}.company-timeline-form{display:grid;grid-template-columns:1fr 1fr;gap:0 .85rem;padding:.85rem;margin-bottom:1.25rem;background:#f9fafb;border:1px solid #eef0f2;border-radius:8px}.company-timeline-form .management-field{margin-bottom:.5rem}.company-timeline-form-full{grid-column:1 / -1}.company-timeline{position:relative;padding-left:1.5rem}.company-timeline:before{content:"";position:absolute;left:5px;top:4px;bottom:4px;width:2px;background:#e5e7eb}.company-timeline-empty{color:#6b7280;font-size:.85rem;padding:.5rem 0 .5rem 1.5rem}.company-timeline-item{position:relative;padding-bottom:1.25rem}.company-timeline-item:last-child{padding-bottom:0}.company-timeline-dot{position:absolute;left:-1.5rem;top:3px;width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d0d3d9;background:#9ca3af}.company-timeline-dot-milestone{background:#18ad35}.company-timeline-dot-plan_change{background:#2563eb}.company-timeline-dot-technology{background:#7c3aed}.company-timeline-dot-growth{background:#b7791f}.company-timeline-dot-invoice{background:#4f46e5}.company-timeline-dot-payment{background:#0d9488}.company-timeline-dot-renewal{background:#0284c7}.company-timeline-date{font-size:.75rem;color:#6b7280;margin-bottom:.2rem}.company-timeline-title-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.company-timeline-title{margin:0;font-size:.92rem;font-weight:600;color:#111827}.company-timeline-desc{margin:.25rem 0 0;font-size:.85rem;color:#4b5563}.company-timeline-plan{margin:.25rem 0 0;font-size:.8rem;color:#2563eb;font-weight:600}.company-timeline-type-badge{padding:.1rem .55rem;border-radius:999px;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.company-timeline-type-badge-milestone{background:#e3f7e8;color:#128a2a}.company-timeline-type-badge-plan_change{background:#e3f0fc;color:#2563eb}.company-timeline-type-badge-technology{background:#f1e9fc;color:#7c3aed}.company-timeline-type-badge-growth{background:#fdf1dc;color:#b7791f}.company-timeline-type-badge-invoice{background:#e5e4fb;color:#4f46e5}.company-timeline-type-badge-payment{background:#dbf3f0;color:#0d9488}.company-timeline-type-badge-renewal{background:#e0f0fb;color:#0284c7}.company-timeline-delete{margin-left:auto}
