:root{font-family:"Segoe UI",Arial,sans-serif;color:#213330;background:#f4f7f6;font-size:13px;--green:#176c57;--border:#dee7e3;--row:44px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid #d6e0dc;border-radius:6px;background:#fff;color:#364b44;padding:8px 12px;cursor:pointer;white-space:nowrap}button:hover{background:#edf5f1;border-color:#a8c7b7}button:disabled{opacity:.4;cursor:default}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#105340;color:white}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #409e7c;outline-offset:2px}.topbar{height:76px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px}.brand{display:flex;gap:12px;text-decoration:none;color:inherit;font-size:23px;align-items:center;letter-spacing:-.7px}.brand b{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:1.8px;color:#8a9993;margin-top:3px}.brand-icon{height:38px;width:38px;background:var(--green);color:#fff;border-radius:9px;font-weight:700;text-align:center;line-height:38px;position:relative}.brand-icon span{position:absolute;font-size:15px;right:3px;bottom:-6px;color:#b1dcc7}.header-right{display:flex;gap:20px;align-items:center}.local-badge{color:#61736c;font-size:12px}.local-badge i,.dot{display:inline-block;background:#309a72;width:6px;height:6px;border-radius:50%;margin-right:6px}main{padding:24px 32px}.breadcrumb{color:#80918a;font-size:12px;margin-bottom:28px}.breadcrumb span{margin:0 10px;color:#b7c4be}.project-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--green);font-weight:700}.eyebrow span{margin-left:10px;background:#e2eee7;padding:4px 7px;border-radius:4px;font-size:8px;letter-spacing:1px}.project-heading input{font-size:29px;font-weight:650;letter-spacing:-1px;max-width:720px;width:100%;background:transparent;border:0;border-bottom:1px solid transparent;color:#203d32;padding:8px 0 4px}.project-heading input:hover{border-bottom-color:#b0c9bc}.project-heading p{color:#7b8e85;margin:5px 0 0;font-size:12px}.file-actions{display:flex;gap:8px}.metrics{display:grid;grid-template-columns:repeat(5,1fr);background:white;border:1px solid var(--border);border-radius:9px;margin:26px 0 22px;padding:19px 0}.metrics>div{padding:0 24px;border-right:1px solid var(--border)}.metrics>div:last-child{border:0}.metrics span{display:block;font-size:9px;letter-spacing:1.4px;color:#83938b;margin-bottom:7px;font-weight:600}.metrics strong{font-size:19px;font-weight:600;letter-spacing:-.4px}.metrics small{display:block;font-size:11px;color:#7b8e85;margin-top:3px}.workspace{background:white;border:1px solid var(--border);border-radius:9px;overflow:hidden;box-shadow:0 4px 20px #274f3905}.workspace-top{display:flex;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border);height:54px;align-items:center}.tab{color:var(--green);height:54px;display:flex;align-items:center;gap:8px;border-bottom:2px solid var(--green)}.export-actions{display:flex;gap:7px}.export-actions button{font-size:12px;padding:6px 10px}.toolbar{display:flex;justify-content:space-between;padding:12px 14px;gap:12px;flex-wrap:wrap}.tools,.view-tools{display:flex;align-items:center;gap:6px}.tools button{font-size:12px}.divider{height:20px;border-left:1px solid var(--border);margin:0 4px}.view-tools label{font-size:11px;color:#7a8d84}.view-tools select{padding:6px;border:1px solid var(--border);border-radius:5px;margin-left:5px}.hint{padding:8px 16px;background:#f9fbfa;border-top:1px solid #edf1ef;border-bottom:1px solid var(--border);color:#7f9088;font-size:11px}.hint code{color:#32775f}.schedule-scroll{overflow:auto;max-height:62vh;min-height:350px;position:relative}#schedule{position:relative;min-width:1200px}.schedule-header,.task-row{display:flex;width:max-content;min-width:100%}.schedule-header{height:60px;position:sticky;top:0;z-index:5;background:#f4f8f6;border-bottom:1px solid var(--border)}.grid-head,.grid-row{display:grid;grid-template-columns:42px 60px 255px 72px 108px 108px 120px;width:765px;flex-shrink:0;border-right:2px solid #ceddd4;position:sticky;left:0;z-index:3;background:inherit}.grid-head{align-items:center;background:#f4f8f6;font-size:11px;font-weight:600;color:#688074}.grid-head>span{padding:0 8px}.task-row{height:var(--row);background:#fff;border-bottom:1px solid #edf1ef}.task-row:nth-child(odd){background:#fcfdfc}.task-row.selected{background:#eaf4ee}.grid-row{align-items:center}.grid-row>span{padding:0 6px;color:#7e9187;font-size:11px}.grid-row input{width:100%;padding:7px 6px;background:transparent;border:1px solid transparent;min-width:0;color:#314c3d;font-size:12px}.grid-row input:hover{border-color:#c9ddd0;background:#fff}.grid-row input:disabled{color:#3d5949;opacity:1}.grid-row input[type=date]{font-size:11px;padding:5px 1px}.name-cell{display:flex;align-items:center;min-width:0}.name-cell button{border:0;background:transparent;padding:4px;width:23px;flex-shrink:0;color:#6b8474}.name-cell input{font-weight:500}.summary-row .name-cell input{font-weight:700}.timeline-head{position:relative;flex-shrink:0}.month-label{position:absolute;top:0;height:27px;padding:6px 8px;font-size:11px;border-right:1px solid var(--border);white-space:nowrap;overflow:hidden;color:#426452}.day-label{position:absolute;top:27px;height:33px;text-align:center;padding-top:8px;font-size:10px;color:#8b9c92;border-right:1px solid #e5ece7}.day-label.weekend{background:#eaf0ec}.timeline{position:relative;height:43px;flex-shrink:0;touch-action:none}.calendar-cell{position:absolute;top:0;bottom:0;border-right:1px solid #edf2ee;pointer-events:none}.calendar-cell.weekend{background:#f3f6f4}.bar{position:absolute;top:11px;height:21px;background:#4d9b7a;border-radius:4px;box-shadow:inset 0 -2px 0 #27755533;cursor:grab;z-index:2}.bar .bar-label{color:white;font-size:10px;line-height:21px;padding:0 7px;display:block;overflow:hidden;white-space:nowrap;pointer-events:none}.resize{position:absolute;right:0;top:0;height:100%;width:8px;cursor:ew-resize;border-left:1px solid #ffffff55}.bar.summary{height:9px;top:16px;background:#244f3c;border-radius:1px;cursor:default}.bar.summary:before,.bar.summary:after{content:"";position:absolute;top:7px;border-top:6px solid #244f3c;border-right:5px solid transparent}.bar.summary:after{right:0;transform:scaleX(-1)}.bar.milestone{width:13px!important;height:13px;top:15px;transform:rotate(45deg);border-radius:1px;background:#c58c3d}.today-line{position:absolute;top:0;bottom:0;border-left:1px dashed #d18447;pointer-events:none;z-index:1}.dependencies{position:absolute;left:765px;top:60px;pointer-events:none;z-index:1;overflow:visible}.workspace-footer{display:flex;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--border);font-size:10px;color:#8b9b93;gap:12px}.legend{display:inline-block;width:11px;height:6px;border-radius:2px;margin:0 4px 0 14px}.legend.task{background:#4d9b7a}.legend.summary{background:#244f3c}.legend.milestone{background:#c58c3d;width:6px;height:6px;transform:rotate(45deg)}.page-footer{display:flex;justify-content:space-between;font-size:10px;color:#8b9c93;margin:20px 0}.page-footer b{margin:0 8px;color:#b0c0b6}dialog{border:1px solid var(--border);border-radius:12px;width:520px;max-width:95vw;padding:24px;box-shadow:0 20px 100px #16342833}dialog::backdrop{background:#16342866}dialog label{display:block;font-size:12px;color:#496451;margin:15px 0}dialog input,dialog textarea{display:block;width:100%;border:1px solid #ccdbd1;border-radius:5px;padding:9px;margin-top:7px}dialog textarea{resize:vertical}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{font-size:19px;margin:0}.dialog-heading button{border:0;font-size:21px;padding:0 5px}.form-row{display:flex;gap:14px}.form-row label{flex:1;min-width:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.muted{font-size:11px;line-height:1.7;color:#7f9386}#weekdays{display:flex;flex-wrap:wrap;gap:10px}#weekdays label{margin:0;display:flex;align-items:center;gap:4px}#weekdays input{width:auto;margin:0}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#203f30;color:white;padding:13px 20px;border-radius:8px;box-shadow:0 5px 30px #0002;max-width:90vw;z-index:20}.toast.error{background:#973e34}.empty{padding:60px;color:#7c9283;font-size:15px}.print-only{display:none}@media(max-width:1000px){main{padding:20px 16px}.topbar{padding:0 16px}.project-heading{align-items:flex-start;flex-direction:column}.metrics>div{padding:0 14px}.metrics strong{font-size:15px}.local-badge{display:none}.project-heading input{font-size:25px}.page-footer{gap:20px}}@media print{@page{size:A3 landscape;margin:12mm}body{background:#fff}main{padding:0}.topbar,.breadcrumb,.file-actions,.toolbar,.hint,.export-actions,.page-footer,.workspace-footer{display:none!important}.project-heading input{font-size:23px}.project-heading p,.eyebrow{display:none}.metrics{margin:15px 0}.schedule-scroll{max-height:none;overflow:visible;min-height:0}.workspace{overflow:visible;border-radius:0}.grid-head,.grid-row{position:static}.schedule-header{position:static}.task-row{break-inside:avoid}.workspace-top{height:36px}.tab{height:36px}.bar,.weekend,.calendar-cell,.task-row,.grid-row{-webkit-print-color-adjust:exact;print-color-adjust:exact}.grid-row input{border:0}button{display:none}.print-only{display:block}}

.grid-splitter{position:absolute;right:-2px;top:0;bottom:0;width:6px;cursor:col-resize;z-index:10;background:transparent;transition:background .2s}.grid-splitter:hover,.grid-splitter:active{background:#309a72}.date-cell-wrapper{position:relative;display:flex;align-items:center;width:100%}.date-cell-wrapper.has-bound input{padding-right:18px}.bound-indicator{position:absolute;right:2px;font-size:11px;cursor:help;color:#d18447;line-height:1;user-select:none;opacity:.85}.bound-indicator:hover{opacity:1;transform:scale(1.2)}

.print-view{display:none}@media print{body>*:not(#print-view){display:none!important}#print-view{display:block!important;width:100%}.print-page{page-break-after:always;page-break-inside:avoid;box-sizing:border-box;padding:8mm;background:#fff;color:#000;font-family:"Segoe UI",Arial,sans-serif}.print-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #1c5e44;padding-bottom:8px;margin-bottom:10px}.print-title h2{margin:0 0 5px;font-size:16pt;color:#154a36}.print-meta{display:flex;gap:15px;font-size:8.5pt;color:#444}.print-badge{text-align:right;font-size:8pt;font-weight:700;color:#1c5e44}.print-table{width:100%;border-collapse:collapse;font-size:8pt;margin-bottom:8px}.print-table th,.print-table td{border:1px solid #cfded6;padding:4px 5px;vertical-align:middle}.print-table th{background:#ebf3ef!important;font-weight:700;color:#184231;text-align:left}.print-table tr.is-summary{font-weight:700;background:#f5faf7!important}.print-track{position:relative;height:14px;background:#eef3f0;border-radius:2px}.print-bar{position:absolute;top:2px;bottom:2px;border-radius:2px}.print-bar.task{background:#2a855d!important}.print-bar.summary{background:#133829!important;height:5px;top:4px}.print-bar.milestone{width:8px!important;height:8px;top:3px;background:#b87620!important;transform:rotate(45deg);border-radius:1px}.print-footer{display:flex;justify-content:space-between;border-top:1px solid #ddd;padding-top:4px;font-size:7.5pt;color:#666}}

/* Multi-Project Management Styles */
dialog.large-dialog{width:720px;max-width:96vw}
.projects-dialog-header{display:flex;gap:12px;margin:16px 0 12px;align-items:center}
.projects-search-wrap{flex:1;min-width:0}
.projects-search-wrap input{margin-top:0;padding:8px 12px;border:1px solid #ccdbd1;border-radius:6px;font-size:12px}
.projects-list-container{max-height:50vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px;margin:12px 0 20px;padding-right:4px}
.project-card{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#fff;border:1px solid #dbe6e0;border-radius:8px;transition:border-color .15s,background .15s}
.project-card:hover{border-color:#a8c9b8;background:#f8fbf9}
.project-card.active{border-color:#176c57;background:#edf6f1}
.project-card-info{flex:1;min-width:0}
.project-card-title-row{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.project-card-title{font-size:14px;font-weight:600;color:#1d382c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-badge-active{background:#176c57;color:white;font-size:9px;font-weight:700;padding:2px 6px;border-radius:4px;letter-spacing:.5px;flex-shrink:0}
.project-card-meta{font-size:11px;color:#6b8277;display:flex;gap:14px;flex-wrap:wrap}
.project-card-actions{display:flex;gap:6px;margin-left:14px;flex-shrink:0}
.project-card-actions button{padding:5px 9px;font-size:11px}
.btn-delete-proj{color:#aa3a2e}
.btn-delete-proj:hover{background:#fdf2ef;border-color:#e2a9a1}
.empty-projects{padding:30px 20px;text-align:center;color:#7a9184;font-size:13px}

/* Enhanced Bar Labels & Timeline Visibility across Ngày, Tuần, Tháng */
.bar{overflow:visible}
.bar .bar-label.inside{color:white;font-size:10px;line-height:21px;padding:0 7px;display:block;overflow:hidden;white-space:nowrap;pointer-events:none}
.bar .bar-label.outside{position:absolute;left:100%;top:0;line-height:21px;padding-left:6px;color:#173b2d;font-size:10.5px;font-weight:600;white-space:nowrap;overflow:visible;pointer-events:none;text-shadow:0 0 2px #fff,0 0 4px #fff,0 0 6px #fff;z-index:5}
.bar.summary .bar-label.outside{top:-6px;font-weight:700;color:#153b29}
.bar.milestone .bar-label.outside{top:-4px;left:14px;transform:rotate(-45deg);font-weight:700;color:#8a5712}
.day-label.week-start{border-left:1px solid #acc4b6;font-weight:600;color:#1b3d2c}
.day-label.month-view-week{border-left:1px solid #b7cbbd;color:#3b5c4b;font-weight:600;background:#f7faf8}

/* Print Timeline Header & Responsive Labels */
.print-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:8pt;margin-bottom:8px}
.print-table th,.print-table td{border:1px solid #cfded6;padding:3px 4px;vertical-align:middle}
.print-table th.col-stt,.print-table td.col-stt{width:30px;text-align:center}
.print-table th.col-wbs,.print-table td.col-wbs{width:44px;text-align:center}
.print-table th.col-name,.print-table td.col-name{width:24%;min-width:130px;word-break:break-word}
.print-table th.col-dur,.print-table td.col-dur{width:40px;text-align:center}
.print-table th.col-date,.print-table td.col-date{width:66px;text-align:center;font-size:7.5pt}
.print-table th.col-links,.print-table td.col-links{width:62px;font-size:7.5pt;word-break:break-word}
.print-table th.col-gantt-head,.print-table td.col-gantt{width:auto;padding:0}
.print-gantt-title{font-size:7.5pt;font-weight:700;padding:2px 4px;text-align:center;background:#e8f1ec;border-bottom:1px solid #cfded6}
.print-timeline-header{display:flex;flex-direction:column}
.print-months-row{display:flex;height:14px;border-bottom:1px solid #d4e2db}
.print-month-cell{text-align:center;font-size:7pt;font-weight:600;color:#174230;overflow:hidden;white-space:nowrap;border-right:1px solid #cfded6;background:#edf5f0;line-height:14px;box-sizing:border-box}
.print-weeks-row{display:flex;height:13px}
.print-week-cell{text-align:center;font-size:6.5pt;color:#557063;overflow:hidden;white-space:nowrap;border-right:1px solid #e1ece6;line-height:13px;box-sizing:border-box}
.print-track{position:relative;height:16px;background:#f7faf8;border-radius:2px;overflow:visible}
.print-grid-line{position:absolute;top:0;bottom:0;width:1px;background:#e6eee9;pointer-events:none}
.print-bar{position:absolute;top:1px;bottom:1px;border-radius:2px;display:flex;align-items:center}
.print-bar.has-space{padding:0 4px;overflow:hidden}
.print-bar.short-bar{overflow:visible}
.print-bar-text.inside{color:#fff;font-size:7pt;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.print-bar-text.outside{position:absolute;left:100%;top:0;line-height:14px;padding-left:4px;color:#163d2e;font-size:7pt;font-weight:600;white-space:nowrap;overflow:visible}
/* Project overview and staffing */
[hidden]{display:none!important}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:20px 0 30px}.home-heading h1{font-size:34px;letter-spacing:-1px;color:#203d32;margin:10px 0}.home-heading p,.home-storage-note{color:#70857b;line-height:1.6}.home-banner{padding:30px 34px;background:#184f40;color:white;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:24px}.home-banner strong{font-size:23px;font-weight:600}.home-banner p{color:#c0d9ce;margin-bottom:0}.home-banner>span{letter-spacing:2px;font-size:12px;color:#d4e9de;white-space:nowrap}.home-banner b{margin:0 14px;color:#83bc9e}.project-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 20px}.project-list-heading h2{font-size:19px;font-weight:600}.project-list-heading h2 span{color:#7a9186;font-size:15px;margin-left:6px}.project-list-heading label{display:flex;align-items:center;gap:12px;color:#6b8175}.project-list-heading input{background:white;border:1px solid var(--border);border-radius:7px;padding:10px 14px;width:280px}.project-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:20px}.project-card{background:white;border:1px solid var(--border);border-radius:10px;padding:24px;display:flex;flex-direction:column;min-width:0;box-shadow:0 3px 12px #274f3904}.card-eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--green);font-weight:600}.project-card h3{font-size:21px;line-height:1.4;margin:14px 0 8px;overflow-wrap:anywhere;color:#274b3b}.card-dates{color:#7b8e84;font-size:12px}.card-details{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 26px;color:#4f7060}.card-details span{background:#f0f5f2;border-radius:4px;padding:6px 9px;font-size:12px}.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:18px;border-top:1px solid #edf1ef}.card-actions button{font-size:12px}.home-storage-note{font-size:12px;margin-top:28px}.detail-nav{display:flex;justify-content:space-between;gap:12px;margin-bottom:24px}.detail-nav>div{display:flex;gap:8px}.detail-nav button[aria-pressed=true]{background:#e0eee6;color:#176c57;border-color:#9dc4ad}.workforce-panel{background:white;border:1px solid var(--border);border-radius:10px;padding:24px}.workforce-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.workforce-heading h2{margin:0;font-size:21px}.workforce-heading p{color:#7b8e84;line-height:1.6}.workforce-stats{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}.workforce-stats span{background:#edf5f0;border-radius:7px;padding:16px 20px;font-size:17px;font-weight:600;color:#25573e}.workforce-table-scroll{overflow-x:auto}.workforce-table{width:100%;border-collapse:collapse;text-align:left;min-width:800px}.workforce-table th{color:#617b6c;font-size:11px;background:#f4f8f6}.workforce-table th,.workforce-table td{padding:14px 10px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.workforce-table td{max-width:260px}.workforce-actions{white-space:nowrap}.workforce-actions button{margin-right:6px}
@media(min-width:1500px){#projects-home{max-width:1440px;margin:0 auto}.project-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.home-heading,.project-list-heading,.workforce-heading{align-items:flex-start;flex-direction:column}.home-banner{padding:24px}.home-banner>span{display:none}.home-heading h1{font-size:28px}.project-list-heading input{width:100%;min-width:0}.project-list-heading label{width:100%}.project-cards{grid-template-columns:1fr}.detail-nav{flex-wrap:wrap}.home-heading .file-actions{flex-wrap:wrap}.topbar{padding:12px 16px;height:auto;gap:12px}.local-badge{display:none}.header-right{gap:6px}main{padding:20px 16px}}
#project-cards .project-card{align-items:stretch;justify-content:flex-start}
#project-cards .project-card h3{min-height:59px}
@media(max-width:760px){#project-detail .project-heading{align-items:stretch;flex-direction:column}#project-detail .file-actions{flex-wrap:wrap}#project-detail .metrics{grid-template-columns:repeat(2,1fr);gap:18px}#project-detail .metrics>div{padding:0 14px}#project-detail .tools{flex-wrap:wrap}#project-detail .workspace-top{height:auto;align-items:flex-start;flex-direction:column}#project-detail .export-actions{flex-wrap:wrap;padding-bottom:10px}.brand{font-size:19px}.brand-icon{flex-shrink:0}.header-right{flex-wrap:wrap;justify-content:flex-end}.workforce-panel{padding:16px}}
dialog select{display:block;width:100%;border:1px solid #ccdbd1;border-radius:5px;padding:9px;margin-top:7px;min-width:0}
@media(min-width:761px) and (max-width:1499px){.project-cards{grid-template-columns:repeat(auto-fit,minmax(310px,1fr))}}
/* Task allocations, hierarchy drag and reporting */
.grid-head,.grid-row{grid-template-columns:42px 52px minmax(180px,1fr) 60px 100px 100px 95px 60px 90px;width:960px}
.task-drag-handle{border:0;border-radius:0;background:transparent;padding:4px 0;cursor:grab;font-size:11px;color:#6b8777;height:100%}.task-drag-handle:active{cursor:grabbing}.task-workforce{margin:0 5px;padding:7px 4px;font-size:11px;overflow:hidden;text-overflow:ellipsis;background:#f3f8f5;color:#176c57}.task-row{position:relative}.task-row.drop-inside .grid-row{background:#cee8d9;box-shadow:inset 0 0 0 2px #2b8a62}.task-row.drop-before:before,.task-row.drop-after:after{content:"";position:absolute;left:0;width:100%;height:3px;background:#1d9a67;z-index:8;pointer-events:none}.task-row.drop-before:before{top:0}.task-row.drop-after:after{bottom:0}.root-drop-zone{display:none;padding:16px;text-align:center;border:2px dashed #78ad91;background:#ecf6ef;color:#246344;margin:10px}.root-drop-zone.drag-active{display:block}.gantt-progress{position:absolute;left:0;top:0;bottom:0;background:#176c57;border-radius:4px;pointer-events:none}.bar .bar-label{position:relative}.bar .bar-label.outside{position:absolute}
.detail-nav>div{flex-wrap:wrap}.detail-nav button[aria-pressed=true]{font-weight:600;box-shadow:inset 0 -2px #176c57}.chart-heading,.allocation-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0 20px}.chart-heading h3,.allocation-heading h3{font-size:17px;margin:0 0 8px}.chart-heading p{color:#7a8d81;font-size:12px;line-height:1.6;margin:0}.chart-range{display:flex;align-items:flex-end;gap:10px}.chart-range label,.report-date,.allocation-heading label{font-size:11px;display:flex;flex-direction:column;gap:6px;color:#6c8275}.chart-range input,.report-date input,.allocation-heading select,.report-filters input,.report-filters select{border:1px solid var(--border);padding:8px;border-radius:5px;background:white;color:#314e3e}.daily-chart{overflow:hidden;padding:10px 12px 6px;border:1px solid var(--border);border-radius:8px;background:linear-gradient(#fff,#f8fbf9)}.daily-chart svg{display:block;cursor:crosshair;touch-action:pan-y}.allocation-heading select{max-width:420px}.reports-panel{padding:24px;background:white;border:1px solid var(--border);border-radius:10px}.report-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin:24px 0}.report-metric{padding:22px;border:1px solid var(--border);border-radius:8px;background:#fbfdfb}.report-metric span{display:block;color:#6c8375;font-size:11px;margin-bottom:12px}.report-metric strong{font-size:29px;color:#176c57}.report-metric.red strong{color:#b15c40}.report-metric.blue strong{color:#437cad}.report-metric.gray strong{color:#7b8f83}.report-overview{display:grid;grid-template-columns:1fr 1.3fr;gap:24px;margin:20px 0}.report-overview>div{padding:22px;border:1px solid var(--border);border-radius:8px}.report-overview h3{margin:0 0 22px;font-size:16px}.report-progress-line{margin:16px 0}.progress-caption{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#466451;margin-bottom:10px}.progress-caption span{overflow-wrap:anywhere}.progress-track{height:9px;background:#e9f1ec;border-radius:6px;overflow:hidden}.progress-track>span{display:block;height:100%;background:#388e66;border-radius:6px}.planned .progress-track>span{background:#93afbf}.report-filters{display:flex;gap:8px;flex-wrap:wrap}.overdue-row td:last-child{color:#aa5438;font-weight:600}.workforce-table td{font-size:12px}.report-date{min-width:150px}
@media(max-width:1000px){.chart-heading,.allocation-heading{align-items:flex-start;flex-direction:column}.report-metrics{grid-template-columns:repeat(3,1fr)}.report-overview{grid-template-columns:1fr}.chart-range{flex-wrap:wrap}.reports-panel{padding:16px}}
@media(max-width:600px){.report-metrics{grid-template-columns:repeat(2,1fr)}.report-metric{padding:16px}.allocation-heading select{max-width:100%}.chart-range{gap:8px}.detail-nav>div{width:100%}.detail-nav button{font-size:12px}}
.root-drop-zone{display:block;margin:0;padding:9px;border-width:0 0 1px;border-color:#c5d9cd;font-size:11px;color:#779183;background:#f8fbf9}.root-drop-zone.drag-active{background:#dcefe2;border:2px dashed #4b946a;padding:7px}
.schedule-workforce{padding:20px 24px 26px;border-top:1px solid var(--border);background:#fff}.schedule-workforce .workforce-stats{margin:4px 0 16px}.schedule-workforce .chart-heading{margin:16px 0}.headcount-input{text-align:center;border-color:#c8dfd0!important;border-radius:5px;background:#f3f9f5!important;max-width:78px;justify-self:center}.calendar-presets{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 16px}.calendar-presets button{font-size:11px}.holiday-list{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0;color:#7b8d82;font-size:11px;max-height:140px;overflow:auto}.holiday-list button{font-size:11px;background:#f4f7f5;padding:5px 8px}#calendar-dialog h3{font-size:14px;margin:22px 0 0}@media(max-width:760px){.schedule-workforce{padding:16px}}
.calendar-error{color:#a33e31;font-size:12px}
@media(max-width:760px){.topbar{flex-wrap:wrap}.header-right{margin-left:auto}}
.report-project-name{font-weight:700;color:#176c57;font-size:17px;overflow-wrap:anywhere}
.baseline-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;background:#eef5f0;border:1px solid #cedfd4;border-radius:8px;margin:16px 0}.baseline-controls p{margin:0}.baseline-controls button{flex-shrink:0}
.comparison-table{min-width:1680px}.comparison-table th,.comparison-table td{white-space:normal;min-width:80px}.comparison-table th:nth-child(2){width:240px}.comparison-table th:last-child{width:280px}.actual-edit{display:block;margin-top:6px;padding:3px 8px;font-size:11px}.comparison-track{width:280px;min-width:250px!important}
.comparison-legend{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:16px 0;font-size:12px}.comparison-legend i{display:inline-block;width:24px;height:8px;margin-right:5px}.target-key{background:#a5b4ab}.current-key{border:2px dashed #4283ad}.actual-key{background:#cc8843}
#pdf-export-status{min-height:20px;color:#176c57;font-size:13px}
@media(max-width:650px){.baseline-controls{align-items:flex-start;flex-direction:column}}
.equipment-summary{display:flex;flex-direction:column;gap:8px;color:#526c5e;white-space:nowrap}.equipment-summary strong{font-size:26px;color:#176c57}.equipment-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:20px 0}.equipment-controls label{min-width:300px;max-width:100%}.equipment-controls button{height:38px}.equipment-table{min-width:1250px}.equipment-table input,.equipment-table select{width:100%;min-width:70px}.equipment-table th:first-child{width:250px}.equipment-table th:nth-child(4){width:220px}.equipment-table th:nth-child(7){width:220px}.equipment-rate-hint{display:block;font-size:10px;color:#6a7e72;margin:5px 0}.equipment-reset{padding:3px 6px;font-size:10px}.equipment-amount{font-weight:600;white-space:nowrap}
.equipment-table input,.equipment-table select,.equipment-controls select{padding:8px 10px;min-height:34px;border:1px solid #d6e0dc;border-radius:5px;background:#fff;color:#274b3b}.equipment-controls label{display:flex;flex-direction:column;gap:7px}.workforce-heading .report-project-name{color:#176c57}
.baseline-actions{display:flex;flex-wrap:wrap;gap:8px}
.equipment-table .money-field,.price-admin-table .money-field{display:flex;align-items:center;position:relative;width:100%}.equipment-table .money-input,.price-admin-table .money-input{width:100%;min-width:120px;text-align:right;padding:10px 30px 10px 12px;font-size:14px;font-variant-numeric:tabular-nums;font-weight:600;border:1px solid #cedfd5;border-radius:7px;background:#fff;color:#234e3b;height:40px}.money-suffix{position:absolute;right:12px;font-size:12px;color:#80958a;pointer-events:none}.equipment-table .equipment-rate-cell{vertical-align:middle}.equipment-table .equipment-reset{border:0;background:transparent;color:#668475;font-size:11px;padding:5px 0 0;min-height:22px}.equipment-reset:hover{color:#176c57;text-decoration:underline}.equipment-table th:nth-child(4){width:210px}.equipment-rate-cell .money-field:only-child{margin-bottom:22px}
.price-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.price-admin-heading h1{font-size:29px;margin:10px 0}.price-admin-heading p{color:#738b7d}.price-admin-notice{padding:16px 20px;background:#eef6f1;border:1px solid #dceae1;border-radius:8px;color:#456c56;line-height:1.7;margin:22px 0}.price-admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}.price-admin-toolbar>div{display:flex;flex-wrap:wrap;gap:8px}.price-admin-table{min-width:1050px}.price-admin-table td{vertical-align:middle}.price-admin-table th:first-child{width:28%}.price-admin-table th:nth-child(2),.price-admin-table th:nth-child(3){width:21%}.price-admin-table input:not(.money-input){width:100%;padding:10px;border:1px solid #d8e3dc;border-radius:7px;background:#fff;min-height:40px}.price-source{white-space:pre-line;font-size:11px;color:#83988b;line-height:1.8}#price-admin-status{color:#176c57;min-height:22px;line-height:1.7}.price-remove{color:#947467}
@media(max-width:760px){.price-admin-heading,.price-admin-toolbar{align-items:flex-start;flex-direction:column}.detail-nav>div{flex-wrap:wrap}.price-admin-table{min-width:1000px}}
.section-export-actions{display:flex;gap:8px}
.english-label{display:block;font-size:.78em;font-weight:400;color:#8a9e92;line-height:1.5;margin-top:3px}.grid-head>span{white-space:pre-line;line-height:1.45;font-size:10px}.grid-row textarea.task-name-input{width:100%;min-width:0;height:40px;resize:none;overflow:auto;background:transparent;border:1px solid transparent;border-radius:3px;padding:2px 6px;line-height:17px;font-size:12px;color:#314c3d;white-space:pre-wrap}.grid-row textarea.task-name-input:hover,.grid-row textarea.task-name-input:focus{border-color:#c9ddd0;background:#fff}.summary-row textarea.task-name-input{font-weight:700}.task-dialog-name{white-space:pre-wrap;line-height:1.6;min-height:70px}.workforce-table td,.comparison-table td{white-space:pre-line}.report-date input,.chart-range input{width:130px}.report-groups-card button{white-space:pre-line}
.schedule-workforce{padding-left:0;padding-right:0}.schedule-workforce>.workforce-stats,.schedule-workforce>.chart-heading,.schedule-workforce>p{margin-left:24px;margin-right:24px}.schedule-workforce>.daily-chart{margin:0 24px}
@media screen{html{scrollbar-gutter:stable}html:has(dialog[open]){overflow:hidden}dialog{overscroll-behavior:contain}dialog[open]{outline:none}dialog form{overscroll-behavior:contain}}
#schedule-scroll::-webkit-scrollbar,#workforce-chart::-webkit-scrollbar{height:12px;width:12px}#schedule-scroll::-webkit-scrollbar-track,#workforce-chart::-webkit-scrollbar-track{background:#eff4f1}#schedule-scroll::-webkit-scrollbar-thumb,#workforce-chart::-webkit-scrollbar-thumb{background:#9ab6a5;border:3px solid #eff4f1;border-radius:8px}#schedule-scroll::-webkit-scrollbar-thumb:hover,#workforce-chart::-webkit-scrollbar-thumb:hover{background:#6e9980}

.date-picker-wrap{display:inline-flex;align-items:center;gap:2px;min-width:0;max-width:100%}
.date-picker-wrap>input:first-child{min-width:0;flex:1}
.date-picker-native{width:34px!important;min-width:34px!important;max-width:34px!important;flex:none!important;color:transparent!important;padding:5px!important;cursor:pointer}
.date-picker-native::-webkit-datetime-edit{display:none}
.date-picker-native::-webkit-calendar-picker-indicator{margin:0;cursor:pointer;width:20px;height:20px}
.cloud-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 20px;background:#edf5f1;border-bottom:1px solid #b6cfc1}
.cloud-toolbar [role=status]{flex:1;min-width:240px}
.cloud-error{color:#a42323}
.share-list{display:grid;gap:8px;margin:12px 0}.share-list>div{display:flex;gap:8px;align-items:center;justify-content:space-between}
#cloud-dialog{width:min(700px,95vw)}#cloud-dialog input,#cloud-dialog select{width:100%}
.shared-table{width:100%;border-collapse:collapse}.shared-table th,.shared-table td{padding:9px;border:1px solid #d8e2dc;text-align:left;white-space:pre-wrap}
.shared-gantt{overflow:auto}.shared-gantt-row{display:flex;min-height:42px}.shared-task-name{width:280px;flex-shrink:0;white-space:pre-wrap;padding:8px;border-bottom:1px solid #ddd}
.shared-gantt .timeline{pointer-events:none;flex-shrink:0}

.grid-head,.grid-row{grid-template-columns:42px 52px minmax(180px,1fr) 60px 148px 100px 95px 60px 90px}
.date-cell-wrapper .date-picker-wrap{flex:1;min-width:0}
.date-cell-wrapper.has-bound{gap:2px}
.date-cell-wrapper.has-bound input{padding-right:6px}
.date-cell-wrapper .bound-indicator{position:static;flex:none;margin-right:2px}

#project-auth-dialog{width:min(440px,calc(100vw - 32px))}
#project-auth-dialog input{width:100%}
#project-auth-dialog [role=status]{color:#a42323;min-height:1.5em}
@media(max-width:800px){.topbar{height:auto;min-height:76px;gap:10px;padding:12px 16px;flex-wrap:wrap}.header-right{gap:8px;flex-wrap:wrap}.cloud-toolbar{padding:10px 16px}}
@media print{.cloud-toolbar,#project-auth{display:none!important}}

/* Keep the project brand and account actions visible while scrolling. */
@media screen{.topbar{position:sticky;top:0;z-index:30;box-shadow:0 2px 10px #1634280d}}

/* Text dates open the native calendar directly; retain quick keyboard entry. */
.date-picker-wrap{position:relative}
.date-picker-native{position:absolute!important;width:1px!important;min-width:1px!important;max-width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;bottom:0;left:0}
.native-picker-fallback .date-picker-native{width:100%!important;max-width:none!important;height:100%!important;pointer-events:auto;inset:0}
#template-library-dialog{width:1100px;max-height:85vh;overflow:auto}
#template-cards{margin-top:16px}#template-cards .project-card{min-width:0}
#template-save-dialog select{display:block;width:100%;padding:9px;margin-top:7px;border:1px solid var(--border);border-radius:5px;background:white}

.account-settings-group{padding:16px 0;border-bottom:1px solid var(--border)}.account-settings-group h3{font-size:14px;margin:0 0 12px}.account-settings-group button{width:100%;text-align:left;padding:12px}
.home-project-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.home-project-tabs button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}
.project-owner-label{display:block;background:#edf6f2;color:#245d49;border:1px solid #d3e6dc;padding:8px 12px;border-radius:6px;font-size:12px;overflow-wrap:anywhere}
#browse-search{display:block;max-width:420px;width:100%;margin-top:8px;padding:10px;border:1px solid var(--border);border-radius:6px}#browse-projects-panel{padding:16px 0}#readonly-content{padding:20px 0}
body[data-read-only=true] #project-save,body[data-read-only=true] [data-project-write]{display:none!important}

/* Thanh công cụ tiến độ ghim dưới header khi cuộn; chế độ toàn màn hình cho vùng tiến độ. */
@media screen{
  #schedule-workspace{overflow:clip}
  #schedule-workspace>.toolbar{position:sticky;top:var(--sticky-top,76px);z-index:20;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 4px 8px -6px #16342833}
  #schedule-workspace:fullscreen,#schedule-workspace.is-maximized{overflow:auto;background:#fff;border:0;border-radius:0;box-shadow:none}
  #schedule-workspace.is-maximized{position:fixed;inset:0;z-index:60;margin:0}
  #schedule-workspace:fullscreen>.toolbar,#schedule-workspace.is-maximized>.toolbar{top:0}
  #schedule-workspace:fullscreen .schedule-scroll,#schedule-workspace.is-maximized .schedule-scroll{max-height:calc(100dvh - 190px);min-height:calc(100dvh - 190px)}
  #schedule-workspace:fullscreen::backdrop{background:#fff}
  #schedule-fullscreen[aria-pressed=true]{background:#176c57;border-color:#176c57;color:#fff}
}
.cloud-sync-banner{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 20px;background:#fff7e0;border-bottom:1px solid #ecd28f;color:#5b4610}
.cloud-sync-item{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.cloud-sync-banner button{padding:5px 10px}
@media print{.cloud-sync-banner{display:none!important}}

.action-menu{position:relative}.action-menu>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:white;border-radius:6px;padding:8px 12px;color:#314e3e;white-space:nowrap;user-select:none}.action-menu>summary::-webkit-details-marker{display:none}.action-menu>summary::after{content:'';width:6px;height:6px;border:solid #5d7667;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-2px);margin-left:2px}.action-menu[open]>summary{border-color:#9cc5b0;background:#f3f9f5}.action-menu-list{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:210px;display:flex;flex-direction:column;padding:6px;background:white;border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 30px #1b3a2b26}.action-menu-list button{border:0;background:none;text-align:left;padding:9px 12px;border-radius:5px;white-space:nowrap}.action-menu-list button:hover:not(:disabled){background:#eef6f1}.action-menu-list hr{border:0;border-top:1px solid var(--border);margin:5px 4px}.project-actions{align-items:center}
dialog .print-check{display:flex;align-items:center;gap:8px}dialog .print-check input{display:inline-block;width:auto;margin:0}
