/* Client Portal custom styles */

:root {
  --cp-primary: #2563eb;
  --cp-primary-hover: #1d4ed8;
  --cp-surface: #ffffff;
  --cp-border: #e5e7eb;
  --cp-muted: #6b7280;
  --cp-text: #101828;
  --cp-font: 'Poppins', sans-serif;
  --bs-font-sans-serif: 'Poppins', sans-serif;
  --bs-body-font-family: 'Poppins', sans-serif;
}

html,
:where(body, body *) {
  font-family: 'Poppins', sans-serif;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.tooltip,
.popover,
.dropdown-menu,
.modal {
  font-family: var(--cp-font);
}

.login-page,
.register-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cp-font);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 42%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.1), transparent 40%),
    #f3f4f6;
}

.login-box,
.register-box {
  width: 400px;
  max-width: 95vw;
}

body.cp-auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050507;
  color: #fff;
  font-family: var(--cp-font);
}

.cp-auth-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 58% 42% at 50% 6%, rgba(34, 211, 238, 0.22), transparent 62%),
    radial-gradient(ellipse 46% 38% at 50% 96%, rgba(168, 85, 247, 0.2), transparent 68%);
}

.cp-auth-page .cp-page-loader {
  background: rgba(5, 5, 7, 0.72);
}

.cp-auth {
  position: relative;
  z-index: 1;
  width: min(424px, calc(100vw - 2rem));
  padding: 1.5rem 0;
}

.cp-auth-card {
  
  display: flex;
width: 500px;
padding: 30px;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 20px;
 
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 2.15rem 1.85rem 1.55rem;

  border-radius: 30px;
border: 1px solid rgba(255, 255, 255, 0.20);
background: #171717;

}

.cp-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.05rem;
}

.cp-auth-logo {
  width: 64px;
  height: 62px;
  display: block;
}

.cp-auth-title {
 
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  margin: 0 0 0.35rem;
font-family: Poppins;
font-size: 28px;
font-style: normal;
font-weight: 600;
line-height: 36px; /* 128.571% */
letter-spacing: -1px;

}

.cp-auth-subtitle {
  text-align: center;
  color: #FFF;
  margin: 0 0 1.35rem;
/* Paragraph/Large/Regular */
font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 28px; /* 155.556% */
letter-spacing: -0.5px;
}

.cp-auth-copy {
  text-align: center;
  color: #d0d0d4;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1.15rem;
}

.cp-auth-copy strong {
  color: #fff;
  font-weight: 700;
  word-break: break-word;
}

.cp-auth-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #6d6e73;
  color: #fff;
  border-radius: 6px;
  padding: 0.55rem 0.75rem 0.55rem 0.85rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.cp-auth-notice-error {
  background: #7a3030;
}

.cp-auth-notice-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.1rem;
  cursor: pointer;
}

.cp-auth-form {
  width: 100%;
}

.cp-auth-field {
  margin-bottom: 1.6rem;
}

.cp-float {
  position: relative;
}

.cp-float-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  min-height: 3.25rem;
  padding: 0.95rem 3rem 0.85rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  box-shadow: none;
}

/* Typed passwords show as asterisks: this font draws the browser's mask bullets as "*".
   Built by scripts/build-password-mask-font.js; other characters fall back to the page font. */
@font-face {
  font-family: 'Password Mask';
  src: url('/fonts/password-mask.ttf') format('truetype');
  unicode-range: U+2022, U+25CF;
  font-display: block;
}

.cp-float-input[type="password"] {
  font-family: 'Password Mask', var(--cp-font);
  letter-spacing: 0.08em;
}

.cp-float-input[type="password"]::placeholder {
  letter-spacing: normal;
}

.cp-float-input::placeholder {
  color: #a3a3a3;
}

/* Keep browser autofill from painting the field light blue */
.cp-float-input:-webkit-autofill,
.cp-float-input:-webkit-autofill:hover,
.cp-float-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #171717 inset;
  box-shadow: 0 0 0 1000px #171717 inset;
  transition: background-color 9999s ease-out 0s;
}

/* Tiny animations let auth-ui.js notice when autofill starts or ends (no DOM event exists). */
@keyframes cp-autofill-start { from { opacity: 1; } to { opacity: 1; } }
@keyframes cp-autofill-end { from { opacity: 1; } to { opacity: 1; } }

.cp-float-input:-webkit-autofill {
  animation: cp-autofill-start 0.01s;
}

.cp-float-input:not(:-webkit-autofill) {
  animation: cp-autofill-end 0.01s;
}

/* Page-load autofill: asterisks painted over the text until Chrome releases the value. */
.cp-float.is-autofill-masked::after {
  content: "\2022\2022\2022\2022\2022\2022\2022\2022";
  position: absolute;
  left: 1px;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  height: 1.6rem;
  display: flex;
  align-items: center;
  padding-left: calc(0.9rem - 1px);
  background: #171717;
  color: #fff;
  font-family: 'Password Mask', var(--cp-font);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* Hover or filled: 1px pink-to-cyan gradient ring drawn over the input border.
   A masked pseudo-element keeps the rounded corners and the transparent fill. */
.cp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(70deg, #f3697d 0%, #d16bd8 40%, #22d3ee 75%, #cffafe 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.cp-float:hover::before,
.cp-float:has(.cp-float-input:not(:placeholder-shown))::before,
.cp-float:has(.cp-float-input:-webkit-autofill)::before {
  opacity: 1;
}

.cp-float:has(.is-invalid)::before {
  display: none;
}

/* Error state: red border, text, label and a red cross in place of the field icon */
.cp-float-input.is-invalid {
  border-color: #f04438;
  color: #f04438;
}

.cp-float-input.is-invalid:-webkit-autofill {
  -webkit-text-fill-color: #f04438;
}

.cp-float-input.is-invalid ~ label {
  color: #f04438;
}

.cp-float-error-icon {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f04438;
  line-height: 1;
  pointer-events: none;
}

.cp-float-error-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.cp-float-input.is-invalid ~ .cp-float-error-icon {
  display: block;
}

.cp-float-input.is-invalid ~ .cp-float-icon {
  display: none;
}

.cp-float label {
  position: absolute;
  left: 0.7rem;
  top: 0;
  transform: translateY(-50%);
  background: #121212;
  border-radius: 10px;
  padding: 0.25rem 0.65rem;
  color: #22d3ee;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  pointer-events: none;
}

.cp-float-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #bdbdc4;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
  font-size: 1.05rem;
}

button.cp-float-icon {
  cursor: pointer;
}

.cp-float-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

/* Password toggle: slashed eye while hidden, open eye once shown */
.cp-float-icon .cp-eye-on,
.cp-float-icon[aria-pressed="true"] .cp-eye-off {
  display: none;
}

.cp-float-icon[aria-pressed="true"] .cp-eye-on {
  display: block;
}

.cp-auth-form .invalid-feedback {
  color: #f04438;
  font-size: 0.85rem;
  line-height: 1.35;
  margin-top: 0.55rem;
  display: none;
  align-items: flex-start;
  gap: 0.45rem;
}

.cp-auth-form .invalid-feedback:not([hidden]) {
  display: flex;
}

/* Warning triangle before each field error message */
.cp-auth-form .invalid-feedback::before {
  content: "";
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 9V14' stroke='%23F04438' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M12 21.41H5.94C2.47 21.41 1.02 18.93 2.7 15.9L5.82 10.28L8.76 5C10.54 1.79 13.46 1.79 15.24 5L18.18 10.29L21.3 15.91C22.98 18.94 21.51 21.42 18.06 21.42H12V21.41Z' stroke='%23F04438' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.995 17H12.004' stroke='%23F04438' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cp-auth-forgot {
  display: block;
  text-align: right;
  color: #e5e5e5;
  font-size: 0.82rem;
  text-decoration: none;
  margin: -0.95rem 0 1.4rem;
}

.cp-auth-forgot:hover {
  color: #e5e5ea;
}

.cp-auth-submit {
  display: block;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: #111;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #f3697d 0%, #f9a8d4 45%, #a5f3fc 70%, #22d3ee 100%) border-box;
}

.cp-auth-submit:hover,
.cp-auth-submit:focus {
  color: #111;
  text-decoration: none;
}

.cp-auth-submit:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}

.cp-auth-back {
  display: block;
  text-align: center;
  color: #22d3ee;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 0.95rem;
}

.cp-auth-back:hover {
  color: #67e8f9;
}

.cp-otp {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0.85rem;
}

.cp-otp-label {
  text-align: center;
  color: #22d3ee;
  font-size: 0.92rem;
  margin: 0 0 0.7rem;
}

.cp-otp-digit {
  flex: 1 1 0;
  width: 3rem;
  max-width: 3rem;
  height: 3rem;
  min-width: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: #2a2b30;
  border: 1px solid #3a3b40;
  border-radius: 10px;
  outline: none;
  padding: 0;
}

.cp-otp-digit::placeholder {
  color: #6f6f76;
}

.cp-otp-digit:focus {
  border-color: #22d3ee;
}

.cp-otp-hint {
  text-align: center;
  color: #b5b5bb;
  font-size: 0.82rem;
  margin: 0.15rem 0 0.85rem;
}

.cp-otp-error {
  text-align: center;
  color: #fca5a5;
  font-size: 0.8rem;
  margin: -0.2rem 0 0.75rem;
}

.cp-resend {
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.15rem;
  border: 0;
  background: transparent;
  color: #d0d0d0;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: not-allowed;
}

.cp-resend.is-ready,
.cp-resend:not(:disabled) {
  color: #22d3ee;
  cursor: pointer;
}

.cp-resend:disabled {
  color: #d0d0d0;
  opacity: 1;
  cursor: not-allowed;
}

.cp-resend:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
  border-radius: 6px;
}

.cp-rules-title {
  color: #3ddc84;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0.1rem 0 0.35rem;
}

.cp-rules {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.cp-rules li,
.cp-match {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #8e8e96;
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0.28rem 0;
}

.cp-rules li.is-met,
.cp-match.is-met {
  color: #3ddc84;
}

.cp-rule-icon {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1.2;
}

.cp-match {
  margin: 0.35rem 0 1.05rem;
}

@media (max-width: 420px) {
  .cp-auth-card {
    padding: 1.6rem 1.1rem 1.25rem;
    border-radius: 22px;
  }

  .cp-auth-title {
    font-size: 1.45rem;
  }
}

button.input-group-text.password-toggle {
  cursor: pointer;
  line-height: 1;
  color: inherit;
  background: #f9fafb;
}

button.input-group-text.password-toggle:hover,
button.input-group-text.password-toggle:focus {
  color: var(--cp-text);
  background: #f3f4f6;
}

.cp-password-strength-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.cp-password-strength-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.cp-password-strength[data-level="1"] .cp-password-strength-bar > span {
  width: 25%;
  background: #dc2626;
}

.cp-password-strength[data-level="2"] .cp-password-strength-bar > span {
  width: 50%;
  background: #f59e0b;
}

.cp-password-strength[data-level="3"] .cp-password-strength-bar > span {
  width: 75%;
  background: #2563eb;
}

.cp-password-strength[data-level="4"] .cp-password-strength-bar > span {
  width: 100%;
  background: #16a34a;
}

.cp-password-strength[data-level="1"] [data-password-strength-label] {
  color: #dc2626;
}

.cp-password-strength[data-level="2"] [data-password-strength-label] {
  color: #d97706;
}

.cp-password-strength[data-level="3"] [data-password-strength-label] {
  color: #2563eb;
}

.cp-password-strength[data-level="4"] [data-password-strength-label] {
  color: #15803d;
}

.cp-password-rules {
  list-style: none;
  padding: 0;
  color: var(--cp-muted);
}

.cp-password-rules li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.15rem;
}

.cp-password-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d1d5db;
}

.cp-password-rules li.is-met {
  color: #15803d;
}

.cp-password-rules li.is-met::before {
  background: #16a34a;
}

.cp-password-rules li.is-missing {
  color: #b45309;
}

.cp-password-rules li.is-missing::before {
  background: #f59e0b;
}

.nav-link-form .nav-link {
  color: inherit;
  cursor: pointer;
}

.nav-link-form .nav-link:hover {
  color: var(--bs-primary);
}

.small-box .icon {
  font-size: 2.5rem;
  opacity: 0.3;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.small-box {
  position: relative;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
}

.small-box .inner h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.card-outline {
  border-top: 3px solid #0d6efd;
}

/* —— Tasks page —— */
.quick-access {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  padding: 1.15rem 1.25rem 1.25rem;
}

.quick-access-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cp-text);
  margin: 0;
}

.quick-access-wiki-btn {
  font-weight: 600;
  color: var(--cp-primary);
  text-decoration: none;
  padding: 0;
}

.quick-access-wiki-btn:hover {
  color: var(--cp-primary-hover);
}

.quick-access-scroller {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.4rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.quick-access-scroller::-webkit-scrollbar {
  height: 8px;
}

.quick-access-scroller::-webkit-scrollbar-thumb {
  background: #bfdbfe;
  border-radius: 999px;
}

.quick-access-card {
  flex: 0 0 250px;
  width: 250px;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 0.75rem;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}

a.quick-access-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  color: inherit;
}

.quick-access-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.quick-access-icon.is-figma {
  background: #ede9fe;
  color: #7c3aed;
}

.quick-access-icon.is-staging {
  background: #dbeafe;
  color: #2563eb;
}

.quick-access-icon.is-api {
  background: #ffedd5;
  color: #c2410c;
}

.quick-access-icon.is-sow {
  background: #dcfce7;
  color: #15803d;
}

.quick-access-icon.is-doc {
  background: #e0e7ff;
  color: #4338ca;
}

.quick-access-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0 0 0.4rem;
}

.quick-access-url {
  color: var(--cp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.82rem;
  word-break: break-all;
}

.quick-access-url:hover {
  color: var(--cp-primary-hover);
}

.quick-access-sub {
  font-size: 0.78rem;
  color: var(--cp-muted);
  margin: 0.4rem 0 0;
}

.quick-access-wiki-body {
  font-size: 0.92rem;
  line-height: 1.55;
}

.quick-access-wiki-body a {
  color: var(--cp-primary);
}

.tasks-filters-card,
.tasks-table-card {
  border: 1px solid var(--cp-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  background: var(--cp-surface);
}

.tasks-filters-card .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cp-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.tasks-filters-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.tasks-filter-search {
  flex: 1 1 220px;
  min-width: 200px;
}

.tasks-filter-field {
  flex: 0 0 150px;
  min-width: 140px;
}

.tasks-filter-cf {
  display: contents;
}

.tasks-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding-bottom: 1px;
}

.tasks-search-input {
  border-radius: 0.5rem;
}

.tasks-table-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--cp-border);
  padding: 0.9rem 1.25rem;
}

.tasks-table {
  margin-bottom: 0;
}

.tasks-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cp-muted);
  font-weight: 600;
  white-space: nowrap;
  border-bottom-width: 1px;
  background: #f9fafb;
}

.tasks-table tbody td {
  vertical-align: middle;
  border-color: var(--cp-border);
}

.tasks-table .task-name-link {
  color: var(--cp-primary);
  font-weight: 600;
  text-decoration: none;
}

.tasks-table .task-name-link:hover {
  color: var(--cp-primary-hover);
  text-decoration: underline;
}

.tasks-table .task-ticket-id {
  display: block;
  font-size: 0.75rem;
  color: var(--cp-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.tasks-board-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  color: var(--cp-muted);
  font-size: 0.75rem;
}

.tasks-board-counts-sep {
  color: var(--cp-muted);
}

.tasks-table .task-subtask-count {
  display: block;
  font-size: 0.75rem;
  color: var(--cp-muted);
  margin-top: 0.1rem;
}

.task-subtask-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-subtask-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cp-border);
  font-size: 0.875rem;
}

.task-subtask-list li:last-child {
  border-bottom: 0;
}

.tasks-table [data-reject-task] {
  font-weight: 600;
}

.tasks-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.tasks-table-card .card-footer {
  background: transparent;
  border-top: 1px solid var(--cp-border);
}

.tasks-pagination .page-link {
  border-radius: 0.4rem !important;
  margin: 0 0.15rem;
  border: 1px solid var(--cp-border);
  color: var(--cp-text);
  min-width: 2.1rem;
  text-align: center;
}

.tasks-pagination .page-item.active .page-link {
  background: var(--cp-primary);
  border-color: var(--cp-primary);
  color: #fff;
}

.tasks-pagination .page-item.disabled .page-link {
  color: #9ca3af;
}

.btn-reset-filters {
  color: var(--cp-muted);
  text-decoration: none;
  font-weight: 500;
}

.btn-reset-filters:hover {
  color: var(--cp-primary);
}

.ticket-success-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cp-primary);
}

/* —— Commercial dashboard (Summary sheet) —— */
.commercial-filters-card,
.commercial-sheet-card {
  border: 1px solid var(--cp-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.commercial-sheet-card .card-header {
  border-bottom: 1px solid var(--cp-border);
}

.commercial-sheet-header {
  background: #f8fafc;
}

.commercial-header-billable {
  background: #dbeafe;
}

.commercial-header-waived {
  background: #fce7f3;
}

.commercial-header-afterhours {
  background: #ffedd5;
}

.commercial-header-summary {
  background: #dcfce7;
}

.commercial-hours-table .commercial-task-row td {
  background: #f8fafc;
}

.commercial-hours-table .commercial-expertise-row td {
  color: #374151;
}

.commercial-total-row td,
.commercial-footer-billable td,
.commercial-footer-waived td,
.commercial-footer-afterhours td,
.commercial-footer-summary td {
  background: #f1f5f9;
  border-top: 2px solid #cbd5e1;
}

.commercial-summary-table td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.commercial-invoice-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.commercial-invoice-form .form-label {
  font-size: 0.7rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.commercial-invoice-form .form-control,
.commercial-invoice-form .form-select {
  font-size: 0.75rem;
  min-height: 1.85rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.commercial-invoice-field {
  flex: 1 1 0;
  min-width: 0;
}

.commercial-invoice-add {
  flex: 0 0 auto;
}

.commercial-invoice-add .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.15rem 0.7rem;
}

.commercial-invoice-table {
  font-size: 0.75rem;
}

.commercial-invoice-table th,
.commercial-invoice-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.commercial-invoice-table .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  line-height: 1;
}

/* —— App chrome (sidebar, navbar, dashboard) —— */
body {
  font-family: var(--cp-font);
}

.app-wrapper {
  background: #f3f4f6;
}

body.tb-page,
body.tb-page .app-wrapper,
body.tb-page .app-main,
body.tb-page .app-content {
  background: #FFFFFF;
}

.app-content-header {
  padding-top: 1.25rem;
}

.cp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  border: 1px solid var(--cp-border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--cp-text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.cp-back-link:hover {
  color: var(--cp-primary);
  border-color: var(--cp-primary);
}

.app-content-header .cp-trail {
  display: inline-flex;
  margin-bottom: 0;
}

.cp-trail-form {
  display: flex;
  margin: 0 0 1rem;
}

.cp-trail {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.cp-trail-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.cp-trail-home:hover {
  background: #2563eb;
  color: #fff;
}

.cp-trail-list {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.cp-trail-list a {
  color: #6b7280;
  font-weight: 500;
  text-decoration: none;
}

.cp-trail-list a:hover {
  color: #2563eb;
}

.cp-trail-sep {
  color: #9ca3af;
  font-weight: 500;
  line-height: 1;
}

.cp-trail-current {
  color: #2563eb;
  font-weight: 700;
}

.cp-page-breadcrumb {
  font-size: 0.8rem;
}

.cp-page-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.cp-page-breadcrumb a:hover {
  color: var(--cp-primary);
}

.cp-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cp-text);
}

.app-main .card {
  border: 1px solid var(--cp-border);
  border-radius: 0.85rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.app-footer {
  background: #fff;
  border-top: 1px solid var(--cp-border);
  color: #6b7280;
  font-size: 0.85rem;
}

/* Navbar */
.cp-navbar {
  border-bottom: 1px solid var(--cp-border);
}

.cp-header-crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  color: #98A2B3;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.cp-header-crumb a {
  color: #98A2B3;
  font-weight: 400;
  text-decoration: none;
}

.cp-header-crumb a:hover {
  color: #667085;
}

.cp-header-crumb [aria-current="page"] {
  color: #101828;
  font-weight: 600;
}

.cp-user-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cp-avatar-img {
  object-fit: cover;
  padding: 0;
  background: #e5e7eb;
}

.cp-profile-avatar {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--cp-border);
}

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

.cp-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cp-user-label {
  font-weight: 600;
  color: #101828;
}

.cp-user-role {
  color: #6b7280;
  font-weight: 500;
}

.cp-user-dropdown {
  min-width: 14rem;
  border: 1px solid var(--cp-border);
  border-radius: 0.65rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.35rem 0;
}

.cp-user-dropdown .dropdown-header {
  font-weight: 600;
  color: #101828;
}

.cp-user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #374151;
}

.cp-user-dropdown .dropdown-item:hover {
  background: #f3f4f6;
  color: #101828;
}

/* Sidebar */
.cp-sidebar {
  display: flex;
  flex-direction: column;
  background: #181818 !important;
  background-color: #181818 !important;
  --bs-body-bg: #181818;
  --bs-tertiary-bg: #181818;
  overflow: hidden;
}

.sidebar-expand-sm.layout-fixed .cp-sidebar,
.sidebar-expand-md.layout-fixed .cp-sidebar,
.sidebar-expand-lg.layout-fixed .cp-sidebar,
.sidebar-expand-xl.layout-fixed .cp-sidebar,
.sidebar-expand-xxl.layout-fixed .cp-sidebar {
  height: 100vh;
  max-height: 100vh;
}

.cp-sidebar .sidebar-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  overflow: visible;
  padding: 1.2rem 1.15rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #181818;
  white-space: normal;
}

.cp-sidebar .sidebar-brand .brand-link,
.cp-sidebar .brand-link.cp-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  height: auto;
  padding: 0;
  color: #fff;
  text-decoration: none;
}

.cp-brand-logo {
  display: block;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
}

.cp-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.cp-brand-name {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--Shades-10, #FFF);
font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 800;
line-height: 18px; /* 100% */
letter-spacing: -0.3px;
}


.cp-brand-sub {
  color: #B9B9B9;
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 150% */
  letter-spacing: -0.3px;
}

.cp-sidebar .nav-header.cp-client-nav-label {
  color: #B9B9B9;
  font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 500;

  letter-spacing: 0;
  text-transform: none;
  padding: 0.85rem 1.2rem 0.25rem;
  margin: 0;
}

.cp-sidebar .sidebar-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: #181818;
}

.cp-sidebar .sidebar-wrapper,
.sidebar-expand-sm.layout-fixed .cp-sidebar .sidebar-wrapper,
.sidebar-expand-md.layout-fixed .cp-sidebar .sidebar-wrapper,
.sidebar-expand-lg.layout-fixed .cp-sidebar .sidebar-wrapper,
.sidebar-expand-xl.layout-fixed .cp-sidebar .sidebar-wrapper,
.sidebar-expand-xxl.layout-fixed .cp-sidebar .sidebar-wrapper {
  height: auto !important;
  overflow-x: hidden;
  overflow-y: auto;
}

.cp-sidebar-account {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 0.4rem 0 1.05rem;
  background: #181818;
}

.cp-sidebar-account-label {
  color: #9ca3af;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.55rem 1.2rem 0.2rem;
  margin: 0;
}

.cp-sidebar-signout-form {
  margin: 0;
}

.cp-sidebar-signout {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: calc(100% - 1.3rem);
  margin: 0.1rem 0.65rem 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--Shades-0, #FFF);
text-align: center;
font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 18px; /* 128.571% */
letter-spacing: -0.3px;
}

.cp-sidebar-signout svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: block;
}

.cp-sidebar-signout:hover,
.cp-sidebar-signout:focus {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cp-sidebar .sidebar-wrapper > nav {
  flex: 1 1 auto;
}

.cp-sidebar .sidebar-menu .nav-link {
  color: #e5e7eb;
  border-radius: 0.55rem;
  margin: 0.15rem 0.65rem;
  padding: 0.55rem 0.75rem;
}

.cp-sidebar .sidebar-menu .nav-link p {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
}

.cp-sidebar .nav-arrow {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cp-sidebar .menu-open > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

.cp-sidebar .sidebar-menu > .nav-item.menu-open > .nav-link:not(.active),
.cp-sidebar .sidebar-menu > .nav-item.menu-open > .nav-link:not(.active):focus,
.cp-sidebar .sidebar-menu > .nav-item.menu-open > .nav-link:not(.active) p,
.cp-sidebar .sidebar-menu > .nav-item.menu-open > .nav-link:not(.active) .nav-arrow {
  background: transparent !important;
  color: #22d3ee;
  box-shadow: none !important;
}

.cp-sidebar .nav-treeview {
  display: none;
  list-style: none;
  margin: 0.15rem 0 0.35rem 1.85rem;
  padding: 0.15rem 0 0.35rem 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.cp-sidebar .menu-open > .nav-treeview {
  display: block;
}

.cp-sidebar .nav-treeview .nav-link {
  display: flex;
  align-items: center;
  margin: 0.2rem 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.cp-sidebar .nav-treeview .nav-link:hover {
  background: transparent;
  color: #d4d4d4;
}

.cp-sidebar .nav-treeview .nav-link.active,
.cp-sidebar .nav-treeview .nav-link.active:hover,
.cp-sidebar .nav-treeview .nav-link.active:focus {
  border-radius: 8px;
  border-bottom: 0 !important;
  background: #192b2e !important;
  color: #22d3ee !important;
  box-shadow: none !important;
}

.cp-sidebar .nav-treeview .nav-link.active p,
.cp-sidebar .nav-treeview .nav-link.active:hover p {
  color: #22d3ee !important;
}

.cp-sidebar .sidebar-menu > .nav-item > .nav-link.active,
.cp-sidebar .sidebar-menu > .nav-item > .nav-link.active:hover,
.cp-sidebar .sidebar-menu > .nav-item > .nav-link.active:focus {
  border-radius: 6px;
  border-bottom: 2px solid var(--tertiary-mint-teel-400-main, #22D3EE);
  background: var(--neutrals-neutral-900-main, #181818) !important;
  color: #22d3ee !important;
  box-shadow: none !important;
}

.cp-sidebar .nav-icon.cp-nav-svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
}

.cp-sidebar .nav-icon.cp-nav-svg path {
  stroke: currentColor;
}

.cp-sidebar .sidebar-menu > .nav-item > .nav-link.active .nav-icon,
.cp-sidebar .sidebar-menu > .nav-item > .nav-link.active p,
.cp-sidebar .sidebar-menu > .nav-item > .nav-link.active:hover .nav-icon,
.cp-sidebar .sidebar-menu > .nav-item > .nav-link.active:hover p {
  color: #22d3ee !important;
}

.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent {
  display: flex;
  align-items: center;
  height: 40px;
  margin: 4px 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent p,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent .nav-icon,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent .nav-arrow {
  color: #fff;
}

.cp-sidebar-client .nav-arrow {
  margin-left: auto;
}

.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent:hover,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent:hover p,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent:hover .nav-icon,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent:hover .nav-arrow {
  background: #22d3ee !important;
  color: #111 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent.active,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent.active:focus,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent.active p,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent.active .nav-icon,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link.cp-nav-parent.active .nav-arrow {
  background: #000 !important;
  color: #22d3ee !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent):hover,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent):hover p,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent):hover .nav-icon {
  background: #22d3ee !important;
  color: #111 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent).active,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent).active:hover,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent).active:focus {
  border-radius: 6px;
  border-bottom: 2px solid var(--tertiary-mint-teel-400-main, #22D3EE) !important;
  background: var(--neutrals-neutral-900-main, #181818) !important;
  color: #22d3ee !important;
  box-shadow: none !important;
}

.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent).active p,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent).active:hover p,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent).active .nav-icon,
.cp-sidebar-client .sidebar-menu > .nav-item > .nav-link:not(.cp-nav-parent).active:hover .nav-icon {
  border-bottom: 0 !important;
  background: transparent !important;
  color: #22d3ee !important;
  box-shadow: none !important;
}

.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent,
.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent:hover,
.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent:focus {
  border-radius: 6px;
  border-bottom: 2px solid var(--tertiary-mint-teel-400-main, #22D3EE) !important;
  background: var(--neutrals-neutral-900-main, #181818) !important;
  color: #22d3ee !important;
  box-shadow: none !important;
}

.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent p,
.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent:hover p,
.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent .nav-icon,
.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent:hover .nav-icon,
.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent .nav-arrow,
.cp-sidebar-client .sidebar-menu > .nav-item.menu-open > .nav-link.cp-nav-parent:hover .nav-arrow {
  border-bottom: 0 !important;
  background: transparent !important;
  color: #22d3ee !important;
  box-shadow: none !important;
}

.cp-sidebar-client .nav-treeview {
  margin: 2px 12px 8px;
  padding: 0;
  border-left: 0;
}

.cp-sidebar-client .nav-treeview .nav-link {
  height: 40px;
  margin: 6px 8px 0;
  padding: 0 14px;
  border-radius: 10px;
  background: #1a222e;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
}

.cp-sidebar-client .nav-treeview .nav-link p {
  color: #e5e7eb;
}

.cp-sidebar-client .nav-treeview .nav-link:hover,
.cp-sidebar-client .nav-treeview .nav-link:hover p {
  background: #222b39;
  color: #fff;
}

.cp-sidebar-client .nav-treeview .nav-link.active,
.cp-sidebar-client .nav-treeview .nav-link.active:hover,
.cp-sidebar-client .nav-treeview .nav-link.active:focus,
.cp-sidebar-client .nav-treeview .nav-link.active p,
.cp-sidebar-client .nav-treeview .nav-link.active:hover p {
  background: #192b2e !important;
  color: #22d3ee !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.tb-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 0.92rem;
}
.tb-page-title {
  margin: 0;
  color: #101828;
  font-family: Poppins, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -1px;
}
.tb-board-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6A7282;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.5px;
}
.tb-board-chip svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #0891b2;
}
.tb-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d1d5db;
}
.tb-active-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 25px;
  padding: 6px 12px;
  border-radius: 30px;
  background: var(--Alerts-Success-600, #16A34A);
  color: var(--Shades-0, #FFF);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.tb-toolbar { margin-bottom: 1rem; }
.tb-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}
.tb-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 22rem);
  padding: 0.5rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #9ca3af;
}
.tb-search svg { width: 1rem; height: 1rem; flex: 0 0 1rem; }
.tb-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #171717;
  font-size: 0.92rem;
}
.tb-action-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.tb-filter-scroll {
  flex: 1 1 0;
  align-self: flex-start;
  width: 0;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c5c9d1 #eceff3;
}
.tb-filter-scroll::-webkit-scrollbar {
  height: 6px;
}
.tb-filter-scroll::-webkit-scrollbar-track {
  background: #eceff3;
  border-radius: 999px;
}
.tb-filter-scroll::-webkit-scrollbar-thumb {
  background: #c5c9d1;
  border-radius: 999px;
}
.tb-filter-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
  height: 35px;
  margin-left: 0;
}
.tb-filter-pills .tb-select {
  display: block;
  flex: 0 0 178px;
  width: 178px;
  height: 35px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 34px 0 14px;
  border-radius: 16px;
  border: 1px solid var(--Neutrals-Neutral-300, #D4D4D4);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23737373' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  color: var(--Neutrals-Neutral-500, #737373);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 33px;
  letter-spacing: -0.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}
.tb-submit-ticket {
  display: flex;
  width: 145px;
  height: 35px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: var(--neutrals-neutral-900-main, #181818);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}
.tb-submit-ticket:hover {
  color: #fff;
  font-weight: 500;
  background:
    linear-gradient(#181818, #181818) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}
.tb-submit-ticket svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.tb-submit-ticket svg path {
  stroke: currentColor;
}
.tb-icon-btn {
  display: flex;
  width: 35px;
  height: 35px;
  padding: 0;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 0 0 35px;
  border: 0;
  border-radius: 10px;
  background: var(--Shades-1000, #000);
  color: #fff;
  cursor: pointer;
}
.tb-icon-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}
.tasks-filter-cf { display: contents; }
.tasks-filter-field { display: contents; }
.tb-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--Shades-0, #fff), var(--Shades-0, #fff)) padding-box,
    linear-gradient(90deg, #22D3EE 13%, #E9A9FF 50%, #F3697D 80%) border-box;
  color: #000;
  cursor: pointer;
}
.tb-reset svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}
body.tb-page .app-main .tasks-table-card,
body.tb-page .app-main .tasks-table-card > .card-body {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.tasks-table-card > .card-header { display: none; }
.tasks-table-card > .card-footer { background: transparent; border: 0; }
.tb-status { margin-bottom: 0.65rem; }
.tb-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  padding: 0.2rem 0;
  color: #111;
}
.tb-status-chevron {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.tb-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: 25px;
  background: #e5e7eb;
  color: var(--neutrals-neutral-900-main, #181818);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.5px;
}
.tb-status-pill.is-progress,
.tb-row-mark.is-progress { background: #9EF2FF; }
.tb-status-pill.is-submitted,
.tb-row-mark.is-submitted { background: #91E9F7; }
.tb-status-pill.is-closed,
.tb-row-mark.is-closed { background: #AADFFF; }
.tb-status-pill.is-scoping,
.tb-row-mark.is-scoping { background: #D6DAFC; }
.tb-status-pill.is-estimate,
.tb-row-mark.is-estimate { background: #F2D5FF; }
.tb-status-pill.is-paused,
.tb-row-mark.is-paused { background: #F6C8E7; }
.tb-status-pill.is-uat,
.tb-row-mark.is-uat { background: #F8BDD0; }
.tb-status-pill.is-ready,
.tb-row-mark.is-ready { background: #FFB6C0; }
.tb-status-pill.is-deployed,
.tb-row-mark.is-deployed { background: #FB9DAA; }
.tb-status-pill.is-other,
.tb-row-mark.is-other { background: #e5e7eb; }
.tb-check {
  width: 36px;
  text-align: center;
  vertical-align: middle;
}
.tb-row-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  vertical-align: middle;
}
.tb-row-mark .tb-status-glyph {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.tb-status-glyph {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}
.tb-status-count { color: #6b7280; font-size: 0.85rem; }
.tb-status-body {
  margin-top: 0.45rem;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
}
.tb-status-scroll { overflow-x: auto; }
.tb-status-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
.tb-status-pager-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #6b7280;
  font-size: 0.82rem;
}
.tb-status-pager-meta .form-select {
  width: auto;
  min-width: 4.2rem;
  border-radius: 999px;
}
.tb-status-range { margin-left: 0.35rem; }
.tb-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
body.tb-page .tb-table thead {
  border-radius: 13px 13px 0 0;
  border: 1px solid var(--Shades-100, #D0D0D0);
  background: var(--Shades-10, #FAFAFA);
}
body.tb-page .tb-table thead th {
  background: var(--Shades-10, #FAFAFA);
  border-top: 1px solid var(--Shades-100, #D0D0D0);
  border-bottom: 1px solid var(--Shades-100, #D0D0D0);
  color: var(--neutrals-neutral-900-main, #181818);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.5px;
}
body.tb-page .tb-table thead th:first-child {
  border-left: 1px solid var(--Shades-100, #D0D0D0);
  border-top-left-radius: 13px;
}
body.tb-page .tb-table thead th:last-child {
  border-right: 1px solid var(--Shades-100, #D0D0D0);
  border-top-right-radius: 13px;
}
.tb-table th {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.7rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}
.tb-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
  font-size: 0.9rem;
  color: #171717;
}
.tb-task-name { font-weight: 700; line-height: 1.35; }
.tb-so { color: #9ca3af; font-size: 0.78rem; margin-top: 0.15rem; }
.tb-id { white-space: nowrap; color: #374151; }
.tb-id-mark {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #22d3ee;
  vertical-align: middle;
}
.tb-tag-chip {
  display: inline-flex;
  margin: 0.1rem 0.2rem 0.1rem 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  font-size: 0.75rem;
  background: #fff;
}
.task-time-readonly {
  cursor: default;
  pointer-events: none;
}
.tb-priority { position: relative; display: inline-block; }
.tb-priority-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.tb-priority-placeholder,
.tb-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #9ca3af;
  font-size: 0.78rem;
  background: #fff;
}
.tb-priority-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  min-width: 9rem;
  padding: 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.tb-priority-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.5rem;
  border-radius: 0.45rem;
  text-align: left;
  font-size: 0.85rem;
}
.tb-priority-option:hover { background: #f3f4f6; }
.tb-decision-actions { display: inline-flex; gap: 0.35rem; margin-top: 0.4rem; }
.tb-decision-btn {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  line-height: 1;
}
.tb-decision-btn.is-yes { color: #059669; border-color: #6ee7b7; }
.tb-decision-btn.is-no { color: #e11d48; border-color: #fda4af; }
.tb-decision-btn:disabled { opacity: 0.45; cursor: default; }
.tb-decision {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tb-decision-approved { background: #d1fae5; color: #047857; }
.tb-decision-rejected { background: #ffe4e6; color: #be123c; }
.tb-query-note {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.86rem;
}
.tb-char-count { text-align: right; color: #9ca3af; font-size: 0.75rem; }
.tb-query-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}
.tb-query-cancel {
  padding: 0.45rem 1rem;
  border: 1.5px solid #fb7185;
  border-radius: 999px;
  background: #fff;
  color: #e11d48;
  font-weight: 600;
}
.tb-query-send { width: auto; margin: 0; }
.tb-verify {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  transform: translate(-50%, -120%);
  transition: transform 600ms ease-out;
}
.tb-verify.is-in { transform: translate(-50%, 16px); }
.tb-verify.is-out {
  transform: translate(-50%, -120%);
  transition-timing-function: ease-in;
}
.tb-verify-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}
.tb-empty-row { color: #6b7280; padding: 1rem !important; }

.cp-nav-count {
  display: inline-block;
  margin-left: 0.45rem;
  min-width: 1.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
}

.cp-query-unread .cp-query-client {
  font-weight: 600;
}

.cp-spin {
  display: inline-block;
  animation: cp-spin 0.75s linear infinite;
}

@keyframes cp-spin {
  to { transform: rotate(360deg); }
}

.cp-sidebar .nav-header.cp-sidebar-quick-links-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.9rem 1.15rem 0.35rem;
  margin: 0;
}

.cp-sidebar-quick-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-recent-activity {
  margin-top: auto;
  padding: 0.85rem 1rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-recent-activity-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  color: #d1d5db;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0 0.65rem;
}

.cp-recent-activity-toggle .bi {
  transition: transform 0.15s ease;
}

.cp-recent-activity-toggle[aria-expanded="false"] .bi {
  transform: rotate(180deg);
}

.cp-activity-empty {
  color: #9ca3af;
  font-size: 0.75rem;
}

.cp-activity-item {
  display: flex;
  gap: 0.55rem;
  padding: 0.4rem 0;
}

.cp-activity-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.cp-activity-dot.is-blue {
  background: #3b82f6;
}

.cp-activity-dot.is-green {
  background: #22c55e;
}

.cp-activity-title {
  color: #f3f4f6;
  font-size: 0.8rem;
  line-height: 1.3;
}

.cp-activity-time {
  color: #9ca3af;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

/* Stat cards */
.cp-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  color: #fff;
}

.cp-stat-card .inner h3,
.cp-stat-card .inner p,
.cp-stat-card .small-box-footer {
  color: #fff;
}

.cp-stat-card .icon {
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
  font-size: 1.6rem;
}

.cp-stat-card .small-box-footer {
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none;
  margin: 0 -1.25rem -1.25rem;
  padding: 0.55rem 1.25rem;
}

.cp-stat-card .small-box-footer:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.cp-stat-users {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.cp-stat-admins {
  background: linear-gradient(135deg, #14b8a6 0%, #059669 100%);
}

.cp-stat-clients {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

/* Recent users table */
.cp-table-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--cp-border);
  padding: 0.9rem 1.15rem;
}

.cp-users-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  font-weight: 600;
  background: #f9fafb;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.cp-badge-admin {
  background: #16a34a;
  color: #fff;
}

.cp-badge-client {
  background: #6b7280;
  color: #fff;
}

.cp-badge-role {
  background: #1d4ed8;
  color: #fff;
}

.cp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.card.users-table-card > .card-header.users-card-header,
.card.clients-table-card > .card-header.clients-card-header,
.card.resources-table-card > .card-header.resources-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid var(--cp-border);
  padding: 0.9rem 1.15rem;
}

.card.users-table-card > .card-header .users-card-header-actions,
.card.clients-table-card > .card-header .clients-card-header-actions,
.card.resources-table-card > .card-header .resources-card-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.users-add-btn,
.clients-add-btn,
.resources-add-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .card.users-table-card > .card-header .users-card-header-actions,
  .card.clients-table-card > .card-header .clients-card-header-actions,
  .card.resources-table-card > .card-header .resources-card-header-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .users-add-btn,
  .clients-add-btn,
  .resources-add-btn {
    margin-left: auto;
  }
}

.cp-date-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  background: #fed7aa;
  color: #9a3412;
  font-weight: 600;
  font-size: 0.8rem;
}

.cp-budget-progress {
  height: 0.75rem;
  border-radius: 999px;
  background: #e5e7eb;
}

.cp-email-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: calc(2.375rem + 2px);
  padding: 0.35rem 0.5rem;
  cursor: text;
}

.cp-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.15rem 0.45rem 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.8rem;
  font-weight: 600;
}

.cp-email-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
  padding: 0;
  font-size: 1rem;
}

.cp-email-chips-input {
  flex: 1 1 10rem;
  min-width: 8rem;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 0.15rem 0.25rem;
}

/* Navigation loading modal: dimmed backdrop, dark card, brand-gradient progress bar.
   States are driven by public/js/page-loader.js (is-visible → is-leaving → hidden). */
.cp-page-loader {
  --cp-brand-gradient: linear-gradient(90deg, #f3697d 0%, #e9a9ff 50%, #22d3ee 100%);
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(3px);
  opacity: 1;
  transition: opacity 0.22s ease;
}

.cp-page-loader.is-visible {
  display: flex;
}

.cp-page-loader.is-leaving {
  opacity: 0;
}

html.cp-loader-active,
html.cp-loader-active body {
  overflow: hidden;
}

.cp-page-loader-card {
  display: flex;
  width: 358px;
  max-width: 100%;
  padding: 28.149px 35.367px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18.766px;
  box-sizing: border-box;
  background: #171717;
  border: 1px solid #2c2c30;
  border-radius: 1.35rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--cp-font);
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease;
}

.cp-page-loader.is-leaving .cp-page-loader-card {
  transform: translateY(4px) scale(0.98);
}

.cp-page-loader-logo {
  display: block;
  width: 36.09px;
  height: 36.089px;
  flex-shrink: 0;
}

.cp-page-loader-title {
  margin: 0;
  font-family: Poppins, sans-serif;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
}

.cp-page-loader-track {
  position: relative;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

/* Full-width gradient clipped from the right, so colours stay fixed while it fills. */
.cp-page-loader-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cp-brand-gradient);
  clip-path: inset(0 100% 0 0 round 999px);
  /* Shorter than the JS trickle step (180ms) so the bar keeps pace with the % label. */
  transition: clip-path 0.16s linear;
}

.cp-page-loader-text {
  align-self: flex-start;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
  .cp-page-loader-card {
    border-radius: 1.15rem;
  }

  .cp-page-loader-logo {
    width: 36.09px;
    height: 36.089px;
  }

  .cp-page-loader-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-page-loader,
  .cp-page-loader-card,
  .cp-page-loader-fill {
    transition: none;
  }
}

/* Client feedback form */
.cp-feedback {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.cp-feedback-card {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 0.9rem;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.cp-feedback-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 0.85rem;
}

.cp-feedback-lede {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.cp-feedback-field {
  margin: 1.35rem 0 0;
}

.cp-feedback-label {
  display: block;
  font-weight: 600;
  color: #101828;
  margin-bottom: 0.45rem;
}

.cp-feedback-label-bar {
  background: #f3f4f6;
  padding: 0.55rem 0.75rem;
  border-radius: 0.4rem 0.4rem 0 0;
  margin-bottom: 0;
}

.cp-required {
  color: #dc2626;
  margin-left: 0.15rem;
}

.cp-feedback-hint {
  color: #6b7280;
  font-size: 0.82rem;
  margin: 0 0 0.45rem;
}

.cp-feedback-input {
  display: block;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.45rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  color: #101828;
  background: #fff;
}

.cp-feedback-input:focus {
  outline: 0;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.cp-feedback-textarea {
  min-height: 8rem;
  resize: vertical;
}

.cp-feedback-field.is-invalid .cp-feedback-input,
.cp-feedback-field.is-invalid .cp-chip-select-control,
.cp-feedback-field.is-invalid .cp-dropzone {
  border-color: #dc2626;
}

.cp-feedback-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #dc2626;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.cp-feedback-error[hidden] {
  display: none;
}

.cp-chip-select {
  position: relative;
}

.cp-feedback-field:has(.cp-chip-select.is-open) {
  position: relative;
  z-index: 30;
}

.cp-chip-select-control {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.45rem;
  background: #fff;
  padding: 0.4rem 0.7rem;
  text-align: left;
}

.cp-chip-select-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cp-chip-placeholder {
  color: #9ca3af;
  font-size: 0.95rem;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  background: #fde2e4;
  color: #101828;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.cp-chip-select-menu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
}

.cp-chip-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.35rem;
  cursor: pointer;
  margin: 0;
}

.cp-chip-option:hover {
  background: #f9fafb;
}

.cp-dropzone {
  position: relative;
  border: 1px dashed #d1d5db;
  border-radius: 0 0 0.5rem 0.5rem;
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
}

.cp-dropzone.is-dragover {
  border-color: #101828;
  background: #f9fafb;
}

.cp-dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cp-dropzone-copy {
  color: #6b7280;
  font-size: 0.95rem;
}

.cp-dropzone-link {
  border: 0;
  background: none;
  padding: 0;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.cp-dropzone-files {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: #4b5563;
  font-size: 0.85rem;
}

.cp-feedback-submit {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  border: 0;
  border-radius: 0.45rem;
  background: #101828;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1rem;
}

.cp-feedback-submit:hover {
  background: #000;
  color: #fff;
}

select.cp-feedback-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px 12px;
  padding-right: 2.4rem;
}

.cp-ticket-modal .modal-content {
  border: 0;
  border-radius: 0.85rem;
}

.cp-ticket-form .cp-feedback-field:first-of-type {
  margin-top: 0;
}

.cp-ticket-form .cp-feedback-submit {
  margin-top: 1.5rem;
}

.cp-ticket-multiselect-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cp-chip-select-control {
  cursor: pointer;
}

.cp-chip-select-caret {
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.cp-chip-select.is-open .cp-chip-select-caret {
  transform: rotate(180deg);
}

.cp-chip-remove {
  border: 0;
  background: transparent;
  margin-left: 0.35rem;
  padding: 0;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  font-size: 1rem;
}

.cp-chip-select-search {
  display: block;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.35rem;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.cp-chip-select-search:focus {
  outline: 0;
  border-color: #9ca3af;
}

.cp-chip-select-options {
  max-height: 14rem;
  overflow: auto;
}

.cp-chip-option .form-check-input {
  margin: 0;
  flex-shrink: 0;
}

.cp-chip-select-empty {
  padding: 0.55rem 0.6rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.cp-ticket-conditional[hidden] {
  display: none !important;
}

.select2-container--bootstrap-5 {
  width: 100% !important;
}

.select2-container--open {
  z-index: 2000;
}

.select2-container--bootstrap-5 .select2-selection--multiple {
  min-height: calc(2.25rem + 2px);
  padding-bottom: 0.15rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  background-color: #e8f0fe;
  border-color: #c5d8f8;
  color: #1e3a8a;
}

.cp-so-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: middle;
}

.invoices-table-card {
  border: 1px solid var(--cp-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  background: var(--cp-surface);
  overflow: hidden;
}

.card.invoices-table-card > .card-header.invoices-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: transparent;
  border-bottom: 1px solid var(--cp-border);
  padding: 1rem 1.25rem;
}

.card.invoices-table-card > .card-header .invoices-card-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.invoices-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cp-text);
}

.card.invoices-table-card .invoices-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0 auto;
  flex: 1 1 18rem;
  max-width: 30rem;
  min-width: 0;
}

.card.invoices-table-card > .card-header .invoices-card-header-actions .invoices-search-row {
  margin-left: 0;
}

.invoices-search-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

button.client-invoice-view.invoices-search-btn,
#logInvoiceModal .modal-footer .client-invoice-view {
  margin-left: 0;
}

.invoices-search {
  position: relative;
  width: min(100%, 22rem);
  flex: 1 1 16rem;
  max-width: 22rem;
  margin: 0;
}

.card.invoices-table-card .invoices-search-row .invoices-search {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}

.invoices-log-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .card.invoices-table-card > .card-header .invoices-card-header-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .card.invoices-table-card .invoices-search-row,
  .invoices-search {
    flex: 1 1 12rem;
    max-width: none;
  }

  .card.invoices-table-card .invoices-search-row {
    width: 100%;
  }

  .invoices-log-btn {
    margin-left: auto;
  }
}

.invoices-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
  pointer-events: none;
}

.invoices-search-input {
  border-radius: 999px;
  padding-left: 2.15rem;
  background: #f9fafb;
  border-color: var(--cp-border);
  font-size: 0.875rem;
}

.invoices-search-input:focus {
  background: #fff;
}

.invoices-table {
  margin-bottom: 0;
}

.invoices-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid var(--cp-border);
  white-space: nowrap;
  padding: 0.7rem 1.25rem;
}

.invoices-table tbody td,
.invoices-table tfoot th {
  padding: 0.85rem 1.25rem;
  vertical-align: middle;
  border-color: var(--cp-border);
}

.invoices-table tbody tr:nth-child(odd) {
  background: #f9fafb;
}

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

.invoices-table tfoot th {
  background: #fff;
  font-weight: 700;
}

.invoices-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.invoices-status.is-paid {
  background: #dcfce7;
  color: #15803d;
}

.invoices-status.is-unpaid {
  background: #fef3c7;
  color: #b45309;
}

.invoices-status.is-other {
  background: #ffe4e6;
  color: #be123c;
}

.invoices-status.is-empty {
  background: #f3f4f6;
  color: #6b7280;
}

.invoices-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #93c5fd;
  color: #2563eb;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.invoices-preview-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #60a5fa;
}

.invoices-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: transparent;
  border-top: 1px solid var(--cp-border);
  padding: 0.75rem 1.25rem;
}

.invoices-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.invoices-pager-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
  text-decoration: none;
}

.invoices-pager-dot.is-active {
  background: #6b7280;
}

.invoices-pager-arrow {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  padding: 0 0.15rem;
}

.invoices-pager-arrow:hover:not(.is-disabled) {
  color: #4b5563;
}

.invoices-pager-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.invoice-preview-sheet {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm;
  }

  html,
  body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .app-header,
  .app-sidebar,
  .app-footer,
  .app-content-header,
  .sidebar-overlay,
  .invoice-preview-actions,
  .client-invoice-toolbar,
  .cp-summaries-crumb,
  .cp-summaries-title,
  .cp-page-loader,
  .page-loader,
  .cp-toast-stack {
    display: none !important;
  }

  .app-wrapper,
  .app-main,
  .app-content,
  .container-fluid,
  .client-invoices {
    display: block !important;
    position: static !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .client-invoice-sheet,
  .invoice-preview-sheet {
    position: static !important;
    border: 0;
    box-shadow: none;
    max-width: none;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .client-invoice-sheet *,
  .client-invoice-tagline,
  .client-invoice-lines thead th,
  .client-invoice-paid {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .client-invoice-brand p.client-invoice-tagline {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

.summaries-timeline-card {
  border: 1px solid var(--cp-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.summary-month {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--cp-border);
}

.summary-month:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.summary-month-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.summary-body h2,
.summary-body h3,
.summary-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.summary-body p,
.summary-body ul,
.summary-body ol {
  margin-bottom: 0.75rem;
}

.cp-toast-stack {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}

.cp-toast-stack.cp-toast-stack-end {
  top: calc(3.5rem + 0.85rem);
  left: auto;
  right: 1.25rem;
  align-items: flex-end;
  max-width: calc(100vw - 2.5rem);
}

.cp-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 280px;
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #e8f8ee;
  color: #101828;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(calc(-100% - 2.5rem));
  transition: transform 600ms ease-out;
}

.cp-toast.is-in {
  transform: translateY(0);
}

.cp-toast.is-out {
  transform: translateY(calc(-100% - 2.5rem));
  transition-timing-function: ease-in;
}

.cp-toast .bi {
  color: #22c55e;
  font-size: 1.25rem;
  flex: none;
}

.cp-toast span {
  flex: 1;
}

.cp-toast-close {
  border: 0;
  background: transparent;
  color: #101828;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .cp-toast {
    transition: none;
  }
}

/* Profile hub, security screen, and legal documents */
.cp-prof {
  max-width: 1100px;
  padding-bottom: 2rem;
}

.cp-prof-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: #9ca3af;
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
}

.cp-prof-crumbs a {
  color: #9ca3af;
  text-decoration: none;
}

.cp-prof-crumbs a:hover {
  color: #101828;
}

.cp-prof-crumbs [aria-current="page"] {
  color: #101828;
}

.cp-prof-heading {
  margin: 0;
  color: #101828;
  /* Headings/H4/Semi Bold/Desktop */
  font-family: Poppins;
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: 36px; /* 128.571% */
  letter-spacing: -1px;
}

.cp-prof-subhead {
  margin: 0.2rem 0 1rem;
  color: #9ca3af;
}

.cp-prof-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cp-prof-saved {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.cp-prof-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--Shades-50, #E7E7E7);
  background: linear-gradient(270deg, #FFF 42.31%, #BFF2FA 51.37%, #8EE8F6 56.61%, #22D3EE 67.72%, #98BAF8 75.93%, #BFB2FB 80.87%, #EC94D5 86.5%, #F3697D 95.7%);
  margin-bottom: 1.1rem;
}

.cp-prof-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  color: #fff;
  font-weight: 500;
}

.cp-prof-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-prof-logo input {
  display: none;
}

.cp-prof-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: #fff;
}

.cp-prof-banner-copy strong {
  font-size: 1.05rem;
}

.cp-prof-banner-copy span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.cp-prof-verified {
  margin-left: auto;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #079455;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.cp-prof-intro {
  color: #454545;
  margin: 0 0 1rem;
}

.cp-prof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cp-prof-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.3rem 1rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cp-prof-card:hover {
  color: inherit;
  border-color: #d1d5db;
}

.cp-prof-card h2 {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.cp-prof-card p {
  margin: 0;
  color: #000;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cp-prof-card-action {
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-end;
  font-weight: 600;
  font-size: 0.92rem;
}

.cp-prof-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.cp-prof-icon-pink { background: rgba(243, 105, 125, 0.086); box-shadow: inset 0 0 0 0.75px rgba(243, 105, 125, 0.25); color: #F3697D; }
.cp-prof-icon-violet { border-radius: 10px; border: 0.741px solid rgba(167, 139, 250, 0.25); background: rgba(167, 139, 250, 0.09); color: #A78BFA; }
.cp-prof-icon-blue { border-radius: 10px; border: 0.741px solid rgba(111, 194, 244, 0.25); background: rgba(111, 194, 244, 0.09); color: #6FC2F4; }
.cp-prof-icon-cyan { border-radius: 10px; border: 0.741px solid rgba(34, 211, 238, 0.25); background: rgba(34, 211, 238, 0.09); color: #22D3EE; }

.cp-prof-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  color: #181818;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #22d3ee 0%, #67e8f9 34%, #f9a8d4 68%, #fb7185 100%) border-box;
  margin-bottom: 1rem;
text-align: center;
font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 20px; /* 142.857% */
letter-spacing: -0.5px;
}

.cp-prof-back:hover { color: #101828; }

.cp-prof-info .cp-prof-back {
  color: #101828;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-info .cp-prof-back:hover {
  color: #fff;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1rem;
}

.cp-prof-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cp-prof-panel-head h2 {
  margin: 0;
  color: #181818;
/* Paragraph/Medium/Semi Bold */
font-family: Poppins;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 24px; /* 150% */
letter-spacing: -0.5px;
}

.cp-prof-panel-head p {
  margin: 0.2rem 0 0;
  color: var(--Shades-400, #8B8B8B);
  /* Paragraph/XSmall/Regular */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}

.cp-prof-panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cp-prof-ghost,
.cp-prof-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  text-decoration: none;
  cursor: pointer;
  
text-align: center;
/* Paragraph/Small/Medium */
font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 20px; /* 142.857% */
letter-spacing: -0.5px;
}

.cp-prof-ghost {
  border: 1.5px solid transparent;
  color: #101828;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-ghost:hover {
  color: #fff;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-solid {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#171717, #171717) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
}

.cp-prof-solid:hover,
#profile-save:hover {
  color: #171717;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

#profile-save {
  border: 1.5px solid transparent;
  color: #fff;
  background:
    linear-gradient(#171717, #171717) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.cp-prof-field {
  position: relative;
  display: block;
  margin: 0 0 0.9rem;
}

.cp-prof-fields .cp-prof-field {
  margin: 0;
}

.cp-prof-field > span:first-child,
.cp-prof-field > span:not(.cp-prof-phone):not(.cp-ug-secret):not(.select2) {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  z-index: 1;
}

.cp-ug .cp-prof-field select {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background-color: #fff;
  color: #101828;
  padding: 0.75rem 2.4rem 0.75rem 1.15rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.cp-ug .cp-prof-field select:focus,
.cp-ug .cp-prof-field textarea:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.cp-role-form .cp-prof-field:focus-within > span:first-child,
.cp-role-form .cp-prof-field.is-filled > span:first-child {
  color: #22d3ee;
}

.cp-role-form .cp-prof-field input:focus,
.cp-role-form .cp-prof-field.is-filled input,
.cp-role-form .cp-prof-field select:focus,
.cp-role-form .cp-prof-field.is-filled select,
.cp-role-form .cp-prof-field textarea:focus,
.cp-role-form .cp-prof-field.is-filled textarea {
  outline: none;
  border: 1.5px solid transparent;
  box-shadow: none;
}

.cp-role-form .cp-prof-field input:focus,
.cp-role-form .cp-prof-field.is-filled input,
.cp-role-form .cp-prof-field textarea:focus,
.cp-role-form .cp-prof-field.is-filled textarea {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-role-form .cp-prof-field select:focus,
.cp-role-form .cp-prof-field.is-filled select {
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"),
    linear-gradient(#fff, #fff),
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%);
  background-repeat: no-repeat;
  background-position: right 1rem center, center, center;
  background-size: 16px 16px, auto, auto;
  background-origin: padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, border-box;
}

.cp-ug .cp-prof-field textarea {
  width: 100%;
  min-height: 6.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #101828;
  padding: 0.9rem 1.15rem;
  resize: vertical;
}

.cp-ug-rights .cp-prof-field small {
  display: block;
  margin-top: 0.45rem;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cp-ug-req {
  color: #f3697d;
  font-style: normal;
}

.cp-ug-form {
  margin-top: 1rem;
}

.cp-ug-view-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.cp-ug-view-fields:disabled {
  opacity: 1;
}

.ug-group-name {
  font-weight: 600;
  white-space: normal;
  min-width: 8.5rem;
}

.ug-group-name small {
  display: block;
  margin-top: 0.1rem;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
}

.ug-matrix-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.ug-matrix-actions .admin-summary-action {
  margin-left: 0;
}

.ug-matrix-actions form,
#ug-delete-modal .modal-footer form {
  display: inline;
  margin: 0;
}

#ug-delete-modal .modal-footer {
  gap: 0.6rem;
}

.ug-matrix th {
  font-size: 0.72rem;
  line-height: 1.25;
}

.ug-matrix td {
  font-size: 0.84rem;
  white-space: nowrap;
}

.ug-setting {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ug-setting form {
  display: inline-flex;
  margin: 0;
}

.ug-setting .client-invoice-view,
.ug-setting .client-invoice-download {
  width: auto;
  min-width: 0;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  font-size: 12px;
  line-height: 18px;
}

.cp-prof-fields .cp-ug-span {
  grid-column: 1 / -1;
}

.cp-ug .cp-prof-field.cp-ug-above > span:first-child {
  position: static;
  transform: none;
  display: block;
  margin: 0 0 0.4rem 0.15rem;
  padding: 0;
  background: transparent;
  line-height: 1.2;
}

.cp-role-form .cp-ug-stack {
  margin-top: 1.15rem;
  overflow: visible;
}

.cp-multi-field {
  display: block;
  min-width: 0;
}

.cp-multi-field > span {
  display: block;
  position: static;
  transform: none;
  margin: 0 0 0.45rem;
  padding: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.2;
}

.cp-multi-field:focus-within > span,
.cp-multi-field.is-filled > span,
.cp-multi-field:has(.select2-container--open) > span,
.cp-multi-field:has(.select2-container--focus) > span {
  color: #22d3ee;
}

.cp-multi-field .select2-container {
  display: block;
  width: 100% !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

.cp-multi-field .select2-container--bootstrap-5 .select2-selection--multiple {
  position: relative;
  min-height: 3.15rem;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #fff !important;
  background-image: none !important;
  padding: 0.45rem 2.5rem 0.45rem 0.75rem !important;
  overflow: visible;
}

.cp-multi-field .select2-container--focus .select2-selection--multiple,
.cp-multi-field .select2-container--open .select2-selection--multiple,
.cp-multi-field.is-filled .select2-selection--multiple {
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box !important;
}

.cp-multi-field .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.cp-multi-field .select2-selection__clear {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.cp-multi-field .cp-ug-hint {
  display: block;
  position: static;
  margin-top: 0.4rem;
  overflow: visible;
}

.cp-role-form .cp-article-field .tox-tinymce {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}

.cp-role-form .cp-article-field.is-invalid .tox-tinymce {
  border: 1.5px solid #F3697D !important;
  box-shadow: 0 0 0 3px rgba(243, 105, 125, 0.14);
}

#client-group-fields {
  display: block;
  margin-top: 1rem;
  min-inline-size: 0;
}

.cp-ug-secret {
  position: relative;
  display: block;
}

.cp-ug-secret input {
  padding-right: 2.8rem;
}

.cp-ug-secret button {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7280;
  padding: 0;
  line-height: 1;
}

.cp-ug-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1rem 0 1.15rem;
}

.cp-ug-check input {
  margin-top: 0.2rem;
}

.cp-ug-check strong,
.cp-ug-check small {
  display: block;
}

.cp-ug-check small {
  color: #6b7280;
  font-size: 0.8rem;
}

.cp-ug-field-error {
  color: #f3697d;
}

.cp-ug-field-error:empty {
  display: none;
}

.cp-ug-plain-label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.cp-ug-hint {
  display: block;
  margin-top: 0.35rem;
  color: #9ca3af;
  font-size: 0.78rem;
}

.cp-ug .select2-container--bootstrap-5 .select2-selection {
  border-radius: 12px;
  min-height: 3.15rem;
  border-color: #e5e7eb;
}

form[data-view-only] .select2-container--disabled .select2-selection {
  background: #fff;
  opacity: 1;
  cursor: default;
}

.cp-ug-assign-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.cp-ug-assign-fields.is-locked {
  opacity: 0.55;
}

.cp-ug-assign-bar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.cp-ug-assign-hint {
  margin: 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.cp-ug-assign {
  border: 0;
  border-radius: 8px;
  background: #f6b26b;
  color: #3f2a12;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.48rem 0.95rem;
  cursor: pointer;
}

.cp-ug-assign:hover {
  background: #f0a24e;
}

.cp-ug-members {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cp-ug-member {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
}

.cp-ug-member .cp-prof-field {
  margin: 0;
}

.cp-ug-member-meta span {
  display: block;
  color: #9ca3af;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.cp-ug-member-meta strong {
  display: block;
  color: #101828;
  font-weight: 600;
  font-size: 0.95rem;
}

.cp-ug-remove {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  cursor: pointer;
}

.cp-ug-remove:hover {
  color: #f3697d;
}

.cp-ug-name {
  display: block;
  max-width: 28rem;
  margin: 1.25rem 0 0;
}

.cp-ug-name + .cp-ug-name {
  margin-top: 1rem;
}

.cp-ug-name + .cp-ug-rights-title {
  margin-top: 1.75rem;
}

.cp-ug-name span,
.cp-ug-rights-title,
.cp-ug-right span {
  display: block;
  color: #101828;
  font-weight: 600;
}

.cp-ug-name span,
.cp-ug-rights-title {
  margin-bottom: 0.55rem;
}

.cp-ug-rights-title {
  font-size: 1rem;
}

.cp-ug-name input,
.cp-ug-name textarea,
.cp-ug-right select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  padding: 0.55rem 0.9rem;
}

.cp-ug-right select {
  appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.cp-ug-name textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.cp-ug-name input:focus,
.cp-ug-name textarea:focus,
.cp-ug-right select:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.cp-ug-rights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 2rem;
  margin-bottom: 1.5rem;
}

.cp-ug-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.cp-ug-right small {
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cp-ug-rights .cp-prof-field,
.cp-ug-status .cp-prof-field {
  margin: 0;
}

.cp-ug-status .cp-prof-field {
  max-width: 320px;
}

.cp-ug-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 0.25rem 0 1.5rem;
}

@media (max-width: 720px) {
  .cp-ug-rights,
  .cp-ug-member {
    grid-template-columns: 1fr;
  }
}

.cp-prof-field input,
.cp-prof-phone {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  padding: 0.75rem 1.15rem;
}

.cp-prof-phone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-right: 0.7rem;
}

.cp-prof-phone input[type="tel"] {
  flex: 1;
  width: auto;
  min-height: 0;
  margin-left: 0.65rem;
  padding: 0 0 0 0.85rem;
  border: 0;
  
}

/* The pill wrapper shows focus; the inner tel input never draws its own ring/border. */
.cp-prof-phone input[type="tel"]:focus,
.cp-prof-phone input[type="tel"]:focus-visible {
  outline: none;
  box-shadow: none;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.cp-prof-dial:focus,
.cp-prof-dial:focus-visible {
  outline: none;
}

.cp-prof-dial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: #101828;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.cp-prof-dial:disabled {
  cursor: default;
}

.cp-prof-flag,
.cp-prof-dial-menu img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.12);
}

.cp-prof-dial .bi {
  font-size: 0.7rem;
  color: #6b7280;
}

.cp-prof-dial-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0.6rem;
  z-index: 30;
  width: 16.5rem;
  max-height: 15rem;
  margin: 0;
  padding: 0.35rem;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.cp-prof-dial-menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #101828;
  padding: 0.4rem 0.5rem;
  text-align: left;
}

.cp-prof-dial-menu button span:last-child {
  margin-left: auto;
  color: #6b7280;
  font-weight: 600;
}

.cp-prof-dial-menu button:hover,
.cp-prof-dial-menu button.is-selected {
  background: #f3f4f6;
}


.cp-prof-field small {
  display: block;
  margin-top: 0.3rem;
  color: #9ca3af;
  font-size: 0.78rem;
}

.cp-prof-field-current {
  max-width: 520px;
}

.cp-prof-field input[type="password"]::-ms-reveal,
.cp-prof-field input[type="password"]::-ms-clear {
  display: none;
}

.cp-prof-eye-btn {
  position: absolute;
  right: 0.85rem;
  top: 1.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  color: #9ca3af;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.cp-prof-eye-btn .bi {
  font-size: 1.05rem;
}

.cp-role-form .cp-prof-field:has(.cp-prof-eye-btn) input {
  padding-right: 2.8rem;
}

.cp-role-form .cp-prof-field.is-invalid input,
.cp-role-form .cp-prof-field.is-invalid:hover input,
.cp-role-form .cp-prof-field.is-invalid:focus-within input,
.cp-role-form .cp-prof-field.is-invalid select,
.cp-role-form .cp-prof-field.is-invalid:hover select,
.cp-role-form .cp-prof-field.is-invalid:focus-within select,
.cp-role-form .cp-prof-field.is-invalid textarea,
.cp-role-form .cp-prof-field.is-invalid:hover textarea,
.cp-role-form .cp-prof-field.is-invalid:focus-within textarea {
  border: 1.5px solid #F3697D !important;
  background-color: #fff !important;
  box-shadow: none;
}

.cp-role-form .cp-prof-field.is-invalid input,
.cp-role-form .cp-prof-field.is-invalid:hover input,
.cp-role-form .cp-prof-field.is-invalid:focus-within input,
.cp-role-form .cp-prof-field.is-invalid textarea,
.cp-role-form .cp-prof-field.is-invalid:hover textarea,
.cp-role-form .cp-prof-field.is-invalid:focus-within textarea {
  background: #fff !important;
  background-image: none !important;
}

.cp-role-form .cp-prof-field.is-invalid select,
.cp-role-form .cp-prof-field.is-invalid:hover select,
.cp-role-form .cp-prof-field.is-invalid:focus-within select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 1rem center / 16px 16px no-repeat !important;
}

.cp-role-form .cp-prof-field.is-invalid:focus-within input,
.cp-role-form .cp-prof-field.is-invalid:focus-within select,
.cp-role-form .cp-prof-field.is-invalid:focus-within textarea {
  box-shadow: 0 0 0 3px rgba(243, 105, 125, 0.14);
}

.cp-role-form .cp-prof-field.is-invalid > span:first-child,
.cp-role-form .cp-prof-field.is-invalid:focus-within > span:first-child,
.cp-role-form .cp-prof-field.is-invalid.is-filled > span:first-child {
  color: #F3697D !important;
  -webkit-text-fill-color: #F3697D !important;
}

.cp-role-form .cp-prof-field .select2-container--bootstrap-5 .select2-selection--multiple {
  min-height: 3.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.9rem;
}

.cp-role-form .cp-prof-field:focus-within .select2-selection--multiple,
.cp-role-form .cp-prof-field.is-filled .select2-selection--multiple,
.cp-role-form .cp-prof-field:has(.select2-container--open) .select2-selection--multiple,
.cp-role-form .cp-prof-field:has(.select2-container--focus) .select2-selection--multiple {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-role-form .cp-prof-field:has(.select2-container--open) > span:first-child,
.cp-role-form .cp-prof-field:has(.select2-container--focus) > span:first-child {
  color: #22d3ee;
}

.cp-role-form .cp-prof-field.is-invalid .select2-selection--multiple,
.cp-role-form .cp-prof-field.is-invalid:focus-within .select2-selection--multiple {
  border: 1.5px solid #F3697D !important;
  background: #fff !important;
  box-shadow: none;
}

.cp-role-form .cp-prof-field.is-invalid:focus-within .select2-selection--multiple,
.cp-role-form .cp-prof-field:has(.select2-container--focus).is-invalid .select2-selection--multiple {
  box-shadow: 0 0 0 3px rgba(243, 105, 125, 0.14);
}

.cp-rate-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 0.15rem 0.85rem 0.15rem 0.35rem;
}

.cp-rate-pill input {
  width: 100%;
  min-height: 2.2rem;
  border: 0;
  background: transparent;
  color: #101828;
  text-align: right;
  padding: 0.35rem 0.4rem;
  outline: none;
  box-shadow: none;
}

.cp-rate-pill input:focus {
  outline: none;
  box-shadow: none;
}

.cp-rate-pill span {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.cp-rate-pill:focus-within {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-eye-btn:hover {
  color: #4b5563;
}

.cp-prof-panels.is-editing .cp-prof-field-role small {
  display: none;
}

.cp-prof-panels.is-editing .cp-prof-field-name input,
.cp-prof-panels.is-editing .cp-prof-field-phone .cp-prof-phone,
.cp-prof-panels.is-editing .cp-prof-field-role input {
  border: 1.5px solid transparent !important;
  border-radius: 999px;
  outline: none;
  box-shadow: none;
  background-color: #fff;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(90deg, #22d3ee 0%, #67e8f9 34%, #f9a8d4 68%, #fb7185 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.cp-prof-panels.is-editing .cp-prof-field-name input:hover,
.cp-prof-panels.is-editing .cp-prof-field-phone .cp-prof-phone:hover,
.cp-prof-panels.is-editing .cp-prof-field-role input:hover {
  border-color: transparent !important;
}

/* Focused / filled: keep the Sivoxi gradient border and normal text; only .is-invalid goes red. */
.cp-prof-panels.is-editing .cp-prof-field-name input:focus,
.cp-prof-panels.is-editing .cp-prof-field-role input:focus,
.cp-prof-panels.is-editing .cp-prof-field-phone .cp-prof-phone:focus-within {
  color: #101828;
  -webkit-text-fill-color: #101828;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

/* Error: solid red border + red label, only set after a failed validation. */
.cp-prof-panels.is-editing .cp-prof-field-name.is-invalid input,
.cp-prof-panels.is-editing .cp-prof-field.is-invalid .cp-prof-phone,
.cp-prof-modal .cp-prof-field.is-invalid input,
.cp-prof-modal .cp-prof-field.is-invalid:hover input,
.cp-prof-modal .cp-prof-field.is-invalid:focus-within input {
  border: 1.5px solid #F3697D !important;
  background: #fff !important;
  background-image: none !important;
}

.cp-prof-panels.is-editing .cp-prof-field-name.is-invalid input:focus,
.cp-prof-panels.is-editing .cp-prof-field.is-invalid .cp-prof-phone:focus-within,
.cp-prof-modal .cp-prof-field.is-invalid:focus-within input {
  box-shadow: 0 0 0 3px rgba(243, 105, 125, 0.14);
}

.cp-prof-panels.is-editing .cp-prof-field.is-invalid > span:first-child,
.cp-prof-modal .cp-prof-field.is-invalid > span:first-child,
.cp-prof-modal .cp-prof-field.is-invalid:hover > span:first-child {
  color: #F3697D !important;
  -webkit-text-fill-color: #F3697D !important;
}

.cp-prof-field .cp-prof-error {
  display: block;
  margin: 0.35rem 0 0 1rem;
  color: #F3697D;
  font-size: 0.78rem;
}

.cp-prof-field .cp-prof-error[hidden] {
  display: none;
}

.cp-prof-panels.is-editing .cp-prof-field-email input,
.cp-prof-field-current input {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}

.cp-prof-panels.is-editing .cp-prof-field-name > span:first-child,
.cp-prof-panels.is-editing .cp-prof-field-phone > span:first-child,
.cp-prof-panels.is-editing .cp-prof-field-role > span:first-child {
  color: #22d3ee !important;
  background: #fff !important;
  -webkit-text-fill-color: #22d3ee !important;
}

.cp-prof-panels.is-editing .cp-prof-field-email > span,
.cp-prof-field-current > span:first-child {
  color: #6b7280;
  background: #fff;
  -webkit-text-fill-color: #6b7280;
}

.cp-prof-modal .modal-content {
  border: 0;
  border-radius: 18px;
  padding: 0.4rem;
}

.cp-prof-modal .modal-header,
.cp-prof-modal .modal-footer {
  border: 0;
}

.cp-prof-modal .modal-header {
  margin: 0 -0.4rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #f0f0f0;
}

.cp-prof-modal .modal-body {
  padding: 1.6rem 1.4rem 0.4rem;
}

.cp-prof-modal .modal-title {
 
  color: #111827;
font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 600;
line-height: 28px; /* 155.556% */
letter-spacing: -0.5px;

}

/* Fields: grey border while empty; gradient border, cyan label and asterisks once focused or filled. */
.cp-prof-modal .cp-prof-field {
  margin-bottom: 1.6rem;
}

.cp-prof-modal .cp-prof-field input {
  min-height: 2.85rem;
  border: 1px solid #a3a3a3;
  border-radius: 16px;
  padding: 0.7rem 3.1rem 0.6rem 0.9rem;
  outline: none;
  box-shadow: none;
  background: #fff;
  color: #181818;
  font-size: 0.95rem;
}

.cp-prof-modal .cp-prof-field input::placeholder {
  color: #a3a3a3;
  -webkit-text-fill-color: #a3a3a3;
  letter-spacing: normal;
}

.cp-prof-modal .cp-prof-field input[type="password"] {
  font-family: 'Password Mask', var(--cp-font);
  letter-spacing: 0.08em;
}

.cp-prof-modal .cp-prof-field input:focus,
.cp-prof-modal .cp-prof-field input:not(:placeholder-shown) {
  border-color: transparent;
  background-color: #fff;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(90deg, #f3697d 0%, #e9a9ff 50%, #22d3ee 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.cp-prof-modal .cp-prof-field > span:first-child {
  left: 0.65rem;
  padding: 0 0.3rem;
  color: #181818;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  -webkit-text-fill-color: #181818;
}

.cp-prof-modal .cp-prof-field:focus-within > span:first-child,
.cp-prof-modal .cp-prof-field:has(input:not(:placeholder-shown)) > span:first-child {
  color: #22d3ee;
  -webkit-text-fill-color: #22d3ee;
}

.cp-prof-modal .cp-prof-eye-btn {
  top: 1.425rem;
  right: 0.9rem;
  width: 1.5rem;
  height: 1.5rem;
  color: #181818;
}

.cp-prof-modal .cp-prof-eye-btn:hover {
  color: #000;
}

.cp-prof-eye-btn svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.cp-prof-eye-btn .cp-eye-on,
.cp-prof-eye-btn[aria-pressed="true"] .cp-eye-off {
  display: none;
}

.cp-prof-eye-btn[aria-pressed="true"] .cp-eye-on {
  display: block;
}

.cp-prof-modal .modal-footer {
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem 1.2rem;
}

.cp-prof-modal .modal-footer .cp-prof-ghost,
.cp-prof-modal .modal-footer .cp-prof-solid {
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  margin: 0;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  font-size:16px;
  font-weight: 500;


}

.cp-prof-modal .modal-footer .cp-prof-ghost {
  flex: 0 0 42%;
  color: #101828;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-modal .modal-footer .cp-prof-ghost:hover {
  color: #fff;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-modal .modal-footer .cp-prof-solid {
  flex: 1;
  color: #fff;
  background:
    linear-gradient(#171717, #171717) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-modal .modal-footer .cp-prof-solid:hover {
  color: #171717;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-prof-modal .modal-footer .cp-prof-solid .bi {
  font-size: 1.1rem;
}

.cp-prof-rules-title {
  margin: -0.4rem 0 0.6rem;
  color: #181818;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp-prof-rules {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.cp-prof-rules li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
 
  
  margin: 0.45rem 0;

  color: #B9B9B9;

font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 142.857% */
letter-spacing: -0.5px;

}

.cp-prof-rules li .bi {
  font-size: 0.8rem;
  line-height: 1;
}

.cp-prof-rules li.is-met {
  color: #22C55E;
}

.cp-legal-badge {
  display: inline-block;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  color: #6b7280;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.cp-legal-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cp-legal-title span {
  background: linear-gradient(90deg, #F3697D 60.1%, #E9A9FF 78.37%, #22D3EE 94.23%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cp-legal-date {
  color: #9ca3af;
  margin: 0.25rem 0 1.25rem;
}

.cp-legal-body {
  max-width: 820px;
  color: #101828;
  font-size: 0.98rem;
  line-height: 1.6;
}

.cp-legal-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 1.4rem 0 0.6rem;
}

.cp-legal-body p {
  margin: 0 0 0.8rem;
}

.cp-legal-body blockquote {
  margin: 0 0 0.75rem;
  padding: 0 0 0 0.2rem;
  border: 0;
  color: #101828;
}

@media (max-width: 800px) {
  .cp-prof-grid,
  .cp-prof-fields,
  .cp-prof-title-row,
  .cp-prof-panel-head,
  .cp-prof-banner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .cp-prof-verified,
  .cp-prof-saved {
    margin-left: 0;
    align-self: flex-start;
  }
}

/* Client summaries */
.cp-summaries {
  max-width: 1080px;
}

.cp-summaries-crumb {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.cp-summaries-crumb a,
.cp-summaries-crumb-btn {
  color: #9ca3af;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: none;
}

.cp-summaries-crumb a:hover,
.cp-summaries-crumb-btn:hover {
  color: #2563eb;
}

.cp-summaries-title {
  margin: 0;
  color: #101828;
font-family: Poppins;
font-size: 28px;
font-style: normal;
font-weight: 600;
line-height: 36px; /* 128.571% */
letter-spacing: -1px;

}

.summary-client-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.summary-client-name {
  color: #6b7280;
  font-size: 0.92rem;
}

.summary-entries {
  display: inline-flex;
  align-items: center;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.cp-summaries.is-detail [data-summary-list-only] {
  display: none;
}

.summary-search {
  position: relative;
  max-width: 26rem;
  margin: 1.1rem 0 0.85rem;
}

.summary-search i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.summary-search input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 0.55rem 1rem 0.55rem 2.45rem;
  font-size: 0.9rem;
  color: #101828;
  outline: none;
}

.summary-search input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cp-list-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.85rem;
}

.cp-list-filters .summary-search {
  margin: 0;
  flex: 1 1 18rem;
}

.cp-list-filters select,
.cp-summaries .summary-date-filter select {
  min-height: 2.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  padding: 0.4rem 2.2rem 0.4rem 1rem;
}

.cp-summaries .summary-date-filter {
  max-width: 18rem;
  margin: 1.1rem 0 0.85rem;
}

.cp-cron-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cp-settings-notes {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.cp-settings-notes a {
  color: #101828;
}

.cp-cron-presets button {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.summary-send-btn {
  display: flex;
  height: 45px;
  padding: 16px !important;
  justify-content: center;
  gap: 8px;
  flex: 1 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
  linear-gradient(#101828, #101828) padding-box,
  linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
  font-weight: 500;
  font-size: 16px !important;
  line-height: 24px; /* 150% */
  letter-spacing: -0.5px;
  cursor: pointer;
}

.summary-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(100deg, #fb7185, #22d3ee) border-box;
  padding: 0.45rem 1rem;
  cursor: pointer;
  color: var(--Shades-0, #FFF);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
}

.summary-query-btn {
  display: inline-flex;
  height: 35px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border-radius: 70px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#171717, #171717) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: var(--Shades-0, #FFF);
  text-align: center;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}

.summary-send-btn svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: block;
}

.summary-send-btn:hover {
  color: #fff;
  filter: brightness(1.08);
}

.summary-email-btn svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  display: block;
}

.summary-email-btn:hover {
  color: #171717;
  filter: none;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.summary-email-btn:hover svg path {
  stroke: #171717;
}

.summary-query-btn:hover {
  color: #171717;
  filter: none;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.summary-table-card {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.summary-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.summary-table th {
  background: #f9fafb;
  color: #81818;
  font-size: 0.78rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 20px; /* 142.857% */
letter-spacing: -0.5px;

}

.summary-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  color: #374151;
  font-size: 0.92rem;
}

.summary-date{
  color: var(--Shades-900, #171717);

  /* Paragraph/XSmall/Medium */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}

.summary-table tbody tr:last-child td {
  border-bottom: 0;
}

.summary-table tr[hidden] {
  display: none !important;
}

.summary-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #101828;
}

.summary-name-text {
  color: #0D1117;

  /* Paragraph/XSmall/Semi Bold */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}

.summary-row.is-unread .summary-name-text {
  font-weight: 600;
}

.summary-unread-dot {
  display: none;
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #2563eb;
}

.summary-row.is-unread .summary-unread-dot {
  display: inline-block;
}

.summary-row:not(.is-unread) .summary-unread-label {
  display: none;
}

.summary-date {
  color: #4b5563;
  font-variant-numeric: tabular-nums;
}

.summary-hours {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.82rem;
}

.summary-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #181818;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}

.summary-cancel-btn {
  color: #101828;
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.summary-back-btn {
  display: inline-flex;
  height: 35px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border-radius: 70px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #171717;
  text-align: center;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}

.summary-back-btn:hover {
  color: #fff;
  filter: none;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.summary-cancel-btn:hover {
  filter: brightness(0.98);
}

.summary-view-btn {
  box-sizing: border-box;
  display: flex;
  width: 120px;
  height: 30px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border: 1.5px solid transparent;
  border-radius: 70px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: var(--neutrals-neutral-900-main, #181818);
  text-align: center;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}

.summary-view-btn svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: block;
}

.summary-view-btn:hover {
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
  filter: none;
}

.summary-view-btn:hover svg path {
  stroke: #fff;
}

.summary-empty,
.summary-no-match {
  text-align: center;
  color: #6b7280;
  padding: 3rem 1rem;
}

.summary-empty {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.summary-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0;
}

.summary-doc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.75rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.summary-doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.summary-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
}

.summary-published {
  color: #9ca3af;
  font-size: 0.85rem;
}

.summary-doc-title {
  margin: 0 0 1rem;
font-family: Poppins;
font-size: 24px;
font-style: normal;
font-weight: 600;
line-height: 32px; 
letter-spacing: -1px;
  color: #101828;
}

.summary-doc-body {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.65;
}

.summary-doc-body h2,
.summary-doc-body h3 {
  margin: 1.35rem 0 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5e7eb;
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px; /* 155.556% */
  letter-spacing: -0.5px;
  color: #101828;
}

.summary-doc-body h2:first-child,
.summary-doc-body h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.summary-doc-body p {
  margin: 0 0 0.85rem;
}

.summary-doc-body ul,
.summary-doc-body ol {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.summary-doc-body li {
  position: relative;
  margin: 0 0 0.8rem;
  padding-left: 1.7rem;
}

.summary-doc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.2 8.2 6.3 11.3 12.8 4.7' stroke='%23f43f5e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Summary sections (wrappers added by decorateSummaryHtml) */
.summary-doc-body .summary-section {
  margin: 0 0 1rem;
}

/* A section heading keeps the divider other headings get, unless it opens the summary. */
.summary-doc-body .summary-section > h2:first-child,
.summary-doc-body .summary-section > h3:first-child {
  margin: 1.35rem 0 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5e7eb;

  font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 600;
line-height: 28px; /* 155.556% */
letter-spacing: -0.5px;
}

.summary-doc-body > .summary-section:first-child > h2:first-child,
.summary-doc-body > .summary-section:first-child > h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.summary-doc-body .summary-section ul,
.summary-doc-body .summary-section ol {
  margin-bottom: 0;
}

.summary-doc-body .summary-section strong {
  color: #181818;
  font-weight: 600;
}

/* Work completed: pink check, optional "1." numbering for ordered lists */
.summary-section--completed ol {
  counter-reset: summary-item;
}

.summary-section--completed li {
  padding-left: 2.1rem;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  background: no-repeat left 0.2rem top 0.3rem / 1.05rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%23F3697D' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.summary-section--completed li::before {
  content: none;
}

.summary-section--completed ol > li {
  counter-increment: summary-item;
}

.summary-section--completed ol > li::before {
  content: counter(summary-item) ". ";
  position: static;
  width: auto;
  height: auto;
  background: none;
  color: #181818;
  font-weight: 600;
}

/* In progress: cyan progress ring, smaller muted copy */
.summary-section--progress li {
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.55;
}

.summary-section--progress li::before {
  top: 0.18rem;
  width: 1.05rem;
  height: 1.05rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.99984 1.66797C5.39984 1.66797 1.6665 5.4013 1.6665 10.0013C1.6665 14.6013 5.39984 18.3346 9.99984 18.3346C14.5998 18.3346 18.3332 14.6013 18.3332 10.0013C18.3332 5.4013 14.5998 1.66797 9.99984 1.66797ZM9.99984 7.29297C9.65817 7.29297 9.37484 7.00964 9.37484 6.66797C9.37484 6.3263 9.65817 6.04297 9.99984 6.04297C12.1832 6.04297 13.9582 7.81797 13.9582 10.0013C13.9582 12.1846 12.1832 13.9596 9.99984 13.9596C9.65817 13.9596 9.37484 13.6763 9.37484 13.3346C9.37484 12.993 9.65817 12.7096 9.99984 12.7096C11.4915 12.7096 12.7082 11.493 12.7082 10.0013C12.7082 8.50964 11.4915 7.29297 9.99984 7.29297ZM9.99984 16.4596C6.4415 16.4596 3.5415 13.5596 3.5415 10.0013C3.5415 9.65964 3.82484 9.3763 4.1665 9.3763C4.50817 9.3763 4.7915 9.65964 4.7915 10.0013C4.7915 12.8763 7.12484 15.2096 9.99984 15.2096C12.8748 15.2096 15.2082 12.8763 15.2082 10.0013C15.2082 7.1263 12.8748 4.79297 9.99984 4.79297C9.65817 4.79297 9.37484 4.50964 9.37484 4.16797C9.37484 3.8263 9.65817 3.54297 9.99984 3.54297C13.5582 3.54297 16.4582 6.44297 16.4582 10.0013C16.4582 13.5596 13.5582 16.4596 9.99984 16.4596Z' fill='%2323D3EE'/%3E%3C/svg%3E");
}

/* Risks or blockers: amber callout with a warning icon */
.summary-risk-box {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 2.75rem;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  color: #A16207;
  font-size: 0.88rem;
  line-height: 1.6;
}

.summary-risk-box::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 1.05rem;
  height: 1.05rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21.76 15.92L15.36 4.4C14.5 2.85 13.31 2 12 2C10.69 2 9.49998 2.85 8.63998 4.4L2.23998 15.92C1.42998 17.39 1.33998 18.8 1.98998 19.91C2.63998 21.02 3.91998 21.63 5.59998 21.63H18.4C20.08 21.63 21.36 21.02 22.01 19.91C22.66 18.8 22.57 17.38 21.76 15.92ZM11.25 9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V14C12.75 14.41 12.41 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14V9ZM12.71 17.71C12.66 17.75 12.61 17.79 12.56 17.83C12.5 17.87 12.44 17.9 12.38 17.92C12.32 17.95 12.26 17.97 12.19 17.98C12.13 17.99 12.06 18 12 18C11.94 18 11.87 17.99 11.8 17.98C11.74 17.97 11.68 17.95 11.62 17.92C11.56 17.9 11.5 17.87 11.44 17.83C11.39 17.79 11.34 17.75 11.29 17.71C11.11 17.52 11 17.26 11 17C11 16.74 11.11 16.48 11.29 16.29C11.34 16.25 11.39 16.21 11.44 16.17C11.5 16.13 11.56 16.1 11.62 16.08C11.68 16.05 11.74 16.03 11.8 16.02C11.93 15.99 12.07 15.99 12.19 16.02C12.26 16.03 12.32 16.05 12.38 16.08C12.44 16.1 12.5 16.13 12.56 16.17C12.61 16.21 12.66 16.25 12.71 16.29C12.89 16.48 13 16.74 13 17C13 17.26 12.89 17.52 12.71 17.71Z' fill='%23B06E00'/%3E%3C/svg%3E");
}

.summary-doc-body .summary-risk-box p,
.summary-doc-body .summary-risk-box li {
  margin: 0 0 0.6rem;
  padding-left: 0;
  color: #A16207;
}

.summary-doc-body .summary-risk-box > :last-child,
.summary-doc-body .summary-risk-box li:last-child {
  margin-bottom: 0;
}

.summary-doc-body .summary-risk-box li::before {
  content: none;
}

.summary-doc-body .summary-risk-box strong {
  color: #B45309;
  font-weight: 600;
}

.summary-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.summary-modal-card {
  padding: 1.15rem 1.2rem 1.2rem;
}

.summary-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-modal-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #101828;
  flex: 0 0 auto;
}

.summary-modal-title {
  margin: 0;
  font-family: Poppins;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 24px; /* 150% */
letter-spacing: -0.5px;
}

.summary-modal-sub {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.summary-request-card {
  padding: 1.25rem 1.25rem 1.15rem;
}

.summary-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-request-copy {
  margin: 0.35rem 0 0;
  max-width: 34rem;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 400;
}

.summary-period-select {
  width: 100%;
  appearance: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 14px;
  padding: 0.7rem 2.3rem 0.7rem 0.85rem;
  font: inherit;
  color: #101828;
  outline: none;
}

.summary-period-select:focus {
  border-color: #67e8f9;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.summary-objective-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.summary-objective {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #101828;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.summary-objective.is-selected {
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
}

.summary-request-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.summary-request-actions .summary-cancel-btn,
.summary-request-actions .summary-send-btn {
  flex: 1;
  justify-content: center;
}

.summary-request-card textarea {
  padding-bottom: 1.4rem;
}

/* Banded request modals (client "Request Executive Summary", admin "Reject Summary") */
.summary-request-modal .summary-request-card {
  padding: 0;
  overflow: hidden;
}

.summary-request-modal .summary-request-head {
  margin: 0;
  padding: 1.1rem 1.25rem 1rem;
  background: #FFF;
  border-bottom: 1px solid #ececef;
}

.summary-request-modal .summary-modal-title {
  color: #181818;
font-family: Poppins;
font-size: 20.346px;
font-style: normal;
font-weight: 600;
line-height: 31.65px; /* 155.556% */
letter-spacing: -0.565px;
}

.summary-request-modal .summary-request-copy {
  margin-top: 0.25rem;
color: var(--Shades-500, #737373);
/* Paragraph/Small/Regular */
font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 142.857% */
letter-spacing: -0.5px;
}

.summary-request-modal .summary-request-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  background-image: none;
  opacity: 1;
  filter: none;
  box-shadow: none;
}

.summary-request-modal .summary-request-close svg {
  display: block;
}

.cp-summaries .summary-query-btn:hover {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #171717;
  filter: none;
}

.summary-request-modal .summary-request-body {
  padding: 1.1rem 1.25rem 0.6rem;
  background: #fff;
}

.summary-request-modal .summary-period-select.is-invalid,
.summary-request-modal .summary-period-select.is-invalid:focus {
  border-color: #e11d48;
  box-shadow: none;
  margin-bottom: 0.35rem;
}

.summary-request-modal .summary-period-error {
  margin: 0 0 0.85rem;
}

.summary-request-modal .summary-highlight-field.is-invalid,
.summary-request-modal .summary-highlight-field.is-invalid:focus-within {
  border-color: #e11d48;
  box-shadow: none;
}

.summary-request-modal .summary-period-select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 35px;
  margin: 0 0 1rem;
  padding: 0 2.2rem 0 12px;
  border-radius: 16px;
  border: 1px solid #D4D4D4;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 33px;
  color: #737373;
}

.summary-request-modal .summary-field > span {
  margin-bottom: 0.65rem;
  color:  #181818;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
  letter-spacing: -0.5px;

  

}

.summary-request-modal .summary-field {
  margin-bottom: 1rem;
}

.summary-request-modal .summary-objective-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.summary-request-modal .summary-objective {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #181818;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.5rem 0.5rem;
  white-space: nowrap;
}

.summary-request-modal .summary-objective.is-selected {
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
}

.summary-objective:hover,
.summary-request-modal .summary-objective:hover {
  background:
    linear-gradient(#181818, #181818) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
}

.summary-request-modal .summary-highlight-field {
  position: relative;
  margin: 0 0 0.75rem;
  padding: 0 0.75rem 0.4rem;
  border: 1.5px solid #e4e4e7;
  border-radius: 12px;
  min-width: 0;

  color: #181818;
font-family: Poppins;
font-size: 15.825px;
font-style: normal;
font-weight: 600;
line-height: 22.607px; /* 142.857% */
letter-spacing: -0.565px;
}

.summary-request-modal .summary-highlight-field:focus-within {
  border-color: #67e8f9;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.summary-request-modal .summary-highlight-field legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #181818;
  line-height: 1;
}

.summary-request-modal .summary-highlight-field textarea {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  border: 0;
  padding: 0.45rem 0 1.3rem;

  background: transparent;
  outline: none;
  resize: vertical;

  color:#A3A3A3;
font-family: Poppins;
font-size: 13.564px;
font-style: normal;
font-weight: 400;
line-height: 20.346px; /* 150% */
letter-spacing: -0.565px;
}

.summary-request-modal .summary-highlight-field .summary-note-count {
  right: 1.5rem;
  bottom: 0.5rem;
}

.summary-request-modal .summary-highlight-field textarea::placeholder {
  color: #b4b4bb;
}

.summary-request-modal .summary-request-actions {
  margin: 0;
  padding: 1rem 1.25rem 1.1rem;
  background: #f7f7f8;
  border-top: 1px solid #ececef;
}

.summary-request-modal .summary-request-actions .summary-cancel-btn {
  flex: 1 1 0;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #181818;
  font-weight: 500;
  padding: 0.7rem 1rem;
}

.summary-request-modal .summary-request-actions .summary-send-btn {
  flex: 2 1 0;
  margin-left: 0;
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  font-weight: 500;
  padding: 0.7rem 1rem;
}

.summary-request-modal .summary-request-actions .summary-cancel-btn:hover {
  background:
    linear-gradient(#181818, #181818) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
  filter: none;
}

.summary-request-modal .summary-request-actions .summary-send-btn:hover {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #181818;
  filter: none;
}

/* Client "Email Report" modal */
.summary-email-modal .summary-modal-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.summary-email-modal .summary-modal-head {
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1.2rem 1.4rem 1.1rem;
  border-bottom: 1px solid #f0f0f2;
}

.summary-email-modal .summary-modal-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: #eff8ff;
  border: 1px solid #d6ecff;
  color: #3b9ae8;
  font-size: 1.15rem;
}

.summary-email-modal .summary-modal-title {
  font-size: 1.1rem;
  color: #181818;
}

.summary-email-modal .summary-modal-sub {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

.summary-email-modal .btn-close {
  opacity: 0.85;
  font-size: 0.75rem;
}

.summary-email-modal form {
  padding: 1.4rem 1.4rem 1.3rem;
}

.summary-email-modal .summary-email-preview {
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  background: #f8f8f9;
  border-color: #efeff1;
  border-radius: 14px;
}

.summary-email-modal .summary-email-preview-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: #eff8ff;
  border-color: #d6ecff;
  color: #3b9ae8;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.summary-email-modal .summary-email-preview-title {
  color: #101828;

  /* Paragraph/Small/Semi Bold */
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
  letter-spacing: -0.5px;
}

.summary-email-modal .summary-email-preview-meta {
  font-size: 0.8rem;
}

.summary-email-modal .summary-pdf-badge {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #f43f5e;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.3rem 0.85rem;
}

/* Send to / Add a note: neutral by default; Sivoxi gradient while focused (or once Send to is typed in).
   A read-only Send to stays neutral. */
.summary-email-field {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 0 1rem 0.55rem;
  border-radius: 16px;
  border: 1px solid var(--Shades-400, #8B8B8B);
  background: #FFF;
  min-width: 0;
}

.summary-email-field:not(.is-readonly):focus-within,
.summary-email-field--to.is-filled:not(.is-readonly) {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 60.1%, #E9A9FF 78.37%, #22D3EE 94.23%) border-box;
}

.summary-email-field.is-readonly input {
  cursor: default;
}

.summary-email-field legend {
  float: none;
  width: auto;
  margin: 0 0 0 -0.35rem;
  padding: 0 0.35rem;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: #181818;
  line-height: 1;
}

.summary-email-field--to legend {
  color: #8B8B8B;
}

.summary-email-field:not(.is-readonly):focus-within legend,
.summary-email-field--to.is-filled:not(.is-readonly) legend {
  color: #22c3e6;
}

.summary-email-field input,
.summary-email-field textarea {
  display: block;
  width: 100%;
  border: 0;
  padding: 0.35rem 0 0.1rem;
  font: inherit;
  font-size: 1rem;
  color: #181818;
  background: transparent;
  outline: none;
}

.summary-email-field textarea {
  min-height: 6.2rem;
  padding-bottom: 1.4rem;
  resize: vertical;
}

.summary-email-field input::placeholder,
.summary-email-field textarea::placeholder {
  color: #a1a1aa;
}

.summary-email-field:not(.is-readonly):focus-within {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.summary-email-field .summary-note-count {
  right: 1.5rem;
  bottom: 0.5rem;
}

.summary-email-actions {
  margin-top: 0.4rem;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.summary-email-actions .summary-cancel-btn,
.summary-email-actions .summary-send-btn {
  justify-content: center;
  margin-left: 0;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.summary-email-actions .summary-cancel-btn {
  flex: 1 1 0;
  color: #181818;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.summary-email-actions .summary-send-btn {
  flex: 2 1 0;
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

/* Admin summary review: Save Draft / Reject / Publish bar */
a.summary-back-btn {
  text-decoration: none;
}

.summary-back-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.summary-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  background: #f7f7f8;
}

.summary-reject-btn,
.summary-review-actions .summary-send-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.summary-review-actions .summary-send-btn {
  margin-left: 0;
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.summary-review-actions .summary-send-btn:hover {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #181818;
  filter: none;
}

.summary-reject-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid #fecdd3;
  border-radius: 999px;
  background: #fff;
  color: #e11d48;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.summary-reject-btn:hover {
  background: #fff1f2;
  border-color: #fb7185;
}

@media (max-width: 576px) {
  .summary-review-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .summary-request-modal .summary-objective-row {
    grid-template-columns: 1fr;
  }
}

.summary-email-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.9rem;
}

.summary-email-preview-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.summary-email-preview-title,
.summary-email-preview-meta {
  display: block;
}

.summary-email-preview-title {
  font-weight: 700;
  color: #101828;
  font-size: 0.92rem;
}

.summary-email-preview-meta {
  color: #9ca3af;
  font-size: 0.75rem;
}

.summary-pdf-badge {
  margin-left: auto;
  color: #e11d48;
  background: #fff1f2;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.summary-field {
  display: block;
  margin-bottom: 0.75rem;
  position: relative;
}

.summary-field > span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.summary-period-1{
  border-radius: 24px !important;
}

.summary-request-modal .summary-field input.summary-period-1[readonly] {
  box-sizing: border-box;
  height: 35px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #D4D4D4;
  background: #fff;
  color: #181818;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.summary-field input,
.summary-field textarea {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: #101828;
  outline: none;
  resize: vertical;
}

.summary-field input:focus,
.summary-field textarea:focus {
  border-color: #67e8f9;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.summary-note-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.45rem;
  color: #9ca3af;
  font-size: 0.72rem;
}

.summary-form-error {
  color: #be123c;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}

.summary-form-ok {
  color: #15803d;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}

.summary-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

@media (max-width: 720px) {
  .summary-actions,
  .summary-doc-top,
  .summary-modal-actions {
    flex-wrap: wrap;
  }

.summary-email-btn,
.summary-send-btn {
  margin-left: auto;
  }
}

.admin-summaries.cp-summaries,
.admin-roles.cp-summaries,
.admin-users.cp-summaries {
  max-width: none;
}

.admin-summaries-toolbar {
  display: flex;
  align-items: center;
  margin: 0.9rem 0 1rem;
}

.summary-query-btn:disabled,
.summary-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-summary-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.admin-summary-client {
  margin-top: 0.15rem;
  color: #9ca3af;
  font-size: 0.78rem;
}

.admin-summary-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.65rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: lowercase;
}

.admin-summary-status.is-published {
  background: #22c55e;
}

.admin-summary-status.is-draft {
  background: #f59e0b;
}

.admin-summary-status.is-rejected {
  background: #ef4444;
}

.admin-summary-action {
  box-sizing: border-box;
  display: inline-flex;
  width: 120px;
  height: 30px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border: 1.5px solid transparent;
  border-radius: 70px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: var(--neutrals-neutral-900-main, #181818);
  text-align: center;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}

.admin-summary-action svg,
.admin-summary-action i {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: block;
  font-size: 16px;
  line-height: 16px;
}

.admin-summary-action:hover {
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
  filter: none;
}

.admin-summary-action:hover svg path {
  stroke: #fff;
}

.ug-matrix-actions .admin-summary-action.ug-delete-action {
  color: #fff;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.ug-matrix-actions .admin-summary-action.ug-delete-action:hover {
  color: #181818;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.summary-admin-tabs {
  display: flex;
  align-items: flex-end;
  gap: 1.75rem;
  border-bottom: 1px solid var(--cp-border);
  margin-bottom: 1.15rem;
}

.summary-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem 0.15rem 0.75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.summary-admin-tab:hover {
  color: var(--cp-primary);
}

.summary-admin-tab.active {
  color: var(--cp-primary);
  border-bottom-color: var(--cp-primary);
}

.summary-admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--cp-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .summary-admin-tabs {
    gap: 1rem;
    overflow-x: auto;
  }
}

.client-invoices.cp-summaries {
  max-width: none;
}

.client-invoice-table th {
  font-weight: 600;
}

.client-invoice-number {
  font-weight: 700;
  color: #101828;
}

.client-invoice-amount,
.client-invoice-table tfoot th {
  font-variant-numeric: tabular-nums;
}

.client-invoice-table tfoot th {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
  padding: 0.95rem 1.15rem;
}

.client-invoice-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}

.client-invoice-status.is-paid {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #16a34a;
}

.client-invoice-status.is-overdue,
.client-invoice-status.is-other {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.client-invoice-view {
  display: flex;
  width: 120px;
  height: 30px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: var(--neutrals-neutral-900-main, #181818);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
}

.client-invoice-view svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}

.client-invoice-view:hover {
  color: #fff;
  font-weight: 500 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(#181818, #181818) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.client-invoice-back {
  display: flex;
  width: 182px;
  height: 35px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #181818;
  text-align: center;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.client-invoice-back:hover {
  color: #fff;
  font-weight: 500 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(#181818, #181818) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.client-invoice-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 16rem;
  padding: 3rem 1.5rem;
  color: #6b7280;
  text-align: center;
}

.client-invoice-empty i {
  font-size: 1.7rem;
  color: #9ca3af;
}

.client-invoice-empty p {
  margin: 0;
  max-width: 28rem;
}

.client-invoice-page .cp-summaries-title {
  font-family: Poppins;
font-size: 28px;
font-style: normal;
font-weight: 600;
line-height: 36px; /* 128.571% */
letter-spacing: -1px;
}

.client-invoice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.15rem 0 1.15rem;
}

.client-invoice-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.client-invoice-download svg,
.client-invoice-print svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: block;
}

.client-invoice-print {
  display: flex;
  width: 120px;
  height: 35px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: var(--neutrals-neutral-900-main, #181818);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
  cursor: pointer;
  white-space: nowrap;
}

.client-invoice-print:hover {
  color: #fff;
  font-weight: 500 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}
.client-invoice-remove {
  display: inline-flex;
  width: 120px;
    height: 30px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}


.client-invoice-remove:hover {
  color: #101828;
  font-weight: 500 !important;
  -webkit-font-smoothing: auto;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.client-invoice-download {
  display: inline-flex;
  height: 35px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#101828, #101828) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.client-invoice-download:hover {
  color: #101828;
  font-weight: 500 !important;
  -webkit-font-smoothing: auto;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.client-invoice-download:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.client-invoice-sheet {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 18px;
  padding: 2.15rem 2.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.client-invoice-brand,
.client-invoice-parties {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.client-invoice-brand {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.client-invoice-logo,
.client-invoice-word {
  font-family: Poppins;
font-size: 28px;
font-style: normal;
line-height: 36px; /* 128.571% */
letter-spacing: -1px;
  letter-spacing: 0.16em;
  color: #101828;
  line-height: 1.1;
}

.client-invoice-word {
  text-align: right;
}
p.cl-invoice-address{
  color:#8B8B8B !important;
  font-weight: 400 !important;
}
p.cl-invoice-vat{
  color:#8B8B8B !important;
  font-weight: 400 !important;
}
.client-invoice-services-rendered{
  color:#181818;
/* Paragraph/XSmall/Medium */
font-family: Poppins;
font-size: 12px !important;
font-style: normal;
font-weight: 500 !important;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}
.text-end client-invoice-amount{
  color: #A3A3A3 !important;
font-family: Poppins;
font-size: 10px !important;
font-style: normal;
font-weight: 400  !important;
line-height: 18px; /* 180% */
letter-spacing: -0.5px;
}
.client-invoice-period-text{
  color: #A3A3A3 !important;
 
  font-family: Poppins;
  font-size: 10px !important;
  font-style: normal;
  font-weight: 400  !important;
  line-height: 18px; /* 180% */
  letter-spacing: -0.5px;
}

p.client-invoice-who{
  color: # #181818;
  /* Paragraph/Small/Semi Bold */
  font-family: Poppins;
  font-size: 14px !important;
  font-style: normal;
  font-weight: 600 !important;
  line-height: 20px; /* 142.857% */
  letter-spacing: -0.5px;
}
.client-invoice-who-email{
  color:#8B8B8B !important;
  font-family: Poppins;
  font-size: 10px  !important;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 18px; /* 180% */
  letter-spacing: -0.5px;
}
.client-invoice-brand p,
.client-invoice-parties p {
  margin: 0.2rem 0 0;
  color: #181818;
 font-family: Poppins;
font-size: 10px;
font-style: normal;
font-weight: 600;
line-height: 18px; /* 180% */
letter-spacing: -0.5px;
}

.client-invoice-brand p.client-invoice-tagline {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0;
  line-height: 0;
  background: none;
  color: #181818;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
  border: 0;
  box-shadow: none;
}

.client-invoice-tagline svg {
  display: block;
  width: 240px;
  height: 14px;
  overflow: visible;
}

.client-invoice-meta {
  min-width: 18rem;
  text-align: right;
}

.client-invoice-parties > div:last-child {
  min-width: 18rem;
  text-align: left;
}

.client-invoice-meta dl,
.client-invoice-parties dl {
  margin: 0.85rem 0 0;
}

.client-invoice-meta dl > div,
.client-invoice-parties dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) minmax(8.5rem, auto);
  justify-content: end;
  column-gap: 1.75rem;
  margin-top: 0.42rem;
  align-items: baseline;
}

.client-invoice-parties dl > div {
  justify-content: space-between;
}

.client-invoice-parties dl dt {
  text-align: left;
}

.client-invoice-totals > div > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.42rem;
  padding: 0 0.15rem;
}

.client-invoice-meta dt,
.client-invoice-parties dt {
  color: #8B8B8B;
 
text-align: right;
font-family: Poppins;
font-size: 10px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 180% */
letter-spacing: -0.5px;
}

.client-invoice-meta dd,
.client-invoice-parties dd {
  margin: 0;
  min-width: 8.5rem;
  color: var(--neutrals-neutral-900-main, #181818);
text-align: right;
font-family: Poppins;
font-size: 10px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 180% */
letter-spacing: -0.5px;
  text-align: right;
}

.client-invoice-meta dd.is-paid {
  color: #16a34a;
  text-transform: uppercase;
}

.client-invoice-meta dd.is-overdue,
.client-invoice-meta dd.is-other {
  color: #e11d48;
  text-transform: uppercase;
}

.client-invoice-parties {
  padding: 1.25rem 0;
}

.client-invoice-parties h2 {
  margin: 0 0 0.45rem;
 
 
  text-transform: uppercase;
  color: #737373;
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}

.client-invoice-who {
  color: #101828 !important;
  font-weight: 700;
}

.client-invoice-lines {
  width: 100%;
  border-collapse: collapse;
}

.client-invoice-lines thead th {
  background: #f7f8fa;
  padding: 0.72rem 0.85rem;
  border-bottom: 0;
  
  
  
  text-align: left;

  color: var(--neutrals-neutral-900-main, #181818);

/* Paragraph/XSmall/Semi Bold */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 600;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;

}

.client-invoice-lines thead th:first-child {
  border-radius: 8px 0 0 8px;
}

.client-invoice-lines thead th:last-child {
  border-radius: 0 8px 8px 0;
}

.client-invoice-lines td {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid #eef0f3;
  color: #101828;
  vertical-align: top;
}

.client-invoice-lines td:nth-child(2),
.client-invoice-lines td:nth-child(3),
.client-invoice-lines th:nth-child(2),
.client-invoice-lines th:nth-child(3) {
  width: 8.5rem;
}

.client-invoice-lines td:last-child,
.client-invoice-lines th:last-child {
  width: 8.5rem;
  text-align: right;
}

.client-invoice-lines td:first-child {
 x
  color: var(--neutrals-neutral-900-main, #181818);

/* Paragraph/XSmall/Medium */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;

}

.client-invoice-period {
  margin-top: 0.15rem;
  color: #9ca3af;
  font-size: 0.8rem;
}

.client-invoice-period {
  font-weight: 400;
}

.client-invoice-totals {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.client-invoice-totals > div {
  width: 22rem;
}

.client-invoice-totals span {
  color:  #B9B9B9;
/* Paragraph/XSmall/Regular */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}

.client-invoice-totals strong {
  color:  #8B8B8B;

/* Paragraph/XSmall/Medium */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.client-invoice-grand {
  margin-top: 0.35rem;
  padding-top: 0.55rem !important;
  border-top: 1px solid #e5e7eb;
}

.client-invoice-grand span,
.client-invoice-grand strong {
  color: #101828;
  font-weight: 700;
}

.client-invoice-paid {
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem !important;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: #ecfdf3;
}

.client-invoice-paid span,
.client-invoice-paid strong {
  color: #16a34a;
  font-weight: 600;
}

.client-invoice-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .client-invoice-brand,
  .client-invoice-parties,
  .client-invoice-toolbar {
    flex-direction: column;
  }

  .client-invoice-meta,
  .client-invoice-parties > div:last-child {
    text-align: left;
  }

  .client-invoice-meta dl > div,
  .client-invoice-parties dl > div {
    justify-content: space-between;
  }
}

body:has(.csum),
body:has(.csum) .app-main,
body:has(.csum) .app-content {
  background: #fff;
}

.csum {
  max-width: 1180px;
  margin: 0 auto 2rem;
  color: #181818;
  font-family: Poppins, sans-serif;
}

.csum-title {
  margin: 0;
  color: #101828;
font-family: Poppins;
font-size: 28px;
font-style: normal;
font-weight: 600;
line-height: 36px; /* 128.571% */
letter-spacing: -1px;
}

.csum-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: #6A7282;
/* Paragraph/XSmall/Regular */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}

.csum-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D0D5DD;

color: #D1D5DC;

font-family: 'Poppins', sans-serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 0; /* 0% */
}

.csum-entries {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #16A34A;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.csum-lead {
  margin: 0.7rem 0 0;
  font-size: 14px;
  color: #454545;
/* Paragraph/XSmall/Medium */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}

.csum-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.15rem 0 1rem;
}

.csum-filter-fields,
.csum-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.csum-field {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  width: 178px;
  height: 35px;
  flex: 1 0 0;
  padding: 0 12px 0 14px;
  border-radius: 16px;
  border: 1px solid var(--Neutrals-Neutral-300, #D4D4D4);
  background: var(--White, #FFF) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--Neutrals-Neutral-500, #737373);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
}

.csum-field span { margin-right: 0.35rem; flex: 0 0 auto; }

.csum-field.csum-date {
  background-image: none;
  width: 210px;
  padding-right: 10px;
}

.csum-field.csum-date input {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 20px;
  outline: none;
  cursor: pointer;
}

.csum-field.csum-date input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}

.csum-field select {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 20px;
  outline: none;
  padding-right: 1.1rem;
  cursor: pointer;
  appearance: none;
}

.csum-apply {
  display: flex;
  width: 145px;
  height: 35px;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#181818, #181818) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
  color: var(--Shades-0, #FFF);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}

.csum-apply svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.csum-apply svg path {
  stroke: currentColor;
}

.csum-apply:hover {
  color: #181818;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.csum-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--Shades-0, #fff), var(--Shades-0, #fff)) padding-box,
    linear-gradient(90deg, #22D3EE 13%, #E9A9FF 50%, #F3697D 80%) border-box;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.csum-reset svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}

.csum-error {
  margin: 0 0 1rem;
  color: #B42318;
  font-size: 14px;
}

.csum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr);
  border: 1px solid #ECECEC;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(90deg, #F3697D 0%, #E9A9FF 24%, #6FC2F4 34%, #22D3EE 43%, #FFFFFF 59%, #FFFFFF 33%);
}

.csum-hero-main {
  padding: 1.35rem 1.6rem 1.2rem;
  background: transparent;
}

.csum-hero-kicker{
  color: var(--Shades-0, #FFF);
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;

}
.csum-hero-label {
  margin: 0;
  color: var(--Shades-400, #8B8B8B);
  text-align: right;
  /* Paragraph/XSmall/Regular */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}

.csum-hero-amount {
  margin: 0.2rem 0 0;
  color: var(--Shades-0, #FFF);
/* Headings/H1/Semi Bold/Desktop */
font-family: Poppins;
font-size: 40px;
font-style: normal;
font-weight: 600;
line-height: 48px; /* 120% */
letter-spacing: -1px;
}

.csum-hero-sub {
  margin: 0.35rem 0 0;
  color: var(--Shades-0, #FFF);
  align-self: stretch;
  /* Paragraph/XSmall/Medium */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}

.csum-hero-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.2rem 1.3rem;
}

.csum-hero-divider {
  width: 1px;
  height: 42px;
  flex: 0 0 1px;
  background: #E4E4E7;
}

.csum-hero-value {
  margin: 0.25rem 0 0;
  color: var(--neutrals-neutral-900-main, #181818);
  text-align: right;
  
  /* Paragraph/XSmall/Semi Bold */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}

.csum-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.csum-stat {
  padding: 1rem 1.05rem 0.9rem;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  background: #FAFAFA;
}

.csum-stat-label {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.csum-stat-value {
  margin: 0.45rem 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.csum-stat-note,
.csum-delta {
  margin: 0.3rem 0 0;
  color: #667085;
  font-size: 13px;
}

.csum-delta.is-up { color: #16A34A; }
.csum-delta.is-down { color: #E11D48; }

.csum-stat-label-billable {
  color: var(--Secondary-Ocean-blue-900, #0F93E1);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.csum-stat-value-billable {
  color: var(--Shades-1000, #000);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.5px;
}

.csum-delta-billable,
.csum-delta-billable.is-up,
.csum-delta-billable.is-down {
  color: #6A7282;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
}

.csum-stat-label-hours {
  color: var(--Alerts-Success-600, #16A34A);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.csum-stat-value-hours {
  color: var(--Shades-1000, #000);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.5px;
}

.csum-stat-note-hours {
  color: #6A7282;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
}

.csum-stat-label-non-billable {
  color: var(--Neutrals-Neutral-500, #737373);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.csum-stat-value-non-billable {
  color: var(--Shades-1000, #000);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.5px;
}

.csum-stat-note-non-billable {
  color: #6A7282;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
}

.csum-stat-label-retainer {
  color: var(--Tertiary-Mint-Teel-900, #0C8CA1);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.csum-stat-value-retainer {
  color: var(--Shades-1000, #000);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.5px;
}

.csum-stat-note-retainers {
  color: #6A7282;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
}

.csum-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 0.2rem;
  border: 0;
  border-radius: 0;
  color: #525252;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  cursor: help;
}

.csum-info svg {
  width: 20px;
  height: 20px;
  display: block;
}

.csum-roles {
  margin-top: 0.9rem;
  padding: 1.1rem 1.15rem 0.4rem;
  border: 1px solid #ECECEC;
  border-radius: 16px;
  background: #fff;
}

.csum-roles-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.csum-roles-head h2 {
  margin: 0;
  color: #0D1117;

/* Paragraph/Medium/Semi Bold */
font-family: Poppins;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 24px; /* 150% */
letter-spacing: -0.5px;
}
.csum-delivered-label{
  color: #5C6370;

  /* Paragraph/XSmall/Semi Bold */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}
.csum-delivered-value{
  color: #0D1117;

  /* Paragraph/Large/Semi Bold */
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px; /* 155.556% */
  letter-spacing: -0.5px;
}
.csum-roles-head p {
  margin: 0.2rem 0 0;
  color: #5C6370;

/* Paragraph/XSmall/Regular */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}

.csum-tabs {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.csum-tab {
  display: flex;
  width: 143px;
  height: 34px;
  padding: 4px 10px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 0;
  border: 1px solid var(--Neutrals-Neutral-300, #D4D4D4);
  background: #fff;
  color: #667085;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.csum-tab:first-child {
  border-radius: 25px 0 0 25px;
}

.csum-tab:last-child {
  border-radius: 0 25px 25px 0;
}

.csum-tab + .csum-tab {
  margin-left: -1px;
}

.csum-tab.is-active {
  color: #0F93E1;
  border-color: var(--Secondary-Ocean-blue-800, #249DE5);
  background: rgba(111, 194, 244, 0.09);
  position: relative;
  z-index: 1;
}

.csum-panel { display: none; padding: 0.9rem 0 0.6rem; }
.csum-panel.is-active { display: block; }

.csum-delivered {
  display: flex;
  padding: 13px 15px;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--Shades-50, #E7E7E7);
  background: #FAFAFA;
}

.csum-delivered-top,
.csum-delivered .csum-stack,
.csum-delivered .csum-legend,
.csum-delivered .csum-empty {
  align-self: stretch;
  width: 100%;
}

.csum-delivered-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.csum-delivered strong {
  font-size: 18px;
  font-weight: 600;
}

.csum-stack {
  display: flex;
  height: 6px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #F2F4F7;
}

.csum-stack span { display: block; height: 100%; }

.csum-legend {
  position: relative;
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.csum-legend > span {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
}

.csum-legend svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

.csum-role {
  padding: 0.85rem 0;
  border-top: 1px solid #F2F4F7;
}

.csum-role-top {
  display: flex;
  gap: 0.75rem;
}

.csum-role-index {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.csum-role-index.is-1 {
  color: #F3697D;
  border: 1px solid rgba(243, 105, 125, 0.25);
  background: rgba(243, 105, 125, 0.09);
}

.csum-role-index.is-2 {
  color: #A78BFA;
  border-radius: 5px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.09);
}

.csum-role-index.is-3 {
  color: #6FC2F4;
  border-radius: 5px;
  border: 1px solid rgba(111, 194, 244, 0.25);
  background: rgba(111, 194, 244, 0.09);
}

.csum-role-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 28px;
  row-gap: 0.55rem;
  align-items: center;
}

.csum-role-line,
.csum-role-figures {
  display: contents;
}
.csum-role-hours{
  color: #5C6370;
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 150% */
  letter-spacing: -0.5px;
}
.csum-role-main {
  min-width: 0;
}

.csum-role-line h3 {
  margin: 0;
  color: #0D1117;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.5px;
}

.csum-role-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 72px;
  color: #0D1117;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.5px;
  text-align: right;
}
.csum-role-amount{
  color: #0D1117;
  /* Paragraph/Small/Semi Bold */
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
  letter-spacing: -0.5px;
}
.csum-role-rate {
  color: #8B8B8B;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
}

.csum-role-figures strong {
  min-width: 118px;
  color: #0D1117;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.5px;
  text-align: right;
}

.csum-role-bar {
  grid-column: 1 / 3;
  grid-row: 2;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: #F2F4F7;
  overflow: hidden;
}

.csum-role-bar span { display: block; height: 100%; border-radius: inherit; }

.csum-empty {
  margin: 0.4rem 0 0.8rem;
  color: #667085;
  font-size: 14px;
}

.csum-task-scroll {
  overflow-x: auto;
  margin-top: 0.35rem;
}

.csum-tasks {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: Poppins, sans-serif;
}

.csum-tasks th {
  padding: 0.8rem 0.85rem;
  background: #F8F9FB;
  text-align: left;
  white-space: nowrap;
  color: #181818;
/* Paragraph/XSmall/Semi Bold */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 600;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}

.csum-tasks th:first-child { border-radius: 12px 0 0 12px; }
.csum-tasks th:last-child { border-radius: 0 12px 12px 0; }
.csum-tasks th.is-right,
.csum-task-cost { text-align: right; }

.csum-tasks td {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid #F2F4F7;
  vertical-align: middle;
}

.csum-task-id {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.csum-task-mark {
  display: inline-flex;
  color: #F97316;
}

.csum-task-mark.is-done { color: #3B82F6; }

.csum-task-mark svg { display: block; }

.csum-task-name {
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.csum-hours-pill {
  display: inline-flex;
  box-sizing: border-box;
  width: auto;
  min-width: 63px;
  height: 26px;
  padding: 4px 10px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 0.761px solid var(--Shades-400, #8B8B8B);
  background: #FDFDFD;
  color: var(--Shades-400, #8B8B8B);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.cts-id{
  color: var(--Shades-900, #171717) !important;

/* Paragraph/XSmall/Medium */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}
.csum-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.csum-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.csum-task-cost {
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.csum-task-toggle-col {
  width: 48px;
  text-align: right;
}

.csum-task-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  cursor: pointer;
}

.csum-task-toggle:hover {
  background: #F8F9FB;
  color: #101828;
}

.csum-task-toggle svg { transition: transform 0.15s ease; }

.csum-task-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.csum-task-detail td {
  padding-top: 0.15rem;
  padding-bottom: 0.95rem;
  background: #FAFAFA;
}

.csum-task-detail-list {
  display: grid;
  gap: 0.45rem;
  max-width: 720px;
  margin-left: 1.7rem;
}

.csum-task-detail-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.csum-task-detail-line strong {
  margin-left: auto;
  color: #101828;
  font-size: 13px;
  font-weight: 600;
}

.csum-task-detail-meta,
.csum-task-detail-empty,
.csum-task-empty {
  color: #667085;
  font-size: 13px;
}

.csum-task-empty { padding: 1.4rem 0.85rem; }

@media (max-width: 980px) {
  .csum-hero,
  .csum-stats,
  .csum-roles-head,
  .csum-filters {
    grid-template-columns: 1fr;
    display: grid;
  }

  .csum-filter-actions { justify-content: flex-start; }
  .csum-hero-side { padding-top: 0.4rem; }
}

/* —— Client timesheet (duration only) —— */
.csum.cts { max-width: none; }

.cts .csum-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.cts .csum-filter-fields { flex: 0 1 auto; }

.cts .csum-field {
  flex: 0 0 168px;
  width: 168px;
}

.cts .cts-billable-field {
  flex-basis: 148px;
  width: 148px;
}

.cts-date { position: relative; }

.cts-date input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  outline: none;
  cursor: pointer;
}

.cts-date input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cts-date:not(.has-value) input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: transparent;
}

.cts-date.has-value span { display: none; }

.cts-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.15rem 0 1.05rem;
}

.cts-stat {
  padding: 0.95rem 1.1rem 0.9rem;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  background: #fff;
}

.cts-stat-label {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-transform: uppercase;
}

.cts-stat-label.is-total {
   color: #0F93E1; 
   
   font-family: Poppins;
   font-size: 14px;
   font-style: normal;
   font-weight: 500;
   line-height: 24px; /* 171.429% */
   letter-spacing: -0.5px;
   text-transform: uppercase;
  }
.cts-stat-label.is-bill { 
  color: var(--Alerts-Success-600, #16A34A);
font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 24px; /* 171.429% */
letter-spacing: -0.5px;
text-transform: uppercase;
}
.cts-stat-label.is-non { 
  color: var(--Neutrals-Neutral-500, #737373);
font-family: Poppins;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 24px; /* 171.429% */
letter-spacing: -0.5px;
text-transform: uppercase;

}

.cts-stat-value {
  margin: 0.4rem 0 0;
  color: var(--Shades-1000, #000);

  /* Paragraph/Large/Bold */
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 155.556% */
  letter-spacing: -0.5px;
}

.cts-table { min-width: 1040px; }

.cts-table td:has(.csum-hours-pill),
.cts-table td:has(.cts-flag) {
  white-space: nowrap;
}

.cts-table thead th {
  padding: 11px 9px;
  border-radius: 0;
  border-top: 1px solid #CDD0D8;
  border-bottom: 1px solid #CDD0D8;
  border-left: 0;
  border-right: 0;
  background: #F9FAFB;
  vertical-align: middle;
  text-align: left;
}

.cts-table thead th:first-child {
  border-radius: 15px 0 0 0;
  border-left: 1px solid #CDD0D8;
}

.cts-table thead th:last-child {
  border-radius: 0 15px 0 0;
  border-right: 1px solid #CDD0D8;
}

.cts-role {
  box-sizing: border-box;
  width: fit-content;
  display: flex;
  height: 26px;
  padding: 3px 7px;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  leading-trim: both;
  text-edge: cap;
  white-space: nowrap;
}

.cts-role.is-dev {
  border: 1px solid rgba(243, 105, 125, 0.25);
  background: rgba(243, 105, 125, 0.09);
  color: #F3697D;
}

.cts-role.is-pm {
  border: 1px solid rgba(111, 194, 244, 0.25);
  background: rgba(111, 194, 244, 0.09);
  color: var(--secondary-ocean-blue-400-main, #6FC2F4);
}

.cts-role.is-ux {
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.09);
  color: #A78BFA;
}
.cts-muted,
.cts-dash {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.cts-muted{
  color: #6A7282;

/* Paragraph/XSmall/Regular */
font-family: Poppins;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 18px; /* 150% */
letter-spacing: -0.5px;
}
.cts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cts-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: #F2F4F7;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.cts-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cts-flag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.cts-flag.is-yes { 
  color: var(--Neutrals-Neutral-50, #FAFAFA);
  border-radius: 999px;
  background: var(--alerts-success-500-main, #22C55E);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.5px;
  display: inline-flex;
  box-sizing: border-box;
  width: auto;
  min-width: 94px;
  height: 26px;
  padding: 4px 10px;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cts-flag.is-no { color: #E11D48; background: #FFF1F3; }

.cts-total td {
  background: #F8F9FB;
  color: #101828;
  font-weight: 600;
  border-bottom: 0;
}

.cts-empty {
  padding: 3.4rem 1rem;
  text-align: center;
  color: #667085;
}

.cts-empty svg {
  display: block;
  margin: 0 auto 0.75rem;
  color: #98A2B3;
}

.cts-empty p {
  margin: 0;
  font-size: 14px;
}

.cts-count {
  margin: 0.75rem 0 0;
  color: #98A2B3;
  font-size: 13px;
}

@media (max-width: 900px) {
  .cts-stats { grid-template-columns: 1fr; }
}

/* Budget alerts — same panels and pills as profile edit */
.cp-ba .cp-prof-field select {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background-color: #fff;
  color: #101828;
  padding: 0.75rem 2.4rem 0.75rem 1.15rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.cp-ba .cp-prof-field select:focus,
.cp-ba .cp-prof-field input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.cp-ba .cp-prof-field input:disabled,
.cp-ba .cp-prof-field select:disabled {
  background-color: #f9fafb;
  color: #667085;
  cursor: not-allowed;
}

.cp-ba .cp-prof-fields .cp-ba-span {
  grid-column: 1 / -1;
}

.cp-ba-chips {
  min-height: 3.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.85rem;
}

.cp-ba .cp-prof-field .cp-email-chips-input {
  width: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.15rem 0.25rem;
}

.cp-ba .cp-prof-field .cp-email-chips-input:focus {
  border-color: transparent;
  box-shadow: none;
}

.cp-ba .cp-ba-chips:focus-within {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.cp-ba-usage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.15rem;
}

.cp-ba-usage-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 600;
}

.cp-ba-usage-top span:last-child {
  color: #101828;
}

.cp-ba .cp-budget-progress {
  height: 0.55rem;
  overflow: hidden;
}

.cp-ba-meta {
  margin-top: 0.35rem;
  color: #98a2b3;
  font-size: 0.78rem;
  line-height: 1.4;
}

.cp-ba-add {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.9rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.cp-ba-add .cp-prof-field {
  margin: 0;
}

.cp-ba .cp-prof-solid,
.cp-ba .cp-prof-ghost {
  box-sizing: border-box;
  height: 36px;
  min-width: 148px;
  padding: 0 16px;
  justify-content: center;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
}

.cp-ba .cp-prof-solid:hover {
  color: #171717;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-ba .cp-prof-ghost:hover {
  color: #fff;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #F3697D 20.19%, #E9A9FF 55%, #6FC2F4 80%, #22D3EE 100%) border-box;
}

.cp-ba-table-wrap {
  overflow-x: auto;
}

.cp-ba-table {
  width: 100%;
  border-collapse: collapse;
}

.cp-ba-table th {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.cp-ba-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f2f4f7;
  color: #101828;
  font-size: 0.88rem;
  vertical-align: middle;
}

.cp-ba-table td:last-child,
.cp-ba-table th:last-child {
  text-align: right;
}

.cp-ba-empty,
.cp-ba-table .text-muted {
  color: #98a2b3;
}

.cp-ba-empty-note {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #667085;
  font-size: 0.9rem;
}

.cp-ba #budgetAlertError {
  border-radius: 12px;
}

@media (max-width: 800px) {
  .cp-ba-usage,
  .cp-ba-add,
  .cp-ba .cp-prof-fields {
    grid-template-columns: 1fr;
  }

  .cp-ba-add .cp-prof-solid {
    justify-content: center;
  }
}

