/* ===================================
   Client-Facing Pages Styles
   =================================== */

/* Client-Facing Body */
.client-facing-page {
    background-color: var(--bg-canvas);
    padding-top: 0;
}

/* Client Header */
.client-header {
    background-color: var(--bg-canvas);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--fg-default);
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-canvas);
    border-top: 1px solid var(--border-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
}

.mobile-menu.active {
    display: block;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 26px;
    color: var(--fg-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--fg-default);
    background-color: var(--bg-secondary);
}

.mobile-nav-link.active {
    color: var(--accent-blue);
}

.mobile-nav-link .dropdown-icon {
    width: 16px;
    height: 12px;
}

.client-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.client-logo img {
    height: 32px;
}

.client-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.client-nav-link {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 26px;
    color: var(--fg-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-nav-link:hover {
    color: var(--fg-default);
}

.client-nav-link.active {
    color: #1669E8;
}

.client-nav-link.dealbase-link {
    padding-bottom: 10px;
}

.dealbase-logo {
    height: 32px;
    width: auto;
    max-height: 32px;
    max-width: 82px;
    display: block;
    object-fit: contain;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    margin-left: 0;
}

/* Top Ideas Ticker */
.top-ideas-ticker {
    background-color: var(--bg-canvas);
    padding: 16px 0 0;
}

.ticker-label {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
    font-weight: 500;
    margin-bottom: 16px;
    padding: 0;
}

.ticker-items {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 12px 32px;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    background-color: var(--bg-secondary);
    overflow-x: auto;
}

.ticker-item {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.ticker-badge {
    padding: 2px 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
}

.ticker-badge.new {
    color: #8AAAF4;
}

.ticker-badge.catalyst {
    color: var(--accent-gold);
}

.ticker-text {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
}

.ticker-arrow {
    font-size: 12px;
}

.ticker-arrow.up {
    color: #66c694;
}

.ticker-arrow.down {
    color: #f87171;
}

.ticker-position {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
}

.ticker-view-all {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--btn-primary);
    text-decoration: none;
    white-space: nowrap;
}

.ticker-view-all:hover {
    text-decoration: underline;
}

/* Main Content */
.client-main {
    padding: 64px 0 96px;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-sans);
    font-size: 36px;
    line-height: 44px;
    color: var(--fg-default);
    margin-bottom: 16px;
}

.region-filter {
    display: flex;
    gap: 16px;
    align-items: center;
}

.region-label {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--fg-tertiary);
}

.region-link {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.region-link:hover {
    color: var(--fg-default);
}

.region-link.active {
    color: var(--btn-primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Content Tabs */
.content-tabs {
    display: inline-flex;
    gap: 0;
    margin-top: 32px;
    margin-bottom: 0;
    border: 1px solid var(--border-primary);
    border-bottom: none;
}

.tab-button {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-primary);
    color: var(--fg-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    color: var(--fg-default);
}

.tab-button.active {
    color: var(--fg-default);
    background-color: var(--bg-secondary);
}

/* Ideas Table */
.ideas-table-wrapper {
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ideas-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-secondary);
}

.ideas-table thead {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.ideas-table th {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    text-align: left;
    padding: 8px 24px;
    font-weight: 400;
}

.ideas-table th.sortable {
    cursor: pointer;
    white-space: nowrap;
}

.ideas-table th.sortable::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    vertical-align: middle;
    background-image: url('../assets/images/sort-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ideas-table th.sortable:hover {
    color: var(--fg-default);
}

.ideas-table tbody tr {
    border-bottom: 1px solid var(--border-primary);
    transition: background-color 0.2s ease;
}

.ideas-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.ideas-table td {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
    padding: 16px 24px;
}

.ideas-table td.thesis-cell {
    color: var(--fg-secondary);
    max-width: 400px;
}

.ideas-table td.negative {
    color: var(--fg-tertiary);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
}

.status-badge.new {
    color: #8AAAF4;
}

.status-badge.catalyst {
    color: var(--accent-gold);
}

/* Target Info */
.target-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.target-name {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
}

.target-ticker {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 16px;
    color: var(--fg-tertiary);
}

/* Position Indicator */
.position-indicator {
    margin-right: 4px;
}

.position-indicator.up {
    color: #66c694;
}

.position-indicator.down {
    color: #f87171;
}

/* Expandable Rows */
.expandable-row {
    cursor: pointer;
}

.expandable-row:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.expandable-row.expanded {
    background-color: #000000 !important;
}

.expanded-content {
    display: none;
    background-color: var(--bg-canvas);
}

.expanded-content.show {
    display: table-row;
}

.expanded-content td {
    padding: 0;
}

/* Sub-table */
.sub-table-wrapper {
    padding: 0 24px 24px;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-primary);
}

.sub-table thead th {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    text-align: left;
    padding: 12px 24px;
    font-weight: 400;
    background-color: #000000;
    border-bottom: 1px solid var(--border-primary);
}

.sub-table tbody tr {
    border-bottom: 1px solid var(--border-primary);
}

.sub-table tbody tr:last-child {
    border-bottom: none;
}

.sub-table tbody td {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    padding: 16px 24px;
}

.report-type {
    color: #8AAAF4;
}

.ticker-small {
    color: var(--fg-tertiary);
    font-size: 12px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--btn-primary);
    text-decoration: none;
    font-size: 14px;
}

.download-link:hover {
    text-decoration: underline;
}

.download-icon-small {
    width: 16px;
    height: 16px;
}

/* Recent Updates Section */
.recent-updates-section {
    margin-top: 64px;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 28px;
    line-height: 36px;
    color: var(--fg-default);
    margin-bottom: 32px;
}

.updates-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
}

.updates-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
}

.updates-table thead {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.updates-table th {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    text-align: left;
    padding: 8px 24px;
    font-weight: 400;
}

.updates-table tbody tr {
    border-bottom: 1px solid var(--border-primary);
}

.updates-table td {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    padding: 16px 24px;
    vertical-align: top;
}

/* Update Badges */
.update-badge {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    border-radius: 2px;
    border: 1px solid;
}

.update-badge.added {
    background-color: rgba(16, 82, 43, 0.3);
    color: #66c694;
    border-color: #10522b;
}

.update-badge.removed {
    background-color: rgba(127, 29, 29, 0.3);
    color: #f87171;
    border-color: #7f1d1d;
}

.update-badge.comment {
    background-color: rgba(30, 64, 175, 0.3);
    color: #60a5fa;
    border-color: #1e40af;
}

/* Update Info */
.update-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.update-title {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
}

.update-description {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 16px;
    color: var(--fg-tertiary);
}

/* Button Styles */
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--btn-primary);
    color: var(--btn-primary);
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--btn-primary);
    color: #e8f1fe;
}

/* Active Coverage Layout */
.active-coverage-layout {
    display: flex;
    gap: 16px;
    margin-top: 0;
}

.coverage-sidebar {
    width: 400px;
    flex-shrink: 0;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-canvas);
}

.search-box {
    padding: 16px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    padding: 8px 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
    background-color: transparent;
    border: none;
    border-radius: 0;
    outline: none;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--fg-tertiary);
}

.top-ideas-list {
    max-height: 600px;
    overflow-y: auto;
}

.top-idea-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.top-idea-item:hover {
    background-color: var(--bg-secondary);
}

.idea-label {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 16px;
    color: var(--fg-tertiary);
    margin-bottom: 8px;
}

.idea-name {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
    margin-bottom: 4px;
}

.idea-ticker {
    color: var(--fg-tertiary);
    font-size: 12px;
}

.coverage-table-wrapper {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.coverage-table {
    margin-top: 24px;
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-secondary);
}

.coverage-table thead {
    background-color: #000000;
    border-bottom: 1px solid var(--border-primary);
}

.coverage-table th {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    text-align: left;
    padding: 12px 24px;
    font-weight: 400;
}

.coverage-table tbody tr {
    border-bottom: 1px solid var(--border-primary);
}

.coverage-table tbody tr:last-child {
    border-bottom: none;
}

.coverage-table tbody td {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    padding: 16px 24px;
}

/* DealBase Page Styles */
.page-subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    margin-top: 8px;
}

.dealbase-filters {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-label {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    font-weight: 400;
}

.filter-select {
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--btn-primary);
}

.search-results-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 48px;
    margin-bottom: 24px;
}

.search-results-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-results-title {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: var(--fg-default);
    margin: 0;
}

.search-results-count {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    margin: 0;
}

.btn-download-results {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--btn-primary);
    background: transparent;
    border: 1px solid var(--btn-primary);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-results:hover {
    background: var(--btn-primary);
    color: #e8f1fe;
}

.download-icon-inline {
    width: 16px;
    height: 16px;
}

.dealbase-table-wrapper {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
}

.dealbase-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-secondary);
}

.dealbase-table thead {
    background-color: var(--bg-surface-dark);
    border-bottom: 1px solid var(--border-primary);
}

.dealbase-table th {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    text-align: left;
    padding: 12px 16px;
    font-weight: 400;
    white-space: nowrap;
}

.dealbase-table tbody tr {
    border-bottom: 1px solid var(--border-primary);
    transition: background-color 0.2s ease;
}

.dealbase-table tbody tr:hover:not(.average-row) {
    background-color: var(--bg-surface-dark);
}

.dealbase-table tbody tr:last-child {
    border-bottom: none;
}

.dealbase-table tbody td {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    padding: 16px;
    white-space: nowrap;
}

.dealbase-table .average-row {
    background-color: var(--bg-surface-dark);
    font-weight: 500;
}

.dealbase-table .average-row td {
    color: var(--fg-default);
}

.table-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 2px;
    position: relative;
}

.table-checkbox:checked {
    background-color: var(--btn-primary);
    border-color: var(--btn-primary);
}

.table-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.pagination-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: var(--bg-surface-dark);
    color: var(--fg-default);
}

.pagination-btn.active {
    background-color: var(--btn-primary);
    color: #e8f1fe;
    border-color: var(--btn-primary);
}

.pagination-ellipsis {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--fg-secondary);
    padding: 0 4px;
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Vanilla JS Datepicker Custom Styles */
.datepicker-wrapper {
    background: var(--bg-canvas);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.55);
}

.datepicker-inner {
    display: flex;
}

.datepicker-presets {
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-right: 0;
    border-right: 1px solid var(--border-primary);
    background: var(--bg-canvas);
    min-width: 160px;
    gap: 4px;
}

.datepicker-preset-btn {
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-default);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.datepicker-preset-btn:hover {
    background-color: var(--bg-secondary);
}

.datepicker-preset-btn.active {
    background-color: var(--bg-surface-dark);
    color: var(--btn-primary);
}

.datepicker-calendars {
    display: flex;
    gap: 24px;
    padding: 16px;
}

.calendar-month {
    min-width: 280px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.calendar-month-name {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--fg-default);
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    color: var(--fg-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: var(--bg-surface-dark);
    color: var(--fg-default);
    border-radius: 4px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--fg-secondary);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--fg-default);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover:not(.prev-month):not(.next-month) {
    background: var(--bg-surface-dark);
}

.calendar-day.prev-month,
.calendar-day.next-month {
    color: var(--fg-tertiary);
    opacity: 0.5;
    cursor: default;
}

.calendar-day.today {
    border: 1px solid var(--btn-primary);
}

.calendar-day.selected,
.calendar-day.range-start,
.calendar-day.range-end {
    background: var(--btn-primary);
    color: #ffffff;
}

.calendar-day.in-range {
    background: rgba(22, 105, 232, 0.15);
}

.datepicker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    padding-top: 24px;
    background: var(--bg-canvas);
    width: 100%;
}

.datepicker-cancel-btn,
.datepicker-apply-btn {
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--btn-primary);
}

.datepicker-cancel-btn {
    background: transparent;
    color: var(--btn-primary);
}

.datepicker-cancel-btn:hover {
    background: rgba(22, 105, 232, 0.1);
}

.datepicker-apply-btn {
    background: var(--btn-primary);
    color: #ffffff;
    border-color: var(--btn-primary);
}

.datepicker-apply-btn:hover {
    background: #1357c7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .client-header-content {
        padding: 0 24px;
    }

    .top-ideas-ticker {
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .client-nav {
        display: none;
    }
    
    .client-nav.active {
        right: 0;
    }
    
    .client-nav-link {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-primary);
        width: 100%;
        text-align: left;
    }
    
    .client-nav-dropdown {
        width: 100%;
    }
    
    .client-nav-dropdown .client-nav-link {
        width: 100%;
        justify-content: space-between;
    }
    
    .active-coverage-layout {
        flex-direction: column;
    }
    
    .coverage-sidebar {
        width: 100%;
    }
    
    .client-nav {
        gap: 16px;
        font-size: 12px;
    }

    .page-title {
        font-size: 28px;
        line-height: 36px;
    }

    .ideas-table th,
    .ideas-table td {
        padding: 12px 16px;
        font-size: 12px;
    }

    .ticker-items {
        gap: 16px;
    }
}

/* ===================================
   Daily Notes Page Styles
   =================================== */

.daily-notes-layout {
    display: flex;
    gap: 0;
    margin-top: 32px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-canvas);
}

/* Left Sidebar */
.daily-notes-sidebar {
    width: 440px;
    background-color: var(--bg-canvas);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    max-height: 700px;
}

.date-picker-section {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-primary);
}

.date-picker-btn {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-surface-dark);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--fg-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-picker-btn:hover {
    background-color: var(--bg-surface-dark-2);
    border-color: var(--border-secondary);
}

.calendar-icon {
    width: 16px;
    height: 16px;
}

/* Region Sections */
.region-sections {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.region-section {
    border-bottom: 1px solid var(--border-primary);
}

.region-section:last-child {
    border-bottom: none;
}

.region-header {
    width: 100%;
    padding: 20px 24px;
    background-color: var(--bg-canvas);
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.region-header:hover {
    background-color: var(--bg-surface-dark);
}

.region-title {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 28px;
    color: var(--fg-tertiary);
    text-align: left;
}

.chevron-icon {
    width: 24px;
    height: 24px;
    color: var(--fg-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.region-section:not(.expanded) .chevron-icon {
    transform: rotate(-90deg);
}

.region-dates {
    display: none;
    flex-direction: column;
}

.region-section.expanded .region-dates {
    display: flex;
}

.date-link {
    padding: 16px 24px;
    color: var(--fg-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #15191E;
}

.date-link:last-child {
    border-bottom: none;
}

.date-link:hover {
    background-color: var(--bg-surface-dark);
    color: var(--fg-default);
}

.date-link.active {
    background-color: var(--bg-surface-dark);
    color: var(--fg-default);
    border-top: 1px solid var(--border-primary);
}

.date-chevron {
    width: 20px;
    height: 20px;
    color: var(--fg-secondary);
    flex-shrink: 0;
}

/* Right Content Area */
.daily-notes-content {
    flex: 1;
    padding: 32px 64px;
    background-color: var(--bg-canvas);
    overflow-y: auto;
    max-height: 700px;
}

.report-header {
    margin-bottom: 24px;
}

.report-title {
    font-family: var(--font-sans);
    font-size: 36px;
    line-height: 44px;
    color: var(--fg-default);
    margin-bottom: 16px;
}

.report-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.warning-icon {
    width: 16px;
    height: 16px;
}

.warning-text {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: #F2AC5B;
}

/* Accordion Sections */
.report-sections {
    display: flex;
    flex-direction: column;
}

.report-accordion {
    border-bottom: 1px solid var(--border-primary);
}

.report-accordion.no-border {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accordion-header:hover .accordion-title {
    color: var(--fg-secondary);
}

.accordion-title {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--fg-tertiary);
    text-align: left;
    transition: color 0.2s ease;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.report-accordion.expanded .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 0 16px 0;
}

.report-accordion.expanded .accordion-content {
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .daily-notes-sidebar {
        width: 360px;
    }
    
    .daily-notes-content {
        padding: 24px 32px;
    }
    
    .report-title {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 768px) {
    .daily-notes-layout {
        flex-direction: column;
    }
    
    .daily-notes-sidebar {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
    }
    
    .daily-notes-content {
        padding: 24px;
        max-height: none;
    }
    
    .report-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .accordion-title {
        font-size: 18px;
        line-height: 26px;
    }
}

/* ===================================
   Account Page
   =================================== */

.account-content-wrapper {
    display: flex;
    gap: 64px;
    padding: 0 32px 64px;
    max-width: 1352px;
    margin: 0 auto;
}

.account-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.account-section-header {
    padding-bottom: 16px;
}

.account-section-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--fg-default);
    margin: 0;
}

.account-tabs {
    display: flex;
    flex-direction: column;
}

.account-tab {
    border-bottom: 1px solid var(--border-secondary);
    padding: 16px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.account-tab:not(.active) {
    opacity: 0.7;
}

.account-tab:hover {
    opacity: 1;
}

.account-tab-text {
    font-family: var(--font-sans);
    font-size: 28px;
    line-height: 36px;
    color: #6a6a6a;
}

.account-tab.active .account-tab-text {
    color: #1669E8;
}

.coverage-section {
    display: flex;
    flex-direction: column;
}

.coverage-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coverage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border: 1px solid var(--border-primary);
    border-radius: 0;
}

.coverage-item.selected {
    border-color: #1669E8;
}

.coverage-name {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 26px;
    color: var(--fg-default);
}

.coverage-status {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
}

.coverage-action {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: #1669E8;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.coverage-action:hover {
    opacity: 0.8;
}

/* Tab Content */
.tab-content {
    display: none;
    flex-direction: column;
    gap: 32px;
}

.tab-content.active {
    display: flex;
}

/* Email Notifications Section */
.email-notifications-section {
    display: flex;
    flex-direction: column;
}

.email-region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.email-region-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-region-header {
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 16px;
}

.email-region-title {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--fg-default);
    margin: 0;
}

.email-region-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.email-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 5px;
    border: 1px solid #1669E8;
    border-radius: 2px;
    background-color: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    flex-shrink: 0;
}

.email-checkbox input[type="checkbox"]:checked {
    background-color: transparent;
    border-color: #1669E8;
}

.email-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #1669E8;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 26px;
    color: var(--fg-default);
    flex: 1;
}

.email-digest-section {
    border-top: 1px solid var(--border-secondary);
    padding-top: 16px;
}

/* User Information Section */
.user-info-section {
    display: flex;
    flex-direction: column;
}

.user-info-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-label {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-secondary);
}

.form-field-note {
    opacity: 0.4;
}

.form-field-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--fg-default);
}

.form-field-input::placeholder {
    color: #6b7682;
}

.form-field-input:focus {
    outline: none;
    border-color: #1669E8;
}

.form-field-input.disabled {
    border-color: rgba(51, 60, 70, 0.5);
    color: var(--border-primary);
    cursor: not-allowed;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-input {
    padding-right: 80px;
}

.phone-country {
    position: absolute;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: #6b7682;
    pointer-events: none;
}

.btn-outline-blue {
    width: 100%;
    padding: 10px 24px;
    background-color: transparent;
    border: 1px solid #1669E8;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: #1669E8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-blue:hover {
    background-color: rgba(22, 105, 232, 0.1);
}

.btn-save {
    padding: 10px 24px;
    background-color: rgba(22, 105, 232, 0.5);
    border: none;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: rgba(232, 241, 254, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-save:not(.disabled) {
    background-color: #1669E8;
    color: #E8F1FE;
    cursor: pointer;
}

.btn-save:not(.disabled):hover {
    background-color: #1454c0;
}

.btn-save.disabled {
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1200px) {
    .account-content-wrapper {
        gap: 48px;
        padding: 0 24px 48px;
    }
    
    .email-region-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .account-content-wrapper {
        flex-direction: column;
        gap: 32px;
        padding: 0 16px 32px;
    }
    
    .account-tab-text {
        font-size: 24px;
        line-height: 32px;
    }
    
    .coverage-item {
        padding: 12px 16px;
    }
    
    .email-region-title {
        font-size: 18px;
        line-height: 26px;
    }
    
    .checkbox-label {
        font-size: 16px;
        line-height: 24px;
    }
}
