
/* Harmonisierung der weiteren Verwaltungsbereiche ohne Eingriff in deren Funktionen. */
body:has(#page[data-flow-view]:not([data-flow-view=""])) .top h1 {color:#193929;font-size:clamp(23px,2.25vw,30px);font-weight:780;letter-spacing:-.045em;}
#page[data-flow-view="users"] > .panel,
#page[data-flow-view="team"] > .panel,
#page[data-flow-view="tenants"] > .panel,
#page[data-flow-view="audit"] > .panel,
#page[data-flow-view="globalaudit"] > .panel,
#page[data-flow-view="licenseorders"] > .panel,
#page[data-flow-view="licensebilling"] > .panel,
#page[data-flow-view="tickettime"] > .panel,
#page[data-flow-view="ticketbilling"] > .panel,
#page[data-flow-view="ticketsettings"] > .panel,
#page[data-flow-view="profile"] > .panel,
#page[data-flow-view="password"] > .panel {
  border:1px solid var(--flow-line);
  background:#fff;
  box-shadow:0 5px 22px #16412408;
  border-radius:17px;
  padding:24px 26px;
}
#page[data-flow-view="users"] > .panel > h2,
#page[data-flow-view="team"] > .panel > h2,
#page[data-flow-view="tenants"] > .panel > h2,
#page[data-flow-view="ticketbilling"] > .panel > h2,
#page[data-flow-view="tickettime"] > .panel > h2,
#page[data-flow-view="licensebilling"] > .panel > h2 {
  font-weight:760;
  letter-spacing:-.035em;
  color:#1f402c;
  font-size:20px;
  margin:3px 0 10px;
}
#page[data-flow-view="team"] > .panel > p.muted {font-size:12.5px;color:#809287;}
#page[data-flow-view="users"] > .panel input,
#page[data-flow-view="tenants"] > .panel input,
#page[data-flow-view="team"] > .panel select,
#page[data-flow-view="audit"] > .panel input,
#page[data-flow-view="globalaudit"] > .panel input,
#page[data-flow-view="licenseorders"] > .panel select,
#page[data-flow-view="licensebilling"] > .panel select,
#page[data-flow-view="tickettime"] > .panel select,
#page[data-flow-view="ticketbilling"] > .panel select {
  border-radius:10px;border-color:#dce8df;
  font-size:12.5px;min-height:39px;background:#fff;color:#335943;
}
#page[data-flow-view="users"] > .panel button.primary,
#page[data-flow-view="tenants"] > .panel button.primary,
#page[data-flow-view="licenseorders"] > .panel button.primary,
#page[data-flow-view="licensebilling"] > .panel button.primary {
  border-radius:10px;background:#248744;color:#fff;font-size:12.5px;padding:11px 16px;width:auto;
}
#page[data-flow-view="users"] > .panel table,
#page[data-flow-view="team"] > .panel table,
#page[data-flow-view="tenants"] > .panel table,
#page[data-flow-view="audit"] > .panel table,
#page[data-flow-view="globalaudit"] > .panel table,
#page[data-flow-view="licenseorders"] > .panel table,
#page[data-flow-view="licensebilling"] > .panel table {
  border:1px solid #e8eee9;
  border-collapse:separate;border-spacing:0;border-radius:11px;
  overflow:hidden;
}
#page[data-flow-view="users"] > .panel table th,
#page[data-flow-view="team"] > .panel table th,
#page[data-flow-view="tenants"] > .panel table th,
#page[data-flow-view="audit"] > .panel table th,
#page[data-flow-view="globalaudit"] > .panel table th,
#page[data-flow-view="licenseorders"] > .panel table th,
#page[data-flow-view="licensebilling"] > .panel table th {
  background:#f7faf8;color:#778b7d;letter-spacing:.06em;font-size:10px;font-weight:760;
  padding:14px 13px;white-space:nowrap;
}
#page[data-flow-view="users"] > .panel table td,
#page[data-flow-view="team"] > .panel table td,
#page[data-flow-view="tenants"] > .panel table td,
#page[data-flow-view="audit"] > .panel table td,
#page[data-flow-view="globalaudit"] > .panel table td,
#page[data-flow-view="licenseorders"] > .panel table td,
#page[data-flow-view="licensebilling"] > .panel table td {
  padding:13px;border-bottom-color:#edf2ed;font-size:12px;line-height:1.5;color:#4b6353;
}
#page[data-flow-view="team"] [data-team-user]:hover td {background:#f1f8f2;}
#page[data-flow-view="users"] > .panel table button.secondary,
#page[data-flow-view="tenants"] > .panel table button.secondary {
  width:auto;background:#eaf5ec;color:#287642;border-radius:8px;padding:8px 11px;font-size:11px;white-space:nowrap;
}
#page[data-flow-view="ticketsettings"] .tk-settings-tabs button,
#page[data-flow-view="ticketsettings"] .tk-settings-tabs .secondary {border-radius:9px;}
/* Kundendetails auch im normalen Ansichtsmodus oberhalb der Sidebar anzeigen. */
#tkDetailOverlay.flow-customer-detail {z-index:10050!important;}
body.tk-standalone #tkDetailOverlay.flow-customer-detail {z-index:99999!important;}
@media(max-width:720px){
  #page[data-flow-view="users"] > .panel,
  #page[data-flow-view="team"] > .panel,
  #page[data-flow-view="tenants"] > .panel,
  #page[data-flow-view="audit"] > .panel,
  #page[data-flow-view="globalaudit"] > .panel,
  #page[data-flow-view="licenseorders"] > .panel,
  #page[data-flow-view="licensebilling"] > .panel,
  #page[data-flow-view="tickettime"] > .panel,
  #page[data-flow-view="ticketbilling"] > .panel,
  #page[data-flow-view="ticketsettings"] > .panel {padding:17px;}
}


/* ===== Unified update-manager style for tasks, tickets, customers and popups ===== */
#stats.flow-page-stats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:0 0 22px}
#stats.flow-page-stats.hidden{display:none!important}
#stats.flow-page-stats .flow-stat-card{appearance:none;background:#fff;border:1px solid #e2ebe5;border-radius:16px;box-shadow:0 3px 14px rgba(22,49,32,.025)}
#stats.flow-page-stats .flow-stat-card .um-kpi-icon{font-size:18px;line-height:1}
#stats.flow-page-stats .flow-stat-card .um-kpi-number,#stats.flow-page-stats .flow-stat-card strong{font-size:34px;font-weight:760;color:#173f2b}
#stats.flow-page-stats .flow-stat-card .um-kpi-label{font-size:13px;font-weight:720;color:#32493c}
#stats.flow-page-stats .flow-stat-card .um-kpi-hint{font-size:11.5px;color:#84948a}
#stats.flow-page-stats .flow-stat-card:hover{border-color:#83bb92;box-shadow:0 7px 22px rgba(22,73,38,.09);transform:translateY(-1px)}
.flow-shell{display:flex;flex-direction:column;gap:20px}
.flow-shell .flow-hero{margin-bottom:0}
.flow-shell .flow-workspace-panel{padding:24px 26px 22px;border-radius:20px;border:1px solid #dfe9e2;box-shadow:0 8px 26px rgba(18,48,31,.05)}
.flow-mini-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.flow-mini-kpis .um-kpi{min-height:124px}
.flow-filterbar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:18px}
.flow-filterbar input[type='search'],.flow-filterbar input,.flow-filterbar select,.flow-ticket-search input,.tk-customer-table-heading input,.tk-customer-list-toolbar input{border:1px solid #d8e4dc;border-radius:12px;min-height:44px;padding:0 14px;background:#fff;color:#274434;box-shadow:none}
.flow-table-scroll table,.tk-customer-table-scroll table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e4ece6;border-radius:15px;overflow:hidden;background:#fff}
.flow-table-scroll thead th,.tk-customer-table-scroll thead th{background:#f7faf8;color:#6f8677;font-size:11px;font-weight:770;letter-spacing:.08em;text-transform:uppercase;padding:14px 16px;white-space:nowrap}
.flow-table-scroll tbody td,.tk-customer-table-scroll tbody td{padding:16px;border-bottom:1px solid #edf2ed;font-size:13px;color:#344f3f;vertical-align:middle}
.flow-table-scroll tbody tr:last-child td,.tk-customer-table-scroll tbody tr:last-child td{border-bottom:0}
.flow-table-scroll tbody tr:hover td,.tk-customer-table tbody tr:hover td,.tk-customer-table-scroll tbody tr:hover td{background:#f8fcf8}
.flow-table-scroll tbody tr[data-ticket],.flow-table-scroll tbody tr[data-view-task],.tk-customer-table tbody tr,.tk-customer-table-scroll tbody tr[data-tkcustomer]{cursor:pointer}
.flow-ticket-search label,.flow-filter-label{display:block;font-size:12px;font-weight:700;color:#4b6256;margin-bottom:8px}
.flow-panel-head{margin-bottom:18px}
.flow-panel-head h2{margin:4px 0 8px;font-size:34px;letter-spacing:-.05em;color:#163629}
.flow-panel-head p{margin:0;color:#6f8178;font-size:14px;max-width:760px}
.flow-eyebrow{font-size:12px;font-weight:760;letter-spacing:.12em;color:#79927f}
.flow-pagination{font-size:13px;color:#5a6f62}
.flow-pagination button{border-radius:10px}
.flow-customer-name{display:flex;align-items:center;gap:12px}.flow-customer-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#eef6ef;color:#2e8a4b;font-weight:800}.flow-customer-name small{display:block;color:#91a195;margin-top:2px}
/* Ticket/customer detail overlays as update-manager style drawers */
.tk-detail-overlay{position:fixed;inset:0;background:rgba(14,29,21,.42)!important;z-index:10050!important;display:none;align-items:stretch!important;justify-content:flex-end!important;padding:0!important;backdrop-filter:blur(3px)}
.tk-detail-window{width:min(760px,100%)!important;max-width:760px!important;height:100vh!important;max-height:100vh!important;border-radius:22px 0 0 22px!important;box-shadow:-18px 0 45px rgba(9,27,17,.18)!important;border:1px solid #e3ebe5!important;display:flex!important;flex-direction:column!important}
.tk-detail-header{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #e8eee9;background:#fff}
.tk-detail-header h2{margin:0;font-size:18px;line-height:1.2;font-weight:800;color:#163629;letter-spacing:-.03em}
.tk-detail-header .secondary{width:auto;background:#eff6ef;color:#2f7f47;border-radius:12px;padding:11px 14px;font-weight:700}
.tk-detail-body{padding:24px!important;overflow:auto;background:#fbfdfb}
.tk-edit-form{display:flex;flex-direction:column;gap:14px}
.tk-edit-form .field{margin:0}
.tk-edit-form .field label,.modal .field label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:750;color:#445c4e}
.tk-edit-form input,.tk-edit-form textarea,.tk-edit-form select,.modal input,.modal textarea,.modal select{width:100%;border:1px solid #d9e4dc;border-radius:12px;min-height:46px;padding:11px 14px;font:inherit;color:#21382d;background:#fff}
.tk-edit-form textarea,.modal textarea{min-height:110px;resize:vertical}
.tk-edit-form button.primary,.tk-edit-form button.secondary{width:auto;align-self:flex-start}
.flow-customer-hero{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:16px 18px;border:1px solid #e4ece6;border-radius:16px;background:#fff}
.flow-customer-hero-avatar{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:18px;background:linear-gradient(180deg,#edf7ee,#e7f2e8);color:#2b7f47;font-size:24px;font-weight:800}
.flow-customer-hero-copy h2{margin:5px 0 4px;font-size:30px;line-height:1.1;letter-spacing:-.04em;color:#173629}.flow-customer-hero-copy p{margin:0;color:#76877d}
.flow-customer-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.flow-customer-metrics>div{border:1px solid #e4ece6;border-radius:14px;background:#fff;padding:16px 18px}.flow-customer-metrics strong{display:block;font-size:28px;line-height:1.1;color:#173f2b}.flow-customer-metrics span{font-size:12px;color:#74877b;font-weight:650}
.flow-customer-info,.tk-customer-table{border:1px solid #e4ece6;border-radius:16px;background:#fff;padding:18px 20px;margin-bottom:16px}.flow-customer-info-head,.tk-customer-table-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}.flow-customer-info-head h3,.tk-customer-table h3{margin:0;font-size:14px;font-weight:760;color:#21382d}.flow-customer-info-head span{font-size:12px;color:#809187}
.flow-customer-notes{margin-top:14px;padding-top:14px;border-top:1px solid #edf2ed}.flow-customer-notes strong{display:block;margin-bottom:6px}
.flow-customer-contacts-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}.flow-customer-contacts-action span{font-size:13px;font-weight:700;color:#314b3c}
.tk-customer-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid #edf2ed}.tk-customer-page-buttons{display:flex;align-items:center;gap:8px}.tk-customer-page-buttons .secondary{width:auto}
/* Generic overlay (tasks/users/settings etc.) redesigned as drawer */
#overlay{background:rgba(14,29,21,.42)!important;backdrop-filter:blur(3px)}
#overlay:not(.hidden){display:flex!important;align-items:stretch!important;justify-content:flex-end!important;padding:0!important;z-index:10040!important}
#overlay:not(.hidden) .modal{width:min(760px,100%)!important;max-width:760px!important;height:100vh!important;max-height:100vh!important;margin:0 0 0 auto!important;border-radius:22px 0 0 22px!important;border:1px solid #e4ece6!important;box-shadow:-18px 0 45px rgba(9,27,17,.18)!important;background:#fff!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}
#overlay .modal h2{margin:0;padding:22px 24px;border-bottom:1px solid #e8eee9;color:#173629;font-size:20px;font-weight:800;letter-spacing:-.03em;background:#fff}
#overlay #modalForm{padding:22px 24px 24px;overflow:auto;display:flex;flex-direction:column;gap:14px;background:#fbfdfb}
#overlay .modalfooter{display:flex;justify-content:flex-end;gap:10px;padding-top:6px;margin-top:auto}
#overlay .modal .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#overlay .modal .field{margin:0}
#overlay .modal .secondary{background:#edf6ef;color:#2a7e45;border-radius:12px;width:auto;padding:11px 15px}
#overlay .modal .primary{background:#278745;border-radius:12px;width:auto;padding:11px 16px}
#overlay .modal .danger{width:auto;border-radius:12px}
/* Popup tables and ticket rows */
#tkTicketRows tr[data-ticket] td:first-child b{font-size:14px;color:#193929}
#tkTicketRows tr[data-ticket] td:last-child,#taskTable table td:last-child{text-align:left}
.tk-click-row:focus-visible,[data-ticket]:focus-visible,[data-view-task]:focus-visible,[data-tkcustomer]:focus-visible{outline:3px solid #2a8a48;outline-offset:-3px}
@media(max-width:1100px){.flow-mini-kpis{grid-template-columns:1fr!important}}
@media(max-width:780px){#overlay:not(.hidden) .modal,.tk-detail-window{width:100%!important;max-width:none!important;border-radius:0!important}.flow-shell .flow-workspace-panel{padding:18px 16px}.flow-customer-hero{grid-template-columns:1fr}.flow-customer-metrics{grid-template-columns:1fr}.flow-panel-head h2{font-size:28px}#stats.flow-page-stats{grid-template-columns:1fr}.flow-customer-contacts-action,.flow-customer-info-head,.tk-customer-table-heading{align-items:flex-start;flex-direction:column}}


/* BRIT FLOW v3 PATCH – stable KPI grid and Update-Manager alignment.
   Deliberately scoped: original Update-Manager selectors and data logic unchanged. */
.content:has(#page[data-flow-view="tasks"]) > .top,
.content:has(#page[data-flow-view="done"]) > .top,
.content:has(#page[data-flow-view="tickets"]) > .top,
.content:has(#page[data-flow-view="customers"]) > .top{display:none!important}
#page .flow-shell{display:flex;flex-direction:column;gap:22px;min-width:0}
#page .flow-shell > .flow-hero{order:0}
#page .flow-shell > #stats.flow-page-stats{order:1}
#page .flow-shell > .flow-workspace-panel{order:2;margin-top:0}
#stats.flow-page-stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;width:100%;margin:0!important;min-width:0;align-items:stretch}
#stats.flow-page-stats.hidden{display:none!important}
#stats.flow-page-stats .flow-kpi{appearance:none!important;width:100%;min-width:0;min-height:137px;height:auto;padding:18px 21px 19px!important;border:1px solid #e2ebe5!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 14px rgba(22,49,32,.025)!important;cursor:pointer!important;text-align:left!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;row-gap:4px!important;column-gap:12px!important;align-content:start!important;transition:border-color .15s,box-shadow .15s,background .15s,transform .15s!important;line-height:1.4!important;color:#18382a!important}
#stats.flow-page-stats .flow-kpi:hover{border-color:#8fc4a0!important;box-shadow:0 9px 22px rgba(15,75,36,.08)!important;transform:translateY(-1px)}
#stats.flow-page-stats .flow-kpi:focus-visible{outline:3px solid #278846!important;outline-offset:3px}
#stats.flow-page-stats .flow-kpi.is-selected{border-color:#4ca268!important;background:#f8fcf8!important}
#stats.flow-page-stats .flow-kpi-number{display:block!important;grid-column:1!important;grid-row:1!important;align-self:center!important;font-size:34px!important;font-weight:770!important;letter-spacing:-.05em!important;line-height:1.1!important;color:#173f2b!important;margin:0!important}
#stats.flow-page-stats .flow-kpi-icon{display:inline-flex!important;grid-column:2!important;grid-row:1!important;align-self:start!important;justify-content:center!important;align-items:center!important;background:#eef6ef!important;color:#288849!important;width:38px!important;height:38px!important;border-radius:11px!important;padding:8px!important;min-width:38px!important}
#stats.flow-page-stats .flow-kpi-label{display:block!important;grid-column:1/-1!important;grid-row:2!important;font-size:13px!important;font-weight:750!important;white-space:normal!important;color:#355043!important;margin:7px 0 0!important;line-height:1.4!important}
#stats.flow-page-stats .flow-kpi-hint{display:block!important;grid-column:1/-1!important;grid-row:3!important;font-size:11.5px!important;font-weight:400!important;color:#8b9d90!important;margin:0!important;line-height:1.45!important}
#page .flow-hero .flow-hero-add{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:42px!important;padding:10px 17px!important;border-radius:10px!important;background:#9bd45d!important;color:#173e29!important;border:1px solid #9bd45d!important;font-weight:730!important;font-size:12.5px!important;line-height:1.3!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important}
#page .flow-hero .flow-hero-add:hover{background:#b0e17d!important;border-color:#b0e17d!important}
#page .flow-workspace-panel .flow-panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:20px!important}
#page .flow-workspace-panel .flow-panel-head h2{font-size:19px!important;letter-spacing:-.035em!important;font-weight:760!important;margin:4px 0 6px!important;color:#173b29!important}
#page .flow-workspace-panel .flow-panel-head p{font-size:12.5px!important;color:#84968a!important}
#page .flow-shell .flow-mini-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;min-width:0}
#page .flow-mini-kpis .um-kpi{display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto auto!important;row-gap:4px!important;min-height:132px!important}
#page .flow-mini-kpis .um-kpi-number{grid-column:1!important;grid-row:1!important;display:block!important}
#page .flow-mini-kpis .um-kpi-icon{grid-column:2!important;grid-row:1!important;align-self:start!important}
#page .flow-mini-kpis .um-kpi-label{grid-column:1/-1!important;grid-row:2!important;display:block!important;margin:7px 0 0!important}
#page .flow-mini-kpis .um-kpi-hint{grid-column:1/-1!important;grid-row:3!important;display:block!important;margin:0!important}
#page .flow-workspace-panel{min-width:0}
#page .flow-ticket-filters select{min-width:170px;flex:1}
#page .flow-ticket-search{margin:14px 0 16px}
#page .flow-ticket-search label{margin-bottom:7px}
.flow-svg-icon{display:block!important;flex:0 0 auto!important;vertical-align:middle}
#page .flow-hero .flow-svg-icon{stroke-width:2}
.flow-state{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:710;white-space:nowrap;background:#f2f4f2;color:#617366}
.flow-state::before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:currentColor}
.flow-state--yes{background:#e8f7ed;color:#238249}
.flow-state--no{background:#f0f2f0;color:#778379}
.tk-action-symbol .flow-svg-icon{width:18px;height:18px}
.tk-rmm-tag .flow-svg-icon{display:inline-block!important;margin-right:5px;vertical-align:middle}
#page .flow-shell .flow-workspace-panel .flow-panel-head>div{min-width:0}
@media(max-width:1280px){#stats.flow-page-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:880px){#stats.flow-page-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}#page .flow-shell .flow-mini-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){#stats.flow-page-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#stats.flow-page-stats .flow-kpi{min-height:125px;padding:14px!important}#stats.flow-page-stats .flow-kpi-number{font-size:29px!important}#page .flow-hero .flow-hero-add{width:100%}#page .flow-shell .flow-mini-kpis{grid-template-columns:1fr!important}}

/* Maintain original ticket standalone window, including its timer and action columns. */
body.tk-standalone #tkDetailOverlay .tk-detail-window{max-width:none!important;width:100%!important;border-radius:0!important}
body.tk-standalone #tkPopupBody{background:#fbfdfb}

.tk-detail-header #tkPopupClose{display:inline-flex;align-items:center;justify-content:center;gap:8px}

.tk-timer-controls button,.tk-rmm-head button,.tk-timeline-files a{display:inline-flex;align-items:center;gap:7px}
.tk-timeline-files a>.flow-svg-icon{display:inline-block!important}


/* Postfachkonfiguration: anbieterabhängige Felder, ohne Änderung der API-Logik */
#tkMailbox.tk-mailbox-form{display:flex;flex-direction:column;gap:19px;max-width:800px}
#tkMailbox .tk-mailbox-heading{border-radius:14px;border:1px solid #e2ebe5;background:#f8fbf8;padding:18px 20px}
#tkMailbox .tk-mailbox-heading .field{margin-bottom:8px}
#tkMailbox .tk-mailbox-heading select{max-width:460px;width:100%}
#tkMailbox .tk-mailbox-help{margin:8px 0 0;font-size:12.5px;line-height:1.55;color:#607869}
#tkMailbox .tk-mailbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
#tkMailbox .tk-mailbox-full{grid-column:1/-1}
#tkMailbox [data-mail-provider][hidden]{display:none!important}
#tkMailbox .field{margin:0;min-width:0}
#tkMailbox .field label{display:block;font-size:12px;font-weight:700;color:#355242;margin-bottom:7px}
#tkMailbox .field input,#tkMailbox .field select{width:100%;min-width:0;min-height:44px;padding:10px 13px;border-radius:11px;border:1px solid #d7e4da;background:#fff;color:#243e2d;font-size:13px}
#tkMailbox .field small,#tkMailbox .tk-mailbox-tls small,#tkMailbox .tk-mailbox-last-error small{display:block;margin-top:7px;color:#708477;font-size:11.5px;line-height:1.5}
#tkMailbox .tk-mailbox-tls label{display:flex;gap:10px;align-items:center;font-size:12.5px;font-weight:650;color:#345140}
#tkMailbox .tk-mailbox-tls input{width:17px;height:17px;flex:0 0 17px;accent-color:#278747}
#tkMailbox .tk-mailbox-last-error{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border-radius:12px;border:1px solid #e9d8c8;background:#fffaf4;font-size:12px;color:#885128;overflow-wrap:anywhere}
#tkMailbox .tk-mailbox-last-error strong{font-size:12px}
#tkMailbox .tk-mailbox-footer{display:flex;justify-content:flex-end;border-top:1px solid #e5ede7;padding-top:17px}
#tkMailbox .tk-mailbox-footer .primary{width:auto;padding:11px 20px;border-radius:11px;background:#278747;color:#fff}
@media(max-width:640px){#tkMailbox .tk-mailbox-grid{grid-template-columns:1fr}#tkMailbox .tk-mailbox-heading{padding:15px}#tkMailbox .tk-mailbox-footer .primary{width:100%}}


/* Formatierte und sicher bereinigte E-Mail-Texte in Ticketbeschreibung/-verlauf. */
.tk-ticket-description .tk-email-rendered,
.tk-ticket-description .tk-email-plain,
.tk-email-view .tk-email-rendered,
.tk-email-view .tk-email-plain {
  font-size:13px;line-height:1.65;color:#405648;white-space:normal;
  overflow-wrap:anywhere;word-break:normal;
}
.tk-ticket-description .tk-email-plain,.tk-email-view .tk-email-plain{white-space:pre-wrap}
.tk-email-rendered p,.tk-email-rendered div{margin:0 0 .65em}
.tk-email-rendered p:last-child,.tk-email-rendered div:last-child{margin-bottom:0}
.tk-email-rendered h1,.tk-email-rendered h2,.tk-email-rendered h3,.tk-email-rendered h4,
.tk-email-rendered h5,.tk-email-rendered h6{font-size:1.05em;font-weight:750;margin:.9em 0 .45em;color:#203e2c}
.tk-email-rendered ul,.tk-email-rendered ol{padding-left:25px;margin:10px 0;list-style-position:outside}
.tk-email-rendered ul{list-style-type:disc}.tk-email-rendered ol{list-style-type:decimal}
.tk-email-rendered li{display:list-item;margin:3px 0}
.tk-email-rendered blockquote{margin:10px 0;padding:8px 14px;background:#f4f8f5;border-left:3px solid #78a989;color:#4c6556}
.tk-email-rendered a{color:#227a47;text-decoration:underline;text-underline-offset:2px}
.tk-email-rendered table{width:auto;max-width:100%;border-collapse:collapse;display:block;overflow-x:auto;margin:10px 0}
.tk-email-rendered th,.tk-email-rendered td{border:1px solid #dae5de;padding:6px 9px;text-align:left;vertical-align:top}
.tk-email-rendered th{background:#f4f8f5;font-weight:700}
.tk-email-rendered pre{white-space:pre-wrap;overflow-wrap:anywhere}
.tk-email-rendered .tk-email-image-alt{display:inline-block;color:#74897a;font-size:11px;border:1px dashed #d5e3d8;border-radius:5px;padding:1px 5px}
.tk-email-view{margin-top:12px;border:1px solid #e4ede6;border-radius:10px;background:#fff;padding:14px;max-height:490px;overflow:auto}
.tk-ticket-description{white-space:normal}

/* Inbound Graph/IMAP images are streamed only from authenticated, same-origin ticket attachments. */
.tk-email-inline-image{display:inline-block;max-width:100%;height:auto;object-fit:contain;border-radius:6px;vertical-align:middle}
.tk-incoming-image-grid{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.tk-incoming-image-grid a{display:flex;align-items:center;justify-content:center;border:1px solid #dce8df;border-radius:9px;overflow:hidden;background:#f8fbf9;max-width:230px}
.tk-incoming-image-grid img{display:block;max-width:230px;max-height:180px;width:auto;height:auto;object-fit:contain}
.tk-mail-attachment-notice{font-size:12px;color:#9d6526;background:#fff8e9;border:1px solid #f6dfa9;border-radius:8px;padding:9px 12px;margin:10px 0}
.tk-timeline-files{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.tk-timeline-files strong{font-size:12px;color:#486655}

/* Workflow-Mailstatus: kleine, gut lesbare Empfängerzeilen im Ticketverlauf. */
.tk-wf-recipients{margin-top:10px;padding:10px 12px;border:1px solid #e1ebe5;border-radius:10px;background:#f8fbf9;display:grid;gap:6px}
.tk-wf-recipients-label{font-size:11px;font-weight:700;letter-spacing:.01em;color:#587261}
.tk-wf-recipient{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:baseline;font-size:11.5px;line-height:1.45}
.tk-wf-address{font-weight:600;color:#294e35;overflow-wrap:anywhere}
.tk-wf-status{font-size:10.5px;color:#64796b}
.tk-wf-sent .tk-wf-status{color:#247447}
.tk-wf-failed .tk-wf-status,.tk-wf-error{color:#a13c38}
.tk-wf-skipped .tk-wf-status{color:#95692e}
.tk-wf-error{flex-basis:100%;font-size:10.5px;overflow-wrap:anywhere}


/* BRIT Flow action drawer refresh */
#overlay .modal .tk-action-form{display:flex;flex-direction:column;gap:16px}
#overlay .modal .tk-action-context{display:flex;align-items:flex-start;gap:14px;padding:14px 15px;border:1px solid #e3ece6;border-radius:16px;background:linear-gradient(145deg,#f8fcf9,#eef7f1)}
#overlay .modal .tk-action-context-icon{height:42px;width:42px;border-radius:12px;background:#e6f4eb;color:#2a8648;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:inset 0 0 0 1px #d7eadc}
#overlay .modal .tk-action-context>div{display:flex;flex-direction:column;gap:4px;min-width:0}
#overlay .modal .tk-action-context-kicker{font-size:11px;font-weight:800;letter-spacing:.08em;color:#6c8676;text-transform:uppercase}
#overlay .modal .tk-action-context strong{font-size:15px;color:#19382b;line-height:1.35;overflow-wrap:anywhere}
#overlay .modal .tk-action-context small{font-size:12px;line-height:1.5;color:#6f8376}
#overlay .modal .tk-action-section{border:1px solid #e6ede8;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 28px rgba(16,41,27,.04)}
#overlay .modal .tk-action-section-head{padding:14px 16px 12px;border-bottom:1px solid #edf2ee;background:#fbfdfb}
#overlay .modal .tk-action-section-kicker{display:inline-flex;margin-bottom:7px;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6e8878;background:#eef6f0;border-radius:999px;padding:4px 8px}
#overlay .modal .tk-action-section-head h3{margin:0 0 4px;font-size:15px;font-weight:800;color:#1d3d2e;letter-spacing:-.02em}
#overlay .modal .tk-action-section-head p{margin:0;font-size:12px;line-height:1.55;color:#73877a}
#overlay .modal .tk-action-section-body{padding:15px 16px;display:flex;flex-direction:column;gap:14px}
#overlay .modal .tk-action-section .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#overlay .modal .tk-action-stat{display:flex;align-items:center;justify-content:center;min-height:46px;padding:12px 14px;border:1px solid #dbe8de;border-radius:13px;background:linear-gradient(180deg,#f4faf6,#eef6f0);color:#315a3f;font-size:13px;font-weight:650}
#overlay .modal .tk-action-stat strong{font-size:17px;color:#21673a;margin-left:6px}
#overlay .modal .tk-action-note{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border-radius:12px;background:#f3f8f4;color:#567560;font-size:12px;line-height:1.55;border:1px solid #e4eee6}
#overlay .modal .tk-field-note{display:block;margin-top:-4px;font-size:11.5px;color:#809285;line-height:1.5}
#overlay .modal .tk-editor-card{border:1px solid #dfe8e2;border-radius:14px;overflow:hidden;background:#fff;box-shadow:inset 0 0 0 1px #f7faf8}
#overlay .modal .tk-choice-list{display:flex;flex-direction:column;gap:10px;max-height:300px;overflow:auto;padding-right:2px}
#overlay .modal .tk-choice-item{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid #e3ebe5;border-radius:14px;background:#fbfdfb;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
#overlay .modal .tk-choice-item:hover{border-color:#cfe1d4;box-shadow:0 8px 18px rgba(23,56,38,.05);transform:translateY(-1px)}
#overlay .modal .tk-choice-item input{width:17px!important;height:17px!important;min-width:17px;accent-color:#278846;flex-shrink:0}
#overlay .modal .tk-choice-avatar{height:34px;width:34px;border-radius:50%;background:linear-gradient(145deg,#e7f3ea,#dceee2);color:#2c7d45;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex-shrink:0}
#overlay .modal .tk-choice-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#overlay .modal .tk-choice-copy strong{font-size:12.8px;color:#223d2f;font-weight:760;overflow-wrap:anywhere}
#overlay .modal .tk-choice-copy small{font-size:11.5px;color:#7b8f81;overflow-wrap:anywhere}
#overlay .modal .tk-checkline--card{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid #e3ebe5;border-radius:14px;background:#fbfdfb;cursor:pointer}
#overlay .modal .tk-checkline--card input{width:17px!important;height:17px!important;min-width:17px;accent-color:#278846;margin-top:1px}
#overlay .modal .tk-checkline--card span{display:flex;flex-direction:column;gap:4px}
#overlay .modal .tk-checkline--card strong{font-size:13px;color:#274533}
#overlay .modal .tk-checkline--card small{font-size:11.5px;color:#7c9082;line-height:1.5}
#overlay .modal .tk-action-form .field{margin:0}
#overlay .modal .tk-action-form input[type="file"]{padding:12px 13px;min-height:50px;background:#fcfefd}
#overlay .modal .tk-action-form textarea{min-height:120px}
#overlay .modal .tk-action-form .tk-rich-toolbar{background:#f5f8f6;border-bottom:1px solid #e2eae4;padding:10px}
#overlay .modal .tk-action-form .tk-rich-toolbar button,#overlay .modal .tk-action-form .tk-rich-toolbar select{border-radius:9px!important}
#overlay .modal .tk-action-form .tk-rich-editable,#overlay .modal .tk-action-form .tk-rich-source{min-height:188px}
#overlay .modal .tk-action-form .tk-rich-preview-title{padding:9px 12px;background:#f7faf8;border-top:1px solid #e5ece7;color:#61776a;font-size:11.5px;font-weight:700}
#overlay .modal .tk-action-form .tk-rich-preview{min-height:120px;background:#fff}
@media(max-width:760px){#overlay .modal .tk-action-section .grid2{grid-template-columns:1fr}#overlay .modal .tk-choice-list{max-height:none}}

/* Optional customer-notification email suggestion in the time entry drawer. */
#overlay .modal .tk-contact-email-suggestion{display:flex;align-items:center;gap:7px;flex-wrap:wrap;align-self:flex-start;width:auto;min-height:36px;padding:8px 11px;border:1px solid #cfe4d6;border-radius:10px;background:#f0f8f2;color:#297443;font-size:12px;font-weight:650;cursor:pointer;transition:background .16s,border-color .16s}
#overlay .modal .tk-contact-email-suggestion:hover{background:#e5f3e9;border-color:#99cda8}
#overlay .modal .tk-contact-email-suggestion strong{font-weight:780;overflow-wrap:anywhere}
#overlay .modal .tk-contact-email-suggestion:focus-visible{outline:3px solid #bce0c7;outline-offset:2px}

/* BRIT Flow – administrative Dialoge (Benutzer, Pools, Status, Tätigkeitsarten, Automatisierungen)
   Separater Scope: keine Änderung an Ticket-Detailfenstern oder vorhandenen Aktionen. */
#overlay #modalForm:has(> .bf-settings-form){
  padding:0!important;gap:0!important;flex:1 1 auto;min-height:0;
  overflow:hidden!important;background:#f7faf8!important;
}
#overlay #modalForm:has(> .bf-settings-form) > .bf-settings-form{
  flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;
  padding:24px 26px 30px;display:flex;flex-direction:column;gap:18px;
  scrollbar-color:#ccdcd0 transparent;
}
#overlay #modalForm:has(> .bf-settings-form) > .modalfooter{
  flex:0 0 auto;position:relative;z-index:2;margin:0;padding:16px 26px!important;
  background:#fff;border-top:1px solid #e6eee9;box-shadow:0 -7px 22px #102c1b0a;
}
#overlay #modalForm:has(> .bf-settings-form) > #formError:not(:empty){
  flex:0 0 auto;margin:0;padding:13px 26px;background:#fff4f2;
  color:#a34436;font-size:12px;border-top:1px solid #f0d5d0;
}
#overlay .bf-settings-lead{
  display:flex;align-items:flex-start;gap:15px;padding:18px;
  border:1px solid #dcebe0;border-radius:17px;
  background:linear-gradient(115deg,#f3faf4 0%,#eaf5ed 67%,#f6faf7 100%);
  box-shadow:0 8px 25px rgba(28,68,40,.035);
}
#overlay .bf-settings-lead-icon{
  flex:0 0 48px;width:48px;height:48px;border-radius:14px;
  background:#dcefe1;color:#287c44;display:grid;place-items:center;
  box-shadow:inset 0 0 0 1px #cbe3d2;
}
#overlay .bf-settings-lead-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
#overlay .bf-settings-eyebrow{font-size:10px;line-height:1.4;letter-spacing:.10em;font-weight:830;color:#248246}
#overlay .bf-settings-eyebrow span{color:#718b78}
#overlay .bf-settings-lead-copy strong{font-size:17px;font-weight:800;letter-spacing:-.02em;color:#193b2a;overflow-wrap:anywhere}
#overlay .bf-settings-lead-copy p{font-size:12px;line-height:1.6;margin:0;color:#698372}
#overlay .bf-settings-section{
  background:#fff;border:1px solid #e0eae3;border-radius:16px;
  box-shadow:0 8px 26px rgba(12,42,22,.035);overflow:hidden;flex-shrink:0;
}
#overlay .bf-settings-section-head{
  padding:17px 19px 14px;background:linear-gradient(180deg,#fcfefc,#f9fcfa);
  border-bottom:1px solid #edf2ee;
}
#overlay .bf-settings-section-head>span{
  display:inline-flex;align-items:center;letter-spacing:.075em;
  font-size:10px;font-weight:820;color:#277f44;
  background:#ebf6ee;border-radius:999px;padding:4px 9px;margin-bottom:9px;
}
#overlay .bf-settings-section-head h3{font-size:15px;font-weight:800;color:#203c2d;margin:0 0 4px;letter-spacing:-.015em}
#overlay .bf-settings-section-head p{font-size:12px;line-height:1.55;color:#74877b;margin:0}
#overlay .bf-settings-section-fields{padding:19px;display:flex;flex-direction:column;gap:15px;min-width:0}
#overlay .bf-settings-section-fields .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#overlay .bf-settings-section-fields .field{margin:0!important;min-width:0}
#overlay .bf-settings-section-fields .field label{display:block;font-size:12px;font-weight:760;color:#3d5947;margin:0 0 8px}
#overlay .bf-settings-section-fields .field input:not([type="checkbox"]),
#overlay .bf-settings-section-fields .field textarea,
#overlay .bf-settings-section-fields .field select{
  box-sizing:border-box;width:100%;min-width:0;min-height:45px;
  background:#fff;border:1px solid #d6e3da;border-radius:11px;
  padding:10px 12px;color:#243e2e;font-size:13px;
  outline:none;box-shadow:none;transition:border-color .16s,box-shadow .16s;
}
#overlay .bf-settings-section-fields .field input:focus,
#overlay .bf-settings-section-fields .field textarea:focus,
#overlay .bf-settings-section-fields .field select:focus{
  border-color:#68ae7b;box-shadow:0 0 0 3px #dff1e4;
}
#overlay .bf-settings-section-fields .field input::placeholder{color:#a1afa5}
#overlay .bf-settings-toggle{
  display:flex;gap:14px;align-items:center;min-width:0;padding:14px 15px;
  background:#fbfdfb;border:1px solid #e2ebe5;border-radius:13px;
  cursor:pointer;transition:background .15s,border-color .15s;
}
#overlay .bf-settings-toggle:hover{background:#f3faf5;border-color:#bedcc7}
#overlay .bf-settings-toggle:has(input:checked){background:#f1f9f3;border-color:#cae4d0}
#overlay .bf-settings-toggle input{
  flex:0 0 18px;width:18px!important;height:18px!important;
  min-height:18px!important;margin:0;accent-color:#278846;cursor:pointer;
}
#overlay .bf-settings-toggle-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
#overlay .bf-settings-toggle-copy strong{font-size:12.5px;font-weight:750;color:#2b4d37;line-height:1.4}
#overlay .bf-settings-toggle-copy small{font-size:11.5px;color:#7a9280;line-height:1.5}
#overlay .bf-settings-hint{display:flex;align-items:flex-start;gap:10px;background:#f4f8f5;color:#69806f;border:1px solid #e7efe9;padding:12px 13px;border-radius:11px;font-size:11.5px;line-height:1.5}
#overlay .bf-settings-hint svg{flex:0 0 auto;color:#36844d}
#overlay .bf-settings-row{display:flex;gap:14px;align-items:stretch;min-width:0}
#overlay .bf-settings-row-grow{min-width:0;flex:1 1 auto}
#overlay .bf-settings-row-grow .bf-settings-toggle{height:100%;box-sizing:border-box}
#overlay .bf-settings-order{flex:0 0 135px}
#overlay .bf-settings-money{display:flex;align-items:center;border:1px solid #d6e3da;border-radius:11px;overflow:hidden;min-width:0}
#overlay .bf-settings-section-fields .field .bf-settings-money input{border:0;border-radius:0;min-width:0;flex:1}
#overlay .bf-settings-money:focus-within{border-color:#68ae7b;box-shadow:0 0 0 3px #dff1e4}
#overlay .bf-settings-money span{white-space:nowrap;padding:11px 14px;background:#f3f8f5;color:#54715f;border-left:1px solid #dfe9e1;font-size:12px;font-weight:700}
#overlay .bf-settings-choicewrap{max-height:320px;overflow:auto}
#overlay .bf-settings-choicewrap .tk-choice-list{max-height:none}
#overlay .bf-settings-conditional{min-width:0;display:flex;flex-direction:column;gap:14px}
#overlay .bf-settings-conditional[hidden]{display:none!important}
#overlay .bf-settings-form [hidden]{display:none!important}
#overlay #modalForm:has(> .bf-settings-form) .modalfooter .primary{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#258849;
  border:1px solid #258849;border-radius:11px;padding:11px 21px;
  box-shadow:0 4px 10px rgba(36,130,69,.12);font-weight:750;
}
#overlay #modalForm:has(> .bf-settings-form) .modalfooter .secondary{
  border-radius:11px;padding:11px 18px;background:#eef5f0;color:#34774a;
}
@media(max-width:760px){
  #overlay #modalForm:has(> .bf-settings-form) > .bf-settings-form{padding:17px 15px 20px;gap:13px}
  #overlay #modalForm:has(> .bf-settings-form) > .modalfooter{padding:13px 15px!important}
  #overlay .bf-settings-lead{padding:15px}
  #overlay .bf-settings-section-fields{padding:15px}
  #overlay .bf-settings-section-head{padding:15px}
  #overlay .bf-settings-section-fields .grid2{grid-template-columns:1fr}
  #overlay .bf-settings-row{flex-direction:column}
  #overlay .bf-settings-order{flex:auto}
}
@media(prefers-reduced-motion:reduce){
  #overlay .bf-settings-form *{transition:none!important;animation:none!important}
}

/* ===== Ticket billing workspace · BRIT Flow 2026-11-02 ===== */
/* The billing workspace owns its own heading: hide the shared heading to avoid duplicates. */
body:has(#page .flow-shell--billing) main.content > .top{display:none!important}
#page .flow-shell--billing{max-width:1580px;width:100%;min-width:0;gap:20px;padding-bottom:42px;--tk-bill-text:#213b2d;--tk-bill-muted:#7b9082;--tk-bill-line:#e2ebe4}
#page .flow-shell--billing *{box-sizing:border-box}
#page .flow-shell--billing .tk-bill-hero{min-height:171px}
#page .flow-shell--billing .tk-bill-hero-mark{width:72px;height:72px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(188,234,181,.28);border-radius:20px;color:#bde49a;background:rgba(240,255,233,.09);flex-shrink:0;position:relative;z-index:1}
#page .flow-shell--billing .tk-bill-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
#page .flow-shell--billing .tk-bill-kpi{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto auto;align-content:start;min-width:0;min-height:137px;padding:21px 21px 19px;border:1px solid #e0ebe3;border-radius:17px;background:#fff;box-shadow:0 4px 17px rgba(20,48,29,.035);gap:0}
#page .flow-shell--billing .tk-bill-kpi-value{grid-column:1;grid-row:1;font-weight:790;letter-spacing:-.055em;font-size:clamp(25px,2.45vw,34px);line-height:1.15;color:#153d29;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#page .flow-shell--billing .tk-bill-kpi-icon{grid-column:2;grid-row:1;align-self:start;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#edf8ef;color:#2c8a4d}
#page .flow-shell--billing .tk-bill-kpi strong{grid-column:1/3;grid-row:2;margin-top:12px;color:#355341;font-size:13px;font-weight:740;line-height:1.4}
#page .flow-shell--billing .tk-bill-kpi small{grid-column:1/3;grid-row:3;margin-top:4px;color:#83978a;font-size:11.5px;line-height:1.35}
#page .flow-shell--billing .tk-bill-section{min-width:0;border:1px solid var(--tk-bill-line);border-radius:18px;background:#fff;box-shadow:0 7px 28px rgba(20,48,29,.038);overflow:hidden}
#page .flow-shell--billing .tk-bill-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px 20px;border-bottom:1px solid #ebf0ec}
#page .flow-shell--billing .tk-bill-section-heading>div{min-width:0}
#page .flow-shell--billing .tk-bill-eyebrow{display:block;color:#539268;font-size:10px;letter-spacing:.11em;font-weight:820;line-height:1.35;margin-bottom:7px}
#page .flow-shell--billing .tk-bill-section-heading h3{margin:0 0 5px;font-size:19px;font-weight:780;letter-spacing:-.035em;line-height:1.3;color:#173c2a}
#page .flow-shell--billing .tk-bill-section-heading p{font-size:12.5px;color:#829488;line-height:1.55;margin:0}
#page .flow-shell--billing .tk-bill-section-symbol{width:40px;height:40px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#eef7f0;color:#348b50;border-radius:12px}
#page .flow-shell--billing .tk-bill-filters{display:grid;grid-template-columns:minmax(250px,1.6fr) minmax(155px,.8fr) minmax(155px,.8fr);gap:15px;padding:23px 26px 16px}
#page .flow-shell--billing .tk-bill-filters:has(.tk-bill-tenant){grid-template-columns:repeat(2,minmax(0,1fr))}
#page .flow-shell--billing .tk-bill-filters:has(.tk-bill-tenant) .tk-bill-tenant{grid-column:1}
#page .flow-shell--billing .tk-bill-filter{min-width:0;display:flex;flex-direction:column;gap:8px}
#page .flow-shell--billing .tk-bill-filter label{font-size:12px;font-weight:750;color:#3d5948}
#page .flow-shell--billing .tk-bill-filter input,#page .flow-shell--billing .tk-bill-filter select{width:100%;min-height:44px;min-width:0;padding:10px 13px;border-radius:11px;border:1px solid #d9e7dc;background:#fff;color:#294635;font-size:12.6px;font-family:inherit;box-shadow:0 1px 1px rgba(10,50,25,.015)}
#page .flow-shell--billing .tk-bill-filter input:focus-visible,#page .flow-shell--billing .tk-bill-filter select:focus-visible{outline:3px solid #c8e9d2;border-color:#329457}
#page .flow-shell--billing .tk-bill-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 26px 23px}
#page .flow-shell--billing .tk-bill-export-actions{display:flex;flex-wrap:wrap;gap:10px}
#page .flow-shell--billing .tk-bill-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;min-height:42px;padding:10px 15px;border:1px solid #d9e8dc;border-radius:10px;background:#f2f8f3;color:#2c7444;font-size:12.6px;font-weight:730;box-shadow:none;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
#page .flow-shell--billing .tk-bill-btn:hover:not(:disabled){background:#e6f4e9;border-color:#b3d3bc}
#page .flow-shell--billing .tk-bill-btn:focus-visible{outline:3px solid #bde2c6;outline-offset:2px}
#page .flow-shell--billing .tk-bill-btn-primary{background:#248947;border-color:#248947;color:#fff}
#page .flow-shell--billing .tk-bill-btn-primary:hover:not(:disabled){background:#1c743b;border-color:#1c743b}
#page .flow-shell--billing .tk-bill-btn:disabled{opacity:.48;cursor:not-allowed}
#page .flow-shell--billing .tk-bill-results{display:flex;flex-direction:column;gap:20px;min-width:0}
#page .flow-shell--billing .tk-bill-placeholder{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:43px 22px;gap:9px}
#page .flow-shell--billing .tk-bill-placeholder .tk-bill-empty-symbol{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:#edf7ef;color:#358b51;margin-bottom:5px}
#page .flow-shell--billing .tk-bill-placeholder h3{margin:0;font-size:17px;color:#2c4a36}
#page .flow-shell--billing .tk-bill-placeholder p{margin:0;max-width:520px;font-size:12.5px;line-height:1.6;color:#879b8d}
#page .flow-shell--billing .tk-bill-selection-count{font-size:11.5px;color:#2a7444;font-weight:740;background:#edf7ef;border-radius:8px;padding:8px 11px;white-space:nowrap}
#page .flow-shell--billing .tk-bill-list-controls{padding:14px 24px;background:#fbfdfb;border-bottom:1px solid #e9efe9}
#page .flow-shell--billing .tk-bill-select-all{display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-size:12.5px;color:#3c5b46;font-weight:730}
#page .flow-shell--billing .tk-bill-select-all input,#page .flow-shell--billing .tk-bill-ticket-option input{appearance:auto;width:17px!important;min-height:0!important;height:17px!important;flex-shrink:0;accent-color:#258947;cursor:pointer;margin:0!important}
#page .flow-shell--billing .tk-bill-ticket-list{display:flex;flex-direction:column;padding:7px 15px 14px;gap:5px;max-height:360px;overflow-y:auto;min-width:0}
#page .flow-shell--billing .tk-bill-ticket-option{display:flex;align-items:center;gap:13px;padding:12px 13px;background:#fff;border:1px solid transparent;border-radius:12px;cursor:pointer;min-width:0;transition:background .15s,border-color .15s}
#page .flow-shell--billing .tk-bill-ticket-option:hover{background:#f6fbf7;border-color:#d9eade}
#page .flow-shell--billing .tk-bill-ticket-option:has(input:checked){background:#f5faf6;border-color:#e1eee5}
#page .flow-shell--billing .tk-bill-ticket-icon{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:10px;background:#eaf6ed;color:#35834e;flex-shrink:0}
#page .flow-shell--billing .tk-bill-ticket-name{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
#page .flow-shell--billing .tk-bill-ticket-name strong{font-size:12.6px;color:#304c39;font-weight:740;overflow-wrap:anywhere}
#page .flow-shell--billing .tk-bill-ticket-name small{font-size:11.4px;color:#819487}
#page .flow-shell--billing .tk-bill-ticket-value{font-size:14px;font-weight:790;color:#256f3d;white-space:nowrap;font-variant-numeric:tabular-nums}
#page .flow-shell--billing .tk-bill-empty-inline{display:flex;align-items:center;justify-content:center;gap:10px;padding:30px 15px;color:#85998b;font-size:12px}
#page .flow-shell--billing .tk-bill-table-scroll{overflow-x:auto;width:100%;padding:0 0 5px}
#page .flow-shell--billing .tk-bill-table{border:0;border-collapse:collapse;width:100%;min-width:980px;table-layout:auto;background:#fff}
#page .flow-shell--billing .tk-bill-table th{background:#f7faf8;color:#778a7e;font-size:10px;letter-spacing:.065em;text-transform:uppercase;font-weight:760;padding:14px 15px;border-bottom:1px solid #e5ece7;text-align:left;white-space:nowrap}
#page .flow-shell--billing .tk-bill-table td{padding:15px;border-bottom:1px solid #edf2ee;color:#496254;font-size:12px;line-height:1.5;vertical-align:middle}
#page .flow-shell--billing .tk-bill-table tbody tr:hover td{background:#fafdfa}
#page .flow-shell--billing .tk-bill-table tbody tr:last-child td{border-bottom:none}
#page .flow-shell--billing .tk-bill-align-right{text-align:right!important}
#page .flow-shell--billing .tk-bill-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
#page .flow-shell--billing .tk-bill-ticketno{background:#eff6f1;color:#35854c;border-radius:7px;padding:5px 8px;font-weight:750;white-space:nowrap;font-size:11px}
#page .flow-shell--billing .tk-bill-row-title{color:#243f2f;font-weight:740}
#page .flow-shell--billing .tk-bill-description{white-space:pre-wrap;overflow-wrap:anywhere;max-width:310px;min-width:155px}
#page .flow-shell--billing .tk-bill-status{display:inline-flex;gap:6px;align-items:center;padding:5px 9px;border-radius:999px;font-size:10.7px;font-weight:750;white-space:nowrap}
#page .flow-shell--billing .tk-bill-status i{height:6px;width:6px;border-radius:50%;background:currentColor}
#page .flow-shell--billing .tk-bill-status--done{background:#e6f6ec;color:#247447}
#page .flow-shell--billing .tk-bill-status--open{background:#fff4e5;color:#a37625}
#page .flow-shell--billing .tk-bill-table-empty{display:flex;gap:10px;align-items:center;justify-content:center;padding:23px;color:#849587;font-size:12px}
#page .flow-shell--billing .tk-bill-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;background:#f8fbf9;border-top:1px solid #e6eee8;padding:20px 25px}
#page .flow-shell--billing .tk-bill-total{display:flex;flex-direction:column;gap:5px}
#page .flow-shell--billing .tk-bill-total span{color:#64806c;font-size:12px;font-weight:730}
#page .flow-shell--billing .tk-bill-total small{display:block;color:#8ba092;font-size:11px;margin-top:3px;font-weight:500}
#page .flow-shell--billing .tk-bill-total strong{color:#17412c;font-size:26px;font-weight:810;letter-spacing:-.04em;line-height:1.2;font-variant-numeric:tabular-nums}
@media(max-width:1120px){#page .flow-shell--billing .tk-bill-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#page .flow-shell--billing .tk-bill-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#page .flow-shell--billing .tk-bill-filters .tk-bill-customer{grid-column:1/-1}}
@media(max-width:760px){#page .flow-shell--billing .tk-bill-hero-mark{display:none}#page .flow-shell--billing .tk-bill-section-heading{padding:19px 17px 16px}#page .flow-shell--billing .tk-bill-filters,#page .flow-shell--billing .tk-bill-filters:has(.tk-bill-tenant){padding:19px 17px 12px;grid-template-columns:1fr}#page .flow-shell--billing .tk-bill-filters .tk-bill-customer{grid-column:auto}#page .flow-shell--billing .tk-bill-actions{padding:10px 17px 18px;align-items:stretch}#page .flow-shell--billing .tk-bill-export-actions{flex:1}#page .flow-shell--billing .tk-bill-export-actions button{flex:1}#page .flow-shell--billing .tk-bill-list-controls{padding:13px 17px}#page .flow-shell--billing .tk-bill-ticket-list{padding:6px 9px 13px}#page .flow-shell--billing .tk-bill-bottom{padding:17px}#page .flow-shell--billing .tk-bill-selection-count{font-size:10.5px}}
@media(max-width:490px){#page .flow-shell--billing .tk-bill-kpis{gap:10px}#page .flow-shell--billing .tk-bill-kpi{padding:14px;min-height:124px}#page .flow-shell--billing .tk-bill-kpi-icon{width:32px;height:32px}#page .flow-shell--billing .tk-bill-kpi-value{font-size:24px}#page .flow-shell--billing .tk-bill-kpi strong{font-size:11.5px}#page .flow-shell--billing .tk-bill-kpi small{font-size:10px}#page .flow-shell--billing .tk-bill-ticket-option{gap:9px;padding:11px 8px}#page .flow-shell--billing .tk-bill-ticket-icon{display:none}#page .flow-shell--billing .tk-bill-ticket-value{font-size:11px}#page .flow-shell--billing .tk-bill-actions .tk-bill-btn{width:100%}#page .flow-shell--billing .tk-bill-export-actions{width:100%;flex-direction:column}}
@media(prefers-reduced-motion:reduce){#page .flow-shell--billing *{transition:none!important;animation:none!important}}
@media(max-width:760px){
 #page .flow-shell--billing .tk-bill-selection-section .tk-bill-section-heading{flex-wrap:wrap;align-items:flex-start}
 #page .flow-shell--billing .tk-bill-selection-count{white-space:normal}
 #page .flow-shell--billing .tk-bill-mark{white-space:normal!important;max-width:100%;width:100%;line-height:1.4;text-align:center}
}

/* BRIT Flow · Ticket settings workspace 2026-11-02 */
body:has(#page .flow-shell--settings) main.content>.top{display:none!important}
#page .flow-shell--settings{display:flex;flex-direction:column;gap:20px;min-width:0}
#page .flow-shell--settings .tk-settings-hero{min-height:170px;position:relative}
#page .flow-shell--settings .tk-settings-hero-symbol{display:inline-flex;align-items:center;justify-content:center;width:62px;height:62px;flex-shrink:0;background:rgba(255,255,255,.09);color:#9edb70;border:1px solid rgba(255,255,255,.14);border-radius:18px}
#page .flow-shell--settings .tk-settings-workspace{background:#fff;border:1px solid #e1ebe4;border-radius:20px;box-shadow:0 12px 36px rgba(11,48,25,.035);padding:26px;min-width:0}
#page .flow-shell--settings .tk-settings-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 18px;gap:16px}
#page .flow-shell--settings .tk-settings-heading h2{color:#183a29;font-size:23px;font-weight:800;letter-spacing:-.035em;margin:8px 0 5px}
#page .flow-shell--settings .tk-settings-heading p{color:#7c9283;font-size:12.5px;line-height:1.5;margin:0}
#page .flow-shell--settings .tk-settings-workspace>.field{margin:0 0 18px!important;max-width:430px!important}
#page .flow-shell--settings .tk-settings-workspace>.field label{color:#416049;font-size:12px;font-weight:750}
#page .flow-shell--settings .tk-settings-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0 0 18px;border-bottom:1px solid #e4eee7}
#page .flow-shell--settings .tk-settings-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #e0ede3;border-radius:11px!important;background:#f5faf6;color:#35644a;padding:10px 13px;font-size:12px;font-weight:730;white-space:nowrap;box-shadow:none;transition:background .16s,border-color .16s,transform .16s}
#page .flow-shell--settings .tk-settings-tabs button:hover:not(.tk-settings-active){background:#e8f5eb;border-color:#c9e0d0;transform:translateY(-1px)}
#page .flow-shell--settings .tk-settings-tabs button.tk-settings-active{background:#278846!important;border-color:#278846!important;color:#fff!important;box-shadow:0 6px 14px rgba(32,131,67,.15)}
#page .flow-shell--settings .tk-settings-tabs svg{flex-shrink:0}
#page .flow-shell--settings .tk-settings-pane{max-width:none;width:100%;border:1px solid #e3ece5;border-radius:16px;background:#fff;padding:24px;min-width:0;box-shadow:0 5px 20px rgba(14,50,28,.025)}
#page .flow-shell--settings .tk-settings-pane>h3{font-size:18px;color:#1d3f2c;letter-spacing:-.02em}
#page .flow-shell--settings .tk-settings-pane>.tk-section-title{max-width:none}
#page .flow-shell--settings .tk-settings-pane .tk-section-title h3{color:#1c3e2a}
#page .flow-shell--settings .tk-settings-pane .tk-section-title p{color:#809285}
#page .flow-shell--settings .tk-settings-pane .tk-catalog-row,#page .flow-shell--settings .tk-settings-pane .tk-catalog-card{border-radius:12px}
#page .flow-shell--settings :is(input,select,textarea):focus-visible{outline:3px solid rgba(65,169,96,.21);outline-offset:1px;border-color:#328e53}
@media(max-width:900px){#page .flow-shell--settings .tk-settings-workspace{padding:18px}#page .flow-shell--settings .tk-settings-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:14px}#page .flow-shell--settings .tk-settings-tabs button{flex-shrink:0}}
@media(max-width:600px){#page .flow-shell--settings .tk-settings-workspace{padding:12px;border-radius:16px}#page .flow-shell--settings .tk-settings-hero-symbol{display:none}#page .flow-shell--settings .tk-settings-pane{padding:15px}#page .flow-shell--settings .tk-settings-heading{padding:7px 5px}#page .flow-shell--settings .tk-settings-heading h2{font-size:20px}}

/* Billing: per-position checkboxes and customer typeahead search */
#page .flow-shell--billing #tkBillCustomer{background:#fff;appearance:auto}
#page .flow-shell--billing #tkBillCustomerHint{font-size:11px;line-height:1.45;color:#849988}
#page .flow-shell--billing .tk-bill-entry-all{display:flex;align-items:center;gap:9px;padding:10px 12px;background:#f4faf6;border:1px solid #d8eadc;border-radius:11px;color:#356847;font-size:12px;font-weight:760;white-space:nowrap;cursor:pointer}
#page .flow-shell--billing .tk-bill-entry-all input,#page .flow-shell--billing .tkBillEntry{appearance:auto!important;width:17px!important;height:17px!important;min-height:17px!important;accent-color:#258947;cursor:pointer;margin:0!important;flex-shrink:0}
#page .flow-shell--billing .tk-bill-table .tk-bill-position-col{width:70px;min-width:70px;text-align:center!important}
#page .flow-shell--billing .tk-bill-entry-excluded td{opacity:.45;background:#fafbfa}
#page .flow-shell--billing .tk-bill-entry-excluded .tkBillEntry{opacity:1}
@media(max-width:760px){#page .flow-shell--billing .tk-bill-details-section .tk-bill-section-heading{gap:14px;align-items:stretch}#page .flow-shell--billing .tk-bill-entry-all{justify-content:center;white-space:normal}}
#page .flow-shell--settings .tk-settings-workspace,#page .flow-shell--settings .tk-settings-pane{box-sizing:border-box}
#page .flow-shell--settings .tk-settings-tabs .tk-settings-active{background:#278846!important;border-color:#278846!important;color:#fff!important}


/* Ticket title description: render above scrollable table rather than inside the row. */
#tkTitlePreviewPortal[hidden]{display:none!important}
#tkTitlePreviewPortal.tk-title-floating-preview{position:fixed;z-index:9000;box-sizing:border-box;max-height:min(320px,calc(100vh - 24px));overflow-y:auto;overscroll-behavior:contain;background:#fff;color:#263e30;border:1px solid #d7e6da;border-radius:14px;box-shadow:0 18px 48px rgba(17,48,29,.22);padding:15px 17px;text-align:left;font-size:13px;line-height:1.55;white-space:normal;overflow-wrap:anywhere;pointer-events:auto;scrollbar-width:thin}
#tkTitlePreviewPortal.tk-title-floating-preview strong{display:block;color:#173e28;font-size:13px;font-weight:800;margin-bottom:8px}
#tkTitlePreviewPortal .tk-title-floating-content{white-space:pre-wrap;overflow-wrap:anywhere;color:#365344}
#tkTicketRows .tk-title-hover{cursor:help}
#tkTicketRows .tk-title-hover:focus-visible{outline:2px solid #4c9f69;outline-offset:4px;border-radius:3px}
@media(max-width:560px){#tkTitlePreviewPortal.tk-title-floating-preview{padding:12px 14px;max-height:min(280px,calc(100vh - 24px))}}
