@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap");

:root {
    --bento-bg: #f5f8fd;
    --bento-surface: #ffffff;
    --bento-surface-soft: #fafcff;
    --bento-border: #dde7f5;
    --bento-text: #22314f;
    --bento-muted: #7286a3;
    --bento-primary: #1e3a8a;
    --bento-primary-dark: #16233c;
    --bento-primary-soft: #eff4fc;
    --bento-success: #067647;
    --bento-warning: #b54708;
    --bento-danger: #b42318;
    --bento-radius: 20px;
    --bento-radius-sm: 12px;
    --bento-shadow: 0 12px 34px rgba(16, 24, 40, .07);
}

/* Internal sign-in screen. */
.wrapper.login {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(39, 39, 42, .08), transparent 24rem),
        radial-gradient(circle at 82% 88%, rgba(39, 39, 42, .06), transparent 22rem),
        #eff4fc;
}

.wrapper.login .reg__wrap {
    min-height: 100vh;
    display: flex !important;
    width: 100%;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 1;
    padding: 28px 16px;
    box-sizing: border-box;
}

.wrapper.login .reg__image {
    position: relative;
    width: min(100%, 390px) !important;
    min-height: 214px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: var(--bento-primary-dark);
    box-shadow: 0 18px 48px rgba(17, 24, 39, .12);
    flex: 0 0 auto;
}

.wrapper.login .login-background {
    position: absolute;
    inset: 0;
    opacity: 1;
}

.wrapper.login .login-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    filter: saturate(.9) contrast(1.02);
}

.wrapper.login .reg__image::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(9, 9, 11, .28), rgba(39, 39, 42, .1) 52%, rgba(113, 113, 122, .06)),
        linear-gradient(0deg, rgba(9, 9, 11, .12), transparent 54%);
    content: "";
}

.wrapper.login .reg__image::before {
    position: absolute;
    z-index: 1;
    top: -48px;
    right: -34px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    content: "";
}

.wrapper.login .reg__section {
    display: flex;
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    align-items: center;
    justify-content: center;
    margin-top: -36px;
    margin-left: 0 !important;
    padding: 0 !important;
    background: transparent;
    box-shadow: none;
    position: relative;
    flex: 0 0 auto;
}

.wrapper.login .reg__box {
    position: relative;
    z-index: 2;
    height: auto;
    width: 100%;
    max-width: 390px !important;
    padding: 24px 28px 26px;
    border: 1px solid rgba(228, 228, 231, .86);
    border-radius: 30px 30px 24px 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 52px rgba(17, 24, 39, .14);
    text-align: center;
}

.wrapper.login .login-seal {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin: -54px auto 12px;
    padding: 5px;
    border: 1px solid #dde7f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(17, 24, 39, .08);
}

.wrapper.login .login-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wrapper.login .reg__eyebrow {
    margin-bottom: 5px;
    color: #7286a3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.wrapper.login .reg__brand {
    margin: 0;
    color: var(--bento-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.wrapper.login .login-welcome {
    margin-top: 7px;
    color: var(--bento-muted);
    font-size: 12px;
}

.wrapper.login .reg__heading {
    margin: 18px 0 14px;
    padding-top: 0;
    border-top: 0;
    color: var(--bento-text);
    font-size: 19px;
    font-weight: 800;
}

.wrapper.login .reg__heading + .form {
    margin-top: 0;
}

.wrapper.login .form-group {
    margin-bottom: 14px;
    text-align: left;
}

.wrapper.login .form-group > label[for="regInputUsername"],
.wrapper.login .form-group > label[for="regInputPassword"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrapper.login input::placeholder {
    color: #8b8b94;
    opacity: 1;
}

.wrapper.login .input-group {
    position: relative;
}

.wrapper.login .input-group-append--icon {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

.wrapper.login .form-group > label {
    display: block;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    margin-bottom: 7px;
    clip: auto;
    white-space: normal;
    color: #3f5680;
    font-size: 13px;
    font-weight: 700;
}

.wrapper.login input.form-control,
.wrapper.login select {
    min-height: 46px;
    padding: 0 18px;
    border: 2px solid #cfdcee;
    border-radius: 999px !important;
    background: #fff;
    color: #22314f;
    font-weight: 600;
}

.wrapper.login input.form-control:focus,
.wrapper.login select:focus {
    border-color: var(--bento-primary);
    box-shadow: 0 0 0 4px rgba(39, 39, 42, .1);
}

.wrapper.login .radio-group {
    margin: 2px 0 18px;
    padding: 10px 12px;
    border: 1px solid #dde7f5;
    border-radius: 16px;
    background: #fafcff;
    text-align: left;
}

.wrapper.login .radio-list {
    gap: 6px;
}

.wrapper.login .radio-custom {
    color: #51648c;
    font-size: 12px;
}

.wrapper.login .form__submit .btn-full {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    background: #1e3a8a !important;
    box-shadow: 0 8px 16px rgba(24, 24, 27, .18);
    font-weight: 800;
}

.wrapper.login .form__submit .btn-full:hover {
    background: #16233c !important;
}

.wrapper.login .reg__footer {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
}

.wrapper.login .login-alert {
    max-height: 80px;
    overflow: hidden;
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 1px solid rgba(6, 118, 71, .18);
    border-radius: 12px;
    background: #ecfdf3;
    color: #067647;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    animation: loginAlertFade 5s ease forwards;
}

@keyframes loginAlertFade {
    0%,
    78% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-color: transparent;
        transform: translateY(-6px);
    }
}

.wrapper.login .footer--surindr {
    display: none;
}

@media screen and (min-width: 900px) {
    .wrapper.login {
        background: #ecf2fb;
    }

    .wrapper.login .main {
        min-height: 100vh;
        align-items: center;
        justify-content: center;
    }

    .wrapper.login .reg__wrap {
        width: min(92vw, 930px);
        min-height: 520px;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
        flex-grow: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 22px;
        background: #fff;
        box-shadow: 0 22px 46px rgba(17, 24, 39, .12);
        margin: 0 auto;
    }

    .wrapper.login .reg__section {
        order: 1;
        width: 50% !important;
        max-width: none !important;
        min-height: 520px;
        margin-top: 0;
        padding: 58px 64px !important;
        background: #fff;
    }

    .wrapper.login .reg__image {
        order: 2;
        width: 50% !important;
        min-height: 520px;
        border-radius: 0;
        box-shadow: none;
    }

    .wrapper.login .login-background img {
        object-position: center;
        opacity: 1;
        filter: none;
    }

    .wrapper.login .reg__image::after {
        display: none;
    }

    .wrapper.login .reg__image::before {
        display: none;
    }

    .wrapper.login .reg__box {
        max-width: 340px !important;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .wrapper.login .reg__eyebrow,
    .wrapper.login .reg__brand,
    .wrapper.login .login-welcome {
        display: none;
    }

    .wrapper.login .login-seal {
        display: flex;
        width: 72px;
        height: 72px;
        margin: 0 auto 22px;
        border-radius: 20px;
    }

    .wrapper.login .reg__heading {
        margin: 0 0 28px;
        color: #22314f;
        font-size: 21px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .wrapper.login .form-group {
        margin-bottom: 16px;
    }

    .wrapper.login .form-group > label[for="regInputUsername"],
    .wrapper.login .form-group > label[for="regInputPassword"] {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        margin: 0 0 8px;
        padding: 0;
        clip: auto;
        white-space: normal;
        color: #3f5680;
        font-size: 12px;
        font-weight: 600;
    }

    .wrapper.login input.form-control,
    .wrapper.login select {
        min-height: 42px;
        border: 0;
        border-radius: 999px !important;
        background: #ecf2fb;
        box-shadow: none;
    }

    .wrapper.login input.form-control:focus,
    .wrapper.login select:focus {
        background: #fff;
        box-shadow: 0 0 0 3px rgba(24, 24, 27, .1), 0 0 0 1px #22314f;
    }

    .wrapper.login .input-group-append--icon {
        right: 14px;
    }

    .wrapper.login .radio-group {
        margin: 6px 0 20px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .wrapper.login .radio-custom {
        font-size: 12px;
    }

    .wrapper.login .form__submit .btn-full {
        min-height: 42px;
        border: 1px solid #22314f;
        background: #22314f !important;
        color: #fff;
        box-shadow: 0 10px 18px rgba(24, 24, 27, .16);
    }

    .wrapper.login .form__submit .btn-full:hover {
        background: #16233c !important;
        box-shadow: 0 12px 22px rgba(24, 24, 27, .2);
    }

    .wrapper.login .reg__footer {
        margin-top: 16px;
        color: #7286a3;
        font-size: 12px;
    }

    .wrapper.login .login-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .wrapper.login .login-action {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        border: 1px solid #dde7f5;
        border-radius: 10px;
        background: #fff;
        color: #1e3a8a;
        font-weight: 700;
        text-decoration: none;
        transition: all 120ms ease;
    }

    .wrapper.login .login-action:hover {
        border-color: #cfdcee;
        background: #eff4fc;
        color: #16233c;
        box-shadow: 0 8px 18px rgba(24, 24, 27, .08);
    }
}

@media screen and (max-width: 899px) {
    .wrapper.login {
        background: #ecf2fb;
    }

    .wrapper.login .reg__wrap {
        margin-top: 0;
        min-height: 100vh;
        justify-content: center !important;
        padding: 20px 14px;
    }

    .wrapper.login .reg__image {
        display: block;
        width: min(100%, 340px) !important;
        min-height: 184px;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 16px 36px rgba(17, 24, 39, .12);
    }

    .wrapper.login .login-background img {
        opacity: 1;
        object-position: center;
        filter: none;
    }

    .wrapper.login .reg__image::before,
    .wrapper.login .reg__image::after,
    .wrapper.login .login-background::before,
    .wrapper.login .login-background::after {
        display: none;
    }

    .wrapper.login .reg__section {
        width: min(100%, 340px) !important;
        max-width: 340px !important;
        min-height: 0;
        margin-top: -28px;
    }

    .wrapper.login .reg__box {
        max-width: 340px !important;
        padding: 22px 26px 24px;
        border: 0;
        border-radius: 30px 30px 24px 24px;
        box-shadow: 0 18px 42px rgba(17, 24, 39, .12);
    }

    .wrapper.login .login-seal,
    .wrapper.login .reg__eyebrow,
    .wrapper.login .reg__brand,
    .wrapper.login .login-welcome {
        display: none;
    }

    .wrapper.login .reg__heading {
        margin: 0 0 18px;
        color: #22314f;
        font-size: 21px;
        text-align: center;
    }

    .wrapper.login .form-group {
        margin-bottom: 14px;
    }

    .wrapper.login input.form-control,
    .wrapper.login select {
        min-height: 44px;
        border: 2px solid #d7d7dc;
        border-radius: 999px !important;
        background: #fff;
    }

    .wrapper.login input.form-control:focus,
    .wrapper.login select:focus {
        border-color: #22314f;
        box-shadow: 0 0 0 4px rgba(24, 24, 27, .1);
    }

    .wrapper.login .radio-group {
        margin: 0 0 18px;
        padding: 9px 12px;
        border-radius: 16px;
        background: #fbfbfc;
    }

    .wrapper.login .form__submit .btn-full {
        min-height: 46px;
        border: 1px solid #22314f;
        background: #22314f !important;
        color: #fff;
        box-shadow: 0 10px 18px rgba(24, 24, 27, .16);
    }

    .wrapper.login .form__submit .btn-full:hover {
        background: #16233c !important;
    }

    .wrapper.login .reg__footer .link {
        color: #1e3a8a;
    }

    .wrapper.login .login-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .wrapper.login .login-action {
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        border: 1px solid #dde7f5;
        border-radius: 10px;
        background: #fff;
        color: #1e3a8a;
        font-weight: 700;
        text-decoration: none;
    }
}

@media screen and (max-width: 420px) {
    .wrapper.login .reg__wrap {
        padding: 12px;
    }

    .wrapper.login .reg__image {
        width: 100% !important;
        min-height: 178px;
    }

    .wrapper.login .reg__section {
        width: 100% !important;
        margin-top: -26px;
    }

    .wrapper.login .reg__box {
        padding: 20px 22px 22px;
        border-radius: 26px 26px 20px 20px;
    }

    .wrapper.login .reg__heading {
        font-size: 20px;
    }
}

/* Ticket detail: bento workspace */
body:not(.cust-help) .main__content.ticket {
    align-items: flex-start;
    gap: 18px;
    padding: 18px !important;
    border: 0;
    background: #f5f8fd;
    box-shadow: none;
}

body:not(.cust-help) .main__content.ticket .ticket__body {
    margin-right: 0;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block,
body:not(.cust-help) .main__content.ticket .ticket__params .params--block,
body:not(.cust-help) .main__content.ticket .ticket__params .params--bar {
    border: 1px solid var(--bento-border) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
}

/* Profile workspace */
body:not(.cust-help) .main__content.profile {
    padding: 24px !important;
    background: #f5f8fd;
}

/* ===== หน้ายืนยันรหัสผ่าน/รหัส MFA (elevator.php — มี .profile__wrapper.mfa) =====
 * ปัญหาเดิม: กฎ padding 24px ด้านบน specificity สูงกว่ากฎเว้นที่ dock -> การ์ดโดนเมนูทับ
 * แก้: เว้นหัวเท่าหน้าอื่น + ยกฟอร์มเป็นการ์ดแคบ ๆ กลางจอ อ่านง่าย */
body:not(.cust-help) .main__content.profile:has(.profile__wrapper.mfa) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px !important;
}
@media screen and (min-width: 900px) {
    body:not(.cust-help) .main__content.profile:has(.profile__wrapper.mfa) {
        padding: 210px 24px 60px !important;   /* เว้น header+dock (fixed) เหมือนหน้าอื่น */
        justify-content: flex-start;
    }
}
body:not(.cust-help) .main__content.profile:has(.profile__wrapper.mfa) .mfa__head {
    text-align: center;
    margin: 0 0 14px;
}
body:not(.cust-help) .main__content.profile:has(.profile__wrapper.mfa) .mfa__head h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--bento-text);
}
body:not(.cust-help) .main__content.profile .profile__wrapper.mfa {
    width: 100% !important;
    max-width: 440px;
    margin: 0 auto;
    padding: 26px 28px 28px;
    background: var(--bento-surface);
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius);
    box-shadow: var(--bento-shadow);
}
body:not(.cust-help) .main__content.profile .profile__wrapper.mfa .form-group { margin-bottom: 4px; }
body:not(.cust-help) .main__content.profile .profile__wrapper.mfa label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bento-muted);
}
body:not(.cust-help) .main__content.profile .profile__wrapper.mfa .form-control {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
}
body:not(.cust-help) .main__content.profile .profile__wrapper.mfa #verify-submit {
    width: 100%;
    min-height: 44px;
    border-radius: 12px !important;
    font-weight: 700;
}

.surin-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 18px;
    width: 100%;
}

body:not(.cust-help) .profile__wrapper.surin-profile-card {
    display: flex;
    min-height: 178px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--bento-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.surin-profile-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

.surin-profile-avatar {
    display: flex;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dde7f5;
    border-radius: 24px;
    background: #eff4fc;
    color: #1e3a8a;
    font-size: 34px;
    font-weight: 800;
}

.surin-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.surin-profile-avatar--large {
    width: 96px;
    height: 96px;
    border-radius: 26px;
}

.surin-profile-eyebrow,
.surin-profile-meta {
    margin: 0;
    color: #7286a3;
    font-size: 12px;
    font-weight: 700;
}

body:not(.cust-help) .profile__wrapper.surin-profile-card h3 {
    margin: 4px 0;
    color: #22314f;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

body:not(.cust-help) .profile__wrapper.surin-profile-card .info--mail a {
    color: #51648c;
}

.surin-profile-actions {
    display: grid;
    min-width: 190px;
    gap: 10px;
}

body:not(.cust-help) .surin-profile-actions .btn,
body:not(.cust-help) .surin-profile-mfa .btn {
    min-height: 40px;
    border: 1px solid #dde7f5 !important;
    border-radius: 10px;
    background: #fff !important;
    color: #1e3a8a !important;
    font-weight: 800;
}

body:not(.cust-help) .surin-profile-actions .btn:hover,
body:not(.cust-help) .surin-profile-mfa .btn:hover {
    background: #eff4fc !important;
}

body:not(.cust-help) .profile-log-out {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #fee4e2;
    border-radius: 10px;
    background: #fff;
    color: #b42318;
    font-weight: 800;
}

body:not(.cust-help) .profile-log-out .icon {
    fill: #b42318;
}

.surin-avatar-upload {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--bento-border);
    border-radius: 14px;
    background: #fafcff;
}

.surin-avatar-upload label {
    display: block;
    margin-bottom: 8px;
    color: #22314f;
    font-weight: 800;
}

.surin-avatar-upload p {
    margin-top: 8px;
    color: #7286a3;
    font-size: 12px;
    line-height: 1.5;
}

body:not(.cust-help) .right-bar.profile-edit .right-bar__body,
body:not(.cust-help) .right-bar.profile-password .right-bar__body {
    background: #fff;
}

body:not(.cust-help) .right-bar.profile-edit .form-group,
body:not(.cust-help) .right-bar.profile-password .form-group {
    margin-bottom: 16px;
}

body:not(.cust-help) .right-bar.profile-edit input.form-control,
body:not(.cust-help) .right-bar.profile-edit textarea.form-control,
body:not(.cust-help) .right-bar.profile-password input.form-control {
    border: 1px solid #dde7f5;
    border-radius: 10px !important;
    background: #fff;
}

body:not(.cust-help) .right-bar.profile-edit input.form-control:focus,
body:not(.cust-help) .right-bar.profile-edit textarea.form-control:focus,
body:not(.cust-help) .right-bar.profile-password input.form-control:focus {
    border-color: #22314f;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, .1);
}

@media screen and (max-width: 980px) {
    .surin-profile-grid {
        grid-template-columns: 1fr;
    }

    body:not(.cust-help) .profile__wrapper.surin-profile-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .surin-profile-actions {
        width: 100%;
    }
}

@media screen and (max-width: 520px) {
    .surin-profile-summary,
    .surin-avatar-upload {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .surin-profile-summary {
        flex-direction: column;
        align-items: center;
    }

    .surin-profile-avatar {
        margin: 0 auto;
    }
}

body:not(.cust-help) .main__content.ticket .ticket__body_block {
    margin-bottom: 14px;
    padding: 20px !important;
    text-align: left;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message {
    border-top: 0 !important;   /* เอาแถบสีบนหัวเรื่องออก (อาร์มสั่ง 21 ก.ค. 2569) */
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.response {
    border-left: 4px solid #84ad9c !important;
    background: #fbfdfc;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block h3 {
    margin: 0;
    color: var(--bento-text);
    font-family: inherit;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.025em;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head {
    gap: 8px;
    margin-top: 14px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bento-border);
    color: var(--bento-muted);
    font-family: inherit;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head .contact {
    flex-wrap: wrap;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head .contact > span,
body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head time {
    color: var(--bento-muted);
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head .contact .dropdown span,
body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head .contact b {
    color: var(--bento-text);
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--description {
    margin-top: 16px;
    color: #344054;
    font-family: inherit;
    line-height: 1.75;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--description p {
    color: #344054;
    font-size: 15px;
    line-height: 1.75;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table {
    display: block;
    width: 100%;
    margin-top: 14px;
    border: 0;
    background: transparent;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table::before {
    display: block;
    margin-bottom: 8px;
    color: var(--bento-text);
    content: "ข้อมูลประกอบเรื่อง";
    font-size: 13px;
    font-weight: 800;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table tr {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 10px 12px;
    border: 1px solid var(--bento-border);
    border-radius: 10px;
    background: #fcfcfd;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #344054;
    vertical-align: top;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table td + td {
    margin-top: 4px;
    color: var(--bento-text);
    font-size: 14px;
    font-weight: 650;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table td + td span:empty::after {
    color: var(--bento-muted);
    content: "-";
    font-weight: 500;
}

body:not(.cust-help) .main__content.ticket .custom-field-title {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--bento-muted);
    font-size: 12px;
    font-weight: 750;
}

body:not(.cust-help) .main__content.ticket .ticket-extra-fields {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--bento-border);
}

body:not(.cust-help) .main__content.ticket .ticket-extra-fields h4 {
    margin: 0 0 8px;
    color: var(--bento-text);
    font-size: 13px;
    font-weight: 800;
}

body:not(.cust-help) .main__content.ticket .ticket-extra-fields__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body:not(.cust-help) .main__content.ticket .ticket-extra-fields__item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--bento-border);
    border-radius: 10px;
    background: #fcfcfd;
    color: var(--bento-text);
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

body:not(.cust-help) .main__content.ticket .ticket-extra-fields__item > span:last-child:empty::after {
    color: var(--bento-muted);
    content: "-";
    font-weight: 500;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--notes {
    margin-top: 18px;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--notes .note {
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid #efe2bd;
    border-left: 4px solid #d6b866;
    border-radius: 12px;
    background: #fffdf7;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--notes .note .note__description {
    margin-top: 8px;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head .contact::before,
body:not(.cust-help) .main__content.ticket .ticket__body_block .block--notes .note .note__head .name::before {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-right: 9px;
    flex: 0 0 auto;
    border: 1px solid #cfdcee;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 36%, #fff 0 4px, transparent 4.5px),
        radial-gradient(ellipse at 50% 80%, #fff 0 9px, transparent 9.5px),
        #7286a3;
    content: "";
    vertical-align: middle;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block.response .block--head .contact::before {
    border-color: #a9c7b9;
    background:
        radial-gradient(circle at 50% 36%, #fff 0 4px, transparent 4.5px),
        radial-gradient(ellipse at 50% 80%, #fff 0 9px, transparent 9.5px),
        #648f7a;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--notes .note .note__head .name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: var(--bento-muted);
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--notes .note .note__head .name::before {
    border-color: #ead9a8;
    background:
        radial-gradient(circle at 50% 36%, #fff 0 4px, transparent 4.5px),
        radial-gradient(ellipse at 50% 80%, #fff 0 9px, transparent 9.5px),
        #b99743;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--notes .note .note__head .name b {
    margin: 0 4px;
    color: var(--bento-text);
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--uploads,
body:not(.cust-help) .main__content.ticket .attachments {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--bento-border);
    border-radius: 10px;
    background: #fafcff;
}

body:not(.cust-help) .main__content.ticket .ticket__replies {
    margin: 4px 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--bento-border);
    border-radius: 12px;
    background: #fff;
}

body:not(.cust-help) .main__content.ticket .ticket__replies .ticket__replies_link {
    margin-left: 0;
    color: var(--bento-primary);
    font-family: inherit;
    font-weight: 700;
}

body:not(.cust-help) .main__content.ticket .ticket__params {
    width: 340px;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--bar {
    height: auto;
    min-height: 50px;
    overflow: hidden;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--bar a {
    min-width: 44px;
    height: 50px;
    border-right: 1px solid var(--bento-border);
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--bar a:last-child {
    border-right: 0;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--bar a:hover {
    background: var(--bento-primary-soft);
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block {
    margin-top: 12px;
    overflow: hidden;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block.params {
    padding: 8px 14px;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block .row {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--bento-border);
    font-family: inherit;
    font-size: 13px;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block .row:last-child {
    border-bottom: 0;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block .assignment-highlight {
    margin: 8px -8px;
    padding: 14px 10px;
    border: 1px solid #d6b866;
    border-radius: 10px;
    background: #fff9e8;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block .assignment-highlight .title {
    color: #7a5b14;
    font-weight: 800;
}

body:not(.cust-help) .main__content.ticket .assignment-notice .notification {
    padding: 18px 20px 18px 28px;
    border: 1px solid #d6b866 !important;
    border-left: 6px solid #b99743 !important;
    background: #fff9e8;
    box-shadow: 0 8px 22px rgba(122, 91, 20, .12);
}

body:not(.cust-help) .main__content.ticket .assignment-notice .notification::before {
    display: none;
}

body:not(.cust-help) .main__content.ticket .assignment-notice .notification strong {
    color: #654b11;
    font-size: 1.08em;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block .row .title {
    color: var(--bento-muted);
    font-size: 12px;
    font-weight: 700;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block.params .title {
    width: 104px;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block h4 {
    height: auto;
    min-height: 48px;
    padding: 0 14px;
    border-bottom: 1px solid var(--bento-border);
    color: var(--bento-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
}

body:not(.cust-help) .main__content.ticket .ticket__params .params--block .accordion-body {
    padding: 4px 14px 10px;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--timer {
    height: auto;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--bento-border);
    border-radius: 10px;
    background: #344054;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--message {
    margin-top: 14px;
    border: 1px solid var(--bento-border);
    border-radius: 10px;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--message textarea {
    border: 0;
    background: #fff;
    font-family: inherit;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--checkboxs {
    gap: 10px 18px;
    margin-top: 18px;
    padding: 12px 0 0;
    border-top: 1px solid var(--bento-border);
    border-bottom: 0;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--checkboxs .checkbox-custom {
    margin-right: 0;
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--submit {
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bento-border);
}

body:not(.cust-help) .main__content.ticket .ticket__body_block .block--submit .btn {
    margin-right: 0;
    border-radius: 10px;
}

@media screen and (max-width: 899px) {
    body:not(.cust-help) .main__content.ticket {
        display: block;
        padding: 10px !important;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block {
        padding: 16px !important;
    }

    body:not(.cust-help) .main__content.ticket .ticket__params {
        width: 100%;
        margin-top: 14px;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head {
        display: block;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head time {
        display: block;
        margin: 6px 0 0;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block .block--head .more {
        margin-top: 10px;
        margin-right: 0;
        padding-right: 0;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block .block--submit {
        align-items: stretch;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block .block--submit .btn,
    body:not(.cust-help) .main__content.ticket .ticket__body_block .block--submit .submit-us {
        width: 100%;
        margin: 0 0 8px;
    }
}

@media screen and (max-width: 599px) {
    body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table tbody {
        grid-template-columns: 1fr;
    }

    body:not(.cust-help) .main__content.ticket .ticket-extra-fields__grid {
        grid-template-columns: 1fr;
    }
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
    background: var(--bento-bg);
    color: var(--bento-text);
    line-height: 1.55;
}

.main a.link,
.cust-help a.link {
    color: var(--bento-primary);
}

.main a.link:hover,
.cust-help a.link:hover {
    color: var(--bento-primary-dark);
}

.header {
    border-bottom-color: var(--bento-border);
    background: rgba(255, 255, 255, .9);
}

.header .header__mobile {
    background: #22314f;
}

.wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(39, 39, 42, .045), transparent 30rem),
        var(--bento-bg);
}

/* Shared interactive elements */
.btn,
button,
input[type="submit"],
input[type="button"] {
    border-radius: 10px !important;
    font-weight: 700;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
}

.btn--blue,
.btn-full,
.btn-banner {
    background: var(--bento-primary) !important;
}

.btn--blue:hover,
.btn-full:hover,
.btn-banner:hover {
    background: var(--bento-primary-dark) !important;
}

.btn--blue-border,
.btn-border {
    border-color: #cfdcee !important;
    color: var(--bento-primary) !important;
    background: #fff !important;
}

.btn-with-icon,
.header-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-with-icon .icon,
.header-action-btn .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: currentColor !important;
}

.header__right .header-action-btn {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px !important;
    font-size: 13px;
    font-weight: 800;
}

.header__right .header-action-btn--primary {
    color: #fff;
    background: #1e3a8a !important;
    box-shadow: 0 6px 14px rgba(24, 24, 27, .14);
}

.header__right .header-action-btn--primary:hover {
    background: #16233c !important;
}

.header__right .header-action-btn--draft {
    color: #3f5680;
    border: 1px solid #cfdcee;
    background: #fff;
}

.header__right .header-action-btn--draft:hover {
    border-color: #93a6c1;
    background: #fafcff;
}

.form input.form-control,
.form textarea.form-control,
.form select.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    border-radius: 10px !important;
    border-color: #d0d5dd !important;
    background-color: #fff;
}

.form input.form-control:focus,
.form textarea.form-control:focus,
.form select.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #93a6c1 !important;
    box-shadow: 0 0 0 4px rgba(39, 39, 42, .1) !important;
    outline: 0;
}

/* Normalize legacy controls to the restrained blocks.so palette. */
.wrapper,
th > a,
h3 > a,
.btn-link,
.plain_link,
.pagination__stroke,
.pagination__link {
    color: var(--bento-text);
}

.badge {
    background-color: #3f5680;
}

.selectize-control .selectize-input {
    border-color: #cfdcee;
}

.selectize-control .selectize-dropdown .option {
    color: var(--bento-text);
}

.selectize-control .selectize-dropdown .option.active,
.dropdown .dropdown-list > li:hover,
.dropdown-select .dropdown-list > li:hover {
    color: #fff;
    background-color: var(--bento-primary);
}

.checkbox-custom [type="checkbox"]:not(:checked) + label,
.checkbox-custom [type="checkbox"]:checked + label,
.radio-custom [type="radio"]:checked + label,
.radio-custom [type="radio"]:not(:checked) + label {
    color: var(--bento-text);
}

.checkbox-custom [type="checkbox"]:checked + label::before,
.checkbox-custom [type="checkbox"]:not(:checked) + label::before,
.radio-custom [type="radio"]:checked + label::before,
.radio-custom [type="radio"]:not(:checked) + label::before {
    border-color: #93a6c1;
}

.radio-custom [type="radio"]:checked + label::after,
.radio-custom [type="radio"]:not(:checked) + label::after {
    background-color: var(--bento-primary);
}

.header .icon:hover,
.header button:hover .icon,
.header .profile__item .btn:hover svg {
    fill: var(--bento-primary);
}

.header .user__ava {
    background-color: var(--bento-primary);
}

.table-wrap,
.ticket__body_block,
.ticket__params .params--block,
.main__content.notice-flash,
.notification,
.dropdown-list {
    border-radius: var(--bento-radius-sm) !important;
    border-color: var(--bento-border) !important;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .04);
}

.table-wrap {
    overflow-x: auto;
    background: var(--bento-surface);
}

.table tbody tr:nth-child(even) {
    background: #fafcff;
}

.table tbody tr:hover {
    background: var(--bento-primary-soft);
}

/* Admin */
.main-menu {
    background: #101828 !important;
    box-shadow: 8px 0 30px rgba(16, 24, 40, .12);
}

.navbar__header {
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}

.navbar__logo {
    font-weight: 800;
    letter-spacing: -.02em;
}

.navbar__list .listitem {
    border-radius: 10px;
    margin: 3px 8px;
    overflow: hidden;
}

.navbar__list .listitem.current,
.navbar__list .listitem:hover {
    background: rgba(255, 255, 255, .1) !important;
}

.navbar__list .listitem.menu-locked {
    position: relative;
    opacity: .64;
}

.navbar__list .listitem.menu-locked::after {
    margin-right: 10px;
    padding: 2px 6px;
    color: rgba(255, 255, 255, .72);
    content: "ล็อก";
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.navbar__list .listitem.menu-locked a {
    cursor: pointer;
}

.navbar__list .listitem.menu-locked .submenu__list {
    display: none !important;
}

.navbar__list .submenu__list {
    margin: 5px 8px 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05) !important;
}

.navbar__list .submenu__listitem {
    margin: 2px 0;
    border-radius: 8px;
}

.navbar__list .submenu__listitem a {
    display: block;
    padding: 8px 10px !important;
    color: rgba(255, 255, 255, .68) !important;
    line-height: 1.35;
    border-radius: 8px;
}

.navbar__list .submenu__listitem.current,
.navbar__list .submenu__listitem:hover {
    background: rgba(255, 255, 255, .1);
}

.navbar__list .submenu__listitem.current a,
.navbar__list .submenu__listitem:hover a {
    color: #fff !important;
}

.main-menu .navbar {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.navbar__menu-wrap {
    flex: 1 1 auto;
}

@media screen and (min-width: 900px) {
    .main-menu {
        position: sticky;
        top: 0;
        height: 100vh;
        align-self: flex-start;
    }

    .main-menu .navbar {
        height: 100%;
        min-height: 100%;
    }

    .main-menu .navbar__menu-wrap {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

.sidebar-account {
    position: relative;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-account__trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 9px;
    color: rgba(255, 255, 255, .86);
    text-align: left;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.sidebar-account__trigger:hover,
.sidebar-account.active .sidebar-account__trigger {
    background: rgba(255, 255, 255, .15);
}

.sidebar-account .user__ava {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    background: var(--bento-primary);
}

.footer--surindr {
    padding: 18px 16px 4px;
    color: var(--bento-muted);
    font-size: 13px;
}

.main > .footer:not(.footer--surindr) {
    display: none;
}

.footer--surindr p {
    margin: 0;
}

.sidebar-account__identity {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-account__identity strong,
.sidebar-account__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account__identity strong {
    font-size: 13px;
    font-weight: 700;
}

.sidebar-account__identity small {
    color: rgba(255, 255, 255, .56);
    font-size: 11px;
}

.sidebar-account .icon-chevron-down {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    fill: currentColor;
    transition: transform 150ms ease;
}

.sidebar-account.active .icon-chevron-down {
    transform: rotate(180deg);
}

.sidebar-account .profile__menu {
    position: absolute;
    right: 12px;
    bottom: calc(100% + 8px);
    left: 12px;
    z-index: 30;
    display: none;
    overflow: hidden;
    border: 1px solid var(--bento-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--bento-shadow);
}

.sidebar-account .profile--view {
    padding: 12px;
}

.sidebar-account .profile--view .btn {
    width: 100%;
}

.sidebar-account .profile--logout {
    border-top: 1px solid var(--bento-border);
}

.sidebar-account .profile--logout a {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b42318;
    text-decoration: none;
}

.sidebar-account .profile--logout a:hover {
    background: #fef3f2;
}

.sidebar-account .profile--logout .icon-log-out {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.main__content {
    max-width: 1560px;
}

.main__content.tickets,
.main__content.categories,
.main__content.team,
.main__content.settings,
.main__content.tools,
.main__content.templates,
.main__content.reports,
.main__content.profile,
.main__content.emails,
.main__content.ticket {
    background: var(--bento-surface);
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius);
    box-shadow: var(--bento-shadow);
}

.main__content.knowledge {
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius);
    background: var(--bento-surface);
    box-shadow: var(--bento-shadow);
}

.main__content.knowledge:not(.article) {
    padding: 22px;
}

.main__content.knowledge:not(.article) > h3,
.main__content.knowledge .knowledge__head h2,
.main__content.knowledge .article__body > h2 {
    color: var(--bento-text);
    font-weight: 800;
    letter-spacing: -.03em;
}

.main__content.knowledge .knowledge__tabs_tab {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.main__content.knowledge .knowledge__list {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bento-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.main__content.knowledge .knowledge__list:hover {
    border-color: #d0d5dd;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .08);
    transform: translateY(-2px);
}

.main__content.knowledge .knowledge__list .item--head {
    padding: 15px 16px 12px;
    border-bottom: 1px solid var(--bento-border);
    background: #fafcff;
}

.main__content.knowledge .knowledge__list .item--head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--bento-text);
    font-size: 16px;
    font-weight: 750;
}

.main__content.knowledge .knowledge__list .item--head .icon {
    fill: var(--bento-muted) !important;
}

.main__content.knowledge .knowledge__list .item--list {
    padding: 10px 16px 14px;
}

.main__content.knowledge .knowledge__list .item--list li {
    padding: 6px 0;
}

.main__content.knowledge .knowledge__list .item--list a {
    color: var(--bento-text);
    text-decoration: none;
}

.main__content.knowledge .knowledge__list .item--list a:hover {
    color: var(--bento-primary);
    text-decoration: underline;
}

.main__content.knowledge.article {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.main__content.knowledge.article .article__detalies {
    border-right: 1px solid var(--bento-border);
    background: #fafcff;
}

.main__content.knowledge.article .article__detalies_head {
    border-bottom-color: var(--bento-border);
}

.main__content.knowledge.article .article__detalies_list li {
    border-bottom-color: var(--bento-border);
}

.main__content.knowledge.article .article__body {
    min-width: 0;
    padding: 28px;
}

.main__content.knowledge.article .article__description {
    color: var(--bento-text);
    line-height: 1.8;
}

.main__content.knowledge.article .article__related {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--bento-border);
    border-radius: 12px;
    background: #fafcff;
}

.main__content.knowledge + .table-wrap {
    padding: 20px 22px;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius);
    background: var(--bento-surface);
    box-shadow: var(--bento-shadow);
}

.main__content.knowledge + .table-wrap > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--bento-border);
}

.main__content.knowledge + .table-wrap > div:last-child {
    border-bottom: 0;
}

/* Table with Actions: departments and staff */
.main__content.categories,
.main__content.team {
    padding: 0 !important;
    overflow: hidden;
}

.main__content.categories .categories__head,
.main__content.team .team__head {
    margin: 0 !important;
    padding: 20px 22px;
    border-bottom: 1px solid var(--bento-border);
    background: #fff;
}

.main__content.categories .categories__head h2,
.main__content.team .team__head h2 {
    margin: 0;
    padding-left: 0 !important;
    font-size: 20px !important;
}

.main__content.categories .categories__head .btn,
.main__content.team .team__head .btn {
    min-width: 0;
    border-radius: 10px;
}

.main__content.categories .table-wrap,
.main__content.team .table-wrap {
    margin: 0 !important;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
}

.main__content.categories .table-wrap > .table,
.main__content.team .table-wrap > .table {
    overflow: visible;
}

.main__content.categories table,
.main__content.team table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.main__content.categories thead,
.main__content.team thead {
    background: #fafcff;
}

.main__content.categories thead th,
.main__content.team thead th {
    padding: 12px 14px;
    color: var(--bento-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid var(--bento-border);
}

.main__content.categories tbody tr,
.main__content.team tbody tr,
.main__content.categories tbody tr:nth-child(even),
.main__content.team tbody tr:nth-child(even) {
    background: #fff;
}

.main__content.categories tbody tr:hover,
.main__content.team tbody tr:hover {
    background: #fafcff;
}

.main__content.categories tbody td,
.main__content.team tbody td {
    padding: 14px !important;
    color: var(--bento-text);
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid var(--bento-border);
    vertical-align: middle;
}

.main__content.categories tbody tr:last-child td,
.main__content.team tbody tr:last-child td {
    border-bottom: 0;
}

.main__content.categories .category-name,
.main__content.team tbody td:first-child {
    color: var(--bento-text);
    font-weight: 700;
}

.main__content.categories [class^="priority"] {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #344054;
    font-size: 12px;
    font-weight: 650;
    background: #f2f4f7;
}

.main__content.categories .priority0 {
    color: #b42318;
    background: #fef3f2;
}

.main__content.categories .priority1 {
    color: #b54708;
    background: #fffaeb;
}

.main__content.categories .priority3 {
    color: #027a48;
    background: #ecfdf3;
}

.main__content.categories .generate,
.main__content.team .buttons {
    white-space: nowrap;
}

.main__content.categories .generate a,
.main__content.team .buttons p a {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center;
    justify-content: center;
    margin: 1px;
    border: 1px solid var(--bento-border);
    border-radius: 8px;
    background: #fff;
}

.main__content.categories .generate a:hover,
.main__content.team .buttons p a:hover {
    border-color: #d0d5dd;
    background: #f9fafb;
}

.main__content.categories .generate a svg,
.main__content.team .buttons p a svg {
    width: 15px !important;
    height: 15px !important;
    fill: #667085 !important;
}

.main__content.team .buttons,
.main__content.team .buttons p {
    width: auto !important;
}

.main__content.team .buttons p {
    gap: 4px;
    justify-content: flex-end !important;
    margin: 0;
}

/* Reports */
.main__content.reports {
    padding: 0 !important;
    overflow: hidden;
}

.main__content.reports > h2,
.main__content.reports .reports__head {
    margin: 0 !important;
    padding: 20px 22px !important;
    border-bottom: 1px solid var(--bento-border);
    background: #fff;
}

.main__content.reports > h2,
.main__content.reports .reports__head h2 {
    color: var(--bento-text);
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -.03em;
}

.main__content.reports form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 !important;
    padding: 18px 22px 6px;
}

.main__content.reports .reports__range,
.main__content.reports .reports__type,
.main__content.reports .reports__checkbox {
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid var(--bento-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.main__content.reports .reports__range {
    width: 100%;
    align-items: flex-start;
    gap: 18px;
}

.main__content.reports .reports__range h4,
.main__content.reports .reports__type h4,
.main__content.reports .reports__checkbox h3 {
    margin: 0 0 12px !important;
    color: var(--bento-text);
    font-size: 13px;
    font-weight: 750;
}

.main__content.reports .reports__range_form,
.main__content.reports .reports__type .dropdown-select {
    margin-left: 0 !important;
}

.main__content.reports .reports__range .radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.main__content.reports .reports__range .radio-custom {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
}

.main__content.reports .reports__type {
    display: flex;
    min-width: min(100%, 260px);
    align-items: center;
    gap: 12px;
}

.main__content.reports .reports__checkbox {
    flex: 1 1 240px;
}

.main__content.reports .reports__checkbox .checkbox-custom,
.main__content.reports .reports__checkbox .radio-custom {
    margin-bottom: 9px;
}

.main__content.reports .reports__checkbox .checkbox-custom label {
    color: #475467;
}

.main__content.reports .reports__checkbox .checkbox-custom input:checked + label {
    color: var(--bento-primary);
}

.main__content.reports .reports__export {
    width: 100%;
    margin: 0 0 14px !important;
}

.main__content.reports .reports__export .btn,
.main__content.reports .reports__type .btn {
    min-width: 156px;
    border-radius: 10px;
}

.main__content.reports > h2[style] {
    margin: 18px 22px 0 !important;
    padding: 0 !important;
    border-bottom: 0;
    background: transparent;
}

.main__content.reports .reports__table {
    margin: 14px 22px 24px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--bento-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.main__content.reports .reports__table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.main__content.reports .reports__table thead {
    background: #fafcff;
}

.main__content.reports .reports__table th,
.main__content.reports .reports__table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bento-border);
}

.main__content.reports .reports__table th {
    color: var(--bento-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
}

.main__content.reports .reports__table tbody tr:last-child td {
    border-bottom: 0;
}

.main__content.reports .reports__table tbody tr:hover {
    background: #fafcff;
}

.main__content.reports .reports__table tbody tr.total {
    background: #f9fafb;
}

.tickets__head,
.categories__head,
.team__head,
.settings__head,
.templates__head,
.tools__head,
.reports__head,
.profile__head,
.emails__head {
    border-bottom-color: var(--bento-border) !important;
}

.tickets__head h2,
.categories__head h2,
.team__head h2,
.settings__head h2,
.templates__head h2,
.tools__head h2,
.reports__head h2,
.profile__head h2,
.emails__head h2 {
    color: var(--bento-text) !important;
    font-weight: 800 !important;
    letter-spacing: -.03em;
}

.notice-flash {
    overflow: hidden;
}

/* Customer */
.cust-help .wrapper {
    display: block;
}

.cust-help .contr {
    width: min(100% - 32px, 1120px);
    max-width: 1120px;
}

.cust-help .header {
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(228, 233, 241, .9);
    backdrop-filter: blur(16px);
}

.cust-help .header__inner {
    min-height: 72px;
}

.cust-help .header__logo {
    color: var(--bento-text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.cust-help .breadcrumbs {
    background: transparent;
}

.cust-help .breadcrumbs__inner {
    color: var(--bento-muted);
    font-size: 13px;
}

.cust-help .main__content {
    background: transparent;
    max-width: none;
    padding-top: 20px;
}

.cust-help .help-search {
    margin: 20px 0;
    padding: clamp(22px, 4vw, 40px);
    border-radius: var(--bento-radius);
    background: linear-gradient(135deg, #22314f, #1e3a8a 70%, #3f5680);
    box-shadow: 0 18px 44px rgba(24, 24, 27, .16);
}

.cust-help .search__title {
    color: #fff;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.cust-help .form__search {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .12);
}

.cust-help .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.cust-help .navlink {
    min-height: 108px;
    margin: 0;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius);
    background: var(--bento-surface);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.cust-help .navlink:hover {
    border-color: #cfdcee;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .09);
    transform: translateY(-3px);
}

.cust-help .navlink__title {
    color: var(--bento-text);
    font-weight: 800;
}

.cust-help .navlink__descr,
.cust-help .lightgrey {
    color: var(--bento-muted);
}

.cust-help .icon-in-circle {
    background: var(--bento-primary-soft);
}

.cust-help .navlink .icon-in-circle .icon,
.cust-help .preview .icon-in-circle .icon {
    fill: var(--bento-primary);
}

.cust-help .article,
.cust-help .form-submit-ticket,
.cust-help .ticket__body_block,
.cust-help .ticket__params .params--block,
.cust-help .main__content.notice-flash {
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius);
    background: var(--bento-surface);
    box-shadow: var(--bento-shadow);
}

.cust-help .article {
    overflow: hidden;
}

.cust-help .article__heading,
.cust-help .block__head {
    color: var(--bento-text);
    font-weight: 800;
}

.cust-help .preview {
    border-color: var(--bento-border);
}

.cust-help .preview:hover {
    background: var(--bento-primary-soft);
}

.cust-help .preview__title {
    color: var(--bento-text);
    font-weight: 700;
}

.cust-help .form-submit-ticket {
    padding: clamp(18px, 4vw, 32px);
}

.cust-help .form-footer {
    border-top-color: var(--bento-border);
}

.cust-help .ticket {
    gap: 16px;
}

.cust-help .ticket__body_block,
.cust-help .ticket__params .params--block {
    overflow: hidden;
}

.cust-help .ticket__body_block.response {
    border-left: 4px solid var(--bento-primary);
}

.cust-help .footer {
    color: var(--bento-muted);
}

@media screen and (max-width: 899px) {
    .main-menu {
        box-shadow: none;
    }

    .main__content.tickets,
    .main__content.categories,
    .main__content.team,
    .main__content.settings,
    .main__content.tools,
    .main__content.templates,
    .main__content.reports,
    .main__content.profile,
    .main__content.emails,
    .main__content.ticket {
        border-radius: 14px;
    }

    .cust-help .contr {
        width: min(100% - 24px, 760px);
    }

    .cust-help .header__inner {
        min-height: 64px;
    }

    .cust-help .ticket {
        display: block;
    }

    .cust-help .ticket__params {
        margin-top: 16px;
    }
}

/* Admin dashboard: blocks.so Table with Actions treatment */
.tickets--table-actions {
    padding: 20px !important;
}

.tickets--table-actions .quick-links {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--bento-border);
    border-radius: 12px;
    background: #fff;
}

.tickets--table-actions .filters__listing {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tickets--table-actions .filters__listing .btn {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #eaecf0;
    border-radius: 8px !important;
    color: #475467;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
}

.tickets--table-actions .filters__listing .btn:hover {
    color: var(--bento-primary);
    border-color: #cfdcee;
    background: var(--bento-primary-soft);
}

.tickets--table-actions .filters__listing .btn.is-selected {
    color: var(--bento-primary);
    border-color: #cfdcee;
    background: var(--bento-primary-soft);
}

.tickets--table-actions .filters__btn-value {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    color: #344054;
    background: #f2f4f7;
    font-size: 11px;
}

.tickets--table-actions .auto-reload {
    flex: 0 0 auto;
    margin-top: 7px;
    color: #667085;
    font-size: 12px;
}

.tickets--table-actions .table-wrap {
    margin-top: 0;
    padding: 0;
    overflow-x: auto;
    border: 1px solid var(--bento-border);
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.tickets--table-actions .ticket-list {
    min-width: 920px;
    color: #344054;
    font-size: 13px;
}

.tickets--table-actions .ticket-list thead {
    height: 44px;
    color: #667085;
    background: #f9fafb;
    font-size: 11px;
    letter-spacing: .02em;
    text-transform: none;
}

.tickets--table-actions .ticket-list thead th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bento-border);
}

.tickets--table-actions .ticket-list thead th:not(:first-child) {
    border-left: 0;
}

.tickets--table-actions .ticket-list thead th.table__first_th {
    width: 42px;
    padding: 12px 0 12px 14px;
}

.tickets--table-actions .ticket-list thead .sort {
    height: auto;
    color: #667085;
    font-weight: 700;
}

.tickets--table-actions .ticket-list thead .sort:hover {
    color: var(--bento-primary);
}

.tickets--table-actions .ticket-list thead th .handle::before {
    border-bottom-color: #98a2b3;
}

.tickets--table-actions .ticket-list thead th .handle::after {
    border-top-color: #98a2b3;
}

.tickets--table-actions .ticket-list tbody tr,
.tickets--table-actions .ticket-list tbody tr:nth-child(even) {
    color: #344054;
    border-bottom: 1px solid #eaecf0;
    background: #fff;
}

.tickets--table-actions .ticket-list tbody tr:last-child {
    border-bottom: 0;
}

.tickets--table-actions .ticket-list tbody tr:hover {
    background: #f9fafb !important;
}

.tickets--table-actions .ticket-list tbody tr.is-checked {
    background: var(--bento-primary-soft) !important;
}

.tickets--table-actions .ticket-list tbody td {
    padding: 14px;
    border-left: 0;
    vertical-align: middle;
}

.tickets--table-actions .ticket-list tbody tr .table__first_th {
    width: 42px;
    padding: 14px 0 14px 14px;
    vertical-align: middle;
}

.tickets--table-actions .ticket-list tbody .trackid .link,
.tickets--table-actions .ticket-list tbody .subject .link,
.tickets--table-actions .ticket-list tbody td > a {
    color: var(--bento-primary);
    font-weight: 600;
}

.tickets--table-actions .ticket-list tbody .subject {
    min-width: 220px;
}

.tickets--table-actions .ticket-list tbody .dropdown.priority {
    min-width: 0;
}

.tickets--table-actions .ticket-list tbody .dropdown.priority .label {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.tickets--table-actions .ticket-list tbody .dropdown.priority[data-value="low"] .label {
    color: #344054;
    background: #f2f4f7;
}

.tickets--table-actions .ticket-list tbody .dropdown.priority[data-value="medium"] .label {
    color: #b54708;
    background: #fffaeb;
}

.tickets--table-actions .ticket-list tbody .dropdown.priority[data-value="high"] .label {
    color: #c4320a;
    background: #fff6ed;
}

.tickets--table-actions .ticket-list tbody .dropdown.priority[data-value="critical"] .label {
    color: #b42318;
    background: #fef3f2;
}

.tickets--table-actions .pagination-wrap {
    margin-top: 14px;
    padding: 0 2px;
}

.tickets--table-actions .pagination__link,
.tickets--table-actions .pagination__nav-btn {
    border-radius: 8px !important;
}

.tickets--table-actions .tickets__legend {
    gap: 20px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--bento-border);
    border-radius: 12px;
    color: #667085;
    background: #f9fafb;
    font-size: 12px;
}

.tickets--table-actions .tickets__legend .bulk-actions {
    display: grid;
    gap: 8px;
    min-width: min(100%, 520px);
    color: #344054;
}

.tickets--table-actions .bulk-actions__group {
    display: grid;
    grid-template-columns: minmax(142px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #dde7f5;
    border-radius: 10px;
    background: #fff;
}

.tickets--table-actions .bulk-actions__title,
.tickets--table-actions .bulk-actions__controls {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.tickets--table-actions .bulk-actions__title {
    color: #51648c;
    font-size: 12px;
    font-weight: 800;
}

.tickets--table-actions .bulk-actions__title .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: #7286a3;
}

.tickets--table-actions .bulk-actions__controls {
    justify-content: flex-end;
}

.tickets--table-actions .bulk-actions__controls .inline-bottom,
.tickets--table-actions .bulk-actions__controls .selectize-control {
    min-width: 180px;
    flex: 1 1 auto;
}

.tickets--table-actions .tickets__legend .btn-full {
    min-width: 106px;
    height: 38px;
    border-radius: 8px !important;
}

@media screen and (max-width: 899px) {
    .tickets--table-actions {
        padding: 12px !important;
    }

    .tickets--table-actions .quick-links {
        display: block;
        padding: 10px;
    }

    .tickets--table-actions .auto-reload {
        margin-top: 10px;
    }

    .tickets--table-actions .tickets__legend {
        display: block;
    }

    .tickets--table-actions .tickets__legend .bulk-actions {
        margin-top: 14px;
        text-align: left;
    }

    .tickets--table-actions .bulk-actions__group {
        grid-template-columns: 1fr;
    }

    .tickets--table-actions .bulk-actions__controls {
        justify-content: stretch;
    }
}

@media screen and (max-width: 599px) {
    .cust-help .contr {
        width: min(100% - 16px, 560px);
    }

    .cust-help .header__logo {
        font-size: 17px;
    }

    .cust-help .main__content {
        padding-top: 10px;
    }

    .cust-help .nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cust-help .navlink {
        min-height: 88px;
        border-radius: 16px;
    }

    .cust-help .help-search,
    .cust-help .article,
    .cust-help .form-submit-ticket,
    .cust-help .ticket__body_block,
    .cust-help .ticket__params .params--block {
        border-radius: 16px;
    }

    .cust-help center img {
        max-width: 100%;
        height: auto;
    }
}

/* Ticket query cards: blocks.so grouped form treatment */
.ticket-query-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 10px;
    color: var(--bento-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.ticket-query-title::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border: 2px solid #93a6c1;
    border-radius: 3px;
    background: #fff;
    box-shadow: 3px 3px 0 #dde7f5;
}

.ticket-query-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    color: inherit;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ticket-query-toggle:hover {
    transform: none;
}

.ticket-query-toggle__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde7f5;
    border-radius: 9px;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease;
}

.ticket-query-toggle__icon:hover {
    border-color: #93a6c1;
    background: #eff4fc;
}

.ticket-query-toggle__icon .icon {
    width: 12px;
    height: 12px;
    fill: #7286a3;
    transition: transform .2s ease;
}

.ticket-query-toggle[aria-expanded="false"] .ticket-query-toggle__icon .icon {
    transform: rotate(-90deg);
}

.ticket-query-card {
    margin-bottom: 26px;
    padding: 14px;
    overflow: visible;
    border: 1px solid var(--bento-border);
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 24, 27, .045);
}

.ticket-query-form > .search-option,
.ticket-query-advanced > .search-option {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--bento-border);
    border-radius: 12px;
    background: #fafcff;
}

.ticket-query-form > .search-option + .search-option {
    margin-top: 10px;
}

.ticket-query-form .search-name {
    width: auto;
    margin: 0 0 10px;
    color: var(--bento-text);
    font-size: 13px;
    font-weight: 800;
}

.ticket-query-form .search-name .plain_link,
.ticket-query-form .search-name > a {
    display: inline-flex;
    margin: 7px 5px 0 0;
    padding: 3px 7px;
    color: var(--bento-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    border: 1px solid #dde7f5;
    border-radius: 999px;
    background: #fff;
}

.ticket-query-form .search-name br {
    display: none;
}

.ticket-query-form .search-name .plain_link:hover,
.ticket-query-form .search-name > a:hover {
    color: var(--bento-primary);
    border-color: #93a6c1;
}

.ticket-query-form .search-options,
.ticket-query-form .checkbox-list,
.ticket-query-form .radio-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.ticket-query-form .checkbox-custom,
.ticket-query-form .radio-custom {
    min-width: 0;
    margin-top: 0;
}

.ticket-query-form input.form-control,
.ticket-query-form select {
    min-height: 40px;
}

.ticket-query-actions {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid var(--bento-border);
}

.ticket-query-actions__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-query-actions__inner .btn {
    min-height: 40px;
    margin-right: 0 !important;
}

.ticket-query-actions__inner .btn--blue-border {
    color: #51648c !important;
    border-color: #cfdcee !important;
    background: #fff !important;
}

.ticket-query-actions__inner .btn--blue-border:hover {
    color: #22314f !important;
    border-color: #93a6c1 !important;
    background: #fafcff !important;
}

.ticket-query-advanced {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #dde7f5;
    border-radius: 14px;
    background: #eff4fc;
}

.ticket-query-advanced:not([style*="display:none"]):not([style*="display: none"]) {
    display: grid !important;
}

.ticket-query-advanced::before {
    content: attr(data-title);
    grid-column: 1 / -1;
    color: var(--bento-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ticket-query-advanced > .ticket-query-actions {
    grid-column: 1 / -1;
}

.ticket-query-card--search > .ticket-query-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ticket-query-card--search .ticket-query-form > .search-option + .search-option {
    margin-top: 0;
}

.ticket-query-card--search > .ticket-query-form > .search-option > .search-options > input.form-control,
.ticket-query-card--search > .ticket-query-form > .search-option > .search-options > select {
    width: 100%;
}

.ticket-query-card--search .ticket-query-form > .ticket-query-actions,
.ticket-query-card--search .ticket-query-form > .ticket-query-advanced {
    grid-column: 1 / -1;
}

@media screen and (max-width: 899px) {
    .ticket-query-card {
        padding: 10px;
    }

    .ticket-query-advanced,
    .ticket-query-card--search > .ticket-query-form {
        grid-template-columns: 1fr;
    }

    .ticket-query-card--search .ticket-query-form > .ticket-query-actions,
    .ticket-query-card--search .ticket-query-form > .ticket-query-advanced {
        grid-column: auto;
    }

    .ticket-query-advanced > .ticket-query-actions,
    .ticket-query-advanced::before {
        grid-column: 1;
    }
}

@media screen and (max-width: 599px) {
    .ticket-query-title {
        margin-top: 18px;
        font-size: 16px;
    }

    .ticket-query-form > .search-option,
    .ticket-query-advanced > .search-option {
        padding: 12px;
    }

    .ticket-query-form .search-options,
    .ticket-query-form .checkbox-list,
    .ticket-query-form .radio-list {
        display: block;
    }

    .ticket-query-form .checkbox-custom,
    .ticket-query-form .radio-custom {
        margin-top: 9px;
    }

    .ticket-query-actions__inner,
    .ticket-query-actions__inner .btn {
        width: 100%;
    }
}

/* All admin pages: blocks.so Sidebar Replacement treatment */
.main-menu.sidebar--replacement {
    background: #fff !important;
    color: #475467;
    border-right: 1px solid var(--bento-border);
    box-shadow: 4px 0 18px rgba(16, 24, 40, .035);
}

.sidebar--replacement .navbar__header {
    height: 72px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--bento-border) !important;
}

.sidebar--replacement .navbar__toggler {
    width: 56px;
    height: 44px;
    color: #667085;
    border-radius: 10px !important;
}

.sidebar--replacement .navbar__toggler:hover {
    color: var(--bento-primary);
    background: var(--bento-primary-soft);
}

.sidebar--replacement .navbar__toggler .icon {
    width: 19px;
}

.sidebar--replacement .navbar__logo {
    color: #101828;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.sidebar--replacement .navbar__list {
    padding: 12px 8px 20px;
}

.sidebar--replacement .sidebar-account {
    border-top-color: var(--bento-border);
}

.sidebar--replacement .sidebar-account__trigger {
    color: #344054;
    background: #f9fafb;
}

.sidebar--replacement .sidebar-account__trigger:hover,
.sidebar--replacement .sidebar-account.active .sidebar-account__trigger {
    background: var(--bento-primary-soft);
}

.sidebar--replacement .sidebar-account__identity small {
    color: #667085;
}

.sidebar--replacement .navbar__list .listitem {
    margin: 2px 0 4px;
    color: #475467;
    border: 1px solid transparent;
    border-radius: 10px;
    overflow: visible;
}

.sidebar--replacement .navbar__list .listitem:hover {
    color: #344054;
    border-color: #eaecf0;
    background: #f9fafb !important;
}

.sidebar--replacement .navbar__list .listitem.current,
.sidebar--replacement .navbar__list .listitem.submenu-is-opened {
    color: var(--bento-primary);
    border-color: #dde7f5;
    background: var(--bento-primary-soft) !important;
}

.sidebar--replacement .navbar__list .listitem.current .listitem__icon,
.sidebar--replacement .navbar__list .listitem.current .listitem__menu > a,
.sidebar--replacement .navbar__list .listitem.submenu-is-opened .listitem__icon,
.sidebar--replacement .navbar__list .listitem.submenu-is-opened .listitem__menu > a {
    color: var(--bento-primary);
}

.sidebar--replacement .navbar__list li.separator {
    margin: 10px 4px;
    background: #eaecf0;
    opacity: 1;
}

.sidebar--replacement .listitem__icon {
    width: 52px;
}

.sidebar--replacement .listitem__icon,
.sidebar--replacement .listitem__icon a,
.sidebar--replacement .listitem__caption {
    height: 44px;
}

.sidebar--replacement .listitem__icon .icon {
    width: 19px;
    height: 19px;
}

.sidebar--replacement .listitem__menu {
    width: 180px;
}

.sidebar--replacement .listitem__caption {
    padding-right: 30px;
    font-size: 13px;
    font-weight: 600;
}

.sidebar--replacement .listitem.submenu::after {
    right: 14px;
    top: 20px;
}

.sidebar--replacement .submenu__list {
    position: relative !important;
    left: 0 !important;
    width: auto !important;
    margin: 2px 8px 8px;
    padding: 6px !important;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05) !important;
}

.sidebar--replacement .submenu__listitem {
    height: auto;
    min-height: 36px;
    padding-left: 0;
    font-size: 12px;
    color: #475467;
}

.sidebar--replacement .submenu__listitem::before,
.sidebar--replacement .navbar__list li .submenu__list .submenu__listitem.current::before {
    display: none;
}

.sidebar--replacement .submenu__listitem:hover,
.sidebar--replacement .submenu__listitem.current {
    color: var(--bento-primary);
    border-radius: 8px;
    background: #eff4fc;
}

.sidebar--replacement .submenu__listitem a,
.sidebar--replacement .submenu__listitem.current a,
.sidebar--replacement .submenu__listitem:hover a {
    color: inherit !important;
}

@media screen and (min-width: 900px) {
    .main-menu.is-toggled .sidebar-account {
        padding: 10px 8px;
    }

    .main-menu.is-toggled .sidebar-account__trigger {
        justify-content: center;
        padding: 8px 0;
    }

    .main-menu.is-toggled .sidebar-account__identity,
    .main-menu.is-toggled .sidebar-account__trigger > .icon-chevron-down {
        display: none;
    }

    .main-menu.is-toggled .sidebar-account .profile__menu {
        right: auto;
        bottom: 8px;
        left: calc(100% + 8px);
        width: 200px;
    }

    .main-menu.sidebar--replacement.is-toggled .navbar__toggler {
        color: var(--bento-primary);
    }

    .main-menu.sidebar--replacement.is-toggled .listitem {
        width: 52px;
    }

    .main-menu.sidebar--replacement.is-toggled .listitem__menu {
        left: 52px;
        padding: 4px;
        border: 1px solid var(--bento-border);
        border-radius: 10px;
        background: #fff;
        box-shadow: var(--bento-shadow);
    }

    .main-menu.sidebar--replacement.is-toggled .listitem:hover .listitem__menu {
        width: 210px;
    }

    .main-menu.sidebar--replacement.is-toggled .listitem__menu .listitem__caption,
    .main-menu.sidebar--replacement.is-toggled .listitem__menu .submenu__listitem {
        padding-left: 12px;
    }

    .main-menu.sidebar--replacement.is-toggled .submenu__list {
        margin: 0;
        padding: 4px 0 !important;
        border-left: 0;
        background: #fafcff !important;
    }

    .main-menu.sidebar--replacement.is-toggled .submenu__listitem a {
        color: #475467 !important;
    }

    .main-menu.sidebar--replacement.is-toggled .submenu__listitem:hover a,
    .main-menu.sidebar--replacement.is-toggled .submenu__listitem.current a {
        color: var(--bento-primary) !important;
    }
}

@media screen and (max-width: 899px) {
    .main-menu .navbar {
        min-height: 100%;
    }

    .main-menu.sidebar--replacement {
        background: #fff !important;
    }

    .sidebar--replacement .navbar__list {
        padding-top: 4px;
    }
}

/* System-wide responsive guardrails */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

.main,
.main__content,
.ticket__body,
.ticket__params,
.article,
.form,
.table-wrap,
.table-wrapper {
    min-width: 0;
    max-width: 100%;
}

.browser-default,
.browser-default p,
.browser-default a,
.browser-default td,
.browser-default th,
.ticket__body_block,
.notification {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media screen and (max-width: 899px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .wrapper,
    .main {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
    }

    .main__content,
    .main__content.tickets,
    .main__content.categories,
    .main__content.team,
    .main__content.settings,
    .main__content.tools,
    .main__content.templates,
    .main__content.reports,
    .main__content.profile,
    .main__content.emails,
    .main__content.ticket,
    .main__content.knowledge {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-right: 8px;
        margin-left: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .table-wrap,
    .table-wrapper,
    .overflow-x-scroll,
    .main__content.tools .table-wrapper {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }

    .table,
    .table-wrap table,
    .table-wrapper table,
    .browser-default table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
    }

    .table th,
    .table td,
    .table-wrap th,
    .table-wrap td,
    .table-wrapper th,
    .table-wrapper td,
    .browser-default th,
    .browser-default td {
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .header__right,
    .tickets__head,
    .categories__head,
    .team__head,
    .settings__head,
    .templates__head,
    .tools__head,
    .reports__head,
    .profile__head,
    .emails__head,
    .knowledge__head,
    .form__submit,
    .form-footer,
    .modal__buttons,
    .tickets__legend,
    .bulk-actions,
    .search-option,
    .checkbox-list,
    .radio-list {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .form-group,
    .form-control,
    .selectize-control,
    .selectize-input,
    .dropdown-select,
    .dropdown,
    .attachments,
    .dropzone,
    textarea,
    input,
    select {
        max-width: 100% !important;
    }

    .dropdown-list,
    .selectize-dropdown,
    .table tbody .dropdown.assignment .dropdown-list li .assign__wrapper,
    .table tbody .dropdown.assignment .dropdown-list li .assign__body > li {
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
    }

    .dropdown-list {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .flex > *,
    [style*="display: flex"] > *,
    [style*="display:flex"] > * {
        min-width: 0;
        max-width: 100%;
    }

    .modal .modal__body,
    .delete-modal > .modal__body {
        width: min(100% - 24px, 560px) !important;
        min-width: 0 !important;
        max-width: calc(100% - 24px) !important;
        padding: 20px 16px;
    }

    .right-bar,
    .right-bar .right-bar__body,
    .right-bar .right-bar__footer,
    .right-bar.service-message-create .right-bar__body,
    .right-bar.service-message-create .right-bar__footer,
    .right-bar.tools-email-template-edit .right-bar__footer,
    .right-bar.create-custom-field .right-bar__footer,
    .right-bar.create-status .right-bar__footer {
        width: 100% !important;
        max-width: 100% !important;
    }

    .right-bar .right-bar__body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .right-bar .right-bar__footer {
        gap: 8px;
        padding-right: 16px;
        padding-left: 16px;
        flex-wrap: wrap;
    }

    .main__content.tools .tools__between-head,
    .main__content.tools .tools__between-head.wider,
    .main__content.tools .tools__add-mail .form-group input {
        width: 100% !important;
        max-width: 100%;
    }

    .datepicker {
        width: min(368px, calc(100vw - 24px)) !important;
    }

    .tooltype .tooltype__content {
        width: min(260px, calc(100vw - 24px));
    }

    .notification-flash,
    .notification-bar,
    .reports canvas {
        max-width: 100% !important;
    }

    .pagination,
    .pagination__list {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 4px;
    }

    .navbar__list ul.submenu__list,
    .sidebar--replacement .submenu__list {
        left: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        margin-right: 8px !important;
        margin-left: 0 !important;
        padding-left: 10px !important;
    }

    .cust-help .wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .cust-help .main__content {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .cust-help .preview,
    .cust-help .article__heading a,
    .cust-help .ticket__body_block .block--head,
    .cust-help .ticket__block-footer,
    .cust-help .form-footer {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .cust-help .ticket__body,
    .cust-help .ticket__params,
    .cust-help .ticket__body_block,
    .cust-help .ticket__params .params--block {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 599px) {
    /* Lists become readable cards instead of wide tables on phones. */
    body:not(.cust-help) .table-wrap,
    body:not(.cust-help) .table-wrapper {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body:not(.cust-help) .table,
    body:not(.cust-help) .table tbody,
    body:not(.cust-help) .table tr,
    body:not(.cust-help) .table td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    body:not(.cust-help) .table thead {
        display: none;
    }

    body:not(.cust-help) .table tbody tr {
        position: relative;
        margin-bottom: 10px;
        padding: 12px;
        border: 1px solid var(--bento-border);
        border-radius: 12px;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
    }

    body:not(.cust-help) .table tbody td,
    body:not(.cust-help) .table tbody tr .table__first_td,
    body:not(.cust-help) .table tbody tr .table__first_th {
        width: 100% !important;
        padding: 5px 0 !important;
        border: 0 !important;
    }

    body:not(.cust-help) .ticket-list tbody td:not(.ticket-card-check) {
        display: grid;
        grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }

    body:not(.cust-help) .ticket-list tbody td:not(.ticket-card-check)::before {
        color: var(--bento-muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.45;
    }

    body:not(.cust-help) .ticket-list tbody .subject {
        margin: 3px 0;
        padding: 9px 0 !important;
        border-top: 1px solid var(--bento-border) !important;
        border-bottom: 1px solid var(--bento-border) !important;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block {
        margin-bottom: 10px;
        padding: 12px !important;
    }

    body:not(.cust-help) .main__content.ticket .ticket__body_block.original-message > table tr,
    body:not(.cust-help) .main__content.ticket .ticket-extra-fields__item {
        padding: 8px 9px;
    }

    body:not(.cust-help) .main__content.ticket .ticket__params .params--block .row {
        gap: 5px;
        padding: 8px 0;
        font-size: 12px;
    }

    body:not(.cust-help) .main__content.ticket .ticket__params .params--block.params .title {
        width: 92px;
    }

    body:not(.cust-help) .main__content.ticket .ticket__params .params--block h4 {
        min-height: 42px;
        padding: 0 11px;
    }

    body:not(.cust-help) .main__content.ticket .ticket__params .params--block .accordion-body {
        padding: 2px 11px 8px;
    }

    .ticket-query-toggle {
        align-items: flex-start;
    }

    body:not(.cust-help) .table tbody tr .table__first_td,
    body:not(.cust-help) .table tbody tr .table__first_th {
        padding-bottom: 8px !important;
    }

    body:not(.cust-help) .table tbody .subject {
        min-width: 0;
        font-size: 15px;
    }

    body:not(.cust-help) .table tbody .dropdown.priority .label {
        display: inline-flex;
    }

    .tickets--table-actions .ticket-list {
        min-width: 0;
    }

    .tickets--table-actions .quick-links {
        border-radius: 10px;
    }

    .tickets--table-actions .filters__listing .btn {
        height: auto;
        min-height: 34px;
        white-space: normal;
    }

    .tickets--table-actions .tickets__legend .bulk-actions,
    .tickets--table-actions .tickets__legend .inline-bottom,
    .tickets--table-actions .tickets__legend select,
    .tickets--table-actions .tickets__legend .btn-full {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 6px 0;
    }

    .tickets--table-actions .bulk-actions__controls {
        display: block;
    }

    .show_tickets .search-option {
        display: block;
    }

    .show_tickets .search-name,
    .show_tickets .checkbox-group .row .checkbox-custom {
        width: 100%;
        min-width: 0;
    }

    .cust-help .header__inner,
    .cust-help .breadcrumbs__inner {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .cust-help .preview .rate {
        width: 100%;
        margin-top: 8px;
    }

    .main__content.knowledge:not(.article) {
        padding: 16px;
    }

    .main__content.knowledge .knowledge__tabs_tab {
        grid-template-columns: 1fr;
    }

    .main__content.knowledge.article {
        display: block;
    }

    .main__content.knowledge.article .article__detalies {
        border-right: 0;
        border-bottom: 1px solid var(--bento-border);
    }

    .main__content.knowledge.article .article__body {
        padding: 18px 16px;
    }

    .main__content.knowledge + .table-wrap {
        margin-right: 8px;
        margin-left: 8px;
        padding: 16px;
    }

    .main__content.categories,
    .main__content.team {
        padding: 0 !important;
    }

    .main__content.categories .categories__head,
    .main__content.team .team__head {
        gap: 10px;
        padding: 16px;
    }

    .main__content.categories tbody tr,
    .main__content.team tbody tr {
        margin: 10px;
        padding: 12px;
    }

    .main__content.categories tbody td,
    .main__content.team tbody td {
        padding: 5px 0 !important;
        border-bottom: 0;
    }

    .main__content.categories .generate,
    .main__content.team .buttons {
        padding-top: 10px !important;
        border-top: 1px solid var(--bento-border) !important;
    }

    .main__content.reports form {
        display: block;
        padding: 12px;
    }

    .main__content.reports .reports__range,
    .main__content.reports .reports__type,
    .main__content.reports .reports__checkbox {
        width: 100%;
        margin-bottom: 10px !important;
    }

    .main__content.reports .reports__range,
    .main__content.reports .reports__range .radio-list {
        display: block;
    }

    .main__content.reports .reports__range .radio-custom {
        margin-bottom: 10px;
    }

    .main__content.reports .reports__table {
        margin: 12px !important;
    }
}

/* Admin content polish: categories, knowledge base, and ticket creation */
body:not(.cust-help) .main__content.categories,
body:not(.cust-help) .main__content.knowledge {
    background: #f7f8fa;
}

body:not(.cust-help) .main__content.categories {
    padding: 22px !important;
    overflow: visible;
}

body:not(.cust-help) .main__content.categories .categories__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px !important;
    padding: 18px 20px;
    border: 1px solid var(--bento-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

body:not(.cust-help) .main__content.categories .categories__head h2 {
    font-size: 21px !important;
    line-height: 1.35;
}

body:not(.cust-help) .main__content.categories .categories__head .btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
}

body:not(.cust-help) .main__content.categories .table-wrap,
body:not(.cust-help) .main__content.knowledge + .table-wrap {
    margin: 0 !important;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid var(--bento-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

body:not(.cust-help) .main__content.categories table {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

body:not(.cust-help) .main__content.categories thead {
    background: #fafcff;
}

body:not(.cust-help) .main__content.categories thead th {
    padding: 14px 16px;
    color: #7286a3;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .02em;
    border-bottom: 1px solid var(--bento-border);
}

body:not(.cust-help) .main__content.categories tbody td {
    padding: 15px 16px !important;
    font-size: 14px;
    line-height: 1.65;
}

body:not(.cust-help) .main__content.categories tbody tr:hover {
    background: #fafcff;
}

body:not(.cust-help) .main__content.categories .generate {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body:not(.cust-help) .main__content.categories .generate a {
    margin: 0;
}

body:not(.cust-help) .main__content.knowledge {
    padding: 22px !important;
    border-radius: 16px;
}

body:not(.cust-help) .main__content.knowledge .knowledge__head {
    margin-bottom: 18px;
}

body:not(.cust-help) .main__content.knowledge .knowledge__head h2,
body:not(.cust-help) .main__content.knowledge:not(.article) > h3,
body:not(.cust-help) .main__content.knowledge.article .article__body > h2 {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.4;
}

body:not(.cust-help) .main__content.knowledge .knowledge__tabs_tab {
    gap: 16px;
}

body:not(.cust-help) .main__content.knowledge .knowledge__list {
    border-radius: 16px;
}

body:not(.cust-help) .main__content.knowledge .knowledge__list .item--head {
    padding: 16px 18px 13px;
}

body:not(.cust-help) .main__content.knowledge .knowledge__list .item--head h3 {
    font-size: 16px;
    line-height: 1.45;
}

body:not(.cust-help) .main__content.knowledge .knowledge__list .item--list {
    padding: 12px 18px 16px;
}

body:not(.cust-help) .main__content.knowledge .knowledge__list .item--list li {
    padding: 9px 0;
    line-height: 1.6;
}

body:not(.cust-help) .main__content.knowledge.article {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
}

body:not(.cust-help) .main__content.knowledge.article .article__detalies {
    padding: 18px;
    background: #fafcff;
}

body:not(.cust-help) .main__content.knowledge.article .article__body {
    padding: 30px;
}

body:not(.cust-help) .main__content.knowledge.article .article__description {
    line-height: 1.85;
}

body:not(.cust-help) .main__content.knowledge.article .article__related {
    margin-top: 26px;
    padding: 18px;
    border-radius: 14px;
}

body:not(.cust-help) .main__content.categories.ticket-create {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

body:not(.cust-help) .main__content.categories.ticket-create .table-wrap {
    padding: 24px;
}

body:not(.cust-help) .main__content.categories.ticket-create form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    align-items: start;
}

body:not(.cust-help) .main__content.categories.ticket-create h2,
body:not(.cust-help) .main__content.categories.ticket-create h3,
body:not(.cust-help) .main__content.categories.ticket-create h4,
body:not(.cust-help) .main__content.categories.ticket-create #customfield,
body:not(.cust-help) .main__content.categories.ticket-create #email_suggestions,
body:not(.cust-help) .main__content.categories.ticket-create .form-group:has(textarea),
body:not(.cust-help) .main__content.categories.ticket-create .form-group:has(.dropzone),
body:not(.cust-help) .main__content.categories.ticket-create .form-group:has(.btn-full),
body:not(.cust-help) .main__content.categories.ticket-create .form-group:has([type="submit"]) {
    grid-column: 1 / -1;
}

body:not(.cust-help) .main__content.categories.ticket-create #customfield {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

body:not(.cust-help) .main__content.categories.ticket-create .form-group {
    min-width: 0 !important;
    margin: 0 !important;
}

body:not(.cust-help) .main__content.categories.ticket-create label {
    margin-bottom: 8px;
    color: #3f5680;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

body:not(.cust-help) .main__content.categories.ticket-create input[type="text"],
body:not(.cust-help) .main__content.categories.ticket-create input[type="email"],
body:not(.cust-help) .main__content.categories.ticket-create input[type="tel"],
body:not(.cust-help) .main__content.categories.ticket-create input[type="url"],
body:not(.cust-help) .main__content.categories.ticket-create input[type="number"],
body:not(.cust-help) .main__content.categories.ticket-create select,
body:not(.cust-help) .main__content.categories.ticket-create textarea,
body:not(.cust-help) .main__content.categories.ticket-create .form-control,
body:not(.cust-help) .main__content.categories.ticket-create .selectize-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfdcee;
    border-radius: 10px;
    background: #fff;
    color: #1e3a8a;
    font-size: 14px;
    box-shadow: none;
}

body:not(.cust-help) .main__content.categories.ticket-create textarea {
    min-height: 160px;
    padding: 12px 14px;
    line-height: 1.65;
    resize: vertical;
}

body:not(.cust-help) .main__content.categories.ticket-create input:focus,
body:not(.cust-help) .main__content.categories.ticket-create select:focus,
body:not(.cust-help) .main__content.categories.ticket-create textarea:focus,
body:not(.cust-help) .main__content.categories.ticket-create .selectize-input.focus {
    border-color: #22314f;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, .1);
}

body:not(.cust-help) .main__content.categories.ticket-create .dropdown-select,
body:not(.cust-help) .main__content.categories.ticket-create .dropdown-select select {
    width: 100%;
}

body:not(.cust-help) .main__content.categories.ticket-create .radio-list,
body:not(.cust-help) .main__content.categories.ticket-create .checkbox-list,
body:not(.cust-help) .main__content.categories.ticket-create .block--attach {
    padding: 14px;
    border: 1px solid var(--bento-border);
    border-radius: 12px;
    background: #fafcff;
}

body:not(.cust-help) .main__content.categories.ticket-create .dropzone {
    border: 1px dashed #93a6c1;
    border-radius: 12px;
    background: #fafcff;
}

body:not(.cust-help) .main__content.categories.ticket-create .btn-full,
body:not(.cust-help) .main__content.categories.ticket-create button[type="submit"],
body:not(.cust-help) .main__content.categories.ticket-create input[type="submit"] {
    width: auto;
    min-width: 180px;
    min-height: 44px;
    border-radius: 10px;
}

@media screen and (max-width: 899px) {
    body:not(.cust-help) .main__content.categories,
    body:not(.cust-help) .main__content.knowledge {
        padding: 14px !important;
    }

    body:not(.cust-help) .main__content.categories .categories__head {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    body:not(.cust-help) .main__content.categories .table-wrap,
    body:not(.cust-help) .main__content.knowledge + .table-wrap,
    body:not(.cust-help) .main__content.categories.ticket-create .table-wrap {
        padding: 14px;
        border-radius: 14px;
    }

    body:not(.cust-help) .main__content.categories.ticket-create form,
    body:not(.cust-help) .main__content.categories.ticket-create #customfield {
        grid-template-columns: 1fr;
    }

    body:not(.cust-help) .main__content.knowledge.article {
        display: block;
    }

    body:not(.cust-help) .main__content.knowledge.article .article__detalies {
        border-right: 0;
        border-bottom: 1px solid var(--bento-border);
    }

    body:not(.cust-help) .main__content.knowledge.article .article__body {
        padding: 20px;
    }
}

@media screen and (max-width: 599px) {
    body:not(.cust-help) .main__content.categories table {
        min-width: 0;
    }

    body:not(.cust-help) .main__content.categories tbody tr {
        margin: 10px 0;
        padding: 12px;
    }

    body:not(.cust-help) .main__content.categories tbody td {
        padding: 6px 0 !important;
        border-bottom: 0;
    }

    body:not(.cust-help) .main__content.categories .generate {
        padding-top: 10px !important;
        border-top: 1px solid var(--bento-border) !important;
    }

    body:not(.cust-help) .main__content.categories.ticket-create .btn-full,
    body:not(.cust-help) .main__content.categories.ticket-create button[type="submit"],
    body:not(.cust-help) .main__content.categories.ticket-create input[type="submit"] {
        width: 100%;
    }
}
/* มือถือ: ซ่อน brand ใน header จริง (โชว์ clone ใน .ux-mhead แทน) */
@media (max-width: 899px) {
    .hesk-brand--desktop-only {
        display: none !important;
    }
}

/* desktop: ลบ clone ออกด้วย CSS (กันกรณี .ux-mhead ไม่ถูกลบ) */
@media (min-width: 900px) {
    .ux-mhead { display: none !important; }
}