*{box-sizing:border-box}body{margin:0;font-family:'Be Vietnam Pro',sans-serif;font-size:14px;color:#232323;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}[hidden]{display:none!important}a{color:#b7102b;text-decoration:none}h1,h2,h3,p{margin:0}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:16px}.appnav,.navtab,.navuser{display:flex}.navtab{align-items:center;text-decoration:none}.applogo{text-decoration:none}.page-order .workspace-main{padding:28px 26px;min-height:100vh}.masthead{display:flex}.page-order .brand h1{font-size:clamp(24px,2.35vw,36px);font-weight:800}.brand p{margin-top:4px;color:#77717a}.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.button,.text-button,.icon-button{border-radius:7px;min-height:40px;padding:9px 14px;background:#fff;color:#b7102b;border:1px solid #eed5da;font-weight:500}.button:hover,.text-button:hover{background:#fff2f4}.button.primary{background:#c8102e;color:#fff;border-color:#c8102e}.small-button{min-height:34px;padding:6px 10px;font-size:12px}.text-button{border:0;background:none}.icon-button{color:#68646b;border-color:#e6e2e5;font-size:12px}input,select,textarea{min-height:40px;padding:9px 11px;border:1px solid #e0dce2;border-radius:7px;background:#fff;color:#303038;max-width:100%}textarea{width:100%;resize:vertical;min-height:90px}input[type=checkbox]{min-height:auto;accent-color:#c8102e}input[type=month]{width:170px}.month-field{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#77717a}.small{font-size:12px}.muted{color:#7a7480}.notice{background:#f8f5fa;color:#62596a;border:1px solid #ebe5ef;border-radius:7px;padding:9px 13px;font-size:12px;margin-bottom:17px}.notice.error,.form-error{color:#a01026}.notice.error{background:#fff2f3;border-color:#f3c5cf}.notice a{text-decoration:underline}.overview{background:#ffffffd9;padding:17px 18px 12px;border:1px solid #e8e5e8;border-radius:10px;margin-bottom:17px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title h2{display:flex;align-items:center;gap:10px}.section-title .ui-icon{color:#c8102e}.icon-order{--icon:url('../recruitment/icons/trello.svg')}.icon-report{--icon:url('../recruitment/icons/bar-chart-2.svg')}.icon-calendar{--icon:url('../recruitment/icons/calendar.svg')}.table-scroll{overflow:auto;width:100%;border:1px solid #ebe7ec;border-radius:7px;max-height:65vh}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th{text-align:left;font-weight:500;background:#f6f5f7;white-space:nowrap;color:#625c67;position:sticky;top:0;z-index:2}th,td{padding:10px 13px;border-bottom:1px solid #eeebef}tr:last-child td{border-bottom:0}.report{min-width:650px}.report th:not(:first-child),.report td:not(:first-child){text-align:center}.report td{font-size:15px}.report .link-button{padding:5px 14px;border-radius:20px;background:#fff4e4;color:#a9640a;font-weight:600;text-decoration:none;font-size:13px;min-width:46px;border:1px solid #f6dfbe}.report .link-button:hover{background:#ffe9cc}.report td:first-child{font-weight:600}.reportNote,#reportNote{margin-top:8px;font-size:11px}.blue{color:#2865df}.amber{color:#b56908}.red{color:#c8102e}.green{color:#09803c}.team-tabs{display:flex;gap:6px;border-bottom:1px solid #e6e1e6;margin-bottom:18px}.team-tabs button{min-width:150px;padding:12px 25px;font-weight:600;border:0;border-bottom:3px solid transparent;background:#f7f6f8;border-radius:8px 8px 0 0;color:#6e6774}.team-tabs button[aria-selected=true]{background:#fcecef;border-bottom-color:#c8102e;color:#c8102e}.workbench{display:grid;grid-template-columns:225px minmax(0,1fr);gap:18px;align-items:start}.workbench.design{grid-template-columns:minmax(0,1fr)}.shoots{padding:14px 10px;border:1px solid #e9e4e9;border-radius:9px;background:#fff}.shoots h2{font-size:17px}.shoot-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 11px;background:#fff;border:0;border-bottom:1px solid #efedf0;width:100%;text-align:left;color:#53505d;min-height:62px}.shoot-choice strong{display:block;font-size:13px}.shoot-choice small{font-size:11px;display:block;margin-top:3px;color:#81788a}.shoot-choice.selected{background:#fdefF2;color:#c8102e;border-radius:7px;box-shadow:inset 3px 0 #c8102e}.count{font-size:12px;min-width:25px;padding:2px 5px;border-radius:6px;background:#f4f1f6;text-align:center;flex-shrink:0}.selected .count{background:#fbe1e8}.shoot-summary{border-top:1px solid #ede5ea;margin-top:16px;padding:16px 8px 3px}.shoot-summary p{font-size:12px;margin:8px 0}.shoot-summary .button{width:100%;margin-top:8px;font-size:12px}.progress-area{min-width:0}.board-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.board-toolbar h2{font-size:21px}.board-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.board-filters input{width:220px}.board-filters select{max-width:150px}.board-filters .button{font-size:12px}.board{display:grid;grid-template-columns:repeat(var(--lanes,4),minmax(var(--lane-min,225px),1fr));gap:var(--lane-gap,12px);overflow-x:auto;max-width:100%;height:clamp(410px,58vh,680px);padding-bottom:5px}.lane{border:1px solid var(--edge);background:var(--tint);border-radius:8px;display:flex;flex-direction:column;min-height:0;overflow:hidden;--accent:#7545dd;--tint:#f7f3ff;--edge:#e9dcff}.lane[data-lane=ready],.lane[data-lane=approve]{--accent:#b6700d;--tint:#fff9f1;--edge:#fae8cb}.lane[data-lane=shoot]{--accent:#c2410c;--tint:#fff6f1;--edge:#fbdcc9}.lane[data-lane=shot]{--accent:#0f766e;--tint:#f0fbfa;--edge:#cfeeea}.lane[data-lane=editing]{--accent:#2b68d6;--tint:#f2f7ff;--edge:#dceaff}.lane[data-lane=delivery]{--accent:#168844;--tint:#f0fbf5;--edge:#d7f1e2}.lane-heading{padding:13px 12px 10px;flex:0 0 auto;display:flex;align-items:center;gap:6px;color:var(--accent)}.lane-heading h3{font-size:15px;flex:1}.lane-heading .count{color:var(--accent);background:#ffffff90}.lane-body{padding:0 7px 8px;overflow-y:auto;min-height:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px}.task{background:#fff;border:1px solid var(--edge);border-radius:7px;padding:11px 10px;text-align:left;color:#303039;flex:0 0 auto;width:100%;transition:border-color .15s}.task:hover{border-color:var(--accent)}.task.slow{border-left:3px solid #c8102e}.task-top{display:flex;align-items:start;justify-content:space-between;gap:6px;margin-bottom:7px;font-size:10px;color:#868091}.task h4{font-size:13px;font-weight:700;margin:0 0 5px;line-height:1.5;overflow-wrap:anywhere}.task p{font-size:11px;color:#82798c;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:18px}.badge{display:inline-block;max-width:100%;font-size:10px;line-height:1.5;padding:3px 7px;border-radius:20px;background:#f3effa;color:#7242c9;overflow-wrap:anywhere}.badge.amber{background:#fff2dc;color:#a96908}.badge.green{background:#e9faef;color:#087c35}.badge.blue{background:#edf3ff;color:#2459c9}.badge.red{background:#fff0f2;color:#c8102e}.task .shoot-tag{margin-top:10px}.task-foot{display:flex;gap:6px;justify-content:space-between;align-items:center;margin-top:11px;font-size:11px;color:#716779}.person{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.task-foot time{white-space:nowrap}.empty{color:#9c94a4;font-size:12px;text-align:center;padding:40px 10px}.board-help{margin-top:9px;border-top:1px solid #ece7ee;padding-top:10px}.details-table{margin-top:27px;padding-top:20px;border-top:1px solid #e8e1e8}.order-table{min-width:1150px}.order-table td{vertical-align:top;font-size:12px}.order-table td:first-child{max-width:330px;min-width:230px}.row-title{border:0;background:none;padding:0;text-align:left;font:inherit;font-weight:600;color:#303039;cursor:pointer}.row-title:hover{color:#c8102e}.row-code{display:block;color:#968b9c;font-size:10px;margin-top:3px}.order-table a{text-decoration:underline}.order-table select{min-height:30px;padding:4px;font-size:11px}.link-button{background:none;border:0;color:#b7102b;text-decoration:underline;cursor:pointer;padding:0;font:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#setupDetails{margin-top:20px;padding:15px;background:#fff8eb;border:1px solid #f5dfb9;border-radius:8px;font-size:12px}#setupDetails li{margin:4px 0}.form-error{font-size:12px;margin:0;padding:0 22px 18px;white-space:pre-wrap}.form-error:empty{padding:0}dialog{width:min(940px,94vw);max-height:90vh;padding:0;border:1px solid #e8dfe7;border-radius:13px;box-shadow:0 25px 100px #30202a35;color:#2c2730}dialog::backdrop{background:#21151e66}.dialog-header{display:flex;justify-content:space-between;gap:15px;padding:20px 23px;border-bottom:1px solid #e9e2e8;position:sticky;top:0;background:#fff;z-index:4}.dialog-header h2{font-size:21px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#a195a0;margin-bottom:4px}#dialogBody{padding:20px 23px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px}.field.full{grid-column:1/-1}.field>span{font-weight:500}.field input,.field select{width:100%}.field select[multiple]{height:90px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:12px}.checkbox-label input{width:auto}.form-section{border-top:1px solid #ede5eb;margin-top:22px;padding-top:20px}.form-section h3{margin-bottom:12px}.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}.form-actions small{color:#837987}.script-editor .script-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;padding:14px;background:#faf8fb;border:1px solid #eee6ed;border-radius:8px}.script-row h4{grid-column:1/-1;margin:0;color:#6d566a;font-size:13px}.script-row .field:last-child{grid-column:1/-1}.script-editor summary{cursor:pointer;font-weight:600;padding:12px 0}.dialog-tabs{display:flex;gap:5px;border-bottom:1px solid #eadfe6;margin-bottom:16px}.dialog-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:10px 13px;color:#807380}.dialog-tabs button.active{color:#c8102e;border-bottom-color:#c8102e}.history{list-style:none;margin:0;padding:0}.history li{padding:12px 0;border-bottom:1px solid #eee5eb;font-size:12px}.history p{margin-top:4px;color:#887989}.assignment-list label{display:flex;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #eee8ed;font-size:13px}.assignment-list small{display:block;color:#88768a}.report-detail{font-size:12px;line-height:1.8}.report-detail table{min-width:540px}.notice-inline{font-size:12px;padding:12px;background:#fff8eb;border-radius:7px;color:#8b6631;margin-bottom:15px}.busy{opacity:.6;pointer-events:none}#personFilter{font-size:12px}.danger-text{color:#ad1232}
dialog{scroll-padding-top:110px;scroll-padding-bottom:60px}dialog :is(input,textarea,select){scroll-margin-top:110px}.script-row .field{grid-column:auto}.script-row .field:last-child{grid-column:1/-1}
@media(min-width:1700px){.board-filters input{width:260px}.task{padding:14px}.task h4{font-size:14px}.task p,.task-foot{font-size:12px}}
@media(min-width:1101px) and (max-width:1450px){.page-order{--sidebar-width:80px}.page-order .applogo .logo-crop{width:50px}.page-order .workspace-label,.page-order .nav-label,.page-order .navuser .who{display:none}.page-order .navtab{justify-content:center}.page-order .applogo{padding:0 0 20px}.workbench{grid-template-columns:190px minmax(0,1fr)}.board{grid-template-columns:repeat(var(--lanes,4),minmax(min(var(--lane-min,190px),190px),1fr))}.board-filters input{width:180px}.board-toolbar h2{font-size:19px}}
@media(max-width:1100px){.page-order{--sidebar-width:80px}.page-order .applogo .logo-crop{width:50px}.page-order .workspace-label,.page-order .nav-label,.page-order .navuser .who{display:none}.page-order .navtab{justify-content:center}.page-order .applogo{padding:0 0 20px}.workbench{grid-template-columns:190px minmax(0,1fr)}.page-order .workspace-main{padding:22px 18px}.masthead{align-items:flex-start!important;flex-wrap:wrap}.header-actions{margin-top:4px}.board{grid-template-columns:repeat(var(--lanes,4),210px)}}
@media(max-width:700px){.page-order{--sidebar-width:0px}.page-order .appnav{position:static;width:100%;height:auto;max-height:150px;flex-direction:row;flex-wrap:nowrap;align-items:center;padding:10px;gap:5px;overflow:auto;border-bottom:1px solid #eee}.page-order .applogo{padding:0 8px;flex:0 0 auto;width:auto}.page-order .appnav .nav-label{display:inline;font-size:11px}.page-order .navtab{min-height:38px;padding:8px;white-space:nowrap}.page-order .navuser,.page-order .sidebar-toggle{display:none}.page-order .workspace-main{padding:20px 14px}.brand p{font-size:12px}.page-order .brand h1{font-size:25px}.header-actions{width:100%;justify-content:space-between}.overview{padding:12px}.section-title{align-items:flex-start}.section-title h2{font-size:17px}.section-title .text-button{font-size:11px;padding:5px}.team-tabs button{min-width:0;flex:1}.workbench{grid-template-columns:minmax(0,1fr)}.shoots{padding:12px}#shootList{display:flex;gap:6px;overflow-x:auto}.shoot-choice{flex:0 0 135px;border:1px solid #eee5ed;border-radius:7px;min-height:67px}.shoot-choice .count{display:none}.shoot-summary{margin-top:9px;padding:10px 4px 0}.shoot-summary .button{width:auto;margin:0 4px 0 0}.shoot-summary p{display:inline-block;margin-right:12px}.board-toolbar{gap:10px}.board-filters{width:100%}.board-filters input{flex:1;min-width:150px}.board-filters select{max-width:125px}.board{height:490px;grid-template-columns:repeat(var(--lanes,4),230px)}.form-grid{grid-template-columns:minmax(0,1fr)}.script-editor .script-row{grid-template-columns:minmax(0,1fr)}.script-row .field{grid-column:1/-1}.dialog-header,#dialogBody{padding:16px}.dialog-header h2{font-size:18px}.details-table .section-title{flex-wrap:wrap}.details-table .section-title .button{font-size:11px}.task h4{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ===== Tối ưu đợt 1 (16/09/2026): khung chung + tab Media ===== */
.masthead{align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.team-tabs{display:flex;gap:4px;border:1px solid #e6e1e6;border-radius:9px;padding:3px;margin:0;background:#f7f6f8}
.team-tabs button{min-width:0;padding:8px 22px;font-size:13px;border-radius:7px;background:transparent;border:0;border-bottom:0;color:#6e6774}
.team-tabs button[aria-selected=true]{background:#fff;color:#c8102e;border-bottom:0;box-shadow:0 1px 3px #2c1a2418}
.kpi-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.kpi{display:flex;align-items:baseline;gap:8px;padding:8px 14px;border:1px solid #e8e5e8;border-radius:9px;background:#fff;color:#625c67;font-size:12px;font-weight:500;min-height:42px;text-align:left}
.kpi b{font-size:18px;font-weight:700;letter-spacing:-.3px;color:#2f2b33}
.kpi:hover{border-color:#d4c9d4}
.kpi[aria-pressed=true]{border-color:#c8102e;background:#fdeff2;color:#a51026;box-shadow:inset 0 0 0 1px #c8102e}
.kpi[data-tone=blue] b{color:#2865df}.kpi[data-tone=red] b{color:#c8102e}.kpi[data-tone=amber] b{color:#b56908}.kpi[data-tone=green] b{color:#09803c}
.kpi[disabled]{opacity:1;cursor:default}
.kpi-note{margin:-4px 0 12px}
.workbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.workbar-filters,.workbar-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.workbar-filters input[type=search]{width:230px}
.workbar-filters select{max-width:165px;font-size:12px}
.chip-toggle{border:1px solid #eed5da;background:#fff;color:#b7102b;border-radius:7px;min-height:40px;padding:9px 13px;font-weight:600;font-size:12px}
.chip-toggle[aria-pressed=true]{background:#c8102e;color:#fff;border-color:#c8102e}
.view-switch{display:flex;gap:3px;padding:3px;border:1px solid #e6e1e6;border-radius:9px;background:#f7f6f8}
.view-switch button{border:0;background:transparent;border-radius:7px;padding:8px 16px;font-size:12px;font-weight:600;color:#6e6774;min-height:34px}
.view-switch button[aria-selected=true]{background:#fff;color:#c8102e;box-shadow:0 1px 3px #2c1a2418}
.context-line{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;font-size:14px;margin-bottom:10px}
.context-line .muted{font-size:12px}
.shoots{position:relative}
.shoots-inner .section-title{padding-right:32px}
.rail-toggle{position:absolute;top:12px;right:8px;border:1px solid #e9e4e9;background:#fff;border-radius:6px;min-height:26px;padding:2px 8px;font-size:12px;color:#8b8293;line-height:1.4;z-index:1}
.rail-toggle:hover{background:#fdeff2;color:#c8102e}
.rail-label{display:none}
.workbench.rail{grid-template-columns:48px minmax(0,1fr)}
.workbench.rail .shoots-inner{display:none}
.workbench.rail .rail-toggle{right:auto;left:9px}
.workbench.rail .rail-label{display:block;writing-mode:vertical-rl;margin:46px auto 14px;font-size:12px;font-weight:600;color:#8b8293;letter-spacing:.6px}
.workbench.solo{grid-template-columns:minmax(0,1fr)}
.workbench.solo .shoots{display:none}
.board{height:calc(100vh - 330px);min-height:400px}
.task{cursor:grab}
.task.dragging{opacity:.35;cursor:grabbing}
.lane.drop{outline:2px dashed var(--accent);outline-offset:-3px}
.shoot-choice.drop{outline:2px dashed #c8102e;outline-offset:-3px;background:#fdeff2}
.task-foot{flex-wrap:wrap}
.task-links{display:flex;gap:5px;align-items:center;margin-left:auto}
.icon-link{display:inline-flex;align-items:center;justify-content:center;min-height:24px;min-width:24px;padding:0 5px;border:1px solid var(--edge);border-radius:6px;font-size:12px;background:#fff;color:#7a7484;text-decoration:none;line-height:1}
.icon-link:hover{border-color:var(--accent);color:var(--accent)}
.icon-link.on{color:#09803c;border-color:#bfe6cd;background:#f2fbf6}
.calendar-wrap{width:100%}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:5px;aspect-ratio:5/4;min-height:420px}
.cal-dow{font-size:11px;font-weight:600;color:#8b8293;text-align:center;padding:2px 0 4px;text-transform:uppercase;letter-spacing:.4px}
.calendar .cal-dow{grid-row:1;align-self:end}
.cal-day{border:1px solid #ece7ee;border-radius:8px;background:#fff;padding:6px 6px 5px;display:flex;flex-direction:column;gap:4px;align-items:stretch;text-align:left;min-height:0;overflow:hidden}
.cal-day:hover{border-color:#d9a7b3;background:#fffafb}
.cal-day.blank{background:#faf9fb;border-style:dashed;border-color:#efecf1;cursor:default}
.cal-day.today{border-color:#c8102e;box-shadow:inset 0 0 0 1px #c8102e}
.cal-num{font-size:12px;font-weight:700;color:#8b8293;flex:0 0 auto}
.cal-day.today .cal-num{color:#c8102e}
.cal-day.has .cal-num{color:#2f2b33}
.cal-list{display:flex;flex-direction:column;gap:4px;overflow:auto;min-height:0}
.cal-shoot{border:1px solid #f6dfbe;background:#fff8ee;border-radius:6px;padding:4px 6px;font-size:11px;line-height:1.45;color:#8a5a12;text-align:left;width:100%;display:block}
.cal-shoot:hover{background:#ffeed6;border-color:#e9bb77}
.cal-shoot b{display:block;font-size:11px;color:#6d4708}
.cal-shoot small{display:block;color:#9a7638;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-shoot .ready{color:#09803c;font-weight:600}
.cal-add{font-size:11px;color:#b9b2c0;align-self:flex-start}
.cal-day:hover .cal-add{color:#c8102e}
.quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 15px}
.quick-actions .button{font-weight:600}
.quick-actions .button[disabled]{background:#f5f3f6;color:#9b93a2;border-color:#e9e5ea}
.fact-line{display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:12px;color:#6b6472;margin-bottom:14px}
.fact-line span.sep{color:#cfc8d2}
.fact{background:#f7f5f8;border-radius:6px;padding:4px 9px}
.fact b{color:#2f2b33}
@media(max-width:1450px){.workbar-filters input[type=search]{width:180px}}
@media(max-width:1100px){.board{height:calc(100vh - 360px);min-height:380px}}
@media(max-width:700px){.masthead .team-tabs{order:-1;width:100%}.team-tabs button{flex:1}.workbar{gap:9px}.workbar-filters,.workbar-tools{width:100%}.workbar-filters input[type=search]{flex:1;min-width:140px;width:auto}.view-switch{width:100%}.view-switch button{flex:1}.board{height:520px;min-height:0}.calendar{aspect-ratio:auto;min-height:0;grid-auto-rows:minmax(64px,auto)}.cal-shoot small{white-space:normal}.workbench.rail{grid-template-columns:minmax(0,1fr)}.workbench.rail .shoots{display:none}}
.page-order .brand h1{font-size:clamp(20px,1.7vw,27px);line-height:1.25}
.page-order .brand p{font-size:12px;margin-top:2px}
.page-order .masthead{margin-bottom:14px}
.page-order .notice{margin-bottom:12px}
.shoots{padding:12px 9px}
.shoots h2{font-size:15px}
.shoots-inner .section-title{margin-bottom:8px;gap:6px}
.shoots-inner .section-title .small-button{padding:5px 8px}
.shoot-choice{min-height:54px;padding:10px 9px}
.board{height:auto}
.shoots{overflow-y:auto;overscroll-behavior:contain}
.calendar-wrap{display:flex;justify-content:center}
.calendar{min-height:0;width:auto;max-width:100%;margin:0 auto}
@media(max-width:700px){.calendar{aspect-ratio:auto;height:auto!important;width:100%;grid-auto-rows:minmax(64px,auto)}.shoots{max-height:none!important}}
.shoots-inner .section-title{display:block;padding-right:28px}
.shoots-inner .section-title .small-button{width:100%;margin-top:7px}
/* Lịch dùng hết chiều ngang, mỗi ô cao tối thiểu 92px để đọc được giờ, địa điểm, host và số kịch bản. */
.calendar{width:100%;max-width:100%;aspect-ratio:auto;overflow:auto;grid-auto-rows:minmax(92px,1fr);padding-right:2px}
.cal-add{opacity:0;transition:opacity .12s}
.cal-day:hover .cal-add,.cal-day:focus-within .cal-add{opacity:1}
.cal-shoot b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(hover:none){.cal-add{opacity:1}}
@media(max-width:700px){.calendar{height:auto!important;grid-auto-rows:minmax(72px,auto)}}
.icon-link.warn{color:#b56908;border-color:#f3ddba}
.icon-link.warn:hover{background:#fff6e8;border-color:#e2ab4f;color:#8c5106}
/* Xem nhanh kịch bản đọc từ Google Sheet */
.kb-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.kb-head h3{font-size:17px;line-height:1.35}
.kb-tools{display:flex;gap:8px;flex-wrap:wrap}
.kb-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px;margin:0 0 16px;padding:12px 13px;background:#faf8fb;border:1px solid #eee6ed;border-radius:9px}
.kb-facts dt{font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:#a195a0;margin-bottom:3px}
.kb-facts dd{margin:0;font-size:12px;color:#37323b;line-height:1.5}
.kb-list{list-style:none;counter-reset:kb;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.kb-phan{counter-increment:kb;border:1px solid #ece7ee;border-radius:9px;padding:12px 13px;background:#fff}
.kb-phan h4{font-size:13px;color:#c8102e;margin-bottom:9px;display:flex;align-items:center;gap:8px}
.kb-phan h4::before{content:counter(kb);flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#fdeff2;color:#c8102e;font-size:11px;font-weight:700;display:grid;place-items:center}
.kb-o+.kb-o{margin-top:10px}
.kb-o>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:#a195a0;margin-bottom:3px}
.kb-o p{font-size:13px;line-height:1.65;color:#2f2b33}
.kb-canh>p{color:#12615a}
.kb-note>p{color:#8a5a12}
.chi-canh-quay .kb-thoai,.chi-canh-quay .kb-note,.chi-canh-quay .kb-facts,.chi-canh-quay .kb-canh>span{display:none}
.chi-canh-quay .kb-phan:not(:has(.kb-canh)){display:none}
.chi-canh-quay .kb-canh>p{font-size:16px;line-height:1.6}
.chi-canh-quay .kb-phan h4{font-size:14px;margin-bottom:6px}
.kb-edit{margin-top:18px;border-top:1px solid #ede5eb;padding-top:12px}
.kb-edit summary{cursor:pointer;font-weight:600;font-size:13px;color:#7a7484;padding:4px 0}
/* Bảng order trong tháng — nhóm 2 tầng, sửa tại ô */
.grid-section{margin-top:26px;padding-top:20px;border-top:1px solid #e8e1e8}
.grid-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.grid-pick{display:flex;align-items:center;gap:6px;font-size:12px;color:#77717a;font-weight:500}
.grid-pick select{min-height:34px;padding:5px 8px;font-size:12px;max-width:170px}
.grid-scroll{max-height:none}
.grid{min-width:1500px;font-size:12px}
.grid th{font-size:10px;letter-spacing:.4px;white-space:nowrap}
.grid td{vertical-align:middle;padding:5px 8px}
.grid tbody tr:hover td{background:#fdfbfd}
.grid .o-ten{min-width:230px;max-width:300px}
.grid .row-title{font-size:12px}
.o-sua{min-height:30px;padding:4px 7px;font-size:12px;width:100%;border-color:#e3dde6;background:#fff}
.o-sua:hover:not(:disabled){border-color:#c9bed0}
.o-sua:focus{outline:2px solid #f0b9c5;outline-offset:-1px;border-color:#c8102e}
.o-sua:disabled{border-color:transparent;background:transparent;color:#5c5664;-webkit-appearance:none;appearance:none}
select.o-sua{min-width:120px}
.o-buoc{font-weight:600;color:#2459c9}
.o-dan{white-space:nowrap}
.o-dan input{width:150px;display:inline-block}
.o-dan a{margin-left:5px;text-decoration:none}
.o-rong{min-width:170px}
.grid-group td{background:#f6f4f7;padding:0;border-bottom:1px solid #e6e1e7}
.grid-group button{width:100%;text-align:left;border:0;background:none;padding:8px 12px;font-weight:700;font-size:12px;color:#413b47;display:flex;align-items:center;gap:8px}
.grid-group button:hover{background:#efeaf1}
.grid-group .mui{color:#a89fae;font-size:10px;width:10px}
.grid-group .count{margin-left:6px;font-weight:600}
.grid-group.bac1 td{background:#fdeff2;border-bottom-color:#f4d6de}
.grid-group.bac1 button{color:#a51026}
.grid-group.bac1 button:hover{background:#fbe4ea}
.grid-group.bac2 button{padding-left:30px;font-size:11px;color:#60596a}
@media(max-width:700px){.grid-tools{width:100%}.grid-pick{flex:1}.grid-pick select{max-width:none;flex:1}}
.grid .o-chu{max-width:210px}
.grid .o-chu span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}
.grid tbody tr:not(.grid-group) td{height:46px}
/* Cột quan trọng: Order date + Người dựng/Designer */
.grid th.cot-noi{background:#f2edf6;color:#4a4252}
.grid td.cot-noi{background:#faf7fc;box-shadow:inset 1px 0 #ece4f2,inset -1px 0 #ece4f2}
.grid tbody tr:hover td.cot-noi{background:#f6f1f9}
.grid td.cot-noi .o-sua{background:#fff}
/* Sáu màu nhóm; nhóm theo khâu thì trùng màu làn tương ứng trên kanban */
.grid-group.bac1.mau0 td{background:#fff3ec;border-bottom-color:#fbdcc9}.grid-group.bac1.mau0 button{color:#b8400b}.grid-group.bac1.mau0 button:hover{background:#ffe9dc}
.grid-group.bac1.mau1 td{background:#ecfaf8;border-bottom-color:#cfeeea}.grid-group.bac1.mau1 button{color:#0f766e}.grid-group.bac1.mau1 button:hover{background:#ddf4f1}
.grid-group.bac1.mau2 td{background:#eef4ff;border-bottom-color:#dceaff}.grid-group.bac1.mau2 button{color:#2153ad}.grid-group.bac1.mau2 button:hover{background:#e0ebff}
.grid-group.bac1.mau3 td{background:#ecfaf2;border-bottom-color:#d7f1e2}.grid-group.bac1.mau3 button{color:#12703a}.grid-group.bac1.mau3 button:hover{background:#dcf4e7}
.grid-group.bac1.mau4 td{background:#f4f0ff;border-bottom-color:#e9dcff}.grid-group.bac1.mau4 button{color:#6236c4}.grid-group.bac1.mau4 button:hover{background:#ebe3ff}
.grid-group.bac1.mau5 td{background:#fff7ea;border-bottom-color:#fae8cb}.grid-group.bac1.mau5 button{color:#96590a}.grid-group.bac1.mau5 button:hover{background:#ffefd6}
/* Tầng 2 lấy cùng gam nhưng nhạt hơn để vẫn thấy nó thuộc nhóm cha */
.grid-group.bac2.mau0 td{background:#fffaf7}.grid-group.bac2.mau1 td{background:#f7fdfc}.grid-group.bac2.mau2 td{background:#f8fbff}
.grid-group.bac2.mau3 td{background:#f7fdfa}.grid-group.bac2.mau4 td{background:#faf8ff}.grid-group.bac2.mau5 td{background:#fffcf6}
/* ===== Design: thẻ ảnh + lưới Thư viện ===== */
.anh{position:relative;width:100%;aspect-ratio:4/3;background:#f4f1f6;border-radius:6px;overflow:hidden;display:grid;place-items:center;flex:0 0 auto}
.anh img{width:100%;height:100%;object-fit:cover;display:block}
.anh-trong{font-size:10px;color:#a79eae;text-align:center;padding:0 8px;line-height:1.4}
.anh img~.anh-trong{display:none}
.task.the-anh{padding:8px;display:flex;flex-direction:column;gap:8px}
.the-anh .the-than{display:flex;flex-direction:column;gap:6px;min-width:0}
.the-anh h4{margin:0;font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.the-nhan{display:flex;flex-wrap:wrap;gap:4px}
.the-anh .task-foot{margin-top:2px}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;overflow-y:auto;align-content:start;padding:2px 4px 6px 2px}
.tv-o{border:1px solid #e9e4ea;border-radius:10px;background:#fff;padding:9px;display:flex;flex-direction:column;gap:9px;text-align:left;color:#303039;cursor:pointer;transition:border-color .15s,box-shadow .15s;height:max-content}
.tv-o:hover{border-color:#c8102e;box-shadow:0 6px 20px #2c1a2416}
.tv-o.slow{border-left:3px solid #c8102e}
.tv-o .anh.to{aspect-ratio:1/1}
.tv-tin{display:flex;flex-direction:column;gap:7px;min-width:0}
.tv-tin h4{margin:0;font-size:13px;font-weight:700;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tv-o .task-foot{margin-top:0;border-top:1px solid #f1edf3;padding-top:7px}
@media(max-width:700px){.gallery{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;height:auto!important}}
.o-dan{display:flex;align-items:center;gap:6px}
.o-anh{flex:0 0 auto;width:38px;height:38px;border-radius:5px;overflow:hidden;border:1px solid #e6e1e7;display:block}
.o-anh img{width:100%;height:100%;object-fit:cover;display:block}
.o-anh:hover{border-color:#c8102e}
/* Cột TÊN ORDER bên Design hay bị dán cả brief vào — kẹp lại cho hàng khỏi cao lênh khênh */
.grid .o-ten{max-width:340px}
.grid .o-ten .row-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;white-space:normal}
/* Tên order trong bảng: một dòng, quét cho nhanh; rê chuột xem chữ đầy đủ */
.grid .o-ten{max-width:300px;min-width:240px}
.grid .o-ten .row-title{display:block;-webkit-line-clamp:unset;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* Số ảnh cạnh số order — Design đo bằng ảnh, không phải bằng đầu việc */
.dem-anh{font-size:11px;font-weight:600;color:#7a7484;background:#f2eef4;border-radius:5px;padding:2px 7px;margin-left:6px;white-space:nowrap}
.lane-heading .dem-anh{margin-left:0;margin-right:2px;background:#ffffff90;color:var(--accent)}
.grid-group .dem-anh{background:#ffffff85}
.context-line .dem-anh,#gridCount .dem-anh{background:none;padding:0;margin-left:5px;font-weight:500}
.context-line .dem-anh::before,#gridCount .dem-anh::before{content:'· '}
.danger-button{color:#a01026;border-color:#f0c9d1}
.danger-button:hover{background:#fff1f3;border-color:#d4707f}
/* Ảnh giữ tỉ lệ nhưng có TRẦN chiều cao: làn rộng ra thì ảnh không phình theo,
   thẻ vẫn thấy được nhiều cái một lúc. object-fit:cover lo phần cắt. */
.anh{max-height:132px}
.tv-o .anh.to{aspect-ratio:4/3;max-height:155px}
@media(max-width:1100px){.anh{max-height:120px}}
@media(max-width:700px){.anh{max-height:104px}.tv-o .anh.to{max-height:120px}}
@media(max-width:700px){.tv-tin h4{-webkit-line-clamp:1}.tv-o{gap:7px;padding:7px}.the-anh h4{-webkit-line-clamp:1}}
