/* TD Operations / concept 03. Presentation only: existing controls and workflows retained. */
body.td-operations56{--navy:#12394d;--navy2:#0d2b3b;--blue:#147da9;--gold:#fbbb18;--ink:#183449;--text:#183449;--muted:#607386;--line:#dce4eb;--bg:#f3f5f7;--brand:#147da9;background:#f3f5f7!important;color:#183449;font-family:'Segoe UI',Arial,sans-serif!important;font-size:14px;line-height:1.5}
.td-operations56 :where(button,input,select,textarea){font-family:inherit}
.td-operations56 :where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #147da9!important;outline-offset:3px}
.td-operations56 :where(h1,h2,h3){font-weight:650;letter-spacing:-.025em;color:#12394d}
.td-operations56 :where(h1){font-size:28px;line-height:1.2}
.td-operations56 :where(h2){font-size:20px;line-height:1.3}
.td-operations56 .muted,.td-operations56 .cw-muted{color:#607386}
/* One consistent masthead, retaining the real TD artwork. */
body.td-ops-staff .topbar,body.td-ops-candidate #portal .topbar,body.td-ops-client>header{background:#12394d!important;color:#fff!important;border-bottom:3px solid #fbbb18!important;box-shadow:none!important;min-height:68px;gap:16px;padding:12px 24px}
.td-ops-staff .topbar .logo,.td-ops-candidate #portal .topbar .logo,.td-ops-client>header>img{content:url('TD_Recruitment_White.png');object-fit:contain;max-width:220px;width:200px;height:38px}
.td-operations56 .topbar .profile-chip,.td-operations56 .topbar .profile-chip .muted,.td-ops-client>header>span{color:#dceaf1!important}
.td-operations56 .topbar .profile-chip strong,.td-operations56 .topbar .profile-chip b{color:#fff!important}
.td-operations56 .topbar .btn,.td-operations56 .topbar button,.td-ops-client>header button{border:1px solid #7893a4!important;background:#183f54!important;color:#fff!important;border-radius:4px!important;box-shadow:none!important}
.td-operations56 .topbar input{background:#fff!important;border:1px solid #dce4eb!important;color:#183449!important;border-radius:4px!important}
.td-operations56 .topbar input::placeholder{color:#607386!important}
.td-operations56 #staffAvatar,.td-operations56 #headerAvatar{background-color:#147da9!important;color:#fff!important;border:1px solid #6c9fb6;border-radius:50%!important}
/* Compact, stable navigation. Existing role restrictions and mobile behaviour are untouched. */
body.td-ops-staff .sidebar,body.td-ops-client #cpApp>aside{background:#103247!important;box-shadow:none!important}
body.td-ops-staff .sidebar .nav,body.td-ops-client #cpNav button{border-radius:3px!important;color:#dce8f0!important;font-size:12px!important;min-height:42px!important;box-shadow:none!important}
body.td-ops-staff .sidebar .nav.active,body.td-ops-client #cpNav button.active{background:#17658a!important;color:#fff!important;border-left:3px solid #fbbb18!important;box-shadow:none!important}
body.td-ops-staff .sidebar .nav:hover,body.td-ops-client #cpNav button:hover{background:#204b63!important;color:#fff!important}
.td-ops-staff .td-nav-group summary{color:#c8dbe7;border-radius:3px;font-size:12px}
.td-ops-staff .td-nav-group.has-active>summary{color:#fff}
.td-ops-staff .td-design-brand,.td-ops-client .cw-sidebar-brand{border-bottom:1px solid #355367;padding-bottom:18px}
.td-ops-staff .td-design-brand strong,.td-ops-client .cw-sidebar-brand strong{font-size:17px;color:#fff}
.td-ops-staff .td-design-brand span,.td-ops-client .cw-sidebar-brand span{color:#9cc8dc}
/* Working canvas: fine borders, restrained corners and clear density. */
body.td-ops-staff .main{background:#f3f5f7!important;padding:24px 28px}
body.td-ops-client #cpApp>.content{background:#f3f5f7!important;padding:26px 30px;max-width:none}
.td-ops-staff .page-head,.td-ops-staff .crm-page-heading,.td-ops-client #cpApp .page-head{margin:0 0 22px;gap:14px;align-items:center}
.td-ops-staff .page-head h1,.td-ops-client #cpPageTitle{font-size:28px!important;letter-spacing:-.035em!important;margin:0 0 5px!important}
.td-operations56 .panel,.td-operations56 .pro-card,.td-operations56 .cw-panel,.td-operations56 .cw-stats>div,.td-operations56 .card{background:#fff;border:1px solid #dce4eb;border-radius:5px!important;box-shadow:none!important}
.td-operations56 .panel-pad,.td-operations56 .pro-card{padding:20px}
.td-operations56 .pro-card-head,.td-operations56 .cw-section-head{padding-bottom:14px;border-bottom:1px solid #e5ebf0}
.td-operations56 .btn,.td-ops-client #cpApp button{border-radius:4px!important;box-shadow:none!important;font-weight:600;min-height:38px}
.td-operations56 .btn.primary,.td-ops-client #cpApp button.primary{background:#147da9!important;color:#fff!important;border-color:#147da9!important}
.td-operations56 .btn.primary:hover,.td-ops-client #cpApp button.primary:hover{background:#10688d!important;border-color:#10688d!important}
.td-operations56 .btn.soft,.td-operations56 .btn.outline{background:#fff!important;border:1px solid #ccd9e3!important;color:#17445f!important}
.td-operations56 .btn.danger,.td-operations56 button.danger{background:#fff1f1!important;color:#a92727!important;border:1px solid #edb9b9!important}
.td-operations56 input:not([type=checkbox]):not([type=radio]),.td-operations56 select,.td-operations56 textarea{border-radius:4px!important;border-color:#cbd8e2;background-color:#fff;color:#183449;box-shadow:none}
.td-operations56 .field>label,.td-operations56 label.field{font-size:12px;font-weight:600;color:#40586b}
.td-operations56 .pill,.td-operations56 .cw-pill{border-radius:4px!important;font-size:11px;line-height:1.5;padding:3px 7px;font-weight:600;white-space:nowrap}
/* Preserve semantic status colours, document-expiry animations and verification controls. */
.td-operations56 .p-green{background:#e5f5ed;color:#176a49}
.td-operations56 .p-red{background:#ffebeb;color:#a42828}
.td-operations56 .p-gold{background:#fff3d4;color:#7b570b}
.td-operations56 .p-blue{background:#e7f2fa;color:#11658d}
/* Real tables, subtle zebra rows and a distinct selected/hover state. */
.td-operations56 .tablewrap,.td-operations56 .table-wrap{border:1px solid #dce4eb!important;border-radius:4px!important;background:#fff;box-shadow:none!important}
.td-operations56 table{border-collapse:collapse;border-spacing:0;font-size:13px}
.td-operations56 table thead th{background:#f1f5f8!important;color:#345064!important;border-bottom:1px solid #cfdce6!important;font-size:11px!important;font-weight:650!important;letter-spacing:.035em;padding:12px;text-align:left;line-height:1.4}
.td-operations56 table tbody td{border-bottom:1px solid #e5ebf0!important;vertical-align:middle;color:#244156;line-height:1.5}
.td-operations56 table tbody tr:nth-child(even)>td{background-color:#f8fafc}
.td-operations56 table tbody tr:hover>td{background-color:#edf5fb!important}
.td-operations56 .td-table-controls{padding:12px 0;gap:12px;font-size:12px;color:#607386}
.td-operations56 .td-table-controls button,.td-operations56 .td-table-controls select{border-radius:4px!important}
/* Staff dashboard and record views. No metric or action is removed. */
body.td-ops-staff .command-hero{background:#fff!important;color:#183449!important;border:1px solid #dce4eb!important;border-top:3px solid #147da9!important;border-bottom:1px solid #dce4eb!important;border-radius:5px!important;padding:22px!important;box-shadow:none!important}
body.td-ops-staff .command-hero h1{color:#12394d!important;font-size:28px!important}
body.td-ops-staff .command-hero .section-kicker,body.td-ops-staff .command-hero .muted,body.td-ops-staff .command-hero p{color:#607386!important}
/* White Operations header: override seasonal colours on the actual text nodes. */
body.td-ops-staff #dashboard .command-hero .command-eyebrow{color:#27617c!important}
body.td-ops-staff #dashboard .command-hero #staffGreetingSub{color:#425b6e!important}
body.td-ops-staff #dashboard .command-hero #staffLocalDate{color:#526778!important}
body.td-ops-staff #dashboard .command-hero .command-btn-light{background:#edf3f7!important;color:#183f55!important;border:1px solid #c9d7e1!important}
body.td-ops-staff #dashboard .command-hero .command-btn-gold{background:#fbbb18!important;color:#12394d!important;border:1px solid #d9a00d!important}
body.td-ops-staff .command-hero .command-hero-actions .btn.primary{background:#fbbb18!important;color:#12394d!important;border-color:#e7a90a!important}
.td-ops-staff .command-metrics{gap:12px}
.td-ops-staff .command-metric{border:1px solid #dce4eb!important;border-radius:4px!important;background:#fff!important;box-shadow:none!important;min-height:92px}
.td-ops-staff .command-metric strong{color:#12394d;font-size:27px}
.td-ops-staff .command-metric:hover{border-color:#8bb6cc!important}
.td-ops-staff .history-card,.td-ops-staff .call-log-card{border:1px solid #dce4eb;border-radius:4px!important;box-shadow:none!important}
.td-ops-staff .modal-card,.td-ops-client .modal-card,.td-ops-candidate .modal-card{border-radius:7px!important;border:1px solid #cbd8e2;box-shadow:0 16px 48px #0d2b3b26}
.td-ops-staff #candidateProfileModal .modal-head{border-bottom:1px solid #dce4eb;padding-bottom:16px}
.td-ops-staff #profileHero .profile-hero{background:#f7fafc!important;border:1px solid #dce4eb!important;border-radius:4px!important;box-shadow:none!important}
.td-ops-staff #profileTabs{border-bottom:1px solid #dce4eb;gap:3px}
.td-ops-staff .profile-tab{border-radius:0!important;background:transparent!important;color:#536e80!important;border-bottom:2px solid transparent!important}
.td-ops-staff .profile-tab.active{color:#116b95!important;border-bottom-color:#147da9!important}
.td-ops-staff .c360-mini,.td-ops-staff .td-start-panel{border:1px solid #dce4eb;border-radius:4px!important;box-shadow:none!important}
/* Client operations: retain all company branding, sites, requests and worker actions. */
body.td-ops-client #cpApp{grid-template-columns:224px minmax(0,1fr)}
.td-ops-client .cw-toolbar{border-radius:4px!important;padding:14px 16px;background:#fff;border:1px solid #dce4eb}
.td-ops-client .cw-welcome{background:#12394d!important;border-radius:5px!important;border-bottom:3px solid #fbbb18!important;box-shadow:none!important;padding:24px!important}
.td-ops-client .cw-welcome h1,.td-ops-client .cw-welcome h2,.td-ops-client .cw-welcome h3{color:#fff!important}
.td-ops-client .cw-welcome p{color:#dbe9f2!important}
.td-ops-client .cw-stats{gap:12px}
.td-ops-client .cw-worker-list{border:1px solid #dce4eb;border-radius:4px;background:#fff}
.td-ops-client .cw-worker{border-radius:0!important;box-shadow:none!important;border:0!important;border-bottom:1px solid #e5ebf0!important;padding:15px 18px!important;margin:0!important;background:#fff}
.td-ops-client .cw-worker:nth-child(even){background:#f8fafc}
.td-ops-client .cw-booking-grid{grid-template-columns:minmax(0,1fr)!important;gap:0;border:1px solid #dce4eb;border-radius:4px;background:#fff}
.td-ops-client .cw-booking{border:0!important;border-bottom:1px solid #e5ebf0!important;border-radius:0!important;box-shadow:none!important;padding:18px!important}
.td-ops-client .cw-avatar{border-radius:50%!important}
.td-ops-client .cw-progress{height:5px;border-radius:2px}
/* Candidate: a calm, mobile-first work agenda using existing pages. */
body.td-ops-candidate #portal .candidate-shell{padding:24px;max-width:1600px}
.td-ops-candidate .tdc-workspace{gap:22px;grid-template-columns:212px minmax(0,1fr)}
.td-ops-candidate .tdc-sidebar{background:#103247!important;border:1px solid #103247!important;border-radius:4px!important;box-shadow:none!important}
.td-ops-candidate .tdc-nav-brand strong,.td-ops-candidate .tdc-nav-help strong{color:#fff!important}
.td-ops-candidate .tdc-nav-brand>span,.td-ops-candidate .tdc-nav-help>span,.td-ops-candidate .tdc-nav-help p{color:#b9d2e1!important}
.td-ops-candidate .tdc-sidebar .tab{color:#dce8f0!important;background:transparent!important;border-radius:3px!important;border:0!important;min-height:42px}
.td-ops-candidate .tdc-sidebar .tab.active{color:#fff!important;background:#17658a!important;box-shadow:inset 3px 0 #fbbb18!important}
.td-ops-candidate .tdc-nav-help{border-top:1px solid #355367}
.td-ops-candidate .tdc-nav-help button{background:#fff;color:#12394d;border-radius:4px}
.td-ops-candidate .tdc-page-heading{border-bottom:1px solid #dce4eb;padding-bottom:18px;margin-bottom:20px}
.td-ops-candidate #portal .hero{background:#12394d!important;border-radius:5px!important;border-bottom:3px solid #fbbb18!important;box-shadow:none!important;padding:24px!important}
.td-ops-candidate #portal .hero h1,.td-ops-candidate #portal .hero h2{color:#fff!important}
.td-ops-candidate #portal .mytd-placement-card{background:#fff!important;border:1px solid #dce4eb!important;border-left:3px solid #147da9!important;border-radius:4px!important;box-shadow:none!important}
.td-ops-candidate #portal .summary{gap:10px}
.td-ops-candidate #portal .summary .panel{border-radius:4px!important}
.td-ops-candidate #portal .tabs .tab{border-radius:4px!important}
/* Retain Halloween features in a more compact presentation, including controls and countdown. */
.td-operations56 .tdr-halloween-banner{border-radius:5px!important;box-shadow:none!important;margin-bottom:22px!important;min-height:0!important;padding:20px!important}
.td-operations56 .tdr-halloween-banner .hw-copy strong{font-size:20px!important;line-height:1.3!important}
.td-operations56 .tdr-halloween-banner .hw-copy span{font-size:12px!important}
.td-operations56 .tdr-halloween-banner .hw-effects-controls button{border-radius:4px!important;min-height:36px}
@media(min-width:901px){
 .td-operations56 .td-design-table:not(.td51-compliance-table) tbody td{padding:11px 12px!important}
 .td-ops-staff .sidebar{width:224px!important;flex-basis:224px!important}
 .td-ops-staff .layout{grid-template-columns:224px minmax(0,1fr)!important}
}
@media(max-width:1100px) and (min-width:761px){
 body.td-ops-staff .main,body.td-ops-client #cpApp>.content{padding:22px 18px}
 body.td-ops-client #cpApp{grid-template-columns:200px minmax(0,1fr)}
 .td-ops-candidate .tdc-workspace{grid-template-columns:186px minmax(0,1fr);gap:16px}
}
@media(max-width:760px){
 body.td-ops-staff .topbar,body.td-ops-candidate #portal .topbar,body.td-ops-client>header{padding:10px 12px;gap:8px;min-height:64px}
 .td-ops-staff .topbar .logo,.td-ops-candidate #portal .topbar .logo,.td-ops-client>header>img{max-width:40vw;width:160px;height:32px}
 body.td-ops-staff .main,body.td-ops-client #cpApp>.content,body.td-ops-candidate #portal .candidate-shell{padding:16px 10px 30px}
 body.td-ops-client #cpApp{grid-template-columns:minmax(0,1fr)}
 .td-ops-candidate .tdc-workspace{grid-template-columns:minmax(0,1fr);gap:14px}
 .td-operations56 .btn,.td-ops-client #cpApp button,.td-operations56 .td-table-controls button,.td-operations56 .td-table-controls select{min-height:44px}
 .td-operations56 input:not([type=checkbox]):not([type=radio]),.td-operations56 select,.td-operations56 textarea{font-size:16px}
 .td-operations56 .page-head{flex-wrap:wrap;gap:12px}
 .td-operations56 .panel-pad,.td-operations56 .pro-card{padding:15px}
 .td-operations56 .tdr-halloween-banner{padding:15px!important;margin-bottom:16px!important}
 .td-operations56 .tdr-halloween-banner .hw-copy strong{font-size:17px!important}
 .td-ops-staff .command-hero{padding:17px!important}
 .td-ops-staff .command-hero h1,.td-ops-staff .page-head h1,.td-ops-client #cpPageTitle{font-size:24px!important}
 .td-ops-candidate #portal .hero{padding:20px!important}
 .td-ops-client .cw-worker{padding:14px!important}
}
/* Match the existing tablet navigation switch and fixed candidate phone dock. */
@media(max-width:850px){body.td-ops-client #cpApp{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){body.td-ops-candidate #portal .candidate-shell{padding-bottom:calc(100px + env(safe-area-inset-bottom))}}
/* Sign-in screens share the same restrained Operations identity. */
.td-operations56 .login-screen{background:#edf2f5!important}
.td-operations56 .login-card,.td-ops-client .auth-card{background:#fff!important;border:1px solid #d2dfe8!important;border-top:4px solid #147da9!important;border-radius:6px!important;box-shadow:0 12px 35px #12394d0d!important}
.td-operations56 .login-card h1{font-size:26px;color:#12394d}
.td-ops-client .intro{background:#12394d!important;border-radius:6px!important;border-left:4px solid #fbbb18}
.td-ops-client .intro h1{color:#fff!important}
.td-ops-candidate .tdc-mobile-dock{box-shadow:none;border-top:1px solid #cbd8e2;background:#fff}
.td-ops-candidate .tdc-mobile-dock button{border-radius:4px;min-height:48px}
.td-ops-candidate .tdc-mobile-dock button.active{background:#fff3d4;color:#12394d}
body.td-ops-staff .main #compliance .td51-compliance-table :is(th,td):nth-child(1){width:22%!important}
body.td-ops-staff .main #compliance .td51-compliance-table :is(th,td):nth-child(2){width:23%!important}
body.td-ops-staff .main #compliance .td51-compliance-table :is(th,td):nth-child(5){width:11%!important;overflow-wrap:normal!important}
body.td-ops-staff .main #compliance .td51-compliance-table :is(th,td):nth-child(6){width:15%!important}
@media(min-width:1200px){
 .td-ops-staff #candidateProfileModal{align-items:stretch;justify-content:flex-end;padding:0}
 .td-ops-staff #candidateProfileModal>.modal-card{width:min(980px,calc(100vw - 180px))!important;max-height:100dvh;height:100dvh;border-radius:0!important;margin:0;border:0;border-left:1px solid #cbd8e2;overflow-y:auto}
}
