/* UniQMS workspace theme. Scoped so kiosk, TV and print layouts stay independent. */
.qms-ui {
    --qms-primary: #4f6ddf;
    --qms-primary-hover: #3e57bd;
    --qms-tint: #eef2ff;
    --qms-text: #29334b;
    --qms-muted: #69758b;
    --qms-border: #e5e9f2;
    --qms-radius: 12px;
    --qms-control-height: 32px;
    --qms-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f6fa;
    color: var(--qms-text);
    font-family: var(--qms-font) !important;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.qms-ui :where(div, span, h1, h2, h3, h4, h5, h6, p, a, label, input, select, textarea, button, td, th, small, strong, summary):not(.fa):not(.fas):not(.far):not(.fab) { font-family: var(--qms-font); }
.qms-ui :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #8299f5 !important; outline-offset: 3px; }
.qms-ui a { color: var(--qms-primary); text-decoration: none; }
.qms-ui a:hover { color: var(--qms-primary-hover); }
.qms-ui .qms-container { width: calc(100% - 64px); max-width: 1680px; margin: 0 auto; }
.qms-header { background: #fff; border-bottom: 1px solid var(--qms-border); }
.qms-header-inner { display: flex; align-items: center; gap: 28px; min-height: 88px; padding: 14px 0; }
.qms-brand-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--qms-primary); color: #fff; font-size: 21px; box-shadow: 0 4px 10px #4f6ddf26; }
.qms-organization { display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 0; border-left: 0; }
.qms-organization > div { min-width: 0; }
.qms-organization img { width: 62px; height: 62px; flex-shrink: 0; padding: 4px; box-sizing: border-box; object-fit: contain; border-radius: 50%; border: 2px solid #b51d28; background: #fff; box-shadow: none; }
.qms-organization strong { display: block; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: .15px; color: #36547d; }
.qms-organization small { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: .25px; color: #687c97; text-transform: uppercase; }
.qms-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qms-login-link { font-size: 13px; font-weight: 500; padding: 4px 0; }
.qms-login-link:hover { text-decoration: underline; }
.qms-login-icon { display: none; }
.qms-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--qms-tint); color: var(--qms-primary); display: grid; place-items: center; font-weight: 700; }
.qms-user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
/* jQuery UI sets an inline z-index that otherwise falls below sticky table headers. */
.qms-ui #ui-datepicker-div { z-index: 1000 !important; }
.qms-user-menu { position: relative; z-index: 100; }
.qms-user-info { display: flex; align-items: center; gap: 9px; line-height: 1.4; list-style: none; cursor: pointer; border-radius: 8px; }
.qms-user-info::-webkit-details-marker { display: none; }
.qms-user-chevron { font-size: 9px; color: var(--qms-muted); }
.qms-user-submenu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 160px; padding: 6px; background: #fff; border: 1px solid var(--qms-border); border-radius: 9px; box-shadow: 0 8px 24px #2434581a; }
.qms-user-info .qms-user-name { font-size: 13px; font-weight: 500; }
.qms-ui .qms-logout-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 5px; font-size: 13px; color: #dc3545; white-space: nowrap; }
.qms-ui .qms-logout-link:hover { color: #b02a37; background: #fff3f3; }
.qms-ui .qms-icon-button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--qms-muted); border: 1px solid var(--qms-border); border-radius: 8px; background: #fff; }
.qms-ui .qms-icon-button:hover { background: var(--qms-tint); color: var(--qms-primary); }
.qms-nav { background: #fff; border-bottom: 1px solid var(--qms-border); position: relative; z-index: 50; }
.qms-nav-items { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 9px 0; }
.qms-ui .qms-nav-link, .qms-nav-dropdown > summary { display: flex; align-items: center; gap: 9px; padding: 9px 13px; font-size: 13px; line-height: 1.5; border-radius: 7px; color: #566179; font-weight: 500; cursor: pointer; white-space: nowrap; }
.qms-nav-dropdown { position: relative; }
.qms-nav-dropdown > summary { list-style: none; }
.qms-nav-dropdown > summary::-webkit-details-marker { display: none; }
.qms-nav-dropdown > summary .fa-chevron-down { font-size: 9px; margin-left: 5px; }
.qms-ui .qms-nav-link:hover, .qms-nav-dropdown > summary:hover, .qms-nav-dropdown[open] > summary { background: #f4f6fb; color: var(--qms-primary); }
.qms-ui .qms-nav-link.is-active, .qms-nav-dropdown.has-active > summary { background: var(--qms-tint); color: var(--qms-primary); font-weight: 500; }
.qms-nav-submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; max-height: min(70vh, 650px); overflow-y: auto; padding: 8px; background: white; border: 1px solid var(--qms-border); border-radius: 10px; box-shadow: 0 12px 35px #2434581a; }
.qms-nav-items > .qms-nav-dropdown:last-of-type .qms-nav-submenu { left: auto; right: 0; }
.qms-nav-submenu .qms-menu-divider { margin: 7px 10px; border: 0; border-top: 1px solid var(--qms-border); }
.qms-nav-submenu .qms-nav-link > i { width: 16px; flex: 0 0 16px; text-align: center; color: var(--qms-muted); }
.qms-nav-submenu .qms-nav-link:is(:hover, .is-active) > i { color: inherit; }
.qms-menu-toggle { display: none; }
.qms-ui .qms-main { flex: 1; padding: 28px 0 36px; }
.qms-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.qms-page-heading h1 { font-size: 16px; line-height: 1.4; font-weight: 500; margin: 0; letter-spacing: 0; text-transform: none; }
.qms-ui .qms-content .qms-title-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 42px; height: 42px; flex-shrink: 0; margin-right: 9px; border: 1px solid #d7dfef; border-radius: 8px; background: transparent; font-size: 18px; line-height: 1; text-align: center; vertical-align: middle; color: #667bb8; }
.qms-content :is(.qms-card, .box-table, .form-div) > .qms-page-heading { padding-bottom: 16px; border-bottom: 1px solid var(--qms-border); }
.qms-eyebrow { margin: 0 0 5px; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--qms-muted); letter-spacing: 1.2px; }
.qms-ui .qms-desk-chip { display: flex; gap: 10px; align-items: center; flex-shrink: 0; border: 1px solid #dce3fc; border-radius: 8px; padding: 9px 13px; color: var(--qms-primary); background: #fff; font-weight: 600; }
.qms-content { min-width: 0; }
.qms-content .box-table, .qms-content .form-div, .qms-card {
    background: #fff; border: 1px solid var(--qms-border); border-radius: var(--qms-radius);
    box-shadow: 0 2px 6px #23314b04; padding: 24px; margin-top: 0; margin-bottom: 20px; min-width: 0;
}
.qms-content .form-div { max-width: 720px; margin: 24px auto; }
.qms-content .form-dangnhap { margin-top: 12px; }
.qms-content .row-form { gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.qms-content .col-f-4 { min-width: 160px; padding-left: 0; padding-right: 0; }
.qms-content .col-f-4:has(table) { min-width: 0; flex-basis: 100%; }
.qms-content .row-form:has(table) { min-width: 0; }
.qms-content .lb-block, .qms-content label, .qms-content .tieude-1 { color: #46516a; font-size: 13px; font-weight: 500; line-height: 1.6; margin-bottom: 7px; }
.qms-content .row-form h4 { font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.qms-content .form-control-new, .qms-content .form-control, .qms-field input, .qms-field select {
    width: 100%; min-height: var(--qms-control-height); height: auto; border-radius: 7px; border: 1px solid #dce1eb;
    background: #fff; color: var(--qms-text); padding: 4px 10px; font-size: 13px; line-height: 22px;
    transition: border-color .15s, box-shadow .15s;
}
.qms-content textarea.form-control-new { min-height: 100px; }
.qms-content input:focus, .qms-content select:focus, .qms-content textarea:focus { border-color: #879bea; box-shadow: 0 0 0 3px #4f6ddf12; }
.qms-content input:disabled, .qms-content select:disabled { background: #f2f4f8; }
.qms-content .mg-10 { margin: 0; }
.qms-page-heading.qms-heading-with-controls { align-items: flex-end; flex-wrap: wrap; }
.qms-heading-with-controls > h1 { padding-bottom: 7px; }
.qms-booking-filters { display: grid; grid-template-columns: 196px 204px 168px auto auto; align-items: center; gap: 10px; margin: 0 0 0 auto; }
.qms-filter-field { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qms-filter-field label { display: block; flex-shrink: 0; font-size: 12px; margin: 0; white-space: nowrap; }
.qms-filter-field .form-control-new { flex: 1; min-width: 0; width: 0; }
.qms-booking-filters .form-control-new { min-height: var(--qms-control-height); padding: 4px 10px; font-size: 13px; }
.qms-ui .qms-booking-filters .qms-button { min-height: var(--qms-control-height); padding: 4px 12px; }
.qms-filter-submit, .qms-filter-export { white-space: nowrap; }
.qms-filter-export { justify-self: end; }
@media (max-width: 900px) {
    .qms-booking-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
    .qms-filter-desk { grid-column: 1 / -1; }
    .qms-filter-submit { grid-column: 1; justify-self: start; }
    .qms-filter-export { grid-column: 2; }
}
@media (max-width: 600px) {
    .qms-booking-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qms-filter-field { grid-column: 1 / -1; }
    .qms-filter-desk { grid-column: 1 / -1; }
    .qms-ui .qms-booking-filters .qms-filter-submit, .qms-ui .qms-booking-filters .qms-filter-export { width: 100%; }
    .qms-filter-export { grid-column: 2; }
}
.qms-content .div-btn { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.qms-ui .qms-button, .qms-content .btn-blue, .qms-content button.form-control-new, .qms-content input[type=submit] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto;
    min-height: var(--qms-control-height); padding: 4px 14px; border-radius: 7px; border: 1px solid var(--qms-primary);
    background: var(--qms-primary); color: white; font-size: 13px; line-height: 1.5; font-weight: 500;
    text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: none; box-shadow: 0 2px 4px #4f6ddf15;
}
.qms-ui .qms-button:hover, .qms-content .btn-blue:hover { background: var(--qms-primary-hover); color: #fff; }
.qms-ui .qms-button-secondary, .qms-content .btn-blue.bg-black { background: #fff; border-color: #dce1eb; color: #526079; box-shadow: none; }
.qms-ui .qms-button-secondary:hover { background: #f4f6fa; color: var(--qms-text); }
.qms-ui .qms-button:disabled { opacity: .5; cursor: wait; }
.qms-content .qms-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--qms-border); border-radius: 9px; margin: 0 0 12px; -webkit-overflow-scrolling: touch; }
.qms-content .qms-table-scroll table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: #fff; }
.qms-content .qms-table-scroll :is(td, th) { padding: 12px 14px; border: 0; border-bottom: 1px solid #edf0f5; font-size: 13px; line-height: 1.5; vertical-align: middle; }
.qms-content .qms-table-scroll :is(.rowheader, thead) { background: #f8f9fc; }
.qms-content .qms-table-scroll :is(.rowheader td, th) { color: #59667c; background: #f8f9fc; font-weight: 500; font-size: 12px; height: auto; white-space: nowrap; }
.qms-content .qms-table-scroll :is(.rowcontent1, .rowcontent2) { background: #fff; color: var(--qms-text); }
.qms-content .qms-table-scroll tr:last-child > td { border-bottom: 0; }
.qms-content .qms-table-scroll tbody tr:not(.rowheader):hover { background: #f8faff; }
.qms-content .qms-table-scroll input[type=button] { cursor: pointer; border-radius: 5px; }
.qms-content input:is(.btnUpdate, .btnDelete, .btnInfo, .btnGrant, .btnExportExcel) {
    width: 32px; height: 32px; border: 1px solid var(--qms-border); border-radius: 7px;
    background-color: #f8faff; background-position: center; background-size: 17px 17px; background-repeat: no-repeat;
}
.qms-content input.btnUpdate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6ddf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3l5 5-12 12-6 1 1-6zM14 5l5 5'/%3E%3C/svg%3E"); }
.qms-content input.btnDelete { background-color: #fff5f5; border-color: #f4dede; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45260' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7M14 10v7'/%3E%3C/svg%3E"); }
.qms-table-hint { display: none; margin: 0 0 10px; color: var(--qms-muted); font-size: 11px; }
.qms-table-hint.is-visible { display: block; }
.qms-content :is(.onschedule, .moi, .da, .dang, .cho, .delay, .molai) {
    display: inline-flex; align-items: center; justify-content: center; height: auto; min-height: 26px;
    padding: 4px 9px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.qms-content :is(.onschedule, .moi, .da) { background: #e7f6ed; color: #177847; }
.qms-content .dang { background: #eaf0ff; color: #4260cd; }
.qms-content :is(.cho, .molai) { background: #fff4df; color: #94600b; }
.qms-content .delay { background: #ffeded; color: #b83b45; }
.qms-content .pagination { gap: 5px; flex-wrap: wrap; align-items: center; margin: 16px 0 0; font-size: 13px; }
.qms-content .pagination :is(a, strong) { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border-radius: 6px; border: 1px solid var(--qms-border); background: #fff; }
.qms-content .pagination strong { background: var(--qms-primary); color: #fff; border-color: var(--qms-primary); }
.qms-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--qms-border); color: var(--qms-muted); font-size: 12px; }
.qms-skip-link { position: fixed; top: -80px; left: 16px; z-index: 2000; background: #fff; padding: 10px 16px; border-radius: 6px; }
.qms-skip-link:focus { top: 12px; }
.qms-auth .qms-main { display: flex; align-items: center; }
.qms-auth .qms-content { width: 100%; }
.qms-auth-layout { display: block; width: 100%; max-width: 440px; margin: 24px auto; background: #fff; border: 1px solid var(--qms-border); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px #23314b08; }
.qms-auth .qms-header-actions { display: none; }
.qms-auth-form { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.qms-auth-form h2 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.qms-muted { color: var(--qms-muted); }
.qms-auth-form > .qms-muted { font-size: 13px; margin-bottom: 26px; }
.qms-field { margin-bottom: 18px; }
.qms-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.qms-password { position: relative; }
.qms-password input { padding-right: 45px; }
.qms-password-toggle { position: absolute; right: 1px; top: 0; width: 32px; height: 32px; border: 0; background: transparent; color: var(--qms-muted); }
.qms-auth-form .qms-button { width: 100%; }
.qms-auth-footer { margin-top: 18px; text-align: center; font-size: 13px; }
.qms-alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; background: #eef3ff; color: #465e98; margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.qms-alert-error { background: #fff0f0; color: #ad3944; }
.qms-desk-card { max-width: 480px; margin: 36px auto; padding: 32px; }
.qms-desk-card h2 { font-size: 22px; margin: 16px 0 8px; font-weight: 700; }
.qms-desk-card .qms-muted { margin-bottom: 24px; }
.qms-desk-card .qms-button { width: 100%; }
.qms-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.qms-section-heading h2 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.qms-section-heading p { font-size: 12px; color: var(--qms-muted); margin: 0; }
.qms-auto-refresh { font-size: 12px; color: var(--qms-muted); white-space: nowrap; }
.qms-auto-refresh i { color: #259b66; margin-right: 5px; }
.qms-queue-table { min-width: 1350px; }
.qms-queue-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.qms-queue-feedback [data-queue-status] { margin: 0; flex: 1 1 320px; }
.qms-queue-feedback [data-queue-status][data-tone="error"] { color: #b42318; }
.qms-queue-feedback [data-queue-refresh] { margin-left: auto; }
.qms-ticket-number { font-weight: 400; color: inherit; font-size: inherit; font-variant-numeric: tabular-nums; }
.qms-queue-table .qms-actions-cell { white-space: nowrap; }
.qms-content .qms-queue-table :is(th,td) { text-align: center; }
.qms-content .qms-queue-table :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4)) { text-align: left; }
.qms-ui .qms-content .qms-queue-table .qms-column-sort { position: relative; display: block; padding: 0 14px !important; text-align: inherit; }
.qms-ui .qms-content .qms-queue-table :is(:nth-child(2),:nth-child(3),:nth-child(4)) > .qms-column-sort { padding-left: 0 !important; }
.qms-queue-table .qms-column-sort i { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.qms-row-actions { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.qms-row-action svg { display: block; width: 20px; height: 20px; flex-shrink: 0; pointer-events: none; }
.qms-ui .qms-row-action { --qms-control-height: 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 15px; background: #f0f3ff; color: var(--qms-primary); border: 1px solid #d9e0ff; box-shadow: none; white-space: nowrap; }
.qms-ui .qms-row-action:hover { background: #dfe6ff; color: #344dac; }
.qms-ui .qms-row-action.qms-action-pending { color: #8a7b60; background: #fafbfc; border-color: #e1e5ec; }
.qms-ui .qms-row-action.qms-action-done { color: #6b887b; background: #fafbfc; border-color: #e1e5ec; }
.qms-ui .qms-row-action.qms-action-pending:hover { color: #75664d; background: #f2f4f7; border-color: #d1d8e3; }
.qms-ui .qms-row-action.qms-action-done:hover { color: #526f62; background: #f2f4f7; border-color: #d1d8e3; }
.qms-empty-state { text-align: center; padding: 48px 20px !important; color: var(--qms-muted); }
.qms-empty-state i { display: block; font-size: 30px; color: #aebbd3; margin-bottom: 12px; }
.qms-empty-state strong { display: block; color: var(--qms-text); margin-bottom: 4px; }
@media (max-width: 1100px) { .qms-header-inner { gap: 18px; } }
@media (max-width: 991px) {
    .qms-ui .qms-container { width: calc(100% - 32px); }
    .qms-menu-toggle { display: flex; align-items: center; gap: 10px; padding: 13px 0; width: 100%; border: 0; background: transparent; color: #526079; font-size: 13px; text-align: left; }
    .qms-menu-toggle .fa-chevron-down { margin-left: auto; font-size: 10px; }
    .qms-nav-items { display: none; padding-top: 0; padding-bottom: 12px; }
    .qms-nav.is-open .qms-nav-items { display: flex; flex-direction: column; align-items: stretch; max-height: 65vh; overflow-y: auto; }
    .qms-nav-submenu { position: static; box-shadow: none; margin: 5px 0; min-width: 0; max-height: none; }
    .qms-nav-dropdown > summary { min-height: 42px; }
    .qms-nav-dropdown > summary .fa-chevron-down { margin-left: auto; }
}
@media (max-width: 700px) {
    .qms-ui .qms-header .qms-container { width: calc(100% - 24px); }
    .qms-header-inner { min-height: 68px; gap: 8px; padding: 12px 0; }
    .qms-organization { flex: 1 1 0; gap: 8px; }
    .qms-organization > div { flex: 1; }
    .qms-organization img { width: 32px; height: 32px; padding: 2px; }
    .qms-organization strong { font-size: clamp(11px, calc((100vw - 104px) / 20), 16px); letter-spacing: 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .qms-organization small { font-size: clamp(10px, 2.8vw, 12px); letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .qms-user-info .qms-user-name, .qms-user-chevron { display: none; }
    .qms-user-avatar { width: 32px; height: 32px; }
    .qms-ui .qms-login-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--qms-tint); }
    .qms-login-link > span { display: none; }
    .qms-login-icon { display: block; }
    .qms-header-actions .qms-button { padding: 8px 11px; min-height: 36px; font-size: 12px; }
    .qms-ui .qms-main { padding-top: 20px; }
    .qms-page-heading { align-items: flex-start; margin-bottom: 18px; }
    .qms-page-heading h1 { font-size: 12px; }
    .qms-ui .qms-desk-chip { padding: 7px 9px; font-size: 12px; }
    .qms-content .box-table, .qms-content .form-div, .qms-card { padding: 16px; }
    .qms-content .form-div { width: 100%; }
    .qms-content .row-form { gap: 12px; }
    .qms-content .col-f-4 { flex-basis: 100%; min-width: 0; }
    .qms-auth-layout { margin: 8px auto 20px; }
    .qms-auth-form { padding: 28px 24px; }
    .qms-footer { flex-direction: column; gap: 3px; }
    .qms-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .qms-ui * { transition: none !important; scroll-behavior: auto !important; } }
/* One size for workspace forms, including legacy templates with inline heights.
   Multiline editors, listboxes, checkboxes and radios retain their native sizing. */
.qms-ui .qms-content :is(
    input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=image]):not([type=color]),
    select:not([multiple]):not([size]), button, .btn, .btn-blue, .qms-button
):not(.ck):not(.ck *):not(.qms-home-qr-open) {
    box-sizing: border-box;
    height: var(--qms-control-height) !important;
    min-height: var(--qms-control-height) !important;
    max-height: var(--qms-control-height) !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 22px !important;
    font-size: 13px;
}
.qms-ui .qms-content .select2-selection--single { height: var(--qms-control-height) !important; min-height: var(--qms-control-height) !important; }
.qms-ui .qms-content .select2-selection--single .select2-selection__rendered { line-height: 30px !important; }
.qms-ui .qms-content .select2-selection--single .select2-selection__arrow { height: 30px !important; }
.qms-datatable-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.qms-booking-toolbar { flex-wrap: wrap; }
.qms-booking-toolbar .qms-booking-filters { grid-template-columns: 180px 188px 144px auto auto; margin: 0 0 0 auto; }
.qms-content .qms-booking-toolbar .qms-datatable-search { flex: 0 1 240px; min-width: 160px; margin-right: auto; }
.qms-booking-toolbar .qms-column-menu { margin-left: 0; }
@media (max-width: 1100px) {
    .qms-booking-toolbar .qms-booking-filters { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qms-booking-toolbar .qms-filter-desk { grid-column: 1 / -1; }
    .qms-booking-toolbar .qms-column-menu { margin-left: auto; }
}
.qms-content .qms-datatable-search { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; }
.qms-datatable-search span { white-space: nowrap; }
.qms-datatable-search input { max-width: 280px; }
.qms-column-menu { position: relative; z-index: 20; }
.qms-column-menu > summary, .qms-ui .qms-table-tool { list-style: none; display: flex; align-items: center; gap: 8px; border: 1px solid var(--qms-border); border-radius: 6px; padding: 5px 10px; height: 32px; font-size: 12px; line-height: 20px; color: var(--qms-text); background: #fff; white-space: nowrap; cursor: pointer; }
.qms-column-menu > summary:hover, .qms-ui .qms-table-tool:hover { background: #f4f6fb; color: var(--qms-primary); }
.qms-ui .qms-content .qms-queue-toolbar :is(.qms-table-tool, .qms-column-menu > summary) {
    box-sizing: border-box; width: auto; min-width: 0; height: 32px; margin: 0;
    padding: 5px 10px !important; font-size: 12px !important; line-height: 20px !important;
    font-weight: 400; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.qms-list-toolbar.qms-queue-toolbar .qms-column-menu { margin-left: 0; }
.qms-column-menu > summary::-webkit-details-marker { display: none; }
.qms-column-options { position: absolute; right: 0; top: calc(100% + 6px); width: 220px; max-height: 320px; overflow-y: auto; padding: 10px; background: white; border: 1px solid var(--qms-border); border-radius: 8px; box-shadow: 0 8px 24px #2434581a; }
.qms-content .qms-column-options label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 3px; font-size: 12px; cursor: pointer; }
.qms-column-options input { flex-shrink: 0; accent-color: var(--qms-primary); }
.qms-content .qms-datatable-scroll { max-height: none; }
.qms-booking .qms-main { display: flex; flex-direction: column; }
.qms-booking .qms-content { display: flex; flex-direction: column; flex: 1; }
.qms-booking .qms-content > .box-table { flex: 1; margin-bottom: 0; }
.qms-list .qms-main { display: flex; flex-direction: column; }
.qms-list .qms-content { display: flex; flex-direction: column; flex: 1; }
.qms-list .qms-content > form:has(> .box-table) { display: flex; flex-direction: column; flex: 1; }
.qms-list .qms-content > .box-table, .qms-list .qms-content > .qms-card, .qms-list .qms-content > form > .box-table { flex: 1; margin-bottom: 0; }
.qms-list-toolbar { flex-wrap: wrap; }
.qms-content .qms-list-toolbar .qms-datatable-search { flex: 0 1 240px; min-width: 160px; margin-right: auto; }
.qms-list-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; flex-wrap: wrap; min-width: 0; }
.qms-list-controls:empty { display: none; }
.qms-list-controls > form { margin: 0; padding: 0; max-width: 100%; min-width: 0; }
.qms-list-controls > form:not(.qms-booking-filters) { display: block; }
.qms-content .qms-list-controls .row-form { margin: 0; gap: 10px; align-items: center; }
.qms-content .qms-list-controls .col-f-4 { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.qms-list-controls :is(label, h4) { margin: 0; white-space: nowrap; }
.qms-list-controls .form-control-new { width: 180px; }
.qms-list-controls .qms-booking-filters .form-control-new { width: 0; }
.qms-list-controls .qms-button { white-space: nowrap; }
.qms-content .qms-fields-editor { padding: 0; display: flex; flex-direction: column; }
.qms-content .qms-fields-editor > .qms-page-heading { padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--qms-border); }
.qms-fields-body { padding: 16px 20px 0; flex: 1; min-width: 0; }
.qms-fields-editor .qms-datatable-scroll { margin-bottom: 0; }
.qms-fields-editor .qms-fields-table { min-width: 900px; table-layout: fixed; }
.qms-fields-table :is(td,th):nth-child(1) { width: 56px; text-align: center; }
.qms-fields-table :is(td,th):nth-child(3) { width: 170px; }
.qms-fields-table :is(td,th):nth-child(4) { width: 130px; }
.qms-fields-table :is(td,th):nth-child(5) { width: 190px; }
.qms-fields-table :is(td,th):nth-child(6) { width: 64px; text-align: center; }
.qms-content .qms-fields-table :is(td,th) { padding: 8px 10px; }
.qms-fields-table .qms-column-sort { white-space: normal; text-align: left; }
.qms-fields-table :is(td,th):nth-child(n+3) { text-align: center; }
.qms-fields-table :is(td,th):nth-child(n+3) .qms-column-sort { justify-content: center; text-align: center; }
.qms-content .qms-fields-table input[type=text] { background: transparent; border-color: transparent; padding-inline: 8px; }
.qms-content .qms-fields-table input[type=text]:hover { border-color: var(--qms-border); background: #fff; }
.qms-content .qms-fields-table input[type=text]:focus { border-color: #879bea; background: #fff; }
.qms-content .qms-fields-table input[type=number] { width: 88px; margin-inline: auto; text-align: center; border-color: #e3e7ef; font-variant-numeric: tabular-nums; }
.qms-fields-editor .qms-datatable-footer { margin: 10px 0 14px; }
.qms-content .qms-fields-editor .qms-fields-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; margin-top: 0; background: #fafbfe; border-top: 1px solid var(--qms-border); border-radius: 0 0 var(--qms-radius) var(--qms-radius); }
.qms-fields-summary { flex: 1 1 420px; min-width: 0; margin-right: auto; text-align: left; }
.qms-fields-summary .qms-datatable-footer { margin: 0; }
.qms-fields-save-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.qms-field-entry-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 140px 220px; gap: 18px 20px; }
.qms-field-entry-grid .qms-field { min-width: 0; margin: 0; }
.qms-field-entry-name { grid-column: auto; }
.qms-field-entry-grid .qms-field > label { display: block; margin-bottom: 6px; }
.qms-content .qms-field-entry .qms-field-entry-grid .form-control-new { width: 100%; max-width: none; }
.qms-field-dialog { position: fixed; inset: 0; margin: auto; width: min(1120px, calc(100% - 32px)); height: fit-content; max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: var(--qms-radius); color: var(--qms-text); background: #fff; box-shadow: 0 20px 80px #17244038; overflow-y: auto; }
.qms-field-dialog::backdrop { background: #17244066; }
.qms-field-dialog .qms-field-entry { margin: 0; border: 0; }
.qms-field-dialog .qms-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.qms-content .qms-dialog-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--qms-muted); cursor: pointer; }
.qms-dialog-close:hover { background: var(--qms-tint); color: var(--qms-text); }
.qms-dialog-close:focus-visible { outline: 2px solid var(--qms-primary); outline-offset: 2px; }
.qms-field-dialog.qms-desk-dialog { width: min(640px, calc(100% - 32px)); }
.qms-desk-dialog .qms-entry-card { border: 0; margin: 0; }
.qms-desk-form .qms-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qms-desk-form .qms-form-header h1 { min-width: 0; }
.qms-desk-form .qms-dialog-close { flex-shrink: 0; }
.qms-desk-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.qms-desk-options legend { font-size: 13px; margin-bottom: 12px; font-weight: 500; }
.qms-desk-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.qms-content .qms-desk-options-grid label { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--qms-border); border-radius: 6px; margin: 0; cursor: pointer; font-weight: 400; }
.qms-desk-options-grid label:has(input:checked) { background: var(--qms-tint); border-color: #bdcafa; }
.qms-desk-options-grid input { margin: 0; accent-color: var(--qms-primary); }
.qms-desk-loading { margin: 0; padding: 24px; font-size: 13px; }
.qms-desk-loading .qms-button { margin-top: 12px; }
.qms-desk-form .qms-form-footer .qms-field-help { margin-block: 0; flex-basis: 220px; }
.qms-content [data-desk-assignment-open] { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.qms-field-dialog.qms-workdesk-dialog { width: min(460px, calc(100% - 32px)); }
.qms-workdesk-dialog .qms-entry-card { margin: 0; border: 0; }
.qms-workdesk-dialog .qms-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qms-workdesk-dialog .qms-form-header h1 { min-width: 0; }
.qms-workdesk-dialog .qms-dialog-close { flex-shrink: 0; }
.qms-workdesk-dialog .qms-form-body > label { display: block; margin-bottom: 6px; }
.qms-workdesk-launch { display: flex; justify-content: center; padding: 48px 0; }
.qms-sms-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.qms-sms-section { margin: 0; padding: 0; min-width: 0; border: 0; }
.qms-sms-section + .qms-sms-section { border-left: 1px solid var(--qms-border); padding-left: 24px; }
.qms-sms-section legend { margin-bottom: 16px; float: none; width: auto; font-size: 13px; font-weight: 500; color: var(--qms-text); }
.qms-sms-section legend i { margin-right: 6px; color: var(--qms-muted); }
.qms-sms-section .qms-field { margin: 0 0 16px; }
.qms-sms-section .qms-field:last-child { margin-bottom: 0; }
.qms-sms-form .qms-field > label { display: block; margin-bottom: 6px; }
.qms-config-page .qms-sms-form .qms-form-body .form-control-new { max-width: none; width: 100%; }
.qms-sms-password { position: relative; }
.qms-sms-password input { padding-right: 40px !important; }
.qms-sms-password-toggle { position: absolute; inset: 0 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0 6px 6px 0; background: transparent; color: var(--qms-muted); cursor: pointer; }
.qms-sms-password-toggle:hover { color: var(--qms-primary); }
.qms-sms-password-toggle:focus-visible { outline: 2px solid var(--qms-primary); outline-offset: 2px; }
.qms-sms-form .qms-form-footer .qms-field-help { margin-block: 0; }
.qms-sms-test-phone { max-width: 400px; margin-bottom: 0; }
.qms-workingtime-table { min-width: 620px; }
.qms-workingtime-table :is(td,th):first-child { width: 56px; }
.qms-workingtime-table :is(td,th):nth-child(3), .qms-workingtime-table :is(td,th):nth-child(4) { width: 25%; font-variant-numeric: tabular-nums; }
.qms-workingtime-table :is(td,th):last-child { width: 88px; }
.qms-workingtime-table :is(td,th):nth-child(n+3) .qms-column-sort { justify-content: center; text-align: center; }
.qms-workingtime-off { color: var(--qms-muted); }
.qms-content .qms-workingtime-edit { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--qms-border); border-radius: 6px; background: #fff; color: var(--qms-primary); cursor: pointer; }
.qms-workingtime-edit:hover { background: var(--qms-tint); }
.qms-workingtime-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.qms-workingtime-periods fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qms-workingtime-periods fieldset + fieldset { border-left: 1px solid var(--qms-border); padding-left: 24px; }
.qms-workingtime-periods legend { font-size: 13px; margin-bottom: 14px; font-weight: 500; }
.qms-workingtime-periods legend i { margin-right: 6px; color: var(--qms-muted); }
.qms-workingtime-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 16px; }
.qms-workingtime-inputs .qms-field { margin: 0; min-width: 0; }
.qms-workingtime-inputs .qms-field > label { display: block; margin-bottom: 6px; }
.qms-workingtime-form .qms-form-footer .qms-field-help { margin-block: 0; }
.qms-field-dialog.qms-workingtime-dialog { width: min(840px, calc(100% - 32px)); }
.qms-workingtime-dialog .qms-entry-card { border: 0; margin: 0; }
.qms-workingtime-form .qms-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qms-workingtime-form .qms-dialog-close { flex-shrink: 0; }
.qms-config-page .qms-sms-test-phone input.form-control-new { max-width: 240px; }
@media (max-width: 700px) {
    .qms-workingtime-periods { grid-template-columns: 1fr; gap: 18px; }
    .qms-workingtime-periods fieldset + fieldset { border-left: 0; border-top: 1px solid var(--qms-border); padding: 18px 0 0; }
    .qms-sms-grid { grid-template-columns: 1fr; gap: 18px; }
    .qms-sms-section + .qms-sms-section { border-left: 0; border-top: 1px solid var(--qms-border); padding: 18px 0 0; }
}
.qms-screen-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.qms-screen-picker { display: flex; align-items: center; gap: 10px; }
.qms-screen-picker label { white-space: nowrap; margin: 0; }
.qms-screen-picker .form-control-new { width: 200px; }
.qms-screen-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.qms-config-page .qms-screen-toolbar .qms-screen-search { width: 180px; }
.qms-screen-bulk, .qms-screen-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qms-screen-range { margin-left: auto; }
.qms-screen-range label { margin: 0; }
.qms-config-page .qms-screen-range input.form-control-new { width: 80px; }
.qms-screen-desks .qms-desk-options-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.qms-screen-assignment .qms-config-success { border: 0; background: transparent; padding: 0; margin-bottom: 12px; }
.qms-screen-assignment .qms-config-success[hidden] { display: none; }
.qms-screen-desks [data-screen-desk][hidden] { display: none; }
.qms-screen-empty { padding: 16px 0; margin: 0; }
.qms-screen-footer .qms-fields-summary { flex-basis: 520px; }
.qms-screen-footer .qms-datatable-note { margin-top: 4px; }
@media (max-width: 700px) {
    .qms-screen-picker { width: 100%; justify-content: space-between; }
    .qms-screen-toolbar .qms-screen-search { flex: 1 1 100%; }
    .qms-screen-range { margin-left: 0; width: 100%; }
}
.qms-content .qms-field-entry-footer .qms-field-help { margin-top: 0; margin-bottom: 0; }
@media (min-width: 701px) and (max-width: 1100px) {
    .qms-field-entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qms-field-entry-name { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .qms-field-entry-grid { grid-template-columns: 1fr; gap: 14px; }
    .qms-content .qms-field-entry .qms-field-entry-grid input[type=number] { width: 160px; max-width: 100%; }
}
@media (max-width: 600px) {
    .qms-content .qms-fields-editor > .qms-page-heading { padding: 14px 16px; }
    .qms-fields-body { padding: 14px 16px 0; }
    .qms-content .qms-fields-editor .qms-fields-actions { padding: 12px 16px; }
}
.qms-content .qms-data-header > :is(td,th) { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px var(--qms-border); padding: 8px 10px; }
.qms-list .qms-data-header > :is(td,th)[aria-sort=ascending] i, .qms-list .qms-data-header > :is(td,th)[aria-sort=descending] i { color: var(--qms-primary); }
.qms-content .qms-datatable [data-summary-row] { background: #f4f6fb; font-weight: 500; }
.qms-list .qms-datatable input[type=button] { background-position: center; background-repeat: no-repeat; }
.qms-list .qms-status-cell { text-align: center; white-space: nowrap; }
.qms-status-warning { --status-color: #ad4c55; --status-bg: #fcf0f1; }
@media (max-width: 1100px) {
    .qms-list-controls:has(.qms-booking-filters) { flex: 1 1 100%; }
}
@media (max-width: 600px) {
    .qms-content .qms-list-toolbar .qms-datatable-search { flex: 1 1 100%; }
    .qms-list-controls { width: 100%; justify-content: flex-start; }
    .qms-list-controls > form { width: 100%; }
    .qms-list-controls:not(:has(form, .row-form)) { width: auto; }
    .qms-content .qms-list-controls .row-form { width: 100%; }
    .qms-content .qms-list-controls .col-f-4 { flex: 1 1 100%; }
    .qms-content .qms-list-controls .col-f-4:has(> button.qms-button) { flex: 0 1 auto; }
    .qms-list-controls .form-control-new { flex: 1; width: 0; min-width: 0; }
    .qms-list-toolbar .qms-column-menu { margin-left: auto; }
}
.qms-content .qms-datatable th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px var(--qms-border); padding: 8px 10px; }
.qms-ui .qms-content .qms-column-sort { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0 !important; background: transparent; color: inherit; border: 0; border-radius: 3px; font-weight: 500; white-space: nowrap; text-align: left; }
.qms-column-sort i { font-size: 10px; color: #a4afc3; }
.qms-booking .qms-datatable th { text-align: left; }
.qms-booking .qms-datatable th[align=center] { text-align: center; }
.qms-ui.qms-booking .qms-content .qms-column-sort { position: relative; display: block; padding: 0 14px !important; text-align: inherit; }
.qms-ui.qms-booking .qms-content th:not([align=center]) .qms-column-sort { padding-left: 0 !important; }
.qms-booking .qms-column-sort i { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.qms-datatable th[aria-sort=ascending] i, .qms-datatable th[aria-sort=descending] i { color: var(--qms-primary); }
.qms-content .qms-datatable tbody tr:nth-child(even) { background: #fafbfe; }
.qms-datatable-footer { display: grid; gap: 5px; margin: 8px 0 12px; }
.qms-datatable-footer-paged { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.qms-datatable-footer-paged .qms-datatable-info { flex: 1 1 360px; min-width: 0; }
.qms-content .qms-datatable-footer-paged .pagination { flex: 0 1 auto; max-width: 100%; margin: 0 0 0 auto; }
.qms-datatable-info, .qms-datatable-note { font-size: 12px; line-height: 1.6; color: var(--qms-muted); margin: 0; }
.qms-datatable [hidden] { display: none !important; }
/* Enhanced tables reflow from visible cells, not legacy fixed minimum widths. */
.qms-ui .qms-content .qms-table-scroll table.qms-datatable[data-list-ready] {
    width: 100%; min-width: 0; table-layout: auto;
}
.qms-ui .qms-content .qms-datatable,
.qms-ui .qms-content .qms-datatable :is(td, th, span, a, b, strong, button, input, select, textarea, label):not(.fa):not(.fas):not(.far):not(.fab) { font-weight: 400 !important; }
.qms-content .qms-datatable .qms-status-cell { text-align: center; white-space: nowrap; }
.qms-status-text { color: var(--status-color, var(--qms-text)); font-size: inherit; font-weight: 400; white-space: nowrap; }
.qms-datatable [data-plain-status] :is(.qms-status-badge, .qms-status-text, .onschedule, .cho, .delay, .da, .dang) { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0; min-width: 0; }
.qms-datatable [data-plain-status] .qms-status-dot { display: none; }
.qms-status-0 { --status-color: #4565aa; --status-bg: #f0f4fb; }
.qms-status-1 { --status-color: #77808e; --status-bg: #f3f4f6; }
.qms-status-2 { --status-color: #986c20; --status-bg: #fcf6e9; }
.qms-status-3 { --status-color: #2b7b57; --status-bg: #eef7f1; }
.qms-status-4 { --status-color: #6952aa; --status-bg: #f3f0fa; }
.qms-content .qms-entry-card {
    width: 100%; padding: 0; margin-top: 0; background: #fff;
    border: 1px solid var(--qms-border); border-radius: var(--qms-radius); box-shadow: 0 2px 6px #23314b04;
}
.qms-entry-card .qms-form-header { padding: 18px 24px; border-bottom: 1px solid var(--qms-border); }
.qms-entry-card .qms-form-header .qms-page-heading { margin: 0; padding: 0; border: 0; }
.qms-entry-card .qms-form-header h1 { margin: 0; color: var(--qms-text); font-size: 16px; font-weight: 500; line-height: 1.5; }
.qms-entry-card .qms-form-body { padding: 24px; min-width: 0; }
.qms-entry-card .qms-form-body .row-form { margin-bottom: 18px; gap: 18px; align-items: flex-start; }
.qms-entry-card .qms-form-body > .col-f-4 { margin-bottom: 18px; }
.qms-entry-card .qms-field-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.qms-content .qms-entry-card .qms-form-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; background: #fafbfe; border-top: 1px solid var(--qms-border);
    border-radius: 0 0 var(--qms-radius) var(--qms-radius);
}
.qms-content .qms-form-footer :is(.row-form, .div-btn) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 0; width: auto; }
.qms-content .qms-form-footer .col-f-4 { flex: 0 1 auto; min-width: 0; padding: 0; }
.qms-content .qms-form-footer :is(.btn-blue, .qms-button, input[type=button], input[type=submit]) { width: auto; max-width: 100%; margin: 0; white-space: nowrap; }
.qms-content .qms-report-form { max-width: none; }
.qms-report-form .qms-form-header { padding: 14px 20px; }
.qms-report-form .qms-form-body { padding: 18px 20px; }
.qms-content .qms-report-form .qms-form-footer { padding: 12px 20px; gap: 8px; }
.qms-report-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px; }
.qms-report-fields-with-type { grid-template-columns: minmax(0, 220px) minmax(0, 220px) minmax(0, 320px); }
.qms-report-fields .qms-field { min-width: 0; margin: 0; }
.qms-report-fields .qms-field > label { margin: 0 0 6px; }
.qms-report-fields .form-control-new { width: 100%; margin: 0; }
.qms-field-help { margin: 8px 0 0; color: var(--qms-muted); font-size: 12px; }
.qms-required { color: #bd4b54; }
.qms-config-page .qms-content .qms-entry-card { max-width: none; margin-inline: 0; }
.qms-config-page .qms-form-header { padding: 14px 20px; }
.qms-config-page .qms-form-body { padding: 18px 20px; }
.qms-config-page .qms-form-body > .row-form { max-width: 1040px; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.qms-config-page .qms-form-body > .row-form:last-child { margin-bottom: 0; }
.qms-config-page .qms-form-body .col-f-4 { flex: 1 1 240px; min-width: 0; max-width: 480px; }
.qms-config-page .qms-form-body .col-f-4:only-child { max-width: 720px; }
.qms-config-page .qms-form-body .form-control-new { max-width: 440px; margin-top: 0; }
.qms-config-page .qms-form-body input:is([type=number], [type=time], [placeholder="dd/mm/yyyy"]) { max-width: 220px; }
.qms-config-page .qms-form-body input:is(#maxDays, #maxTickets, #phonenumber, #heso) { max-width: 220px; }
.qms-config-page .qms-form-body textarea.form-control-new { max-width: 720px; resize: vertical; }
.qms-config-page .qms-form-body :is(.qms-field-label, .lb-block) { margin-bottom: 6px; }
.qms-config-page .qms-content .qms-form-footer { padding: 12px 20px; gap: 8px; }
.qms-config-page .qms-content .qms-form-footer .row-form { flex-direction: row; }
.qms-config-page .qms-form-footer .col-f-4 { max-width: 100%; }
.qms-config-page .qms-content .qms-form-footer .col-f-4 { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; width: auto; }
.qms-config-page .qms-form-footer button { gap: 7px; }
.qms-config-fields { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 360px) minmax(0, 220px); gap: 16px; margin-bottom: 16px; }
.qms-config-fields > .row-form { display: contents; }
.qms-booking-settings-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.qms-booking-limits { display: grid; gap: 0; margin-top: 18px; }
.qms-booking-limits .qms-field { display: grid; grid-template-columns: minmax(0, 1fr) 120px; column-gap: 12px; min-width: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--qms-border); }
.qms-booking-limits .qms-field:last-child { padding-bottom: 0; }
.qms-booking-limits .qms-field > label { display: block; grid-column: 1; align-self: center; margin: 0; }
.qms-config-page .qms-booking-limits .qms-field > input { grid-column: 2; grid-row: 1; align-self: center; width: 120px; }
.qms-booking-limits .qms-field-help { grid-column: 1 / -1; margin: 3px 0 0; }
.qms-config-success { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 12px; color: #287653; background: #eff8f3; border: 1px solid #d4eadc; border-radius: 7px; font-size: 13px; }
.qms-booking-permission { display: grid; grid-template-columns: minmax(0, 1fr) 120px; column-gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.qms-content label.qms-booking-toggle { grid-column: 1; align-self: center; margin: 0; font-weight: 500; cursor: pointer; }
.qms-booking-permission > .qms-toggle-control { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; }
.qms-toggle-control { position: relative; display: inline-flex; align-items: center; width: 42px; height: 32px; flex: 0 0 42px; }
.qms-toggle-control input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.qms-toggle-track { display: block; width: 42px; height: 24px; border: 1px solid #8b96a9; border-radius: 14px; background: #8b96a9; transition: background .15s, border-color .15s; }
.qms-toggle-track::after { content: ''; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #23314b20; transition: transform .15s; }
.qms-toggle-control input:checked + .qms-toggle-track { background: var(--qms-primary); border-color: var(--qms-primary); }
.qms-toggle-control input:checked + .qms-toggle-track::after { transform: translateX(18px); }
.qms-toggle-control input:focus-visible + .qms-toggle-track { outline: 2px solid var(--qms-primary); outline-offset: 3px; }
.qms-toggle-control input:disabled { cursor: not-allowed; }
.qms-toggle-control input:disabled + .qms-toggle-track { opacity: .45; }
.qms-booking-state { grid-column: 1 / -1; margin: 3px 0 0; color: var(--qms-muted); font-size: 12px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .qms-toggle-track, .qms-toggle-track::after { transition: none; } }
.qms-booking-qr { margin: 0; padding-left: 28px; border-left: 1px solid var(--qms-border); text-align: center; }
.qms-booking-qr img { display: block; width: 160px; height: 160px; object-fit: contain; margin: 0 auto; border: 1px solid var(--qms-border); border-radius: 6px; }
.qms-booking-qr figcaption { max-width: 320px; margin: 6px auto 0; color: var(--qms-muted); font-size: 12px; }
.qms-content .qms-qr-download { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 4px 10px; margin-top: 2px; background: transparent; border: 0; border-radius: 5px; color: var(--qms-primary); font-size: 13px; cursor: pointer; }
.qms-qr-download:hover { background: var(--qms-tint); }
.qms-qr-download:focus-visible { outline: 2px solid var(--qms-primary); outline-offset: 2px; }
.qms-config-notice { display: flex; gap: 8px; margin: 16px 0 0; padding: 10px 12px; background: #fff8eb; border: 1px solid #f1dfbc; border-radius: 7px; color: #8b672d; font-size: 12px; line-height: 1.6; }
.qms-config-notice i { margin-top: 3px; }
@media (max-width: 700px) {
    .qms-config-page .qms-form-body .col-f-4 { flex-basis: 100%; max-width: none; }
    .qms-config-page .qms-form-body .form-control-new { max-width: 100%; }
    .qms-config-fields { grid-template-columns: 1fr; }
    .qms-booking-settings-grid { grid-template-columns: 1fr; gap: 20px; }
    .qms-booking-limits .qms-field { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 12px; }
    .qms-booking-permission { grid-template-columns: minmax(0, 1fr) 96px; }
    .qms-booking-permission > .qms-toggle-control { grid-row: 1; }
    .qms-booking-state { grid-column: 1 / -1; }
    .qms-config-page .qms-booking-limits .qms-field > input { width: 96px; grid-row: 1; }
    .qms-booking-limits .qms-field-help { grid-column: 1 / -1; margin-top: 6px; }
    .qms-booking-qr { width: 100%; justify-self: stretch; border-left: 0; border-top: 1px solid var(--qms-border); padding: 18px 0 0; }
    .qms-booking-qr figcaption { max-width: 260px; margin-inline: auto; }
}
@media (max-width: 700px) {
    .qms-entry-card .qms-form-header { padding: 16px; }
    .qms-entry-card .qms-form-body { padding: 18px 16px; }
    .qms-content .qms-entry-card .qms-form-footer { padding: 14px 16px; }
    .qms-report-fields { grid-template-columns: 1fr; gap: 12px; }
    .qms-content .qms-form-footer :is(.btn-blue, .qms-button, input[type=button], input[type=submit]) { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
    .qms-datatable-toolbar { align-items: flex-start; flex-wrap: wrap; }
    .qms-column-options { left: auto; right: 0; max-width: calc(100vw - 64px); }
    .qms-content .qms-datatable-search { flex-wrap: wrap; gap: 5px; flex: 1 1 100%; }
    .qms-datatable-search input { max-width: none; }
}
@media print {
    .qms-datatable-toolbar, .qms-datatable-info { display: none !important; }
    .qms-content .qms-datatable-scroll { max-height: none; }
    .qms-header, .qms-nav, .qms-footer, .qms-page-heading, .qms-skip-link { display: none !important; }
    .qms-ui { background: #fff; }
    .qms-ui .qms-container { width: 100%; max-width: none; }
    .qms-content .qms-table-scroll { overflow: visible; border: 0; }
    .qms-content .box-table { box-shadow: none; border: 0; padding: 0; }
}

/* Holiday and makeup-day lists share compact actions and modal entry forms. */
.qms-calendar-table td:first-child { width: 64px; }
.qms-calendar-table td:nth-child(2) { width: 90px; }
.qms-calendar-table td:nth-child(3) { width: 150px; white-space: nowrap; }
.qms-calendar-table td:last-child { width: 112px; }
.qms-calendar-actions { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.qms-content .qms-calendar-delete { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #f1d7db; border-radius: 6px; color: #bd4b54; background: #fff8f8; cursor: pointer; }
.qms-calendar-delete:hover { background: #ffeded; }
.qms-calendar-dialog { width: min(760px, calc(100vw - 32px)); }
.qms-calendar-form .qms-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qms-calendar-form .qms-field > label { display: block; margin: 0 0 6px; }
.qms-content .qms-calendar-form :is(label, legend) { font-weight: 400; }
.qms-calendar-date { max-width: 220px; }
.qms-calendar-form .qms-workingtime-periods { margin-top: 20px; }
.qms-calendar-note { margin-top: 18px; }
.qms-content .qms-calendar-form textarea.form-control-new { width: 100%; max-width: none; height: auto; min-height: 80px; resize: vertical; }
.qms-content .qms-calendar-form .qms-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qms-calendar-form .qms-fields-summary { margin: 0; }
@media (max-width: 700px) {
    .qms-calendar-form .qms-workingtime-periods { grid-template-columns: 1fr; }
    .qms-calendar-form .qms-form-footer { flex-wrap: wrap; }
    .qms-calendar-form .qms-fields-save-actions { margin-left: auto; }
}

.qms-calendar-dialog .qms-entry-card { margin: 0; border: 0; }
.qms-calendar-table :is(td, th)[align="center"] .qms-column-sort { justify-content: center; text-align: center; }

/* Satisfaction criteria: editable list and compact add dialog. */
[data-criteria-list] .qms-fields-body { padding-bottom: 16px; }
.qms-criteria-table { min-width: 850px; }
.qms-criteria-table :is(td, th):first-child { width: 56px; }
.qms-criteria-table :is(td, th):nth-child(3) { width: 120px; }
.qms-criteria-table :is(td, th):nth-child(4) { width: 140px; }
.qms-criteria-table :is(td, th):nth-child(5) { width: 145px; }
.qms-criteria-table :is(td, th):last-child { width: 88px; }
.qms-criteria-table :is(td, th)[align="center"] .qms-column-sort { justify-content: center; text-align: center; }
.qms-criterion-details { display: grid; gap: 8px; }
.qms-content .qms-criterion-details textarea.form-control-new { width: 100%; height: auto; min-height: 32px; resize: none; overflow-y: hidden; }
.qms-criteria-table input:is([data-criterion-weight], [data-criterion-order]) { text-align: center; }
.qms-criteria-table input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--qms-primary); }
.qms-criteria-total { margin: 0 8px 0 0; font-size: 13px; white-space: nowrap; }
.qms-criteria-total-valid { color: #287653; }
.qms-criteria-total-invalid { color: #bd4b54; }
.qms-field-dialog.qms-criterion-dialog { width: min(680px, calc(100% - 32px)); }
.qms-criterion-dialog .qms-entry-card { margin: 0; border: 0; }
.qms-content .qms-criterion-form label { font-weight: 400; display: block; margin-bottom: 6px; }
.qms-criterion-description { margin-top: 16px; }
.qms-content .qms-criterion-form textarea.form-control-new { width: 100%; height: auto; min-height: 80px; max-width: none; resize: none; overflow-y: hidden; }
.qms-criterion-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 16px; margin-top: 16px; }
.qms-content .qms-criterion-form .qms-criterion-staff { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; }
.qms-criterion-staff input { width: 16px; height: 16px; margin: 0; accent-color: var(--qms-primary); }
.qms-criterion-form .qms-form-footer .qms-field-help { margin-block: 0; }
@media (max-width: 700px) { .qms-criterion-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.qms-extra-ticket-table { min-width: 900px; }
.qms-extra-ticket-table :is(td, th):nth-child(2) { width: 140px; white-space: nowrap; }
.qms-extra-ticket-table :is(td, th):nth-child(3) { width: auto; white-space: normal; }
.qms-extra-ticket-table :is(td, th):nth-child(4) { width: 160px; }
.qms-extra-ticket-table :is(td, th):nth-child(5) { width: 170px; }
.qms-extra-ticket-table :is(td, th):nth-child(6) { width: 190px; }
.qms-field-dialog.qms-extra-ticket-dialog { width: min(640px, calc(100% - 32px)); }
.qms-extra-ticket-dialog .qms-entry-card { border: 0; margin: 0; }
.qms-extra-ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qms-extra-ticket-field { grid-column: 1 / -1; }
.qms-content .qms-extra-ticket-form .form-control-new { width: 100%; max-width: none; }
.qms-extra-ticket-form input[readonly], .qms-extra-ticket-form select:disabled { opacity: 1; color: var(--qms-muted); background: #f5f7fb; cursor: default; }
@media (max-width: 480px) { .qms-extra-ticket-grid { grid-template-columns: 1fr; } }

/* User management uses the shared list and modal form structure. */
.qms-userlist-table { min-width: 900px; }
.qms-userlist-table :is(td, th):first-child { width: 56px; }
.qms-userlist-table :is(td, th):last-child { width: 112px; }
.qms-userlist-table :is(td, th)[align="center"] .qms-column-sort { justify-content: center; text-align: center; }
.qms-userlist-protected { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--qms-muted); }
.qms-userlist-message { color: #bd4b54; white-space: pre-line; margin: 0 0 16px; }
.qms-field-dialog.qms-userlist-dialog { width: min(640px, calc(100% - 32px)); }
.qms-userlist-dialog .qms-entry-card { border: 0; margin: 0; }
.qms-userlist-form .qms-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qms-userlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.qms-userlist-wide { grid-column: 1 / -1; }
.qms-content .qms-userlist-form .form-control-new { width: 100%; max-width: none; }
.qms-content .qms-userlist-form label { font-weight: 400; display: block; margin-bottom: 6px; }
.qms-userlist-form input[readonly] { background: #f5f7fb; color: var(--qms-muted); }
.qms-userlist-groups, .qms-userlist-status { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.qms-userlist-form legend { font-size: 13px; font-weight: 400; margin-bottom: 8px; color: #46516a; }
.qms-userlist-group-options { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.qms-content .qms-userlist-group-options label { display: inline-flex; align-items: center; gap: 7px; margin: 0; min-height: 32px; }
.qms-userlist-group-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--qms-primary); }
.qms-userlist-form .qms-form-footer .qms-field-help { margin-block: 0; }
@media (max-width: 600px) { .qms-userlist-grid { grid-template-columns: 1fr; } }

.qms-userlist-group-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qms-userlist-groups .qms-userlist-group-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.qms-userlist-groups .qms-userlist-group-options label { min-width: 0; align-items: flex-start; line-height: 1.5; padding-block: 5px; }
.qms-userlist-groups .qms-userlist-group-options input { flex-shrink: 0; margin-top: 2px; }

.qms-userlist-email-error { margin: 5px 0 0; font-size: 12px; color: #bd4b54; }
.qms-userlist-form input[aria-invalid="true"] { border-color: #bd4b54; }

.qms-userlist-form .qms-userlist-grid .qms-field { margin: 0; min-width: 0; }
.qms-entry-card.qms-userlist-form .qms-form-header { padding: 12px 20px; }
.qms-entry-card.qms-userlist-form .qms-form-body { padding: 16px 20px; }
.qms-content .qms-entry-card.qms-userlist-form .qms-form-footer { padding: 10px 20px; gap: 8px; }
.qms-userlist-groups legend { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; width: 100%; margin-bottom: 6px; }
.qms-userlist-form .qms-userlist-status { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.qms-userlist-status legend { float: left; width: auto; margin: 0 16px 0 0; line-height: 32px; }
@media (max-width: 600px) {
    .qms-entry-card.qms-userlist-form .qms-form-header { padding: 12px 16px; }
    .qms-entry-card.qms-userlist-form .qms-form-body { padding: 14px 16px; }
    .qms-content .qms-entry-card.qms-userlist-form .qms-form-footer { padding: 10px 16px; }
}

.qms-field-dialog.qms-changepass-dialog { width: min(460px, calc(100% - 32px)); }
.qms-changepass-dialog .qms-entry-card { margin: 0; border: 0; }
.qms-changepass-form .qms-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qms-entry-card.qms-changepass-form .qms-form-header { padding: 12px 20px; }
.qms-entry-card.qms-changepass-form .qms-form-body { padding: 16px 20px; }
.qms-changepass-form .qms-field { margin: 0 0 12px; }
.qms-changepass-form .qms-field:last-child { margin-bottom: 0; }
.qms-content .qms-changepass-form label { display: block; margin-bottom: 5px; font-weight: 400; }
.qms-changepass-form .form-control-new { width: 100%; }
.qms-changepass-form .qms-field-help { line-height: 1.5; margin-top: 5px; }
.qms-content .qms-entry-card.qms-changepass-form .qms-form-footer { padding: 10px 20px; gap: 8px; }
.qms-changepass-feedback { color: #bd4b54; font-size: 13px; margin: 0 0 12px; }
.qms-changepass-feedback.is-success { color: #287653; }

.qms-changepass-form input::-ms-reveal { display: none; }

/* Customer administration: concise list and grouped entry forms. */
.qms-customers-table { width: 100%; min-width: 0; table-layout: fixed; }
.qms-customers-table :is(td,th):first-child { width: 50px; }
.qms-customers-table :is(td,th)[align="center"] .qms-column-sort { justify-content: center; text-align: center; }
.qms-customers-table .qms-customer-name { min-width: 0; overflow-wrap: anywhere; }
.qms-customers-table td[data-plain-status] { min-width: 0; white-space: normal; }
.qms-customers-table :is(td,th):last-child { width: 88px; }
.qms-content .qms-customer-edit { text-decoration: none; }
.qms-customer-form .qms-field { min-width: 0; margin: 0; }
.qms-content .qms-customer-form label { display: block; margin-bottom: 5px; font-weight: 400; }
.qms-content .qms-customer-form .form-control-new { width: 100%; max-width: none; }
.qms-customer-form .qms-form-body { display: grid; gap: 14px; background: #f7f9fc; }
.qms-customer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.qms-customer-span-2 { grid-column: span 2; }
.qms-customer-section { min-width: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--qms-border); border-radius: 8px; }

.qms-customer-section h2, .qms-customer-integration h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 500; }
.qms-customer-integration { display: grid; grid-template-columns: minmax(130px, 180px) minmax(240px, 420px); gap: 6px 16px; padding: 12px 14px; background: #f7f9fd; border: 1px solid var(--qms-border); border-radius: 7px; }
.qms-customer-integration .qms-field-help { grid-column: 1 / -1; margin: 0; }
.qms-customer-copy { display: flex; align-items: center; }
.qms-content .qms-customer-copy input { border-radius: 6px 0 0 6px; font-variant-numeric: tabular-nums; }
.qms-customer-copy button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 1px solid var(--qms-border); border-left: 0; border-radius: 0 6px 6px 0; color: var(--qms-muted); background: #fff; cursor: pointer; }
.qms-customer-copy button:hover { color: var(--qms-primary); background: var(--qms-tint); }
.qms-customer-form input[readonly] { color: var(--qms-muted); background: #f5f7fb; }
.qms-customer-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; margin-top: 12px; }
.qms-content .qms-customer-options label, .qms-content .qms-customer-activation label { display: flex; align-items: center; gap: 7px; margin: 0; min-height: 32px; }
.qms-customer-options input, .qms-customer-activation input { width: 16px; height: 16px; flex-shrink: 0; margin: 0; accent-color: var(--qms-primary); }
.qms-customer-activation { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; border: 0; margin: 10px 0 0; padding: 0; }
.qms-customer-activation legend { float: left; width: auto; line-height: 32px; margin: 0 20px 0 0; font-size: 13px; }
.qms-customer-form .qms-form-footer .qms-field-help { margin-block: 0; }
@media (max-width: 1000px) {
    .qms-customer-grid, .qms-customer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .qms-customer-grid, .qms-customer-integration { grid-template-columns: minmax(0, 1fr); }
    .qms-customer-span-2 { grid-column: auto; }
    .qms-customer-options { grid-template-columns: minmax(0, 1fr); }
}

.qms-content .qms-table-scroll .qms-customers-table :is(td,th) { padding: 10px 6px; overflow-wrap: anywhere; white-space: normal; }
.qms-customers-table :is(td,th):nth-child(4) { width: 19%; }
.qms-customers-table :is(td,th):nth-child(17) { width: 10%; }
.qms-ui .qms-content .qms-customers-table .qms-column-sort { white-space: normal; gap: 4px; height: auto; min-height: 32px; }
.qms-customers-table .qms-column-sort i { flex-shrink: 0; }
@media (max-width: 1000px) { .qms-customers-table { min-width: 1000px; } }

.qms-content .qms-table-scroll .qms-customers-table .rowheader td { overflow-wrap: normal; }

.qms-customer-span-3 { grid-column: span 3; }
.qms-config-page .qms-customer-form .qms-form-body .form-control-new { width: 100%; max-width: none; }
@media (max-width: 1000px) { .qms-customer-span-3 { grid-column: auto; } }
@media (max-width: 600px) { .qms-customer-span-3 { grid-column: auto; } }

.qms-customer-integration h2 { grid-column: 1 / -1; margin-bottom: 4px; }
.qms-customer-section h2 i, .qms-customer-integration h2 i { color: var(--qms-muted); font-size: 13px; }
@media (max-width: 600px) { .qms-customer-section { padding: 12px; } }

.qms-content .qms-calendar-actions > a.qms-workingtime-edit { text-decoration: none; }
