/* PSmaax client area: extra components on top of psmaax-admin.css */
.psm-client { font-family: var(--psm-font); }
.psm-client .psm-h1 { font-size: 24px; font-weight: 700; color: var(--psm-ink); }

.psm-due-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, #f5f9ff 0%, #e8f1fc 100%);
  border: 1px solid #cfe0f5; border-radius: 14px; padding: 22px 24px;
}
.psm-due-card.psm-due-ok { background: linear-gradient(135deg, #f3fcf6 0%, #e6f7ec 100%); border-color: #bfe8cd; }
.psm-due-label { font-size: 13px; font-weight: 600; color: var(--psm-muted); }
.psm-due-value { font-size: 30px; font-weight: 700; margin: 4px 0; }
.psm-due-sub { font-size: 13px; color: var(--psm-text); }

.psm-client .psm-kpi { border-top-width: 3px; text-align: right; }
.psm-client .psm-card-hdr h2 small { font-size: 11px; color: var(--psm-muted); font-weight: 500; margin-inline-start: 6px; text-transform: uppercase; letter-spacing: .3px; }

.psm-list { display: flex; flex-direction: column; }
.psm-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 6px; border-bottom: 1px solid #eef1f5;
  color: var(--psm-text) !important; text-decoration: none !important; border-radius: 8px;
}
.psm-list-item:last-child { border-bottom: 0; }
.psm-list-item:hover { background: #f5f9ff; }
.psm-pay-pill { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--psm-brand); border-radius: 999px; padding: 2px 10px; }

/* Header colours for the client area */
.clx-navigation-type-top .page-header { background: linear-gradient(90deg, #0b2b55 0%, var(--psm-brand) 100%) !important; }
html body a { color: var(--psm-brand); }

@media (max-width: 575px) {
  .psm-due-card { padding: 18px; }
  .psm-due-value { font-size: 24px; }
  .psm-due-card .btn-lg { width: 100%; }
}

/* 1.9 tickets */
.psm-client .min-w-0 { min-width: 0; }
.psm-link { font-weight: 600; text-decoration: none; }
.psm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0a800; margin-inline-end: 6px; vertical-align: middle; }
.psm-thread { display: flex; flex-direction: column; gap: 14px; }
.psm-msg { background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 14px 18px; max-width: 92%; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.psm-msg-me { align-self: flex-start; border-inline-start: 4px solid #9aa6b2; }
.psm-msg-staff { align-self: flex-end; background: #f3f8ff; border-color: #cfe0f5; border-inline-start: 4px solid var(--psm-brand); }
.psm-msg-hdr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--psm-muted); margin-bottom: 8px; }
.psm-msg-hdr b { color: var(--psm-ink); }
.psm-staff-tag { font-size: 11px; font-weight: 600; color: var(--psm-brand); background: #e3eefb; border-radius: 999px; padding: 1px 8px; margin-inline-start: 4px; }
.psm-msg-body { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.psm-msg-body img { max-width: 100%; height: auto; border-radius: 8px; }
.psm-msg-files { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #dbe2ea; font-size: 13px; }
.psm-client .dropzone { border: 2px dashed #cfe0f5; border-radius: 12px; background: #f8fbff; }
@media (max-width: 575px) { .psm-msg { max-width: 100%; } }

/* 1.10 services / invoices */
.psm-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.psm-dl dt { color: var(--psm-muted); font-weight: 500; }
.psm-dl dd { margin: 0; font-weight: 600; text-align: left; }
.psm-service { display: flex; flex-direction: column; }
.psm-service .d-flex.mt-3 { margin-top: auto !important; padding-top: 12px; }
.psm-client .btn-group .btn.active { background: var(--psm-brand); color: #fff; }
.psm-client .btn-group .btn.active, .psm-client .btn-group .btn.active:hover { background: var(--psm-brand) !important; border-color: var(--psm-brand) !important; color: #fff !important; }
.psm-client .psm-card-hdr { flex-wrap: wrap; gap: 10px; }
@media (max-width: 575px) {
  .psm-client .psm-card-hdr .btn-group { width: 100%; }
  .psm-client .psm-card-hdr .btn-group .btn { flex: 1 1 0; }
}
