@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Unified Theme Colors - SAGE (Default) */
  --primary-color: #1e3337;
  --secondary-color: #a2c5b2;
  --accent-color: #afce7c;
  --page-bg: #faf8f7;

  --theme-light: var(--secondary-color);
  --theme-gold: var(--accent-color);
  --theme-earth-dark: color-mix(in srgb, var(--page-bg) 90%, var(--primary-color));
  --theme-earth-light: var(--page-bg);

  --theme-text-on-dark: var(--secondary-color);
  --theme-text-on-light: var(--primary-color);

  /* Brand Colors */
  --brand-primary: var(--primary-color);
  --brand-primary-hover: color-mix(in srgb, var(--primary-color) 85%, white);
  --brand-accent: var(--secondary-color);
  --brand-accent-hover: color-mix(in srgb, var(--secondary-color) 85%, white);
  --all-tickets-color: var(--accent-color);
  --btn-add-ticket: var(--accent-color);
  --brand-success: var(--btn-add-ticket);
  --brand-success-hover: color-mix(in srgb, var(--accent-color) 85%, white);

  /* Layout Backgrounds */

  --header-bg: var(--primary-color);
  --nav-top-active-bg: var(--secondary-color);
  --nav-sub-bg: var(--secondary-color);
  --sidebar-header-bg: var(--primary-color);

  /* Font Colors */
  --font-header: var(--secondary-color);
  --font-header-plain: #e2e8f0;
  --header-font-color: var(--secondary-color);
  --font-nav-top-active: var(--primary-color);
  --font-nav-top-hover: white;
  --font-nav-top-inactive: var(--secondary-color);
  --font-nav-sub: var(--primary-color);
  --font-nav-sub-hover: white;
  --font-main: var(--primary-color);
  --font-muted: #64748b;
  --font-meta: #888;
  --link-color: var(--primary-color);

  /* Font Styling */
  --font-family-nav: inherit;
  --font-size-nav: 11px;
  --font-weight-active: bold;

  /* Logo & Top Header */
  --logo-font-size: 27px;
  --logo-font-color: var(--accent-color);
  --userinfo-font-size: 11px;
  --userinfo-font-color: var(--secondary-color);

  /* UI Neutrals & Borders */
  --color-border: color-mix(in srgb, var(--page-bg) 80%, var(--primary-color));
  --color-border-light: color-mix(in srgb, var(--page-bg) 90%, var(--primary-color));
  --color-bg-soft: color-mix(in srgb, var(--page-bg) 93%, var(--primary-color));
  --color-gray-dark: #35383e;
  --color-gray-medium: #666;
  --color-gray-soft: #aaa;

  /* Table & List Centralization */
  --table-header-bg: var(--primary-color);
  --table-header-font: var(--theme-gold);
  --table-row-odd: white;
  --table-row-even: color-mix(in srgb, var(--page-bg) 60%, var(--secondary-color));
  --table-body-font: var(--primary-color);
  --table-border: rgba(0, 0, 0, 0.1);
  --table-row-hover: var(--theme-light);

  /* Badges */
  --badge-new-bg: #dd5959;
  --badge-closed-bg: #888;
  --badge-updated-bg: #E9A36B;
  --badge-tech-bg: #70c45c;
  --badge-fortech-bg: #5c9ec4;

  --list-header-bg: var(--primary-color);
  --list-header-font: var(--theme-gold);
  --list-body-bg: #ffffff;
  --list-body-font: var(--primary-color);
  --list-item-hover: var(--theme-light);

  /* Status Colors */
  --status-new-bg: #3498db;
  --status-inprogress-bg: #e67e22;
  --status-waiting-bg: #9b59b6;
  --status-resolved-bg: #27ae60;
  --status-closed-bg: #95a5a6;
  --status-critical-bg: #AD1818;
  --status-high-bg: #e74c3c;
  --status-normal-bg: #2ecc71;
  --status-low-bg: #95a5a6;
  --ticket-status-color: var(--text-normal);
  --priority-normal-color: #1a7a3c;
  --priority-high-color: #c0392b;
  --priority-critical-color: #ffffff;
  --priority-critical-bg: #AD1818;
  --priority-low-color: #666666;

  /* Project Specifics */
  --project-card-bg: var(--bg-card);
  --project-card-header: var(--primary-color);
  --project-card-font: #ffffff;
  --project-card-border: var(--border-default);
  --project-card-shadow: rgba(0, 0, 0, 0.1);
  --status-eta-color: #AD1818;
  --status-date-color: var(--primary-color);
  --progress-bg: #e9ecef;
  --progress-fill: var(--accent-color);
  --card-list-item-bg: transparent;
  --radiobox-bg: #ffffff;
  --radiobox-border: #dddddd;
  --radiobox-font-color: var(--primary-color);
  --radiobox-checked-bg: #eaeced;
  --radiobox-checked-font: #000000;

  /* Button Types */
  --btn-gold-bg: var(--accent-color);
  --btn-gold-text: #ffffff;
  --btn-dark-bg: var(--primary-color);
  --btn-dark-text: var(--secondary-color);
  --btn-dark-hover-bg: var(--secondary-color);
  --btn-dark-hover-text: var(--primary-color);
  --btn-dark-hover-border: var(--primary-color);
  --btn-white-bg: #ffffff;
  --btn-white-text: var(--primary-color);
  --btn-red-bg: #e74c3c;
  --btn-red-text: #ffffff;
  --btn-light-bg: var(--secondary-color);
  --btn-light-text: var(--primary-color);
  --btn-light-hover-bg: var(--primary-color);
  --btn-light-hover-text: var(--secondary-color);
  --btn-light-hover-border: var(--primary-color);
  --btn-radius: 8px;
  --btn-base-bg: var(--primary-color);
  --btn-base-text: var(--secondary-color);
  --btn-base-border: var(--primary-color);
  --btn-base-hover-bg: var(--secondary-color);
  --btn-base-hover-text: var(--primary-color);
  --btn-base-hover-border: var(--primary-color);

  /* Pagination */
  --pagination-active-bg: var(--primary-color);
  --pagination-active-text: #ffffff;
  --pagination-bg: transparent;
  --pagination-text: var(--text-normal);
  --pagination-border: var(--border-default);
  --pagination-radius: 3px;

  /* Typography Design System */
  --font-family-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-headlines: 'Outfit', sans-serif;
  --font-size-main: 13px;
  --font-size-h1: 28px;
  --font-size-h2: 20px;
  --font-size-h3: 16px;

  --headline-color: var(--primary-color);
  --headline1-color: var(--primary-color);
  --headline2-color: var(--primary-color);
  --headline3-color: var(--theme-light);
  --text-normal: var(--primary-color);
  --text-muted: #64748b;
  --text-meta: #888;

  --link-color: var(--primary-color);
  --link-hover: color-mix(in srgb, var(--primary-color) 80%, black);

  --hr-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
  --border-default: var(--color-border);
  --bg-page: var(--page-bg);
  --bg-card: var(--theme-earth-dark);
  --color-bg-light: var(--theme-earth-dark);
  --color-bg-alt: var(--theme-earth-dark);
  --category-section-bg: color-mix(in srgb, var(--primary-color) 30%, var(--page-bg));
  --category-section-text: var(--primary-color);
  --category-hover-bg: var(--color-bg-light);
  --richeditor-dropdown-hover-bg: var(--color-bg-light);
  --footer-text: var(--secondary-color);
  --footer-bg: var(--primary-color);
  --footer-logo-filter: brightness(0) invert(0.8);
  --footer-link-hover: #ffffff;
  --row-font-color: var(--primary-color);
  --row-hover-bg: var(--theme-light);
  --row-hover-font: var(--primary-color);
  --kb-icon-color: var(--brand-primary);
  --quicktab-bg: var(--bg-page);
  --quicktab-font: var(--primary-color);
  --quicktab-border: var(--border-default);
  --quicktab-hover-bg: var(--theme-light);
  --quicktab-hover-font: var(--primary-color);
  --quicktab-hover-border: var(--primary-color);
  --quicktab-active-bg: var(--primary-color);
  --quicktab-active-font: #fff;
  --quicktab-active-border: var(--primary-color);
  --chart-color-1: #1e3337;
  --chart-color-2: #ceb27c;
  --chart-color-3: #a2c5b2;
  --chart-color-4: #e74c3c;
  --chart-color-5: #2980b9;
  --chart-text-color: #333333;
  --toggle-bg: #EAEAEA;
  --toggle-border: #CCCCCC;
  --toggle-switch-bg: #FFFFFF;
  --toggle-switch-border: #CCCCCC;
  --toggle-checked-bg: var(--theme-light);
  --toggle-checked-border: var(--primary-color);
  --filter-icon-color: var(--primary-color);
  --login-btn-bg: var(--accent-color);
  --login-btn-text: #ffffff;
  --google-btn-bg: #ffffff;
  --google-btn-text: #444444;
  --loader-color: var(--accent-color);
  --dropdown-bg: #ffffff;
  --dropdown-text: var(--text-normal);
  --dropdown-border: var(--border-default);
  --placeholder-color: #999;
  /* lighter placeholder for better contrast */
  --input-bg: #ffffff;
  --input-color: #212529;
  /* dark text for user input */
  --input-option-bg: #ffffff;
  --input-option-color: #212529;
  --multiselect-btn-bg: #f5f5f5;
  --multiselect-btn-color: #555;
  --multiselect-btn-border: #ccc;
  --multiselect-menu-bg: #ffffff;
  --multiselect-menu-text: var(--text-normal);
  --multiselect-header-bg: #f0f0f0;
  --multiselect-header-text: var(--text-normal);
  --multiselect-group-bg: #f7f7f7;
  --multiselect-group-text: #666;
  --multiselect-hover-bg: #e8e8e8;
  /* Editor & popup backgrounds */
  --editbar-bg: #eaeced;
  --editbar-border: #dadddd;
  --editbar-btn-bg: #eaeced;
  --editbar-btn-hover-bg: #fff;
  --editbar-btn-color: #777;
  --richeditor-iframe-bg: #fff;
  --filter-box-bg: #fafafa;
  --filter-box-notch: #fafafa;
  --filter-box-border: #dadddd;
  --tags-bg: #e9e9f2;
  --tags-border: #E2E2E2;
  --tags-color: gray;
  --tooltip-bg: #fafafa;
  --tooltip-border: #dadddd;
  --comment-system-bg: #edeced;
  --comment-system-color: #666;
  --separator-bg: #f0f0f0;
  --graybutton-bg: #eaecef;
  --graybutton-border: #dadddd;
  --graybutton-color: #717171;
  --graybutton-hover-bg: #fff;
  --admintable-btn-bg: #eaecef;
  --admintable-btn-border: #dadddd;
  --admintable-btn-color: #717171;
  --admintable-separator: #E2E5E7;
  --tfoot-bg: #eaeced;
  --tfoot-link: #475665;
  --tfoot-li-border-right: #c0ccd4;
  --tfoot-li-border-left: #e4e7e8;
  --highlight-bg: #feffd5;
  --newbutton-bg: #6f9a43;
  --newbutton-hover-bg: #81B34E;
  --bluebutton-color: var(--text-normal);
  --bluebutton-border: var(--border-default);
  --bluebutton-bg: var(--color-bg-alt);
  --transparentbutton-color: #666;
  --breadcrumbs-span-color: #666666;
  --breadcrumbs-a-color: var(--primary-color);
  --admindesc-color: #a2a2a2;
  --issuetbl-h2: #475665;
  --issuetbl-btn-bg: #eaecef;
  /* Ticket card header: bright on dark SAGE bg */
  --tkt-header-text: #d6eadf;
  --tkt-header-icon: #afce7c;
  --issuetbl-btn-border: #dadddd;
  --issuetbl-btn-color: #717171;
  --issuetbl-editor-color: #a2a2a2;
  --issuetbl-grey: #a2a2a2;
  --tktcomment-meta-color: #a2a2a2;
  --tktcomment-date-a: #a2a2a2;
  --newcomment-border: #dadddd;
  --subscriber-border: #dadddd;
  --subscriber-tech-border: #b6d2af;
  --toolbar-status-bg: #eaecef;
  --toolbar-status-border: #dadddd;
  --toolbar-status-color: #717171;
  --atwho-bg: #fafafa;
  --atwho-color: #666;
  --atwho-cur-bg: #4c5b6b;
  --atwho-strong: #4c5b6b;
  --tk-input-border: #cbd5e1;
  --tk-input-bg: #fff;
  --tk-input-color: #334155;
  --tk-btn-secondary-bg: #f1f5f9;
  --tk-btn-secondary-color: #475569;
  --tk-btn-secondary-border: #cbd5e1;
  --tk-btn-secondary-hover-bg: #e2e8f0;
  --tk-btn-secondary-hover-color: #334155;
  --tk-subject-color: #2471a3;
  --tk-subject-hover: #1a5276;
  --tk-meta-color: #888;
  --tk-meta-icon: #bbb;
  --tk-id-color: #888;
  --tk-date-color: #555;
  --tk-tech-color: #444;
  --tk-unassigned-color: #bbb;
  --tk-empty-color: #aaa;
  --trday-color: #666;
  --lightbg: #fafafa;
  --darkbg: #e9e9f2;
}

[data-theme='classic'] {
  /* Unified Theme Colors - CLASSIC */
  --primary-color: #595868;
  --secondary-color: #fffaeb;
  --accent-color: #ceb27c;

  --theme-light: var(--secondary-color);
  --theme-gold: var(--accent-color);
  --theme-earth-dark: color-mix(in srgb, var(--page-bg) 90%, var(--primary-color));
  --theme-earth-light: var(--page-bg);

  --theme-text-on-dark: var(--secondary-color);
  --theme-text-on-light: var(--primary-color);

  /* Ticket card header: warm cream on classic mid-grey header bg */
  --tkt-header-text: #fffaeb;
  --tkt-header-icon: #ceb27c;
}

[data-theme='dark'] {
  /* Unified Theme Colors - DARK */
  --primary-color: #1a1d23;
  --secondary-color: #e2e8f0;
  --accent-color: #60a5fa;
  --page-bg: #0f1117;

  --theme-light: #2d3748;
  --theme-gold: #60a5fa;
  --theme-earth-dark: #1e2230;
  --theme-earth-light: #1a1d23;

  --theme-text-on-dark: #e2e8f0;
  --theme-text-on-light: #0f1117;

  /* Layout */
  --header-bg: #1a1d23;
  --bg-page: #0f1117;
  --bg-card: #1e2230;
  --color-bg-soft: #1e2230;
  --color-bg-alt: #1e2230;
  --color-bg-light: #1e2230;
  --border-default: #2d3748;
  --color-border: #2d3748;
  --color-border-light: #252a38;

  /* Text */
  --text-normal: #e2e8f0;
  --text-muted: #94a3b8;
  --text-meta: #64748b;
  --font-main: #e2e8f0;
  --headline-color: #e2e8f0;
  --link-color: #60a5fa;

  /* Ticket card header: soft off-white title, neutral border-toned icon on near-black header */
  --tkt-header-text: #e2e8f0;
  --tkt-header-icon: var(--btn-base-border);

  /* Table */
  --table-header-bg: #1a1d23;
  --table-header-font: #94a3b8;
  --table-row-odd: #1e2230;
  --table-row-even: #252a38;
  --table-body-font: #e2e8f0;
  --table-border: rgba(255, 255, 255, 0.06);
  --table-row-hover: #2d3748;

  /* Inputs */
  --input-bg: #252a38;
  --input-color: #e2e8f0;
  --tk-input-bg: #252a38;
  --tk-input-color: #e2e8f0;
  --tk-input-border: #2d3748;

  /* Buttons */
  --issuetbl-btn-bg: #252a38;
  --issuetbl-btn-border: #2d3748;
  --issuetbl-btn-color: #94a3b8;
  --issuetbl-h2: #94a3b8;

  /* Misc */
  --bluebutton-bg: #252a38;
  --bluebutton-border: #2d3748;
  --bluebutton-color: #e2e8f0;
  --separator-bg: #2d3748;
  --lightbg: #1e2230;
  --darkbg: #252a38;
  --dropdown-bg: #1e2230;
  --dropdown-text: #e2e8f0;
  --dropdown-border: #2d3748;
  --tooltip-bg: #1e2230;
  --tooltip-border: #2d3748;
  --comment-system-bg: #1e2230;
  --comment-system-color: #94a3b8;
  --editbar-bg: #252a38;
  --editbar-border: #2d3748;
  --editbar-btn-bg: #252a38;
  --editbar-btn-hover-bg: #1e2230;
  --editbar-btn-color: #94a3b8;
}


/* reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
input,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* base */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--page-bg);
  color: var(--text-normal);
  font-family: var(--font-family-main);
  font-size: var(--font-size-main);
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-family-headlines);
  color: var(--headline-color);
  padding-top: 0px;
  font-weight: 600;
}

h1 {
  font-size: var(--font-size-h1);
  color: var(--headline1-color);
  padding-bottom: 20px;
}

h2 {
  font-size: var(--font-size-h2);
  color: var(--headline2-color);
  padding-bottom: 10px;
}

h3 {
  font-size: var(--font-size-h3);
  color: var(--headline3-color);
  padding-bottom: 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.15s ease;
  outline: 0;
}


a:hover,
a:focus {
  color: var(--link-hover);
}

p {
  margin-bottom: 20px;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--hr-color);
  clear: both;
}

code,
pre {
  font-family: monospace;
  overflow-x: auto;
}

pre {
  white-space: pre;
  display: block;
}

code {
  display: inline;
}

input[type=submit],
button,
a.button,
.btn-gold,
.btn-dark,
.btn-red,
.redbutton {
  font-family: var(--font-family-headlines);
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--btn-base-border);
  border-radius: var(--btn-radius);
  color: var(--btn-base-text);
  padding: 0 20px;
  cursor: pointer;
  margin: 0;
  margin-right: 8px;
  background: var(--btn-base-bg);
  vertical-align: middle;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

input[type=submit]:hover,
button:hover,
a.button:hover,
.btn-gold:hover,
.btn-dark:hover,
.btn-red:hover,
.redbutton:hover {
  background-color: var(--btn-base-hover-bg);
  color: var(--btn-base-hover-text);
  border-color: var(--btn-base-hover-border);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button Variants */
.btn-gold,
input[type=submit].btn-gold,
button.btn-gold,
a.button.btn-gold {
  background-color: var(--btn-gold-bg) !important;
  color: var(--btn-gold-text) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4) !important;
  font-family: var(--font-family-headlines) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  height: 30px !important;
  font-size: 11px !important;
  padding: 0 15px !important;
}

.btn-gold:hover,
input[type=submit].btn-gold:hover,
button.btn-gold:hover,
a.button.btn-gold:hover {
  background-color: var(--brand-success-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.btn-dark,
input[type=submit].btn-dark,
button.btn-dark,
a.button.btn-dark {
  background-color: var(--btn-dark-bg) !important;
  color: var(--btn-dark-text) !important;
  border: 1px solid var(--btn-dark-bg) !important;
}

.btn-dark:hover,
input[type=submit].btn-dark:hover,
button.btn-dark:hover,
a.button.btn-dark:hover {
  background-color: var(--btn-dark-hover-bg) !important;
  color: var(--btn-dark-hover-text) !important;
  border-color: var(--btn-dark-hover-border) !important;
  transform: translateY(-1px);
}

.btn-red,
.redbutton,
input[type=submit].redbutton,
button.redbutton,
a.button.redbutton {
  background-color: var(--btn-red-bg) !important;
  color: var(--btn-red-text) !important;
  border: 1px solid var(--btn-red-bg) !important;
}

.btn-light,
input[type=submit].btn-light,
button.btn-light,
a.button.btn-light {
  background-color: var(--btn-light-bg) !important;
  color: var(--btn-light-text) !important;
  border: 1px solid var(--primary-color) !important;
}

.btn-light:hover,
input[type=submit].btn-light:hover,
button.btn-light:hover,
a.button.btn-light:hover {
  background-color: var(--btn-light-hover-bg) !important;
  color: var(--btn-light-hover-text) !important;
  border-color: var(--btn-light-hover-border) !important;
  transform: translateY(-1px);
}

.btn-white,
input[type=submit].btn-white,
button.btn-white,
a.button.btn-white {
  background-color: var(--btn-white-bg) !important;
  color: var(--btn-white-text) !important;
  border: 1px solid var(--border-default) !important;
}

.btn-white:hover,
input[type=submit].btn-white:hover,
button.btn-white:hover,
a.button.btn-white:hover {
  background-color: var(--color-bg-light) !important;
  transform: translateY(-1px);
}

/* Primary Button Variants (Global) */
.btn-primary,
.primary-btn,
input[type=submit].btn-primary,
button.btn-primary,
a.button.btn-primary,
input[type=submit].primary-btn,
button.primary-btn,
a.button.primary-btn {
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: var(--btn-radius) !important;
  transition: all 0.25s ease !important;
}

.btn-primary:hover,
.primary-btn:hover,
input[type=submit].btn-primary:hover,
button.btn-primary:hover,
a.button.btn-primary:hover,
input[type=submit].primary-btn:hover,
button.primary-btn:hover,
a.button.primary-btn:hover {
  background-color: var(--brand-primary-hover) !important;
  color: #ffffff !important;
  border-color: var(--brand-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#Login {
  background-color: var(--login-btn-bg) !important;
  color: var(--login-btn-text) !important;
  width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  border-radius: 6px !important;
  border: none !important;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#Login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-google-login {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  border: 1px solid var(--color-border) !important;
  background: var(--google-btn-bg) !important;
  color: var(--google-btn-text) !important;
  text-decoration: none;
  border-radius: 6px !important;
  font-family: var(--font-family-headlines);
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-top: 5px;
}

.btn-google-login:hover {
  background: var(--color-bg-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-google-login img {
  width: 18px;
  margin-right: 12px;
}

input[type=submit],
input[type=text],
input[type=email],
input[type=password] {
  -webkit-appearance: none;
}

a.button {
  display: inline-block;
  box-sizing: border-box;
  line-height: 25px;
}

th a.button {
  margin: 0;
  box-sizing: border-box;
  line-height: 19px;
  height: 20px;
  padding: 0 7px;
  font-size: 12px;
}

input[type="checkbox"],
input[type="radio"] {
  vertical-align: middle;
}

/*align check boxes with text */
input[type="checkbox"]:focus {
  box-shadow: none;
}

input[type="checkbox"] {
  margin-right: 5px;
}

input[type=text],
input[type=number],
input[type=password],
input[type=email],
input[type=file],
input[type=url],
select,
textarea,
input.ac_input {
  border: 1px solid var(--dropdown-border);
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 6px;
  background: var(--input-bg);
  color: var(--input-color);
  margin-right: 5px;
  box-sizing: border-box;
}

select option {
  background: var(--input-option-bg);
  color: var(--input-option-color);
}

input[type=number] {
  width: 100px;
}

input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly],
.disabled,
.disabledPlan,
.disabledTrial {
  cursor: not-allowed !important;
  background-color: var(--color-bg-soft);
  color: var(--color-gray-soft);
}

label.disabled {
  background-color: initial;
}

select {
  height: 26px;
  padding: 0;
}

select.grey {
  height: 23px;
}

.ui-multiselect {
  height: 26px;
  box-shadow: none;
  vertical-align: baseline;
  font-size: 13px;
}

.radiobox {
  display: inline-block;
  box-shadow: 0 1px 12px -2px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  background-color: var(--radiobox-bg);
  border: 1px solid var(--radiobox-border);
}

.radiobox input[type=radio] {
  display: none;
}

.radiobox label {
  border-left: 1px solid var(--radiobox-border);
  margin: 0;
  display: inline-block;
  padding: 8px 10px;
  color: var(--radiobox-font-color);
  cursor: pointer;
  line-height: 17px;
}

.radiobox label:hover {
  color: var(--primary-color);
}

.radiobox label:first-of-type {
  border: none;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.radiobox input[type="radio"]:checked+label {
  background-color: var(--radiobox-checked-bg);
  color: var(--radiobox-checked-font);
}

.radiobox label:last-of-type {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a.button:focus {
  box-shadow: 0 0 6px 0px rgba(0, 0, 0, 0.2);
  outline: none;
}

::-webkit-input-placeholder {
  color: var(--placeholder-color);
}

:-moz-placeholder {
  color: var(--placeholder-color);
  opacity: 1;
}

::-moz-placeholder {
  color: var(--placeholder-color);
  opacity: 1;
}

:-ms-input-placeholder {
  color: var(--placeholder-color);
}

th {
  height: 14px;
  font-weight: normal;
  font-size: 11px;
  background-color: var(--primary-color);
  text-align: left;
  color: var(--headline3-color);
  padding: 12px 20px 10px;
  border-bottom: 1px solid #e3e3e3;
  vertical-align: middle;
  text-transform: uppercase;
}

th {
  /*reset is back for th-children*/
}

th h3,
th button,
th span {
  text-transform: none;
}

td {
  padding: 7px 20px;
}

table:not(.commentsTbl):not(.horizseparated):not(#maintable) tr:first-of-type>td {
  padding-top: 20px;
}

/*always bigger padding on 1st row, looks nice on login, admin homepage etc*/
table:not(.commentsTbl):not(.horizseparated):not(#maintable) tr:last-of-type>td {
  padding-bottom: 20px;
}

.fa {
  opacity: 0.8;
}

[v-cloak] {
  display: none;
}

/* hide VUE compnent while VUE is still figuring them out*/
/* grey & small */
.grey {
  color: var(--font-muted);
  font-size: 12px;
}

.grey2 {
  color: var(--text-meta);
  font-size: 11px !important;
  line-height: 1.4;
}

.grey2 .fa {
  color: var(--text-muted);
}

a.grey {
  color: var(--text-muted);
  font-size: 11px;
  text-decoration: underline;
}

a.grey:hover {
  text-decoration: none;
}

a.grey2 {
  color: #8e8e8e;
  font-size: 10px !important;
  line-height: 12px;
  border-bottom: 1px dotted #ccc;
}

a.grey2:hover {
  border-bottom: none;
}

table.grey2 td {
  padding: 2px 0;
  vertical-align: middle;
  text-align: center;
}

p {
  color: var(--color-gray-medium);
  font-size: 11px;
}

.greyer {
  color: #a2a2a2;
}

.newbutton,
input[type=submit].newbutton,
a.newbutton {
  background: var(--newbutton-bg);
  filter: none;
  margin-right: 0;
  box-shadow: none;
  white-space: nowrap;
  border: none;
}

.newbutton:hover,
input[type=submit].newbutton:hover,
a.newbutton:hover,
.newbutton:focus,
input[type=submit].newbutton:focus,
a.newbutton:focus {
  background-color: var(--newbutton-hover-bg);
  filter: none;
  border: none;
}

.bluebutton,
input[type=submit].bluebutton,
a.bluebutton {
  color: var(--bluebutton-color);
  border: 1px solid var(--bluebutton-border);
  text-shadow: none;
  background: var(--bluebutton-bg);
}

.bluebutton:hover,
input[type=submit].bluebutton:hover,
a.bluebutton:hover {
  background-color: var(--theme-light);
  border-color: var(--theme-light);
}

.bluebutton:active,
input[type=submit].bluebutton:active,
a.bluebutton:active {
  background-color: #afe2f5;
}

.bluebutton::-moz-focus-inner,
input[type=submit].bluebutton::-moz-focus-inner,
a.bluebutton::-moz-focus-inner {
  margin: -1px;
}

.graybutton,
input[type=submit].graybutton,
a.graybutton {
  background-color: var(--graybutton-bg);
  border: 1px solid var(--graybutton-border);
  color: var(--graybutton-color);
  text-shadow: none;
}

.graybutton:hover,
input[type=submit].graybutton:hover,
a.graybutton:hover {
  background-color: var(--graybutton-hover-bg);
  border-color: var(--graybutton-border);
}

.graybutton:active,
input[type=submit].graybutton:active,
a.graybutton:active {
  background-color: var(--graybutton-bg);
}

.redbutton,
input[type=submit].redbutton,
a.redbutton {
  color: #fff;
  background-color: #CC1A19;
  border: 1px solid #CC1A19;
}

.redbutton:hover,
input[type=submit].redbutton:hover,
a.redbutton:hover {
  background-color: #a00;
  border: 1px solid #a00;
}

.transparentbutton,
input[type=submit].transparentbutton {
  color: var(--transparentbutton-color);
  font-size: 11px;
  background: none;
  filter: none;
  text-shadow: none;
  border: none;
  font-weight: normal;
}

.transparentbutton:hover,
input[type=submit].transparentbutton:hover {
  text-decoration: underline;
}

#content {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -50px;
}

.pushFooter {
  height: 50px;
}

/* logo */
.footer {
  color: var(--footer-text);
  font-size: 11px;
  background-color: var(--footer-bg);
  width: 100%;
  height: 50px;
  line-height: 50px;
  font-size: 11px !important;
  border-top: 1px solid var(--hr-color);
  clear: both;
  overflow: hidden;
}

.footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer a:hover {
  color: var(--footer-link-hover) !important;
  text-decoration: underline;
}

.footer img {
  vertical-align: middle;
  -webkit-transition: -webkit-transform 0.8s ease-in-out;
  transition: transform 0.8s ease-in-out;
}

.footer .poweredBy {
  float: right;
  margin-right: 30px;
}

.footer .poweredBy .logo {
  width: 24px;
  filter: var(--footer-logo-filter, none);
}

.footer .help {
  margin-left: 30px;
}

.footer .help img {
  margin-right: 9px;
}

.footer a:hover img {
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}

.toparea {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  box-shadow: 0 1px 12px -2px rgba(0, 0, 0, 0.15);
  background-color: var(--color-bg-light);
  margin-bottom: 20px;
  padding: 20px;
}

/* header */
#divBigHeader {
  background: var(--header-bg);
  color: var(--header-font-color);
  margin-bottom: 0 !important;
}

#divBigHeader .topheader {
  overflow: hidden;
  padding: 0 30px;
  padding-top: 5px;
  font-size: 12px;
}

#divBigHeader .topheader #userinfo a {
  color: var(--logo-font-color);
}

#divBigHeader .topheader #userinfo a:hover,
#divBigHeader .topheader #userinfo a:focus {
  color: var(--theme-light);
}

#divBigHeader .topheader #logo {
  float: left;
  margin-bottom: 4px;
  width: 35%;
}

#divBigHeader .topheader #logo img {
  height: 54px;
  margin-right: 18px;
  margin-bottom: -18px;
}

#divBigHeader .topheader #logo span {
  font-weight: bold;
}

#divBigHeader .topheader #logo #spanTitle {
  font-size: var(--logo-font-size);
  color: var(--logo-font-color);
}

#divBigHeader .topheader #logo>a {
  text-decoration: none;
}

#divBigHeader .topheader #userinfo {
  color: var(--userinfo-font-color);
  font-size: var(--userinfo-font-size);
  float: right;
}



#divBigHeader .topheader #divRecent {
  position: absolute;
  display: none;
  z-index: 1000;
  padding: 10px;
}

#divBigHeader .topheader #divRecent ul {
  list-style-image: url(../images/triangle.png);
  margin-left: 13px;
}

#divBigHeader .topheader #divRecent li {
  padding: 6px 0;
}

#divBigHeader .divSearch {
  float: right;
  margin-left: 20px;
  position: relative;
}

#divBigHeader .divSearch a {
  position: absolute;
  color: var(--header-font-color);
  top: 3px;
  left: 9px;
}

#divBigHeader .divSearch input {
  height: 24px;
  line-height: 24px;
  width: 200px;
  border: 1px solid var(--primary-color);
  background: rgba(0, 0, 0, 0.1);
  color: var(--font-header);
  font-size: 11px;
  padding: 0;
  padding-left: 28px;
  margin-right: 0;
  border-radius: 4px;
}

#divBigHeader .divSearch input:focus {
  background: var(--primary-color);
}

#divBigHeader .divSearch input::-webkit-input-placeholder {
  color: #777;
}

#divBigHeader .divSearch input:-moz-placeholder {
  color: #777;
}

#divBigHeader .divSearch input::-moz-placeholder {
  color: #777;
}

#divBigHeader .divSearch input:-ms-input-placeholder {
  color: #777;
}

#divBigHeader #newTicket {
  float: right;
}

#divBigHeader #newTicket a.btn-gold,
#divBigHeader #newTicket a.button {
  height: 24px;
  padding: 0 12px;
  font-size: 11px;
  margin-top: 1px;
}

.announcementbar {
  display: none;
  background-color: #feffd5;
  padding: 7px 30px;
}

.announcementClose {
  float: right;
}

.announcementbar.announcementerror {
  background-color: #A63232;
  color: #fff;
}

.announcementbar.announcementerror a {
  color: #fff;
  text-decoration: underline;
}

/* end header */
.tabmenu {
  float: left;
  width: 100%;
  background-color: var(--primary-color);
}

.tabmenu li {
  float: left;
}

.tabmenu li>a {
  font-family: var(--font-family-headlines);
  font-weight: 500;
  text-decoration: none;
  padding: 10px 19px;
  margin: 0;
  display: block;
  color: var(--font-nav-top-inactive);
  opacity: 0.8;
}

.tabmenu li>a:hover {
  color: var(--font-nav-top-hover);
  opacity: 1;
}

.tabmenu li .fa {
  margin-right: 3px;
}

.tabmenu li:first-child {
  margin-left: 30px;
}

.tabmenu li:first-child>a {
  padding-left: 0;
}

.tabmenu li.active a {
  padding-left: 16px;
  font-weight: var(--font-weight-active);
  background-color: var(--nav-top-active-bg);
  position: relative;
  top: 1px;
  border: 1px solid var(--nav-top-active-bg);
  border-bottom: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  color: var(--font-nav-top-active);
  padding-top: 8px;
  padding-bottom: 11px;
  opacity: 1;
}

.tabmenu li:last-child {
  padding-right: 30px;
  float: right;
  padding-bottom: 8px;
}

#ddmenu {
  margin: 10px 3%;
  width: 94%;
}

/* used on smartphones */
.tabmenu2 select {
  padding: 0;
  margin: 3px 0;
  font-size: 11px;
}

.tabmenu2 {
  clear: both;
  background-color: var(--nav-sub-bg);
  background-image: url(../images/tabsBg2.png);
  padding: 0 30px;
  overflow: visible;
  height: 36px;
  line-height: 36px;
  font-size: var(--font-size-nav);
  border-bottom: 1px solid #345;
  box-shadow: 0 6px 10px -5px rgba(0, 0, 0, 0.4);
}

.tabmenu2 li {
  float: left;
  padding: 2px 13px;
  height: 19px;
  margin: 7px 18px 7px 0;
  line-height: 19px;
  position: relative;
  padding-left: 11px;
  padding-right: 11px;
  border-radius: 5px;
  color: var(--font-nav-sub);
}

.tabmenu2 li a {
  text-decoration: none;
  color: var(--font-nav-sub);
}

.tabmenu2 li a:hover,
.tabmenu2 li a:focus {
  color: var(--font-nav-sub-hover);
}

.tabmenu2 li.active2 {
  /* Matches sub-nav highlight */
  border-radius: 5px;
  font-weight: 800;
}

.tabmenu2 li.active2 a {
  color: var(--font-nav-sub) !important;
  font-weight: 800 !important;
}

.tabmenu2 a {
  color: var(--font-nav-sub);
}

.tabmenu2>span {
  color: var(--breadcrumbs-span-color);
  text-shadow: var(--issuetbl-text-shadow);
  font-weight: 600;
}

.tabmenu2>a {
  color: var(--breadcrumbs-a-color);
  text-shadow: var(--issuetbl-text-shadow);
}

.maincontent {
  margin: 10px 10px 10px 30px;
}

#leftsidebar {
  width: 250px;
  float: left;
  margin-right: 20px;
  overflow: visible;
}

#maintable>tbody>tr>td {
  padding: 0;
  vertical-align: top;
}

#maintable>tbody>tr>td:last-child {
  width: 100%;
}

blockquote {
  padding: 0 0 0 15px;
  margin: 0 0 15px;
  border-left: 5px solid #f1f1f1;
}

.lightbg {
  background-color: var(--lightbg);
}

.darkbg {
  background-color: var(--darkbg);
}

/*.alternativeLightbg {background:#f6f6f6}*/
.outerroundedborder {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  box-shadow: 0 1px 12px -2px rgba(0, 0, 0, 0.15);
}

.outerroundedbox {
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  margin-bottom: 20px;
  padding: 20px;
}

.midbg {
  background-color: var(--color-bg-alt);
}

.alert {
  background-color: #C3333D;
  text-align: center;
  font-weight: bold;
  color: #fff;
}

.alert a {
  color: #fff;
}

table.outerroundedborder,
table.outerroundedbox {
  border-collapse: separate;
  padding: 0;
}

table.outerroundedborder th:first-child,
table.outerroundedbox th:first-child {
  border-top-left-radius: 5px;
  -moz-border-radius-topleft: 5px;
}

table.outerroundedborder th:last-child,
table.outerroundedbox th:last-child {
  border-top-right-radius: 5px;
  -moz-border-radius-topright: 5px;
}

.roundedtable {
  border-collapse: separate;
  padding: 0;
}

.roundedtable th:first-child {
  border-top-left-radius: 5px;
  -moz-border-radius-topleft: 5px;
}

.roundedtable th:last-child {
  border-top-right-radius: 5px;
  -moz-border-radius-topright: 5px;
}

table.sortable th {
  cursor: pointer;
}

table.horizseparated th {
  background: var(--table-header-bg);
  color: var(--table-header-font);
  padding: 3px 1px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid var(--theme-light);
}

table.horizseparated th a {
  color: var(--table-header-font) !important;
  text-decoration: none;
}

table.horizseparated td {
  background-color: transparent;
  color: var(--row-font-color) !important;
  padding: 12px 1px;
  border-bottom: 1px solid var(--table-border);
  vertical-align: middle;
}

table.horizseparated td a {
  /* color: var(--row-font-color) !important; */
  text-decoration: none;
}

table.horizseparated td a:hover {
  text-decoration: underline;
}

table.horizseparated tr:nth-child(odd) td {
  background-color: var(--table-row-odd);
}

table.horizseparated tr:nth-child(even) td {
  background-color: var(--table-row-even);
}

table.horizseparated tr:hover td {
  background-color: var(--row-hover-bg) !important;
  color: var(--row-hover-font) !important;
}

table.horizseparated tr:hover td a {
  color: var(--row-hover-font) !important;
}


table.horizseparated td:first-child,
table.horizseparated th:first-child {
  padding-left: 20px;
}

table.horizseparated td:last-child,
table.horizseparated th:last-child {
  padding-right: 20px;
}

table.horizseparated tbody:last-of-type tr:last-child td:first-child {
  border-bottom-left-radius: 5px;
  -moz-border-radius-bottomleft: 5px;
}

table.horizseparated tbody:last-of-type tr:last-child td:last-child {
  border-bottom-right-radius: 5px;
  -moz-border-radius-bottomright: 5px;
}

table.horizseparated tbody:last-of-type tr:last-child td {
  border-bottom: none;
}

table.horizseparated tfoot td {
  height: 30px;
  background: var(--tfoot-bg);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none;
  border-top: 1px solid var(--admintable-separator);
}

table.horizseparated tfoot td a {
  color: var(--tfoot-link);
  font-weight: bold;
  text-decoration: none;
}

table.horizseparated tfoot td ul {
  float: right;
  padding: 7px 0;
}

table.horizseparated tfoot td ul li {
  float: left;
  height: 16px;
  line-height: 16px;
  padding: 0 5px;
  border-right: 1px solid var(--tfoot-li-border-right);
  border-left: 1px solid var(--tfoot-li-border-left);
}

table.horizseparated tfoot td ul li:first-child {
  border-left: none;
}

table.horizseparated tfoot td ul li:last-child {
  border-right: none;
}

table.horizseparated tfoot td:first-child {
  border-bottom-left-radius: 5px !important;
  -moz-border-radius-bottomleft: 5px !important;
}

table.horizseparated tfoot td:last-child {
  border-bottom-right-radius: 5px !important;
  -moz-border-radius-bottomright: 5px !important;
}

table.horizseparated tr:nth-child(odd) td {
  background: var(--table-row-odd);
}

table.horizseparated tr.overdue td {
  background-color: #fff4f4;
}

table.horizseparated tr.overdue td a.ticketLink,
table.horizseparated tr.overdue td.duedate {
  color: #A40802;
  font-weight: bold;
}

table.horizseparated tr.almostoverdue td.duedate {
  animation: blinker2 5s linear infinite;
  font-weight: bold;
}

table.horizseparated tr:hover td {
  background-color: var(--row-hover-bg) !important;
}

@keyframes blinker2 {
  50% {
    color: #e00;
  }
}

#bulk-actions-popup>div {
  display: none;
  margin-top: 10px;
}

table.admintable input[type=submit],
table.admintable button {
  background-color: var(--admintable-btn-bg);
  border: 1px solid var(--admintable-btn-border);
  color: var(--admintable-btn-color);
  text-shadow: none;
}

table.admintable input[type=submit]:hover,
table.admintable button:hover {
  background-color: var(--graybutton-hover-bg);
  border-color: var(--admintable-btn-border);
}

table.admintable input[type=submit]:active,
table.admintable button:active {
  background-color: var(--admintable-btn-bg);
}

table.admintable textarea {
  width: 100%;
}

table.admintable td.separator {
  border-top: 1px solid var(--admintable-separator);
}

table.admintable input.colorpicker {
  padding-left: 30px;
  width: 85px;
  text-transform: uppercase;
}

.admindescription {
  color: var(--admindesc-color);
}

.admindescription a {
  opacity: 0.7;
}

p.admindescription {
  margin-top: 4px;
  margin-bottom: 6px;
}

.narrowCenteredContainer {
  max-width: 960px;
  margin: 0 auto;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.filterBoxTD {
  display: none;
}

table.menulist {
  margin-left: auto;
  margin-right: auto;
}

table.menulist td {
  vertical-align: middle;
  height: 78px;
  width: 50%;
}

table.menulist td>div {
  margin-left: 42px;
}

table.menulist .icon {
  float: left;
  margin-right: 10px;
  font-size: 28px;
  color: var(--brand-primary);
  margin-top: 4px;
}

table.menulist img {
  float: left;
  margin-right: 10px;
}

table.menulist a {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-family-headlines);
  color: var(--text-normal);
}

.blueheader {
  color: var(--theme-gold);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: relative;
  height: 15px;
  font-size: 11px;
  padding: 11px 12px;
  margin-bottom: 12px;
  background-color: var(--sidebar-header-bg);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tagslist {
  overflow: hidden;
  padding: 12px;
}

.tagslist h3 {
  margin-bottom: 7px;
}

.tag {
  background-color: var(--tags-bg);
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  border: 1px solid var(--tags-border);
  display: block;
  float: left;
  padding: 3px 5px;
  text-decoration: none;
  color: var(--tags-color);
  margin-right: 7px;
  margin-bottom: 7px;
}

.tag a {
  text-decoration: none;
}

.leftContent {
  float: left;
  width: 64.6%;
}

.rightsidebar {
  float: left;
  width: 33.5%;
  margin-left: 1.9%;
}

/* .leftKB {float: left; width: 64.8%;} */
.avatar {
  vertical-align: middle;
  width: 37px;
  height: 37px;
  border-radius: 50%;
}

.editorBBCODE {
  font: 12px Consolas, Courier;
}

div.richeditor div.editbar {
  height: 27px;
  line-height: 24px;
  background: var(--editbar-bg);
  border: 1px solid var(--editbar-border);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  overflow: hidden;
}

div.richeditor div button {
  vertical-align: middle;
  padding: 0;
  width: 19px;
  height: 19px;
  margin-left: 3px;
  margin-right: 0;
  background: var(--editbar-btn-bg);
  border: var(--editbar-border) 1px solid;
  cursor: pointer;
  box-shadow: none;
  filter: none;
  color: var(--editbar-btn-color);
  font-size: 11px;
}

div.richeditor div button:hover {
  background: var(--editbar-btn-hover-bg);
}

div.richeditor table.colorpick td {
  padding: 7px 10px !important;
}

div.richeditor div.container {
  border: 1px solid var(--editbar-border);
  border-top: none;
  margin-bottom: 10px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

div.richeditor textarea {
  padding: 3px 5px;
  border: none;
  display: block;
  width: 100% !important;
  box-sizing: border-box;
}

div.richeditor iframe {
  padding: 3px 5px;
  background-color: var(--richeditor-iframe-bg);
  border: none;
  display: block;
  width: 100% !important;
  border-radius: 3px;
  box-sizing: border-box;
  resize: vertical;
}

@media only screen and (max-width: 670px) {
  div.richeditor div.editbar button[tabindex] {
    display: none;
  }

  div.richeditor div.editbar button.htmlbtn,
  div.richeditor div.editbar button.boldbtn,
  div.richeditor div.editbar button.italicbtn,
  div.richeditor div.editbar button.hyperlinkbtn {
    display: inline-block;
  }
}

.attachments td {
  vertical-align: middle;
}

.attachments img {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  box-shadow: 0 1px 12px -2px rgba(0, 0, 0, 0.15);
  max-width: 100px;
  background: #fff;
}

.attachments a.resend {
  display: none;
}

.attachments td:hover a.resend {
  display: inherit;
}

a.attachments {
  display: inline-block;
  text-align: center;
  max-width: 102px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin-right: 3px;
  border-bottom: none;
}

.breadcrumbs {
  color: var(--text-muted);
  font-family: var(--font-family-headlines);
  font-weight: 500;
  padding-bottom: 20px;
  padding-top: 0;
}

.breadcrumbs span {
  color: var(--breadcrumbs-span-color);
}

.breadcrumbs a,
.breadcrumbs a span {
  color: var(--breadcrumbs-a-color);
}

.contentEditable {
  background: #ffffcc;
}

#outerLogin {
  width: 100%;
  text-align: center;
}

#loginContainer {
  display: inline-block;
  position: relative;
}

#loginContainer h1 {
  margin: 15px 0;
}

#loginContainer #tableLoginContainer {
  padding: 0 10px 0 16px;
}

#loginContainer #tableLoginContainer .tdOR {
  padding: 0;
  background-image: url(../images/treeview-default-line.gif);
  background-position: 50%;
  background-repeat: repeat-y;
  vertical-align: middle;
}

#loginContainer #tableLoginContainer .tdOR span {
  font-size: 21px;
  color: #fff;
  font-style: italic;
  background-color: #ccc;
  padding: 5px 8px;
  padding-left: 7px;
  -moz-border-radius: 40px;
  -webkit-border-radius: 40px;
  border-radius: 40px;
}

#loginContainer #tableLoginContainer table {
  width: 250px;
}

#loginContainer #tableLoginContainer table td {
  padding: 5px;
  text-align: left;
}

.datepick {
  width: 85px;
}

div.kbHeader {
  text-align: center;
  margin-bottom: 20px;
}

div.kbHeader div {
  display: flex;
  align-items: center;
  justify-content: center;
}

div.kbHeader div>a {
  width: 120px;
  height: 80px;
  margin-right: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  margin-bottom: 20px;
  padding: 20px;
  color: var(--text-normal);
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease;
}

div.kbHeader div>a i.fa {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  color: var(--kb-icon-color);
}

div.kbHeader div>a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-primary);
}

div.kbHeader h3 {
  font-weight: normal;
}

div.kbHeader form {
  position: relative;
}

div.kbHeader input {
  width: 100%;
  height: 40px;
  font-size: 15px;
  padding-left: 33px;
  margin-bottom: 40px;
}

div.kbHeader form a {
  font-size: 17px;
  position: absolute;
  left: 12px;
  top: 12px;
  color: #aaa;
}

div.articleslist {
  width: 47%;
  float: left;
  padding: 0 7px 4px;
}

div.articleslist h2 {
  padding: 0;
}

div.articleslist h1 span {
  font-weight: normal;
}

div.articleslist ul {
  list-style-image: url(../images/triangle.png);
  margin-left: 13px;
}

div.articleslist ul li {
  margin: 10px 0;
  font-size: 14px;
  padding-right: 40px;
}

.trianglelist {
  list-style-image: url(../images/triangle.png);
  margin-left: 13px;
}

.trianglelist li {
  margin: 10px 0;
  font-size: 14px;
  padding-right: 40px;
}

tr.highlight td,
.highlight,
table.horizseparated tr.highlight td {
  background-color: var(--highlight-bg);
}

img.techComment {
  margin-bottom: -2px;
}

.publicComment {
  display: none;
}

.usercomment {
  border-right: 3px solid #E9A36B;
}

.techcomment {
  border-right: 3px solid #70c45c;
}

.fortechcomment {
  border-right: 3px solid #5C9EC4;
}

.ticketRow {
  cursor: pointer;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s linear;
  transition: all 0.15s linear;
  height: 55px;
}

.ticketRow td:first-child div.ticketrowMeta {
  text-align: right;
  float: right;
  line-height: 1;
}

.ticketRow td:first-child {
  min-width: 200px;
  max-width: 450px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticketRow.subticket td:first-child {
  padding-left: 40px;
}

.techsViewing {
  color: #63ad51;
  vertical-align: middle;
  animation: blinker 2s linear infinite;
  opacity: 0.3;
}

@keyframes blinker {
  50% {
    opacity: 1;
  }
}

.ticketLink {
  font-weight: bold;
  text-decoration: none;
  line-height: 16px;
  font-size: 14px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.ticketAttr img {
  margin-right: 2px;
  vertical-align: middle;
}

.ticketAttr img.categoryIcon {
  margin-left: 5px;
}

.separator td {
  background: var(--separator-bg);
}

.categories {
  background-color: var(--table-row-odd);
}

.categories .treeList {
  /*first-level nesting padding*/
  /*2nd-level nesting padding*/
}

.categories .treeList li {
  white-space: nowrap;
  position: relative;
  list-style: none;
}

.categories .treeList li>a {
  display: block;
  height: 27px;
  padding-left: 12px;
  line-height: 27px;
  font-size: 12px;
  font-weight: bold;
  color: var(--primary-color);
}

.categories .treeList ul>li>a {
  padding-left: 19px;
}

.categories .treeList ul>li>ul a {
  padding-left: 26px;
}

.categories .treeList span.catCount,
.categories .treeList a.catCount {
  height: 15px;
  line-height: 15px;
  font-size: 11px;
  padding: 1px 7px;
  position: absolute;
  top: 5px;
  right: 10px;
  min-width: 12px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.4);
  color: var(--primary-color);
  border-radius: 10px;
}

.categories .treeList li.category a {
  border-bottom: none;
  font-weight: normal;
  color: var(--text-muted);
  background-color: var(--theme-light);
}

.categories .treeList li.section>a {
  background-color: var(--category-section-bg);
  color: var(--category-section-text);
}

.categories .treeList li.section>a span.catCount {
  font-weight: bold;
}

.categories .treeList li>a:hover {
  background-color: var(--category-hover-bg);
  text-decoration: none;
}

.categories .treeList li>a.selected {
  background: var(--brand-primary);
  color: #fff;
  text-decoration: none;
}

.categories .catName {
  display: block;
  padding-right: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.categories .treeList li>a.selected span.catCount {
  background-color: #184667;
  -moz-border-radius: 9px;
  -webkit-border-radius: 9px;
  border-radius: 9px;
}

#divStats {
  width: 280px;
  text-transform: uppercase;
  margin-left: -15px;
}

#divStats a {
  color: #8e8e8e;
}

#divStats td {
  width: 25%;
}

#divStats img {
  height: 20px;
}

#divStats #divStatsCounts {
  font-size: 12px;
  font-weight: bold;
}

#divStats #divStatsLabels {
  white-space: nowrap;
  font-size: 9px;
}

#tblTickets th a,
#tblTickets th a:visited {
  color: var(--row-font-color);
  border-bottom: 1px dotted #c8c8c8;
  font-weight: normal;
}

#thTicketDate {
  max-width: 95px;
  min-width: 50px;
}

.statusName {
  white-space: nowrap;
}

.menu>li>a.active {
  border-bottom: 1px solid #1a638f;
}

.filterBox {
  background-color: var(--filter-box-bg);
  position: relative;
  padding-top: 5px;
  margin-top: 15px;
  border: 1px solid var(--filter-box-border);
  border-left: none;
  border-right: none;
}

.filterBox table {
  width: 100%;
}

.filterBox table td:nth-child(2) {
  padding-left: 0;
}

.filterBox td {
  padding: 6px 17px;
}

.filterBox tr td:last-child:not([colspan]) {
  padding-left: 0;
}

.filterBox .notch {
  position: absolute;
  top: -9px;
  right: 14px;
  margin: 0;
  border-bottom: 10px solid var(--filter-box-notch);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 0;
  padding: 0;
  width: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
}

.filterBox .border-notch {
  border-bottom-color: var(--filter-box-border);
  top: -10px;
}

.filterBox tr:last-child td {
  padding-bottom: 15px;
}

.filterBox tr:first-child td {
  padding-top: 10px;
}

.filterBox input[type="text"],
.filterBox input[type="number"] {
  padding-left: 3px;
  font-size: 11px;
  width: 100%;
}

.filterBox select {
  width: 100%;
}

.filterBox input[type="checkbox"] {
  margin-right: 0;
}

#toggleFilter {
  position: absolute;
  top: 10px;
  right: 8px;
  height: 23px;
  margin: 0;
  margin-top: -3px;
  font-weight: normal;
  background: transparent;
  border: none;
  color: var(--filter-icon-color);
}

#toggleFilterDiv {
  margin-bottom: -10px;
  margin-left: -40px !important;
  font-size: medium;
  background-color: transparent;
  color: var(--filter-icon-color);
  border: none;
}

#toggleFilter:hover {
  text-shadow: 1px 0px 10px #fff;
}

#ticketBody #subject.contentEditable {
  margin-bottom: 10px;
}

#ticketBody #subject {
  word-break: break-word;
}

#ticketBody #body {
  font-size: 14px;
  word-wrap: break-word;
  overflow-x: auto;
  clear: both;
}

#ticketBody #body ul {
  list-style-type: disc;
  margin-left: 40px;
}

#ticketBody #body ol {
  margin-left: 30px;
}

#ticketBody #body ul,
#ticketBody #body ol {
  margin-top: 10px;
  margin-bottom: 10px;
}

#ticketBody #body table {
  border-collapse: collapse;
}

#ticketBody #body table td {
  border: 1px solid #eee;
  padding: 5px;
}

#ticketBody #body p {
  color: inherit;
  font-size: inherit;
  margin-bottom: 10px;
}

#ticketBody #body img {
  max-width: 100%;
  height: auto;
}

#sorting>div:first-child,
#leftsidebar>.tagslist>div:first-child {
  text-transform: uppercase;
  margin-bottom: 7px;
}

.bodyText {
  font-size: 14px;
  word-wrap: break-word;
  overflow-x: auto;
  clear: both;
}

.bodyText ul {
  list-style-type: disc;
  margin-left: 40px;
}

.bodyText ol {
  margin-left: 30px;
}

.bodyText ul,
.bodyText ol {
  margin-top: 10px;
  margin-bottom: 10px;
}

.bodyText table {
  border-collapse: collapse;
}

.bodyText table td {
  border: 1px solid #eee;
  padding: 5px;
}

.bodyText p {
  color: inherit;
  font-size: inherit;
  margin-bottom: 10px;
}

.bodyText img {
  max-width: 100%;
  height: auto;
}

/* ViewIssue Toolbar */
div#toolbar {
  height: 26px;
  margin-bottom: 20px;
}

div#toolbar ul#status {
  float: left;
}

div#toolbar ul li {
  float: left;
}

div#toolbar ul div {
  position: relative;
}

div#toolbar ul div ul {
  position: absolute;
  top: 25px;
  left: 0;
  display: none;
  z-index: 10;
}

div#toolbar ul div ul li {
  width: 100%;
  border: none;
  text-align: left;
  display: block;
  margin: 2px 0;
}

div#toolbar ul#statusesDdl input {
  min-width: 100%;
  background-color: var(--toolbar-status-bg);
  border: 1px solid var(--toolbar-status-border);
  color: var(--toolbar-status-color);
  text-shadow: none;
}

div#toolbar ul#statusesDdl input:hover {
  background-color: var(--graybutton-hover-bg);
  border-color: var(--toolbar-status-border);
}

div#toolbar ul#statusesDdl input:active {
  background-color: var(--toolbar-status-bg);
}

div.tools {
  float: right;
  position: relative;
}

div.tools #toolsPopup {
  position: absolute;
  display: none;
  z-index: 5;
  right: 0;
}

div.tools #toolsPopup li {
  float: none !important;
  padding: 3px 0;
  white-space: nowrap;
}

div.tools #toolsPopup li:first-child {
  padding-top: 0;
}

div.tools #toolsPopup li:last-child {
  padding-bottom: 0;
}

div.tools:hover #toolsPopup {
  display: block;
}

div.tools #toolsbtn:focus+#toolsPopup {
  display: block;
}

ul.tools {
  position: absolute;
  right: 9px;
}

ul.tools li:first-child {
  overflow: hidden;
}

ul.tools li {
  margin: 0;
  float: left;
}

ul.tools button {
  height: 23px;
  width: 23px;
  line-height: 21px;
  color: var(--tktcomment-meta-color);
  border: 1px solid var(--border-default);
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: var(--filter-box-bg);
  filter: none;
}

ul.tools button:hover {
  background: var(--graybutton-hover-bg);
}

.editTable ul.tools {
  visibility: hidden;
}

tr:hover td.editCell ul.tools {
  visibility: visible;
}

.editCell {
  position: relative;
  transition: all 3s ease;
}

.editCell:after {
  content: "";
  position: absolute;
  top: 9px;
  left: -6px;
  border-width: 7px 7px 7px 0;
  border-style: solid;
  border-color: transparent #fafafa;
}

.editCell:before {
  content: "";
  position: absolute;
  top: 9px;
  left: -7px;
  border-width: 7px 7px 7px 0;
  border-style: solid;
  border-color: transparent #c9c9c9;
}

.editCell.systemcomment:after {
  border-color: transparent #eaeced;
}

.tagsinput {
  border: 1px solid #ccc;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

/*to make it look like a textbox*/
.tagsinput input:focus {
  box-shadow: none;
}

table.issueDetails h2 {
  color: var(--issuetbl-h2);
  text-shadow: var(--issuetbl-text-shadow);
}

table.issueDetails #ticketStatusUserProcess {
  color: var(--issuetbl-user-color);
  text-shadow: var(--issuetbl-text-shadow);
  opacity: 1;
}

table.issueDetails .editButton {
  background-color: var(--issuetbl-btn-bg);
  border: 1px solid var(--issuetbl-btn-border);
  color: var(--issuetbl-btn-color);
  text-shadow: none;
  position: absolute;
  right: 0px;
  top: -4px;
  width: 35px;
}

table.issueDetails .editButton:hover {
  background-color: var(--graybutton-hover-bg);
  border-color: var(--issuetbl-btn-border);
}

table.issueDetails .editButton:active {
  background-color: var(--issuetbl-btn-bg);
}

table.issueDetails td {
  vertical-align: middle;
  height: 25px;
}

table.issueDetails td:last-child {
  padding-left: 0;
}

table.issueDetails td:last-child>div {
  position: relative;
  width: 100%;
}

table.issueDetails td:last-child>div .info {
  padding-right: 40px;
}

table.issueDetails td:first-child {
  padding-right: 0px;
}

table.issueDetails .tagsinput {
  background-color: transparent;
  border: none;
}

table.issueDetails .tagsinput input {
  padding-left: 0;
}

table.issueDetails .editor {
  color: var(--issuetbl-editor-color);
  white-space: nowrap;
}

table.issueDetails .editor input:not([type='checkbox']),
table.issueDetails .editor select {
  width: 120px;
}

table.issueDetails #TicketCustomFields .info {
  word-break: break-word;
}

table.issueDetails .grey {
  color: var(--issuetbl-grey);
}

/* ===== Ticket Information Card (.tkt-info-card) ===== */
.tkt-info-card {
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  margin-bottom: 7px;
  overflow: hidden;
}

.tkt-info-header {
  background-color: var(--primary-color);
  color: var(--tkt-header-text, var(--issuetbl-h2));
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.tkt-info-header i {
  font-size: 15px;
  color: var(--tkt-header-icon, var(--accent-color));
}

/* Collapsible info panels — click the header to expand/collapse */
.tkt-info-header::after {
  content: "\f107";
  font-family: FontAwesome;
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
  color: var(--tkt-header-icon, var(--accent-color));
  transition: transform 0.2s ease;
}

.tkt-info-card.tkt-collapsed .tkt-info-header::after {
  transform: rotate(-90deg);
}

.tkt-info-card.tkt-collapsed > *:not(.tkt-info-header) {
  display: none !important;
}

/* Show all / Close all toolbar */
.tkt-info-toolbar {
  display: flex;
  margin-bottom: 8px;
}

.tkt-info-toggle-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: var(--primary-color);
  border: 1px solid var(--border-default);
  color: var(--tkt-header-text, var(--issuetbl-h2));
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
}

.tkt-info-toggle-all i {
  color: var(--tkt-header-icon, var(--accent-color));
}

.tkt-info-toggle-all:hover {
  filter: brightness(1.15);
}

/* ===== Quick summary (collapsible mirror inside Ticket Information card) ===== */
.tkt-info-quickbar {
  display: flex;
  padding: 6px 16px;
  border-top: 1px solid var(--border-default);
}

.tkt-quick-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
}

.tkt-quick-toggle:hover {
  filter: brightness(1.15);
}

.tkt-quick-toggleV2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  padding: 3px 2px;
  height: 20px;
  margin: 1px 13px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
}

.tkt-quick-toggleV2:hover {
  filter: brightness(1.15);
}

.tkt-quick-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background-color: var(--primary-color);
  color: var(--tkt-header-text, var(--issuetbl-h2));
  font-size: 13px;
  line-height: 1;
}

.tkt-quick-body {
  border-top: 1px solid var(--border-default);
  padding: 2px 16px 6px;
}

.tkt-quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-default);
}

.tkt-quick-item:last-child {
  border-bottom: none;
}

.tkt-quick-item .tkt-info-row-label {
  margin-bottom: 0;
  flex-shrink: 0;
}

.tkt-quick-item .tkt-info-row-value {
  text-align: right;
  word-break: break-word;
}

.tkt-quick-edit {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.tkt-quick-edit .editor {
  text-align: left;
  margin-top: 4px;
  white-space: normal;
}

.tkt-quick-edit .editor select,
.tkt-quick-edit .editor input {
  margin: 2px 4px 2px 0;
}

.tkt-info-summary {
  display: flex;
  padding: 3px 16px;
  border-bottom: 1px solid var(--border-default);
}

.tkt-info-col {
  flex: 1;
  padding: 0 12px;
  border-right: 1px solid var(--border-default);
}

.tkt-info-col:first-child {
  padding-left: 0;
}

.tkt-info-col:last-child {
  border-right: none;
  padding-right: 0;
}

.tkt-info-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tkt-info-col .tkt-info-value {
  display: block;
  font-size: 15px;
  color: var(--text-normal);
}

.tkt-info-col .tkt-info-value i {
  margin-right: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.tkt-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 16px;
  border-top: 1px solid var(--border-default);
}

.tkt-info-row-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tkt-info-row-icon {
  font-size: 15px;
  color: var(--accent-color);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  margin-top: 2px;
}

.tkt-info-row-content {
  flex: 1;
  min-width: 0;
}

.tkt-info-row-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.tkt-info-row-value {
  font-size: 13px;
  color: var(--text-normal);
}

.tkt-info-row .editButton,
.tkt-quick-item .editButton {
  background-color: var(--issuetbl-btn-bg);
  border: 1px solid var(--issuetbl-btn-border);
  color: var(--issuetbl-btn-color);
  text-shadow: none;
  position: static;
  width: 32px;
  height: 25px;
  flex-shrink: 0;
  align-self: center;
  margin-left: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.tkt-info-row .editButton:hover,
.tkt-quick-item .editButton:hover {
  background-color: var(--graybutton-hover-bg);
  border-color: var(--issuetbl-btn-border);
}

.tkt-info-row .editButton:active,
.tkt-quick-item .editButton:active {
  background-color: var(--issuetbl-btn-bg);
}

.tkt-info-section-divider {
  padding: 7px 16px;
  background-color: var(--color-bg-soft);
  border-top: 1px solid var(--border-default);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Split row: two sub-cells side by side inside one tkt-info-row ── */
.tkt-info-row-split {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 0;
}

.tkt-info-row-split-cell {
  flex: 1;
  min-width: 0;
  padding: 0 10px 0 0;
}

.tkt-info-row-split-cell + .tkt-info-row-split-cell {
  padding: 0 0 0 10px;
  border-left: 1px solid var(--border-default);
}

/* ── Three-column summary row (TICKET TIMES totals) ── */
.tkt-info-summary-trio {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid var(--border-default);
  gap: 0;
}

.tkt-info-summary-trio-cell {
  flex: 1;
  min-width: 0;
  padding: 0 10px 0 0;
}

.tkt-info-summary-trio-cell + .tkt-info-summary-trio-cell {
  padding: 0 0 0 10px;
  border-left: 1px solid var(--border-default);
}

.tkt-info-summary-trio-cell .tkt-info-row-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.tkt-info-summary-trio-cell .tkt-info-row-value {
  font-size: 13px;
  color: var(--text-normal);
  font-weight: 600;
}

.tkt-info-time-entry {
  padding: 10px 16px;
  border-top: 1px solid var(--border-default);
}

.tkt-info-time-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tkt-info-time-entry-duration {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-normal);
}

.tkt-info-time-entry-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.tkt-info-time-entry-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 26px;
  margin-bottom: 2px;
}

.tkt-info-time-entry-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 26px;
}

.unlink {
  float: right;
  margin-top: 4px;
}

/*comments list */
.trDay td {
  color: var(--trday-color);
  font-size: 14px;
  padding: 15px;
}

.commentsTbl {
  border-collapse: separate;
  border-spacing: 0 22px;
}

.commentsTbl td {
  text-align: left;
  vertical-align: top;
  padding: 7px 10px;
}

.commentsTbl td.tdAvatar {
  padding: 0;
  position: relative;
}

.ticketComment {
  font-size: 14px;
}

.ticketComment div.commentBody {
  padding: 5px 0;
  font-size: 14px;
  word-wrap: break-word;
  overflow-x: auto;
  clear: both;
}

.ticketComment div.commentBody ul {
  list-style-type: disc;
  margin-left: 40px;
}

.ticketComment div.commentBody ol {
  margin-left: 30px;
}

.ticketComment div.commentBody ul,
.ticketComment div.commentBody ol {
  margin-top: 10px;
  margin-bottom: 10px;
}

.ticketComment div.commentBody table {
  border-collapse: collapse;
}

.ticketComment div.commentBody table td {
  border: 1px solid #eee;
  padding: 5px;
}

.ticketComment div.commentBody p {
  color: inherit;
  font-size: inherit;
  margin-bottom: 10px;
}

.ticketComment div.commentBody img {
  max-width: 100%;
  height: auto;
}

.ticketComment.systemcomment {
  color: var(--comment-system-color);
  font-size: 11px;
  background-color: var(--comment-system-bg);
}

.ticketComment.systemcomment .commentBody {
  color: var(--comment-system-color);
  font-size: 11px;
}

.ticketComment .commentInfo {
  word-wrap: break-word;
}

span.commentDate {
  position: absolute;
  bottom: 0;
  right: 3px;
}

span.commentDate a {
  color: var(--tktcomment-date-a);
}

/*new comment*/
#txtNewComment {
  margin-top: 30px;
  padding-left: 33px;
  height: 44px;
  font-size: 18px;
  width: 100%;
  background: var(--dropdown-bg) url('../images/reply.png') 10px no-repeat;
  background-size: 17px;
  border-radius: 4px;
  border-color: var(--newcomment-border);
}

.commentsTbl td.tdNewComment {
  padding: 0 0 20px;
}

div#divSubscribersList div {
  float: left;
  padding: 1px 5px;
  height: 18px;
  line-height: 18px;
  position: relative;
  margin-right: 5px;
  margin-bottom: 5px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

div#divSubscribersList div.subscriber {
  border: 1px solid var(--subscriber-border);
}

div#divSubscribersList div.tech {
  border-color: var(--subscriber-tech-border);
}

.realtimeBar {
  z-index: 1000;
}

.typingIndicator {
  display: none;
}

@keyframes dots-1 {
  from {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }
}

@keyframes dots-2 {
  from {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@keyframes dots-3 {
  from {
    opacity: 0;
  }

  75% {
    opacity: 1;
  }
}

@-webkit-keyframes dots-1 {
  from {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }
}

@-webkit-keyframes dots-2 {
  from {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@-webkit-keyframes dots-3 {
  from {
    opacity: 0;
  }

  75% {
    opacity: 1;
  }
}

.typingIndicator .dots span {
  animation: dots-1 1s infinite steps(1);
  -webkit-animation: dots-1 1s infinite steps(1);
}

.typingIndicator .dots span:first-child+span {
  animation-name: dots-2;
  -webkit-animation-name: dots-2;
}

.typingIndicator .dots span:first-child+span+span {
  animation-name: dots-3;
  -webkit-animation-name: dots-3;
}

.fileupload>div>span {
  margin-top: 10px;
  display: block;
}

.fancyfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.fancyfile+label {
  cursor: pointer;
  color: #2980b9;
}

.fancyfile+label:hover {
  color: #5DAEF5;
}

/* User popup */
.userPopup {
  display: none;
  width: 340px;
  position: absolute;
  z-index: 1000;
  white-space: normal;
  min-height: 16px;
}

.userPopup i.fa {
  width: 12px;
  text-align: center;
}

.userPopup ul {
  padding: 0;
  list-style: none;
  overflow: hidden;
  margin: 0 0 10px;
}

.userPopup ul.userInfo {
  display: flex;
  flex-wrap: wrap;
}

.userPopup ul.userInfo li {
  min-width: 160px;
  margin: 5px 0;
}

.userPopup ul.userInfo li.fullWidth {
  width: 100%;
}

.userPopup ul.ticketGrid {
  width: 100%;
  margin: 0;
}

.userPopup ul.ticketGrid li {
  padding: 5px;
}

.userPopup .notch {
  position: absolute;
  top: -11px;
  left: 10px;
  margin: 0;
  border-bottom: 12px solid var(--filter-box-bg);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 0;
  padding: 0;
  width: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
}

.userPopup .border-notch {
  border-bottom-color: var(--filter-box-border);
  top: -12px;
}

.userPopup td,
.userPopup th {
  padding: 3px 2px 3px 0 !important;
  border: none;
  vertical-align: initial;
}

.userPopup th {
  background: none;
  text-transform: none;
}

/* More btn */
tr.trMore td {
  cursor: pointer;
}

tr.trMore td a {
  text-decoration: none;
}

.badge {
  display: inline-block;
  color: #fff;
  font-size: 9px;
  text-transform: lowercase;
  padding: 3px 5px;
  border-radius: 3px;
  line-height: 9px;
  margin: 0 -3px 2px 3px;
}

.badge.new-badge {
  background-color: var(--badge-new-bg);
}

.badge.closed-badge {
  background-color: var(--badge-closed-bg);
}

.badge.cust-badge {
  background-color: var(--badge-updated-bg);
}

.badge.cust-badge a {
  color: rgba(255, 255, 255, 0.8);
}

.badge:hover a {
  color: #fff;
}

.badge.tech-badge {
  background-color: #70c45c;
}

.badge.fortech-badge {
  background-color: var(--badge-fortech-bg);
}

.badge.live-badge {
  background-color: #d1d1d1;
}

.badge.live-badge i {
  color: #dd5959;
  animation: pulse 2s infinite;
  border-radius: 50%;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(221, 89, 89, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(221, 89, 89, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(221, 89, 89, 0);
  }
}

.newcolor {
  color: #dd5959;
}

.techcolor {
  color: #70c45c;
}

.custcolor {
  color: #E9A36B;
}

#bulk-actions-popup {
  position: absolute;
  display: none;
}

#bulk-actions-popup li {
  display: inline;
  margin-right: 15px;
}

.arrow_box {
  position: relative;
  background: var(--filter-box-bg);
  border: 1px solid var(--filter-box-border);
}

.arrow_box:after,
.arrow_box:before {
  left: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.arrow_box:after {
  border-left-color: var(--filter-box-bg);
  border-width: 10px;
  top: 50%;
  margin-top: -10px;
}

.arrow_box:before {
  border-left-color: var(--filter-box-border);
  border-width: 11px;
  top: 50%;
  margin-top: -11px;
}

#divSelectColumns input {
  margin: 3px 5px 3px 0;
}

.field-validation-error,
.validation-summary-errors {
  color: #A63232;
  font-weight: bold;
}

.error {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px;
  color: #fff !important;
  background-color: #A63232;
  border-radius: 3px;
}

.error a {
  color: #fff;
  text-decoration: underline;
}

.error-border {
  border-color: #A63232 !important;
}

.grey .error {
  margin: 0 3px;
}

.error:not(input) {
  font-size: 11px;
}

.success {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px;
  color: #fff !important;
  background-color: #A63232;
  border-radius: 3px;
  background-color: #70c45c;
}

.success a {
  color: #fff;
  text-decoration: underline;
}

input.error,
textarea.error {
  color: #000 !important;
  border: 1px solid #A63232;
}

.report-settings {
  overflow: hidden;
  padding-top: 0;
}

.report-settings .section {
  float: left;
  overflow: hidden;
  margin-right: 30px;
  min-height: 111px;
  /*height - for retina wide fix*/
}

.report-settings .section .subheader {
  margin-top: 30px;
  font-size: 12px;
  font-weight: bold;
}

.report-settings .section>div:last-child {
  margin-right: 0;
}

.report-settings div.report-input {
  float: left;
  margin-top: 10px;
  margin-right: 30px;
  color: var(--text-muted);
  font-size: 11px;
  width: 200px;
}

.report-settings div.report-input .onoffswitch {
  margin-top: 4px;
}

.report-settings div.report-input input[type=text],
.report-settings div.report-input select {
  width: 100%;
}

.report-settings div.report-input input {
  display: block;
}

.report-settings div.report-input input.cfDateRange {
  width: 95px;
  display: inline-block;
}

.richeditor {
  /*so loooooong names don't stretch the menu horizantally*/
  /*pos:relative added so lick is clickable on LOOOONG canned-response names*/
  /*so loooooong names don't stretch the menu horizantally*/
}

.richeditor #selTemplates,
.richeditor #selKb {
  float: right;
}

.richeditor .editbar .dropdown-menu {
  max-width: 50%;
}

.richeditor #selTemplates .dropdown-toggle,
.richeditor #selKb .dropdown-toggle {
  padding: 0 10px;
  width: auto;
  margin: 0 2px 0 0;
}

.richeditor .dropdown .dropdown-toggle:hover,
.richeditor .dropdown .dropdown-toggle:focus,
.richeditor .dropdown.open .dropdown-toggle {
  background: #fff;
}

.richeditor .dropdown>ul {
  position: absolute;
  display: none;
  padding: 4px;
  line-height: normal;
}

.richeditor .dropdown.open>ul {
  display: block;
}

.richeditor .dropdown>ul li {
  line-height: 18px;
  margin: 0 -10px;
  padding: 0 10px;
  white-space: nowrap;
}

.richeditor .dropdown li>a.edit {
  display: none;
  position: relative;
}

.richeditor .dropdown li {
  overflow: hidden;
}

.richeditor .dropdown li:hover {
  background-color: var(--richeditor-dropdown-hover-bg);
}

.richeditor .dropdown li:hover>a.edit {
  display: inline-block;
}

.richeditor .dropdown .kbcategory .title {
  cursor: pointer;
  font-weight: bold;
}

.richeditor .dropdown .kbcategory ul {
  display: none;
  padding-left: 10px;
}

table.mediumform {
  width: 700px;
}

table.mediumform input[type=text],
table.mediumform input[type=email],
table.mediumform textarea {
  width: 98%;
}

.fa.delete {
  color: #E63939;
}

.fa.delete:hover {
  color: #a00;
}

.atwho-view {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  box-shadow: 0 1px 12px -2px rgba(0, 0, 0, 0.15);
  background-color: var(--atwho-bg);
  margin-bottom: 20px;
  padding: 20px;
  color: var(--atwho-color);
  font-size: 11px;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  margin: 18px;
  min-width: 120px;
  max-height: 200px;
  overflow: auto;
  z-index: 11110 !important;
}

.atwho-view .cur {
  background: var(--atwho-cur-bg);
  color: #fff;
}

.atwho-view strong {
  color: var(--atwho-strong);
}

.atwho-view .cur strong {
  color: #fff;
  font: bold;
}

.atwho-view ul {
  list-style: none;
  padding: 0;
  margin: auto;
}

.atwho-view ul li {
  display: block;
  padding: 5px 10px;
  cursor: pointer;
}

.onoffswitch {
  display: inline-block;
  margin-right: 8px;
  top: -1px;
  position: relative;
  width: 34px;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.onoffswitch-checkbox {
  opacity: 0;
  position: absolute !important;
}

.onoffswitch-checkbox:focus+.onoffswitch-label {
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.2);
  outline: none;
}

/* styling label when checkbox is focused */
.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  height: 15px;
  padding: 0;
  line-height: 15px;
  border: 2px solid var(--toggle-border);
  border-radius: 15px;
  background-color: var(--toggle-bg);
  transition: background-color 0.2s ease-in;
}

.onoffswitch-label.disabled,
.onoffswitch-label.disabled:before {
  background-color: var(--color-bg-light) !important;
  border-color: var(--toggle-border) !important;
}

.onoffswitch-label:before {
  content: "";
  display: block;
  width: 15px;
  margin: 0px;
  background: var(--toggle-switch-bg);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 15px;
  border: 2px solid var(--toggle-switch-border);
  border-radius: 15px;
  transition: all 0.2s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label {
  background-color: var(--toggle-checked-bg);
}

.onoffswitch-checkbox:checked+.onoffswitch-label,
.onoffswitch-checkbox:checked+.onoffswitch-label:before {
  border-color: var(--toggle-checked-border);
}

.onoffswitch-checkbox:checked+.onoffswitch-label:before {
  right: 0px;
}

.changeloglist .badge {
  margin: 0;
  margin-right: 5px;
  width: 25px;
  text-align: center;
  float: left;
  margin-top: 3px;
}

.changeloglist .clDescription {
  overflow: hidden;
  margin-bottom: 5px;
}

.dropzone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  box-sizing: border-box;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.85);
}

.dropzone>div {
  text-align: center;
}

#similarFromKB {
  margin-top: 10px;
}

#similarFromKB ul {
  padding: 10px;
}

/* responsive stuff */
/* Smartphones (portrait and landscape) up to iPhone 6 landscape */
@media only screen and (max-width: 670px) {
  body {
    min-width: 0;
    overflow-x: hidden;
    background-color: #edeced;
  }

  .maincontent {
    margin: 20px 10px;
  }

  /* Header */
  #divBigHeader .topheader,
  #divBigHeader .tabmenu2 {
    padding: 0 10px;
  }

  #divBigHeader .topheader #logo {
    float: none;
    text-align: center;
    margin: 0;
  }

  #divBigHeader .topheader #userinfo #lnkRecents {
    display: none;
  }

  /*hide recent tickets history*/
  #divBigHeader .topheader #userinfo {
    float: none;
    text-align: center;
    margin-bottom: 15px;
  }

  #divBigHeader .divSearch,
  #divBigHeader #newTicket {
    float: left;
    margin-left: 3%;
  }

  /*move search and new ticket to the left*/
  #divBigHeader .divSearch input {
    width: 155px;
  }

  #divBigHeader .topheader {
    padding-top: 5px;
  }

  #divBigHeader .topheader #logo #spanTitle {
    font-size: 22px;
  }

  .tabmenu2 {
    height: auto;
    background-image: none;
  }

  .tabmenu2 li {
    float: none;
    padding: 0;
    margin: 5px 0;
    height: auto;
  }

  .footer {
    width: auto;
    height: auto;
    line-height: 45px;
  }

  .footer .help {
    margin: 0;
    margin-left: 10px;
  }

  .footer .poweredBy {
    margin: 0;
    margin-right: 10px;
  }

  .footer .poweredBy img {
    display: none;
  }

  #content {
    margin: 0 auto -45px;
  }

  .outerroundedbox {
    padding: 10px;
  }

  /*Active tickets*/
  #maintable {
    float: none;
    width: 100%;
  }

  table.horizseparated td {
    padding: 10px;
  }

  table.horizseparated td:last-child,
  table.horizseparated th:last-child {
    padding-right: 7px;
  }

  table.horizseparated td:first-child,
  table.horizseparated th:first-child {
    padding-left: 7px;
  }

  /* View ticket */
  .rightsidebar,
  .leftContent {
    float: none;
    width: auto;
    margin: 0 0 10px 0;
  }

  /*KB*/
  div.articleslist {
    float: none;
    width: auto;
  }

  .kbSearch {
    width: 98%;
  }

  div.kbHeader a {
    left: 22px;
    top: 21px;
  }

  .maincontent hr {
    display: none;
  }

  table.admintable select {
    width: 100%;
  }

  table.menulist {
    width: initial;
  }

  table.menulist td {
    display: inline-block;
    width: 90%;
  }
}

.carouselOrigLink {
  color: #fff;
  margin-top: 5px;
  display: block;
  text-align: right;
  font-size: 14px;
}

.carouselOrigLink:hover {
  text-decoration: underline;
  color: #fff;
}

/* iPads (portrait and landscape) ----------- */
/*is browser in high contrast mode*/
@media screen and (-ms-high-contrast: active) {
  .onoffswitch-checkbox:checked+.onoffswitch-label {
    background-color: #fff;
  }

  body {
    background: #000;
  }

  a {
    color: lightblue;
  }
}

/* State / priority pill badge */
.tk-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Inline "new" label â€” matches legacy .badge.new-badge appearance */
.badge.new-badge {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  background: #c0392b;
  color: #fff;
  vertical-align: middle;
  margin-left: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Legacy badges from main.css */
.badge {
  display: inline-block;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 3px;
  cursor: default;
  line-height: 1;
}

.badge a {
  color: #fff;
  text-decoration: none;
  margin-left: 2px;
  font-size: 10px;
  font-weight: normal;
}

.live-badge {
  background-color: #27ae60 !important;
}

.cust-badge {
  background-color: var(--theme-gold) !important;
  color: var(--theme-text-on-light) !important;
}

/* Orange as in photo */
.tech-badge {
  background-color: var(--theme-light) !important;
  color: var(--theme-text-on-light) !important;
}

/* Orange as in photo */
.mgr-badge {
  background-color: #8e44ad !important;
}

/* Quick-mode filter tabs */
.tk-quicktabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tk-quicktabs a {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.82em;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid var(--quicktab-border);
  background: var(--quicktab-bg);
  color: var(--quicktab-font);
  transition: all 0.2s ease;
  align-content: center;

}

.tk-quicktabs a:hover {
  background: var(--quicktab-hover-bg);
  color: var(--quicktab-hover-font);
  border-color: var(--quicktab-hover-border);
}

.tk-quicktabs a.active {
  background: var(--quicktab-active-bg);
  color: var(--quicktab-active-font);
  border-color: var(--quicktab-active-border);
}

.tk-quicktabs a.active i {
  color: var(--quicktab-active-font) !important;
}

/* Status Icon Colors */
.tk-quicktabs a i.fa-circle {
  color: var(--status-new-bg);
}

.tk-quicktabs a i.fa-cog {
  color: var(--status-inprogress-bg);
}

.tk-quicktabs a i.fa-pause {
  color: var(--status-waiting-bg);
}

.tk-quicktabs a i.fa-check {
  color: var(--status-resolved-bg);
}

.tk-quicktabs a i.fa-times {
  color: var(--status-closed-bg);
}

/* Filter form controls */
.tk-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tk-input {
  padding: 8px 16px;
  font-size: 1rem;
  height: 25px;
  border: 1px solid var(--tk-input-border);
  border-radius: 6px;
  background: var(--tk-input-bg);
  color: var(--tk-input-color);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tk-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.tk-btn-primary {
  background: #2563eb;
  color: #fff;
}

.tk-btn-primary:hover {
  background: #1d4ed8;
}

.tk-btn-secondary {
  background: var(--tk-btn-secondary-bg);
  color: var(--tk-btn-secondary-color);
  border-color: var(--tk-btn-secondary-border);
}

.tk-btn-secondary:hover {
  background: var(--tk-btn-secondary-hover-bg);
  color: var(--tk-btn-secondary-hover-color);
}

/* Table: one-line subject cell with distributed metadata */
.tk-subject-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  width: 100%;
  overflow: hidden;
}

.tk-subject-primary {
  font-weight: 700;
  color: var(--tk-subject-color);
  text-decoration: none;
  font-size: 1.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 120px;
  max-width: 450px;
  flex-shrink: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tk-subject-primary:hover {
  color: var(--tk-subject-hover);
  text-decoration: underline;
}

.tk-meta-container {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tk-meta-color);
  font-size: 0.9em;
  flex-grow: 1;
  justify-content: flex-end;
}

.tk-meta-item {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-meta-item i {
  font-size: 0.9em;
  color: var(--tk-meta-icon);
}

.tk-id-cell {
  color: var(--tk-id-color);
  font-size: 1.0em;
  white-space: nowrap;
}

.tk-date-cell {
  font-size: 0.88em;
  line-height: 1.2;
  color: var(--tk-date-color);
  text-align: center;
  white-space: nowrap;
}

.tk-tech-name {
  font-size: 0.85em;
  color: var(--tk-tech-color);
}

.tk-unassigned {
  font-size: 0.82em;
  color: var(--tk-unassigned-color);
  font-style: italic;
}

/* Pagination */
.tk-pagination {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

/* Empty state */
.tk-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--tk-empty-color);
}

.tk-empty .fa {
  font-size: 2.5em;
  opacity: 0.4;
  margin-bottom: 10px;
}

.tk-empty p {
  margin: 6px 0 0;
  font-size: 0.92em;
}

/* Category Dropdown (Header) */
.tk-cat-dropdown {
  position: relative;
  display: inline-block;
}

.tk-cat-dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 5px;
  background-color: var(--dropdown-bg);
  min-width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border: 1px solid var(--dropdown-border);
  border-radius: 4px;
  text-transform: none;
  font-weight: normal;
}

.tk-cat-dropdown.open .tk-cat-dropdown-content {
  display: block;
}

.tk-cat-header {
  background: var(--primary-color);
  color: var(--accent-color);
  padding: 8px 12px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.tk-cat-item {
  background-color: transparent;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-default);
  font-size: 12px;
  transition: all 0.2s ease;
}

.tk-cat-item:last-child {
  border-bottom: none;
}

.tk-cat-item:hover {
  background-color: var(--theme-light);
}

.tk-cat-item.active {
  font-weight: 800;
  color: var(--link-color);
}

.tk-cat-subitem {
  background-color: rgba(0, 0, 0, 0.03);
  padding: 6px 12px 6px 25px;
  display: flex;
  justify-content: space-between;
  color: var(--text-normal);
  text-decoration: none;
  border-bottom: 1px solid var(--border-default);
  font-size: 11px;
  transition: all 0.2s ease;
}

.tk-cat-subitem:hover {
  background-color: var(--theme-light);
}

.tk-cat-subitem.active {
  font-weight: 800;
  color: var(--accent-color);
  background-color: var(--table-row-odd);
}

.blueheader {
  margin: 0 !important;
  border-bottom: none !important;
}

.tk-cat-list {
  background-color: var(--page-bg);
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--border-default);
  border-top: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 0 !important;
}

#divCategories {
  padding: 0 !important;
}

/* Project Cards */
.project-card {
  background-color: var(--project-card-bg);
  border: 1px solid var(--project-card-border);
  width: 24%;
  float: left;
  margin-right: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px var(--project-card-shadow);
}

.project-card .card-header {
  background-color: var(--project-card-header);
  color: var(--project-card-font);
  padding: 12px 15px;
  font-family: var(--font-family-headlines);
  font-weight: 600;
  font-size: 1.1em;
}

.project-card .card-body {
  padding: 15px;
}

.project-card .eta {
  color: var(--status-eta-color);
  font-weight: 600;
  font-size: 0.9em;
}

.project-card .date-info {
  color: var(--status-date-color);
  font-size: 0.85em;
}

.project-card hr {
  margin: 10px 0;
  border-color: var(--hr-color);
}

.kb-section-title {
  text-align: center;
  color: var(--headline-color);
  font-family: var(--font-family-headlines);
  margin: 30px 0 15px;
}

.progress {
  background-color: var(--progress-bg) !important;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--progress-fill) !important;
  height: 100%;
  transition: width 0.6s ease;
}

.list-group-item {
  background-color: var(--card-list-item-bg) !important;
  border-color: var(--border-default) !important;
  color: var(--text-normal) !important;
}

/* Pagination Styles */
.tk-pagination a.button,
.tk-pagination span.button {
  padding: 4px 12px !important;
  border: 1px solid var(--pagination-border) !important;
  border-radius: var(--pagination-radius) !important;
  color: var(--pagination-text) !important;
  text-decoration: none !important;
  background-color: var(--pagination-bg) !important;
  transition: all 0.2s ease-in-out;
}

.tk-pagination a.button:hover {
  background-color: var(--table-row-hover) !important;
  border-color: var(--table-row-hover) !important;
}

.tk-pagination span.button.bluebutton {
  cursor: default !important;
  font-weight: bold !important;
  background-color: var(--pagination-active-bg) !important;
  color: var(--pagination-active-text) !important;
  border: 1px solid var(--pagination-active-bg) !important;
}

.ticketFilter {
  background: var(--page-bg);
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.fa-filter {
  color: var(--theme-gold);
}

/* ===== Multiselect dropdown (jquery.multiselect) ===== */
button.ui-multiselect {
  background: var(--multiselect-btn-bg) !important;
  border: 1px solid var(--multiselect-btn-border) !important;
  color: var(--multiselect-btn-color) !important;
}

button.ui-multiselect:hover,
button.ui-multiselect.ui-state-hover {
  background: var(--multiselect-hover-bg) !important;
  color: var(--multiselect-btn-color) !important;
}

.ui-multiselect-menu {
  background: var(--multiselect-menu-bg) !important;
  border: 1px solid var(--multiselect-btn-border) !important;
  color: var(--multiselect-menu-text) !important;
}

.ui-multiselect-header {
  background: var(--multiselect-header-bg) !important;
  color: var(--multiselect-header-text) !important;
  border-bottom: 1px solid var(--multiselect-btn-border) !important;
}

.ui-multiselect-header a,
.ui-multiselect-header a span {
  color: var(--multiselect-header-text) !important;
}

.ui-multiselect-checkboxes {
  background: var(--multiselect-menu-bg) !important;
}

.ui-multiselect-checkboxes label {
  color: var(--multiselect-menu-text) !important;
}

.ui-multiselect-checkboxes label:hover {
  background: var(--multiselect-hover-bg) !important;
}

.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label {
  background: var(--multiselect-group-bg) !important;
}

.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a {
  color: var(--multiselect-group-text) !important;
}

/* Tabmenu2 Dropdown */
.tabmenu2 li.dropdown {
  position: relative;
}

.tabmenu2 .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--dropdown-bg);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border: 1px solid var(--dropdown-border);
  border-radius: 4px;
  top: 100%;
  left: 0;
  margin-top: 2px;
}

.tabmenu2 .dropdown-content a {
  color: var(--dropdown-text) !important;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-size: 12px;
  text-align: left;
  line-height: 1.5;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
}

.tabmenu2 .dropdown-content a:hover {
  background-color: var(--row-hover-bg) !important;
  color: var(--row-hover-font) !important;
}

.tabmenu2 li.dropdown:hover .dropdown-content {
  display: block;
}

.tabmenu2 .dropbtn {
  cursor: pointer;
}

/* ===== Ticket Row Height Normalization =====
   Rows should be uniform when there are 1-2 badge tags, and grow
   naturally when more tags are present.
   min-height is set to comfortably fit 2 badge rows (~16px each + padding).
*/
#tblTickets .ticketRow {
  height: auto !important;
  min-height: 44px;
}

#tblTickets .ticketRow td {
  vertical-align: middle;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
}

/* Constrain subject column so long titles don't break page layout */
#tblTickets .ticketRow td:nth-child(1) {
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
}

#tblTickets .ticketRow td:nth-child(1) .ticketLink {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


/* Prevent user/category text from overflowing its cell */
#tblTickets .ticketAttr {
  overflow: hidden;
}

/* Second column: allow wrapping but cap width so subject gets more room */
#tblTickets .ticketRow td:nth-child(2) {
  max-width: 300px;
}

/* Prevent tech cell from wrapping (e.g. two assignee names stacked) */
#tblTickets .techTd {
  white-space: nowrap;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tblTickets .techTd a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Tags/badge column: cap width so badges wrap to multiple lines */
#tblTickets .ticketRow td:nth-child(3) {
  max-width: 90px;
}

/* Make the badge/tag container stack badges vertically — one per line */
.ticketrowMeta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  line-height: 1;
  max-width: 140px;
}

/* Remove dotted underline from name links in ticket rows */
#tblTickets .ticketRow a.grey2,
#tblTickets .ticketRow a.uPopup {
  border-bottom: none !important;
}

select.mimicplaceholder {
  color: #999999 !important;
}

select.mimicplaceholder.has-selection {
  color: #212529 !important;
}

select.mimicplaceholder option {
  color: #212529;
}

select.mimicplaceholder option[value=""] {
  color: #999999;
}

/* ── Custom Field group header ── */
.cf-group-header {
  clear: both;
  width: 100%;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--link-color);
  padding: 10px 4px 4px;
  margin-top: 6px;
  border-top: 1px solid var(--border-default);
}

/* ── Checkbox List custom field widget ── */
.cbl-widget {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  min-width: 220px;
  max-width: 340px;
  background: var(--input-bg);
  font-size: 0.88rem;
  overflow: hidden;
}

.cbl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
  flex-wrap: wrap;
}

.cbl-count {
  color: var(--placeholder-color);
  font-size: 0.82rem;
  white-space: nowrap;
}

.cbl-actions {
  display: flex;
  gap: 10px;
  font-size: 0.80rem;
}

.cbl-actions a {
  color: var(--link-color);
  text-decoration: none;
  white-space: nowrap;
}

.cbl-actions a:hover {
  text-decoration: underline;
}

.cbl-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
  background: var(--input-bg);
}

.cbl-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  cursor: pointer;
  font-weight: normal;
  color: var(--text-normal);
  transition: background 0.12s;
  margin: 0;
}

.cbl-option:hover {
  background: var(--color-bg-alt);
}

.cbl-option input[type=checkbox] {
  accent-color: var(--accent-color);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 0;
}

.cbl-option span {
  line-height: 1.3;
  color: var(--text-normal);
}

/* ── override parent .report-input constraints (new-ticket form) ── */
.report-settings div.report-input .cbl-widget {
  width: auto;
  min-width: 220px;
  font-size: 0.88rem;
}

.report-settings div.report-input .cbl-option,
.report-settings div.report-input .cbl-option span {
  color: var(--text-normal);
  font-size: 0.88rem;
}

.report-settings div.report-input .cbl-option input[type=checkbox] {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin: 0;
}

/* --- Mandatory Fields Asterisk styling (CSS-only replacement for JS) --- */

/* 1. Labels with sibling or nested required/mandatory inputs (not disabled, not readonly, not inside editor) */
label:has(~ input[required]:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input))::after,
label:has(~ select[required]:not([disabled]):not([readonly]):not(.editor select))::after,
label:has(~ textarea[required]:not([disabled]):not([readonly]):not(.editor textarea))::after,
label:has(~ input.required:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input))::after,
label:has(~ select.required:not([disabled]):not([readonly]):not(.editor select))::after,
label:has(~ textarea.required:not([disabled]):not([readonly]):not(.editor textarea))::after,
label:has(~ input[data-val-required]:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input))::after,
label:has(~ select[data-val-required]:not([disabled]):not([readonly]):not(.editor select))::after,
label:has(~ textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea))::after,

label:has(input[required]:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input))::after,
label:has(select[required]:not([disabled]):not([readonly]):not(.editor select))::after,
label:has(textarea[required]:not([disabled]):not([readonly]):not(.editor textarea))::after,
label:has(input.required:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input))::after,
label:has(select.required:not([disabled]):not([readonly]):not(.editor select))::after,
label:has(textarea.required:not([disabled]):not([readonly]):not(.editor textarea))::after,
label:has(input[data-val-required]:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input))::after,
label:has(select[data-val-required]:not([disabled]):not([readonly]):not(.editor select))::after,
label:has(textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea))::after,

label.required::after,

/* 2. Custom form layouts (like report-input) */
.report-input:has(input[required]:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input)) label::after,
.report-input:has(select[required]:not([disabled]):not([readonly]):not(.editor select)) label::after,
.report-input:has(textarea[required]:not([disabled]):not([readonly]):not(.editor textarea)) label::after,
.report-input:has(input.required:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input)) label::after,
.report-input:has(select.required:not([disabled]):not([readonly]):not(.editor select)) label::after,
.report-input:has(textarea.required:not([disabled]):not([readonly]):not(.editor textarea)) label::after,
.report-input:has(input[data-val-required]:not([disabled]):not([readonly]):not([type="hidden"]):not(.editor input)) label::after,
.report-input:has(select[data-val-required]:not([disabled]):not([readonly]):not(.editor select)) label::after,
.report-input:has(textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea)) label::after,

/* 3. In tables, target the label in the first td */
/* 3a. Target label/td in ANY row for normal (non-checkbox/non-radio) fields */
td:has(+ td input[required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)) label::after,
td:has(+ td select[required]:not([disabled]):not([readonly]):not(.editor select)) label::after,
td:has(+ td textarea[required]:not([disabled]):not([readonly]):not(.editor textarea)) label::after,
td:has(+ td input.required:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)) label::after,
td:has(+ td select.required:not([disabled]):not([readonly]):not(.editor select)) label::after,
td:has(+ td textarea.required:not([disabled]):not([readonly]):not(.editor textarea)) label::after,
td:has(+ td input[data-val-required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)) label::after,
td:has(+ td select[data-val-required]:not([disabled]):not([readonly]):not(.editor select)) label::after,
td:has(+ td textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea)) label::after,

/* 3b. For tables containing required checkboxes or radios, target the header cell (th or fallback first tr td) */
table:has(input[required][type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child label::after,
table:has(input[required][type="radio"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child label::after,
table:has(input.required[type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child label::after,
table:has(input.required[type="radio"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child label::after,
table:has(input[data-val-required][type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child label::after,
table:has(input[data-val-required][type="radio"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child label::after,

table:has(input[required][type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child::after,
table:has(input[required][type="radio"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child::after,
table:has(input.required[type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child::after,
table:has(input.required[type="radio"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child::after,
table:has(input[data-val-required][type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child::after,
table:has(input[data-val-required][type="radio"]:not([disabled]):not([readonly]):not(.editor input)) th:first-child::after,

table:not(:has(th)):has(input[required][type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) tr:first-child td:first-child::after,
table:not(:has(th)):has(input[required][type="radio"]:not([disabled]):not([readonly]):not(.editor input)) tr:first-child td:first-child::after,
table:not(:has(th)):has(input.required[type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) tr:first-child td:first-child::after,
table:not(:has(th)):has(input.required[type="radio"]:not([disabled]):not([readonly]):not(.editor input)) tr:first-child td:first-child::after,
table:not(:has(th)):has(input[data-val-required][type="checkbox"]:not([disabled]):not([readonly]):not(.editor input)) tr:first-child td:first-child::after,
table:not(:has(th)):has(input[data-val-required][type="radio"]:not([disabled]):not([readonly]):not(.editor input)) tr:first-child td:first-child::after,

/* 4. In tables, target the first td itself if it has no label */
/* 4a. Target first td in ANY row for normal (non-checkbox/non-radio) fields */
td:has(+ td input[required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label))::after,
td:has(+ td select[required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label))::after,
td:has(+ td textarea[required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label))::after,
td:has(+ td input.required:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label))::after,
td:has(+ td select.required:not([disabled]):not([readonly]):not(.editor select)):not(:has(label))::after,
td:has(+ td textarea.required:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label))::after,
td:has(+ td input[data-val-required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label))::after,
td:has(+ td select[data-val-required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label))::after,
td:has(+ td textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label))::after {
  content: " *";
  color: red;
  font-weight: bold;
  display: inline;
}

/* 5. Fallback for inputs/textareas/selects inside single-cell rows with no label */
td:has(> input[required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label)),
td:has(> textarea[required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label)),
td:has(> select[required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label)),
td:has(> input.required:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label)),
td:has(> textarea.required:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label)),
td:has(> select.required:not([disabled]):not([readonly]):not(.editor select)):not(:has(label)),
td:has(> input[data-val-required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label)),
td:has(> textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label)),
td:has(> select[data-val-required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label)) {
  position: relative;
}

td:has(> input[required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label))::after,
td:has(> select[required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label))::after,
td:has(> input.required:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label))::after,
td:has(> select.required:not([disabled]):not([readonly]):not(.editor select)):not(:has(label))::after,
td:has(> input[data-val-required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label))::after,
td:has(> select[data-val-required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label))::after {
  content: "*";
  color: red;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 16px;
  z-index: 10;
}

/* Textareas need the fallback asterisk positioned near the top right instead of middle */
td:has(> textarea[required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label))::after,
td:has(> textarea.required:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label))::after,
td:has(> textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label))::after {
  content: "*";
  color: red;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 15px;
  pointer-events: none;
  font-size: 16px;
  z-index: 10;
}

/* Prevent text input overlap with the absolute positioned asterisk */
td:has(> input[required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label)) input,
td:has(> textarea[required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label)) textarea,
td:has(> select[required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label)) select,
td:has(> input.required:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label)) input,
td:has(> textarea.required:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label)) textarea,
td:has(> select.required:not([disabled]):not([readonly]):not(.editor select)):not(:has(label)) select,
td:has(> input[data-val-required]:not([disabled]):not([readonly]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.editor input)):not(:has(label)) input,
td:has(> textarea[data-val-required]:not([disabled]):not([readonly]):not(.editor textarea)):not(:has(label)) textarea,
td:has(> select[data-val-required]:not([disabled]):not([readonly]):not(.editor select)):not(:has(label)) select {
  padding-right: 25px !important;
}

/* 6. Active editors (like in ticket sidebar) show their asterisks next to their own inputs */
.editor:has(input[required]:not([disabled]):not([readonly]))::after,
.editor:has(select[required]:not([disabled]):not([readonly]))::after,
.editor:has(textarea[required]:not([disabled]):not([readonly]))::after,
.editor:has(input.required:not([disabled]):not([readonly]))::after,
.editor:has(select.required:not([disabled]):not([readonly]))::after,
.editor:has(textarea.required:not([disabled]):not([readonly]))::after,
.editor:has(input[data-val-required]:not([disabled]):not([readonly]))::after,
.editor:has(select[data-val-required]:not([disabled]):not([readonly]))::after,
.editor:has(textarea[data-val-required]:not([disabled]):not([readonly]))::after {
  content: " *";
  color: red;
  font-weight: bold;
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
}