/* Modern modal, responsive form & UX helpers layered cleanly on classic Tisu skin */
.FormLogin {
    box-sizing: border-box;
    padding: 8px 12px 6px;
}
.FormLogin .jx-login-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.FormLogin .jx-login-row label {
    width: 68px;
    flex: 0 0 68px;
    margin-top: 0;
    height: auto;
    line-height: 26px;
    font-size: 12px;
}
.FormLogin .jx-login-row .InputUserName {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    height: 26px;
    padding: 3px 8px;
}
.FormLogin .jx-captcha-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
}
.FormLogin .jx-captcha-wrap .InputUserName {
    width: 96px;
    flex: 0 0 96px;
}
.FormLogin .jx-captcha-img {
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #3a4659;
    background: #f8f6f0;
}
.FormLogin .jx-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 8px;
}
.FormLogin .ButtonLogin {
    width: 138px;
    line-height: 28px;
    font-weight: bold;
}
.FormLogin .LineForgetPass {
    margin-left: 0;
    font-size: 12px;
}
.FormLogin .jx-inline-msg {
    font-size: 11px;
    line-height: 15px;
    color: #fca5a5;
    margin-top: 4px;
    min-height: 14px;
    text-align: center;
}
.FormLoginOK {
    padding: 10px 14px;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
}
.FormLoginOK .jx-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e4a639;
    font-size: 13px;
    margin-bottom: 6px;
}
.FormLoginOK .jx-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #95dc34;
    font-weight: bold;
}
.FormLoginOK .jx-stat-line {
    display: flex;
    justify-content: space-between;
    color: #e5ecf4;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.FormLoginOK .InfoAcc {
    width: 100% !important;
    margin-top: 9px !important;
    display: block;
}
.FormLoginOK .jx-ok-links {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
}
.FormLoginOK .LogOutAjax {
    float: none !important;
    margin: 0 !important;
}
.FormLoginOK .jx-quick-btn {
    color: #7dd3fc;
    cursor: pointer;
}
.FormLoginOK .jx-quick-btn:hover {
    text-decoration: underline;
}

/* Modal Backdrop & Shell */
.jx-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 24, 0.72);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.jx-modal-backdrop.is-open {
    display: flex;
}
.jx-modal-dialog {
    background: #fbf9fa;
    color: #132b54;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #93752c;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
}
.jx-modal-dialog.jx-modal-sm {
    max-width: 480px;
}
.jx-modal-header {
    background: linear-gradient(135deg, #162a4b 0%, #24406e 100%);
    color: #fdf2d6;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ad8732;
}
.jx-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.jx-modal-close {
    background: transparent;
    border: 1px solid rgba(253, 242, 214, 0.45);
    color: #fdf2d6;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    line-height: 22px;
}
.jx-modal-close:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
.jx-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

/* Account Dashboard inside Modal */
.jx-acc-shell {
    display: flex;
    gap: 16px;
    min-height: 360px;
}
.jx-acc-sidebar {
    width: 195px;
    flex: 0 0 195px;
    border-right: 1px solid #d9d6cc;
    padding-right: 12px;
}
.jx-acc-nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    margin-bottom: 6px;
    background: #f1efe7;
    border: 1px solid #ddd7c5;
    border-radius: 4px;
    color: #1c3662;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}
.jx-acc-nav-btn:hover,
.jx-acc-nav-btn.is-active {
    background: #1c3662;
    color: #fdf2d6;
    border-color: #93752c;
}
.jx-acc-panel {
    flex: 1 1 auto;
    min-width: 0;
}
.jx-acc-pane {
    display: none;
}
.jx-acc-pane.is-active {
    display: block;
}
.jx-form-grid {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 8px 12px;
    align-items: center;
}
.jx-input, .jx-select {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #c9c3b3;
    border-radius: 4px;
    font-size: 13px;
    color: #132b54;
    background: #fff;
}
.jx-input:focus, .jx-select:focus {
    outline: none;
    border-color: #93752c;
}
.jx-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
}
.jx-btn-primary {
    background: linear-gradient(to bottom, #97d247 0%, #588022 100%);
    color: #fff;
}
.jx-btn-primary:hover {
    background: linear-gradient(to bottom, #a4de54 0%, #669428 100%);
}
.jx-btn-gold {
    background: linear-gradient(to bottom, #e5b84b 0%, #a57a1e 100%);
    color: #fff;
}
.jx-modal-notice {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}
.jx-modal-notice.jx-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.jx-modal-notice.jx-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.jx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.jx-table th, .jx-table td {
    border: 1px solid #dfd9c8;
    padding: 7px 8px;
    text-align: left;
}
.jx-table th {
    background: #ebe7db;
    color: #1c3662;
}
.jx-subtabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #ddd7c5;
    margin-bottom: 14px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.jx-subtab {
    padding: 5px 11px;
    border-radius: 4px;
    border: 1px solid #d4ceb9;
    background: #f5f2ea;
    color: #1c3662;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}
.jx-subtab.is-active {
    background: #93752c;
    color: #fff;
    border-color: #93752c;
}
.jx-news-head {
    border-bottom: 1px dotted #d0c7c0;
    padding-bottom: 6px;
    margin-bottom: 6px;
}
.jx-article-content {
    float: left;
    width: 655px;
    margin: 12px 20px 24px;
    color: #132b54;
    font-size: 14px;
    line-height: 1.65;
    overflow-x: auto;
}
.jx-article-content img {
    max-width: 100%;
    height: auto;
}
.jx-article-content h2 {
    margin: 18px 0 8px;
    font-weight: bold;
    line-height: 30px;
    background: url("../images/content_main_icon_1.png") no-repeat 0 center;
    padding-left: 24px;
    font-size: 17px;
}
.jx-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.jx-article-content th, .jx-article-content td {
    border: 1px solid #d5d5d5;
    padding: 6px 8px;
}
.jx-captcha-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.jx-captcha-inline img {
    height: 34px;
    border: 1px solid #c9c3b3;
    border-radius: 3px;
    cursor: pointer;
}
@media (max-width: 720px) {
    .jx-acc-shell { flex-direction: column; }
    .jx-acc-sidebar { width: 100%; flex: none; border-right: 0; border-bottom: 1px solid #d9d6cc; padding-right: 0; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
    .jx-acc-nav-btn { width: auto; }
    .jx-form-grid { grid-template-columns: 1fr; }
}
