/* Client area (frontend)
--------------------------------*/
.client-area-page .site-main {
  background: radial-gradient(circle at center, #fff 0%, #ddd 100%);
  color: #000;
}
.client-area-page .site-main > .content-width {
  max-width: none;
  width: 100%;
  padding: 0;
}
.client-area-page .site-main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.site-main .client-area {
  padding-bottom: 60px;
  max-width: 100%;
  min-height: 900px;
}
.ca-header {
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}
.ca-logout-wrap {
  max-width: 922px;
  margin: -20px auto 10px auto;
  text-align: right;
}
.ca-logout {
  display: inline-block;
  padding: 6px 20px;
  background: #333;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
}
.ca-logout:hover {
  background: #000;
}
.ca-title {
  font-family: "Avenir LT W01 Heavy", sans-serif;
  font-size: 28px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* Client info grid */
.ca-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  margin: 0 auto 50px auto;
  max-width: 80%;
}
.ca-info-col {
  padding: 18px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ca-info-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}
.ca-label {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.9;
  min-width: 160px;
}
.ca-value {
  font-size: 16px;
}

/* Campaigns table */
.ca-campaigns {
  margin-top: 0;
}
.ca-table-wrap {
  overflow-x: auto;
}
.ca-table {
  width: 100%;
  border-collapse: collapse;

  font-size: 16px;
  border: 1px solid #333;
}

/* Title row: white background */
.ca-table-title-row {
  background: #000;
}
.ca-table-title {
  font-family: "Avenir LT W01 Heavy", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 12px 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
}
/* Column headers: gold background, white text */
.ca-table-columns th {
  background: #d2aa28;
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;

  padding: 8px 4px;
  text-align: center;
  border: 1px solid #333;
}

/* Body cells */
.ca-table td {
  padding: 10px 8px;
  border: 1px solid #333;
  white-space: nowrap;
  text-align: center;
  background: #fff;
  font-family: "Helvetica W01", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

.ca-table tbody tr:nth-child(even) td {
  background: #f0f0f0;
}
.ca-table tbody tr:hover td {
  background: #e5e5e5;
}
.ca-empty {
  text-align: center;
  background: #fff !important;
  color: #000;
  font-family: "Avenir LT W01 Light", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  padding: 30px 8px !important;
}

/* Action links (Generar) */
.ca-link {
  color: #c7a93b !important;
  text-decoration: underline !important;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}
.ca-link:hover {
  color: #fff !important;
}
.ca-link-disabled {
  color: #888 !important;
  text-decoration: none !important;
  cursor: default;
  pointer-events: none;
}
.ca-link-locked {
  color: #888 !important;
  text-decoration: none !important;
}
.ca-link-locked:hover {
  color: #c7a93b !important;
  text-decoration: underline !important;
}

/* Delete button (red) */
.ca-btn--delete {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}
.ca-btn--delete:hover:not(:disabled) {
  background: #e74c3c;
}
.ca-btn--delete:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* MP3 listen popup
--------------------------------*/
.cdm-mp3-popup {
  width: 420px;
  max-width: calc(100vw - 40px);
}
.cdm-mp3-popup .mp3-popup-name {
  margin-bottom: 10px;
  font-weight: bold;
  word-break: break-word;
}
.cdm-mp3-popup .mp3-popup-tags {
  font-style: italic;
  word-break: break-word;
}
.cdm-mp3-popup .mp3-popup-filename {
  margin-bottom: 12px;
  font-size: 12px;
  color: #666;
  word-break: break-all;
}
.cdm-mp3-popup .mp3-popup-player {
  width: 100%;
}

/* Brief popup — autonomous styling, not based on .user-popup-box
--------------------------------*/
.cdm-brief-popup {
  width: 720px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 28px 36px 32px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: #1a1a1a;
  font-family: "Avenir Next LT W01 Medium", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* Header */
.brief-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eaeaea;
}
.brief-title {
  margin: 0;
  color: #c7a93b;
  font-family: "Code Pro W01", sans-serif;
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Campaign meta block */
.brief-meta {
  margin-bottom: 22px;
  padding: 12px 14px;
  background: #fafafa;
  font-size: 13px;
}
.brief-meta-row {
  display: flex;
  gap: 6px;
  line-height: 1.7;
}
.brief-meta-label {
  font-weight: 600;
  color: #555;
  min-width: 80px;
}

/* Sections */
.brief-section {
  margin-bottom: 20px;
  text-align: left;
}
.brief-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
}
.brief-hint {
  font-weight: normal;
  color: #888;
  font-size: 12px;
}
.brief-required {
  color: #e74c3c;
  font-weight: bold;
}

/* Radio / checkbox options */
.brief-option {
  display: flex;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.brief-option input[type="radio"],
.brief-option input[type="checkbox"] {
  margin: 0 8px 0 0;
  flex-shrink: 0;
  accent-color: #c7a93b;
}
.brief-option-other {
  flex-wrap: wrap;
  gap: 6px;
}
.brief-option-other input[type="radio"],
.brief-option-other input[type="checkbox"] {
  margin: 0;
}

/* Inputs */
.brief-form input[type="text"],
.brief-form textarea,
.brief-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d4d4d4;
  background: #f4f4f4;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
.brief-form input[type="text"]:focus,
.brief-form textarea:focus,
.brief-form select:focus {
  background: #fff;
  outline: none;
  border-color: #c7a93b;
  box-shadow: 0 0 0 2px rgba(199, 169, 59, 0.15);
}
.brief-form textarea {
  resize: vertical;
  min-height: 80px;
}
.brief-form .brief-other-input {
  width: 300px;
  max-width: 300px;
  height: 28px;
  padding: 0 8px;
  line-height: 26px;
}

/* Music style nested block */
.brief-music-style {
  margin-top: 10px;
  padding-left: 22px;
}
.brief-music-style .brief-label {
  font-weight: normal;
  font-size: 13px;
  color: #555;
}

/* Buttons */
.brief-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.brief-label-row .brief-label {
  margin-bottom: 0;
}
.brief-ai-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #c7a93b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: underline;
  cursor: pointer;
}
.brief-ai-toggle:hover {
  color: #a88c2a;
}
.brief-ai-panel {
  margin-top: 10px;
  padding: 14px;
  background: #f9f7ef;
  border: 1px solid #e7dfc4;
}
.brief-ai-prompt-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #555;
}
.brief-ai-panel textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
.brief-ai-msg {
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
}
.brief-ai-msg.error {
  color: #e74c3c;
}

.brief-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eaeaea;
}
.brief-btn {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.brief-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.brief-btn-primary {
  background: #c7a93b;
  color: #fff;
}
.brief-btn-primary:hover:not(:disabled) {
  background: #a88c2a;
}
.brief-btn-secondary {
  background: #fff;
  color: #555;
  border-color: #d4d4d4;
}
.brief-btn-secondary:hover:not(:disabled) {
  background: #f4f4f4;
  color: #1a1a1a;
}
.brief-btn-dark {
  background: #000;
  color: #fff;
}
.brief-btn-dark:hover:not(:disabled) {
  background: #c7a93b;
}

/* Status & feedback messages */
.brief-status-msg {
  margin: 0 0 18px;
  padding: 10px 12px;
  background: #fff8e1;
  border-left: 3px solid #c7a93b;
  font-size: 13px;
  color: #5a4a14;
}
.brief-status-msg:empty {
  display: none;
}
.brief-msg {
  margin-top: 12px;
  min-height: 20px;
  font-size: 13px;
  text-align: right;
}
.brief-msg.success {
  color: #27ae60;
}
.brief-msg.error {
  color: #e74c3c;
}
.brief-loading {
  padding: 40px 0;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* Confirmation step (shown after Enviar a producción click)
--------------------------------*/
.brief-confirm {
  margin-top: 24px;
  padding: 22px 24px;
  background: #fff8e1;
  border: 1px solid #c7a93b;
}
.brief-confirm-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}
.brief-confirm-warning {
  margin: 0 0 16px;
  font-size: 13px;
  color: #5a4a14;
}
.brief-confirm-cgu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  cursor: pointer;
}
.brief-confirm-cgu input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  accent-color: #c7a93b;
}
.brief-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
