:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#e8edf3}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#dfe7ef,#eef3f7 34%,#f5f7fa)}button,input,select,textarea{font:inherit}button{border:0;border-radius:8px;background:#1f6f78;color:#fff;cursor:pointer;font-weight:700;padding:.72rem 1rem}button:hover{background:#185b63}button:disabled{cursor:not-allowed;opacity:.55}button.secondary{background:#e8eef5;color:#243244}button.secondary:hover{background:#d7e1ec}button.danger{background:#b42318}button.danger:hover{background:#8f1f17}input,select,textarea{border:1px solid #cbd5e1;border-radius:8px;color:#172033;padding:.72rem;width:100%}textarea{min-height:82px;resize:vertical}.shell{min-height:100vh;padding:2rem}.panel{background:#fff;border:1px solid #d2dbe7;border-radius:10px;box-shadow:0 24px 60px #0f172a29,0 2px 10px #0f172a0f;display:grid;gap:1.25rem;margin:0 auto;max-width:1180px;padding:2rem;width:100%}.panel.login-panel{max-width:480px;margin:4rem auto;padding:2.5rem}.topline,.section-title,.plan-header,.user-card,.item-row{align-items:center;display:flex;justify-content:space-between;gap:1rem}.eyebrow{color:#1f6f78;font-size:.8rem;font-weight:800;letter-spacing:0;margin:0 0 .5rem;text-transform:uppercase}h1,h2{color:#101828;line-height:1.15;margin:0}h1{font-size:2.1rem}h2{font-size:1.25rem}p{margin:0}.lede{color:#506070;line-height:1.6;margin-top:.75rem}.status,.actions{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem}.status span,.pill{border-radius:999px;font-size:.78rem;font-weight:800;padding:.45rem .7rem;text-transform:uppercase}.status-checking span,.pill.warn{background:#fff7d6;color:#856000}.status-ok span,.pill.ok,.status-approved{background:#dcfce7;color:#166534}.status-error span,.status-rejected{background:#fee2e2;color:#991b1b}.status-submitted,.status-under_review{background:#dbeafe;color:#1d4ed8}.status-revision_requested{background:#fef3c7;color:#92400e}.pill{background:#edf2f7;color:#334155}.form{display:grid;gap:1rem}.form.compact{max-width:520px}.form label{color:#334155;display:grid;font-size:.9rem;font-weight:700;gap:.4rem}.grid{display:grid;gap:1rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.user-card{background:#fff;border:1px solid #ccd8e5;border-radius:10px;box-shadow:0 10px 26px #0f172a14}.user-card{flex-wrap:wrap;padding:1rem}.user-card span,.metric span{color:#1f6f78;display:block;font-size:.78rem;font-weight:800;margin-bottom:.35rem;text-transform:uppercase}.user-card strong,.metric strong{display:block}.user-card p,.plan-header p,.item-row p,.item-row span,.review-note{color:#64748b;line-height:1.5}.metric-grid{display:grid;gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr))}.metric{background:#fff;border:1px solid #d5dfeb;border-radius:10px;box-shadow:0 10px 24px #0f172a14;padding:1rem}.metric strong{color:#101828;font-size:1.9rem}.section{background:#f6f9fc;border:1px solid #d5dfeb;border-radius:10px;box-shadow:inset 0 1px #fffc;display:grid;gap:1rem;padding:1rem}.kpi-editor,.plan{background:#fff;border:1px solid #d3deea;border-radius:10px;box-shadow:0 14px 34px #0f172a1a,0 1px 3px #0f172a14;display:grid;gap:1rem;padding:1rem}.item-list{display:grid;gap:.75rem}.item-row{align-items:flex-start;background:#fbfdff;border:1px solid #dce5ef;border-radius:8px;box-shadow:0 6px 16px #0f172a0d;padding:.9rem}.item-row label{max-width:140px}.message{background:#fff;border-left:4px solid #1f6f78;border-radius:8px;box-shadow:0 10px 24px #0f172a14;color:#334155;margin:0;padding:.9rem 1rem}.empty{color:#64748b}.review-note{background:#fff;border-left:4px solid #f59e0b;border-radius:8px;box-shadow:0 8px 18px #0f172a0f;padding:.75rem}.history-box{background:#fbfdff;border:1px solid #dce5ef;border-radius:8px;display:grid;gap:.6rem;padding:.85rem}.history-box ul{color:#475569;margin:0;padding-left:1.1rem}.history-box li{line-height:1.5}.filters{background:#fff;border:1px solid #dbe5ef;border-radius:10px;box-shadow:0 10px 24px #0f172a12;display:grid;gap:1rem;grid-template-columns:2fr 1fr 1fr;padding:1rem}.filters label{color:#334155;display:grid;font-size:.88rem;font-weight:700;gap:.4rem}.admin-form{background:#fff;border:1px solid #dbe5ef;border-radius:10px;box-shadow:0 10px 24px #0f172a12;display:grid;gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr));padding:1rem}.admin-form .actions{align-self:end}.table-wrap{background:#fff;border:1px solid #dbe5ef;border-radius:10px;box-shadow:0 10px 24px #0f172a12;overflow-x:auto}.nested-section{background:#fff;border:1px solid #dbe5ef;border-radius:10px;display:grid;gap:1rem;padding:1rem}table{border-collapse:collapse;min-width:760px;width:100%}th,td{border-bottom:1px solid #e2e8f0;padding:.85rem 1rem;text-align:left;vertical-align:top}th{color:#1f6f78;font-size:.78rem;text-transform:uppercase}td span{color:#64748b;display:block;font-size:.84rem;margin-top:.25rem}tr:last-child td{border-bottom:0}.selected-row td{background:#f0fdfa}.table-actions{display:flex;flex-wrap:wrap;gap:.5rem}.table-actions button{padding:.55rem .8rem}@media(max-width:760px){.shell,.panel{padding:1rem}.topline,.section-title,.plan-header,.item-row{align-items:stretch;flex-direction:column}.grid.two,.metric-grid,.filters,.admin-form{grid-template-columns:1fr}.item-row label{max-width:none}}.app-container{display:flex;flex-direction:column;min-height:100vh}.shell{flex:1}.header{background:linear-gradient(135deg,#1f6f78,#185b63);box-shadow:0 4px 12px #0f172a26;color:#fff;padding:1.5rem 2rem;position:sticky;top:0;z-index:100}.header-content{align-items:center;display:flex;gap:1.5rem;margin:0 auto;max-width:1180px}.logo{height:50px;width:auto;max-width:150px}.header-title{color:#fff;font-size:1.5rem;margin:0}.footer{background:linear-gradient(180deg,#f6f9fc,#eef3f7);border-top:1px solid #d2dbe7;color:#64748b;font-size:.9rem;margin-top:2rem;padding:2rem}.footer-content{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1180px}.footer-section{margin:0}.footer-section p{color:#64748b;margin:0}.footer-links{display:flex;gap:1.5rem}.footer-links a{color:#1f6f78;text-decoration:none;transition:color .3s ease}.footer-links a:hover{color:#185b63;text-decoration:underline}@media(max-width:760px){.header-content{flex-direction:column;gap:1rem;text-align:center}.logo{height:40px}.header-title{font-size:1.2rem}.footer-content{flex-direction:column;gap:1rem;text-align:center}.footer-links{flex-direction:column;gap:.75rem}.footer{padding:1.5rem 1rem}}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}.bsc-card{background:#fff;border-radius:10px;border:1px solid #d2dbe7;padding:1.25rem;box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -1px #00000008;position:relative;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s ease,box-shadow .2s ease}.bsc-card:hover{transform:translateY(-2px);box-shadow:0 10px 15px -3px #00000014,0 4px 6px -2px #0000000a}.bsc-card.financial{border-left:5px solid #10b981}.bsc-card.customer{border-left:5px solid #3b82f6}.bsc-card.internal_process{border-left:5px solid #f59e0b}.bsc-card.learning_growth{border-left:5px solid #6366f1}.bsc-card h4{margin:0 0 .5rem;font-size:.95rem;color:#64748b;text-transform:uppercase;font-weight:700;letter-spacing:.05em}.bsc-card .score{font-size:2.25rem;font-weight:800;color:#0f172a;margin:.25rem 0 .75rem}.bsc-card .stats{font-size:.82rem;color:#64748b;display:flex;justify-content:space-between;border-top:1px dashed #cbd5e1;padding-top:.5rem}.chart-panel{background:#fff;border-radius:10px;border:1px solid #d2dbe7;padding:1.5rem;box-shadow:0 4px 6px -1px #0000000d;display:flex;flex-direction:column;gap:1rem}.chart-panel h3{margin:0 0 .5rem;font-size:1.25rem;color:#0f172a;font-weight:700}.alignment-tree{display:flex;flex-direction:column;gap:.75rem}.tree-node{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:.75rem 1rem;display:flex;flex-direction:column;gap:.5rem}.tree-node.company-goal{border-left:5px solid #1f6f78}.tree-node.department-goal{margin-left:1.5rem;border-left:5px solid #475569}.tree-node.kpi-item{margin-left:3rem;border-left:5px solid #94a3b8;background:#f8fafc}.tree-header{display:flex;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.tree-header h5{margin:0;font-size:1rem;color:#0f172a;display:flex;align-items:center;gap:.5rem}.tree-header .badge{font-size:.72rem;padding:.2rem .5rem;border-radius:9999px;font-weight:700;text-transform:uppercase}.badge.financial{background:#d1fae5;color:#065f46}.badge.customer{background:#dbeafe;color:#1e40af}.badge.internal_process{background:#fef3c7;color:#92400e}.badge.learning_growth{background:#e0e7ff;color:#3730a3}.badge.active{background:#dbeafe;color:#1e40af}.badge.archived{background:#f1f5f9;color:#475569}.tree-content{font-size:.88rem;color:#475569;padding-top:.5rem;border-top:1px dashed #e2e8f0}.tabs-container{display:flex;gap:.5rem;border-bottom:2px solid #cbd5e1;margin-bottom:1.5rem}.tab-btn{background:none;color:#64748b;border-radius:0;border-bottom:3px solid transparent;padding:.75rem 1.25rem;font-weight:600}.tab-btn:hover{background:#f1f5f9;color:#1f6f78}.tab-btn.active{color:#1f6f78;border-bottom-color:#1f6f78;font-weight:700}
