@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --text: #4373a3;
    --muted: #64748b;
    --border: #e5e7eb;
    --borderfocus: #a4bfda;
    --borderfocuslight: #dbf0db;
    --borderwhite: #ffffff;
    --titled: #4373a3;
    --primary: #4373a3;
    --primarylight: #ffffff;
    --primary-600: #ffffff;
    --primary-600light: #fff6e6;
    --primary-100: #fff1e6;
    --modal: #768238;
    --btndefault: #fba713;
    --btndefaultlight: #edf2f8;
    --btndefaulthover: #ffffff;
    --btnactive: #42BDCB;
    --navbar: #42BDCB;
    --danger: #e15155;
    --success: #047857;
    --warning: #f59e0b;
    --radius-xs: 0px;
    --radius-sm: 0px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 1px;
    --radius-pill: 999px;
    --radius-circle: 9999px;
    --radius: var(--radius-sm);
    --radius-btn: var(--radius-xs);
    --radius-input: var(--radius-xs);
    --radius-panel: var(--radius-sm);
    --radius-modal: var(--radius-lg);
    --radius-dropdown: var(--radius-lg);
    --radius-tag: var(--radius-pill);
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    --font-size: 13px;
    --font-size-small: 11px;
    --font-weight-small: 500;
    --font-weight-normal: 600;
    --line-height: 1.35;
    --shadow: 0 10px 24px rgba(0,0,0,.08);
    --shadow-sm: 0 6px 16px rgba(67, 115, 163,.08);
    --focus: 0 0 0 3px rgba(67, 163, 139,.25);
    --sidebar-w: 220px;
    --topbar-h: 50px;
    --pad: 7px;
    --control-h: 25px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #f4f7fb;
    color: var(--text);
    font-family: var(--font);
    font-size: var(--font-size);
    line-height: var(--line-height);
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-muted {
    color: var(--text);
}

.hidden {
    display: none !important;
}

.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
    transition: grid-template-columns .25s ease;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    border-right: 1px solid var(--border);
    background: var(--surface);
    padding: 12px;
    transition: width .25s ease;
}

.main {
    min-width: 0;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--surface);
    margin-bottom: 10px;
}

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xl);
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.brand-title {
    font-weight: 900;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.navbar {
    min-height: var(--topbar-h);
    height: var(--topbar-h);
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--navbar);
    background: var(--navbar);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar .navbar-brand {
    font-weight: 600;
    font-size: 13px;
    padding: 0;
    height: auto;
    line-height: 1.5;
    margin-right: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.navbar .nav {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar .nav > li {
    position: relative;
}

.navbar .nav > li > a {
    display: inline-flex;
    align-items: center;
    height: var(--topbar-h);
    padding: 0 10px;
    border-radius: var(--radius-btn);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
}

.navbar .nav > li > a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.dropdown-menu {
    position: absolute;
    top: calc(var(--topbar-h) - 2px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    z-index: 1000;
    margin: 6px 0 0;
    list-style: none;
}

.open > .dropdown-menu {
    display: block;
}

.dropdown-menu > li {
    list-style: none;
}

.dropdown-menu > li > a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-lg);
    color: var(--text);
    font-weight: 600;
}

.dropdown-menu > li > a:hover {
    background: var(--surface-2);
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    color: var(--text);
    font-weight: 600;
}

.menu a:hover {
    background: var(--surface-2);
    border-color: var(--borderwhite);
}

.menu .active > a {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
}

.menu small {
    font-weight: 700;
    color: var(--muted);
}

.submenu {
    list-style: none;
    padding: 6px 0 10px 34px;
    margin: 0;
}

.submenu a {
    font-weight: 500;
    color: var(--muted);
    padding: 8px 10px;
}

.submenu a:hover {
    color: var(--text);
}

.submenu .active > a {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
}

.collapse {
    display: none;
}

.collapse.in {
    display: block;
}

.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height .35s ease;
}

.row {
    margin-left: -8px;
    margin-right: -8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
}

.row:before,
.row:after {
    content: " ";
    display: table;
}

.row:after {
    clear: both;
}

[class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
    min-height: 1px;
    float: left;
}

.col-xs-12 {
    width: 100%;
}

.col-xs-6 {
    width: 50%;
}

.col-xs-4 {
    width: 33.3333%;
}

.col-xs-3 {
    width: 25%;
}

.panel {
    border: 1px solid var(--borderwhite);
    border-radius: var(--radius-panel);
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 16px;
}

.panel-heading {
    padding: 5px 7px;
    border-bottom: 1px solid var(--borderwhite);
    background: linear-gradient(180deg, #fff, var(--surface-2));
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--titled);
}

.panel-body {
    padding: 14px;
}

.btn {
    height: var(--control-h);
    padding: 0 12px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--primary);
    background: var(--primary);
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    color: #ffffff;
    font-family: arial;
}

.btn:focus {
    outline: none;
}

.btn:hover {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #ffffff;
}

.btn-primary {
    background: var(--btndefault);
    border: 1px solid var(--btndefault);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-600);
    border: 1px solid var(--primary-600);
    color: var(--btndefault);
}

.btn-default {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}

.btn-default:hover {
    background: var(--btndefaulthover);
    color: var(--primary);
    border: 1px solid var(--btndefaulthover);
}

.btn-link {
    border: 1px solid transparent;
    background: transparent;
    color: var(--primary-600);
}

.btn-link:hover {
    background: transparent;
    text-decoration: underline;
}

.btn.is-active,
.btn[aria-pressed="true"] {
    background: var(--btnactive);
    border: 1px solid var(--btnactive);
    color: #ffffff;
}

.btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 1;
    border: 1px solid #f3f4f6;
}

form {
    margin: 5px;
}

.has-right-border {
    border-right: 1px solid var(--border);
}

.form-group {
    margin-bottom: 5px;
}

input.error,
select.error,
textarea.error {
    border-color: #43a38b;
}

label,
.control-label {
    display: block;
    margin-bottom: 6px;
    font-weight: var(--font-weight-small);
    font-size: var(--font-size-small);
}

.help-block {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.help-block.error {
    color: var(--danger);
}

.help-block.success {
    color: var(--success);
}

.help-block.warning {
    color: var(--warning);
}

.form-control:focus {
    outline: none;
    border-color: var(--borderfocus);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 1;
}

.form-control[readonly] {
    background: #f9fafb;
}

textarea.form-control {
    height: auto;
    min-height: 90px;
    padding: 10px 12px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    background: #ffffff;
}

select.form-control:focus {
    background: var(--primary-600light);
    color: var(--primary-600);
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control {
    appearance: none;
    -webkit-appearance: none;
    min-height: var(--control-h);
    line-height: normal;
    padding-right: 10px;
}

.has-success .form-control {
    border-color: var(--success);
}

.has-warning .form-control {
    border-color: var(--warning);
}

.has-error .form-control {
    border-color: var(--danger);
}

.has-success .help-block {
    color: var(--success);
}

.has-warning .help-block {
    color: var(--warning);
}

.has-error .help-block {
    color: var(--danger);
}

.checkbox,
.radio,
.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    user-select: none;
}

.checkbox input,
.radio input,
.choice input[type="checkbox"],
.choice input[type="radio"],
input[type="checkbox" i] {
    margin: 0;
    width: 13px;
    height: 13px;
    accent-color: var(--primary);
    cursor: pointer;
}

.choice-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px 16px;
    align-items: baseline;
}

.choice-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 14px;
}

.form-control-static {
    min-height: var(--control-h);
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 600;
    padding: 0 2px;
}

.form-control.input-lg,
.btn.btn-lg {
    height: 42px;
    font-size: 15px;
    padding: 0 14px;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-inline .form-group {
    margin-bottom: 0;
}

.form-horizontal .form-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.form-horizontal .control-label {
    width: 160px;
    text-align: right;
    margin-bottom: 0;
}

.form-horizontal .form-control-wrapper {
    flex: 1;
}

.form-section-title {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--titled);
}

.input-group {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.input-group-addon {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: #f9fafb;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.input-group .input-group-addon:first-child {
    border-right: 0;
    border-radius: var(--radius-input) 0 0 var(--radius-input);
}

.input-group .form-control:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.input-group .form-control:first-child:not(:last-child) {
    border-radius: var(--radius-input) 0 0 var(--radius-input);
}

.input-group .form-control:last-child:not(:first-child) {
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
}

.input-group .input-group-addon:last-child {
    border-left: 0;
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
}

.input-group-btn .btn {
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    border-radius: 0;
    margin-left: -1px;
}

.btn-group .btn:first-child {
    margin-left: 0;
    border-top-left-radius: var(--radius-btn);
    border-bottom-left-radius: var(--radius-btn);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius-btn);
    border-bottom-right-radius: var(--radius-btn);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px 14px;
    margin: 0 0 16px 0;
    min-width: 0;
}

legend {
    font-size: 13px;
    font-weight: 900;
    padding: 0 6px;
    color: var(--text);
}

label.error {
    color: red !important;
}

.x-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.x-modal.is-open {
    display: block;
}

.x-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.x-modal-dialog {
    position: relative;
    width: 640px;
    max-width: calc(100% - 30px);
    margin: 48px auto;
    z-index: 1;
}

.x-modal-content {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow: hidden;
}

.x-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navbar);
}

.x-modal-header .close {
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.x-modal-header .close:hover {
    color: #111827;
}

.x-modal-body {
    padding: 18px;
}

.x-modal-footer {
    padding: 14px 18px;
    border-top: 1px solid #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.x-modal-title {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    color: #ffffff;
}

body.modal-open {
    overflow: hidden;
}

.story {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 12px;
}

.story-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.story-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.story-item:hover {
    background: var(--surface-2);
}

.story-item.active {
    background: var(--primarylight);
    border-left: 4px solid var(--primary);
    padding-left: 8px;
}

.story-item-title {
    font-weight: 600;
}

.story-item-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.story-detail {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.story-detail-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: #ffffff;
}

.story-detail-title {
    font-weight: 600;
}

.story-detail-body {
    padding: 14px;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-tag);
    background: #fff;
    font-weight: 500;
    font-size: 12px;
    color: var(--muted);
}

.tag.primary {
    background: var(--btndefault);
    border-color: var(--btndefault);
    color: #ffffff;
}

.timeline {
    margin-top: 14px;
    padding-left: 0;
    list-style: none;
}

.timeline li {
    position: relative;
    padding: 10px 10px 10px 26px;
    border-bottom: 1px dashed var(--border);
}

.timeline li:last-child {
    border-bottom: 0;
}

.timeline li:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: var(--btndefault);
}

.timeline-title {
    font-weight: 900;
    font-size: 13px;
}

.timeline-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.story-content,
.story-detail,
.story-detail-body,
#loadInfo {
    overflow: visible !important;
}

.panel,
.panel-body,
.story-content,
.story-detail-body,
#loadInfo {
    overflow: visible !important;
}

body.sidebar-collapsed .app {
    grid-template-columns: 70px 1fr;
}

body.sidebar-collapsed .brand-title,
body.sidebar-collapsed .brand-subtitle,
body.sidebar-collapsed .menu span,
body.sidebar-collapsed .menu small {
    display: none;
}

body.sidebar-collapsed .menu a {
    justify-content: center;
    padding: 12px 6px;
}

body.sidebar-collapsed .menu a span.text-muted {
    display: none;
}

body.sidebar-collapsed .submenu {
    display: none !important;
}

body.sidebar-collapsed .brand {
    justify-content: center;
}

.tl {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.tl-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 7px;
    background: linear-gradient(180deg, #fff, var(--surface-2));
}

.tl-toolbar .left,
.tl-toolbar .right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tl-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--muted);
}

.tl-input,
.tl-select {
    height: var(--control-h);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0 10px;
    background: #fff;
    color: var(--text);
}

.tl-input:focus,
.tl-select:focus {
    outline: none;
    border-color: var(--borderfocus);
    box-shadow: none;
}

.tl-table {
    width: 100%;
    border-collapse: collapse;
}

.tl-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    font-weight: 900;
    font-size: 11px;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    user-select: none;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tl-table thead th:hover {
    background: var(--surface-2);
}

.tl-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tl-sort .caret {
    font-size: 11px;
    color: var(--muted);
}

.tl-table tbody td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    vertical-align: top;
}

.tl-table tbody tr:nth-child(even) td {
    background: var(--primarylight);
}

.tl-table tbody tr:hover td {
    background: var(--btndefaultlight);
}

.tl-empty {
    padding: 18px 12px;
    color: var(--muted);
}

.tl-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #fff;
}

.tl-pager {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.tl-btn {
    height: var(--control-h);
    padding: 0 10px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    background: #ffffff;
    cursor: pointer;
    font-weight: var(--font-weight-small);
    font-size: var(--font-size-small);
    color: var(--primary);
}

.tl-btn:hover {
    background: #ffffff;
}

.tl-btn:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.tl-page {
    min-width: 44px;
    text-align: center;
    font-weight: var(--font-weight-small);
    font-size: var(--font-size-small);
    color: var(--primary);
}

.tl-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 900;
    font-size: 12px;
    color: var(--muted);
}

.tl-pill.primary {
    border-color: rgba(224,122,47,.35);
    background: rgba(224,122,47,.10);
    color: var(--primary-600);
}

.tl-scroll {
    max-height: 100% !important;
    overflow: auto;
    border-top: 1px solid var(--border);
}

.tl-colmenu {
    position: relative;
}

.tl-colpanel {
    position: absolute;
    right: 0;
    top: calc(var(--control-h) + 8px);
    width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    z-index: 30;
}

.tl-colpanel.open {
    display: block;
}

.tl-colitem {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-radius: var(--radius-lg);
}

.tl-colitem:hover {
    background: var(--surface-2);
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(180deg, var(--primarylight), #fff 35%);
}

.login-card {
    width: min(420px, 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, var(--surface-2));
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.login-body {
    padding: 16px;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.dp-popup.hidden {
    display: none;
}

.dp-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--primary);
    border-bottom: 1px solid var(--border);
}

.dp-selects {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.dp-select {
    height: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    padding: 0 8px;
    max-width: 120px;
}

.dp-select:focus {
    outline: none;
    border-color: var(--primary);
}

.dp-nav {
    width: 30px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.dp-nav:hover:not(:disabled) {
    background: var(--surface-2);
}

.dp-nav:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 6px 0;
}

.dp-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
    padding: 6px 0;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 6px;
}

.dp-day {
    height: 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
}

.dp-day:hover:not(:disabled) {
    background: var(--btndefault);
    border-color: var(--btndefault);
    color: var(--surface);
}

.dp-day.is-muted {
    color: #b2b8c2;
}

.dp-day.is-today {
    border-color: var(--surface);
    color: var(--btndefault);
    background-color: var(--surface);
    font-weight: var(--font-weight-normal);
}

.dp-day.is-selected {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--surface);
}

.dp-day.is-disabled,
.dp-day:disabled {
    color: #c5cad3;
    background: #f9fafb;
    cursor: not-allowed;
    opacity: .75;
}

.dp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
    background: #fff;
    gap: 8px;
}

.dp-footer-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    cursor: pointer;
}

.dp-footer-btn:hover:not(:disabled) {
    background: var(--surface-2);
}

.dp-footer-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dp-today {
    background: var(--btndefault);
    border-color: var(--btndefault);
    color: var(--surface);
}

.dp-today:hover:not(:disabled) {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--surface);
}

.sl-control:focus {
    outline: none;
    border-color: var(--borderfocus);
}

.sl-value-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.sl-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-value.is-placeholder {
    color: #9ca3af;
}

.sl-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(224,122,47,.10);
    border: 1px solid rgba(224,122,47,.25);
    color: var(--primary-600);
    font-size: 12px;
    font-weight: 800;
    max-width: 100%;
}

.sl-pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-pill-remove {
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
}

.sl-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sl-clear {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.sl-clear:hover {
    background: var(--surface-2);
    color: var(--text);
}

.sl-arrow {
    color: var(--muted);
    font-size: 12px;
}

.sl-search-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, var(--surface-2));
}

.sl-search {
    width: 100%;
    height: var(--control-h);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: 0 10px;
    font-size: 12px;
}

.sl-search:focus {
    outline: none;
    border-color: var(--primarylight);
}

.sl-group {
    padding: 8px 10px 4px;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sl-option {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl-option:hover,
.sl-option.is-highlighted {
    background: var(--primary-600light);
}

.sl-option.is-selected {
    background: var(--primary-600light);
    color: var(--btndefault);
}

.sl-option.is-disabled {
    color: #b6bcc6;
    cursor: not-allowed;
}

.sl-option.hidden {
    display: none;
}

.sl-check {
    width: 16px;
    text-align: center;
    font-weight: 900;
    color: var(--primary-600);
    flex-shrink: 0;
}

.sl-option-label {
    min-width: 0;
}

.sl.is-open .sl-control {
    border-color: var(--primarylight);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.dashboard-hero {
    background: linear-gradient(135deg, var(--primary), #1f2937);
    border-radius: 18px;
    padding: 28px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .18);
}

.dashboard-hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
}

.dashboard-hero p {
    margin: 0;
    opacity: .85;
}

.dashboard-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kpi-card {
    background: var(--btndefaultlight);
    border: 1px solid var(--btndefaultlight);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, .10);
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.kpi-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #f1f5f9;
}

.kpi-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
}

.kpi-sub {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.kpi-total .kpi-icon {
    color: #2563eb;
    background: #dbeafe;
}

.kpi-open .kpi-icon {
    color: #0284c7;
    background: #e0f2fe;
}

.kpi-pending .kpi-icon {
    color: #d97706;
    background: #fef3c7;
}

.kpi-resolved .kpi-icon {
    color: #059669;
    background: #d1fae5;
}

.kpi-closed .kpi-icon {
    color: #475569;
    background: #e2e8f0;
}

.kpi-overdue .kpi-icon {
    color: #dc2626;
    background: #fee2e2;
}

.modern-table {
    margin-bottom: 0;
}

.modern-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 14px 16px !important;
}

.modern-table tbody td {
    padding: 15px 16px !important;
    vertical-align: middle !important;
    border-top: 1px solid #f1f5f9 !important;
}

.text-muted-small {
    color: #94a3b8;
    font-size: 12px;
}

.page-hero.compact {
    background: linear-gradient(135deg, var(--primary), #1e3348);
    color: #fff;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 14px 35px rgba(15,23,42,.16);
}

.page-hero.compact h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 900;
}

.page-hero.compact p {
    margin: 0;
    opacity: .86;
}

.action-details {
    display: inline-block;
    margin: 2px 4px 2px 0;
    position: relative;
}

.action-details summary {
    list-style: none;
    cursor: pointer;
}

.action-details summary::-webkit-details-marker {
    display: none;
}

.inline-edit-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: min(420px, calc(100vw - 28px));
    max-height: calc(100vh - 60px);
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
    display: grid;
    gap: 12px;
}

.inline-edit-card .form-control {
    width: 100%;
}

.inline-edit-card:before {
    content: "Quick Edit";
    display: block;
    font-weight: 900;
    color: var(--titled);
    padding-right: 34px;
    margin-bottom: 2px;
}

.inline-edit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inline-edit-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-details[open] summary {
    position: relative;
    z-index: 99990;
}

.inline-edit-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(2, 6, 23, .70);
    backdrop-filter: blur(2px);
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ticket-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.section-title-small {
    font-size: 12px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 12px 0 8px;
}

.note-card,
        .work-card,
        .file-card,
        .time-card,
        .workflow-card,
        .billing-card {
    padding: 14px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
    margin-bottom: 10px;
}

.note-meta,
        .work-meta,
        .file-meta,
        .time-meta,
        .workflow-meta,
        .billing-meta {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.alert-info {
    background: #0c4a6e;
    color: #bae6fd;
    border: 1px solid #0369a1;
}

.ticket-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(135deg,var(--primary),#111827);
    color: #fff;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.ticket-hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.ticket-hero p {
    margin: 0;
    opacity: .85;
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ticket-shell {
    display: grid;
    grid-template-columns: minmax(0,1fr) 360px;
    gap: 18px;
    align-items: start;
}

.ticket-tab-btn {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 13px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ticket-tab-btn:hover,.ticket-tab-btn.is-active {
    border-color: var(--primary);
    background: var(--btndefaultlight);
    color: var(--primary);
}

.ticket-tab-panel {
    display: none;
}

.ticket-tab-panel.is-active {
    display: block;
}

.description-box {
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
    line-height: 1.7;
    min-height: 120px;
}

.summary-grid {
    display: grid;
    gap: 10px;
}

.summary-item {
    padding: 2px;
    border: 0px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
}

.summary-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

.summary-value {
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
    font-size: 12px;
}

.note-card,.work-card,.file-card,.time-card,.workflow-card,.billing-card {
    padding: 14px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
    margin-bottom: 10px;
}

.note-meta,.work-meta,.file-meta,.time-meta,.workflow-meta,.billing-meta {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.private-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(239,68,68,.15);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-empty {
    padding: 18px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    background: var(--surface-2);
    border-radius: 14px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-col {
    flex: 1 1 190px;
    min-width: 180px;
    padding-bottom: 20px;
}

.sla-danger {
    color: var(--danger);
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.mini-stat {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.mini-stat-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 6px;
}

.mini-stat-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
}

.quick-links {
    display: grid;
    gap: 8px;
}

.quick-links a {
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 12px;
    color: var(--text);
    font-weight: 800;
}

.quick-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quick-actions-top {
    margin-bottom: 18px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.quick-actions-grid a {
    padding: 11px 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 12px;
    color: var(--text);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-actions-grid a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.workflow-progress {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.workflow-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    overflow: hidden;
}

.workflow-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,var(--primary),var(--success));
    border-radius: 999px;
}

.workflow-timeline {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.workflow-step-no {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #334155;
    color: #e2e8f0;
    font-weight: 900;
    border: 1px solid var(--border);
}

.workflow-step-card.step-done .workflow-step-no {
    background: #064e3b;
    color: #a7f3d0;
}

.workflow-step-card.step-progress .workflow-step-no {
    background: #0c4a6e;
    color: #bae6fd;
}

.workflow-step-card.step-skipped .workflow-step-no {
    background: #78350f;
    color: #fde68a;
}

.workflow-step-title {
    font-weight: 900;
    color: var(--text);
    margin-bottom: 4px;
}

.workflow-step-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 8px 0;
}

.workflow-step-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.workflow-step-actions .btn {
    min-height: 30px;
}

.workflow-apply-box {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

.workflow-help {
    color: var(--muted);
    font-size: 12px;
    margin: 6px 0 0;
}

.wa-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.wa-inbound {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.wa-outbound {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: rgba(66,189,203,.12);
    border-color: rgba(66,189,203,.35);
}

.wa-meta {
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.wa-status {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}

.wa-number {
    font-weight: 900;
    color: var(--primary);
}

.doc-builder-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.doc-builder-card {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 16px;
    padding: 16px;
}

.doc-builder-card h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--titled);
}

.doc-builder-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.email-attachments {
    border: 1px dashed var(--border);
    background: var(--surface-2);
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0;
}

.email-attachments-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 8px;
}

.attachment-choice {
    display: block;
    margin: 5px 0;
}

.document-kind {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(66,189,203,.13);
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    margin-left: 6px;
    text-transform: uppercase;
}

.main > .navbar {
    display: none !important;
}

.content {
    padding: var(--pad);
    padding-top: 14px;
}

.page-hero,
.page-hero.compact,
.ticket-hero,
.qs-hero,
.dashboard-hero {
    position: relative;
    overflow: hidden;
}

.page-hero:before,
.page-hero.compact:before,
.ticket-hero:before,
.qs-hero:before,
.dashboard-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 38%);
    pointer-events: none;
}

.page-hero > *,
.ticket-hero > *,
.qs-hero > *,
.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.page-action-hero,
.page-hero.compact,
.ticket-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.hero-actions,
.dashboard-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ticket-action-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.ticket-action-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    min-height: 78px;
}

.ticket-action-tile:hover,
.ticket-action-tile.primary {
    border-color: var(--btndefaultlight);
    background: var(--btndefaultlight);
    color: var(--primary);
}

.ticket-action-tile i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--primary);
    font-size: 16px;
    flex: 0 0 auto;
}

.ticket-action-tile strong {
    display: block;
    font-weight: 900;
    line-height: 1.2;
}

.ticket-action-tile small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.35;
}

.ticket-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 8px !important;
    z-index: 9990;
}

.workflow-step-card {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 16px;
    border-left: 4px solid var(--border);
}

.workflow-step-card.step-progress {
    border-left-color: var(--primary);
}

.workflow-step-card.step-done {
    border-left-color: var(--success);
}

.workflow-step-card.step-skipped {
    border-left-color: var(--warning);
}

.report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.report-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: visible;
}

.report-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--btndefaultlight);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.report-card-head h3 {
    margin: 0;
    font-size: 14px;
    color: var(--titled);
    font-weight: 900;
}

.report-card-body {
    padding: 16px;
}

.report-help {
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
    line-height: 1.45;
}

.report-warning {
    color: #fecaca;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.28);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.report-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.report-checkbox-grid.field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px;
    border: 0px solid var(--border);
    background: var(--surface-2);
    border-radius: 0px;
    color: var(--text);
    cursor: pointer;
    min-height: 42px;
}

.report-check input {
    margin-top: 2px;
    accent-color: var(--primary);
}

.report-check span {
    font-weight: 800;
    line-height: 1.25;
}

.report-check-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.report-check-actions a {
    color: var(--primary);
}

.report-actions-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.report-tip {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    line-height: 1.4;
}

.report-tip:last-child {
    border-bottom: 0;
}

.sticky-report-card {
    position: sticky;
    top: 12px;
}

.report-empty {
    padding: 42px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    background: var(--surface-2);
    border-radius: 14px;
}

.report-empty i {
    font-size: 38px;
    margin-bottom: 10px;
    color: var(--primary);
}

.report-builder-shell {
    display: grid;
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.report-builder-shell.has-results {
    grid-template-columns: minmax(0, 1fr);
}

.report-filter-column {
    min-width: 0;
}

.report-filter-column.is-hidden {
    display: none;
}

.report-results-column {
    min-width: 0;
}

.report-filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.report-filter-summary .summary-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.report-filter-summary .summary-value {
    color: var(--text);
    font-weight: 800;
    line-height: 1.4;
}

.report-filter-summary .summary-actions,
.report-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.report-filter-card {
    margin-bottom: 14px;
}

.report-field-stack {
    display: grid;
    gap: 12px;
}

.report-field-block label {
    margin-bottom: 6px;
}

.report-checkbox-list,
.report-checkbox-list.field-grid {
    grid-template-columns: 1fr;
    max-height: 315px;
    overflow: auto;
    padding-right: 3px;
}

.report-checkbox-list .report-check {
    min-height: auto;
    padding: 9px 10px;
}

.report-filter-actions {
    display: grid;
    gap: 0px;
    bottom: 0px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 0px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    z-index: 99999;
}

.report-filter-actions .btn {
    width: 100%;
}

.report-results-card {
    min-height: 480px;
}

.report-table-wrap {
    max-height: calc(100vh - 280px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.report-welcome {
    min-height: 360px;
    display: grid;
    place-content: center;
}

.ticket-new-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.ticket-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.ticket-form-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--btndefaultlight);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ticket-form-title {
    margin: 0;
    color: var(--titled);
    font-size: 16px;
    font-weight: 900;
}

.ticket-form-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 700;
}

.ticket-form-body {
    padding: 18px;
}

.ticket-step {
    border: 0px solid var(--border);
    background: var(--surface-2);
    border-radius: 0px;
    padding: 16px;
    margin-bottom: 16px;
}

.ticket-step-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ticket-step-no {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.ticket-step-title {
    color: var(--text);
    font-weight: 900;
    font-size: 15px;
}

.ticket-step-help {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

.requester-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 0px;
    padding: 14px;
    margin-bottom: 14px;
}

.requester-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

.manual-requester {
    display: none;
}

.manual-requester.is-visible {
    display: block;
}

.contact-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.contact-pill {
    border: 1px solid var(--btndefaultlight);
    background: var(--btndefaultlight);
    border-radius: 12px;
    padding: 10px;
}

.contact-pill small {
    display: block;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 10px;
    margin-bottom: 4px;
}

.contact-pill strong {
    word-break: break-word;
    color: var(--text);
}

.ticket-help-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 14px;
}

.ticket-help-head {
    padding: 16px 18px;
    background: var(--btndefaultlight);
    border-bottom: 1px solid var(--border);
}

.ticket-help-head h3 {
    margin: 0;
    color: var(--titled);
    font-size: 15px;
    font-weight: 900;
}

.ticket-help-body {
    padding: 16px 18px;
}

.ticket-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.ticket-help-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
}

.ticket-help-list i {
    color: var(--primary);
    margin-top: 2px;
}

.ticket-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 18px 18px;
}

.ticket-new-hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.form-control.js-date {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.dp {
    position: relative;
}

.dp-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 99999;
    width: 250px;
}

.dp-card,
.sl-dropdown {
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.sl-control {
    width: 100%;
    min-height: var(--control-h);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
}

.inline-edit-card .sl-dropdown,
.inline-edit-card .dp-popup {
    z-index: 100000;
}

.report-filter-panel .sl,
.ticket-new-form .sl,
.profile-card .sl,
.modern-panel .sl {
    width: 100%;
}

.sl {
    position: relative;
    width: 100%;
    z-index: 20;
}

.sl.is-open {
    z-index: 99999;
}

.sl-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    z-index: 999999 !important;
    overflow: hidden;
    max-height: min(320px, 45vh);
    overflow-y: auto;
    overflow-x: hidden;
}

.sl-dropdown.hidden {
    display: none !important;
}

.sl-list {
    max-height: min(320px, 40vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    scroll-behavior: smooth;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary), #111827);
    border-radius: 18px;
    padding: 26px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .18);
}

.page-hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 900;
}

.page-hero p {
    margin: 0;
    opacity: .85;
}

.modern-panel {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.modern-panel-header {
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    overflow: visible !important;
    background: var(--btndefaultlight);
    border-radius: 16px 16px 0 0;
}

.modern-panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: var(--primary);
}

.modern-panel-body {
    padding: 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
}

.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    height: var(--control-h);
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 0px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    transition: .15s ease;
    font-family: var(--font);
    margin-bottom: 15px;
}

.btn-modern {
    border-radius: 0px;
    padding: 0px 10px;
    font-weight: 500;
    margin-top: 25px;
}

.subject-main {
    font-weight: 700;
    color: var(--text);
}

.subject-sub {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 3px;
}

.badge-modern {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    border: none;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: #d1fae5;
    color: #047857;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-dark {
    background: #e2e8f0;
    color: #334155;
}

.badge-muted {
    background: #f1f5f9;
    color: #64748b;
}

.tl-table-wrapper {
    border: none !important;
    box-shadow: none !important;
}

.tl-table td {
    vertical-align: middle;
}

.empty-state {
    padding: 42px;
    text-align: center;
    color: #94a3b8;
}

.empty-state i {
    font-size: 42px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.ticket-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ticket-filter-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 12px;
    font-weight: 900;
}

.ticket-filter-tabs a.is-active {
    border-color: var(--surface);
    color: var(--surface);
    background: var(--primary);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 360px;
    gap: 18px;
    align-items: start;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 18px;
}

.profile-card-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--btndefaultlight);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.profile-card-title {
    font-weight: 900;
    color: var(--titled);
    margin: 0;
    font-size: 15px;
}

.profile-card-body {
    padding: 18px;
}

.profile-summary {
    display: grid;
    gap: 10px;
}

.profile-summary-item {
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
}

.profile-summary-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-summary-value {
    font-weight: 800;
    color: var(--text);
    margin-top: 4px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.permission-item {
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
}

.permission-item .choice {
    align-items: flex-start;
}

.permission-key {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.workload-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.workload-card {
    background: var(--btndefaultlight);
    border: 1px solid var(--btndefaultlight);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.workload-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, .10);
}

.workload-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.workload-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
}

.workload-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.sla-warning {
    color: var(--warning);
    font-weight: 900;
}

.sla-breach {
    color: var(--danger);
    font-weight: 900;
}

.sla-ok {
    color: var(--success);
    font-weight: 500;
}

.ticket-link {
    font-weight: 900;
    color: var(--primary);
}

.compact-table td,.compact-table th {
    white-space: nowrap;
}

.compact-table td.subject-cell {
    white-space: normal;
    min-width: 240px;
}

.mini-activity {
    display: grid;
    gap: 8px;
}

.mini-activity-item {
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 12px;
}

.mini-activity-title {
    font-weight: 900;
}

.mini-activity-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dash-card {
    background: var(--btndefaultlight);
    border: 1px solid var(--btndefaultlight);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, .10);
}

.dash-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.dash-value {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
}

.dash-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.dash-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 18px;
}

.dash-panel-head {
    padding: 16px 18px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dash-panel-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--titled);
    margin: 0;
}

.dash-panel-body {
    padding: 18px;
}

.qs-hero {
    background: linear-gradient(135deg,var(--primary),#1e3348);
    color: #fff;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.qs-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

.qs-hero p {
    margin: 0;
    opacity: .88;
    max-width: 850px;
    line-height: 1.6;
}

.qs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0,1fr);
    gap: 18px;
    align-items: start;
}

.qs-nav {
    position: sticky;
    top: 70px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.qs-nav-title {
    font-weight: 900;
    color: var(--titled);
    margin: 4px 0 10px;
}

.qs-nav a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
}

.qs-nav a:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.qs-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.qs-panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--btndefaultlight);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qs-panel-head h2 {
    font-size: 17px;
    margin: 0;
    color: var(--titled);
    font-weight: 900;
}

.qs-panel-body {
    padding: 18px;
}

.qs-panel-body p {
    line-height: 1.7;
    color: var(--text);
}

.qs-steps {
    counter-reset: step;
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.qs-step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.qs-step:before {
    content: counter(step);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.qs-step strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
}

.qs-step span {
    color: var(--muted);
    line-height: 1.5;
}

.qs-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}

.qs-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.qs-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text);
    font-weight: 900;
}

.qs-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.qs-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(66,189,203,.14);
    color: var(--primary);
    border: 1px solid rgba(66,189,203,.25);
}

.qs-permission {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.qs-permission:last-child {
    border-bottom: 0;
}

.qs-ok {
    color: var(--success);
    font-weight: 900;
}

.qs-no {
    color: var(--muted);
    font-weight: 900;
}

.portal-register-subtitle {
    color: var(--muted);
    text-align: center;
    margin: 0 0 14px;
    font-weight: 600;
}

.portal-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.portal-links .btn {
    flex: 1 1 150px;
}

.password-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
}

#timeTableWrapper {
    position: relative;
    overflow: visible !important;
}

#timeTableWrapper .tl-scroll,
            #timeTableWrapper .tl-table-scroll,
            #timeTableWrapper .table-lite-scroll,
            #timeTableWrapper .tablelite-scroll,
            #timeTableWrapper [class*="scroll"] {
    max-height: 620px;
    overflow: auto !important;
}

#timeTableWrapper .tl-pagination,
            #timeTableWrapper .tl-pager,
            #timeTableWrapper .table-lite-pagination,
            #timeTableWrapper .tablelite-pagination,
            #timeTableWrapper [class*="pagination"],
            #timeTableWrapper [class*="pager"] {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    margin-top: 12px;
    background: #fff;
}

#timeTableWrapper table.tl-table {
    margin-bottom: 0;
}

#billingTableWrapper {
    position: relative;
    overflow: visible !important;
}

#billingTableWrapper .tl-table,
    #billingTableWrapper table {
    margin-bottom: 0;
}

#billingTableWrapper .tl-scroll,
    #billingTableWrapper .tl-table-scroll,
    #billingTableWrapper .tl-body,
    #billingTableWrapper .tl-table-body,
    #billingTableWrapper .table-responsive {
    max-height: 620px;
    overflow: auto !important;
}

#billingTableWrapper .tl-footer,
    #billingTableWrapper .tl-controls,
    #billingTableWrapper .tl-pagination,
    #billingTableWrapper .tl-pager,
    #billingTableWrapper .pagination,
    #billingTableWrapper [class*="pagination"],
    #billingTableWrapper [class*="pager"] {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    clear: both;
    z-index: 1;
}

#billingTableWrapper .tl-footer,
    #billingTableWrapper .tl-controls {
    margin-top: 12px;
    background: transparent;
}

.department-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    z-index: 9999;
    padding: 20px;
}

.department-modal-backdrop.is-open {
    display: flex;
}

.department-modal {
    width: min(520px, 96vw);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
    padding: 24px;
}

.department-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.department-modal-header h3 {
    margin: 0;
}

.department-modal-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.department-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.settings-table-wrap {
    width: 100%;
    min-width: 0;
}

.settings-ajax-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.settings-edit-card {
    margin-top: 10px;
}

.settings-edit-card[hidden] {
    display: none !important;
}

.settings-table-shell {
    position: relative;
    width: 100%;
    min-width: 0;
}

.category-form-actions {
    display: flex;
    gap: 10px;
    padding-top: 24px;
}

.inline-edit-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

#settingsTableWrapper {
    width: 100%;
    min-width: 0;
}

#settingsTableWrapper .tl-scroll,
        #settingsTableWrapper .tl-table-scroll,
        #settingsTableWrapper .table-responsive {
    max-height: 520px;
    overflow: auto;
}

#settingsTableWrapper .tl-pagination,
        #settingsTableWrapper .tl-footer,
        #settingsTableWrapper .tl-pager {
    position: static !important;
    margin-top: 12px;
    background: #fff;
}

#page-loader,
.page-loader,
#overlay,
.overlay,
.loading-overlay {
    display: none !important;
    pointer-events: none !important;
}

.ea-tab-pills,
.nav-tabs,
.tab-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    padding: 10px;
    margin: 0 0 16px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.ea-tab-pills a,
.nav-tabs .nav-link,
.tab-menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 12px;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
}

.ea-tab-pills a:hover,
.ea-tab-pills a.is-active,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active,
.tab-menu a:hover,
.tab-menu a.active {
    border-color: var(--primary);
    background: var(--btndefaultlight);
    color: var(--primary);
}

.dash-filter-dropdown {
    position: relative;
    display: inline-flex;
}

.dash-filter-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    top: calc(100% + 6px);
    max-height: 320px;
    overflow: auto;
}

.dash-filter-dropdown.open .dropdown-menu {
    display: block;
}

.chart-box {
    min-height: 360px;
}

.chart-box > div {
    min-height: 350px;
}

.profile-chart {
    min-height: 350px;
}

.profile-actions-dropdown {
    position: relative;
    display: inline-flex;
}

.profile-actions-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    top: calc(100% + 6px);
    max-height: 320px;
    overflow: auto;
    position: absolute;
    z-index: 99999;
}

.profile-actions-dropdown.open .dropdown-menu {
    display: block;
}

#page-loader, .page-loader, #overlay, #overlayP2, .overlay, .loading-overlay {
    display: none !important;
    pointer-events: none !important;
}

body.loading {
    overflow: auto !important;
}

.modern-panel, .modern-panel-header, .modern-panel-body, .profile-card, .profile-card-head, .profile-card-body, .profile-tab-content, .profile-tab-panel, .content {
    overflow: visible !important;
}

.profile-actions-dropdown, .dash-filter-dropdown {
    position: relative;
    display: inline-flex;
    overflow: visible !important;
    z-index: 100;
}

.profile-actions-dropdown.open, .dash-filter-dropdown.open {
    z-index: 999999;
}

.profile-actions-dropdown .dropdown-menu, .dash-filter-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    display: none;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-dropdown);
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 999999;
}

.profile-actions-dropdown.open .dropdown-menu, .dash-filter-dropdown.open .dropdown-menu {
    display: block;
}

.profile-actions-dropdown .dropdown-menu li, .dash-filter-dropdown .dropdown-menu li {
    list-style: none;
}

.profile-actions-dropdown .dropdown-menu a, .dash-filter-dropdown .dropdown-menu a {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.profile-actions-dropdown .dropdown-menu a:hover, .dash-filter-dropdown .dropdown-menu a:hover {
    background: var(--btndefaultlight);
    color: var(--primary);
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.is-active {
    display: block;
}

.profile-loader {
    display: none !important;
}

.chart-box, .profile-chart {
    min-height: 360px;
}

.chart-box > div, .profile-chart > div {
    min-height: 350px;
}

.offline-box {
    min-height: 350px;
    overflow: auto;
}

.ea-sidebar {
    box-shadow: 10px 0 30px rgba(67, 115, 163, 0.06);
}

.ea-brand {
    border: 0;
    background: linear-gradient(135deg, rgba(66, 189, 203, .14), rgba(67, 115, 163, .08));
}

.ea-brand .brand-badge {
    background: #ffffff;
    border: 1px solid var(--border);
}

.ea-brand-logo {
    max-width: 28px;
    max-height: 28px;
}

.ea-menu-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 6px;
    background: rgba(67, 115, 163, .08);
}

.ea-sidebar-footer {
    margin-top: 22px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: #fff;
    display: grid;
    gap: 4px;
}

.ea-topbar {
    box-shadow: 0 8px 20px rgba(67, 115, 163, .08);
}

.ea-topbar-left,
.ea-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ea-icon-btn {
    min-width: 34px;
    padding: 0 10px;
}

.ea-page-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow-sm);
}

.ea-page-head h1 {
    margin: 0 0 6px;
    color: var(--titled);
    font-size: 22px;
}

.ea-page-head p {
    margin: 0;
    color: var(--muted);
}

.ea-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ea-kpi-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.ea-kpi-label {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.ea-kpi-value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}

.ea-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
}

.ea-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ea-panel {
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.ea-panel .panel-heading {
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.ea-panel .panel-body {
    padding: 14px;
}

.ea-table-wrap {
    width: 100%;
    overflow: auto;
}

.ea-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ea-table th,
.ea-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.ea-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--muted);
    background: #f8fbff;
}

.ea-status {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(4, 120, 87, .1);
    color: #047857;
}

.ea-app-shell {
    min-height: 100vh;
}

.ea-content {
    min-height: calc(100vh - var(--topbar-h));
    padding: 16px;
}

.navbar-spacer,
.main-space,
.color-line,
body > .color-line,
body > .navbar-spacer {
    display: none !important;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.top-margin {
    margin-top: 0 !important;
}

[class^="col-"],
[class*=" col-"] {
    min-width: 0;
}

.col,
.col-12,
.col-md-12,
.col-lg-12 {
    flex: 1 1 100%;
}

.col-6,
.col-md-6,
.col-lg-6 {
    flex: 1 1 calc(50% - 12px);
}

.col-4,
.col-md-4,
.col-lg-4 {
    flex: 1 1 calc(33.333% - 12px);
}

.col-3,
.col-md-3,
.col-lg-3 {
    flex: 1 1 calc(25% - 12px);
}

.card,
.panel,
.modal-content,
.login,
#myForm,
#myDetails:has(*) {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.card-header,
.panel-heading,
.modal-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    color: var(--titled);
    font-weight: 800;
}

.card-body,
.panel-body,
.modal-body,
.login,
#myForm,
#myDetails:has(*) {
    padding: 14px;
}

.table,
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: var(--text);
}

table th,
.table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fbff;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 900;
}

table th,
table td,
.table th,
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

table tr:hover td,
.table tr:hover td {
    background: #fbfdff;
}

.table-responsive,
.dataTables_wrapper,
.table-lite-wrapper {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.dataTables_filter,
.dataTables_length,
.dt-buttons,
.table-lite-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
}

.dataTables_filter input,
.table-lite-search,
.form-control,
.form-select,
select,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea {
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 10px;
    background: #fff;
    color: var(--text);
    outline: none;
}

.form-control:focus,
.form-select:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: var(--borderfocus);
    box-shadow: var(--focus);
}

.btn,
button,
input[type="button"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    filter: brightness(.97);
}

.btn-light,
.btn-secondary {
    background: #fff;
    color: var(--primary);
    border-color: var(--border);
}

.btn-green,
.btn-success,
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-red,
.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
}

.pull-right,
.float-end,
.text-end {
    margin-left: auto;
    text-align: right;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.log-in-form {
    max-width: 430px;
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 24px !important;
}

body:has(.log-in-form) {
    background: radial-gradient(circle at top left, rgba(66, 189, 203, .18), transparent 30%), #f4f7fb;
}

.log-in-form > img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.dropdown {
    position: relative;
}

.dropdown.open > .dropdown-menu,
.dropdown:hover > .dropdown-menu,
.dropdown-menu.show {
    display: block;
}

.dropdown-menu a,
.dropdown-item {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
}

.dropdown-menu a:hover,
.dropdown-item:hover {
    background: #f4f7fb;
}

.ea-sidebar .dropdown-menu {
    position: static;
    box-shadow: none;
    margin: 4px 0 8px 34px;
    min-width: 0;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: auto;
    padding: 32px 16px;
    background: rgba(15, 23, 42, .45);
}

.modal.show {
    display: block;
}

.modal-dialog {
    width: 900px;
    margin: 48px auto;
    position: relative;
    max-width: calc(100% - 30px);
    z-index: 1;
}

.modal-dialog.modal-lg {
    width: min(1100px, 96vw);
}

.modal-dialog.modal-sm {
    width: min(520px, 96vw);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}

.btn-close {
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

.btn-close::before {
    content: "×";
    font-size: 20px;
    line-height: 1;
}

.offcanvas {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px,96vw);
    height: 100vh;
    z-index: 2100;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: auto;
    transform: translateX(100%);
    transition: transform .2s ease;
    padding: 0;
}

.offcanvas.show {
    display: block;
    transform: translateX(0);
}

.offcanvas-header,
.offcanvas-body {
    padding: 16px;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
    background: var(--btndefaultlight);
}

.ea-topbar-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 10px;
    color: #fff;
}

.ea-topbar-actions .dropdown-menu a {
    color: var(--text);
}

.ea-menu-icon i {
    font-size: 12px;
}

.alert,
.badge {
    border-radius: 999px;
    padding: 6px 10px;
}

.card-profile-stats {
    border: 1px solid #cacaca;
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    background: #fefefe;
}

.card-profile-stats .card-profile-stats-intro {
    text-align: center;
}

.card-profile-stats .card-profile-stats-intro .card-profile-stats-intro-pic {
    border-radius: 50%;
    margin: 0 0 1.25rem;
}

.card-profile-stats .card-profile-stats-intro .card-profile-stats-intro-content p:last-child {
    margin: 0;
}

.card-profile-stats .card-profile-stats-container {
    text-align: center;
}

.card-profile-stats .card-profile-stats-container .card-profile-stats-statistic {
    margin: 0 0 1.25rem;
}

.card-profile-stats .card-profile-stats-container .card-profile-stats-statistic p:last-child {
    margin: 0;
}

.card-profile-stats .card-profile-stats-more .card-profile-stats-more-link {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    color: #0a0a0a;
    padding: 0.5rem;
    cursor: pointer;
}

.card-profile-stats .card-profile-stats-more .card-profile-stats-more-content {
    display: none;
}

.table-expand {
    margin-top: 1rem;
}

.table-expand td {
    color: #8a8a8a;
}

.table-expand tr {
    border: 1px solid #e6e6e6;
}

.table-expand .text-right {
    padding-right: 3rem;
}

.table-expand-row.is-active .expand-icon::after {
    content: "-";
}

.table-expand-row .expand-icon::after {
    content: "+";
    float: right;
}

.table-expand-row-content {
    display: none;
}

.table-expand-row-content.is-active {
    display: table-row;
    -webkit-animation: fadeIn ease-in 1;
    animation: fadeIn ease-in 1;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
}

.table-expand-row-nested {
    background-color: #e6e6e6;
}

#page-loader,.page-loader,#overlay,#overlayP2,.overlay,.loading-overlay {
    display: none !important;
    pointer-events: none !important;
}

.main>.navbar {
    display: flex !important;
}

.navbar-spacer {
    display: none !important;
}

.container-fluid {
    width: 100%;
    max-width: none;
}

.ea-page-body {
    width: 100%;
}

.ea-actions,.pull-right {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.modern-panel,.modern-panel-header,.modern-panel-body,.profile-tab-content,.profile-tab-panel,.content,.ea-content {
    overflow: visible !important;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: visible;
    margin-bottom: 18px;
}

.card-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--btndefaultlight);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: 18px 18px 0 0;
    font-size: 14px;
    font-weight: 900;
    color: var(--titled);
}

.card-body {
    padding: 18px;
}

.modal.show,.modal.is-open {
    display: block;
}

.modal:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.modal-content {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow: visible;
}

.modal-lg {
    width: 900px;
    max-width: calc(100% - 30px);
}

.offcanvas-title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--titled);
}

.offcanvas-body {
    padding: 16px;
    overflow: auto;
    height: calc(100vh - 55px);
}

.btn-close:before {
    content: "×";
}

.nav-tabs,.ea-tab-pills,.tab-menu,.ticket-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    padding: 10px;
    margin: 0 0 16px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    list-style: none;
}

.nav-tabs .nav-item {
    list-style: none;
}

.nav-tabs .nav-link,.ea-tab-pills a,.tab-menu a,.ticket-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 12px;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.nav-tabs .nav-link:hover,.nav-tabs .nav-link.active,.ea-tab-pills a:hover,.ea-tab-pills a.is-active,.tab-menu a:hover,.tab-menu a.active,.ticket-tab-btn:hover,.ticket-tab-btn.is-active {
    border-color: var(--primary);
    background: var(--btndefaultlight);
    color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active,.tab-pane.show {
    display: block;
}

.dropdown,.btn-group,.profile-actions-dropdown,.dash-filter-dropdown {
    position: relative;
    display: inline-flex;
    overflow: visible !important;
}

.dropdown.open,.profile-actions-dropdown.open,.dash-filter-dropdown.open {
    z-index: 999999;
}

.dropdown-menu,.profile-actions-dropdown .dropdown-menu,.dash-filter-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    display: none;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-dropdown);
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 999999;
}

.dropdown.open>.dropdown-menu,.open>.dropdown-menu,.profile-actions-dropdown.open .dropdown-menu,.dash-filter-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a,.dropdown-item {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.dropdown-menu a:hover,.dropdown-item:hover {
    background: var(--btndefaultlight);
    color: var(--primary);
}

.dropdown-toggle-split {
    min-width: 28px;
    padding-left: 8px;
    padding-right: 8px;
}

.dropdown-toggle-split:after {
    content: "▾";
}

.chart-box,.profile-chart {
    min-height: 360px;
}

.chart-box>div,.profile-chart>div {
    min-height: 350px;
}

.tooltip,.custom-tooltip {
    display: none !important;
}

.table-responsive {
    width: 100%;
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,.table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}

.table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    background: #fff;
}

.btn-green {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

@media (max-width: 720px) {
    .app {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        height: auto;
    }
    [class*="col-"] {
        width: 100% !important;
        float: none;
    }
}

@media (min-width: 992px) {
    .col-md-12 {
        width: 100%;
    }
    .col-md-8 {
        width: 66.6667%;
    }
    .col-md-6 {
        width: 50%;
    }
    .col-md-4 {
        width: 33.3333%;
    }
    .col-md-3 {
        width: 25%;
    }
}

@media (max-width: 900px) {
    .story {
        grid-template-columns: 1fr;
    }
    .ea-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ea-content {
        padding: 10px;
    }
    .col-6,
    .col-md-6,
    .col-lg-6,
    .col-4,
    .col-md-4,
    .col-lg-4,
    .col-3,
    .col-md-3,
    .col-lg-3 {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 22px;
    }
    .dashboard-hero h1 {
        font-size: 23px;
    }
    .modern-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .sl-dropdown {
        max-height: 280px;
    }
    .page-hero,
        .page-hero.compact {
        flex-direction: column;
    }
    .dash-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width:768px) {
    .inline-edit-card {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 40px);
    }
    .page-hero,.page-hero.compact,.dash-panel-head,.modern-panel-header,.card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-actions-dropdown,.dash-filter-dropdown,.profile-actions-dropdown .btn,.dash-filter-dropdown .btn {
        width: 100%;
    }
    .profile-actions-dropdown .dropdown-menu,.dash-filter-dropdown .dropdown-menu,.dropdown-menu {
        left: 0;
        right: auto;
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .ticket-page {
        grid-template-columns: 1fr;
    }
    .ticket-hero {
        flex-direction: column;
    }
    .hero-actions {
        justify-content: flex-start;
    }
    .ticket-action-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-action-hero,
        .page-hero.compact,
        .ticket-hero {
        flex-direction: column;
    }
    .hero-actions,
        .dashboard-actions {
        justify-content: flex-start;
    }
    .report-layout {
        grid-template-columns: 1fr;
    }
    .sticky-report-card {
        position: static;
    }
    .report-checkbox-grid.field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .report-builder-shell,
        .report-builder-shell.has-results {
        grid-template-columns: 1fr;
    }
    .report-filter-column.is-hidden {
        display: none;
    }
    .report-filter-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .report-filter-summary .summary-actions {
        justify-content: flex-start;
    }
    .report-filter-actions {
        position: static;
    }
}

@media (max-width:900px) {
    .doc-builder-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:1100px) {
    .ticket-shell {
        grid-template-columns: 1fr;
    }
    .ticket-hero {
        flex-direction: column;
    }
    .hero-actions {
        justify-content: flex-start;
    }
    .ticket-tabs {
        position: relative;
        top: auto;
    }
    .mini-stats {
        grid-template-columns: 1fr;
    }
    .workload-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .permission-grid {
        grid-template-columns: 1fr;
    }
    .dash-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .ticket-action-strip {
        grid-template-columns: 1fr;
    }
    .ticket-action-tile {
        min-height: auto;
    }
    .report-checkbox-grid,
        .report-checkbox-grid.field-grid {
        grid-template-columns: 1fr;
    }
    .filter-grid {
        grid-template-columns: 1fr;
    }
    .modern-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .page-hero h1 {
        font-size: 23px;
    }
    .ea-page-head {
        display: block;
    }
    .ea-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1050px) {
    .ticket-new-shell {
        grid-template-columns: 1fr;
    }
    .ticket-help-panel {
        position: static;
    }
}

@media (max-width: 800px) {
    .contact-preview {
        grid-template-columns: 1fr;
    }
    .ticket-actions-bar {
        justify-content: stretch;
    }
    .ticket-actions-bar .btn {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:640px) {
    .workload-grid {
        grid-template-columns: 1fr;
    }
    .qs-grid {
        grid-template-columns: 1fr;
    }
    .qs-hero h1 {
        font-size: 23px;
    }
}

@media (max-width:650px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:1000px) {
    .qs-layout {
        grid-template-columns: 1fr;
    }
    .qs-nav {
        position: relative;
        top: auto;
    }
    .qs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media print, screen and (min-width: 64em) {
    .card-profile-stats .card-profile-stats-intro {
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        display: flex;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        text-align: left;
    }
    .card-profile-stats .card-profile-stats-intro .card-profile-stats-intro-pic {
        margin: 0 1.25rem 0 0;
        max-width: 250px;
    }
    .card-profile-stats .card-profile-stats-container {
        display: flex;
        -webkit-justify-content: space-around;
        -ms-flex-pack: distribute;
        justify-content: space-around;
    }
}
.ea-menu .ea-has-submenu {
    position: relative;
}

.ea-menu .ea-has-submenu > a {
    cursor: pointer;
}

.ea-sidebar-submenu {
    display: none;
    list-style: none;
    margin: 4px 0 8px 0;
    padding: 4px 0 4px 34px;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: static;
    min-width: 0;
}

.ea-has-submenu.open > .ea-sidebar-submenu,
.ea-has-submenu.active > .ea-sidebar-submenu {
    display: block;
}

.ea-sidebar-submenu li {
    list-style: none;
}

.ea-sidebar-submenu a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.ea-sidebar-submenu a:hover {
    background: var(--btndefaultlight);
    color: var(--primary);
}

.ea-has-submenu.active > a {
    background: var(--primary);
    color: #fff;
}

.ea-has-submenu.active > a small,
.ea-has-submenu.open > a small {
    transform: rotate(180deg);
}

.ea-has-submenu > a small {
    transition: transform .2s ease;
}
.ea-has-submenu.open > .ea-sidebar-submenu,
.ea-has-submenu.active > .ea-sidebar-submenu {
    display: block;
}
.table-lite-wrap,
#tblProductiveWrapper {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

#tblProductiveWrapper .tl,
#tblProductiveWrapper .table-lite,
#tblProductiveWrapper .tl-scroll {
    width: 100%;
    max-width: 100%;
}

#tblProductiveWrapper .tl-scroll {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

#tblProductiveWrapper table {
    width: 100%;
    min-width: 1100px;
}

#tblProductiveWrapper .tl-toolbar,
#tblProductiveWrapper .tl-footer,
#tblProductiveWrapper .tl-pager {
    position: static !important;
    width: 100%;
    clear: both;
}