/* Transtakto 2.2 — consistent navigation and operational emphasis. */
html body.tt-ui :is(.ez-mobile-logo,.driver-logo,.ez-security-brand,.brand-logo,.ws-logo){border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
html body.tt-ui :is(.ez-mobile-logo,.driver-logo,.ez-security-brand,.brand-logo,.ws-logo) img{display:block;background:transparent!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;object-fit:contain}
html body#tt-access-screen .tt-entry-back{display:flex;justify-content:center;margin:18px 0 0}
html body#tt-access-screen .tt-home-link{display:inline-flex;align-items:center;gap:10px;padding:11px 16px;border:1px solid #475277;border-radius:10px;background:#181c2c;color:#deddef;font-size:13px;font-weight:600;text-decoration:none;transition:background .18s,border-color .18s}
html body#tt-access-screen .tt-home-link:hover{background:#232941;border-color:#8a96bb;color:#fff}
html body#tt-access-screen .tt-home-link>span{color:#a2a0e1;font-size:19px;line-height:1}
@media screen{
 html:has(body>.card>.admin-login),html body.tt-ui:has(>.card>.admin-login){background:radial-gradient(ellipse at 12% 0%,#2d2a9235,transparent 54%),#10121d!important;color:#f5f5fc!important;color-scheme:dark;min-height:100vh}
}
/* Shared navigation sets geometry in both pointer states, including nested footer menus. */
@media(min-width:981px){
 html body.tt-ui .ws-sidebar .ws-nav-section-title{display:block!important;visibility:visible!important;opacity:1!important;width:auto!important;max-width:none!important;overflow:visible!important;padding:0 12px 12px!important;margin:0!important}
 html body.tt-ui .ws-sidebar .ws-menu-footer .ws-menu>a{justify-content:flex-start!important;gap:11px!important;padding:10px 11px!important;transform:none!important}
 html body.tt-ui .ws-sidebar .ws-menu>a,html body.tt-ui .ws-sidebar:hover .ws-menu>a{transform:none!important}
 html body.tt-ui #tt-manager-sidebar .nav-section-title{visibility:visible!important;opacity:1!important}
}
/* Service campaigns are actions that need attention, distinct from general navigation. */
html body.tt-ui .ws-actions .ws-btn.ws-action-alert{background:#2d2a92!important;color:#fff!important;border:1px solid #2d2a92!important;box-shadow:0 4px 14px #2d2a921c!important}
html body.tt-ui .ws-actions .ws-btn.ws-action-alert::before{content:"";display:block;width:7px;height:7px;flex:0 0 7px;background:#b4d632;border-radius:50%;margin-right:3px}
html body.tt-ui .ws-actions .ws-btn.ws-action-alert:hover{background:#22206f!important;border-color:#22206f!important}
html body.tt-ui .ws-sidebar .ws-menu>a.ws-action-alert{background:#2d2a9240!important;color:#efeefb!important;border-color:#4542a1!important}
html body.tt-ui .ws-sidebar .ws-menu>a.ws-action-alert .ws-icon{color:#b4d632!important}
html body.tt-ui .ws-sidebar .ws-menu>a.ws-action-alert:hover,html body.tt-ui .ws-sidebar .ws-menu>a.ws-action-alert.active{background:#2d2a92!important;color:#fff!important;border-color:#6763d3!important}
/* Solid brand progress works in WebKit, Gecko and native progress fallbacks. */
html body.tt-ui .em-progress{background:#e1e0f6!important}
html body.tt-ui .em-progress-fill{background:#2d2a92!important;background-image:none!important}
html body.tt-ui.em-page progress{accent-color:#2d2a92;appearance:none;-webkit-appearance:none;border:0;background:#e1e0f6;border-radius:99px;overflow:hidden}
html body.tt-ui.em-page progress::-webkit-progress-bar{background:#e1e0f6;border-radius:99px}
html body.tt-ui.em-page progress::-webkit-progress-value{background:#2d2a92;border-radius:99px}
html body.tt-ui.em-page progress::-moz-progress-bar{background:#2d2a92;border-radius:99px}
/* Layout responds to the actual user-list width, not the window width. */
#usersPermissionsList{container-type:inline-size;container-name:tt-users;gap:14px}
#usersPermissionsList .user-permission-card{grid-template-columns:minmax(150px,.78fr) minmax(0,2.6fr) 160px;gap:20px;align-items:start;padding:20px}
#usersPermissionsList .user-identity{padding-top:8px;align-items:flex-start}
#usersPermissionsList .user-identity-name,#usersPermissionsList .user-identity-login{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
#usersPermissionsList .user-access-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#usersPermissionsList .access-summary-box{padding:12px;min-width:0}
#usersPermissionsList .access-summary-title{font-size:10px;line-height:1.5;letter-spacing:.035em;align-items:flex-start;overflow-wrap:normal;font-weight:650}
#usersPermissionsList .access-summary-dot{flex:0 0 7px;margin-top:4px}
#usersPermissionsList .access-chip{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
#usersPermissionsList .access-empty{color:#71788e;line-height:1.6;font-weight:500}
#usersPermissionsList .user-card-actions{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;grid-column:auto;width:160px;padding:0}
#usersPermissionsList .permission-action-btn{width:100%;min-height:40px;padding:10px;font-size:12px;font-weight:600;line-height:1.4;white-space:normal;box-shadow:none;border-radius:10px}
#usersPermissionsList .permission-action-btn.primary{background:#2d2a92}
#usersPermissionsList .permission-action-btn.primary:hover{background:#22206f}
#usersPermissionsList .permission-action-btn.delete{align-self:flex-end;width:40px;padding:0;font-size:18px}
@container tt-users (max-width:900px){
 #usersPermissionsList .user-permission-card{grid-template-columns:minmax(0,1fr) 160px;gap:16px}
 #usersPermissionsList .user-identity{grid-column:1;grid-row:1;padding:0}
 #usersPermissionsList .user-access-summary{grid-column:1;grid-row:2}
 #usersPermissionsList .user-card-actions{grid-column:2;grid-row:1 / span 2}
}
@container tt-users (max-width:580px){
 #usersPermissionsList .user-permission-card{grid-template-columns:minmax(0,1fr);padding:16px}
 #usersPermissionsList .user-identity,#usersPermissionsList .user-access-summary,#usersPermissionsList .user-card-actions{grid-column:1;grid-row:auto}
 #usersPermissionsList .user-card-actions{width:100%;padding-top:4px}
}
@container tt-users (max-width:350px){#usersPermissionsList .user-access-summary{grid-template-columns:1fr}}
@media(max-width:600px){html body#tt-access-screen .tt-entry-back{margin:16px 0 0}html body#tt-access-screen .tt-home-link{font-size:12px}}

/* V2.3: one entry layout for module, workshop and depot selection. */
@media screen{
 html body#tt-access-screen::before,html body#tt-access-screen::after{display:none!important;content:none!important}
 html body#tt-access-screen:has(.tt-entry-header){display:block!important;padding:40px 28px!important}
 html body#tt-access-screen:has(.tt-entry-header) :is(.shell,.landing-shell){width:min(1180px,100%)!important;min-height:0!important;height:auto!important;padding:0!important;margin:0 auto!important}
 html body#tt-access-screen .tt-entry-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#181c2cd9;border:1px solid #363f5c;border-radius:20px;box-shadow:0 16px 48px #03030a22;padding:24px 28px;margin:0 0 28px}
 html body#tt-access-screen .tt-entry-wordmark{display:flex;flex:0 0 auto;align-items:center;text-decoration:none}
 html body#tt-access-screen .tt-entry-wordmark img{display:block;width:200px;max-width:100%;height:auto}
 html body#tt-access-screen .tt-entry-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
 html body#tt-access-screen .tt-entry-controls>a{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;min-height:44px;border:1px solid #47527777;border-radius:999px;background:#ffffff06;color:#d6d5ed;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;white-space:nowrap}
 html body#tt-access-screen .tt-entry-controls>a:hover{background:#ffffff10;border-color:#828eb5;color:#fff}
 html body#tt-access-screen .tt-entry-controls .company-badge{display:inline-block;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px 15px;border:1px solid #b4d63238;border-radius:999px;font-size:13px;font-weight:700;line-height:1.5}
 html body#tt-access-screen .tt-choice-intro{margin:0 0 26px}
 html body#tt-access-screen .tt-choice-intro .eyebrow{color:#b4d632!important;margin:0 0 8px}
 html body#tt-access-screen .tt-choice-intro h1{color:#f5f5fc!important;margin:0;font-size:30px!important}
 html body#tt-access-screen .tt-choice-intro>p:last-child{margin:8px 0 0;color:#b0b7ce;font-size:14px;line-height:1.65}
 html body#tt-access-screen :is(.formcard,.login-form-side) .tt-entry-back{width:100%}
 html body#tt-access-screen :is(.formcard,.login-form-side) .tt-home-link{width:100%;justify-content:center;min-height:44px;background:transparent;border-color:#47527777}
 html body#tt-access-screen :is(.formcard,.login-form-side) .tt-home-link:hover{background:#232941}
}
/* White dialog surfaces and deliberate room above action buttons. */
html body.tt-ui.tt-ui .modal-content:has(>.modal-body){padding:0!important;background:#fff!important}
html body.tt-ui.tt-ui .modal-content>.modal-body{padding:24px!important;background:#fff!important}
html body.tt-ui.tt-ui .modal-content>.modal-header{background:#fff!important;padding:22px 24px!important;margin:0!important;gap:12px}
html body.tt-ui.tt-ui .modal-content>.modal-header:has(>.ez-security-brand){display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:12px 16px;align-items:center!important}
html body.tt-ui.tt-ui .modal-content>.modal-header .ez-security-brand{margin:0!important}
html body.tt-ui.tt-ui .modal-content>.modal-header .close{position:static!important;align-self:start;margin:0!important;padding:0 4px!important;line-height:1.2;width:auto;height:auto}
html body.tt-ui.tt-ui .modal-content>.modal-footer{background:#fff!important;padding:20px 24px!important;margin:0!important;gap:10px;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}
html body.tt-ui.tt-ui .modal-content>.modal-footer>*{margin:0!important}
/* Service action pages: coherent gutters, balanced cards and readable controls. */
html body.tt-ui.em-page.em-service-page .em-main{padding:28px 32px 48px!important}
html body.tt-ui.em-workshop.em-service-page:not(:has(>.ws-sidebar)) .em-main{max-width:1664px!important;margin:0 auto!important}
html body.tt-ui.em-page.em-service-page .em-card{padding:24px!important;margin-bottom:24px!important}
html body.tt-ui.em-page.em-service-page .em-heading{padding:24px 28px!important;align-items:center!important;gap:20px!important}
html body.tt-ui.em-page.em-service-page .em-heading .em-eyebrow{margin:0 0 8px!important}
html body.tt-ui.em-page.em-service-page .em-heading h1{margin:0!important}
html body.tt-ui.em-page.em-service-page .em-heading>.em-button{flex:0 0 auto}
html body.tt-ui.em-page.em-service-page .em-card h2{margin:0 0 20px!important}
html body.tt-ui.em-page.em-service-page .em-grid{gap:18px;align-items:end}
html body.tt-ui.em-page.em-service-page :is(.em-filter-card,.em-create-card) .em-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
html body.tt-ui.em-page.em-service-page label{margin:0!important;gap:8px}
html body.tt-ui.em-page.em-service-page .em-actions{margin-top:20px;gap:10px}
html body.tt-ui.em-page.em-service-page .em-campaign-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr));align-items:stretch;margin-bottom:24px;gap:20px}
html body.tt-ui.em-page.em-service-page .em-campaign-grid>.em-card{margin-bottom:0!important;padding:22px!important}
html body.tt-ui.em-page.em-service-page .em-campaign-grid .em-metric{margin:0 0 10px;line-height:1.2}
html body.tt-ui.em-page.em-service-page .em-campaign-grid .em-actions{margin-top:10px}
html body.tt-ui.em-page.em-service-page .em-service-table{min-width:800px}
html body.tt-ui.em-page.em-service-page .em-service-table :is(th,td){text-align:left!important;vertical-align:middle;padding:18px 20px!important}
html body.tt-ui.em-page.em-service-page .em-service-table th:nth-child(1){width:11%}
html body.tt-ui.em-page.em-service-page .em-service-table th:nth-child(2){width:14%}
html body.tt-ui.em-page.em-service-page .em-service-table th:nth-child(3){width:25%}
html body.tt-ui.em-page.em-service-page .em-service-editable th:nth-child(3){width:23%}
html body.tt-ui.em-page.em-service-page .em-service-editable th:nth-child(4){width:36%}
html body.tt-ui.em-page.em-service-page .em-service-editable th:nth-child(5){width:16%}
html body.tt-ui.em-page.em-service-page .em-service-table td:nth-child(1) strong{font-size:15px}
html body.tt-ui.em-page.em-service-page .em-service-table :is(select,textarea){max-width:none;text-align:left;text-align-last:auto;margin:0;line-height:1.5}
html body.tt-ui.em-page.em-service-page .em-service-table textarea{min-height:90px}
html body.tt-ui.em-page.em-service-page .em-service-table select{width:100%}
html body.tt-ui.em-page.em-service-page .em-service-table td:last-child>button{width:100%;min-height:44px;padding:11px 14px}
html body.tt-ui.em-page.em-service-page .em-service-table tbody tr{background:#fff}
html body.tt-ui.em-page.em-service-page .em-service-table tbody tr:hover{box-shadow:none}
@media(max-width:720px){
 html body.tt-ui.em-page.em-service-page .em-main{padding:20px 14px 30px!important}
 html body.tt-ui.em-page.em-service-page .em-card,html body.tt-ui.em-page.em-service-page .em-heading{padding:20px!important;margin-bottom:20px!important}
 html body.tt-ui.em-page.em-service-page .em-heading{align-items:stretch!important;flex-direction:column}
 html body.tt-ui.em-page.em-service-page .em-heading>.em-button{align-self:flex-start}
 html body.tt-ui.em-page.em-service-page :is(.em-filter-card,.em-create-card) .em-grid,html body.tt-ui.em-page.em-service-page .em-campaign-grid{grid-template-columns:minmax(0,1fr)}
 html body.tt-ui.em-page.em-service-page .em-actions>*{flex:1 1 auto}
 html body.tt-ui.em-page.em-service-page .em-table:has(>.em-service-table){border:0!important;overflow:visible}
 html body.tt-ui.em-page.em-service-page .em-service-table{display:block;min-width:0;table-layout:auto}
 html body.tt-ui.em-page.em-service-page .em-service-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html body.tt-ui.em-page.em-service-page .em-service-table tbody{display:grid;gap:16px}
 html body.tt-ui.em-page.em-service-page .em-service-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:16px;border:1px solid #dfe3f1;border-radius:14px;padding:18px}
 html body.tt-ui.em-page.em-service-page .em-service-table tbody td{display:block;min-width:0;padding:0!important;border:0!important}
 html body.tt-ui.em-page.em-service-page .em-service-table tbody td:nth-child(n+3){grid-column:1/-1}
 html body.tt-ui.em-page.em-service-page .em-service-table tbody td::before{content:attr(data-label);display:block;margin:0 0 8px;color:#68718a;font-size:10px;font-weight:650;letter-spacing:.05em;text-transform:uppercase}
 html body.tt-ui.em-page.em-service-page .em-service-table td:has(>button)::before{display:none}
 html body.tt-ui.em-page.em-service-page .em-service-table .em-status{margin-bottom:10px}
}
@media(max-width:600px){
 html body#tt-access-screen:has(.tt-entry-header){padding:20px 14px!important}
 html body#tt-access-screen .tt-entry-header{padding:20px;margin-bottom:24px;gap:18px}
 html body#tt-access-screen .tt-entry-wordmark img{width:165px}
 html body#tt-access-screen .tt-entry-controls{width:100%;justify-content:flex-start;margin:0;gap:8px}
 html body#tt-access-screen .tt-entry-controls .company-badge{max-width:100%}
 html body#tt-access-screen .tt-entry-controls>a{font-size:12px;padding:10px 13px}
 html body.tt-ui.tt-ui .modal-content>.modal-header,html body.tt-ui.tt-ui .modal-content>.modal-body,html body.tt-ui.tt-ui .modal-content>.modal-footer{padding:18px!important}
 html body.tt-ui.tt-ui .modal-content>.modal-header:has(>.ez-security-brand){grid-template-columns:40px minmax(0,1fr) auto!important;gap:10px}
 html body.tt-ui.tt-ui .modal-content>.modal-header .ez-security-brand,html body.tt-ui.tt-ui .modal-content>.modal-header .ez-security-brand img{width:40px;height:40px}
}
