/* Client pages: shared design, fluid forms and readable ticket history. */
.cc-client :is(#statusCard, #ticketView, #clientLogin, .cc-client-card) {
    background: var(--cc-panel);
    color: var(--cc-text);
    border: 1px solid var(--cc-edge);
    border-radius: 12px;
    padding: 28px;
    margin: 20px 0;
    max-width: 100%;
    box-shadow: none;
}
.cc-client #statusCard, .cc-client #clientLogin { max-width: 720px; }
.cc-client #statusCard h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 0; }
.cc-client #statusForm { float: none; width: 100%; }
.cc-client :is(#statusForm, #clientLogin) .form-field { margin: 20px 0; }
.cc-client :is(#statusForm, #clientLogin) input:not([type="submit"]):not([type="hidden"]) { width: 100%; }
.cc-client #statusForm .status-extra, .cc-client .status-footer { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--cc-edge); font-size: 12px; }
.cc-client .cc-login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.cc-client .login-box { display: block; float: none; padding: 0; width: auto; background: none; border: 0; }
.cc-client .login-box input { margin-bottom: 14px; }
.cc-client .cc-login-help { padding: 0; align-self: center; }
.cc-client :is(#ticketInfo, .infoTable, .custom-data, .padded) { width: 100%; max-width: 100%; border-collapse: collapse; background: transparent; color: var(--cc-text); }
.cc-client #ticketView h1 { font-size: clamp(24px, 3vw, 36px); }
.cc-client #ticketView h1 small { display: block; color: var(--cc-accent); font-size: 13px; margin-top: 10px; }
.cc-client #ticketView :is(td, th, label) { color: var(--cc-text); }
.cc-client #ticketView td { vertical-align: top; }
.cc-client #ticketView .infoTable { background: var(--cc-raised); border-radius: 8px; margin: 16px 0; }
.cc-client .infoTable td, .cc-client .infoTable th { padding: 10px 12px; }
.cc-client #ticketView .headline { color: var(--cc-white); background: none; font-weight: 600; border-bottom: 1px solid var(--cc-edge); }
.cc-client #ticketView .pull-right { max-width: 100%; }
.cc-client #reply { background: transparent; padding: 0; }
.cc-client #reply textarea { width: 100%; color: var(--cc-text); }
.cc-client :is(.form_table, #ticketTable) { width: 100%; }
.cc-client #ticketTable { background: var(--cc-panel); border-collapse: collapse; border: 1px solid var(--cc-edge); border-radius: 10px; }
.cc-client #ticketTable :is(th, td) { padding: 14px 12px; border-color: var(--cc-edge); background: transparent; color: var(--cc-text); }
.cc-client #ticketTable th { background: var(--cc-raised); color: var(--cc-white); }
.cc-client #ticketTable tr:hover td { background: var(--cc-raised); }
.cc-client #ticketTable th a { color: var(--cc-white); }
.cc-client .cc-table-scroll { max-width: 100%; overflow-x: auto; border-radius: 10px; }
.cc-client .search.well { padding: 18px; background: var(--cc-panel); border: 1px solid var(--cc-edge); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cc-client .search.well form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; width: 100%; }
.cc-client .search.well input { min-width: 0; }
.cc-client .search.well .pull-right { float: none; }
.cc-client :is(.faq-content, .kb-category, .cc-client-card) .thread-body { padding: 20px; }
.cc-client .faq-content, .cc-client .kb-category { width: auto; max-width: 100%; }
.cc-client .article-title, .cc-client .category-name { color: var(--cc-white); }
.cc-client .article-teaser { color: var(--cc-text); }
.cc-client .captcha-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-client #ticketForm .captcha-entry input { max-width: 160px; }
.cc-client .form-header h3 { margin: 12px 0; }
.cc-client .redactor-box.redactor-styles-on { border-color: var(--cc-edge); box-shadow: none; }
.cc-client .redactor-focus.redactor-styles-on { border-color: var(--cc-accent); }
@media (max-width: 700px) {
    .cc-client :is(#statusCard, #ticketView, #clientLogin, .cc-client-card) { padding: 18px; }
    .cc-client .cc-login-grid { grid-template-columns: 1fr; }
    .cc-client #ticketInfo > tbody > tr { display: flex; flex-direction: column; }
    .cc-client #ticketInfo > tbody > tr > td { width: 100%; }
    .cc-client #ticketView h1 .pull-right { float: none; display: flex; gap: 8px; margin-top: 16px; }
    .cc-client #ticketForm .padded > tbody > tr { display: flex; flex-direction: column; }
    .cc-client #ticketForm .padded > tbody > tr > td { width: 100%; }
}
